Skip to content

Commit 5ee6f4d

Browse files
tmacroclaude
andcommitted
auth: update generated types for targetAccount option
Regenerate lib/IAMClient.d.ts via `yarn gen-types` so the verifySignatureV2/V4 option types include the new optional `targetAccount` field, and add the corresponding JSDoc entry on V2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent afe31bd commit 5ee6f4d

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

lib/IAMClient.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ declare class VaultClient {
258258
* @param {string} [options.securityToken] - Token for temporary credentials
259259
* authorization against IAM policies. This is a stringified version of a
260260
* RequestContext class. See Arsenal for class details.
261+
* @param {string} [options.targetAccount] - canonical id of the account
262+
* that owns the resource being targeted by
263+
* the request (e.g. the bucket owner)
261264
* @param {VaultClient~requestCallback} callback - callback
262265
* @returns {undefined}
263266
*/
@@ -266,6 +269,7 @@ declare class VaultClient {
266269
reqUid?: string;
267270
requestContext?: string;
268271
securityToken?: string;
272+
targetAccount?: string;
269273
}, callback: any): undefined;
270274
/**
271275
* Verify AWS request signature using V4 auth (contrary to v2, hash is
@@ -285,6 +289,9 @@ declare class VaultClient {
285289
* @param {string} [options.securityToken] - Token for temporary credentials
286290
* authorization against IAM policies. This is a stringified version of a
287291
* RequestContext class. See Arsenal for class details.
292+
* @param {string} [options.targetAccount] - canonical id of the account
293+
* that owns the resource being targeted by
294+
* the request (e.g. the bucket owner)
288295
* @param {VaultClient~requestCallback} callback - callback
289296
* @returns {undefined}
290297
*/
@@ -293,6 +300,7 @@ declare class VaultClient {
293300
get?: string;
294301
requestContext?: string;
295302
securityToken?: string;
303+
targetAccount?: string;
296304
}, callback: any): undefined;
297305
/**
298306
* A getter for Account email addresses provided a dictionary of canonical

lib/IAMClient.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/IAMClient.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,9 @@ class VaultClient {
795795
* @param {string} [options.securityToken] - Token for temporary credentials
796796
* authorization against IAM policies. This is a stringified version of a
797797
* RequestContext class. See Arsenal for class details.
798+
* @param {string} [options.targetAccount] - canonical id of the account
799+
* that owns the resource being targeted by
800+
* the request (e.g. the bucket owner)
798801
* @param {VaultClient~requestCallback} callback - callback
799802
* @returns {undefined}
800803
*/

0 commit comments

Comments
 (0)