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 May 9, 2020
1 parent 833e035 commit 1a03591
Show file tree
Hide file tree
Showing 23 changed files with 222 additions and 139 deletions.
99 changes: 25 additions & 74 deletions .schema/api.swagger.json
Expand Up @@ -1831,10 +1831,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": [
"alg",
"kid",
"use",
"kty",
"use"
"kid",
"alg"
],
"properties": {
"alg": {
Expand Down Expand Up @@ -2108,7 +2108,7 @@
}
},
"PluginConfigNetwork": {
"description": "PluginConfigNetwork PluginConfigNetwork PluginConfigNetwork PluginConfigNetwork PluginConfigNetwork plugin config network",
"description": "PluginConfigNetwork plugin config network",
"type": "object",
"required": [
"Type"
Expand Down Expand Up @@ -2185,7 +2185,7 @@
}
},
"PluginEnv": {
"description": "PluginEnv PluginEnv plugin env",
"description": "PluginEnv plugin env",
"type": "object",
"required": [
"Description",
Expand Down Expand Up @@ -2289,7 +2289,7 @@
},
"PluginSettings": {
"type": "object",
"title": "PluginSettings PluginSettings PluginSettings Settings that can be modified by users.",
"title": "PluginSettings Settings that can be modified by users.",
"required": [
"Args",
"Devices",
Expand Down Expand Up @@ -2328,30 +2328,20 @@
}
},
"PreviousConsentSession": {
"description": "PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession 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",
"description": "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": {
"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"
}
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"grant_scope": {
"description": "GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`",
"type": "array",
"items": {
"type": "string"
}
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"handled_at": {
"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\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"
"$ref": "#/definitions/NullTime"
},
"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 All @@ -2375,7 +2365,7 @@
}
},
"VolumeUsageData": {
"description": "VolumeUsageData VolumeUsageData Usage details about the volume. This information is used by the\n`GET /system/df` endpoint, and omitted in other endpoints.",
"description": "VolumeUsageData Usage details about the volume. This information is used by the\n`GET /system/df` endpoint, and omitted in other endpoints.",
"type": "object",
"required": [
"RefCount",
Expand All @@ -2396,20 +2386,12 @@
},
"acceptConsentRequest": {
"type": "object",
"title": "AcceptConsentRequest AcceptConsentRequest AcceptConsentRequest AcceptConsentRequest The request payload used to accept a consent request.",
"title": "The request payload used to accept a consent request.",
"properties": {
"grant_access_token_audience": {
"type": "array",
"items": {
"type": "string"
},
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"grant_scope": {
"type": "array",
"items": {
"type": "string"
},
"$ref": "#/definitions/StringSlicePipeDelimiter"
},
"handled_at": {
Expand All @@ -2431,7 +2413,7 @@
},
"acceptLoginRequest": {
"type": "object",
"title": "AcceptLoginRequest HandledLoginRequest is the request payload used to accept a login request.",
"title": "HandledLoginRequest is the request payload used to accept a login request.",
"required": [
"subject"
],
Expand Down Expand Up @@ -2464,7 +2446,7 @@
},
"completedRequest": {
"type": "object",
"title": "CompletedRequest CompletedRequest The response payload sent when accepting or rejecting a login or consent request.",
"title": "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 @@ -2474,7 +2456,7 @@
},
"consentRequest": {
"type": "object",
"title": "ConsentRequest ConsentRequest Contains information on an ongoing consent request.",
"title": "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 @@ -2506,17 +2488,9 @@
"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 All @@ -2531,7 +2505,7 @@
},
"consentRequestSession": {
"type": "object",
"title": "ConsentRequestSession Used to pass session data to a consent request.",
"title": "Used to pass session data to a consent request.",
"properties": {
"access_token": {
"description": "AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the\nrefresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection.\nIf only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties\ncan access that endpoint as well, sensitive data from the session might be exposed to them. Use with care!",
Expand All @@ -2550,11 +2524,10 @@
}
},
"flushInactiveOAuth2TokensRequest": {
"description": "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.\nFormat: date-time",
"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.",
"type": "string",
"format": "date-time"
}
Expand All @@ -2563,7 +2536,7 @@
"genericError": {
"description": "Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred.",
"type": "object",
"title": "GenericError Error response",
"title": "Error response",
"required": [
"error"
],
Expand Down Expand Up @@ -2592,7 +2565,6 @@
}
},
"healthNotReadyStatus": {
"description": "HealthNotReadyStatus health not ready status",
"type": "object",
"properties": {
"errors": {
Expand All @@ -2605,7 +2577,6 @@
}
},
"healthStatus": {
"description": "HealthStatus HealthStatus HealthStatus health status",
"type": "object",
"properties": {
"status": {
Expand All @@ -2618,8 +2589,8 @@
"type": "object",
"required": [
"alg",
"kid",
"use"
"use",
"kid"
],
"properties": {
"alg": {
Expand All @@ -2638,7 +2609,7 @@
},
"loginRequest": {
"type": "object",
"title": "LoginRequest LoginRequest LoginRequest LoginRequest LoginRequest LoginRequest Contains information on an ongoing login request.",
"title": "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 @@ -2655,17 +2626,9 @@
"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 Down Expand Up @@ -2835,7 +2798,7 @@
"oAuth2TokenIntrospection": {
"description": "https://tools.ietf.org/html/rfc7662",
"type": "object",
"title": "OAuth2TokenIntrospection Introspection contains an access token's session data as specified by IETF RFC 7662, see:",
"title": "Introspection contains an access token's session data as specified by IETF RFC 7662, see:",
"required": [
"active"
],
Expand Down Expand Up @@ -2904,32 +2867,26 @@
}
},
"oauth2TokenResponse": {
"description": "Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse The Access Token Response",
"description": "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"
}
}
Expand Down Expand Up @@ -2974,30 +2931,25 @@
"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": "UserinfoResponse The userinfo response",
"description": "The userinfo response",
"type": "object",
"properties": {
"birthdate": {
Expand Down Expand Up @@ -3080,7 +3032,6 @@
}
},
"version": {
"description": "Version Version version",
"type": "object",
"properties": {
"version": {
Expand All @@ -3092,7 +3043,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 WellKnown WellKnown WellKnown represents important OpenID Connect discovery metadata",
"title": "WellKnown represents important OpenID Connect discovery metadata",
"required": [
"issuer",
"authorization_endpoint",
Expand Down

0 comments on commit 1a03591

Please sign in to comment.