@maxim_mazurok/gapi.client.sts-v1beta 0.0.20230408 → 0.0.20230423
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +111 -56
- package/package.json +1 -1
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://sts.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230423
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -28,7 +28,8 @@ declare namespace gapi.client {
|
|
|
28
28
|
* then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which
|
|
29
29
|
* resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
30
30
|
*/
|
|
31
|
-
condition?:
|
|
31
|
+
condition?:
|
|
32
|
+
GoogleTypeExpr;
|
|
32
33
|
/**
|
|
33
34
|
* 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
|
|
34
35
|
* the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
|
|
@@ -45,16 +46,19 @@ declare namespace gapi.client {
|
|
|
45
46
|
* has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
|
|
46
47
|
* retains the role in the binding.
|
|
47
48
|
*/
|
|
48
|
-
members?:
|
|
49
|
+
members?:
|
|
50
|
+
string[];
|
|
49
51
|
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
50
|
-
role?:
|
|
52
|
+
role?:
|
|
53
|
+
string;
|
|
51
54
|
}
|
|
52
55
|
interface GoogleIdentityStsV1AccessBoundary {
|
|
53
56
|
/**
|
|
54
57
|
* A list of access boundary rules which defines the upper bound of the permission a principal may carry. If multiple rules are specified, the effective access boundary is the union of
|
|
55
58
|
* all the access boundary rules attached. One access boundary can contain at most 10 rules.
|
|
56
59
|
*/
|
|
57
|
-
accessBoundaryRules?:
|
|
60
|
+
accessBoundaryRules?:
|
|
61
|
+
GoogleIdentityStsV1AccessBoundaryRule[];
|
|
58
62
|
}
|
|
59
63
|
interface GoogleIdentityStsV1AccessBoundaryRule {
|
|
60
64
|
/**
|
|
@@ -64,24 +68,28 @@ declare namespace gapi.client {
|
|
|
64
68
|
* to the resource, even if this access boundary rule does not allow access. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
65
69
|
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies). The maximum length of the `expression` field is 2048 characters.
|
|
66
70
|
*/
|
|
67
|
-
availabilityCondition?:
|
|
71
|
+
availabilityCondition?:
|
|
72
|
+
GoogleTypeExpr;
|
|
68
73
|
/**
|
|
69
74
|
* 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.
|
|
70
75
|
* Example value: `inRole:roles/logging.viewer` for predefined roles and `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom roles.
|
|
71
76
|
*/
|
|
72
|
-
availablePermissions?:
|
|
77
|
+
availablePermissions?:
|
|
78
|
+
string[];
|
|
73
79
|
/**
|
|
74
80
|
* 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:
|
|
75
81
|
* `//cloudresourcemanager.googleapis.com/projects/my-project`.
|
|
76
82
|
*/
|
|
77
|
-
availableResource?:
|
|
83
|
+
availableResource?:
|
|
84
|
+
string;
|
|
78
85
|
}
|
|
79
86
|
interface GoogleIdentityStsV1betaAccessBoundary {
|
|
80
87
|
/**
|
|
81
88
|
* A list of access boundary rules which defines the upper bound of the permission a principal may carry. If multiple rules are specified, the effective access boundary is the union of
|
|
82
89
|
* all the access boundary rules attached. One access boundary can contain at most 10 rules.
|
|
83
90
|
*/
|
|
84
|
-
accessBoundaryRules?:
|
|
91
|
+
accessBoundaryRules?:
|
|
92
|
+
GoogleIdentityStsV1betaAccessBoundaryRule[];
|
|
85
93
|
}
|
|
86
94
|
interface GoogleIdentityStsV1betaAccessBoundaryRule {
|
|
87
95
|
/**
|
|
@@ -91,38 +99,46 @@ declare namespace gapi.client {
|
|
|
91
99
|
* to the resource, even if this access boundary rule does not allow access. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
92
100
|
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies). The maximum length of the `expression` field is 2048 characters.
|
|
93
101
|
*/
|
|
94
|
-
availabilityCondition?:
|
|
102
|
+
availabilityCondition?:
|
|
103
|
+
GoogleTypeExpr;
|
|
95
104
|
/**
|
|
96
105
|
* 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.
|
|
97
106
|
* Example value: `inRole:roles/logging.viewer` for predefined roles and `inRole:organizations/{ORGANIZATION_ID}/roles/logging.viewer` for custom roles.
|
|
98
107
|
*/
|
|
99
|
-
availablePermissions?:
|
|
108
|
+
availablePermissions?:
|
|
109
|
+
string[];
|
|
100
110
|
/**
|
|
101
111
|
* 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:
|
|
102
112
|
* `//cloudresourcemanager.googleapis.com/projects/my-project`.
|
|
103
113
|
*/
|
|
104
|
-
availableResource?:
|
|
114
|
+
availableResource?:
|
|
115
|
+
string;
|
|
105
116
|
}
|
|
106
117
|
interface GoogleIdentityStsV1betaExchangeTokenRequest {
|
|
107
118
|
/**
|
|
108
119
|
* The full resource name of the identity provider. For example, `//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/`. Required when exchanging an
|
|
109
120
|
* external credential for a Google access token.
|
|
110
121
|
*/
|
|
111
|
-
audience?:
|
|
122
|
+
audience?:
|
|
123
|
+
string;
|
|
112
124
|
/** Required. The grant type. Must be `urn:ietf:params:oauth:grant-type:token-exchange`, which indicates a token exchange. */
|
|
113
|
-
grantType?:
|
|
125
|
+
grantType?:
|
|
126
|
+
string;
|
|
114
127
|
/**
|
|
115
128
|
* 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
|
|
116
129
|
* parameter value must not exceed 4096 characters.
|
|
117
130
|
*/
|
|
118
|
-
options?:
|
|
131
|
+
options?:
|
|
132
|
+
string;
|
|
119
133
|
/** Required. The type of security token. Must be `urn:ietf:params:oauth:token-type:access_token`, which indicates an OAuth 2.0 access token. */
|
|
120
|
-
requestedTokenType?:
|
|
134
|
+
requestedTokenType?:
|
|
135
|
+
string;
|
|
121
136
|
/**
|
|
122
137
|
* 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
|
|
123
138
|
* Google access token.
|
|
124
139
|
*/
|
|
125
|
-
scope?:
|
|
140
|
+
scope?:
|
|
141
|
+
string;
|
|
126
142
|
/**
|
|
127
143
|
* 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
|
|
128
144
|
* an OIDC JWT, it must use the JWT format defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `subject_token_type` must be either
|
|
@@ -155,72 +171,88 @@ declare namespace gapi.client {
|
|
|
155
171
|
* to obtain an access token with new security attributes applied, such as a Credential Access Boundary. In this case, set `subject_token_type` to
|
|
156
172
|
* `urn:ietf:params:oauth:token-type:access_token`. If an access token already contains security attributes, you cannot apply additional security attributes.
|
|
157
173
|
*/
|
|
158
|
-
subjectToken?:
|
|
174
|
+
subjectToken?:
|
|
175
|
+
string;
|
|
159
176
|
/**
|
|
160
177
|
* 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`,
|
|
161
178
|
* `urn:ietf:params:oauth:token-type:id_token`, `urn:ietf:params:aws:token-type:aws4_request`, and `urn:ietf:params:oauth:token-type:access_token`.
|
|
162
179
|
*/
|
|
163
|
-
subjectTokenType?:
|
|
180
|
+
subjectTokenType?:
|
|
181
|
+
string;
|
|
164
182
|
}
|
|
165
183
|
interface GoogleIdentityStsV1betaExchangeTokenResponse {
|
|
166
184
|
/**
|
|
167
185
|
* An OAuth 2.0 security token, issued by Google, in response to the token exchange request. Tokens can vary in size, depending in part on the size of mapped claims, up to a maximum of
|
|
168
186
|
* 12288 bytes (12 KB). Google reserves the right to change the token size and the maximum length at any time.
|
|
169
187
|
*/
|
|
170
|
-
access_token?:
|
|
188
|
+
access_token?:
|
|
189
|
+
string;
|
|
171
190
|
/**
|
|
172
191
|
* 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
|
|
173
192
|
* the request is a Google-issued, short-lived access token. In this case, the access token has the same expiration time as the `subject_token`.
|
|
174
193
|
*/
|
|
175
|
-
expires_in?:
|
|
194
|
+
expires_in?:
|
|
195
|
+
number;
|
|
176
196
|
/** The token type. Always matches the value of `requested_token_type` from the request. */
|
|
177
|
-
issued_token_type?:
|
|
197
|
+
issued_token_type?:
|
|
198
|
+
string;
|
|
178
199
|
/** The type of access token. Always has the value `Bearer`. */
|
|
179
|
-
token_type?:
|
|
200
|
+
token_type?:
|
|
201
|
+
string;
|
|
180
202
|
}
|
|
181
203
|
interface GoogleIdentityStsV1betaOptions {
|
|
182
204
|
/**
|
|
183
205
|
* An access boundary that defines the upper bound of permissions the credential may have. The value should be a JSON object of AccessBoundary. The access boundary can include up to 10
|
|
184
206
|
* rules. The size of the parameter value should not exceed 2048 characters.
|
|
185
207
|
*/
|
|
186
|
-
accessBoundary?:
|
|
208
|
+
accessBoundary?:
|
|
209
|
+
GoogleIdentityStsV1betaAccessBoundary;
|
|
187
210
|
/**
|
|
188
211
|
* 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/",
|
|
189
212
|
* "https://storage.googleapis.com/"]`. A maximum of 5 audiences can be included. For each provided audience, the maximum length is 262 characters.
|
|
190
213
|
*/
|
|
191
|
-
audiences?:
|
|
214
|
+
audiences?:
|
|
215
|
+
string[];
|
|
192
216
|
/**
|
|
193
217
|
* 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
|
|
194
218
|
* must be a project number or a project ID. Example: `my-sample-project-191923`. The maximum length is 32 characters.
|
|
195
219
|
*/
|
|
196
|
-
userProject?:
|
|
220
|
+
userProject?:
|
|
221
|
+
string;
|
|
197
222
|
}
|
|
198
223
|
interface GoogleIdentityStsV1Options {
|
|
199
224
|
/**
|
|
200
225
|
* An access boundary that defines the upper bound of permissions the credential may have. The value should be a JSON object of AccessBoundary. The access boundary can include up to 10
|
|
201
226
|
* rules. The size of the parameter value should not exceed 2048 characters.
|
|
202
227
|
*/
|
|
203
|
-
accessBoundary?:
|
|
228
|
+
accessBoundary?:
|
|
229
|
+
GoogleIdentityStsV1AccessBoundary;
|
|
204
230
|
/**
|
|
205
231
|
* 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/",
|
|
206
232
|
* "https://storage.googleapis.com/"]`. A maximum of 5 audiences can be included. For each provided audience, the maximum length is 262 characters.
|
|
207
233
|
*/
|
|
208
|
-
audiences?:
|
|
234
|
+
audiences?:
|
|
235
|
+
string[];
|
|
209
236
|
/**
|
|
210
237
|
* 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
|
|
211
238
|
* must be a project number or a project ID. Example: `my-sample-project-191923`. The maximum length is 32 characters.
|
|
212
239
|
*/
|
|
213
|
-
userProject?:
|
|
240
|
+
userProject?:
|
|
241
|
+
string;
|
|
214
242
|
}
|
|
215
243
|
interface GoogleTypeExpr {
|
|
216
244
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
217
|
-
description?:
|
|
245
|
+
description?:
|
|
246
|
+
string;
|
|
218
247
|
/** Textual representation of an expression in Common Expression Language syntax. */
|
|
219
|
-
expression?:
|
|
248
|
+
expression?:
|
|
249
|
+
string;
|
|
220
250
|
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
221
|
-
location?:
|
|
251
|
+
location?:
|
|
252
|
+
string;
|
|
222
253
|
/** 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. */
|
|
223
|
-
title?:
|
|
254
|
+
title?:
|
|
255
|
+
string;
|
|
224
256
|
}
|
|
225
257
|
interface V1betaResource {
|
|
226
258
|
/**
|
|
@@ -230,53 +262,76 @@ declare namespace gapi.client {
|
|
|
230
262
|
*/
|
|
231
263
|
token(request: {
|
|
232
264
|
/** V1 error format. */
|
|
233
|
-
"$.xgafv"?:
|
|
265
|
+
"$.xgafv"?:
|
|
266
|
+
string;
|
|
234
267
|
/** OAuth access token. */
|
|
235
|
-
access_token?:
|
|
268
|
+
access_token?:
|
|
269
|
+
string;
|
|
236
270
|
/** Data format for response. */
|
|
237
|
-
alt?:
|
|
271
|
+
alt?:
|
|
272
|
+
string;
|
|
238
273
|
/** JSONP */
|
|
239
|
-
callback?:
|
|
274
|
+
callback?:
|
|
275
|
+
string;
|
|
240
276
|
/** Selector specifying which fields to include in a partial response. */
|
|
241
|
-
fields?:
|
|
277
|
+
fields?:
|
|
278
|
+
string;
|
|
242
279
|
/** 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. */
|
|
243
|
-
key?:
|
|
280
|
+
key?:
|
|
281
|
+
string;
|
|
244
282
|
/** OAuth 2.0 token for the current user. */
|
|
245
|
-
oauth_token?:
|
|
283
|
+
oauth_token?:
|
|
284
|
+
string;
|
|
246
285
|
/** Returns response with indentations and line breaks. */
|
|
247
|
-
prettyPrint?:
|
|
286
|
+
prettyPrint?:
|
|
287
|
+
boolean;
|
|
248
288
|
/** 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. */
|
|
249
|
-
quotaUser?:
|
|
289
|
+
quotaUser?:
|
|
290
|
+
string;
|
|
250
291
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
251
|
-
upload_protocol?:
|
|
292
|
+
upload_protocol?:
|
|
293
|
+
string;
|
|
252
294
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
253
|
-
uploadType?:
|
|
295
|
+
uploadType?:
|
|
296
|
+
string;
|
|
254
297
|
/** Request body */
|
|
255
|
-
resource:
|
|
298
|
+
resource:
|
|
299
|
+
GoogleIdentityStsV1betaExchangeTokenRequest;
|
|
256
300
|
}): Request<GoogleIdentityStsV1betaExchangeTokenResponse>;
|
|
257
301
|
token(request: {
|
|
258
302
|
/** V1 error format. */
|
|
259
|
-
"$.xgafv"?:
|
|
303
|
+
"$.xgafv"?:
|
|
304
|
+
string;
|
|
260
305
|
/** OAuth access token. */
|
|
261
|
-
access_token?:
|
|
306
|
+
access_token?:
|
|
307
|
+
string;
|
|
262
308
|
/** Data format for response. */
|
|
263
|
-
alt?:
|
|
309
|
+
alt?:
|
|
310
|
+
string;
|
|
264
311
|
/** JSONP */
|
|
265
|
-
callback?:
|
|
312
|
+
callback?:
|
|
313
|
+
string;
|
|
266
314
|
/** Selector specifying which fields to include in a partial response. */
|
|
267
|
-
fields?:
|
|
315
|
+
fields?:
|
|
316
|
+
string;
|
|
268
317
|
/** 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. */
|
|
269
|
-
key?:
|
|
318
|
+
key?:
|
|
319
|
+
string;
|
|
270
320
|
/** OAuth 2.0 token for the current user. */
|
|
271
|
-
oauth_token?:
|
|
321
|
+
oauth_token?:
|
|
322
|
+
string;
|
|
272
323
|
/** Returns response with indentations and line breaks. */
|
|
273
|
-
prettyPrint?:
|
|
324
|
+
prettyPrint?:
|
|
325
|
+
boolean;
|
|
274
326
|
/** 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. */
|
|
275
|
-
quotaUser?:
|
|
327
|
+
quotaUser?:
|
|
328
|
+
string;
|
|
276
329
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
277
|
-
upload_protocol?:
|
|
330
|
+
upload_protocol?:
|
|
331
|
+
string;
|
|
278
332
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
279
|
-
uploadType?:
|
|
333
|
+
uploadType?:
|
|
334
|
+
string;
|
|
280
335
|
},
|
|
281
336
|
body: GoogleIdentityStsV1betaExchangeTokenRequest): Request<GoogleIdentityStsV1betaExchangeTokenResponse>;
|
|
282
337
|
}
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230423
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|