Skip to content

Commit

Permalink
feat(sts): update the API
Browse files Browse the repository at this point in the history
#### sts:v1

The following keys were added:
- schemas.GoogleIdentityStsV1ExchangeOauthTokenResponse.properties.id_token.description
- schemas.GoogleIdentityStsV1ExchangeOauthTokenResponse.properties.id_token.type

The following keys were changed:
- schemas.GoogleIdentityStsV1ExchangeOauthTokenResponse.properties.token_type.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent c9f2655 commit b6e069b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions discovery/sts-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
}
}
},
"revision": "20221215",
"revision": "20230121",
"rootUrl": "https://sts.googleapis.com/",
"schemas": {
"GoogleIamV1Binding": {
Expand Down Expand Up @@ -255,6 +255,10 @@
"format": "int32",
"type": "integer"
},
"id_token": {
"description": "Google issued ID token in response to the OAuth token exchange request for ID token flow.",
"type": "string"
},
"refresh_token": {
"description": "A refresh token, issued by Google, in response to the OAuth token exchange request for refresh token flow",
"type": "string"
Expand All @@ -264,7 +268,7 @@
"type": "string"
},
"token_type": {
"description": "The type of token. Field reserved for RFC compliance. See https://www.rfc-editor.org/rfc/rfc6749#section-5.1 Note: No token_type is returned for current implementation",
"description": "The type of token. Field reserved for RFC compliance. See https://www.rfc-editor.org/rfc/rfc6749#section-5.1",
"type": "string"
}
},
Expand Down
7 changes: 6 additions & 1 deletion src/apis/sts/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ export namespace sts_v1 {
* The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expires.
*/
expires_in?: number | null;
/**
* Google issued ID token in response to the OAuth token exchange request for ID token flow.
*/
id_token?: string | null;
/**
* A refresh token, issued by Google, in response to the OAuth token exchange request for refresh token flow
*/
Expand All @@ -264,7 +268,7 @@ export namespace sts_v1 {
*/
scope?: string | null;
/**
* The type of token. Field reserved for RFC compliance. See https://www.rfc-editor.org/rfc/rfc6749#section-5.1 Note: No token_type is returned for current implementation
* The type of token. Field reserved for RFC compliance. See https://www.rfc-editor.org/rfc/rfc6749#section-5.1
*/
token_type?: string | null;
}
Expand Down Expand Up @@ -611,6 +615,7 @@ export namespace sts_v1 {
* // {
* // "access_token": "my_access_token",
* // "expires_in": 0,
* // "id_token": "my_id_token",
* // "refresh_token": "my_refresh_token",
* // "scope": "my_scope",
* // "token_type": "my_token_type"
Expand Down

0 comments on commit b6e069b

Please sign in to comment.