Documentation
¶
Overview ¶
Package upstreamspec holds Go types generated from the OpenAPI document that github.com/supabase/auth (GoTrue) publishes for its own REST API.
This package is a CONFORMANCE ORACLE. It is never imported by runtime code. ¶
Nothing under internal/auth (or anywhere else in the module) may import it outside of _test.go files. The only consumer is internal/auth/upstream_conformance_test.go, which reflects over these types and asserts that Dilion's hand-written structs are JSON-compatible supersets of what upstream documents. If you find yourself wanting to import upstreamspec from a handler, stop: the answer is to change the hand-written struct in internal/auth and let the conformance test confirm it.
Why the generated types are not the runtime types ¶
The obvious move — delete our structs and serve these instead — is wrong, because upstream's openapi.yaml lags upstream's own Go implementation:
- UserSchema omits invited_at, which models.User has and returns.
- AccessTokenResponseSchema omits provider_token / provider_refresh_token and id_token, all of which tokens.AccessTokenResponse has and returns.
- MFAFactorSchema declares webauthn_credential, which models.Factor tags `json:"-"` and therefore never returns; it omits web_authn_aaguid and last_webauthn_challenge_data, which models.Factor does return.
- SSOProviderSchema calls the domain list sso_domains; models.SSOProvider serializes it as domains.
- OAuthClientSchema declares scope, which OAuthServerClientResponse has no field for.
- The passkeys routes are absent entirely: 43 paths / 59 operations / 15 named schemas here, against the 69-operation surface Dilion implements.
Dilion's structs were derived from upstream's Go source and are verified against a live upstream server by the differential harness in test/parity (51/69 operations, 0 FAIL). Swapping in spec-derived types would regress behavior that is known-good in favour of a document that is known-stale. So: generate the spec types, and use them only to prove that every property upstream DOCUMENTS is one we also serve.
Regenerating ¶
openapi.yaml is vendored verbatim; see SOURCE.md for its provenance and gen.go for the load-blocking spec bugs the generator works around. `make upstream-spec-sync` re-fetches and regenerates; `make upstream-spec-check` reports drift against upstream master.
Package upstreamspec provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- type AccessTokenResponseSchema
- type AccessTokenResponseSchemaWeakPasswordReasons
- type BadRequestResponse
- type CredentialCreationOptions
- type CredentialCreationOptionsAttestation
- type CredentialCreationOptionsAuthenticatorSelectionAuthenticatorAttachment
- type CredentialCreationOptionsAuthenticatorSelectionResidentKey
- type CredentialCreationOptionsAuthenticatorSelectionUserVerification
- type CredentialCreationOptionsHints
- type CredentialCreationOptionsPubKeyCredParamsType
- type CredentialCreationOptionsUserId0
- type CredentialCreationOptionsUserId1
- type CredentialCreationOptions_User_Id
- func (t CredentialCreationOptions_User_Id) AsCredentialCreationOptionsUserId0() (CredentialCreationOptionsUserId0, error)
- func (t CredentialCreationOptions_User_Id) AsCredentialCreationOptionsUserId1() (CredentialCreationOptionsUserId1, error)
- func (t *CredentialCreationOptions_User_Id) FromCredentialCreationOptionsUserId0(v CredentialCreationOptionsUserId0) error
- func (t *CredentialCreationOptions_User_Id) FromCredentialCreationOptionsUserId1(v CredentialCreationOptionsUserId1) error
- func (t CredentialCreationOptions_User_Id) MarshalJSON() ([]byte, error)
- func (t *CredentialCreationOptions_User_Id) MergeCredentialCreationOptionsUserId0(v CredentialCreationOptionsUserId0) error
- func (t *CredentialCreationOptions_User_Id) MergeCredentialCreationOptionsUserId1(v CredentialCreationOptionsUserId1) error
- func (t *CredentialCreationOptions_User_Id) UnmarshalJSON(b []byte) error
- type CredentialRequestOptions
- type CredentialRequestOptionsHints
- type CredentialRequestOptionsUserVerification
- type CustomOAuthProviderSchema
- type CustomOAuthProviderSchemaProviderType
- type DeleteUserOauthGrantsParams
- type ErrorSchema
- type ErrorSchemaWeakPasswordReasons
- type ForbiddenResponse
- type GetAdminAuditParams
- type GetAdminCustomProvidersParams
- type GetAdminCustomProvidersParamsType
- type GetAdminOauthClientsParams
- type GetAdminUsersParams
- type GetAuthorizeParams
- type GetAuthorizeParamsCodeChallengeMethod
- type GetOauthAuthorizeParams
- type GetOauthAuthorizeParamsCodeChallengeMethod
- type GetOauthAuthorizeParamsResponseType
- type GetSamlMetadataParams
- type GetUserIdentitiesAuthorizeParams
- type GetUserIdentitiesAuthorizeParamsCodeChallengeMethod
- type GetVerifyParams
- type GetVerifyParamsType
- type GoTrueSecurity
- type IdentitySchema
- type InternalServerErrorResponse
- type MFAFactorSchema
- type OAuthClientSchema
- type OAuthClientSchemaClientType
- type OAuthClientSchemaGrantTypes
- type OAuthClientSchemaRegistrationType
- type OAuthClientSchemaResponseTypes
- type OAuthClientSchemaTokenEndpointAuthMethod
- type PostAdminCustomProvidersJSONBody
- type PostAdminCustomProvidersJSONBodyProviderType
- type PostAdminCustomProvidersJSONRequestBody
- type PostAdminGenerateLink200JSONResponseBody
- func (a PostAdminGenerateLink200JSONResponseBody) Get(fieldName string) (value interface{}, found bool)
- func (a PostAdminGenerateLink200JSONResponseBody) MarshalJSON() ([]byte, error)
- func (a *PostAdminGenerateLink200JSONResponseBody) Set(fieldName string, value interface{})
- func (a *PostAdminGenerateLink200JSONResponseBody) UnmarshalJSON(b []byte) error
- type PostAdminGenerateLinkJSONBody
- type PostAdminGenerateLinkJSONBodyType
- type PostAdminGenerateLinkJSONRequestBody
- type PostAdminOauthClientsJSONBody
- type PostAdminOauthClientsJSONBodyClientType
- type PostAdminOauthClientsJSONBodyGrantTypes
- type PostAdminOauthClientsJSONBodyResponseTypes
- type PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod
- type PostAdminOauthClientsJSONRequestBody
- type PostAdminSsoProvidersJSONBody
- type PostAdminSsoProvidersJSONBodyType
- type PostAdminSsoProvidersJSONRequestBody
- type PostFactors200JSONResponseBodyType
- type PostFactorsFactorIdChallenge200JSONResponseBody
- func (t PostFactorsFactorIdChallenge200JSONResponseBody) AsTOTPPhoneChallengeResponse() (TOTPPhoneChallengeResponse, error)
- func (t PostFactorsFactorIdChallenge200JSONResponseBody) AsWebAuthnChallengeResponse() (WebAuthnChallengeResponse, error)
- func (t *PostFactorsFactorIdChallenge200JSONResponseBody) FromTOTPPhoneChallengeResponse(v TOTPPhoneChallengeResponse) error
- func (t *PostFactorsFactorIdChallenge200JSONResponseBody) FromWebAuthnChallengeResponse(v WebAuthnChallengeResponse) error
- func (t PostFactorsFactorIdChallenge200JSONResponseBody) MarshalJSON() ([]byte, error)
- func (t *PostFactorsFactorIdChallenge200JSONResponseBody) MergeTOTPPhoneChallengeResponse(v TOTPPhoneChallengeResponse) error
- func (t *PostFactorsFactorIdChallenge200JSONResponseBody) MergeWebAuthnChallengeResponse(v WebAuthnChallengeResponse) error
- func (t *PostFactorsFactorIdChallenge200JSONResponseBody) UnmarshalJSON(b []byte) error
- type PostFactorsFactorIdChallengeJSONBody
- type PostFactorsFactorIdChallengeJSONBodyChannel
- type PostFactorsFactorIdChallengeJSONRequestBody
- type PostFactorsFactorIdVerifyJSONBody
- type PostFactorsFactorIdVerifyJSONBodyWebauthnType
- type PostFactorsFactorIdVerifyJSONRequestBody
- type PostFactorsJSONBody
- type PostFactorsJSONBodyFactorType
- type PostFactorsJSONRequestBody
- type PostInviteJSONBody
- type PostInviteJSONRequestBody
- type PostLogoutParams
- type PostLogoutParamsScope
- type PostMagiclinkJSONBody
- type PostMagiclinkJSONRequestBody
- type PostOauthAuthorizationsAuthorizationIdConsentJSONBody
- type PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction
- type PostOauthAuthorizationsAuthorizationIdConsentJSONRequestBody
- type PostOauthClientsRegisterJSONBody
- type PostOauthClientsRegisterJSONBodyClientType
- type PostOauthClientsRegisterJSONBodyGrantTypes
- type PostOauthClientsRegisterJSONBodyResponseTypes
- type PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod
- type PostOauthClientsRegisterJSONRequestBody
- type PostOauthTokenFormdataBody
- type PostOauthTokenFormdataBodyGrantType
- type PostOauthTokenFormdataRequestBody
- type PostOtpJSONBody
- type PostOtpJSONBodyChannel
- type PostOtpJSONBodyCodeChallengeMethod
- type PostOtpJSONRequestBody
- type PostRecoverJSONBody
- type PostRecoverJSONBodyCodeChallengeMethod
- type PostRecoverJSONRequestBody
- type PostResendJSONBody
- type PostResendJSONBodyType
- type PostResendJSONRequestBody
- type PostSamlAcsParams
- type PostSamlAcsParamsRelayState0
- type PostSamlAcsParamsRelayState1
- type PostSignup200JSONResponseBody
- func (t PostSignup200JSONResponseBody) AsAccessTokenResponseSchema() (AccessTokenResponseSchema, error)
- func (t PostSignup200JSONResponseBody) AsUserSchema() (UserSchema, error)
- func (t *PostSignup200JSONResponseBody) FromAccessTokenResponseSchema(v AccessTokenResponseSchema) error
- func (t *PostSignup200JSONResponseBody) FromUserSchema(v UserSchema) error
- func (t PostSignup200JSONResponseBody) MarshalJSON() ([]byte, error)
- func (t *PostSignup200JSONResponseBody) MergeAccessTokenResponseSchema(v AccessTokenResponseSchema) error
- func (t *PostSignup200JSONResponseBody) MergeUserSchema(v UserSchema) error
- func (t *PostSignup200JSONResponseBody) UnmarshalJSON(b []byte) error
- type PostSignupJSONBody
- type PostSignupJSONBodyChannel
- type PostSignupJSONBodyCodeChallengeMethod
- type PostSignupJSONRequestBody
- type PostSsoJSONBody
- type PostSsoJSONBodyCodeChallengeMethod
- type PostSsoJSONRequestBody
- type PostTokenJSONBody
- type PostTokenJSONBodyChain
- type PostTokenJSONBodyProvider
- type PostTokenJSONRequestBody
- type PostTokenParams
- type PostTokenParamsGrantType
- type PostVerifyJSONBody
- type PostVerifyJSONBodyType
- type PostVerifyJSONRequestBody
- type PublicKeyCredentialDescriptor
- type PublicKeyCredentialDescriptorTransports
- type PublicKeyCredentialDescriptorType
- type PutAdminCustomProvidersIdentifierJSONBody
- type PutAdminCustomProvidersIdentifierJSONRequestBody
- type PutAdminOauthClientsClientIdJSONBody
- type PutAdminOauthClientsClientIdJSONBodyGrantTypes
- type PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod
- type PutAdminOauthClientsClientIdJSONRequestBody
- type PutAdminSsoProvidersSsoProviderIdJSONBody
- type PutAdminSsoProvidersSsoProviderIdJSONRequestBody
- type PutAdminUsersUserIdFactorsFactorIdJSONBody
- type PutAdminUsersUserIdFactorsFactorIdJSONRequestBody
- type PutAdminUsersUserIdJSONRequestBody
- type PutUserJSONBody
- type PutUserJSONBodyChannel
- type PutUserJSONRequestBody
- type RateLimitResponse
- type SAMLAttributeMappingSchema
- type SSOProviderSchema
- type TOTPPhoneChallengeResponse
- type TOTPPhoneChallengeResponseType
- type UnauthorizedResponse
- type UserSchema
- type WebAuthnChallengeResponse
- type WebAuthnChallengeResponseType
- type WebAuthnChallengeResponseWebauthn0
- type WebAuthnChallengeResponseWebauthn0Type
- type WebAuthnChallengeResponseWebauthn1
- type WebAuthnChallengeResponseWebauthn1Type
- type WebAuthnChallengeResponse_Webauthn
- func (t WebAuthnChallengeResponse_Webauthn) AsWebAuthnChallengeResponseWebauthn0() (WebAuthnChallengeResponseWebauthn0, error)
- func (t WebAuthnChallengeResponse_Webauthn) AsWebAuthnChallengeResponseWebauthn1() (WebAuthnChallengeResponseWebauthn1, error)
- func (t *WebAuthnChallengeResponse_Webauthn) FromWebAuthnChallengeResponseWebauthn0(v WebAuthnChallengeResponseWebauthn0) error
- func (t *WebAuthnChallengeResponse_Webauthn) FromWebAuthnChallengeResponseWebauthn1(v WebAuthnChallengeResponseWebauthn1) error
- func (t WebAuthnChallengeResponse_Webauthn) MarshalJSON() ([]byte, error)
- func (t *WebAuthnChallengeResponse_Webauthn) MergeWebAuthnChallengeResponseWebauthn0(v WebAuthnChallengeResponseWebauthn0) error
- func (t *WebAuthnChallengeResponse_Webauthn) MergeWebAuthnChallengeResponseWebauthn1(v WebAuthnChallengeResponseWebauthn1) error
- func (t *WebAuthnChallengeResponse_Webauthn) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResponseSchema ¶
type AccessTokenResponseSchema struct {
// AccessToken A valid JWT that will expire in `expires_in` seconds.
AccessToken *string `json:"access_token,omitempty"`
// ExpiresAt UNIX timestamp after which the `access_token` should be renewed by using the refresh token with the `refresh_token` grant type.
ExpiresAt *int `json:"expires_at,omitempty"`
// ExpiresIn Number of seconds after which the `access_token` should be renewed by using the refresh token with the `refresh_token` grant type.
ExpiresIn *int `json:"expires_in,omitempty"`
// RefreshToken An opaque string that can be used once to obtain a new access and refresh token.
RefreshToken *string `json:"refresh_token,omitempty"`
// TokenType What type of token this is. Only `bearer` returned, may change in the future.
TokenType *string `json:"token_type,omitempty"`
// User Object describing the user related to the issued access and refresh tokens.
User *UserSchema `json:"user,omitempty"`
// WeakPassword Only returned on the `/token?grant_type=password` endpoint. When present, it indicates that the password used is weak. Inspect the `reasons` and/or `message` properties to identify why.
WeakPassword *struct {
Message *string `json:"message,omitempty"`
Reasons *[]AccessTokenResponseSchemaWeakPasswordReasons `json:"reasons,omitempty"`
} `json:"weak_password,omitempty"`
}
AccessTokenResponseSchema defines model for AccessTokenResponseSchema.
type AccessTokenResponseSchemaWeakPasswordReasons ¶
type AccessTokenResponseSchemaWeakPasswordReasons string
AccessTokenResponseSchemaWeakPasswordReasons defines model for AccessTokenResponseSchema.WeakPassword.Reasons.
const ( AccessTokenResponseSchemaWeakPasswordReasonsCharacters AccessTokenResponseSchemaWeakPasswordReasons = "characters" AccessTokenResponseSchemaWeakPasswordReasonsLength AccessTokenResponseSchemaWeakPasswordReasons = "length" AccessTokenResponseSchemaWeakPasswordReasonsPwned AccessTokenResponseSchemaWeakPasswordReasons = "pwned" )
Defines values for AccessTokenResponseSchemaWeakPasswordReasons.
func (AccessTokenResponseSchemaWeakPasswordReasons) Valid ¶
func (e AccessTokenResponseSchemaWeakPasswordReasons) Valid() bool
Valid indicates whether the value is a known member of the AccessTokenResponseSchemaWeakPasswordReasons enum.
type BadRequestResponse ¶
type BadRequestResponse = ErrorSchema
BadRequestResponse defines model for BadRequestResponse.
type CredentialCreationOptions ¶
type CredentialCreationOptions struct {
// Attestation Attestation conveyance preference
Attestation *CredentialCreationOptionsAttestation `json:"attestation,omitempty"`
// AttestationFormats Preferred attestation statement formats
AttestationFormats *[]string `json:"attestationFormats,omitempty"`
AuthenticatorSelection *struct {
// AuthenticatorAttachment Preferred authenticator type
AuthenticatorAttachment *CredentialCreationOptionsAuthenticatorSelectionAuthenticatorAttachment `json:"authenticatorAttachment,omitempty"`
// RequireResidentKey Whether to require a resident key (deprecated, use residentKey)
RequireResidentKey *bool `json:"requireResidentKey,omitempty"`
// ResidentKey Resident key requirement
ResidentKey *CredentialCreationOptionsAuthenticatorSelectionResidentKey `json:"residentKey,omitempty"`
// UserVerification User verification requirement
UserVerification *CredentialCreationOptionsAuthenticatorSelectionUserVerification `json:"userVerification,omitempty"`
} `json:"authenticatorSelection,omitempty"`
// Challenge A challenge to be signed by the authenticator
Challenge string `json:"challenge"`
// ExcludeCredentials List of credentials to exclude (prevent re-registration)
ExcludeCredentials *[]PublicKeyCredentialDescriptor `json:"excludeCredentials,omitempty"`
// Extensions WebAuthn extensions to enable
Extensions *map[string]interface{} `json:"extensions,omitempty"`
// Hints Hints for the browser about what types of authenticators to show
Hints *[]CredentialCreationOptionsHints `json:"hints,omitempty"`
// PubKeyCredParams List of supported public key algorithms
PubKeyCredParams []struct {
// Alg COSE algorithm identifier (e.g., -7 for ES256, -257 for RS256)
Alg int `json:"alg"`
Type CredentialCreationOptionsPubKeyCredParamsType `json:"type"`
} `json:"pubKeyCredParams"`
Rp struct {
// Id Relying Party ID (usually the domain)
Id string `json:"id"`
// Name Human-readable Relying Party name
Name string `json:"name"`
} `json:"rp"`
// Timeout Time (in milliseconds) that the caller is willing to wait for the call to complete
Timeout *int `json:"timeout,omitempty"`
User struct {
// DisplayName Human-readable user display name
DisplayName string `json:"displayName"`
// Id User handle (opaque byte sequence, base64url encoded string or raw bytes)
Id CredentialCreationOptions_User_Id `json:"id"`
// Name User account identifier (e.g., username or email)
Name string `json:"name"`
} `json:"user"`
}
CredentialCreationOptions PublicKeyCredentialCreationOptions for WebAuthn registration
type CredentialCreationOptionsAttestation ¶
type CredentialCreationOptionsAttestation string
CredentialCreationOptionsAttestation Attestation conveyance preference
const ( CredentialCreationOptionsAttestationDirect CredentialCreationOptionsAttestation = "direct" CredentialCreationOptionsAttestationEnterprise CredentialCreationOptionsAttestation = "enterprise" CredentialCreationOptionsAttestationIndirect CredentialCreationOptionsAttestation = "indirect" CredentialCreationOptionsAttestationNone CredentialCreationOptionsAttestation = "none" )
Defines values for CredentialCreationOptionsAttestation.
func (CredentialCreationOptionsAttestation) Valid ¶
func (e CredentialCreationOptionsAttestation) Valid() bool
Valid indicates whether the value is a known member of the CredentialCreationOptionsAttestation enum.
type CredentialCreationOptionsAuthenticatorSelectionAuthenticatorAttachment ¶
type CredentialCreationOptionsAuthenticatorSelectionAuthenticatorAttachment string
CredentialCreationOptionsAuthenticatorSelectionAuthenticatorAttachment Preferred authenticator type
const ( CrossPlatform CredentialCreationOptionsAuthenticatorSelectionAuthenticatorAttachment = "cross-platform" Platform CredentialCreationOptionsAuthenticatorSelectionAuthenticatorAttachment = "platform" )
Defines values for CredentialCreationOptionsAuthenticatorSelectionAuthenticatorAttachment.
type CredentialCreationOptionsAuthenticatorSelectionResidentKey ¶
type CredentialCreationOptionsAuthenticatorSelectionResidentKey string
CredentialCreationOptionsAuthenticatorSelectionResidentKey Resident key requirement
const ( CredentialCreationOptionsAuthenticatorSelectionResidentKeyDiscouraged CredentialCreationOptionsAuthenticatorSelectionResidentKey = "discouraged" CredentialCreationOptionsAuthenticatorSelectionResidentKeyPreferred CredentialCreationOptionsAuthenticatorSelectionResidentKey = "preferred" CredentialCreationOptionsAuthenticatorSelectionResidentKeyRequired CredentialCreationOptionsAuthenticatorSelectionResidentKey = "required" )
Defines values for CredentialCreationOptionsAuthenticatorSelectionResidentKey.
func (CredentialCreationOptionsAuthenticatorSelectionResidentKey) Valid ¶
func (e CredentialCreationOptionsAuthenticatorSelectionResidentKey) Valid() bool
Valid indicates whether the value is a known member of the CredentialCreationOptionsAuthenticatorSelectionResidentKey enum.
type CredentialCreationOptionsAuthenticatorSelectionUserVerification ¶
type CredentialCreationOptionsAuthenticatorSelectionUserVerification string
CredentialCreationOptionsAuthenticatorSelectionUserVerification User verification requirement
const ( CredentialCreationOptionsAuthenticatorSelectionUserVerificationDiscouraged CredentialCreationOptionsAuthenticatorSelectionUserVerification = "discouraged" CredentialCreationOptionsAuthenticatorSelectionUserVerificationPreferred CredentialCreationOptionsAuthenticatorSelectionUserVerification = "preferred" CredentialCreationOptionsAuthenticatorSelectionUserVerificationRequired CredentialCreationOptionsAuthenticatorSelectionUserVerification = "required" )
Defines values for CredentialCreationOptionsAuthenticatorSelectionUserVerification.
func (CredentialCreationOptionsAuthenticatorSelectionUserVerification) Valid ¶
func (e CredentialCreationOptionsAuthenticatorSelectionUserVerification) Valid() bool
Valid indicates whether the value is a known member of the CredentialCreationOptionsAuthenticatorSelectionUserVerification enum.
type CredentialCreationOptionsHints ¶
type CredentialCreationOptionsHints string
CredentialCreationOptionsHints defines model for CredentialCreationOptions.Hints.
const ( CredentialCreationOptionsHintsClientDevice CredentialCreationOptionsHints = "client-device" CredentialCreationOptionsHintsHybrid CredentialCreationOptionsHints = "hybrid" CredentialCreationOptionsHintsSecurityKey CredentialCreationOptionsHints = "security-key" )
Defines values for CredentialCreationOptionsHints.
func (CredentialCreationOptionsHints) Valid ¶
func (e CredentialCreationOptionsHints) Valid() bool
Valid indicates whether the value is a known member of the CredentialCreationOptionsHints enum.
type CredentialCreationOptionsPubKeyCredParamsType ¶
type CredentialCreationOptionsPubKeyCredParamsType string
CredentialCreationOptionsPubKeyCredParamsType defines model for CredentialCreationOptions.PubKeyCredParams.Type.
const (
CredentialCreationOptionsPubKeyCredParamsTypePublicKey CredentialCreationOptionsPubKeyCredParamsType = "public-key"
)
Defines values for CredentialCreationOptionsPubKeyCredParamsType.
func (CredentialCreationOptionsPubKeyCredParamsType) Valid ¶
func (e CredentialCreationOptionsPubKeyCredParamsType) Valid() bool
Valid indicates whether the value is a known member of the CredentialCreationOptionsPubKeyCredParamsType enum.
type CredentialCreationOptionsUserId0 ¶
type CredentialCreationOptionsUserId0 = string
CredentialCreationOptionsUserId0 defines model for CredentialCreationOptions.User.Id.0.
type CredentialCreationOptionsUserId1 ¶
type CredentialCreationOptionsUserId1 = string
CredentialCreationOptionsUserId1 defines model for CredentialCreationOptions.User.Id.1.
type CredentialCreationOptions_User_Id ¶
type CredentialCreationOptions_User_Id struct {
// contains filtered or unexported fields
}
CredentialCreationOptions_User_Id User handle (opaque byte sequence, base64url encoded string or raw bytes)
func (CredentialCreationOptions_User_Id) AsCredentialCreationOptionsUserId0 ¶
func (t CredentialCreationOptions_User_Id) AsCredentialCreationOptionsUserId0() (CredentialCreationOptionsUserId0, error)
AsCredentialCreationOptionsUserId0 returns the union data inside the CredentialCreationOptions_User_Id as a CredentialCreationOptionsUserId0
func (CredentialCreationOptions_User_Id) AsCredentialCreationOptionsUserId1 ¶
func (t CredentialCreationOptions_User_Id) AsCredentialCreationOptionsUserId1() (CredentialCreationOptionsUserId1, error)
AsCredentialCreationOptionsUserId1 returns the union data inside the CredentialCreationOptions_User_Id as a CredentialCreationOptionsUserId1
func (*CredentialCreationOptions_User_Id) FromCredentialCreationOptionsUserId0 ¶
func (t *CredentialCreationOptions_User_Id) FromCredentialCreationOptionsUserId0(v CredentialCreationOptionsUserId0) error
FromCredentialCreationOptionsUserId0 overwrites any union data inside the CredentialCreationOptions_User_Id as the provided CredentialCreationOptionsUserId0
func (*CredentialCreationOptions_User_Id) FromCredentialCreationOptionsUserId1 ¶
func (t *CredentialCreationOptions_User_Id) FromCredentialCreationOptionsUserId1(v CredentialCreationOptionsUserId1) error
FromCredentialCreationOptionsUserId1 overwrites any union data inside the CredentialCreationOptions_User_Id as the provided CredentialCreationOptionsUserId1
func (CredentialCreationOptions_User_Id) MarshalJSON ¶
func (t CredentialCreationOptions_User_Id) MarshalJSON() ([]byte, error)
func (*CredentialCreationOptions_User_Id) MergeCredentialCreationOptionsUserId0 ¶
func (t *CredentialCreationOptions_User_Id) MergeCredentialCreationOptionsUserId0(v CredentialCreationOptionsUserId0) error
MergeCredentialCreationOptionsUserId0 performs a merge with any union data inside the CredentialCreationOptions_User_Id, using the provided CredentialCreationOptionsUserId0
func (*CredentialCreationOptions_User_Id) MergeCredentialCreationOptionsUserId1 ¶
func (t *CredentialCreationOptions_User_Id) MergeCredentialCreationOptionsUserId1(v CredentialCreationOptionsUserId1) error
MergeCredentialCreationOptionsUserId1 performs a merge with any union data inside the CredentialCreationOptions_User_Id, using the provided CredentialCreationOptionsUserId1
func (*CredentialCreationOptions_User_Id) UnmarshalJSON ¶
func (t *CredentialCreationOptions_User_Id) UnmarshalJSON(b []byte) error
type CredentialRequestOptions ¶
type CredentialRequestOptions struct {
// AllowCredentials List of acceptable credentials for authentication
AllowCredentials *[]PublicKeyCredentialDescriptor `json:"allowCredentials,omitempty"`
// Challenge A challenge to be signed by the authenticator
Challenge string `json:"challenge"`
// Extensions WebAuthn extensions to enable
Extensions *map[string]interface{} `json:"extensions,omitempty"`
// Hints Hints for the browser about what types of authenticators to show
Hints *[]CredentialRequestOptionsHints `json:"hints,omitempty"`
// RpId Relying Party ID
RpId *string `json:"rpId,omitempty"`
// Timeout Time (in milliseconds) that the caller is willing to wait for the call to complete
Timeout *int `json:"timeout,omitempty"`
// UserVerification User verification requirement
UserVerification *CredentialRequestOptionsUserVerification `json:"userVerification,omitempty"`
}
CredentialRequestOptions PublicKeyCredentialRequestOptions for WebAuthn authentication
type CredentialRequestOptionsHints ¶
type CredentialRequestOptionsHints string
CredentialRequestOptionsHints defines model for CredentialRequestOptions.Hints.
const ( CredentialRequestOptionsHintsClientDevice CredentialRequestOptionsHints = "client-device" CredentialRequestOptionsHintsHybrid CredentialRequestOptionsHints = "hybrid" CredentialRequestOptionsHintsSecurityKey CredentialRequestOptionsHints = "security-key" )
Defines values for CredentialRequestOptionsHints.
func (CredentialRequestOptionsHints) Valid ¶
func (e CredentialRequestOptionsHints) Valid() bool
Valid indicates whether the value is a known member of the CredentialRequestOptionsHints enum.
type CredentialRequestOptionsUserVerification ¶
type CredentialRequestOptionsUserVerification string
CredentialRequestOptionsUserVerification User verification requirement
const ( CredentialRequestOptionsUserVerificationDiscouraged CredentialRequestOptionsUserVerification = "discouraged" CredentialRequestOptionsUserVerificationPreferred CredentialRequestOptionsUserVerification = "preferred" CredentialRequestOptionsUserVerificationRequired CredentialRequestOptionsUserVerification = "required" )
Defines values for CredentialRequestOptionsUserVerification.
func (CredentialRequestOptionsUserVerification) Valid ¶
func (e CredentialRequestOptionsUserVerification) Valid() bool
Valid indicates whether the value is a known member of the CredentialRequestOptionsUserVerification enum.
type CustomOAuthProviderSchema ¶
type CustomOAuthProviderSchema struct {
// AcceptableClientIds Additional acceptable client IDs for token validation
AcceptableClientIds *[]string `json:"acceptable_client_ids,omitempty"`
// AttributeMapping Maps provider claims to user attributes
//
// Example: {"email":"user_email","name":"full_name"}
AttributeMapping *map[string]interface{} `json:"attribute_mapping,omitempty"`
// AuthorizationParams Additional parameters to include in authorization requests as string key-value pairs (cannot override reserved OAuth parameters)
//
// Example: {"prompt":"consent"}
AuthorizationParams *map[string]string `json:"authorization_params,omitempty"`
// AuthorizationUrl OAuth 2.0 authorization endpoint (required for OAuth2 providers)
AuthorizationUrl *string `json:"authorization_url,omitempty"`
// ClientId OAuth client ID
ClientId string `json:"client_id"`
CreatedAt *time.Time `json:"created_at,omitempty"`
// CustomClaimsAllowlist Raw IdP claim keys copied verbatim into the user's custom_claims (e.g. groups, org_id). For OIDC providers these are read from the ID token claims (falling back to the userinfo response when no ID token is returned); for OAuth2 providers they are read from the userinfo response. Empty preserves no non-standard claims.
//
// Example: ["groups","org_id"]
CustomClaimsAllowlist *[]string `json:"custom_claims_allowlist,omitempty"`
// DiscoveryUrl OIDC discovery URL (optional, defaults to {issuer}/.well-known/openid-configuration)
DiscoveryUrl *string `json:"discovery_url,omitempty"`
// EmailOptional Whether email is optional for users from this provider
EmailOptional *bool `json:"email_optional,omitempty"`
// Enabled Whether the provider is enabled
Enabled *bool `json:"enabled,omitempty"`
// Id Unique provider identifier
Id openapi_types.UUID `json:"id"`
// Identifier Unique identifier for the provider (must start with 'custom:' prefix)
//
// Example: custom:mycompany
Identifier string `json:"identifier"`
// Issuer OIDC issuer URL (required for OIDC providers)
//
// Example: https://accounts.google.com
Issuer *string `json:"issuer,omitempty"`
// JwksUri JWKS URI for token validation (optional for OAuth2 providers)
JwksUri *string `json:"jwks_uri,omitempty"`
// Name Human-readable name of the provider
//
// Example: My Company SSO
Name string `json:"name"`
// PkceEnabled Whether PKCE (Proof Key for Code Exchange) is enabled
PkceEnabled *bool `json:"pkce_enabled,omitempty"`
// ProviderType Type of OAuth provider
ProviderType CustomOAuthProviderSchemaProviderType `json:"provider_type"`
// Scopes OAuth scopes to request (OIDC providers will automatically include 'openid')
//
// Example: ["openid","email","profile"]
Scopes *[]string `json:"scopes,omitempty"`
// SkipNonceCheck Skip nonce validation for OIDC (not recommended for production)
SkipNonceCheck *bool `json:"skip_nonce_check,omitempty"`
// TokenUrl OAuth 2.0 token endpoint (required for OAuth2 providers)
TokenUrl *string `json:"token_url,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
// UserinfoUrl OAuth 2.0 userinfo endpoint (required for OAuth2 providers)
UserinfoUrl *string `json:"userinfo_url,omitempty"`
}
CustomOAuthProviderSchema Represents a custom OAuth 2.0 or OIDC provider configuration
type CustomOAuthProviderSchemaProviderType ¶
type CustomOAuthProviderSchemaProviderType string
CustomOAuthProviderSchemaProviderType Type of OAuth provider
const ( CustomOAuthProviderSchemaProviderTypeOauth2 CustomOAuthProviderSchemaProviderType = "oauth2" CustomOAuthProviderSchemaProviderTypeOidc CustomOAuthProviderSchemaProviderType = "oidc" )
Defines values for CustomOAuthProviderSchemaProviderType.
func (CustomOAuthProviderSchemaProviderType) Valid ¶
func (e CustomOAuthProviderSchemaProviderType) Valid() bool
Valid indicates whether the value is a known member of the CustomOAuthProviderSchemaProviderType enum.
type DeleteUserOauthGrantsParams ¶
type DeleteUserOauthGrantsParams struct {
// ClientId The OAuth client identifier
ClientId openapi_types.UUID `form:"client_id" json:"client_id"`
}
DeleteUserOauthGrantsParams defines parameters for DeleteUserOauthGrants.
type ErrorSchema ¶
type ErrorSchema struct {
// Code The HTTP status code. Usually missing if `error` is present.
//
//
// Example: 400
Code *int `json:"code,omitempty"`
// Error Certain responses will contain this property with the provided values.
//
// Usually one of these:
// - invalid_request
// - unauthorized_client
// - access_denied
// - server_error
// - temporarily_unavailable
// - unsupported_otp_type
Error *string `json:"error,omitempty"`
// ErrorCode A short code used to describe the class of error encountered.
ErrorCode *string `json:"error_code,omitempty"`
// ErrorDescription Certain responses that have an `error` property may have this property which describes the error.
ErrorDescription *string `json:"error_description,omitempty"`
// Msg A basic message describing the problem with the request. Usually missing if `error` is present.
Msg *string `json:"msg,omitempty"`
// WeakPassword Only returned on the `/signup` endpoint if the password used is too weak. Inspect the `reasons` and `msg` property to identify the causes.
WeakPassword *struct {
Reasons *[]ErrorSchemaWeakPasswordReasons `json:"reasons,omitempty"`
} `json:"weak_password,omitempty"`
}
ErrorSchema defines model for ErrorSchema.
type ErrorSchemaWeakPasswordReasons ¶
type ErrorSchemaWeakPasswordReasons string
ErrorSchemaWeakPasswordReasons defines model for ErrorSchema.WeakPassword.Reasons.
const ( ErrorSchemaWeakPasswordReasonsCharacters ErrorSchemaWeakPasswordReasons = "characters" ErrorSchemaWeakPasswordReasonsLength ErrorSchemaWeakPasswordReasons = "length" ErrorSchemaWeakPasswordReasonsPwned ErrorSchemaWeakPasswordReasons = "pwned" )
Defines values for ErrorSchemaWeakPasswordReasons.
func (ErrorSchemaWeakPasswordReasons) Valid ¶
func (e ErrorSchemaWeakPasswordReasons) Valid() bool
Valid indicates whether the value is a known member of the ErrorSchemaWeakPasswordReasons enum.
type ForbiddenResponse ¶
type ForbiddenResponse = ErrorSchema
ForbiddenResponse defines model for ForbiddenResponse.
type GetAdminAuditParams ¶
type GetAdminAuditParams struct {
Page *int `form:"page,omitempty" json:"page,omitempty"`
PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}
GetAdminAuditParams defines parameters for GetAdminAudit.
type GetAdminCustomProvidersParams ¶
type GetAdminCustomProvidersParams struct {
// Type Filter by provider type
Type *GetAdminCustomProvidersParamsType `form:"type,omitempty" json:"type,omitempty"`
}
GetAdminCustomProvidersParams defines parameters for GetAdminCustomProviders.
type GetAdminCustomProvidersParamsType ¶
type GetAdminCustomProvidersParamsType string
GetAdminCustomProvidersParamsType defines parameters for GetAdminCustomProviders.
const ( GetAdminCustomProvidersParamsTypeOauth2 GetAdminCustomProvidersParamsType = "oauth2" GetAdminCustomProvidersParamsTypeOidc GetAdminCustomProvidersParamsType = "oidc" )
Defines values for GetAdminCustomProvidersParamsType.
func (GetAdminCustomProvidersParamsType) Valid ¶
func (e GetAdminCustomProvidersParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetAdminCustomProvidersParamsType enum.
type GetAdminOauthClientsParams ¶
type GetAdminOauthClientsParams struct {
Page *int `form:"page,omitempty" json:"page,omitempty"`
PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}
GetAdminOauthClientsParams defines parameters for GetAdminOauthClients.
type GetAdminUsersParams ¶
type GetAdminUsersParams struct {
Page *int `form:"page,omitempty" json:"page,omitempty"`
PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}
GetAdminUsersParams defines parameters for GetAdminUsers.
type GetAuthorizeParams ¶
type GetAuthorizeParams struct {
// Provider Name of the OAuth provider.
Provider string `form:"provider" json:"provider"`
// Scopes Space separated list of OAuth scopes to pass on to `provider`.
Scopes string `form:"scopes" json:"scopes"`
// InviteToken (Optional) A token representing a previous invitation of the user. A successful sign-in with OAuth will mark the invitation as completed.
InviteToken *string `form:"invite_token,omitempty" json:"invite_token,omitempty"`
// RedirectTo (Optional) URL to redirect back into the app on after OAuth sign-in completes successfully or not. If not specified will use the "Site URL" configuration option. If not allowed per the allow list it will use the "Site URL" configuration option.
RedirectTo *string `form:"redirect_to,omitempty" json:"redirect_to,omitempty"`
// CodeChallengeMethod (Optional) Method used to encrypt the verifier. Can be `plain` (no transformation) or `s256` (where SHA-256 is used). It is always recommended that `s256` is used.
CodeChallengeMethod *GetAuthorizeParamsCodeChallengeMethod `form:"code_challenge_method,omitempty" json:"code_challenge_method,omitempty"`
}
GetAuthorizeParams defines parameters for GetAuthorize.
type GetAuthorizeParamsCodeChallengeMethod ¶
type GetAuthorizeParamsCodeChallengeMethod string
GetAuthorizeParamsCodeChallengeMethod defines parameters for GetAuthorize.
const ( GetAuthorizeParamsCodeChallengeMethodPlain GetAuthorizeParamsCodeChallengeMethod = "plain" GetAuthorizeParamsCodeChallengeMethodS256 GetAuthorizeParamsCodeChallengeMethod = "s256" )
Defines values for GetAuthorizeParamsCodeChallengeMethod.
func (GetAuthorizeParamsCodeChallengeMethod) Valid ¶
func (e GetAuthorizeParamsCodeChallengeMethod) Valid() bool
Valid indicates whether the value is a known member of the GetAuthorizeParamsCodeChallengeMethod enum.
type GetOauthAuthorizeParams ¶
type GetOauthAuthorizeParams struct {
ResponseType GetOauthAuthorizeParamsResponseType `form:"response_type" json:"response_type"`
// ClientId The client identifier
ClientId string `form:"client_id" json:"client_id"`
// RedirectUri Client's redirect URI
RedirectUri string `form:"redirect_uri" json:"redirect_uri"`
// Scope Requested access scope
Scope *string `form:"scope,omitempty" json:"scope,omitempty"`
// State State parameter for CSRF protection
State *string `form:"state,omitempty" json:"state,omitempty"`
// CodeChallenge PKCE code challenge
CodeChallenge string `form:"code_challenge" json:"code_challenge"`
// CodeChallengeMethod PKCE code challenge method
CodeChallengeMethod GetOauthAuthorizeParamsCodeChallengeMethod `form:"code_challenge_method" json:"code_challenge_method"`
}
GetOauthAuthorizeParams defines parameters for GetOauthAuthorize.
type GetOauthAuthorizeParamsCodeChallengeMethod ¶
type GetOauthAuthorizeParamsCodeChallengeMethod string
GetOauthAuthorizeParamsCodeChallengeMethod defines parameters for GetOauthAuthorize.
const (
GetOauthAuthorizeParamsCodeChallengeMethodS256 GetOauthAuthorizeParamsCodeChallengeMethod = "S256"
)
Defines values for GetOauthAuthorizeParamsCodeChallengeMethod.
func (GetOauthAuthorizeParamsCodeChallengeMethod) Valid ¶
func (e GetOauthAuthorizeParamsCodeChallengeMethod) Valid() bool
Valid indicates whether the value is a known member of the GetOauthAuthorizeParamsCodeChallengeMethod enum.
type GetOauthAuthorizeParamsResponseType ¶
type GetOauthAuthorizeParamsResponseType string
GetOauthAuthorizeParamsResponseType defines parameters for GetOauthAuthorize.
const (
GetOauthAuthorizeParamsResponseTypeCode GetOauthAuthorizeParamsResponseType = "code"
)
Defines values for GetOauthAuthorizeParamsResponseType.
func (GetOauthAuthorizeParamsResponseType) Valid ¶
func (e GetOauthAuthorizeParamsResponseType) Valid() bool
Valid indicates whether the value is a known member of the GetOauthAuthorizeParamsResponseType enum.
type GetSamlMetadataParams ¶
type GetSamlMetadataParams struct {
// Download If set to `true` will add a `Content-Disposition` header to the response which will trigger a download dialog on the browser.
Download *bool `form:"download,omitempty" json:"download,omitempty"`
}
GetSamlMetadataParams defines parameters for GetSamlMetadata.
type GetUserIdentitiesAuthorizeParams ¶
type GetUserIdentitiesAuthorizeParams struct {
// Provider Name of the OAuth provider.
Provider string `form:"provider" json:"provider"`
// Scopes Space separated list of OAuth scopes to pass on to `provider`.
Scopes string `form:"scopes" json:"scopes"`
// RedirectTo (Optional) URL to redirect back into the app on after OAuth sign-in completes successfully or not. If not specified will use the "Site URL" configuration option. If not allowed per the allow list it will use the "Site URL" configuration option.
RedirectTo *string `form:"redirect_to,omitempty" json:"redirect_to,omitempty"`
// CodeChallengeMethod (Optional) Method used to encrypt the verifier. Can be `plain` (no transformation) or `s256` (where SHA-256 is used). It is always recommended that `s256` is used.
CodeChallengeMethod *GetUserIdentitiesAuthorizeParamsCodeChallengeMethod `form:"code_challenge_method,omitempty" json:"code_challenge_method,omitempty"`
}
GetUserIdentitiesAuthorizeParams defines parameters for GetUserIdentitiesAuthorize.
type GetUserIdentitiesAuthorizeParamsCodeChallengeMethod ¶
type GetUserIdentitiesAuthorizeParamsCodeChallengeMethod string
GetUserIdentitiesAuthorizeParamsCodeChallengeMethod defines parameters for GetUserIdentitiesAuthorize.
const ( GetUserIdentitiesAuthorizeParamsCodeChallengeMethodPlain GetUserIdentitiesAuthorizeParamsCodeChallengeMethod = "plain" GetUserIdentitiesAuthorizeParamsCodeChallengeMethodS256 GetUserIdentitiesAuthorizeParamsCodeChallengeMethod = "s256" )
Defines values for GetUserIdentitiesAuthorizeParamsCodeChallengeMethod.
func (GetUserIdentitiesAuthorizeParamsCodeChallengeMethod) Valid ¶
func (e GetUserIdentitiesAuthorizeParamsCodeChallengeMethod) Valid() bool
Valid indicates whether the value is a known member of the GetUserIdentitiesAuthorizeParamsCodeChallengeMethod enum.
type GetVerifyParams ¶
type GetVerifyParams struct {
Token string `form:"token" json:"token"`
Type GetVerifyParamsType `form:"type" json:"type"`
// RedirectTo (Optional) URL to redirect back into the app on after verification completes successfully. If not specified will use the "Site URL" configuration option. If not allowed per the allow list it will use the "Site URL" configuration option.
RedirectTo *string `form:"redirect_to,omitempty" json:"redirect_to,omitempty"`
}
GetVerifyParams defines parameters for GetVerify.
type GetVerifyParamsType ¶
type GetVerifyParamsType string
GetVerifyParamsType defines parameters for GetVerify.
const ( GetVerifyParamsTypeEmailChange GetVerifyParamsType = "email_change" GetVerifyParamsTypeInvite GetVerifyParamsType = "invite" GetVerifyParamsTypeMagiclink GetVerifyParamsType = "magiclink" GetVerifyParamsTypeRecovery GetVerifyParamsType = "recovery" GetVerifyParamsTypeSignup GetVerifyParamsType = "signup" )
Defines values for GetVerifyParamsType.
func (GetVerifyParamsType) Valid ¶
func (e GetVerifyParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetVerifyParamsType enum.
type GoTrueSecurity ¶
type GoTrueSecurity struct {
CaptchaToken *string `json:"captcha_token,omitempty"`
}
GoTrueSecurity Use this property to pass a CAPTCHA token only if you have enabled CAPTCHA protection.
type IdentitySchema ¶
type IdentitySchema struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
Email *openapi_types.Email `json:"email,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
IdentityData *map[string]interface{} `json:"identity_data,omitempty"`
IdentityId *openapi_types.UUID `json:"identity_id,omitempty"`
LastSignInAt *time.Time `json:"last_sign_in_at,omitempty"`
Provider *string `json:"provider,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
UserId *openapi_types.UUID `json:"user_id,omitempty"`
}
IdentitySchema defines model for IdentitySchema.
type InternalServerErrorResponse ¶
type InternalServerErrorResponse = ErrorSchema
InternalServerErrorResponse defines model for InternalServerErrorResponse.
type MFAFactorSchema ¶
type MFAFactorSchema struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
// FactorType Usually one of:
// - totp
// - phone
// - webauthn
FactorType *string `json:"factor_type,omitempty"`
FriendlyName *string `json:"friendly_name,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
LastChallengedAt *time.Time `json:"last_challenged_at,omitempty"`
Phone *string `json:"phone,omitempty"`
// Status Usually one of:
// - verified
// - unverified
Status *string `json:"status,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
WebauthnCredential *string `json:"webauthn_credential,omitempty"`
}
MFAFactorSchema Represents a MFA factor.
type OAuthClientSchema ¶
type OAuthClientSchema struct {
// ClientId Unique client identifier
ClientId *string `json:"client_id,omitempty"`
// ClientName Human-readable name of the client application
ClientName *string `json:"client_name,omitempty"`
// ClientSecret Client secret for confidential clients (only returned on registration/regeneration)
ClientSecret *string `json:"client_secret,omitempty"`
// ClientType Type of the client
ClientType *OAuthClientSchemaClientType `json:"client_type,omitempty"`
// ClientUri URL of the client application's homepage
ClientUri *string `json:"client_uri,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
// GrantTypes OAuth grant types the client is authorized to use
GrantTypes *[]OAuthClientSchemaGrantTypes `json:"grant_types,omitempty"`
// LogoUri URL of the client application's logo
LogoUri *string `json:"logo_uri,omitempty"`
// RedirectUris Array of redirect URIs used by the client
RedirectUris *[]string `json:"redirect_uris,omitempty"`
// RegistrationType Registration type of the client
RegistrationType *OAuthClientSchemaRegistrationType `json:"registration_type,omitempty"`
// ResponseTypes OAuth response types the client can use
ResponseTypes *[]OAuthClientSchemaResponseTypes `json:"response_types,omitempty"`
// Scope Space-separated list of scope values
Scope *string `json:"scope,omitempty"`
// TokenEndpointAuthMethod Authentication method for the token endpoint
TokenEndpointAuthMethod *OAuthClientSchemaTokenEndpointAuthMethod `json:"token_endpoint_auth_method,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
OAuthClientSchema Represents an OAuth 2.1 client
type OAuthClientSchemaClientType ¶
type OAuthClientSchemaClientType string
OAuthClientSchemaClientType Type of the client
const ( OAuthClientSchemaClientTypeConfidential OAuthClientSchemaClientType = "confidential" OAuthClientSchemaClientTypePublic OAuthClientSchemaClientType = "public" )
Defines values for OAuthClientSchemaClientType.
func (OAuthClientSchemaClientType) Valid ¶
func (e OAuthClientSchemaClientType) Valid() bool
Valid indicates whether the value is a known member of the OAuthClientSchemaClientType enum.
type OAuthClientSchemaGrantTypes ¶
type OAuthClientSchemaGrantTypes string
OAuthClientSchemaGrantTypes defines model for OAuthClientSchema.GrantTypes.
const ( OAuthClientSchemaGrantTypesAuthorizationCode OAuthClientSchemaGrantTypes = "authorization_code" OAuthClientSchemaGrantTypesRefreshToken OAuthClientSchemaGrantTypes = "refresh_token" )
Defines values for OAuthClientSchemaGrantTypes.
func (OAuthClientSchemaGrantTypes) Valid ¶
func (e OAuthClientSchemaGrantTypes) Valid() bool
Valid indicates whether the value is a known member of the OAuthClientSchemaGrantTypes enum.
type OAuthClientSchemaRegistrationType ¶
type OAuthClientSchemaRegistrationType string
OAuthClientSchemaRegistrationType Registration type of the client
const ( Dynamic OAuthClientSchemaRegistrationType = "dynamic" Manual OAuthClientSchemaRegistrationType = "manual" )
Defines values for OAuthClientSchemaRegistrationType.
func (OAuthClientSchemaRegistrationType) Valid ¶
func (e OAuthClientSchemaRegistrationType) Valid() bool
Valid indicates whether the value is a known member of the OAuthClientSchemaRegistrationType enum.
type OAuthClientSchemaResponseTypes ¶
type OAuthClientSchemaResponseTypes string
OAuthClientSchemaResponseTypes defines model for OAuthClientSchema.ResponseTypes.
const (
OAuthClientSchemaResponseTypesCode OAuthClientSchemaResponseTypes = "code"
)
Defines values for OAuthClientSchemaResponseTypes.
func (OAuthClientSchemaResponseTypes) Valid ¶
func (e OAuthClientSchemaResponseTypes) Valid() bool
Valid indicates whether the value is a known member of the OAuthClientSchemaResponseTypes enum.
type OAuthClientSchemaTokenEndpointAuthMethod ¶
type OAuthClientSchemaTokenEndpointAuthMethod string
OAuthClientSchemaTokenEndpointAuthMethod Authentication method for the token endpoint
const ( OAuthClientSchemaTokenEndpointAuthMethodClientSecretBasic OAuthClientSchemaTokenEndpointAuthMethod = "client_secret_basic" OAuthClientSchemaTokenEndpointAuthMethodClientSecretPost OAuthClientSchemaTokenEndpointAuthMethod = "client_secret_post" OAuthClientSchemaTokenEndpointAuthMethodNone OAuthClientSchemaTokenEndpointAuthMethod = "none" )
Defines values for OAuthClientSchemaTokenEndpointAuthMethod.
func (OAuthClientSchemaTokenEndpointAuthMethod) Valid ¶
func (e OAuthClientSchemaTokenEndpointAuthMethod) Valid() bool
Valid indicates whether the value is a known member of the OAuthClientSchemaTokenEndpointAuthMethod enum.
type PostAdminCustomProvidersJSONBody ¶
type PostAdminCustomProvidersJSONBody struct {
// AcceptableClientIds Additional acceptable client IDs for token validation
AcceptableClientIds *[]string `json:"acceptable_client_ids,omitempty"`
// AttributeMapping Map provider claims to user attributes (cannot map to protected system fields)
//
// Example: {"email":"user_email","name":"full_name"}
AttributeMapping *map[string]interface{} `json:"attribute_mapping,omitempty"`
// AuthorizationParams Additional authorization request parameters as string key-value pairs (cannot override reserved OAuth parameters)
//
// Example: {"prompt":"consent"}
AuthorizationParams *map[string]string `json:"authorization_params,omitempty"`
// AuthorizationUrl OAuth 2.0 authorization endpoint (required for provider_type: oauth2)
//
// Example: https://provider.com/oauth/authorize
AuthorizationUrl *string `json:"authorization_url,omitempty"`
// ClientId OAuth client ID from the provider
ClientId string `json:"client_id"`
// ClientSecret OAuth client secret (will be encrypted at rest)
ClientSecret string `json:"client_secret"`
// CustomClaimsAllowlist Raw IdP claim keys to copy verbatim into the user's custom_claims (e.g. groups, org_id). For OIDC providers these are read from the ID token claims (falling back to the userinfo response when no ID token is returned); for OAuth2 providers they are read from the userinfo response. Empty preserves no non-standard claims.
//
// Example: ["groups","org_id"]
CustomClaimsAllowlist *[]string `json:"custom_claims_allowlist,omitempty"`
// DiscoveryUrl OIDC discovery URL (optional for OIDC, defaults to {issuer}/.well-known/openid-configuration)
DiscoveryUrl *string `json:"discovery_url,omitempty"`
// EmailOptional Whether email is optional for users from this provider
EmailOptional *bool `json:"email_optional,omitempty"`
// Enabled Whether the provider is enabled
Enabled *bool `json:"enabled,omitempty"`
// Identifier Unique identifier (will be prefixed with 'custom:' automatically). Cannot use reserved provider names.
//
// Example: mycompany
Identifier string `json:"identifier"`
// Issuer OIDC issuer URL (required for provider_type: oidc)
//
// Example: https://accounts.google.com
Issuer *string `json:"issuer,omitempty"`
// JwksUri JWKS URI for token validation (optional for OAuth2)
JwksUri *string `json:"jwks_uri,omitempty"`
// Name Human-readable display name
//
// Example: My Company SSO
Name string `json:"name"`
// PkceEnabled Enable PKCE (Proof Key for Code Exchange)
PkceEnabled *bool `json:"pkce_enabled,omitempty"`
// ProviderType Type of OAuth provider
ProviderType PostAdminCustomProvidersJSONBodyProviderType `json:"provider_type"`
// Scopes OAuth scopes to request (OIDC providers will automatically include 'openid')
//
// Example: ["email","profile"]
Scopes *[]string `json:"scopes,omitempty"`
// SkipNonceCheck Skip nonce validation for OIDC (not recommended for production)
SkipNonceCheck *bool `json:"skip_nonce_check,omitempty"`
// TokenUrl OAuth 2.0 token endpoint (required for provider_type: oauth2)
//
// Example: https://provider.com/oauth/token
TokenUrl *string `json:"token_url,omitempty"`
// UserinfoUrl OAuth 2.0 userinfo endpoint (required for provider_type: oauth2)
//
// Example: https://provider.com/oauth/userinfo
UserinfoUrl *string `json:"userinfo_url,omitempty"`
}
PostAdminCustomProvidersJSONBody defines parameters for PostAdminCustomProviders.
type PostAdminCustomProvidersJSONBodyProviderType ¶
type PostAdminCustomProvidersJSONBodyProviderType string
PostAdminCustomProvidersJSONBodyProviderType defines parameters for PostAdminCustomProviders.
const ( PostAdminCustomProvidersJSONBodyProviderTypeOauth2 PostAdminCustomProvidersJSONBodyProviderType = "oauth2" PostAdminCustomProvidersJSONBodyProviderTypeOidc PostAdminCustomProvidersJSONBodyProviderType = "oidc" )
Defines values for PostAdminCustomProvidersJSONBodyProviderType.
func (PostAdminCustomProvidersJSONBodyProviderType) Valid ¶
func (e PostAdminCustomProvidersJSONBodyProviderType) Valid() bool
Valid indicates whether the value is a known member of the PostAdminCustomProvidersJSONBodyProviderType enum.
type PostAdminCustomProvidersJSONRequestBody ¶
type PostAdminCustomProvidersJSONRequestBody PostAdminCustomProvidersJSONBody
PostAdminCustomProvidersJSONRequestBody defines body for PostAdminCustomProviders for application/json ContentType.
type PostAdminGenerateLink200JSONResponseBody ¶
type PostAdminGenerateLink200JSONResponseBody struct {
ActionLink *string `json:"action_link,omitempty"`
EmailOtp *string `json:"email_otp,omitempty"`
HashedToken *string `json:"hashed_token,omitempty"`
RedirectTo *string `json:"redirect_to,omitempty"`
VerificationType *string `json:"verification_type,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
PostAdminGenerateLink200JSONResponseBody defines parameters for PostAdminGenerateLink.
func (PostAdminGenerateLink200JSONResponseBody) Get ¶
func (a PostAdminGenerateLink200JSONResponseBody) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for PostAdminGenerateLink200JSONResponseBody. Returns the specified element and whether it was found
func (PostAdminGenerateLink200JSONResponseBody) MarshalJSON ¶
func (a PostAdminGenerateLink200JSONResponseBody) MarshalJSON() ([]byte, error)
Override default JSON handling for PostAdminGenerateLink200JSONResponseBody to handle AdditionalProperties
func (*PostAdminGenerateLink200JSONResponseBody) Set ¶
func (a *PostAdminGenerateLink200JSONResponseBody) Set(fieldName string, value interface{})
Setter for additional properties for PostAdminGenerateLink200JSONResponseBody
func (*PostAdminGenerateLink200JSONResponseBody) UnmarshalJSON ¶
func (a *PostAdminGenerateLink200JSONResponseBody) UnmarshalJSON(b []byte) error
Override default JSON handling for PostAdminGenerateLink200JSONResponseBody to handle AdditionalProperties
type PostAdminGenerateLinkJSONBody ¶
type PostAdminGenerateLinkJSONBody struct {
Data *map[string]interface{} `json:"data,omitempty"`
Email openapi_types.Email `json:"email"`
NewEmail *openapi_types.Email `json:"new_email,omitempty"`
Password *string `json:"password,omitempty"`
RedirectTo *string `json:"redirect_to,omitempty"`
Type PostAdminGenerateLinkJSONBodyType `json:"type"`
}
PostAdminGenerateLinkJSONBody defines parameters for PostAdminGenerateLink.
type PostAdminGenerateLinkJSONBodyType ¶
type PostAdminGenerateLinkJSONBodyType string
PostAdminGenerateLinkJSONBodyType defines parameters for PostAdminGenerateLink.
const ( PostAdminGenerateLinkJSONBodyTypeEmailChangeCurrent PostAdminGenerateLinkJSONBodyType = "email_change_current" PostAdminGenerateLinkJSONBodyTypeEmailChangeNew PostAdminGenerateLinkJSONBodyType = "email_change_new" PostAdminGenerateLinkJSONBodyTypeMagiclink PostAdminGenerateLinkJSONBodyType = "magiclink" PostAdminGenerateLinkJSONBodyTypeRecovery PostAdminGenerateLinkJSONBodyType = "recovery" PostAdminGenerateLinkJSONBodyTypeSignup PostAdminGenerateLinkJSONBodyType = "signup" )
Defines values for PostAdminGenerateLinkJSONBodyType.
func (PostAdminGenerateLinkJSONBodyType) Valid ¶
func (e PostAdminGenerateLinkJSONBodyType) Valid() bool
Valid indicates whether the value is a known member of the PostAdminGenerateLinkJSONBodyType enum.
type PostAdminGenerateLinkJSONRequestBody ¶
type PostAdminGenerateLinkJSONRequestBody PostAdminGenerateLinkJSONBody
PostAdminGenerateLinkJSONRequestBody defines body for PostAdminGenerateLink for application/json ContentType.
type PostAdminOauthClientsJSONBody ¶
type PostAdminOauthClientsJSONBody struct {
// ClientName Human-readable name of the client application
ClientName string `json:"client_name"`
// ClientType Type of the client. Optional. If not provided, will be inferred from token_endpoint_auth_method or defaults to 'confidential'. Public clients are used for applications that cannot securely store credentials (e.g., SPAs, mobile apps). Confidential clients can securely store credentials (e.g., server-side applications).
ClientType *PostAdminOauthClientsJSONBodyClientType `json:"client_type,omitempty"`
// ClientUri URL of the client application's homepage
ClientUri *string `json:"client_uri,omitempty"`
// GrantTypes OAuth grant types the client will use (defaults to both if not specified)
GrantTypes *[]PostAdminOauthClientsJSONBodyGrantTypes `json:"grant_types,omitempty"`
// LogoUri URL of the client application's logo
LogoUri *string `json:"logo_uri,omitempty"`
// RedirectUris Array of redirect URIs used by the client (maximum 10)
RedirectUris []string `json:"redirect_uris"`
// ResponseTypes OAuth response types the client can use
ResponseTypes *[]PostAdminOauthClientsJSONBodyResponseTypes `json:"response_types,omitempty"`
// Scope Space-separated list of scope values
Scope *string `json:"scope,omitempty"`
// TokenEndpointAuthMethod Authentication method for the token endpoint. Optional. 'none' is for public clients, 'client_secret_basic' and 'client_secret_post' are for confidential clients. If provided, must be consistent with client_type. If not provided, will be inferred from client_type.
TokenEndpointAuthMethod *PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod `json:"token_endpoint_auth_method,omitempty"`
}
PostAdminOauthClientsJSONBody defines parameters for PostAdminOauthClients.
type PostAdminOauthClientsJSONBodyClientType ¶
type PostAdminOauthClientsJSONBodyClientType string
PostAdminOauthClientsJSONBodyClientType defines parameters for PostAdminOauthClients.
const ( PostAdminOauthClientsJSONBodyClientTypeConfidential PostAdminOauthClientsJSONBodyClientType = "confidential" PostAdminOauthClientsJSONBodyClientTypePublic PostAdminOauthClientsJSONBodyClientType = "public" )
Defines values for PostAdminOauthClientsJSONBodyClientType.
func (PostAdminOauthClientsJSONBodyClientType) Valid ¶
func (e PostAdminOauthClientsJSONBodyClientType) Valid() bool
Valid indicates whether the value is a known member of the PostAdminOauthClientsJSONBodyClientType enum.
type PostAdminOauthClientsJSONBodyGrantTypes ¶
type PostAdminOauthClientsJSONBodyGrantTypes string
PostAdminOauthClientsJSONBodyGrantTypes defines parameters for PostAdminOauthClients.
const ( PostAdminOauthClientsJSONBodyGrantTypesAuthorizationCode PostAdminOauthClientsJSONBodyGrantTypes = "authorization_code" PostAdminOauthClientsJSONBodyGrantTypesRefreshToken PostAdminOauthClientsJSONBodyGrantTypes = "refresh_token" )
Defines values for PostAdminOauthClientsJSONBodyGrantTypes.
func (PostAdminOauthClientsJSONBodyGrantTypes) Valid ¶
func (e PostAdminOauthClientsJSONBodyGrantTypes) Valid() bool
Valid indicates whether the value is a known member of the PostAdminOauthClientsJSONBodyGrantTypes enum.
type PostAdminOauthClientsJSONBodyResponseTypes ¶
type PostAdminOauthClientsJSONBodyResponseTypes string
PostAdminOauthClientsJSONBodyResponseTypes defines parameters for PostAdminOauthClients.
const (
PostAdminOauthClientsJSONBodyResponseTypesCode PostAdminOauthClientsJSONBodyResponseTypes = "code"
)
Defines values for PostAdminOauthClientsJSONBodyResponseTypes.
func (PostAdminOauthClientsJSONBodyResponseTypes) Valid ¶
func (e PostAdminOauthClientsJSONBodyResponseTypes) Valid() bool
Valid indicates whether the value is a known member of the PostAdminOauthClientsJSONBodyResponseTypes enum.
type PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod ¶
type PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod string
PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod defines parameters for PostAdminOauthClients.
const ( PostAdminOauthClientsJSONBodyTokenEndpointAuthMethodClientSecretBasic PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod = "client_secret_basic" PostAdminOauthClientsJSONBodyTokenEndpointAuthMethodClientSecretPost PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod = "client_secret_post" PostAdminOauthClientsJSONBodyTokenEndpointAuthMethodNone PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod = "none" )
Defines values for PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod.
func (PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod) Valid ¶
func (e PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod) Valid() bool
Valid indicates whether the value is a known member of the PostAdminOauthClientsJSONBodyTokenEndpointAuthMethod enum.
type PostAdminOauthClientsJSONRequestBody ¶
type PostAdminOauthClientsJSONRequestBody PostAdminOauthClientsJSONBody
PostAdminOauthClientsJSONRequestBody defines body for PostAdminOauthClients for application/json ContentType.
type PostAdminSsoProvidersJSONBody ¶
type PostAdminSsoProvidersJSONBody struct {
AttributeMapping *SAMLAttributeMappingSchema `json:"attribute_mapping,omitempty"`
Domains *[]string `json:"domains,omitempty"`
MetadataUrl *string `json:"metadata_url,omitempty"`
MetadataXml *string `json:"metadata_xml,omitempty"`
Type PostAdminSsoProvidersJSONBodyType `json:"type"`
}
PostAdminSsoProvidersJSONBody defines parameters for PostAdminSsoProviders.
type PostAdminSsoProvidersJSONBodyType ¶
type PostAdminSsoProvidersJSONBodyType string
PostAdminSsoProvidersJSONBodyType defines parameters for PostAdminSsoProviders.
const (
Saml PostAdminSsoProvidersJSONBodyType = "saml"
)
Defines values for PostAdminSsoProvidersJSONBodyType.
func (PostAdminSsoProvidersJSONBodyType) Valid ¶
func (e PostAdminSsoProvidersJSONBodyType) Valid() bool
Valid indicates whether the value is a known member of the PostAdminSsoProvidersJSONBodyType enum.
type PostAdminSsoProvidersJSONRequestBody ¶
type PostAdminSsoProvidersJSONRequestBody PostAdminSsoProvidersJSONBody
PostAdminSsoProvidersJSONRequestBody defines body for PostAdminSsoProviders for application/json ContentType.
type PostFactors200JSONResponseBodyType ¶
type PostFactors200JSONResponseBodyType string
PostFactors200JSONResponseBodyType defines parameters for PostFactors.
const ( PostFactors200JSONResponseBodyTypePhone PostFactors200JSONResponseBodyType = "phone" PostFactors200JSONResponseBodyTypeTotp PostFactors200JSONResponseBodyType = "totp" PostFactors200JSONResponseBodyTypeWebauthn PostFactors200JSONResponseBodyType = "webauthn" )
Defines values for PostFactors200JSONResponseBodyType.
func (PostFactors200JSONResponseBodyType) Valid ¶
func (e PostFactors200JSONResponseBodyType) Valid() bool
Valid indicates whether the value is a known member of the PostFactors200JSONResponseBodyType enum.
type PostFactorsFactorIdChallenge200JSONResponseBody ¶
type PostFactorsFactorIdChallenge200JSONResponseBody struct {
// contains filtered or unexported fields
}
PostFactorsFactorIdChallenge200JSONResponseBody defines parameters for PostFactorsFactorIdChallenge.
func (PostFactorsFactorIdChallenge200JSONResponseBody) AsTOTPPhoneChallengeResponse ¶
func (t PostFactorsFactorIdChallenge200JSONResponseBody) AsTOTPPhoneChallengeResponse() (TOTPPhoneChallengeResponse, error)
AsTOTPPhoneChallengeResponse returns the union data inside the PostFactorsFactorIdChallenge200JSONResponseBody as a TOTPPhoneChallengeResponse
func (PostFactorsFactorIdChallenge200JSONResponseBody) AsWebAuthnChallengeResponse ¶
func (t PostFactorsFactorIdChallenge200JSONResponseBody) AsWebAuthnChallengeResponse() (WebAuthnChallengeResponse, error)
AsWebAuthnChallengeResponse returns the union data inside the PostFactorsFactorIdChallenge200JSONResponseBody as a WebAuthnChallengeResponse
func (*PostFactorsFactorIdChallenge200JSONResponseBody) FromTOTPPhoneChallengeResponse ¶
func (t *PostFactorsFactorIdChallenge200JSONResponseBody) FromTOTPPhoneChallengeResponse(v TOTPPhoneChallengeResponse) error
FromTOTPPhoneChallengeResponse overwrites any union data inside the PostFactorsFactorIdChallenge200JSONResponseBody as the provided TOTPPhoneChallengeResponse
func (*PostFactorsFactorIdChallenge200JSONResponseBody) FromWebAuthnChallengeResponse ¶
func (t *PostFactorsFactorIdChallenge200JSONResponseBody) FromWebAuthnChallengeResponse(v WebAuthnChallengeResponse) error
FromWebAuthnChallengeResponse overwrites any union data inside the PostFactorsFactorIdChallenge200JSONResponseBody as the provided WebAuthnChallengeResponse
func (PostFactorsFactorIdChallenge200JSONResponseBody) MarshalJSON ¶
func (t PostFactorsFactorIdChallenge200JSONResponseBody) MarshalJSON() ([]byte, error)
func (*PostFactorsFactorIdChallenge200JSONResponseBody) MergeTOTPPhoneChallengeResponse ¶
func (t *PostFactorsFactorIdChallenge200JSONResponseBody) MergeTOTPPhoneChallengeResponse(v TOTPPhoneChallengeResponse) error
MergeTOTPPhoneChallengeResponse performs a merge with any union data inside the PostFactorsFactorIdChallenge200JSONResponseBody, using the provided TOTPPhoneChallengeResponse
func (*PostFactorsFactorIdChallenge200JSONResponseBody) MergeWebAuthnChallengeResponse ¶
func (t *PostFactorsFactorIdChallenge200JSONResponseBody) MergeWebAuthnChallengeResponse(v WebAuthnChallengeResponse) error
MergeWebAuthnChallengeResponse performs a merge with any union data inside the PostFactorsFactorIdChallenge200JSONResponseBody, using the provided WebAuthnChallengeResponse
func (*PostFactorsFactorIdChallenge200JSONResponseBody) UnmarshalJSON ¶
func (t *PostFactorsFactorIdChallenge200JSONResponseBody) UnmarshalJSON(b []byte) error
type PostFactorsFactorIdChallengeJSONBody ¶
type PostFactorsFactorIdChallengeJSONBody struct {
Channel *PostFactorsFactorIdChallengeJSONBodyChannel `json:"channel,omitempty"`
}
PostFactorsFactorIdChallengeJSONBody defines parameters for PostFactorsFactorIdChallenge.
type PostFactorsFactorIdChallengeJSONBodyChannel ¶
type PostFactorsFactorIdChallengeJSONBodyChannel string
PostFactorsFactorIdChallengeJSONBodyChannel defines parameters for PostFactorsFactorIdChallenge.
const ( PostFactorsFactorIdChallengeJSONBodyChannelSms PostFactorsFactorIdChallengeJSONBodyChannel = "sms" PostFactorsFactorIdChallengeJSONBodyChannelWhatsapp PostFactorsFactorIdChallengeJSONBodyChannel = "whatsapp" )
Defines values for PostFactorsFactorIdChallengeJSONBodyChannel.
func (PostFactorsFactorIdChallengeJSONBodyChannel) Valid ¶
func (e PostFactorsFactorIdChallengeJSONBodyChannel) Valid() bool
Valid indicates whether the value is a known member of the PostFactorsFactorIdChallengeJSONBodyChannel enum.
type PostFactorsFactorIdChallengeJSONRequestBody ¶
type PostFactorsFactorIdChallengeJSONRequestBody PostFactorsFactorIdChallengeJSONBody
PostFactorsFactorIdChallengeJSONRequestBody defines body for PostFactorsFactorIdChallenge for application/json ContentType.
type PostFactorsFactorIdVerifyJSONBody ¶
type PostFactorsFactorIdVerifyJSONBody struct {
ChallengeId openapi_types.UUID `json:"challenge_id"`
Code *string `json:"code,omitempty"`
Webauthn *struct {
// CredentialResponse WebAuthn credential response from the client
CredentialResponse map[string]interface{} `json:"credential_response"`
// Type Type of WebAuthn operation
Type PostFactorsFactorIdVerifyJSONBodyWebauthnType `json:"type"`
} `json:"webauthn,omitempty"`
}
PostFactorsFactorIdVerifyJSONBody defines parameters for PostFactorsFactorIdVerify.
type PostFactorsFactorIdVerifyJSONBodyWebauthnType ¶
type PostFactorsFactorIdVerifyJSONBodyWebauthnType string
PostFactorsFactorIdVerifyJSONBodyWebauthnType defines parameters for PostFactorsFactorIdVerify.
const ( PostFactorsFactorIdVerifyJSONBodyWebauthnTypeCreate PostFactorsFactorIdVerifyJSONBodyWebauthnType = "create" PostFactorsFactorIdVerifyJSONBodyWebauthnTypeRequest PostFactorsFactorIdVerifyJSONBodyWebauthnType = "request" )
Defines values for PostFactorsFactorIdVerifyJSONBodyWebauthnType.
func (PostFactorsFactorIdVerifyJSONBodyWebauthnType) Valid ¶
func (e PostFactorsFactorIdVerifyJSONBodyWebauthnType) Valid() bool
Valid indicates whether the value is a known member of the PostFactorsFactorIdVerifyJSONBodyWebauthnType enum.
type PostFactorsFactorIdVerifyJSONRequestBody ¶
type PostFactorsFactorIdVerifyJSONRequestBody PostFactorsFactorIdVerifyJSONBody
PostFactorsFactorIdVerifyJSONRequestBody defines body for PostFactorsFactorIdVerify for application/json ContentType.
type PostFactorsJSONBody ¶
type PostFactorsJSONBody struct {
FactorType PostFactorsJSONBodyFactorType `json:"factor_type"`
FriendlyName *string `json:"friendly_name,omitempty"`
Issuer *string `json:"issuer,omitempty"`
Phone *string `json:"phone,omitempty"`
}
PostFactorsJSONBody defines parameters for PostFactors.
type PostFactorsJSONBodyFactorType ¶
type PostFactorsJSONBodyFactorType string
PostFactorsJSONBodyFactorType defines parameters for PostFactors.
const ( PostFactorsJSONBodyFactorTypePhone PostFactorsJSONBodyFactorType = "phone" PostFactorsJSONBodyFactorTypeTotp PostFactorsJSONBodyFactorType = "totp" PostFactorsJSONBodyFactorTypeWebauthn PostFactorsJSONBodyFactorType = "webauthn" )
Defines values for PostFactorsJSONBodyFactorType.
func (PostFactorsJSONBodyFactorType) Valid ¶
func (e PostFactorsJSONBodyFactorType) Valid() bool
Valid indicates whether the value is a known member of the PostFactorsJSONBodyFactorType enum.
type PostFactorsJSONRequestBody ¶
type PostFactorsJSONRequestBody PostFactorsJSONBody
PostFactorsJSONRequestBody defines body for PostFactors for application/json ContentType.
type PostInviteJSONBody ¶
type PostInviteJSONBody struct {
Data *map[string]interface{} `json:"data,omitempty"`
Email string `json:"email"`
}
PostInviteJSONBody defines parameters for PostInvite.
type PostInviteJSONRequestBody ¶
type PostInviteJSONRequestBody PostInviteJSONBody
PostInviteJSONRequestBody defines body for PostInvite for application/json ContentType.
type PostLogoutParams ¶
type PostLogoutParams struct {
// Scope (Optional.) Determines how the user should be logged out. When `global` is used, the user is logged out from all active sessions. When `local` is used, the user is logged out from the current session. When `others` is used, the user is logged out from all other sessions except the current one. Clients should remove stored access and refresh tokens except when `others` is used.
Scope *PostLogoutParamsScope `form:"scope,omitempty" json:"scope,omitempty"`
}
PostLogoutParams defines parameters for PostLogout.
type PostLogoutParamsScope ¶
type PostLogoutParamsScope string
PostLogoutParamsScope defines parameters for PostLogout.
const ( Global PostLogoutParamsScope = "global" Local PostLogoutParamsScope = "local" Others PostLogoutParamsScope = "others" )
Defines values for PostLogoutParamsScope.
func (PostLogoutParamsScope) Valid ¶
func (e PostLogoutParamsScope) Valid() bool
Valid indicates whether the value is a known member of the PostLogoutParamsScope enum.
type PostMagiclinkJSONBody ¶
type PostMagiclinkJSONBody struct {
Data *map[string]interface{} `json:"data,omitempty"`
Email openapi_types.Email `json:"email"`
// GotrueMetaSecurity Use this property to pass a CAPTCHA token only if you have enabled CAPTCHA protection.
GotrueMetaSecurity *GoTrueSecurity `json:"gotrue_meta_security,omitempty"`
}
PostMagiclinkJSONBody defines parameters for PostMagiclink.
type PostMagiclinkJSONRequestBody ¶
type PostMagiclinkJSONRequestBody PostMagiclinkJSONBody
PostMagiclinkJSONRequestBody defines body for PostMagiclink for application/json ContentType.
type PostOauthAuthorizationsAuthorizationIdConsentJSONBody ¶
type PostOauthAuthorizationsAuthorizationIdConsentJSONBody struct {
// Action Whether to approve or deny the authorization
Action PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction `json:"action"`
}
PostOauthAuthorizationsAuthorizationIdConsentJSONBody defines parameters for PostOauthAuthorizationsAuthorizationIdConsent.
type PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction ¶
type PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction string
PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction defines parameters for PostOauthAuthorizationsAuthorizationIdConsent.
const ( Approve PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction = "approve" Deny PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction = "deny" )
Defines values for PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction.
func (PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction) Valid ¶
func (e PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction) Valid() bool
Valid indicates whether the value is a known member of the PostOauthAuthorizationsAuthorizationIdConsentJSONBodyAction enum.
type PostOauthAuthorizationsAuthorizationIdConsentJSONRequestBody ¶
type PostOauthAuthorizationsAuthorizationIdConsentJSONRequestBody PostOauthAuthorizationsAuthorizationIdConsentJSONBody
PostOauthAuthorizationsAuthorizationIdConsentJSONRequestBody defines body for PostOauthAuthorizationsAuthorizationIdConsent for application/json ContentType.
type PostOauthClientsRegisterJSONBody ¶
type PostOauthClientsRegisterJSONBody struct {
// ClientName Human-readable name of the client application
ClientName string `json:"client_name"`
// ClientType Type of the client. Optional. If not provided, will be inferred from token_endpoint_auth_method or defaults to 'confidential'. Public clients are used for applications that cannot securely store credentials (e.g., SPAs, mobile apps). Confidential clients can securely store credentials (e.g., server-side applications).
ClientType *PostOauthClientsRegisterJSONBodyClientType `json:"client_type,omitempty"`
// ClientUri URL of the client application's homepage
ClientUri *string `json:"client_uri,omitempty"`
// GrantTypes OAuth grant types the client will use (defaults to both if not specified)
GrantTypes *[]PostOauthClientsRegisterJSONBodyGrantTypes `json:"grant_types,omitempty"`
// LogoUri URL of the client application's logo
LogoUri *string `json:"logo_uri,omitempty"`
// RedirectUris Array of redirect URIs used by the client (maximum 10)
RedirectUris []string `json:"redirect_uris"`
// ResponseTypes OAuth response types the client will use
ResponseTypes *[]PostOauthClientsRegisterJSONBodyResponseTypes `json:"response_types,omitempty"`
// Scope Space-separated list of scope values
Scope *string `json:"scope,omitempty"`
// TokenEndpointAuthMethod Authentication method for the token endpoint. Optional. 'none' is for public clients, 'client_secret_basic' and 'client_secret_post' are for confidential clients. If provided, must be consistent with client_type. If not provided, will be inferred from client_type.
TokenEndpointAuthMethod *PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod `json:"token_endpoint_auth_method,omitempty"`
}
PostOauthClientsRegisterJSONBody defines parameters for PostOauthClientsRegister.
type PostOauthClientsRegisterJSONBodyClientType ¶
type PostOauthClientsRegisterJSONBodyClientType string
PostOauthClientsRegisterJSONBodyClientType defines parameters for PostOauthClientsRegister.
const ( PostOauthClientsRegisterJSONBodyClientTypeConfidential PostOauthClientsRegisterJSONBodyClientType = "confidential" PostOauthClientsRegisterJSONBodyClientTypePublic PostOauthClientsRegisterJSONBodyClientType = "public" )
Defines values for PostOauthClientsRegisterJSONBodyClientType.
func (PostOauthClientsRegisterJSONBodyClientType) Valid ¶
func (e PostOauthClientsRegisterJSONBodyClientType) Valid() bool
Valid indicates whether the value is a known member of the PostOauthClientsRegisterJSONBodyClientType enum.
type PostOauthClientsRegisterJSONBodyGrantTypes ¶
type PostOauthClientsRegisterJSONBodyGrantTypes string
PostOauthClientsRegisterJSONBodyGrantTypes defines parameters for PostOauthClientsRegister.
const ( PostOauthClientsRegisterJSONBodyGrantTypesAuthorizationCode PostOauthClientsRegisterJSONBodyGrantTypes = "authorization_code" PostOauthClientsRegisterJSONBodyGrantTypesRefreshToken PostOauthClientsRegisterJSONBodyGrantTypes = "refresh_token" )
Defines values for PostOauthClientsRegisterJSONBodyGrantTypes.
func (PostOauthClientsRegisterJSONBodyGrantTypes) Valid ¶
func (e PostOauthClientsRegisterJSONBodyGrantTypes) Valid() bool
Valid indicates whether the value is a known member of the PostOauthClientsRegisterJSONBodyGrantTypes enum.
type PostOauthClientsRegisterJSONBodyResponseTypes ¶
type PostOauthClientsRegisterJSONBodyResponseTypes string
PostOauthClientsRegisterJSONBodyResponseTypes defines parameters for PostOauthClientsRegister.
const (
PostOauthClientsRegisterJSONBodyResponseTypesCode PostOauthClientsRegisterJSONBodyResponseTypes = "code"
)
Defines values for PostOauthClientsRegisterJSONBodyResponseTypes.
func (PostOauthClientsRegisterJSONBodyResponseTypes) Valid ¶
func (e PostOauthClientsRegisterJSONBodyResponseTypes) Valid() bool
Valid indicates whether the value is a known member of the PostOauthClientsRegisterJSONBodyResponseTypes enum.
type PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod ¶
type PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod string
PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod defines parameters for PostOauthClientsRegister.
const ( PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethodClientSecretBasic PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod = "client_secret_basic" PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethodClientSecretPost PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod = "client_secret_post" PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethodNone PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod = "none" )
Defines values for PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod.
func (PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod) Valid ¶
func (e PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod) Valid() bool
Valid indicates whether the value is a known member of the PostOauthClientsRegisterJSONBodyTokenEndpointAuthMethod enum.
type PostOauthClientsRegisterJSONRequestBody ¶
type PostOauthClientsRegisterJSONRequestBody PostOauthClientsRegisterJSONBody
PostOauthClientsRegisterJSONRequestBody defines body for PostOauthClientsRegister for application/json ContentType.
type PostOauthTokenFormdataBody ¶
type PostOauthTokenFormdataBody struct {
// ClientId OAuth client identifier
ClientId *string `form:"client_id,omitempty" json:"client_id,omitempty"`
// ClientSecret OAuth client secret (for confidential clients)
ClientSecret *string `form:"client_secret,omitempty" json:"client_secret,omitempty"`
// Code Authorization code (required for authorization_code grant)
Code *string `form:"code,omitempty" json:"code,omitempty"`
// CodeVerifier PKCE code verifier (required for authorization_code grant)
CodeVerifier *string `form:"code_verifier,omitempty" json:"code_verifier,omitempty"`
// GrantType The grant type being used
GrantType PostOauthTokenFormdataBodyGrantType `form:"grant_type" json:"grant_type"`
// RedirectUri Redirect URI (required for authorization_code grant)
RedirectUri *string `form:"redirect_uri,omitempty" json:"redirect_uri,omitempty"`
// RefreshToken Refresh token (required for refresh_token grant)
RefreshToken *string `form:"refresh_token,omitempty" json:"refresh_token,omitempty"`
}
PostOauthTokenFormdataBody defines parameters for PostOauthToken.
type PostOauthTokenFormdataBodyGrantType ¶
type PostOauthTokenFormdataBodyGrantType string
PostOauthTokenFormdataBodyGrantType defines parameters for PostOauthToken.
const ( PostOauthTokenFormdataBodyGrantTypeAuthorizationCode PostOauthTokenFormdataBodyGrantType = "authorization_code" PostOauthTokenFormdataBodyGrantTypeRefreshToken PostOauthTokenFormdataBodyGrantType = "refresh_token" )
Defines values for PostOauthTokenFormdataBodyGrantType.
func (PostOauthTokenFormdataBodyGrantType) Valid ¶
func (e PostOauthTokenFormdataBodyGrantType) Valid() bool
Valid indicates whether the value is a known member of the PostOauthTokenFormdataBodyGrantType enum.
type PostOauthTokenFormdataRequestBody ¶
type PostOauthTokenFormdataRequestBody PostOauthTokenFormdataBody
PostOauthTokenFormdataRequestBody defines body for PostOauthToken for application/x-www-form-urlencoded ContentType.
type PostOtpJSONBody ¶
type PostOtpJSONBody struct {
Channel *PostOtpJSONBodyChannel `json:"channel,omitempty"`
CodeChallenge *string `json:"code_challenge,omitempty"`
CodeChallengeMethod *PostOtpJSONBodyCodeChallengeMethod `json:"code_challenge_method,omitempty"`
CreateUser *bool `json:"create_user,omitempty"`
Data *map[string]interface{} `json:"data,omitempty"`
Email *openapi_types.Email `json:"email,omitempty"`
// GotrueMetaSecurity Use this property to pass a CAPTCHA token only if you have enabled CAPTCHA protection.
GotrueMetaSecurity *GoTrueSecurity `json:"gotrue_meta_security,omitempty"`
Phone *string `json:"phone,omitempty"`
}
PostOtpJSONBody defines parameters for PostOtp.
type PostOtpJSONBodyChannel ¶
type PostOtpJSONBodyChannel string
PostOtpJSONBodyChannel defines parameters for PostOtp.
const ( PostOtpJSONBodyChannelSms PostOtpJSONBodyChannel = "sms" PostOtpJSONBodyChannelWhatsapp PostOtpJSONBodyChannel = "whatsapp" )
Defines values for PostOtpJSONBodyChannel.
func (PostOtpJSONBodyChannel) Valid ¶
func (e PostOtpJSONBodyChannel) Valid() bool
Valid indicates whether the value is a known member of the PostOtpJSONBodyChannel enum.
type PostOtpJSONBodyCodeChallengeMethod ¶
type PostOtpJSONBodyCodeChallengeMethod string
PostOtpJSONBodyCodeChallengeMethod defines parameters for PostOtp.
const ( PostOtpJSONBodyCodeChallengeMethodPlain PostOtpJSONBodyCodeChallengeMethod = "plain" PostOtpJSONBodyCodeChallengeMethodS256 PostOtpJSONBodyCodeChallengeMethod = "s256" )
Defines values for PostOtpJSONBodyCodeChallengeMethod.
func (PostOtpJSONBodyCodeChallengeMethod) Valid ¶
func (e PostOtpJSONBodyCodeChallengeMethod) Valid() bool
Valid indicates whether the value is a known member of the PostOtpJSONBodyCodeChallengeMethod enum.
type PostOtpJSONRequestBody ¶
type PostOtpJSONRequestBody PostOtpJSONBody
PostOtpJSONRequestBody defines body for PostOtp for application/json ContentType.
type PostRecoverJSONBody ¶
type PostRecoverJSONBody struct {
CodeChallenge *string `json:"code_challenge,omitempty"`
CodeChallengeMethod *PostRecoverJSONBodyCodeChallengeMethod `json:"code_challenge_method,omitempty"`
Email openapi_types.Email `json:"email"`
// GotrueMetaSecurity Use this property to pass a CAPTCHA token only if you have enabled CAPTCHA protection.
GotrueMetaSecurity *GoTrueSecurity `json:"gotrue_meta_security,omitempty"`
}
PostRecoverJSONBody defines parameters for PostRecover.
type PostRecoverJSONBodyCodeChallengeMethod ¶
type PostRecoverJSONBodyCodeChallengeMethod string
PostRecoverJSONBodyCodeChallengeMethod defines parameters for PostRecover.
const ( PostRecoverJSONBodyCodeChallengeMethodPlain PostRecoverJSONBodyCodeChallengeMethod = "plain" PostRecoverJSONBodyCodeChallengeMethodS256 PostRecoverJSONBodyCodeChallengeMethod = "s256" )
Defines values for PostRecoverJSONBodyCodeChallengeMethod.
func (PostRecoverJSONBodyCodeChallengeMethod) Valid ¶
func (e PostRecoverJSONBodyCodeChallengeMethod) Valid() bool
Valid indicates whether the value is a known member of the PostRecoverJSONBodyCodeChallengeMethod enum.
type PostRecoverJSONRequestBody ¶
type PostRecoverJSONRequestBody PostRecoverJSONBody
PostRecoverJSONRequestBody defines body for PostRecover for application/json ContentType.
type PostResendJSONBody ¶
type PostResendJSONBody struct {
// Email Applicable only if `type` is with regards to an email address.
Email *openapi_types.Email `json:"email,omitempty"`
// GotrueMetaSecurity Use this property to pass a CAPTCHA token only if you have enabled CAPTCHA protection.
GotrueMetaSecurity *GoTrueSecurity `json:"gotrue_meta_security,omitempty"`
// Phone Applicable only if `type` is with regards to an phone number.
Phone *string `json:"phone,omitempty"`
Type *PostResendJSONBodyType `json:"type,omitempty"`
}
PostResendJSONBody defines parameters for PostResend.
type PostResendJSONBodyType ¶
type PostResendJSONBodyType string
PostResendJSONBodyType defines parameters for PostResend.
const ( PostResendJSONBodyTypeEmailChange PostResendJSONBodyType = "email_change" PostResendJSONBodyTypePhoneChange PostResendJSONBodyType = "phone_change" PostResendJSONBodyTypeSignup PostResendJSONBodyType = "signup" PostResendJSONBodyTypeSms PostResendJSONBodyType = "sms" )
Defines values for PostResendJSONBodyType.
func (PostResendJSONBodyType) Valid ¶
func (e PostResendJSONBodyType) Valid() bool
Valid indicates whether the value is a known member of the PostResendJSONBodyType enum.
type PostResendJSONRequestBody ¶
type PostResendJSONRequestBody PostResendJSONBody
PostResendJSONRequestBody defines body for PostResend for application/json ContentType.
type PostSamlAcsParams ¶
type PostSamlAcsParams struct {
RelayState *struct {
// contains filtered or unexported fields
} `form:"RelayState,omitempty" json:"RelayState,omitempty"`
// SAMLArt See the SAML 2.0 ACS specification. Cannot be used without a UUID `RelayState` parameter.
SAMLArt *string `form:"SAMLArt,omitempty" json:"SAMLArt,omitempty"`
// SAMLResponse See the SAML 2.0 ACS specification. Must be present unless `SAMLArt` is specified. If `RelayState` is not a UUID, the SAML Response is unpacked and the identity provider is identified from the response.
SAMLResponse *string `form:"SAMLResponse,omitempty" json:"SAMLResponse,omitempty"`
}
PostSamlAcsParams defines parameters for PostSamlAcs.
type PostSamlAcsParamsRelayState0 ¶
type PostSamlAcsParamsRelayState0 = string
PostSamlAcsParamsRelayState0 defines parameters for PostSamlAcs.
type PostSamlAcsParamsRelayState1 ¶
type PostSamlAcsParamsRelayState1 = openapi_types.UUID
PostSamlAcsParamsRelayState1 defines parameters for PostSamlAcs.
type PostSignup200JSONResponseBody ¶
type PostSignup200JSONResponseBody struct {
// contains filtered or unexported fields
}
PostSignup200JSONResponseBody defines parameters for PostSignup.
func (PostSignup200JSONResponseBody) AsAccessTokenResponseSchema ¶
func (t PostSignup200JSONResponseBody) AsAccessTokenResponseSchema() (AccessTokenResponseSchema, error)
AsAccessTokenResponseSchema returns the union data inside the PostSignup200JSONResponseBody as a AccessTokenResponseSchema
func (PostSignup200JSONResponseBody) AsUserSchema ¶
func (t PostSignup200JSONResponseBody) AsUserSchema() (UserSchema, error)
AsUserSchema returns the union data inside the PostSignup200JSONResponseBody as a UserSchema
func (*PostSignup200JSONResponseBody) FromAccessTokenResponseSchema ¶
func (t *PostSignup200JSONResponseBody) FromAccessTokenResponseSchema(v AccessTokenResponseSchema) error
FromAccessTokenResponseSchema overwrites any union data inside the PostSignup200JSONResponseBody as the provided AccessTokenResponseSchema
func (*PostSignup200JSONResponseBody) FromUserSchema ¶
func (t *PostSignup200JSONResponseBody) FromUserSchema(v UserSchema) error
FromUserSchema overwrites any union data inside the PostSignup200JSONResponseBody as the provided UserSchema
func (PostSignup200JSONResponseBody) MarshalJSON ¶
func (t PostSignup200JSONResponseBody) MarshalJSON() ([]byte, error)
func (*PostSignup200JSONResponseBody) MergeAccessTokenResponseSchema ¶
func (t *PostSignup200JSONResponseBody) MergeAccessTokenResponseSchema(v AccessTokenResponseSchema) error
MergeAccessTokenResponseSchema performs a merge with any union data inside the PostSignup200JSONResponseBody, using the provided AccessTokenResponseSchema
func (*PostSignup200JSONResponseBody) MergeUserSchema ¶
func (t *PostSignup200JSONResponseBody) MergeUserSchema(v UserSchema) error
MergeUserSchema performs a merge with any union data inside the PostSignup200JSONResponseBody, using the provided UserSchema
func (*PostSignup200JSONResponseBody) UnmarshalJSON ¶
func (t *PostSignup200JSONResponseBody) UnmarshalJSON(b []byte) error
type PostSignupJSONBody ¶
type PostSignupJSONBody struct {
Channel *PostSignupJSONBodyChannel `json:"channel,omitempty"`
CodeChallenge *string `json:"code_challenge,omitempty"`
CodeChallengeMethod *PostSignupJSONBodyCodeChallengeMethod `json:"code_challenge_method,omitempty"`
Data *map[string]interface{} `json:"data,omitempty"`
Email *openapi_types.Email `json:"email,omitempty"`
// GotrueMetaSecurity Use this property to pass a CAPTCHA token only if you have enabled CAPTCHA protection.
GotrueMetaSecurity *GoTrueSecurity `json:"gotrue_meta_security,omitempty"`
Password *string `json:"password,omitempty"`
Phone *string `json:"phone,omitempty"`
}
PostSignupJSONBody defines parameters for PostSignup.
type PostSignupJSONBodyChannel ¶
type PostSignupJSONBodyChannel string
PostSignupJSONBodyChannel defines parameters for PostSignup.
const ( PostSignupJSONBodyChannelSms PostSignupJSONBodyChannel = "sms" PostSignupJSONBodyChannelWhatsapp PostSignupJSONBodyChannel = "whatsapp" )
Defines values for PostSignupJSONBodyChannel.
func (PostSignupJSONBodyChannel) Valid ¶
func (e PostSignupJSONBodyChannel) Valid() bool
Valid indicates whether the value is a known member of the PostSignupJSONBodyChannel enum.
type PostSignupJSONBodyCodeChallengeMethod ¶
type PostSignupJSONBodyCodeChallengeMethod string
PostSignupJSONBodyCodeChallengeMethod defines parameters for PostSignup.
const ( PostSignupJSONBodyCodeChallengeMethodPlain PostSignupJSONBodyCodeChallengeMethod = "plain" PostSignupJSONBodyCodeChallengeMethodS256 PostSignupJSONBodyCodeChallengeMethod = "s256" )
Defines values for PostSignupJSONBodyCodeChallengeMethod.
func (PostSignupJSONBodyCodeChallengeMethod) Valid ¶
func (e PostSignupJSONBodyCodeChallengeMethod) Valid() bool
Valid indicates whether the value is a known member of the PostSignupJSONBodyCodeChallengeMethod enum.
type PostSignupJSONRequestBody ¶
type PostSignupJSONRequestBody PostSignupJSONBody
PostSignupJSONRequestBody defines body for PostSignup for application/json ContentType.
type PostSsoJSONBody ¶
type PostSsoJSONBody struct {
CodeChallenge *string `json:"code_challenge,omitempty"`
CodeChallengeMethod *PostSsoJSONBodyCodeChallengeMethod `json:"code_challenge_method,omitempty"`
// Domain Email address domain used to identify the SSO provider.
Domain *string `json:"domain,omitempty"`
// GotrueMetaSecurity Use this property to pass a CAPTCHA token only if you have enabled CAPTCHA protection.
GotrueMetaSecurity *GoTrueSecurity `json:"gotrue_meta_security,omitempty"`
// ProviderId Example: 40451fc2-4997-429c-bf7f-cc6f33c788e6
ProviderId *openapi_types.UUID `json:"provider_id,omitempty"`
RedirectTo *string `json:"redirect_to,omitempty"`
// SkipHttpRedirect Set to `true` if the response to this request should not be a HTTP 303 redirect -- useful for browser-based applications.
SkipHttpRedirect *bool `json:"skip_http_redirect,omitempty"`
}
PostSsoJSONBody defines parameters for PostSso.
type PostSsoJSONBodyCodeChallengeMethod ¶
type PostSsoJSONBodyCodeChallengeMethod string
PostSsoJSONBodyCodeChallengeMethod defines parameters for PostSso.
const ( PostSsoJSONBodyCodeChallengeMethodPlain PostSsoJSONBodyCodeChallengeMethod = "plain" PostSsoJSONBodyCodeChallengeMethodS256 PostSsoJSONBodyCodeChallengeMethod = "s256" )
Defines values for PostSsoJSONBodyCodeChallengeMethod.
func (PostSsoJSONBodyCodeChallengeMethod) Valid ¶
func (e PostSsoJSONBodyCodeChallengeMethod) Valid() bool
Valid indicates whether the value is a known member of the PostSsoJSONBodyCodeChallengeMethod enum.
type PostSsoJSONRequestBody ¶
type PostSsoJSONRequestBody PostSsoJSONBody
PostSsoJSONRequestBody defines body for PostSso for application/json ContentType.
type PostTokenJSONBody ¶
type PostTokenJSONBody struct {
// AccessToken Provide only when `grant_type` is `id_token` and the provided ID token requires the presence of an access token to be accepted (usually by having an `at_hash` claim).
AccessToken *string `json:"access_token,omitempty"`
AuthCode *openapi_types.UUID `json:"auth_code,omitempty"`
// Chain What blockchain is the Web3 message and signature for.
//
// Example: solana
Chain *PostTokenJSONBodyChain `json:"chain,omitempty"`
ClientId *string `json:"client_id,omitempty"`
CodeVerifier *string `json:"code_verifier,omitempty"`
Email *openapi_types.Email `json:"email,omitempty"`
// GotrueMetaSecurity Use this property to pass a CAPTCHA token only if you have enabled CAPTCHA protection.
GotrueMetaSecurity *GoTrueSecurity `json:"gotrue_meta_security,omitempty"`
IdToken *string `json:"id_token,omitempty"`
// Issuer If `provider` is `azure` then you can specify any Azure OIDC issuer string here, which will be used for verification.
Issuer *string `json:"issuer,omitempty"`
// Message Signed message for Web3 authentication following the Sign in with Solana (SIWS) or Sign in with Ethereum (SIWE) standard. Must include: `Issued At`, `URI`, `Version`.
Message *string `json:"message,omitempty"`
Nonce *string `json:"nonce,omitempty"`
Password *string `json:"password,omitempty"`
Phone *string `json:"phone,omitempty"`
Provider *PostTokenJSONBodyProvider `json:"provider,omitempty"`
RefreshToken *string `json:"refresh_token,omitempty"`
// Signature The signature of the message for Web3 authentication.
// For Solana: Base64 or Base64-URL encoded.
// For Ethereum: hexadecimal string with 0x prefix.
Signature *string `json:"signature,omitempty"`
}
PostTokenJSONBody defines parameters for PostToken.
type PostTokenJSONBodyChain ¶
type PostTokenJSONBodyChain string
PostTokenJSONBodyChain defines parameters for PostToken.
const ( Ethereum PostTokenJSONBodyChain = "ethereum" Solana PostTokenJSONBodyChain = "solana" )
Defines values for PostTokenJSONBodyChain.
func (PostTokenJSONBodyChain) Valid ¶
func (e PostTokenJSONBodyChain) Valid() bool
Valid indicates whether the value is a known member of the PostTokenJSONBodyChain enum.
type PostTokenJSONBodyProvider ¶
type PostTokenJSONBodyProvider string
PostTokenJSONBodyProvider defines parameters for PostToken.
const ( Apple PostTokenJSONBodyProvider = "apple" Azure PostTokenJSONBodyProvider = "azure" Facebook PostTokenJSONBodyProvider = "facebook" Google PostTokenJSONBodyProvider = "google" Keycloak PostTokenJSONBodyProvider = "keycloak" )
Defines values for PostTokenJSONBodyProvider.
func (PostTokenJSONBodyProvider) Valid ¶
func (e PostTokenJSONBodyProvider) Valid() bool
Valid indicates whether the value is a known member of the PostTokenJSONBodyProvider enum.
type PostTokenJSONRequestBody ¶
type PostTokenJSONRequestBody PostTokenJSONBody
PostTokenJSONRequestBody defines body for PostToken for application/json ContentType.
type PostTokenParams ¶
type PostTokenParams struct {
// GrantType - What grant type should be used to issue an access and refresh token. Note: `id_token` is only offered in experimental mode.
// - CAPTCHA protection does not apply on the `refresh_token` grant flow.
// - Using `password` is akin to a user signing in.
// - `pkce` is used for exchanging the authorization code for a pair of access and refresh tokens.
GrantType PostTokenParamsGrantType `form:"grant_type" json:"grant_type"`
}
PostTokenParams defines parameters for PostToken.
type PostTokenParamsGrantType ¶
type PostTokenParamsGrantType string
PostTokenParamsGrantType defines parameters for PostToken.
const ( PostTokenParamsGrantTypeIdToken PostTokenParamsGrantType = "id_token" PostTokenParamsGrantTypePassword PostTokenParamsGrantType = "password" PostTokenParamsGrantTypePkce PostTokenParamsGrantType = "pkce" PostTokenParamsGrantTypeRefreshToken PostTokenParamsGrantType = "refresh_token" PostTokenParamsGrantTypeWeb3 PostTokenParamsGrantType = "web3" )
Defines values for PostTokenParamsGrantType.
func (PostTokenParamsGrantType) Valid ¶
func (e PostTokenParamsGrantType) Valid() bool
Valid indicates whether the value is a known member of the PostTokenParamsGrantType enum.
type PostVerifyJSONBody ¶
type PostVerifyJSONBody struct {
// Email Applicable only if `type` is with regards to an email address.
Email *openapi_types.Email `json:"email,omitempty"`
// Phone Applicable only if `type` is with regards to an phone number.
Phone *string `json:"phone,omitempty"`
// RedirectTo (Optional) URL to redirect back into the app on after verification completes successfully. If not specified will use the "Site URL" configuration option. If not allowed per the allow list it will use the "Site URL" configuration option.
RedirectTo *string `json:"redirect_to,omitempty"`
Token *string `json:"token,omitempty"`
// TokenHash The hashed value of token. Applicable only if used with `type` and nothing else.
TokenHash *string `json:"token_hash,omitempty"`
Type *PostVerifyJSONBodyType `json:"type,omitempty"`
}
PostVerifyJSONBody defines parameters for PostVerify.
type PostVerifyJSONBodyType ¶
type PostVerifyJSONBodyType string
PostVerifyJSONBodyType defines parameters for PostVerify.
const ( PostVerifyJSONBodyTypeEmailChange PostVerifyJSONBodyType = "email_change" PostVerifyJSONBodyTypeInvite PostVerifyJSONBodyType = "invite" PostVerifyJSONBodyTypeMagiclink PostVerifyJSONBodyType = "magiclink" PostVerifyJSONBodyTypePhoneChange PostVerifyJSONBodyType = "phone_change" PostVerifyJSONBodyTypeRecovery PostVerifyJSONBodyType = "recovery" PostVerifyJSONBodyTypeSignup PostVerifyJSONBodyType = "signup" PostVerifyJSONBodyTypeSms PostVerifyJSONBodyType = "sms" )
Defines values for PostVerifyJSONBodyType.
func (PostVerifyJSONBodyType) Valid ¶
func (e PostVerifyJSONBodyType) Valid() bool
Valid indicates whether the value is a known member of the PostVerifyJSONBodyType enum.
type PostVerifyJSONRequestBody ¶
type PostVerifyJSONRequestBody PostVerifyJSONBody
PostVerifyJSONRequestBody defines body for PostVerify for application/json ContentType.
type PublicKeyCredentialDescriptor ¶
type PublicKeyCredentialDescriptor struct {
// Id Credential ID
Id string `json:"id"`
// Transports Supported transports for this credential
Transports *[]PublicKeyCredentialDescriptorTransports `json:"transports,omitempty"`
// Type Credential type
Type PublicKeyCredentialDescriptorType `json:"type"`
}
PublicKeyCredentialDescriptor defines model for PublicKeyCredentialDescriptor.
type PublicKeyCredentialDescriptorTransports ¶
type PublicKeyCredentialDescriptorTransports string
PublicKeyCredentialDescriptorTransports defines model for PublicKeyCredentialDescriptor.Transports.
const ( PublicKeyCredentialDescriptorTransportsBle PublicKeyCredentialDescriptorTransports = "ble" PublicKeyCredentialDescriptorTransportsHybrid PublicKeyCredentialDescriptorTransports = "hybrid" PublicKeyCredentialDescriptorTransportsInternal PublicKeyCredentialDescriptorTransports = "internal" PublicKeyCredentialDescriptorTransportsNfc PublicKeyCredentialDescriptorTransports = "nfc" PublicKeyCredentialDescriptorTransportsUsb PublicKeyCredentialDescriptorTransports = "usb" )
Defines values for PublicKeyCredentialDescriptorTransports.
func (PublicKeyCredentialDescriptorTransports) Valid ¶
func (e PublicKeyCredentialDescriptorTransports) Valid() bool
Valid indicates whether the value is a known member of the PublicKeyCredentialDescriptorTransports enum.
type PublicKeyCredentialDescriptorType ¶
type PublicKeyCredentialDescriptorType string
PublicKeyCredentialDescriptorType Credential type
const (
PublicKeyCredentialDescriptorTypePublicKey PublicKeyCredentialDescriptorType = "public-key"
)
Defines values for PublicKeyCredentialDescriptorType.
func (PublicKeyCredentialDescriptorType) Valid ¶
func (e PublicKeyCredentialDescriptorType) Valid() bool
Valid indicates whether the value is a known member of the PublicKeyCredentialDescriptorType enum.
type PutAdminCustomProvidersIdentifierJSONBody ¶
type PutAdminCustomProvidersIdentifierJSONBody struct {
// AcceptableClientIds Additional acceptable client IDs
AcceptableClientIds *[]string `json:"acceptable_client_ids,omitempty"`
// AttributeMapping Map provider claims to user attributes
AttributeMapping *map[string]interface{} `json:"attribute_mapping,omitempty"`
// AuthorizationParams Additional authorization request parameters as string key-value pairs
AuthorizationParams *map[string]string `json:"authorization_params,omitempty"`
// AuthorizationUrl OAuth 2.0 authorization endpoint (for OAuth2 providers)
AuthorizationUrl *string `json:"authorization_url,omitempty"`
// ClientId OAuth client ID
ClientId *string `json:"client_id,omitempty"`
// ClientSecret OAuth client secret (only provide if changing, will be encrypted)
ClientSecret *string `json:"client_secret,omitempty"`
// CustomClaimsAllowlist Raw IdP claim keys to copy verbatim into the user's custom_claims (e.g. groups, org_id). For OIDC providers these are read from the ID token claims (falling back to the userinfo response when no ID token is returned); for OAuth2 providers they are read from the userinfo response. Empty preserves no non-standard claims.
CustomClaimsAllowlist *[]string `json:"custom_claims_allowlist,omitempty"`
// DiscoveryUrl OIDC discovery URL (for OIDC providers)
DiscoveryUrl *string `json:"discovery_url,omitempty"`
// EmailOptional Whether email is optional
EmailOptional *bool `json:"email_optional,omitempty"`
// Enabled Whether the provider is enabled
Enabled *bool `json:"enabled,omitempty"`
// Issuer OIDC issuer URL (for OIDC providers)
Issuer *string `json:"issuer,omitempty"`
// JwksUri JWKS URI for token validation (for OAuth2 providers)
JwksUri *string `json:"jwks_uri,omitempty"`
// Name Human-readable display name
Name *string `json:"name,omitempty"`
// PkceEnabled Enable PKCE
PkceEnabled *bool `json:"pkce_enabled,omitempty"`
// Scopes OAuth scopes to request
Scopes *[]string `json:"scopes,omitempty"`
// SkipNonceCheck Skip nonce validation for OIDC
SkipNonceCheck *bool `json:"skip_nonce_check,omitempty"`
// TokenUrl OAuth 2.0 token endpoint (for OAuth2 providers)
TokenUrl *string `json:"token_url,omitempty"`
// UserinfoUrl OAuth 2.0 userinfo endpoint (for OAuth2 providers)
UserinfoUrl *string `json:"userinfo_url,omitempty"`
}
PutAdminCustomProvidersIdentifierJSONBody defines parameters for PutAdminCustomProvidersIdentifier.
type PutAdminCustomProvidersIdentifierJSONRequestBody ¶
type PutAdminCustomProvidersIdentifierJSONRequestBody PutAdminCustomProvidersIdentifierJSONBody
PutAdminCustomProvidersIdentifierJSONRequestBody defines body for PutAdminCustomProvidersIdentifier for application/json ContentType.
type PutAdminOauthClientsClientIdJSONBody ¶
type PutAdminOauthClientsClientIdJSONBody struct {
// ClientName Human-readable name of the client application
ClientName *string `json:"client_name,omitempty"`
// ClientUri URL of the client application's homepage
ClientUri *string `json:"client_uri,omitempty"`
// GrantTypes OAuth grant types the client is authorized to use
GrantTypes *[]PutAdminOauthClientsClientIdJSONBodyGrantTypes `json:"grant_types,omitempty"`
// LogoUri URL of the client application's logo
LogoUri *string `json:"logo_uri,omitempty"`
// RedirectUris Array of redirect URIs used by the client
RedirectUris *[]string `json:"redirect_uris,omitempty"`
// TokenEndpointAuthMethod Authentication method for the token endpoint. Must be compatible with the client's current client_type. Confidential clients can use 'client_secret_basic' or 'client_secret_post'. Public clients can only use 'none'.
TokenEndpointAuthMethod *PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod `json:"token_endpoint_auth_method,omitempty"`
}
PutAdminOauthClientsClientIdJSONBody defines parameters for PutAdminOauthClientsClientId.
type PutAdminOauthClientsClientIdJSONBodyGrantTypes ¶
type PutAdminOauthClientsClientIdJSONBodyGrantTypes string
PutAdminOauthClientsClientIdJSONBodyGrantTypes defines parameters for PutAdminOauthClientsClientId.
const ( PutAdminOauthClientsClientIdJSONBodyGrantTypesAuthorizationCode PutAdminOauthClientsClientIdJSONBodyGrantTypes = "authorization_code" PutAdminOauthClientsClientIdJSONBodyGrantTypesRefreshToken PutAdminOauthClientsClientIdJSONBodyGrantTypes = "refresh_token" )
Defines values for PutAdminOauthClientsClientIdJSONBodyGrantTypes.
func (PutAdminOauthClientsClientIdJSONBodyGrantTypes) Valid ¶
func (e PutAdminOauthClientsClientIdJSONBodyGrantTypes) Valid() bool
Valid indicates whether the value is a known member of the PutAdminOauthClientsClientIdJSONBodyGrantTypes enum.
type PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod ¶
type PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod string
PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod defines parameters for PutAdminOauthClientsClientId.
const ( PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethodClientSecretBasic PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod = "client_secret_basic" PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethodClientSecretPost PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod = "client_secret_post" PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethodNone PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod = "none" )
Defines values for PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod.
func (PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod) Valid ¶
func (e PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod) Valid() bool
Valid indicates whether the value is a known member of the PutAdminOauthClientsClientIdJSONBodyTokenEndpointAuthMethod enum.
type PutAdminOauthClientsClientIdJSONRequestBody ¶
type PutAdminOauthClientsClientIdJSONRequestBody PutAdminOauthClientsClientIdJSONBody
PutAdminOauthClientsClientIdJSONRequestBody defines body for PutAdminOauthClientsClientId for application/json ContentType.
type PutAdminSsoProvidersSsoProviderIdJSONBody ¶
type PutAdminSsoProvidersSsoProviderIdJSONBody struct {
AttributeMapping *SAMLAttributeMappingSchema `json:"attribute_mapping,omitempty"`
Domains *[]string `json:"domains,omitempty"`
MetadataUrl *string `json:"metadata_url,omitempty"`
MetadataXml *string `json:"metadata_xml,omitempty"`
}
PutAdminSsoProvidersSsoProviderIdJSONBody defines parameters for PutAdminSsoProvidersSsoProviderId.
type PutAdminSsoProvidersSsoProviderIdJSONRequestBody ¶
type PutAdminSsoProvidersSsoProviderIdJSONRequestBody PutAdminSsoProvidersSsoProviderIdJSONBody
PutAdminSsoProvidersSsoProviderIdJSONRequestBody defines body for PutAdminSsoProvidersSsoProviderId for application/json ContentType.
type PutAdminUsersUserIdFactorsFactorIdJSONBody ¶
type PutAdminUsersUserIdFactorsFactorIdJSONBody = map[string]interface{}
PutAdminUsersUserIdFactorsFactorIdJSONBody defines parameters for PutAdminUsersUserIdFactorsFactorId.
type PutAdminUsersUserIdFactorsFactorIdJSONRequestBody ¶
type PutAdminUsersUserIdFactorsFactorIdJSONRequestBody = PutAdminUsersUserIdFactorsFactorIdJSONBody
PutAdminUsersUserIdFactorsFactorIdJSONRequestBody defines body for PutAdminUsersUserIdFactorsFactorId for application/json ContentType.
type PutAdminUsersUserIdJSONRequestBody ¶
type PutAdminUsersUserIdJSONRequestBody = UserSchema
PutAdminUsersUserIdJSONRequestBody defines body for PutAdminUsersUserId for application/json ContentType.
type PutUserJSONBody ¶
type PutUserJSONBody struct {
AppMetadata *map[string]interface{} `json:"app_metadata,omitempty"`
Channel *PutUserJSONBodyChannel `json:"channel,omitempty"`
Data *map[string]interface{} `json:"data,omitempty"`
Email *openapi_types.Email `json:"email,omitempty"`
Nonce *string `json:"nonce,omitempty"`
Password *string `json:"password,omitempty"`
Phone *string `json:"phone,omitempty"`
}
PutUserJSONBody defines parameters for PutUser.
type PutUserJSONBodyChannel ¶
type PutUserJSONBodyChannel string
PutUserJSONBodyChannel defines parameters for PutUser.
const ( PutUserJSONBodyChannelSms PutUserJSONBodyChannel = "sms" PutUserJSONBodyChannelWhatsapp PutUserJSONBodyChannel = "whatsapp" )
Defines values for PutUserJSONBodyChannel.
func (PutUserJSONBodyChannel) Valid ¶
func (e PutUserJSONBodyChannel) Valid() bool
Valid indicates whether the value is a known member of the PutUserJSONBodyChannel enum.
type PutUserJSONRequestBody ¶
type PutUserJSONRequestBody PutUserJSONBody
PutUserJSONRequestBody defines body for PutUser for application/json ContentType.
type RateLimitResponse ¶
type RateLimitResponse struct {
// Code Example: 429
Code *int `json:"code,omitempty"`
// Msg A basic message describing the rate limit breach. Do not use as an error code identifier.
//
// Example: Too many requests. Please try again in a few seconds.
Msg *string `json:"msg,omitempty"`
}
RateLimitResponse defines model for RateLimitResponse.
type SAMLAttributeMappingSchema ¶
type SAMLAttributeMappingSchema struct {
Keys *map[string]interface{} `json:"keys,omitempty"`
}
SAMLAttributeMappingSchema defines model for SAMLAttributeMappingSchema.
type SSOProviderSchema ¶
type SSOProviderSchema struct {
Id *openapi_types.UUID `json:"id,omitempty"`
Saml *struct {
AttributeMapping *SAMLAttributeMappingSchema `json:"attribute_mapping,omitempty"`
EntityId *string `json:"entity_id,omitempty"`
MetadataUrl *string `json:"metadata_url,omitempty"`
MetadataXml *string `json:"metadata_xml,omitempty"`
} `json:"saml,omitempty"`
SsoDomains *[]struct {
Domain *string `json:"domain,omitempty"`
} `json:"sso_domains,omitempty"`
}
SSOProviderSchema defines model for SSOProviderSchema.
type TOTPPhoneChallengeResponse ¶
type TOTPPhoneChallengeResponse struct {
// ExpiresAt UNIX seconds of the timestamp past which the challenge should not be verified.
//
// Example: 1674840917
ExpiresAt int `json:"expires_at"`
// Id ID of the challenge.
//
// Example: 14c1560e-2749-4522-bb62-d1458451830a
Id openapi_types.UUID `json:"id"`
// Type Type of the challenge.
Type TOTPPhoneChallengeResponseType `json:"type"`
}
TOTPPhoneChallengeResponse defines model for TOTPPhoneChallengeResponse.
type TOTPPhoneChallengeResponseType ¶
type TOTPPhoneChallengeResponseType string
TOTPPhoneChallengeResponseType Type of the challenge.
const ( TOTPPhoneChallengeResponseTypePhone TOTPPhoneChallengeResponseType = "phone" TOTPPhoneChallengeResponseTypeTotp TOTPPhoneChallengeResponseType = "totp" )
Defines values for TOTPPhoneChallengeResponseType.
func (TOTPPhoneChallengeResponseType) Valid ¶
func (e TOTPPhoneChallengeResponseType) Valid() bool
Valid indicates whether the value is a known member of the TOTPPhoneChallengeResponseType enum.
type UnauthorizedResponse ¶
type UnauthorizedResponse = ErrorSchema
UnauthorizedResponse defines model for UnauthorizedResponse.
type UserSchema ¶
type UserSchema struct {
AppMetadata *map[string]interface{} `json:"app_metadata,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Aud *string `json:"aud,omitempty"`
BannedUntil *time.Time `json:"banned_until,omitempty"`
ConfirmationSentAt *time.Time `json:"confirmation_sent_at,omitempty"`
ConfirmedAt *time.Time `json:"confirmed_at,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// Email User's primary contact email. In most cases you can uniquely identify a user by their email address, but not in all cases.
Email *string `json:"email,omitempty"`
EmailChangeSentAt *time.Time `json:"email_change_sent_at,omitempty"`
EmailConfirmedAt *time.Time `json:"email_confirmed_at,omitempty"`
Factors *[]MFAFactorSchema `json:"factors,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
Identities *[]IdentitySchema `json:"identities,omitempty"`
IsAnonymous *bool `json:"is_anonymous,omitempty"`
LastSignInAt *time.Time `json:"last_sign_in_at,omitempty"`
NewEmail *openapi_types.Email `json:"new_email,omitempty"`
NewPhone *string `json:"new_phone,omitempty"`
// Phone User's primary contact phone number. In most cases you can uniquely identify a user by their phone number, but not in all cases.
Phone *string `json:"phone,omitempty"`
PhoneChangeSentAt *time.Time `json:"phone_change_sent_at,omitempty"`
PhoneConfirmedAt *time.Time `json:"phone_confirmed_at,omitempty"`
ReauthenticationSentAt *time.Time `json:"reauthentication_sent_at,omitempty"`
RecoverySentAt *time.Time `json:"recovery_sent_at,omitempty"`
Role *string `json:"role,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
UserMetadata *map[string]interface{} `json:"user_metadata,omitempty"`
}
UserSchema Object describing the user related to the issued access and refresh tokens.
type WebAuthnChallengeResponse ¶
type WebAuthnChallengeResponse struct {
// ExpiresAt UNIX seconds of the timestamp past which the challenge should not be verified.
//
// Example: 1674840917
ExpiresAt *int `json:"expires_at,omitempty"`
// Id ID of the challenge.
//
// Example: 14c1560e-2749-4522-bb62-d1458451830a
Id openapi_types.UUID `json:"id"`
// Type Type of the challenge.
Type WebAuthnChallengeResponseType `json:"type"`
Webauthn WebAuthnChallengeResponse_Webauthn `json:"webauthn"`
}
WebAuthnChallengeResponse defines model for WebAuthnChallengeResponse.
type WebAuthnChallengeResponseType ¶
type WebAuthnChallengeResponseType string
WebAuthnChallengeResponseType Type of the challenge.
const (
WebAuthnChallengeResponseTypeWebauthn WebAuthnChallengeResponseType = "webauthn"
)
Defines values for WebAuthnChallengeResponseType.
func (WebAuthnChallengeResponseType) Valid ¶
func (e WebAuthnChallengeResponseType) Valid() bool
Valid indicates whether the value is a known member of the WebAuthnChallengeResponseType enum.
type WebAuthnChallengeResponseWebauthn0 ¶
type WebAuthnChallengeResponseWebauthn0 struct {
CredentialOptions struct {
// PublicKey PublicKeyCredentialCreationOptions for WebAuthn registration
PublicKey CredentialCreationOptions `json:"publicKey"`
} `json:"credential_options"`
// Type Credential creation operation
Type WebAuthnChallengeResponseWebauthn0Type `json:"type"`
}
WebAuthnChallengeResponseWebauthn0 defines model for WebAuthnChallengeResponse.Webauthn.0.
type WebAuthnChallengeResponseWebauthn0Type ¶
type WebAuthnChallengeResponseWebauthn0Type string
WebAuthnChallengeResponseWebauthn0Type Credential creation operation
const (
WebAuthnChallengeResponseWebauthn0TypeCreate WebAuthnChallengeResponseWebauthn0Type = "create"
)
Defines values for WebAuthnChallengeResponseWebauthn0Type.
func (WebAuthnChallengeResponseWebauthn0Type) Valid ¶
func (e WebAuthnChallengeResponseWebauthn0Type) Valid() bool
Valid indicates whether the value is a known member of the WebAuthnChallengeResponseWebauthn0Type enum.
type WebAuthnChallengeResponseWebauthn1 ¶
type WebAuthnChallengeResponseWebauthn1 struct {
CredentialOptions struct {
// PublicKey PublicKeyCredentialRequestOptions for WebAuthn authentication
PublicKey CredentialRequestOptions `json:"publicKey"`
} `json:"credential_options"`
// Type Credential request operation
Type WebAuthnChallengeResponseWebauthn1Type `json:"type"`
}
WebAuthnChallengeResponseWebauthn1 defines model for WebAuthnChallengeResponse.Webauthn.1.
type WebAuthnChallengeResponseWebauthn1Type ¶
type WebAuthnChallengeResponseWebauthn1Type string
WebAuthnChallengeResponseWebauthn1Type Credential request operation
const (
WebAuthnChallengeResponseWebauthn1TypeRequest WebAuthnChallengeResponseWebauthn1Type = "request"
)
Defines values for WebAuthnChallengeResponseWebauthn1Type.
func (WebAuthnChallengeResponseWebauthn1Type) Valid ¶
func (e WebAuthnChallengeResponseWebauthn1Type) Valid() bool
Valid indicates whether the value is a known member of the WebAuthnChallengeResponseWebauthn1Type enum.
type WebAuthnChallengeResponse_Webauthn ¶
type WebAuthnChallengeResponse_Webauthn struct {
// contains filtered or unexported fields
}
WebAuthnChallengeResponse_Webauthn defines model for WebAuthnChallengeResponse.Webauthn.
func (WebAuthnChallengeResponse_Webauthn) AsWebAuthnChallengeResponseWebauthn0 ¶
func (t WebAuthnChallengeResponse_Webauthn) AsWebAuthnChallengeResponseWebauthn0() (WebAuthnChallengeResponseWebauthn0, error)
AsWebAuthnChallengeResponseWebauthn0 returns the union data inside the WebAuthnChallengeResponse_Webauthn as a WebAuthnChallengeResponseWebauthn0
func (WebAuthnChallengeResponse_Webauthn) AsWebAuthnChallengeResponseWebauthn1 ¶
func (t WebAuthnChallengeResponse_Webauthn) AsWebAuthnChallengeResponseWebauthn1() (WebAuthnChallengeResponseWebauthn1, error)
AsWebAuthnChallengeResponseWebauthn1 returns the union data inside the WebAuthnChallengeResponse_Webauthn as a WebAuthnChallengeResponseWebauthn1
func (*WebAuthnChallengeResponse_Webauthn) FromWebAuthnChallengeResponseWebauthn0 ¶
func (t *WebAuthnChallengeResponse_Webauthn) FromWebAuthnChallengeResponseWebauthn0(v WebAuthnChallengeResponseWebauthn0) error
FromWebAuthnChallengeResponseWebauthn0 overwrites any union data inside the WebAuthnChallengeResponse_Webauthn as the provided WebAuthnChallengeResponseWebauthn0
func (*WebAuthnChallengeResponse_Webauthn) FromWebAuthnChallengeResponseWebauthn1 ¶
func (t *WebAuthnChallengeResponse_Webauthn) FromWebAuthnChallengeResponseWebauthn1(v WebAuthnChallengeResponseWebauthn1) error
FromWebAuthnChallengeResponseWebauthn1 overwrites any union data inside the WebAuthnChallengeResponse_Webauthn as the provided WebAuthnChallengeResponseWebauthn1
func (WebAuthnChallengeResponse_Webauthn) MarshalJSON ¶
func (t WebAuthnChallengeResponse_Webauthn) MarshalJSON() ([]byte, error)
func (*WebAuthnChallengeResponse_Webauthn) MergeWebAuthnChallengeResponseWebauthn0 ¶
func (t *WebAuthnChallengeResponse_Webauthn) MergeWebAuthnChallengeResponseWebauthn0(v WebAuthnChallengeResponseWebauthn0) error
MergeWebAuthnChallengeResponseWebauthn0 performs a merge with any union data inside the WebAuthnChallengeResponse_Webauthn, using the provided WebAuthnChallengeResponseWebauthn0
func (*WebAuthnChallengeResponse_Webauthn) MergeWebAuthnChallengeResponseWebauthn1 ¶
func (t *WebAuthnChallengeResponse_Webauthn) MergeWebAuthnChallengeResponseWebauthn1(v WebAuthnChallengeResponseWebauthn1) error
MergeWebAuthnChallengeResponseWebauthn1 performs a merge with any union data inside the WebAuthnChallengeResponse_Webauthn, using the provided WebAuthnChallengeResponseWebauthn1
func (*WebAuthnChallengeResponse_Webauthn) UnmarshalJSON ¶
func (t *WebAuthnChallengeResponse_Webauthn) UnmarshalJSON(b []byte) error