models

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

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

	// TransientOTPRequestMechanismEmail captures enum value "email"
	TransientOTPRequestMechanismEmail string = "email"
)
View Source
const (

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

	// TransientOTPResponseMechanismEmail captures enum value "email"
	TransientOTPResponseMechanismEmail string = "email"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientDetails

type ClientDetails struct {

	// url to a client website
	// Example: https://example.com
	ClientURI string `json:"client_uri,omitempty" yaml:"client_uri,omitempty"`

	// client id
	// Example: default
	ID string `json:"id,omitempty" yaml:"id,omitempty"`

	// url to a page where client logo is served
	// Example: https://example.com/logo.png
	LogoURI string `json:"logo_uri,omitempty" yaml:"logo_uri,omitempty"`

	// client name
	// Example: My app
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

ClientDetails client details

swagger:model ClientDetails

func (*ClientDetails) ContextValidate

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

ContextValidate validates this client details based on context it is used

func (*ClientDetails) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientDetails) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientDetails) Validate

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

Validate validates this client details

type ClientWithAccess

type ClientWithAccess struct {

	// client
	Client *ClientDetails `json:"client,omitempty" yaml:"client,omitempty"`

	// Scopes granted to client
	GrantedScopes []*GrantedScope `json:"granted_scopes" yaml:"granted_scopes"`
}

ClientWithAccess client with access

swagger:model ClientWithAccess

func (*ClientWithAccess) ContextValidate

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

ContextValidate validate this client with access based on the context it is used

func (*ClientWithAccess) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientWithAccess) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientWithAccess) Validate

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

Validate validates this client with access

type Consent struct {

	// flag determining if can user withdrawn consent
	// Example: false
	CanBeWithdrawn bool `json:"can_be_withdrawn,omitempty" yaml:"can_be_withdrawn,omitempty"`

	// consent description
	// Example: End User License Agreement
	Description string `json:"description,omitempty" yaml:"description,omitempty"`

	// consent unique identifier
	// Example: 1
	ID string `json:"id,omitempty" yaml:"id,omitempty"`

	// internal services
	InternalServices []*ConsentService `json:"internal_services" yaml:"internal_services"`

	// consent name
	// Example: EULA
	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	// PII Categories
	PiiCategories []*PIICategory `json:"pii_categories" yaml:"pii_categories"`

	// tenant id
	// Example: default
	TenantID string `json:"tenant_id,omitempty" yaml:"tenant_id,omitempty"`

	// third party services
	ThirdPartyServices []*ConsentService `json:"third_party_services" yaml:"third_party_services"`

	// strategy for upading existing grants, one of: explicitAll, implicitAll, keepCurrent
	// Example: explicitAll
	UpdateExistingGrants string `json:"update_existing_grants,omitempty" yaml:"update_existing_grants,omitempty"`

	// marks the time from which the consent is in use. Can't be set to a future time
	// Example: 2019-12-11T13:44:28.772101Z
	// Format: date-time
	ValidFrom strfmt.DateTime `json:"valid_from,omitempty" yaml:"valid_from,omitempty"`

	// consent version. When a consent is updated, version is incremented.
	// Example: 1
	Version int64 `json:"version,omitempty" yaml:"version,omitempty"`
}

Consent consent

swagger:model Consent

func (*Consent) ContextValidate

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

ContextValidate validate this consent based on the context it is used

func (*Consent) MarshalBinary

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

MarshalBinary interface implementation

func (*Consent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Consent) Validate

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

Validate validates this consent

type ConsentGrant

type ConsentGrant struct {

	// consent grant id
	// Example: 27fa83a8-d0a6-48da-8529-42105bfa0ede
	ConsentGrantActID string `json:"consent_grant_act_id,omitempty" yaml:"consent_grant_act_id,omitempty"`

	// consent id
	// Example: 1
	ConsentID string `json:"consent_id,omitempty" yaml:"consent_id,omitempty"`

	// given at timestamp
	// Format: date-time
	GivenAt strfmt.DateTime `json:"given_at,omitempty" yaml:"given_at,omitempty"`

	// grant type, one of: implicit, explicit
	// Example: implicit
	GrantType string `json:"grant_type,omitempty" yaml:"grant_type,omitempty"`

	// subject
	// Example: peter
	Subject string `json:"subject,omitempty" yaml:"subject,omitempty"`

	// tenant id
	// Example: default
	TenantID string `json:"tenant_id,omitempty" yaml:"tenant_id,omitempty"`

	// version
	// Example: 1
	Version int64 `json:"version,omitempty" yaml:"version,omitempty"`
}

ConsentGrant consent grant

swagger:model ConsentGrant

func (*ConsentGrant) ContextValidate

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

ContextValidate validates this consent grant based on context it is used

func (*ConsentGrant) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentGrant) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentGrant) Validate

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

Validate validates this consent grant

type ConsentGrantContext

type ConsentGrantContext struct {

	// json object - device print of the End User's device
	Device map[string]interface{} `json:"device,omitempty" yaml:"device,omitempty"`

	// string in the form of a valid IP v 4 address, represents the current IP of the End User
	// Example: 52.14.142.76
	IP string `json:"ip,omitempty" yaml:"ip,omitempty"`

	// 2 element array of floats - current geolocation of the end-user, the format is [lat, long]
	// Example: [25.2084,55.2719]
	Location []float64 `json:"location" yaml:"location"`
}

ConsentGrantContext consent grant context

swagger:model ConsentGrantContext

func (*ConsentGrantContext) ContextValidate

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

ContextValidate validates this consent grant context based on context it is used

func (*ConsentGrantContext) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentGrantContext) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentGrantContext) Validate

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

Validate validates this consent grant context

type ConsentGrantPatch

type ConsentGrantPatch struct {

	// consent id
	// Example: 1
	ConsentID string `json:"consent_id,omitempty" yaml:"consent_id,omitempty"`

	// one of: implicit, explicit (explicit is the default value)
	// Example: implicit
	GrantType string `json:"grant_type,omitempty" yaml:"grant_type,omitempty"`

	// boolean flag marking if the user granted or revoked the consent
	// Example: false
	Granted bool `json:"granted,omitempty" yaml:"granted,omitempty"`
}

ConsentGrantPatch consent grant patch

swagger:model ConsentGrantPatch

func (*ConsentGrantPatch) ContextValidate

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

ContextValidate validates this consent grant patch based on context it is used

func (*ConsentGrantPatch) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentGrantPatch) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentGrantPatch) Validate

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

Validate validates this consent grant patch

type ConsentGrantPatchRequest

type ConsentGrantPatchRequest struct {

	// time when the grant occurred
	// Example: 1257894000000000000
	CollectionTimestamp int64 `json:"collection_timestamp,omitempty" yaml:"collection_timestamp,omitempty"`

	// an array of consent objects, consisting of consentId and granted - boolean flag marking if the user granted or revoked the consent
	Consents []*ConsentGrantPatch `json:"consents" yaml:"consents"`

	// context
	Context *ConsentGrantContext `json:"context,omitempty" yaml:"context,omitempty"`

	// language in which the consent was obtained [ISO 639]
	// Example: en
	Language string `json:"language,omitempty" yaml:"language,omitempty"`

	// optional string with action_id - can be set if the consent grant/withdraw request was caused when an app asked the user for consent required for a specific action
	// Example: 1
	TriggeredByAction string `json:"triggered_by_action,omitempty" yaml:"triggered_by_action,omitempty"`
}

ConsentGrantPatchRequest consent grant patch request

swagger:model ConsentGrantPatchRequest

func (*ConsentGrantPatchRequest) ContextValidate

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

ContextValidate validate this consent grant patch request based on the context it is used

func (*ConsentGrantPatchRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentGrantPatchRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentGrantPatchRequest) Validate

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

Validate validates this consent grant patch request

type ConsentGrantPatchResponse

type ConsentGrantPatchResponse struct {

	// id of the consent grant action
	ConsentGrantActID string `json:"ConsentGrantActID,omitempty" yaml:"ConsentGrantActID,omitempty"`

	// time when the grant occurred
	// Example: 1257894000000000000
	CollectionTimestamp int64 `json:"collection_timestamp,omitempty" yaml:"collection_timestamp,omitempty"`

	// an array of consent objects, consisting of consentId and granted - boolean flag marking if the user granted or revoked the consent
	Consents []*ConsentGrantPatch `json:"consents" yaml:"consents"`

	// context
	Context *ConsentGrantContext `json:"context,omitempty" yaml:"context,omitempty"`

	// language in which the consent was obtained [ISO 639]
	// Example: en
	Language string `json:"language,omitempty" yaml:"language,omitempty"`

	// optional string with action_id - can be set if the consent grant/withdraw request was caused when an app asked the user for consent required for a specific action
	// Example: 1
	TriggeredByAction string `json:"triggered_by_action,omitempty" yaml:"triggered_by_action,omitempty"`
}

ConsentGrantPatchResponse consent grant patch response

swagger:model ConsentGrantPatchResponse

func (*ConsentGrantPatchResponse) ContextValidate

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

ContextValidate validate this consent grant patch response based on the context it is used

func (*ConsentGrantPatchResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentGrantPatchResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentGrantPatchResponse) Validate

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

Validate validates this consent grant patch response

type ConsentGrantRequest

type ConsentGrantRequest struct {

	// time when the grant occurred
	// Example: 1257894000000000000
	CollectionTimestamp int64 `json:"collection_timestamp,omitempty" yaml:"collection_timestamp,omitempty"`

	// consent id
	ConsentID string `json:"consent_id,omitempty" yaml:"consent_id,omitempty"`

	// context
	Context *ConsentGrantContext `json:"context,omitempty" yaml:"context,omitempty"`

	// grant type
	GrantType string `json:"grant_type,omitempty" yaml:"grant_type,omitempty"`

	// language in which the consent was obtained [ISO 639]
	// Example: en
	Language string `json:"language,omitempty" yaml:"language,omitempty"`

	// optional string with action_id - can be set if the consent grant/withdraw request was caused when an app asked the user for consent required for a specific action
	// Example: 1
	TriggeredByAction string `json:"triggered_by_action,omitempty" yaml:"triggered_by_action,omitempty"`
}

ConsentGrantRequest consent grant request

swagger:model ConsentGrantRequest

func (*ConsentGrantRequest) ContextValidate

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

ContextValidate validate this consent grant request based on the context it is used

func (*ConsentGrantRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentGrantRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentGrantRequest) Validate

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

Validate validates this consent grant request

type ConsentGrantedEvent

type ConsentGrantedEvent struct {

	// time when the grant occurred
	// Example: 1257894000000000000
	CollectionTimestamp int64 `json:"collection_timestamp,omitempty" yaml:"collection_timestamp,omitempty"`

	// consent
	Consent *Consent `json:"consent,omitempty" yaml:"consent,omitempty"`

	// consent grant id
	// Example: 27fa83a8-d0a6-48da-8529-42105bfa0ede
	ConsentGrantActID string `json:"consent_grant_act_id,omitempty" yaml:"consent_grant_act_id,omitempty"`

	// consent id
	// Example: 1
	ConsentID string `json:"consent_id,omitempty" yaml:"consent_id,omitempty"`

	// context
	Context *ConsentGrantContext `json:"context,omitempty" yaml:"context,omitempty"`

	// given at timestamp
	// Format: date-time
	GivenAt strfmt.DateTime `json:"given_at,omitempty" yaml:"given_at,omitempty"`

	// grant type, one of: implicit, explicit
	// Example: implicit
	GrantType string `json:"grant_type,omitempty" yaml:"grant_type,omitempty"`

	// language in which the consent was obtained [ISO 639]
	// Example: en
	Language string `json:"language,omitempty" yaml:"language,omitempty"`

	// subject
	// Example: peter
	Subject string `json:"subject,omitempty" yaml:"subject,omitempty"`

	// tenant id
	// Example: default
	TenantID string `json:"tenant_id,omitempty" yaml:"tenant_id,omitempty"`

	// optional string with action_id - can be set if the consent grant/withdraw request was caused when an app asked the user for consent required for a specific action
	// Example: 1
	TriggeredByAction string `json:"triggered_by_action,omitempty" yaml:"triggered_by_action,omitempty"`

	// version
	// Example: 1
	Version int64 `json:"version,omitempty" yaml:"version,omitempty"`
}

ConsentGrantedEvent consent granted event

swagger:model ConsentGrantedEvent

func (*ConsentGrantedEvent) ContextValidate

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

ContextValidate validate this consent granted event based on the context it is used

func (*ConsentGrantedEvent) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentGrantedEvent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentGrantedEvent) Validate

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

Validate validates this consent granted event

type ConsentRevokedEvent

type ConsentRevokedEvent struct {

	// time when the grant occurred
	// Example: 1257894000000000000
	CollectionTimestamp int64 `json:"collection_timestamp,omitempty" yaml:"collection_timestamp,omitempty"`

	// consent
	Consent *Consent `json:"consent,omitempty" yaml:"consent,omitempty"`

	// consent grant id
	// Example: 27fa83a8-d0a6-48da-8529-42105bfa0ede
	ConsentGrantActID string `json:"consent_grant_act_id,omitempty" yaml:"consent_grant_act_id,omitempty"`

	// consent id
	// Example: 1
	ConsentID string `json:"consent_id,omitempty" yaml:"consent_id,omitempty"`

	// context
	Context *ConsentGrantContext `json:"context,omitempty" yaml:"context,omitempty"`

	// given at timestamp
	// Format: date-time
	GivenAt strfmt.DateTime `json:"given_at,omitempty" yaml:"given_at,omitempty"`

	// grant type, one of: implicit, explicit
	// Example: implicit
	GrantType string `json:"grant_type,omitempty" yaml:"grant_type,omitempty"`

	// language in which the consent was obtained [ISO 639]
	// Example: en
	Language string `json:"language,omitempty" yaml:"language,omitempty"`

	// subject
	// Example: peter
	Subject string `json:"subject,omitempty" yaml:"subject,omitempty"`

	// tenant id
	// Example: default
	TenantID string `json:"tenant_id,omitempty" yaml:"tenant_id,omitempty"`

	// optional string with action_id - can be set if the consent grant/withdraw request was caused when an app asked the user for consent required for a specific action
	// Example: 1
	TriggeredByAction string `json:"triggered_by_action,omitempty" yaml:"triggered_by_action,omitempty"`

	// version
	// Example: 1
	Version int64 `json:"version,omitempty" yaml:"version,omitempty"`
}

ConsentRevokedEvent consent revoked event

swagger:model ConsentRevokedEvent

func (*ConsentRevokedEvent) ContextValidate

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

ContextValidate validate this consent revoked event based on the context it is used

func (*ConsentRevokedEvent) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentRevokedEvent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentRevokedEvent) Validate

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

Validate validates this consent revoked event

type ConsentService

type ConsentService struct {

	// name
	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	// purpose
	Purposes []*Purpose `json:"purposes" yaml:"purposes"`
}

ConsentService consent service

swagger:model ConsentService

func (*ConsentService) ContextValidate

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

ContextValidate validate this consent service based on the context it is used

func (*ConsentService) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentService) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentService) Validate

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

Validate validates this consent service

type ConsentWithGrant

type ConsentWithGrant struct {

	// flag determining if can user withdrawn consent
	// Example: false
	CanBeWithdrawn bool `json:"can_be_withdrawn,omitempty" yaml:"can_be_withdrawn,omitempty"`

	// consent grant id
	// Example: 27fa83a8-d0a6-48da-8529-42105bfa0ede
	ConsentGrantID string `json:"consent_grant_id,omitempty" yaml:"consent_grant_id,omitempty"`

	// consent description
	// Example: End User License Agreement
	Description string `json:"description,omitempty" yaml:"description,omitempty"`

	// given at timestamp
	// Format: date-time
	GivenAt strfmt.DateTime `json:"given_at,omitempty" yaml:"given_at,omitempty"`

	// grant type
	// Example: implicit
	GrantType string `json:"grant_type,omitempty" yaml:"grant_type,omitempty"`

	// grant version
	// Example: 1
	GrantVersion int64 `json:"grant_version,omitempty" yaml:"grant_version,omitempty"`

	// is consent granted
	// Example: false
	Granted bool `json:"granted,omitempty" yaml:"granted,omitempty"`

	// consent unique identifier
	// Example: 1
	ID string `json:"id,omitempty" yaml:"id,omitempty"`

	// internal services
	InternalServices []*ConsentService `json:"internal_services" yaml:"internal_services"`

	// consent name
	// Example: EULA
	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	// PII Categories
	PiiCategories []*PIICategory `json:"pii_categories" yaml:"pii_categories"`

	// subject
	// Example: peter
	Subject string `json:"subject,omitempty" yaml:"subject,omitempty"`

	// tenant id
	// Example: default
	TenantID string `json:"tenant_id,omitempty" yaml:"tenant_id,omitempty"`

	// third party services
	ThirdPartyServices []*ConsentService `json:"third_party_services" yaml:"third_party_services"`

	// strategy for upading existing grants, one of: explicitAll, implicitAll, keepCurrent
	// Example: explicitAll
	UpdateExistingGrants string `json:"update_existing_grants,omitempty" yaml:"update_existing_grants,omitempty"`

	// marks the time from which the consent is in use. Can't be set to a future time
	// Example: 2019-12-11T13:44:28.772101Z
	// Format: date-time
	ValidFrom strfmt.DateTime `json:"valid_from,omitempty" yaml:"valid_from,omitempty"`

	// consent version. When a consent is updated, version is incremented.
	// Example: 1
	Version int64 `json:"version,omitempty" yaml:"version,omitempty"`
}

ConsentWithGrant consent with grant

swagger:model ConsentWithGrant

func (*ConsentWithGrant) ContextValidate

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

ContextValidate validate this consent with grant based on the context it is used

func (*ConsentWithGrant) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentWithGrant) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentWithGrant) Validate

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

Validate validates this consent with grant

type ConsentsWithGrants

type ConsentsWithGrants struct {

	// list of consents
	Consents []*ConsentWithGrant `json:"consents" yaml:"consents"`
}

ConsentsWithGrants consents with grants

swagger:model ConsentsWithGrants

func (*ConsentsWithGrants) ContextValidate

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

ContextValidate validate this consents with grants based on the context it is used

func (*ConsentsWithGrants) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentsWithGrants) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentsWithGrants) Validate

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

Validate validates this consents with grants

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 GrantedScope

type GrantedScope struct {

	// granted scope name
	GrantedScopeName string `json:"granted_scope_name,omitempty" yaml:"granted_scope_name,omitempty"`

	// is dynamic
	IsDynamic bool `json:"is_dynamic,omitempty" yaml:"is_dynamic,omitempty"`

	// scope name
	ScopeName string `json:"scope_name,omitempty" yaml:"scope_name,omitempty"`
}

GrantedScope granted scope

swagger:model GrantedScope

func (*GrantedScope) ContextValidate

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

ContextValidate validates this granted scope based on context it is used

func (*GrantedScope) MarshalBinary

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

MarshalBinary interface implementation

func (*GrantedScope) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GrantedScope) Validate

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

Validate validates this granted scope

type ListClientsWithAccess

type ListClientsWithAccess struct {

	// clients
	Clients []*ClientWithAccess `json:"clients" yaml:"clients"`

	// scopes
	Scopes []*ScopeWithServicePublicResponse `json:"scopes" yaml:"scopes"`
}

ListClientsWithAccess list clients with access

swagger:model ListClientsWithAccess

func (*ListClientsWithAccess) ContextValidate

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

ContextValidate validate this list clients with access based on the context it is used

func (*ListClientsWithAccess) MarshalBinary

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

MarshalBinary interface implementation

func (*ListClientsWithAccess) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListClientsWithAccess) Validate

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

Validate validates this list clients with access

type ListUserSessions

type ListUserSessions struct {

	// sessions
	Sessions []*UserSession `json:"sessions" yaml:"sessions"`
}

ListUserSessions list user sessions

swagger:model ListUserSessions

func (*ListUserSessions) ContextValidate

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

ContextValidate validate this list user sessions based on the context it is used

func (*ListUserSessions) MarshalBinary

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

MarshalBinary interface implementation

func (*ListUserSessions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListUserSessions) Validate

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

Validate validates this list user sessions

type PIICategory

type PIICategory struct {

	// name
	// Example: HIPAA
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

PIICategory p i i category

swagger:model PIICategory

func (*PIICategory) ContextValidate

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

ContextValidate validates this p i i category based on context it is used

func (*PIICategory) MarshalBinary

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

MarshalBinary interface implementation

func (*PIICategory) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PIICategory) Validate

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

Validate validates this p i i category

type PrivacyLedgerEvent

type PrivacyLedgerEvent struct {

	// date
	// Format: date-time
	Date strfmt.DateTime `json:"date,omitempty" yaml:"date,omitempty"`

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

	// payload
	Payload *PrivacyLedgerPayload `json:"payload,omitempty" yaml:"payload,omitempty"`

	// payload signature
	PayloadSignature string `json:"payload_signature,omitempty" yaml:"payload_signature,omitempty"`

	// subject
	Subject string `json:"subject,omitempty" yaml:"subject,omitempty"`

	// tenant id
	TenantID string `json:"tenant_id,omitempty" yaml:"tenant_id,omitempty"`
}

PrivacyLedgerEvent privacy ledger event

swagger:model PrivacyLedgerEvent

func (*PrivacyLedgerEvent) ContextValidate

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

ContextValidate validate this privacy ledger event based on the context it is used

func (*PrivacyLedgerEvent) MarshalBinary

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

MarshalBinary interface implementation

func (*PrivacyLedgerEvent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PrivacyLedgerEvent) Validate

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

Validate validates this privacy ledger event

type PrivacyLedgerEventType

type PrivacyLedgerEventType string

PrivacyLedgerEventType privacy ledger event type

swagger:model PrivacyLedgerEventType

func (PrivacyLedgerEventType) ContextValidate

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

ContextValidate validates this privacy ledger event type based on context it is used

func (PrivacyLedgerEventType) Validate

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

Validate validates this privacy ledger event type

type PrivacyLedgerEvents

type PrivacyLedgerEvents struct {

	// events
	Events []*PrivacyLedgerEvent `json:"events" yaml:"events"`
}

PrivacyLedgerEvents privacy ledger events

swagger:model PrivacyLedgerEvents

func (*PrivacyLedgerEvents) ContextValidate

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

ContextValidate validate this privacy ledger events based on the context it is used

func (*PrivacyLedgerEvents) MarshalBinary

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

MarshalBinary interface implementation

func (*PrivacyLedgerEvents) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PrivacyLedgerEvents) Validate

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

Validate validates this privacy ledger events

type PrivacyLedgerPayload

type PrivacyLedgerPayload struct {

	// consent granted
	ConsentGranted *ConsentGrantedEvent `json:"consent_granted,omitempty" yaml:"consent_granted,omitempty"`

	// consent revoked
	ConsentRevoked *ConsentRevokedEvent `json:"consent_revoked,omitempty" yaml:"consent_revoked,omitempty"`

	// event type
	EventType PrivacyLedgerEventType `json:"event_type,omitempty" yaml:"event_type,omitempty"`
}

PrivacyLedgerPayload privacy ledger payload

swagger:model PrivacyLedgerPayload

func (*PrivacyLedgerPayload) ContextValidate

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

ContextValidate validate this privacy ledger payload based on the context it is used

func (*PrivacyLedgerPayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PrivacyLedgerPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PrivacyLedgerPayload) Validate

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

Validate validates this privacy ledger payload

type PublicEnvironment

type PublicEnvironment struct {

	// If self-service is enabled
	SelfService bool `json:"self_service,omitempty" yaml:"self_service,omitempty"`
}

PublicEnvironment public environment

swagger:model PublicEnvironment

func (*PublicEnvironment) ContextValidate

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

ContextValidate validates this public environment based on context it is used

func (*PublicEnvironment) MarshalBinary

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

MarshalBinary interface implementation

func (*PublicEnvironment) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PublicEnvironment) Validate

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

Validate validates this public environment

type Purpose

type Purpose struct {

	// name
	// Example: Core Function
	Name string `json:"name,omitempty" yaml:"name,omitempty"`

	// is the purpose primary. If there are multiple purposes defined, one of them must be marked as primary.
	// Example: true
	Primary bool `json:"primary,omitempty" yaml:"primary,omitempty"`
}

Purpose purpose

swagger:model Purpose

func (*Purpose) ContextValidate

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

ContextValidate validates this purpose based on context it is used

func (*Purpose) MarshalBinary

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

MarshalBinary interface implementation

func (*Purpose) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Purpose) Validate

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

Validate validates this purpose

type ScopeWithServicePublicResponse

type ScopeWithServicePublicResponse struct {

	// scope description
	// Example: This scope value requests offline access using refresh token
	ScopeDescription string `json:"scope_description,omitempty" yaml:"scope_description,omitempty"`

	// scope display name
	// Example: Offline access
	ScopeDisplayName string `json:"scope_display_name,omitempty" yaml:"scope_display_name,omitempty"`

	// scope id
	// Example: 1
	ScopeID string `json:"scope_id,omitempty" yaml:"scope_id,omitempty"`

	// scope name
	// Example: offline_access
	ScopeName string `json:"scope_name,omitempty" yaml:"scope_name,omitempty"`

	// service description
	// Example: service description
	ServiceDescription string `json:"service_description,omitempty" yaml:"service_description,omitempty"`

	// service id
	// Example: 1
	ServiceID string `json:"service_id,omitempty" yaml:"service_id,omitempty"`

	// service name
	// Example: service
	ServiceName string `json:"service_name,omitempty" yaml:"service_name,omitempty"`

	// is scope assigned to a service
	// Example: false
	WithService bool `json:"with_service,omitempty" yaml:"with_service,omitempty"`
}

ScopeWithServicePublicResponse scope with service public response

swagger:model ScopeWithServicePublicResponse

func (*ScopeWithServicePublicResponse) ContextValidate

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

ContextValidate validates this scope with service public response based on context it is used

func (*ScopeWithServicePublicResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ScopeWithServicePublicResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScopeWithServicePublicResponse) Validate

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

Validate validates this scope with service public response

type TransientOTPRequest

type TransientOTPRequest struct {

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

	// mechanism
	// Example: email
	// Required: true
	// Enum: [sms email]
	Mechanism string `json:"mechanism" yaml:"mechanism"`

	// one-time password
	// Example: 111111
	Otp string `json:"otp,omitempty" yaml:"otp,omitempty"`

	// Optional XSRF state
	// Example: c44sqtco4g2legl15m2g
	State string `json:"state,omitempty" yaml:"state,omitempty"`
}

TransientOTPRequest transient o t p request

swagger:model TransientOTPRequest

func (*TransientOTPRequest) ContextValidate

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

ContextValidate validates this transient o t p request based on context it is used

func (*TransientOTPRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TransientOTPRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TransientOTPRequest) Validate

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

Validate validates this transient o t p request

type TransientOTPResponse

type TransientOTPResponse struct {

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

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

	// expires in
	// Format: duration
	ExpiresIn strfmt.Duration `json:"expires_in,omitempty" yaml:"expires_in,omitempty"`

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

	// mechanism
	// Example: email
	// Required: true
	// Enum: [sms email]
	Mechanism string `json:"mechanism" yaml:"mechanism"`

	// tenant id
	// Example: default
	// Required: true
	TenantID string `json:"tenant_id" yaml:"tenant_id"`

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

	// verified
	Verified bool `json:"verified,omitempty" yaml:"verified,omitempty"`
}

TransientOTPResponse transient o t p response

swagger:model TransientOTPResponse

func (*TransientOTPResponse) ContextValidate

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

ContextValidate validates this transient o t p response based on context it is used

func (*TransientOTPResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*TransientOTPResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TransientOTPResponse) Validate

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

Validate validates this transient o t p response

type UserSession

type UserSession struct {

	// Time when the session was last used
	// Format: date-time
	ActiveTime strfmt.DateTime `json:"active_time,omitempty" yaml:"active_time,omitempty"`

	// time when user authenticated
	// Format: date-time
	AuthTime strfmt.DateTime `json:"auth_time,omitempty" yaml:"auth_time,omitempty"`

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

	// IP address of the user who created the session
	IPAddress string `json:"ip_address,omitempty" yaml:"ip_address,omitempty"`

	// Time when the session was issued
	// Format: date-time
	IssueTime strfmt.DateTime `json:"issue_time,omitempty" yaml:"issue_time,omitempty"`

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

	// User agent of the user who created the session
	UserAgent string `json:"user_agent,omitempty" yaml:"user_agent,omitempty"`
}

UserSession user session

swagger:model UserSession

func (*UserSession) ContextValidate

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

ContextValidate validates this user session based on context it is used

func (*UserSession) MarshalBinary

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

MarshalBinary interface implementation

func (*UserSession) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserSession) Validate

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

Validate validates this user session

Jump to

Keyboard shortcuts

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