Documentation ¶
Index ¶
- Constants
- type AppleOAuthFactor
- type Attributes
- type AuthenticationFactor
- type AuthenticatorAppFactor
- type Claims
- type Client
- type CryptoWallet
- type CryptoWalletAuthenticateParams
- type CryptoWalletAuthenticateResponse
- type CryptoWalletAuthenticateStartParams
- type CryptoWalletAuthenticateStartResponse
- type CryptoWalletFactor
- type CryptoWalletString
- type Email
- type EmailFactor
- type EmailString
- type FacebookOAuthFactor
- type GitLabOAuthFactor
- type GithubOAuthFactor
- type GoogleOAuthFactor
- type JWTAuthenticationFactor
- type Key
- type MagicLinksAuthenticateParams
- type MagicLinksAuthenticateResponse
- type MagicLinksCreateParams
- type MagicLinksCreateResponse
- type MagicLinksEmailInviteParams
- type MagicLinksEmailInviteResponse
- type MagicLinksEmailLoginOrCreateParams
- type MagicLinksEmailLoginOrCreateResponse
- type MagicLinksEmailRevokeInviteParams
- type MagicLinksEmailRevokeInviteResponse
- type MagicLinksEmailSendParams
- type MagicLinksEmailSendResponse
- type MicrosoftOAuthFactor
- type Name
- type OAuthAuthenticateParams
- type OAuthAuthenticateResponse
- type OAuthProvider
- type OTPsAuthenticateParams
- type OTPsAuthenticateResponse
- type OTPsEmailLoginOrCreateParams
- type OTPsEmailLoginOrCreateResponse
- type OTPsEmailSendParams
- type OTPsEmailSendResponse
- type OTPsSMSLoginOrCreateParams
- type OTPsSMSLoginOrCreateResponse
- type OTPsSMSSendParams
- type OTPsSMSSendResponse
- type OTPsWhatsAppLoginOrCreateParams
- type OTPsWhatsAppLoginOrCreateResponse
- type OTPsWhatsAppSendParams
- type OTPsWhatsAppSendResponse
- type Options
- type PendingUsers
- type PhoneNumber
- type PhoneNumberFactor
- type PhoneNumberString
- type ProviderType
- type ProviderValues
- type RecoveryCodeFactor
- type Session
- type SessionClaim
- type SessionsAuthenticateParams
- type SessionsAuthenticateResponse
- type SessionsGetJWKSParams
- type SessionsGetJWKSResponse
- type SessionsGetParams
- type SessionsGetResponse
- type SessionsRevokeParams
- type SessionsRevokeResponse
- type TOTP
- type TOTPsAuthenticateParams
- type TOTPsAuthenticateResponse
- type TOTPsCreateParams
- type TOTPsCreateResponse
- type TOTPsRecoverParams
- type TOTPsRecoverResponse
- type TOTPsRecoveryCodesParams
- type TOTPsRecoveryCodesResponse
- type User
- type UserTOTP
- type UsersCreateParams
- type UsersCreateResponse
- type UsersDeleteCryptoWalletResponse
- type UsersDeleteEmailResponse
- type UsersDeletePhoneNumberResponse
- type UsersDeleteResponse
- type UsersDeleteTOTPResponse
- type UsersDeleteWebAuthnRegistrationResponse
- type UsersGetPendingParams
- type UsersGetPendingResponse
- type UsersGetResponse
- type UsersSearchOperator
- type UsersSearchParams
- type UsersSearchQuery
- type UsersSearchQueryCreatedAtBetweenFilter
- type UsersSearchQueryCreatedAtGreaterThanFilter
- type UsersSearchQueryCreatedAtLessThanFilter
- type UsersSearchQueryCryptoWalletAddressFilter
- type UsersSearchQueryCryptoWalletIDFilter
- type UsersSearchQueryCryptoWalletVerifiedFilter
- type UsersSearchQueryEmailAddressFilter
- type UsersSearchQueryEmailAddressFuzzyFilter
- type UsersSearchQueryEmailIDFilter
- type UsersSearchQueryEmailVerifiedFilter
- type UsersSearchQueryFullNameFuzzyFilter
- type UsersSearchQueryOAuthProviderFilter
- type UsersSearchQueryPhoneIDFilter
- type UsersSearchQueryPhoneNumberFilter
- type UsersSearchQueryPhoneNumberFuzzyFilter
- type UsersSearchQueryPhoneVerifiedFilter
- type UsersSearchQueryStatusFilter
- type UsersSearchQueryTOTPIDFilter
- type UsersSearchQueryTOTPVerifiedFilter
- type UsersSearchQueryUserIDFilter
- type UsersSearchQueryWebAuthnRegistrationIDFilter
- type UsersSearchQueryWebAuthnRegistrationVerifiedFilter
- type UsersSearchResponse
- type UsersUpdateParams
- type UsersUpdateResponse
- type WebAuthnAuthenticateParams
- type WebAuthnAuthenticateResponse
- type WebAuthnAuthenticateStartParams
- type WebAuthnAuthenticateStartResponse
- type WebAuthnFactor
- type WebAuthnRegisterParams
- type WebAuthnRegisterResponse
- type WebAuthnRegisterStartParams
- type WebAuthnRegisterStartResponse
- type WebAuthnRegistration
Constants ¶
View Source
const ( EnvTest = config.EnvTest EnvLive = config.EnvLive )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppleOAuthFactor ¶
type Attributes ¶
type Attributes struct { // The ip address of the user. IPAddress string `json:"ip_address,omitempty"` // The user agent of the user. UserAgent string `json:"user_agent,omitempty"` }
* Structure for the custom type Attributes
type AuthenticationFactor ¶
type AuthenticationFactor struct { Type string `json:"type,omitempty"` DeliveryMethod string `json:"delivery_method,omitempty"` LastAuthenticatedAt string `json:"last_authenticated_at,omitempty"` EmailFactor EmailFactor `json:"email_factor,omitempty"` PhoneNumberFactor PhoneNumberFactor `json:"phone_number_factor,omitempty"` GoogleOAuthFactor GoogleOAuthFactor `json:"google_oauth_factor,omitempty"` MicrosoftOAuthFactor MicrosoftOAuthFactor `json:"microsoft_oauth_factor,omitempty"` AppleOAuthFactor AppleOAuthFactor `json:"apple_oauth_factor,omitempty"` GithubOAuthFactor GithubOAuthFactor `json:"github_oauth_factor,omitempty"` GitLabOAuthFactor GitLabOAuthFactor `json:"gitlab_oauth_factor,omitempty"` FacebookOAuthFactor FacebookOAuthFactor `json:"facebook_oauth_factor,omitempty"` WebAuthnFactor WebAuthnFactor `json:"webauthn_factor,omitempty"` AuthenticatorAppFactor AuthenticatorAppFactor `json:"authenticator_app_factor,omitempty"` RecoveryCodeFactor RecoveryCodeFactor `json:"recovery_code_factor,omitempty"` CryptoWalletFactor CryptoWalletFactor `json:"crypto_wallet_factor,omitempty"` }
type AuthenticatorAppFactor ¶
type AuthenticatorAppFactor struct {
TOTPID string `json:"totp_id,omitempty"`
}
type Claims ¶
type Claims struct { StytchSession SessionClaim `json:"https://stytch.com/session"` jwt.RegisteredClaims }
func (Claims) IsValid ¶
Validation options in GoJWT are currently unexported. Once they're exported, we can define this as a Valid() function, see https://github.com/golang-jwt/jwt/blob/1096e506e671d6d6fe134cc997bbd475937392c8/validator_option.go#L9-L11 //nolint:lll
type CryptoWallet ¶
type CryptoWalletAuthenticateParams ¶
type CryptoWalletAuthenticateParams struct { CryptoWalletAddress string `json:"crypto_wallet_address,omitempty"` CryptoWalletType string `json:"crypto_wallet_type,omitempty"` Signature string `json:"signature,omitempty"` SessionToken string `json:"session_token,omitempty"` SessionDurationMinutes int32 `json:"session_duration_minutes,omitempty"` }
type CryptoWalletFactor ¶
type CryptoWalletString ¶
type EmailFactor ¶
type EmailString ¶
type EmailString struct {
Email string `json:"email,omitempty"`
}
type FacebookOAuthFactor ¶
type GitLabOAuthFactor ¶
type GithubOAuthFactor ¶
type GoogleOAuthFactor ¶
type JWTAuthenticationFactor ¶
type JWTAuthenticationFactor struct { Type string `json:"type,omitempty"` DeliveryMethod string `json:"delivery_method,omitempty"` LastAuthenticatedAt *jwt.NumericDate `json:"last_authenticated_at,omitempty"` EmailFactor EmailFactor `json:"email_factor,omitempty"` PhoneNumberFactor PhoneNumberFactor `json:"phone_number_factor,omitempty"` GoogleOAuthFactor GoogleOAuthFactor `json:"google_oauth_factor,omitempty"` MicrosoftOAuthFactor MicrosoftOAuthFactor `json:"microsoft_oauth_factor,omitempty"` AppleOAuthFactor AppleOAuthFactor `json:"apple_oauth_factor,omitempty"` GithubOAuthFactor GithubOAuthFactor `json:"github_oauth_factor,omitempty"` FacebookOAuthFactor FacebookOAuthFactor `json:"facebook_oauth_factor,omitempty"` WebAuthnFactor WebAuthnFactor `json:"webauthn_factor,omitempty"` AuthenticatorAppFactor AuthenticatorAppFactor `json:"authenticator_app_factor,omitempty"` RecoveryCodeFactor RecoveryCodeFactor `json:"recovery_code_factor,omitempty"` CryptoWalletFactor CryptoWalletFactor `json:"crypto_wallet_factor,omitempty"` }
type MagicLinksAuthenticateParams ¶
type MagicLinksAuthenticateParams struct { Token string `json:"token,omitempty"` Options Options `json:"options,omitempty"` Attributes Attributes `json:"attributes,omitempty"` SessionToken string `json:"session_token,omitempty"` SessionDurationMinutes int32 `json:"session_duration_minutes,omitempty"` }
type MagicLinksAuthenticateResponse ¶
type MagicLinksAuthenticateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` MethodID string `json:"method_id,omitempty"` SessionToken string `json:"session_token,omitempty"` Session Session `json:"session,omitempty"` }
type MagicLinksCreateParams ¶
type MagicLinksCreateParams struct { UserID string `json:"user_id,omitempty"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
type MagicLinksEmailInviteParams ¶
type MagicLinksEmailInviteParams struct { Email string `json:"email"` InviteMagicLinkURL string `json:"invite_magic_link_url,omitempty"` InviteExpirationMinutes int32 `json:"invite_expiration_minutes,omitempty"` Name Name `json:"name,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
type MagicLinksEmailLoginOrCreateParams ¶
type MagicLinksEmailLoginOrCreateParams struct { Email string `json:"email"` LoginMagicLinkURL string `json:"login_magic_link_url,omitempty"` SignupMagicLinkURL string `json:"signup_magic_link_url,omitempty"` LoginExpirationMinutes int32 `json:"login_expiration_minutes,omitempty"` SignupExpirationMinutes int32 `json:"signup_expiration_minutes,omitempty"` CreateUserAsPending bool `json:"create_user_as_pending,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
type MagicLinksEmailRevokeInviteParams ¶
type MagicLinksEmailRevokeInviteParams struct {
Email string `json:"email"`
}
type MagicLinksEmailSendParams ¶
type MagicLinksEmailSendParams struct { Email string `json:"email"` LoginMagicLinkURL string `json:"login_magic_link_url,omitempty"` SignupMagicLinkURL string `json:"signup_magic_link_url,omitempty"` LoginExpirationMinutes int32 `json:"login_expiration_minutes,omitempty"` SignupExpirationMinutes int32 `json:"signup_expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
MAGIC LINK - EMAIL
type MicrosoftOAuthFactor ¶
type OAuthAuthenticateParams ¶
type OAuthAuthenticateResponse ¶
type OAuthAuthenticateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` ProviderSubject string `json:"provider_subject,omitempty"` ProviderType ProviderType `json:"provider_type,omitempty"` Session *Session `json:"session,omitempty"` SessionToken string `json:"session_token,omitempty"` SessionJWT string `json:"session_jwt,omitempty"` ProviderValues ProviderValues `json:"provider_values,omitempty"` }
type OAuthProvider ¶
type OTPsAuthenticateParams ¶
type OTPsAuthenticateParams struct { MethodID string `json:"method_id"` Code string `json:"code"` Options Options `json:"options,omitempty"` Attributes Attributes `json:"attributes,omitempty"` SessionToken string `json:"session_token,omitempty"` SessionDurationMinutes int32 `json:"session_duration_minutes,omitempty"` }
type OTPsAuthenticateResponse ¶
type OTPsAuthenticateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` MethodID string `json:"method_id,omitempty"` SessionToken string `json:"session_token,omitempty"` Session Session `json:"session,omitempty"` }
type OTPsEmailLoginOrCreateParams ¶
type OTPsEmailLoginOrCreateParams struct { Email string `json:"email"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` CreateUserAsPending bool `json:"create_user_as_pending,omitempty"` }
type OTPsEmailSendParams ¶
type OTPsEmailSendParams struct { Email string `json:"email"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
OTP - Email
type OTPsEmailSendResponse ¶
type OTPsSMSLoginOrCreateParams ¶
type OTPsSMSLoginOrCreateParams struct { PhoneNumber string `json:"phone_number"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` CreateUserAsPending bool `json:"create_user_as_pending,omitempty"` }
type OTPsSMSSendParams ¶
type OTPsSMSSendParams struct { PhoneNumber string `json:"phone_number"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
OTP - SMS
type OTPsSMSSendResponse ¶
type OTPsWhatsAppLoginOrCreateParams ¶
type OTPsWhatsAppLoginOrCreateParams struct { PhoneNumber string `json:"phone_number"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` CreateUserAsPending bool `json:"create_user_as_pending,omitempty"` }
type OTPsWhatsAppSendParams ¶
type OTPsWhatsAppSendParams struct { PhoneNumber string `json:"phone_number"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
OTP - WhatsApp
type Options ¶
type Options struct { // Require that the ip address the magic link was requested from // matches the ip address it's clicked from. IPMatchRequired bool `json:"ip_match_required,omitempty"` // Require that the user agent the magic link was requested from // matches the user agent it's clicked from. UserAgentMatchRequired bool `json:"user_agent_match_required,omitempty"` }
* Structure for the custom type Options
type PendingUsers ¶
type PendingUsers struct { UserID string `json:"user_id,omitempty"` Name Name `json:"name,omitempty"` Emails []Email `json:"emails,omitempty"` PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` TOTPs []UserTOTP `json:"totps,omitempty"` CryptoWallets []CryptoWallet `json:"crypto_wallets,omitempty"` Status string `json:"status,omitempty"` InvitedAt string `json:"invited_at,omitempty"` }
type PhoneNumber ¶
type PhoneNumberFactor ¶
type PhoneNumberString ¶
type PhoneNumberString struct {
PhoneNumber string `json:"phone_number,omitempty"`
}
type ProviderType ¶
type ProviderType string
const ( ProviderTypeGoogle ProviderType = "Google" ProviderTypeFacebook ProviderType = "Facebook" ProviderTypeApple ProviderType = "Apple" ProviderTypeMicrosoft ProviderType = "Microsoft" ProviderTypeGithub ProviderType = "Github" ProviderTypeGitlab ProviderType = "GitLab" )
type ProviderValues ¶
type RecoveryCodeFactor ¶
type RecoveryCodeFactor struct {
TOTPRecoveryCodeID string `json:"totp_recovery_code_id,omitempty"`
}
type Session ¶
type Session struct { SessionID string `json:"session_id,omitempty"` UserID string `json:"user_id,omitempty"` StartedAt string `json:"started_at,omitempty"` LastAccessedAt string `json:"last_accessed_at,omitempty"` ExpiresAt string `json:"expires_at,omitempty"` Attributes Attributes `json:"attributes,omitempty"` AuthenticationFactors []*AuthenticationFactor `json:"authentication_factors,omitempty"` }
* Structure for the custom type Session
type SessionClaim ¶
type SessionClaim struct { ID string `json:"id"` StartedAt string `json:"started_at"` LastAccessedAt string `json:"last_accessed_at"` ExpiresAt string `json:"expires_at"` Attributes Attributes `json:"attributes"` AuthenticationFactors []AuthenticationFactor `json:"authentication_factors"` }
type SessionsGetJWKSParams ¶
type SessionsGetJWKSParams struct {
ProjectID string `json:"project_id"`
}
type SessionsGetJWKSResponse ¶
type SessionsGetParams ¶
type SessionsGetParams struct {
UserID string `json:"user_id"`
}
type SessionsGetResponse ¶
type SessionsRevokeParams ¶
type SessionsRevokeResponse ¶
type SessionsRevokeResponse struct {
RequestID string `json:"request_id,omitempty"`
}
type TOTPsAuthenticateParams ¶
type TOTPsAuthenticateResponse ¶
type TOTPsAuthenticateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` TOTPID string `json:"totp_id,omitempty"` SessionToken string `json:"session_token,omitempty"` Session Session `json:"session,omitempty"` }
type TOTPsCreateParams ¶
type TOTPsCreateResponse ¶
type TOTPsCreateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` Secret string `json:"secret,omitempty"` TOTPID string `json:"totp_id,omitempty"` QRCode string `json:"qr_code,omitempty"` RecoveryCodes []string `json:"recovery_codes,omitempty"` }
type TOTPsRecoverParams ¶
type TOTPsRecoverResponse ¶
type TOTPsRecoverResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` TOTPID string `json:"totp_id,omitempty"` SessionToken string `json:"session_token,omitempty"` Session Session `json:"session,omitempty"` }
type TOTPsRecoveryCodesParams ¶
type TOTPsRecoveryCodesParams struct {
UserID string `json:"user_id"`
}
type User ¶
type User struct { UserID string `json:"user_id,omitempty"` Name Name `json:"name,omitempty"` Emails []Email `json:"emails,omitempty"` PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` WebAuthnRegistrations []WebAuthnRegistration `json:"webauthn_registrations,omitempty"` OAuthProviders []OAuthProvider `json:"providers,omitempty"` TOTPs []UserTOTP `json:"totps,omitempty"` Status string `json:"status,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` }
type UsersCreateParams ¶
type UsersCreateParams struct { Email string `json:"email,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` Name Name `json:"name,omitempty"` CreateUserAsPending bool `json:"create_user_as_pending,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
type UsersCreateResponse ¶
type UsersDeleteResponse ¶
type UsersDeleteTOTPResponse ¶
type UsersGetPendingParams ¶
type UsersGetPendingResponse ¶
type UsersGetPendingResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` Users []PendingUsers `json:"users,omitempty"` HasMore bool `json:"has_more,omitempty"` StartingAfterID string `json:"starting_after_id,omitempty"` Total int `json:"total,omitempty"` }
type UsersGetResponse ¶
type UsersGetResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` Name Name `json:"name,omitempty"` Emails []Email `json:"emails,omitempty"` PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` WebAuthnRegistrations []WebAuthnRegistration `json:"webauthn_registrations,omitempty"` OAuthProviders []OAuthProvider `json:"providers,omitempty"` TOTPs []UserTOTP `json:"totps,omitempty"` CryptoWallets []CryptoWallet `json:"crypto_wallets,omitempty"` Status string `json:"status,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` }
type UsersSearchOperator ¶
type UsersSearchOperator string
const ( UserSearchOperatorOR UsersSearchOperator = "OR" UserSearchOperatorAND UsersSearchOperator = "AND" )
type UsersSearchParams ¶
type UsersSearchParams struct { Limit int32 `json:"limit,omitempty"` Query *UsersSearchQuery `json:"query,omitempty"` Cursor string `json:"cursor,omitempty"` }
User Search
type UsersSearchQuery ¶
type UsersSearchQuery struct { Operator UsersSearchOperator `json:"operator,omitempty"` Operands []json.Marshaler `json:"operands,omitempty"` }
type UsersSearchQueryCreatedAtBetweenFilter ¶
func (UsersSearchQueryCreatedAtBetweenFilter) MarshalJSON ¶
func (q UsersSearchQueryCreatedAtBetweenFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryCreatedAtGreaterThanFilter ¶
Created At Filters
func (UsersSearchQueryCreatedAtGreaterThanFilter) MarshalJSON ¶
func (q UsersSearchQueryCreatedAtGreaterThanFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryCreatedAtLessThanFilter ¶
func (UsersSearchQueryCreatedAtLessThanFilter) MarshalJSON ¶
func (q UsersSearchQueryCreatedAtLessThanFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryCryptoWalletAddressFilter ¶
type UsersSearchQueryCryptoWalletAddressFilter struct {
CryptoWalletAddresses []string
}
func (UsersSearchQueryCryptoWalletAddressFilter) MarshalJSON ¶
func (q UsersSearchQueryCryptoWalletAddressFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryCryptoWalletIDFilter ¶
type UsersSearchQueryCryptoWalletIDFilter struct {
CryptoWalletIDs []string
}
func (UsersSearchQueryCryptoWalletIDFilter) MarshalJSON ¶
func (q UsersSearchQueryCryptoWalletIDFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryCryptoWalletVerifiedFilter ¶
type UsersSearchQueryCryptoWalletVerifiedFilter struct {
CryptoWalletVerified bool
}
func (UsersSearchQueryCryptoWalletVerifiedFilter) MarshalJSON ¶
func (q UsersSearchQueryCryptoWalletVerifiedFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryEmailAddressFilter ¶
type UsersSearchQueryEmailAddressFilter struct {
EmailAddresses []string
}
func (UsersSearchQueryEmailAddressFilter) MarshalJSON ¶
func (q UsersSearchQueryEmailAddressFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryEmailAddressFuzzyFilter ¶
type UsersSearchQueryEmailAddressFuzzyFilter struct {
EmailAddressFuzzy string
}
func (UsersSearchQueryEmailAddressFuzzyFilter) MarshalJSON ¶
func (q UsersSearchQueryEmailAddressFuzzyFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryEmailIDFilter ¶
type UsersSearchQueryEmailIDFilter struct {
EmailIDs []string
}
func (UsersSearchQueryEmailIDFilter) MarshalJSON ¶
func (q UsersSearchQueryEmailIDFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryEmailVerifiedFilter ¶
type UsersSearchQueryEmailVerifiedFilter struct {
EmailVerified bool
}
func (UsersSearchQueryEmailVerifiedFilter) MarshalJSON ¶
func (q UsersSearchQueryEmailVerifiedFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryFullNameFuzzyFilter ¶
type UsersSearchQueryFullNameFuzzyFilter struct {
FullNameFuzzy string
}
func (UsersSearchQueryFullNameFuzzyFilter) MarshalJSON ¶
func (q UsersSearchQueryFullNameFuzzyFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryOAuthProviderFilter ¶
type UsersSearchQueryOAuthProviderFilter struct {
OAuthProviders []string
}
func (UsersSearchQueryOAuthProviderFilter) MarshalJSON ¶
func (q UsersSearchQueryOAuthProviderFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryPhoneIDFilter ¶
type UsersSearchQueryPhoneIDFilter struct {
PhoneIDs []string
}
func (UsersSearchQueryPhoneIDFilter) MarshalJSON ¶
func (q UsersSearchQueryPhoneIDFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryPhoneNumberFilter ¶
type UsersSearchQueryPhoneNumberFilter struct {
PhoneNumbers []string
}
func (UsersSearchQueryPhoneNumberFilter) MarshalJSON ¶
func (q UsersSearchQueryPhoneNumberFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryPhoneNumberFuzzyFilter ¶
type UsersSearchQueryPhoneNumberFuzzyFilter struct {
PhoneNumberFuzzy string
}
func (UsersSearchQueryPhoneNumberFuzzyFilter) MarshalJSON ¶
func (q UsersSearchQueryPhoneNumberFuzzyFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryPhoneVerifiedFilter ¶
type UsersSearchQueryPhoneVerifiedFilter struct {
PhoneVerified bool
}
func (UsersSearchQueryPhoneVerifiedFilter) MarshalJSON ¶
func (q UsersSearchQueryPhoneVerifiedFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryStatusFilter ¶
type UsersSearchQueryStatusFilter struct {
Status string
}
User Filters
func (UsersSearchQueryStatusFilter) MarshalJSON ¶
func (q UsersSearchQueryStatusFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryTOTPIDFilter ¶
type UsersSearchQueryTOTPIDFilter struct {
TOTPIDs []string
}
func (UsersSearchQueryTOTPIDFilter) MarshalJSON ¶
func (q UsersSearchQueryTOTPIDFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryTOTPVerifiedFilter ¶
type UsersSearchQueryTOTPVerifiedFilter struct {
TOTPVerified bool
}
func (UsersSearchQueryTOTPVerifiedFilter) MarshalJSON ¶
func (q UsersSearchQueryTOTPVerifiedFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryUserIDFilter ¶
type UsersSearchQueryUserIDFilter struct {
UserIDs []string
}
func (UsersSearchQueryUserIDFilter) MarshalJSON ¶
func (q UsersSearchQueryUserIDFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryWebAuthnRegistrationIDFilter ¶
type UsersSearchQueryWebAuthnRegistrationIDFilter struct {
WebAuthnRegistrationIDs []string
}
func (UsersSearchQueryWebAuthnRegistrationIDFilter) MarshalJSON ¶
func (q UsersSearchQueryWebAuthnRegistrationIDFilter) MarshalJSON() ([]byte, error)
type UsersSearchQueryWebAuthnRegistrationVerifiedFilter ¶
type UsersSearchQueryWebAuthnRegistrationVerifiedFilter struct {
WebAuthnRegistrationVerified bool
}
func (UsersSearchQueryWebAuthnRegistrationVerifiedFilter) MarshalJSON ¶
func (q UsersSearchQueryWebAuthnRegistrationVerifiedFilter) MarshalJSON() ([]byte, error)
type UsersSearchResponse ¶
type UsersSearchResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` Results []User `json:"results,omitempty"` ResultsMetadata struct { NextCursor string `json:"next_cursor,omitempty"` Total int `json:"total,omitempty"` } `json:"results_metadata,omitempty"` }
type UsersUpdateParams ¶
type UsersUpdateParams struct { Name Name `json:"name,omitempty"` Emails []EmailString `json:"emails,omitempty"` PhoneNumbers []PhoneNumberString `json:"phone_numbers,omitempty"` CryptoWallets []CryptoWalletString `json:"crypto_wallets,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
type UsersUpdateResponse ¶
type UsersUpdateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` Emails []Email `json:"emails,omitempty"` PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` CryptoWallets []CryptoWallet `json:"crypto_wallets,omitempty"` }
type WebAuthnAuthenticateResponse ¶
type WebAuthnAuthenticateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` WebAuthnRegistrationID string `json:"webauthn_registration_id,omitempty"` SessionToken string `json:"session_token,omitempty"` Session Session `json:"session,omitempty"` }
type WebAuthnFactor ¶
type WebAuthnRegisterParams ¶
type WebAuthnRegistration ¶
type WebAuthnRegistration struct { WebAuthnRegistrationID string `json:"webauthn_registration_id,omitempty"` Domain string `json:"domain,omitempty"` UserAgent string `json:"user_agent,omitempty"` Verified bool `json:"verified,omitempty"` AuthenticatorType string `json:"authenticator_type,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.