@maxim_mazurok/gapi.client.sts-v1beta
Advanced tools
Comparing version 0.0.20230415 to 0.0.20230423
167
index.d.ts
@@ -12,3 +12,3 @@ /* Type definitions for non-npm package Security Token Service API v1beta 0.0 */ | ||
// Generated from: https://sts.googleapis.com/$discovery/rest?version=v1beta | ||
// Revision: 20230415 | ||
// Revision: 20230423 | ||
@@ -32,3 +32,4 @@ /// <reference types="gapi.client" /> | ||
*/ | ||
condition?: GoogleTypeExpr; | ||
condition?: | ||
GoogleTypeExpr; | ||
/** | ||
@@ -50,5 +51,7 @@ * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on | ||
*/ | ||
members?: string[]; | ||
members?: | ||
string[]; | ||
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */ | ||
role?: string; | ||
role?: | ||
string; | ||
} | ||
@@ -60,3 +63,4 @@ interface GoogleIdentityStsV1AccessBoundary { | ||
*/ | ||
accessBoundaryRules?: GoogleIdentityStsV1AccessBoundaryRule[]; | ||
accessBoundaryRules?: | ||
GoogleIdentityStsV1AccessBoundaryRule[]; | ||
} | ||
@@ -71,3 +75,4 @@ interface GoogleIdentityStsV1AccessBoundaryRule { | ||
*/ | ||
availabilityCondition?: GoogleTypeExpr; | ||
availabilityCondition?: | ||
GoogleTypeExpr; | ||
/** | ||
@@ -77,3 +82,4 @@ * A list of permissions that may be allowed for use on the specified resource. The only supported values in the list are IAM roles, following the format of google.iam.v1.Binding.role. | ||
*/ | ||
availablePermissions?: string[]; | ||
availablePermissions?: | ||
string[]; | ||
/** | ||
@@ -83,3 +89,4 @@ * The full resource name of a Google Cloud resource entity. The format definition is at https://cloud.google.com/apis/design/resource_names. Example value: | ||
*/ | ||
availableResource?: string; | ||
availableResource?: | ||
string; | ||
} | ||
@@ -91,3 +98,4 @@ interface GoogleIdentityStsV1betaAccessBoundary { | ||
*/ | ||
accessBoundaryRules?: GoogleIdentityStsV1betaAccessBoundaryRule[]; | ||
accessBoundaryRules?: | ||
GoogleIdentityStsV1betaAccessBoundaryRule[]; | ||
} | ||
@@ -102,3 +110,4 @@ interface GoogleIdentityStsV1betaAccessBoundaryRule { | ||
*/ | ||
availabilityCondition?: GoogleTypeExpr; | ||
availabilityCondition?: | ||
GoogleTypeExpr; | ||
/** | ||
@@ -108,3 +117,4 @@ * A list of permissions that may be allowed for use on the specified resource. The only supported values in the list are IAM roles, following the format of google.iam.v1.Binding.role. | ||
*/ | ||
availablePermissions?: string[]; | ||
availablePermissions?: | ||
string[]; | ||
/** | ||
@@ -114,3 +124,4 @@ * The full resource name of a Google Cloud resource entity. The format definition is at https://cloud.google.com/apis/design/resource_names. Example value: | ||
*/ | ||
availableResource?: string; | ||
availableResource?: | ||
string; | ||
} | ||
@@ -122,5 +133,7 @@ interface GoogleIdentityStsV1betaExchangeTokenRequest { | ||
*/ | ||
audience?: string; | ||
audience?: | ||
string; | ||
/** Required. The grant type. Must be `urn:ietf:params:oauth:grant-type:token-exchange`, which indicates a token exchange. */ | ||
grantType?: string; | ||
grantType?: | ||
string; | ||
/** | ||
@@ -130,5 +143,7 @@ * A set of features that Security Token Service supports, in addition to the standard OAuth 2.0 token exchange, formatted as a serialized JSON object of Options. The size of the | ||
*/ | ||
options?: string; | ||
options?: | ||
string; | ||
/** Required. The type of security token. Must be `urn:ietf:params:oauth:token-type:access_token`, which indicates an OAuth 2.0 access token. */ | ||
requestedTokenType?: string; | ||
requestedTokenType?: | ||
string; | ||
/** | ||
@@ -138,3 +153,4 @@ * The OAuth 2.0 scopes to include on the resulting access token, formatted as a list of space-delimited, case-sensitive strings. Required when exchanging an external credential for a | ||
*/ | ||
scope?: string; | ||
scope?: | ||
string; | ||
/** | ||
@@ -172,3 +188,4 @@ * Required. The input token. This token is either an external credential issued by a workload identity pool provider, or a short-lived access token issued by Google. If the token is | ||
*/ | ||
subjectToken?: string; | ||
subjectToken?: | ||
string; | ||
/** | ||
@@ -178,3 +195,4 @@ * Required. An identifier that indicates the type of the security token in the `subject_token` parameter. Supported values are `urn:ietf:params:oauth:token-type:jwt`, | ||
*/ | ||
subjectTokenType?: string; | ||
subjectTokenType?: | ||
string; | ||
} | ||
@@ -186,3 +204,4 @@ interface GoogleIdentityStsV1betaExchangeTokenResponse { | ||
*/ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** | ||
@@ -192,7 +211,10 @@ * The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the `subject_token` in | ||
*/ | ||
expires_in?: number; | ||
expires_in?: | ||
number; | ||
/** The token type. Always matches the value of `requested_token_type` from the request. */ | ||
issued_token_type?: string; | ||
issued_token_type?: | ||
string; | ||
/** The type of access token. Always has the value `Bearer`. */ | ||
token_type?: string; | ||
token_type?: | ||
string; | ||
} | ||
@@ -204,3 +226,4 @@ interface GoogleIdentityStsV1betaOptions { | ||
*/ | ||
accessBoundary?: GoogleIdentityStsV1betaAccessBoundary; | ||
accessBoundary?: | ||
GoogleIdentityStsV1betaAccessBoundary; | ||
/** | ||
@@ -210,3 +233,4 @@ * The intended audience(s) of the credential. The audience value(s) should be the name(s) of services intended to receive the credential. Example: `["https://pubsub.googleapis.com/", | ||
*/ | ||
audiences?: string[]; | ||
audiences?: | ||
string[]; | ||
/** | ||
@@ -216,3 +240,4 @@ * A Google project used for quota and billing purposes when the credential is used to access Google APIs. The provided project overrides the project bound to the credential. The value | ||
*/ | ||
userProject?: string; | ||
userProject?: | ||
string; | ||
} | ||
@@ -224,3 +249,4 @@ interface GoogleIdentityStsV1Options { | ||
*/ | ||
accessBoundary?: GoogleIdentityStsV1AccessBoundary; | ||
accessBoundary?: | ||
GoogleIdentityStsV1AccessBoundary; | ||
/** | ||
@@ -230,3 +256,4 @@ * The intended audience(s) of the credential. The audience value(s) should be the name(s) of services intended to receive the credential. Example: `["https://pubsub.googleapis.com/", | ||
*/ | ||
audiences?: string[]; | ||
audiences?: | ||
string[]; | ||
/** | ||
@@ -236,13 +263,18 @@ * A Google project used for quota and billing purposes when the credential is used to access Google APIs. The provided project overrides the project bound to the credential. The value | ||
*/ | ||
userProject?: string; | ||
userProject?: | ||
string; | ||
} | ||
interface GoogleTypeExpr { | ||
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */ | ||
description?: string; | ||
description?: | ||
string; | ||
/** Textual representation of an expression in Common Expression Language syntax. */ | ||
expression?: string; | ||
expression?: | ||
string; | ||
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */ | ||
location?: string; | ||
location?: | ||
string; | ||
/** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */ | ||
title?: string; | ||
title?: | ||
string; | ||
} | ||
@@ -257,49 +289,72 @@ interface V1betaResource { | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
"$.xgafv"?: | ||
string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
alt?: | ||
string; | ||
/** JSONP */ | ||
callback?: string; | ||
callback?: | ||
string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
fields?: | ||
string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
key?: | ||
string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
oauth_token?: | ||
string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
prettyPrint?: | ||
boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
quotaUser?: | ||
string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
upload_protocol?: | ||
string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
uploadType?: | ||
string; | ||
/** Request body */ | ||
resource: GoogleIdentityStsV1betaExchangeTokenRequest; | ||
resource: | ||
GoogleIdentityStsV1betaExchangeTokenRequest; | ||
}): Request<GoogleIdentityStsV1betaExchangeTokenResponse>; | ||
token(request: { | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
"$.xgafv"?: | ||
string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
alt?: | ||
string; | ||
/** JSONP */ | ||
callback?: string; | ||
callback?: | ||
string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
fields?: | ||
string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
key?: | ||
string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
oauth_token?: | ||
string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
prettyPrint?: | ||
boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
quotaUser?: | ||
string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
upload_protocol?: | ||
string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
uploadType?: | ||
string; | ||
}, | ||
@@ -306,0 +361,0 @@ body: GoogleIdentityStsV1betaExchangeTokenRequest): Request<GoogleIdentityStsV1betaExchangeTokenResponse>; |
{ | ||
"name": "@maxim_mazurok/gapi.client.sts-v1beta", | ||
"version": "0.0.20230415", | ||
"version": "0.0.20230423", | ||
"description": "TypeScript typings for Security Token Service API v1beta", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -6,3 +6,3 @@ /* This is stub file for gapi.client.sts-v1beta definition tests */ | ||
// Revision: 20230415 | ||
// Revision: 20230423 | ||
@@ -9,0 +9,0 @@ gapi.load('client', async () => { |
29512
388