@azure/storage-common 12.1.1-alpha.20251127.1 → 12.2.0-alpha.20251128.2
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/dist/browser/credentials/UserDelegationKeyCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/UserDelegationKeyCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/UserDelegationKeyCredential.d.ts +3 -0
- package/dist/browser/credentials/UserDelegationKeyCredential.js +5 -0
- package/dist/browser/index-browser.d.mts.map +1 -1
- package/dist/browser/index-browser.mjs.map +1 -1
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.js +1 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts +66 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js +47 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js.map +1 -0
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.d.ts +66 -0
- package/dist/esm/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
- package/dist/esm/credentials/UserDelegationKeyCredential.js +43 -0
- package/dist/esm/credentials/UserDelegationKeyCredential.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts +66 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential.js +43 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential.js.map +1 -0
- package/dist/react-native/index.d.ts +1 -0
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -0
- package/dist/react-native/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential-browser.mts"],"names":[],"mappings":"AAGA,qBAAa,2BAA2B;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,OAAO,2BAA2B;CAAG","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport class UserDelegationKeyCredential {}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-browser.d.mts","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index-browser.d.mts","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-browser.mjs","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyType.js\";\nexport * from \"./policies/StorageRetryPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index-browser.mjs","sourceRoot":"","sources":["../../src/index-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyType.js\";\nexport * from \"./policies/StorageRetryPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\nexport * from \"./credentials/UserDelegationKeyCredential.js\";\n"]}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -17,4 +17,5 @@ export * from "./policies/StorageRetryPolicyV2.js";
|
|
|
17
17
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
18
18
|
export * from "./StorageRetryPolicyFactory.js";
|
|
19
19
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
20
|
+
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
20
21
|
//# sourceMappingURL=index-browser.d.mts.map
|
package/dist/browser/index.js
CHANGED
|
@@ -19,4 +19,5 @@ export * from "./policies/StorageRetryPolicyV2.js";
|
|
|
19
19
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
20
20
|
export * from "./StorageRetryPolicyFactory.js";
|
|
21
21
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
22
|
+
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
22
23
|
//# sourceMappingURL=index-browser.mjs.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A user delegation key.
|
|
3
|
+
*/
|
|
4
|
+
export interface UserDelegationKey {
|
|
5
|
+
/**
|
|
6
|
+
* The Azure Active Directory object ID in GUID format.
|
|
7
|
+
*/
|
|
8
|
+
signedObjectId: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Azure Active Directory tenant ID in GUID format.
|
|
11
|
+
*/
|
|
12
|
+
signedTenantId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The date-time the key is active.
|
|
15
|
+
*/
|
|
16
|
+
signedStartsOn: Date;
|
|
17
|
+
/**
|
|
18
|
+
* The date-time the key expires.
|
|
19
|
+
*/
|
|
20
|
+
signedExpiresOn: Date;
|
|
21
|
+
/**
|
|
22
|
+
* Abbreviation of the Azure Storage service that accepts the key.
|
|
23
|
+
*/
|
|
24
|
+
signedService: string;
|
|
25
|
+
/**
|
|
26
|
+
* The service version that created the key.
|
|
27
|
+
*/
|
|
28
|
+
signedVersion: string;
|
|
29
|
+
/**
|
|
30
|
+
* The key as a base64 string.
|
|
31
|
+
*/
|
|
32
|
+
value: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
36
|
+
*
|
|
37
|
+
* UserDelegationKeyCredential is only used for generation of user delegation SAS.
|
|
38
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas
|
|
39
|
+
*/
|
|
40
|
+
export declare class UserDelegationKeyCredential {
|
|
41
|
+
/**
|
|
42
|
+
* Azure Storage account name; readonly.
|
|
43
|
+
*/
|
|
44
|
+
readonly accountName: string;
|
|
45
|
+
/**
|
|
46
|
+
* Azure Storage user delegation key; readonly.
|
|
47
|
+
*/
|
|
48
|
+
readonly userDelegationKey: UserDelegationKey;
|
|
49
|
+
/**
|
|
50
|
+
* Key value in Buffer type.
|
|
51
|
+
*/
|
|
52
|
+
private readonly key;
|
|
53
|
+
/**
|
|
54
|
+
* Creates an instance of UserDelegationKeyCredential.
|
|
55
|
+
* @param accountName -
|
|
56
|
+
* @param userDelegationKey -
|
|
57
|
+
*/
|
|
58
|
+
constructor(accountName: string, userDelegationKey: UserDelegationKey);
|
|
59
|
+
/**
|
|
60
|
+
* Generates a hash signature for an HTTP request or for a SAS.
|
|
61
|
+
*
|
|
62
|
+
* @param stringToSign -
|
|
63
|
+
*/
|
|
64
|
+
computeHMACSHA256(stringToSign: string): string;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=UserDelegationKeyCredential.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,IAAI,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,qBAAa,2BAA2B;IACtC;;OAEG;IACH,SAAgB,WAAW,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,SAAgB,iBAAiB,EAAE,iBAAiB,CAAC;IAErD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAE7B;;;;OAIG;gBACS,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB;IAMrE;;;;OAIG;IACI,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAKvD"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.UserDelegationKeyCredential = void 0;
|
|
6
|
+
const node_crypto_1 = require("node:crypto");
|
|
7
|
+
/**
|
|
8
|
+
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
9
|
+
*
|
|
10
|
+
* UserDelegationKeyCredential is only used for generation of user delegation SAS.
|
|
11
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas
|
|
12
|
+
*/
|
|
13
|
+
class UserDelegationKeyCredential {
|
|
14
|
+
/**
|
|
15
|
+
* Azure Storage account name; readonly.
|
|
16
|
+
*/
|
|
17
|
+
accountName;
|
|
18
|
+
/**
|
|
19
|
+
* Azure Storage user delegation key; readonly.
|
|
20
|
+
*/
|
|
21
|
+
userDelegationKey;
|
|
22
|
+
/**
|
|
23
|
+
* Key value in Buffer type.
|
|
24
|
+
*/
|
|
25
|
+
key;
|
|
26
|
+
/**
|
|
27
|
+
* Creates an instance of UserDelegationKeyCredential.
|
|
28
|
+
* @param accountName -
|
|
29
|
+
* @param userDelegationKey -
|
|
30
|
+
*/
|
|
31
|
+
constructor(accountName, userDelegationKey) {
|
|
32
|
+
this.accountName = accountName;
|
|
33
|
+
this.userDelegationKey = userDelegationKey;
|
|
34
|
+
this.key = Buffer.from(userDelegationKey.value, "base64");
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Generates a hash signature for an HTTP request or for a SAS.
|
|
38
|
+
*
|
|
39
|
+
* @param stringToSign -
|
|
40
|
+
*/
|
|
41
|
+
computeHMACSHA256(stringToSign) {
|
|
42
|
+
// console.log(`stringToSign: ${JSON.stringify(stringToSign)}`);
|
|
43
|
+
return (0, node_crypto_1.createHmac)("sha256", this.key).update(stringToSign, "utf8").digest("base64");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UserDelegationKeyCredential = UserDelegationKeyCredential;
|
|
47
|
+
//# sourceMappingURL=UserDelegationKeyCredential.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential.js","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,6CAAyC;AAoCzC;;;;;GAKG;AACH,MAAa,2BAA2B;IACtC;;OAEG;IACa,WAAW,CAAS;IAEpC;;OAEG;IACa,iBAAiB,CAAoB;IAErD;;OAEG;IACc,GAAG,CAAS;IAE7B;;;;OAIG;IACH,YAAY,WAAmB,EAAE,iBAAoC;QACnE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,YAAoB;QAC3C,gEAAgE;QAEhE,OAAO,IAAA,wBAAU,EAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtF,CAAC;CACF;AArCD,kEAqCC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createHmac } from \"node:crypto\";\n\n/**\n * A user delegation key.\n */\nexport interface UserDelegationKey {\n /**\n * The Azure Active Directory object ID in GUID format.\n */\n signedObjectId: string;\n /**\n * The Azure Active Directory tenant ID in GUID format.\n */\n signedTenantId: string;\n /**\n * The date-time the key is active.\n */\n signedStartsOn: Date;\n /**\n * The date-time the key expires.\n */\n signedExpiresOn: Date;\n /**\n * Abbreviation of the Azure Storage service that accepts the key.\n */\n signedService: string;\n /**\n * The service version that created the key.\n */\n signedVersion: string;\n /**\n * The key as a base64 string.\n */\n value: string;\n}\n\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * UserDelegationKeyCredential is only used for generation of user delegation SAS.\n * @see https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas\n */\nexport class UserDelegationKeyCredential {\n /**\n * Azure Storage account name; readonly.\n */\n public readonly accountName: string;\n\n /**\n * Azure Storage user delegation key; readonly.\n */\n public readonly userDelegationKey: UserDelegationKey;\n\n /**\n * Key value in Buffer type.\n */\n private readonly key: Buffer;\n\n /**\n * Creates an instance of UserDelegationKeyCredential.\n * @param accountName -\n * @param userDelegationKey -\n */\n constructor(accountName: string, userDelegationKey: UserDelegationKey) {\n this.accountName = accountName;\n this.userDelegationKey = userDelegationKey;\n this.key = Buffer.from(userDelegationKey.value, \"base64\");\n }\n\n /**\n * Generates a hash signature for an HTTP request or for a SAS.\n *\n * @param stringToSign -\n */\n public computeHMACSHA256(stringToSign: string): string {\n // console.log(`stringToSign: ${JSON.stringify(stringToSign)}`);\n\n return createHmac(\"sha256\", this.key).update(stringToSign, \"utf8\").digest(\"base64\");\n }\n}\n"]}
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
|
18
18
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
19
19
|
export * from "./StorageRetryPolicyFactory.js";
|
|
20
20
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
21
|
+
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -26,4 +26,5 @@ tslib_1.__exportStar(require("./policies/StorageSharedKeyCredentialPolicy.js"),
|
|
|
26
26
|
tslib_1.__exportStar(require("./policies/StorageSharedKeyCredentialPolicyV2.js"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./StorageRetryPolicyFactory.js"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./policies/StorageRequestFailureDetailsParserPolicy.js"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./credentials/UserDelegationKeyCredential.js"), exports);
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+DAAqC;AACrC,uCAAwD;AAA/C,sHAAA,0BAA0B,OAAA;AAEnC,2EAAiD;AACjD,+EAAqD;AACrD,sEAA4C;AAC5C,sFAA4D;AAE5D,yEAA+C;AAC/C,gEAAgE;AAAvD,qHAAA,iBAAiB,OAAA;AAC1B,kFAAwD;AACxD,yEAA+C;AAC/C,6EAAmD;AACnD,+EAAqD;AACrD,0FAAgE;AAChE,+EAAqD;AACrD,2EAAiD;AACjD,6EAAmD;AACnD,yFAA+D;AAC/D,2FAAiE;AACjE,yEAA+C;AAC/C,iGAAuE","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyType.js\";\nexport * from \"./policies/StorageRetryPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+DAAqC;AACrC,uCAAwD;AAA/C,sHAAA,0BAA0B,OAAA;AAEnC,2EAAiD;AACjD,+EAAqD;AACrD,sEAA4C;AAC5C,sFAA4D;AAE5D,yEAA+C;AAC/C,gEAAgE;AAAvD,qHAAA,iBAAiB,OAAA;AAC1B,kFAAwD;AACxD,yEAA+C;AAC/C,6EAAmD;AACnD,+EAAqD;AACrD,0FAAgE;AAChE,+EAAqD;AACrD,2EAAiD;AACjD,6EAAmD;AACnD,yFAA+D;AAC/D,2FAAiE;AACjE,yEAA+C;AAC/C,iGAAuE;AACvE,uFAA6D","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyType.js\";\nexport * from \"./policies/StorageRetryPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\nexport * from \"./credentials/UserDelegationKeyCredential.js\";\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A user delegation key.
|
|
3
|
+
*/
|
|
4
|
+
export interface UserDelegationKey {
|
|
5
|
+
/**
|
|
6
|
+
* The Azure Active Directory object ID in GUID format.
|
|
7
|
+
*/
|
|
8
|
+
signedObjectId: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Azure Active Directory tenant ID in GUID format.
|
|
11
|
+
*/
|
|
12
|
+
signedTenantId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The date-time the key is active.
|
|
15
|
+
*/
|
|
16
|
+
signedStartsOn: Date;
|
|
17
|
+
/**
|
|
18
|
+
* The date-time the key expires.
|
|
19
|
+
*/
|
|
20
|
+
signedExpiresOn: Date;
|
|
21
|
+
/**
|
|
22
|
+
* Abbreviation of the Azure Storage service that accepts the key.
|
|
23
|
+
*/
|
|
24
|
+
signedService: string;
|
|
25
|
+
/**
|
|
26
|
+
* The service version that created the key.
|
|
27
|
+
*/
|
|
28
|
+
signedVersion: string;
|
|
29
|
+
/**
|
|
30
|
+
* The key as a base64 string.
|
|
31
|
+
*/
|
|
32
|
+
value: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
36
|
+
*
|
|
37
|
+
* UserDelegationKeyCredential is only used for generation of user delegation SAS.
|
|
38
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas
|
|
39
|
+
*/
|
|
40
|
+
export declare class UserDelegationKeyCredential {
|
|
41
|
+
/**
|
|
42
|
+
* Azure Storage account name; readonly.
|
|
43
|
+
*/
|
|
44
|
+
readonly accountName: string;
|
|
45
|
+
/**
|
|
46
|
+
* Azure Storage user delegation key; readonly.
|
|
47
|
+
*/
|
|
48
|
+
readonly userDelegationKey: UserDelegationKey;
|
|
49
|
+
/**
|
|
50
|
+
* Key value in Buffer type.
|
|
51
|
+
*/
|
|
52
|
+
private readonly key;
|
|
53
|
+
/**
|
|
54
|
+
* Creates an instance of UserDelegationKeyCredential.
|
|
55
|
+
* @param accountName -
|
|
56
|
+
* @param userDelegationKey -
|
|
57
|
+
*/
|
|
58
|
+
constructor(accountName: string, userDelegationKey: UserDelegationKey);
|
|
59
|
+
/**
|
|
60
|
+
* Generates a hash signature for an HTTP request or for a SAS.
|
|
61
|
+
*
|
|
62
|
+
* @param stringToSign -
|
|
63
|
+
*/
|
|
64
|
+
computeHMACSHA256(stringToSign: string): string;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=UserDelegationKeyCredential.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,IAAI,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,qBAAa,2BAA2B;IACtC;;OAEG;IACH,SAAgB,WAAW,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,SAAgB,iBAAiB,EAAE,iBAAiB,CAAC;IAErD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAE7B;;;;OAIG;gBACS,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB;IAMrE;;;;OAIG;IACI,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAKvD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createHmac } from "node:crypto";
|
|
4
|
+
/**
|
|
5
|
+
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
6
|
+
*
|
|
7
|
+
* UserDelegationKeyCredential is only used for generation of user delegation SAS.
|
|
8
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas
|
|
9
|
+
*/
|
|
10
|
+
export class UserDelegationKeyCredential {
|
|
11
|
+
/**
|
|
12
|
+
* Azure Storage account name; readonly.
|
|
13
|
+
*/
|
|
14
|
+
accountName;
|
|
15
|
+
/**
|
|
16
|
+
* Azure Storage user delegation key; readonly.
|
|
17
|
+
*/
|
|
18
|
+
userDelegationKey;
|
|
19
|
+
/**
|
|
20
|
+
* Key value in Buffer type.
|
|
21
|
+
*/
|
|
22
|
+
key;
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of UserDelegationKeyCredential.
|
|
25
|
+
* @param accountName -
|
|
26
|
+
* @param userDelegationKey -
|
|
27
|
+
*/
|
|
28
|
+
constructor(accountName, userDelegationKey) {
|
|
29
|
+
this.accountName = accountName;
|
|
30
|
+
this.userDelegationKey = userDelegationKey;
|
|
31
|
+
this.key = Buffer.from(userDelegationKey.value, "base64");
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Generates a hash signature for an HTTP request or for a SAS.
|
|
35
|
+
*
|
|
36
|
+
* @param stringToSign -
|
|
37
|
+
*/
|
|
38
|
+
computeHMACSHA256(stringToSign) {
|
|
39
|
+
// console.log(`stringToSign: ${JSON.stringify(stringToSign)}`);
|
|
40
|
+
return createHmac("sha256", this.key).update(stringToSign, "utf8").digest("base64");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=UserDelegationKeyCredential.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential.js","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAoCzC;;;;;GAKG;AACH,MAAM,OAAO,2BAA2B;IACtC;;OAEG;IACa,WAAW,CAAS;IAEpC;;OAEG;IACa,iBAAiB,CAAoB;IAErD;;OAEG;IACc,GAAG,CAAS;IAE7B;;;;OAIG;IACH,YAAY,WAAmB,EAAE,iBAAoC;QACnE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,YAAoB;QAC3C,gEAAgE;QAEhE,OAAO,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtF,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createHmac } from \"node:crypto\";\n\n/**\n * A user delegation key.\n */\nexport interface UserDelegationKey {\n /**\n * The Azure Active Directory object ID in GUID format.\n */\n signedObjectId: string;\n /**\n * The Azure Active Directory tenant ID in GUID format.\n */\n signedTenantId: string;\n /**\n * The date-time the key is active.\n */\n signedStartsOn: Date;\n /**\n * The date-time the key expires.\n */\n signedExpiresOn: Date;\n /**\n * Abbreviation of the Azure Storage service that accepts the key.\n */\n signedService: string;\n /**\n * The service version that created the key.\n */\n signedVersion: string;\n /**\n * The key as a base64 string.\n */\n value: string;\n}\n\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * UserDelegationKeyCredential is only used for generation of user delegation SAS.\n * @see https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas\n */\nexport class UserDelegationKeyCredential {\n /**\n * Azure Storage account name; readonly.\n */\n public readonly accountName: string;\n\n /**\n * Azure Storage user delegation key; readonly.\n */\n public readonly userDelegationKey: UserDelegationKey;\n\n /**\n * Key value in Buffer type.\n */\n private readonly key: Buffer;\n\n /**\n * Creates an instance of UserDelegationKeyCredential.\n * @param accountName -\n * @param userDelegationKey -\n */\n constructor(accountName: string, userDelegationKey: UserDelegationKey) {\n this.accountName = accountName;\n this.userDelegationKey = userDelegationKey;\n this.key = Buffer.from(userDelegationKey.value, \"base64\");\n }\n\n /**\n * Generates a hash signature for an HTTP request or for a SAS.\n *\n * @param stringToSign -\n */\n public computeHMACSHA256(stringToSign: string): string {\n // console.log(`stringToSign: ${JSON.stringify(stringToSign)}`);\n\n return createHmac(\"sha256\", this.key).update(stringToSign, \"utf8\").digest(\"base64\");\n }\n}\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
|
18
18
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
19
19
|
export * from "./StorageRetryPolicyFactory.js";
|
|
20
20
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
21
|
+
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -20,4 +20,5 @@ export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
|
20
20
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
21
21
|
export * from "./StorageRetryPolicyFactory.js";
|
|
22
22
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
23
|
+
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyType.js\";\nexport * from \"./policies/StorageRetryPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyType.js\";\nexport * from \"./policies/StorageRetryPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\nexport * from \"./credentials/UserDelegationKeyCredential.js\";\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A user delegation key.
|
|
3
|
+
*/
|
|
4
|
+
export interface UserDelegationKey {
|
|
5
|
+
/**
|
|
6
|
+
* The Azure Active Directory object ID in GUID format.
|
|
7
|
+
*/
|
|
8
|
+
signedObjectId: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Azure Active Directory tenant ID in GUID format.
|
|
11
|
+
*/
|
|
12
|
+
signedTenantId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The date-time the key is active.
|
|
15
|
+
*/
|
|
16
|
+
signedStartsOn: Date;
|
|
17
|
+
/**
|
|
18
|
+
* The date-time the key expires.
|
|
19
|
+
*/
|
|
20
|
+
signedExpiresOn: Date;
|
|
21
|
+
/**
|
|
22
|
+
* Abbreviation of the Azure Storage service that accepts the key.
|
|
23
|
+
*/
|
|
24
|
+
signedService: string;
|
|
25
|
+
/**
|
|
26
|
+
* The service version that created the key.
|
|
27
|
+
*/
|
|
28
|
+
signedVersion: string;
|
|
29
|
+
/**
|
|
30
|
+
* The key as a base64 string.
|
|
31
|
+
*/
|
|
32
|
+
value: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
36
|
+
*
|
|
37
|
+
* UserDelegationKeyCredential is only used for generation of user delegation SAS.
|
|
38
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas
|
|
39
|
+
*/
|
|
40
|
+
export declare class UserDelegationKeyCredential {
|
|
41
|
+
/**
|
|
42
|
+
* Azure Storage account name; readonly.
|
|
43
|
+
*/
|
|
44
|
+
readonly accountName: string;
|
|
45
|
+
/**
|
|
46
|
+
* Azure Storage user delegation key; readonly.
|
|
47
|
+
*/
|
|
48
|
+
readonly userDelegationKey: UserDelegationKey;
|
|
49
|
+
/**
|
|
50
|
+
* Key value in Buffer type.
|
|
51
|
+
*/
|
|
52
|
+
private readonly key;
|
|
53
|
+
/**
|
|
54
|
+
* Creates an instance of UserDelegationKeyCredential.
|
|
55
|
+
* @param accountName -
|
|
56
|
+
* @param userDelegationKey -
|
|
57
|
+
*/
|
|
58
|
+
constructor(accountName: string, userDelegationKey: UserDelegationKey);
|
|
59
|
+
/**
|
|
60
|
+
* Generates a hash signature for an HTTP request or for a SAS.
|
|
61
|
+
*
|
|
62
|
+
* @param stringToSign -
|
|
63
|
+
*/
|
|
64
|
+
computeHMACSHA256(stringToSign: string): string;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=UserDelegationKeyCredential.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,IAAI,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,qBAAa,2BAA2B;IACtC;;OAEG;IACH,SAAgB,WAAW,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,SAAgB,iBAAiB,EAAE,iBAAiB,CAAC;IAErD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAE7B;;;;OAIG;gBACS,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB;IAMrE;;;;OAIG;IACI,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAKvD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createHmac } from "node:crypto";
|
|
4
|
+
/**
|
|
5
|
+
* ONLY AVAILABLE IN NODE.JS RUNTIME.
|
|
6
|
+
*
|
|
7
|
+
* UserDelegationKeyCredential is only used for generation of user delegation SAS.
|
|
8
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas
|
|
9
|
+
*/
|
|
10
|
+
export class UserDelegationKeyCredential {
|
|
11
|
+
/**
|
|
12
|
+
* Azure Storage account name; readonly.
|
|
13
|
+
*/
|
|
14
|
+
accountName;
|
|
15
|
+
/**
|
|
16
|
+
* Azure Storage user delegation key; readonly.
|
|
17
|
+
*/
|
|
18
|
+
userDelegationKey;
|
|
19
|
+
/**
|
|
20
|
+
* Key value in Buffer type.
|
|
21
|
+
*/
|
|
22
|
+
key;
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of UserDelegationKeyCredential.
|
|
25
|
+
* @param accountName -
|
|
26
|
+
* @param userDelegationKey -
|
|
27
|
+
*/
|
|
28
|
+
constructor(accountName, userDelegationKey) {
|
|
29
|
+
this.accountName = accountName;
|
|
30
|
+
this.userDelegationKey = userDelegationKey;
|
|
31
|
+
this.key = Buffer.from(userDelegationKey.value, "base64");
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Generates a hash signature for an HTTP request or for a SAS.
|
|
35
|
+
*
|
|
36
|
+
* @param stringToSign -
|
|
37
|
+
*/
|
|
38
|
+
computeHMACSHA256(stringToSign) {
|
|
39
|
+
// console.log(`stringToSign: ${JSON.stringify(stringToSign)}`);
|
|
40
|
+
return createHmac("sha256", this.key).update(stringToSign, "utf8").digest("base64");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=UserDelegationKeyCredential.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDelegationKeyCredential.js","sourceRoot":"","sources":["../../../src/credentials/UserDelegationKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAoCzC;;;;;GAKG;AACH,MAAM,OAAO,2BAA2B;IACtC;;OAEG;IACa,WAAW,CAAS;IAEpC;;OAEG;IACa,iBAAiB,CAAoB;IAErD;;OAEG;IACc,GAAG,CAAS;IAE7B;;;;OAIG;IACH,YAAY,WAAmB,EAAE,iBAAoC;QACnE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,YAAoB;QAC3C,gEAAgE;QAEhE,OAAO,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtF,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createHmac } from \"node:crypto\";\n\n/**\n * A user delegation key.\n */\nexport interface UserDelegationKey {\n /**\n * The Azure Active Directory object ID in GUID format.\n */\n signedObjectId: string;\n /**\n * The Azure Active Directory tenant ID in GUID format.\n */\n signedTenantId: string;\n /**\n * The date-time the key is active.\n */\n signedStartsOn: Date;\n /**\n * The date-time the key expires.\n */\n signedExpiresOn: Date;\n /**\n * Abbreviation of the Azure Storage service that accepts the key.\n */\n signedService: string;\n /**\n * The service version that created the key.\n */\n signedVersion: string;\n /**\n * The key as a base64 string.\n */\n value: string;\n}\n\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * UserDelegationKeyCredential is only used for generation of user delegation SAS.\n * @see https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas\n */\nexport class UserDelegationKeyCredential {\n /**\n * Azure Storage account name; readonly.\n */\n public readonly accountName: string;\n\n /**\n * Azure Storage user delegation key; readonly.\n */\n public readonly userDelegationKey: UserDelegationKey;\n\n /**\n * Key value in Buffer type.\n */\n private readonly key: Buffer;\n\n /**\n * Creates an instance of UserDelegationKeyCredential.\n * @param accountName -\n * @param userDelegationKey -\n */\n constructor(accountName: string, userDelegationKey: UserDelegationKey) {\n this.accountName = accountName;\n this.userDelegationKey = userDelegationKey;\n this.key = Buffer.from(userDelegationKey.value, \"base64\");\n }\n\n /**\n * Generates a hash signature for an HTTP request or for a SAS.\n *\n * @param stringToSign -\n */\n public computeHMACSHA256(stringToSign: string): string {\n // console.log(`stringToSign: ${JSON.stringify(stringToSign)}`);\n\n return createHmac(\"sha256\", this.key).update(stringToSign, \"utf8\").digest(\"base64\");\n }\n}\n"]}
|
|
@@ -18,4 +18,5 @@ export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
|
18
18
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
19
19
|
export * from "./StorageRetryPolicyFactory.js";
|
|
20
20
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
21
|
+
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC"}
|
|
@@ -20,4 +20,5 @@ export * from "./policies/StorageSharedKeyCredentialPolicy.js";
|
|
|
20
20
|
export * from "./policies/StorageSharedKeyCredentialPolicyV2.js";
|
|
21
21
|
export * from "./StorageRetryPolicyFactory.js";
|
|
22
22
|
export * from "./policies/StorageRequestFailureDetailsParserPolicy.js";
|
|
23
|
+
export * from "./credentials/UserDelegationKeyCredential.js";
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyType.js\";\nexport * from \"./policies/StorageRetryPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAE5D,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wDAAwD,CAAC;AACvE,cAAc,8CAA8C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./BufferScheduler.js\";\nexport { getCachedDefaultHttpClient } from \"./cache.js\";\n\nexport * from \"./StorageBrowserPolicyFactory.js\";\nexport * from \"./credentials/AnonymousCredential.js\";\nexport * from \"./credentials/Credential.js\";\nexport * from \"./credentials/StorageSharedKeyCredential.js\";\n\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy.js\";\nexport * from \"./policies/AnonymousCredentialPolicy.js\";\nexport * from \"./policies/CredentialPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicy.js\";\nexport * from \"./policies/StorageBrowserPolicyV2.js\";\nexport * from \"./policies/StorageCorrectContentLengthPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyType.js\";\nexport * from \"./policies/StorageRetryPolicy.js\";\nexport * from \"./policies/StorageRetryPolicyV2.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicy.js\";\nexport * from \"./policies/StorageSharedKeyCredentialPolicyV2.js\";\nexport * from \"./StorageRetryPolicyFactory.js\";\nexport * from \"./policies/StorageRequestFailureDetailsParserPolicy.js\";\nexport * from \"./credentials/UserDelegationKeyCredential.js\";\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
|
-
"version": "12.
|
|
6
|
+
"version": "12.2.0-alpha.20251128.2",
|
|
7
7
|
"description": "Azure Storage Common Client Library for JavaScript",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": "github:Azure/azure-sdk-for-js",
|