models

package
v0.0.0-...-15447be Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// SelfUserCredentialsStateValid captures enum value "valid"
	SelfUserCredentialsStateValid string = "valid"

	// SelfUserCredentialsStateMustBeReset captures enum value "must_be_reset"
	SelfUserCredentialsStateMustBeReset string = "must_be_reset"

	// SelfUserCredentialsStateMustBeChanged captures enum value "must_be_changed"
	SelfUserCredentialsStateMustBeChanged string = "must_be_changed"
)
View Source
const (

	// SelfUserCredentialsTypePassword captures enum value "password"
	SelfUserCredentialsTypePassword string = "password"

	// SelfUserCredentialsTypeWebauthn captures enum value "webauthn"
	SelfUserCredentialsTypeWebauthn string = "webauthn"
)
View Source
const (

	// SelfUserIdentifierTypeEmail captures enum value "email"
	SelfUserIdentifierTypeEmail string = "email"

	// SelfUserIdentifierTypeMobile captures enum value "mobile"
	SelfUserIdentifierTypeMobile string = "mobile"

	// SelfUserIdentifierTypeUID captures enum value "uid"
	SelfUserIdentifierTypeUID string = "uid"

	// SelfUserIdentifierTypeExternal captures enum value "external"
	SelfUserIdentifierTypeExternal string = "external"

	// SelfUserIdentifierTypeFederated captures enum value "federated"
	SelfUserIdentifierTypeFederated string = "federated"
)
View Source
const (

	// SelfUserVerifiableAddressPreferredContactMethodSms captures enum value "sms"
	SelfUserVerifiableAddressPreferredContactMethodSms string = "sms"

	// SelfUserVerifiableAddressPreferredContactMethodVoice captures enum value "voice"
	SelfUserVerifiableAddressPreferredContactMethodVoice string = "voice"
)
View Source
const (

	// SelfUserVerifiableAddressStatusActive captures enum value "active"
	SelfUserVerifiableAddressStatusActive string = "active"

	// SelfUserVerifiableAddressStatusInactive captures enum value "inactive"
	SelfUserVerifiableAddressStatusInactive string = "inactive"
)
View Source
const (

	// SelfUserVerifiableAddressTypeEmail captures enum value "email"
	SelfUserVerifiableAddressTypeEmail string = "email"

	// SelfUserVerifiableAddressTypeMobile captures enum value "mobile"
	SelfUserVerifiableAddressTypeMobile string = "mobile"
)
View Source
const (

	// SelfUserWithDataV2PreferredAuthenticationMechanismPassword captures enum value "password"
	SelfUserWithDataV2PreferredAuthenticationMechanismPassword string = "password"

	// SelfUserWithDataV2PreferredAuthenticationMechanismOtp captures enum value "otp"
	SelfUserWithDataV2PreferredAuthenticationMechanismOtp string = "otp"

	// SelfUserWithDataV2PreferredAuthenticationMechanismWebauthn captures enum value "webauthn"
	SelfUserWithDataV2PreferredAuthenticationMechanismWebauthn string = "webauthn"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationMechanisms

type AuthenticationMechanisms []string

AuthenticationMechanisms authentication mechanisms

swagger:model AuthenticationMechanisms

func (AuthenticationMechanisms) ContextValidate

func (m AuthenticationMechanisms) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this authentication mechanisms based on context it is used

func (AuthenticationMechanisms) Validate

func (m AuthenticationMechanisms) Validate(formats strfmt.Registry) error

Validate validates this authentication mechanisms

type ChangePassword

type ChangePassword struct {

	// new password
	// Required: true
	NewPassword string `json:"new_password" yaml:"new_password"`

	// old password
	// Required: true
	OldPassword string `json:"old_password" yaml:"old_password"`
}

ChangePassword change password

swagger:model ChangePassword

func (*ChangePassword) ContextValidate

func (m *ChangePassword) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this change password based on context it is used

func (*ChangePassword) MarshalBinary

func (m *ChangePassword) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangePassword) UnmarshalBinary

func (m *ChangePassword) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangePassword) Validate

func (m *ChangePassword) Validate(formats strfmt.Registry) error

Validate validates this change password

type CompleteAddressVerification

type CompleteAddressVerification struct {

	// address
	// Example: sample@email.com/+48123456789
	// Required: true
	Address string `json:"address" yaml:"address"`

	// code
	// Required: true
	Code string `json:"code" yaml:"code"`
}

CompleteAddressVerification complete address verification

swagger:model CompleteAddressVerification

func (*CompleteAddressVerification) ContextValidate

func (m *CompleteAddressVerification) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this complete address verification based on context it is used

func (*CompleteAddressVerification) MarshalBinary

func (m *CompleteAddressVerification) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CompleteAddressVerification) UnmarshalBinary

func (m *CompleteAddressVerification) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CompleteAddressVerification) Validate

func (m *CompleteAddressVerification) Validate(formats strfmt.Registry) error

Validate validates this complete address verification

type Error

type Error struct {

	// details
	Details interface{} `json:"details,omitempty" yaml:"details,omitempty"`

	// error
	Error string `json:"error,omitempty" yaml:"error,omitempty"`

	// status code
	StatusCode int64 `json:"status_code,omitempty" yaml:"status_code,omitempty"`
}

Error HTTP error response

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type FederatedAccount

type FederatedAccount struct {

	// federated idp id
	FederatedIdpID string `json:"federated_idp_id,omitempty" yaml:"federated_idp_id,omitempty"`

	// federated idp method
	FederatedIdpMethod string `json:"federated_idp_method,omitempty" yaml:"federated_idp_method,omitempty"`

	// federated idp name
	FederatedIdpName string `json:"federated_idp_name,omitempty" yaml:"federated_idp_name,omitempty"`

	// federated sub
	FederatedSub string `json:"federated_sub,omitempty" yaml:"federated_sub,omitempty"`

	// identifier id
	IdentifierID string `json:"identifier_id,omitempty" yaml:"identifier_id,omitempty"`

	// workspace id
	WorkspaceID string `json:"workspace_id,omitempty" yaml:"workspace_id,omitempty"`
}

FederatedAccount federated account

swagger:model FederatedAccount

func (*FederatedAccount) ContextValidate

func (m *FederatedAccount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this federated account based on context it is used

func (*FederatedAccount) MarshalBinary

func (m *FederatedAccount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FederatedAccount) UnmarshalBinary

func (m *FederatedAccount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FederatedAccount) Validate

func (m *FederatedAccount) Validate(formats strfmt.Registry) error

Validate validates this federated account

type ResetPasswordConfirm

type ResetPasswordConfirm struct {

	// code
	// Required: true
	Code string `json:"code" yaml:"code"`

	// identifier
	Identifier string `json:"identifier,omitempty" yaml:"identifier,omitempty"`

	// new password
	// Required: true
	NewPassword string `json:"new_password" yaml:"new_password"`
}

ResetPasswordConfirm reset password confirm

swagger:model ResetPasswordConfirm

func (*ResetPasswordConfirm) ContextValidate

func (m *ResetPasswordConfirm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this reset password confirm based on context it is used

func (*ResetPasswordConfirm) MarshalBinary

func (m *ResetPasswordConfirm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResetPasswordConfirm) UnmarshalBinary

func (m *ResetPasswordConfirm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResetPasswordConfirm) Validate

func (m *ResetPasswordConfirm) Validate(formats strfmt.Registry) error

Validate validates this reset password confirm

type SelfUserCredentials

type SelfUserCredentials struct {

	// expires after
	// Format: duration
	ExpiresAfter strfmt.Duration `json:"expires_after,omitempty" yaml:"expires_after,omitempty"`

	// expires at
	// Format: date-time
	ExpiresAt strfmt.DateTime `json:"expires_at,omitempty" yaml:"expires_at,omitempty"`

	// state
	// Enum: [valid must_be_reset must_be_changed]
	State string `json:"state,omitempty" yaml:"state,omitempty"`

	// type
	// Example: password
	// Required: true
	// Enum: [password webauthn]
	Type string `json:"type" yaml:"type"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at" yaml:"updated_at"`
}

SelfUserCredentials self user credentials

swagger:model SelfUserCredentials

func (*SelfUserCredentials) ContextValidate

func (m *SelfUserCredentials) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this self user credentials based on context it is used

func (*SelfUserCredentials) MarshalBinary

func (m *SelfUserCredentials) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SelfUserCredentials) UnmarshalBinary

func (m *SelfUserCredentials) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SelfUserCredentials) Validate

func (m *SelfUserCredentials) Validate(formats strfmt.Registry) error

Validate validates this self user credentials

type SelfUserIdentifier

type SelfUserIdentifier struct {

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at" yaml:"created_at"`

	// identifier
	// Required: true
	Identifier string `json:"identifier" yaml:"identifier"`

	// type
	// Example: email
	// Required: true
	// Enum: [email mobile uid external federated]
	Type string `json:"type" yaml:"type"`
}

SelfUserIdentifier self user identifier

swagger:model SelfUserIdentifier

func (*SelfUserIdentifier) ContextValidate

func (m *SelfUserIdentifier) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this self user identifier based on context it is used

func (*SelfUserIdentifier) MarshalBinary

func (m *SelfUserIdentifier) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SelfUserIdentifier) UnmarshalBinary

func (m *SelfUserIdentifier) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SelfUserIdentifier) Validate

func (m *SelfUserIdentifier) Validate(formats strfmt.Registry) error

Validate validates this self user identifier

type SelfUserUpdate

type SelfUserUpdate struct {

	// payload
	Payload map[string]interface{} `json:"payload,omitempty" yaml:"payload,omitempty"`
}

SelfUserUpdate self user update

swagger:model SelfUserUpdate

func (*SelfUserUpdate) ContextValidate

func (m *SelfUserUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this self user update based on context it is used

func (*SelfUserUpdate) MarshalBinary

func (m *SelfUserUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SelfUserUpdate) UnmarshalBinary

func (m *SelfUserUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SelfUserUpdate) Validate

func (m *SelfUserUpdate) Validate(formats strfmt.Registry) error

Validate validates this self user update

type SelfUserVerifiableAddress

type SelfUserVerifiableAddress struct {

	// address
	// Required: true
	Address string `json:"address" yaml:"address"`

	// created at
	// Required: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at" yaml:"created_at"`

	// preferred contact method
	// Example: sms
	// Enum: [sms voice]
	PreferredContactMethod string `json:"preferred_contact_method,omitempty" yaml:"preferred_contact_method,omitempty"`

	// status
	// Example: active
	// Required: true
	// Enum: [active inactive]
	Status string `json:"status" yaml:"status"`

	// type
	// Example: mobile
	// Required: true
	// Enum: [email mobile]
	Type string `json:"type" yaml:"type"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at" yaml:"updated_at"`

	// verified
	// Required: true
	Verified bool `json:"verified" yaml:"verified"`

	// verified at
	// Format: date-time
	VerifiedAt strfmt.DateTime `json:"verified_at,omitempty" yaml:"verified_at,omitempty"`
}

SelfUserVerifiableAddress self user verifiable address

swagger:model SelfUserVerifiableAddress

func (*SelfUserVerifiableAddress) ContextValidate

func (m *SelfUserVerifiableAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this self user verifiable address based on context it is used

func (*SelfUserVerifiableAddress) MarshalBinary

func (m *SelfUserVerifiableAddress) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SelfUserVerifiableAddress) UnmarshalBinary

func (m *SelfUserVerifiableAddress) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SelfUserVerifiableAddress) Validate

func (m *SelfUserVerifiableAddress) Validate(formats strfmt.Registry) error

Validate validates this self user verifiable address

type SelfUserWithData

type SelfUserWithData struct {

	// business metadata
	BusinessMetadata map[string]interface{} `json:"business_metadata,omitempty" yaml:"business_metadata,omitempty"`

	// id
	ID string `json:"id,omitempty" yaml:"id,omitempty"`

	// identifiers
	Identifiers []*SelfUserIdentifier `json:"identifiers" yaml:"identifiers"`

	// metadata
	Metadata map[string]interface{} `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// payload
	Payload map[string]interface{} `json:"payload,omitempty" yaml:"payload,omitempty"`

	// verifiable addresses
	VerifiableAddresses []*SelfUserVerifiableAddress `json:"verifiable_addresses" yaml:"verifiable_addresses"`
}

SelfUserWithData self user with data

swagger:model SelfUserWithData

func (*SelfUserWithData) ContextValidate

func (m *SelfUserWithData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this self user with data based on the context it is used

func (*SelfUserWithData) MarshalBinary

func (m *SelfUserWithData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SelfUserWithData) UnmarshalBinary

func (m *SelfUserWithData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SelfUserWithData) Validate

func (m *SelfUserWithData) Validate(formats strfmt.Registry) error

Validate validates this self user with data

type SelfUserWithDataV2

type SelfUserWithDataV2 struct {

	// authentication mechanisms
	AuthenticationMechanisms AuthenticationMechanisms `json:"authentication_mechanisms,omitempty" yaml:"authentication_mechanisms,omitempty"`

	// business metadata
	BusinessMetadata map[string]interface{} `json:"business_metadata,omitempty" yaml:"business_metadata,omitempty"`

	// credentials
	Credentials []*SelfUserCredentials `json:"credentials" yaml:"credentials"`

	// federated accounts
	FederatedAccounts []*FederatedAccount `json:"federated_accounts" yaml:"federated_accounts"`

	// id
	ID string `json:"id,omitempty" yaml:"id,omitempty"`

	// identifiers
	Identifiers []*SelfUserIdentifier `json:"identifiers" yaml:"identifiers"`

	// metadata
	Metadata map[string]interface{} `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// payload
	Payload map[string]interface{} `json:"payload,omitempty" yaml:"payload,omitempty"`

	// payload schema
	PayloadSchema *SupportedJSONSchema `json:"payload_schema,omitempty" yaml:"payload_schema,omitempty"`

	// preferred authentication mechanism
	// Example: password
	// Enum: [password otp webauthn]
	PreferredAuthenticationMechanism string `json:"preferred_authentication_mechanism,omitempty" yaml:"preferred_authentication_mechanism,omitempty"`

	// verifiable addresses
	VerifiableAddresses []*SelfUserVerifiableAddress `json:"verifiable_addresses" yaml:"verifiable_addresses"`
}

SelfUserWithDataV2 self user with data v2

swagger:model SelfUserWithDataV2

func (*SelfUserWithDataV2) ContextValidate

func (m *SelfUserWithDataV2) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this self user with data v2 based on the context it is used

func (*SelfUserWithDataV2) MarshalBinary

func (m *SelfUserWithDataV2) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SelfUserWithDataV2) UnmarshalBinary

func (m *SelfUserWithDataV2) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SelfUserWithDataV2) Validate

func (m *SelfUserWithDataV2) Validate(formats strfmt.Registry) error

Validate validates this self user with data v2

type SetPassword

type SetPassword struct {

	// new password
	// Required: true
	NewPassword string `json:"new_password" yaml:"new_password"`
}

SetPassword set password

swagger:model SetPassword

func (*SetPassword) ContextValidate

func (m *SetPassword) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this set password based on context it is used

func (*SetPassword) MarshalBinary

func (m *SetPassword) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetPassword) UnmarshalBinary

func (m *SetPassword) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetPassword) Validate

func (m *SetPassword) Validate(formats strfmt.Registry) error

Validate validates this set password

type SupportedJSONSchema

type SupportedJSONSchema struct {

	// additional properties
	AdditionalProperties bool `json:"additionalProperties,omitempty" yaml:"additionalProperties,omitempty"`

	// all of
	AllOf []*SupportedJSONSchema `json:"allOf" yaml:"allOf"`

	// any of
	AnyOf []*SupportedJSONSchema `json:"anyOf" yaml:"anyOf"`

	// const
	Const string `json:"const,omitempty" yaml:"const,omitempty"`

	// contains
	Contains *SupportedJSONSchema `json:"contains,omitempty" yaml:"contains,omitempty"`

	// dependent required
	DependentRequired map[string][]string `json:"dependentRequired,omitempty" yaml:"dependentRequired,omitempty"`

	// dependent schemas
	DependentSchemas map[string]SupportedJSONSchema `json:"dependentSchemas,omitempty" yaml:"dependentSchemas,omitempty"`

	// description
	Description string `json:"description,omitempty" yaml:"description,omitempty"`

	// else
	Else *SupportedJSONSchema `json:"else,omitempty" yaml:"else,omitempty"`

	// enum
	Enum []string `json:"enum" yaml:"enum"`

	// exclusive maximum
	ExclusiveMaximum int64 `json:"exclusiveMaximum,omitempty" yaml:"exclusiveMaximum,omitempty"`

	// exclusive minimum
	ExclusiveMinimum int64 `json:"exclusiveMinimum,omitempty" yaml:"exclusiveMinimum,omitempty"`

	// hidden
	Hidden bool `json:"hidden,omitempty" yaml:"hidden,omitempty"`

	// if
	If *SupportedJSONSchema `json:"if,omitempty" yaml:"if,omitempty"`

	// items
	Items *SupportedJSONSchema `json:"items,omitempty" yaml:"items,omitempty"`

	// max contains
	MaxContains int64 `json:"maxContains,omitempty" yaml:"maxContains,omitempty"`

	// arrays
	MaxItems int64 `json:"maxItems,omitempty" yaml:"maxItems,omitempty"`

	// strings
	MaxLength int64 `json:"maxLength,omitempty" yaml:"maxLength,omitempty"`

	// objects
	MaxProperties int64 `json:"maxProperties,omitempty" yaml:"maxProperties,omitempty"`

	// maximum
	Maximum int64 `json:"maximum,omitempty" yaml:"maximum,omitempty"`

	// min contains
	MinContains int64 `json:"minContains,omitempty" yaml:"minContains,omitempty"`

	// min items
	MinItems int64 `json:"minItems,omitempty" yaml:"minItems,omitempty"`

	// min length
	MinLength int64 `json:"minLength,omitempty" yaml:"minLength,omitempty"`

	// min properties
	MinProperties int64 `json:"minProperties,omitempty" yaml:"minProperties,omitempty"`

	// minimum
	Minimum int64 `json:"minimum,omitempty" yaml:"minimum,omitempty"`

	// numeric
	MultipleOf int64 `json:"multipleOf,omitempty" yaml:"multipleOf,omitempty"`

	// not
	Not *SupportedJSONSchema `json:"not,omitempty" yaml:"not,omitempty"`

	// one of
	OneOf []*SupportedJSONSchema `json:"oneOf" yaml:"oneOf"`

	// pattern
	Pattern string `json:"pattern,omitempty" yaml:"pattern,omitempty"`

	// pattern properties
	PatternProperties map[string]SupportedJSONSchema `json:"patternProperties,omitempty" yaml:"patternProperties,omitempty"`

	// properties
	Properties map[string]SupportedJSONSchema `json:"properties,omitempty" yaml:"properties,omitempty"`

	// property names
	PropertyNames *SupportedJSONSchema `json:"propertyNames,omitempty" yaml:"propertyNames,omitempty"`

	// required
	Required []string `json:"required" yaml:"required"`

	// then
	Then *SupportedJSONSchema `json:"then,omitempty" yaml:"then,omitempty"`

	// title
	Title string `json:"title,omitempty" yaml:"title,omitempty"`

	// any
	Type string `json:"type,omitempty" yaml:"type,omitempty"`

	// unique items
	UniqueItems bool `json:"uniqueItems,omitempty" yaml:"uniqueItems,omitempty"`
}

SupportedJSONSchema supported JSON schema

swagger:model SupportedJSONSchema

func (*SupportedJSONSchema) ContextValidate

func (m *SupportedJSONSchema) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this supported JSON schema based on the context it is used

func (*SupportedJSONSchema) MarshalBinary

func (m *SupportedJSONSchema) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SupportedJSONSchema) UnmarshalBinary

func (m *SupportedJSONSchema) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SupportedJSONSchema) Validate

func (m *SupportedJSONSchema) Validate(formats strfmt.Registry) error

Validate validates this supported JSON schema

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL