api

package
v0.1.0-alpha.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2026 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOAuth2ScopesForOAuth2

func GetOAuth2ScopesForOAuth2(operation string) []string

GetOAuth2ScopesForOAuth2 returns the required OAuth2 scopes for the given operation.

This is useful for token exchange scenarios where you need to know which scopes to request when obtaining a token for a downstream API call.

Example:

requiredScopes := GetOAuth2ScopesForOAuth2(AddPetOperation)
token := exchangeTokenWithScopes(requiredScopes, "https://api.example.com")

Returns nil if the operation has no scope requirements or if the operation is unknown.

func GetRolesForUsernamePassword

func GetRolesForUsernamePassword(operation string) []string

GetRolesForUsernamePassword returns the required roles for the given operation.

This is useful for authorization scenarios where you need to know which roles are required for an operation.

Example:

requiredRoles := GetRolesForUsernamePassword(AddPetOperation)

Returns nil if the operation has no role requirements or if the operation is unknown.

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AttAlreadyCompleted

type AttAlreadyCompleted struct {
	// Merged property.
	Code string `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptAttAlreadyCompletedDetails `json:"details"`
}

Merged schema. Ref: #

func (*AttAlreadyCompleted) Decode

func (s *AttAlreadyCompleted) Decode(d *jx.Decoder) error

Decode decodes AttAlreadyCompleted from json.

func (*AttAlreadyCompleted) Encode

func (s *AttAlreadyCompleted) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AttAlreadyCompleted) GetCode

func (s *AttAlreadyCompleted) GetCode() string

GetCode returns the value of Code.

func (*AttAlreadyCompleted) GetDetails

GetDetails returns the value of Details.

func (*AttAlreadyCompleted) GetMessage

func (s *AttAlreadyCompleted) GetMessage() string

GetMessage returns the value of Message.

func (*AttAlreadyCompleted) MarshalJSON

func (s *AttAlreadyCompleted) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttAlreadyCompleted) SetCode

func (s *AttAlreadyCompleted) SetCode(val string)

SetCode sets the value of Code.

func (*AttAlreadyCompleted) SetDetails

SetDetails sets the value of Details.

func (*AttAlreadyCompleted) SetMessage

func (s *AttAlreadyCompleted) SetMessage(val string)

SetMessage sets the value of Message.

func (*AttAlreadyCompleted) UnmarshalJSON

func (s *AttAlreadyCompleted) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttAlreadyCompletedDetails

type AttAlreadyCompletedDetails map[string]jx.Raw

Additional error-specific context.

func (*AttAlreadyCompletedDetails) Decode

Decode decodes AttAlreadyCompletedDetails from json.

func (AttAlreadyCompletedDetails) Encode

func (s AttAlreadyCompletedDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AttAlreadyCompletedDetails) MarshalJSON

func (s AttAlreadyCompletedDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttAlreadyCompletedDetails) UnmarshalJSON

func (s *AttAlreadyCompletedDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttInvalidRequest

type AttInvalidRequest struct {
	// Merged property.
	Code string `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptAttInvalidRequestDetails `json:"details"`
}

Merged schema. Ref: #

func (*AttInvalidRequest) Decode

func (s *AttInvalidRequest) Decode(d *jx.Decoder) error

Decode decodes AttInvalidRequest from json.

func (*AttInvalidRequest) Encode

func (s *AttInvalidRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AttInvalidRequest) GetCode

func (s *AttInvalidRequest) GetCode() string

GetCode returns the value of Code.

func (*AttInvalidRequest) GetDetails

GetDetails returns the value of Details.

func (*AttInvalidRequest) GetMessage

func (s *AttInvalidRequest) GetMessage() string

GetMessage returns the value of Message.

func (*AttInvalidRequest) MarshalJSON

func (s *AttInvalidRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttInvalidRequest) SetCode

func (s *AttInvalidRequest) SetCode(val string)

SetCode sets the value of Code.

func (*AttInvalidRequest) SetDetails

SetDetails sets the value of Details.

func (*AttInvalidRequest) SetMessage

func (s *AttInvalidRequest) SetMessage(val string)

SetMessage sets the value of Message.

func (*AttInvalidRequest) UnmarshalJSON

func (s *AttInvalidRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttInvalidRequestDetails

type AttInvalidRequestDetails map[string]jx.Raw

Additional error-specific context.

func (*AttInvalidRequestDetails) Decode

func (s *AttInvalidRequestDetails) Decode(d *jx.Decoder) error

Decode decodes AttInvalidRequestDetails from json.

func (AttInvalidRequestDetails) Encode

func (s AttInvalidRequestDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AttInvalidRequestDetails) MarshalJSON

func (s AttInvalidRequestDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttInvalidRequestDetails) UnmarshalJSON

func (s *AttInvalidRequestDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttInvalidState

type AttInvalidState struct {
	// Merged property.
	Code string `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptAttInvalidStateDetails `json:"details"`
}

Merged schema. Ref: #

func (*AttInvalidState) Decode

func (s *AttInvalidState) Decode(d *jx.Decoder) error

Decode decodes AttInvalidState from json.

func (*AttInvalidState) Encode

func (s *AttInvalidState) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AttInvalidState) GetCode

func (s *AttInvalidState) GetCode() string

GetCode returns the value of Code.

func (*AttInvalidState) GetDetails

GetDetails returns the value of Details.

func (*AttInvalidState) GetMessage

func (s *AttInvalidState) GetMessage() string

GetMessage returns the value of Message.

func (*AttInvalidState) MarshalJSON

func (s *AttInvalidState) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttInvalidState) SetCode

func (s *AttInvalidState) SetCode(val string)

SetCode sets the value of Code.

func (*AttInvalidState) SetDetails

func (s *AttInvalidState) SetDetails(val OptAttInvalidStateDetails)

SetDetails sets the value of Details.

func (*AttInvalidState) SetMessage

func (s *AttInvalidState) SetMessage(val string)

SetMessage sets the value of Message.

func (*AttInvalidState) UnmarshalJSON

func (s *AttInvalidState) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttInvalidStateDetails

type AttInvalidStateDetails map[string]jx.Raw

Additional error-specific context.

func (*AttInvalidStateDetails) Decode

func (s *AttInvalidStateDetails) Decode(d *jx.Decoder) error

Decode decodes AttInvalidStateDetails from json.

func (AttInvalidStateDetails) Encode

func (s AttInvalidStateDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AttInvalidStateDetails) MarshalJSON

func (s AttInvalidStateDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttInvalidStateDetails) UnmarshalJSON

func (s *AttInvalidStateDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttNotCompleted

type AttNotCompleted struct {
	// Merged property.
	Code string `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptAttNotCompletedDetails `json:"details"`
}

Merged schema. Ref: #

func (*AttNotCompleted) Decode

func (s *AttNotCompleted) Decode(d *jx.Decoder) error

Decode decodes AttNotCompleted from json.

func (*AttNotCompleted) Encode

func (s *AttNotCompleted) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AttNotCompleted) GetCode

func (s *AttNotCompleted) GetCode() string

GetCode returns the value of Code.

func (*AttNotCompleted) GetDetails

GetDetails returns the value of Details.

func (*AttNotCompleted) GetMessage

func (s *AttNotCompleted) GetMessage() string

GetMessage returns the value of Message.

func (*AttNotCompleted) MarshalJSON

func (s *AttNotCompleted) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttNotCompleted) SetCode

func (s *AttNotCompleted) SetCode(val string)

SetCode sets the value of Code.

func (*AttNotCompleted) SetDetails

func (s *AttNotCompleted) SetDetails(val OptAttNotCompletedDetails)

SetDetails sets the value of Details.

func (*AttNotCompleted) SetMessage

func (s *AttNotCompleted) SetMessage(val string)

SetMessage sets the value of Message.

func (*AttNotCompleted) UnmarshalJSON

func (s *AttNotCompleted) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttNotCompletedDetails

type AttNotCompletedDetails map[string]jx.Raw

Additional error-specific context.

func (*AttNotCompletedDetails) Decode

func (s *AttNotCompletedDetails) Decode(d *jx.Decoder) error

Decode decodes AttNotCompletedDetails from json.

func (AttNotCompletedDetails) Encode

func (s AttNotCompletedDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AttNotCompletedDetails) MarshalJSON

func (s AttNotCompletedDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttNotCompletedDetails) UnmarshalJSON

func (s *AttNotCompletedDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttNotFound

type AttNotFound struct {
	// Merged property.
	Code string `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptAttNotFoundDetails `json:"details"`
}

Merged schema. Ref: #

func (*AttNotFound) Decode

func (s *AttNotFound) Decode(d *jx.Decoder) error

Decode decodes AttNotFound from json.

func (*AttNotFound) Encode

func (s *AttNotFound) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AttNotFound) GetCode

func (s *AttNotFound) GetCode() string

GetCode returns the value of Code.

func (*AttNotFound) GetDetails

func (s *AttNotFound) GetDetails() OptAttNotFoundDetails

GetDetails returns the value of Details.

func (*AttNotFound) GetMessage

func (s *AttNotFound) GetMessage() string

GetMessage returns the value of Message.

func (*AttNotFound) MarshalJSON

func (s *AttNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttNotFound) SetCode

func (s *AttNotFound) SetCode(val string)

SetCode sets the value of Code.

func (*AttNotFound) SetDetails

func (s *AttNotFound) SetDetails(val OptAttNotFoundDetails)

SetDetails sets the value of Details.

func (*AttNotFound) SetMessage

func (s *AttNotFound) SetMessage(val string)

SetMessage sets the value of Message.

func (*AttNotFound) UnmarshalJSON

func (s *AttNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttNotFoundDetails

type AttNotFoundDetails map[string]jx.Raw

Additional error-specific context.

func (*AttNotFoundDetails) Decode

func (s *AttNotFoundDetails) Decode(d *jx.Decoder) error

Decode decodes AttNotFoundDetails from json.

func (AttNotFoundDetails) Encode

func (s AttNotFoundDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AttNotFoundDetails) MarshalJSON

func (s AttNotFoundDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttNotFoundDetails) UnmarshalJSON

func (s *AttNotFoundDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttProofRejected

type AttProofRejected struct {
	// Merged property.
	Code string `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptAttProofRejectedDetails `json:"details"`
}

Merged schema. Ref: #

func (*AttProofRejected) Decode

func (s *AttProofRejected) Decode(d *jx.Decoder) error

Decode decodes AttProofRejected from json.

func (*AttProofRejected) Encode

func (s *AttProofRejected) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AttProofRejected) GetCode

func (s *AttProofRejected) GetCode() string

GetCode returns the value of Code.

func (*AttProofRejected) GetDetails

GetDetails returns the value of Details.

func (*AttProofRejected) GetMessage

func (s *AttProofRejected) GetMessage() string

GetMessage returns the value of Message.

func (*AttProofRejected) MarshalJSON

func (s *AttProofRejected) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttProofRejected) SetCode

func (s *AttProofRejected) SetCode(val string)

SetCode sets the value of Code.

func (*AttProofRejected) SetDetails

func (s *AttProofRejected) SetDetails(val OptAttProofRejectedDetails)

SetDetails sets the value of Details.

func (*AttProofRejected) SetMessage

func (s *AttProofRejected) SetMessage(val string)

SetMessage sets the value of Message.

func (*AttProofRejected) UnmarshalJSON

func (s *AttProofRejected) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttProofRejectedDetails

type AttProofRejectedDetails map[string]jx.Raw

Additional error-specific context.

func (*AttProofRejectedDetails) Decode

func (s *AttProofRejectedDetails) Decode(d *jx.Decoder) error

Decode decodes AttProofRejectedDetails from json.

func (AttProofRejectedDetails) Encode

func (s AttProofRejectedDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AttProofRejectedDetails) MarshalJSON

func (s AttProofRejectedDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttProofRejectedDetails) UnmarshalJSON

func (s *AttProofRejectedDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttStaleChallenge

type AttStaleChallenge struct {
	// Merged property.
	Code string `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptAttStaleChallengeDetails `json:"details"`
}

Merged schema. Ref: #

func (*AttStaleChallenge) Decode

func (s *AttStaleChallenge) Decode(d *jx.Decoder) error

Decode decodes AttStaleChallenge from json.

func (*AttStaleChallenge) Encode

func (s *AttStaleChallenge) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AttStaleChallenge) GetCode

func (s *AttStaleChallenge) GetCode() string

GetCode returns the value of Code.

func (*AttStaleChallenge) GetDetails

GetDetails returns the value of Details.

func (*AttStaleChallenge) GetMessage

func (s *AttStaleChallenge) GetMessage() string

GetMessage returns the value of Message.

func (*AttStaleChallenge) MarshalJSON

func (s *AttStaleChallenge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttStaleChallenge) SetCode

func (s *AttStaleChallenge) SetCode(val string)

SetCode sets the value of Code.

func (*AttStaleChallenge) SetDetails

SetDetails sets the value of Details.

func (*AttStaleChallenge) SetMessage

func (s *AttStaleChallenge) SetMessage(val string)

SetMessage sets the value of Message.

func (*AttStaleChallenge) UnmarshalJSON

func (s *AttStaleChallenge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttStaleChallengeDetails

type AttStaleChallengeDetails map[string]jx.Raw

Additional error-specific context.

func (*AttStaleChallengeDetails) Decode

func (s *AttStaleChallengeDetails) Decode(d *jx.Decoder) error

Decode decodes AttStaleChallengeDetails from json.

func (AttStaleChallengeDetails) Encode

func (s AttStaleChallengeDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AttStaleChallengeDetails) MarshalJSON

func (s AttStaleChallengeDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttStaleChallengeDetails) UnmarshalJSON

func (s *AttStaleChallengeDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AttemptID

type AttemptID string

func (*AttemptID) Decode

func (s *AttemptID) Decode(d *jx.Decoder) error

Decode decodes AttemptID from json.

func (AttemptID) Encode

func (s AttemptID) Encode(e *jx.Encoder)

Encode encodes AttemptID as json.

func (AttemptID) MarshalJSON

func (s AttemptID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AttemptID) UnmarshalJSON

func (s *AttemptID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (AttemptID) Validate

func (s AttemptID) Validate() error

type AuthAttemptResponse

type AuthAttemptResponse struct {
	AttemptID AttemptID `json:"attempt_id"`
	ProjectID ProjectID `json:"project_id"`
	// Overall state of the authentication attempt:
	// - `in_progress`: factors are still being collected; continue issuing challenges.
	// - `completed`: all required factors have been verified; the attempt is ready for handoff.
	// - `failed`: the attempt has failed (e.g. too many failed proofs) and cannot be continued.
	// - `expired`: the 15-minute TTL has been exceeded.
	State AuthAttemptResponseState `json:"state"`
	// The session being authenticated into. Either newly created or passed in on POST.
	// For step-up (re-auth), this is the existing session_id provided on creation.
	SessionID OptNilSessionID `json:"session_id"`
	// The user ID, if known at this point in the flow.
	// Null until an identifier challenge has been verified.
	UserID OptNilUserID `json:"user_id"`
	// The authentication factor methods that the project policy requires in order
	// to complete this attempt. Computed by the server from the project's auth policy.
	// Clients should use this to determine which challenges still need to be issued.
	RequiredFactors []FactorMethod `json:"required_factors"`
	// The factors that have been successfully verified in this attempt so far.
	// Each item includes method-specific metadata in the payload field.
	// The flow engine uses verified_at timestamps to enforce time-based policies, such as
	// requiring password verification within the last 5 minutes for step-up auth to
	// access sensitive operations.
	// A factor appears here once its challenge reaches `verified` state.
	CompletedFactors []CompletedFactor `json:"completed_factors"`
	// All challenges issued within this attempt, in creation order.
	// Use this to track the state of each factor challenge (pending, verified, failed, expired).
	Challenges []ChallengeResponse `json:"challenges"`
	// When this attempt expires (15-minute TTL from creation).
	ExpiresAt OptDateTime `json:"expires_at"`
	// When this attempt was created.
	CreatedAt time.Time `json:"created_at"`
}

The current state of an authentication attempt. An attempt is an ephemeral state machine (15-minute TTL) that drives a single authentication round. It accepts factor challenges, verifies proofs, and completes into a handoff token. Clients drive the attempt by: 1. Issuing challenges: POST /auth_attempts/{attempt_id}/challenges 2. Verifying proofs: POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify 3. Completing: POST /auth_attempts/{attempt_id}/handoff. Ref: #

func (*AuthAttemptResponse) Decode

func (s *AuthAttemptResponse) Decode(d *jx.Decoder) error

Decode decodes AuthAttemptResponse from json.

func (*AuthAttemptResponse) Encode

func (s *AuthAttemptResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AuthAttemptResponse) GetAttemptID

func (s *AuthAttemptResponse) GetAttemptID() AttemptID

GetAttemptID returns the value of AttemptID.

func (*AuthAttemptResponse) GetChallenges

func (s *AuthAttemptResponse) GetChallenges() []ChallengeResponse

GetChallenges returns the value of Challenges.

func (*AuthAttemptResponse) GetCompletedFactors

func (s *AuthAttemptResponse) GetCompletedFactors() []CompletedFactor

GetCompletedFactors returns the value of CompletedFactors.

func (*AuthAttemptResponse) GetCreatedAt

func (s *AuthAttemptResponse) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*AuthAttemptResponse) GetExpiresAt

func (s *AuthAttemptResponse) GetExpiresAt() OptDateTime

GetExpiresAt returns the value of ExpiresAt.

func (*AuthAttemptResponse) GetProjectID

func (s *AuthAttemptResponse) GetProjectID() ProjectID

GetProjectID returns the value of ProjectID.

func (*AuthAttemptResponse) GetRequiredFactors

func (s *AuthAttemptResponse) GetRequiredFactors() []FactorMethod

GetRequiredFactors returns the value of RequiredFactors.

func (*AuthAttemptResponse) GetSessionID

func (s *AuthAttemptResponse) GetSessionID() OptNilSessionID

GetSessionID returns the value of SessionID.

func (*AuthAttemptResponse) GetState

GetState returns the value of State.

func (*AuthAttemptResponse) GetUserID

func (s *AuthAttemptResponse) GetUserID() OptNilUserID

GetUserID returns the value of UserID.

func (*AuthAttemptResponse) MarshalJSON

func (s *AuthAttemptResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuthAttemptResponse) SetAttemptID

func (s *AuthAttemptResponse) SetAttemptID(val AttemptID)

SetAttemptID sets the value of AttemptID.

func (*AuthAttemptResponse) SetChallenges

func (s *AuthAttemptResponse) SetChallenges(val []ChallengeResponse)

SetChallenges sets the value of Challenges.

func (*AuthAttemptResponse) SetCompletedFactors

func (s *AuthAttemptResponse) SetCompletedFactors(val []CompletedFactor)

SetCompletedFactors sets the value of CompletedFactors.

func (*AuthAttemptResponse) SetCreatedAt

func (s *AuthAttemptResponse) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*AuthAttemptResponse) SetExpiresAt

func (s *AuthAttemptResponse) SetExpiresAt(val OptDateTime)

SetExpiresAt sets the value of ExpiresAt.

func (*AuthAttemptResponse) SetProjectID

func (s *AuthAttemptResponse) SetProjectID(val ProjectID)

SetProjectID sets the value of ProjectID.

func (*AuthAttemptResponse) SetRequiredFactors

func (s *AuthAttemptResponse) SetRequiredFactors(val []FactorMethod)

SetRequiredFactors sets the value of RequiredFactors.

func (*AuthAttemptResponse) SetSessionID

func (s *AuthAttemptResponse) SetSessionID(val OptNilSessionID)

SetSessionID sets the value of SessionID.

func (*AuthAttemptResponse) SetState

SetState sets the value of State.

func (*AuthAttemptResponse) SetUserID

func (s *AuthAttemptResponse) SetUserID(val OptNilUserID)

SetUserID sets the value of UserID.

func (*AuthAttemptResponse) UnmarshalJSON

func (s *AuthAttemptResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AuthAttemptResponse) Validate

func (s *AuthAttemptResponse) Validate() error

type AuthAttemptResponseState

type AuthAttemptResponseState string

Overall state of the authentication attempt: - `in_progress`: factors are still being collected; continue issuing challenges. - `completed`: all required factors have been verified; the attempt is ready for handoff. - `failed`: the attempt has failed (e.g. too many failed proofs) and cannot be continued. - `expired`: the 15-minute TTL has been exceeded.

const (
	AuthAttemptResponseStateInProgress AuthAttemptResponseState = "in_progress"
	AuthAttemptResponseStateCompleted  AuthAttemptResponseState = "completed"
	AuthAttemptResponseStateFailed     AuthAttemptResponseState = "failed"
	AuthAttemptResponseStateExpired    AuthAttemptResponseState = "expired"
)

func (AuthAttemptResponseState) AllValues

AllValues returns all AuthAttemptResponseState values.

func (*AuthAttemptResponseState) Decode

func (s *AuthAttemptResponseState) Decode(d *jx.Decoder) error

Decode decodes AuthAttemptResponseState from json.

func (AuthAttemptResponseState) Encode

func (s AuthAttemptResponseState) Encode(e *jx.Encoder)

Encode encodes AuthAttemptResponseState as json.

func (AuthAttemptResponseState) MarshalJSON

func (s AuthAttemptResponseState) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AuthAttemptResponseState) MarshalText

func (s AuthAttemptResponseState) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AuthAttemptResponseState) UnmarshalJSON

func (s *AuthAttemptResponseState) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AuthAttemptResponseState) UnmarshalText

func (s *AuthAttemptResponseState) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AuthAttemptResponseState) Validate

func (s AuthAttemptResponseState) Validate() error

type AuthMethod

type AuthMethod struct {
	// Whether the authentication method is enabled or not.
	Enabled bool `json:"enabled"`
	// The position of the authentication method in the list of supported methods.
	Position int `json:"position"`
}

Ref: #

func (*AuthMethod) Decode

func (s *AuthMethod) Decode(d *jx.Decoder) error

Decode decodes AuthMethod from json.

func (*AuthMethod) Encode

func (s *AuthMethod) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AuthMethod) GetEnabled

func (s *AuthMethod) GetEnabled() bool

GetEnabled returns the value of Enabled.

func (*AuthMethod) GetPosition

func (s *AuthMethod) GetPosition() int

GetPosition returns the value of Position.

func (*AuthMethod) MarshalJSON

func (s *AuthMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuthMethod) SetEnabled

func (s *AuthMethod) SetEnabled(val bool)

SetEnabled sets the value of Enabled.

func (*AuthMethod) SetPosition

func (s *AuthMethod) SetPosition(val int)

SetPosition sets the value of Position.

func (*AuthMethod) UnmarshalJSON

func (s *AuthMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AuthMethod) Validate

func (s *AuthMethod) Validate() error

type AuthMethods

type AuthMethods struct {
	Password  OptAuthMethod `json:"password"`
	Passkey   OptAuthMethod `json:"passkey"`
	MagicLink OptAuthMethod `json:"magic_link"`
	SSO       OptAuthMethod `json:"sso"`
	Otp       OptAuthMethod `json:"otp"`
}

A list of authentication methods supported by the user definition. Ref: #

func (*AuthMethods) Decode

func (s *AuthMethods) Decode(d *jx.Decoder) error

Decode decodes AuthMethods from json.

func (*AuthMethods) Encode

func (s *AuthMethods) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (s *AuthMethods) GetMagicLink() OptAuthMethod

GetMagicLink returns the value of MagicLink.

func (*AuthMethods) GetOtp

func (s *AuthMethods) GetOtp() OptAuthMethod

GetOtp returns the value of Otp.

func (*AuthMethods) GetPasskey

func (s *AuthMethods) GetPasskey() OptAuthMethod

GetPasskey returns the value of Passkey.

func (*AuthMethods) GetPassword

func (s *AuthMethods) GetPassword() OptAuthMethod

GetPassword returns the value of Password.

func (*AuthMethods) GetSSO

func (s *AuthMethods) GetSSO() OptAuthMethod

GetSSO returns the value of SSO.

func (*AuthMethods) MarshalJSON

func (s *AuthMethods) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (s *AuthMethods) SetMagicLink(val OptAuthMethod)

SetMagicLink sets the value of MagicLink.

func (*AuthMethods) SetOtp

func (s *AuthMethods) SetOtp(val OptAuthMethod)

SetOtp sets the value of Otp.

func (*AuthMethods) SetPasskey

func (s *AuthMethods) SetPasskey(val OptAuthMethod)

SetPasskey sets the value of Passkey.

func (*AuthMethods) SetPassword

func (s *AuthMethods) SetPassword(val OptAuthMethod)

SetPassword sets the value of Password.

func (*AuthMethods) SetSSO

func (s *AuthMethods) SetSSO(val OptAuthMethod)

SetSSO sets the value of SSO.

func (*AuthMethods) UnmarshalJSON

func (s *AuthMethods) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AuthMethods) Validate

func (s *AuthMethods) Validate() error

type AuthorizeDeviceParams

type AuthorizeDeviceParams struct {
	// The client ID of the application that is requesting authorization.
	// This is a required parameter and must match the client ID of a
	// registered application.
	ClientID string
	// The scope parameter is used to specify the permissions that the client
	// is requesting. This is a space delimited list of scopes. For example,
	// you could use this to request access to the user's profile information or
	// to request permission to access certain APIs on behalf of the user.
	Scope OptString `json:",omitempty,omitzero"`
}

AuthorizeDeviceParams is parameters of authorizeDevice operation.

type AuthorizeDeviceRes

type AuthorizeDeviceRes interface {
	// contains filtered or unexported methods
}

type AuthorizeGetFound

type AuthorizeGetFound struct{}

AuthorizeGetFound is response for AuthorizeGet operation.

type AuthorizeGetParams

type AuthorizeGetParams struct {
	// A space delimited list of Authentication Class References. This can be
	// used to specify certain authentication methods or level of assurance
	// that is required for the authentication. For example, you could use
	// this to require multi-factor authentication.
	AcrValues OptString `json:",omitempty,omitzero"`
	// The client ID of the application that is requesting authorization.
	// This is a required parameter and must match the client ID of a
	// registered application.
	ClientID string
	// The code challenge is a cryptographic string used in the PKCE (Proof
	// Key for Code Exchange) flow to enhance security.
	CodeChallenge OptString `json:",omitempty,omitzero"`
	// The code challenge method is used in conjunction with the code challenge
	// in the PKCE flow. It specifies the method used to generate the code
	// challenge. Common values are "S256" for SHA-256 hashing and "plain"
	// for no hashing.
	CodeChallengeMethod OptString `json:",omitempty,omitzero"`
	// The display parameter is used to specify how the authorization server
	// should display the authentication and consent user interface. Common
	// values include "page" for a full-page display, "popup" for a popup
	// window, and "touch" for a mobile-optimized display.
	Display OptString `json:",omitempty,omitzero"`
	// The ID token hint is a previously issued ID token that can be used to
	// pre-fill the authentication form or to provide information about the
	// user to the authorization server. This can be useful for single sign-on
	// scenarios or for providing a smoother user experience.
	IDTokenHint OptString `json:",omitempty,omitzero"`
	// The login hint is a hint to the authorization server about the login
	// identifier of the user. This can be used to pre-fill the username or
	// email field in the authentication form, making it easier for the user
	// to log in.
	LoginHint OptString `json:",omitempty,omitzero"`
	// The max age parameter specifies the maximum amount of time in seconds
	// that has passed since the user last authenticated. If the user has not
	// authenticated within this time frame, they will be required to re-authenticate.
	MaxAge OptInt `json:",omitempty,omitzero"`
	// The nonce parameter is a random string that is used to associate a client
	// session with an ID token and to mitigate replay attacks. The authorization
	// server should include this value in the ID token that it issues, and the
	// client should verify that the value in the ID token matches the value it
	// sent in the authorization request.
	Nonce OptString `json:",omitempty,omitzero"`
	// The prompt parameter is used to specify whether the authorization server
	// should prompt the user for re-authentication and consent. Common values
	// include "none" for no prompts, "login" to prompt for re-authentication,
	// "consent" to prompt for user consent, and "select_account" to prompt
	// the user to select an account if they are logged in with multiple accounts.
	Prompt OptString `json:",omitempty,omitzero"`
	// The redirect URI is the URI to which the authorization server will redirect
	// the user after they have authorized or denied the request. This must match
	// one of the redirect URIs registered for the client application.
	RedirectURI OptString `json:",omitempty,omitzero"`
	// The response mode parameter specifies how the authorization server should
	// return the authorization response. Common values include "query" to return
	// parameters in the query string, "fragment" to return parameters in the URL
	// fragment, and "form_post" to return parameters in an HTTP POST request.
	ResponseMode OptString `json:",omitempty,omitzero"`
	// The response type parameter specifies the type of response that the client
	// is expecting from the authorization server. Common values include "code"
	// for the authorization code flow, "token" for the implicit flow, and "id_token"
	// for OpenID Connect authentication.
	ResponseType string
	// The scope parameter is used to specify the permissions that the client is
	// requesting from the user. This is a space-delimited list of scope values,
	// and the authorization server will use this information to determine what
	// access to grant to the client application.
	Scope OptString `json:",omitempty,omitzero"`
	// The state parameter is a random string that is used to maintain state between
	// the authorization request and the callback. It is used to prevent cross-site
	// request forgery (CSRF) attacks by ensuring that the response received from the
	// authorization server corresponds to the request that was sent.
	State OptString `json:",omitempty,omitzero"`
	// The ui_locales parameter is used to specify the preferred languages and scripts
	// for the user interface that the authorization server should display. This is a
	// space-delimited list of BCP47 language tag values, and it can be used to provide
	// a localized user experience for users from different regions and language
	// preferences.
	UILocales OptString `json:",omitempty,omitzero"`
}

AuthorizeGetParams is parameters of authorizeGet operation.

type AuthorizeGetRes

type AuthorizeGetRes interface {
	// contains filtered or unexported methods
}

type Branding

type Branding struct {
	// Layout preset selector. The default.liquid master template uses this
	// to branch into layout variants. Customers who eject the template
	// can ignore this field entirely.
	Layout OptBrandingLayout `json:"layout"`
	// The LiquidJS template string for rendering this step. The orchestrator
	// parses this template, injects the capability dictionaries as context,
	// and renders the output HTML into its Shadow DOM.
	LiquidTemplate OptString `json:"liquid_template"`
	// Team logo URL.
	LogoURL OptURI `json:"logo_url"`
	// Custom font URL (e.g., Google Fonts CSS).
	FontURL OptURI `json:"font_url"`
	// Hero/background image URL (used by split layout).
	HeroURL OptURI `json:"hero_url"`
}

Resolved branding configuration. Inherited from the app → team → project hierarchy at flow creation time (most specific wins). Read-only projection — branding is configured via the Team/App Branding API, not the Flow API. Ref: #

func (*Branding) Decode

func (s *Branding) Decode(d *jx.Decoder) error

Decode decodes Branding from json.

func (*Branding) Encode

func (s *Branding) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Branding) GetFontURL

func (s *Branding) GetFontURL() OptURI

GetFontURL returns the value of FontURL.

func (*Branding) GetHeroURL

func (s *Branding) GetHeroURL() OptURI

GetHeroURL returns the value of HeroURL.

func (*Branding) GetLayout

func (s *Branding) GetLayout() OptBrandingLayout

GetLayout returns the value of Layout.

func (*Branding) GetLiquidTemplate

func (s *Branding) GetLiquidTemplate() OptString

GetLiquidTemplate returns the value of LiquidTemplate.

func (*Branding) GetLogoURL

func (s *Branding) GetLogoURL() OptURI

GetLogoURL returns the value of LogoURL.

func (*Branding) MarshalJSON

func (s *Branding) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Branding) SetFontURL

func (s *Branding) SetFontURL(val OptURI)

SetFontURL sets the value of FontURL.

func (*Branding) SetHeroURL

func (s *Branding) SetHeroURL(val OptURI)

SetHeroURL sets the value of HeroURL.

func (*Branding) SetLayout

func (s *Branding) SetLayout(val OptBrandingLayout)

SetLayout sets the value of Layout.

func (*Branding) SetLiquidTemplate

func (s *Branding) SetLiquidTemplate(val OptString)

SetLiquidTemplate sets the value of LiquidTemplate.

func (*Branding) SetLogoURL

func (s *Branding) SetLogoURL(val OptURI)

SetLogoURL sets the value of LogoURL.

func (*Branding) UnmarshalJSON

func (s *Branding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Branding) Validate

func (s *Branding) Validate() error

type BrandingLayout

type BrandingLayout string

Layout preset selector. The default.liquid master template uses this to branch into layout variants. Customers who eject the template can ignore this field entirely.

const (
	BrandingLayoutCentered BrandingLayout = "centered"
	BrandingLayoutSplit    BrandingLayout = "split"
)

func (BrandingLayout) AllValues

func (BrandingLayout) AllValues() []BrandingLayout

AllValues returns all BrandingLayout values.

func (*BrandingLayout) Decode

func (s *BrandingLayout) Decode(d *jx.Decoder) error

Decode decodes BrandingLayout from json.

func (BrandingLayout) Encode

func (s BrandingLayout) Encode(e *jx.Encoder)

Encode encodes BrandingLayout as json.

func (BrandingLayout) MarshalJSON

func (s BrandingLayout) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (BrandingLayout) MarshalText

func (s BrandingLayout) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BrandingLayout) UnmarshalJSON

func (s *BrandingLayout) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BrandingLayout) UnmarshalText

func (s *BrandingLayout) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BrandingLayout) Validate

func (s BrandingLayout) Validate() error

type ChallengeID

type ChallengeID string

func (*ChallengeID) Decode

func (s *ChallengeID) Decode(d *jx.Decoder) error

Decode decodes ChallengeID from json.

func (ChallengeID) Encode

func (s ChallengeID) Encode(e *jx.Encoder)

Encode encodes ChallengeID as json.

func (ChallengeID) MarshalJSON

func (s ChallengeID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChallengeID) UnmarshalJSON

func (s *ChallengeID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ChallengeID) Validate

func (s ChallengeID) Validate() error

type ChallengeNonce

type ChallengeNonce string

func (*ChallengeNonce) Decode

func (s *ChallengeNonce) Decode(d *jx.Decoder) error

Decode decodes ChallengeNonce from json.

func (ChallengeNonce) Encode

func (s ChallengeNonce) Encode(e *jx.Encoder)

Encode encodes ChallengeNonce as json.

func (ChallengeNonce) MarshalJSON

func (s ChallengeNonce) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChallengeNonce) UnmarshalJSON

func (s *ChallengeNonce) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ChallengeResponse

type ChallengeResponse struct {
	ChallengeID ChallengeID `json:"challenge_id"`
	// The authentication method this challenge represents.
	// Determines which proof is expected in verify.
	Method FactorMethod `json:"method"`
	// Current state of this challenge:
	// - `pending`: awaiting proof submission
	// - `failed`: proof rejected (invalid credential, wrong code, etc.)
	// - `expired`: challenge TTL exceeded without verification.
	State ChallengeResponseState `json:"state"`
	// When this challenge was issued.
	CreatedAt time.Time `json:"created_at"`
	// When this challenge expires.
	ExpiresAt OptNilDateTime `json:"expires_at"`
	// Method-specific challenge data. Structure depends on the `method` field.
	// - `identifier`, `password`: null (no additional data needed)
	// - `passkey`: WebAuthn challenge and credential options
	// - `idp`: Authorization URL and provider information.
	Payload OptChallengeResponsePayload `json:"payload"`
}

A factor challenge issued within an authentication attempt. A challenge presents a single-factor verification prompt (password entry, TOTP code, passkey assertion, etc.). The client verifies the proof by POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify. Ref: #

func (*ChallengeResponse) Decode

func (s *ChallengeResponse) Decode(d *jx.Decoder) error

Decode decodes ChallengeResponse from json.

func (*ChallengeResponse) Encode

func (s *ChallengeResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ChallengeResponse) GetChallengeID

func (s *ChallengeResponse) GetChallengeID() ChallengeID

GetChallengeID returns the value of ChallengeID.

func (*ChallengeResponse) GetCreatedAt

func (s *ChallengeResponse) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*ChallengeResponse) GetExpiresAt

func (s *ChallengeResponse) GetExpiresAt() OptNilDateTime

GetExpiresAt returns the value of ExpiresAt.

func (*ChallengeResponse) GetMethod

func (s *ChallengeResponse) GetMethod() FactorMethod

GetMethod returns the value of Method.

func (*ChallengeResponse) GetPayload

GetPayload returns the value of Payload.

func (*ChallengeResponse) GetState

GetState returns the value of State.

func (*ChallengeResponse) MarshalJSON

func (s *ChallengeResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChallengeResponse) SetChallengeID

func (s *ChallengeResponse) SetChallengeID(val ChallengeID)

SetChallengeID sets the value of ChallengeID.

func (*ChallengeResponse) SetCreatedAt

func (s *ChallengeResponse) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*ChallengeResponse) SetExpiresAt

func (s *ChallengeResponse) SetExpiresAt(val OptNilDateTime)

SetExpiresAt sets the value of ExpiresAt.

func (*ChallengeResponse) SetMethod

func (s *ChallengeResponse) SetMethod(val FactorMethod)

SetMethod sets the value of Method.

func (*ChallengeResponse) SetPayload

SetPayload sets the value of Payload.

func (*ChallengeResponse) SetState

func (s *ChallengeResponse) SetState(val ChallengeResponseState)

SetState sets the value of State.

func (*ChallengeResponse) UnmarshalJSON

func (s *ChallengeResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ChallengeResponse) Validate

func (s *ChallengeResponse) Validate() error

type ChallengeResponsePayload

type ChallengeResponsePayload struct {
	Type                       ChallengeResponsePayloadType // switch on this field
	IdentifierChallengePayload IdentifierChallengePayload
	PasswordChallengePayload   PasswordChallengePayload
	PasskeyChallengePayload    PasskeyChallengePayload
}

Method-specific challenge data. Structure depends on the `method` field. - `identifier`, `password`: null (no additional data needed) - `passkey`: WebAuthn challenge and credential options - `idp`: Authorization URL and provider information. ChallengeResponsePayload represents sum type.

func NewIdentifierChallengePayloadChallengeResponsePayload

func NewIdentifierChallengePayloadChallengeResponsePayload(v IdentifierChallengePayload) ChallengeResponsePayload

NewIdentifierChallengePayloadChallengeResponsePayload returns new ChallengeResponsePayload from IdentifierChallengePayload.

func NewPasskeyChallengePayloadChallengeResponsePayload

func NewPasskeyChallengePayloadChallengeResponsePayload(v PasskeyChallengePayload) ChallengeResponsePayload

NewPasskeyChallengePayloadChallengeResponsePayload returns new ChallengeResponsePayload from PasskeyChallengePayload.

func NewPasswordChallengePayloadChallengeResponsePayload

func NewPasswordChallengePayloadChallengeResponsePayload(v PasswordChallengePayload) ChallengeResponsePayload

NewPasswordChallengePayloadChallengeResponsePayload returns new ChallengeResponsePayload from PasswordChallengePayload.

func (*ChallengeResponsePayload) Decode

func (s *ChallengeResponsePayload) Decode(d *jx.Decoder) error

Decode decodes ChallengeResponsePayload from json.

func (ChallengeResponsePayload) Encode

func (s ChallengeResponsePayload) Encode(e *jx.Encoder)

Encode encodes ChallengeResponsePayload as json.

func (ChallengeResponsePayload) GetIdentifierChallengePayload

func (s ChallengeResponsePayload) GetIdentifierChallengePayload() (v IdentifierChallengePayload, ok bool)

GetIdentifierChallengePayload returns IdentifierChallengePayload and true boolean if ChallengeResponsePayload is IdentifierChallengePayload.

func (ChallengeResponsePayload) GetPasskeyChallengePayload

func (s ChallengeResponsePayload) GetPasskeyChallengePayload() (v PasskeyChallengePayload, ok bool)

GetPasskeyChallengePayload returns PasskeyChallengePayload and true boolean if ChallengeResponsePayload is PasskeyChallengePayload.

func (ChallengeResponsePayload) GetPasswordChallengePayload

func (s ChallengeResponsePayload) GetPasswordChallengePayload() (v PasswordChallengePayload, ok bool)

GetPasswordChallengePayload returns PasswordChallengePayload and true boolean if ChallengeResponsePayload is PasswordChallengePayload.

func (ChallengeResponsePayload) IsIdentifierChallengePayload

func (s ChallengeResponsePayload) IsIdentifierChallengePayload() bool

IsIdentifierChallengePayload reports whether ChallengeResponsePayload is IdentifierChallengePayload.

func (ChallengeResponsePayload) IsPasskeyChallengePayload

func (s ChallengeResponsePayload) IsPasskeyChallengePayload() bool

IsPasskeyChallengePayload reports whether ChallengeResponsePayload is PasskeyChallengePayload.

func (ChallengeResponsePayload) IsPasswordChallengePayload

func (s ChallengeResponsePayload) IsPasswordChallengePayload() bool

IsPasswordChallengePayload reports whether ChallengeResponsePayload is PasswordChallengePayload.

func (ChallengeResponsePayload) MarshalJSON

func (s ChallengeResponsePayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChallengeResponsePayload) SetIdentifierChallengePayload

func (s *ChallengeResponsePayload) SetIdentifierChallengePayload(v IdentifierChallengePayload)

SetIdentifierChallengePayload sets ChallengeResponsePayload to IdentifierChallengePayload.

func (*ChallengeResponsePayload) SetPasskeyChallengePayload

func (s *ChallengeResponsePayload) SetPasskeyChallengePayload(v PasskeyChallengePayload)

SetPasskeyChallengePayload sets ChallengeResponsePayload to PasskeyChallengePayload.

func (*ChallengeResponsePayload) SetPasswordChallengePayload

func (s *ChallengeResponsePayload) SetPasswordChallengePayload(v PasswordChallengePayload)

SetPasswordChallengePayload sets ChallengeResponsePayload to PasswordChallengePayload.

func (*ChallengeResponsePayload) UnmarshalJSON

func (s *ChallengeResponsePayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ChallengeResponsePayload) Validate

func (s ChallengeResponsePayload) Validate() error

type ChallengeResponsePayloadType

type ChallengeResponsePayloadType string

ChallengeResponsePayloadType is oneOf type of ChallengeResponsePayload.

const (
	IdentifierChallengePayloadChallengeResponsePayload ChallengeResponsePayloadType = "identifier"
	PasswordChallengePayloadChallengeResponsePayload   ChallengeResponsePayloadType = "password"
	PasskeyChallengePayloadChallengeResponsePayload    ChallengeResponsePayloadType = "passkey"
)

Possible values for ChallengeResponsePayloadType.

type ChallengeResponseState

type ChallengeResponseState string

Current state of this challenge: - `pending`: awaiting proof submission - `failed`: proof rejected (invalid credential, wrong code, etc.) - `expired`: challenge TTL exceeded without verification.

const (
	ChallengeResponseStatePending ChallengeResponseState = "pending"
	ChallengeResponseStateFailed  ChallengeResponseState = "failed"
	ChallengeResponseStateExpired ChallengeResponseState = "expired"
)

func (ChallengeResponseState) AllValues

AllValues returns all ChallengeResponseState values.

func (*ChallengeResponseState) Decode

func (s *ChallengeResponseState) Decode(d *jx.Decoder) error

Decode decodes ChallengeResponseState from json.

func (ChallengeResponseState) Encode

func (s ChallengeResponseState) Encode(e *jx.Encoder)

Encode encodes ChallengeResponseState as json.

func (ChallengeResponseState) MarshalJSON

func (s ChallengeResponseState) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ChallengeResponseState) MarshalText

func (s ChallengeResponseState) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ChallengeResponseState) UnmarshalJSON

func (s *ChallengeResponseState) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ChallengeResponseState) UnmarshalText

func (s *ChallengeResponseState) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ChallengeResponseState) Validate

func (s ChallengeResponseState) Validate() error

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) AuthorizeDevice

func (c *Client) AuthorizeDevice(ctx context.Context, params AuthorizeDeviceParams) (AuthorizeDeviceRes, error)

AuthorizeDevice invokes authorizeDevice operation.

Authorize a device.

GET /auth/device-authorization

func (*Client) AuthorizeGet

func (c *Client) AuthorizeGet(ctx context.Context, params AuthorizeGetParams) (AuthorizeGetRes, error)

AuthorizeGet invokes authorizeGet operation.

Authorize a user.

GET /auth/authorize

func (*Client) CreateAuthAttempt

func (c *Client) CreateAuthAttempt(ctx context.Context, request *CreateAuthAttemptRequest) (CreateAuthAttemptRes, error)

CreateAuthAttempt invokes createAuthAttempt operation.

Starts a new authentication attempt. This is the entry point for the auth_attempts state machine. An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round. It accepts factor challenges, verifies proofs, and completes into a session or handoff token. Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth, also include session_id to add factors to an existing session.

POST /auth_attempts

func (*Client) CreateFlow

func (c *Client) CreateFlow(ctx context.Context, request *CreateFlowRequest) (CreateFlowRes, error)

CreateFlow invokes createFlow operation.

Resolves a flow definition based on purpose + audience context and returns the first capability step. Creates a new session implicitly unless `session_id` is provided (for step-up / reauth on an existing session). The response contains an `id` field — the flow handle. Use it as the path parameter for all subsequent `/flow/{id}/submit` and `/flow/{id}/event` calls. The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing the flow's orchestration state (current step, collected data, history). The server is stateless between requests — all flow state lives in this cookie. The browser sends it automatically on subsequent requests.

POST /flow

func (*Client) CreateFlowDefinition

func (c *Client) CreateFlowDefinition(ctx context.Context, request *CreateFlowDefinitionRequest) (CreateFlowDefinitionRes, error)

CreateFlowDefinition invokes createFlowDefinition operation.

Creates a new flow definition. Flow definitions are templates that define the sequence of steps (capabilities) for a particular user journey (e.g., registration, login, password reset). Flow definitions are created based on the flow meta schema, which includes the flow's purpose, audience, and the steps involved.

POST /flow_definitions

func (*Client) CreateHandoff

func (c *Client) CreateHandoff(ctx context.Context, params CreateHandoffParams) (CreateHandoffRes, error)

CreateHandoff invokes createHandoff operation.

Completes the authentication attempt and mints a `handoff_token`. Call this after all required factors have been verified and the attempt is in `completed` state. The handoff token is short-lived (≤60 seconds) and must be exchanged at POST /sessions/exchange to receive the final session and session_token. The handoff token is: - Single-use (atomic exchange, no retry) - Audience-bound (requires matching project key for exchange) - Idempotency-safe within a 5-minute window (see conventions).

POST /auth_attempts/{attempt_id}/handoff

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, request *CreateProjectRequest) (CreateProjectRes, error)

CreateProject invokes createProject operation.

Create project.

POST /projects

func (*Client) CreateSchema

func (c *Client) CreateSchema(ctx context.Context, request CreateSchemaReq, params CreateSchemaParams) (CreateSchemaRes, error)

CreateSchema invokes createSchema operation.

Create a new schema. The schema definition must include a unique $id field, which will be used to identify the schema in future requests. The $id must be a valid URI and should ideally point to the location where the schema can be accessed. The schema can either be a concrete schema, e.g. a user schema, or a schema-url which will be resolved by the server.

POST /schemas

func (*Client) CreateSession

func (c *Client) CreateSession(ctx context.Context, request *CreateSessionRequest) (CreateSessionRes, error)

CreateSession invokes createSession operation.

Creates an anonymous session shell with no user and no factors (`state: building`). This is optional — an `auth_attempt` will create a session implicitly if none is provided. Use this explicitly when you want to: - Pre-allocate a `session_id` before the user is known, so device/telemetry signals can be correlated with the eventual authenticated session from the start. - Track anonymous state (bot detection, device fingerprint) that survives until authentication. The returned `session_token` authorises GET and DELETE on this session. It is superseded when a handoff exchange completes — clients must replace it at that point. Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured full session TTL when the first authentication factor is written via a completing `auth_attempt`.

POST /sessions

func (*Client) CreateTeam

func (c *Client) CreateTeam(ctx context.Context, request *CreateTeamRequest, params CreateTeamParams) (CreateTeamRes, error)

CreateTeam invokes createTeam operation.

Create team.

POST /teams

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, request *User, params CreateUserParams) (CreateUserRes, error)

CreateUser invokes createUser operation.

Create user.

POST /users

func (*Client) DeleteFlowDefinition

func (c *Client) DeleteFlowDefinition(ctx context.Context, params DeleteFlowDefinitionParams) (DeleteFlowDefinitionRes, error)

DeleteFlowDefinition invokes deleteFlowDefinition operation.

Delete a flow definition by id.

DELETE /flow_definitions/{id}

func (*Client) EndSession

func (c *Client) EndSession(ctx context.Context, params EndSessionParams) (EndSessionRes, error)

EndSession invokes endSession operation.

End a session.

GET /auth/end-session

func (*Client) ExchangeHandoff

func (c *Client) ExchangeHandoff(ctx context.Context, request *ExchangeRequest, params ExchangeHandoffParams) (ExchangeHandoffRes, error)

ExchangeHandoff invokes exchangeHandoff operation.

Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff` and returns the resulting session and a `session_token`. The server resolves the originating `auth_attempt` from the token and then: | Originating auth_attempt | Outcome | |---|---| | No `session_id` | A new authenticated session is **created**. | | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. | | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. | The response shape is identical in all three cases. The `session_token` supersedes any previously issued `session_token` for the same session. Clients must replace their stored token at this point. Requires a project service key (OAuth2 client credentials).

POST /sessions/exchange

func (*Client) GetAuthAttempt

func (c *Client) GetAuthAttempt(ctx context.Context, params GetAuthAttemptParams) (GetAuthAttemptRes, error)

GetAuthAttempt invokes getAuthAttempt operation.

Polls the current state of an authentication attempt. Returns the attempt's state, available factors for the next challenge, challenges issued so far, and any errors preventing progress. Use this for polling during long-running factor verifications (e.g., waiting for a federated IdP callback or a device flow).

GET /auth_attempts/{attempt_id}

func (*Client) GetFlowDefinition

func (c *Client) GetFlowDefinition(ctx context.Context, params GetFlowDefinitionParams) (GetFlowDefinitionRes, error)

GetFlowDefinition invokes getFlowDefinition operation.

Get a flow definition by id.

GET /flow_definitions/{id}

func (*Client) GetFlowStep

func (c *Client) GetFlowStep(ctx context.Context, params GetFlowStepParams) (GetFlowStepRes, error)

GetFlowStep invokes getFlowStep operation.

Returns the current capability step without advancing the state machine. Useful for page reloads or re-rendering after a network error.

GET /flow/{id}

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context) (GetHealthRes, error)

GetHealth invokes getHealth operation.

Check whether the server is healthy.

GET /healthz

func (*Client) GetKeys

func (c *Client) GetKeys(ctx context.Context) (GetKeysRes, error)

GetKeys invokes getKeys operation.

Get public keys.

GET /auth/keys

func (*Client) GetLive

func (c *Client) GetLive(ctx context.Context) (GetLiveRes, error)

GetLive invokes getLive operation.

Check whether the server is started.

GET /livez

func (*Client) GetMySession

func (c *Client) GetMySession(ctx context.Context, params GetMySessionParams) (GetMySessionRes, error)

GetMySession invokes getMySession operation.

Returns the current state of the current session including its factors and all currently satisfied assurance levels. `assurance_levels[]` may shrink over time as factor freshness windows expire, without the session itself expiring. Use step-up authentication (a new `auth_attempt` against the same `session_id`) to restore a dropped assurance level.

GET /sessions/me

func (*Client) GetMyUser

func (c *Client) GetMyUser(ctx context.Context, params GetMyUserParams) (GetMyUserRes, error)

GetMyUser invokes getMyUser operation.

Get my user information.

GET /users/me

func (*Client) GetOpenIDConfiguration

func (c *Client) GetOpenIDConfiguration(ctx context.Context) (GetOpenIDConfigurationRes, error)

GetOpenIDConfiguration invokes getOpenIDConfiguration operation.

Retrieve the OpenID Connect configuration.

GET /.well-known/openid-configuration

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)

GetProject invokes getProject operation.

Returns the current state of a project.

GET /projects/{project_id}

func (*Client) GetReady

func (c *Client) GetReady(ctx context.Context) (GetReadyRes, error)

GetReady invokes getReady operation.

Check whether the server is ready to accept requests.

GET /readyz

func (*Client) GetSchemaById

func (c *Client) GetSchemaById(ctx context.Context, params GetSchemaByIdParams) (GetSchemaByIdRes, error)

GetSchemaById invokes getSchemaById operation.

Get a schema by its ID. This will return the default revision of the schema.

GET /schemas/{id}

func (*Client) GetSession

func (c *Client) GetSession(ctx context.Context, params GetSessionParams) (GetSessionRes, error)

GetSession invokes getSession operation.

Returns the current state of a session including its factors and all currently satisfied assurance levels. `assurance_levels[]` may shrink over time as factor freshness windows expire, without the session itself expiring. Use step-up authentication (a new `auth_attempt` against the same `session_id`) to restore a dropped assurance level.

GET /sessions/{session_id}

func (*Client) GetTeam

func (c *Client) GetTeam(ctx context.Context, params GetTeamParams) (GetTeamRes, error)

GetTeam invokes getTeam operation.

Returns the current state of a team.

GET /teams/{team_id}

func (*Client) GetToken

func (c *Client) GetToken(ctx context.Context, request *PostTokenRequest) (GetTokenRes, error)

GetToken invokes getToken operation.

Get accesstoken.

POST /auth/token

func (*Client) GetUserByID

func (c *Client) GetUserByID(ctx context.Context, params GetUserByIDParams) (GetUserByIDRes, error)

GetUserByID invokes GetUserByID operation.

Get user by ID.

GET /users/{user_id}

func (*Client) GetUserInfo

func (c *Client) GetUserInfo(ctx context.Context) (GetUserInfoRes, error)

GetUserInfo invokes getUserInfo operation.

Get user info.

GET /auth/userinfo

func (*Client) Introspect

func (c *Client) Introspect(ctx context.Context, request *IntrospectRequest) (IntrospectRes, error)

Introspect invokes introspect operation.

Introspect a token.

POST /auth/introspect

func (*Client) IssueChallenge

func (c *Client) IssueChallenge(ctx context.Context, request *IssueChallengeRequest, params IssueChallengeParams) (IssueChallengeRes, error)

IssueChallenge invokes issueChallenge operation.

Issues a single-factor verification challenge within an auth attempt. This advances the authentication state machine by requesting a specific factor method (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details including method, metadata, and any UI hints. The client then verifies the proof by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.

POST /auth_attempts/{attempt_id}/challenges

func (*Client) ListFlowDefinitions

func (c *Client) ListFlowDefinitions(ctx context.Context, params ListFlowDefinitionsParams) (ListFlowDefinitionsRes, error)

ListFlowDefinitions invokes listFlowDefinitions operation.

Retrieves a list of all flow definitions. This endpoint can be used to view existing flow definitions and their configurations.

GET /flow_definitions

func (*Client) ListSessions

func (c *Client) ListSessions(ctx context.Context, params ListSessionsParams) (ListSessionsRes, error)

ListSessions invokes listSessions operation.

Returns a paginated list of sessions for a project. Requires a project service key (OAuth2 client credentials).

GET /sessions

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context, params ListUsersParams) (ListUsersRes, error)

ListUsers invokes listUsers operation.

List users.

GET /users

func (*Client) RevokeMySession

func (c *Client) RevokeMySession(ctx context.Context, params RevokeMySessionParams) (RevokeMySessionRes, error)

RevokeMySession invokes revokeMySession operation.

Revokes the session immediately (`state: revoked`). This is the logout operation. The __nextgen_session cookie issued at creation (or superseded by a handoff exchange) is required. After revocation, any tokens derived from this session are invalidated including the cookie itself,

which is cleared in the response.

DELETE /sessions/me

func (*Client) RevokeSession

func (c *Client) RevokeSession(ctx context.Context, params RevokeSessionParams) (RevokeSessionRes, error)

RevokeSession invokes revokeSession operation.

Revokes the session immediately (`state: revoked`). This is the logout operation. The session_token issued at creation (or superseded by a handoff exchange) is required. After revocation, any tokens derived from this session are invalidated.

DELETE /sessions/{session_id}

func (*Client) RevokeToken

func (c *Client) RevokeToken(ctx context.Context, request *RevokeRequest) (RevokeTokenRes, error)

RevokeToken invokes revokeToken operation.

Revoke an access token or refresh token.

POST /auth/revoke

func (*Client) SetUserPassword

func (c *Client) SetUserPassword(ctx context.Context, request *SetUserPasswordRequest, params SetUserPasswordParams) (SetUserPasswordRes, error)

SetUserPassword invokes setUserPassword operation.

Set user password.

PUT /users/{user_id}/password

func (*Client) SubmitFlowEvent

func (c *Client) SubmitFlowEvent(ctx context.Context, request *FlowEventRequest, params SubmitFlowEventParams) (SubmitFlowEventRes, error)

SubmitFlowEvent invokes submitFlowEvent operation.

Submits telemetry or fingerprint data from the frontend. Does not advance the state machine. Used for risk evaluation.

POST /flow/{id}/event

func (*Client) SubmitFlowStep

func (c *Client) SubmitFlowStep(ctx context.Context, request *FlowSubmitRequest, params SubmitFlowStepParams) (SubmitFlowStepRes, error)

SubmitFlowStep invokes submitFlowStep operation.

Submits user input for the current step. The server validates, processes (e.g., verifies a credential), advances the state machine through any invisible steps, and returns the next visible step. The response sets an updated encrypted `HttpOnly` cookie (`_zflow`) with the new flow state. The server is stateless — all orchestration state is carried in this cookie between requests. **Important:** The `id` in the response may differ from the `id` used in the request. This happens when a flow pivots (pushes a new flow onto the stack) or when a stacked flow completes (auto-pops to the parent flow). Always use the `id` from the latest response for the next request. ## Flow completion When `step.type` is `complete`, the flow is terminal. The `step.behavior` field tells the frontend what to do: | `behavior` | Action | |------------- |------------------------------------------------------------| | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). | | `show` | Render the step as a success screen (e.g., registration). | A `complete` step is only returned when the **entire flow stack** is done. If a stacked flow (e.g., recovery pivoted from login) finishes, the server auto-pops to the parent flow and returns the parent's next step — the frontend never sees a `complete` for intermediate flows.

POST /flow/{id}/submit

func (*Client) UpdateFlowDefinition

UpdateFlowDefinition invokes updateFlowDefinition operation.

Update a flow definition by id.

PATCH /flow_definitions/{id}

func (*Client) VerifyChallengeProof

func (c *Client) VerifyChallengeProof(ctx context.Context, request *VerifyChallengeRequest, params VerifyChallengeProofParams) (VerifyChallengeProofRes, error)

VerifyChallengeProof invokes verifyChallengeProof operation.

Submits a proof (credential, code, assertion) to verify a factor challenge. The proof format depends on the challenge method. For example: - `password` method: { password: "…" } - `totp` method: { totp: { code: "123456" } } - `passkey` method: { passkey: { assertion: "…" } } - `recovery_code` method: { recovery_code: "…" } On successful verification, the factor is written to the auth attempt. The attempt moves to the next pending challenge or completes if all required factors are verified.

POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type CompletedFactor

type CompletedFactor struct {
	// The authentication method that was verified.
	Method FactorMethod `json:"method"`
	// When this factor was successfully verified.
	VerifiedAt time.Time `json:"verified_at"`
	// Method-specific factor metadata. Structure depends on the `method` field.
	// - `identifier`: includes user_id
	// - `password`: no additional data
	// - `passkey`: includes credential details and verification flags.
	Payload OptCompletedFactorPayload `json:"payload"`
}

A successfully verified authentication factor with verification metadata. Method-specific details are included in the `payload` field. Ref: #

func (*CompletedFactor) Decode

func (s *CompletedFactor) Decode(d *jx.Decoder) error

Decode decodes CompletedFactor from json.

func (*CompletedFactor) Encode

func (s *CompletedFactor) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CompletedFactor) GetMethod

func (s *CompletedFactor) GetMethod() FactorMethod

GetMethod returns the value of Method.

func (*CompletedFactor) GetPayload

GetPayload returns the value of Payload.

func (*CompletedFactor) GetVerifiedAt

func (s *CompletedFactor) GetVerifiedAt() time.Time

GetVerifiedAt returns the value of VerifiedAt.

func (*CompletedFactor) MarshalJSON

func (s *CompletedFactor) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompletedFactor) SetMethod

func (s *CompletedFactor) SetMethod(val FactorMethod)

SetMethod sets the value of Method.

func (*CompletedFactor) SetPayload

func (s *CompletedFactor) SetPayload(val OptCompletedFactorPayload)

SetPayload sets the value of Payload.

func (*CompletedFactor) SetVerifiedAt

func (s *CompletedFactor) SetVerifiedAt(val time.Time)

SetVerifiedAt sets the value of VerifiedAt.

func (*CompletedFactor) UnmarshalJSON

func (s *CompletedFactor) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CompletedFactor) Validate

func (s *CompletedFactor) Validate() error

type CompletedFactorPayload

type CompletedFactorPayload struct {
	Type                    CompletedFactorPayloadType // switch on this field
	IdentifierFactorPayload IdentifierFactorPayload
	PasswordFactorPayload   PasswordFactorPayload
	PasskeyFactorPayload    PasskeyFactorPayload
}

Method-specific factor metadata. Structure depends on the `method` field. - `identifier`: includes user_id - `password`: no additional data - `passkey`: includes credential details and verification flags. CompletedFactorPayload represents sum type.

func NewIdentifierFactorPayloadCompletedFactorPayload

func NewIdentifierFactorPayloadCompletedFactorPayload(v IdentifierFactorPayload) CompletedFactorPayload

NewIdentifierFactorPayloadCompletedFactorPayload returns new CompletedFactorPayload from IdentifierFactorPayload.

func NewPasskeyFactorPayloadCompletedFactorPayload

func NewPasskeyFactorPayloadCompletedFactorPayload(v PasskeyFactorPayload) CompletedFactorPayload

NewPasskeyFactorPayloadCompletedFactorPayload returns new CompletedFactorPayload from PasskeyFactorPayload.

func NewPasswordFactorPayloadCompletedFactorPayload

func NewPasswordFactorPayloadCompletedFactorPayload(v PasswordFactorPayload) CompletedFactorPayload

NewPasswordFactorPayloadCompletedFactorPayload returns new CompletedFactorPayload from PasswordFactorPayload.

func (*CompletedFactorPayload) Decode

func (s *CompletedFactorPayload) Decode(d *jx.Decoder) error

Decode decodes CompletedFactorPayload from json.

func (CompletedFactorPayload) Encode

func (s CompletedFactorPayload) Encode(e *jx.Encoder)

Encode encodes CompletedFactorPayload as json.

func (CompletedFactorPayload) GetIdentifierFactorPayload

func (s CompletedFactorPayload) GetIdentifierFactorPayload() (v IdentifierFactorPayload, ok bool)

GetIdentifierFactorPayload returns IdentifierFactorPayload and true boolean if CompletedFactorPayload is IdentifierFactorPayload.

func (CompletedFactorPayload) GetPasskeyFactorPayload

func (s CompletedFactorPayload) GetPasskeyFactorPayload() (v PasskeyFactorPayload, ok bool)

GetPasskeyFactorPayload returns PasskeyFactorPayload and true boolean if CompletedFactorPayload is PasskeyFactorPayload.

func (CompletedFactorPayload) GetPasswordFactorPayload

func (s CompletedFactorPayload) GetPasswordFactorPayload() (v PasswordFactorPayload, ok bool)

GetPasswordFactorPayload returns PasswordFactorPayload and true boolean if CompletedFactorPayload is PasswordFactorPayload.

func (CompletedFactorPayload) IsIdentifierFactorPayload

func (s CompletedFactorPayload) IsIdentifierFactorPayload() bool

IsIdentifierFactorPayload reports whether CompletedFactorPayload is IdentifierFactorPayload.

func (CompletedFactorPayload) IsPasskeyFactorPayload

func (s CompletedFactorPayload) IsPasskeyFactorPayload() bool

IsPasskeyFactorPayload reports whether CompletedFactorPayload is PasskeyFactorPayload.

func (CompletedFactorPayload) IsPasswordFactorPayload

func (s CompletedFactorPayload) IsPasswordFactorPayload() bool

IsPasswordFactorPayload reports whether CompletedFactorPayload is PasswordFactorPayload.

func (CompletedFactorPayload) MarshalJSON

func (s CompletedFactorPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompletedFactorPayload) SetIdentifierFactorPayload

func (s *CompletedFactorPayload) SetIdentifierFactorPayload(v IdentifierFactorPayload)

SetIdentifierFactorPayload sets CompletedFactorPayload to IdentifierFactorPayload.

func (*CompletedFactorPayload) SetPasskeyFactorPayload

func (s *CompletedFactorPayload) SetPasskeyFactorPayload(v PasskeyFactorPayload)

SetPasskeyFactorPayload sets CompletedFactorPayload to PasskeyFactorPayload.

func (*CompletedFactorPayload) SetPasswordFactorPayload

func (s *CompletedFactorPayload) SetPasswordFactorPayload(v PasswordFactorPayload)

SetPasswordFactorPayload sets CompletedFactorPayload to PasswordFactorPayload.

func (*CompletedFactorPayload) UnmarshalJSON

func (s *CompletedFactorPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (CompletedFactorPayload) Validate

func (s CompletedFactorPayload) Validate() error

type CompletedFactorPayloadType

type CompletedFactorPayloadType string

CompletedFactorPayloadType is oneOf type of CompletedFactorPayload.

const (
	IdentifierFactorPayloadCompletedFactorPayload CompletedFactorPayloadType = "identifier"
	PasswordFactorPayloadCompletedFactorPayload   CompletedFactorPayloadType = "password"
	PasskeyFactorPayloadCompletedFactorPayload    CompletedFactorPayloadType = "passkey"
)

Possible values for CompletedFactorPayloadType.

type CreateAuthAttemptErrorResponse

type CreateAuthAttemptErrorResponse struct {
	Type              CreateAuthAttemptErrorResponseType // switch on this field
	AttInvalidRequest AttInvalidRequest
	Internal          Internal
}

CreateAuthAttemptErrorResponse represents sum type.

func NewAttInvalidRequestCreateAuthAttemptErrorResponse

func NewAttInvalidRequestCreateAuthAttemptErrorResponse(v AttInvalidRequest) CreateAuthAttemptErrorResponse

NewAttInvalidRequestCreateAuthAttemptErrorResponse returns new CreateAuthAttemptErrorResponse from AttInvalidRequest.

func NewInternalCreateAuthAttemptErrorResponse

func NewInternalCreateAuthAttemptErrorResponse(v Internal) CreateAuthAttemptErrorResponse

NewInternalCreateAuthAttemptErrorResponse returns new CreateAuthAttemptErrorResponse from Internal.

func (*CreateAuthAttemptErrorResponse) Decode

Decode decodes CreateAuthAttemptErrorResponse from json.

func (CreateAuthAttemptErrorResponse) Encode

Encode encodes CreateAuthAttemptErrorResponse as json.

func (CreateAuthAttemptErrorResponse) GetAttInvalidRequest

func (s CreateAuthAttemptErrorResponse) GetAttInvalidRequest() (v AttInvalidRequest, ok bool)

GetAttInvalidRequest returns AttInvalidRequest and true boolean if CreateAuthAttemptErrorResponse is AttInvalidRequest.

func (CreateAuthAttemptErrorResponse) GetInternal

func (s CreateAuthAttemptErrorResponse) GetInternal() (v Internal, ok bool)

GetInternal returns Internal and true boolean if CreateAuthAttemptErrorResponse is Internal.

func (CreateAuthAttemptErrorResponse) IsAttInvalidRequest

func (s CreateAuthAttemptErrorResponse) IsAttInvalidRequest() bool

IsAttInvalidRequest reports whether CreateAuthAttemptErrorResponse is AttInvalidRequest.

func (CreateAuthAttemptErrorResponse) IsInternal

func (s CreateAuthAttemptErrorResponse) IsInternal() bool

IsInternal reports whether CreateAuthAttemptErrorResponse is Internal.

func (CreateAuthAttemptErrorResponse) MarshalJSON

func (s CreateAuthAttemptErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateAuthAttemptErrorResponse) SetAttInvalidRequest

func (s *CreateAuthAttemptErrorResponse) SetAttInvalidRequest(v AttInvalidRequest)

SetAttInvalidRequest sets CreateAuthAttemptErrorResponse to AttInvalidRequest.

func (*CreateAuthAttemptErrorResponse) SetInternal

func (s *CreateAuthAttemptErrorResponse) SetInternal(v Internal)

SetInternal sets CreateAuthAttemptErrorResponse to Internal.

func (*CreateAuthAttemptErrorResponse) UnmarshalJSON

func (s *CreateAuthAttemptErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateAuthAttemptErrorResponseStatusCode

type CreateAuthAttemptErrorResponseStatusCode struct {
	StatusCode int
	Response   CreateAuthAttemptErrorResponse
}

CreateAuthAttemptErrorResponseStatusCode wraps CreateAuthAttemptErrorResponse with StatusCode.

func (*CreateAuthAttemptErrorResponseStatusCode) GetResponse

GetResponse returns the value of Response.

func (*CreateAuthAttemptErrorResponseStatusCode) GetStatusCode

func (s *CreateAuthAttemptErrorResponseStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*CreateAuthAttemptErrorResponseStatusCode) SetResponse

SetResponse sets the value of Response.

func (*CreateAuthAttemptErrorResponseStatusCode) SetStatusCode

func (s *CreateAuthAttemptErrorResponseStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type CreateAuthAttemptErrorResponseType

type CreateAuthAttemptErrorResponseType string

CreateAuthAttemptErrorResponseType is oneOf type of CreateAuthAttemptErrorResponse.

const (
	AttInvalidRequestCreateAuthAttemptErrorResponse CreateAuthAttemptErrorResponseType = "att.invalid_request"
	InternalCreateAuthAttemptErrorResponse          CreateAuthAttemptErrorResponseType = "internal"
)

Possible values for CreateAuthAttemptErrorResponseType.

type CreateAuthAttemptRequest

type CreateAuthAttemptRequest struct {
	ProjectID      ProjectID         `json:"project_id"`
	ChallengeNonce OptChallengeNonce `json:"challenge_nonce"`
	// Optional. If provided, this attempt adds factors to an existing session (step-up auth).
	// If omitted, a new session is created implicitly on successful handoff.
	SessionID OptNilSessionID `json:"session_id"`
}

Request to create a new authentication attempt. Ref: #

func (*CreateAuthAttemptRequest) Decode

func (s *CreateAuthAttemptRequest) Decode(d *jx.Decoder) error

Decode decodes CreateAuthAttemptRequest from json.

func (*CreateAuthAttemptRequest) Encode

func (s *CreateAuthAttemptRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateAuthAttemptRequest) GetChallengeNonce

func (s *CreateAuthAttemptRequest) GetChallengeNonce() OptChallengeNonce

GetChallengeNonce returns the value of ChallengeNonce.

func (*CreateAuthAttemptRequest) GetProjectID

func (s *CreateAuthAttemptRequest) GetProjectID() ProjectID

GetProjectID returns the value of ProjectID.

func (*CreateAuthAttemptRequest) GetSessionID

func (s *CreateAuthAttemptRequest) GetSessionID() OptNilSessionID

GetSessionID returns the value of SessionID.

func (*CreateAuthAttemptRequest) MarshalJSON

func (s *CreateAuthAttemptRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateAuthAttemptRequest) SetChallengeNonce

func (s *CreateAuthAttemptRequest) SetChallengeNonce(val OptChallengeNonce)

SetChallengeNonce sets the value of ChallengeNonce.

func (*CreateAuthAttemptRequest) SetProjectID

func (s *CreateAuthAttemptRequest) SetProjectID(val ProjectID)

SetProjectID sets the value of ProjectID.

func (*CreateAuthAttemptRequest) SetSessionID

func (s *CreateAuthAttemptRequest) SetSessionID(val OptNilSessionID)

SetSessionID sets the value of SessionID.

func (*CreateAuthAttemptRequest) UnmarshalJSON

func (s *CreateAuthAttemptRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateAuthAttemptRequest) Validate

func (s *CreateAuthAttemptRequest) Validate() error

type CreateAuthAttemptRes

type CreateAuthAttemptRes interface {
	// contains filtered or unexported methods
}

type CreateFlowDefinitionBadRequest

type CreateFlowDefinitionBadRequest ErrorDetails

func (*CreateFlowDefinitionBadRequest) Decode

Decode decodes CreateFlowDefinitionBadRequest from json.

func (*CreateFlowDefinitionBadRequest) Encode

Encode encodes CreateFlowDefinitionBadRequest as json.

func (*CreateFlowDefinitionBadRequest) MarshalJSON

func (s *CreateFlowDefinitionBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFlowDefinitionBadRequest) UnmarshalJSON

func (s *CreateFlowDefinitionBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateFlowDefinitionConflict

type CreateFlowDefinitionConflict ErrorDetails

func (*CreateFlowDefinitionConflict) Decode

Decode decodes CreateFlowDefinitionConflict from json.

func (*CreateFlowDefinitionConflict) Encode

func (s *CreateFlowDefinitionConflict) Encode(e *jx.Encoder)

Encode encodes CreateFlowDefinitionConflict as json.

func (*CreateFlowDefinitionConflict) MarshalJSON

func (s *CreateFlowDefinitionConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFlowDefinitionConflict) UnmarshalJSON

func (s *CreateFlowDefinitionConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateFlowDefinitionRequest

type CreateFlowDefinitionRequest struct {
	ProjectID      ProjectID      `json:"project_id"`
	SchemaURI      OptSchemaURI   `json:"schema_uri"`
	FlowDefinition FlowDefinition `json:"flow_definition"`
}

Ref: #

func (*CreateFlowDefinitionRequest) Decode

Decode decodes CreateFlowDefinitionRequest from json.

func (*CreateFlowDefinitionRequest) Encode

func (s *CreateFlowDefinitionRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateFlowDefinitionRequest) GetFlowDefinition

func (s *CreateFlowDefinitionRequest) GetFlowDefinition() FlowDefinition

GetFlowDefinition returns the value of FlowDefinition.

func (*CreateFlowDefinitionRequest) GetProjectID

func (s *CreateFlowDefinitionRequest) GetProjectID() ProjectID

GetProjectID returns the value of ProjectID.

func (*CreateFlowDefinitionRequest) GetSchemaURI

func (s *CreateFlowDefinitionRequest) GetSchemaURI() OptSchemaURI

GetSchemaURI returns the value of SchemaURI.

func (*CreateFlowDefinitionRequest) MarshalJSON

func (s *CreateFlowDefinitionRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFlowDefinitionRequest) SetFlowDefinition

func (s *CreateFlowDefinitionRequest) SetFlowDefinition(val FlowDefinition)

SetFlowDefinition sets the value of FlowDefinition.

func (*CreateFlowDefinitionRequest) SetProjectID

func (s *CreateFlowDefinitionRequest) SetProjectID(val ProjectID)

SetProjectID sets the value of ProjectID.

func (*CreateFlowDefinitionRequest) SetSchemaURI

func (s *CreateFlowDefinitionRequest) SetSchemaURI(val OptSchemaURI)

SetSchemaURI sets the value of SchemaURI.

func (*CreateFlowDefinitionRequest) UnmarshalJSON

func (s *CreateFlowDefinitionRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateFlowDefinitionRequest) Validate

func (s *CreateFlowDefinitionRequest) Validate() error

type CreateFlowDefinitionRes

type CreateFlowDefinitionRes interface {
	// contains filtered or unexported methods
}

type CreateFlowRequest

type CreateFlowRequest struct {
	ProjectID ProjectID                `json:"project_id"`
	Purpose   CreateFlowRequestPurpose `json:"purpose"`
	// Name of a specific flow definition to use.
	// When omitted, the engine selects the best-matching definition
	// based on purpose + audience context.
	FlowDefinitionName OptString `json:"flow_definition_name"`
	// Semver version of the flow definition JSON Schema to use.
	// When omitted, the latest version is used.
	SchemaVersion  OptString         `json:"schema_version"`
	ChallengeNonce OptChallengeNonce `json:"challenge_nonce"`
	// Existing session to attach to (for step-up / reauth).
	// Omit to let the flow create a new session implicitly.
	SessionID OptString `json:"session_id"`
	// OIDC/SAML auth request ID (links flow to protocol request).
	AuthRequestID OptString   `json:"auth_request_id"`
	RedirectURI   OptURI      `json:"redirect_uri"`
	Hint          OptFlowHint `json:"hint"`
}

Ref: #

func (*CreateFlowRequest) Decode

func (s *CreateFlowRequest) Decode(d *jx.Decoder) error

Decode decodes CreateFlowRequest from json.

func (*CreateFlowRequest) Encode

func (s *CreateFlowRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateFlowRequest) GetAuthRequestID

func (s *CreateFlowRequest) GetAuthRequestID() OptString

GetAuthRequestID returns the value of AuthRequestID.

func (*CreateFlowRequest) GetChallengeNonce

func (s *CreateFlowRequest) GetChallengeNonce() OptChallengeNonce

GetChallengeNonce returns the value of ChallengeNonce.

func (*CreateFlowRequest) GetFlowDefinitionName

func (s *CreateFlowRequest) GetFlowDefinitionName() OptString

GetFlowDefinitionName returns the value of FlowDefinitionName.

func (*CreateFlowRequest) GetHint

func (s *CreateFlowRequest) GetHint() OptFlowHint

GetHint returns the value of Hint.

func (*CreateFlowRequest) GetProjectID

func (s *CreateFlowRequest) GetProjectID() ProjectID

GetProjectID returns the value of ProjectID.

func (*CreateFlowRequest) GetPurpose

GetPurpose returns the value of Purpose.

func (*CreateFlowRequest) GetRedirectURI

func (s *CreateFlowRequest) GetRedirectURI() OptURI

GetRedirectURI returns the value of RedirectURI.

func (*CreateFlowRequest) GetSchemaVersion

func (s *CreateFlowRequest) GetSchemaVersion() OptString

GetSchemaVersion returns the value of SchemaVersion.

func (*CreateFlowRequest) GetSessionID

func (s *CreateFlowRequest) GetSessionID() OptString

GetSessionID returns the value of SessionID.

func (*CreateFlowRequest) MarshalJSON

func (s *CreateFlowRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFlowRequest) SetAuthRequestID

func (s *CreateFlowRequest) SetAuthRequestID(val OptString)

SetAuthRequestID sets the value of AuthRequestID.

func (*CreateFlowRequest) SetChallengeNonce

func (s *CreateFlowRequest) SetChallengeNonce(val OptChallengeNonce)

SetChallengeNonce sets the value of ChallengeNonce.

func (*CreateFlowRequest) SetFlowDefinitionName

func (s *CreateFlowRequest) SetFlowDefinitionName(val OptString)

SetFlowDefinitionName sets the value of FlowDefinitionName.

func (*CreateFlowRequest) SetHint

func (s *CreateFlowRequest) SetHint(val OptFlowHint)

SetHint sets the value of Hint.

func (*CreateFlowRequest) SetProjectID

func (s *CreateFlowRequest) SetProjectID(val ProjectID)

SetProjectID sets the value of ProjectID.

func (*CreateFlowRequest) SetPurpose

func (s *CreateFlowRequest) SetPurpose(val CreateFlowRequestPurpose)

SetPurpose sets the value of Purpose.

func (*CreateFlowRequest) SetRedirectURI

func (s *CreateFlowRequest) SetRedirectURI(val OptURI)

SetRedirectURI sets the value of RedirectURI.

func (*CreateFlowRequest) SetSchemaVersion

func (s *CreateFlowRequest) SetSchemaVersion(val OptString)

SetSchemaVersion sets the value of SchemaVersion.

func (*CreateFlowRequest) SetSessionID

func (s *CreateFlowRequest) SetSessionID(val OptString)

SetSessionID sets the value of SessionID.

func (*CreateFlowRequest) UnmarshalJSON

func (s *CreateFlowRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateFlowRequest) Validate

func (s *CreateFlowRequest) Validate() error

type CreateFlowRequestPurpose

type CreateFlowRequestPurpose string
const (
	CreateFlowRequestPurposeLogin       CreateFlowRequestPurpose = "login"
	CreateFlowRequestPurposeRegister    CreateFlowRequestPurpose = "register"
	CreateFlowRequestPurposeRecovery    CreateFlowRequestPurpose = "recovery"
	CreateFlowRequestPurposeProfiling   CreateFlowRequestPurpose = "profiling"
	CreateFlowRequestPurposeReauth      CreateFlowRequestPurpose = "reauth"
	CreateFlowRequestPurposeLinkAccount CreateFlowRequestPurpose = "link_account"
)

func (CreateFlowRequestPurpose) AllValues

AllValues returns all CreateFlowRequestPurpose values.

func (*CreateFlowRequestPurpose) Decode

func (s *CreateFlowRequestPurpose) Decode(d *jx.Decoder) error

Decode decodes CreateFlowRequestPurpose from json.

func (CreateFlowRequestPurpose) Encode

func (s CreateFlowRequestPurpose) Encode(e *jx.Encoder)

Encode encodes CreateFlowRequestPurpose as json.

func (CreateFlowRequestPurpose) MarshalJSON

func (s CreateFlowRequestPurpose) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateFlowRequestPurpose) MarshalText

func (s CreateFlowRequestPurpose) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateFlowRequestPurpose) UnmarshalJSON

func (s *CreateFlowRequestPurpose) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateFlowRequestPurpose) UnmarshalText

func (s *CreateFlowRequestPurpose) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateFlowRequestPurpose) Validate

func (s CreateFlowRequestPurpose) Validate() error

type CreateFlowRes

type CreateFlowRes interface {
	// contains filtered or unexported methods
}

type CreateHandoffErrorResponse

type CreateHandoffErrorResponse struct {
	Type            CreateHandoffErrorResponseType // switch on this field
	AttNotFound     AttNotFound
	AttInvalidState AttInvalidState
	AttNotCompleted AttNotCompleted
	Internal        Internal
}

CreateHandoffErrorResponse represents sum type.

func NewAttInvalidStateCreateHandoffErrorResponse

func NewAttInvalidStateCreateHandoffErrorResponse(v AttInvalidState) CreateHandoffErrorResponse

NewAttInvalidStateCreateHandoffErrorResponse returns new CreateHandoffErrorResponse from AttInvalidState.

func NewAttNotCompletedCreateHandoffErrorResponse

func NewAttNotCompletedCreateHandoffErrorResponse(v AttNotCompleted) CreateHandoffErrorResponse

NewAttNotCompletedCreateHandoffErrorResponse returns new CreateHandoffErrorResponse from AttNotCompleted.

func NewAttNotFoundCreateHandoffErrorResponse

func NewAttNotFoundCreateHandoffErrorResponse(v AttNotFound) CreateHandoffErrorResponse

NewAttNotFoundCreateHandoffErrorResponse returns new CreateHandoffErrorResponse from AttNotFound.

func NewInternalCreateHandoffErrorResponse

func NewInternalCreateHandoffErrorResponse(v Internal) CreateHandoffErrorResponse

NewInternalCreateHandoffErrorResponse returns new CreateHandoffErrorResponse from Internal.

func (*CreateHandoffErrorResponse) Decode

Decode decodes CreateHandoffErrorResponse from json.

func (CreateHandoffErrorResponse) Encode

func (s CreateHandoffErrorResponse) Encode(e *jx.Encoder)

Encode encodes CreateHandoffErrorResponse as json.

func (CreateHandoffErrorResponse) GetAttInvalidState

func (s CreateHandoffErrorResponse) GetAttInvalidState() (v AttInvalidState, ok bool)

GetAttInvalidState returns AttInvalidState and true boolean if CreateHandoffErrorResponse is AttInvalidState.

func (CreateHandoffErrorResponse) GetAttNotCompleted

func (s CreateHandoffErrorResponse) GetAttNotCompleted() (v AttNotCompleted, ok bool)

GetAttNotCompleted returns AttNotCompleted and true boolean if CreateHandoffErrorResponse is AttNotCompleted.

func (CreateHandoffErrorResponse) GetAttNotFound

func (s CreateHandoffErrorResponse) GetAttNotFound() (v AttNotFound, ok bool)

GetAttNotFound returns AttNotFound and true boolean if CreateHandoffErrorResponse is AttNotFound.

func (CreateHandoffErrorResponse) GetInternal

func (s CreateHandoffErrorResponse) GetInternal() (v Internal, ok bool)

GetInternal returns Internal and true boolean if CreateHandoffErrorResponse is Internal.

func (CreateHandoffErrorResponse) IsAttInvalidState

func (s CreateHandoffErrorResponse) IsAttInvalidState() bool

IsAttInvalidState reports whether CreateHandoffErrorResponse is AttInvalidState.

func (CreateHandoffErrorResponse) IsAttNotCompleted

func (s CreateHandoffErrorResponse) IsAttNotCompleted() bool

IsAttNotCompleted reports whether CreateHandoffErrorResponse is AttNotCompleted.

func (CreateHandoffErrorResponse) IsAttNotFound

func (s CreateHandoffErrorResponse) IsAttNotFound() bool

IsAttNotFound reports whether CreateHandoffErrorResponse is AttNotFound.

func (CreateHandoffErrorResponse) IsInternal

func (s CreateHandoffErrorResponse) IsInternal() bool

IsInternal reports whether CreateHandoffErrorResponse is Internal.

func (CreateHandoffErrorResponse) MarshalJSON

func (s CreateHandoffErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateHandoffErrorResponse) SetAttInvalidState

func (s *CreateHandoffErrorResponse) SetAttInvalidState(v AttInvalidState)

SetAttInvalidState sets CreateHandoffErrorResponse to AttInvalidState.

func (*CreateHandoffErrorResponse) SetAttNotCompleted

func (s *CreateHandoffErrorResponse) SetAttNotCompleted(v AttNotCompleted)

SetAttNotCompleted sets CreateHandoffErrorResponse to AttNotCompleted.

func (*CreateHandoffErrorResponse) SetAttNotFound

func (s *CreateHandoffErrorResponse) SetAttNotFound(v AttNotFound)

SetAttNotFound sets CreateHandoffErrorResponse to AttNotFound.

func (*CreateHandoffErrorResponse) SetInternal

func (s *CreateHandoffErrorResponse) SetInternal(v Internal)

SetInternal sets CreateHandoffErrorResponse to Internal.

func (*CreateHandoffErrorResponse) UnmarshalJSON

func (s *CreateHandoffErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateHandoffErrorResponseStatusCode

type CreateHandoffErrorResponseStatusCode struct {
	StatusCode int
	Response   CreateHandoffErrorResponse
}

CreateHandoffErrorResponseStatusCode wraps CreateHandoffErrorResponse with StatusCode.

func (*CreateHandoffErrorResponseStatusCode) GetResponse

GetResponse returns the value of Response.

func (*CreateHandoffErrorResponseStatusCode) GetStatusCode

func (s *CreateHandoffErrorResponseStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*CreateHandoffErrorResponseStatusCode) SetResponse

SetResponse sets the value of Response.

func (*CreateHandoffErrorResponseStatusCode) SetStatusCode

func (s *CreateHandoffErrorResponseStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type CreateHandoffErrorResponseType

type CreateHandoffErrorResponseType string

CreateHandoffErrorResponseType is oneOf type of CreateHandoffErrorResponse.

const (
	AttNotFoundCreateHandoffErrorResponse     CreateHandoffErrorResponseType = "att.not_found"
	AttInvalidStateCreateHandoffErrorResponse CreateHandoffErrorResponseType = "att.invalid_state"
	AttNotCompletedCreateHandoffErrorResponse CreateHandoffErrorResponseType = "att.not_completed"
	InternalCreateHandoffErrorResponse        CreateHandoffErrorResponseType = "internal"
)

Possible values for CreateHandoffErrorResponseType.

type CreateHandoffParams

type CreateHandoffParams struct {
	// The unique identifier of the authentication attempt.
	AttemptID AttemptID
	// Optional retry key for safe retries of the call.
	// Retries carrying the same key within the call window return the cached
	// payload without creating a new resource. See details in the endpoint description.
	IdempotencyKey OptString `json:",omitempty,omitzero"`
}

CreateHandoffParams is parameters of createHandoff operation.

type CreateHandoffRes

type CreateHandoffRes interface {
	// contains filtered or unexported methods
}

type CreateProjectRequest

type CreateProjectRequest struct {
	// Origins which are allowed for previewing and testing the project.
	PreviewOrigins []string `json:"previewOrigins"`
}

Ref: #

func (*CreateProjectRequest) Decode

func (s *CreateProjectRequest) Decode(d *jx.Decoder) error

Decode decodes CreateProjectRequest from json.

func (*CreateProjectRequest) Encode

func (s *CreateProjectRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateProjectRequest) GetPreviewOrigins

func (s *CreateProjectRequest) GetPreviewOrigins() []string

GetPreviewOrigins returns the value of PreviewOrigins.

func (*CreateProjectRequest) MarshalJSON

func (s *CreateProjectRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectRequest) SetPreviewOrigins

func (s *CreateProjectRequest) SetPreviewOrigins(val []string)

SetPreviewOrigins sets the value of PreviewOrigins.

func (*CreateProjectRequest) UnmarshalJSON

func (s *CreateProjectRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateProjectRes

type CreateProjectRes interface {
	// contains filtered or unexported methods
}

type CreateProjectResponse

type CreateProjectResponse struct {
	// The unique identifier of the project.
	ID string `json:"id"`
	// Secret which can be used for authentication when modifying the project.
	ProjectSecret string `json:"projectSecret"`
	// Secret which can be used for previewing and testing the project.
	PreviewSecret string `json:"previewSecret"`
	// Origins which are allowed for previewing and testing the project.
	PreviewOrigins []string `json:"previewOrigins"`
	// The time when the project was created.
	CreatedAt time.Time `json:"createdAt"`
}

Ref: #

func (*CreateProjectResponse) Decode

func (s *CreateProjectResponse) Decode(d *jx.Decoder) error

Decode decodes CreateProjectResponse from json.

func (*CreateProjectResponse) Encode

func (s *CreateProjectResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateProjectResponse) GetCreatedAt

func (s *CreateProjectResponse) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*CreateProjectResponse) GetID

func (s *CreateProjectResponse) GetID() string

GetID returns the value of ID.

func (*CreateProjectResponse) GetPreviewOrigins

func (s *CreateProjectResponse) GetPreviewOrigins() []string

GetPreviewOrigins returns the value of PreviewOrigins.

func (*CreateProjectResponse) GetPreviewSecret

func (s *CreateProjectResponse) GetPreviewSecret() string

GetPreviewSecret returns the value of PreviewSecret.

func (*CreateProjectResponse) GetProjectSecret

func (s *CreateProjectResponse) GetProjectSecret() string

GetProjectSecret returns the value of ProjectSecret.

func (*CreateProjectResponse) MarshalJSON

func (s *CreateProjectResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectResponse) SetCreatedAt

func (s *CreateProjectResponse) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*CreateProjectResponse) SetID

func (s *CreateProjectResponse) SetID(val string)

SetID sets the value of ID.

func (*CreateProjectResponse) SetPreviewOrigins

func (s *CreateProjectResponse) SetPreviewOrigins(val []string)

SetPreviewOrigins sets the value of PreviewOrigins.

func (*CreateProjectResponse) SetPreviewSecret

func (s *CreateProjectResponse) SetPreviewSecret(val string)

SetPreviewSecret sets the value of PreviewSecret.

func (*CreateProjectResponse) SetProjectSecret

func (s *CreateProjectResponse) SetProjectSecret(val string)

SetProjectSecret sets the value of ProjectSecret.

func (*CreateProjectResponse) UnmarshalJSON

func (s *CreateProjectResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateProjectResponse) Validate

func (s *CreateProjectResponse) Validate() error

type CreateSchemaBadRequest

type CreateSchemaBadRequest ErrorDetails

func (*CreateSchemaBadRequest) Decode

func (s *CreateSchemaBadRequest) Decode(d *jx.Decoder) error

Decode decodes CreateSchemaBadRequest from json.

func (*CreateSchemaBadRequest) Encode

func (s *CreateSchemaBadRequest) Encode(e *jx.Encoder)

Encode encodes CreateSchemaBadRequest as json.

func (*CreateSchemaBadRequest) MarshalJSON

func (s *CreateSchemaBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSchemaBadRequest) UnmarshalJSON

func (s *CreateSchemaBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSchemaConflict

type CreateSchemaConflict ErrorDetails

func (*CreateSchemaConflict) Decode

func (s *CreateSchemaConflict) Decode(d *jx.Decoder) error

Decode decodes CreateSchemaConflict from json.

func (*CreateSchemaConflict) Encode

func (s *CreateSchemaConflict) Encode(e *jx.Encoder)

Encode encodes CreateSchemaConflict as json.

func (*CreateSchemaConflict) MarshalJSON

func (s *CreateSchemaConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSchemaConflict) UnmarshalJSON

func (s *CreateSchemaConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSchemaParams

type CreateSchemaParams struct {
	// The unique identifier of the project.
	ProjectID ProjectID
	// The unique identifier of the team.
	TeamID OptTeamID `json:",omitempty,omitzero"`
}

CreateSchemaParams is parameters of createSchema operation.

type CreateSchemaReq

type CreateSchemaReq struct {
	Type       CreateSchemaReqType // switch on this field
	UserSchema UserSchema
	SchemaURL  SchemaURL
}

CreateSchemaReq represents sum type.

func NewSchemaURLCreateSchemaReq

func NewSchemaURLCreateSchemaReq(v SchemaURL) CreateSchemaReq

NewSchemaURLCreateSchemaReq returns new CreateSchemaReq from SchemaURL.

func NewUserSchemaCreateSchemaReq

func NewUserSchemaCreateSchemaReq(v UserSchema) CreateSchemaReq

NewUserSchemaCreateSchemaReq returns new CreateSchemaReq from UserSchema.

func (*CreateSchemaReq) Decode

func (s *CreateSchemaReq) Decode(d *jx.Decoder) error

Decode decodes CreateSchemaReq from json.

func (CreateSchemaReq) Encode

func (s CreateSchemaReq) Encode(e *jx.Encoder)

Encode encodes CreateSchemaReq as json.

func (CreateSchemaReq) GetSchemaURL

func (s CreateSchemaReq) GetSchemaURL() (v SchemaURL, ok bool)

GetSchemaURL returns SchemaURL and true boolean if CreateSchemaReq is SchemaURL.

func (CreateSchemaReq) GetUserSchema

func (s CreateSchemaReq) GetUserSchema() (v UserSchema, ok bool)

GetUserSchema returns UserSchema and true boolean if CreateSchemaReq is UserSchema.

func (CreateSchemaReq) IsSchemaURL

func (s CreateSchemaReq) IsSchemaURL() bool

IsSchemaURL reports whether CreateSchemaReq is SchemaURL.

func (CreateSchemaReq) IsUserSchema

func (s CreateSchemaReq) IsUserSchema() bool

IsUserSchema reports whether CreateSchemaReq is UserSchema.

func (CreateSchemaReq) MarshalJSON

func (s CreateSchemaReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSchemaReq) SetSchemaURL

func (s *CreateSchemaReq) SetSchemaURL(v SchemaURL)

SetSchemaURL sets CreateSchemaReq to SchemaURL.

func (*CreateSchemaReq) SetUserSchema

func (s *CreateSchemaReq) SetUserSchema(v UserSchema)

SetUserSchema sets CreateSchemaReq to UserSchema.

func (*CreateSchemaReq) UnmarshalJSON

func (s *CreateSchemaReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (CreateSchemaReq) Validate

func (s CreateSchemaReq) Validate() error

type CreateSchemaReqType

type CreateSchemaReqType string

CreateSchemaReqType is oneOf type of CreateSchemaReq.

const (
	UserSchemaCreateSchemaReq CreateSchemaReqType = "user-schema"
	SchemaURLCreateSchemaReq  CreateSchemaReqType = "schema-url"
)

Possible values for CreateSchemaReqType.

type CreateSchemaRes

type CreateSchemaRes interface {
	// contains filtered or unexported methods
}

type CreateSchemaResponse

type CreateSchemaResponse struct {
	// The ID of the created schema.
	ID string `json:"id"`
}

Ref: #

func (*CreateSchemaResponse) Decode

func (s *CreateSchemaResponse) Decode(d *jx.Decoder) error

Decode decodes CreateSchemaResponse from json.

func (*CreateSchemaResponse) Encode

func (s *CreateSchemaResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateSchemaResponse) GetID

func (s *CreateSchemaResponse) GetID() string

GetID returns the value of ID.

func (*CreateSchemaResponse) MarshalJSON

func (s *CreateSchemaResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSchemaResponse) SetID

func (s *CreateSchemaResponse) SetID(val string)

SetID sets the value of ID.

func (*CreateSchemaResponse) UnmarshalJSON

func (s *CreateSchemaResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSessionRequest

type CreateSessionRequest struct {
	ProjectID ProjectID `json:"project_id"`
	// Optional user agent / device context to attach to the session.
	// Useful for correlating telemetry and device signals with the eventual
	// authenticated session from the start.
	UserAgent OptCreateSessionRequestUserAgent `json:"user_agent"`
}

Request to create an anonymous session shell. Ref: #

func (*CreateSessionRequest) Decode

func (s *CreateSessionRequest) Decode(d *jx.Decoder) error

Decode decodes CreateSessionRequest from json.

func (*CreateSessionRequest) Encode

func (s *CreateSessionRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateSessionRequest) GetProjectID

func (s *CreateSessionRequest) GetProjectID() ProjectID

GetProjectID returns the value of ProjectID.

func (*CreateSessionRequest) GetUserAgent

GetUserAgent returns the value of UserAgent.

func (*CreateSessionRequest) MarshalJSON

func (s *CreateSessionRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSessionRequest) SetProjectID

func (s *CreateSessionRequest) SetProjectID(val ProjectID)

SetProjectID sets the value of ProjectID.

func (*CreateSessionRequest) SetUserAgent

SetUserAgent sets the value of UserAgent.

func (*CreateSessionRequest) UnmarshalJSON

func (s *CreateSessionRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateSessionRequest) Validate

func (s *CreateSessionRequest) Validate() error

type CreateSessionRequestUserAgent

type CreateSessionRequestUserAgent struct {
	// Client-supplied device fingerprint.
	Fingerprint OptString `json:"fingerprint"`
	// IP address of the client.
	IP              OptString `json:"ip"`
	AdditionalProps CreateSessionRequestUserAgentAdditional
}

Optional user agent / device context to attach to the session. Useful for correlating telemetry and device signals with the eventual authenticated session from the start.

func (*CreateSessionRequestUserAgent) Decode

Decode decodes CreateSessionRequestUserAgent from json.

func (*CreateSessionRequestUserAgent) Encode

Encode implements json.Marshaler.

func (*CreateSessionRequestUserAgent) GetAdditionalProps

GetAdditionalProps returns the value of AdditionalProps.

func (*CreateSessionRequestUserAgent) GetFingerprint

func (s *CreateSessionRequestUserAgent) GetFingerprint() OptString

GetFingerprint returns the value of Fingerprint.

func (*CreateSessionRequestUserAgent) GetIP

GetIP returns the value of IP.

func (*CreateSessionRequestUserAgent) MarshalJSON

func (s *CreateSessionRequestUserAgent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSessionRequestUserAgent) SetAdditionalProps

SetAdditionalProps sets the value of AdditionalProps.

func (*CreateSessionRequestUserAgent) SetFingerprint

func (s *CreateSessionRequestUserAgent) SetFingerprint(val OptString)

SetFingerprint sets the value of Fingerprint.

func (*CreateSessionRequestUserAgent) SetIP

SetIP sets the value of IP.

func (*CreateSessionRequestUserAgent) UnmarshalJSON

func (s *CreateSessionRequestUserAgent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSessionRequestUserAgentAdditional

type CreateSessionRequestUserAgentAdditional map[string]jx.Raw

func (*CreateSessionRequestUserAgentAdditional) Decode

Decode decodes CreateSessionRequestUserAgentAdditional from json.

func (CreateSessionRequestUserAgentAdditional) Encode

Encode implements json.Marshaler.

func (CreateSessionRequestUserAgentAdditional) MarshalJSON

func (s CreateSessionRequestUserAgentAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSessionRequestUserAgentAdditional) UnmarshalJSON

func (s *CreateSessionRequestUserAgentAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSessionRes

type CreateSessionRes interface {
	// contains filtered or unexported methods
}

type CreateTeamBadRequest

type CreateTeamBadRequest ErrorDetails

func (*CreateTeamBadRequest) Decode

func (s *CreateTeamBadRequest) Decode(d *jx.Decoder) error

Decode decodes CreateTeamBadRequest from json.

func (*CreateTeamBadRequest) Encode

func (s *CreateTeamBadRequest) Encode(e *jx.Encoder)

Encode encodes CreateTeamBadRequest as json.

func (*CreateTeamBadRequest) MarshalJSON

func (s *CreateTeamBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTeamBadRequest) UnmarshalJSON

func (s *CreateTeamBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTeamParams

type CreateTeamParams struct {
	// The unique identifier of the project.
	ProjectID ProjectID
}

CreateTeamParams is parameters of createTeam operation.

type CreateTeamRequest

type CreateTeamRequest struct{}

Ref: #

func (*CreateTeamRequest) Decode

func (s *CreateTeamRequest) Decode(d *jx.Decoder) error

Decode decodes CreateTeamRequest from json.

func (*CreateTeamRequest) Encode

func (s *CreateTeamRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTeamRequest) MarshalJSON

func (s *CreateTeamRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTeamRequest) UnmarshalJSON

func (s *CreateTeamRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTeamRes

type CreateTeamRes interface {
	// contains filtered or unexported methods
}

type CreateTeamResponse

type CreateTeamResponse struct {
	// The unique identifier of the team.
	ID string `json:"id"`
	// The time when the team was created.
	CreatedAt time.Time `json:"createdAt"`
}

Ref: #

func (*CreateTeamResponse) Decode

func (s *CreateTeamResponse) Decode(d *jx.Decoder) error

Decode decodes CreateTeamResponse from json.

func (*CreateTeamResponse) Encode

func (s *CreateTeamResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTeamResponse) GetCreatedAt

func (s *CreateTeamResponse) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*CreateTeamResponse) GetID

func (s *CreateTeamResponse) GetID() string

GetID returns the value of ID.

func (*CreateTeamResponse) MarshalJSON

func (s *CreateTeamResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTeamResponse) SetCreatedAt

func (s *CreateTeamResponse) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*CreateTeamResponse) SetID

func (s *CreateTeamResponse) SetID(val string)

SetID sets the value of ID.

func (*CreateTeamResponse) UnmarshalJSON

func (s *CreateTeamResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTeamTooManyRequests

type CreateTeamTooManyRequests ErrorDetails

func (*CreateTeamTooManyRequests) Decode

func (s *CreateTeamTooManyRequests) Decode(d *jx.Decoder) error

Decode decodes CreateTeamTooManyRequests from json.

func (*CreateTeamTooManyRequests) Encode

func (s *CreateTeamTooManyRequests) Encode(e *jx.Encoder)

Encode encodes CreateTeamTooManyRequests as json.

func (*CreateTeamTooManyRequests) MarshalJSON

func (s *CreateTeamTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTeamTooManyRequests) UnmarshalJSON

func (s *CreateTeamTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateUserBadRequest

type CreateUserBadRequest ErrorDetails

func (*CreateUserBadRequest) Decode

func (s *CreateUserBadRequest) Decode(d *jx.Decoder) error

Decode decodes CreateUserBadRequest from json.

func (*CreateUserBadRequest) Encode

func (s *CreateUserBadRequest) Encode(e *jx.Encoder)

Encode encodes CreateUserBadRequest as json.

func (*CreateUserBadRequest) MarshalJSON

func (s *CreateUserBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserBadRequest) UnmarshalJSON

func (s *CreateUserBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateUserConflict

type CreateUserConflict ErrorDetails

func (*CreateUserConflict) Decode

func (s *CreateUserConflict) Decode(d *jx.Decoder) error

Decode decodes CreateUserConflict from json.

func (*CreateUserConflict) Encode

func (s *CreateUserConflict) Encode(e *jx.Encoder)

Encode encodes CreateUserConflict as json.

func (*CreateUserConflict) MarshalJSON

func (s *CreateUserConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserConflict) UnmarshalJSON

func (s *CreateUserConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateUserForbidden

type CreateUserForbidden ErrorDetails

func (*CreateUserForbidden) Decode

func (s *CreateUserForbidden) Decode(d *jx.Decoder) error

Decode decodes CreateUserForbidden from json.

func (*CreateUserForbidden) Encode

func (s *CreateUserForbidden) Encode(e *jx.Encoder)

Encode encodes CreateUserForbidden as json.

func (*CreateUserForbidden) MarshalJSON

func (s *CreateUserForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserForbidden) UnmarshalJSON

func (s *CreateUserForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateUserParams

type CreateUserParams struct {
	// The unique identifier of the project.
	ProjectID ProjectID
	// The unique identifier of the team.
	TeamID OptTeamID `json:",omitempty,omitzero"`
}

CreateUserParams is parameters of createUser operation.

type CreateUserRes

type CreateUserRes interface {
	// contains filtered or unexported methods
}

type CreateUserResponse

type CreateUserResponse struct {
	// The unique identifier of the created user.
	ID              string `json:"id"`
	AdditionalProps CreateUserResponseAdditional
}

The content of this response is determined by the configured schema for users. Ref: #

func (*CreateUserResponse) Decode

func (s *CreateUserResponse) Decode(d *jx.Decoder) error

Decode decodes CreateUserResponse from json.

func (*CreateUserResponse) Encode

func (s *CreateUserResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateUserResponse) GetAdditionalProps

func (s *CreateUserResponse) GetAdditionalProps() CreateUserResponseAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*CreateUserResponse) GetID

func (s *CreateUserResponse) GetID() string

GetID returns the value of ID.

func (*CreateUserResponse) MarshalJSON

func (s *CreateUserResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserResponse) SetAdditionalProps

func (s *CreateUserResponse) SetAdditionalProps(val CreateUserResponseAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*CreateUserResponse) SetID

func (s *CreateUserResponse) SetID(val string)

SetID sets the value of ID.

func (*CreateUserResponse) UnmarshalJSON

func (s *CreateUserResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateUserResponseAdditional

type CreateUserResponseAdditional map[string]jx.Raw

func (*CreateUserResponseAdditional) Decode

Decode decodes CreateUserResponseAdditional from json.

func (CreateUserResponseAdditional) Encode

Encode implements json.Marshaler.

func (CreateUserResponseAdditional) MarshalJSON

func (s CreateUserResponseAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserResponseAdditional) UnmarshalJSON

func (s *CreateUserResponseAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateUserUnauthorized

type CreateUserUnauthorized ErrorDetails

func (*CreateUserUnauthorized) Decode

func (s *CreateUserUnauthorized) Decode(d *jx.Decoder) error

Decode decodes CreateUserUnauthorized from json.

func (*CreateUserUnauthorized) Encode

func (s *CreateUserUnauthorized) Encode(e *jx.Encoder)

Encode encodes CreateUserUnauthorized as json.

func (*CreateUserUnauthorized) MarshalJSON

func (s *CreateUserUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUserUnauthorized) UnmarshalJSON

func (s *CreateUserUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteFlowDefinitionNoContent

type DeleteFlowDefinitionNoContent struct{}

DeleteFlowDefinitionNoContent is response for DeleteFlowDefinition operation.

type DeleteFlowDefinitionParams

type DeleteFlowDefinitionParams struct {
	// The id returned by the POST /flow_definitions endpoint.
	ID string
	// The project id to filter by.
	ProjectID ProjectID
}

DeleteFlowDefinitionParams is parameters of deleteFlowDefinition operation.

type DeleteFlowDefinitionRes

type DeleteFlowDefinitionRes interface {
	// contains filtered or unexported methods
}

type DeviceAuthorizationResponse

type DeviceAuthorizationResponse struct {
	// The device code that the client will use to poll for authorization.
	DeviceCode OptString `json:"device_code"`
	// The number of seconds until the device code expires.
	ExpiresIn OptInt `json:"expires_in"`
	// The minimum amount of time in seconds that the client should wait
	// between polling requests.
	Interval OptInt `json:"interval"`
	// The user code that the user will enter to authorize the device.
	UserCode OptString `json:"user_code"`
	// The URI where the user will enter the user code to authorize the device.
	VerificationURI OptString `json:"verification_uri"`
	// The complete URI with the user code included, which the user can visit
	// to authorize the device.
	VerificationURIComplete OptString `json:"verification_uri_complete"`
}

Ref: #

func (*DeviceAuthorizationResponse) Decode

Decode decodes DeviceAuthorizationResponse from json.

func (*DeviceAuthorizationResponse) Encode

func (s *DeviceAuthorizationResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeviceAuthorizationResponse) GetDeviceCode

func (s *DeviceAuthorizationResponse) GetDeviceCode() OptString

GetDeviceCode returns the value of DeviceCode.

func (*DeviceAuthorizationResponse) GetExpiresIn

func (s *DeviceAuthorizationResponse) GetExpiresIn() OptInt

GetExpiresIn returns the value of ExpiresIn.

func (*DeviceAuthorizationResponse) GetInterval

func (s *DeviceAuthorizationResponse) GetInterval() OptInt

GetInterval returns the value of Interval.

func (*DeviceAuthorizationResponse) GetUserCode

func (s *DeviceAuthorizationResponse) GetUserCode() OptString

GetUserCode returns the value of UserCode.

func (*DeviceAuthorizationResponse) GetVerificationURI

func (s *DeviceAuthorizationResponse) GetVerificationURI() OptString

GetVerificationURI returns the value of VerificationURI.

func (*DeviceAuthorizationResponse) GetVerificationURIComplete

func (s *DeviceAuthorizationResponse) GetVerificationURIComplete() OptString

GetVerificationURIComplete returns the value of VerificationURIComplete.

func (*DeviceAuthorizationResponse) MarshalJSON

func (s *DeviceAuthorizationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeviceAuthorizationResponse) SetDeviceCode

func (s *DeviceAuthorizationResponse) SetDeviceCode(val OptString)

SetDeviceCode sets the value of DeviceCode.

func (*DeviceAuthorizationResponse) SetExpiresIn

func (s *DeviceAuthorizationResponse) SetExpiresIn(val OptInt)

SetExpiresIn sets the value of ExpiresIn.

func (*DeviceAuthorizationResponse) SetInterval

func (s *DeviceAuthorizationResponse) SetInterval(val OptInt)

SetInterval sets the value of Interval.

func (*DeviceAuthorizationResponse) SetUserCode

func (s *DeviceAuthorizationResponse) SetUserCode(val OptString)

SetUserCode sets the value of UserCode.

func (*DeviceAuthorizationResponse) SetVerificationURI

func (s *DeviceAuthorizationResponse) SetVerificationURI(val OptString)

SetVerificationURI sets the value of VerificationURI.

func (*DeviceAuthorizationResponse) SetVerificationURIComplete

func (s *DeviceAuthorizationResponse) SetVerificationURIComplete(val OptString)

SetVerificationURIComplete sets the value of VerificationURIComplete.

func (*DeviceAuthorizationResponse) UnmarshalJSON

func (s *DeviceAuthorizationResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EndSessionNoContent

type EndSessionNoContent struct{}

EndSessionNoContent is response for EndSession operation.

type EndSessionParams

type EndSessionParams struct {
	// The client ID is the identifier for the client application that is making
	// the request. This is used by the authorization server to identify the
	// client and to determine whether it is authorized to perform the requested
	// action.
	ClientID OptString `json:",omitempty,omitzero"`
	// The ID token hint is a previously issued ID token that can be used to
	// pre-fill the authentication form or to provide information about the
	// user to the authorization server. This can be useful for single sign-on
	// scenarios or for providing a smoother user experience.
	IDTokenHint OptString `json:",omitempty,omitzero"`
	// The logout hint is a hint to the authorization server about the login
	// identifier of the user. This can be used to pre-fill the username or email
	// field in the logout form, making it easier for the user to log out.
	LogoutHint OptString `json:",omitempty,omitzero"`
	// The post logout redirect URI is the URI to which the user will be
	// redirected after they have logged out. This must be a registered URI
	// for the client application and is used to ensure that the user is
	// redirected to a safe location after logging out.
	PostLogoutRedirectURI OptString `json:",omitempty,omitzero"`
	// The state parameter is an opaque value that is used by the client to
	// maintain state between the request and the callback. It is typically used
	// to prevent cross-site request forgery (CSRF) attacks by including a unique
	// value in the request that the client can verify when it receives the callback.
	State OptString `json:",omitempty,omitzero"`
	// The ui_locales parameter is a space-separated list of BCP47 language tags
	// that are used to indicate the preferred languages and scripts for the user
	// interface. This can be used by the authorization server to display the logout
	// page in the user's preferred language.
	UILocales OptString `json:",omitempty,omitzero"`
}

EndSessionParams is parameters of endSession operation.

type EndSessionRes

type EndSessionRes interface {
	// contains filtered or unexported methods
}

type ErrorCode

type ErrorCode string

func (*ErrorCode) Decode

func (s *ErrorCode) Decode(d *jx.Decoder) error

Decode decodes ErrorCode from json.

func (ErrorCode) Encode

func (s ErrorCode) Encode(e *jx.Encoder)

Encode encodes ErrorCode as json.

func (ErrorCode) MarshalJSON

func (s ErrorCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorCode) UnmarshalJSON

func (s *ErrorCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorDetails

type ErrorDetails struct {
	Code ErrorCode `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptErrorDetailsDetails `json:"details"`
}

Standard error payload returned for failed API requests. Ref: #

func (*ErrorDetails) Decode

func (s *ErrorDetails) Decode(d *jx.Decoder) error

Decode decodes ErrorDetails from json.

func (*ErrorDetails) Encode

func (s *ErrorDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorDetails) GetCode

func (s *ErrorDetails) GetCode() ErrorCode

GetCode returns the value of Code.

func (*ErrorDetails) GetDetails

func (s *ErrorDetails) GetDetails() OptErrorDetailsDetails

GetDetails returns the value of Details.

func (*ErrorDetails) GetMessage

func (s *ErrorDetails) GetMessage() string

GetMessage returns the value of Message.

func (*ErrorDetails) MarshalJSON

func (s *ErrorDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorDetails) SetCode

func (s *ErrorDetails) SetCode(val ErrorCode)

SetCode sets the value of Code.

func (*ErrorDetails) SetDetails

func (s *ErrorDetails) SetDetails(val OptErrorDetailsDetails)

SetDetails sets the value of Details.

func (*ErrorDetails) SetMessage

func (s *ErrorDetails) SetMessage(val string)

SetMessage sets the value of Message.

func (*ErrorDetails) UnmarshalJSON

func (s *ErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorDetailsDetails

type ErrorDetailsDetails map[string]jx.Raw

Additional error-specific context.

func (*ErrorDetailsDetails) Decode

func (s *ErrorDetailsDetails) Decode(d *jx.Decoder) error

Decode decodes ErrorDetailsDetails from json.

func (ErrorDetailsDetails) Encode

func (s ErrorDetailsDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ErrorDetailsDetails) MarshalJSON

func (s ErrorDetailsDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorDetailsDetails) UnmarshalJSON

func (s *ErrorDetailsDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorDetailsStatusCode

type ErrorDetailsStatusCode struct {
	StatusCode int
	Response   ErrorDetails
}

ErrorDetailsStatusCode wraps ErrorDetails with StatusCode.

func (*ErrorDetailsStatusCode) GetResponse

func (s *ErrorDetailsStatusCode) GetResponse() ErrorDetails

GetResponse returns the value of Response.

func (*ErrorDetailsStatusCode) GetStatusCode

func (s *ErrorDetailsStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*ErrorDetailsStatusCode) SetResponse

func (s *ErrorDetailsStatusCode) SetResponse(val ErrorDetails)

SetResponse sets the value of Response.

func (*ErrorDetailsStatusCode) SetStatusCode

func (s *ErrorDetailsStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ExchangeHandoffBadRequest

type ExchangeHandoffBadRequest ErrorDetails

func (*ExchangeHandoffBadRequest) Decode

func (s *ExchangeHandoffBadRequest) Decode(d *jx.Decoder) error

Decode decodes ExchangeHandoffBadRequest from json.

func (*ExchangeHandoffBadRequest) Encode

func (s *ExchangeHandoffBadRequest) Encode(e *jx.Encoder)

Encode encodes ExchangeHandoffBadRequest as json.

func (*ExchangeHandoffBadRequest) MarshalJSON

func (s *ExchangeHandoffBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExchangeHandoffBadRequest) UnmarshalJSON

func (s *ExchangeHandoffBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExchangeHandoffGone

type ExchangeHandoffGone ErrorDetails

func (*ExchangeHandoffGone) Decode

func (s *ExchangeHandoffGone) Decode(d *jx.Decoder) error

Decode decodes ExchangeHandoffGone from json.

func (*ExchangeHandoffGone) Encode

func (s *ExchangeHandoffGone) Encode(e *jx.Encoder)

Encode encodes ExchangeHandoffGone as json.

func (*ExchangeHandoffGone) MarshalJSON

func (s *ExchangeHandoffGone) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExchangeHandoffGone) UnmarshalJSON

func (s *ExchangeHandoffGone) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExchangeHandoffParams

type ExchangeHandoffParams struct {
	// The unique identifier of the project.
	ProjectID ProjectID
	// Optional retry key for safe retries of the call.
	// Retries carrying the same key within the call window return the cached
	// payload without creating a new resource. See details in the endpoint description.
	IdempotencyKey OptString `json:",omitempty,omitzero"`
}

ExchangeHandoffParams is parameters of exchangeHandoff operation.

type ExchangeHandoffRes

type ExchangeHandoffRes interface {
	// contains filtered or unexported methods
}

type ExchangeHandoffUnauthorized

type ExchangeHandoffUnauthorized ErrorDetails

func (*ExchangeHandoffUnauthorized) Decode

Decode decodes ExchangeHandoffUnauthorized from json.

func (*ExchangeHandoffUnauthorized) Encode

func (s *ExchangeHandoffUnauthorized) Encode(e *jx.Encoder)

Encode encodes ExchangeHandoffUnauthorized as json.

func (*ExchangeHandoffUnauthorized) MarshalJSON

func (s *ExchangeHandoffUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExchangeHandoffUnauthorized) UnmarshalJSON

func (s *ExchangeHandoffUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExchangeRequest

type ExchangeRequest struct {
	// The one-time handoff token minted by `POST /auth_attempts/{id}/handoff`.
	// Single-use — replaying it after a successful exchange returns `410 Gone`.
	HandoffToken string `json:"handoff_token"`
	// Optional session lifetime after exchange as an ISO-8601 duration. When omitted, the server
	// uses the configured default. Must not exceed the configured maximum.
	TTL OptDuration `json:"ttl"`
}

Request to exchange a handoff token for a session and session_token. Ref: #

func (*ExchangeRequest) Decode

func (s *ExchangeRequest) Decode(d *jx.Decoder) error

Decode decodes ExchangeRequest from json.

func (*ExchangeRequest) Encode

func (s *ExchangeRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExchangeRequest) GetHandoffToken

func (s *ExchangeRequest) GetHandoffToken() string

GetHandoffToken returns the value of HandoffToken.

func (*ExchangeRequest) GetTTL

func (s *ExchangeRequest) GetTTL() OptDuration

GetTTL returns the value of TTL.

func (*ExchangeRequest) MarshalJSON

func (s *ExchangeRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExchangeRequest) SetHandoffToken

func (s *ExchangeRequest) SetHandoffToken(val string)

SetHandoffToken sets the value of HandoffToken.

func (*ExchangeRequest) SetTTL

func (s *ExchangeRequest) SetTTL(val OptDuration)

SetTTL sets the value of TTL.

func (*ExchangeRequest) UnmarshalJSON

func (s *ExchangeRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FactorMethod

type FactorMethod string

An authentication factor method. Ref: #

const (
	FactorMethodIdentifier FactorMethod = "identifier"
	FactorMethodPassword   FactorMethod = "password"
	FactorMethodPasskey    FactorMethod = "passkey"
)

func (FactorMethod) AllValues

func (FactorMethod) AllValues() []FactorMethod

AllValues returns all FactorMethod values.

func (*FactorMethod) Decode

func (s *FactorMethod) Decode(d *jx.Decoder) error

Decode decodes FactorMethod from json.

func (FactorMethod) Encode

func (s FactorMethod) Encode(e *jx.Encoder)

Encode encodes FactorMethod as json.

func (FactorMethod) MarshalJSON

func (s FactorMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FactorMethod) MarshalText

func (s FactorMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FactorMethod) UnmarshalJSON

func (s *FactorMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FactorMethod) UnmarshalText

func (s *FactorMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FactorMethod) Validate

func (s FactorMethod) Validate() error

type Field

type Field struct {
	// Field name, matching a property in the flow's user schema. Carries
	// the submitted value back to the engine.
	Name string `json:"name"`
	// The input kind the client should render. Encodes the formats and
	// JSON types that map to a familiar HTML input: `email`, `url`,
	// `date` come from `format`; `checkbox` from JSON `type: boolean`;
	// `select` from a closed `enum`. For other formats (e.g. uuid) the
	// type is `text` and `validation.format` carries the rule.
	Type FieldType `json:"type"`
	// Localization key for the field label.
	TextKey string `json:"text_key"`
	// The field MUST be present and non-empty on submit. Mirrors the
	// schema's top-level `required` array.
	Required OptBool `json:"required"`
	// Pre-filled value (e.g., an identifier carried over from a pivot).
	Value jx.Raw `json:"value"`
	// Schema-derived rules the frontend SHOULD apply at input time. The
	// server runs the same rules on submit and is the only authority on
	// whether the step advances — these rules are a UX hint to reduce
	// round trips, not a contract guarantee.
	// Omitted entirely when the field has no rules beyond its `type`.
	// Each key mirrors a JSON Schema keyword on the underlying user
	// property; absent keys mean no rule.
	Validation OptFieldValidation `json:"validation"`
}

A data input capability. Describes what the user must provide. Does not contain display text — only a `text_key` resolved client-side. Ref: #

func (*Field) Decode

func (s *Field) Decode(d *jx.Decoder) error

Decode decodes Field from json.

func (*Field) Encode

func (s *Field) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Field) GetName

func (s *Field) GetName() string

GetName returns the value of Name.

func (*Field) GetRequired

func (s *Field) GetRequired() OptBool

GetRequired returns the value of Required.

func (*Field) GetTextKey

func (s *Field) GetTextKey() string

GetTextKey returns the value of TextKey.

func (*Field) GetType

func (s *Field) GetType() FieldType

GetType returns the value of Type.

func (*Field) GetValidation

func (s *Field) GetValidation() OptFieldValidation

GetValidation returns the value of Validation.

func (*Field) GetValue

func (s *Field) GetValue() jx.Raw

GetValue returns the value of Value.

func (*Field) MarshalJSON

func (s *Field) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Field) SetName

func (s *Field) SetName(val string)

SetName sets the value of Name.

func (*Field) SetRequired

func (s *Field) SetRequired(val OptBool)

SetRequired sets the value of Required.

func (*Field) SetTextKey

func (s *Field) SetTextKey(val string)

SetTextKey sets the value of TextKey.

func (*Field) SetType

func (s *Field) SetType(val FieldType)

SetType sets the value of Type.

func (*Field) SetValidation

func (s *Field) SetValidation(val OptFieldValidation)

SetValidation sets the value of Validation.

func (*Field) SetValue

func (s *Field) SetValue(val jx.Raw)

SetValue sets the value of Value.

func (*Field) UnmarshalJSON

func (s *Field) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Field) Validate

func (s *Field) Validate() error

type FieldType

type FieldType string

The input kind the client should render. Encodes the formats and JSON types that map to a familiar HTML input: `email`, `url`, `date` come from `format`; `checkbox` from JSON `type: boolean`; `select` from a closed `enum`. For other formats (e.g. uuid) the type is `text` and `validation.format` carries the rule.

const (
	FieldTypeText     FieldType = "text"
	FieldTypeEmail    FieldType = "email"
	FieldTypePassword FieldType = "password"
	FieldTypeTel      FieldType = "tel"
	FieldTypeNumber   FieldType = "number"
	FieldTypeURL      FieldType = "url"
	FieldTypeDate     FieldType = "date"
	FieldTypeHidden   FieldType = "hidden"
	FieldTypeCheckbox FieldType = "checkbox"
	FieldTypeSelect   FieldType = "select"
)

func (FieldType) AllValues

func (FieldType) AllValues() []FieldType

AllValues returns all FieldType values.

func (*FieldType) Decode

func (s *FieldType) Decode(d *jx.Decoder) error

Decode decodes FieldType from json.

func (FieldType) Encode

func (s FieldType) Encode(e *jx.Encoder)

Encode encodes FieldType as json.

func (FieldType) MarshalJSON

func (s FieldType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FieldType) MarshalText

func (s FieldType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FieldType) UnmarshalJSON

func (s *FieldType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FieldType) UnmarshalText

func (s *FieldType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FieldType) Validate

func (s FieldType) Validate() error

type FieldValidation

type FieldValidation struct {
	// Semantic format the value must match. Values mirror the user
	// meta-schema. When `type` already encodes the format (email,
	// url, date), this key is informative and the input type is
	// sufficient for client-side validation. When `type` is `text`
	// (e.g. `format: uuid`), this key is the only signal.
	Format OptFieldValidationFormat `json:"format"`
	// Minimum length in characters (inclusive). Mirrors `minLength`.
	MinLength OptInt `json:"min_length"`
	// Maximum length in characters (inclusive). Mirrors `maxLength`.
	MaxLength OptInt `json:"max_length"`
	// Closed list of allowed values. Mirrors the JSON Schema `enum`
	// keyword on the underlying user property. When `type` is
	// `select` the client renders these as options; for other types
	// the rule still applies as a membership check.
	Enum []string `json:"enum"`
}

Schema-derived rules the frontend SHOULD apply at input time. The server runs the same rules on submit and is the only authority on whether the step advances — these rules are a UX hint to reduce round trips, not a contract guarantee. Omitted entirely when the field has no rules beyond its `type`. Each key mirrors a JSON Schema keyword on the underlying user property; absent keys mean no rule.

func (*FieldValidation) Decode

func (s *FieldValidation) Decode(d *jx.Decoder) error

Decode decodes FieldValidation from json.

func (*FieldValidation) Encode

func (s *FieldValidation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FieldValidation) GetEnum

func (s *FieldValidation) GetEnum() []string

GetEnum returns the value of Enum.

func (*FieldValidation) GetFormat

GetFormat returns the value of Format.

func (*FieldValidation) GetMaxLength

func (s *FieldValidation) GetMaxLength() OptInt

GetMaxLength returns the value of MaxLength.

func (*FieldValidation) GetMinLength

func (s *FieldValidation) GetMinLength() OptInt

GetMinLength returns the value of MinLength.

func (*FieldValidation) MarshalJSON

func (s *FieldValidation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FieldValidation) SetEnum

func (s *FieldValidation) SetEnum(val []string)

SetEnum sets the value of Enum.

func (*FieldValidation) SetFormat

func (s *FieldValidation) SetFormat(val OptFieldValidationFormat)

SetFormat sets the value of Format.

func (*FieldValidation) SetMaxLength

func (s *FieldValidation) SetMaxLength(val OptInt)

SetMaxLength sets the value of MaxLength.

func (*FieldValidation) SetMinLength

func (s *FieldValidation) SetMinLength(val OptInt)

SetMinLength sets the value of MinLength.

func (*FieldValidation) UnmarshalJSON

func (s *FieldValidation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FieldValidation) Validate

func (s *FieldValidation) Validate() error

type FieldValidationFormat

type FieldValidationFormat string

Semantic format the value must match. Values mirror the user meta-schema. When `type` already encodes the format (email, url, date), this key is informative and the input type is sufficient for client-side validation. When `type` is `text` (e.g. `format: uuid`), this key is the only signal.

const (
	FieldValidationFormatEmail    FieldValidationFormat = "email"
	FieldValidationFormatDateTime FieldValidationFormat = "date-time"
	FieldValidationFormatUUID     FieldValidationFormat = "uuid"
	FieldValidationFormatURI      FieldValidationFormat = "uri"
)

func (FieldValidationFormat) AllValues

AllValues returns all FieldValidationFormat values.

func (*FieldValidationFormat) Decode

func (s *FieldValidationFormat) Decode(d *jx.Decoder) error

Decode decodes FieldValidationFormat from json.

func (FieldValidationFormat) Encode

func (s FieldValidationFormat) Encode(e *jx.Encoder)

Encode encodes FieldValidationFormat as json.

func (FieldValidationFormat) MarshalJSON

func (s FieldValidationFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FieldValidationFormat) MarshalText

func (s FieldValidationFormat) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FieldValidationFormat) UnmarshalJSON

func (s *FieldValidationFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FieldValidationFormat) UnmarshalText

func (s *FieldValidationFormat) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FieldValidationFormat) Validate

func (s FieldValidationFormat) Validate() error

type FlowAudience

type FlowAudience struct {
	// Restrict to specific teams (organizations). Empty means no team restriction.
	TeamIds []string `json:"team_ids"`
	// Restrict to specific applications. Empty means no app restriction.
	AppIds []string `json:"app_ids"`
}

Scopes which teams or apps this flow definition applies to. Empty or omitted fields mean "no restriction"; when both are empty the definition matches every request in the project. The engine picks the most specific matching definition: app > team > project-wide. Ref: #

func (*FlowAudience) Decode

func (s *FlowAudience) Decode(d *jx.Decoder) error

Decode decodes FlowAudience from json.

func (*FlowAudience) Encode

func (s *FlowAudience) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowAudience) GetAppIds

func (s *FlowAudience) GetAppIds() []string

GetAppIds returns the value of AppIds.

func (*FlowAudience) GetTeamIds

func (s *FlowAudience) GetTeamIds() []string

GetTeamIds returns the value of TeamIds.

func (*FlowAudience) MarshalJSON

func (s *FlowAudience) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowAudience) SetAppIds

func (s *FlowAudience) SetAppIds(val []string)

SetAppIds sets the value of AppIds.

func (*FlowAudience) SetTeamIds

func (s *FlowAudience) SetTeamIds(val []string)

SetTeamIds sets the value of TeamIds.

func (*FlowAudience) UnmarshalJSON

func (s *FlowAudience) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FlowDefinition

type FlowDefinition struct {
	// Stable identifier for this flow, used as the target of cross-flow
	// `switch` and `pivot` transitions. Renaming is not supported — the
	// `name` is part of the public contract another definition may
	// reference. Acts as the human display label as well; no separate slug.
	Name string `json:"name"`
	// User schema this flow operates on. Step `fields` reference properties
	// defined in this schema. The engine resolves field types, validation,
	// and implicit outcomes from schema annotations at runtime.
	UserSchema url.URL `json:"user_schema"`
	// Maps each purpose this definition handles to its entry-point step.
	// Keys are purpose names; values must match a `name` in `steps`. A
	// definition can serve multiple purposes (e.g. a combined login/register
	// flow) by listing one entry per purpose.
	Purposes FlowDefinitionPurposes `json:"purposes"`
	Audience OptFlowAudience        `json:"audience"`
	// Ordered list of steps in this flow. The order is for human readability —
	// actual step sequencing is determined by transitions.
	Steps []FlowDefinitionStep `json:"steps"`
}

A flow definition is the server-side configuration that describes a complete authentication or identity flow. It is NOT sent to the frontend — the flow engine evaluates it and produces FlowResponse payloads (steps with capability dictionaries) for the client. Flow definitions are created by administrators and stored in the project/team configuration hierarchy. The engine selects the matching definition based on the purpose + audience when a flow is created via POST /flow. Ref: #

func (*FlowDefinition) Decode

func (s *FlowDefinition) Decode(d *jx.Decoder) error

Decode decodes FlowDefinition from json.

func (*FlowDefinition) Encode

func (s *FlowDefinition) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowDefinition) GetAudience

func (s *FlowDefinition) GetAudience() OptFlowAudience

GetAudience returns the value of Audience.

func (*FlowDefinition) GetName

func (s *FlowDefinition) GetName() string

GetName returns the value of Name.

func (*FlowDefinition) GetPurposes

func (s *FlowDefinition) GetPurposes() FlowDefinitionPurposes

GetPurposes returns the value of Purposes.

func (*FlowDefinition) GetSteps

func (s *FlowDefinition) GetSteps() []FlowDefinitionStep

GetSteps returns the value of Steps.

func (*FlowDefinition) GetUserSchema

func (s *FlowDefinition) GetUserSchema() url.URL

GetUserSchema returns the value of UserSchema.

func (*FlowDefinition) MarshalJSON

func (s *FlowDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinition) SetAudience

func (s *FlowDefinition) SetAudience(val OptFlowAudience)

SetAudience sets the value of Audience.

func (*FlowDefinition) SetName

func (s *FlowDefinition) SetName(val string)

SetName sets the value of Name.

func (*FlowDefinition) SetPurposes

func (s *FlowDefinition) SetPurposes(val FlowDefinitionPurposes)

SetPurposes sets the value of Purposes.

func (*FlowDefinition) SetSteps

func (s *FlowDefinition) SetSteps(val []FlowDefinitionStep)

SetSteps sets the value of Steps.

func (*FlowDefinition) SetUserSchema

func (s *FlowDefinition) SetUserSchema(val url.URL)

SetUserSchema sets the value of UserSchema.

func (*FlowDefinition) UnmarshalJSON

func (s *FlowDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinition) Validate

func (s *FlowDefinition) Validate() error

type FlowDefinitionDetailResponse

type FlowDefinitionDetailResponse struct {
	// Unique identifier for the flow definition.
	ID string `json:"id"`
	// Identifier of the project this flow definition belongs to.
	ProjectID string `json:"project_id"`
	// Status of the flow definition.
	Status         string         `json:"status"`
	FlowDefinition FlowDefinition `json:"flow_definition"`
	CreatedAt      time.Time      `json:"created_at"`
	UpdatedAt      time.Time      `json:"updated_at"`
}

Ref: #

func (*FlowDefinitionDetailResponse) Decode

Decode decodes FlowDefinitionDetailResponse from json.

func (*FlowDefinitionDetailResponse) Encode

func (s *FlowDefinitionDetailResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowDefinitionDetailResponse) GetCreatedAt

func (s *FlowDefinitionDetailResponse) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*FlowDefinitionDetailResponse) GetFlowDefinition

func (s *FlowDefinitionDetailResponse) GetFlowDefinition() FlowDefinition

GetFlowDefinition returns the value of FlowDefinition.

func (*FlowDefinitionDetailResponse) GetID

GetID returns the value of ID.

func (*FlowDefinitionDetailResponse) GetProjectID

func (s *FlowDefinitionDetailResponse) GetProjectID() string

GetProjectID returns the value of ProjectID.

func (*FlowDefinitionDetailResponse) GetStatus

func (s *FlowDefinitionDetailResponse) GetStatus() string

GetStatus returns the value of Status.

func (*FlowDefinitionDetailResponse) GetUpdatedAt

func (s *FlowDefinitionDetailResponse) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*FlowDefinitionDetailResponse) MarshalJSON

func (s *FlowDefinitionDetailResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionDetailResponse) SetCreatedAt

func (s *FlowDefinitionDetailResponse) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*FlowDefinitionDetailResponse) SetFlowDefinition

func (s *FlowDefinitionDetailResponse) SetFlowDefinition(val FlowDefinition)

SetFlowDefinition sets the value of FlowDefinition.

func (*FlowDefinitionDetailResponse) SetID

func (s *FlowDefinitionDetailResponse) SetID(val string)

SetID sets the value of ID.

func (*FlowDefinitionDetailResponse) SetProjectID

func (s *FlowDefinitionDetailResponse) SetProjectID(val string)

SetProjectID sets the value of ProjectID.

func (*FlowDefinitionDetailResponse) SetStatus

func (s *FlowDefinitionDetailResponse) SetStatus(val string)

SetStatus sets the value of Status.

func (*FlowDefinitionDetailResponse) SetUpdatedAt

func (s *FlowDefinitionDetailResponse) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*FlowDefinitionDetailResponse) UnmarshalJSON

func (s *FlowDefinitionDetailResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinitionDetailResponse) Validate

func (s *FlowDefinitionDetailResponse) Validate() error

type FlowDefinitionListResponse

type FlowDefinitionListResponse struct {
	FlowDefinitions []FlowDefinitionResponse `json:"flow_definitions"`
	// The token to retrieve the next page of results. Absent if there are no more results.
	NextPageToken OptNilPageToken `json:"next_page_token"`
}

Ref: #

func (*FlowDefinitionListResponse) Decode

Decode decodes FlowDefinitionListResponse from json.

func (*FlowDefinitionListResponse) Encode

func (s *FlowDefinitionListResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowDefinitionListResponse) GetFlowDefinitions

func (s *FlowDefinitionListResponse) GetFlowDefinitions() []FlowDefinitionResponse

GetFlowDefinitions returns the value of FlowDefinitions.

func (*FlowDefinitionListResponse) GetNextPageToken

func (s *FlowDefinitionListResponse) GetNextPageToken() OptNilPageToken

GetNextPageToken returns the value of NextPageToken.

func (*FlowDefinitionListResponse) MarshalJSON

func (s *FlowDefinitionListResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionListResponse) SetFlowDefinitions

func (s *FlowDefinitionListResponse) SetFlowDefinitions(val []FlowDefinitionResponse)

SetFlowDefinitions sets the value of FlowDefinitions.

func (*FlowDefinitionListResponse) SetNextPageToken

func (s *FlowDefinitionListResponse) SetNextPageToken(val OptNilPageToken)

SetNextPageToken sets the value of NextPageToken.

func (*FlowDefinitionListResponse) UnmarshalJSON

func (s *FlowDefinitionListResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinitionListResponse) Validate

func (s *FlowDefinitionListResponse) Validate() error

type FlowDefinitionPurposes

type FlowDefinitionPurposes map[string]string

Maps each purpose this definition handles to its entry-point step. Keys are purpose names; values must match a `name` in `steps`. A definition can serve multiple purposes (e.g. a combined login/register flow) by listing one entry per purpose.

func (*FlowDefinitionPurposes) Decode

func (s *FlowDefinitionPurposes) Decode(d *jx.Decoder) error

Decode decodes FlowDefinitionPurposes from json.

func (FlowDefinitionPurposes) Encode

func (s FlowDefinitionPurposes) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FlowDefinitionPurposes) MarshalJSON

func (s FlowDefinitionPurposes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionPurposes) UnmarshalJSON

func (s *FlowDefinitionPurposes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FlowDefinitionPurposes) Validate

func (s FlowDefinitionPurposes) Validate() error

type FlowDefinitionResponse

type FlowDefinitionResponse struct {
	// Unique identifier for the created flow definition.
	ID string `json:"id"`
	// Stable identifier for this flow (echoed from the request).
	Name string `json:"name"`
	// Identifier of the project this flow definition belongs to.
	ProjectID string `json:"project_id"`
	// URI of the flow definition schema this definition was authored against.
	// If the schema_uri was not provided in the request, the flow definition is validated against the
	// latest version of the schema, and the response includes the schema_uri of the latest version.
	SchemaURI OptURI `json:"schema_uri"`
	// Status of the flow definition.
	Status string `json:"status"`
	// Timestamp when the flow definition was created.
	CreatedAt time.Time `json:"created_at"`
	// Timestamp when the flow definition was last updated.
	UpdatedAt time.Time `json:"updated_at"`
}

Response object for a flow definition after creation. Ref: #

func (*FlowDefinitionResponse) Decode

func (s *FlowDefinitionResponse) Decode(d *jx.Decoder) error

Decode decodes FlowDefinitionResponse from json.

func (*FlowDefinitionResponse) Encode

func (s *FlowDefinitionResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowDefinitionResponse) GetCreatedAt

func (s *FlowDefinitionResponse) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*FlowDefinitionResponse) GetID

func (s *FlowDefinitionResponse) GetID() string

GetID returns the value of ID.

func (*FlowDefinitionResponse) GetName

func (s *FlowDefinitionResponse) GetName() string

GetName returns the value of Name.

func (*FlowDefinitionResponse) GetProjectID

func (s *FlowDefinitionResponse) GetProjectID() string

GetProjectID returns the value of ProjectID.

func (*FlowDefinitionResponse) GetSchemaURI

func (s *FlowDefinitionResponse) GetSchemaURI() OptURI

GetSchemaURI returns the value of SchemaURI.

func (*FlowDefinitionResponse) GetStatus

func (s *FlowDefinitionResponse) GetStatus() string

GetStatus returns the value of Status.

func (*FlowDefinitionResponse) GetUpdatedAt

func (s *FlowDefinitionResponse) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*FlowDefinitionResponse) MarshalJSON

func (s *FlowDefinitionResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionResponse) SetCreatedAt

func (s *FlowDefinitionResponse) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*FlowDefinitionResponse) SetID

func (s *FlowDefinitionResponse) SetID(val string)

SetID sets the value of ID.

func (*FlowDefinitionResponse) SetName

func (s *FlowDefinitionResponse) SetName(val string)

SetName sets the value of Name.

func (*FlowDefinitionResponse) SetProjectID

func (s *FlowDefinitionResponse) SetProjectID(val string)

SetProjectID sets the value of ProjectID.

func (*FlowDefinitionResponse) SetSchemaURI

func (s *FlowDefinitionResponse) SetSchemaURI(val OptURI)

SetSchemaURI sets the value of SchemaURI.

func (*FlowDefinitionResponse) SetStatus

func (s *FlowDefinitionResponse) SetStatus(val string)

SetStatus sets the value of Status.

func (*FlowDefinitionResponse) SetUpdatedAt

func (s *FlowDefinitionResponse) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*FlowDefinitionResponse) UnmarshalJSON

func (s *FlowDefinitionResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinitionResponse) Validate

func (s *FlowDefinitionResponse) Validate() error

type FlowDefinitionStep

type FlowDefinitionStep struct {
	// Unique step identifier within this flow. Used as transition targets
	// and returned in the API response as `step.name`.
	Name string `json:"name"`
	// Schema property names to collect from the user. Each entry references
	// a property in the flow's user schema. The engine resolves field type,
	// validation rules, and implicit outcomes from schema annotations
	// (e.g. a property with `x-unique` set implies a `user_not_found`
	// transition outcome).
	Fields []string `json:"fields"`
	// Ordered list of actions the user can take. The action name is what the
	// frontend sends back in the submit request. If omitted, the engine
	// provides a default `submit` action.
	Actions []StepAction `json:"actions"`
	// Security gates that must be satisfied before submission. Keyed by gate
	// name. Each gate selects a kind (e.g. "captcha") and provider-specific
	// configuration. The engine may also inject gates dynamically based on
	// policy.
	Gates OptFlowDefinitionStepGates `json:"gates"`
	// Available SSO identity providers for this step.
	SSOProviders []SSOProvider `json:"sso_providers"`
	// Server-side mutation to execute when this step completes successfully.
	// Runs after field validation passes, before the transition fires.
	// - create_user: creates the user record (registration flows).
	OnSuccess OptFlowDefinitionStepOnSuccess `json:"on_success"`
	// Marks this as a terminal step. Tells the frontend what to do:
	// - redirect: navigate to redirect_uri (OIDC/SAML callback done)
	// - show: render as a success/info screen.
	Complete OptFlowDefinitionStepComplete `json:"complete"`
	// Maps action/outcome names to their transition descriptor.
	// Keys match action names from the `actions` array. Additional keys
	// come from implicit outcomes based on schema annotations
	// (e.g. `user_not_found` from `x-unique` fields) and engine
	// events (e.g. `sso`, `callback`).
	Transitions OptFlowDefinitionStepTransitions `json:"transitions"`
}

A step in a flow definition. This is the admin-authored configuration, not the runtime payload sent to the frontend. Steps are schema-driven: `fields` references properties from the flow's user schema, and the engine resolves field metadata (type, validation, implicit outcomes) from schema annotations at runtime. A step with only `complete` set is a terminal step. All other steps are rendered to the frontend as capability payloads. Ref: #

func (*FlowDefinitionStep) Decode

func (s *FlowDefinitionStep) Decode(d *jx.Decoder) error

Decode decodes FlowDefinitionStep from json.

func (*FlowDefinitionStep) Encode

func (s *FlowDefinitionStep) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowDefinitionStep) GetActions

func (s *FlowDefinitionStep) GetActions() []StepAction

GetActions returns the value of Actions.

func (*FlowDefinitionStep) GetComplete

GetComplete returns the value of Complete.

func (*FlowDefinitionStep) GetFields

func (s *FlowDefinitionStep) GetFields() []string

GetFields returns the value of Fields.

func (*FlowDefinitionStep) GetGates

GetGates returns the value of Gates.

func (*FlowDefinitionStep) GetName

func (s *FlowDefinitionStep) GetName() string

GetName returns the value of Name.

func (*FlowDefinitionStep) GetOnSuccess

GetOnSuccess returns the value of OnSuccess.

func (*FlowDefinitionStep) GetSSOProviders

func (s *FlowDefinitionStep) GetSSOProviders() []SSOProvider

GetSSOProviders returns the value of SSOProviders.

func (*FlowDefinitionStep) GetTransitions

GetTransitions returns the value of Transitions.

func (*FlowDefinitionStep) MarshalJSON

func (s *FlowDefinitionStep) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionStep) SetActions

func (s *FlowDefinitionStep) SetActions(val []StepAction)

SetActions sets the value of Actions.

func (*FlowDefinitionStep) SetComplete

SetComplete sets the value of Complete.

func (*FlowDefinitionStep) SetFields

func (s *FlowDefinitionStep) SetFields(val []string)

SetFields sets the value of Fields.

func (*FlowDefinitionStep) SetGates

SetGates sets the value of Gates.

func (*FlowDefinitionStep) SetName

func (s *FlowDefinitionStep) SetName(val string)

SetName sets the value of Name.

func (*FlowDefinitionStep) SetOnSuccess

SetOnSuccess sets the value of OnSuccess.

func (*FlowDefinitionStep) SetSSOProviders

func (s *FlowDefinitionStep) SetSSOProviders(val []SSOProvider)

SetSSOProviders sets the value of SSOProviders.

func (*FlowDefinitionStep) SetTransitions

SetTransitions sets the value of Transitions.

func (*FlowDefinitionStep) UnmarshalJSON

func (s *FlowDefinitionStep) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinitionStep) Validate

func (s *FlowDefinitionStep) Validate() error

type FlowDefinitionStepComplete

type FlowDefinitionStepComplete string

Marks this as a terminal step. Tells the frontend what to do: - redirect: navigate to redirect_uri (OIDC/SAML callback done) - show: render as a success/info screen.

const (
	FlowDefinitionStepCompleteRedirect FlowDefinitionStepComplete = "redirect"
	FlowDefinitionStepCompleteShow     FlowDefinitionStepComplete = "show"
)

func (FlowDefinitionStepComplete) AllValues

AllValues returns all FlowDefinitionStepComplete values.

func (*FlowDefinitionStepComplete) Decode

Decode decodes FlowDefinitionStepComplete from json.

func (FlowDefinitionStepComplete) Encode

func (s FlowDefinitionStepComplete) Encode(e *jx.Encoder)

Encode encodes FlowDefinitionStepComplete as json.

func (FlowDefinitionStepComplete) MarshalJSON

func (s FlowDefinitionStepComplete) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FlowDefinitionStepComplete) MarshalText

func (s FlowDefinitionStepComplete) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FlowDefinitionStepComplete) UnmarshalJSON

func (s *FlowDefinitionStepComplete) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinitionStepComplete) UnmarshalText

func (s *FlowDefinitionStepComplete) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FlowDefinitionStepComplete) Validate

func (s FlowDefinitionStepComplete) Validate() error

type FlowDefinitionStepGates

type FlowDefinitionStepGates map[string]Gate

Security gates that must be satisfied before submission. Keyed by gate name. Each gate selects a kind (e.g. "captcha") and provider-specific configuration. The engine may also inject gates dynamically based on policy.

func (*FlowDefinitionStepGates) Decode

func (s *FlowDefinitionStepGates) Decode(d *jx.Decoder) error

Decode decodes FlowDefinitionStepGates from json.

func (FlowDefinitionStepGates) Encode

func (s FlowDefinitionStepGates) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FlowDefinitionStepGates) MarshalJSON

func (s FlowDefinitionStepGates) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionStepGates) UnmarshalJSON

func (s *FlowDefinitionStepGates) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FlowDefinitionStepGates) Validate

func (s FlowDefinitionStepGates) Validate() error

type FlowDefinitionStepOnSuccess

type FlowDefinitionStepOnSuccess string

Server-side mutation to execute when this step completes successfully. Runs after field validation passes, before the transition fires. - create_user: creates the user record (registration flows).

const (
	FlowDefinitionStepOnSuccessCreateUser FlowDefinitionStepOnSuccess = "create_user"
)

func (FlowDefinitionStepOnSuccess) AllValues

AllValues returns all FlowDefinitionStepOnSuccess values.

func (*FlowDefinitionStepOnSuccess) Decode

Decode decodes FlowDefinitionStepOnSuccess from json.

func (FlowDefinitionStepOnSuccess) Encode

func (s FlowDefinitionStepOnSuccess) Encode(e *jx.Encoder)

Encode encodes FlowDefinitionStepOnSuccess as json.

func (FlowDefinitionStepOnSuccess) MarshalJSON

func (s FlowDefinitionStepOnSuccess) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FlowDefinitionStepOnSuccess) MarshalText

func (s FlowDefinitionStepOnSuccess) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FlowDefinitionStepOnSuccess) UnmarshalJSON

func (s *FlowDefinitionStepOnSuccess) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinitionStepOnSuccess) UnmarshalText

func (s *FlowDefinitionStepOnSuccess) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FlowDefinitionStepOnSuccess) Validate

func (s FlowDefinitionStepOnSuccess) Validate() error

type FlowDefinitionStepTransitions

type FlowDefinitionStepTransitions map[string]FlowDefinitionStepTransitionsItem

Maps action/outcome names to their transition descriptor. Keys match action names from the `actions` array. Additional keys come from implicit outcomes based on schema annotations (e.g. `user_not_found` from `x-unique` fields) and engine events (e.g. `sso`, `callback`).

func (*FlowDefinitionStepTransitions) Decode

Decode decodes FlowDefinitionStepTransitions from json.

func (FlowDefinitionStepTransitions) Encode

Encode implements json.Marshaler.

func (FlowDefinitionStepTransitions) MarshalJSON

func (s FlowDefinitionStepTransitions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionStepTransitions) UnmarshalJSON

func (s *FlowDefinitionStepTransitions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FlowDefinitionStepTransitions) Validate

func (s FlowDefinitionStepTransitions) Validate() error

type FlowDefinitionStepTransitionsItem

type FlowDefinitionStepTransitionsItem struct {
	// Step name within this flow (when `action` is null), or the name
	// of another flow (when `action` is `switch` or `pivot`).
	Target string `json:"target"`
	// How to interpret `target`:
	// - null (omitted): transition to a step in the current flow.
	// - switch: replace the current flow with the target flow.
	// No return — the current flow is discarded.
	// Example: login ↔ register.
	// - pivot: push the target flow onto the stack. The current flow
	// is paused and resumes when the target flow completes (auto-pop).
	// Example: login → recovery → back to login.
	Action OptNilFlowDefinitionStepTransitionsItemAction `json:"action"`
}

func (*FlowDefinitionStepTransitionsItem) Decode

Decode decodes FlowDefinitionStepTransitionsItem from json.

func (*FlowDefinitionStepTransitionsItem) Encode

Encode implements json.Marshaler.

func (*FlowDefinitionStepTransitionsItem) GetAction

GetAction returns the value of Action.

func (*FlowDefinitionStepTransitionsItem) GetTarget

GetTarget returns the value of Target.

func (*FlowDefinitionStepTransitionsItem) MarshalJSON

func (s *FlowDefinitionStepTransitionsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionStepTransitionsItem) SetAction

SetAction sets the value of Action.

func (*FlowDefinitionStepTransitionsItem) SetTarget

func (s *FlowDefinitionStepTransitionsItem) SetTarget(val string)

SetTarget sets the value of Target.

func (*FlowDefinitionStepTransitionsItem) UnmarshalJSON

func (s *FlowDefinitionStepTransitionsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinitionStepTransitionsItem) Validate

type FlowDefinitionStepTransitionsItemAction

type FlowDefinitionStepTransitionsItemAction string
const (
	FlowDefinitionStepTransitionsItemActionSwitch FlowDefinitionStepTransitionsItemAction = "switch"
	FlowDefinitionStepTransitionsItemActionPivot  FlowDefinitionStepTransitionsItemAction = "pivot"
)

func (FlowDefinitionStepTransitionsItemAction) AllValues

AllValues returns all FlowDefinitionStepTransitionsItemAction values.

func (*FlowDefinitionStepTransitionsItemAction) Decode

Decode decodes FlowDefinitionStepTransitionsItemAction from json.

func (FlowDefinitionStepTransitionsItemAction) Encode

Encode encodes FlowDefinitionStepTransitionsItemAction as json.

func (FlowDefinitionStepTransitionsItemAction) MarshalJSON

func (s FlowDefinitionStepTransitionsItemAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FlowDefinitionStepTransitionsItemAction) MarshalText

func (s FlowDefinitionStepTransitionsItemAction) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FlowDefinitionStepTransitionsItemAction) UnmarshalJSON

func (s *FlowDefinitionStepTransitionsItemAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinitionStepTransitionsItemAction) UnmarshalText

func (s *FlowDefinitionStepTransitionsItemAction) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FlowDefinitionStepTransitionsItemAction) Validate

type FlowDefinitionUpdateRequest

type FlowDefinitionUpdateRequest struct {
	// User schema this flow operates on. Replaces the current value if provided.
	UserSchema OptURI `json:"user_schema"`
	// Replaces the full purpose-to-entry-step map if provided. Keys are
	// purpose names; values must match a `name` in `steps`.
	Purposes OptFlowDefinitionUpdateRequestPurposes `json:"purposes"`
	Audience OptFlowAudience                        `json:"audience"`
	// Replaces the full steps array if provided. Partial step lists are not
	// supported — supply all steps when updating this field.
	Steps []FlowDefinitionStep `json:"steps"`
}

Partial update for a flow definition. Only provided fields are replaced; omitted fields retain their current server-side values. Collection fields (`steps`, `purposes`) are treated atomically: if provided, the entire array/object is replaced. If omitted, the current value is preserved unchanged. `name` is a stable identifier and cannot be changed after creation. Ref: #

func (*FlowDefinitionUpdateRequest) Decode

Decode decodes FlowDefinitionUpdateRequest from json.

func (*FlowDefinitionUpdateRequest) Encode

func (s *FlowDefinitionUpdateRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowDefinitionUpdateRequest) GetAudience

GetAudience returns the value of Audience.

func (*FlowDefinitionUpdateRequest) GetPurposes

GetPurposes returns the value of Purposes.

func (*FlowDefinitionUpdateRequest) GetSteps

GetSteps returns the value of Steps.

func (*FlowDefinitionUpdateRequest) GetUserSchema

func (s *FlowDefinitionUpdateRequest) GetUserSchema() OptURI

GetUserSchema returns the value of UserSchema.

func (*FlowDefinitionUpdateRequest) MarshalJSON

func (s *FlowDefinitionUpdateRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionUpdateRequest) SetAudience

func (s *FlowDefinitionUpdateRequest) SetAudience(val OptFlowAudience)

SetAudience sets the value of Audience.

func (*FlowDefinitionUpdateRequest) SetPurposes

SetPurposes sets the value of Purposes.

func (*FlowDefinitionUpdateRequest) SetSteps

SetSteps sets the value of Steps.

func (*FlowDefinitionUpdateRequest) SetUserSchema

func (s *FlowDefinitionUpdateRequest) SetUserSchema(val OptURI)

SetUserSchema sets the value of UserSchema.

func (*FlowDefinitionUpdateRequest) UnmarshalJSON

func (s *FlowDefinitionUpdateRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowDefinitionUpdateRequest) Validate

func (s *FlowDefinitionUpdateRequest) Validate() error

type FlowDefinitionUpdateRequestPurposes

type FlowDefinitionUpdateRequestPurposes map[string]string

Replaces the full purpose-to-entry-step map if provided. Keys are purpose names; values must match a `name` in `steps`.

func (*FlowDefinitionUpdateRequestPurposes) Decode

Decode decodes FlowDefinitionUpdateRequestPurposes from json.

func (FlowDefinitionUpdateRequestPurposes) Encode

Encode implements json.Marshaler.

func (FlowDefinitionUpdateRequestPurposes) MarshalJSON

func (s FlowDefinitionUpdateRequestPurposes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowDefinitionUpdateRequestPurposes) UnmarshalJSON

func (s *FlowDefinitionUpdateRequestPurposes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FlowDefinitionUpdateRequestPurposes) Validate

type FlowEventRequest

type FlowEventRequest struct {
	// Reserved for future rotation. The sealed `_zflow` cookie carries the flow state today.
	SessionToken OptString            `json:"session_token"`
	Type         FlowEventRequestType `json:"type"`
	// Event payload (fingerprint hash, timing data, etc.).
	Payload OptFlowEventRequestPayload `json:"payload"`
}

Ref: #

func (*FlowEventRequest) Decode

func (s *FlowEventRequest) Decode(d *jx.Decoder) error

Decode decodes FlowEventRequest from json.

func (*FlowEventRequest) Encode

func (s *FlowEventRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowEventRequest) GetPayload

GetPayload returns the value of Payload.

func (*FlowEventRequest) GetSessionToken

func (s *FlowEventRequest) GetSessionToken() OptString

GetSessionToken returns the value of SessionToken.

func (*FlowEventRequest) GetType

GetType returns the value of Type.

func (*FlowEventRequest) MarshalJSON

func (s *FlowEventRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowEventRequest) SetPayload

func (s *FlowEventRequest) SetPayload(val OptFlowEventRequestPayload)

SetPayload sets the value of Payload.

func (*FlowEventRequest) SetSessionToken

func (s *FlowEventRequest) SetSessionToken(val OptString)

SetSessionToken sets the value of SessionToken.

func (*FlowEventRequest) SetType

func (s *FlowEventRequest) SetType(val FlowEventRequestType)

SetType sets the value of Type.

func (*FlowEventRequest) UnmarshalJSON

func (s *FlowEventRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowEventRequest) Validate

func (s *FlowEventRequest) Validate() error

type FlowEventRequestPayload

type FlowEventRequestPayload map[string]jx.Raw

Event payload (fingerprint hash, timing data, etc.).

func (*FlowEventRequestPayload) Decode

func (s *FlowEventRequestPayload) Decode(d *jx.Decoder) error

Decode decodes FlowEventRequestPayload from json.

func (FlowEventRequestPayload) Encode

func (s FlowEventRequestPayload) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FlowEventRequestPayload) MarshalJSON

func (s FlowEventRequestPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowEventRequestPayload) UnmarshalJSON

func (s *FlowEventRequestPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FlowEventRequestType

type FlowEventRequestType string
const (
	FlowEventRequestTypeFingerprint FlowEventRequestType = "fingerprint"
	FlowEventRequestTypeTelemetry   FlowEventRequestType = "telemetry"
)

func (FlowEventRequestType) AllValues

AllValues returns all FlowEventRequestType values.

func (*FlowEventRequestType) Decode

func (s *FlowEventRequestType) Decode(d *jx.Decoder) error

Decode decodes FlowEventRequestType from json.

func (FlowEventRequestType) Encode

func (s FlowEventRequestType) Encode(e *jx.Encoder)

Encode encodes FlowEventRequestType as json.

func (FlowEventRequestType) MarshalJSON

func (s FlowEventRequestType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FlowEventRequestType) MarshalText

func (s FlowEventRequestType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FlowEventRequestType) UnmarshalJSON

func (s *FlowEventRequestType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowEventRequestType) UnmarshalText

func (s *FlowEventRequestType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FlowEventRequestType) Validate

func (s FlowEventRequestType) Validate() error

type FlowHint

type FlowHint struct {
	// Auto-submits identifier step (maps to OIDC login_hint).
	LoginName OptString `json:"login_name"`
	// Scopes flow resolution to a team.
	TeamID OptString `json:"team_id"`
	// Scopes to a specific user type.
	UserSchemaID OptString `json:"user_schema_id"`
	// Scopes to a specific application.
	AppID OptString `json:"app_id"`
}

Ref: #

func (*FlowHint) Decode

func (s *FlowHint) Decode(d *jx.Decoder) error

Decode decodes FlowHint from json.

func (*FlowHint) Encode

func (s *FlowHint) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowHint) GetAppID

func (s *FlowHint) GetAppID() OptString

GetAppID returns the value of AppID.

func (*FlowHint) GetLoginName

func (s *FlowHint) GetLoginName() OptString

GetLoginName returns the value of LoginName.

func (*FlowHint) GetTeamID

func (s *FlowHint) GetTeamID() OptString

GetTeamID returns the value of TeamID.

func (*FlowHint) GetUserSchemaID

func (s *FlowHint) GetUserSchemaID() OptString

GetUserSchemaID returns the value of UserSchemaID.

func (*FlowHint) MarshalJSON

func (s *FlowHint) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowHint) SetAppID

func (s *FlowHint) SetAppID(val OptString)

SetAppID sets the value of AppID.

func (*FlowHint) SetLoginName

func (s *FlowHint) SetLoginName(val OptString)

SetLoginName sets the value of LoginName.

func (*FlowHint) SetTeamID

func (s *FlowHint) SetTeamID(val OptString)

SetTeamID sets the value of TeamID.

func (*FlowHint) SetUserSchemaID

func (s *FlowHint) SetUserSchemaID(val OptString)

SetUserSchemaID sets the value of UserSchemaID.

func (*FlowHint) UnmarshalJSON

func (s *FlowHint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FlowResponse

type FlowResponse struct {
	// Flow handle. Use this as the path parameter for subsequent
	// submit/event calls. May change between responses when a
	// flow pivot or pop occurs.
	ID string `json:"id"`
	// Underlying session ID. Stable across all stacked flows.
	SessionID string `json:"session_id"`
	// Reserved for future rotation. The sealed `_zflow` cookie carries the flow state today.
	SessionToken OptString `json:"session_token"`
	Step         FlowStep  `json:"step"`
	// Resolved branding inherited from the app → team → project hierarchy.
	// Determined at flow creation based on audience context. Does not change between steps.
	Branding OptBranding `json:"branding"`
	// Present when `step.complete` is `redirect`.
	RedirectURI OptURI `json:"redirect_uri"`
	// Short-lived, audience-bound token produced on flow completion.
	// Exchange it for a session via `POST /sessions/exchange`.
	// Only present when `step.complete` is set.
	HandoffToken OptString `json:"handoff_token"`
	// Expiry timestamp for `handoff_token`. Only present when
	// `handoff_token` is set.
	HandoffTokenExpiresAt OptDateTime `json:"handoff_token_expires_at"`
}

Ref: #

func (*FlowResponse) Decode

func (s *FlowResponse) Decode(d *jx.Decoder) error

Decode decodes FlowResponse from json.

func (*FlowResponse) Encode

func (s *FlowResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowResponse) GetBranding

func (s *FlowResponse) GetBranding() OptBranding

GetBranding returns the value of Branding.

func (*FlowResponse) GetHandoffToken

func (s *FlowResponse) GetHandoffToken() OptString

GetHandoffToken returns the value of HandoffToken.

func (*FlowResponse) GetHandoffTokenExpiresAt

func (s *FlowResponse) GetHandoffTokenExpiresAt() OptDateTime

GetHandoffTokenExpiresAt returns the value of HandoffTokenExpiresAt.

func (*FlowResponse) GetID

func (s *FlowResponse) GetID() string

GetID returns the value of ID.

func (*FlowResponse) GetRedirectURI

func (s *FlowResponse) GetRedirectURI() OptURI

GetRedirectURI returns the value of RedirectURI.

func (*FlowResponse) GetSessionID

func (s *FlowResponse) GetSessionID() string

GetSessionID returns the value of SessionID.

func (*FlowResponse) GetSessionToken

func (s *FlowResponse) GetSessionToken() OptString

GetSessionToken returns the value of SessionToken.

func (*FlowResponse) GetStep

func (s *FlowResponse) GetStep() FlowStep

GetStep returns the value of Step.

func (*FlowResponse) MarshalJSON

func (s *FlowResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowResponse) SetBranding

func (s *FlowResponse) SetBranding(val OptBranding)

SetBranding sets the value of Branding.

func (*FlowResponse) SetHandoffToken

func (s *FlowResponse) SetHandoffToken(val OptString)

SetHandoffToken sets the value of HandoffToken.

func (*FlowResponse) SetHandoffTokenExpiresAt

func (s *FlowResponse) SetHandoffTokenExpiresAt(val OptDateTime)

SetHandoffTokenExpiresAt sets the value of HandoffTokenExpiresAt.

func (*FlowResponse) SetID

func (s *FlowResponse) SetID(val string)

SetID sets the value of ID.

func (*FlowResponse) SetRedirectURI

func (s *FlowResponse) SetRedirectURI(val OptURI)

SetRedirectURI sets the value of RedirectURI.

func (*FlowResponse) SetSessionID

func (s *FlowResponse) SetSessionID(val string)

SetSessionID sets the value of SessionID.

func (*FlowResponse) SetSessionToken

func (s *FlowResponse) SetSessionToken(val OptString)

SetSessionToken sets the value of SessionToken.

func (*FlowResponse) SetStep

func (s *FlowResponse) SetStep(val FlowStep)

SetStep sets the value of Step.

func (*FlowResponse) UnmarshalJSON

func (s *FlowResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowResponse) Validate

func (s *FlowResponse) Validate() error

type FlowResponseHeaders

type FlowResponseHeaders struct {
	SetCookie OptString
	Response  FlowResponse
}

FlowResponseHeaders wraps FlowResponse with response headers.

func (*FlowResponseHeaders) GetResponse

func (s *FlowResponseHeaders) GetResponse() FlowResponse

GetResponse returns the value of Response.

func (*FlowResponseHeaders) GetSetCookie

func (s *FlowResponseHeaders) GetSetCookie() OptString

GetSetCookie returns the value of SetCookie.

func (*FlowResponseHeaders) SetResponse

func (s *FlowResponseHeaders) SetResponse(val FlowResponse)

SetResponse sets the value of Response.

func (*FlowResponseHeaders) SetSetCookie

func (s *FlowResponseHeaders) SetSetCookie(val OptString)

SetSetCookie sets the value of SetCookie.

func (*FlowResponseHeaders) Validate

func (s *FlowResponseHeaders) Validate() error

type FlowStep

type FlowStep struct {
	// Step name from the flow definition.
	Name  string       `json:"name"`
	Texts OptStepTexts `json:"texts"`
	// Error message from a previous failed submission.
	Error OptNilString `json:"error"`
	// Present only on terminal steps. Tells the frontend what to do:
	// - redirect: navigate to redirect_uri immediately (OIDC/SAML done)
	// - show: render the step as a success screen (e.g., registration confirmed).
	Complete OptFlowStepComplete `json:"complete"`
	// URL to navigate to (e.g., SSO provider redirect).
	RedirectURL OptURI `json:"redirect_url"`
	// Ordered list of input fields to collect. Field metadata (type, validation)
	// is resolved by the engine from the flow's user schema. The LiquidJS
	// template iterates this array; for keyed lookup it builds a name-indexed
	// map locally.
	Fields []Field `json:"fields"`
	// Ordered list of available user actions. The LiquidJS template iterates
	// this array and builds a name-indexed map locally for keyed lookup.
	Actions []StepAction `json:"actions"`
	// Security gates that must be satisfied before the step can be submitted.
	// The engine injects gates dynamically based on policy, even if they
	// are not declared in the flow definition.
	Gates FlowStepGates `json:"gates"`
	// Available SSO identity providers for this step.
	SSOProviders []SSOProvider `json:"sso_providers"`
	// A pending authentication challenge issued by the server. Present when the
	// flow engine has issued a challenge via auth_attempts (e.g., after the user
	// submits `action: "passkey"`). The `<zl-passkey>` component reads this and
	// triggers the appropriate WebAuthn ceremony.
	// The challenge is NOT present on the initial step — it appears only after
	// the user explicitly selects a ceremony-based action.
	Challenge OptFlowStepChallenge `json:"challenge"`
}

A step contains ordered capability arrays: what to collect (fields), what the user can do (actions), and what security gates must be satisfied (gates). The LiquidJS template in `branding.liquid_template` iterates these arrays in order and builds name-keyed indexes locally for lookup. Ref: #

func (*FlowStep) Decode

func (s *FlowStep) Decode(d *jx.Decoder) error

Decode decodes FlowStep from json.

func (*FlowStep) Encode

func (s *FlowStep) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowStep) GetActions

func (s *FlowStep) GetActions() []StepAction

GetActions returns the value of Actions.

func (*FlowStep) GetChallenge

func (s *FlowStep) GetChallenge() OptFlowStepChallenge

GetChallenge returns the value of Challenge.

func (*FlowStep) GetComplete

func (s *FlowStep) GetComplete() OptFlowStepComplete

GetComplete returns the value of Complete.

func (*FlowStep) GetError

func (s *FlowStep) GetError() OptNilString

GetError returns the value of Error.

func (*FlowStep) GetFields

func (s *FlowStep) GetFields() []Field

GetFields returns the value of Fields.

func (*FlowStep) GetGates

func (s *FlowStep) GetGates() FlowStepGates

GetGates returns the value of Gates.

func (*FlowStep) GetName

func (s *FlowStep) GetName() string

GetName returns the value of Name.

func (*FlowStep) GetRedirectURL

func (s *FlowStep) GetRedirectURL() OptURI

GetRedirectURL returns the value of RedirectURL.

func (*FlowStep) GetSSOProviders

func (s *FlowStep) GetSSOProviders() []SSOProvider

GetSSOProviders returns the value of SSOProviders.

func (*FlowStep) GetTexts

func (s *FlowStep) GetTexts() OptStepTexts

GetTexts returns the value of Texts.

func (*FlowStep) MarshalJSON

func (s *FlowStep) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowStep) SetActions

func (s *FlowStep) SetActions(val []StepAction)

SetActions sets the value of Actions.

func (*FlowStep) SetChallenge

func (s *FlowStep) SetChallenge(val OptFlowStepChallenge)

SetChallenge sets the value of Challenge.

func (*FlowStep) SetComplete

func (s *FlowStep) SetComplete(val OptFlowStepComplete)

SetComplete sets the value of Complete.

func (*FlowStep) SetError

func (s *FlowStep) SetError(val OptNilString)

SetError sets the value of Error.

func (*FlowStep) SetFields

func (s *FlowStep) SetFields(val []Field)

SetFields sets the value of Fields.

func (*FlowStep) SetGates

func (s *FlowStep) SetGates(val FlowStepGates)

SetGates sets the value of Gates.

func (*FlowStep) SetName

func (s *FlowStep) SetName(val string)

SetName sets the value of Name.

func (*FlowStep) SetRedirectURL

func (s *FlowStep) SetRedirectURL(val OptURI)

SetRedirectURL sets the value of RedirectURL.

func (*FlowStep) SetSSOProviders

func (s *FlowStep) SetSSOProviders(val []SSOProvider)

SetSSOProviders sets the value of SSOProviders.

func (*FlowStep) SetTexts

func (s *FlowStep) SetTexts(val OptStepTexts)

SetTexts sets the value of Texts.

func (*FlowStep) UnmarshalJSON

func (s *FlowStep) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowStep) Validate

func (s *FlowStep) Validate() error

type FlowStepChallenge

type FlowStepChallenge struct {
	// Challenge method. Determines which component handles the ceremony.
	Method OptFlowStepChallengeMethod `json:"method"`
	// Server-side challenge identifier. Included in the proof submission
	// so the server can match the response to the original challenge.
	ChallengeID OptString `json:"challenge_id"`
	// Protocol-specific challenge options. For passkey, this is the
	// `PublicKeyCredentialRequestOptions` (authenticate) or
	// `PublicKeyCredentialCreationOptions` (register). Passed directly
	// to the browser's `navigator.credentials` API.
	Options OptFlowStepChallengeOptions `json:"options"`
}

A pending authentication challenge issued by the server. Present when the flow engine has issued a challenge via auth_attempts (e.g., after the user submits `action: "passkey"`). The `<zl-passkey>` component reads this and triggers the appropriate WebAuthn ceremony. The challenge is NOT present on the initial step — it appears only after the user explicitly selects a ceremony-based action.

func (*FlowStepChallenge) Decode

func (s *FlowStepChallenge) Decode(d *jx.Decoder) error

Decode decodes FlowStepChallenge from json.

func (*FlowStepChallenge) Encode

func (s *FlowStepChallenge) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowStepChallenge) GetChallengeID

func (s *FlowStepChallenge) GetChallengeID() OptString

GetChallengeID returns the value of ChallengeID.

func (*FlowStepChallenge) GetMethod

GetMethod returns the value of Method.

func (*FlowStepChallenge) GetOptions

GetOptions returns the value of Options.

func (*FlowStepChallenge) MarshalJSON

func (s *FlowStepChallenge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowStepChallenge) SetChallengeID

func (s *FlowStepChallenge) SetChallengeID(val OptString)

SetChallengeID sets the value of ChallengeID.

func (*FlowStepChallenge) SetMethod

SetMethod sets the value of Method.

func (*FlowStepChallenge) SetOptions

SetOptions sets the value of Options.

func (*FlowStepChallenge) UnmarshalJSON

func (s *FlowStepChallenge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowStepChallenge) Validate

func (s *FlowStepChallenge) Validate() error

type FlowStepChallengeMethod

type FlowStepChallengeMethod string

Challenge method. Determines which component handles the ceremony.

const (
	FlowStepChallengeMethodPasskey FlowStepChallengeMethod = "passkey"
)

func (FlowStepChallengeMethod) AllValues

AllValues returns all FlowStepChallengeMethod values.

func (*FlowStepChallengeMethod) Decode

func (s *FlowStepChallengeMethod) Decode(d *jx.Decoder) error

Decode decodes FlowStepChallengeMethod from json.

func (FlowStepChallengeMethod) Encode

func (s FlowStepChallengeMethod) Encode(e *jx.Encoder)

Encode encodes FlowStepChallengeMethod as json.

func (FlowStepChallengeMethod) MarshalJSON

func (s FlowStepChallengeMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FlowStepChallengeMethod) MarshalText

func (s FlowStepChallengeMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FlowStepChallengeMethod) UnmarshalJSON

func (s *FlowStepChallengeMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowStepChallengeMethod) UnmarshalText

func (s *FlowStepChallengeMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FlowStepChallengeMethod) Validate

func (s FlowStepChallengeMethod) Validate() error

type FlowStepChallengeOptions

type FlowStepChallengeOptions map[string]jx.Raw

Protocol-specific challenge options. For passkey, this is the `PublicKeyCredentialRequestOptions` (authenticate) or `PublicKeyCredentialCreationOptions` (register). Passed directly to the browser's `navigator.credentials` API.

func (*FlowStepChallengeOptions) Decode

func (s *FlowStepChallengeOptions) Decode(d *jx.Decoder) error

Decode decodes FlowStepChallengeOptions from json.

func (FlowStepChallengeOptions) Encode

func (s FlowStepChallengeOptions) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FlowStepChallengeOptions) MarshalJSON

func (s FlowStepChallengeOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowStepChallengeOptions) UnmarshalJSON

func (s *FlowStepChallengeOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FlowStepComplete

type FlowStepComplete string

Present only on terminal steps. Tells the frontend what to do: - redirect: navigate to redirect_uri immediately (OIDC/SAML done) - show: render the step as a success screen (e.g., registration confirmed).

const (
	FlowStepCompleteRedirect FlowStepComplete = "redirect"
	FlowStepCompleteShow     FlowStepComplete = "show"
)

func (FlowStepComplete) AllValues

func (FlowStepComplete) AllValues() []FlowStepComplete

AllValues returns all FlowStepComplete values.

func (*FlowStepComplete) Decode

func (s *FlowStepComplete) Decode(d *jx.Decoder) error

Decode decodes FlowStepComplete from json.

func (FlowStepComplete) Encode

func (s FlowStepComplete) Encode(e *jx.Encoder)

Encode encodes FlowStepComplete as json.

func (FlowStepComplete) MarshalJSON

func (s FlowStepComplete) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FlowStepComplete) MarshalText

func (s FlowStepComplete) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FlowStepComplete) UnmarshalJSON

func (s *FlowStepComplete) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FlowStepComplete) UnmarshalText

func (s *FlowStepComplete) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FlowStepComplete) Validate

func (s FlowStepComplete) Validate() error

type FlowStepGates

type FlowStepGates map[string]Gate

Security gates that must be satisfied before the step can be submitted. The engine injects gates dynamically based on policy, even if they are not declared in the flow definition.

func (*FlowStepGates) Decode

func (s *FlowStepGates) Decode(d *jx.Decoder) error

Decode decodes FlowStepGates from json.

func (FlowStepGates) Encode

func (s FlowStepGates) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FlowStepGates) MarshalJSON

func (s FlowStepGates) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowStepGates) UnmarshalJSON

func (s *FlowStepGates) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FlowStepGates) Validate

func (s FlowStepGates) Validate() error

type FlowSubmitRequest

type FlowSubmitRequest struct {
	// Reserved for future rotation. The sealed `_zflow` cookie carries the flow state today.
	SessionToken OptString `json:"session_token"`
	// Which action to take. Must be a key from the step's `actions` dictionary:
	// - A regular action (e.g., "submit", "register", "back")
	// - The reserved value "sso" — triggers SSO redirect (requires `sso_provider_id`).
	Action string `json:"action"`
	// User input values. Keys match field names from the step's `fields` dictionary.
	Fields OptFlowSubmitRequestFields `json:"fields"`
	// Solutions for security gates. Keys match gate names from the step's `gates` dictionary.
	// The orchestrator collects these from `<zl-captcha>` component events.
	GateProofs OptFlowSubmitRequestGateProofs `json:"gate_proofs"`
	// Response to a pending challenge on the step. Required when the step has a
	// `challenge` property (e.g., after submitting a passkey action).
	// The `<zl-passkey>` component populates this after the WebAuthn ceremony.
	ChallengeResponse OptFlowSubmitRequestChallengeResponse `json:"challenge_response"`
	// ID of the selected SSO provider (from `sso_providers[].id`).
	// Required when `action` is "sso".
	SSOProviderID OptString `json:"sso_provider_id"`
}

Ref: #

func (*FlowSubmitRequest) Decode

func (s *FlowSubmitRequest) Decode(d *jx.Decoder) error

Decode decodes FlowSubmitRequest from json.

func (*FlowSubmitRequest) Encode

func (s *FlowSubmitRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FlowSubmitRequest) GetAction

func (s *FlowSubmitRequest) GetAction() string

GetAction returns the value of Action.

func (*FlowSubmitRequest) GetChallengeResponse

func (s *FlowSubmitRequest) GetChallengeResponse() OptFlowSubmitRequestChallengeResponse

GetChallengeResponse returns the value of ChallengeResponse.

func (*FlowSubmitRequest) GetFields

GetFields returns the value of Fields.

func (*FlowSubmitRequest) GetGateProofs

GetGateProofs returns the value of GateProofs.

func (*FlowSubmitRequest) GetSSOProviderID

func (s *FlowSubmitRequest) GetSSOProviderID() OptString

GetSSOProviderID returns the value of SSOProviderID.

func (*FlowSubmitRequest) GetSessionToken

func (s *FlowSubmitRequest) GetSessionToken() OptString

GetSessionToken returns the value of SessionToken.

func (*FlowSubmitRequest) MarshalJSON

func (s *FlowSubmitRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowSubmitRequest) SetAction

func (s *FlowSubmitRequest) SetAction(val string)

SetAction sets the value of Action.

func (*FlowSubmitRequest) SetChallengeResponse

func (s *FlowSubmitRequest) SetChallengeResponse(val OptFlowSubmitRequestChallengeResponse)

SetChallengeResponse sets the value of ChallengeResponse.

func (*FlowSubmitRequest) SetFields

SetFields sets the value of Fields.

func (*FlowSubmitRequest) SetGateProofs

func (s *FlowSubmitRequest) SetGateProofs(val OptFlowSubmitRequestGateProofs)

SetGateProofs sets the value of GateProofs.

func (*FlowSubmitRequest) SetSSOProviderID

func (s *FlowSubmitRequest) SetSSOProviderID(val OptString)

SetSSOProviderID sets the value of SSOProviderID.

func (*FlowSubmitRequest) SetSessionToken

func (s *FlowSubmitRequest) SetSessionToken(val OptString)

SetSessionToken sets the value of SessionToken.

func (*FlowSubmitRequest) UnmarshalJSON

func (s *FlowSubmitRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FlowSubmitRequestChallengeResponse

type FlowSubmitRequestChallengeResponse struct {
	// The challenge identifier from `step.challenge.challenge_id`.
	// Matches the server-side challenge for verification.
	ChallengeID OptString `json:"challenge_id"`
	// Which auth method this response is for (e.g., 'passkey').
	Method OptString `json:"method"`
	// Method-specific proof payload.
	// For passkeys, this is the WebAuthn JSON serialization of PublicKeyCredential.
	Proof OptFlowSubmitRequestChallengeResponseProof `json:"proof"`
}

Response to a pending challenge on the step. Required when the step has a `challenge` property (e.g., after submitting a passkey action). The `<zl-passkey>` component populates this after the WebAuthn ceremony.

func (*FlowSubmitRequestChallengeResponse) Decode

Decode decodes FlowSubmitRequestChallengeResponse from json.

func (*FlowSubmitRequestChallengeResponse) Encode

Encode implements json.Marshaler.

func (*FlowSubmitRequestChallengeResponse) GetChallengeID

func (s *FlowSubmitRequestChallengeResponse) GetChallengeID() OptString

GetChallengeID returns the value of ChallengeID.

func (*FlowSubmitRequestChallengeResponse) GetMethod

GetMethod returns the value of Method.

func (*FlowSubmitRequestChallengeResponse) GetProof

GetProof returns the value of Proof.

func (*FlowSubmitRequestChallengeResponse) MarshalJSON

func (s *FlowSubmitRequestChallengeResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowSubmitRequestChallengeResponse) SetChallengeID

func (s *FlowSubmitRequestChallengeResponse) SetChallengeID(val OptString)

SetChallengeID sets the value of ChallengeID.

func (*FlowSubmitRequestChallengeResponse) SetMethod

SetMethod sets the value of Method.

func (*FlowSubmitRequestChallengeResponse) SetProof

SetProof sets the value of Proof.

func (*FlowSubmitRequestChallengeResponse) UnmarshalJSON

func (s *FlowSubmitRequestChallengeResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FlowSubmitRequestChallengeResponseProof

type FlowSubmitRequestChallengeResponseProof map[string]jx.Raw

Method-specific proof payload. For passkeys, this is the WebAuthn JSON serialization of PublicKeyCredential.

func (*FlowSubmitRequestChallengeResponseProof) Decode

Decode decodes FlowSubmitRequestChallengeResponseProof from json.

func (FlowSubmitRequestChallengeResponseProof) Encode

Encode implements json.Marshaler.

func (FlowSubmitRequestChallengeResponseProof) MarshalJSON

func (s FlowSubmitRequestChallengeResponseProof) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowSubmitRequestChallengeResponseProof) UnmarshalJSON

func (s *FlowSubmitRequestChallengeResponseProof) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FlowSubmitRequestFields

type FlowSubmitRequestFields map[string]jx.Raw

User input values. Keys match field names from the step's `fields` dictionary.

func (*FlowSubmitRequestFields) Decode

func (s *FlowSubmitRequestFields) Decode(d *jx.Decoder) error

Decode decodes FlowSubmitRequestFields from json.

func (FlowSubmitRequestFields) Encode

func (s FlowSubmitRequestFields) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FlowSubmitRequestFields) MarshalJSON

func (s FlowSubmitRequestFields) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowSubmitRequestFields) UnmarshalJSON

func (s *FlowSubmitRequestFields) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FlowSubmitRequestGateProofs

type FlowSubmitRequestGateProofs map[string]string

Solutions for security gates. Keys match gate names from the step's `gates` dictionary. The orchestrator collects these from `<zl-captcha>` component events.

func (*FlowSubmitRequestGateProofs) Decode

Decode decodes FlowSubmitRequestGateProofs from json.

func (FlowSubmitRequestGateProofs) Encode

func (s FlowSubmitRequestGateProofs) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FlowSubmitRequestGateProofs) MarshalJSON

func (s FlowSubmitRequestGateProofs) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FlowSubmitRequestGateProofs) UnmarshalJSON

func (s *FlowSubmitRequestGateProofs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Gate

type Gate struct {
	// The gate category. Only `captcha` is currently defined. Authenticator
	// ceremonies (e.g. passkey) are modelled as credential auth_attempts via
	// `x-credential` on a field, not as gates.
	Kind GateKind `json:"kind"`
	// Provider identifier within the gate kind — e.g. `altcha`, `turnstile`,
	// `hcaptcha`. The engine looks up an implementation in its provider
	// registry.
	Provider string `json:"provider"`
	// Provider-specific configuration consumed by the implementation when
	// issuing the per-render challenge. Opaque to the engine.
	Config OptGateConfig `json:"config"`
}

A security challenge that must be satisfied before this step's submission is accepted. The engine may also inject gates at runtime based on policy or risk evaluation. Ref: #

func (*Gate) Decode

func (s *Gate) Decode(d *jx.Decoder) error

Decode decodes Gate from json.

func (*Gate) Encode

func (s *Gate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Gate) GetConfig

func (s *Gate) GetConfig() OptGateConfig

GetConfig returns the value of Config.

func (*Gate) GetKind

func (s *Gate) GetKind() GateKind

GetKind returns the value of Kind.

func (*Gate) GetProvider

func (s *Gate) GetProvider() string

GetProvider returns the value of Provider.

func (*Gate) MarshalJSON

func (s *Gate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Gate) SetConfig

func (s *Gate) SetConfig(val OptGateConfig)

SetConfig sets the value of Config.

func (*Gate) SetKind

func (s *Gate) SetKind(val GateKind)

SetKind sets the value of Kind.

func (*Gate) SetProvider

func (s *Gate) SetProvider(val string)

SetProvider sets the value of Provider.

func (*Gate) UnmarshalJSON

func (s *Gate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Gate) Validate

func (s *Gate) Validate() error

type GateConfig

type GateConfig map[string]jx.Raw

Provider-specific configuration consumed by the implementation when issuing the per-render challenge. Opaque to the engine.

func (*GateConfig) Decode

func (s *GateConfig) Decode(d *jx.Decoder) error

Decode decodes GateConfig from json.

func (GateConfig) Encode

func (s GateConfig) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (GateConfig) MarshalJSON

func (s GateConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GateConfig) UnmarshalJSON

func (s *GateConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GateKind

type GateKind string

The gate category. Only `captcha` is currently defined. Authenticator ceremonies (e.g. passkey) are modelled as credential auth_attempts via `x-credential` on a field, not as gates.

const (
	GateKindCaptcha GateKind = "captcha"
)

func (GateKind) AllValues

func (GateKind) AllValues() []GateKind

AllValues returns all GateKind values.

func (*GateKind) Decode

func (s *GateKind) Decode(d *jx.Decoder) error

Decode decodes GateKind from json.

func (GateKind) Encode

func (s GateKind) Encode(e *jx.Encoder)

Encode encodes GateKind as json.

func (GateKind) MarshalJSON

func (s GateKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GateKind) MarshalText

func (s GateKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GateKind) UnmarshalJSON

func (s *GateKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GateKind) UnmarshalText

func (s *GateKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GateKind) Validate

func (s GateKind) Validate() error

type GetAuthAttemptErrorResponse

type GetAuthAttemptErrorResponse struct {
	Type        GetAuthAttemptErrorResponseType // switch on this field
	AttNotFound AttNotFound
	Internal    Internal
}

GetAuthAttemptErrorResponse represents sum type.

func NewAttNotFoundGetAuthAttemptErrorResponse

func NewAttNotFoundGetAuthAttemptErrorResponse(v AttNotFound) GetAuthAttemptErrorResponse

NewAttNotFoundGetAuthAttemptErrorResponse returns new GetAuthAttemptErrorResponse from AttNotFound.

func NewInternalGetAuthAttemptErrorResponse

func NewInternalGetAuthAttemptErrorResponse(v Internal) GetAuthAttemptErrorResponse

NewInternalGetAuthAttemptErrorResponse returns new GetAuthAttemptErrorResponse from Internal.

func (*GetAuthAttemptErrorResponse) Decode

Decode decodes GetAuthAttemptErrorResponse from json.

func (GetAuthAttemptErrorResponse) Encode

func (s GetAuthAttemptErrorResponse) Encode(e *jx.Encoder)

Encode encodes GetAuthAttemptErrorResponse as json.

func (GetAuthAttemptErrorResponse) GetAttNotFound

func (s GetAuthAttemptErrorResponse) GetAttNotFound() (v AttNotFound, ok bool)

GetAttNotFound returns AttNotFound and true boolean if GetAuthAttemptErrorResponse is AttNotFound.

func (GetAuthAttemptErrorResponse) GetInternal

func (s GetAuthAttemptErrorResponse) GetInternal() (v Internal, ok bool)

GetInternal returns Internal and true boolean if GetAuthAttemptErrorResponse is Internal.

func (GetAuthAttemptErrorResponse) IsAttNotFound

func (s GetAuthAttemptErrorResponse) IsAttNotFound() bool

IsAttNotFound reports whether GetAuthAttemptErrorResponse is AttNotFound.

func (GetAuthAttemptErrorResponse) IsInternal

func (s GetAuthAttemptErrorResponse) IsInternal() bool

IsInternal reports whether GetAuthAttemptErrorResponse is Internal.

func (GetAuthAttemptErrorResponse) MarshalJSON

func (s GetAuthAttemptErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAuthAttemptErrorResponse) SetAttNotFound

func (s *GetAuthAttemptErrorResponse) SetAttNotFound(v AttNotFound)

SetAttNotFound sets GetAuthAttemptErrorResponse to AttNotFound.

func (*GetAuthAttemptErrorResponse) SetInternal

func (s *GetAuthAttemptErrorResponse) SetInternal(v Internal)

SetInternal sets GetAuthAttemptErrorResponse to Internal.

func (*GetAuthAttemptErrorResponse) UnmarshalJSON

func (s *GetAuthAttemptErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAuthAttemptErrorResponseStatusCode

type GetAuthAttemptErrorResponseStatusCode struct {
	StatusCode int
	Response   GetAuthAttemptErrorResponse
}

GetAuthAttemptErrorResponseStatusCode wraps GetAuthAttemptErrorResponse with StatusCode.

func (*GetAuthAttemptErrorResponseStatusCode) GetResponse

GetResponse returns the value of Response.

func (*GetAuthAttemptErrorResponseStatusCode) GetStatusCode

func (s *GetAuthAttemptErrorResponseStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*GetAuthAttemptErrorResponseStatusCode) SetResponse

SetResponse sets the value of Response.

func (*GetAuthAttemptErrorResponseStatusCode) SetStatusCode

func (s *GetAuthAttemptErrorResponseStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type GetAuthAttemptErrorResponseType

type GetAuthAttemptErrorResponseType string

GetAuthAttemptErrorResponseType is oneOf type of GetAuthAttemptErrorResponse.

const (
	AttNotFoundGetAuthAttemptErrorResponse GetAuthAttemptErrorResponseType = "att.not_found"
	InternalGetAuthAttemptErrorResponse    GetAuthAttemptErrorResponseType = "internal"
)

Possible values for GetAuthAttemptErrorResponseType.

type GetAuthAttemptParams

type GetAuthAttemptParams struct {
	// The unique identifier of the authentication attempt.
	AttemptID AttemptID
}

GetAuthAttemptParams is parameters of getAuthAttempt operation.

type GetAuthAttemptRes

type GetAuthAttemptRes interface {
	// contains filtered or unexported methods
}

type GetFlowDefinitionParams

type GetFlowDefinitionParams struct {
	// The id returned by the POST /flow_definitions endpoint.
	ID string
	// The project id to filter by.
	ProjectID ProjectID
}

GetFlowDefinitionParams is parameters of getFlowDefinition operation.

type GetFlowDefinitionRes

type GetFlowDefinitionRes interface {
	// contains filtered or unexported methods
}

type GetFlowStepGone

type GetFlowStepGone ErrorDetails

func (*GetFlowStepGone) Decode

func (s *GetFlowStepGone) Decode(d *jx.Decoder) error

Decode decodes GetFlowStepGone from json.

func (*GetFlowStepGone) Encode

func (s *GetFlowStepGone) Encode(e *jx.Encoder)

Encode encodes GetFlowStepGone as json.

func (*GetFlowStepGone) MarshalJSON

func (s *GetFlowStepGone) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFlowStepGone) UnmarshalJSON

func (s *GetFlowStepGone) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFlowStepNotFound

type GetFlowStepNotFound ErrorDetails

func (*GetFlowStepNotFound) Decode

func (s *GetFlowStepNotFound) Decode(d *jx.Decoder) error

Decode decodes GetFlowStepNotFound from json.

func (*GetFlowStepNotFound) Encode

func (s *GetFlowStepNotFound) Encode(e *jx.Encoder)

Encode encodes GetFlowStepNotFound as json.

func (*GetFlowStepNotFound) MarshalJSON

func (s *GetFlowStepNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFlowStepNotFound) UnmarshalJSON

func (s *GetFlowStepNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFlowStepParams

type GetFlowStepParams struct {
	// Flow ID returned by POST /flow or the latest POST /flow/{id}/submit.
	// Used to look up the correct flow state from the encrypted cookie,
	// which can hold multiple concurrent flows. May change between responses
	// when a flow pivot or pop occurs — always use the `id` from the latest response.
	ID string
	// Encrypted flow state cookie set by `POST /flow` or the previous
	// `POST /flow/{id}/submit`. The cookie holds a map of flow states keyed
	// by flow ID, allowing multiple concurrent flows in the same browser
	// (e.g. login in one tab, registration in another). The server uses the
	// `{id}` path parameter to look up the correct flow state from the cookie.
	// Browsers send this automatically; non-browser clients must capture the
	// `Set-Cookie` header and resend it.
	Zflow string
}

GetFlowStepParams is parameters of getFlowStep operation.

type GetFlowStepRes

type GetFlowStepRes interface {
	// contains filtered or unexported methods
}

type GetHealthOK

type GetHealthOK struct {
	Data io.Reader
}

func (GetHealthOK) Read

func (s GetHealthOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetHealthRes

type GetHealthRes interface {
	// contains filtered or unexported methods
}

type GetKeysRes

type GetKeysRes interface {
	// contains filtered or unexported methods
}

type GetLiveOK

type GetLiveOK struct {
	Data io.Reader
}

func (GetLiveOK) Read

func (s GetLiveOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetLiveRes

type GetLiveRes interface {
	// contains filtered or unexported methods
}

type GetMySessionNotFound

type GetMySessionNotFound ErrorDetails

func (*GetMySessionNotFound) Decode

func (s *GetMySessionNotFound) Decode(d *jx.Decoder) error

Decode decodes GetMySessionNotFound from json.

func (*GetMySessionNotFound) Encode

func (s *GetMySessionNotFound) Encode(e *jx.Encoder)

Encode encodes GetMySessionNotFound as json.

func (*GetMySessionNotFound) MarshalJSON

func (s *GetMySessionNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMySessionNotFound) UnmarshalJSON

func (s *GetMySessionNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMySessionParams

type GetMySessionParams struct {
	// The __nextgen_session cookie issued at session creation or superseding handoff exchange.
	NextgenSession string
}

GetMySessionParams is parameters of getMySession operation.

type GetMySessionRes

type GetMySessionRes interface {
	// contains filtered or unexported methods
}

type GetMySessionUnauthorized

type GetMySessionUnauthorized ErrorDetails

func (*GetMySessionUnauthorized) Decode

func (s *GetMySessionUnauthorized) Decode(d *jx.Decoder) error

Decode decodes GetMySessionUnauthorized from json.

func (*GetMySessionUnauthorized) Encode

func (s *GetMySessionUnauthorized) Encode(e *jx.Encoder)

Encode encodes GetMySessionUnauthorized as json.

func (*GetMySessionUnauthorized) MarshalJSON

func (s *GetMySessionUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMySessionUnauthorized) UnmarshalJSON

func (s *GetMySessionUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMyUserOK

type GetMyUserOK map[string]jx.Raw

func (*GetMyUserOK) Decode

func (s *GetMyUserOK) Decode(d *jx.Decoder) error

Decode decodes GetMyUserOK from json.

func (GetMyUserOK) Encode

func (s GetMyUserOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (GetMyUserOK) MarshalJSON

func (s GetMyUserOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMyUserOK) UnmarshalJSON

func (s *GetMyUserOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMyUserParams

type GetMyUserParams struct {
	// The __nextgen_session cookie issued at session creation or superseding handoff exchange.
	NextgenSession string
}

GetMyUserParams is parameters of getMyUser operation.

type GetMyUserRes

type GetMyUserRes interface {
	// contains filtered or unexported methods
}

type GetOpenIDConfigurationRes

type GetOpenIDConfigurationRes interface {
	// contains filtered or unexported methods
}

type GetProjectNotFound

type GetProjectNotFound ErrorDetails

func (*GetProjectNotFound) Decode

func (s *GetProjectNotFound) Decode(d *jx.Decoder) error

Decode decodes GetProjectNotFound from json.

func (*GetProjectNotFound) Encode

func (s *GetProjectNotFound) Encode(e *jx.Encoder)

Encode encodes GetProjectNotFound as json.

func (*GetProjectNotFound) MarshalJSON

func (s *GetProjectNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetProjectNotFound) UnmarshalJSON

func (s *GetProjectNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetProjectParams

type GetProjectParams struct {
	ProjectID ProjectID
}

GetProjectParams is parameters of getProject operation.

type GetProjectRes

type GetProjectRes interface {
	// contains filtered or unexported methods
}

type GetProjectResponse

type GetProjectResponse struct {
	// The unique identifier of the project.
	ID string `json:"id"`
	// The time when the project was created.
	CreatedAt time.Time `json:"createdAt"`
	// The time when the project was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
}

The current state of a project. Ref: #

func (*GetProjectResponse) Decode

func (s *GetProjectResponse) Decode(d *jx.Decoder) error

Decode decodes GetProjectResponse from json.

func (*GetProjectResponse) Encode

func (s *GetProjectResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetProjectResponse) GetCreatedAt

func (s *GetProjectResponse) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*GetProjectResponse) GetID

func (s *GetProjectResponse) GetID() string

GetID returns the value of ID.

func (*GetProjectResponse) GetUpdatedAt

func (s *GetProjectResponse) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*GetProjectResponse) MarshalJSON

func (s *GetProjectResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetProjectResponse) SetCreatedAt

func (s *GetProjectResponse) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*GetProjectResponse) SetID

func (s *GetProjectResponse) SetID(val string)

SetID sets the value of ID.

func (*GetProjectResponse) SetUpdatedAt

func (s *GetProjectResponse) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*GetProjectResponse) UnmarshalJSON

func (s *GetProjectResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetProjectUnauthorized

type GetProjectUnauthorized ErrorDetails

func (*GetProjectUnauthorized) Decode

func (s *GetProjectUnauthorized) Decode(d *jx.Decoder) error

Decode decodes GetProjectUnauthorized from json.

func (*GetProjectUnauthorized) Encode

func (s *GetProjectUnauthorized) Encode(e *jx.Encoder)

Encode encodes GetProjectUnauthorized as json.

func (*GetProjectUnauthorized) MarshalJSON

func (s *GetProjectUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetProjectUnauthorized) UnmarshalJSON

func (s *GetProjectUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetReadyOK

type GetReadyOK struct {
	Data io.Reader
}

func (GetReadyOK) Read

func (s GetReadyOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetReadyRes

type GetReadyRes interface {
	// contains filtered or unexported methods
}

type GetSchemaByIdBadRequest

type GetSchemaByIdBadRequest ErrorDetails

func (*GetSchemaByIdBadRequest) Decode

func (s *GetSchemaByIdBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetSchemaByIdBadRequest from json.

func (*GetSchemaByIdBadRequest) Encode

func (s *GetSchemaByIdBadRequest) Encode(e *jx.Encoder)

Encode encodes GetSchemaByIdBadRequest as json.

func (*GetSchemaByIdBadRequest) MarshalJSON

func (s *GetSchemaByIdBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSchemaByIdBadRequest) UnmarshalJSON

func (s *GetSchemaByIdBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetSchemaByIdNotFound

type GetSchemaByIdNotFound ErrorDetails

func (*GetSchemaByIdNotFound) Decode

func (s *GetSchemaByIdNotFound) Decode(d *jx.Decoder) error

Decode decodes GetSchemaByIdNotFound from json.

func (*GetSchemaByIdNotFound) Encode

func (s *GetSchemaByIdNotFound) Encode(e *jx.Encoder)

Encode encodes GetSchemaByIdNotFound as json.

func (*GetSchemaByIdNotFound) MarshalJSON

func (s *GetSchemaByIdNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSchemaByIdNotFound) UnmarshalJSON

func (s *GetSchemaByIdNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetSchemaByIdOK

type GetSchemaByIdOK struct {
	Type       GetSchemaByIdOKType // switch on this field
	UserSchema UserSchema
}

GetSchemaByIdOK represents sum type.

func NewUserSchemaGetSchemaByIdOK

func NewUserSchemaGetSchemaByIdOK(v UserSchema) GetSchemaByIdOK

NewUserSchemaGetSchemaByIdOK returns new GetSchemaByIdOK from UserSchema.

func (*GetSchemaByIdOK) Decode

func (s *GetSchemaByIdOK) Decode(d *jx.Decoder) error

Decode decodes GetSchemaByIdOK from json.

func (GetSchemaByIdOK) Encode

func (s GetSchemaByIdOK) Encode(e *jx.Encoder)

Encode encodes GetSchemaByIdOK as json.

func (GetSchemaByIdOK) GetUserSchema

func (s GetSchemaByIdOK) GetUserSchema() (v UserSchema, ok bool)

GetUserSchema returns UserSchema and true boolean if GetSchemaByIdOK is UserSchema.

func (GetSchemaByIdOK) IsUserSchema

func (s GetSchemaByIdOK) IsUserSchema() bool

IsUserSchema reports whether GetSchemaByIdOK is UserSchema.

func (GetSchemaByIdOK) MarshalJSON

func (s GetSchemaByIdOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSchemaByIdOK) SetUserSchema

func (s *GetSchemaByIdOK) SetUserSchema(v UserSchema)

SetUserSchema sets GetSchemaByIdOK to UserSchema.

func (*GetSchemaByIdOK) UnmarshalJSON

func (s *GetSchemaByIdOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetSchemaByIdOK) Validate

func (s GetSchemaByIdOK) Validate() error

type GetSchemaByIdOKType

type GetSchemaByIdOKType string

GetSchemaByIdOKType is oneOf type of GetSchemaByIdOK.

const (
	UserSchemaGetSchemaByIdOK GetSchemaByIdOKType = "user-schema"
)

Possible values for GetSchemaByIdOKType.

type GetSchemaByIdParams

type GetSchemaByIdParams struct {
	ID string
	// The unique identifier of the project.
	ProjectID ProjectID
	// The unique identifier of the team.
	TeamID OptTeamID `json:",omitempty,omitzero"`
}

GetSchemaByIdParams is parameters of getSchemaById operation.

type GetSchemaByIdRes

type GetSchemaByIdRes interface {
	// contains filtered or unexported methods
}

type GetSessionNotFound

type GetSessionNotFound ErrorDetails

func (*GetSessionNotFound) Decode

func (s *GetSessionNotFound) Decode(d *jx.Decoder) error

Decode decodes GetSessionNotFound from json.

func (*GetSessionNotFound) Encode

func (s *GetSessionNotFound) Encode(e *jx.Encoder)

Encode encodes GetSessionNotFound as json.

func (*GetSessionNotFound) MarshalJSON

func (s *GetSessionNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSessionNotFound) UnmarshalJSON

func (s *GetSessionNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetSessionParams

type GetSessionParams struct {
	// The unique identifier of the project.
	ProjectID ProjectID
	// The unique identifier of the session.
	SessionID SessionID
}

GetSessionParams is parameters of getSession operation.

type GetSessionRes

type GetSessionRes interface {
	// contains filtered or unexported methods
}

type GetSessionUnauthorized

type GetSessionUnauthorized ErrorDetails

func (*GetSessionUnauthorized) Decode

func (s *GetSessionUnauthorized) Decode(d *jx.Decoder) error

Decode decodes GetSessionUnauthorized from json.

func (*GetSessionUnauthorized) Encode

func (s *GetSessionUnauthorized) Encode(e *jx.Encoder)

Encode encodes GetSessionUnauthorized as json.

func (*GetSessionUnauthorized) MarshalJSON

func (s *GetSessionUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSessionUnauthorized) UnmarshalJSON

func (s *GetSessionUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetTeamNotFound

type GetTeamNotFound ErrorDetails

func (*GetTeamNotFound) Decode

func (s *GetTeamNotFound) Decode(d *jx.Decoder) error

Decode decodes GetTeamNotFound from json.

func (*GetTeamNotFound) Encode

func (s *GetTeamNotFound) Encode(e *jx.Encoder)

Encode encodes GetTeamNotFound as json.

func (*GetTeamNotFound) MarshalJSON

func (s *GetTeamNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetTeamNotFound) UnmarshalJSON

func (s *GetTeamNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetTeamParams

type GetTeamParams struct {
	// The unique identifier of the project.
	ProjectID ProjectID
	TeamID    TeamID
}

GetTeamParams is parameters of getTeam operation.

type GetTeamRes

type GetTeamRes interface {
	// contains filtered or unexported methods
}

type GetTeamResponse

type GetTeamResponse struct {
	// The unique identifier of the team.
	ID string `json:"id"`
	// The time when the team was created.
	CreatedAt time.Time `json:"createdAt"`
	// The time when the team was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
}

The current state of a team. Ref: #

func (*GetTeamResponse) Decode

func (s *GetTeamResponse) Decode(d *jx.Decoder) error

Decode decodes GetTeamResponse from json.

func (*GetTeamResponse) Encode

func (s *GetTeamResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetTeamResponse) GetCreatedAt

func (s *GetTeamResponse) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*GetTeamResponse) GetID

func (s *GetTeamResponse) GetID() string

GetID returns the value of ID.

func (*GetTeamResponse) GetUpdatedAt

func (s *GetTeamResponse) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*GetTeamResponse) MarshalJSON

func (s *GetTeamResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetTeamResponse) SetCreatedAt

func (s *GetTeamResponse) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*GetTeamResponse) SetID

func (s *GetTeamResponse) SetID(val string)

SetID sets the value of ID.

func (*GetTeamResponse) SetUpdatedAt

func (s *GetTeamResponse) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*GetTeamResponse) UnmarshalJSON

func (s *GetTeamResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetTeamUnauthorized

type GetTeamUnauthorized ErrorDetails

func (*GetTeamUnauthorized) Decode

func (s *GetTeamUnauthorized) Decode(d *jx.Decoder) error

Decode decodes GetTeamUnauthorized from json.

func (*GetTeamUnauthorized) Encode

func (s *GetTeamUnauthorized) Encode(e *jx.Encoder)

Encode encodes GetTeamUnauthorized as json.

func (*GetTeamUnauthorized) MarshalJSON

func (s *GetTeamUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetTeamUnauthorized) UnmarshalJSON

func (s *GetTeamUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetTokenRes

type GetTokenRes interface {
	// contains filtered or unexported methods
}

type GetUserByIDNotFound

type GetUserByIDNotFound ErrorDetails

func (*GetUserByIDNotFound) Decode

func (s *GetUserByIDNotFound) Decode(d *jx.Decoder) error

Decode decodes GetUserByIDNotFound from json.

func (*GetUserByIDNotFound) Encode

func (s *GetUserByIDNotFound) Encode(e *jx.Encoder)

Encode encodes GetUserByIDNotFound as json.

func (*GetUserByIDNotFound) MarshalJSON

func (s *GetUserByIDNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetUserByIDNotFound) UnmarshalJSON

func (s *GetUserByIDNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetUserByIDOK

type GetUserByIDOK map[string]jx.Raw

func (*GetUserByIDOK) Decode

func (s *GetUserByIDOK) Decode(d *jx.Decoder) error

Decode decodes GetUserByIDOK from json.

func (GetUserByIDOK) Encode

func (s GetUserByIDOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (GetUserByIDOK) MarshalJSON

func (s GetUserByIDOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetUserByIDOK) UnmarshalJSON

func (s *GetUserByIDOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetUserByIDParams

type GetUserByIDParams struct {
	// The unique identifier of the project.
	ProjectID ProjectID
	// The unique identifier of the team.
	TeamID OptTeamID `json:",omitempty,omitzero"`
	UserID UserID
}

GetUserByIDParams is parameters of GetUserByID operation.

type GetUserByIDRes

type GetUserByIDRes interface {
	// contains filtered or unexported methods
}

type GetUserByIDUnauthorized

type GetUserByIDUnauthorized ErrorDetails

func (*GetUserByIDUnauthorized) Decode

func (s *GetUserByIDUnauthorized) Decode(d *jx.Decoder) error

Decode decodes GetUserByIDUnauthorized from json.

func (*GetUserByIDUnauthorized) Encode

func (s *GetUserByIDUnauthorized) Encode(e *jx.Encoder)

Encode encodes GetUserByIDUnauthorized as json.

func (*GetUserByIDUnauthorized) MarshalJSON

func (s *GetUserByIDUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetUserByIDUnauthorized) UnmarshalJSON

func (s *GetUserByIDUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetUserInfoOK

type GetUserInfoOK struct {
	// The unique identifier for the user.
	Sub OptString `json:"sub"`
	// The full name of the user.
	Name OptString `json:"name"`
	// The email address of the user.
	Email OptString `json:"email"`
	// The preferred username of the user.
	PreferredUsername OptString `json:"preferred_username"`
	// The URL of the user's profile picture.
	Picture OptURI `json:"picture"`
	// The given name of the user.
	GivenName OptString `json:"given_name"`
	// The family name of the user.
	FamilyName OptString `json:"family_name"`
}

func (*GetUserInfoOK) Decode

func (s *GetUserInfoOK) Decode(d *jx.Decoder) error

Decode decodes GetUserInfoOK from json.

func (*GetUserInfoOK) Encode

func (s *GetUserInfoOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetUserInfoOK) GetEmail

func (s *GetUserInfoOK) GetEmail() OptString

GetEmail returns the value of Email.

func (*GetUserInfoOK) GetFamilyName

func (s *GetUserInfoOK) GetFamilyName() OptString

GetFamilyName returns the value of FamilyName.

func (*GetUserInfoOK) GetGivenName

func (s *GetUserInfoOK) GetGivenName() OptString

GetGivenName returns the value of GivenName.

func (*GetUserInfoOK) GetName

func (s *GetUserInfoOK) GetName() OptString

GetName returns the value of Name.

func (*GetUserInfoOK) GetPicture

func (s *GetUserInfoOK) GetPicture() OptURI

GetPicture returns the value of Picture.

func (*GetUserInfoOK) GetPreferredUsername

func (s *GetUserInfoOK) GetPreferredUsername() OptString

GetPreferredUsername returns the value of PreferredUsername.

func (*GetUserInfoOK) GetSub

func (s *GetUserInfoOK) GetSub() OptString

GetSub returns the value of Sub.

func (*GetUserInfoOK) MarshalJSON

func (s *GetUserInfoOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetUserInfoOK) SetEmail

func (s *GetUserInfoOK) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*GetUserInfoOK) SetFamilyName

func (s *GetUserInfoOK) SetFamilyName(val OptString)

SetFamilyName sets the value of FamilyName.

func (*GetUserInfoOK) SetGivenName

func (s *GetUserInfoOK) SetGivenName(val OptString)

SetGivenName sets the value of GivenName.

func (*GetUserInfoOK) SetName

func (s *GetUserInfoOK) SetName(val OptString)

SetName sets the value of Name.

func (*GetUserInfoOK) SetPicture

func (s *GetUserInfoOK) SetPicture(val OptURI)

SetPicture sets the value of Picture.

func (*GetUserInfoOK) SetPreferredUsername

func (s *GetUserInfoOK) SetPreferredUsername(val OptString)

SetPreferredUsername sets the value of PreferredUsername.

func (*GetUserInfoOK) SetSub

func (s *GetUserInfoOK) SetSub(val OptString)

SetSub sets the value of Sub.

func (*GetUserInfoOK) UnmarshalJSON

func (s *GetUserInfoOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetUserInfoOK) Validate

func (s *GetUserInfoOK) Validate() error

type GetUserInfoRes

type GetUserInfoRes interface {
	// contains filtered or unexported methods
}

type Handler

type Handler interface {
	// AuthorizeDevice implements authorizeDevice operation.
	//
	// Authorize a device.
	//
	// GET /auth/device-authorization
	AuthorizeDevice(ctx context.Context, params AuthorizeDeviceParams) (AuthorizeDeviceRes, error)
	// AuthorizeGet implements authorizeGet operation.
	//
	// Authorize a user.
	//
	// GET /auth/authorize
	AuthorizeGet(ctx context.Context, params AuthorizeGetParams) (AuthorizeGetRes, error)
	// CreateAuthAttempt implements createAuthAttempt operation.
	//
	// Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.
	// An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
	// It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
	// Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
	// also include session_id to add factors to an existing session.
	//
	// POST /auth_attempts
	CreateAuthAttempt(ctx context.Context, req *CreateAuthAttemptRequest) (CreateAuthAttemptRes, error)
	// CreateFlow implements createFlow operation.
	//
	// Resolves a flow definition based on purpose + audience context and returns
	// the first capability step. Creates a new session implicitly unless
	// `session_id` is provided (for step-up / reauth on an existing session).
	// The response contains an `id` field — the flow handle. Use it as the path
	// parameter for all subsequent `/flow/{id}/submit` and `/flow/{id}/event` calls.
	// The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
	// the flow's orchestration state (current step, collected data, history).
	// The server is stateless between requests — all flow state lives in this
	// cookie. The browser sends it automatically on subsequent requests.
	//
	// POST /flow
	CreateFlow(ctx context.Context, req *CreateFlowRequest) (CreateFlowRes, error)
	// CreateFlowDefinition implements createFlowDefinition operation.
	//
	// Creates a new flow definition.
	// Flow definitions are templates that define the sequence of steps (capabilities)
	// for a particular user journey (e.g., registration, login, password reset).
	// Flow definitions are created based on the flow meta schema, which includes the flow's purpose,
	// audience, and the steps involved.
	//
	// POST /flow_definitions
	CreateFlowDefinition(ctx context.Context, req *CreateFlowDefinitionRequest) (CreateFlowDefinitionRes, error)
	// CreateHandoff implements createHandoff operation.
	//
	// Completes the authentication attempt and mints a `handoff_token`.
	// Call this after all required factors have been verified and the attempt is in `completed` state.
	// The handoff token is short-lived (≤60 seconds) and must be exchanged at
	// POST /sessions/exchange to receive the final session and session_token.
	// The handoff token is:
	// - Single-use (atomic exchange, no retry)
	// - Audience-bound (requires matching project key for exchange)
	// - Idempotency-safe within a 5-minute window (see conventions).
	//
	// POST /auth_attempts/{attempt_id}/handoff
	CreateHandoff(ctx context.Context, params CreateHandoffParams) (CreateHandoffRes, error)
	// CreateProject implements createProject operation.
	//
	// Create project.
	//
	// POST /projects
	CreateProject(ctx context.Context, req *CreateProjectRequest) (CreateProjectRes, error)
	// CreateSchema implements createSchema operation.
	//
	// Create a new schema. The schema definition must include a unique $id field,
	// which will be used to identify the schema in future requests. The $id must
	// be a valid URI and should ideally point to the location where the schema
	// can be accessed.
	// The schema can either be a concrete schema, e.g. a user schema, or a
	// schema-url which will be resolved by the server.
	//
	// POST /schemas
	CreateSchema(ctx context.Context, req CreateSchemaReq, params CreateSchemaParams) (CreateSchemaRes, error)
	// CreateSession implements createSession operation.
	//
	// Creates an anonymous session shell with no user and no factors (`state: building`).
	// This is optional — an `auth_attempt` will create a session implicitly if none is provided.
	// Use this explicitly when you want to:
	// - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
	// can be correlated with the eventual authenticated session from the start.
	// - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
	// The returned `session_token` authorises GET and DELETE on this session.
	// It is superseded when a handoff exchange completes — clients must replace it at that point.
	// Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
	// full session TTL when the first authentication factor is written via a completing `auth_attempt`.
	//
	// POST /sessions
	CreateSession(ctx context.Context, req *CreateSessionRequest) (CreateSessionRes, error)
	// CreateTeam implements createTeam operation.
	//
	// Create team.
	//
	// POST /teams
	CreateTeam(ctx context.Context, req *CreateTeamRequest, params CreateTeamParams) (CreateTeamRes, error)
	// CreateUser implements createUser operation.
	//
	// Create user.
	//
	// POST /users
	CreateUser(ctx context.Context, req *User, params CreateUserParams) (CreateUserRes, error)
	// DeleteFlowDefinition implements deleteFlowDefinition operation.
	//
	// Delete a flow definition by id.
	//
	// DELETE /flow_definitions/{id}
	DeleteFlowDefinition(ctx context.Context, params DeleteFlowDefinitionParams) (DeleteFlowDefinitionRes, error)
	// EndSession implements endSession operation.
	//
	// End a session.
	//
	// GET /auth/end-session
	EndSession(ctx context.Context, params EndSessionParams) (EndSessionRes, error)
	// ExchangeHandoff implements exchangeHandoff operation.
	//
	// Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff`
	// and returns the resulting session and a `session_token`.
	// The server resolves the originating `auth_attempt` from the token and then:
	// | Originating auth_attempt | Outcome |
	// |---|---|
	// | No `session_id` | A new authenticated session is **created**. |
	// | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and
	// factors written in, TTL reset to full session TTL. |
	// | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new
	// factors merged, `assurance_levels[]` expanded. |
	// The response shape is identical in all three cases.
	// The `session_token` supersedes any previously issued `session_token` for the same session.
	// Clients must replace their stored token at this point.
	// Requires a project service key (OAuth2 client credentials).
	//
	// POST /sessions/exchange
	ExchangeHandoff(ctx context.Context, req *ExchangeRequest, params ExchangeHandoffParams) (ExchangeHandoffRes, error)
	// GetAuthAttempt implements getAuthAttempt operation.
	//
	// Polls the current state of an authentication attempt.
	// Returns the attempt's state, available factors for the next challenge,
	// challenges issued so far, and any errors preventing progress.
	// Use this for polling during long-running factor verifications (e.g., waiting for
	// a federated IdP callback or a device flow).
	//
	// GET /auth_attempts/{attempt_id}
	GetAuthAttempt(ctx context.Context, params GetAuthAttemptParams) (GetAuthAttemptRes, error)
	// GetFlowDefinition implements getFlowDefinition operation.
	//
	// Get a flow definition by id.
	//
	// GET /flow_definitions/{id}
	GetFlowDefinition(ctx context.Context, params GetFlowDefinitionParams) (GetFlowDefinitionRes, error)
	// GetFlowStep implements getFlowStep operation.
	//
	// Returns the current capability step without advancing the state machine.
	// Useful for page reloads or re-rendering after a network error.
	//
	// GET /flow/{id}
	GetFlowStep(ctx context.Context, params GetFlowStepParams) (GetFlowStepRes, error)
	// GetHealth implements getHealth operation.
	//
	// Check whether the server is healthy.
	//
	// GET /healthz
	GetHealth(ctx context.Context) (GetHealthRes, error)
	// GetKeys implements getKeys operation.
	//
	// Get public keys.
	//
	// GET /auth/keys
	GetKeys(ctx context.Context) (GetKeysRes, error)
	// GetLive implements getLive operation.
	//
	// Check whether the server is started.
	//
	// GET /livez
	GetLive(ctx context.Context) (GetLiveRes, error)
	// GetMySession implements getMySession operation.
	//
	// Returns the current state of the current session including its factors and all currently
	// satisfied assurance levels.
	// `assurance_levels[]` may shrink over time as factor freshness windows expire,
	// without the session itself expiring. Use step-up authentication (a new `auth_attempt`
	// against the same `session_id`) to restore a dropped assurance level.
	//
	// GET /sessions/me
	GetMySession(ctx context.Context, params GetMySessionParams) (GetMySessionRes, error)
	// GetMyUser implements getMyUser operation.
	//
	// Get my user information.
	//
	// GET /users/me
	GetMyUser(ctx context.Context, params GetMyUserParams) (GetMyUserRes, error)
	// GetOpenIDConfiguration implements getOpenIDConfiguration operation.
	//
	// Retrieve the OpenID Connect configuration.
	//
	// GET /.well-known/openid-configuration
	GetOpenIDConfiguration(ctx context.Context) (GetOpenIDConfigurationRes, error)
	// GetProject implements getProject operation.
	//
	// Returns the current state of a project.
	//
	// GET /projects/{project_id}
	GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)
	// GetReady implements getReady operation.
	//
	// Check whether the server is ready to accept requests.
	//
	// GET /readyz
	GetReady(ctx context.Context) (GetReadyRes, error)
	// GetSchemaById implements getSchemaById operation.
	//
	// Get a schema by its ID. This will return the default revision of the schema.
	//
	// GET /schemas/{id}
	GetSchemaById(ctx context.Context, params GetSchemaByIdParams) (GetSchemaByIdRes, error)
	// GetSession implements getSession operation.
	//
	// Returns the current state of a session including its factors and all currently
	// satisfied assurance levels.
	// `assurance_levels[]` may shrink over time as factor freshness windows expire,
	// without the session itself expiring. Use step-up authentication (a new `auth_attempt`
	// against the same `session_id`) to restore a dropped assurance level.
	//
	// GET /sessions/{session_id}
	GetSession(ctx context.Context, params GetSessionParams) (GetSessionRes, error)
	// GetTeam implements getTeam operation.
	//
	// Returns the current state of a team.
	//
	// GET /teams/{team_id}
	GetTeam(ctx context.Context, params GetTeamParams) (GetTeamRes, error)
	// GetToken implements getToken operation.
	//
	// Get accesstoken.
	//
	// POST /auth/token
	GetToken(ctx context.Context, req *PostTokenRequest) (GetTokenRes, error)
	// GetUserByID implements GetUserByID operation.
	//
	// Get user by ID.
	//
	// GET /users/{user_id}
	GetUserByID(ctx context.Context, params GetUserByIDParams) (GetUserByIDRes, error)
	// GetUserInfo implements getUserInfo operation.
	//
	// Get user info.
	//
	// GET /auth/userinfo
	GetUserInfo(ctx context.Context) (GetUserInfoRes, error)
	// Introspect implements introspect operation.
	//
	// Introspect a token.
	//
	// POST /auth/introspect
	Introspect(ctx context.Context, req *IntrospectRequest) (IntrospectRes, error)
	// IssueChallenge implements issueChallenge operation.
	//
	// Issues a single-factor verification challenge within an auth attempt.
	// This advances the authentication state machine by requesting a specific factor method
	// (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
	// including method, metadata, and any UI hints. The client then verifies the proof
	// by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
	//
	// POST /auth_attempts/{attempt_id}/challenges
	IssueChallenge(ctx context.Context, req *IssueChallengeRequest, params IssueChallengeParams) (IssueChallengeRes, error)
	// ListFlowDefinitions implements listFlowDefinitions operation.
	//
	// Retrieves a list of all flow definitions.
	// This endpoint can be used to view existing flow definitions and their configurations.
	//
	// GET /flow_definitions
	ListFlowDefinitions(ctx context.Context, params ListFlowDefinitionsParams) (ListFlowDefinitionsRes, error)
	// ListSessions implements listSessions operation.
	//
	// Returns a paginated list of sessions for a project.
	// Requires a project service key (OAuth2 client credentials).
	//
	// GET /sessions
	ListSessions(ctx context.Context, params ListSessionsParams) (ListSessionsRes, error)
	// ListUsers implements listUsers operation.
	//
	// List users.
	//
	// GET /users
	ListUsers(ctx context.Context, params ListUsersParams) (ListUsersRes, error)
	// RevokeMySession implements revokeMySession operation.
	//
	// Revokes the session immediately (`state: revoked`). This is the logout operation.
	// The __nextgen_session cookie issued at creation (or superseded by a handoff exchange) is required.
	// After revocation, any tokens derived from this session are invalidated including the cookie itself,
	//  which is cleared in the response.
	//
	// DELETE /sessions/me
	RevokeMySession(ctx context.Context, params RevokeMySessionParams) (RevokeMySessionRes, error)
	// RevokeSession implements revokeSession operation.
	//
	// Revokes the session immediately (`state: revoked`). This is the logout operation.
	// The session_token issued at creation (or superseded by a handoff exchange) is required.
	// After revocation, any tokens derived from this session are invalidated.
	//
	// DELETE /sessions/{session_id}
	RevokeSession(ctx context.Context, params RevokeSessionParams) (RevokeSessionRes, error)
	// RevokeToken implements revokeToken operation.
	//
	// Revoke an access token or refresh token.
	//
	// POST /auth/revoke
	RevokeToken(ctx context.Context, req *RevokeRequest) (RevokeTokenRes, error)
	// SetUserPassword implements setUserPassword operation.
	//
	// Set user password.
	//
	// PUT /users/{user_id}/password
	SetUserPassword(ctx context.Context, req *SetUserPasswordRequest, params SetUserPasswordParams) (SetUserPasswordRes, error)
	// SubmitFlowEvent implements submitFlowEvent operation.
	//
	// Submits telemetry or fingerprint data from the frontend.
	// Does not advance the state machine. Used for risk evaluation.
	//
	// POST /flow/{id}/event
	SubmitFlowEvent(ctx context.Context, req *FlowEventRequest, params SubmitFlowEventParams) (SubmitFlowEventRes, error)
	// SubmitFlowStep implements submitFlowStep operation.
	//
	// Submits user input for the current step. The server validates,
	// processes (e.g., verifies a credential), advances the state machine
	// through any invisible steps, and returns the next visible step.
	// The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
	// with the new flow state. The server is stateless — all orchestration
	// state is carried in this cookie between requests.
	// **Important:** The `id` in the response may differ from the `id` used in
	// the request. This happens when a flow pivots (pushes a new flow onto the
	// stack) or when a stacked flow completes (auto-pops to the parent flow).
	// Always use the `id` from the latest response for the next request.
	// ## Flow completion
	// When `step.type` is `complete`, the flow is terminal. The `step.behavior`
	// field tells the frontend what to do:
	// | `behavior`   | Action                                                     |
	// |------------- |------------------------------------------------------------|
	// | `redirect`   | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
	// | `show`       | Render the step as a success screen (e.g., registration).  |
	// A `complete` step is only returned when the **entire flow stack** is done.
	// If a stacked flow (e.g., recovery pivoted from login) finishes, the server
	// auto-pops to the parent flow and returns the parent's next step — the
	// frontend never sees a `complete` for intermediate flows.
	//
	// POST /flow/{id}/submit
	SubmitFlowStep(ctx context.Context, req *FlowSubmitRequest, params SubmitFlowStepParams) (SubmitFlowStepRes, error)
	// UpdateFlowDefinition implements updateFlowDefinition operation.
	//
	// Update a flow definition by id.
	//
	// PATCH /flow_definitions/{id}
	UpdateFlowDefinition(ctx context.Context, req *FlowDefinitionUpdateRequest, params UpdateFlowDefinitionParams) (UpdateFlowDefinitionRes, error)
	// VerifyChallengeProof implements verifyChallengeProof operation.
	//
	// Submits a proof (credential, code, assertion) to verify a factor challenge.
	// The proof format depends on the challenge method. For example:
	// - `password` method: { password: "…" }
	// - `totp` method: { totp: { code: "123456" } }
	// - `passkey` method: { passkey: { assertion: "…" } }
	// - `recovery_code` method: { recovery_code: "…" }
	// On successful verification, the factor is written to the auth attempt.
	// The attempt moves to the next pending challenge or completes if all required factors are verified.
	//
	// POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify
	VerifyChallengeProof(ctx context.Context, req *VerifyChallengeRequest, params VerifyChallengeProofParams) (VerifyChallengeProofRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type HandoffResponse

type HandoffResponse struct {
	// The short-lived handoff token for session exchange.
	// Exchange at: POST /sessions/exchange
	// Requirements:
	// - Single-use (atomic GETDEL on exchange)
	// - TTL ≤ 60 seconds
	// - Audience-bound to project (exchange requires sk_proj_… for matching project)
	// - Idempotency-safe (Category B, 5-minute window).
	HandoffToken string `json:"handoff_token"`
	// When this handoff token expires.
	ExpiresAt time.Time `json:"expires_at"`
}

The handoff token and metadata for session exchange. This is a short-lived credential (TTL ≤ 60 seconds) that the client must exchange at POST /sessions/exchange to receive the final session and session_token. The handoff token is single-use and audience-bound to the project. Ref: #

func (*HandoffResponse) Decode

func (s *HandoffResponse) Decode(d *jx.Decoder) error

Decode decodes HandoffResponse from json.

func (*HandoffResponse) Encode

func (s *HandoffResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HandoffResponse) GetExpiresAt

func (s *HandoffResponse) GetExpiresAt() time.Time

GetExpiresAt returns the value of ExpiresAt.

func (*HandoffResponse) GetHandoffToken

func (s *HandoffResponse) GetHandoffToken() string

GetHandoffToken returns the value of HandoffToken.

func (*HandoffResponse) MarshalJSON

func (s *HandoffResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HandoffResponse) SetExpiresAt

func (s *HandoffResponse) SetExpiresAt(val time.Time)

SetExpiresAt sets the value of ExpiresAt.

func (*HandoffResponse) SetHandoffToken

func (s *HandoffResponse) SetHandoffToken(val string)

SetHandoffToken sets the value of HandoffToken.

func (*HandoffResponse) UnmarshalJSON

func (s *HandoffResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IdentifierChallengePayload

type IdentifierChallengePayload struct{}

Identifier challenge has no additional data beyond base challenge fields. Ref: #

func (*IdentifierChallengePayload) Decode

Decode decodes IdentifierChallengePayload from json.

func (*IdentifierChallengePayload) Encode

func (s *IdentifierChallengePayload) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IdentifierChallengePayload) MarshalJSON

func (s *IdentifierChallengePayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IdentifierChallengePayload) UnmarshalJSON

func (s *IdentifierChallengePayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IdentifierFactorPayload

type IdentifierFactorPayload struct {
	// The identified user ID.
	UserID UserID `json:"user_id"`
}

Identifier-specific factor metadata. Ref: #

func (*IdentifierFactorPayload) Decode

func (s *IdentifierFactorPayload) Decode(d *jx.Decoder) error

Decode decodes IdentifierFactorPayload from json.

func (*IdentifierFactorPayload) Encode

func (s *IdentifierFactorPayload) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IdentifierFactorPayload) GetUserID

func (s *IdentifierFactorPayload) GetUserID() UserID

GetUserID returns the value of UserID.

func (*IdentifierFactorPayload) MarshalJSON

func (s *IdentifierFactorPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IdentifierFactorPayload) SetUserID

func (s *IdentifierFactorPayload) SetUserID(val UserID)

SetUserID sets the value of UserID.

func (*IdentifierFactorPayload) UnmarshalJSON

func (s *IdentifierFactorPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IdentifierFactorPayload) Validate

func (s *IdentifierFactorPayload) Validate() error

type IdentifierProof

type IdentifierProof struct {
	// The login name or email being identified.
	LoginName string `json:"login_name"`
}

Proof for `identifier` method. Ref: #

func (*IdentifierProof) Decode

func (s *IdentifierProof) Decode(d *jx.Decoder) error

Decode decodes IdentifierProof from json.

func (*IdentifierProof) Encode

func (s *IdentifierProof) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IdentifierProof) GetLoginName

func (s *IdentifierProof) GetLoginName() string

GetLoginName returns the value of LoginName.

func (*IdentifierProof) MarshalJSON

func (s *IdentifierProof) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IdentifierProof) SetLoginName

func (s *IdentifierProof) SetLoginName(val string)

SetLoginName sets the value of LoginName.

func (*IdentifierProof) UnmarshalJSON

func (s *IdentifierProof) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Internal

type Internal struct {
	// Merged property.
	Code string `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptInternalDetails `json:"details"`
}

Merged schema. Ref: #

func (*Internal) Decode

func (s *Internal) Decode(d *jx.Decoder) error

Decode decodes Internal from json.

func (*Internal) Encode

func (s *Internal) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Internal) GetCode

func (s *Internal) GetCode() string

GetCode returns the value of Code.

func (*Internal) GetDetails

func (s *Internal) GetDetails() OptInternalDetails

GetDetails returns the value of Details.

func (*Internal) GetMessage

func (s *Internal) GetMessage() string

GetMessage returns the value of Message.

func (*Internal) MarshalJSON

func (s *Internal) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Internal) SetCode

func (s *Internal) SetCode(val string)

SetCode sets the value of Code.

func (*Internal) SetDetails

func (s *Internal) SetDetails(val OptInternalDetails)

SetDetails sets the value of Details.

func (*Internal) SetMessage

func (s *Internal) SetMessage(val string)

SetMessage sets the value of Message.

func (*Internal) UnmarshalJSON

func (s *Internal) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type InternalDetails

type InternalDetails map[string]jx.Raw

Additional error-specific context.

func (*InternalDetails) Decode

func (s *InternalDetails) Decode(d *jx.Decoder) error

Decode decodes InternalDetails from json.

func (InternalDetails) Encode

func (s InternalDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (InternalDetails) MarshalJSON

func (s InternalDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InternalDetails) UnmarshalJSON

func (s *InternalDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IntrospectRequest

type IntrospectRequest struct {
	// The token to introspect.
	Token string `json:"token"`
	// A hint about the type of the token (access_token or refresh_token).
	TokenTypeHint OptString `json:"token_type_hint"`
}

Ref: #

func (*IntrospectRequest) GetToken

func (s *IntrospectRequest) GetToken() string

GetToken returns the value of Token.

func (*IntrospectRequest) GetTokenTypeHint

func (s *IntrospectRequest) GetTokenTypeHint() OptString

GetTokenTypeHint returns the value of TokenTypeHint.

func (*IntrospectRequest) SetToken

func (s *IntrospectRequest) SetToken(val string)

SetToken sets the value of Token.

func (*IntrospectRequest) SetTokenTypeHint

func (s *IntrospectRequest) SetTokenTypeHint(val OptString)

SetTokenTypeHint sets the value of TokenTypeHint.

type IntrospectRes

type IntrospectRes interface {
	// contains filtered or unexported methods
}

type IntrospectResponse

type IntrospectResponse struct {
	// Indicates whether the token is active.
	Active OptBool `json:"active"`
	// The audience of the token (if applicable).
	Aud OptString `json:"aud"`
	// The client ID associated with the token.
	ClientID OptString `json:"client_id"`
	// The expiration time of the token (in seconds since epoch).
	Exp OptInt `json:"exp"`
	// The time the token was issued (in seconds since epoch).
	Iat OptInt `json:"iat"`
	// The issuer of the token (if applicable).
	Iss OptString `json:"iss"`
	// The unique identifier for the token (if applicable).
	Jti OptString `json:"jti"`
	// The time before which the token is not valid (in seconds since epoch).
	Nbf OptInt `json:"nbf"`
	// The scopes associated with the token.
	Scope OptString `json:"scope"`
	// The subject of the token (if applicable).
	Sub OptString `json:"sub"`
	// The type of the token (access_token or refresh_token).
	TokenType OptString `json:"token_type"`
	// The username associated with the token (if applicable).
	Username OptString `json:"username"`
}

Ref: #

func (*IntrospectResponse) Decode

func (s *IntrospectResponse) Decode(d *jx.Decoder) error

Decode decodes IntrospectResponse from json.

func (*IntrospectResponse) Encode

func (s *IntrospectResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IntrospectResponse) GetActive

func (s *IntrospectResponse) GetActive() OptBool

GetActive returns the value of Active.

func (*IntrospectResponse) GetAud

func (s *IntrospectResponse) GetAud() OptString

GetAud returns the value of Aud.

func (*IntrospectResponse) GetClientID

func (s *IntrospectResponse) GetClientID() OptString

GetClientID returns the value of ClientID.

func (*IntrospectResponse) GetExp

func (s *IntrospectResponse) GetExp() OptInt

GetExp returns the value of Exp.

func (*IntrospectResponse) GetIat

func (s *IntrospectResponse) GetIat() OptInt

GetIat returns the value of Iat.

func (*IntrospectResponse) GetIss

func (s *IntrospectResponse) GetIss() OptString

GetIss returns the value of Iss.

func (*IntrospectResponse) GetJti

func (s *IntrospectResponse) GetJti() OptString

GetJti returns the value of Jti.

func (*IntrospectResponse) GetNbf

func (s *IntrospectResponse) GetNbf() OptInt

GetNbf returns the value of Nbf.

func (*IntrospectResponse) GetScope

func (s *IntrospectResponse) GetScope() OptString

GetScope returns the value of Scope.

func (*IntrospectResponse) GetSub

func (s *IntrospectResponse) GetSub() OptString

GetSub returns the value of Sub.

func (*IntrospectResponse) GetTokenType

func (s *IntrospectResponse) GetTokenType() OptString

GetTokenType returns the value of TokenType.

func (*IntrospectResponse) GetUsername

func (s *IntrospectResponse) GetUsername() OptString

GetUsername returns the value of Username.

func (*IntrospectResponse) MarshalJSON

func (s *IntrospectResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntrospectResponse) SetActive

func (s *IntrospectResponse) SetActive(val OptBool)

SetActive sets the value of Active.

func (*IntrospectResponse) SetAud

func (s *IntrospectResponse) SetAud(val OptString)

SetAud sets the value of Aud.

func (*IntrospectResponse) SetClientID

func (s *IntrospectResponse) SetClientID(val OptString)

SetClientID sets the value of ClientID.

func (*IntrospectResponse) SetExp

func (s *IntrospectResponse) SetExp(val OptInt)

SetExp sets the value of Exp.

func (*IntrospectResponse) SetIat

func (s *IntrospectResponse) SetIat(val OptInt)

SetIat sets the value of Iat.

func (*IntrospectResponse) SetIss

func (s *IntrospectResponse) SetIss(val OptString)

SetIss sets the value of Iss.

func (*IntrospectResponse) SetJti

func (s *IntrospectResponse) SetJti(val OptString)

SetJti sets the value of Jti.

func (*IntrospectResponse) SetNbf

func (s *IntrospectResponse) SetNbf(val OptInt)

SetNbf sets the value of Nbf.

func (*IntrospectResponse) SetScope

func (s *IntrospectResponse) SetScope(val OptString)

SetScope sets the value of Scope.

func (*IntrospectResponse) SetSub

func (s *IntrospectResponse) SetSub(val OptString)

SetSub sets the value of Sub.

func (*IntrospectResponse) SetTokenType

func (s *IntrospectResponse) SetTokenType(val OptString)

SetTokenType sets the value of TokenType.

func (*IntrospectResponse) SetUsername

func (s *IntrospectResponse) SetUsername(val OptString)

SetUsername sets the value of Username.

func (*IntrospectResponse) UnmarshalJSON

func (s *IntrospectResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Invoker

type Invoker interface {
	// AuthorizeDevice invokes authorizeDevice operation.
	//
	// Authorize a device.
	//
	// GET /auth/device-authorization
	AuthorizeDevice(ctx context.Context, params AuthorizeDeviceParams) (AuthorizeDeviceRes, error)
	// AuthorizeGet invokes authorizeGet operation.
	//
	// Authorize a user.
	//
	// GET /auth/authorize
	AuthorizeGet(ctx context.Context, params AuthorizeGetParams) (AuthorizeGetRes, error)
	// CreateAuthAttempt invokes createAuthAttempt operation.
	//
	// Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.
	// An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
	// It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
	// Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
	// also include session_id to add factors to an existing session.
	//
	// POST /auth_attempts
	CreateAuthAttempt(ctx context.Context, request *CreateAuthAttemptRequest) (CreateAuthAttemptRes, error)
	// CreateFlow invokes createFlow operation.
	//
	// Resolves a flow definition based on purpose + audience context and returns
	// the first capability step. Creates a new session implicitly unless
	// `session_id` is provided (for step-up / reauth on an existing session).
	// The response contains an `id` field — the flow handle. Use it as the path
	// parameter for all subsequent `/flow/{id}/submit` and `/flow/{id}/event` calls.
	// The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
	// the flow's orchestration state (current step, collected data, history).
	// The server is stateless between requests — all flow state lives in this
	// cookie. The browser sends it automatically on subsequent requests.
	//
	// POST /flow
	CreateFlow(ctx context.Context, request *CreateFlowRequest) (CreateFlowRes, error)
	// CreateFlowDefinition invokes createFlowDefinition operation.
	//
	// Creates a new flow definition.
	// Flow definitions are templates that define the sequence of steps (capabilities)
	// for a particular user journey (e.g., registration, login, password reset).
	// Flow definitions are created based on the flow meta schema, which includes the flow's purpose,
	// audience, and the steps involved.
	//
	// POST /flow_definitions
	CreateFlowDefinition(ctx context.Context, request *CreateFlowDefinitionRequest) (CreateFlowDefinitionRes, error)
	// CreateHandoff invokes createHandoff operation.
	//
	// Completes the authentication attempt and mints a `handoff_token`.
	// Call this after all required factors have been verified and the attempt is in `completed` state.
	// The handoff token is short-lived (≤60 seconds) and must be exchanged at
	// POST /sessions/exchange to receive the final session and session_token.
	// The handoff token is:
	// - Single-use (atomic exchange, no retry)
	// - Audience-bound (requires matching project key for exchange)
	// - Idempotency-safe within a 5-minute window (see conventions).
	//
	// POST /auth_attempts/{attempt_id}/handoff
	CreateHandoff(ctx context.Context, params CreateHandoffParams) (CreateHandoffRes, error)
	// CreateProject invokes createProject operation.
	//
	// Create project.
	//
	// POST /projects
	CreateProject(ctx context.Context, request *CreateProjectRequest) (CreateProjectRes, error)
	// CreateSchema invokes createSchema operation.
	//
	// Create a new schema. The schema definition must include a unique $id field,
	// which will be used to identify the schema in future requests. The $id must
	// be a valid URI and should ideally point to the location where the schema
	// can be accessed.
	// The schema can either be a concrete schema, e.g. a user schema, or a
	// schema-url which will be resolved by the server.
	//
	// POST /schemas
	CreateSchema(ctx context.Context, request CreateSchemaReq, params CreateSchemaParams) (CreateSchemaRes, error)
	// CreateSession invokes createSession operation.
	//
	// Creates an anonymous session shell with no user and no factors (`state: building`).
	// This is optional — an `auth_attempt` will create a session implicitly if none is provided.
	// Use this explicitly when you want to:
	// - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
	// can be correlated with the eventual authenticated session from the start.
	// - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
	// The returned `session_token` authorises GET and DELETE on this session.
	// It is superseded when a handoff exchange completes — clients must replace it at that point.
	// Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
	// full session TTL when the first authentication factor is written via a completing `auth_attempt`.
	//
	// POST /sessions
	CreateSession(ctx context.Context, request *CreateSessionRequest) (CreateSessionRes, error)
	// CreateTeam invokes createTeam operation.
	//
	// Create team.
	//
	// POST /teams
	CreateTeam(ctx context.Context, request *CreateTeamRequest, params CreateTeamParams) (CreateTeamRes, error)
	// CreateUser invokes createUser operation.
	//
	// Create user.
	//
	// POST /users
	CreateUser(ctx context.Context, request *User, params CreateUserParams) (CreateUserRes, error)
	// DeleteFlowDefinition invokes deleteFlowDefinition operation.
	//
	// Delete a flow definition by id.
	//
	// DELETE /flow_definitions/{id}
	DeleteFlowDefinition(ctx context.Context, params DeleteFlowDefinitionParams) (DeleteFlowDefinitionRes, error)
	// EndSession invokes endSession operation.
	//
	// End a session.
	//
	// GET /auth/end-session
	EndSession(ctx context.Context, params EndSessionParams) (EndSessionRes, error)
	// ExchangeHandoff invokes exchangeHandoff operation.
	//
	// Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff`
	// and returns the resulting session and a `session_token`.
	// The server resolves the originating `auth_attempt` from the token and then:
	// | Originating auth_attempt | Outcome |
	// |---|---|
	// | No `session_id` | A new authenticated session is **created**. |
	// | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and
	// factors written in, TTL reset to full session TTL. |
	// | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new
	// factors merged, `assurance_levels[]` expanded. |
	// The response shape is identical in all three cases.
	// The `session_token` supersedes any previously issued `session_token` for the same session.
	// Clients must replace their stored token at this point.
	// Requires a project service key (OAuth2 client credentials).
	//
	// POST /sessions/exchange
	ExchangeHandoff(ctx context.Context, request *ExchangeRequest, params ExchangeHandoffParams) (ExchangeHandoffRes, error)
	// GetAuthAttempt invokes getAuthAttempt operation.
	//
	// Polls the current state of an authentication attempt.
	// Returns the attempt's state, available factors for the next challenge,
	// challenges issued so far, and any errors preventing progress.
	// Use this for polling during long-running factor verifications (e.g., waiting for
	// a federated IdP callback or a device flow).
	//
	// GET /auth_attempts/{attempt_id}
	GetAuthAttempt(ctx context.Context, params GetAuthAttemptParams) (GetAuthAttemptRes, error)
	// GetFlowDefinition invokes getFlowDefinition operation.
	//
	// Get a flow definition by id.
	//
	// GET /flow_definitions/{id}
	GetFlowDefinition(ctx context.Context, params GetFlowDefinitionParams) (GetFlowDefinitionRes, error)
	// GetFlowStep invokes getFlowStep operation.
	//
	// Returns the current capability step without advancing the state machine.
	// Useful for page reloads or re-rendering after a network error.
	//
	// GET /flow/{id}
	GetFlowStep(ctx context.Context, params GetFlowStepParams) (GetFlowStepRes, error)
	// GetHealth invokes getHealth operation.
	//
	// Check whether the server is healthy.
	//
	// GET /healthz
	GetHealth(ctx context.Context) (GetHealthRes, error)
	// GetKeys invokes getKeys operation.
	//
	// Get public keys.
	//
	// GET /auth/keys
	GetKeys(ctx context.Context) (GetKeysRes, error)
	// GetLive invokes getLive operation.
	//
	// Check whether the server is started.
	//
	// GET /livez
	GetLive(ctx context.Context) (GetLiveRes, error)
	// GetMySession invokes getMySession operation.
	//
	// Returns the current state of the current session including its factors and all currently
	// satisfied assurance levels.
	// `assurance_levels[]` may shrink over time as factor freshness windows expire,
	// without the session itself expiring. Use step-up authentication (a new `auth_attempt`
	// against the same `session_id`) to restore a dropped assurance level.
	//
	// GET /sessions/me
	GetMySession(ctx context.Context, params GetMySessionParams) (GetMySessionRes, error)
	// GetMyUser invokes getMyUser operation.
	//
	// Get my user information.
	//
	// GET /users/me
	GetMyUser(ctx context.Context, params GetMyUserParams) (GetMyUserRes, error)
	// GetOpenIDConfiguration invokes getOpenIDConfiguration operation.
	//
	// Retrieve the OpenID Connect configuration.
	//
	// GET /.well-known/openid-configuration
	GetOpenIDConfiguration(ctx context.Context) (GetOpenIDConfigurationRes, error)
	// GetProject invokes getProject operation.
	//
	// Returns the current state of a project.
	//
	// GET /projects/{project_id}
	GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)
	// GetReady invokes getReady operation.
	//
	// Check whether the server is ready to accept requests.
	//
	// GET /readyz
	GetReady(ctx context.Context) (GetReadyRes, error)
	// GetSchemaById invokes getSchemaById operation.
	//
	// Get a schema by its ID. This will return the default revision of the schema.
	//
	// GET /schemas/{id}
	GetSchemaById(ctx context.Context, params GetSchemaByIdParams) (GetSchemaByIdRes, error)
	// GetSession invokes getSession operation.
	//
	// Returns the current state of a session including its factors and all currently
	// satisfied assurance levels.
	// `assurance_levels[]` may shrink over time as factor freshness windows expire,
	// without the session itself expiring. Use step-up authentication (a new `auth_attempt`
	// against the same `session_id`) to restore a dropped assurance level.
	//
	// GET /sessions/{session_id}
	GetSession(ctx context.Context, params GetSessionParams) (GetSessionRes, error)
	// GetTeam invokes getTeam operation.
	//
	// Returns the current state of a team.
	//
	// GET /teams/{team_id}
	GetTeam(ctx context.Context, params GetTeamParams) (GetTeamRes, error)
	// GetToken invokes getToken operation.
	//
	// Get accesstoken.
	//
	// POST /auth/token
	GetToken(ctx context.Context, request *PostTokenRequest) (GetTokenRes, error)
	// GetUserByID invokes GetUserByID operation.
	//
	// Get user by ID.
	//
	// GET /users/{user_id}
	GetUserByID(ctx context.Context, params GetUserByIDParams) (GetUserByIDRes, error)
	// GetUserInfo invokes getUserInfo operation.
	//
	// Get user info.
	//
	// GET /auth/userinfo
	GetUserInfo(ctx context.Context) (GetUserInfoRes, error)
	// Introspect invokes introspect operation.
	//
	// Introspect a token.
	//
	// POST /auth/introspect
	Introspect(ctx context.Context, request *IntrospectRequest) (IntrospectRes, error)
	// IssueChallenge invokes issueChallenge operation.
	//
	// Issues a single-factor verification challenge within an auth attempt.
	// This advances the authentication state machine by requesting a specific factor method
	// (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
	// including method, metadata, and any UI hints. The client then verifies the proof
	// by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
	//
	// POST /auth_attempts/{attempt_id}/challenges
	IssueChallenge(ctx context.Context, request *IssueChallengeRequest, params IssueChallengeParams) (IssueChallengeRes, error)
	// ListFlowDefinitions invokes listFlowDefinitions operation.
	//
	// Retrieves a list of all flow definitions.
	// This endpoint can be used to view existing flow definitions and their configurations.
	//
	// GET /flow_definitions
	ListFlowDefinitions(ctx context.Context, params ListFlowDefinitionsParams) (ListFlowDefinitionsRes, error)
	// ListSessions invokes listSessions operation.
	//
	// Returns a paginated list of sessions for a project.
	// Requires a project service key (OAuth2 client credentials).
	//
	// GET /sessions
	ListSessions(ctx context.Context, params ListSessionsParams) (ListSessionsRes, error)
	// ListUsers invokes listUsers operation.
	//
	// List users.
	//
	// GET /users
	ListUsers(ctx context.Context, params ListUsersParams) (ListUsersRes, error)
	// RevokeMySession invokes revokeMySession operation.
	//
	// Revokes the session immediately (`state: revoked`). This is the logout operation.
	// The __nextgen_session cookie issued at creation (or superseded by a handoff exchange) is required.
	// After revocation, any tokens derived from this session are invalidated including the cookie itself,
	//  which is cleared in the response.
	//
	// DELETE /sessions/me
	RevokeMySession(ctx context.Context, params RevokeMySessionParams) (RevokeMySessionRes, error)
	// RevokeSession invokes revokeSession operation.
	//
	// Revokes the session immediately (`state: revoked`). This is the logout operation.
	// The session_token issued at creation (or superseded by a handoff exchange) is required.
	// After revocation, any tokens derived from this session are invalidated.
	//
	// DELETE /sessions/{session_id}
	RevokeSession(ctx context.Context, params RevokeSessionParams) (RevokeSessionRes, error)
	// RevokeToken invokes revokeToken operation.
	//
	// Revoke an access token or refresh token.
	//
	// POST /auth/revoke
	RevokeToken(ctx context.Context, request *RevokeRequest) (RevokeTokenRes, error)
	// SetUserPassword invokes setUserPassword operation.
	//
	// Set user password.
	//
	// PUT /users/{user_id}/password
	SetUserPassword(ctx context.Context, request *SetUserPasswordRequest, params SetUserPasswordParams) (SetUserPasswordRes, error)
	// SubmitFlowEvent invokes submitFlowEvent operation.
	//
	// Submits telemetry or fingerprint data from the frontend.
	// Does not advance the state machine. Used for risk evaluation.
	//
	// POST /flow/{id}/event
	SubmitFlowEvent(ctx context.Context, request *FlowEventRequest, params SubmitFlowEventParams) (SubmitFlowEventRes, error)
	// SubmitFlowStep invokes submitFlowStep operation.
	//
	// Submits user input for the current step. The server validates,
	// processes (e.g., verifies a credential), advances the state machine
	// through any invisible steps, and returns the next visible step.
	// The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
	// with the new flow state. The server is stateless — all orchestration
	// state is carried in this cookie between requests.
	// **Important:** The `id` in the response may differ from the `id` used in
	// the request. This happens when a flow pivots (pushes a new flow onto the
	// stack) or when a stacked flow completes (auto-pops to the parent flow).
	// Always use the `id` from the latest response for the next request.
	// ## Flow completion
	// When `step.type` is `complete`, the flow is terminal. The `step.behavior`
	// field tells the frontend what to do:
	// | `behavior`   | Action                                                     |
	// |------------- |------------------------------------------------------------|
	// | `redirect`   | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
	// | `show`       | Render the step as a success screen (e.g., registration).  |
	// A `complete` step is only returned when the **entire flow stack** is done.
	// If a stacked flow (e.g., recovery pivoted from login) finishes, the server
	// auto-pops to the parent flow and returns the parent's next step — the
	// frontend never sees a `complete` for intermediate flows.
	//
	// POST /flow/{id}/submit
	SubmitFlowStep(ctx context.Context, request *FlowSubmitRequest, params SubmitFlowStepParams) (SubmitFlowStepRes, error)
	// UpdateFlowDefinition invokes updateFlowDefinition operation.
	//
	// Update a flow definition by id.
	//
	// PATCH /flow_definitions/{id}
	UpdateFlowDefinition(ctx context.Context, request *FlowDefinitionUpdateRequest, params UpdateFlowDefinitionParams) (UpdateFlowDefinitionRes, error)
	// VerifyChallengeProof invokes verifyChallengeProof operation.
	//
	// Submits a proof (credential, code, assertion) to verify a factor challenge.
	// The proof format depends on the challenge method. For example:
	// - `password` method: { password: "…" }
	// - `totp` method: { totp: { code: "123456" } }
	// - `passkey` method: { passkey: { assertion: "…" } }
	// - `recovery_code` method: { recovery_code: "…" }
	// On successful verification, the factor is written to the auth attempt.
	// The attempt moves to the next pending challenge or completes if all required factors are verified.
	//
	// POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify
	VerifyChallengeProof(ctx context.Context, request *VerifyChallengeRequest, params VerifyChallengeProofParams) (VerifyChallengeProofRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type IssueChallengeErrorResponse

type IssueChallengeErrorResponse struct {
	Type                IssueChallengeErrorResponseType // switch on this field
	AttNotFound         AttNotFound
	AttInvalidRequest   AttInvalidRequest
	AttInvalidState     AttInvalidState
	AttAlreadyCompleted AttAlreadyCompleted
	Internal            Internal
}

IssueChallengeErrorResponse represents sum type.

func NewAttAlreadyCompletedIssueChallengeErrorResponse

func NewAttAlreadyCompletedIssueChallengeErrorResponse(v AttAlreadyCompleted) IssueChallengeErrorResponse

NewAttAlreadyCompletedIssueChallengeErrorResponse returns new IssueChallengeErrorResponse from AttAlreadyCompleted.

func NewAttInvalidRequestIssueChallengeErrorResponse

func NewAttInvalidRequestIssueChallengeErrorResponse(v AttInvalidRequest) IssueChallengeErrorResponse

NewAttInvalidRequestIssueChallengeErrorResponse returns new IssueChallengeErrorResponse from AttInvalidRequest.

func NewAttInvalidStateIssueChallengeErrorResponse

func NewAttInvalidStateIssueChallengeErrorResponse(v AttInvalidState) IssueChallengeErrorResponse

NewAttInvalidStateIssueChallengeErrorResponse returns new IssueChallengeErrorResponse from AttInvalidState.

func NewAttNotFoundIssueChallengeErrorResponse

func NewAttNotFoundIssueChallengeErrorResponse(v AttNotFound) IssueChallengeErrorResponse

NewAttNotFoundIssueChallengeErrorResponse returns new IssueChallengeErrorResponse from AttNotFound.

func NewInternalIssueChallengeErrorResponse

func NewInternalIssueChallengeErrorResponse(v Internal) IssueChallengeErrorResponse

NewInternalIssueChallengeErrorResponse returns new IssueChallengeErrorResponse from Internal.

func (*IssueChallengeErrorResponse) Decode

Decode decodes IssueChallengeErrorResponse from json.

func (IssueChallengeErrorResponse) Encode

func (s IssueChallengeErrorResponse) Encode(e *jx.Encoder)

Encode encodes IssueChallengeErrorResponse as json.

func (IssueChallengeErrorResponse) GetAttAlreadyCompleted

func (s IssueChallengeErrorResponse) GetAttAlreadyCompleted() (v AttAlreadyCompleted, ok bool)

GetAttAlreadyCompleted returns AttAlreadyCompleted and true boolean if IssueChallengeErrorResponse is AttAlreadyCompleted.

func (IssueChallengeErrorResponse) GetAttInvalidRequest

func (s IssueChallengeErrorResponse) GetAttInvalidRequest() (v AttInvalidRequest, ok bool)

GetAttInvalidRequest returns AttInvalidRequest and true boolean if IssueChallengeErrorResponse is AttInvalidRequest.

func (IssueChallengeErrorResponse) GetAttInvalidState

func (s IssueChallengeErrorResponse) GetAttInvalidState() (v AttInvalidState, ok bool)

GetAttInvalidState returns AttInvalidState and true boolean if IssueChallengeErrorResponse is AttInvalidState.

func (IssueChallengeErrorResponse) GetAttNotFound

func (s IssueChallengeErrorResponse) GetAttNotFound() (v AttNotFound, ok bool)

GetAttNotFound returns AttNotFound and true boolean if IssueChallengeErrorResponse is AttNotFound.

func (IssueChallengeErrorResponse) GetInternal

func (s IssueChallengeErrorResponse) GetInternal() (v Internal, ok bool)

GetInternal returns Internal and true boolean if IssueChallengeErrorResponse is Internal.

func (IssueChallengeErrorResponse) IsAttAlreadyCompleted

func (s IssueChallengeErrorResponse) IsAttAlreadyCompleted() bool

IsAttAlreadyCompleted reports whether IssueChallengeErrorResponse is AttAlreadyCompleted.

func (IssueChallengeErrorResponse) IsAttInvalidRequest

func (s IssueChallengeErrorResponse) IsAttInvalidRequest() bool

IsAttInvalidRequest reports whether IssueChallengeErrorResponse is AttInvalidRequest.

func (IssueChallengeErrorResponse) IsAttInvalidState

func (s IssueChallengeErrorResponse) IsAttInvalidState() bool

IsAttInvalidState reports whether IssueChallengeErrorResponse is AttInvalidState.

func (IssueChallengeErrorResponse) IsAttNotFound

func (s IssueChallengeErrorResponse) IsAttNotFound() bool

IsAttNotFound reports whether IssueChallengeErrorResponse is AttNotFound.

func (IssueChallengeErrorResponse) IsInternal

func (s IssueChallengeErrorResponse) IsInternal() bool

IsInternal reports whether IssueChallengeErrorResponse is Internal.

func (IssueChallengeErrorResponse) MarshalJSON

func (s IssueChallengeErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IssueChallengeErrorResponse) SetAttAlreadyCompleted

func (s *IssueChallengeErrorResponse) SetAttAlreadyCompleted(v AttAlreadyCompleted)

SetAttAlreadyCompleted sets IssueChallengeErrorResponse to AttAlreadyCompleted.

func (*IssueChallengeErrorResponse) SetAttInvalidRequest

func (s *IssueChallengeErrorResponse) SetAttInvalidRequest(v AttInvalidRequest)

SetAttInvalidRequest sets IssueChallengeErrorResponse to AttInvalidRequest.

func (*IssueChallengeErrorResponse) SetAttInvalidState

func (s *IssueChallengeErrorResponse) SetAttInvalidState(v AttInvalidState)

SetAttInvalidState sets IssueChallengeErrorResponse to AttInvalidState.

func (*IssueChallengeErrorResponse) SetAttNotFound

func (s *IssueChallengeErrorResponse) SetAttNotFound(v AttNotFound)

SetAttNotFound sets IssueChallengeErrorResponse to AttNotFound.

func (*IssueChallengeErrorResponse) SetInternal

func (s *IssueChallengeErrorResponse) SetInternal(v Internal)

SetInternal sets IssueChallengeErrorResponse to Internal.

func (*IssueChallengeErrorResponse) UnmarshalJSON

func (s *IssueChallengeErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IssueChallengeErrorResponseStatusCode

type IssueChallengeErrorResponseStatusCode struct {
	StatusCode int
	Response   IssueChallengeErrorResponse
}

IssueChallengeErrorResponseStatusCode wraps IssueChallengeErrorResponse with StatusCode.

func (*IssueChallengeErrorResponseStatusCode) GetResponse

GetResponse returns the value of Response.

func (*IssueChallengeErrorResponseStatusCode) GetStatusCode

func (s *IssueChallengeErrorResponseStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*IssueChallengeErrorResponseStatusCode) SetResponse

SetResponse sets the value of Response.

func (*IssueChallengeErrorResponseStatusCode) SetStatusCode

func (s *IssueChallengeErrorResponseStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type IssueChallengeErrorResponseType

type IssueChallengeErrorResponseType string

IssueChallengeErrorResponseType is oneOf type of IssueChallengeErrorResponse.

const (
	AttNotFoundIssueChallengeErrorResponse         IssueChallengeErrorResponseType = "att.not_found"
	AttInvalidRequestIssueChallengeErrorResponse   IssueChallengeErrorResponseType = "att.invalid_request"
	AttInvalidStateIssueChallengeErrorResponse     IssueChallengeErrorResponseType = "att.invalid_state"
	AttAlreadyCompletedIssueChallengeErrorResponse IssueChallengeErrorResponseType = "att.already_completed"
	InternalIssueChallengeErrorResponse            IssueChallengeErrorResponseType = "internal"
)

Possible values for IssueChallengeErrorResponseType.

type IssueChallengeParams

type IssueChallengeParams struct {
	// The unique identifier of the authentication attempt.
	AttemptID AttemptID
}

IssueChallengeParams is parameters of issueChallenge operation.

type IssueChallengeRequest

type IssueChallengeRequest struct {
	// The authentication factor method to challenge.
	Method FactorMethod `json:"method"`
	// Optional WebAuthn ceremony options. Only relevant when `method` is `passkey`.
	PasskeyOptions OptIssueChallengeRequestPasskeyOptions `json:"passkey_options"`
}

Request to issue a factor challenge. The `method` field selects which factor to challenge. Additional fields are only relevant for specific methods: - `passkey_options` is optional and only used when `method` is `passkey`. - `idp_provider` is required when `method` is `idp` and must be omitted otherwise. This conditional requirement is enforced server-side. Ref: #

func (*IssueChallengeRequest) Decode

func (s *IssueChallengeRequest) Decode(d *jx.Decoder) error

Decode decodes IssueChallengeRequest from json.

func (*IssueChallengeRequest) Encode

func (s *IssueChallengeRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IssueChallengeRequest) GetMethod

func (s *IssueChallengeRequest) GetMethod() FactorMethod

GetMethod returns the value of Method.

func (*IssueChallengeRequest) GetPasskeyOptions

GetPasskeyOptions returns the value of PasskeyOptions.

func (*IssueChallengeRequest) MarshalJSON

func (s *IssueChallengeRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IssueChallengeRequest) SetMethod

func (s *IssueChallengeRequest) SetMethod(val FactorMethod)

SetMethod sets the value of Method.

func (*IssueChallengeRequest) SetPasskeyOptions

SetPasskeyOptions sets the value of PasskeyOptions.

func (*IssueChallengeRequest) UnmarshalJSON

func (s *IssueChallengeRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IssueChallengeRequest) Validate

func (s *IssueChallengeRequest) Validate() error

type IssueChallengeRequestPasskeyOptions

type IssueChallengeRequestPasskeyOptions struct {
	// Relying Party ID for WebAuthn. Optional; if not provided, the server may use a default value.
	RpID OptString `json:"rp_id"`
	// List of allowed origins for this WebAuthn challenge. Optional; if not provided, the server may use
	// a default value.
	RpOrigins        []url.URL                                              `json:"rp_origins"`
	UserVerification OptIssueChallengeRequestPasskeyOptionsUserVerification `json:"user_verification"`
}

Optional WebAuthn ceremony options. Only relevant when `method` is `passkey`.

func (*IssueChallengeRequestPasskeyOptions) Decode

Decode decodes IssueChallengeRequestPasskeyOptions from json.

func (*IssueChallengeRequestPasskeyOptions) Encode

Encode implements json.Marshaler.

func (*IssueChallengeRequestPasskeyOptions) GetRpID

GetRpID returns the value of RpID.

func (*IssueChallengeRequestPasskeyOptions) GetRpOrigins

func (s *IssueChallengeRequestPasskeyOptions) GetRpOrigins() []url.URL

GetRpOrigins returns the value of RpOrigins.

func (*IssueChallengeRequestPasskeyOptions) GetUserVerification

GetUserVerification returns the value of UserVerification.

func (*IssueChallengeRequestPasskeyOptions) MarshalJSON

func (s *IssueChallengeRequestPasskeyOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IssueChallengeRequestPasskeyOptions) SetRpID

SetRpID sets the value of RpID.

func (*IssueChallengeRequestPasskeyOptions) SetRpOrigins

func (s *IssueChallengeRequestPasskeyOptions) SetRpOrigins(val []url.URL)

SetRpOrigins sets the value of RpOrigins.

func (*IssueChallengeRequestPasskeyOptions) SetUserVerification

SetUserVerification sets the value of UserVerification.

func (*IssueChallengeRequestPasskeyOptions) UnmarshalJSON

func (s *IssueChallengeRequestPasskeyOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IssueChallengeRequestPasskeyOptions) Validate

type IssueChallengeRequestPasskeyOptionsUserVerification

type IssueChallengeRequestPasskeyOptionsUserVerification string
const (
	IssueChallengeRequestPasskeyOptionsUserVerificationRequired    IssueChallengeRequestPasskeyOptionsUserVerification = "required"
	IssueChallengeRequestPasskeyOptionsUserVerificationPreferred   IssueChallengeRequestPasskeyOptionsUserVerification = "preferred"
	IssueChallengeRequestPasskeyOptionsUserVerificationDiscouraged IssueChallengeRequestPasskeyOptionsUserVerification = "discouraged"
)

func (IssueChallengeRequestPasskeyOptionsUserVerification) AllValues

AllValues returns all IssueChallengeRequestPasskeyOptionsUserVerification values.

func (*IssueChallengeRequestPasskeyOptionsUserVerification) Decode

Decode decodes IssueChallengeRequestPasskeyOptionsUserVerification from json.

func (IssueChallengeRequestPasskeyOptionsUserVerification) Encode

Encode encodes IssueChallengeRequestPasskeyOptionsUserVerification as json.

func (IssueChallengeRequestPasskeyOptionsUserVerification) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (IssueChallengeRequestPasskeyOptionsUserVerification) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*IssueChallengeRequestPasskeyOptionsUserVerification) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IssueChallengeRequestPasskeyOptionsUserVerification) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (IssueChallengeRequestPasskeyOptionsUserVerification) Validate

type IssueChallengeRes

type IssueChallengeRes interface {
	// contains filtered or unexported methods
}

type KeysResponse

type KeysResponse struct {
	Keys []KeysResponseKeysItem `json:"keys"`
}

Ref: #

func (*KeysResponse) Decode

func (s *KeysResponse) Decode(d *jx.Decoder) error

Decode decodes KeysResponse from json.

func (*KeysResponse) Encode

func (s *KeysResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*KeysResponse) GetKeys

func (s *KeysResponse) GetKeys() []KeysResponseKeysItem

GetKeys returns the value of Keys.

func (*KeysResponse) MarshalJSON

func (s *KeysResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*KeysResponse) SetKeys

func (s *KeysResponse) SetKeys(val []KeysResponseKeysItem)

SetKeys sets the value of Keys.

func (*KeysResponse) UnmarshalJSON

func (s *KeysResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type KeysResponseKeysItem

type KeysResponseKeysItem struct {
	Use     OptString `json:"use"`
	Kty     OptString `json:"kty"`
	Kid     OptString `json:"kid"`
	Crv     OptString `json:"crv"`
	Alg     OptString `json:"alg"`
	K       OptString `json:"k"`
	X       OptString `json:"x"`
	Y       OptString `json:"y"`
	N       OptString `json:"n"`
	E       OptString `json:"e"`
	D       OptString `json:"d"`
	P       OptString `json:"p"`
	Q       OptString `json:"q"`
	Dp      OptString `json:"dp"`
	Dq      OptString `json:"dq"`
	Qi      OptString `json:"qi"`
	X5c     []string  `json:"x5c"`
	X5u     OptString `json:"x5u"`
	X5t     OptString `json:"x5t"`
	X5tS256 OptString `json:"x5tS256"`
}

func (*KeysResponseKeysItem) Decode

func (s *KeysResponseKeysItem) Decode(d *jx.Decoder) error

Decode decodes KeysResponseKeysItem from json.

func (*KeysResponseKeysItem) Encode

func (s *KeysResponseKeysItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*KeysResponseKeysItem) GetAlg

func (s *KeysResponseKeysItem) GetAlg() OptString

GetAlg returns the value of Alg.

func (*KeysResponseKeysItem) GetCrv

func (s *KeysResponseKeysItem) GetCrv() OptString

GetCrv returns the value of Crv.

func (*KeysResponseKeysItem) GetD

func (s *KeysResponseKeysItem) GetD() OptString

GetD returns the value of D.

func (*KeysResponseKeysItem) GetDp

func (s *KeysResponseKeysItem) GetDp() OptString

GetDp returns the value of Dp.

func (*KeysResponseKeysItem) GetDq

func (s *KeysResponseKeysItem) GetDq() OptString

GetDq returns the value of Dq.

func (*KeysResponseKeysItem) GetE

func (s *KeysResponseKeysItem) GetE() OptString

GetE returns the value of E.

func (*KeysResponseKeysItem) GetK

func (s *KeysResponseKeysItem) GetK() OptString

GetK returns the value of K.

func (*KeysResponseKeysItem) GetKid

func (s *KeysResponseKeysItem) GetKid() OptString

GetKid returns the value of Kid.

func (*KeysResponseKeysItem) GetKty

func (s *KeysResponseKeysItem) GetKty() OptString

GetKty returns the value of Kty.

func (*KeysResponseKeysItem) GetN

func (s *KeysResponseKeysItem) GetN() OptString

GetN returns the value of N.

func (*KeysResponseKeysItem) GetP

func (s *KeysResponseKeysItem) GetP() OptString

GetP returns the value of P.

func (*KeysResponseKeysItem) GetQ

func (s *KeysResponseKeysItem) GetQ() OptString

GetQ returns the value of Q.

func (*KeysResponseKeysItem) GetQi

func (s *KeysResponseKeysItem) GetQi() OptString

GetQi returns the value of Qi.

func (*KeysResponseKeysItem) GetUse

func (s *KeysResponseKeysItem) GetUse() OptString

GetUse returns the value of Use.

func (*KeysResponseKeysItem) GetX

func (s *KeysResponseKeysItem) GetX() OptString

GetX returns the value of X.

func (*KeysResponseKeysItem) GetX5c

func (s *KeysResponseKeysItem) GetX5c() []string

GetX5c returns the value of X5c.

func (*KeysResponseKeysItem) GetX5t

func (s *KeysResponseKeysItem) GetX5t() OptString

GetX5t returns the value of X5t.

func (*KeysResponseKeysItem) GetX5tS256

func (s *KeysResponseKeysItem) GetX5tS256() OptString

GetX5tS256 returns the value of X5tS256.

func (*KeysResponseKeysItem) GetX5u

func (s *KeysResponseKeysItem) GetX5u() OptString

GetX5u returns the value of X5u.

func (*KeysResponseKeysItem) GetY

func (s *KeysResponseKeysItem) GetY() OptString

GetY returns the value of Y.

func (*KeysResponseKeysItem) MarshalJSON

func (s *KeysResponseKeysItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*KeysResponseKeysItem) SetAlg

func (s *KeysResponseKeysItem) SetAlg(val OptString)

SetAlg sets the value of Alg.

func (*KeysResponseKeysItem) SetCrv

func (s *KeysResponseKeysItem) SetCrv(val OptString)

SetCrv sets the value of Crv.

func (*KeysResponseKeysItem) SetD

func (s *KeysResponseKeysItem) SetD(val OptString)

SetD sets the value of D.

func (*KeysResponseKeysItem) SetDp

func (s *KeysResponseKeysItem) SetDp(val OptString)

SetDp sets the value of Dp.

func (*KeysResponseKeysItem) SetDq

func (s *KeysResponseKeysItem) SetDq(val OptString)

SetDq sets the value of Dq.

func (*KeysResponseKeysItem) SetE

func (s *KeysResponseKeysItem) SetE(val OptString)

SetE sets the value of E.

func (*KeysResponseKeysItem) SetK

func (s *KeysResponseKeysItem) SetK(val OptString)

SetK sets the value of K.

func (*KeysResponseKeysItem) SetKid

func (s *KeysResponseKeysItem) SetKid(val OptString)

SetKid sets the value of Kid.

func (*KeysResponseKeysItem) SetKty

func (s *KeysResponseKeysItem) SetKty(val OptString)

SetKty sets the value of Kty.

func (*KeysResponseKeysItem) SetN

func (s *KeysResponseKeysItem) SetN(val OptString)

SetN sets the value of N.

func (*KeysResponseKeysItem) SetP

func (s *KeysResponseKeysItem) SetP(val OptString)

SetP sets the value of P.

func (*KeysResponseKeysItem) SetQ

func (s *KeysResponseKeysItem) SetQ(val OptString)

SetQ sets the value of Q.

func (*KeysResponseKeysItem) SetQi

func (s *KeysResponseKeysItem) SetQi(val OptString)

SetQi sets the value of Qi.

func (*KeysResponseKeysItem) SetUse

func (s *KeysResponseKeysItem) SetUse(val OptString)

SetUse sets the value of Use.

func (*KeysResponseKeysItem) SetX

func (s *KeysResponseKeysItem) SetX(val OptString)

SetX sets the value of X.

func (*KeysResponseKeysItem) SetX5c

func (s *KeysResponseKeysItem) SetX5c(val []string)

SetX5c sets the value of X5c.

func (*KeysResponseKeysItem) SetX5t

func (s *KeysResponseKeysItem) SetX5t(val OptString)

SetX5t sets the value of X5t.

func (*KeysResponseKeysItem) SetX5tS256

func (s *KeysResponseKeysItem) SetX5tS256(val OptString)

SetX5tS256 sets the value of X5tS256.

func (*KeysResponseKeysItem) SetX5u

func (s *KeysResponseKeysItem) SetX5u(val OptString)

SetX5u sets the value of X5u.

func (*KeysResponseKeysItem) SetY

func (s *KeysResponseKeysItem) SetY(val OptString)

SetY sets the value of Y.

func (*KeysResponseKeysItem) UnmarshalJSON

func (s *KeysResponseKeysItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Labeler

type Labeler struct {
	// contains filtered or unexported fields
}

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type ListFlowDefinitionsParams

type ListFlowDefinitionsParams struct {
	// Maximum number of items to return.
	Limit OptInt `json:",omitempty,omitzero"`
	// Token for fetching the next page of results.
	// Obtain this value from `next_page_token` in the previous response.
	// Omit to start from the beginning.
	// Its format is opaque and may change between releases.
	PageToken OptPageToken `json:",omitempty,omitzero"`
	// The project id to filter by.
	ProjectID ProjectID
	// Filter flow definitions by purpose (e.g., registration, login).
	Purpose OptListFlowDefinitionsPurpose `json:",omitempty,omitzero"`
}

ListFlowDefinitionsParams is parameters of listFlowDefinitions operation.

type ListFlowDefinitionsPurpose

type ListFlowDefinitionsPurpose string
const (
	ListFlowDefinitionsPurposeLogin       ListFlowDefinitionsPurpose = "login"
	ListFlowDefinitionsPurposeRegister    ListFlowDefinitionsPurpose = "register"
	ListFlowDefinitionsPurposeRecovery    ListFlowDefinitionsPurpose = "recovery"
	ListFlowDefinitionsPurposeProfiling   ListFlowDefinitionsPurpose = "profiling"
	ListFlowDefinitionsPurposeReauth      ListFlowDefinitionsPurpose = "reauth"
	ListFlowDefinitionsPurposeLinkAccount ListFlowDefinitionsPurpose = "link_account"
)

func (ListFlowDefinitionsPurpose) AllValues

AllValues returns all ListFlowDefinitionsPurpose values.

func (ListFlowDefinitionsPurpose) MarshalText

func (s ListFlowDefinitionsPurpose) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListFlowDefinitionsPurpose) UnmarshalText

func (s *ListFlowDefinitionsPurpose) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListFlowDefinitionsPurpose) Validate

func (s ListFlowDefinitionsPurpose) Validate() error

type ListFlowDefinitionsRes

type ListFlowDefinitionsRes interface {
	// contains filtered or unexported methods
}

type ListSessionsBadRequest

type ListSessionsBadRequest ErrorDetails

func (*ListSessionsBadRequest) Decode

func (s *ListSessionsBadRequest) Decode(d *jx.Decoder) error

Decode decodes ListSessionsBadRequest from json.

func (*ListSessionsBadRequest) Encode

func (s *ListSessionsBadRequest) Encode(e *jx.Encoder)

Encode encodes ListSessionsBadRequest as json.

func (*ListSessionsBadRequest) MarshalJSON

func (s *ListSessionsBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListSessionsBadRequest) UnmarshalJSON

func (s *ListSessionsBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListSessionsForbidden

type ListSessionsForbidden ErrorDetails

func (*ListSessionsForbidden) Decode

func (s *ListSessionsForbidden) Decode(d *jx.Decoder) error

Decode decodes ListSessionsForbidden from json.

func (*ListSessionsForbidden) Encode

func (s *ListSessionsForbidden) Encode(e *jx.Encoder)

Encode encodes ListSessionsForbidden as json.

func (*ListSessionsForbidden) MarshalJSON

func (s *ListSessionsForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListSessionsForbidden) UnmarshalJSON

func (s *ListSessionsForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListSessionsParams

type ListSessionsParams struct {
	// Maximum number of items to return.
	Limit OptInt `json:",omitempty,omitzero"`
	// Token for fetching the next page of results.
	// Obtain this value from `next_page_token` in the previous response.
	// Omit to start from the beginning.
	// Its format is opaque and may change between releases.
	PageToken OptPageToken `json:",omitempty,omitzero"`
	// The unique identifier of the project.
	ProjectID ProjectID
	// Filter sessions by lifecycle state.
	State OptListSessionsState `json:",omitempty,omitzero"`
	// Filter sessions by user.
	UserID OptUserID `json:",omitempty,omitzero"`
}

ListSessionsParams is parameters of listSessions operation.

type ListSessionsRes

type ListSessionsRes interface {
	// contains filtered or unexported methods
}

type ListSessionsState

type ListSessionsState string
const (
	ListSessionsStateBuilding ListSessionsState = "building"
	ListSessionsStateActive   ListSessionsState = "active"
	ListSessionsStateExpired  ListSessionsState = "expired"
	ListSessionsStateRevoked  ListSessionsState = "revoked"
)

func (ListSessionsState) AllValues

func (ListSessionsState) AllValues() []ListSessionsState

AllValues returns all ListSessionsState values.

func (ListSessionsState) MarshalText

func (s ListSessionsState) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListSessionsState) UnmarshalText

func (s *ListSessionsState) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListSessionsState) Validate

func (s ListSessionsState) Validate() error

type ListSessionsUnauthorized

type ListSessionsUnauthorized ErrorDetails

func (*ListSessionsUnauthorized) Decode

func (s *ListSessionsUnauthorized) Decode(d *jx.Decoder) error

Decode decodes ListSessionsUnauthorized from json.

func (*ListSessionsUnauthorized) Encode

func (s *ListSessionsUnauthorized) Encode(e *jx.Encoder)

Encode encodes ListSessionsUnauthorized as json.

func (*ListSessionsUnauthorized) MarshalJSON

func (s *ListSessionsUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListSessionsUnauthorized) UnmarshalJSON

func (s *ListSessionsUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListUsersBadRequest

type ListUsersBadRequest ErrorDetails

func (*ListUsersBadRequest) Decode

func (s *ListUsersBadRequest) Decode(d *jx.Decoder) error

Decode decodes ListUsersBadRequest from json.

func (*ListUsersBadRequest) Encode

func (s *ListUsersBadRequest) Encode(e *jx.Encoder)

Encode encodes ListUsersBadRequest as json.

func (*ListUsersBadRequest) MarshalJSON

func (s *ListUsersBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListUsersBadRequest) UnmarshalJSON

func (s *ListUsersBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListUsersInternalServerError

type ListUsersInternalServerError ErrorDetails

func (*ListUsersInternalServerError) Decode

Decode decodes ListUsersInternalServerError from json.

func (*ListUsersInternalServerError) Encode

func (s *ListUsersInternalServerError) Encode(e *jx.Encoder)

Encode encodes ListUsersInternalServerError as json.

func (*ListUsersInternalServerError) MarshalJSON

func (s *ListUsersInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListUsersInternalServerError) UnmarshalJSON

func (s *ListUsersInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListUsersOKApplicationJSON

type ListUsersOKApplicationJSON []ListUsersOKItem

func (*ListUsersOKApplicationJSON) Decode

Decode decodes ListUsersOKApplicationJSON from json.

func (ListUsersOKApplicationJSON) Encode

func (s ListUsersOKApplicationJSON) Encode(e *jx.Encoder)

Encode encodes ListUsersOKApplicationJSON as json.

func (ListUsersOKApplicationJSON) MarshalJSON

func (s ListUsersOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListUsersOKApplicationJSON) UnmarshalJSON

func (s *ListUsersOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListUsersOKApplicationJSON) Validate

func (s ListUsersOKApplicationJSON) Validate() error

type ListUsersOKItem

type ListUsersOKItem map[string]jx.Raw

func (*ListUsersOKItem) Decode

func (s *ListUsersOKItem) Decode(d *jx.Decoder) error

Decode decodes ListUsersOKItem from json.

func (ListUsersOKItem) Encode

func (s ListUsersOKItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ListUsersOKItem) MarshalJSON

func (s ListUsersOKItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListUsersOKItem) UnmarshalJSON

func (s *ListUsersOKItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListUsersParams

type ListUsersParams struct {
	// Number of items to skip before returning results.
	Offset OptInt `json:",omitempty,omitzero"`
	// Maximum number of items to return.
	Limit OptInt `json:",omitempty,omitzero"`
}

ListUsersParams is parameters of listUsers operation.

type ListUsersRes

type ListUsersRes interface {
	// contains filtered or unexported methods
}

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type OAuth2

type OAuth2 struct {
	Token  string
	Scopes []string
}

func (*OAuth2) GetScopes

func (s *OAuth2) GetScopes() []string

GetScopes returns the value of Scopes.

func (*OAuth2) GetToken

func (s *OAuth2) GetToken() string

GetToken returns the value of Token.

func (*OAuth2) SetScopes

func (s *OAuth2) SetScopes(val []string)

SetScopes sets the value of Scopes.

func (*OAuth2) SetToken

func (s *OAuth2) SetToken(val string)

SetToken sets the value of Token.

type OpenidConfiguration

type OpenidConfiguration struct {
	// REQUIRED. URL using the https scheme with no query or fragment components that the OP asserts as
	// its Issuer Identifier.
	Issuer url.URL `json:"issuer"`
	// REQUIRED. URL of the OP's OAuth 2.0 Authorization Endpoint.
	AuthorizationEndpoint url.URL `json:"authorization_endpoint"`
	// URL of the OP's OAuth 2.0 Token Endpoint. REQUIRED unless only the Implicit Flow is used.
	TokenEndpoint OptURI `json:"token_endpoint"`
	// RECOMMENDED. URL of the OP's UserInfo Endpoint.
	UserinfoEndpoint OptURI `json:"userinfo_endpoint"`
	// REQUIRED. URL of the OP's JWK Set document containing the signing key(s) the RP uses to validate
	// signatures from the OP.
	JwksURI url.URL `json:"jwks_uri"`
	// RECOMMENDED. URL of the OP's Dynamic Client Registration Endpoint.
	RegistrationEndpoint OptURI `json:"registration_endpoint"`
	// RECOMMENDED. JSON array containing a list of the OAuth 2.0 scope values that this server supports.
	// The server MUST support the openid scope value.
	ScopesSupported []string `json:"scopes_supported"`
	// REQUIRED. JSON array containing a list of the OAuth 2.0 response_type values that this OP supports.
	ResponseTypesSupported []string `json:"response_types_supported"`
	// OPTIONAL. JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports.
	//  Default is ["query", "fragment"].
	ResponseModesSupported []string `json:"response_modes_supported"`
	// OPTIONAL. JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.
	// Default is ["authorization_code", "implicit"].
	GrantTypesSupported []string `json:"grant_types_supported"`
	// OPTIONAL. JSON array containing a list of the Authentication Context Class References that this OP
	// supports.
	AcrValuesSupported []string `json:"acr_values_supported"`
	// REQUIRED. JSON array containing a list of the Subject Identifier types that this OP supports.
	// Valid types include pairwise and public.
	SubjectTypesSupported []OpenidConfigurationSubjectTypesSupportedItem `json:"subject_types_supported"`
	// REQUIRED. JSON array containing a list of the JWS signing algorithms (alg values) supported by the
	// OP for the ID Token. The algorithm RS256 MUST be included.
	IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
	// OPTIONAL. JSON array containing a list of the JWE encryption algorithms (alg values) supported by
	// the OP for the ID Token.
	IDTokenEncryptionAlgValuesSupported []string `json:"id_token_encryption_alg_values_supported"`
	// OPTIONAL. JSON array containing a list of the JWE encryption algorithms (enc values) supported by
	// the OP for the ID Token.
	IDTokenEncryptionEncValuesSupported []string `json:"id_token_encryption_enc_values_supported"`
	// OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values) supported by the
	// UserInfo Endpoint.
	UserinfoSigningAlgValuesSupported []string `json:"userinfo_signing_alg_values_supported"`
	// OPTIONAL. JSON array containing a list of the JWE encryption algorithms (alg values) supported by
	// the UserInfo Endpoint.
	UserinfoEncryptionAlgValuesSupported []string `json:"userinfo_encryption_alg_values_supported"`
	// OPTIONAL. JSON array containing a list of the JWE encryption algorithms (enc values) supported by
	// the UserInfo Endpoint.
	UserinfoEncryptionEncValuesSupported []string `json:"userinfo_encryption_enc_values_supported"`
	// OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values) supported by the
	// OP for Request Objects. Servers SHOULD support none and RS256.
	RequestObjectSigningAlgValuesSupported []string `json:"request_object_signing_alg_values_supported"`
	// OPTIONAL. JSON array containing a list of the JWE encryption algorithms (alg values) supported by
	// the OP for Request Objects.
	RequestObjectEncryptionAlgValuesSupported []string `json:"request_object_encryption_alg_values_supported"`
	// OPTIONAL. JSON array containing a list of the JWE encryption algorithms (enc values) supported by
	// the OP for Request Objects.
	RequestObjectEncryptionEncValuesSupported []string `json:"request_object_encryption_enc_values_supported"`
	// OPTIONAL. JSON array containing a list of Client Authentication methods supported by the Token
	// Endpoint. Default is client_secret_basic.
	TokenEndpointAuthMethodsSupported []OpenidConfigurationTokenEndpointAuthMethodsSupportedItem `json:"token_endpoint_auth_methods_supported"`
	// OPTIONAL. JSON array containing a list of the JWS signing algorithms supported by the Token
	// Endpoint for private_key_jwt and client_secret_jwt authentication. The value none MUST NOT be used.
	TokenEndpointAuthSigningAlgValuesSupported []string `json:"token_endpoint_auth_signing_alg_values_supported"`
	// OPTIONAL. JSON array containing a list of the display parameter values that the OpenID Provider
	// supports.
	DisplayValuesSupported []OpenidConfigurationDisplayValuesSupportedItem `json:"display_values_supported"`
	// OPTIONAL. JSON array containing a list of the Claim Types that the OpenID Provider supports.
	// Default is normal.
	ClaimTypesSupported []OpenidConfigurationClaimTypesSupportedItem `json:"claim_types_supported"`
	// RECOMMENDED. JSON array containing a list of the Claim Names of the Claims that the OpenID
	// Provider MAY be able to supply values for.
	ClaimsSupported []string `json:"claims_supported"`
	// OPTIONAL. URL of a page containing human-readable information for developers using the OpenID
	// Provider.
	ServiceDocumentation OptURI `json:"service_documentation"`
	// OPTIONAL. Languages and scripts supported for values in Claims being returned, as BCP47 language
	// tag values.
	ClaimsLocalesSupported []string `json:"claims_locales_supported"`
	// OPTIONAL. Languages and scripts supported for the user interface, as BCP47 language tag values.
	UILocalesSupported []string `json:"ui_locales_supported"`
	// OPTIONAL. Boolean value specifying whether the OP supports use of the claims parameter. Default is
	// false.
	ClaimsParameterSupported OptBool `json:"claims_parameter_supported"`
	// OPTIONAL. Boolean value specifying whether the OP supports use of the request parameter. Default
	// is false.
	RequestParameterSupported OptBool `json:"request_parameter_supported"`
	// OPTIONAL. Boolean value specifying whether the OP supports use of the request_uri parameter.
	// Default is true.
	RequestURIParameterSupported OptBool `json:"request_uri_parameter_supported"`
	// OPTIONAL. Boolean value specifying whether the OP requires any request_uri values used to be
	// pre-registered. Default is false.
	RequireRequestURIRegistration OptBool `json:"require_request_uri_registration"`
	// OPTIONAL. URL the OP provides to the person registering the Client about the OP's requirements on
	// how the Relying Party can use the data provided.
	OpPolicyURI OptURI `json:"op_policy_uri"`
	// OPTIONAL. URL the OP provides to the person registering the Client about the OpenID Provider's
	// terms of service.
	OpTosURI OptURI `json:"op_tos_uri"`
}

OpenID Connect configuration according to the OpenID Connect Discovery 1.0 specification. Ref: #

func (*OpenidConfiguration) Decode

func (s *OpenidConfiguration) Decode(d *jx.Decoder) error

Decode decodes OpenidConfiguration from json.

func (*OpenidConfiguration) Encode

func (s *OpenidConfiguration) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OpenidConfiguration) GetAcrValuesSupported

func (s *OpenidConfiguration) GetAcrValuesSupported() []string

GetAcrValuesSupported returns the value of AcrValuesSupported.

func (*OpenidConfiguration) GetAuthorizationEndpoint

func (s *OpenidConfiguration) GetAuthorizationEndpoint() url.URL

GetAuthorizationEndpoint returns the value of AuthorizationEndpoint.

func (*OpenidConfiguration) GetClaimTypesSupported

GetClaimTypesSupported returns the value of ClaimTypesSupported.

func (*OpenidConfiguration) GetClaimsLocalesSupported

func (s *OpenidConfiguration) GetClaimsLocalesSupported() []string

GetClaimsLocalesSupported returns the value of ClaimsLocalesSupported.

func (*OpenidConfiguration) GetClaimsParameterSupported

func (s *OpenidConfiguration) GetClaimsParameterSupported() OptBool

GetClaimsParameterSupported returns the value of ClaimsParameterSupported.

func (*OpenidConfiguration) GetClaimsSupported

func (s *OpenidConfiguration) GetClaimsSupported() []string

GetClaimsSupported returns the value of ClaimsSupported.

func (*OpenidConfiguration) GetDisplayValuesSupported

func (s *OpenidConfiguration) GetDisplayValuesSupported() []OpenidConfigurationDisplayValuesSupportedItem

GetDisplayValuesSupported returns the value of DisplayValuesSupported.

func (*OpenidConfiguration) GetGrantTypesSupported

func (s *OpenidConfiguration) GetGrantTypesSupported() []string

GetGrantTypesSupported returns the value of GrantTypesSupported.

func (*OpenidConfiguration) GetIDTokenEncryptionAlgValuesSupported

func (s *OpenidConfiguration) GetIDTokenEncryptionAlgValuesSupported() []string

GetIDTokenEncryptionAlgValuesSupported returns the value of IDTokenEncryptionAlgValuesSupported.

func (*OpenidConfiguration) GetIDTokenEncryptionEncValuesSupported

func (s *OpenidConfiguration) GetIDTokenEncryptionEncValuesSupported() []string

GetIDTokenEncryptionEncValuesSupported returns the value of IDTokenEncryptionEncValuesSupported.

func (*OpenidConfiguration) GetIDTokenSigningAlgValuesSupported

func (s *OpenidConfiguration) GetIDTokenSigningAlgValuesSupported() []string

GetIDTokenSigningAlgValuesSupported returns the value of IDTokenSigningAlgValuesSupported.

func (*OpenidConfiguration) GetIssuer

func (s *OpenidConfiguration) GetIssuer() url.URL

GetIssuer returns the value of Issuer.

func (*OpenidConfiguration) GetJwksURI

func (s *OpenidConfiguration) GetJwksURI() url.URL

GetJwksURI returns the value of JwksURI.

func (*OpenidConfiguration) GetOpPolicyURI

func (s *OpenidConfiguration) GetOpPolicyURI() OptURI

GetOpPolicyURI returns the value of OpPolicyURI.

func (*OpenidConfiguration) GetOpTosURI

func (s *OpenidConfiguration) GetOpTosURI() OptURI

GetOpTosURI returns the value of OpTosURI.

func (*OpenidConfiguration) GetRegistrationEndpoint

func (s *OpenidConfiguration) GetRegistrationEndpoint() OptURI

GetRegistrationEndpoint returns the value of RegistrationEndpoint.

func (*OpenidConfiguration) GetRequestObjectEncryptionAlgValuesSupported

func (s *OpenidConfiguration) GetRequestObjectEncryptionAlgValuesSupported() []string

GetRequestObjectEncryptionAlgValuesSupported returns the value of RequestObjectEncryptionAlgValuesSupported.

func (*OpenidConfiguration) GetRequestObjectEncryptionEncValuesSupported

func (s *OpenidConfiguration) GetRequestObjectEncryptionEncValuesSupported() []string

GetRequestObjectEncryptionEncValuesSupported returns the value of RequestObjectEncryptionEncValuesSupported.

func (*OpenidConfiguration) GetRequestObjectSigningAlgValuesSupported

func (s *OpenidConfiguration) GetRequestObjectSigningAlgValuesSupported() []string

GetRequestObjectSigningAlgValuesSupported returns the value of RequestObjectSigningAlgValuesSupported.

func (*OpenidConfiguration) GetRequestParameterSupported

func (s *OpenidConfiguration) GetRequestParameterSupported() OptBool

GetRequestParameterSupported returns the value of RequestParameterSupported.

func (*OpenidConfiguration) GetRequestURIParameterSupported

func (s *OpenidConfiguration) GetRequestURIParameterSupported() OptBool

GetRequestURIParameterSupported returns the value of RequestURIParameterSupported.

func (*OpenidConfiguration) GetRequireRequestURIRegistration

func (s *OpenidConfiguration) GetRequireRequestURIRegistration() OptBool

GetRequireRequestURIRegistration returns the value of RequireRequestURIRegistration.

func (*OpenidConfiguration) GetResponseModesSupported

func (s *OpenidConfiguration) GetResponseModesSupported() []string

GetResponseModesSupported returns the value of ResponseModesSupported.

func (*OpenidConfiguration) GetResponseTypesSupported

func (s *OpenidConfiguration) GetResponseTypesSupported() []string

GetResponseTypesSupported returns the value of ResponseTypesSupported.

func (*OpenidConfiguration) GetScopesSupported

func (s *OpenidConfiguration) GetScopesSupported() []string

GetScopesSupported returns the value of ScopesSupported.

func (*OpenidConfiguration) GetServiceDocumentation

func (s *OpenidConfiguration) GetServiceDocumentation() OptURI

GetServiceDocumentation returns the value of ServiceDocumentation.

func (*OpenidConfiguration) GetSubjectTypesSupported

func (s *OpenidConfiguration) GetSubjectTypesSupported() []OpenidConfigurationSubjectTypesSupportedItem

GetSubjectTypesSupported returns the value of SubjectTypesSupported.

func (*OpenidConfiguration) GetTokenEndpoint

func (s *OpenidConfiguration) GetTokenEndpoint() OptURI

GetTokenEndpoint returns the value of TokenEndpoint.

func (*OpenidConfiguration) GetTokenEndpointAuthMethodsSupported

func (s *OpenidConfiguration) GetTokenEndpointAuthMethodsSupported() []OpenidConfigurationTokenEndpointAuthMethodsSupportedItem

GetTokenEndpointAuthMethodsSupported returns the value of TokenEndpointAuthMethodsSupported.

func (*OpenidConfiguration) GetTokenEndpointAuthSigningAlgValuesSupported

func (s *OpenidConfiguration) GetTokenEndpointAuthSigningAlgValuesSupported() []string

GetTokenEndpointAuthSigningAlgValuesSupported returns the value of TokenEndpointAuthSigningAlgValuesSupported.

func (*OpenidConfiguration) GetUILocalesSupported

func (s *OpenidConfiguration) GetUILocalesSupported() []string

GetUILocalesSupported returns the value of UILocalesSupported.

func (*OpenidConfiguration) GetUserinfoEncryptionAlgValuesSupported

func (s *OpenidConfiguration) GetUserinfoEncryptionAlgValuesSupported() []string

GetUserinfoEncryptionAlgValuesSupported returns the value of UserinfoEncryptionAlgValuesSupported.

func (*OpenidConfiguration) GetUserinfoEncryptionEncValuesSupported

func (s *OpenidConfiguration) GetUserinfoEncryptionEncValuesSupported() []string

GetUserinfoEncryptionEncValuesSupported returns the value of UserinfoEncryptionEncValuesSupported.

func (*OpenidConfiguration) GetUserinfoEndpoint

func (s *OpenidConfiguration) GetUserinfoEndpoint() OptURI

GetUserinfoEndpoint returns the value of UserinfoEndpoint.

func (*OpenidConfiguration) GetUserinfoSigningAlgValuesSupported

func (s *OpenidConfiguration) GetUserinfoSigningAlgValuesSupported() []string

GetUserinfoSigningAlgValuesSupported returns the value of UserinfoSigningAlgValuesSupported.

func (*OpenidConfiguration) MarshalJSON

func (s *OpenidConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OpenidConfiguration) SetAcrValuesSupported

func (s *OpenidConfiguration) SetAcrValuesSupported(val []string)

SetAcrValuesSupported sets the value of AcrValuesSupported.

func (*OpenidConfiguration) SetAuthorizationEndpoint

func (s *OpenidConfiguration) SetAuthorizationEndpoint(val url.URL)

SetAuthorizationEndpoint sets the value of AuthorizationEndpoint.

func (*OpenidConfiguration) SetClaimTypesSupported

func (s *OpenidConfiguration) SetClaimTypesSupported(val []OpenidConfigurationClaimTypesSupportedItem)

SetClaimTypesSupported sets the value of ClaimTypesSupported.

func (*OpenidConfiguration) SetClaimsLocalesSupported

func (s *OpenidConfiguration) SetClaimsLocalesSupported(val []string)

SetClaimsLocalesSupported sets the value of ClaimsLocalesSupported.

func (*OpenidConfiguration) SetClaimsParameterSupported

func (s *OpenidConfiguration) SetClaimsParameterSupported(val OptBool)

SetClaimsParameterSupported sets the value of ClaimsParameterSupported.

func (*OpenidConfiguration) SetClaimsSupported

func (s *OpenidConfiguration) SetClaimsSupported(val []string)

SetClaimsSupported sets the value of ClaimsSupported.

func (*OpenidConfiguration) SetDisplayValuesSupported

func (s *OpenidConfiguration) SetDisplayValuesSupported(val []OpenidConfigurationDisplayValuesSupportedItem)

SetDisplayValuesSupported sets the value of DisplayValuesSupported.

func (*OpenidConfiguration) SetGrantTypesSupported

func (s *OpenidConfiguration) SetGrantTypesSupported(val []string)

SetGrantTypesSupported sets the value of GrantTypesSupported.

func (*OpenidConfiguration) SetIDTokenEncryptionAlgValuesSupported

func (s *OpenidConfiguration) SetIDTokenEncryptionAlgValuesSupported(val []string)

SetIDTokenEncryptionAlgValuesSupported sets the value of IDTokenEncryptionAlgValuesSupported.

func (*OpenidConfiguration) SetIDTokenEncryptionEncValuesSupported

func (s *OpenidConfiguration) SetIDTokenEncryptionEncValuesSupported(val []string)

SetIDTokenEncryptionEncValuesSupported sets the value of IDTokenEncryptionEncValuesSupported.

func (*OpenidConfiguration) SetIDTokenSigningAlgValuesSupported

func (s *OpenidConfiguration) SetIDTokenSigningAlgValuesSupported(val []string)

SetIDTokenSigningAlgValuesSupported sets the value of IDTokenSigningAlgValuesSupported.

func (*OpenidConfiguration) SetIssuer

func (s *OpenidConfiguration) SetIssuer(val url.URL)

SetIssuer sets the value of Issuer.

func (*OpenidConfiguration) SetJwksURI

func (s *OpenidConfiguration) SetJwksURI(val url.URL)

SetJwksURI sets the value of JwksURI.

func (*OpenidConfiguration) SetOpPolicyURI

func (s *OpenidConfiguration) SetOpPolicyURI(val OptURI)

SetOpPolicyURI sets the value of OpPolicyURI.

func (*OpenidConfiguration) SetOpTosURI

func (s *OpenidConfiguration) SetOpTosURI(val OptURI)

SetOpTosURI sets the value of OpTosURI.

func (*OpenidConfiguration) SetRegistrationEndpoint

func (s *OpenidConfiguration) SetRegistrationEndpoint(val OptURI)

SetRegistrationEndpoint sets the value of RegistrationEndpoint.

func (*OpenidConfiguration) SetRequestObjectEncryptionAlgValuesSupported

func (s *OpenidConfiguration) SetRequestObjectEncryptionAlgValuesSupported(val []string)

SetRequestObjectEncryptionAlgValuesSupported sets the value of RequestObjectEncryptionAlgValuesSupported.

func (*OpenidConfiguration) SetRequestObjectEncryptionEncValuesSupported

func (s *OpenidConfiguration) SetRequestObjectEncryptionEncValuesSupported(val []string)

SetRequestObjectEncryptionEncValuesSupported sets the value of RequestObjectEncryptionEncValuesSupported.

func (*OpenidConfiguration) SetRequestObjectSigningAlgValuesSupported

func (s *OpenidConfiguration) SetRequestObjectSigningAlgValuesSupported(val []string)

SetRequestObjectSigningAlgValuesSupported sets the value of RequestObjectSigningAlgValuesSupported.

func (*OpenidConfiguration) SetRequestParameterSupported

func (s *OpenidConfiguration) SetRequestParameterSupported(val OptBool)

SetRequestParameterSupported sets the value of RequestParameterSupported.

func (*OpenidConfiguration) SetRequestURIParameterSupported

func (s *OpenidConfiguration) SetRequestURIParameterSupported(val OptBool)

SetRequestURIParameterSupported sets the value of RequestURIParameterSupported.

func (*OpenidConfiguration) SetRequireRequestURIRegistration

func (s *OpenidConfiguration) SetRequireRequestURIRegistration(val OptBool)

SetRequireRequestURIRegistration sets the value of RequireRequestURIRegistration.

func (*OpenidConfiguration) SetResponseModesSupported

func (s *OpenidConfiguration) SetResponseModesSupported(val []string)

SetResponseModesSupported sets the value of ResponseModesSupported.

func (*OpenidConfiguration) SetResponseTypesSupported

func (s *OpenidConfiguration) SetResponseTypesSupported(val []string)

SetResponseTypesSupported sets the value of ResponseTypesSupported.

func (*OpenidConfiguration) SetScopesSupported

func (s *OpenidConfiguration) SetScopesSupported(val []string)

SetScopesSupported sets the value of ScopesSupported.

func (*OpenidConfiguration) SetServiceDocumentation

func (s *OpenidConfiguration) SetServiceDocumentation(val OptURI)

SetServiceDocumentation sets the value of ServiceDocumentation.

func (*OpenidConfiguration) SetSubjectTypesSupported

func (s *OpenidConfiguration) SetSubjectTypesSupported(val []OpenidConfigurationSubjectTypesSupportedItem)

SetSubjectTypesSupported sets the value of SubjectTypesSupported.

func (*OpenidConfiguration) SetTokenEndpoint

func (s *OpenidConfiguration) SetTokenEndpoint(val OptURI)

SetTokenEndpoint sets the value of TokenEndpoint.

func (*OpenidConfiguration) SetTokenEndpointAuthMethodsSupported

func (s *OpenidConfiguration) SetTokenEndpointAuthMethodsSupported(val []OpenidConfigurationTokenEndpointAuthMethodsSupportedItem)

SetTokenEndpointAuthMethodsSupported sets the value of TokenEndpointAuthMethodsSupported.

func (*OpenidConfiguration) SetTokenEndpointAuthSigningAlgValuesSupported

func (s *OpenidConfiguration) SetTokenEndpointAuthSigningAlgValuesSupported(val []string)

SetTokenEndpointAuthSigningAlgValuesSupported sets the value of TokenEndpointAuthSigningAlgValuesSupported.

func (*OpenidConfiguration) SetUILocalesSupported

func (s *OpenidConfiguration) SetUILocalesSupported(val []string)

SetUILocalesSupported sets the value of UILocalesSupported.

func (*OpenidConfiguration) SetUserinfoEncryptionAlgValuesSupported

func (s *OpenidConfiguration) SetUserinfoEncryptionAlgValuesSupported(val []string)

SetUserinfoEncryptionAlgValuesSupported sets the value of UserinfoEncryptionAlgValuesSupported.

func (*OpenidConfiguration) SetUserinfoEncryptionEncValuesSupported

func (s *OpenidConfiguration) SetUserinfoEncryptionEncValuesSupported(val []string)

SetUserinfoEncryptionEncValuesSupported sets the value of UserinfoEncryptionEncValuesSupported.

func (*OpenidConfiguration) SetUserinfoEndpoint

func (s *OpenidConfiguration) SetUserinfoEndpoint(val OptURI)

SetUserinfoEndpoint sets the value of UserinfoEndpoint.

func (*OpenidConfiguration) SetUserinfoSigningAlgValuesSupported

func (s *OpenidConfiguration) SetUserinfoSigningAlgValuesSupported(val []string)

SetUserinfoSigningAlgValuesSupported sets the value of UserinfoSigningAlgValuesSupported.

func (*OpenidConfiguration) UnmarshalJSON

func (s *OpenidConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OpenidConfiguration) Validate

func (s *OpenidConfiguration) Validate() error

type OpenidConfigurationClaimTypesSupportedItem

type OpenidConfigurationClaimTypesSupportedItem string
const (
	OpenidConfigurationClaimTypesSupportedItemNormal      OpenidConfigurationClaimTypesSupportedItem = "normal"
	OpenidConfigurationClaimTypesSupportedItemAggregated  OpenidConfigurationClaimTypesSupportedItem = "aggregated"
	OpenidConfigurationClaimTypesSupportedItemDistributed OpenidConfigurationClaimTypesSupportedItem = "distributed"
)

func (OpenidConfigurationClaimTypesSupportedItem) AllValues

AllValues returns all OpenidConfigurationClaimTypesSupportedItem values.

func (*OpenidConfigurationClaimTypesSupportedItem) Decode

Decode decodes OpenidConfigurationClaimTypesSupportedItem from json.

func (OpenidConfigurationClaimTypesSupportedItem) Encode

Encode encodes OpenidConfigurationClaimTypesSupportedItem as json.

func (OpenidConfigurationClaimTypesSupportedItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OpenidConfigurationClaimTypesSupportedItem) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*OpenidConfigurationClaimTypesSupportedItem) UnmarshalJSON

func (s *OpenidConfigurationClaimTypesSupportedItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OpenidConfigurationClaimTypesSupportedItem) UnmarshalText

func (s *OpenidConfigurationClaimTypesSupportedItem) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OpenidConfigurationClaimTypesSupportedItem) Validate

type OpenidConfigurationDisplayValuesSupportedItem

type OpenidConfigurationDisplayValuesSupportedItem string
const (
	OpenidConfigurationDisplayValuesSupportedItemPage  OpenidConfigurationDisplayValuesSupportedItem = "page"
	OpenidConfigurationDisplayValuesSupportedItemPopup OpenidConfigurationDisplayValuesSupportedItem = "popup"
	OpenidConfigurationDisplayValuesSupportedItemTouch OpenidConfigurationDisplayValuesSupportedItem = "touch"
	OpenidConfigurationDisplayValuesSupportedItemWap   OpenidConfigurationDisplayValuesSupportedItem = "wap"
)

func (OpenidConfigurationDisplayValuesSupportedItem) AllValues

AllValues returns all OpenidConfigurationDisplayValuesSupportedItem values.

func (*OpenidConfigurationDisplayValuesSupportedItem) Decode

Decode decodes OpenidConfigurationDisplayValuesSupportedItem from json.

func (OpenidConfigurationDisplayValuesSupportedItem) Encode

Encode encodes OpenidConfigurationDisplayValuesSupportedItem as json.

func (OpenidConfigurationDisplayValuesSupportedItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OpenidConfigurationDisplayValuesSupportedItem) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*OpenidConfigurationDisplayValuesSupportedItem) UnmarshalJSON

func (s *OpenidConfigurationDisplayValuesSupportedItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OpenidConfigurationDisplayValuesSupportedItem) UnmarshalText

func (s *OpenidConfigurationDisplayValuesSupportedItem) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OpenidConfigurationDisplayValuesSupportedItem) Validate

type OpenidConfigurationSubjectTypesSupportedItem

type OpenidConfigurationSubjectTypesSupportedItem string
const (
	OpenidConfigurationSubjectTypesSupportedItemPublic   OpenidConfigurationSubjectTypesSupportedItem = "public"
	OpenidConfigurationSubjectTypesSupportedItemPairwise OpenidConfigurationSubjectTypesSupportedItem = "pairwise"
)

func (OpenidConfigurationSubjectTypesSupportedItem) AllValues

AllValues returns all OpenidConfigurationSubjectTypesSupportedItem values.

func (*OpenidConfigurationSubjectTypesSupportedItem) Decode

Decode decodes OpenidConfigurationSubjectTypesSupportedItem from json.

func (OpenidConfigurationSubjectTypesSupportedItem) Encode

Encode encodes OpenidConfigurationSubjectTypesSupportedItem as json.

func (OpenidConfigurationSubjectTypesSupportedItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OpenidConfigurationSubjectTypesSupportedItem) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*OpenidConfigurationSubjectTypesSupportedItem) UnmarshalJSON

func (s *OpenidConfigurationSubjectTypesSupportedItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OpenidConfigurationSubjectTypesSupportedItem) UnmarshalText

func (s *OpenidConfigurationSubjectTypesSupportedItem) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OpenidConfigurationSubjectTypesSupportedItem) Validate

type OpenidConfigurationTokenEndpointAuthMethodsSupportedItem

type OpenidConfigurationTokenEndpointAuthMethodsSupportedItem string
const (
	OpenidConfigurationTokenEndpointAuthMethodsSupportedItemClientSecretPost  OpenidConfigurationTokenEndpointAuthMethodsSupportedItem = "client_secret_post"
	OpenidConfigurationTokenEndpointAuthMethodsSupportedItemClientSecretBasic OpenidConfigurationTokenEndpointAuthMethodsSupportedItem = "client_secret_basic"
	OpenidConfigurationTokenEndpointAuthMethodsSupportedItemClientSecretJwt   OpenidConfigurationTokenEndpointAuthMethodsSupportedItem = "client_secret_jwt"
	OpenidConfigurationTokenEndpointAuthMethodsSupportedItemPrivateKeyJwt     OpenidConfigurationTokenEndpointAuthMethodsSupportedItem = "private_key_jwt"
)

func (OpenidConfigurationTokenEndpointAuthMethodsSupportedItem) AllValues

AllValues returns all OpenidConfigurationTokenEndpointAuthMethodsSupportedItem values.

func (*OpenidConfigurationTokenEndpointAuthMethodsSupportedItem) Decode

Decode decodes OpenidConfigurationTokenEndpointAuthMethodsSupportedItem from json.

func (OpenidConfigurationTokenEndpointAuthMethodsSupportedItem) Encode

Encode encodes OpenidConfigurationTokenEndpointAuthMethodsSupportedItem as json.

func (OpenidConfigurationTokenEndpointAuthMethodsSupportedItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OpenidConfigurationTokenEndpointAuthMethodsSupportedItem) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*OpenidConfigurationTokenEndpointAuthMethodsSupportedItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OpenidConfigurationTokenEndpointAuthMethodsSupportedItem) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (OpenidConfigurationTokenEndpointAuthMethodsSupportedItem) Validate

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	AuthorizeDeviceOperation        OperationName = "AuthorizeDevice"
	AuthorizeGetOperation           OperationName = "AuthorizeGet"
	CreateAuthAttemptOperation      OperationName = "CreateAuthAttempt"
	CreateFlowOperation             OperationName = "CreateFlow"
	CreateFlowDefinitionOperation   OperationName = "CreateFlowDefinition"
	CreateHandoffOperation          OperationName = "CreateHandoff"
	CreateProjectOperation          OperationName = "CreateProject"
	CreateSchemaOperation           OperationName = "CreateSchema"
	CreateSessionOperation          OperationName = "CreateSession"
	CreateTeamOperation             OperationName = "CreateTeam"
	CreateUserOperation             OperationName = "CreateUser"
	DeleteFlowDefinitionOperation   OperationName = "DeleteFlowDefinition"
	EndSessionOperation             OperationName = "EndSession"
	ExchangeHandoffOperation        OperationName = "ExchangeHandoff"
	GetAuthAttemptOperation         OperationName = "GetAuthAttempt"
	GetFlowDefinitionOperation      OperationName = "GetFlowDefinition"
	GetFlowStepOperation            OperationName = "GetFlowStep"
	GetHealthOperation              OperationName = "GetHealth"
	GetKeysOperation                OperationName = "GetKeys"
	GetLiveOperation                OperationName = "GetLive"
	GetMySessionOperation           OperationName = "GetMySession"
	GetMyUserOperation              OperationName = "GetMyUser"
	GetOpenIDConfigurationOperation OperationName = "GetOpenIDConfiguration"
	GetProjectOperation             OperationName = "GetProject"
	GetReadyOperation               OperationName = "GetReady"
	GetSchemaByIdOperation          OperationName = "GetSchemaById"
	GetSessionOperation             OperationName = "GetSession"
	GetTeamOperation                OperationName = "GetTeam"
	GetTokenOperation               OperationName = "GetToken"
	GetUserByIDOperation            OperationName = "GetUserByID"
	GetUserInfoOperation            OperationName = "GetUserInfo"
	IntrospectOperation             OperationName = "Introspect"
	IssueChallengeOperation         OperationName = "IssueChallenge"
	ListFlowDefinitionsOperation    OperationName = "ListFlowDefinitions"
	ListSessionsOperation           OperationName = "ListSessions"
	ListUsersOperation              OperationName = "ListUsers"
	RevokeMySessionOperation        OperationName = "RevokeMySession"
	RevokeSessionOperation          OperationName = "RevokeSession"
	RevokeTokenOperation            OperationName = "RevokeToken"
	SetUserPasswordOperation        OperationName = "SetUserPassword"
	SubmitFlowEventOperation        OperationName = "SubmitFlowEvent"
	SubmitFlowStepOperation         OperationName = "SubmitFlowStep"
	UpdateFlowDefinitionOperation   OperationName = "UpdateFlowDefinition"
	VerifyChallengeProofOperation   OperationName = "VerifyChallengeProof"
)

type OptAttAlreadyCompletedDetails

type OptAttAlreadyCompletedDetails struct {
	Value AttAlreadyCompletedDetails
	Set   bool
}

OptAttAlreadyCompletedDetails is optional AttAlreadyCompletedDetails.

func NewOptAttAlreadyCompletedDetails

func NewOptAttAlreadyCompletedDetails(v AttAlreadyCompletedDetails) OptAttAlreadyCompletedDetails

NewOptAttAlreadyCompletedDetails returns new OptAttAlreadyCompletedDetails with value set to v.

func (*OptAttAlreadyCompletedDetails) Decode

Decode decodes AttAlreadyCompletedDetails from json.

func (OptAttAlreadyCompletedDetails) Encode

Encode encodes AttAlreadyCompletedDetails as json.

func (OptAttAlreadyCompletedDetails) Get

Get returns value and boolean that denotes whether value was set.

func (OptAttAlreadyCompletedDetails) IsSet

IsSet returns true if OptAttAlreadyCompletedDetails was set.

func (OptAttAlreadyCompletedDetails) MarshalJSON

func (s OptAttAlreadyCompletedDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAttAlreadyCompletedDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptAttAlreadyCompletedDetails) Reset

func (o *OptAttAlreadyCompletedDetails) Reset()

Reset unsets value.

func (*OptAttAlreadyCompletedDetails) SetTo

SetTo sets value to v.

func (*OptAttAlreadyCompletedDetails) UnmarshalJSON

func (s *OptAttAlreadyCompletedDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAttInvalidRequestDetails

type OptAttInvalidRequestDetails struct {
	Value AttInvalidRequestDetails
	Set   bool
}

OptAttInvalidRequestDetails is optional AttInvalidRequestDetails.

func NewOptAttInvalidRequestDetails

func NewOptAttInvalidRequestDetails(v AttInvalidRequestDetails) OptAttInvalidRequestDetails

NewOptAttInvalidRequestDetails returns new OptAttInvalidRequestDetails with value set to v.

func (*OptAttInvalidRequestDetails) Decode

Decode decodes AttInvalidRequestDetails from json.

func (OptAttInvalidRequestDetails) Encode

func (o OptAttInvalidRequestDetails) Encode(e *jx.Encoder)

Encode encodes AttInvalidRequestDetails as json.

func (OptAttInvalidRequestDetails) Get

Get returns value and boolean that denotes whether value was set.

func (OptAttInvalidRequestDetails) IsSet

IsSet returns true if OptAttInvalidRequestDetails was set.

func (OptAttInvalidRequestDetails) MarshalJSON

func (s OptAttInvalidRequestDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAttInvalidRequestDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptAttInvalidRequestDetails) Reset

func (o *OptAttInvalidRequestDetails) Reset()

Reset unsets value.

func (*OptAttInvalidRequestDetails) SetTo

SetTo sets value to v.

func (*OptAttInvalidRequestDetails) UnmarshalJSON

func (s *OptAttInvalidRequestDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAttInvalidStateDetails

type OptAttInvalidStateDetails struct {
	Value AttInvalidStateDetails
	Set   bool
}

OptAttInvalidStateDetails is optional AttInvalidStateDetails.

func NewOptAttInvalidStateDetails

func NewOptAttInvalidStateDetails(v AttInvalidStateDetails) OptAttInvalidStateDetails

NewOptAttInvalidStateDetails returns new OptAttInvalidStateDetails with value set to v.

func (*OptAttInvalidStateDetails) Decode

func (o *OptAttInvalidStateDetails) Decode(d *jx.Decoder) error

Decode decodes AttInvalidStateDetails from json.

func (OptAttInvalidStateDetails) Encode

func (o OptAttInvalidStateDetails) Encode(e *jx.Encoder)

Encode encodes AttInvalidStateDetails as json.

func (OptAttInvalidStateDetails) Get

Get returns value and boolean that denotes whether value was set.

func (OptAttInvalidStateDetails) IsSet

func (o OptAttInvalidStateDetails) IsSet() bool

IsSet returns true if OptAttInvalidStateDetails was set.

func (OptAttInvalidStateDetails) MarshalJSON

func (s OptAttInvalidStateDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAttInvalidStateDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptAttInvalidStateDetails) Reset

func (o *OptAttInvalidStateDetails) Reset()

Reset unsets value.

func (*OptAttInvalidStateDetails) SetTo

SetTo sets value to v.

func (*OptAttInvalidStateDetails) UnmarshalJSON

func (s *OptAttInvalidStateDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAttNotCompletedDetails

type OptAttNotCompletedDetails struct {
	Value AttNotCompletedDetails
	Set   bool
}

OptAttNotCompletedDetails is optional AttNotCompletedDetails.

func NewOptAttNotCompletedDetails

func NewOptAttNotCompletedDetails(v AttNotCompletedDetails) OptAttNotCompletedDetails

NewOptAttNotCompletedDetails returns new OptAttNotCompletedDetails with value set to v.

func (*OptAttNotCompletedDetails) Decode

func (o *OptAttNotCompletedDetails) Decode(d *jx.Decoder) error

Decode decodes AttNotCompletedDetails from json.

func (OptAttNotCompletedDetails) Encode

func (o OptAttNotCompletedDetails) Encode(e *jx.Encoder)

Encode encodes AttNotCompletedDetails as json.

func (OptAttNotCompletedDetails) Get

Get returns value and boolean that denotes whether value was set.

func (OptAttNotCompletedDetails) IsSet

func (o OptAttNotCompletedDetails) IsSet() bool

IsSet returns true if OptAttNotCompletedDetails was set.

func (OptAttNotCompletedDetails) MarshalJSON

func (s OptAttNotCompletedDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAttNotCompletedDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptAttNotCompletedDetails) Reset

func (o *OptAttNotCompletedDetails) Reset()

Reset unsets value.

func (*OptAttNotCompletedDetails) SetTo

SetTo sets value to v.

func (*OptAttNotCompletedDetails) UnmarshalJSON

func (s *OptAttNotCompletedDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAttNotFoundDetails

type OptAttNotFoundDetails struct {
	Value AttNotFoundDetails
	Set   bool
}

OptAttNotFoundDetails is optional AttNotFoundDetails.

func NewOptAttNotFoundDetails

func NewOptAttNotFoundDetails(v AttNotFoundDetails) OptAttNotFoundDetails

NewOptAttNotFoundDetails returns new OptAttNotFoundDetails with value set to v.

func (*OptAttNotFoundDetails) Decode

func (o *OptAttNotFoundDetails) Decode(d *jx.Decoder) error

Decode decodes AttNotFoundDetails from json.

func (OptAttNotFoundDetails) Encode

func (o OptAttNotFoundDetails) Encode(e *jx.Encoder)

Encode encodes AttNotFoundDetails as json.

func (OptAttNotFoundDetails) Get

Get returns value and boolean that denotes whether value was set.

func (OptAttNotFoundDetails) IsSet

func (o OptAttNotFoundDetails) IsSet() bool

IsSet returns true if OptAttNotFoundDetails was set.

func (OptAttNotFoundDetails) MarshalJSON

func (s OptAttNotFoundDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAttNotFoundDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptAttNotFoundDetails) Reset

func (o *OptAttNotFoundDetails) Reset()

Reset unsets value.

func (*OptAttNotFoundDetails) SetTo

SetTo sets value to v.

func (*OptAttNotFoundDetails) UnmarshalJSON

func (s *OptAttNotFoundDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAttProofRejectedDetails

type OptAttProofRejectedDetails struct {
	Value AttProofRejectedDetails
	Set   bool
}

OptAttProofRejectedDetails is optional AttProofRejectedDetails.

func NewOptAttProofRejectedDetails

func NewOptAttProofRejectedDetails(v AttProofRejectedDetails) OptAttProofRejectedDetails

NewOptAttProofRejectedDetails returns new OptAttProofRejectedDetails with value set to v.

func (*OptAttProofRejectedDetails) Decode

Decode decodes AttProofRejectedDetails from json.

func (OptAttProofRejectedDetails) Encode

func (o OptAttProofRejectedDetails) Encode(e *jx.Encoder)

Encode encodes AttProofRejectedDetails as json.

func (OptAttProofRejectedDetails) Get

Get returns value and boolean that denotes whether value was set.

func (OptAttProofRejectedDetails) IsSet

func (o OptAttProofRejectedDetails) IsSet() bool

IsSet returns true if OptAttProofRejectedDetails was set.

func (OptAttProofRejectedDetails) MarshalJSON

func (s OptAttProofRejectedDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAttProofRejectedDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptAttProofRejectedDetails) Reset

func (o *OptAttProofRejectedDetails) Reset()

Reset unsets value.

func (*OptAttProofRejectedDetails) SetTo

SetTo sets value to v.

func (*OptAttProofRejectedDetails) UnmarshalJSON

func (s *OptAttProofRejectedDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAttStaleChallengeDetails

type OptAttStaleChallengeDetails struct {
	Value AttStaleChallengeDetails
	Set   bool
}

OptAttStaleChallengeDetails is optional AttStaleChallengeDetails.

func NewOptAttStaleChallengeDetails

func NewOptAttStaleChallengeDetails(v AttStaleChallengeDetails) OptAttStaleChallengeDetails

NewOptAttStaleChallengeDetails returns new OptAttStaleChallengeDetails with value set to v.

func (*OptAttStaleChallengeDetails) Decode

Decode decodes AttStaleChallengeDetails from json.

func (OptAttStaleChallengeDetails) Encode

func (o OptAttStaleChallengeDetails) Encode(e *jx.Encoder)

Encode encodes AttStaleChallengeDetails as json.

func (OptAttStaleChallengeDetails) Get

Get returns value and boolean that denotes whether value was set.

func (OptAttStaleChallengeDetails) IsSet

IsSet returns true if OptAttStaleChallengeDetails was set.

func (OptAttStaleChallengeDetails) MarshalJSON

func (s OptAttStaleChallengeDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAttStaleChallengeDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptAttStaleChallengeDetails) Reset

func (o *OptAttStaleChallengeDetails) Reset()

Reset unsets value.

func (*OptAttStaleChallengeDetails) SetTo

SetTo sets value to v.

func (*OptAttStaleChallengeDetails) UnmarshalJSON

func (s *OptAttStaleChallengeDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAuthMethod

type OptAuthMethod struct {
	Value AuthMethod
	Set   bool
}

OptAuthMethod is optional AuthMethod.

func NewOptAuthMethod

func NewOptAuthMethod(v AuthMethod) OptAuthMethod

NewOptAuthMethod returns new OptAuthMethod with value set to v.

func (*OptAuthMethod) Decode

func (o *OptAuthMethod) Decode(d *jx.Decoder) error

Decode decodes AuthMethod from json.

func (OptAuthMethod) Encode

func (o OptAuthMethod) Encode(e *jx.Encoder)

Encode encodes AuthMethod as json.

func (OptAuthMethod) Get

func (o OptAuthMethod) Get() (v AuthMethod, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAuthMethod) IsSet

func (o OptAuthMethod) IsSet() bool

IsSet returns true if OptAuthMethod was set.

func (OptAuthMethod) MarshalJSON

func (s OptAuthMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAuthMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptAuthMethod) Reset

func (o *OptAuthMethod) Reset()

Reset unsets value.

func (*OptAuthMethod) SetTo

func (o *OptAuthMethod) SetTo(v AuthMethod)

SetTo sets value to v.

func (*OptAuthMethod) UnmarshalJSON

func (s *OptAuthMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBranding

type OptBranding struct {
	Value Branding
	Set   bool
}

OptBranding is optional Branding.

func NewOptBranding

func NewOptBranding(v Branding) OptBranding

NewOptBranding returns new OptBranding with value set to v.

func (*OptBranding) Decode

func (o *OptBranding) Decode(d *jx.Decoder) error

Decode decodes Branding from json.

func (OptBranding) Encode

func (o OptBranding) Encode(e *jx.Encoder)

Encode encodes Branding as json.

func (OptBranding) Get

func (o OptBranding) Get() (v Branding, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBranding) IsSet

func (o OptBranding) IsSet() bool

IsSet returns true if OptBranding was set.

func (OptBranding) MarshalJSON

func (s OptBranding) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBranding) Or

func (o OptBranding) Or(d Branding) Branding

Or returns value if set, or given parameter if does not.

func (*OptBranding) Reset

func (o *OptBranding) Reset()

Reset unsets value.

func (*OptBranding) SetTo

func (o *OptBranding) SetTo(v Branding)

SetTo sets value to v.

func (*OptBranding) UnmarshalJSON

func (s *OptBranding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBrandingLayout

type OptBrandingLayout struct {
	Value BrandingLayout
	Set   bool
}

OptBrandingLayout is optional BrandingLayout.

func NewOptBrandingLayout

func NewOptBrandingLayout(v BrandingLayout) OptBrandingLayout

NewOptBrandingLayout returns new OptBrandingLayout with value set to v.

func (*OptBrandingLayout) Decode

func (o *OptBrandingLayout) Decode(d *jx.Decoder) error

Decode decodes BrandingLayout from json.

func (OptBrandingLayout) Encode

func (o OptBrandingLayout) Encode(e *jx.Encoder)

Encode encodes BrandingLayout as json.

func (OptBrandingLayout) Get

func (o OptBrandingLayout) Get() (v BrandingLayout, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBrandingLayout) IsSet

func (o OptBrandingLayout) IsSet() bool

IsSet returns true if OptBrandingLayout was set.

func (OptBrandingLayout) MarshalJSON

func (s OptBrandingLayout) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBrandingLayout) Or

Or returns value if set, or given parameter if does not.

func (*OptBrandingLayout) Reset

func (o *OptBrandingLayout) Reset()

Reset unsets value.

func (*OptBrandingLayout) SetTo

func (o *OptBrandingLayout) SetTo(v BrandingLayout)

SetTo sets value to v.

func (*OptBrandingLayout) UnmarshalJSON

func (s *OptBrandingLayout) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptChallengeNonce

type OptChallengeNonce struct {
	Value ChallengeNonce
	Set   bool
}

OptChallengeNonce is optional ChallengeNonce.

func NewOptChallengeNonce

func NewOptChallengeNonce(v ChallengeNonce) OptChallengeNonce

NewOptChallengeNonce returns new OptChallengeNonce with value set to v.

func (*OptChallengeNonce) Decode

func (o *OptChallengeNonce) Decode(d *jx.Decoder) error

Decode decodes ChallengeNonce from json.

func (OptChallengeNonce) Encode

func (o OptChallengeNonce) Encode(e *jx.Encoder)

Encode encodes ChallengeNonce as json.

func (OptChallengeNonce) Get

func (o OptChallengeNonce) Get() (v ChallengeNonce, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptChallengeNonce) IsSet

func (o OptChallengeNonce) IsSet() bool

IsSet returns true if OptChallengeNonce was set.

func (OptChallengeNonce) MarshalJSON

func (s OptChallengeNonce) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptChallengeNonce) Or

Or returns value if set, or given parameter if does not.

func (*OptChallengeNonce) Reset

func (o *OptChallengeNonce) Reset()

Reset unsets value.

func (*OptChallengeNonce) SetTo

func (o *OptChallengeNonce) SetTo(v ChallengeNonce)

SetTo sets value to v.

func (*OptChallengeNonce) UnmarshalJSON

func (s *OptChallengeNonce) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptChallengeResponsePayload

type OptChallengeResponsePayload struct {
	Value ChallengeResponsePayload
	Set   bool
}

OptChallengeResponsePayload is optional ChallengeResponsePayload.

func NewOptChallengeResponsePayload

func NewOptChallengeResponsePayload(v ChallengeResponsePayload) OptChallengeResponsePayload

NewOptChallengeResponsePayload returns new OptChallengeResponsePayload with value set to v.

func (*OptChallengeResponsePayload) Decode

Decode decodes ChallengeResponsePayload from json.

func (OptChallengeResponsePayload) Encode

func (o OptChallengeResponsePayload) Encode(e *jx.Encoder)

Encode encodes ChallengeResponsePayload as json.

func (OptChallengeResponsePayload) Get

Get returns value and boolean that denotes whether value was set.

func (OptChallengeResponsePayload) IsSet

IsSet returns true if OptChallengeResponsePayload was set.

func (OptChallengeResponsePayload) MarshalJSON

func (s OptChallengeResponsePayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptChallengeResponsePayload) Or

Or returns value if set, or given parameter if does not.

func (*OptChallengeResponsePayload) Reset

func (o *OptChallengeResponsePayload) Reset()

Reset unsets value.

func (*OptChallengeResponsePayload) SetTo

SetTo sets value to v.

func (*OptChallengeResponsePayload) UnmarshalJSON

func (s *OptChallengeResponsePayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCompletedFactorPayload

type OptCompletedFactorPayload struct {
	Value CompletedFactorPayload
	Set   bool
}

OptCompletedFactorPayload is optional CompletedFactorPayload.

func NewOptCompletedFactorPayload

func NewOptCompletedFactorPayload(v CompletedFactorPayload) OptCompletedFactorPayload

NewOptCompletedFactorPayload returns new OptCompletedFactorPayload with value set to v.

func (*OptCompletedFactorPayload) Decode

func (o *OptCompletedFactorPayload) Decode(d *jx.Decoder) error

Decode decodes CompletedFactorPayload from json.

func (OptCompletedFactorPayload) Encode

func (o OptCompletedFactorPayload) Encode(e *jx.Encoder)

Encode encodes CompletedFactorPayload as json.

func (OptCompletedFactorPayload) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompletedFactorPayload) IsSet

func (o OptCompletedFactorPayload) IsSet() bool

IsSet returns true if OptCompletedFactorPayload was set.

func (OptCompletedFactorPayload) MarshalJSON

func (s OptCompletedFactorPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCompletedFactorPayload) Or

Or returns value if set, or given parameter if does not.

func (*OptCompletedFactorPayload) Reset

func (o *OptCompletedFactorPayload) Reset()

Reset unsets value.

func (*OptCompletedFactorPayload) SetTo

SetTo sets value to v.

func (*OptCompletedFactorPayload) UnmarshalJSON

func (s *OptCompletedFactorPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateSessionRequestUserAgent

type OptCreateSessionRequestUserAgent struct {
	Value CreateSessionRequestUserAgent
	Set   bool
}

OptCreateSessionRequestUserAgent is optional CreateSessionRequestUserAgent.

func NewOptCreateSessionRequestUserAgent

func NewOptCreateSessionRequestUserAgent(v CreateSessionRequestUserAgent) OptCreateSessionRequestUserAgent

NewOptCreateSessionRequestUserAgent returns new OptCreateSessionRequestUserAgent with value set to v.

func (*OptCreateSessionRequestUserAgent) Decode

Decode decodes CreateSessionRequestUserAgent from json.

func (OptCreateSessionRequestUserAgent) Encode

Encode encodes CreateSessionRequestUserAgent as json.

func (OptCreateSessionRequestUserAgent) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateSessionRequestUserAgent) IsSet

IsSet returns true if OptCreateSessionRequestUserAgent was set.

func (OptCreateSessionRequestUserAgent) MarshalJSON

func (s OptCreateSessionRequestUserAgent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateSessionRequestUserAgent) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateSessionRequestUserAgent) Reset

Reset unsets value.

func (*OptCreateSessionRequestUserAgent) SetTo

SetTo sets value to v.

func (*OptCreateSessionRequestUserAgent) UnmarshalJSON

func (s *OptCreateSessionRequestUserAgent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDuration

type OptDuration struct {
	Value ogenx.ISODuration
	Set   bool
}

OptDuration is optional ogenx.ISODuration.

func NewOptDuration

func NewOptDuration(v ogenx.ISODuration) OptDuration

NewOptDuration returns new OptDuration with value set to v.

func (*OptDuration) Decode

func (o *OptDuration) Decode(d *jx.Decoder, format func(*jx.Decoder) (ogenx.ISODuration, error)) error

Decode decodes ogenx.ISODuration from json.

func (OptDuration) Encode

func (o OptDuration) Encode(e *jx.Encoder, format func(*jx.Encoder, ogenx.ISODuration))

Encode encodes ogenx.ISODuration as json.

func (OptDuration) Get

func (o OptDuration) Get() (v ogenx.ISODuration, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDuration) IsSet

func (o OptDuration) IsSet() bool

IsSet returns true if OptDuration was set.

func (OptDuration) MarshalJSON

func (s OptDuration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDuration) Or

Or returns value if set, or given parameter if does not.

func (*OptDuration) Reset

func (o *OptDuration) Reset()

Reset unsets value.

func (*OptDuration) SetTo

func (o *OptDuration) SetTo(v ogenx.ISODuration)

SetTo sets value to v.

func (*OptDuration) UnmarshalJSON

func (s *OptDuration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptErrorDetailsDetails

type OptErrorDetailsDetails struct {
	Value ErrorDetailsDetails
	Set   bool
}

OptErrorDetailsDetails is optional ErrorDetailsDetails.

func NewOptErrorDetailsDetails

func NewOptErrorDetailsDetails(v ErrorDetailsDetails) OptErrorDetailsDetails

NewOptErrorDetailsDetails returns new OptErrorDetailsDetails with value set to v.

func (*OptErrorDetailsDetails) Decode

func (o *OptErrorDetailsDetails) Decode(d *jx.Decoder) error

Decode decodes ErrorDetailsDetails from json.

func (OptErrorDetailsDetails) Encode

func (o OptErrorDetailsDetails) Encode(e *jx.Encoder)

Encode encodes ErrorDetailsDetails as json.

func (OptErrorDetailsDetails) Get

Get returns value and boolean that denotes whether value was set.

func (OptErrorDetailsDetails) IsSet

func (o OptErrorDetailsDetails) IsSet() bool

IsSet returns true if OptErrorDetailsDetails was set.

func (OptErrorDetailsDetails) MarshalJSON

func (s OptErrorDetailsDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptErrorDetailsDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptErrorDetailsDetails) Reset

func (o *OptErrorDetailsDetails) Reset()

Reset unsets value.

func (*OptErrorDetailsDetails) SetTo

SetTo sets value to v.

func (*OptErrorDetailsDetails) UnmarshalJSON

func (s *OptErrorDetailsDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFieldValidation

type OptFieldValidation struct {
	Value FieldValidation
	Set   bool
}

OptFieldValidation is optional FieldValidation.

func NewOptFieldValidation

func NewOptFieldValidation(v FieldValidation) OptFieldValidation

NewOptFieldValidation returns new OptFieldValidation with value set to v.

func (*OptFieldValidation) Decode

func (o *OptFieldValidation) Decode(d *jx.Decoder) error

Decode decodes FieldValidation from json.

func (OptFieldValidation) Encode

func (o OptFieldValidation) Encode(e *jx.Encoder)

Encode encodes FieldValidation as json.

func (OptFieldValidation) Get

func (o OptFieldValidation) Get() (v FieldValidation, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFieldValidation) IsSet

func (o OptFieldValidation) IsSet() bool

IsSet returns true if OptFieldValidation was set.

func (OptFieldValidation) MarshalJSON

func (s OptFieldValidation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFieldValidation) Or

Or returns value if set, or given parameter if does not.

func (*OptFieldValidation) Reset

func (o *OptFieldValidation) Reset()

Reset unsets value.

func (*OptFieldValidation) SetTo

func (o *OptFieldValidation) SetTo(v FieldValidation)

SetTo sets value to v.

func (*OptFieldValidation) UnmarshalJSON

func (s *OptFieldValidation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFieldValidationFormat

type OptFieldValidationFormat struct {
	Value FieldValidationFormat
	Set   bool
}

OptFieldValidationFormat is optional FieldValidationFormat.

func NewOptFieldValidationFormat

func NewOptFieldValidationFormat(v FieldValidationFormat) OptFieldValidationFormat

NewOptFieldValidationFormat returns new OptFieldValidationFormat with value set to v.

func (*OptFieldValidationFormat) Decode

func (o *OptFieldValidationFormat) Decode(d *jx.Decoder) error

Decode decodes FieldValidationFormat from json.

func (OptFieldValidationFormat) Encode

func (o OptFieldValidationFormat) Encode(e *jx.Encoder)

Encode encodes FieldValidationFormat as json.

func (OptFieldValidationFormat) Get

Get returns value and boolean that denotes whether value was set.

func (OptFieldValidationFormat) IsSet

func (o OptFieldValidationFormat) IsSet() bool

IsSet returns true if OptFieldValidationFormat was set.

func (OptFieldValidationFormat) MarshalJSON

func (s OptFieldValidationFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFieldValidationFormat) Or

Or returns value if set, or given parameter if does not.

func (*OptFieldValidationFormat) Reset

func (o *OptFieldValidationFormat) Reset()

Reset unsets value.

func (*OptFieldValidationFormat) SetTo

SetTo sets value to v.

func (*OptFieldValidationFormat) UnmarshalJSON

func (s *OptFieldValidationFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowAudience

type OptFlowAudience struct {
	Value FlowAudience
	Set   bool
}

OptFlowAudience is optional FlowAudience.

func NewOptFlowAudience

func NewOptFlowAudience(v FlowAudience) OptFlowAudience

NewOptFlowAudience returns new OptFlowAudience with value set to v.

func (*OptFlowAudience) Decode

func (o *OptFlowAudience) Decode(d *jx.Decoder) error

Decode decodes FlowAudience from json.

func (OptFlowAudience) Encode

func (o OptFlowAudience) Encode(e *jx.Encoder)

Encode encodes FlowAudience as json.

func (OptFlowAudience) Get

func (o OptFlowAudience) Get() (v FlowAudience, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFlowAudience) IsSet

func (o OptFlowAudience) IsSet() bool

IsSet returns true if OptFlowAudience was set.

func (OptFlowAudience) MarshalJSON

func (s OptFlowAudience) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowAudience) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowAudience) Reset

func (o *OptFlowAudience) Reset()

Reset unsets value.

func (*OptFlowAudience) SetTo

func (o *OptFlowAudience) SetTo(v FlowAudience)

SetTo sets value to v.

func (*OptFlowAudience) UnmarshalJSON

func (s *OptFlowAudience) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowDefinitionStepComplete

type OptFlowDefinitionStepComplete struct {
	Value FlowDefinitionStepComplete
	Set   bool
}

OptFlowDefinitionStepComplete is optional FlowDefinitionStepComplete.

func NewOptFlowDefinitionStepComplete

func NewOptFlowDefinitionStepComplete(v FlowDefinitionStepComplete) OptFlowDefinitionStepComplete

NewOptFlowDefinitionStepComplete returns new OptFlowDefinitionStepComplete with value set to v.

func (*OptFlowDefinitionStepComplete) Decode

Decode decodes FlowDefinitionStepComplete from json.

func (OptFlowDefinitionStepComplete) Encode

Encode encodes FlowDefinitionStepComplete as json.

func (OptFlowDefinitionStepComplete) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowDefinitionStepComplete) IsSet

IsSet returns true if OptFlowDefinitionStepComplete was set.

func (OptFlowDefinitionStepComplete) MarshalJSON

func (s OptFlowDefinitionStepComplete) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowDefinitionStepComplete) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowDefinitionStepComplete) Reset

func (o *OptFlowDefinitionStepComplete) Reset()

Reset unsets value.

func (*OptFlowDefinitionStepComplete) SetTo

SetTo sets value to v.

func (*OptFlowDefinitionStepComplete) UnmarshalJSON

func (s *OptFlowDefinitionStepComplete) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowDefinitionStepGates

type OptFlowDefinitionStepGates struct {
	Value FlowDefinitionStepGates
	Set   bool
}

OptFlowDefinitionStepGates is optional FlowDefinitionStepGates.

func NewOptFlowDefinitionStepGates

func NewOptFlowDefinitionStepGates(v FlowDefinitionStepGates) OptFlowDefinitionStepGates

NewOptFlowDefinitionStepGates returns new OptFlowDefinitionStepGates with value set to v.

func (*OptFlowDefinitionStepGates) Decode

Decode decodes FlowDefinitionStepGates from json.

func (OptFlowDefinitionStepGates) Encode

func (o OptFlowDefinitionStepGates) Encode(e *jx.Encoder)

Encode encodes FlowDefinitionStepGates as json.

func (OptFlowDefinitionStepGates) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowDefinitionStepGates) IsSet

func (o OptFlowDefinitionStepGates) IsSet() bool

IsSet returns true if OptFlowDefinitionStepGates was set.

func (OptFlowDefinitionStepGates) MarshalJSON

func (s OptFlowDefinitionStepGates) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowDefinitionStepGates) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowDefinitionStepGates) Reset

func (o *OptFlowDefinitionStepGates) Reset()

Reset unsets value.

func (*OptFlowDefinitionStepGates) SetTo

SetTo sets value to v.

func (*OptFlowDefinitionStepGates) UnmarshalJSON

func (s *OptFlowDefinitionStepGates) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowDefinitionStepOnSuccess

type OptFlowDefinitionStepOnSuccess struct {
	Value FlowDefinitionStepOnSuccess
	Set   bool
}

OptFlowDefinitionStepOnSuccess is optional FlowDefinitionStepOnSuccess.

func NewOptFlowDefinitionStepOnSuccess

func NewOptFlowDefinitionStepOnSuccess(v FlowDefinitionStepOnSuccess) OptFlowDefinitionStepOnSuccess

NewOptFlowDefinitionStepOnSuccess returns new OptFlowDefinitionStepOnSuccess with value set to v.

func (*OptFlowDefinitionStepOnSuccess) Decode

Decode decodes FlowDefinitionStepOnSuccess from json.

func (OptFlowDefinitionStepOnSuccess) Encode

Encode encodes FlowDefinitionStepOnSuccess as json.

func (OptFlowDefinitionStepOnSuccess) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowDefinitionStepOnSuccess) IsSet

IsSet returns true if OptFlowDefinitionStepOnSuccess was set.

func (OptFlowDefinitionStepOnSuccess) MarshalJSON

func (s OptFlowDefinitionStepOnSuccess) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowDefinitionStepOnSuccess) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowDefinitionStepOnSuccess) Reset

func (o *OptFlowDefinitionStepOnSuccess) Reset()

Reset unsets value.

func (*OptFlowDefinitionStepOnSuccess) SetTo

SetTo sets value to v.

func (*OptFlowDefinitionStepOnSuccess) UnmarshalJSON

func (s *OptFlowDefinitionStepOnSuccess) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowDefinitionStepTransitions

type OptFlowDefinitionStepTransitions struct {
	Value FlowDefinitionStepTransitions
	Set   bool
}

OptFlowDefinitionStepTransitions is optional FlowDefinitionStepTransitions.

func NewOptFlowDefinitionStepTransitions

func NewOptFlowDefinitionStepTransitions(v FlowDefinitionStepTransitions) OptFlowDefinitionStepTransitions

NewOptFlowDefinitionStepTransitions returns new OptFlowDefinitionStepTransitions with value set to v.

func (*OptFlowDefinitionStepTransitions) Decode

Decode decodes FlowDefinitionStepTransitions from json.

func (OptFlowDefinitionStepTransitions) Encode

Encode encodes FlowDefinitionStepTransitions as json.

func (OptFlowDefinitionStepTransitions) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowDefinitionStepTransitions) IsSet

IsSet returns true if OptFlowDefinitionStepTransitions was set.

func (OptFlowDefinitionStepTransitions) MarshalJSON

func (s OptFlowDefinitionStepTransitions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowDefinitionStepTransitions) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowDefinitionStepTransitions) Reset

Reset unsets value.

func (*OptFlowDefinitionStepTransitions) SetTo

SetTo sets value to v.

func (*OptFlowDefinitionStepTransitions) UnmarshalJSON

func (s *OptFlowDefinitionStepTransitions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowDefinitionUpdateRequestPurposes

type OptFlowDefinitionUpdateRequestPurposes struct {
	Value FlowDefinitionUpdateRequestPurposes
	Set   bool
}

OptFlowDefinitionUpdateRequestPurposes is optional FlowDefinitionUpdateRequestPurposes.

func NewOptFlowDefinitionUpdateRequestPurposes

func NewOptFlowDefinitionUpdateRequestPurposes(v FlowDefinitionUpdateRequestPurposes) OptFlowDefinitionUpdateRequestPurposes

NewOptFlowDefinitionUpdateRequestPurposes returns new OptFlowDefinitionUpdateRequestPurposes with value set to v.

func (*OptFlowDefinitionUpdateRequestPurposes) Decode

Decode decodes FlowDefinitionUpdateRequestPurposes from json.

func (OptFlowDefinitionUpdateRequestPurposes) Encode

Encode encodes FlowDefinitionUpdateRequestPurposes as json.

func (OptFlowDefinitionUpdateRequestPurposes) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowDefinitionUpdateRequestPurposes) IsSet

IsSet returns true if OptFlowDefinitionUpdateRequestPurposes was set.

func (OptFlowDefinitionUpdateRequestPurposes) MarshalJSON

func (s OptFlowDefinitionUpdateRequestPurposes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowDefinitionUpdateRequestPurposes) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowDefinitionUpdateRequestPurposes) Reset

Reset unsets value.

func (*OptFlowDefinitionUpdateRequestPurposes) SetTo

SetTo sets value to v.

func (*OptFlowDefinitionUpdateRequestPurposes) UnmarshalJSON

func (s *OptFlowDefinitionUpdateRequestPurposes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowEventRequestPayload

type OptFlowEventRequestPayload struct {
	Value FlowEventRequestPayload
	Set   bool
}

OptFlowEventRequestPayload is optional FlowEventRequestPayload.

func NewOptFlowEventRequestPayload

func NewOptFlowEventRequestPayload(v FlowEventRequestPayload) OptFlowEventRequestPayload

NewOptFlowEventRequestPayload returns new OptFlowEventRequestPayload with value set to v.

func (*OptFlowEventRequestPayload) Decode

Decode decodes FlowEventRequestPayload from json.

func (OptFlowEventRequestPayload) Encode

func (o OptFlowEventRequestPayload) Encode(e *jx.Encoder)

Encode encodes FlowEventRequestPayload as json.

func (OptFlowEventRequestPayload) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowEventRequestPayload) IsSet

func (o OptFlowEventRequestPayload) IsSet() bool

IsSet returns true if OptFlowEventRequestPayload was set.

func (OptFlowEventRequestPayload) MarshalJSON

func (s OptFlowEventRequestPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowEventRequestPayload) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowEventRequestPayload) Reset

func (o *OptFlowEventRequestPayload) Reset()

Reset unsets value.

func (*OptFlowEventRequestPayload) SetTo

SetTo sets value to v.

func (*OptFlowEventRequestPayload) UnmarshalJSON

func (s *OptFlowEventRequestPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowHint

type OptFlowHint struct {
	Value FlowHint
	Set   bool
}

OptFlowHint is optional FlowHint.

func NewOptFlowHint

func NewOptFlowHint(v FlowHint) OptFlowHint

NewOptFlowHint returns new OptFlowHint with value set to v.

func (*OptFlowHint) Decode

func (o *OptFlowHint) Decode(d *jx.Decoder) error

Decode decodes FlowHint from json.

func (OptFlowHint) Encode

func (o OptFlowHint) Encode(e *jx.Encoder)

Encode encodes FlowHint as json.

func (OptFlowHint) Get

func (o OptFlowHint) Get() (v FlowHint, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFlowHint) IsSet

func (o OptFlowHint) IsSet() bool

IsSet returns true if OptFlowHint was set.

func (OptFlowHint) MarshalJSON

func (s OptFlowHint) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowHint) Or

func (o OptFlowHint) Or(d FlowHint) FlowHint

Or returns value if set, or given parameter if does not.

func (*OptFlowHint) Reset

func (o *OptFlowHint) Reset()

Reset unsets value.

func (*OptFlowHint) SetTo

func (o *OptFlowHint) SetTo(v FlowHint)

SetTo sets value to v.

func (*OptFlowHint) UnmarshalJSON

func (s *OptFlowHint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowStepChallenge

type OptFlowStepChallenge struct {
	Value FlowStepChallenge
	Set   bool
}

OptFlowStepChallenge is optional FlowStepChallenge.

func NewOptFlowStepChallenge

func NewOptFlowStepChallenge(v FlowStepChallenge) OptFlowStepChallenge

NewOptFlowStepChallenge returns new OptFlowStepChallenge with value set to v.

func (*OptFlowStepChallenge) Decode

func (o *OptFlowStepChallenge) Decode(d *jx.Decoder) error

Decode decodes FlowStepChallenge from json.

func (OptFlowStepChallenge) Encode

func (o OptFlowStepChallenge) Encode(e *jx.Encoder)

Encode encodes FlowStepChallenge as json.

func (OptFlowStepChallenge) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowStepChallenge) IsSet

func (o OptFlowStepChallenge) IsSet() bool

IsSet returns true if OptFlowStepChallenge was set.

func (OptFlowStepChallenge) MarshalJSON

func (s OptFlowStepChallenge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowStepChallenge) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowStepChallenge) Reset

func (o *OptFlowStepChallenge) Reset()

Reset unsets value.

func (*OptFlowStepChallenge) SetTo

SetTo sets value to v.

func (*OptFlowStepChallenge) UnmarshalJSON

func (s *OptFlowStepChallenge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowStepChallengeMethod

type OptFlowStepChallengeMethod struct {
	Value FlowStepChallengeMethod
	Set   bool
}

OptFlowStepChallengeMethod is optional FlowStepChallengeMethod.

func NewOptFlowStepChallengeMethod

func NewOptFlowStepChallengeMethod(v FlowStepChallengeMethod) OptFlowStepChallengeMethod

NewOptFlowStepChallengeMethod returns new OptFlowStepChallengeMethod with value set to v.

func (*OptFlowStepChallengeMethod) Decode

Decode decodes FlowStepChallengeMethod from json.

func (OptFlowStepChallengeMethod) Encode

func (o OptFlowStepChallengeMethod) Encode(e *jx.Encoder)

Encode encodes FlowStepChallengeMethod as json.

func (OptFlowStepChallengeMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowStepChallengeMethod) IsSet

func (o OptFlowStepChallengeMethod) IsSet() bool

IsSet returns true if OptFlowStepChallengeMethod was set.

func (OptFlowStepChallengeMethod) MarshalJSON

func (s OptFlowStepChallengeMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowStepChallengeMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowStepChallengeMethod) Reset

func (o *OptFlowStepChallengeMethod) Reset()

Reset unsets value.

func (*OptFlowStepChallengeMethod) SetTo

SetTo sets value to v.

func (*OptFlowStepChallengeMethod) UnmarshalJSON

func (s *OptFlowStepChallengeMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowStepChallengeOptions

type OptFlowStepChallengeOptions struct {
	Value FlowStepChallengeOptions
	Set   bool
}

OptFlowStepChallengeOptions is optional FlowStepChallengeOptions.

func NewOptFlowStepChallengeOptions

func NewOptFlowStepChallengeOptions(v FlowStepChallengeOptions) OptFlowStepChallengeOptions

NewOptFlowStepChallengeOptions returns new OptFlowStepChallengeOptions with value set to v.

func (*OptFlowStepChallengeOptions) Decode

Decode decodes FlowStepChallengeOptions from json.

func (OptFlowStepChallengeOptions) Encode

func (o OptFlowStepChallengeOptions) Encode(e *jx.Encoder)

Encode encodes FlowStepChallengeOptions as json.

func (OptFlowStepChallengeOptions) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowStepChallengeOptions) IsSet

IsSet returns true if OptFlowStepChallengeOptions was set.

func (OptFlowStepChallengeOptions) MarshalJSON

func (s OptFlowStepChallengeOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowStepChallengeOptions) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowStepChallengeOptions) Reset

func (o *OptFlowStepChallengeOptions) Reset()

Reset unsets value.

func (*OptFlowStepChallengeOptions) SetTo

SetTo sets value to v.

func (*OptFlowStepChallengeOptions) UnmarshalJSON

func (s *OptFlowStepChallengeOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowStepComplete

type OptFlowStepComplete struct {
	Value FlowStepComplete
	Set   bool
}

OptFlowStepComplete is optional FlowStepComplete.

func NewOptFlowStepComplete

func NewOptFlowStepComplete(v FlowStepComplete) OptFlowStepComplete

NewOptFlowStepComplete returns new OptFlowStepComplete with value set to v.

func (*OptFlowStepComplete) Decode

func (o *OptFlowStepComplete) Decode(d *jx.Decoder) error

Decode decodes FlowStepComplete from json.

func (OptFlowStepComplete) Encode

func (o OptFlowStepComplete) Encode(e *jx.Encoder)

Encode encodes FlowStepComplete as json.

func (OptFlowStepComplete) Get

func (o OptFlowStepComplete) Get() (v FlowStepComplete, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFlowStepComplete) IsSet

func (o OptFlowStepComplete) IsSet() bool

IsSet returns true if OptFlowStepComplete was set.

func (OptFlowStepComplete) MarshalJSON

func (s OptFlowStepComplete) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowStepComplete) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowStepComplete) Reset

func (o *OptFlowStepComplete) Reset()

Reset unsets value.

func (*OptFlowStepComplete) SetTo

SetTo sets value to v.

func (*OptFlowStepComplete) UnmarshalJSON

func (s *OptFlowStepComplete) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowSubmitRequestChallengeResponse

type OptFlowSubmitRequestChallengeResponse struct {
	Value FlowSubmitRequestChallengeResponse
	Set   bool
}

OptFlowSubmitRequestChallengeResponse is optional FlowSubmitRequestChallengeResponse.

func NewOptFlowSubmitRequestChallengeResponse

func NewOptFlowSubmitRequestChallengeResponse(v FlowSubmitRequestChallengeResponse) OptFlowSubmitRequestChallengeResponse

NewOptFlowSubmitRequestChallengeResponse returns new OptFlowSubmitRequestChallengeResponse with value set to v.

func (*OptFlowSubmitRequestChallengeResponse) Decode

Decode decodes FlowSubmitRequestChallengeResponse from json.

func (OptFlowSubmitRequestChallengeResponse) Encode

Encode encodes FlowSubmitRequestChallengeResponse as json.

func (OptFlowSubmitRequestChallengeResponse) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowSubmitRequestChallengeResponse) IsSet

IsSet returns true if OptFlowSubmitRequestChallengeResponse was set.

func (OptFlowSubmitRequestChallengeResponse) MarshalJSON

func (s OptFlowSubmitRequestChallengeResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowSubmitRequestChallengeResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowSubmitRequestChallengeResponse) Reset

Reset unsets value.

func (*OptFlowSubmitRequestChallengeResponse) SetTo

SetTo sets value to v.

func (*OptFlowSubmitRequestChallengeResponse) UnmarshalJSON

func (s *OptFlowSubmitRequestChallengeResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowSubmitRequestChallengeResponseProof

type OptFlowSubmitRequestChallengeResponseProof struct {
	Value FlowSubmitRequestChallengeResponseProof
	Set   bool
}

OptFlowSubmitRequestChallengeResponseProof is optional FlowSubmitRequestChallengeResponseProof.

func NewOptFlowSubmitRequestChallengeResponseProof

func NewOptFlowSubmitRequestChallengeResponseProof(v FlowSubmitRequestChallengeResponseProof) OptFlowSubmitRequestChallengeResponseProof

NewOptFlowSubmitRequestChallengeResponseProof returns new OptFlowSubmitRequestChallengeResponseProof with value set to v.

func (*OptFlowSubmitRequestChallengeResponseProof) Decode

Decode decodes FlowSubmitRequestChallengeResponseProof from json.

func (OptFlowSubmitRequestChallengeResponseProof) Encode

Encode encodes FlowSubmitRequestChallengeResponseProof as json.

func (OptFlowSubmitRequestChallengeResponseProof) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowSubmitRequestChallengeResponseProof) IsSet

IsSet returns true if OptFlowSubmitRequestChallengeResponseProof was set.

func (OptFlowSubmitRequestChallengeResponseProof) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptFlowSubmitRequestChallengeResponseProof) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowSubmitRequestChallengeResponseProof) Reset

Reset unsets value.

func (*OptFlowSubmitRequestChallengeResponseProof) SetTo

SetTo sets value to v.

func (*OptFlowSubmitRequestChallengeResponseProof) UnmarshalJSON

func (s *OptFlowSubmitRequestChallengeResponseProof) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowSubmitRequestFields

type OptFlowSubmitRequestFields struct {
	Value FlowSubmitRequestFields
	Set   bool
}

OptFlowSubmitRequestFields is optional FlowSubmitRequestFields.

func NewOptFlowSubmitRequestFields

func NewOptFlowSubmitRequestFields(v FlowSubmitRequestFields) OptFlowSubmitRequestFields

NewOptFlowSubmitRequestFields returns new OptFlowSubmitRequestFields with value set to v.

func (*OptFlowSubmitRequestFields) Decode

Decode decodes FlowSubmitRequestFields from json.

func (OptFlowSubmitRequestFields) Encode

func (o OptFlowSubmitRequestFields) Encode(e *jx.Encoder)

Encode encodes FlowSubmitRequestFields as json.

func (OptFlowSubmitRequestFields) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowSubmitRequestFields) IsSet

func (o OptFlowSubmitRequestFields) IsSet() bool

IsSet returns true if OptFlowSubmitRequestFields was set.

func (OptFlowSubmitRequestFields) MarshalJSON

func (s OptFlowSubmitRequestFields) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowSubmitRequestFields) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowSubmitRequestFields) Reset

func (o *OptFlowSubmitRequestFields) Reset()

Reset unsets value.

func (*OptFlowSubmitRequestFields) SetTo

SetTo sets value to v.

func (*OptFlowSubmitRequestFields) UnmarshalJSON

func (s *OptFlowSubmitRequestFields) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFlowSubmitRequestGateProofs

type OptFlowSubmitRequestGateProofs struct {
	Value FlowSubmitRequestGateProofs
	Set   bool
}

OptFlowSubmitRequestGateProofs is optional FlowSubmitRequestGateProofs.

func NewOptFlowSubmitRequestGateProofs

func NewOptFlowSubmitRequestGateProofs(v FlowSubmitRequestGateProofs) OptFlowSubmitRequestGateProofs

NewOptFlowSubmitRequestGateProofs returns new OptFlowSubmitRequestGateProofs with value set to v.

func (*OptFlowSubmitRequestGateProofs) Decode

Decode decodes FlowSubmitRequestGateProofs from json.

func (OptFlowSubmitRequestGateProofs) Encode

Encode encodes FlowSubmitRequestGateProofs as json.

func (OptFlowSubmitRequestGateProofs) Get

Get returns value and boolean that denotes whether value was set.

func (OptFlowSubmitRequestGateProofs) IsSet

IsSet returns true if OptFlowSubmitRequestGateProofs was set.

func (OptFlowSubmitRequestGateProofs) MarshalJSON

func (s OptFlowSubmitRequestGateProofs) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFlowSubmitRequestGateProofs) Or

Or returns value if set, or given parameter if does not.

func (*OptFlowSubmitRequestGateProofs) Reset

func (o *OptFlowSubmitRequestGateProofs) Reset()

Reset unsets value.

func (*OptFlowSubmitRequestGateProofs) SetTo

SetTo sets value to v.

func (*OptFlowSubmitRequestGateProofs) UnmarshalJSON

func (s *OptFlowSubmitRequestGateProofs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGateConfig

type OptGateConfig struct {
	Value GateConfig
	Set   bool
}

OptGateConfig is optional GateConfig.

func NewOptGateConfig

func NewOptGateConfig(v GateConfig) OptGateConfig

NewOptGateConfig returns new OptGateConfig with value set to v.

func (*OptGateConfig) Decode

func (o *OptGateConfig) Decode(d *jx.Decoder) error

Decode decodes GateConfig from json.

func (OptGateConfig) Encode

func (o OptGateConfig) Encode(e *jx.Encoder)

Encode encodes GateConfig as json.

func (OptGateConfig) Get

func (o OptGateConfig) Get() (v GateConfig, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptGateConfig) IsSet

func (o OptGateConfig) IsSet() bool

IsSet returns true if OptGateConfig was set.

func (OptGateConfig) MarshalJSON

func (s OptGateConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGateConfig) Or

Or returns value if set, or given parameter if does not.

func (*OptGateConfig) Reset

func (o *OptGateConfig) Reset()

Reset unsets value.

func (*OptGateConfig) SetTo

func (o *OptGateConfig) SetTo(v GateConfig)

SetTo sets value to v.

func (*OptGateConfig) UnmarshalJSON

func (s *OptGateConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInternalDetails

type OptInternalDetails struct {
	Value InternalDetails
	Set   bool
}

OptInternalDetails is optional InternalDetails.

func NewOptInternalDetails

func NewOptInternalDetails(v InternalDetails) OptInternalDetails

NewOptInternalDetails returns new OptInternalDetails with value set to v.

func (*OptInternalDetails) Decode

func (o *OptInternalDetails) Decode(d *jx.Decoder) error

Decode decodes InternalDetails from json.

func (OptInternalDetails) Encode

func (o OptInternalDetails) Encode(e *jx.Encoder)

Encode encodes InternalDetails as json.

func (OptInternalDetails) Get

func (o OptInternalDetails) Get() (v InternalDetails, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInternalDetails) IsSet

func (o OptInternalDetails) IsSet() bool

IsSet returns true if OptInternalDetails was set.

func (OptInternalDetails) MarshalJSON

func (s OptInternalDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInternalDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptInternalDetails) Reset

func (o *OptInternalDetails) Reset()

Reset unsets value.

func (*OptInternalDetails) SetTo

func (o *OptInternalDetails) SetTo(v InternalDetails)

SetTo sets value to v.

func (*OptInternalDetails) UnmarshalJSON

func (s *OptInternalDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptIssueChallengeRequestPasskeyOptions

type OptIssueChallengeRequestPasskeyOptions struct {
	Value IssueChallengeRequestPasskeyOptions
	Set   bool
}

OptIssueChallengeRequestPasskeyOptions is optional IssueChallengeRequestPasskeyOptions.

func NewOptIssueChallengeRequestPasskeyOptions

func NewOptIssueChallengeRequestPasskeyOptions(v IssueChallengeRequestPasskeyOptions) OptIssueChallengeRequestPasskeyOptions

NewOptIssueChallengeRequestPasskeyOptions returns new OptIssueChallengeRequestPasskeyOptions with value set to v.

func (*OptIssueChallengeRequestPasskeyOptions) Decode

Decode decodes IssueChallengeRequestPasskeyOptions from json.

func (OptIssueChallengeRequestPasskeyOptions) Encode

Encode encodes IssueChallengeRequestPasskeyOptions as json.

func (OptIssueChallengeRequestPasskeyOptions) Get

Get returns value and boolean that denotes whether value was set.

func (OptIssueChallengeRequestPasskeyOptions) IsSet

IsSet returns true if OptIssueChallengeRequestPasskeyOptions was set.

func (OptIssueChallengeRequestPasskeyOptions) MarshalJSON

func (s OptIssueChallengeRequestPasskeyOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptIssueChallengeRequestPasskeyOptions) Or

Or returns value if set, or given parameter if does not.

func (*OptIssueChallengeRequestPasskeyOptions) Reset

Reset unsets value.

func (*OptIssueChallengeRequestPasskeyOptions) SetTo

SetTo sets value to v.

func (*OptIssueChallengeRequestPasskeyOptions) UnmarshalJSON

func (s *OptIssueChallengeRequestPasskeyOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptIssueChallengeRequestPasskeyOptionsUserVerification

type OptIssueChallengeRequestPasskeyOptionsUserVerification struct {
	Value IssueChallengeRequestPasskeyOptionsUserVerification
	Set   bool
}

OptIssueChallengeRequestPasskeyOptionsUserVerification is optional IssueChallengeRequestPasskeyOptionsUserVerification.

func NewOptIssueChallengeRequestPasskeyOptionsUserVerification

NewOptIssueChallengeRequestPasskeyOptionsUserVerification returns new OptIssueChallengeRequestPasskeyOptionsUserVerification with value set to v.

func (*OptIssueChallengeRequestPasskeyOptionsUserVerification) Decode

Decode decodes IssueChallengeRequestPasskeyOptionsUserVerification from json.

func (OptIssueChallengeRequestPasskeyOptionsUserVerification) Encode

Encode encodes IssueChallengeRequestPasskeyOptionsUserVerification as json.

func (OptIssueChallengeRequestPasskeyOptionsUserVerification) Get

Get returns value and boolean that denotes whether value was set.

func (OptIssueChallengeRequestPasskeyOptionsUserVerification) IsSet

IsSet returns true if OptIssueChallengeRequestPasskeyOptionsUserVerification was set.

func (OptIssueChallengeRequestPasskeyOptionsUserVerification) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptIssueChallengeRequestPasskeyOptionsUserVerification) Or

Or returns value if set, or given parameter if does not.

func (*OptIssueChallengeRequestPasskeyOptionsUserVerification) Reset

Reset unsets value.

func (*OptIssueChallengeRequestPasskeyOptionsUserVerification) SetTo

SetTo sets value to v.

func (*OptIssueChallengeRequestPasskeyOptionsUserVerification) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptListFlowDefinitionsPurpose

type OptListFlowDefinitionsPurpose struct {
	Value ListFlowDefinitionsPurpose
	Set   bool
}

OptListFlowDefinitionsPurpose is optional ListFlowDefinitionsPurpose.

func NewOptListFlowDefinitionsPurpose

func NewOptListFlowDefinitionsPurpose(v ListFlowDefinitionsPurpose) OptListFlowDefinitionsPurpose

NewOptListFlowDefinitionsPurpose returns new OptListFlowDefinitionsPurpose with value set to v.

func (OptListFlowDefinitionsPurpose) Get

Get returns value and boolean that denotes whether value was set.

func (OptListFlowDefinitionsPurpose) IsSet

IsSet returns true if OptListFlowDefinitionsPurpose was set.

func (OptListFlowDefinitionsPurpose) Or

Or returns value if set, or given parameter if does not.

func (*OptListFlowDefinitionsPurpose) Reset

func (o *OptListFlowDefinitionsPurpose) Reset()

Reset unsets value.

func (*OptListFlowDefinitionsPurpose) SetTo

SetTo sets value to v.

type OptListSessionsState

type OptListSessionsState struct {
	Value ListSessionsState
	Set   bool
}

OptListSessionsState is optional ListSessionsState.

func NewOptListSessionsState

func NewOptListSessionsState(v ListSessionsState) OptListSessionsState

NewOptListSessionsState returns new OptListSessionsState with value set to v.

func (OptListSessionsState) Get

Get returns value and boolean that denotes whether value was set.

func (OptListSessionsState) IsSet

func (o OptListSessionsState) IsSet() bool

IsSet returns true if OptListSessionsState was set.

func (OptListSessionsState) Or

Or returns value if set, or given parameter if does not.

func (*OptListSessionsState) Reset

func (o *OptListSessionsState) Reset()

Reset unsets value.

func (*OptListSessionsState) SetTo

SetTo sets value to v.

type OptNilDateTime

type OptNilDateTime struct {
	Value time.Time
	Set   bool
	Null  bool
}

OptNilDateTime is optional nullable time.Time.

func NewOptNilDateTime

func NewOptNilDateTime(v time.Time) OptNilDateTime

NewOptNilDateTime returns new OptNilDateTime with value set to v.

func (*OptNilDateTime) Decode

func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptNilDateTime) Encode

func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptNilDateTime) Get

func (o OptNilDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilDateTime) IsNull

func (o OptNilDateTime) IsNull() bool

IsNull returns true if value is Null.

func (OptNilDateTime) IsSet

func (o OptNilDateTime) IsSet() bool

IsSet returns true if OptNilDateTime was set.

func (OptNilDateTime) MarshalJSON

func (s OptNilDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilDateTime) Or

func (o OptNilDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptNilDateTime) Reset

func (o *OptNilDateTime) Reset()

Reset unsets value.

func (*OptNilDateTime) SetTo

func (o *OptNilDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptNilDateTime) SetToNull

func (o *OptNilDateTime) SetToNull()

SetToNull sets value to null.

func (*OptNilDateTime) UnmarshalJSON

func (s *OptNilDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilFlowDefinitionStepTransitionsItemAction

type OptNilFlowDefinitionStepTransitionsItemAction struct {
	Value FlowDefinitionStepTransitionsItemAction
	Set   bool
	Null  bool
}

OptNilFlowDefinitionStepTransitionsItemAction is optional nullable FlowDefinitionStepTransitionsItemAction.

func NewOptNilFlowDefinitionStepTransitionsItemAction

func NewOptNilFlowDefinitionStepTransitionsItemAction(v FlowDefinitionStepTransitionsItemAction) OptNilFlowDefinitionStepTransitionsItemAction

NewOptNilFlowDefinitionStepTransitionsItemAction returns new OptNilFlowDefinitionStepTransitionsItemAction with value set to v.

func (*OptNilFlowDefinitionStepTransitionsItemAction) Decode

Decode decodes FlowDefinitionStepTransitionsItemAction from json.

func (OptNilFlowDefinitionStepTransitionsItemAction) Encode

Encode encodes FlowDefinitionStepTransitionsItemAction as json.

func (OptNilFlowDefinitionStepTransitionsItemAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilFlowDefinitionStepTransitionsItemAction) IsNull

IsNull returns true if value is Null.

func (OptNilFlowDefinitionStepTransitionsItemAction) IsSet

IsSet returns true if OptNilFlowDefinitionStepTransitionsItemAction was set.

func (OptNilFlowDefinitionStepTransitionsItemAction) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptNilFlowDefinitionStepTransitionsItemAction) Or

Or returns value if set, or given parameter if does not.

func (*OptNilFlowDefinitionStepTransitionsItemAction) Reset

Reset unsets value.

func (*OptNilFlowDefinitionStepTransitionsItemAction) SetTo

SetTo sets value to v.

func (*OptNilFlowDefinitionStepTransitionsItemAction) SetToNull

SetToNull sets value to null.

func (*OptNilFlowDefinitionStepTransitionsItemAction) UnmarshalJSON

func (s *OptNilFlowDefinitionStepTransitionsItemAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilPageToken

type OptNilPageToken struct {
	Value PageToken
	Set   bool
	Null  bool
}

OptNilPageToken is optional nullable PageToken.

func NewOptNilPageToken

func NewOptNilPageToken(v PageToken) OptNilPageToken

NewOptNilPageToken returns new OptNilPageToken with value set to v.

func (*OptNilPageToken) Decode

func (o *OptNilPageToken) Decode(d *jx.Decoder) error

Decode decodes PageToken from json.

func (OptNilPageToken) Encode

func (o OptNilPageToken) Encode(e *jx.Encoder)

Encode encodes PageToken as json.

func (OptNilPageToken) Get

func (o OptNilPageToken) Get() (v PageToken, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilPageToken) IsNull

func (o OptNilPageToken) IsNull() bool

IsNull returns true if value is Null.

func (OptNilPageToken) IsSet

func (o OptNilPageToken) IsSet() bool

IsSet returns true if OptNilPageToken was set.

func (OptNilPageToken) MarshalJSON

func (s OptNilPageToken) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilPageToken) Or

Or returns value if set, or given parameter if does not.

func (*OptNilPageToken) Reset

func (o *OptNilPageToken) Reset()

Reset unsets value.

func (*OptNilPageToken) SetTo

func (o *OptNilPageToken) SetTo(v PageToken)

SetTo sets value to v.

func (*OptNilPageToken) SetToNull

func (o *OptNilPageToken) SetToNull()

SetToNull sets value to null.

func (*OptNilPageToken) UnmarshalJSON

func (s *OptNilPageToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSessionID

type OptNilSessionID struct {
	Value SessionID
	Set   bool
	Null  bool
}

OptNilSessionID is optional nullable SessionID.

func NewOptNilSessionID

func NewOptNilSessionID(v SessionID) OptNilSessionID

NewOptNilSessionID returns new OptNilSessionID with value set to v.

func (*OptNilSessionID) Decode

func (o *OptNilSessionID) Decode(d *jx.Decoder) error

Decode decodes SessionID from json.

func (OptNilSessionID) Encode

func (o OptNilSessionID) Encode(e *jx.Encoder)

Encode encodes SessionID as json.

func (OptNilSessionID) Get

func (o OptNilSessionID) Get() (v SessionID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilSessionID) IsNull

func (o OptNilSessionID) IsNull() bool

IsNull returns true if value is Null.

func (OptNilSessionID) IsSet

func (o OptNilSessionID) IsSet() bool

IsSet returns true if OptNilSessionID was set.

func (OptNilSessionID) MarshalJSON

func (s OptNilSessionID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSessionID) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSessionID) Reset

func (o *OptNilSessionID) Reset()

Reset unsets value.

func (*OptNilSessionID) SetTo

func (o *OptNilSessionID) SetTo(v SessionID)

SetTo sets value to v.

func (*OptNilSessionID) SetToNull

func (o *OptNilSessionID) SetToNull()

SetToNull sets value to null.

func (*OptNilSessionID) UnmarshalJSON

func (s *OptNilSessionID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSessionResponseMetadata

type OptNilSessionResponseMetadata struct {
	Value SessionResponseMetadata
	Set   bool
	Null  bool
}

OptNilSessionResponseMetadata is optional nullable SessionResponseMetadata.

func NewOptNilSessionResponseMetadata

func NewOptNilSessionResponseMetadata(v SessionResponseMetadata) OptNilSessionResponseMetadata

NewOptNilSessionResponseMetadata returns new OptNilSessionResponseMetadata with value set to v.

func (*OptNilSessionResponseMetadata) Decode

Decode decodes SessionResponseMetadata from json.

func (OptNilSessionResponseMetadata) Encode

Encode encodes SessionResponseMetadata as json.

func (OptNilSessionResponseMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSessionResponseMetadata) IsNull

IsNull returns true if value is Null.

func (OptNilSessionResponseMetadata) IsSet

IsSet returns true if OptNilSessionResponseMetadata was set.

func (OptNilSessionResponseMetadata) MarshalJSON

func (s OptNilSessionResponseMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSessionResponseMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSessionResponseMetadata) Reset

func (o *OptNilSessionResponseMetadata) Reset()

Reset unsets value.

func (*OptNilSessionResponseMetadata) SetTo

SetTo sets value to v.

func (*OptNilSessionResponseMetadata) SetToNull

func (o *OptNilSessionResponseMetadata) SetToNull()

SetToNull sets value to null.

func (*OptNilSessionResponseMetadata) UnmarshalJSON

func (s *OptNilSessionResponseMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSessionResponseUserAgent

type OptNilSessionResponseUserAgent struct {
	Value SessionResponseUserAgent
	Set   bool
	Null  bool
}

OptNilSessionResponseUserAgent is optional nullable SessionResponseUserAgent.

func NewOptNilSessionResponseUserAgent

func NewOptNilSessionResponseUserAgent(v SessionResponseUserAgent) OptNilSessionResponseUserAgent

NewOptNilSessionResponseUserAgent returns new OptNilSessionResponseUserAgent with value set to v.

func (*OptNilSessionResponseUserAgent) Decode

Decode decodes SessionResponseUserAgent from json.

func (OptNilSessionResponseUserAgent) Encode

Encode encodes SessionResponseUserAgent as json.

func (OptNilSessionResponseUserAgent) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSessionResponseUserAgent) IsNull

IsNull returns true if value is Null.

func (OptNilSessionResponseUserAgent) IsSet

IsSet returns true if OptNilSessionResponseUserAgent was set.

func (OptNilSessionResponseUserAgent) MarshalJSON

func (s OptNilSessionResponseUserAgent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSessionResponseUserAgent) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSessionResponseUserAgent) Reset

func (o *OptNilSessionResponseUserAgent) Reset()

Reset unsets value.

func (*OptNilSessionResponseUserAgent) SetTo

SetTo sets value to v.

func (*OptNilSessionResponseUserAgent) SetToNull

func (o *OptNilSessionResponseUserAgent) SetToNull()

SetToNull sets value to null.

func (*OptNilSessionResponseUserAgent) UnmarshalJSON

func (s *OptNilSessionResponseUserAgent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsNull returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetToNull sets value to null.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilUserID

type OptNilUserID struct {
	Value UserID
	Set   bool
	Null  bool
}

OptNilUserID is optional nullable UserID.

func NewOptNilUserID

func NewOptNilUserID(v UserID) OptNilUserID

NewOptNilUserID returns new OptNilUserID with value set to v.

func (*OptNilUserID) Decode

func (o *OptNilUserID) Decode(d *jx.Decoder) error

Decode decodes UserID from json.

func (OptNilUserID) Encode

func (o OptNilUserID) Encode(e *jx.Encoder)

Encode encodes UserID as json.

func (OptNilUserID) Get

func (o OptNilUserID) Get() (v UserID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilUserID) IsNull

func (o OptNilUserID) IsNull() bool

IsNull returns true if value is Null.

func (OptNilUserID) IsSet

func (o OptNilUserID) IsSet() bool

IsSet returns true if OptNilUserID was set.

func (OptNilUserID) MarshalJSON

func (s OptNilUserID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilUserID) Or

func (o OptNilUserID) Or(d UserID) UserID

Or returns value if set, or given parameter if does not.

func (*OptNilUserID) Reset

func (o *OptNilUserID) Reset()

Reset unsets value.

func (*OptNilUserID) SetTo

func (o *OptNilUserID) SetTo(v UserID)

SetTo sets value to v.

func (*OptNilUserID) SetToNull

func (o *OptNilUserID) SetToNull()

SetToNull sets value to null.

func (*OptNilUserID) UnmarshalJSON

func (s *OptNilUserID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilUserPropertyXMinusUnique

type OptNilUserPropertyXMinusUnique struct {
	Value UserPropertyXMinusUnique
	Set   bool
	Null  bool
}

OptNilUserPropertyXMinusUnique is optional nullable UserPropertyXMinusUnique.

func NewOptNilUserPropertyXMinusUnique

func NewOptNilUserPropertyXMinusUnique(v UserPropertyXMinusUnique) OptNilUserPropertyXMinusUnique

NewOptNilUserPropertyXMinusUnique returns new OptNilUserPropertyXMinusUnique with value set to v.

func (*OptNilUserPropertyXMinusUnique) Decode

Decode decodes UserPropertyXMinusUnique from json.

func (OptNilUserPropertyXMinusUnique) Encode

Encode encodes UserPropertyXMinusUnique as json.

func (OptNilUserPropertyXMinusUnique) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilUserPropertyXMinusUnique) IsNull

IsNull returns true if value is Null.

func (OptNilUserPropertyXMinusUnique) IsSet

IsSet returns true if OptNilUserPropertyXMinusUnique was set.

func (OptNilUserPropertyXMinusUnique) MarshalJSON

func (s OptNilUserPropertyXMinusUnique) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilUserPropertyXMinusUnique) Or

Or returns value if set, or given parameter if does not.

func (*OptNilUserPropertyXMinusUnique) Reset

func (o *OptNilUserPropertyXMinusUnique) Reset()

Reset unsets value.

func (*OptNilUserPropertyXMinusUnique) SetTo

SetTo sets value to v.

func (*OptNilUserPropertyXMinusUnique) SetToNull

func (o *OptNilUserPropertyXMinusUnique) SetToNull()

SetToNull sets value to null.

func (*OptNilUserPropertyXMinusUnique) UnmarshalJSON

func (s *OptNilUserPropertyXMinusUnique) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPageToken

type OptPageToken struct {
	Value PageToken
	Set   bool
}

OptPageToken is optional PageToken.

func NewOptPageToken

func NewOptPageToken(v PageToken) OptPageToken

NewOptPageToken returns new OptPageToken with value set to v.

func (OptPageToken) Get

func (o OptPageToken) Get() (v PageToken, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPageToken) IsSet

func (o OptPageToken) IsSet() bool

IsSet returns true if OptPageToken was set.

func (OptPageToken) Or

Or returns value if set, or given parameter if does not.

func (*OptPageToken) Reset

func (o *OptPageToken) Reset()

Reset unsets value.

func (*OptPageToken) SetTo

func (o *OptPageToken) SetTo(v PageToken)

SetTo sets value to v.

type OptPasskeyChallengePayloadPublicKeyUserVerification

type OptPasskeyChallengePayloadPublicKeyUserVerification struct {
	Value PasskeyChallengePayloadPublicKeyUserVerification
	Set   bool
}

OptPasskeyChallengePayloadPublicKeyUserVerification is optional PasskeyChallengePayloadPublicKeyUserVerification.

func NewOptPasskeyChallengePayloadPublicKeyUserVerification

func NewOptPasskeyChallengePayloadPublicKeyUserVerification(v PasskeyChallengePayloadPublicKeyUserVerification) OptPasskeyChallengePayloadPublicKeyUserVerification

NewOptPasskeyChallengePayloadPublicKeyUserVerification returns new OptPasskeyChallengePayloadPublicKeyUserVerification with value set to v.

func (*OptPasskeyChallengePayloadPublicKeyUserVerification) Decode

Decode decodes PasskeyChallengePayloadPublicKeyUserVerification from json.

func (OptPasskeyChallengePayloadPublicKeyUserVerification) Encode

Encode encodes PasskeyChallengePayloadPublicKeyUserVerification as json.

func (OptPasskeyChallengePayloadPublicKeyUserVerification) Get

Get returns value and boolean that denotes whether value was set.

func (OptPasskeyChallengePayloadPublicKeyUserVerification) IsSet

IsSet returns true if OptPasskeyChallengePayloadPublicKeyUserVerification was set.

func (OptPasskeyChallengePayloadPublicKeyUserVerification) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPasskeyChallengePayloadPublicKeyUserVerification) Or

Or returns value if set, or given parameter if does not.

func (*OptPasskeyChallengePayloadPublicKeyUserVerification) Reset

Reset unsets value.

func (*OptPasskeyChallengePayloadPublicKeyUserVerification) SetTo

SetTo sets value to v.

func (*OptPasskeyChallengePayloadPublicKeyUserVerification) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPasskeyFactorPayloadAuthenticatorAttachment

type OptPasskeyFactorPayloadAuthenticatorAttachment struct {
	Value PasskeyFactorPayloadAuthenticatorAttachment
	Set   bool
}

OptPasskeyFactorPayloadAuthenticatorAttachment is optional PasskeyFactorPayloadAuthenticatorAttachment.

func NewOptPasskeyFactorPayloadAuthenticatorAttachment

func NewOptPasskeyFactorPayloadAuthenticatorAttachment(v PasskeyFactorPayloadAuthenticatorAttachment) OptPasskeyFactorPayloadAuthenticatorAttachment

NewOptPasskeyFactorPayloadAuthenticatorAttachment returns new OptPasskeyFactorPayloadAuthenticatorAttachment with value set to v.

func (*OptPasskeyFactorPayloadAuthenticatorAttachment) Decode

Decode decodes PasskeyFactorPayloadAuthenticatorAttachment from json.

func (OptPasskeyFactorPayloadAuthenticatorAttachment) Encode

Encode encodes PasskeyFactorPayloadAuthenticatorAttachment as json.

func (OptPasskeyFactorPayloadAuthenticatorAttachment) Get

Get returns value and boolean that denotes whether value was set.

func (OptPasskeyFactorPayloadAuthenticatorAttachment) IsSet

IsSet returns true if OptPasskeyFactorPayloadAuthenticatorAttachment was set.

func (OptPasskeyFactorPayloadAuthenticatorAttachment) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPasskeyFactorPayloadAuthenticatorAttachment) Or

Or returns value if set, or given parameter if does not.

func (*OptPasskeyFactorPayloadAuthenticatorAttachment) Reset

Reset unsets value.

func (*OptPasskeyFactorPayloadAuthenticatorAttachment) SetTo

SetTo sets value to v.

func (*OptPasskeyFactorPayloadAuthenticatorAttachment) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPostTokenRequestGrantType

type OptPostTokenRequestGrantType struct {
	Value PostTokenRequestGrantType
	Set   bool
}

OptPostTokenRequestGrantType is optional PostTokenRequestGrantType.

func NewOptPostTokenRequestGrantType

func NewOptPostTokenRequestGrantType(v PostTokenRequestGrantType) OptPostTokenRequestGrantType

NewOptPostTokenRequestGrantType returns new OptPostTokenRequestGrantType with value set to v.

func (OptPostTokenRequestGrantType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPostTokenRequestGrantType) IsSet

IsSet returns true if OptPostTokenRequestGrantType was set.

func (OptPostTokenRequestGrantType) Or

Or returns value if set, or given parameter if does not.

func (*OptPostTokenRequestGrantType) Reset

func (o *OptPostTokenRequestGrantType) Reset()

Reset unsets value.

func (*OptPostTokenRequestGrantType) SetTo

SetTo sets value to v.

type OptSchemaURI

type OptSchemaURI struct {
	Value SchemaURI
	Set   bool
}

OptSchemaURI is optional SchemaURI.

func NewOptSchemaURI

func NewOptSchemaURI(v SchemaURI) OptSchemaURI

NewOptSchemaURI returns new OptSchemaURI with value set to v.

func (*OptSchemaURI) Decode

func (o *OptSchemaURI) Decode(d *jx.Decoder) error

Decode decodes SchemaURI from json.

func (OptSchemaURI) Encode

func (o OptSchemaURI) Encode(e *jx.Encoder)

Encode encodes SchemaURI as json.

func (OptSchemaURI) Get

func (o OptSchemaURI) Get() (v SchemaURI, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSchemaURI) IsSet

func (o OptSchemaURI) IsSet() bool

IsSet returns true if OptSchemaURI was set.

func (OptSchemaURI) MarshalJSON

func (s OptSchemaURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSchemaURI) Or

Or returns value if set, or given parameter if does not.

func (*OptSchemaURI) Reset

func (o *OptSchemaURI) Reset()

Reset unsets value.

func (*OptSchemaURI) SetTo

func (o *OptSchemaURI) SetTo(v SchemaURI)

SetTo sets value to v.

func (*OptSchemaURI) UnmarshalJSON

func (s *OptSchemaURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStepTexts

type OptStepTexts struct {
	Value StepTexts
	Set   bool
}

OptStepTexts is optional StepTexts.

func NewOptStepTexts

func NewOptStepTexts(v StepTexts) OptStepTexts

NewOptStepTexts returns new OptStepTexts with value set to v.

func (*OptStepTexts) Decode

func (o *OptStepTexts) Decode(d *jx.Decoder) error

Decode decodes StepTexts from json.

func (OptStepTexts) Encode

func (o OptStepTexts) Encode(e *jx.Encoder)

Encode encodes StepTexts as json.

func (OptStepTexts) Get

func (o OptStepTexts) Get() (v StepTexts, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptStepTexts) IsSet

func (o OptStepTexts) IsSet() bool

IsSet returns true if OptStepTexts was set.

func (OptStepTexts) MarshalJSON

func (s OptStepTexts) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStepTexts) Or

Or returns value if set, or given parameter if does not.

func (*OptStepTexts) Reset

func (o *OptStepTexts) Reset()

Reset unsets value.

func (*OptStepTexts) SetTo

func (o *OptStepTexts) SetTo(v StepTexts)

SetTo sets value to v.

func (*OptStepTexts) UnmarshalJSON

func (s *OptStepTexts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTeamID

type OptTeamID struct {
	Value TeamID
	Set   bool
}

OptTeamID is optional TeamID.

func NewOptTeamID

func NewOptTeamID(v TeamID) OptTeamID

NewOptTeamID returns new OptTeamID with value set to v.

func (OptTeamID) Get

func (o OptTeamID) Get() (v TeamID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTeamID) IsSet

func (o OptTeamID) IsSet() bool

IsSet returns true if OptTeamID was set.

func (OptTeamID) Or

func (o OptTeamID) Or(d TeamID) TeamID

Or returns value if set, or given parameter if does not.

func (*OptTeamID) Reset

func (o *OptTeamID) Reset()

Reset unsets value.

func (*OptTeamID) SetTo

func (o *OptTeamID) SetTo(v TeamID)

SetTo sets value to v.

type OptURI

type OptURI struct {
	Value url.URL
	Set   bool
}

OptURI is optional url.URL.

func NewOptURI

func NewOptURI(v url.URL) OptURI

NewOptURI returns new OptURI with value set to v.

func (*OptURI) Decode

func (o *OptURI) Decode(d *jx.Decoder) error

Decode decodes url.URL from json.

func (OptURI) Encode

func (o OptURI) Encode(e *jx.Encoder)

Encode encodes url.URL as json.

func (OptURI) Get

func (o OptURI) Get() (v url.URL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptURI) IsSet

func (o OptURI) IsSet() bool

IsSet returns true if OptURI was set.

func (OptURI) MarshalJSON

func (s OptURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptURI) Or

func (o OptURI) Or(d url.URL) url.URL

Or returns value if set, or given parameter if does not.

func (*OptURI) Reset

func (o *OptURI) Reset()

Reset unsets value.

func (*OptURI) SetTo

func (o *OptURI) SetTo(v url.URL)

SetTo sets value to v.

func (*OptURI) UnmarshalJSON

func (s *OptURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserID

type OptUserID struct {
	Value UserID
	Set   bool
}

OptUserID is optional UserID.

func NewOptUserID

func NewOptUserID(v UserID) OptUserID

NewOptUserID returns new OptUserID with value set to v.

func (*OptUserID) Decode

func (o *OptUserID) Decode(d *jx.Decoder) error

Decode decodes UserID from json.

func (OptUserID) Encode

func (o OptUserID) Encode(e *jx.Encoder)

Encode encodes UserID as json.

func (OptUserID) Get

func (o OptUserID) Get() (v UserID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUserID) IsSet

func (o OptUserID) IsSet() bool

IsSet returns true if OptUserID was set.

func (OptUserID) MarshalJSON

func (s OptUserID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserID) Or

func (o OptUserID) Or(d UserID) UserID

Or returns value if set, or given parameter if does not.

func (*OptUserID) Reset

func (o *OptUserID) Reset()

Reset unsets value.

func (*OptUserID) SetTo

func (o *OptUserID) SetTo(v UserID)

SetTo sets value to v.

func (*OptUserID) UnmarshalJSON

func (s *OptUserID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserNotFoundDetails

type OptUserNotFoundDetails struct {
	Value UserNotFoundDetails
	Set   bool
}

OptUserNotFoundDetails is optional UserNotFoundDetails.

func NewOptUserNotFoundDetails

func NewOptUserNotFoundDetails(v UserNotFoundDetails) OptUserNotFoundDetails

NewOptUserNotFoundDetails returns new OptUserNotFoundDetails with value set to v.

func (*OptUserNotFoundDetails) Decode

func (o *OptUserNotFoundDetails) Decode(d *jx.Decoder) error

Decode decodes UserNotFoundDetails from json.

func (OptUserNotFoundDetails) Encode

func (o OptUserNotFoundDetails) Encode(e *jx.Encoder)

Encode encodes UserNotFoundDetails as json.

func (OptUserNotFoundDetails) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserNotFoundDetails) IsSet

func (o OptUserNotFoundDetails) IsSet() bool

IsSet returns true if OptUserNotFoundDetails was set.

func (OptUserNotFoundDetails) MarshalJSON

func (s OptUserNotFoundDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserNotFoundDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptUserNotFoundDetails) Reset

func (o *OptUserNotFoundDetails) Reset()

Reset unsets value.

func (*OptUserNotFoundDetails) SetTo

SetTo sets value to v.

func (*OptUserNotFoundDetails) UnmarshalJSON

func (s *OptUserNotFoundDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserPropertyProperties

type OptUserPropertyProperties struct {
	Value UserPropertyProperties
	Set   bool
}

OptUserPropertyProperties is optional UserPropertyProperties.

func NewOptUserPropertyProperties

func NewOptUserPropertyProperties(v UserPropertyProperties) OptUserPropertyProperties

NewOptUserPropertyProperties returns new OptUserPropertyProperties with value set to v.

func (*OptUserPropertyProperties) Decode

func (o *OptUserPropertyProperties) Decode(d *jx.Decoder) error

Decode decodes UserPropertyProperties from json.

func (OptUserPropertyProperties) Encode

func (o OptUserPropertyProperties) Encode(e *jx.Encoder)

Encode encodes UserPropertyProperties as json.

func (OptUserPropertyProperties) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserPropertyProperties) IsSet

func (o OptUserPropertyProperties) IsSet() bool

IsSet returns true if OptUserPropertyProperties was set.

func (OptUserPropertyProperties) MarshalJSON

func (s OptUserPropertyProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserPropertyProperties) Or

Or returns value if set, or given parameter if does not.

func (*OptUserPropertyProperties) Reset

func (o *OptUserPropertyProperties) Reset()

Reset unsets value.

func (*OptUserPropertyProperties) SetTo

SetTo sets value to v.

func (*OptUserPropertyProperties) UnmarshalJSON

func (s *OptUserPropertyProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserSchemaProperties

type OptUserSchemaProperties struct {
	Value UserSchemaProperties
	Set   bool
}

OptUserSchemaProperties is optional UserSchemaProperties.

func NewOptUserSchemaProperties

func NewOptUserSchemaProperties(v UserSchemaProperties) OptUserSchemaProperties

NewOptUserSchemaProperties returns new OptUserSchemaProperties with value set to v.

func (*OptUserSchemaProperties) Decode

func (o *OptUserSchemaProperties) Decode(d *jx.Decoder) error

Decode decodes UserSchemaProperties from json.

func (OptUserSchemaProperties) Encode

func (o OptUserSchemaProperties) Encode(e *jx.Encoder)

Encode encodes UserSchemaProperties as json.

func (OptUserSchemaProperties) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserSchemaProperties) IsSet

func (o OptUserSchemaProperties) IsSet() bool

IsSet returns true if OptUserSchemaProperties was set.

func (OptUserSchemaProperties) MarshalJSON

func (s OptUserSchemaProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserSchemaProperties) Or

Or returns value if set, or given parameter if does not.

func (*OptUserSchemaProperties) Reset

func (o *OptUserSchemaProperties) Reset()

Reset unsets value.

func (*OptUserSchemaProperties) SetTo

SetTo sets value to v.

func (*OptUserSchemaProperties) UnmarshalJSON

func (s *OptUserSchemaProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithAttributes

func WithAttributes(attributes ...attribute.KeyValue) Option

WithAttributes specifies default otel attributes.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type PageToken

type PageToken string

func (*PageToken) Decode

func (s *PageToken) Decode(d *jx.Decoder) error

Decode decodes PageToken from json.

func (PageToken) Encode

func (s PageToken) Encode(e *jx.Encoder)

Encode encodes PageToken as json.

func (PageToken) MarshalJSON

func (s PageToken) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PageToken) UnmarshalJSON

func (s *PageToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PasskeyChallengePayload

type PasskeyChallengePayload struct {
	// Contains the options for the Assertion Generation (dictionary PublicKeyCredentialRequestOptions).
	// See also: https://www.w3.org/TR/webauthn/#dictdef-publickeycredentialrequestoptions.
	PublicKey PasskeyChallengePayloadPublicKey `json:"public_key"`
}

WebAuthn-specific challenge data for passkey authentication. Ref: #

func (*PasskeyChallengePayload) Decode

func (s *PasskeyChallengePayload) Decode(d *jx.Decoder) error

Decode decodes PasskeyChallengePayload from json.

func (*PasskeyChallengePayload) Encode

func (s *PasskeyChallengePayload) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PasskeyChallengePayload) GetPublicKey

GetPublicKey returns the value of PublicKey.

func (*PasskeyChallengePayload) MarshalJSON

func (s *PasskeyChallengePayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasskeyChallengePayload) SetPublicKey

SetPublicKey sets the value of PublicKey.

func (*PasskeyChallengePayload) UnmarshalJSON

func (s *PasskeyChallengePayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PasskeyChallengePayload) Validate

func (s *PasskeyChallengePayload) Validate() error

type PasskeyChallengePayloadPublicKey

type PasskeyChallengePayloadPublicKey struct {
	// Base64-encoded WebAuthn challenge.
	Challenge string `json:"challenge"`
	// List of credential IDs that can be used for this authentication.
	AllowedCredentials []PasskeyChallengePayloadPublicKeyAllowedCredentialsItem `json:"allowed_credentials"`
	// User verification requirement for this challenge.
	UserVerification OptPasskeyChallengePayloadPublicKeyUserVerification `json:"user_verification"`
	// Relying Party ID for WebAuthn.
	RpID OptString `json:"rp_id"`
}

Contains the options for the Assertion Generation (dictionary PublicKeyCredentialRequestOptions). See also: https://www.w3.org/TR/webauthn/#dictdef-publickeycredentialrequestoptions.

func (*PasskeyChallengePayloadPublicKey) Decode

Decode decodes PasskeyChallengePayloadPublicKey from json.

func (*PasskeyChallengePayloadPublicKey) Encode

Encode implements json.Marshaler.

func (*PasskeyChallengePayloadPublicKey) GetAllowedCredentials

GetAllowedCredentials returns the value of AllowedCredentials.

func (*PasskeyChallengePayloadPublicKey) GetChallenge

func (s *PasskeyChallengePayloadPublicKey) GetChallenge() string

GetChallenge returns the value of Challenge.

func (*PasskeyChallengePayloadPublicKey) GetRpID

GetRpID returns the value of RpID.

func (*PasskeyChallengePayloadPublicKey) GetUserVerification

GetUserVerification returns the value of UserVerification.

func (*PasskeyChallengePayloadPublicKey) MarshalJSON

func (s *PasskeyChallengePayloadPublicKey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasskeyChallengePayloadPublicKey) SetAllowedCredentials

SetAllowedCredentials sets the value of AllowedCredentials.

func (*PasskeyChallengePayloadPublicKey) SetChallenge

func (s *PasskeyChallengePayloadPublicKey) SetChallenge(val string)

SetChallenge sets the value of Challenge.

func (*PasskeyChallengePayloadPublicKey) SetRpID

SetRpID sets the value of RpID.

func (*PasskeyChallengePayloadPublicKey) SetUserVerification

SetUserVerification sets the value of UserVerification.

func (*PasskeyChallengePayloadPublicKey) UnmarshalJSON

func (s *PasskeyChallengePayloadPublicKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PasskeyChallengePayloadPublicKey) Validate

type PasskeyChallengePayloadPublicKeyAllowedCredentialsItem

type PasskeyChallengePayloadPublicKeyAllowedCredentialsItem struct {
	// Base64-encoded credential ID.
	ID   string                                                     `json:"id"`
	Type PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType `json:"type"`
}

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItem) Decode

Decode decodes PasskeyChallengePayloadPublicKeyAllowedCredentialsItem from json.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItem) Encode

Encode implements json.Marshaler.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItem) GetID

GetID returns the value of ID.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItem) GetType

GetType returns the value of Type.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItem) SetID

SetID sets the value of ID.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItem) SetType

SetType sets the value of Type.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItem) Validate

type PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType

type PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType string
const (
	PasskeyChallengePayloadPublicKeyAllowedCredentialsItemTypePublicKey PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType = "public-key"
)

func (PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType) AllValues

AllValues returns all PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType values.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType) Decode

Decode decodes PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType from json.

func (PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType) Encode

Encode encodes PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType as json.

func (PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PasskeyChallengePayloadPublicKeyAllowedCredentialsItemType) Validate

type PasskeyChallengePayloadPublicKeyUserVerification

type PasskeyChallengePayloadPublicKeyUserVerification string

User verification requirement for this challenge.

const (
	PasskeyChallengePayloadPublicKeyUserVerificationRequired    PasskeyChallengePayloadPublicKeyUserVerification = "required"
	PasskeyChallengePayloadPublicKeyUserVerificationPreferred   PasskeyChallengePayloadPublicKeyUserVerification = "preferred"
	PasskeyChallengePayloadPublicKeyUserVerificationDiscouraged PasskeyChallengePayloadPublicKeyUserVerification = "discouraged"
)

func (PasskeyChallengePayloadPublicKeyUserVerification) AllValues

AllValues returns all PasskeyChallengePayloadPublicKeyUserVerification values.

func (*PasskeyChallengePayloadPublicKeyUserVerification) Decode

Decode decodes PasskeyChallengePayloadPublicKeyUserVerification from json.

func (PasskeyChallengePayloadPublicKeyUserVerification) Encode

Encode encodes PasskeyChallengePayloadPublicKeyUserVerification as json.

func (PasskeyChallengePayloadPublicKeyUserVerification) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PasskeyChallengePayloadPublicKeyUserVerification) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PasskeyChallengePayloadPublicKeyUserVerification) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PasskeyChallengePayloadPublicKeyUserVerification) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PasskeyChallengePayloadPublicKeyUserVerification) Validate

type PasskeyFactorPayload

type PasskeyFactorPayload struct {
	// The credential ID that was used.
	CredentialID string `json:"credential_id"`
	// Whether user verification was performed (PIN/biometric).
	UserVerified bool `json:"user_verified"`
	// Whether the credential is backup eligible (can be synced).
	BackupEligible OptBool `json:"backup_eligible"`
	// Whether the credential is currently backed up.
	BackupState OptBool `json:"backup_state"`
	// Authenticator attachment modality.
	AuthenticatorAttachment OptPasskeyFactorPayloadAuthenticatorAttachment `json:"authenticator_attachment"`
}

Passkey-specific factor metadata including credential and verification details. Ref: #

func (*PasskeyFactorPayload) Decode

func (s *PasskeyFactorPayload) Decode(d *jx.Decoder) error

Decode decodes PasskeyFactorPayload from json.

func (*PasskeyFactorPayload) Encode

func (s *PasskeyFactorPayload) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PasskeyFactorPayload) GetAuthenticatorAttachment

GetAuthenticatorAttachment returns the value of AuthenticatorAttachment.

func (*PasskeyFactorPayload) GetBackupEligible

func (s *PasskeyFactorPayload) GetBackupEligible() OptBool

GetBackupEligible returns the value of BackupEligible.

func (*PasskeyFactorPayload) GetBackupState

func (s *PasskeyFactorPayload) GetBackupState() OptBool

GetBackupState returns the value of BackupState.

func (*PasskeyFactorPayload) GetCredentialID

func (s *PasskeyFactorPayload) GetCredentialID() string

GetCredentialID returns the value of CredentialID.

func (*PasskeyFactorPayload) GetUserVerified

func (s *PasskeyFactorPayload) GetUserVerified() bool

GetUserVerified returns the value of UserVerified.

func (*PasskeyFactorPayload) MarshalJSON

func (s *PasskeyFactorPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasskeyFactorPayload) SetAuthenticatorAttachment

func (s *PasskeyFactorPayload) SetAuthenticatorAttachment(val OptPasskeyFactorPayloadAuthenticatorAttachment)

SetAuthenticatorAttachment sets the value of AuthenticatorAttachment.

func (*PasskeyFactorPayload) SetBackupEligible

func (s *PasskeyFactorPayload) SetBackupEligible(val OptBool)

SetBackupEligible sets the value of BackupEligible.

func (*PasskeyFactorPayload) SetBackupState

func (s *PasskeyFactorPayload) SetBackupState(val OptBool)

SetBackupState sets the value of BackupState.

func (*PasskeyFactorPayload) SetCredentialID

func (s *PasskeyFactorPayload) SetCredentialID(val string)

SetCredentialID sets the value of CredentialID.

func (*PasskeyFactorPayload) SetUserVerified

func (s *PasskeyFactorPayload) SetUserVerified(val bool)

SetUserVerified sets the value of UserVerified.

func (*PasskeyFactorPayload) UnmarshalJSON

func (s *PasskeyFactorPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PasskeyFactorPayload) Validate

func (s *PasskeyFactorPayload) Validate() error

type PasskeyFactorPayloadAuthenticatorAttachment

type PasskeyFactorPayloadAuthenticatorAttachment string

Authenticator attachment modality.

const (
	PasskeyFactorPayloadAuthenticatorAttachmentPlatform      PasskeyFactorPayloadAuthenticatorAttachment = "platform"
	PasskeyFactorPayloadAuthenticatorAttachmentCrossPlatform PasskeyFactorPayloadAuthenticatorAttachment = "cross-platform"
)

func (PasskeyFactorPayloadAuthenticatorAttachment) AllValues

AllValues returns all PasskeyFactorPayloadAuthenticatorAttachment values.

func (*PasskeyFactorPayloadAuthenticatorAttachment) Decode

Decode decodes PasskeyFactorPayloadAuthenticatorAttachment from json.

func (PasskeyFactorPayloadAuthenticatorAttachment) Encode

Encode encodes PasskeyFactorPayloadAuthenticatorAttachment as json.

func (PasskeyFactorPayloadAuthenticatorAttachment) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PasskeyFactorPayloadAuthenticatorAttachment) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PasskeyFactorPayloadAuthenticatorAttachment) UnmarshalJSON

func (s *PasskeyFactorPayloadAuthenticatorAttachment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PasskeyFactorPayloadAuthenticatorAttachment) UnmarshalText

func (s *PasskeyFactorPayloadAuthenticatorAttachment) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PasskeyFactorPayloadAuthenticatorAttachment) Validate

type PasskeyProof

type PasskeyProof struct {
	// WebAuthn passkey assertion.
	Passkey PasskeyProofPasskey `json:"passkey"`
}

Proof for `passkey` method. Ref: #

func (*PasskeyProof) Decode

func (s *PasskeyProof) Decode(d *jx.Decoder) error

Decode decodes PasskeyProof from json.

func (*PasskeyProof) Encode

func (s *PasskeyProof) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PasskeyProof) GetPasskey

func (s *PasskeyProof) GetPasskey() PasskeyProofPasskey

GetPasskey returns the value of Passkey.

func (*PasskeyProof) MarshalJSON

func (s *PasskeyProof) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasskeyProof) SetPasskey

func (s *PasskeyProof) SetPasskey(val PasskeyProofPasskey)

SetPasskey sets the value of Passkey.

func (*PasskeyProof) UnmarshalJSON

func (s *PasskeyProof) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PasskeyProofPasskey

type PasskeyProofPasskey struct {
	// The WebAuthn AssertionResponse object.
	Assertion PasskeyProofPasskeyAssertion `json:"assertion"`
}

WebAuthn passkey assertion.

func (*PasskeyProofPasskey) Decode

func (s *PasskeyProofPasskey) Decode(d *jx.Decoder) error

Decode decodes PasskeyProofPasskey from json.

func (*PasskeyProofPasskey) Encode

func (s *PasskeyProofPasskey) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PasskeyProofPasskey) GetAssertion

GetAssertion returns the value of Assertion.

func (*PasskeyProofPasskey) MarshalJSON

func (s *PasskeyProofPasskey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasskeyProofPasskey) SetAssertion

SetAssertion sets the value of Assertion.

func (*PasskeyProofPasskey) UnmarshalJSON

func (s *PasskeyProofPasskey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PasskeyProofPasskeyAssertion

type PasskeyProofPasskeyAssertion map[string]jx.Raw

The WebAuthn AssertionResponse object.

func (*PasskeyProofPasskeyAssertion) Decode

Decode decodes PasskeyProofPasskeyAssertion from json.

func (PasskeyProofPasskeyAssertion) Encode

Encode implements json.Marshaler.

func (PasskeyProofPasskeyAssertion) MarshalJSON

func (s PasskeyProofPasskeyAssertion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasskeyProofPasskeyAssertion) UnmarshalJSON

func (s *PasskeyProofPasskeyAssertion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PasswordChallengePayload

type PasswordChallengePayload struct{}

Password challenge has no additional data beyond base challenge fields. Ref: #

func (*PasswordChallengePayload) Decode

func (s *PasswordChallengePayload) Decode(d *jx.Decoder) error

Decode decodes PasswordChallengePayload from json.

func (*PasswordChallengePayload) Encode

func (s *PasswordChallengePayload) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PasswordChallengePayload) MarshalJSON

func (s *PasswordChallengePayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasswordChallengePayload) UnmarshalJSON

func (s *PasswordChallengePayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PasswordFactorPayload

type PasswordFactorPayload struct{}

Password authentication has no additional metadata beyond the base factor fields. Ref: #

func (*PasswordFactorPayload) Decode

func (s *PasswordFactorPayload) Decode(d *jx.Decoder) error

Decode decodes PasswordFactorPayload from json.

func (*PasswordFactorPayload) Encode

func (s *PasswordFactorPayload) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PasswordFactorPayload) MarshalJSON

func (s *PasswordFactorPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasswordFactorPayload) UnmarshalJSON

func (s *PasswordFactorPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PasswordProof

type PasswordProof struct {
	// The password being verified.
	Password string `json:"password"`
}

Proof for `password` method. Ref: #

func (*PasswordProof) Decode

func (s *PasswordProof) Decode(d *jx.Decoder) error

Decode decodes PasswordProof from json.

func (*PasswordProof) Encode

func (s *PasswordProof) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PasswordProof) GetPassword

func (s *PasswordProof) GetPassword() string

GetPassword returns the value of Password.

func (*PasswordProof) MarshalJSON

func (s *PasswordProof) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasswordProof) SetPassword

func (s *PasswordProof) SetPassword(val string)

SetPassword sets the value of Password.

func (*PasswordProof) UnmarshalJSON

func (s *PasswordProof) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PostTokenRequest

type PostTokenRequest struct {
	// The authorization code received from the authorization server. Required
	// for the authorization_code grant type.
	Code OptString `json:"code"`
	// The client assertion, typically a JWT, used for client authentication.
	ClientAssertion OptString `json:"client_assertion"`
	// The type of client assertion being used. Required when the client is
	// authenticating using a JWT assertion.
	ClientAssertionType OptString `json:"client_assertion_type"`
	// The client identifier issued to the client during the registration
	// process. Required for all grant types.
	ClientID OptString `json:"client_id"`
	// The client secret issued to the client during the registration process.
	// Required for all grant types except when using public clients.
	ClientSecret OptString `json:"client_secret"`
	// The code verifier used in PKCE (Proof Key for Code Exchange) flows. Required
	// for the authorization_code grant type when PKCE is used.
	CodeVerifier OptString `json:"code_verifier"`
	// The type of grant being requested.
	GrantType OptPostTokenRequestGrantType `json:"grant_type"`
	// The redirect URI used in the authorization request. Required for the
	// authorization_code grant type.
	RedirectURI OptURI `json:"redirect_uri"`
}

Ref: #

func (*PostTokenRequest) GetClientAssertion

func (s *PostTokenRequest) GetClientAssertion() OptString

GetClientAssertion returns the value of ClientAssertion.

func (*PostTokenRequest) GetClientAssertionType

func (s *PostTokenRequest) GetClientAssertionType() OptString

GetClientAssertionType returns the value of ClientAssertionType.

func (*PostTokenRequest) GetClientID

func (s *PostTokenRequest) GetClientID() OptString

GetClientID returns the value of ClientID.

func (*PostTokenRequest) GetClientSecret

func (s *PostTokenRequest) GetClientSecret() OptString

GetClientSecret returns the value of ClientSecret.

func (*PostTokenRequest) GetCode

func (s *PostTokenRequest) GetCode() OptString

GetCode returns the value of Code.

func (*PostTokenRequest) GetCodeVerifier

func (s *PostTokenRequest) GetCodeVerifier() OptString

GetCodeVerifier returns the value of CodeVerifier.

func (*PostTokenRequest) GetGrantType

GetGrantType returns the value of GrantType.

func (*PostTokenRequest) GetRedirectURI

func (s *PostTokenRequest) GetRedirectURI() OptURI

GetRedirectURI returns the value of RedirectURI.

func (*PostTokenRequest) SetClientAssertion

func (s *PostTokenRequest) SetClientAssertion(val OptString)

SetClientAssertion sets the value of ClientAssertion.

func (*PostTokenRequest) SetClientAssertionType

func (s *PostTokenRequest) SetClientAssertionType(val OptString)

SetClientAssertionType sets the value of ClientAssertionType.

func (*PostTokenRequest) SetClientID

func (s *PostTokenRequest) SetClientID(val OptString)

SetClientID sets the value of ClientID.

func (*PostTokenRequest) SetClientSecret

func (s *PostTokenRequest) SetClientSecret(val OptString)

SetClientSecret sets the value of ClientSecret.

func (*PostTokenRequest) SetCode

func (s *PostTokenRequest) SetCode(val OptString)

SetCode sets the value of Code.

func (*PostTokenRequest) SetCodeVerifier

func (s *PostTokenRequest) SetCodeVerifier(val OptString)

SetCodeVerifier sets the value of CodeVerifier.

func (*PostTokenRequest) SetGrantType

func (s *PostTokenRequest) SetGrantType(val OptPostTokenRequestGrantType)

SetGrantType sets the value of GrantType.

func (*PostTokenRequest) SetRedirectURI

func (s *PostTokenRequest) SetRedirectURI(val OptURI)

SetRedirectURI sets the value of RedirectURI.

func (*PostTokenRequest) Validate

func (s *PostTokenRequest) Validate() error

type PostTokenRequestGrantType

type PostTokenRequestGrantType string

The type of grant being requested.

const (
	PostTokenRequestGrantTypeAuthorizationCode PostTokenRequestGrantType = "authorization_code"
	PostTokenRequestGrantTypeClientCredentials PostTokenRequestGrantType = "client_credentials"
	PostTokenRequestGrantTypePassword          PostTokenRequestGrantType = "password"
	PostTokenRequestGrantTypeRefreshToken      PostTokenRequestGrantType = "refresh_token"
)

func (PostTokenRequestGrantType) AllValues

AllValues returns all PostTokenRequestGrantType values.

func (PostTokenRequestGrantType) MarshalText

func (s PostTokenRequestGrantType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PostTokenRequestGrantType) UnmarshalText

func (s *PostTokenRequestGrantType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PostTokenRequestGrantType) Validate

func (s PostTokenRequestGrantType) Validate() error

type ProjectID

type ProjectID string

func (*ProjectID) Decode

func (s *ProjectID) Decode(d *jx.Decoder) error

Decode decodes ProjectID from json.

func (ProjectID) Encode

func (s ProjectID) Encode(e *jx.Encoder)

Encode encodes ProjectID as json.

func (ProjectID) MarshalJSON

func (s ProjectID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProjectID) UnmarshalJSON

func (s *ProjectID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ProjectID) Validate

func (s ProjectID) Validate() error

type RevokeMySessionConflict

type RevokeMySessionConflict ErrorDetails

func (*RevokeMySessionConflict) Decode

func (s *RevokeMySessionConflict) Decode(d *jx.Decoder) error

Decode decodes RevokeMySessionConflict from json.

func (*RevokeMySessionConflict) Encode

func (s *RevokeMySessionConflict) Encode(e *jx.Encoder)

Encode encodes RevokeMySessionConflict as json.

func (*RevokeMySessionConflict) MarshalJSON

func (s *RevokeMySessionConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeMySessionConflict) UnmarshalJSON

func (s *RevokeMySessionConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RevokeMySessionNoContent

type RevokeMySessionNoContent struct {
	SetCookie string
}

RevokeMySessionNoContent is response for RevokeMySession operation.

func (*RevokeMySessionNoContent) GetSetCookie

func (s *RevokeMySessionNoContent) GetSetCookie() string

GetSetCookie returns the value of SetCookie.

func (*RevokeMySessionNoContent) SetSetCookie

func (s *RevokeMySessionNoContent) SetSetCookie(val string)

SetSetCookie sets the value of SetCookie.

type RevokeMySessionNotFound

type RevokeMySessionNotFound ErrorDetails

func (*RevokeMySessionNotFound) Decode

func (s *RevokeMySessionNotFound) Decode(d *jx.Decoder) error

Decode decodes RevokeMySessionNotFound from json.

func (*RevokeMySessionNotFound) Encode

func (s *RevokeMySessionNotFound) Encode(e *jx.Encoder)

Encode encodes RevokeMySessionNotFound as json.

func (*RevokeMySessionNotFound) MarshalJSON

func (s *RevokeMySessionNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeMySessionNotFound) UnmarshalJSON

func (s *RevokeMySessionNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RevokeMySessionParams

type RevokeMySessionParams struct {
	// The __nextgen_session cookie issued at session creation or superseding handoff exchange.
	NextgenSession string
}

RevokeMySessionParams is parameters of revokeMySession operation.

type RevokeMySessionRes

type RevokeMySessionRes interface {
	// contains filtered or unexported methods
}

type RevokeMySessionUnauthorized

type RevokeMySessionUnauthorized ErrorDetails

func (*RevokeMySessionUnauthorized) Decode

Decode decodes RevokeMySessionUnauthorized from json.

func (*RevokeMySessionUnauthorized) Encode

func (s *RevokeMySessionUnauthorized) Encode(e *jx.Encoder)

Encode encodes RevokeMySessionUnauthorized as json.

func (*RevokeMySessionUnauthorized) MarshalJSON

func (s *RevokeMySessionUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeMySessionUnauthorized) UnmarshalJSON

func (s *RevokeMySessionUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RevokeRequest

type RevokeRequest struct {
	// The token to revoke (access token or refresh token).
	Token OptString `json:"token"`
	// Optional hint about the type of the token being revoked (access_token or refresh_token).
	TokenTypeHint OptString `json:"token_type_hint"`
}

Ref: #

func (*RevokeRequest) GetToken

func (s *RevokeRequest) GetToken() OptString

GetToken returns the value of Token.

func (*RevokeRequest) GetTokenTypeHint

func (s *RevokeRequest) GetTokenTypeHint() OptString

GetTokenTypeHint returns the value of TokenTypeHint.

func (*RevokeRequest) SetToken

func (s *RevokeRequest) SetToken(val OptString)

SetToken sets the value of Token.

func (*RevokeRequest) SetTokenTypeHint

func (s *RevokeRequest) SetTokenTypeHint(val OptString)

SetTokenTypeHint sets the value of TokenTypeHint.

type RevokeSessionConflict

type RevokeSessionConflict ErrorDetails

func (*RevokeSessionConflict) Decode

func (s *RevokeSessionConflict) Decode(d *jx.Decoder) error

Decode decodes RevokeSessionConflict from json.

func (*RevokeSessionConflict) Encode

func (s *RevokeSessionConflict) Encode(e *jx.Encoder)

Encode encodes RevokeSessionConflict as json.

func (*RevokeSessionConflict) MarshalJSON

func (s *RevokeSessionConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeSessionConflict) UnmarshalJSON

func (s *RevokeSessionConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RevokeSessionNoContent

type RevokeSessionNoContent struct {
	SetCookie string
}

RevokeSessionNoContent is response for RevokeSession operation.

func (*RevokeSessionNoContent) GetSetCookie

func (s *RevokeSessionNoContent) GetSetCookie() string

GetSetCookie returns the value of SetCookie.

func (*RevokeSessionNoContent) SetSetCookie

func (s *RevokeSessionNoContent) SetSetCookie(val string)

SetSetCookie sets the value of SetCookie.

type RevokeSessionNotFound

type RevokeSessionNotFound ErrorDetails

func (*RevokeSessionNotFound) Decode

func (s *RevokeSessionNotFound) Decode(d *jx.Decoder) error

Decode decodes RevokeSessionNotFound from json.

func (*RevokeSessionNotFound) Encode

func (s *RevokeSessionNotFound) Encode(e *jx.Encoder)

Encode encodes RevokeSessionNotFound as json.

func (*RevokeSessionNotFound) MarshalJSON

func (s *RevokeSessionNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeSessionNotFound) UnmarshalJSON

func (s *RevokeSessionNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RevokeSessionParams

type RevokeSessionParams struct {
	// The unique identifier of the project.
	ProjectID ProjectID
	// The unique identifier of the session.
	SessionID SessionID
}

RevokeSessionParams is parameters of revokeSession operation.

type RevokeSessionRes

type RevokeSessionRes interface {
	// contains filtered or unexported methods
}

type RevokeSessionUnauthorized

type RevokeSessionUnauthorized ErrorDetails

func (*RevokeSessionUnauthorized) Decode

func (s *RevokeSessionUnauthorized) Decode(d *jx.Decoder) error

Decode decodes RevokeSessionUnauthorized from json.

func (*RevokeSessionUnauthorized) Encode

func (s *RevokeSessionUnauthorized) Encode(e *jx.Encoder)

Encode encodes RevokeSessionUnauthorized as json.

func (*RevokeSessionUnauthorized) MarshalJSON

func (s *RevokeSessionUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RevokeSessionUnauthorized) UnmarshalJSON

func (s *RevokeSessionUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RevokeTokenOK

type RevokeTokenOK struct{}

RevokeTokenOK is response for RevokeToken operation.

type RevokeTokenRes

type RevokeTokenRes interface {
	// contains filtered or unexported methods
}

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationGroup

func (r Route) OperationGroup() string

OperationGroup returns the x-ogen-operation-group value.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type SSOProvider

type SSOProvider struct {
	// Provider instance identifier.
	ID string `json:"id"`
	// Display name for the provider.
	Name string `json:"name"`
	// Template hint for rendering (logo, colors).
	Template string `json:"template"`
}

An available SSO identity provider. Ref: #

func (*SSOProvider) Decode

func (s *SSOProvider) Decode(d *jx.Decoder) error

Decode decodes SSOProvider from json.

func (*SSOProvider) Encode

func (s *SSOProvider) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SSOProvider) GetID

func (s *SSOProvider) GetID() string

GetID returns the value of ID.

func (*SSOProvider) GetName

func (s *SSOProvider) GetName() string

GetName returns the value of Name.

func (*SSOProvider) GetTemplate

func (s *SSOProvider) GetTemplate() string

GetTemplate returns the value of Template.

func (*SSOProvider) MarshalJSON

func (s *SSOProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SSOProvider) SetID

func (s *SSOProvider) SetID(val string)

SetID sets the value of ID.

func (*SSOProvider) SetName

func (s *SSOProvider) SetName(val string)

SetName sets the value of Name.

func (*SSOProvider) SetTemplate

func (s *SSOProvider) SetTemplate(val string)

SetTemplate sets the value of Template.

func (*SSOProvider) UnmarshalJSON

func (s *SSOProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SchemaURI

type SchemaURI url.URL

func (*SchemaURI) Decode

func (s *SchemaURI) Decode(d *jx.Decoder) error

Decode decodes SchemaURI from json.

func (SchemaURI) Encode

func (s SchemaURI) Encode(e *jx.Encoder)

Encode encodes SchemaURI as json.

func (SchemaURI) MarshalJSON

func (s SchemaURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SchemaURI) UnmarshalJSON

func (s *SchemaURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SchemaURL

type SchemaURL struct {
	// Discriminator value for a user schema create request.
	Kind string `json:"kind"`
	// URL to the schema definition.
	URL url.URL `json:"url"`
}

A schema definition that references an external schema via a URL. It is on creation, validated against its metaschema and cached in the database. Ref: #

func (*SchemaURL) Decode

func (s *SchemaURL) Decode(d *jx.Decoder) error

Decode decodes SchemaURL from json.

func (*SchemaURL) Encode

func (s *SchemaURL) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SchemaURL) GetKind

func (s *SchemaURL) GetKind() string

GetKind returns the value of Kind.

func (*SchemaURL) GetURL

func (s *SchemaURL) GetURL() url.URL

GetURL returns the value of URL.

func (*SchemaURL) MarshalJSON

func (s *SchemaURL) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SchemaURL) SetKind

func (s *SchemaURL) SetKind(val string)

SetKind sets the value of Kind.

func (*SchemaURL) SetURL

func (s *SchemaURL) SetURL(val url.URL)

SetURL sets the value of URL.

func (*SchemaURL) UnmarshalJSON

func (s *SchemaURL) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SecurityHandler

type SecurityHandler interface {
	// HandleOAuth2 handles oauth2 security.
	HandleOAuth2(ctx context.Context, operationName OperationName, t OAuth2) (context.Context, error)
	// HandleUsernamePassword handles usernamePassword security.
	// Authorization requests (oauth).
	HandleUsernamePassword(ctx context.Context, operationName OperationName, t UsernamePassword) (context.Context, error)
}

SecurityHandler is handler for security parameters.

type SecuritySource

type SecuritySource interface {
	// OAuth2 provides oauth2 security value.
	OAuth2(ctx context.Context, operationName OperationName) (OAuth2, error)
	// UsernamePassword provides usernamePassword security value.
	// Authorization requests (oauth).
	UsernamePassword(ctx context.Context, operationName OperationName) (UsernamePassword, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type SessionID

type SessionID string

func (*SessionID) Decode

func (s *SessionID) Decode(d *jx.Decoder) error

Decode decodes SessionID from json.

func (SessionID) Encode

func (s SessionID) Encode(e *jx.Encoder)

Encode encodes SessionID as json.

func (SessionID) MarshalJSON

func (s SessionID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionID) UnmarshalJSON

func (s *SessionID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (SessionID) Validate

func (s SessionID) Validate() error

type SessionListResponse

type SessionListResponse struct {
	Sessions []SessionResponse `json:"sessions"`
	// Token to pass as `page_token` in the next request to fetch the following page.
	// Absent when there are no more results.
	NextPageToken OptNilPageToken `json:"next_page_token"`
}

Paginated list of sessions. Ref: #

func (*SessionListResponse) Decode

func (s *SessionListResponse) Decode(d *jx.Decoder) error

Decode decodes SessionListResponse from json.

func (*SessionListResponse) Encode

func (s *SessionListResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionListResponse) GetNextPageToken

func (s *SessionListResponse) GetNextPageToken() OptNilPageToken

GetNextPageToken returns the value of NextPageToken.

func (*SessionListResponse) GetSessions

func (s *SessionListResponse) GetSessions() []SessionResponse

GetSessions returns the value of Sessions.

func (*SessionListResponse) MarshalJSON

func (s *SessionListResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionListResponse) SetNextPageToken

func (s *SessionListResponse) SetNextPageToken(val OptNilPageToken)

SetNextPageToken sets the value of NextPageToken.

func (*SessionListResponse) SetSessions

func (s *SessionListResponse) SetSessions(val []SessionResponse)

SetSessions sets the value of Sessions.

func (*SessionListResponse) UnmarshalJSON

func (s *SessionListResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionListResponse) Validate

func (s *SessionListResponse) Validate() error

type SessionResponse

type SessionResponse struct {
	SessionID SessionID `json:"session_id"`
	ProjectID ProjectID `json:"project_id"`
	// Current lifecycle state of the session:
	// - `building`: has a user factor but is still gathering authentication factors
	// - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as
	// factors age
	// - `expired`: TTL elapsed
	// - `revoked`: explicitly revoked via DELETE.
	State SessionResponseState `json:"state"`
	// The authenticated user. Null for anonymous sessions and until the `user`
	// factor has been verified through an `auth_attempt`.
	UserID OptNilUserID `json:"user_id"`
	// Verified authentication factors accumulated by this session.
	// Each key is a factor type (e.g. `password`, `totp`, `passkey`).
	// Each value is a factor event object with at least `verified_at` and
	// method-specific properties (e.g. `user_verified`, `hardware` for passkeys).
	Factors []CompletedFactor `json:"factors"`
	// All assurance levels whose schemas the current session factors satisfy.
	// This list shrinks as factor freshness windows expire and grows when step-up
	// auth_attempts add or refresh factors.
	// Whether any level is "enough" is determined by the request context, not the session.
	AssuranceLevels []string `json:"assurance_levels"`
	// Arbitrary key/value metadata attached to the session.
	Metadata OptNilSessionResponseMetadata `json:"metadata"`
	// User agent information captured at session creation.
	UserAgent OptNilSessionResponseUserAgent `json:"user_agent"`
	// When this session was created.
	CreatedAt time.Time `json:"created_at"`
	// When this session expires. Short TTL (10 min) for anonymous sessions;
	// reset to the full configured session TTL once the first authentication factor is written.
	ExpiresAt time.Time `json:"expires_at"`
}

The current state of a session. A session is the durable post-auth primitive. It accumulates verified authentication factors and exposes `assurance_levels[]` — the set of assurance profiles its current factors satisfy. Sessions are read-only from the client's perspective: factors flow in through `auth_attempts`. Ref: #

func (*SessionResponse) Decode

func (s *SessionResponse) Decode(d *jx.Decoder) error

Decode decodes SessionResponse from json.

func (*SessionResponse) Encode

func (s *SessionResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionResponse) GetAssuranceLevels

func (s *SessionResponse) GetAssuranceLevels() []string

GetAssuranceLevels returns the value of AssuranceLevels.

func (*SessionResponse) GetCreatedAt

func (s *SessionResponse) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*SessionResponse) GetExpiresAt

func (s *SessionResponse) GetExpiresAt() time.Time

GetExpiresAt returns the value of ExpiresAt.

func (*SessionResponse) GetFactors

func (s *SessionResponse) GetFactors() []CompletedFactor

GetFactors returns the value of Factors.

func (*SessionResponse) GetMetadata

GetMetadata returns the value of Metadata.

func (*SessionResponse) GetProjectID

func (s *SessionResponse) GetProjectID() ProjectID

GetProjectID returns the value of ProjectID.

func (*SessionResponse) GetSessionID

func (s *SessionResponse) GetSessionID() SessionID

GetSessionID returns the value of SessionID.

func (*SessionResponse) GetState

func (s *SessionResponse) GetState() SessionResponseState

GetState returns the value of State.

func (*SessionResponse) GetUserAgent

GetUserAgent returns the value of UserAgent.

func (*SessionResponse) GetUserID

func (s *SessionResponse) GetUserID() OptNilUserID

GetUserID returns the value of UserID.

func (*SessionResponse) MarshalJSON

func (s *SessionResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionResponse) SetAssuranceLevels

func (s *SessionResponse) SetAssuranceLevels(val []string)

SetAssuranceLevels sets the value of AssuranceLevels.

func (*SessionResponse) SetCreatedAt

func (s *SessionResponse) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*SessionResponse) SetExpiresAt

func (s *SessionResponse) SetExpiresAt(val time.Time)

SetExpiresAt sets the value of ExpiresAt.

func (*SessionResponse) SetFactors

func (s *SessionResponse) SetFactors(val []CompletedFactor)

SetFactors sets the value of Factors.

func (*SessionResponse) SetMetadata

func (s *SessionResponse) SetMetadata(val OptNilSessionResponseMetadata)

SetMetadata sets the value of Metadata.

func (*SessionResponse) SetProjectID

func (s *SessionResponse) SetProjectID(val ProjectID)

SetProjectID sets the value of ProjectID.

func (*SessionResponse) SetSessionID

func (s *SessionResponse) SetSessionID(val SessionID)

SetSessionID sets the value of SessionID.

func (*SessionResponse) SetState

func (s *SessionResponse) SetState(val SessionResponseState)

SetState sets the value of State.

func (*SessionResponse) SetUserAgent

func (s *SessionResponse) SetUserAgent(val OptNilSessionResponseUserAgent)

SetUserAgent sets the value of UserAgent.

func (*SessionResponse) SetUserID

func (s *SessionResponse) SetUserID(val OptNilUserID)

SetUserID sets the value of UserID.

func (*SessionResponse) UnmarshalJSON

func (s *SessionResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionResponse) Validate

func (s *SessionResponse) Validate() error

type SessionResponseMetadata

type SessionResponseMetadata map[string]jx.Raw

func (*SessionResponseMetadata) Decode

func (s *SessionResponseMetadata) Decode(d *jx.Decoder) error

Decode decodes SessionResponseMetadata from json.

func (SessionResponseMetadata) Encode

func (s SessionResponseMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SessionResponseMetadata) MarshalJSON

func (s SessionResponseMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionResponseMetadata) UnmarshalJSON

func (s *SessionResponseMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionResponseState

type SessionResponseState string

Current lifecycle state of the session: - `building`: has a user factor but is still gathering authentication factors - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age - `expired`: TTL elapsed - `revoked`: explicitly revoked via DELETE.

const (
	SessionResponseStateBuilding SessionResponseState = "building"
	SessionResponseStateActive   SessionResponseState = "active"
	SessionResponseStateExpired  SessionResponseState = "expired"
	SessionResponseStateRevoked  SessionResponseState = "revoked"
)

func (SessionResponseState) AllValues

AllValues returns all SessionResponseState values.

func (*SessionResponseState) Decode

func (s *SessionResponseState) Decode(d *jx.Decoder) error

Decode decodes SessionResponseState from json.

func (SessionResponseState) Encode

func (s SessionResponseState) Encode(e *jx.Encoder)

Encode encodes SessionResponseState as json.

func (SessionResponseState) MarshalJSON

func (s SessionResponseState) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SessionResponseState) MarshalText

func (s SessionResponseState) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SessionResponseState) UnmarshalJSON

func (s *SessionResponseState) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionResponseState) UnmarshalText

func (s *SessionResponseState) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SessionResponseState) Validate

func (s SessionResponseState) Validate() error

type SessionResponseUserAgent

type SessionResponseUserAgent struct {
	// Client-supplied device fingerprint.
	Fingerprint OptString `json:"fingerprint"`
	// IP address of the client at session creation.
	IP              OptString `json:"ip"`
	AdditionalProps SessionResponseUserAgentAdditional
}

func (*SessionResponseUserAgent) Decode

func (s *SessionResponseUserAgent) Decode(d *jx.Decoder) error

Decode decodes SessionResponseUserAgent from json.

func (*SessionResponseUserAgent) Encode

func (s *SessionResponseUserAgent) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionResponseUserAgent) GetAdditionalProps

GetAdditionalProps returns the value of AdditionalProps.

func (*SessionResponseUserAgent) GetFingerprint

func (s *SessionResponseUserAgent) GetFingerprint() OptString

GetFingerprint returns the value of Fingerprint.

func (*SessionResponseUserAgent) GetIP

GetIP returns the value of IP.

func (*SessionResponseUserAgent) MarshalJSON

func (s *SessionResponseUserAgent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionResponseUserAgent) SetAdditionalProps

SetAdditionalProps sets the value of AdditionalProps.

func (*SessionResponseUserAgent) SetFingerprint

func (s *SessionResponseUserAgent) SetFingerprint(val OptString)

SetFingerprint sets the value of Fingerprint.

func (*SessionResponseUserAgent) SetIP

func (s *SessionResponseUserAgent) SetIP(val OptString)

SetIP sets the value of IP.

func (*SessionResponseUserAgent) UnmarshalJSON

func (s *SessionResponseUserAgent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionResponseUserAgentAdditional

type SessionResponseUserAgentAdditional map[string]jx.Raw

func (*SessionResponseUserAgentAdditional) Decode

Decode decodes SessionResponseUserAgentAdditional from json.

func (SessionResponseUserAgentAdditional) Encode

Encode implements json.Marshaler.

func (SessionResponseUserAgentAdditional) MarshalJSON

func (s SessionResponseUserAgentAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionResponseUserAgentAdditional) UnmarshalJSON

func (s *SessionResponseUserAgentAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionWithTokenResponse

type SessionWithTokenResponse struct {
	Session SessionResponse `json:"session"`
	// Bearer token authorising management of this session (GET and DELETE).
	// For anonymous sessions this token is superseded when a handoff exchange completes —
	// clients must replace their stored token at that point.
	SessionToken string `json:"session_token"`
}

Response for session creation and handoff exchange. Includes the session state and the session_token required to manage it. Ref: #

func (*SessionWithTokenResponse) Decode

func (s *SessionWithTokenResponse) Decode(d *jx.Decoder) error

Decode decodes SessionWithTokenResponse from json.

func (*SessionWithTokenResponse) Encode

func (s *SessionWithTokenResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionWithTokenResponse) GetSession

func (s *SessionWithTokenResponse) GetSession() SessionResponse

GetSession returns the value of Session.

func (*SessionWithTokenResponse) GetSessionToken

func (s *SessionWithTokenResponse) GetSessionToken() string

GetSessionToken returns the value of SessionToken.

func (*SessionWithTokenResponse) MarshalJSON

func (s *SessionWithTokenResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionWithTokenResponse) SetSession

func (s *SessionWithTokenResponse) SetSession(val SessionResponse)

SetSession sets the value of Session.

func (*SessionWithTokenResponse) SetSessionToken

func (s *SessionWithTokenResponse) SetSessionToken(val string)

SetSessionToken sets the value of SessionToken.

func (*SessionWithTokenResponse) UnmarshalJSON

func (s *SessionWithTokenResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionWithTokenResponse) Validate

func (s *SessionWithTokenResponse) Validate() error

type SessionWithTokenResponseHeaders

type SessionWithTokenResponseHeaders struct {
	SetCookie string
	Response  SessionWithTokenResponse
}

SessionWithTokenResponseHeaders wraps SessionWithTokenResponse with response headers.

func (*SessionWithTokenResponseHeaders) GetResponse

GetResponse returns the value of Response.

func (*SessionWithTokenResponseHeaders) GetSetCookie

func (s *SessionWithTokenResponseHeaders) GetSetCookie() string

GetSetCookie returns the value of SetCookie.

func (*SessionWithTokenResponseHeaders) SetResponse

SetResponse sets the value of Response.

func (*SessionWithTokenResponseHeaders) SetSetCookie

func (s *SessionWithTokenResponseHeaders) SetSetCookie(val string)

SetSetCookie sets the value of SetCookie.

func (*SessionWithTokenResponseHeaders) Validate

func (s *SessionWithTokenResponseHeaders) Validate() error

type SetUserPasswordBadRequest

type SetUserPasswordBadRequest ErrorDetails

func (*SetUserPasswordBadRequest) Decode

func (s *SetUserPasswordBadRequest) Decode(d *jx.Decoder) error

Decode decodes SetUserPasswordBadRequest from json.

func (*SetUserPasswordBadRequest) Encode

func (s *SetUserPasswordBadRequest) Encode(e *jx.Encoder)

Encode encodes SetUserPasswordBadRequest as json.

func (*SetUserPasswordBadRequest) MarshalJSON

func (s *SetUserPasswordBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SetUserPasswordBadRequest) UnmarshalJSON

func (s *SetUserPasswordBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SetUserPasswordInternalServerError

type SetUserPasswordInternalServerError ErrorDetails

func (*SetUserPasswordInternalServerError) Decode

Decode decodes SetUserPasswordInternalServerError from json.

func (*SetUserPasswordInternalServerError) Encode

Encode encodes SetUserPasswordInternalServerError as json.

func (*SetUserPasswordInternalServerError) MarshalJSON

func (s *SetUserPasswordInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SetUserPasswordInternalServerError) UnmarshalJSON

func (s *SetUserPasswordInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SetUserPasswordNoContent

type SetUserPasswordNoContent struct{}

SetUserPasswordNoContent is response for SetUserPassword operation.

type SetUserPasswordNotFound

type SetUserPasswordNotFound ErrorDetails

func (*SetUserPasswordNotFound) Decode

func (s *SetUserPasswordNotFound) Decode(d *jx.Decoder) error

Decode decodes SetUserPasswordNotFound from json.

func (*SetUserPasswordNotFound) Encode

func (s *SetUserPasswordNotFound) Encode(e *jx.Encoder)

Encode encodes SetUserPasswordNotFound as json.

func (*SetUserPasswordNotFound) MarshalJSON

func (s *SetUserPasswordNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SetUserPasswordNotFound) UnmarshalJSON

func (s *SetUserPasswordNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SetUserPasswordParams

type SetUserPasswordParams struct {
	// The unique identifier of the project.
	ProjectID ProjectID
	UserID    UserID
}

SetUserPasswordParams is parameters of setUserPassword operation.

type SetUserPasswordRequest

type SetUserPasswordRequest struct {
	// The new password for the user.
	Password string `json:"password"`
	// Whether the user is required to change their password on the next login.
	// If not provided, it will default to false.
	IsChangeRequired OptBool `json:"isChangeRequired"`
}

Request to update the user's password. Ref: #

func (*SetUserPasswordRequest) Decode

func (s *SetUserPasswordRequest) Decode(d *jx.Decoder) error

Decode decodes SetUserPasswordRequest from json.

func (*SetUserPasswordRequest) Encode

func (s *SetUserPasswordRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SetUserPasswordRequest) GetIsChangeRequired

func (s *SetUserPasswordRequest) GetIsChangeRequired() OptBool

GetIsChangeRequired returns the value of IsChangeRequired.

func (*SetUserPasswordRequest) GetPassword

func (s *SetUserPasswordRequest) GetPassword() string

GetPassword returns the value of Password.

func (*SetUserPasswordRequest) MarshalJSON

func (s *SetUserPasswordRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SetUserPasswordRequest) SetIsChangeRequired

func (s *SetUserPasswordRequest) SetIsChangeRequired(val OptBool)

SetIsChangeRequired sets the value of IsChangeRequired.

func (*SetUserPasswordRequest) SetPassword

func (s *SetUserPasswordRequest) SetPassword(val string)

SetPassword sets the value of Password.

func (*SetUserPasswordRequest) UnmarshalJSON

func (s *SetUserPasswordRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SetUserPasswordRes

type SetUserPasswordRes interface {
	// contains filtered or unexported methods
}

type StepAction

type StepAction struct {
	// Action identifier. Sent back in the submit request as `action`.
	Name string `json:"name"`
	// Marks this as the default/primary action. The runtime template uses
	// this hint to choose visual emphasis. At most one action per step
	// should be primary; this is not enforced here.
	Primary OptBool `json:"primary"`
	// Optional localization key override for the action's label. When
	// omitted, the engine derives a key from the step and action names.
	// Display text is resolved client-side from a locale dictionary, never
	// by the engine.
	TextKey OptString `json:"text_key"`
}

Configuration for a user-invokable action on a step. The `name` is sent back in the submit request as `action`. Ref: #

func (*StepAction) Decode

func (s *StepAction) Decode(d *jx.Decoder) error

Decode decodes StepAction from json.

func (*StepAction) Encode

func (s *StepAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StepAction) GetName

func (s *StepAction) GetName() string

GetName returns the value of Name.

func (*StepAction) GetPrimary

func (s *StepAction) GetPrimary() OptBool

GetPrimary returns the value of Primary.

func (*StepAction) GetTextKey

func (s *StepAction) GetTextKey() OptString

GetTextKey returns the value of TextKey.

func (*StepAction) MarshalJSON

func (s *StepAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StepAction) SetName

func (s *StepAction) SetName(val string)

SetName sets the value of Name.

func (*StepAction) SetPrimary

func (s *StepAction) SetPrimary(val OptBool)

SetPrimary sets the value of Primary.

func (*StepAction) SetTextKey

func (s *StepAction) SetTextKey(val OptString)

SetTextKey sets the value of TextKey.

func (*StepAction) UnmarshalJSON

func (s *StepAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StepTexts

type StepTexts struct {
	// Localization key for the step heading.
	TitleKey OptString `json:"title_key"`
	// Localization key for explanatory text.
	DescriptionKey OptNilString `json:"description_key"`
}

Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter. The backend never sends display text — only semantic keys. Ref: #

func (*StepTexts) Decode

func (s *StepTexts) Decode(d *jx.Decoder) error

Decode decodes StepTexts from json.

func (*StepTexts) Encode

func (s *StepTexts) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StepTexts) GetDescriptionKey

func (s *StepTexts) GetDescriptionKey() OptNilString

GetDescriptionKey returns the value of DescriptionKey.

func (*StepTexts) GetTitleKey

func (s *StepTexts) GetTitleKey() OptString

GetTitleKey returns the value of TitleKey.

func (*StepTexts) MarshalJSON

func (s *StepTexts) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StepTexts) SetDescriptionKey

func (s *StepTexts) SetDescriptionKey(val OptNilString)

SetDescriptionKey sets the value of DescriptionKey.

func (*StepTexts) SetTitleKey

func (s *StepTexts) SetTitleKey(val OptString)

SetTitleKey sets the value of TitleKey.

func (*StepTexts) UnmarshalJSON

func (s *StepTexts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SubmitFlowEventBadRequest

type SubmitFlowEventBadRequest ErrorDetails

func (*SubmitFlowEventBadRequest) Decode

func (s *SubmitFlowEventBadRequest) Decode(d *jx.Decoder) error

Decode decodes SubmitFlowEventBadRequest from json.

func (*SubmitFlowEventBadRequest) Encode

func (s *SubmitFlowEventBadRequest) Encode(e *jx.Encoder)

Encode encodes SubmitFlowEventBadRequest as json.

func (*SubmitFlowEventBadRequest) MarshalJSON

func (s *SubmitFlowEventBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SubmitFlowEventBadRequest) UnmarshalJSON

func (s *SubmitFlowEventBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SubmitFlowEventNoContent

type SubmitFlowEventNoContent struct{}

SubmitFlowEventNoContent is response for SubmitFlowEvent operation.

type SubmitFlowEventNotFound

type SubmitFlowEventNotFound ErrorDetails

func (*SubmitFlowEventNotFound) Decode

func (s *SubmitFlowEventNotFound) Decode(d *jx.Decoder) error

Decode decodes SubmitFlowEventNotFound from json.

func (*SubmitFlowEventNotFound) Encode

func (s *SubmitFlowEventNotFound) Encode(e *jx.Encoder)

Encode encodes SubmitFlowEventNotFound as json.

func (*SubmitFlowEventNotFound) MarshalJSON

func (s *SubmitFlowEventNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SubmitFlowEventNotFound) UnmarshalJSON

func (s *SubmitFlowEventNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SubmitFlowEventParams

type SubmitFlowEventParams struct {
	// Flow ID returned by POST /flow or the latest POST /flow/{id}/submit.
	// Used to look up the correct flow state from the encrypted cookie,
	// which can hold multiple concurrent flows. May change between responses
	// when a flow pivot or pop occurs — always use the `id` from the latest response.
	ID string
	// Encrypted flow state cookie set by `POST /flow` or the previous
	// `POST /flow/{id}/submit`. The cookie holds a map of flow states keyed
	// by flow ID, allowing multiple concurrent flows in the same browser
	// (e.g. login in one tab, registration in another). The server uses the
	// `{id}` path parameter to look up the correct flow state from the cookie.
	// Browsers send this automatically; non-browser clients must capture the
	// `Set-Cookie` header and resend it.
	Zflow string
}

SubmitFlowEventParams is parameters of submitFlowEvent operation.

type SubmitFlowEventRes

type SubmitFlowEventRes interface {
	// contains filtered or unexported methods
}

type SubmitFlowStepBadRequest

type SubmitFlowStepBadRequest FlowResponseHeaders

func (*SubmitFlowStepBadRequest) Validate

func (s *SubmitFlowStepBadRequest) Validate() error

type SubmitFlowStepOK

type SubmitFlowStepOK FlowResponseHeaders

func (*SubmitFlowStepOK) Validate

func (s *SubmitFlowStepOK) Validate() error

type SubmitFlowStepParams

type SubmitFlowStepParams struct {
	// Flow ID returned by POST /flow or the latest POST /flow/{id}/submit.
	// Used to look up the correct flow state from the encrypted cookie,
	// which can hold multiple concurrent flows. May change between responses
	// when a flow pivot or pop occurs — always use the `id` from the latest response.
	ID string
	// Encrypted flow state cookie set by `POST /flow` or the previous
	// `POST /flow/{id}/submit`. The cookie holds a map of flow states keyed
	// by flow ID, allowing multiple concurrent flows in the same browser
	// (e.g. login in one tab, registration in another). The server uses the
	// `{id}` path parameter to look up the correct flow state from the cookie.
	// Browsers send this automatically; non-browser clients must capture the
	// `Set-Cookie` header and resend it.
	Zflow string
	// Standard browser `Origin` header. When a step issues a passkey
	// challenge, the server derives the WebAuthn relying-party id and the
	// allowed origin from this value. Browsers send it automatically on the
	// fetch POST; no client action is required.
	Origin OptURI `json:",omitempty,omitzero"`
}

SubmitFlowStepParams is parameters of submitFlowStep operation.

type SubmitFlowStepRes

type SubmitFlowStepRes interface {
	// contains filtered or unexported methods
}

type TeamID

type TeamID string

func (TeamID) Validate

func (s TeamID) Validate() error

type TokenResponse

type TokenResponse struct {
	// The access token issued by the authorization server.
	AccessToken OptString `json:"access_token"`
	// The type of the token issued (e.g., Bearer).
	TokenType OptString `json:"token_type"`
	// The lifetime in seconds of the access token.
	ExpiresIn OptInt `json:"expires_in"`
	// The refresh token which can be used to obtain new access tokens.
	RefreshToken OptString `json:"refresh_token"`
}

Ref: #

func (*TokenResponse) Decode

func (s *TokenResponse) Decode(d *jx.Decoder) error

Decode decodes TokenResponse from json.

func (*TokenResponse) Encode

func (s *TokenResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TokenResponse) GetAccessToken

func (s *TokenResponse) GetAccessToken() OptString

GetAccessToken returns the value of AccessToken.

func (*TokenResponse) GetExpiresIn

func (s *TokenResponse) GetExpiresIn() OptInt

GetExpiresIn returns the value of ExpiresIn.

func (*TokenResponse) GetRefreshToken

func (s *TokenResponse) GetRefreshToken() OptString

GetRefreshToken returns the value of RefreshToken.

func (*TokenResponse) GetTokenType

func (s *TokenResponse) GetTokenType() OptString

GetTokenType returns the value of TokenType.

func (*TokenResponse) MarshalJSON

func (s *TokenResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TokenResponse) SetAccessToken

func (s *TokenResponse) SetAccessToken(val OptString)

SetAccessToken sets the value of AccessToken.

func (*TokenResponse) SetExpiresIn

func (s *TokenResponse) SetExpiresIn(val OptInt)

SetExpiresIn sets the value of ExpiresIn.

func (*TokenResponse) SetRefreshToken

func (s *TokenResponse) SetRefreshToken(val OptString)

SetRefreshToken sets the value of RefreshToken.

func (*TokenResponse) SetTokenType

func (s *TokenResponse) SetTokenType(val OptString)

SetTokenType sets the value of TokenType.

func (*TokenResponse) UnmarshalJSON

func (s *TokenResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) AuthorizeDevice

AuthorizeDevice implements authorizeDevice operation.

Authorize a device.

GET /auth/device-authorization

func (UnimplementedHandler) AuthorizeGet

AuthorizeGet implements authorizeGet operation.

Authorize a user.

GET /auth/authorize

func (UnimplementedHandler) CreateAuthAttempt

CreateAuthAttempt implements createAuthAttempt operation.

Starts a new authentication attempt. This is the entry point for the auth_attempts state machine. An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round. It accepts factor challenges, verifies proofs, and completes into a session or handoff token. Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth, also include session_id to add factors to an existing session.

POST /auth_attempts

func (UnimplementedHandler) CreateFlow

CreateFlow implements createFlow operation.

Resolves a flow definition based on purpose + audience context and returns the first capability step. Creates a new session implicitly unless `session_id` is provided (for step-up / reauth on an existing session). The response contains an `id` field — the flow handle. Use it as the path parameter for all subsequent `/flow/{id}/submit` and `/flow/{id}/event` calls. The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing the flow's orchestration state (current step, collected data, history). The server is stateless between requests — all flow state lives in this cookie. The browser sends it automatically on subsequent requests.

POST /flow

func (UnimplementedHandler) CreateFlowDefinition

CreateFlowDefinition implements createFlowDefinition operation.

Creates a new flow definition. Flow definitions are templates that define the sequence of steps (capabilities) for a particular user journey (e.g., registration, login, password reset). Flow definitions are created based on the flow meta schema, which includes the flow's purpose, audience, and the steps involved.

POST /flow_definitions

func (UnimplementedHandler) CreateHandoff

CreateHandoff implements createHandoff operation.

Completes the authentication attempt and mints a `handoff_token`. Call this after all required factors have been verified and the attempt is in `completed` state. The handoff token is short-lived (≤60 seconds) and must be exchanged at POST /sessions/exchange to receive the final session and session_token. The handoff token is: - Single-use (atomic exchange, no retry) - Audience-bound (requires matching project key for exchange) - Idempotency-safe within a 5-minute window (see conventions).

POST /auth_attempts/{attempt_id}/handoff

func (UnimplementedHandler) CreateProject

CreateProject implements createProject operation.

Create project.

POST /projects

func (UnimplementedHandler) CreateSchema

CreateSchema implements createSchema operation.

Create a new schema. The schema definition must include a unique $id field, which will be used to identify the schema in future requests. The $id must be a valid URI and should ideally point to the location where the schema can be accessed. The schema can either be a concrete schema, e.g. a user schema, or a schema-url which will be resolved by the server.

POST /schemas

func (UnimplementedHandler) CreateSession

CreateSession implements createSession operation.

Creates an anonymous session shell with no user and no factors (`state: building`). This is optional — an `auth_attempt` will create a session implicitly if none is provided. Use this explicitly when you want to: - Pre-allocate a `session_id` before the user is known, so device/telemetry signals can be correlated with the eventual authenticated session from the start. - Track anonymous state (bot detection, device fingerprint) that survives until authentication. The returned `session_token` authorises GET and DELETE on this session. It is superseded when a handoff exchange completes — clients must replace it at that point. Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured full session TTL when the first authentication factor is written via a completing `auth_attempt`.

POST /sessions

func (UnimplementedHandler) CreateTeam

CreateTeam implements createTeam operation.

Create team.

POST /teams

func (UnimplementedHandler) CreateUser

func (UnimplementedHandler) CreateUser(ctx context.Context, req *User, params CreateUserParams) (r CreateUserRes, _ error)

CreateUser implements createUser operation.

Create user.

POST /users

func (UnimplementedHandler) DeleteFlowDefinition

DeleteFlowDefinition implements deleteFlowDefinition operation.

Delete a flow definition by id.

DELETE /flow_definitions/{id}

func (UnimplementedHandler) EndSession

EndSession implements endSession operation.

End a session.

GET /auth/end-session

func (UnimplementedHandler) ExchangeHandoff

ExchangeHandoff implements exchangeHandoff operation.

Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff` and returns the resulting session and a `session_token`. The server resolves the originating `auth_attempt` from the token and then: | Originating auth_attempt | Outcome | |---|---| | No `session_id` | A new authenticated session is **created**. | | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. | | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. | The response shape is identical in all three cases. The `session_token` supersedes any previously issued `session_token` for the same session. Clients must replace their stored token at this point. Requires a project service key (OAuth2 client credentials).

POST /sessions/exchange

func (UnimplementedHandler) GetAuthAttempt

GetAuthAttempt implements getAuthAttempt operation.

Polls the current state of an authentication attempt. Returns the attempt's state, available factors for the next challenge, challenges issued so far, and any errors preventing progress. Use this for polling during long-running factor verifications (e.g., waiting for a federated IdP callback or a device flow).

GET /auth_attempts/{attempt_id}

func (UnimplementedHandler) GetFlowDefinition

GetFlowDefinition implements getFlowDefinition operation.

Get a flow definition by id.

GET /flow_definitions/{id}

func (UnimplementedHandler) GetFlowStep

GetFlowStep implements getFlowStep operation.

Returns the current capability step without advancing the state machine. Useful for page reloads or re-rendering after a network error.

GET /flow/{id}

func (UnimplementedHandler) GetHealth

func (UnimplementedHandler) GetHealth(ctx context.Context) (r GetHealthRes, _ error)

GetHealth implements getHealth operation.

Check whether the server is healthy.

GET /healthz

func (UnimplementedHandler) GetKeys

func (UnimplementedHandler) GetKeys(ctx context.Context) (r GetKeysRes, _ error)

GetKeys implements getKeys operation.

Get public keys.

GET /auth/keys

func (UnimplementedHandler) GetLive

func (UnimplementedHandler) GetLive(ctx context.Context) (r GetLiveRes, _ error)

GetLive implements getLive operation.

Check whether the server is started.

GET /livez

func (UnimplementedHandler) GetMySession

GetMySession implements getMySession operation.

Returns the current state of the current session including its factors and all currently satisfied assurance levels. `assurance_levels[]` may shrink over time as factor freshness windows expire, without the session itself expiring. Use step-up authentication (a new `auth_attempt` against the same `session_id`) to restore a dropped assurance level.

GET /sessions/me

func (UnimplementedHandler) GetMyUser

func (UnimplementedHandler) GetMyUser(ctx context.Context, params GetMyUserParams) (r GetMyUserRes, _ error)

GetMyUser implements getMyUser operation.

Get my user information.

GET /users/me

func (UnimplementedHandler) GetOpenIDConfiguration

func (UnimplementedHandler) GetOpenIDConfiguration(ctx context.Context) (r GetOpenIDConfigurationRes, _ error)

GetOpenIDConfiguration implements getOpenIDConfiguration operation.

Retrieve the OpenID Connect configuration.

GET /.well-known/openid-configuration

func (UnimplementedHandler) GetProject

GetProject implements getProject operation.

Returns the current state of a project.

GET /projects/{project_id}

func (UnimplementedHandler) GetReady

func (UnimplementedHandler) GetReady(ctx context.Context) (r GetReadyRes, _ error)

GetReady implements getReady operation.

Check whether the server is ready to accept requests.

GET /readyz

func (UnimplementedHandler) GetSchemaById

GetSchemaById implements getSchemaById operation.

Get a schema by its ID. This will return the default revision of the schema.

GET /schemas/{id}

func (UnimplementedHandler) GetSession

GetSession implements getSession operation.

Returns the current state of a session including its factors and all currently satisfied assurance levels. `assurance_levels[]` may shrink over time as factor freshness windows expire, without the session itself expiring. Use step-up authentication (a new `auth_attempt` against the same `session_id`) to restore a dropped assurance level.

GET /sessions/{session_id}

func (UnimplementedHandler) GetTeam

func (UnimplementedHandler) GetTeam(ctx context.Context, params GetTeamParams) (r GetTeamRes, _ error)

GetTeam implements getTeam operation.

Returns the current state of a team.

GET /teams/{team_id}

func (UnimplementedHandler) GetToken

GetToken implements getToken operation.

Get accesstoken.

POST /auth/token

func (UnimplementedHandler) GetUserByID

GetUserByID implements GetUserByID operation.

Get user by ID.

GET /users/{user_id}

func (UnimplementedHandler) GetUserInfo

func (UnimplementedHandler) GetUserInfo(ctx context.Context) (r GetUserInfoRes, _ error)

GetUserInfo implements getUserInfo operation.

Get user info.

GET /auth/userinfo

func (UnimplementedHandler) Introspect

Introspect implements introspect operation.

Introspect a token.

POST /auth/introspect

func (UnimplementedHandler) IssueChallenge

IssueChallenge implements issueChallenge operation.

Issues a single-factor verification challenge within an auth attempt. This advances the authentication state machine by requesting a specific factor method (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details including method, metadata, and any UI hints. The client then verifies the proof by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.

POST /auth_attempts/{attempt_id}/challenges

func (UnimplementedHandler) ListFlowDefinitions

ListFlowDefinitions implements listFlowDefinitions operation.

Retrieves a list of all flow definitions. This endpoint can be used to view existing flow definitions and their configurations.

GET /flow_definitions

func (UnimplementedHandler) ListSessions

ListSessions implements listSessions operation.

Returns a paginated list of sessions for a project. Requires a project service key (OAuth2 client credentials).

GET /sessions

func (UnimplementedHandler) ListUsers

func (UnimplementedHandler) ListUsers(ctx context.Context, params ListUsersParams) (r ListUsersRes, _ error)

ListUsers implements listUsers operation.

List users.

GET /users

func (UnimplementedHandler) RevokeMySession

RevokeMySession implements revokeMySession operation.

Revokes the session immediately (`state: revoked`). This is the logout operation. The __nextgen_session cookie issued at creation (or superseded by a handoff exchange) is required. After revocation, any tokens derived from this session are invalidated including the cookie itself,

which is cleared in the response.

DELETE /sessions/me

func (UnimplementedHandler) RevokeSession

RevokeSession implements revokeSession operation.

Revokes the session immediately (`state: revoked`). This is the logout operation. The session_token issued at creation (or superseded by a handoff exchange) is required. After revocation, any tokens derived from this session are invalidated.

DELETE /sessions/{session_id}

func (UnimplementedHandler) RevokeToken

func (UnimplementedHandler) RevokeToken(ctx context.Context, req *RevokeRequest) (r RevokeTokenRes, _ error)

RevokeToken implements revokeToken operation.

Revoke an access token or refresh token.

POST /auth/revoke

func (UnimplementedHandler) SetUserPassword

SetUserPassword implements setUserPassword operation.

Set user password.

PUT /users/{user_id}/password

func (UnimplementedHandler) SubmitFlowEvent

SubmitFlowEvent implements submitFlowEvent operation.

Submits telemetry or fingerprint data from the frontend. Does not advance the state machine. Used for risk evaluation.

POST /flow/{id}/event

func (UnimplementedHandler) SubmitFlowStep

SubmitFlowStep implements submitFlowStep operation.

Submits user input for the current step. The server validates, processes (e.g., verifies a credential), advances the state machine through any invisible steps, and returns the next visible step. The response sets an updated encrypted `HttpOnly` cookie (`_zflow`) with the new flow state. The server is stateless — all orchestration state is carried in this cookie between requests. **Important:** The `id` in the response may differ from the `id` used in the request. This happens when a flow pivots (pushes a new flow onto the stack) or when a stacked flow completes (auto-pops to the parent flow). Always use the `id` from the latest response for the next request. ## Flow completion When `step.type` is `complete`, the flow is terminal. The `step.behavior` field tells the frontend what to do: | `behavior` | Action | |------------- |------------------------------------------------------------| | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). | | `show` | Render the step as a success screen (e.g., registration). | A `complete` step is only returned when the **entire flow stack** is done. If a stacked flow (e.g., recovery pivoted from login) finishes, the server auto-pops to the parent flow and returns the parent's next step — the frontend never sees a `complete` for intermediate flows.

POST /flow/{id}/submit

func (UnimplementedHandler) UpdateFlowDefinition

UpdateFlowDefinition implements updateFlowDefinition operation.

Update a flow definition by id.

PATCH /flow_definitions/{id}

func (UnimplementedHandler) VerifyChallengeProof

VerifyChallengeProof implements verifyChallengeProof operation.

Submits a proof (credential, code, assertion) to verify a factor challenge. The proof format depends on the challenge method. For example: - `password` method: { password: "…" } - `totp` method: { totp: { code: "123456" } } - `passkey` method: { passkey: { assertion: "…" } } - `recovery_code` method: { recovery_code: "…" } On successful verification, the factor is written to the auth attempt. The attempt moves to the next pending challenge or completes if all required factors are verified.

POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify

type UpdateFlowDefinitionBadRequest

type UpdateFlowDefinitionBadRequest ErrorDetails

func (*UpdateFlowDefinitionBadRequest) Decode

Decode decodes UpdateFlowDefinitionBadRequest from json.

func (*UpdateFlowDefinitionBadRequest) Encode

Encode encodes UpdateFlowDefinitionBadRequest as json.

func (*UpdateFlowDefinitionBadRequest) MarshalJSON

func (s *UpdateFlowDefinitionBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateFlowDefinitionBadRequest) UnmarshalJSON

func (s *UpdateFlowDefinitionBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateFlowDefinitionNotFound

type UpdateFlowDefinitionNotFound ErrorDetails

func (*UpdateFlowDefinitionNotFound) Decode

Decode decodes UpdateFlowDefinitionNotFound from json.

func (*UpdateFlowDefinitionNotFound) Encode

func (s *UpdateFlowDefinitionNotFound) Encode(e *jx.Encoder)

Encode encodes UpdateFlowDefinitionNotFound as json.

func (*UpdateFlowDefinitionNotFound) MarshalJSON

func (s *UpdateFlowDefinitionNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateFlowDefinitionNotFound) UnmarshalJSON

func (s *UpdateFlowDefinitionNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateFlowDefinitionParams

type UpdateFlowDefinitionParams struct {
	// The id returned by the POST /flow_definitions endpoint.
	ID string
	// The project id to filter by.
	ProjectID ProjectID
}

UpdateFlowDefinitionParams is parameters of updateFlowDefinition operation.

type UpdateFlowDefinitionRes

type UpdateFlowDefinitionRes interface {
	// contains filtered or unexported methods
}

type User

type User struct {
	// The schema that defines the content of the user. These schemas can be
	// created using the `/schemas` endpoint. A default schema is provided.
	// This schema can be retrieved using the same endpoint. The schema will
	// be used to validate the user's properties.
	Schema          string `json:"$schema"`
	AdditionalProps UserAdditional
}

A user represents an individual identity in the system. It can be used to represent a human user, but also a service account or any other type of identity. The content of a user is determined by the configured schema for users, this is only a base schema. Ref: #

func (*User) Decode

func (s *User) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (*User) Encode

func (s *User) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*User) GetAdditionalProps

func (s *User) GetAdditionalProps() UserAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*User) GetSchema

func (s *User) GetSchema() string

GetSchema returns the value of Schema.

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*User) SetAdditionalProps

func (s *User) SetAdditionalProps(val UserAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*User) SetSchema

func (s *User) SetSchema(val string)

SetSchema sets the value of Schema.

func (*User) UnmarshalJSON

func (s *User) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserAdditional

type UserAdditional map[string]jx.Raw

func (*UserAdditional) Decode

func (s *UserAdditional) Decode(d *jx.Decoder) error

Decode decodes UserAdditional from json.

func (UserAdditional) Encode

func (s UserAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (UserAdditional) MarshalJSON

func (s UserAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserAdditional) UnmarshalJSON

func (s *UserAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserID

type UserID string

func (*UserID) Decode

func (s *UserID) Decode(d *jx.Decoder) error

Decode decodes UserID from json.

func (UserID) Encode

func (s UserID) Encode(e *jx.Encoder)

Encode encodes UserID as json.

func (UserID) MarshalJSON

func (s UserID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserID) UnmarshalJSON

func (s *UserID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (UserID) Validate

func (s UserID) Validate() error

type UserNotFound

type UserNotFound struct {
	// Merged property.
	Code string `json:"code"`
	// Human-readable explanation of the error.
	Message string `json:"message"`
	// Additional error-specific context.
	Details OptUserNotFoundDetails `json:"details"`
}

Merged schema. Ref: #

func (*UserNotFound) Decode

func (s *UserNotFound) Decode(d *jx.Decoder) error

Decode decodes UserNotFound from json.

func (*UserNotFound) Encode

func (s *UserNotFound) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserNotFound) GetCode

func (s *UserNotFound) GetCode() string

GetCode returns the value of Code.

func (*UserNotFound) GetDetails

func (s *UserNotFound) GetDetails() OptUserNotFoundDetails

GetDetails returns the value of Details.

func (*UserNotFound) GetMessage

func (s *UserNotFound) GetMessage() string

GetMessage returns the value of Message.

func (*UserNotFound) MarshalJSON

func (s *UserNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserNotFound) SetCode

func (s *UserNotFound) SetCode(val string)

SetCode sets the value of Code.

func (*UserNotFound) SetDetails

func (s *UserNotFound) SetDetails(val OptUserNotFoundDetails)

SetDetails sets the value of Details.

func (*UserNotFound) SetMessage

func (s *UserNotFound) SetMessage(val string)

SetMessage sets the value of Message.

func (*UserNotFound) UnmarshalJSON

func (s *UserNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserNotFoundDetails

type UserNotFoundDetails map[string]jx.Raw

Additional error-specific context.

func (*UserNotFoundDetails) Decode

func (s *UserNotFoundDetails) Decode(d *jx.Decoder) error

Decode decodes UserNotFoundDetails from json.

func (UserNotFoundDetails) Encode

func (s UserNotFoundDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (UserNotFoundDetails) MarshalJSON

func (s UserNotFoundDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserNotFoundDetails) UnmarshalJSON

func (s *UserNotFoundDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserProperty

type UserProperty struct {
	// The verification method for this property, if applicable.
	XMinusVerify OptNilString `json:"x-verify"`
	// The level of uniqueness for this property, if applicable.
	XMinusUnique OptNilUserPropertyXMinusUnique `json:"x-unique"`
	// The claim name for this property, if applicable.
	XMinusClaim OptNilString `json:"x-claim"`
	// Whether this property is editable by the user or not.
	XMinusEditable OptBool `json:"x-editable"`
	// Whether this property contains sensitive information or not.
	XMinusSensitive OptBool `json:"x-sensitive"`
	// Whether this property is used for multi-factor authentication or not.
	XMinusMfa OptBool `json:"x-mfa"`
	// A map of additional properties for the user definition, where the key is the property name and the
	// value is the property schema.
	Properties      OptUserPropertyProperties `json:"properties"`
	AdditionalProps UserPropertyAdditional
}

This schema is missing `"allOf": [{"$ref": "https://json-schema.org/draft/2020-12/schema"}],`. This is done because a lot of code generators cannot handle that. Ref: #

func (*UserProperty) Decode

func (s *UserProperty) Decode(d *jx.Decoder) error

Decode decodes UserProperty from json.

func (*UserProperty) Encode

func (s *UserProperty) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserProperty) GetAdditionalProps

func (s *UserProperty) GetAdditionalProps() UserPropertyAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*UserProperty) GetProperties

func (s *UserProperty) GetProperties() OptUserPropertyProperties

GetProperties returns the value of Properties.

func (*UserProperty) GetXMinusClaim

func (s *UserProperty) GetXMinusClaim() OptNilString

GetXMinusClaim returns the value of XMinusClaim.

func (*UserProperty) GetXMinusEditable

func (s *UserProperty) GetXMinusEditable() OptBool

GetXMinusEditable returns the value of XMinusEditable.

func (*UserProperty) GetXMinusMfa

func (s *UserProperty) GetXMinusMfa() OptBool

GetXMinusMfa returns the value of XMinusMfa.

func (*UserProperty) GetXMinusSensitive

func (s *UserProperty) GetXMinusSensitive() OptBool

GetXMinusSensitive returns the value of XMinusSensitive.

func (*UserProperty) GetXMinusUnique

func (s *UserProperty) GetXMinusUnique() OptNilUserPropertyXMinusUnique

GetXMinusUnique returns the value of XMinusUnique.

func (*UserProperty) GetXMinusVerify

func (s *UserProperty) GetXMinusVerify() OptNilString

GetXMinusVerify returns the value of XMinusVerify.

func (*UserProperty) MarshalJSON

func (s *UserProperty) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserProperty) SetAdditionalProps

func (s *UserProperty) SetAdditionalProps(val UserPropertyAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*UserProperty) SetProperties

func (s *UserProperty) SetProperties(val OptUserPropertyProperties)

SetProperties sets the value of Properties.

func (*UserProperty) SetXMinusClaim

func (s *UserProperty) SetXMinusClaim(val OptNilString)

SetXMinusClaim sets the value of XMinusClaim.

func (*UserProperty) SetXMinusEditable

func (s *UserProperty) SetXMinusEditable(val OptBool)

SetXMinusEditable sets the value of XMinusEditable.

func (*UserProperty) SetXMinusMfa

func (s *UserProperty) SetXMinusMfa(val OptBool)

SetXMinusMfa sets the value of XMinusMfa.

func (*UserProperty) SetXMinusSensitive

func (s *UserProperty) SetXMinusSensitive(val OptBool)

SetXMinusSensitive sets the value of XMinusSensitive.

func (*UserProperty) SetXMinusUnique

func (s *UserProperty) SetXMinusUnique(val OptNilUserPropertyXMinusUnique)

SetXMinusUnique sets the value of XMinusUnique.

func (*UserProperty) SetXMinusVerify

func (s *UserProperty) SetXMinusVerify(val OptNilString)

SetXMinusVerify sets the value of XMinusVerify.

func (*UserProperty) UnmarshalJSON

func (s *UserProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserProperty) Validate

func (s *UserProperty) Validate() error

type UserPropertyAdditional

type UserPropertyAdditional map[string]jx.Raw

func (*UserPropertyAdditional) Decode

func (s *UserPropertyAdditional) Decode(d *jx.Decoder) error

Decode decodes UserPropertyAdditional from json.

func (UserPropertyAdditional) Encode

func (s UserPropertyAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (UserPropertyAdditional) MarshalJSON

func (s UserPropertyAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserPropertyAdditional) UnmarshalJSON

func (s *UserPropertyAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserPropertyProperties

type UserPropertyProperties map[string]jx.Raw

A map of additional properties for the user definition, where the key is the property name and the value is the property schema.

func (*UserPropertyProperties) Decode

func (s *UserPropertyProperties) Decode(d *jx.Decoder) error

Decode decodes UserPropertyProperties from json.

func (UserPropertyProperties) Encode

func (s UserPropertyProperties) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (UserPropertyProperties) MarshalJSON

func (s UserPropertyProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserPropertyProperties) UnmarshalJSON

func (s *UserPropertyProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserPropertyXMinusUnique

type UserPropertyXMinusUnique string
const (
	UserPropertyXMinusUniqueUnspecified UserPropertyXMinusUnique = "unspecified"
	UserPropertyXMinusUniqueProject     UserPropertyXMinusUnique = "project"
	UserPropertyXMinusUniqueTeam        UserPropertyXMinusUnique = "team"
)

func (UserPropertyXMinusUnique) AllValues

AllValues returns all UserPropertyXMinusUnique values.

func (*UserPropertyXMinusUnique) Decode

func (s *UserPropertyXMinusUnique) Decode(d *jx.Decoder) error

Decode decodes UserPropertyXMinusUnique from json.

func (UserPropertyXMinusUnique) Encode

func (s UserPropertyXMinusUnique) Encode(e *jx.Encoder)

Encode encodes UserPropertyXMinusUnique as json.

func (UserPropertyXMinusUnique) MarshalJSON

func (s UserPropertyXMinusUnique) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UserPropertyXMinusUnique) MarshalText

func (s UserPropertyXMinusUnique) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UserPropertyXMinusUnique) UnmarshalJSON

func (s *UserPropertyXMinusUnique) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserPropertyXMinusUnique) UnmarshalText

func (s *UserPropertyXMinusUnique) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UserPropertyXMinusUnique) Validate

func (s UserPropertyXMinusUnique) Validate() error

type UserSchema

type UserSchema struct {
	// The JSON Schema version used for this schema.
	Schema OptString `json:"$schema"`
	// The unique identifier for this user schema.
	ID url.URL `json:"$id"`
	// Discriminator value for a user schema create request.
	Kind string `json:"kind"`
	// The user Schema version used for this schema.
	MetaSchema             url.URL     `json:"metaSchema"`
	XMinusAuthMinusMethods AuthMethods `json:"x-auth-methods"`
	// A map of additional properties for the user definition, where the key is the property name and the
	// value is the property schema.
	Properties      OptUserSchemaProperties `json:"properties"`
	AdditionalProps UserSchemaAdditional
}

This schema is missing `"allOf": [{"$ref": "https://json-schema.org/draft/2020-12/schema"}],`. This is done because a lot of code generators cannot handle that. Ref: #

func (*UserSchema) Decode

func (s *UserSchema) Decode(d *jx.Decoder) error

Decode decodes UserSchema from json.

func (*UserSchema) Encode

func (s *UserSchema) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserSchema) GetAdditionalProps

func (s *UserSchema) GetAdditionalProps() UserSchemaAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*UserSchema) GetID

func (s *UserSchema) GetID() url.URL

GetID returns the value of ID.

func (*UserSchema) GetKind

func (s *UserSchema) GetKind() string

GetKind returns the value of Kind.

func (*UserSchema) GetMetaSchema

func (s *UserSchema) GetMetaSchema() url.URL

GetMetaSchema returns the value of MetaSchema.

func (*UserSchema) GetProperties

func (s *UserSchema) GetProperties() OptUserSchemaProperties

GetProperties returns the value of Properties.

func (*UserSchema) GetSchema

func (s *UserSchema) GetSchema() OptString

GetSchema returns the value of Schema.

func (*UserSchema) GetXMinusAuthMinusMethods

func (s *UserSchema) GetXMinusAuthMinusMethods() AuthMethods

GetXMinusAuthMinusMethods returns the value of XMinusAuthMinusMethods.

func (*UserSchema) MarshalJSON

func (s *UserSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserSchema) SetAdditionalProps

func (s *UserSchema) SetAdditionalProps(val UserSchemaAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*UserSchema) SetID

func (s *UserSchema) SetID(val url.URL)

SetID sets the value of ID.

func (*UserSchema) SetKind

func (s *UserSchema) SetKind(val string)

SetKind sets the value of Kind.

func (*UserSchema) SetMetaSchema

func (s *UserSchema) SetMetaSchema(val url.URL)

SetMetaSchema sets the value of MetaSchema.

func (*UserSchema) SetProperties

func (s *UserSchema) SetProperties(val OptUserSchemaProperties)

SetProperties sets the value of Properties.

func (*UserSchema) SetSchema

func (s *UserSchema) SetSchema(val OptString)

SetSchema sets the value of Schema.

func (*UserSchema) SetXMinusAuthMinusMethods

func (s *UserSchema) SetXMinusAuthMinusMethods(val AuthMethods)

SetXMinusAuthMinusMethods sets the value of XMinusAuthMinusMethods.

func (*UserSchema) UnmarshalJSON

func (s *UserSchema) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserSchema) Validate

func (s *UserSchema) Validate() error

type UserSchemaAdditional

type UserSchemaAdditional map[string]jx.Raw

func (*UserSchemaAdditional) Decode

func (s *UserSchemaAdditional) Decode(d *jx.Decoder) error

Decode decodes UserSchemaAdditional from json.

func (UserSchemaAdditional) Encode

func (s UserSchemaAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (UserSchemaAdditional) MarshalJSON

func (s UserSchemaAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserSchemaAdditional) UnmarshalJSON

func (s *UserSchemaAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserSchemaProperties

type UserSchemaProperties map[string]UserProperty

A map of additional properties for the user definition, where the key is the property name and the value is the property schema.

func (*UserSchemaProperties) Decode

func (s *UserSchemaProperties) Decode(d *jx.Decoder) error

Decode decodes UserSchemaProperties from json.

func (UserSchemaProperties) Encode

func (s UserSchemaProperties) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (UserSchemaProperties) MarshalJSON

func (s UserSchemaProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserSchemaProperties) UnmarshalJSON

func (s *UserSchemaProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (UserSchemaProperties) Validate

func (s UserSchemaProperties) Validate() error

type UsernamePassword

type UsernamePassword struct {
	Username string
	Password string
	Roles    []string
}

func (*UsernamePassword) GetPassword

func (s *UsernamePassword) GetPassword() string

GetPassword returns the value of Password.

func (*UsernamePassword) GetRoles

func (s *UsernamePassword) GetRoles() []string

GetRoles returns the value of Roles.

func (*UsernamePassword) GetUsername

func (s *UsernamePassword) GetUsername() string

GetUsername returns the value of Username.

func (*UsernamePassword) SetPassword

func (s *UsernamePassword) SetPassword(val string)

SetPassword sets the value of Password.

func (*UsernamePassword) SetRoles

func (s *UsernamePassword) SetRoles(val []string)

SetRoles sets the value of Roles.

func (*UsernamePassword) SetUsername

func (s *UsernamePassword) SetUsername(val string)

SetUsername sets the value of Username.

type VerifyChallengeProofErrorResponse

type VerifyChallengeProofErrorResponse struct {
	Type                VerifyChallengeProofErrorResponseType // switch on this field
	AttNotFound         AttNotFound
	AttStaleChallenge   AttStaleChallenge
	AttInvalidRequest   AttInvalidRequest
	AttProofRejected    AttProofRejected
	AttInvalidState     AttInvalidState
	AttAlreadyCompleted AttAlreadyCompleted
	Internal            Internal
}

VerifyChallengeProofErrorResponse represents sum type.

func NewAttAlreadyCompletedVerifyChallengeProofErrorResponse

func NewAttAlreadyCompletedVerifyChallengeProofErrorResponse(v AttAlreadyCompleted) VerifyChallengeProofErrorResponse

NewAttAlreadyCompletedVerifyChallengeProofErrorResponse returns new VerifyChallengeProofErrorResponse from AttAlreadyCompleted.

func NewAttInvalidRequestVerifyChallengeProofErrorResponse

func NewAttInvalidRequestVerifyChallengeProofErrorResponse(v AttInvalidRequest) VerifyChallengeProofErrorResponse

NewAttInvalidRequestVerifyChallengeProofErrorResponse returns new VerifyChallengeProofErrorResponse from AttInvalidRequest.

func NewAttInvalidStateVerifyChallengeProofErrorResponse

func NewAttInvalidStateVerifyChallengeProofErrorResponse(v AttInvalidState) VerifyChallengeProofErrorResponse

NewAttInvalidStateVerifyChallengeProofErrorResponse returns new VerifyChallengeProofErrorResponse from AttInvalidState.

func NewAttNotFoundVerifyChallengeProofErrorResponse

func NewAttNotFoundVerifyChallengeProofErrorResponse(v AttNotFound) VerifyChallengeProofErrorResponse

NewAttNotFoundVerifyChallengeProofErrorResponse returns new VerifyChallengeProofErrorResponse from AttNotFound.

func NewAttProofRejectedVerifyChallengeProofErrorResponse

func NewAttProofRejectedVerifyChallengeProofErrorResponse(v AttProofRejected) VerifyChallengeProofErrorResponse

NewAttProofRejectedVerifyChallengeProofErrorResponse returns new VerifyChallengeProofErrorResponse from AttProofRejected.

func NewAttStaleChallengeVerifyChallengeProofErrorResponse

func NewAttStaleChallengeVerifyChallengeProofErrorResponse(v AttStaleChallenge) VerifyChallengeProofErrorResponse

NewAttStaleChallengeVerifyChallengeProofErrorResponse returns new VerifyChallengeProofErrorResponse from AttStaleChallenge.

func NewInternalVerifyChallengeProofErrorResponse

func NewInternalVerifyChallengeProofErrorResponse(v Internal) VerifyChallengeProofErrorResponse

NewInternalVerifyChallengeProofErrorResponse returns new VerifyChallengeProofErrorResponse from Internal.

func (*VerifyChallengeProofErrorResponse) Decode

Decode decodes VerifyChallengeProofErrorResponse from json.

func (VerifyChallengeProofErrorResponse) Encode

Encode encodes VerifyChallengeProofErrorResponse as json.

func (VerifyChallengeProofErrorResponse) GetAttAlreadyCompleted

func (s VerifyChallengeProofErrorResponse) GetAttAlreadyCompleted() (v AttAlreadyCompleted, ok bool)

GetAttAlreadyCompleted returns AttAlreadyCompleted and true boolean if VerifyChallengeProofErrorResponse is AttAlreadyCompleted.

func (VerifyChallengeProofErrorResponse) GetAttInvalidRequest

func (s VerifyChallengeProofErrorResponse) GetAttInvalidRequest() (v AttInvalidRequest, ok bool)

GetAttInvalidRequest returns AttInvalidRequest and true boolean if VerifyChallengeProofErrorResponse is AttInvalidRequest.

func (VerifyChallengeProofErrorResponse) GetAttInvalidState

func (s VerifyChallengeProofErrorResponse) GetAttInvalidState() (v AttInvalidState, ok bool)

GetAttInvalidState returns AttInvalidState and true boolean if VerifyChallengeProofErrorResponse is AttInvalidState.

func (VerifyChallengeProofErrorResponse) GetAttNotFound

func (s VerifyChallengeProofErrorResponse) GetAttNotFound() (v AttNotFound, ok bool)

GetAttNotFound returns AttNotFound and true boolean if VerifyChallengeProofErrorResponse is AttNotFound.

func (VerifyChallengeProofErrorResponse) GetAttProofRejected

func (s VerifyChallengeProofErrorResponse) GetAttProofRejected() (v AttProofRejected, ok bool)

GetAttProofRejected returns AttProofRejected and true boolean if VerifyChallengeProofErrorResponse is AttProofRejected.

func (VerifyChallengeProofErrorResponse) GetAttStaleChallenge

func (s VerifyChallengeProofErrorResponse) GetAttStaleChallenge() (v AttStaleChallenge, ok bool)

GetAttStaleChallenge returns AttStaleChallenge and true boolean if VerifyChallengeProofErrorResponse is AttStaleChallenge.

func (VerifyChallengeProofErrorResponse) GetInternal

func (s VerifyChallengeProofErrorResponse) GetInternal() (v Internal, ok bool)

GetInternal returns Internal and true boolean if VerifyChallengeProofErrorResponse is Internal.

func (VerifyChallengeProofErrorResponse) IsAttAlreadyCompleted

func (s VerifyChallengeProofErrorResponse) IsAttAlreadyCompleted() bool

IsAttAlreadyCompleted reports whether VerifyChallengeProofErrorResponse is AttAlreadyCompleted.

func (VerifyChallengeProofErrorResponse) IsAttInvalidRequest

func (s VerifyChallengeProofErrorResponse) IsAttInvalidRequest() bool

IsAttInvalidRequest reports whether VerifyChallengeProofErrorResponse is AttInvalidRequest.

func (VerifyChallengeProofErrorResponse) IsAttInvalidState

func (s VerifyChallengeProofErrorResponse) IsAttInvalidState() bool

IsAttInvalidState reports whether VerifyChallengeProofErrorResponse is AttInvalidState.

func (VerifyChallengeProofErrorResponse) IsAttNotFound

func (s VerifyChallengeProofErrorResponse) IsAttNotFound() bool

IsAttNotFound reports whether VerifyChallengeProofErrorResponse is AttNotFound.

func (VerifyChallengeProofErrorResponse) IsAttProofRejected

func (s VerifyChallengeProofErrorResponse) IsAttProofRejected() bool

IsAttProofRejected reports whether VerifyChallengeProofErrorResponse is AttProofRejected.

func (VerifyChallengeProofErrorResponse) IsAttStaleChallenge

func (s VerifyChallengeProofErrorResponse) IsAttStaleChallenge() bool

IsAttStaleChallenge reports whether VerifyChallengeProofErrorResponse is AttStaleChallenge.

func (VerifyChallengeProofErrorResponse) IsInternal

func (s VerifyChallengeProofErrorResponse) IsInternal() bool

IsInternal reports whether VerifyChallengeProofErrorResponse is Internal.

func (VerifyChallengeProofErrorResponse) MarshalJSON

func (s VerifyChallengeProofErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyChallengeProofErrorResponse) SetAttAlreadyCompleted

func (s *VerifyChallengeProofErrorResponse) SetAttAlreadyCompleted(v AttAlreadyCompleted)

SetAttAlreadyCompleted sets VerifyChallengeProofErrorResponse to AttAlreadyCompleted.

func (*VerifyChallengeProofErrorResponse) SetAttInvalidRequest

func (s *VerifyChallengeProofErrorResponse) SetAttInvalidRequest(v AttInvalidRequest)

SetAttInvalidRequest sets VerifyChallengeProofErrorResponse to AttInvalidRequest.

func (*VerifyChallengeProofErrorResponse) SetAttInvalidState

func (s *VerifyChallengeProofErrorResponse) SetAttInvalidState(v AttInvalidState)

SetAttInvalidState sets VerifyChallengeProofErrorResponse to AttInvalidState.

func (*VerifyChallengeProofErrorResponse) SetAttNotFound

func (s *VerifyChallengeProofErrorResponse) SetAttNotFound(v AttNotFound)

SetAttNotFound sets VerifyChallengeProofErrorResponse to AttNotFound.

func (*VerifyChallengeProofErrorResponse) SetAttProofRejected

func (s *VerifyChallengeProofErrorResponse) SetAttProofRejected(v AttProofRejected)

SetAttProofRejected sets VerifyChallengeProofErrorResponse to AttProofRejected.

func (*VerifyChallengeProofErrorResponse) SetAttStaleChallenge

func (s *VerifyChallengeProofErrorResponse) SetAttStaleChallenge(v AttStaleChallenge)

SetAttStaleChallenge sets VerifyChallengeProofErrorResponse to AttStaleChallenge.

func (*VerifyChallengeProofErrorResponse) SetInternal

func (s *VerifyChallengeProofErrorResponse) SetInternal(v Internal)

SetInternal sets VerifyChallengeProofErrorResponse to Internal.

func (*VerifyChallengeProofErrorResponse) UnmarshalJSON

func (s *VerifyChallengeProofErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyChallengeProofErrorResponseStatusCode

type VerifyChallengeProofErrorResponseStatusCode struct {
	StatusCode int
	Response   VerifyChallengeProofErrorResponse
}

VerifyChallengeProofErrorResponseStatusCode wraps VerifyChallengeProofErrorResponse with StatusCode.

func (*VerifyChallengeProofErrorResponseStatusCode) GetResponse

GetResponse returns the value of Response.

func (*VerifyChallengeProofErrorResponseStatusCode) GetStatusCode

GetStatusCode returns the value of StatusCode.

func (*VerifyChallengeProofErrorResponseStatusCode) SetResponse

SetResponse sets the value of Response.

func (*VerifyChallengeProofErrorResponseStatusCode) SetStatusCode

func (s *VerifyChallengeProofErrorResponseStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type VerifyChallengeProofErrorResponseType

type VerifyChallengeProofErrorResponseType string

VerifyChallengeProofErrorResponseType is oneOf type of VerifyChallengeProofErrorResponse.

const (
	AttNotFoundVerifyChallengeProofErrorResponse         VerifyChallengeProofErrorResponseType = "att.not_found"
	AttStaleChallengeVerifyChallengeProofErrorResponse   VerifyChallengeProofErrorResponseType = "att.stale_challenge"
	AttInvalidRequestVerifyChallengeProofErrorResponse   VerifyChallengeProofErrorResponseType = "att.invalid_request"
	AttProofRejectedVerifyChallengeProofErrorResponse    VerifyChallengeProofErrorResponseType = "att.proof_rejected"
	AttInvalidStateVerifyChallengeProofErrorResponse     VerifyChallengeProofErrorResponseType = "att.invalid_state"
	AttAlreadyCompletedVerifyChallengeProofErrorResponse VerifyChallengeProofErrorResponseType = "att.already_completed"
	InternalVerifyChallengeProofErrorResponse            VerifyChallengeProofErrorResponseType = "internal"
)

Possible values for VerifyChallengeProofErrorResponseType.

type VerifyChallengeProofParams

type VerifyChallengeProofParams struct {
	// The unique identifier of the authentication attempt.
	AttemptID AttemptID
	// The unique identifier of this challenge.
	ChallengeID ChallengeID
	// Optional retry key for safe retries of the call.
	// Retries carrying the same key within the call window return the cached
	// payload without creating a new resource. See details in the endpoint description.
	IdempotencyKey OptString `json:",omitempty,omitzero"`
}

VerifyChallengeProofParams is parameters of verifyChallengeProof operation.

type VerifyChallengeProofRes

type VerifyChallengeProofRes interface {
	// contains filtered or unexported methods
}

type VerifyChallengeRequest

type VerifyChallengeRequest struct {
	OneOf VerifyChallengeRequestSum
}

Proof for verifying a factor challenge. The exact format depends on the challenge method. The proof object should contain only the credential/code/assertion relevant to the challenge method being verified. Ref: #

func (*VerifyChallengeRequest) Decode

func (s *VerifyChallengeRequest) Decode(d *jx.Decoder) error

Decode decodes VerifyChallengeRequest from json.

func (*VerifyChallengeRequest) Encode

func (s *VerifyChallengeRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VerifyChallengeRequest) GetOneOf

GetOneOf returns the value of OneOf.

func (*VerifyChallengeRequest) MarshalJSON

func (s *VerifyChallengeRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyChallengeRequest) SetOneOf

SetOneOf sets the value of OneOf.

func (*VerifyChallengeRequest) UnmarshalJSON

func (s *VerifyChallengeRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyChallengeRequestSum

type VerifyChallengeRequestSum struct {
	Type            VerifyChallengeRequestSumType // switch on this field
	IdentifierProof IdentifierProof
	PasswordProof   PasswordProof
	PasskeyProof    PasskeyProof
}

VerifyChallengeRequestSum represents sum type.

func NewIdentifierProofVerifyChallengeRequestSum

func NewIdentifierProofVerifyChallengeRequestSum(v IdentifierProof) VerifyChallengeRequestSum

NewIdentifierProofVerifyChallengeRequestSum returns new VerifyChallengeRequestSum from IdentifierProof.

func NewPasskeyProofVerifyChallengeRequestSum

func NewPasskeyProofVerifyChallengeRequestSum(v PasskeyProof) VerifyChallengeRequestSum

NewPasskeyProofVerifyChallengeRequestSum returns new VerifyChallengeRequestSum from PasskeyProof.

func NewPasswordProofVerifyChallengeRequestSum

func NewPasswordProofVerifyChallengeRequestSum(v PasswordProof) VerifyChallengeRequestSum

NewPasswordProofVerifyChallengeRequestSum returns new VerifyChallengeRequestSum from PasswordProof.

func (*VerifyChallengeRequestSum) Decode

func (s *VerifyChallengeRequestSum) Decode(d *jx.Decoder) error

Decode decodes VerifyChallengeRequestSum from json.

func (VerifyChallengeRequestSum) Encode

func (s VerifyChallengeRequestSum) Encode(e *jx.Encoder)

Encode encodes VerifyChallengeRequestSum as json.

func (VerifyChallengeRequestSum) GetIdentifierProof

func (s VerifyChallengeRequestSum) GetIdentifierProof() (v IdentifierProof, ok bool)

GetIdentifierProof returns IdentifierProof and true boolean if VerifyChallengeRequestSum is IdentifierProof.

func (VerifyChallengeRequestSum) GetPasskeyProof

func (s VerifyChallengeRequestSum) GetPasskeyProof() (v PasskeyProof, ok bool)

GetPasskeyProof returns PasskeyProof and true boolean if VerifyChallengeRequestSum is PasskeyProof.

func (VerifyChallengeRequestSum) GetPasswordProof

func (s VerifyChallengeRequestSum) GetPasswordProof() (v PasswordProof, ok bool)

GetPasswordProof returns PasswordProof and true boolean if VerifyChallengeRequestSum is PasswordProof.

func (VerifyChallengeRequestSum) IsIdentifierProof

func (s VerifyChallengeRequestSum) IsIdentifierProof() bool

IsIdentifierProof reports whether VerifyChallengeRequestSum is IdentifierProof.

func (VerifyChallengeRequestSum) IsPasskeyProof

func (s VerifyChallengeRequestSum) IsPasskeyProof() bool

IsPasskeyProof reports whether VerifyChallengeRequestSum is PasskeyProof.

func (VerifyChallengeRequestSum) IsPasswordProof

func (s VerifyChallengeRequestSum) IsPasswordProof() bool

IsPasswordProof reports whether VerifyChallengeRequestSum is PasswordProof.

func (VerifyChallengeRequestSum) MarshalJSON

func (s VerifyChallengeRequestSum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyChallengeRequestSum) SetIdentifierProof

func (s *VerifyChallengeRequestSum) SetIdentifierProof(v IdentifierProof)

SetIdentifierProof sets VerifyChallengeRequestSum to IdentifierProof.

func (*VerifyChallengeRequestSum) SetPasskeyProof

func (s *VerifyChallengeRequestSum) SetPasskeyProof(v PasskeyProof)

SetPasskeyProof sets VerifyChallengeRequestSum to PasskeyProof.

func (*VerifyChallengeRequestSum) SetPasswordProof

func (s *VerifyChallengeRequestSum) SetPasswordProof(v PasswordProof)

SetPasswordProof sets VerifyChallengeRequestSum to PasswordProof.

func (*VerifyChallengeRequestSum) UnmarshalJSON

func (s *VerifyChallengeRequestSum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyChallengeRequestSumType

type VerifyChallengeRequestSumType string

VerifyChallengeRequestSumType is oneOf type of VerifyChallengeRequestSum.

const (
	IdentifierProofVerifyChallengeRequestSum VerifyChallengeRequestSumType = "IdentifierProof"
	PasswordProofVerifyChallengeRequestSum   VerifyChallengeRequestSumType = "PasswordProof"
	PasskeyProofVerifyChallengeRequestSum    VerifyChallengeRequestSumType = "PasskeyProof"
)

Possible values for VerifyChallengeRequestSumType.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL