Skip to content

Commit

Permalink
autogen(openapi): Regenerate swagger spec and internal client
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Apr 23, 2020
1 parent a9973ec commit 2e370a2
Show file tree
Hide file tree
Showing 21 changed files with 93 additions and 40 deletions.
89 changes: 69 additions & 20 deletions .schema/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1821,10 +1821,10 @@
"description": "It is important that this model object is named JSONWebKey for\n\"swagger generate spec\" to generate only on definition of a\nJSONWebKey.",
"type": "object",
"required": [
"use",
"kty",
"alg",
"kid",
"alg"
"kty",
"use"
],
"properties": {
"alg": {
Expand Down Expand Up @@ -1926,20 +1926,30 @@
"title": "NullTime implements sql.NullTime functionality."
},
"PreviousConsentSession": {
"description": "The response used to return used consent requests\nsame as HandledLoginRequest, just with consent_request exposed as json",
"description": "PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession The response used to return used consent requests\nsame as HandledLoginRequest, just with consent_request exposed as json",
"type": "object",
"properties": {
"consent_request": {
"$ref": "#/definitions/consentRequest"
},
"grant_access_token_audience": {
"$ref": "#/definitions/StringSlicePipeDelimiter"
"description": "GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`.",
"type": "array",
"items": {
"type": "string"
}
},
"grant_scope": {
"$ref": "#/definitions/StringSlicePipeDelimiter"
"description": "GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`",
"type": "array",
"items": {
"type": "string"
}
},
"handled_at": {
"$ref": "#/definitions/NullTime"
"description": "handled at\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time",
"type": "string",
"format": "date-time"
},
"remember": {
"description": "Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same\nclient asks the same user for the same, or a subset of, scope.",
Expand Down Expand Up @@ -1967,9 +1977,19 @@
"title": "The request payload used to accept a consent request.",
"properties": {
"grant_access_token_audience": {
"description": "grant access token audience",
"type": "array",
"items": {
"type": "string"
},
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"grant_scope": {
"description": "grant scope",
"type": "array",
"items": {
"type": "string"
},
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"handled_at": {
Expand Down Expand Up @@ -2024,7 +2044,7 @@
},
"completedRequest": {
"type": "object",
"title": "The response payload sent when accepting or rejecting a login or consent request.",
"title": "CompletedRequest CompletedRequest The response payload sent when accepting or rejecting a login or consent request.",
"properties": {
"redirect_to": {
"description": "RedirectURL is the URL which you should redirect the user to once the authentication process is completed.",
Expand All @@ -2034,7 +2054,7 @@
},
"consentRequest": {
"type": "object",
"title": "Contains information on an ongoing consent request.",
"title": "ConsentRequest ConsentRequest Contains information on an ongoing consent request.",
"properties": {
"acr": {
"description": "ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it\nto express that, for example, a user authenticated using two factor authentication.",
Expand Down Expand Up @@ -2066,9 +2086,17 @@
"type": "string"
},
"requested_access_token_audience": {
"type": "array",
"items": {
"type": "string"
},
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"requested_scope": {
"type": "array",
"items": {
"type": "string"
},
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"skip": {
Expand Down Expand Up @@ -2102,10 +2130,11 @@
}
},
"flushInactiveOAuth2TokensRequest": {
"description": "FlushInactiveOAuth2TokensRequest FlushInactiveOAuth2TokensRequest flush inactive o auth2 tokens request",
"type": "object",
"properties": {
"notAfter": {
"description": "NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history\nof recently issued tokens for auditing.",
"description": "NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history\nof recently issued tokens for auditing.\nFormat: date-time\nFormat: date-time",
"type": "string",
"format": "date-time"
}
Expand Down Expand Up @@ -2164,6 +2193,7 @@
}
},
"jsonWebKeySetGeneratorRequest": {
"description": "JSONWebKeySetGeneratorRequest JSONWebKeySetGeneratorRequest JSONWebKeySetGeneratorRequest JSONWebKeySetGeneratorRequest json web key set generator request",
"type": "object",
"required": [
"alg",
Expand All @@ -2187,7 +2217,7 @@
},
"loginRequest": {
"type": "object",
"title": "Contains information on an ongoing login request.",
"title": "LoginRequest Contains information on an ongoing login request.",
"properties": {
"challenge": {
"description": "Challenge is the identifier (\"login challenge\") of the login request. It is used to\nidentify the session.",
Expand All @@ -2204,9 +2234,17 @@
"type": "string"
},
"requested_access_token_audience": {
"type": "array",
"items": {
"type": "string"
},
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"requested_scope": {
"type": "array",
"items": {
"type": "string"
},
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"session_id": {
Expand All @@ -2225,7 +2263,7 @@
},
"logoutRequest": {
"type": "object",
"title": "Contains information about an ongoing logout request.",
"title": "LogoutRequest Contains information about an ongoing logout request.",
"properties": {
"request_url": {
"description": "RequestURL is the original Logout URL requested.",
Expand All @@ -2247,7 +2285,7 @@
},
"oAuth2Client": {
"type": "object",
"title": "Client represents an OAuth 2.0 Client.",
"title": "OAuth2Client Client represents an OAuth 2.0 Client.",
"properties": {
"allowed_cors_origins": {
"$ref": "#/definitions/StringSlicePipeDelimiter"
Expand Down Expand Up @@ -2288,7 +2326,7 @@
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"created_at": {
"description": "CreatedAt returns the timestamp of the client's creation.",
"description": "CreatedAt returns the timestamp of the client's creation.\nFormat: date-time",
"type": "string",
"format": "date-time"
},
Expand Down Expand Up @@ -2363,7 +2401,7 @@
"type": "string"
},
"updated_at": {
"description": "UpdatedAt returns the timestamp of the last update.",
"description": "UpdatedAt returns the timestamp of the last update.\nFormat: date-time",
"type": "string",
"format": "date-time"
},
Expand All @@ -2376,7 +2414,7 @@
"oAuth2TokenIntrospection": {
"description": "https://tools.ietf.org/html/rfc7662",
"type": "object",
"title": "Introspection contains an access token's session data as specified by IETF RFC 7662, see:",
"title": "OAuth2TokenIntrospection OAuth2TokenIntrospection Introspection contains an access token's session data as specified by IETF RFC 7662, see:",
"required": [
"active"
],
Expand Down Expand Up @@ -2445,33 +2483,39 @@
}
},
"oauth2TokenResponse": {
"description": "The Access Token Response",
"description": "Oauth2TokenResponse Oauth2TokenResponse The Access Token Response",
"type": "object",
"properties": {
"access_token": {
"description": "access token",
"type": "string"
},
"expires_in": {
"description": "expires in",
"type": "integer",
"format": "int64"
},
"id_token": {
"description": "id token",
"type": "string"
},
"refresh_token": {
"description": "refresh token",
"type": "string"
},
"scope": {
"description": "scope",
"type": "string"
},
"token_type": {
"description": "token type",
"type": "string"
}
}
},
"openIDConnectContext": {
"type": "object",
"title": "Contains optional information about the OpenID Connect request.",
"title": "OpenIDConnectContext OpenIDConnectContext Contains optional information about the OpenID Connect request.",
"properties": {
"acr_values": {
"description": "ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request.\nIt is a parameter defined by OpenID Connect and expresses which level of authentication (e.g. 2FA) is required.\n\nOpenID Connect defines it as follows:\n\u003e Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values\nthat the Authorization Server is being requested to use for processing this Authentication Request, with the\nvalues appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication\nperformed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a\nVoluntary Claim by this parameter.",
Expand Down Expand Up @@ -2509,25 +2553,30 @@
"title": "The request payload used to accept a login or consent request.",
"properties": {
"error": {
"description": "error",
"type": "string"
},
"error_debug": {
"description": "error debug",
"type": "string"
},
"error_description": {
"description": "error description",
"type": "string"
},
"error_hint": {
"description": "error hint",
"type": "string"
},
"status_code": {
"description": "status code",
"type": "integer",
"format": "int64"
}
}
},
"userinfoResponse": {
"description": "The userinfo response",
"description": "UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse The userinfo response",
"type": "object",
"properties": {
"birthdate": {
Expand Down Expand Up @@ -2621,7 +2670,7 @@
"wellKnown": {
"description": "It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms\namong others.",
"type": "object",
"title": "WellKnown represents important OpenID Connect discovery metadata",
"title": "WellKnown WellKnown represents important OpenID Connect discovery metadata",
"required": [
"issuer",
"authorization_endpoint",
Expand Down
2 changes: 1 addition & 1 deletion internal/httpclient/models/accept_consent_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/models/accept_login_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/models/completed_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/models/consent_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/models/consent_request_session.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/models/health_status.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/models/json_web_key_set.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/models/login_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/models/logout_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2e370a2

Please sign in to comment.