@googleapis/sts 9.0.0 → 10.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## [10.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/sts-v10.0.0...sts-v10.0.1) (2025-06-04)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
9
+
10
+ ## [10.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/sts-v9.1.0...sts-v10.0.0) (2025-05-29)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * upgrade to node 18
16
+
17
+ ### Features
18
+
19
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
20
+
21
+ ## [9.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/sts-v9.0.1...sts-v9.1.0) (2025-02-04)
22
+
23
+
24
+ ### Features
25
+
26
+ * **sts:** update the API ([4539f52](https://github.com/googleapis/google-api-nodejs-client/commit/4539f52105b568cc6a654cca736cae36e7ddf3ab))
27
+ * **sts:** update the API ([6e5182c](https://github.com/googleapis/google-api-nodejs-client/commit/6e5182cc6f93e9a509c94a92c5768a873828c811))
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * **sts:** update the API ([73354e6](https://github.com/googleapis/google-api-nodejs-client/commit/73354e622ae72c652557752e57c7bcc62adb09ad))
33
+
34
+ ## [9.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/sts-v9.0.0...sts-v9.0.1) (2024-10-30)
35
+
36
+
37
+ ### Bug Fixes
38
+
39
+ * **sts:** update the API ([73354e6](https://github.com/googleapis/google-api-nodejs-client/commit/73354e622ae72c652557752e57c7bcc62adb09ad))
40
+
3
41
  ## [9.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/sts-v8.0.0...sts-v9.0.0) (2024-08-16)
4
42
 
5
43
 
package/build/index.d.ts CHANGED
@@ -14,4 +14,4 @@ declare const auth: AuthPlus;
14
14
  export { auth };
15
15
  export { sts_v1 };
16
16
  export { sts_v1beta };
17
- export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
17
+ export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAA4B;AAqBpB,uFArBA,WAAM,OAqBA;AApBd,qCAAoC;AAqB5B,2FArBA,mBAAU,OAqBA;AAnBL,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,WAAM,CAAC,GAAG;IACd,MAAM,EAAE,mBAAU,CAAC,GAAG;CACvB,CAAC;AAMF,SAAgB,GAAG,CAEjB,gBAAuE;IAEvE,OAAO,IAAA,0BAAM,EAAI,KAAK,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AAC5D,CAAC;AALD,kBAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAS2B;AARzB,6GAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAA4B;AAqBpB,uFArBA,WAAM,OAqBA;AApBd,qCAAoC;AAqB5B,2FArBA,mBAAU,OAqBA;AAnBL,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,WAAM,CAAC,GAAG;IACd,MAAM,EAAE,mBAAU,CAAC,GAAG;CACvB,CAAC;AAMF,SAAgB,GAAG,CAEjB,gBAAuE;IAEvE,OAAO,IAAA,0BAAM,EAAI,KAAK,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AAC5D,CAAC;AALD,kBAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
package/build/v1.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace sts_v1 {
5
5
  export interface Options extends GlobalOptions {
@@ -170,7 +170,7 @@ export declare namespace sts_v1 {
170
170
  */
171
171
  options?: string | null;
172
172
  /**
173
- * Required. An identifier for the type of requested security token. Can be `urn:ietf:params:oauth:token-type:access_token` or `urn:ietf:params:oauth:token-type:access_boundary_intermediate_token`.
173
+ * Required. An identifier for the type of requested security token. Can be `urn:ietf:params:oauth:token-type:access_token` or `urn:ietf:params:oauth:token-type:access_boundary_intermediary_token`.
174
174
  */
175
175
  requestedTokenType?: string | null;
176
176
  /**
@@ -191,7 +191,7 @@ export declare namespace sts_v1 {
191
191
  */
192
192
  export interface Schema$GoogleIdentityStsV1ExchangeTokenResponse {
193
193
  /**
194
- * The access boundary session key. This key is used along with the access boundary intermediate token to generate Credential Access Boundary tokens at client side. This field is absent when the `requested_token_type` from the request is not `urn:ietf:params:oauth:token-type:access_boundary_intermediate_token`.
194
+ * The access boundary session key. This key is used along with the access boundary intermediary token to generate Credential Access Boundary tokens at client side. This field is absent when the `requested_token_type` from the request is not `urn:ietf:params:oauth:token-type:access_boundary_intermediary_token`.
195
195
  */
196
196
  access_boundary_session_key?: string | null;
197
197
  /**
@@ -199,7 +199,7 @@ export declare namespace sts_v1 {
199
199
  */
200
200
  access_token?: string | null;
201
201
  /**
202
- * 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 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`.
202
+ * 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 the request is a a short-lived access token for a Cloud Identity or Google Workspace user account. In this case, the access token has the same expiration time as the `subject_token`.
203
203
  */
204
204
  expires_in?: number | null;
205
205
  /**
@@ -256,8 +256,8 @@ export declare namespace sts_v1 {
256
256
  * @param callback - Optional callback that handles the response.
257
257
  * @returns A promise if used with async/await, or void if used with a callback.
258
258
  */
259
- token(params: Params$Resource$V1$Token, options: StreamMethodOptions): GaxiosPromise<Readable>;
260
- token(params?: Params$Resource$V1$Token, options?: MethodOptions): GaxiosPromise<Schema$GoogleIdentityStsV1ExchangeTokenResponse>;
259
+ token(params: Params$Resource$V1$Token, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
260
+ token(params?: Params$Resource$V1$Token, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1ExchangeTokenResponse>>;
261
261
  token(params: Params$Resource$V1$Token, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
262
262
  token(params: Params$Resource$V1$Token, options: MethodOptions | BodyResponseCallback<Schema$GoogleIdentityStsV1ExchangeTokenResponse>, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1ExchangeTokenResponse>): void;
263
263
  token(params: Params$Resource$V1$Token, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1ExchangeTokenResponse>): void;
package/build/v1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,MAAM,CAkXtB;AAlXD,WAAiB,MAAM;IAgErB;;;;;;;;;;OAUG;IACH,MAAa,GAAG;QAId,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,EAAE,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;KACF;IAZY,UAAG,MAYf,CAAA;IAiLD,MAAa,WAAW;QAEtB,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;QAqCD,KAAK,CACH,gBAGkC,EAClC,iBAIkC,EAClC,QAEkC;YAKlC,IAAI,MAAM,GAA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,EAAE,MAAM;oBACd,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IAtGY,kBAAW,cAsGvB,CAAA;AAQH,CAAC,EAtXgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAsXtB"}
package/build/v1beta.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace sts_v1beta {
5
5
  export interface Options extends GlobalOptions {
@@ -252,8 +252,8 @@ export declare namespace sts_v1beta {
252
252
  * @param callback - Optional callback that handles the response.
253
253
  * @returns A promise if used with async/await, or void if used with a callback.
254
254
  */
255
- token(params: Params$Resource$V1beta$Token, options: StreamMethodOptions): GaxiosPromise<Readable>;
256
- token(params?: Params$Resource$V1beta$Token, options?: MethodOptions): GaxiosPromise<Schema$GoogleIdentityStsV1betaExchangeTokenResponse>;
255
+ token(params: Params$Resource$V1beta$Token, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
256
+ token(params?: Params$Resource$V1beta$Token, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1betaExchangeTokenResponse>>;
257
257
  token(params: Params$Resource$V1beta$Token, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
258
258
  token(params: Params$Resource$V1beta$Token, options: MethodOptions | BodyResponseCallback<Schema$GoogleIdentityStsV1betaExchangeTokenResponse>, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1betaExchangeTokenResponse>): void;
259
259
  token(params: Params$Resource$V1beta$Token, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1betaExchangeTokenResponse>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"v1beta.js","sourceRoot":"","sources":["../v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,UAAU,CA8W1B;AA9WD,WAAiB,UAAU;IAgEzB;;;;;;;;;;OAUG;IACH,MAAa,GAAG;QAId,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,CAAC;KACF;IAZY,cAAG,MAYf,CAAA;IA6KD,MAAa,eAAe;QAE1B,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;QAqCD,KAAK,CACH,gBAGkC,EAClC,iBAIkC,EAClC,QAEkC;YAKlC,IAAI,MAAM,GAAG,CAAC,g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M,EAAE,MAAM;oBACd,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IAtGY,0BAAe,kBAsG3B,CAAA;AAQH,CAAC,EAlXgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAkX1B"}
package/index.ts CHANGED
@@ -43,7 +43,6 @@ export {
43
43
  APIRequestContext,
44
44
  GoogleConfigurable,
45
45
  StreamMethodOptions,
46
- GaxiosPromise,
47
46
  MethodOptions,
48
47
  BodyResponseCallback,
49
48
  } from 'googleapis-common';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/sts",
3
- "version": "9.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "sts",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "webpack": "webpack"
29
29
  },
30
30
  "dependencies": {
31
- "googleapis-common": "^7.0.0"
31
+ "googleapis-common": "^8.0.2-rc.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.8.10",
package/v1.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -223,7 +223,7 @@ export namespace sts_v1 {
223
223
  */
224
224
  options?: string | null;
225
225
  /**
226
- * Required. An identifier for the type of requested security token. Can be `urn:ietf:params:oauth:token-type:access_token` or `urn:ietf:params:oauth:token-type:access_boundary_intermediate_token`.
226
+ * Required. An identifier for the type of requested security token. Can be `urn:ietf:params:oauth:token-type:access_token` or `urn:ietf:params:oauth:token-type:access_boundary_intermediary_token`.
227
227
  */
228
228
  requestedTokenType?: string | null;
229
229
  /**
@@ -244,7 +244,7 @@ export namespace sts_v1 {
244
244
  */
245
245
  export interface Schema$GoogleIdentityStsV1ExchangeTokenResponse {
246
246
  /**
247
- * The access boundary session key. This key is used along with the access boundary intermediate token to generate Credential Access Boundary tokens at client side. This field is absent when the `requested_token_type` from the request is not `urn:ietf:params:oauth:token-type:access_boundary_intermediate_token`.
247
+ * The access boundary session key. This key is used along with the access boundary intermediary token to generate Credential Access Boundary tokens at client side. This field is absent when the `requested_token_type` from the request is not `urn:ietf:params:oauth:token-type:access_boundary_intermediary_token`.
248
248
  */
249
249
  access_boundary_session_key?: string | null;
250
250
  /**
@@ -252,7 +252,7 @@ export namespace sts_v1 {
252
252
  */
253
253
  access_token?: string | null;
254
254
  /**
255
- * 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 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`.
255
+ * 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 the request is a a short-lived access token for a Cloud Identity or Google Workspace user account. In this case, the access token has the same expiration time as the `subject_token`.
256
256
  */
257
257
  expires_in?: number | null;
258
258
  /**
@@ -316,11 +316,13 @@ export namespace sts_v1 {
316
316
  token(
317
317
  params: Params$Resource$V1$Token,
318
318
  options: StreamMethodOptions
319
- ): GaxiosPromise<Readable>;
319
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
320
320
  token(
321
321
  params?: Params$Resource$V1$Token,
322
322
  options?: MethodOptions
323
- ): GaxiosPromise<Schema$GoogleIdentityStsV1ExchangeTokenResponse>;
323
+ ): Promise<
324
+ GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1ExchangeTokenResponse>
325
+ >;
324
326
  token(
325
327
  params: Params$Resource$V1$Token,
326
328
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -355,8 +357,10 @@ export namespace sts_v1 {
355
357
  | BodyResponseCallback<Readable>
356
358
  ):
357
359
  | void
358
- | GaxiosPromise<Schema$GoogleIdentityStsV1ExchangeTokenResponse>
359
- | GaxiosPromise<Readable> {
360
+ | Promise<
361
+ GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1ExchangeTokenResponse>
362
+ >
363
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
360
364
  let params = (paramsOrCallback || {}) as Params$Resource$V1$Token;
361
365
  let options = (optionsOrCallback || {}) as MethodOptions;
362
366
 
package/v1beta.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -312,11 +312,13 @@ export namespace sts_v1beta {
312
312
  token(
313
313
  params: Params$Resource$V1beta$Token,
314
314
  options: StreamMethodOptions
315
- ): GaxiosPromise<Readable>;
315
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
316
316
  token(
317
317
  params?: Params$Resource$V1beta$Token,
318
318
  options?: MethodOptions
319
- ): GaxiosPromise<Schema$GoogleIdentityStsV1betaExchangeTokenResponse>;
319
+ ): Promise<
320
+ GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1betaExchangeTokenResponse>
321
+ >;
320
322
  token(
321
323
  params: Params$Resource$V1beta$Token,
322
324
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -351,8 +353,10 @@ export namespace sts_v1beta {
351
353
  | BodyResponseCallback<Readable>
352
354
  ):
353
355
  | void
354
- | GaxiosPromise<Schema$GoogleIdentityStsV1betaExchangeTokenResponse>
355
- | GaxiosPromise<Readable> {
356
+ | Promise<
357
+ GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1betaExchangeTokenResponse>
358
+ >
359
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
356
360
  let params = (paramsOrCallback || {}) as Params$Resource$V1beta$Token;
357
361
  let options = (optionsOrCallback || {}) as MethodOptions;
358
362