snapshot of https://github.com/ory/kratos.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped

This commit is contained in:
upstream-mirror
2026-09-15 21:19:12 +05:00
commit c60cc7ca75
8092 changed files with 394160 additions and 0 deletions

View File

@@ -0,0 +1,488 @@
/*
Ory Identities API
This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more.
API version:
Contact: office@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
"time"
)
// checks if the IdentityCredentialsWebAuthn type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &IdentityCredentialsWebAuthn{}
// IdentityCredentialsWebAuthn struct for IdentityCredentialsWebAuthn
type IdentityCredentialsWebAuthn struct {
AddedAt *time.Time `json:"added_at,omitempty"`
Attestation *IdentityCredentialsWebAuthnAttestation `json:"attestation,omitempty"`
AttestationType *string `json:"attestation_type,omitempty"`
Authenticator *IdentityCredentialsWebAuthnAuthenticator `json:"authenticator,omitempty"`
DisplayName *string `json:"display_name,omitempty"`
Flags *IdentityCredentialsWebAuthnFlags `json:"flags,omitempty"`
Id []int32 `json:"id,omitempty"`
IsPasswordless *bool `json:"is_passwordless,omitempty"`
PublicKey []int32 `json:"public_key,omitempty"`
Transport []string `json:"transport,omitempty"`
AdditionalProperties map[string]interface{}
}
type _IdentityCredentialsWebAuthn IdentityCredentialsWebAuthn
// NewIdentityCredentialsWebAuthn instantiates a new IdentityCredentialsWebAuthn object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewIdentityCredentialsWebAuthn() *IdentityCredentialsWebAuthn {
this := IdentityCredentialsWebAuthn{}
return &this
}
// NewIdentityCredentialsWebAuthnWithDefaults instantiates a new IdentityCredentialsWebAuthn object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewIdentityCredentialsWebAuthnWithDefaults() *IdentityCredentialsWebAuthn {
this := IdentityCredentialsWebAuthn{}
return &this
}
// GetAddedAt returns the AddedAt field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetAddedAt() time.Time {
if o == nil || IsNil(o.AddedAt) {
var ret time.Time
return ret
}
return *o.AddedAt
}
// GetAddedAtOk returns a tuple with the AddedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetAddedAtOk() (*time.Time, bool) {
if o == nil || IsNil(o.AddedAt) {
return nil, false
}
return o.AddedAt, true
}
// HasAddedAt returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasAddedAt() bool {
if o != nil && !IsNil(o.AddedAt) {
return true
}
return false
}
// SetAddedAt gets a reference to the given time.Time and assigns it to the AddedAt field.
func (o *IdentityCredentialsWebAuthn) SetAddedAt(v time.Time) {
o.AddedAt = &v
}
// GetAttestation returns the Attestation field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetAttestation() IdentityCredentialsWebAuthnAttestation {
if o == nil || IsNil(o.Attestation) {
var ret IdentityCredentialsWebAuthnAttestation
return ret
}
return *o.Attestation
}
// GetAttestationOk returns a tuple with the Attestation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetAttestationOk() (*IdentityCredentialsWebAuthnAttestation, bool) {
if o == nil || IsNil(o.Attestation) {
return nil, false
}
return o.Attestation, true
}
// HasAttestation returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasAttestation() bool {
if o != nil && !IsNil(o.Attestation) {
return true
}
return false
}
// SetAttestation gets a reference to the given IdentityCredentialsWebAuthnAttestation and assigns it to the Attestation field.
func (o *IdentityCredentialsWebAuthn) SetAttestation(v IdentityCredentialsWebAuthnAttestation) {
o.Attestation = &v
}
// GetAttestationType returns the AttestationType field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetAttestationType() string {
if o == nil || IsNil(o.AttestationType) {
var ret string
return ret
}
return *o.AttestationType
}
// GetAttestationTypeOk returns a tuple with the AttestationType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetAttestationTypeOk() (*string, bool) {
if o == nil || IsNil(o.AttestationType) {
return nil, false
}
return o.AttestationType, true
}
// HasAttestationType returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasAttestationType() bool {
if o != nil && !IsNil(o.AttestationType) {
return true
}
return false
}
// SetAttestationType gets a reference to the given string and assigns it to the AttestationType field.
func (o *IdentityCredentialsWebAuthn) SetAttestationType(v string) {
o.AttestationType = &v
}
// GetAuthenticator returns the Authenticator field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetAuthenticator() IdentityCredentialsWebAuthnAuthenticator {
if o == nil || IsNil(o.Authenticator) {
var ret IdentityCredentialsWebAuthnAuthenticator
return ret
}
return *o.Authenticator
}
// GetAuthenticatorOk returns a tuple with the Authenticator field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetAuthenticatorOk() (*IdentityCredentialsWebAuthnAuthenticator, bool) {
if o == nil || IsNil(o.Authenticator) {
return nil, false
}
return o.Authenticator, true
}
// HasAuthenticator returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasAuthenticator() bool {
if o != nil && !IsNil(o.Authenticator) {
return true
}
return false
}
// SetAuthenticator gets a reference to the given IdentityCredentialsWebAuthnAuthenticator and assigns it to the Authenticator field.
func (o *IdentityCredentialsWebAuthn) SetAuthenticator(v IdentityCredentialsWebAuthnAuthenticator) {
o.Authenticator = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetDisplayName() string {
if o == nil || IsNil(o.DisplayName) {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetDisplayNameOk() (*string, bool) {
if o == nil || IsNil(o.DisplayName) {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasDisplayName() bool {
if o != nil && !IsNil(o.DisplayName) {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *IdentityCredentialsWebAuthn) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetFlags returns the Flags field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetFlags() IdentityCredentialsWebAuthnFlags {
if o == nil || IsNil(o.Flags) {
var ret IdentityCredentialsWebAuthnFlags
return ret
}
return *o.Flags
}
// GetFlagsOk returns a tuple with the Flags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetFlagsOk() (*IdentityCredentialsWebAuthnFlags, bool) {
if o == nil || IsNil(o.Flags) {
return nil, false
}
return o.Flags, true
}
// HasFlags returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasFlags() bool {
if o != nil && !IsNil(o.Flags) {
return true
}
return false
}
// SetFlags gets a reference to the given IdentityCredentialsWebAuthnFlags and assigns it to the Flags field.
func (o *IdentityCredentialsWebAuthn) SetFlags(v IdentityCredentialsWebAuthnFlags) {
o.Flags = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetId() []int32 {
if o == nil || IsNil(o.Id) {
var ret []int32
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetIdOk() ([]int32, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given []int32 and assigns it to the Id field.
func (o *IdentityCredentialsWebAuthn) SetId(v []int32) {
o.Id = v
}
// GetIsPasswordless returns the IsPasswordless field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetIsPasswordless() bool {
if o == nil || IsNil(o.IsPasswordless) {
var ret bool
return ret
}
return *o.IsPasswordless
}
// GetIsPasswordlessOk returns a tuple with the IsPasswordless field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetIsPasswordlessOk() (*bool, bool) {
if o == nil || IsNil(o.IsPasswordless) {
return nil, false
}
return o.IsPasswordless, true
}
// HasIsPasswordless returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasIsPasswordless() bool {
if o != nil && !IsNil(o.IsPasswordless) {
return true
}
return false
}
// SetIsPasswordless gets a reference to the given bool and assigns it to the IsPasswordless field.
func (o *IdentityCredentialsWebAuthn) SetIsPasswordless(v bool) {
o.IsPasswordless = &v
}
// GetPublicKey returns the PublicKey field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetPublicKey() []int32 {
if o == nil || IsNil(o.PublicKey) {
var ret []int32
return ret
}
return o.PublicKey
}
// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetPublicKeyOk() ([]int32, bool) {
if o == nil || IsNil(o.PublicKey) {
return nil, false
}
return o.PublicKey, true
}
// HasPublicKey returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasPublicKey() bool {
if o != nil && !IsNil(o.PublicKey) {
return true
}
return false
}
// SetPublicKey gets a reference to the given []int32 and assigns it to the PublicKey field.
func (o *IdentityCredentialsWebAuthn) SetPublicKey(v []int32) {
o.PublicKey = v
}
// GetTransport returns the Transport field value if set, zero value otherwise.
func (o *IdentityCredentialsWebAuthn) GetTransport() []string {
if o == nil || IsNil(o.Transport) {
var ret []string
return ret
}
return o.Transport
}
// GetTransportOk returns a tuple with the Transport field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdentityCredentialsWebAuthn) GetTransportOk() ([]string, bool) {
if o == nil || IsNil(o.Transport) {
return nil, false
}
return o.Transport, true
}
// HasTransport returns a boolean if a field has been set.
func (o *IdentityCredentialsWebAuthn) HasTransport() bool {
if o != nil && !IsNil(o.Transport) {
return true
}
return false
}
// SetTransport gets a reference to the given []string and assigns it to the Transport field.
func (o *IdentityCredentialsWebAuthn) SetTransport(v []string) {
o.Transport = v
}
func (o IdentityCredentialsWebAuthn) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o IdentityCredentialsWebAuthn) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AddedAt) {
toSerialize["added_at"] = o.AddedAt
}
if !IsNil(o.Attestation) {
toSerialize["attestation"] = o.Attestation
}
if !IsNil(o.AttestationType) {
toSerialize["attestation_type"] = o.AttestationType
}
if !IsNil(o.Authenticator) {
toSerialize["authenticator"] = o.Authenticator
}
if !IsNil(o.DisplayName) {
toSerialize["display_name"] = o.DisplayName
}
if !IsNil(o.Flags) {
toSerialize["flags"] = o.Flags
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.IsPasswordless) {
toSerialize["is_passwordless"] = o.IsPasswordless
}
if !IsNil(o.PublicKey) {
toSerialize["public_key"] = o.PublicKey
}
if !IsNil(o.Transport) {
toSerialize["transport"] = o.Transport
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *IdentityCredentialsWebAuthn) UnmarshalJSON(data []byte) (err error) {
varIdentityCredentialsWebAuthn := _IdentityCredentialsWebAuthn{}
err = json.Unmarshal(data, &varIdentityCredentialsWebAuthn)
if err != nil {
return err
}
*o = IdentityCredentialsWebAuthn(varIdentityCredentialsWebAuthn)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "added_at")
delete(additionalProperties, "attestation")
delete(additionalProperties, "attestation_type")
delete(additionalProperties, "authenticator")
delete(additionalProperties, "display_name")
delete(additionalProperties, "flags")
delete(additionalProperties, "id")
delete(additionalProperties, "is_passwordless")
delete(additionalProperties, "public_key")
delete(additionalProperties, "transport")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableIdentityCredentialsWebAuthn struct {
value *IdentityCredentialsWebAuthn
isSet bool
}
func (v NullableIdentityCredentialsWebAuthn) Get() *IdentityCredentialsWebAuthn {
return v.value
}
func (v *NullableIdentityCredentialsWebAuthn) Set(val *IdentityCredentialsWebAuthn) {
v.value = val
v.isSet = true
}
func (v NullableIdentityCredentialsWebAuthn) IsSet() bool {
return v.isSet
}
func (v *NullableIdentityCredentialsWebAuthn) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIdentityCredentialsWebAuthn(val *IdentityCredentialsWebAuthn) *NullableIdentityCredentialsWebAuthn {
return &NullableIdentityCredentialsWebAuthn{value: val, isSet: true}
}
func (v NullableIdentityCredentialsWebAuthn) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIdentityCredentialsWebAuthn) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}