From 718cb7c3e56b78906c42e4043e41aaf3afb8cfa6 Mon Sep 17 00:00:00 2001 From: ory-bot <60093411+ory-bot@users.noreply.github.com> Date: Thu, 21 Mar 2024 10:13:00 +0000 Subject: [PATCH] autogen(openapi): regenerate swagger spec and internal client [skip ci] --- .../model_successful_native_login.go | 39 ++++++++++++++++++- .../model_successful_native_login.go | 39 ++++++++++++++++++- spec/api.json | 7 ++++ spec/swagger.json | 7 ++++ 4 files changed, 90 insertions(+), 2 deletions(-) diff --git a/internal/client-go/model_successful_native_login.go b/internal/client-go/model_successful_native_login.go index f87739f19d1..faf59ae906e 100644 --- a/internal/client-go/model_successful_native_login.go +++ b/internal/client-go/model_successful_native_login.go @@ -17,7 +17,9 @@ import ( // SuccessfulNativeLogin The Response for Login Flows via API type SuccessfulNativeLogin struct { - Session Session `json:"session"` + // Contains a list of actions, that could follow this flow It can, for example, this will contain a reference to the verification flow, created as part of the user's registration or the token of the session. + ContinueWith []ContinueWith `json:"continue_with,omitempty"` + Session Session `json:"session"` // The Session Token A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows! SessionToken *string `json:"session_token,omitempty"` } @@ -40,6 +42,38 @@ func NewSuccessfulNativeLoginWithDefaults() *SuccessfulNativeLogin { return &this } +// GetContinueWith returns the ContinueWith field value if set, zero value otherwise. +func (o *SuccessfulNativeLogin) GetContinueWith() []ContinueWith { + if o == nil || o.ContinueWith == nil { + var ret []ContinueWith + return ret + } + return o.ContinueWith +} + +// GetContinueWithOk returns a tuple with the ContinueWith field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessfulNativeLogin) GetContinueWithOk() ([]ContinueWith, bool) { + if o == nil || o.ContinueWith == nil { + return nil, false + } + return o.ContinueWith, true +} + +// HasContinueWith returns a boolean if a field has been set. +func (o *SuccessfulNativeLogin) HasContinueWith() bool { + if o != nil && o.ContinueWith != nil { + return true + } + + return false +} + +// SetContinueWith gets a reference to the given []ContinueWith and assigns it to the ContinueWith field. +func (o *SuccessfulNativeLogin) SetContinueWith(v []ContinueWith) { + o.ContinueWith = v +} + // GetSession returns the Session field value func (o *SuccessfulNativeLogin) GetSession() Session { if o == nil { @@ -98,6 +132,9 @@ func (o *SuccessfulNativeLogin) SetSessionToken(v string) { func (o SuccessfulNativeLogin) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.ContinueWith != nil { + toSerialize["continue_with"] = o.ContinueWith + } if true { toSerialize["session"] = o.Session } diff --git a/internal/httpclient/model_successful_native_login.go b/internal/httpclient/model_successful_native_login.go index f87739f19d1..faf59ae906e 100644 --- a/internal/httpclient/model_successful_native_login.go +++ b/internal/httpclient/model_successful_native_login.go @@ -17,7 +17,9 @@ import ( // SuccessfulNativeLogin The Response for Login Flows via API type SuccessfulNativeLogin struct { - Session Session `json:"session"` + // Contains a list of actions, that could follow this flow It can, for example, this will contain a reference to the verification flow, created as part of the user's registration or the token of the session. + ContinueWith []ContinueWith `json:"continue_with,omitempty"` + Session Session `json:"session"` // The Session Token A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows! SessionToken *string `json:"session_token,omitempty"` } @@ -40,6 +42,38 @@ func NewSuccessfulNativeLoginWithDefaults() *SuccessfulNativeLogin { return &this } +// GetContinueWith returns the ContinueWith field value if set, zero value otherwise. +func (o *SuccessfulNativeLogin) GetContinueWith() []ContinueWith { + if o == nil || o.ContinueWith == nil { + var ret []ContinueWith + return ret + } + return o.ContinueWith +} + +// GetContinueWithOk returns a tuple with the ContinueWith field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuccessfulNativeLogin) GetContinueWithOk() ([]ContinueWith, bool) { + if o == nil || o.ContinueWith == nil { + return nil, false + } + return o.ContinueWith, true +} + +// HasContinueWith returns a boolean if a field has been set. +func (o *SuccessfulNativeLogin) HasContinueWith() bool { + if o != nil && o.ContinueWith != nil { + return true + } + + return false +} + +// SetContinueWith gets a reference to the given []ContinueWith and assigns it to the ContinueWith field. +func (o *SuccessfulNativeLogin) SetContinueWith(v []ContinueWith) { + o.ContinueWith = v +} + // GetSession returns the Session field value func (o *SuccessfulNativeLogin) GetSession() Session { if o == nil { @@ -98,6 +132,9 @@ func (o *SuccessfulNativeLogin) SetSessionToken(v string) { func (o SuccessfulNativeLogin) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.ContinueWith != nil { + toSerialize["continue_with"] = o.ContinueWith + } if true { toSerialize["session"] = o.Session } diff --git a/spec/api.json b/spec/api.json index 93437704b04..0f46469df16 100644 --- a/spec/api.json +++ b/spec/api.json @@ -2054,6 +2054,13 @@ "successfulNativeLogin": { "description": "The Response for Login Flows via API", "properties": { + "continue_with": { + "description": "Contains a list of actions, that could follow this flow\n\nIt can, for example, this will contain a reference to the verification flow, created as part of the user's\nregistration or the token of the session.", + "items": { + "$ref": "#/components/schemas/continueWith" + }, + "type": "array" + }, "session": { "$ref": "#/components/schemas/session" }, diff --git a/spec/swagger.json b/spec/swagger.json index f28bc3023c5..37a79fc4f6b 100755 --- a/spec/swagger.json +++ b/spec/swagger.json @@ -5153,6 +5153,13 @@ "session" ], "properties": { + "continue_with": { + "description": "Contains a list of actions, that could follow this flow\n\nIt can, for example, this will contain a reference to the verification flow, created as part of the user's\nregistration or the token of the session.", + "type": "array", + "items": { + "$ref": "#/definitions/continueWith" + } + }, "session": { "$ref": "#/definitions/session" },