From 35d6295091028a3ec085998779f8a6cf4b278784 Mon Sep 17 00:00:00 2001 From: ory-bot <60093411+ory-bot@users.noreply.github.com> Date: Tue, 5 Sep 2023 13:17:46 +0000 Subject: [PATCH] autogen(openapi): regenerate swagger spec and internal client [skip ci] --- internal/httpclient/api/openapi.yaml | 5 ++--- internal/httpclient/docs/OAuth2TokenExchange.md | 8 ++++---- internal/httpclient/model_o_auth2_token_exchange.go | 12 ++++++------ spec/api.json | 3 +-- spec/swagger.json | 3 +-- 5 files changed, 14 insertions(+), 17 deletions(-) diff --git a/internal/httpclient/api/openapi.yaml b/internal/httpclient/api/openapi.yaml index 6a5d7ab2ec6..849b89f7856 100644 --- a/internal/httpclient/api/openapi.yaml +++ b/internal/httpclient/api/openapi.yaml @@ -3586,7 +3586,7 @@ components: access_token: access_token refresh_token: refresh_token scope: scope - id_token: 6 + id_token: id_token token_type: token_type expires_in: 0 properties: @@ -3601,8 +3601,7 @@ components: type: integer id_token: description: To retrieve a refresh token request the id_token scope. - format: int64 - type: integer + type: string refresh_token: description: "The refresh token, which can be used to obtain new\naccess\ \ tokens. To retrieve it add the scope \"offline\" to your access token\ diff --git a/internal/httpclient/docs/OAuth2TokenExchange.md b/internal/httpclient/docs/OAuth2TokenExchange.md index 8976c6ff0a6..cae2673e099 100644 --- a/internal/httpclient/docs/OAuth2TokenExchange.md +++ b/internal/httpclient/docs/OAuth2TokenExchange.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccessToken** | Pointer to **string** | The access token issued by the authorization server. | [optional] **ExpiresIn** | Pointer to **int64** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] -**IdToken** | Pointer to **int64** | To retrieve a refresh token request the id_token scope. | [optional] +**IdToken** | Pointer to **string** | To retrieve a refresh token request the id_token scope. | [optional] **RefreshToken** | Pointer to **string** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] **Scope** | Pointer to **string** | The scope of the access token | [optional] **TokenType** | Pointer to **string** | The type of the token issued | [optional] @@ -82,20 +82,20 @@ HasExpiresIn returns a boolean if a field has been set. ### GetIdToken -`func (o *OAuth2TokenExchange) GetIdToken() int64` +`func (o *OAuth2TokenExchange) GetIdToken() string` GetIdToken returns the IdToken field if non-nil, zero value otherwise. ### GetIdTokenOk -`func (o *OAuth2TokenExchange) GetIdTokenOk() (*int64, bool)` +`func (o *OAuth2TokenExchange) GetIdTokenOk() (*string, bool)` GetIdTokenOk returns a tuple with the IdToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIdToken -`func (o *OAuth2TokenExchange) SetIdToken(v int64)` +`func (o *OAuth2TokenExchange) SetIdToken(v string)` SetIdToken sets IdToken field to given value. diff --git a/internal/httpclient/model_o_auth2_token_exchange.go b/internal/httpclient/model_o_auth2_token_exchange.go index 6db3a25cb8f..ec15969bc6f 100644 --- a/internal/httpclient/model_o_auth2_token_exchange.go +++ b/internal/httpclient/model_o_auth2_token_exchange.go @@ -22,7 +22,7 @@ type OAuth2TokenExchange struct { // The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. ExpiresIn *int64 `json:"expires_in,omitempty"` // To retrieve a refresh token request the id_token scope. - IdToken *int64 `json:"id_token,omitempty"` + IdToken *string `json:"id_token,omitempty"` // The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. RefreshToken *string `json:"refresh_token,omitempty"` // The scope of the access token @@ -113,9 +113,9 @@ func (o *OAuth2TokenExchange) SetExpiresIn(v int64) { } // GetIdToken returns the IdToken field value if set, zero value otherwise. -func (o *OAuth2TokenExchange) GetIdToken() int64 { +func (o *OAuth2TokenExchange) GetIdToken() string { if o == nil || o.IdToken == nil { - var ret int64 + var ret string return ret } return *o.IdToken @@ -123,7 +123,7 @@ func (o *OAuth2TokenExchange) GetIdToken() int64 { // GetIdTokenOk returns a tuple with the IdToken field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OAuth2TokenExchange) GetIdTokenOk() (*int64, bool) { +func (o *OAuth2TokenExchange) GetIdTokenOk() (*string, bool) { if o == nil || o.IdToken == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *OAuth2TokenExchange) HasIdToken() bool { return false } -// SetIdToken gets a reference to the given int64 and assigns it to the IdToken field. -func (o *OAuth2TokenExchange) SetIdToken(v int64) { +// SetIdToken gets a reference to the given string and assigns it to the IdToken field. +func (o *OAuth2TokenExchange) SetIdToken(v string) { o.IdToken = &v } diff --git a/spec/api.json b/spec/api.json index 1e6b8cd225d..e5ff23360a8 100644 --- a/spec/api.json +++ b/spec/api.json @@ -1075,8 +1075,7 @@ }, "id_token": { "description": "To retrieve a refresh token request the id_token scope.", - "format": "int64", - "type": "integer" + "type": "string" }, "refresh_token": { "description": "The refresh token, which can be used to obtain new\naccess tokens. To retrieve it add the scope \"offline\" to your access token request.", diff --git a/spec/swagger.json b/spec/swagger.json index 9fda613b50e..91dfe11c5f6 100755 --- a/spec/swagger.json +++ b/spec/swagger.json @@ -3069,8 +3069,7 @@ }, "id_token": { "description": "To retrieve a refresh token request the id_token scope.", - "type": "integer", - "format": "int64" + "type": "string" }, "refresh_token": { "description": "The refresh token, which can be used to obtain new\naccess tokens. To retrieve it add the scope \"offline\" to your access token request.",