Bump artifact dependencies if CODEQL_ACTION_ARTIFACT_V2_UPGRADE enabled (#2482)
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
This commit is contained in:
parent
cf5b0a9041
commit
a196a714b8
5388 changed files with 2176737 additions and 71701 deletions
61
node_modules/@azure/core-auth/CHANGELOG.md
generated
vendored
61
node_modules/@azure/core-auth/CHANGELOG.md
generated
vendored
|
|
@ -1,61 +0,0 @@
|
|||
# Release History
|
||||
|
||||
## 1.3.2 (2021-07-01)
|
||||
|
||||
- Added `tenantId` optional property to the `GetTokenOptions` interface. If `tenantId` is set, credentials will be able to use multi-tenant authentication, in the cases when it's enabled.
|
||||
|
||||
## 1.3.0 (2021-03-30)
|
||||
|
||||
- Adds the `AzureNamedKeyCredential` class which supports credential rotation and a corresponding `NamedKeyCredential` interface to support the use of static string-based names and keys in Azure clients.
|
||||
- Adds the `isNamedKeyCredential` and `isSASCredential` typeguard functions similar to the existing `isTokenCredential`.
|
||||
|
||||
## 1.2.0 (2021-02-08)
|
||||
|
||||
- Add `AzureSASCredential` and `SASCredential` for use by service clients which allow authenticiation using a shared access signature.
|
||||
|
||||
## 1.1.4 (2021-01-07)
|
||||
|
||||
- Removed direct dependency on `@opentelemetry/api` and `@azure/core-tracing`.
|
||||
|
||||
## 1.1.3 (2020-06-30)
|
||||
|
||||
- Fix this library to be compatible with ES5 ([#8975](https://github.com/Azure/azure-sdk-for-js/pull/8975))
|
||||
|
||||
## 1.1.2 (2020-04-28)
|
||||
|
||||
- Remove the below interfaces from the public API of this package as they are defined elsewhere.
|
||||
Fixes [bug 8301](https://github.com/Azure/azure-sdk-for-js/issues/8301).
|
||||
- OperationOptions
|
||||
- OperationRequestOptions
|
||||
- OperationTracingOptions
|
||||
- AbortSignalLike
|
||||
|
||||
## 1.1.1 (2020-04-01)
|
||||
|
||||
- Provided down-leveled type declaration files for users of older TypeScript versions between 3.1 and 3.6.
|
||||
|
||||
## 1.1.0 (2020-03-31)
|
||||
|
||||
- Added an `AzureKeyCredential` class that supports credential rotation and a corresponding `KeyCredential` interface to support the use of static string-based keys in Azure clients.
|
||||
|
||||
## 1.0.2 (2019-12-03)
|
||||
|
||||
- Updated to use OpenTelemetry 0.2 via `@azure/core-tracing`
|
||||
|
||||
## 1.0.0 (2019-10-29)
|
||||
|
||||
This release marks the general availability of the `@azure/core-auth` package.
|
||||
|
||||
- Standardizes API to be more consistent with other SDK packages.
|
||||
([PR #5899](https://github.com/Azure/azure-sdk-for-js/pull/5899))
|
||||
- Removed the browser bundle. A browser-compatible library can still be created through the use of a bundler such as Rollup, Webpack, or Parcel.
|
||||
([#5860](https://github.com/Azure/azure-sdk-for-js/pull/5860))
|
||||
|
||||
## 1.0.0-preview.4 (2019-10-22)
|
||||
|
||||
- Removed the `SimpleTokenCredential` implementation since it is not useful outside of test scenarios
|
||||
- Updated to use the latest version of `@azure/core-tracing` package
|
||||
|
||||
## 1.0.0-preview.3 (2019-09-09)
|
||||
|
||||
- Fixed a ping timeout issue. The timeout is now configurable. ([PR #4941](https://github.com/Azure/azure-sdk-for-js/pull/4941))
|
||||
38
node_modules/@azure/core-auth/dist-esm/src/azureKeyCredential.js
generated
vendored
38
node_modules/@azure/core-auth/dist-esm/src/azureKeyCredential.js
generated
vendored
|
|
@ -1,38 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
export class AzureKeyCredential {
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key) {
|
||||
if (!key) {
|
||||
throw new Error("key must be a non-empty string");
|
||||
}
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey) {
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=azureKeyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist-esm/src/azureKeyCredential.js.map
generated
vendored
1
node_modules/@azure/core-auth/dist-esm/src/azureKeyCredential.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"azureKeyCredential.js","sourceRoot":"","sources":["../../src/azureKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAU7B;;;;;OAKG;IACH,YAAY,GAAW;QACrB,IAAI,CAAC,GAAG,EAAE;YACR,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACnD;QAED,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAnBD;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAgBD;;;;;;;OAOG;IACI,MAAM,CAAC,MAAc;QAC1B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * Represents a credential defined by a static API key.\n */\nexport interface KeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n}\n\n/**\n * A static-key-based credential that supports updating\n * the underlying key value.\n */\nexport class AzureKeyCredential implements KeyCredential {\n private _key: string;\n\n /**\n * The value of the key to be used in authentication\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * Create an instance of an AzureKeyCredential for use\n * with a service client.\n *\n * @param key - The initial value of the key to use in authentication\n */\n constructor(key: string) {\n if (!key) {\n throw new Error(\"key must be a non-empty string\");\n }\n\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newKey - The new key value to be used\n */\n public update(newKey: string): void {\n this._key = newKey;\n }\n}\n"]}
|
||||
62
node_modules/@azure/core-auth/dist-esm/src/azureNamedKeyCredential.js
generated
vendored
62
node_modules/@azure/core-auth/dist-esm/src/azureNamedKeyCredential.js
generated
vendored
|
|
@ -1,62 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
import { isObjectWithProperties } from "./typeguards";
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
export class AzureNamedKeyCredential {
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name, key) {
|
||||
if (!name || !key) {
|
||||
throw new TypeError("name and key must be non-empty strings");
|
||||
}
|
||||
this._name = name;
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name() {
|
||||
return this._name;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName, newKey) {
|
||||
if (!newName || !newKey) {
|
||||
throw new TypeError("newName and newKey must be non-empty strings");
|
||||
}
|
||||
this._name = newName;
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
export function isNamedKeyCredential(credential) {
|
||||
return (isObjectWithProperties(credential, ["name", "key"]) &&
|
||||
typeof credential.key === "string" &&
|
||||
typeof credential.name === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureNamedKeyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist-esm/src/azureNamedKeyCredential.js.map
generated
vendored
1
node_modules/@azure/core-auth/dist-esm/src/azureNamedKeyCredential.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"azureNamedKeyCredential.js","sourceRoot":"","sources":["../../src/azureNamedKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAgBtD;;;GAGG;AACH,MAAM,OAAO,uBAAuB;IAkBlC;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,GAAW;QACnC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;YACjB,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;SAC/D;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IA5BD;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAkBD;;;;;;;;OAQG;IACI,MAAM,CAAC,OAAe,EAAE,MAAc;QAC3C,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE;YACvB,MAAM,IAAI,SAAS,CAAC,8CAA8C,CAAC,CAAC;SACrE;QAED,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAAmB;IACtD,OAAO,CACL,sBAAsB,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACnD,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ;QAClC,OAAO,UAAU,CAAC,IAAI,KAAK,QAAQ,CACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { isObjectWithProperties } from \"./typeguards\";\n\n/**\n * Represents a credential defined by a static API name and key.\n */\nexport interface NamedKeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n /**\n * The value of the API name represented as a string.\n */\n readonly name: string;\n}\n\n/**\n * A static name/key-based credential that supports updating\n * the underlying name and key values.\n */\nexport class AzureNamedKeyCredential implements NamedKeyCredential {\n private _key: string;\n private _name: string;\n\n /**\n * The value of the key to be used in authentication.\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * The value of the name to be used in authentication.\n */\n public get name(): string {\n return this._name;\n }\n\n /**\n * Create an instance of an AzureNamedKeyCredential for use\n * with a service client.\n *\n * @param name - The initial value of the name to use in authentication.\n * @param key - The initial value of the key to use in authentication.\n */\n constructor(name: string, key: string) {\n if (!name || !key) {\n throw new TypeError(\"name and key must be non-empty strings\");\n }\n\n this._name = name;\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newName - The new name value to be used.\n * @param newKey - The new key value to be used.\n */\n public update(newName: string, newKey: string): void {\n if (!newName || !newKey) {\n throw new TypeError(\"newName and newKey must be non-empty strings\");\n }\n\n this._name = newName;\n this._key = newKey;\n }\n}\n\n/**\n * Tests an object to determine whether it implements NamedKeyCredential.\n *\n * @param credential - The assumed NamedKeyCredential to be tested.\n */\nexport function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential {\n return (\n isObjectWithProperties(credential, [\"name\", \"key\"]) &&\n typeof credential.key === \"string\" &&\n typeof credential.name === \"string\"\n );\n}\n"]}
|
||||
50
node_modules/@azure/core-auth/dist-esm/src/azureSASCredential.js
generated
vendored
50
node_modules/@azure/core-auth/dist-esm/src/azureSASCredential.js
generated
vendored
|
|
@ -1,50 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
import { isObjectWithProperties } from "./typeguards";
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
export class AzureSASCredential {
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature) {
|
||||
if (!signature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = signature;
|
||||
}
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature() {
|
||||
return this._signature;
|
||||
}
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature) {
|
||||
if (!newSignature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = newSignature;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
export function isSASCredential(credential) {
|
||||
return (isObjectWithProperties(credential, ["signature"]) && typeof credential.signature === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureSASCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist-esm/src/azureSASCredential.js.map
generated
vendored
1
node_modules/@azure/core-auth/dist-esm/src/azureSASCredential.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"azureSASCredential.js","sourceRoot":"","sources":["../../src/azureSASCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAYtD;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAU7B;;;;;OAKG;IACH,YAAY,SAAiB;QAC3B,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;SACvE;QAED,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAnBD;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAgBD;;;;;;;OAOG;IACI,MAAM,CAAC,YAAoB;QAChC,IAAI,CAAC,YAAY,EAAE;YACjB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;SACvE;QAED,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC;IACjC,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,UAAmB;IACjD,OAAO,CACL,sBAAsB,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAC,IAAI,OAAO,UAAU,CAAC,SAAS,KAAK,QAAQ,CAC9F,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { isObjectWithProperties } from \"./typeguards\";\n\n/**\n * Represents a credential defined by a static shared access signature.\n */\nexport interface SASCredential {\n /**\n * The value of the shared access signature represented as a string\n */\n readonly signature: string;\n}\n\n/**\n * A static-signature-based credential that supports updating\n * the underlying signature value.\n */\nexport class AzureSASCredential implements SASCredential {\n private _signature: string;\n\n /**\n * The value of the shared access signature to be used in authentication\n */\n public get signature(): string {\n return this._signature;\n }\n\n /**\n * Create an instance of an AzureSASCredential for use\n * with a service client.\n *\n * @param signature - The initial value of the shared access signature to use in authentication\n */\n constructor(signature: string) {\n if (!signature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = signature;\n }\n\n /**\n * Change the value of the signature.\n *\n * Updates will take effect upon the next request after\n * updating the signature value.\n *\n * @param newSignature - The new shared access signature value to be used\n */\n public update(newSignature: string): void {\n if (!newSignature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = newSignature;\n }\n}\n\n/**\n * Tests an object to determine whether it implements SASCredential.\n *\n * @param credential - The assumed SASCredential to be tested.\n */\nexport function isSASCredential(credential: unknown): credential is SASCredential {\n return (\n isObjectWithProperties(credential, [\"signature\"]) && typeof credential.signature === \"string\"\n );\n}\n"]}
|
||||
7
node_modules/@azure/core-auth/dist-esm/src/index.js
generated
vendored
7
node_modules/@azure/core-auth/dist-esm/src/index.js
generated
vendored
|
|
@ -1,7 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
export { AzureKeyCredential } from "./azureKeyCredential";
|
||||
export { AzureNamedKeyCredential, isNamedKeyCredential } from "./azureNamedKeyCredential";
|
||||
export { AzureSASCredential, isSASCredential } from "./azureSASCredential";
|
||||
export { isTokenCredential } from "./tokenCredential";
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@azure/core-auth/dist-esm/src/index.js.map
generated
vendored
1
node_modules/@azure/core-auth/dist-esm/src/index.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAiB,MAAM,sBAAsB,CAAC;AACzE,OAAO,EACL,uBAAuB,EAEvB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAiB,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE1F,OAAO,EAIL,iBAAiB,EAClB,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { AzureKeyCredential, KeyCredential } from \"./azureKeyCredential\";\nexport {\n AzureNamedKeyCredential,\n NamedKeyCredential,\n isNamedKeyCredential\n} from \"./azureNamedKeyCredential\";\nexport { AzureSASCredential, SASCredential, isSASCredential } from \"./azureSASCredential\";\n\nexport {\n TokenCredential,\n GetTokenOptions,\n AccessToken,\n isTokenCredential\n} from \"./tokenCredential\";\n\nexport { SpanContext, SpanOptions, SpanAttributes, Context, SpanAttributeValue } from \"./tracing\";\n"]}
|
||||
19
node_modules/@azure/core-auth/dist-esm/src/tokenCredential.js
generated
vendored
19
node_modules/@azure/core-auth/dist-esm/src/tokenCredential.js
generated
vendored
|
|
@ -1,19 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
export function isTokenCredential(credential) {
|
||||
// Check for an object with a 'getToken' function and possibly with
|
||||
// a 'signRequest' function. We do this check to make sure that
|
||||
// a ServiceClientCredentials implementor (like TokenClientCredentials
|
||||
// in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if
|
||||
// it doesn't actually implement TokenCredential also.
|
||||
const castCredential = credential;
|
||||
return (castCredential &&
|
||||
typeof castCredential.getToken === "function" &&
|
||||
(castCredential.signRequest === undefined || castCredential.getToken.length > 0));
|
||||
}
|
||||
//# sourceMappingURL=tokenCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist-esm/src/tokenCredential.js.map
generated
vendored
1
node_modules/@azure/core-auth/dist-esm/src/tokenCredential.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"tokenCredential.js","sourceRoot":"","sources":["../../src/tokenCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA2ElC;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAAmB;IACnD,mEAAmE;IACnE,gEAAgE;IAChE,sEAAsE;IACtE,qEAAqE;IACrE,sDAAsD;IACtD,MAAM,cAAc,GAAG,UAGtB,CAAC;IACF,OAAO,CACL,cAAc;QACd,OAAO,cAAc,CAAC,QAAQ,KAAK,UAAU;QAC7C,CAAC,cAAc,CAAC,WAAW,KAAK,SAAS,IAAI,cAAc,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { Context, SpanOptions } from \"./tracing\";\n\n/**\n * Represents a credential capable of providing an authentication token.\n */\nexport interface TokenCredential {\n /**\n * Gets the token provided by this credential.\n *\n * This method is called automatically by Azure SDK client libraries. You may call this method\n * directly, but you must also handle token caching and token refreshing.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;\n}\n\n/**\n * Defines options for TokenCredential.getToken.\n */\nexport interface GetTokenOptions {\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Options used when creating and sending HTTP requests for this operation.\n */\n requestOptions?: {\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n */\n timeout?: number;\n };\n /**\n * Options used when tracing is enabled.\n */\n tracingOptions?: {\n /**\n * OpenTelemetry SpanOptions used to create a span when tracing is enabled.\n */\n spanOptions?: SpanOptions;\n\n /**\n * OpenTelemetry context\n */\n tracingContext?: Context;\n };\n\n /**\n * Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.\n */\n tenantId?: string;\n}\n\n/**\n * Represents an access token with an expiration time.\n */\nexport interface AccessToken {\n /**\n * The access token returned by the authentication service.\n */\n token: string;\n\n /**\n * The access token's expiration timestamp in milliseconds, UNIX epoch time.\n */\n expiresOnTimestamp: number;\n}\n\n/**\n * Tests an object to determine whether it implements TokenCredential.\n *\n * @param credential - The assumed TokenCredential to be tested.\n */\nexport function isTokenCredential(credential: unknown): credential is TokenCredential {\n // Check for an object with a 'getToken' function and possibly with\n // a 'signRequest' function. We do this check to make sure that\n // a ServiceClientCredentials implementor (like TokenClientCredentials\n // in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if\n // it doesn't actually implement TokenCredential also.\n const castCredential = credential as {\n getToken: unknown;\n signRequest: unknown;\n };\n return (\n castCredential &&\n typeof castCredential.getToken === \"function\" &&\n (castCredential.signRequest === undefined || castCredential.getToken.length > 0)\n );\n}\n"]}
|
||||
4
node_modules/@azure/core-auth/dist-esm/src/tracing.js
generated
vendored
4
node_modules/@azure/core-auth/dist-esm/src/tracing.js
generated
vendored
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
export {};
|
||||
//# sourceMappingURL=tracing.js.map
|
||||
1
node_modules/@azure/core-auth/dist-esm/src/tracing.js.map
generated
vendored
1
node_modules/@azure/core-auth/dist-esm/src/tracing.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// The interfaces in this file should be kept in sync with those\n// found in the `@azure/core-tracing` package.\n\n/**\n * Attributes for a Span.\n */\nexport interface SpanAttributes {\n /**\n * Span attributes.\n */\n [attributeKey: string]: SpanAttributeValue | undefined;\n}\n/**\n * Attribute values may be any non-nullish primitive value except an object.\n *\n * null or undefined attribute values are invalid and will result in undefined behavior.\n */\nexport declare type SpanAttributeValue =\n | string\n | number\n | boolean\n | Array<null | undefined | string>\n | Array<null | undefined | number>\n | Array<null | undefined | boolean>;\n\n/**\n * An interface that enables manual propagation of Spans.\n */\nexport interface SpanOptions {\n /**\n * Attributes to set on the Span\n */\n attributes?: SpanAttributes;\n}\n\n/**\n * A light interface that tries to be structurally compatible with OpenTelemetry.\n */\nexport declare interface SpanContext {\n /**\n * UUID of a trace.\n */\n traceId: string;\n /**\n * UUID of a Span.\n */\n spanId: string;\n /**\n * https://www.w3.org/TR/trace-context/#trace-flags\n */\n traceFlags: number;\n}\n\n/**\n * An interface structurally compatible with OpenTelemetry.\n */\nexport interface Context {\n /**\n * Get a value from the context.\n *\n * @param key - key which identifies a context value\n */\n getValue(key: symbol): unknown;\n /**\n * Create a new context which inherits from this context and has\n * the given key set to the given value.\n *\n * @param key - context key for which to set the value\n * @param value - value to set for the given key\n */\n setValue(key: symbol, value: unknown): Context;\n /**\n * Return a new context which inherits from this context but does\n * not contain a value for the given key.\n *\n * @param key - context key for which to clear a value\n */\n deleteValue(key: symbol): Context;\n}\n"]}
|
||||
39
node_modules/@azure/core-auth/dist-esm/src/typeguards.js
generated
vendored
39
node_modules/@azure/core-auth/dist-esm/src/typeguards.js
generated
vendored
|
|
@ -1,39 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* Helper TypeGuard that checks if something is defined or not.
|
||||
* @param thing - Anything
|
||||
* @internal
|
||||
*/
|
||||
function isDefined(thing) {
|
||||
return typeof thing !== "undefined" && thing !== null;
|
||||
}
|
||||
/**
|
||||
* Helper TypeGuard that checks if the input is an object with the specified properties.
|
||||
* Note: The properties may be inherited.
|
||||
* @param thing - Anything.
|
||||
* @param properties - The name of the properties that should appear in the object.
|
||||
* @internal
|
||||
*/
|
||||
export function isObjectWithProperties(thing, properties) {
|
||||
if (!isDefined(thing) || typeof thing !== "object") {
|
||||
return false;
|
||||
}
|
||||
for (const property of properties) {
|
||||
if (!objectHasProperty(thing, property)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* Helper TypeGuard that checks if the input is an object with the specified property.
|
||||
* Note: The property may be inherited.
|
||||
* @param thing - Any object.
|
||||
* @param property - The name of the property that should appear in the object.
|
||||
* @internal
|
||||
*/
|
||||
function objectHasProperty(thing, property) {
|
||||
return typeof thing === "object" && property in thing;
|
||||
}
|
||||
//# sourceMappingURL=typeguards.js.map
|
||||
1
node_modules/@azure/core-auth/dist-esm/src/typeguards.js.map
generated
vendored
1
node_modules/@azure/core-auth/dist-esm/src/typeguards.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"typeguards.js","sourceRoot":"","sources":["../../src/typeguards.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;GAIG;AACH,SAAS,SAAS,CAAI,KAA2B;IAC/C,OAAO,OAAO,KAAK,KAAK,WAAW,IAAI,KAAK,KAAK,IAAI,CAAC;AACxD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CACpC,KAAY,EACZ,UAA0B;IAE1B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAClD,OAAO,KAAK,CAAC;KACd;IAED,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE;QACjC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE;YACvC,OAAO,KAAK,CAAC;SACd;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;GAMG;AACH,SAAS,iBAAiB,CACxB,KAAY,EACZ,QAAsB;IAEtB,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAK,KAAiC,CAAC;AACrF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * Helper TypeGuard that checks if something is defined or not.\n * @param thing - Anything\n * @internal\n */\nfunction isDefined<T>(thing: T | undefined | null): thing is T {\n return typeof thing !== \"undefined\" && thing !== null;\n}\n\n/**\n * Helper TypeGuard that checks if the input is an object with the specified properties.\n * Note: The properties may be inherited.\n * @param thing - Anything.\n * @param properties - The name of the properties that should appear in the object.\n * @internal\n */\nexport function isObjectWithProperties<Thing extends unknown, PropertyName extends string>(\n thing: Thing,\n properties: PropertyName[]\n): thing is Thing & Record<PropertyName, unknown> {\n if (!isDefined(thing) || typeof thing !== \"object\") {\n return false;\n }\n\n for (const property of properties) {\n if (!objectHasProperty(thing, property)) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Helper TypeGuard that checks if the input is an object with the specified property.\n * Note: The property may be inherited.\n * @param thing - Any object.\n * @param property - The name of the property that should appear in the object.\n * @internal\n */\nfunction objectHasProperty<Thing extends unknown, PropertyName extends string>(\n thing: Thing,\n property: PropertyName\n): thing is Thing & Record<PropertyName, unknown> {\n return typeof thing === \"object\" && property in (thing as Record<string, unknown>);\n}\n"]}
|
||||
29
node_modules/@azure/core-auth/dist/browser/azureKeyCredential.d.ts
generated
vendored
Normal file
29
node_modules/@azure/core-auth/dist/browser/azureKeyCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { KeyCredential } from "./keyCredential.js";
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
export declare class AzureKeyCredential implements KeyCredential {
|
||||
private _key;
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey: string): void;
|
||||
}
|
||||
//# sourceMappingURL=azureKeyCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/azureKeyCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/azureKeyCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureKeyCredential.d.ts","sourceRoot":"","sources":["../../src/azureKeyCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,IAAI,CAAS;IAErB;;OAEG;IACH,IAAW,GAAG,IAAI,MAAM,CAEvB;IAED;;;;;OAKG;gBACS,GAAG,EAAE,MAAM;IAQvB;;;;;;;OAOG;IACI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAGpC"}
|
||||
38
node_modules/@azure/core-auth/dist/browser/azureKeyCredential.js
generated
vendored
Normal file
38
node_modules/@azure/core-auth/dist/browser/azureKeyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
export class AzureKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key) {
|
||||
if (!key) {
|
||||
throw new Error("key must be a non-empty string");
|
||||
}
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey) {
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=azureKeyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/azureKeyCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/azureKeyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureKeyCredential.js","sourceRoot":"","sources":["../../src/azureKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAG7B;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,YAAY,GAAW;QACrB,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACpD,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,MAAc;QAC1B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { KeyCredential } from \"./keyCredential.js\";\n\n/**\n * A static-key-based credential that supports updating\n * the underlying key value.\n */\nexport class AzureKeyCredential implements KeyCredential {\n private _key: string;\n\n /**\n * The value of the key to be used in authentication\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * Create an instance of an AzureKeyCredential for use\n * with a service client.\n *\n * @param key - The initial value of the key to use in authentication\n */\n constructor(key: string) {\n if (!key) {\n throw new Error(\"key must be a non-empty string\");\n }\n\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newKey - The new key value to be used\n */\n public update(newKey: string): void {\n this._key = newKey;\n }\n}\n"]}
|
||||
54
node_modules/@azure/core-auth/dist/browser/azureNamedKeyCredential.d.ts
generated
vendored
Normal file
54
node_modules/@azure/core-auth/dist/browser/azureNamedKeyCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* Represents a credential defined by a static API name and key.
|
||||
*/
|
||||
export interface NamedKeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
/**
|
||||
* The value of the API name represented as a string.
|
||||
*/
|
||||
readonly name: string;
|
||||
}
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
export declare class AzureNamedKeyCredential implements NamedKeyCredential {
|
||||
private _key;
|
||||
private _name;
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name(): string;
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name: string, key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName: string, newKey: string): void;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
export declare function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential;
|
||||
//# sourceMappingURL=azureNamedKeyCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/azureNamedKeyCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/azureNamedKeyCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureNamedKeyCredential.d.ts","sourceRoot":"","sources":["../../src/azureNamedKeyCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,uBAAwB,YAAW,kBAAkB;IAChE,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,KAAK,CAAS;IAEtB;;OAEG;IACH,IAAW,GAAG,IAAI,MAAM,CAEvB;IAED;;OAEG;IACH,IAAW,IAAI,IAAI,MAAM,CAExB;IAED;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IASrC;;;;;;;;OAQG;IACI,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;CAQrD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,kBAAkB,CAM1F"}
|
||||
62
node_modules/@azure/core-auth/dist/browser/azureNamedKeyCredential.js
generated
vendored
Normal file
62
node_modules/@azure/core-auth/dist/browser/azureNamedKeyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { isObjectWithProperties } from "@azure/core-util";
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
export class AzureNamedKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name() {
|
||||
return this._name;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name, key) {
|
||||
if (!name || !key) {
|
||||
throw new TypeError("name and key must be non-empty strings");
|
||||
}
|
||||
this._name = name;
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName, newKey) {
|
||||
if (!newName || !newKey) {
|
||||
throw new TypeError("newName and newKey must be non-empty strings");
|
||||
}
|
||||
this._name = newName;
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
export function isNamedKeyCredential(credential) {
|
||||
return (isObjectWithProperties(credential, ["name", "key"]) &&
|
||||
typeof credential.key === "string" &&
|
||||
typeof credential.name === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureNamedKeyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/azureNamedKeyCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/azureNamedKeyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureNamedKeyCredential.js","sourceRoot":"","sources":["../../src/azureNamedKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAgB1D;;;GAGG;AACH,MAAM,OAAO,uBAAuB;IAIlC;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,GAAW;QACnC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YAClB,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,OAAe,EAAE,MAAc;QAC3C,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,IAAI,SAAS,CAAC,8CAA8C,CAAC,CAAC;QACtE,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAAmB;IACtD,OAAO,CACL,sBAAsB,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACnD,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ;QAClC,OAAO,UAAU,CAAC,IAAI,KAAK,QAAQ,CACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static API name and key.\n */\nexport interface NamedKeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n /**\n * The value of the API name represented as a string.\n */\n readonly name: string;\n}\n\n/**\n * A static name/key-based credential that supports updating\n * the underlying name and key values.\n */\nexport class AzureNamedKeyCredential implements NamedKeyCredential {\n private _key: string;\n private _name: string;\n\n /**\n * The value of the key to be used in authentication.\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * The value of the name to be used in authentication.\n */\n public get name(): string {\n return this._name;\n }\n\n /**\n * Create an instance of an AzureNamedKeyCredential for use\n * with a service client.\n *\n * @param name - The initial value of the name to use in authentication.\n * @param key - The initial value of the key to use in authentication.\n */\n constructor(name: string, key: string) {\n if (!name || !key) {\n throw new TypeError(\"name and key must be non-empty strings\");\n }\n\n this._name = name;\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newName - The new name value to be used.\n * @param newKey - The new key value to be used.\n */\n public update(newName: string, newKey: string): void {\n if (!newName || !newKey) {\n throw new TypeError(\"newName and newKey must be non-empty strings\");\n }\n\n this._name = newName;\n this._key = newKey;\n }\n}\n\n/**\n * Tests an object to determine whether it implements NamedKeyCredential.\n *\n * @param credential - The assumed NamedKeyCredential to be tested.\n */\nexport function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential {\n return (\n isObjectWithProperties(credential, [\"name\", \"key\"]) &&\n typeof credential.key === \"string\" &&\n typeof credential.name === \"string\"\n );\n}\n"]}
|
||||
43
node_modules/@azure/core-auth/dist/browser/azureSASCredential.d.ts
generated
vendored
Normal file
43
node_modules/@azure/core-auth/dist/browser/azureSASCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/**
|
||||
* Represents a credential defined by a static shared access signature.
|
||||
*/
|
||||
export interface SASCredential {
|
||||
/**
|
||||
* The value of the shared access signature represented as a string
|
||||
*/
|
||||
readonly signature: string;
|
||||
}
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
export declare class AzureSASCredential implements SASCredential {
|
||||
private _signature;
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature(): string;
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature: string);
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature: string): void;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
export declare function isSASCredential(credential: unknown): credential is SASCredential;
|
||||
//# sourceMappingURL=azureSASCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/azureSASCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/azureSASCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureSASCredential.d.ts","sourceRoot":"","sources":["../../src/azureSASCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,UAAU,CAAS;IAE3B;;OAEG;IACH,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED;;;;;OAKG;gBACS,SAAS,EAAE,MAAM;IAQ7B;;;;;;;OAOG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;CAO1C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,aAAa,CAIhF"}
|
||||
50
node_modules/@azure/core-auth/dist/browser/azureSASCredential.js
generated
vendored
Normal file
50
node_modules/@azure/core-auth/dist/browser/azureSASCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { isObjectWithProperties } from "@azure/core-util";
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
export class AzureSASCredential {
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature() {
|
||||
return this._signature;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature) {
|
||||
if (!signature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = signature;
|
||||
}
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature) {
|
||||
if (!newSignature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = newSignature;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
export function isSASCredential(credential) {
|
||||
return (isObjectWithProperties(credential, ["signature"]) && typeof credential.signature === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureSASCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/azureSASCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/azureSASCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureSASCredential.js","sourceRoot":"","sources":["../../src/azureSASCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAY1D;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAG7B;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;;;OAKG;IACH,YAAY,SAAiB;QAC3B,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,YAAoB;QAChC,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC;IACjC,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,UAAmB;IACjD,OAAO,CACL,sBAAsB,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAC,IAAI,OAAO,UAAU,CAAC,SAAS,KAAK,QAAQ,CAC9F,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static shared access signature.\n */\nexport interface SASCredential {\n /**\n * The value of the shared access signature represented as a string\n */\n readonly signature: string;\n}\n\n/**\n * A static-signature-based credential that supports updating\n * the underlying signature value.\n */\nexport class AzureSASCredential implements SASCredential {\n private _signature: string;\n\n /**\n * The value of the shared access signature to be used in authentication\n */\n public get signature(): string {\n return this._signature;\n }\n\n /**\n * Create an instance of an AzureSASCredential for use\n * with a service client.\n *\n * @param signature - The initial value of the shared access signature to use in authentication\n */\n constructor(signature: string) {\n if (!signature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = signature;\n }\n\n /**\n * Change the value of the signature.\n *\n * Updates will take effect upon the next request after\n * updating the signature value.\n *\n * @param newSignature - The new shared access signature value to be used\n */\n public update(newSignature: string): void {\n if (!newSignature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = newSignature;\n }\n}\n\n/**\n * Tests an object to determine whether it implements SASCredential.\n *\n * @param credential - The assumed SASCredential to be tested.\n */\nexport function isSASCredential(credential: unknown): credential is SASCredential {\n return (\n isObjectWithProperties(credential, [\"signature\"]) && typeof credential.signature === \"string\"\n );\n}\n"]}
|
||||
7
node_modules/@azure/core-auth/dist/browser/index.d.ts
generated
vendored
Normal file
7
node_modules/@azure/core-auth/dist/browser/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export { AzureKeyCredential } from "./azureKeyCredential.js";
|
||||
export { KeyCredential, isKeyCredential } from "./keyCredential.js";
|
||||
export { AzureNamedKeyCredential, NamedKeyCredential, isNamedKeyCredential, } from "./azureNamedKeyCredential.js";
|
||||
export { AzureSASCredential, SASCredential, isSASCredential } from "./azureSASCredential.js";
|
||||
export { TokenCredential, GetTokenOptions, AccessToken, isTokenCredential, } from "./tokenCredential.js";
|
||||
export { TracingContext } from "./tracing.js";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/index.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE7F,OAAO,EACL,eAAe,EACf,eAAe,EACf,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
||||
8
node_modules/@azure/core-auth/dist/browser/index.js
generated
vendored
Normal file
8
node_modules/@azure/core-auth/dist/browser/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export { AzureKeyCredential } from "./azureKeyCredential.js";
|
||||
export { isKeyCredential } from "./keyCredential.js";
|
||||
export { AzureNamedKeyCredential, isNamedKeyCredential, } from "./azureNamedKeyCredential.js";
|
||||
export { AzureSASCredential, isSASCredential } from "./azureSASCredential.js";
|
||||
export { isTokenCredential, } from "./tokenCredential.js";
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/index.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/index.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAiB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EACL,uBAAuB,EAEvB,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAiB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE7F,OAAO,EAIL,iBAAiB,GAClB,MAAM,sBAAsB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { AzureKeyCredential } from \"./azureKeyCredential.js\";\nexport { KeyCredential, isKeyCredential } from \"./keyCredential.js\";\nexport {\n AzureNamedKeyCredential,\n NamedKeyCredential,\n isNamedKeyCredential,\n} from \"./azureNamedKeyCredential.js\";\nexport { AzureSASCredential, SASCredential, isSASCredential } from \"./azureSASCredential.js\";\n\nexport {\n TokenCredential,\n GetTokenOptions,\n AccessToken,\n isTokenCredential,\n} from \"./tokenCredential.js\";\n\nexport { TracingContext } from \"./tracing.js\";\n"]}
|
||||
16
node_modules/@azure/core-auth/dist/browser/keyCredential.d.ts
generated
vendored
Normal file
16
node_modules/@azure/core-auth/dist/browser/keyCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Represents a credential defined by a static API key.
|
||||
*/
|
||||
export interface KeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
export declare function isKeyCredential(credential: unknown): credential is KeyCredential;
|
||||
//# sourceMappingURL=keyCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/keyCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/keyCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"keyCredential.d.ts","sourceRoot":"","sources":["../../src/keyCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,aAAa,CAEhF"}
|
||||
12
node_modules/@azure/core-auth/dist/browser/keyCredential.js
generated
vendored
Normal file
12
node_modules/@azure/core-auth/dist/browser/keyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { isObjectWithProperties } from "@azure/core-util";
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
export function isKeyCredential(credential) {
|
||||
return isObjectWithProperties(credential, ["key"]) && typeof credential.key === "string";
|
||||
}
|
||||
//# sourceMappingURL=keyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/keyCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/keyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"keyCredential.js","sourceRoot":"","sources":["../../src/keyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAY1D;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,UAAmB;IACjD,OAAO,sBAAsB,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ,CAAC;AAC3F,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static API key.\n */\nexport interface KeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n}\n\n/**\n * Tests an object to determine whether it implements KeyCredential.\n *\n * @param credential - The assumed KeyCredential to be tested.\n */\nexport function isKeyCredential(credential: unknown): credential is KeyCredential {\n return isObjectWithProperties(credential, [\"key\"]) && typeof credential.key === \"string\";\n}\n"]}
|
||||
3
node_modules/@azure/core-auth/dist/browser/package.json
generated
vendored
Normal file
3
node_modules/@azure/core-auth/dist/browser/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"type": "module"
|
||||
}
|
||||
81
node_modules/@azure/core-auth/dist/browser/tokenCredential.d.ts
generated
vendored
Normal file
81
node_modules/@azure/core-auth/dist/browser/tokenCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
import { AbortSignalLike } from "@azure/abort-controller";
|
||||
import { TracingContext } from "./tracing.js";
|
||||
/**
|
||||
* Represents a credential capable of providing an authentication token.
|
||||
*/
|
||||
export interface TokenCredential {
|
||||
/**
|
||||
* Gets the token provided by this credential.
|
||||
*
|
||||
* This method is called automatically by Azure SDK client libraries. You may call this method
|
||||
* directly, but you must also handle token caching and token refreshing.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure any requests this
|
||||
* TokenCredential implementation might make.
|
||||
*/
|
||||
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
|
||||
}
|
||||
/**
|
||||
* Defines options for TokenCredential.getToken.
|
||||
*/
|
||||
export interface GetTokenOptions {
|
||||
/**
|
||||
* The signal which can be used to abort requests.
|
||||
*/
|
||||
abortSignal?: AbortSignalLike;
|
||||
/**
|
||||
* Options used when creating and sending HTTP requests for this operation.
|
||||
*/
|
||||
requestOptions?: {
|
||||
/**
|
||||
* The number of milliseconds a request can take before automatically being terminated.
|
||||
*/
|
||||
timeout?: number;
|
||||
};
|
||||
/**
|
||||
* Options used when tracing is enabled.
|
||||
*/
|
||||
tracingOptions?: {
|
||||
/**
|
||||
* Tracing Context for the current request.
|
||||
*/
|
||||
tracingContext?: TracingContext;
|
||||
};
|
||||
/**
|
||||
* Claim details to perform the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
claims?: string;
|
||||
/**
|
||||
* Indicates whether to enable the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
enableCae?: boolean;
|
||||
/**
|
||||
* Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.
|
||||
*/
|
||||
tenantId?: string;
|
||||
}
|
||||
/**
|
||||
* Represents an access token with an expiration time.
|
||||
*/
|
||||
export interface AccessToken {
|
||||
/**
|
||||
* The access token returned by the authentication service.
|
||||
*/
|
||||
token: string;
|
||||
/**
|
||||
* The access token's expiration timestamp in milliseconds, UNIX epoch time.
|
||||
*/
|
||||
expiresOnTimestamp: number;
|
||||
/**
|
||||
* The timestamp when the access token should be refreshed, in milliseconds, UNIX epoch time.
|
||||
*/
|
||||
refreshAfterTimestamp?: number;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
export declare function isTokenCredential(credential: unknown): credential is TokenCredential;
|
||||
//# sourceMappingURL=tokenCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/tokenCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/tokenCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tokenCredential.d.ts","sourceRoot":"","sources":["../../src/tokenCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC7F;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF;;OAEG;IACH,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,cAAc,CAAC,EAAE,cAAc,CAAC;KACjC,CAAC;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,eAAe,CAepF"}
|
||||
19
node_modules/@azure/core-auth/dist/browser/tokenCredential.js
generated
vendored
Normal file
19
node_modules/@azure/core-auth/dist/browser/tokenCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
export function isTokenCredential(credential) {
|
||||
// Check for an object with a 'getToken' function and possibly with
|
||||
// a 'signRequest' function. We do this check to make sure that
|
||||
// a ServiceClientCredentials implementor (like TokenClientCredentials
|
||||
// in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if
|
||||
// it doesn't actually implement TokenCredential also.
|
||||
const castCredential = credential;
|
||||
return (castCredential &&
|
||||
typeof castCredential.getToken === "function" &&
|
||||
(castCredential.signRequest === undefined || castCredential.getToken.length > 0));
|
||||
}
|
||||
//# sourceMappingURL=tokenCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/tokenCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/tokenCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tokenCredential.js","sourceRoot":"","sources":["../../src/tokenCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAkFlC;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAAmB;IACnD,mEAAmE;IACnE,gEAAgE;IAChE,sEAAsE;IACtE,qEAAqE;IACrE,sDAAsD;IACtD,MAAM,cAAc,GAAG,UAGtB,CAAC;IACF,OAAO,CACL,cAAc;QACd,OAAO,cAAc,CAAC,QAAQ,KAAK,UAAU;QAC7C,CAAC,cAAc,CAAC,WAAW,KAAK,SAAS,IAAI,cAAc,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { TracingContext } from \"./tracing.js\";\n\n/**\n * Represents a credential capable of providing an authentication token.\n */\nexport interface TokenCredential {\n /**\n * Gets the token provided by this credential.\n *\n * This method is called automatically by Azure SDK client libraries. You may call this method\n * directly, but you must also handle token caching and token refreshing.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;\n}\n\n/**\n * Defines options for TokenCredential.getToken.\n */\nexport interface GetTokenOptions {\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Options used when creating and sending HTTP requests for this operation.\n */\n requestOptions?: {\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n */\n timeout?: number;\n };\n /**\n * Options used when tracing is enabled.\n */\n tracingOptions?: {\n /**\n * Tracing Context for the current request.\n */\n tracingContext?: TracingContext;\n };\n /**\n * Claim details to perform the Continuous Access Evaluation authentication flow\n */\n claims?: string;\n /**\n * Indicates whether to enable the Continuous Access Evaluation authentication flow\n */\n enableCae?: boolean;\n /**\n * Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.\n */\n tenantId?: string;\n}\n\n/**\n * Represents an access token with an expiration time.\n */\nexport interface AccessToken {\n /**\n * The access token returned by the authentication service.\n */\n token: string;\n\n /**\n * The access token's expiration timestamp in milliseconds, UNIX epoch time.\n */\n expiresOnTimestamp: number;\n\n /**\n * The timestamp when the access token should be refreshed, in milliseconds, UNIX epoch time.\n */\n refreshAfterTimestamp?: number;\n}\n\n/**\n * Tests an object to determine whether it implements TokenCredential.\n *\n * @param credential - The assumed TokenCredential to be tested.\n */\nexport function isTokenCredential(credential: unknown): credential is TokenCredential {\n // Check for an object with a 'getToken' function and possibly with\n // a 'signRequest' function. We do this check to make sure that\n // a ServiceClientCredentials implementor (like TokenClientCredentials\n // in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if\n // it doesn't actually implement TokenCredential also.\n const castCredential = credential as {\n getToken: unknown;\n signRequest: unknown;\n };\n return (\n castCredential &&\n typeof castCredential.getToken === \"function\" &&\n (castCredential.signRequest === undefined || castCredential.getToken.length > 0)\n );\n}\n"]}
|
||||
27
node_modules/@azure/core-auth/dist/browser/tracing.d.ts
generated
vendored
Normal file
27
node_modules/@azure/core-auth/dist/browser/tracing.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* An interface structurally compatible with OpenTelemetry.
|
||||
*/
|
||||
export interface TracingContext {
|
||||
/**
|
||||
* Get a value from the context.
|
||||
*
|
||||
* @param key - key which identifies a context value
|
||||
*/
|
||||
getValue(key: symbol): unknown;
|
||||
/**
|
||||
* Create a new context which inherits from this context and has
|
||||
* the given key set to the given value.
|
||||
*
|
||||
* @param key - context key for which to set the value
|
||||
* @param value - value to set for the given key
|
||||
*/
|
||||
setValue(key: symbol, value: unknown): TracingContext;
|
||||
/**
|
||||
* Return a new context which inherits from this context but does
|
||||
* not contain a value for the given key.
|
||||
*
|
||||
* @param key - context key for which to clear a value
|
||||
*/
|
||||
deleteValue(key: symbol): TracingContext;
|
||||
}
|
||||
//# sourceMappingURL=tracing.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/tracing.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/tracing.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/B;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,cAAc,CAAC;IACtD;;;;;OAKG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC;CAC1C"}
|
||||
4
node_modules/@azure/core-auth/dist/browser/tracing.js
generated
vendored
Normal file
4
node_modules/@azure/core-auth/dist/browser/tracing.js
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=tracing.js.map
|
||||
1
node_modules/@azure/core-auth/dist/browser/tracing.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/browser/tracing.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// The interfaces in this file should be kept in sync with those\n// found in the `@azure/core-tracing` package.\n\n/**\n * An interface structurally compatible with OpenTelemetry.\n */\nexport interface TracingContext {\n /**\n * Get a value from the context.\n *\n * @param key - key which identifies a context value\n */\n getValue(key: symbol): unknown;\n /**\n * Create a new context which inherits from this context and has\n * the given key set to the given value.\n *\n * @param key - context key for which to set the value\n * @param value - value to set for the given key\n */\n setValue(key: symbol, value: unknown): TracingContext;\n /**\n * Return a new context which inherits from this context but does\n * not contain a value for the given key.\n *\n * @param key - context key for which to clear a value\n */\n deleteValue(key: symbol): TracingContext;\n}\n"]}
|
||||
29
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.d.ts
generated
vendored
Normal file
29
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { KeyCredential } from "./keyCredential.js";
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
export declare class AzureKeyCredential implements KeyCredential {
|
||||
private _key;
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey: string): void;
|
||||
}
|
||||
//# sourceMappingURL=azureKeyCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureKeyCredential.d.ts","sourceRoot":"","sources":["../../src/azureKeyCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,IAAI,CAAS;IAErB;;OAEG;IACH,IAAW,GAAG,IAAI,MAAM,CAEvB;IAED;;;;;OAKG;gBACS,GAAG,EAAE,MAAM;IAQvB;;;;;;;OAOG;IACI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAGpC"}
|
||||
42
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.js
generated
vendored
Normal file
42
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AzureKeyCredential = void 0;
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
class AzureKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key) {
|
||||
if (!key) {
|
||||
throw new Error("key must be a non-empty string");
|
||||
}
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey) {
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
exports.AzureKeyCredential = AzureKeyCredential;
|
||||
//# sourceMappingURL=azureKeyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureKeyCredential.js","sourceRoot":"","sources":["../../src/azureKeyCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAIlC;;;GAGG;AACH,MAAa,kBAAkB;IAG7B;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,YAAY,GAAW;QACrB,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACpD,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,MAAc;QAC1B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF;AAnCD,gDAmCC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { KeyCredential } from \"./keyCredential.js\";\n\n/**\n * A static-key-based credential that supports updating\n * the underlying key value.\n */\nexport class AzureKeyCredential implements KeyCredential {\n private _key: string;\n\n /**\n * The value of the key to be used in authentication\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * Create an instance of an AzureKeyCredential for use\n * with a service client.\n *\n * @param key - The initial value of the key to use in authentication\n */\n constructor(key: string) {\n if (!key) {\n throw new Error(\"key must be a non-empty string\");\n }\n\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newKey - The new key value to be used\n */\n public update(newKey: string): void {\n this._key = newKey;\n }\n}\n"]}
|
||||
54
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.d.ts
generated
vendored
Normal file
54
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* Represents a credential defined by a static API name and key.
|
||||
*/
|
||||
export interface NamedKeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
/**
|
||||
* The value of the API name represented as a string.
|
||||
*/
|
||||
readonly name: string;
|
||||
}
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
export declare class AzureNamedKeyCredential implements NamedKeyCredential {
|
||||
private _key;
|
||||
private _name;
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name(): string;
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name: string, key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName: string, newKey: string): void;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
export declare function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential;
|
||||
//# sourceMappingURL=azureNamedKeyCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureNamedKeyCredential.d.ts","sourceRoot":"","sources":["../../src/azureNamedKeyCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,uBAAwB,YAAW,kBAAkB;IAChE,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,KAAK,CAAS;IAEtB;;OAEG;IACH,IAAW,GAAG,IAAI,MAAM,CAEvB;IAED;;OAEG;IACH,IAAW,IAAI,IAAI,MAAM,CAExB;IAED;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IASrC;;;;;;;;OAQG;IACI,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;CAQrD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,kBAAkB,CAM1F"}
|
||||
67
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.js
generated
vendored
Normal file
67
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AzureNamedKeyCredential = void 0;
|
||||
exports.isNamedKeyCredential = isNamedKeyCredential;
|
||||
const core_util_1 = require("@azure/core-util");
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
class AzureNamedKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name() {
|
||||
return this._name;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name, key) {
|
||||
if (!name || !key) {
|
||||
throw new TypeError("name and key must be non-empty strings");
|
||||
}
|
||||
this._name = name;
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName, newKey) {
|
||||
if (!newName || !newKey) {
|
||||
throw new TypeError("newName and newKey must be non-empty strings");
|
||||
}
|
||||
this._name = newName;
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
exports.AzureNamedKeyCredential = AzureNamedKeyCredential;
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
function isNamedKeyCredential(credential) {
|
||||
return ((0, core_util_1.isObjectWithProperties)(credential, ["name", "key"]) &&
|
||||
typeof credential.key === "string" &&
|
||||
typeof credential.name === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureNamedKeyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureNamedKeyCredential.js","sourceRoot":"","sources":["../../src/azureNamedKeyCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAgFlC,oDAMC;AApFD,gDAA0D;AAgB1D;;;GAGG;AACH,MAAa,uBAAuB;IAIlC;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,GAAW;QACnC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YAClB,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,OAAe,EAAE,MAAc;QAC3C,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,IAAI,SAAS,CAAC,8CAA8C,CAAC,CAAC;QACtE,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF;AAnDD,0DAmDC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,UAAmB;IACtD,OAAO,CACL,IAAA,kCAAsB,EAAC,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACnD,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ;QAClC,OAAO,UAAU,CAAC,IAAI,KAAK,QAAQ,CACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static API name and key.\n */\nexport interface NamedKeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n /**\n * The value of the API name represented as a string.\n */\n readonly name: string;\n}\n\n/**\n * A static name/key-based credential that supports updating\n * the underlying name and key values.\n */\nexport class AzureNamedKeyCredential implements NamedKeyCredential {\n private _key: string;\n private _name: string;\n\n /**\n * The value of the key to be used in authentication.\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * The value of the name to be used in authentication.\n */\n public get name(): string {\n return this._name;\n }\n\n /**\n * Create an instance of an AzureNamedKeyCredential for use\n * with a service client.\n *\n * @param name - The initial value of the name to use in authentication.\n * @param key - The initial value of the key to use in authentication.\n */\n constructor(name: string, key: string) {\n if (!name || !key) {\n throw new TypeError(\"name and key must be non-empty strings\");\n }\n\n this._name = name;\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newName - The new name value to be used.\n * @param newKey - The new key value to be used.\n */\n public update(newName: string, newKey: string): void {\n if (!newName || !newKey) {\n throw new TypeError(\"newName and newKey must be non-empty strings\");\n }\n\n this._name = newName;\n this._key = newKey;\n }\n}\n\n/**\n * Tests an object to determine whether it implements NamedKeyCredential.\n *\n * @param credential - The assumed NamedKeyCredential to be tested.\n */\nexport function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential {\n return (\n isObjectWithProperties(credential, [\"name\", \"key\"]) &&\n typeof credential.key === \"string\" &&\n typeof credential.name === \"string\"\n );\n}\n"]}
|
||||
43
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.d.ts
generated
vendored
Normal file
43
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/**
|
||||
* Represents a credential defined by a static shared access signature.
|
||||
*/
|
||||
export interface SASCredential {
|
||||
/**
|
||||
* The value of the shared access signature represented as a string
|
||||
*/
|
||||
readonly signature: string;
|
||||
}
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
export declare class AzureSASCredential implements SASCredential {
|
||||
private _signature;
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature(): string;
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature: string);
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature: string): void;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
export declare function isSASCredential(credential: unknown): credential is SASCredential;
|
||||
//# sourceMappingURL=azureSASCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureSASCredential.d.ts","sourceRoot":"","sources":["../../src/azureSASCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,UAAU,CAAS;IAE3B;;OAEG;IACH,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED;;;;;OAKG;gBACS,SAAS,EAAE,MAAM;IAQ7B;;;;;;;OAOG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;CAO1C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,aAAa,CAIhF"}
|
||||
55
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.js
generated
vendored
Normal file
55
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AzureSASCredential = void 0;
|
||||
exports.isSASCredential = isSASCredential;
|
||||
const core_util_1 = require("@azure/core-util");
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
class AzureSASCredential {
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature() {
|
||||
return this._signature;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature) {
|
||||
if (!signature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = signature;
|
||||
}
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature) {
|
||||
if (!newSignature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = newSignature;
|
||||
}
|
||||
}
|
||||
exports.AzureSASCredential = AzureSASCredential;
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
function isSASCredential(credential) {
|
||||
return ((0, core_util_1.isObjectWithProperties)(credential, ["signature"]) && typeof credential.signature === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureSASCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureSASCredential.js","sourceRoot":"","sources":["../../src/azureSASCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAgElC,0CAIC;AAlED,gDAA0D;AAY1D;;;GAGG;AACH,MAAa,kBAAkB;IAG7B;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;;;OAKG;IACH,YAAY,SAAiB;QAC3B,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,YAAoB;QAChC,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC;IACjC,CAAC;CACF;AAvCD,gDAuCC;AAED;;;;GAIG;AACH,SAAgB,eAAe,CAAC,UAAmB;IACjD,OAAO,CACL,IAAA,kCAAsB,EAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAC,IAAI,OAAO,UAAU,CAAC,SAAS,KAAK,QAAQ,CAC9F,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static shared access signature.\n */\nexport interface SASCredential {\n /**\n * The value of the shared access signature represented as a string\n */\n readonly signature: string;\n}\n\n/**\n * A static-signature-based credential that supports updating\n * the underlying signature value.\n */\nexport class AzureSASCredential implements SASCredential {\n private _signature: string;\n\n /**\n * The value of the shared access signature to be used in authentication\n */\n public get signature(): string {\n return this._signature;\n }\n\n /**\n * Create an instance of an AzureSASCredential for use\n * with a service client.\n *\n * @param signature - The initial value of the shared access signature to use in authentication\n */\n constructor(signature: string) {\n if (!signature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = signature;\n }\n\n /**\n * Change the value of the signature.\n *\n * Updates will take effect upon the next request after\n * updating the signature value.\n *\n * @param newSignature - The new shared access signature value to be used\n */\n public update(newSignature: string): void {\n if (!newSignature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = newSignature;\n }\n}\n\n/**\n * Tests an object to determine whether it implements SASCredential.\n *\n * @param credential - The assumed SASCredential to be tested.\n */\nexport function isSASCredential(credential: unknown): credential is SASCredential {\n return (\n isObjectWithProperties(credential, [\"signature\"]) && typeof credential.signature === \"string\"\n );\n}\n"]}
|
||||
7
node_modules/@azure/core-auth/dist/commonjs/index.d.ts
generated
vendored
Normal file
7
node_modules/@azure/core-auth/dist/commonjs/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export { AzureKeyCredential } from "./azureKeyCredential.js";
|
||||
export { KeyCredential, isKeyCredential } from "./keyCredential.js";
|
||||
export { AzureNamedKeyCredential, NamedKeyCredential, isNamedKeyCredential, } from "./azureNamedKeyCredential.js";
|
||||
export { AzureSASCredential, SASCredential, isSASCredential } from "./azureSASCredential.js";
|
||||
export { TokenCredential, GetTokenOptions, AccessToken, isTokenCredential, } from "./tokenCredential.js";
|
||||
export { TracingContext } from "./tracing.js";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/index.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE7F,OAAO,EACL,eAAe,EACf,eAAe,EACf,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
||||
18
node_modules/@azure/core-auth/dist/commonjs/index.js
generated
vendored
Normal file
18
node_modules/@azure/core-auth/dist/commonjs/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isTokenCredential = exports.isSASCredential = exports.AzureSASCredential = exports.isNamedKeyCredential = exports.AzureNamedKeyCredential = exports.isKeyCredential = exports.AzureKeyCredential = void 0;
|
||||
var azureKeyCredential_js_1 = require("./azureKeyCredential.js");
|
||||
Object.defineProperty(exports, "AzureKeyCredential", { enumerable: true, get: function () { return azureKeyCredential_js_1.AzureKeyCredential; } });
|
||||
var keyCredential_js_1 = require("./keyCredential.js");
|
||||
Object.defineProperty(exports, "isKeyCredential", { enumerable: true, get: function () { return keyCredential_js_1.isKeyCredential; } });
|
||||
var azureNamedKeyCredential_js_1 = require("./azureNamedKeyCredential.js");
|
||||
Object.defineProperty(exports, "AzureNamedKeyCredential", { enumerable: true, get: function () { return azureNamedKeyCredential_js_1.AzureNamedKeyCredential; } });
|
||||
Object.defineProperty(exports, "isNamedKeyCredential", { enumerable: true, get: function () { return azureNamedKeyCredential_js_1.isNamedKeyCredential; } });
|
||||
var azureSASCredential_js_1 = require("./azureSASCredential.js");
|
||||
Object.defineProperty(exports, "AzureSASCredential", { enumerable: true, get: function () { return azureSASCredential_js_1.AzureSASCredential; } });
|
||||
Object.defineProperty(exports, "isSASCredential", { enumerable: true, get: function () { return azureSASCredential_js_1.isSASCredential; } });
|
||||
var tokenCredential_js_1 = require("./tokenCredential.js");
|
||||
Object.defineProperty(exports, "isTokenCredential", { enumerable: true, get: function () { return tokenCredential_js_1.isTokenCredential; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/index.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/index.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iEAA6D;AAApD,2HAAA,kBAAkB,OAAA;AAC3B,uDAAoE;AAA5C,mHAAA,eAAe,OAAA;AACvC,2EAIsC;AAHpC,qIAAA,uBAAuB,OAAA;AAEvB,kIAAA,oBAAoB,OAAA;AAEtB,iEAA6F;AAApF,2HAAA,kBAAkB,OAAA;AAAiB,wHAAA,eAAe,OAAA;AAE3D,2DAK8B;AAD5B,uHAAA,iBAAiB,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { AzureKeyCredential } from \"./azureKeyCredential.js\";\nexport { KeyCredential, isKeyCredential } from \"./keyCredential.js\";\nexport {\n AzureNamedKeyCredential,\n NamedKeyCredential,\n isNamedKeyCredential,\n} from \"./azureNamedKeyCredential.js\";\nexport { AzureSASCredential, SASCredential, isSASCredential } from \"./azureSASCredential.js\";\n\nexport {\n TokenCredential,\n GetTokenOptions,\n AccessToken,\n isTokenCredential,\n} from \"./tokenCredential.js\";\n\nexport { TracingContext } from \"./tracing.js\";\n"]}
|
||||
16
node_modules/@azure/core-auth/dist/commonjs/keyCredential.d.ts
generated
vendored
Normal file
16
node_modules/@azure/core-auth/dist/commonjs/keyCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Represents a credential defined by a static API key.
|
||||
*/
|
||||
export interface KeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
export declare function isKeyCredential(credential: unknown): credential is KeyCredential;
|
||||
//# sourceMappingURL=keyCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/keyCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/keyCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"keyCredential.d.ts","sourceRoot":"","sources":["../../src/keyCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,aAAa,CAEhF"}
|
||||
15
node_modules/@azure/core-auth/dist/commonjs/keyCredential.js
generated
vendored
Normal file
15
node_modules/@azure/core-auth/dist/commonjs/keyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isKeyCredential = isKeyCredential;
|
||||
const core_util_1 = require("@azure/core-util");
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
function isKeyCredential(credential) {
|
||||
return (0, core_util_1.isObjectWithProperties)(credential, ["key"]) && typeof credential.key === "string";
|
||||
}
|
||||
//# sourceMappingURL=keyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/keyCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/keyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"keyCredential.js","sourceRoot":"","sources":["../../src/keyCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,0CAEC;AAnBD,gDAA0D;AAY1D;;;;GAIG;AACH,SAAgB,eAAe,CAAC,UAAmB;IACjD,OAAO,IAAA,kCAAsB,EAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ,CAAC;AAC3F,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static API key.\n */\nexport interface KeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n}\n\n/**\n * Tests an object to determine whether it implements KeyCredential.\n *\n * @param credential - The assumed KeyCredential to be tested.\n */\nexport function isKeyCredential(credential: unknown): credential is KeyCredential {\n return isObjectWithProperties(credential, [\"key\"]) && typeof credential.key === \"string\";\n}\n"]}
|
||||
3
node_modules/@azure/core-auth/dist/commonjs/package.json
generated
vendored
Normal file
3
node_modules/@azure/core-auth/dist/commonjs/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
81
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.d.ts
generated
vendored
Normal file
81
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
import { AbortSignalLike } from "@azure/abort-controller";
|
||||
import { TracingContext } from "./tracing.js";
|
||||
/**
|
||||
* Represents a credential capable of providing an authentication token.
|
||||
*/
|
||||
export interface TokenCredential {
|
||||
/**
|
||||
* Gets the token provided by this credential.
|
||||
*
|
||||
* This method is called automatically by Azure SDK client libraries. You may call this method
|
||||
* directly, but you must also handle token caching and token refreshing.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure any requests this
|
||||
* TokenCredential implementation might make.
|
||||
*/
|
||||
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
|
||||
}
|
||||
/**
|
||||
* Defines options for TokenCredential.getToken.
|
||||
*/
|
||||
export interface GetTokenOptions {
|
||||
/**
|
||||
* The signal which can be used to abort requests.
|
||||
*/
|
||||
abortSignal?: AbortSignalLike;
|
||||
/**
|
||||
* Options used when creating and sending HTTP requests for this operation.
|
||||
*/
|
||||
requestOptions?: {
|
||||
/**
|
||||
* The number of milliseconds a request can take before automatically being terminated.
|
||||
*/
|
||||
timeout?: number;
|
||||
};
|
||||
/**
|
||||
* Options used when tracing is enabled.
|
||||
*/
|
||||
tracingOptions?: {
|
||||
/**
|
||||
* Tracing Context for the current request.
|
||||
*/
|
||||
tracingContext?: TracingContext;
|
||||
};
|
||||
/**
|
||||
* Claim details to perform the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
claims?: string;
|
||||
/**
|
||||
* Indicates whether to enable the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
enableCae?: boolean;
|
||||
/**
|
||||
* Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.
|
||||
*/
|
||||
tenantId?: string;
|
||||
}
|
||||
/**
|
||||
* Represents an access token with an expiration time.
|
||||
*/
|
||||
export interface AccessToken {
|
||||
/**
|
||||
* The access token returned by the authentication service.
|
||||
*/
|
||||
token: string;
|
||||
/**
|
||||
* The access token's expiration timestamp in milliseconds, UNIX epoch time.
|
||||
*/
|
||||
expiresOnTimestamp: number;
|
||||
/**
|
||||
* The timestamp when the access token should be refreshed, in milliseconds, UNIX epoch time.
|
||||
*/
|
||||
refreshAfterTimestamp?: number;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
export declare function isTokenCredential(credential: unknown): credential is TokenCredential;
|
||||
//# sourceMappingURL=tokenCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tokenCredential.d.ts","sourceRoot":"","sources":["../../src/tokenCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC7F;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF;;OAEG;IACH,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,cAAc,CAAC,EAAE,cAAc,CAAC;KACjC,CAAC;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,eAAe,CAepF"}
|
||||
22
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.js
generated
vendored
Normal file
22
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isTokenCredential = isTokenCredential;
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
function isTokenCredential(credential) {
|
||||
// Check for an object with a 'getToken' function and possibly with
|
||||
// a 'signRequest' function. We do this check to make sure that
|
||||
// a ServiceClientCredentials implementor (like TokenClientCredentials
|
||||
// in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if
|
||||
// it doesn't actually implement TokenCredential also.
|
||||
const castCredential = credential;
|
||||
return (castCredential &&
|
||||
typeof castCredential.getToken === "function" &&
|
||||
(castCredential.signRequest === undefined || castCredential.getToken.length > 0));
|
||||
}
|
||||
//# sourceMappingURL=tokenCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tokenCredential.js","sourceRoot":"","sources":["../../src/tokenCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAuFlC,8CAeC;AApBD;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,UAAmB;IACnD,mEAAmE;IACnE,gEAAgE;IAChE,sEAAsE;IACtE,qEAAqE;IACrE,sDAAsD;IACtD,MAAM,cAAc,GAAG,UAGtB,CAAC;IACF,OAAO,CACL,cAAc;QACd,OAAO,cAAc,CAAC,QAAQ,KAAK,UAAU;QAC7C,CAAC,cAAc,CAAC,WAAW,KAAK,SAAS,IAAI,cAAc,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { TracingContext } from \"./tracing.js\";\n\n/**\n * Represents a credential capable of providing an authentication token.\n */\nexport interface TokenCredential {\n /**\n * Gets the token provided by this credential.\n *\n * This method is called automatically by Azure SDK client libraries. You may call this method\n * directly, but you must also handle token caching and token refreshing.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;\n}\n\n/**\n * Defines options for TokenCredential.getToken.\n */\nexport interface GetTokenOptions {\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Options used when creating and sending HTTP requests for this operation.\n */\n requestOptions?: {\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n */\n timeout?: number;\n };\n /**\n * Options used when tracing is enabled.\n */\n tracingOptions?: {\n /**\n * Tracing Context for the current request.\n */\n tracingContext?: TracingContext;\n };\n /**\n * Claim details to perform the Continuous Access Evaluation authentication flow\n */\n claims?: string;\n /**\n * Indicates whether to enable the Continuous Access Evaluation authentication flow\n */\n enableCae?: boolean;\n /**\n * Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.\n */\n tenantId?: string;\n}\n\n/**\n * Represents an access token with an expiration time.\n */\nexport interface AccessToken {\n /**\n * The access token returned by the authentication service.\n */\n token: string;\n\n /**\n * The access token's expiration timestamp in milliseconds, UNIX epoch time.\n */\n expiresOnTimestamp: number;\n\n /**\n * The timestamp when the access token should be refreshed, in milliseconds, UNIX epoch time.\n */\n refreshAfterTimestamp?: number;\n}\n\n/**\n * Tests an object to determine whether it implements TokenCredential.\n *\n * @param credential - The assumed TokenCredential to be tested.\n */\nexport function isTokenCredential(credential: unknown): credential is TokenCredential {\n // Check for an object with a 'getToken' function and possibly with\n // a 'signRequest' function. We do this check to make sure that\n // a ServiceClientCredentials implementor (like TokenClientCredentials\n // in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if\n // it doesn't actually implement TokenCredential also.\n const castCredential = credential as {\n getToken: unknown;\n signRequest: unknown;\n };\n return (\n castCredential &&\n typeof castCredential.getToken === \"function\" &&\n (castCredential.signRequest === undefined || castCredential.getToken.length > 0)\n );\n}\n"]}
|
||||
27
node_modules/@azure/core-auth/dist/commonjs/tracing.d.ts
generated
vendored
Normal file
27
node_modules/@azure/core-auth/dist/commonjs/tracing.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* An interface structurally compatible with OpenTelemetry.
|
||||
*/
|
||||
export interface TracingContext {
|
||||
/**
|
||||
* Get a value from the context.
|
||||
*
|
||||
* @param key - key which identifies a context value
|
||||
*/
|
||||
getValue(key: symbol): unknown;
|
||||
/**
|
||||
* Create a new context which inherits from this context and has
|
||||
* the given key set to the given value.
|
||||
*
|
||||
* @param key - context key for which to set the value
|
||||
* @param value - value to set for the given key
|
||||
*/
|
||||
setValue(key: symbol, value: unknown): TracingContext;
|
||||
/**
|
||||
* Return a new context which inherits from this context but does
|
||||
* not contain a value for the given key.
|
||||
*
|
||||
* @param key - context key for which to clear a value
|
||||
*/
|
||||
deleteValue(key: symbol): TracingContext;
|
||||
}
|
||||
//# sourceMappingURL=tracing.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/tracing.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/tracing.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/B;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,cAAc,CAAC;IACtD;;;;;OAKG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC;CAC1C"}
|
||||
5
node_modules/@azure/core-auth/dist/commonjs/tracing.js
generated
vendored
Normal file
5
node_modules/@azure/core-auth/dist/commonjs/tracing.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=tracing.js.map
|
||||
1
node_modules/@azure/core-auth/dist/commonjs/tracing.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/commonjs/tracing.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// The interfaces in this file should be kept in sync with those\n// found in the `@azure/core-tracing` package.\n\n/**\n * An interface structurally compatible with OpenTelemetry.\n */\nexport interface TracingContext {\n /**\n * Get a value from the context.\n *\n * @param key - key which identifies a context value\n */\n getValue(key: symbol): unknown;\n /**\n * Create a new context which inherits from this context and has\n * the given key set to the given value.\n *\n * @param key - context key for which to set the value\n * @param value - value to set for the given key\n */\n setValue(key: symbol, value: unknown): TracingContext;\n /**\n * Return a new context which inherits from this context but does\n * not contain a value for the given key.\n *\n * @param key - context key for which to clear a value\n */\n deleteValue(key: symbol): TracingContext;\n}\n"]}
|
||||
11
node_modules/@azure/core-auth/dist/commonjs/tsdoc-metadata.json
generated
vendored
Normal file
11
node_modules/@azure/core-auth/dist/commonjs/tsdoc-metadata.json
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
||||
// It should be published with your NPM package. It should not be tracked by Git.
|
||||
{
|
||||
"tsdocVersion": "0.12",
|
||||
"toolPackages": [
|
||||
{
|
||||
"packageName": "@microsoft/api-extractor",
|
||||
"packageVersion": "7.47.8"
|
||||
}
|
||||
]
|
||||
}
|
||||
258
node_modules/@azure/core-auth/dist/core-auth.d.ts
generated
vendored
Normal file
258
node_modules/@azure/core-auth/dist/core-auth.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,258 @@
|
|||
import { AbortSignalLike } from '@azure/abort-controller';
|
||||
|
||||
/**
|
||||
* Represents an access token with an expiration time.
|
||||
*/
|
||||
export declare interface AccessToken {
|
||||
/**
|
||||
* The access token returned by the authentication service.
|
||||
*/
|
||||
token: string;
|
||||
/**
|
||||
* The access token's expiration timestamp in milliseconds, UNIX epoch time.
|
||||
*/
|
||||
expiresOnTimestamp: number;
|
||||
/**
|
||||
* The timestamp when the access token should be refreshed, in milliseconds, UNIX epoch time.
|
||||
*/
|
||||
refreshAfterTimestamp?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
export declare class AzureKeyCredential implements KeyCredential {
|
||||
private _key;
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey: string): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
export declare class AzureNamedKeyCredential implements NamedKeyCredential {
|
||||
private _key;
|
||||
private _name;
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name(): string;
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name: string, key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName: string, newKey: string): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
export declare class AzureSASCredential implements SASCredential {
|
||||
private _signature;
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature(): string;
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature: string);
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature: string): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines options for TokenCredential.getToken.
|
||||
*/
|
||||
export declare interface GetTokenOptions {
|
||||
/**
|
||||
* The signal which can be used to abort requests.
|
||||
*/
|
||||
abortSignal?: AbortSignalLike;
|
||||
/**
|
||||
* Options used when creating and sending HTTP requests for this operation.
|
||||
*/
|
||||
requestOptions?: {
|
||||
/**
|
||||
* The number of milliseconds a request can take before automatically being terminated.
|
||||
*/
|
||||
timeout?: number;
|
||||
};
|
||||
/**
|
||||
* Options used when tracing is enabled.
|
||||
*/
|
||||
tracingOptions?: {
|
||||
/**
|
||||
* Tracing Context for the current request.
|
||||
*/
|
||||
tracingContext?: TracingContext;
|
||||
};
|
||||
/**
|
||||
* Claim details to perform the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
claims?: string;
|
||||
/**
|
||||
* Indicates whether to enable the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
enableCae?: boolean;
|
||||
/**
|
||||
* Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.
|
||||
*/
|
||||
tenantId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
export declare function isKeyCredential(credential: unknown): credential is KeyCredential;
|
||||
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
export declare function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential;
|
||||
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
export declare function isSASCredential(credential: unknown): credential is SASCredential;
|
||||
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
export declare function isTokenCredential(credential: unknown): credential is TokenCredential;
|
||||
|
||||
/**
|
||||
* Represents a credential defined by a static API key.
|
||||
*/
|
||||
export declare interface KeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a credential defined by a static API name and key.
|
||||
*/
|
||||
export declare interface NamedKeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
/**
|
||||
* The value of the API name represented as a string.
|
||||
*/
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a credential defined by a static shared access signature.
|
||||
*/
|
||||
export declare interface SASCredential {
|
||||
/**
|
||||
* The value of the shared access signature represented as a string
|
||||
*/
|
||||
readonly signature: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a credential capable of providing an authentication token.
|
||||
*/
|
||||
export declare interface TokenCredential {
|
||||
/**
|
||||
* Gets the token provided by this credential.
|
||||
*
|
||||
* This method is called automatically by Azure SDK client libraries. You may call this method
|
||||
* directly, but you must also handle token caching and token refreshing.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure any requests this
|
||||
* TokenCredential implementation might make.
|
||||
*/
|
||||
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
|
||||
}
|
||||
|
||||
/**
|
||||
* An interface structurally compatible with OpenTelemetry.
|
||||
*/
|
||||
export declare interface TracingContext {
|
||||
/**
|
||||
* Get a value from the context.
|
||||
*
|
||||
* @param key - key which identifies a context value
|
||||
*/
|
||||
getValue(key: symbol): unknown;
|
||||
/**
|
||||
* Create a new context which inherits from this context and has
|
||||
* the given key set to the given value.
|
||||
*
|
||||
* @param key - context key for which to set the value
|
||||
* @param value - value to set for the given key
|
||||
*/
|
||||
setValue(key: symbol, value: unknown): TracingContext;
|
||||
/**
|
||||
* Return a new context which inherits from this context but does
|
||||
* not contain a value for the given key.
|
||||
*
|
||||
* @param key - context key for which to clear a value
|
||||
*/
|
||||
deleteValue(key: symbol): TracingContext;
|
||||
}
|
||||
|
||||
export { }
|
||||
29
node_modules/@azure/core-auth/dist/esm/azureKeyCredential.d.ts
generated
vendored
Normal file
29
node_modules/@azure/core-auth/dist/esm/azureKeyCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { KeyCredential } from "./keyCredential.js";
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
export declare class AzureKeyCredential implements KeyCredential {
|
||||
private _key;
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey: string): void;
|
||||
}
|
||||
//# sourceMappingURL=azureKeyCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/azureKeyCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/azureKeyCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureKeyCredential.d.ts","sourceRoot":"","sources":["../../src/azureKeyCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,IAAI,CAAS;IAErB;;OAEG;IACH,IAAW,GAAG,IAAI,MAAM,CAEvB;IAED;;;;;OAKG;gBACS,GAAG,EAAE,MAAM;IAQvB;;;;;;;OAOG;IACI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAGpC"}
|
||||
38
node_modules/@azure/core-auth/dist/esm/azureKeyCredential.js
generated
vendored
Normal file
38
node_modules/@azure/core-auth/dist/esm/azureKeyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
export class AzureKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key) {
|
||||
if (!key) {
|
||||
throw new Error("key must be a non-empty string");
|
||||
}
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey) {
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=azureKeyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/azureKeyCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/azureKeyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureKeyCredential.js","sourceRoot":"","sources":["../../src/azureKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAG7B;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,YAAY,GAAW;QACrB,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACpD,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,MAAc;QAC1B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { KeyCredential } from \"./keyCredential.js\";\n\n/**\n * A static-key-based credential that supports updating\n * the underlying key value.\n */\nexport class AzureKeyCredential implements KeyCredential {\n private _key: string;\n\n /**\n * The value of the key to be used in authentication\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * Create an instance of an AzureKeyCredential for use\n * with a service client.\n *\n * @param key - The initial value of the key to use in authentication\n */\n constructor(key: string) {\n if (!key) {\n throw new Error(\"key must be a non-empty string\");\n }\n\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newKey - The new key value to be used\n */\n public update(newKey: string): void {\n this._key = newKey;\n }\n}\n"]}
|
||||
54
node_modules/@azure/core-auth/dist/esm/azureNamedKeyCredential.d.ts
generated
vendored
Normal file
54
node_modules/@azure/core-auth/dist/esm/azureNamedKeyCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* Represents a credential defined by a static API name and key.
|
||||
*/
|
||||
export interface NamedKeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
/**
|
||||
* The value of the API name represented as a string.
|
||||
*/
|
||||
readonly name: string;
|
||||
}
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
export declare class AzureNamedKeyCredential implements NamedKeyCredential {
|
||||
private _key;
|
||||
private _name;
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name(): string;
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name: string, key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName: string, newKey: string): void;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
export declare function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential;
|
||||
//# sourceMappingURL=azureNamedKeyCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/azureNamedKeyCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/azureNamedKeyCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureNamedKeyCredential.d.ts","sourceRoot":"","sources":["../../src/azureNamedKeyCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,uBAAwB,YAAW,kBAAkB;IAChE,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,KAAK,CAAS;IAEtB;;OAEG;IACH,IAAW,GAAG,IAAI,MAAM,CAEvB;IAED;;OAEG;IACH,IAAW,IAAI,IAAI,MAAM,CAExB;IAED;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IASrC;;;;;;;;OAQG;IACI,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;CAQrD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,kBAAkB,CAM1F"}
|
||||
62
node_modules/@azure/core-auth/dist/esm/azureNamedKeyCredential.js
generated
vendored
Normal file
62
node_modules/@azure/core-auth/dist/esm/azureNamedKeyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { isObjectWithProperties } from "@azure/core-util";
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
export class AzureNamedKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name() {
|
||||
return this._name;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name, key) {
|
||||
if (!name || !key) {
|
||||
throw new TypeError("name and key must be non-empty strings");
|
||||
}
|
||||
this._name = name;
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName, newKey) {
|
||||
if (!newName || !newKey) {
|
||||
throw new TypeError("newName and newKey must be non-empty strings");
|
||||
}
|
||||
this._name = newName;
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
export function isNamedKeyCredential(credential) {
|
||||
return (isObjectWithProperties(credential, ["name", "key"]) &&
|
||||
typeof credential.key === "string" &&
|
||||
typeof credential.name === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureNamedKeyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/azureNamedKeyCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/azureNamedKeyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureNamedKeyCredential.js","sourceRoot":"","sources":["../../src/azureNamedKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAgB1D;;;GAGG;AACH,MAAM,OAAO,uBAAuB;IAIlC;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,GAAW;QACnC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YAClB,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,OAAe,EAAE,MAAc;QAC3C,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,IAAI,SAAS,CAAC,8CAA8C,CAAC,CAAC;QACtE,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAAmB;IACtD,OAAO,CACL,sBAAsB,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACnD,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ;QAClC,OAAO,UAAU,CAAC,IAAI,KAAK,QAAQ,CACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static API name and key.\n */\nexport interface NamedKeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n /**\n * The value of the API name represented as a string.\n */\n readonly name: string;\n}\n\n/**\n * A static name/key-based credential that supports updating\n * the underlying name and key values.\n */\nexport class AzureNamedKeyCredential implements NamedKeyCredential {\n private _key: string;\n private _name: string;\n\n /**\n * The value of the key to be used in authentication.\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * The value of the name to be used in authentication.\n */\n public get name(): string {\n return this._name;\n }\n\n /**\n * Create an instance of an AzureNamedKeyCredential for use\n * with a service client.\n *\n * @param name - The initial value of the name to use in authentication.\n * @param key - The initial value of the key to use in authentication.\n */\n constructor(name: string, key: string) {\n if (!name || !key) {\n throw new TypeError(\"name and key must be non-empty strings\");\n }\n\n this._name = name;\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newName - The new name value to be used.\n * @param newKey - The new key value to be used.\n */\n public update(newName: string, newKey: string): void {\n if (!newName || !newKey) {\n throw new TypeError(\"newName and newKey must be non-empty strings\");\n }\n\n this._name = newName;\n this._key = newKey;\n }\n}\n\n/**\n * Tests an object to determine whether it implements NamedKeyCredential.\n *\n * @param credential - The assumed NamedKeyCredential to be tested.\n */\nexport function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential {\n return (\n isObjectWithProperties(credential, [\"name\", \"key\"]) &&\n typeof credential.key === \"string\" &&\n typeof credential.name === \"string\"\n );\n}\n"]}
|
||||
43
node_modules/@azure/core-auth/dist/esm/azureSASCredential.d.ts
generated
vendored
Normal file
43
node_modules/@azure/core-auth/dist/esm/azureSASCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/**
|
||||
* Represents a credential defined by a static shared access signature.
|
||||
*/
|
||||
export interface SASCredential {
|
||||
/**
|
||||
* The value of the shared access signature represented as a string
|
||||
*/
|
||||
readonly signature: string;
|
||||
}
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
export declare class AzureSASCredential implements SASCredential {
|
||||
private _signature;
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature(): string;
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature: string);
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature: string): void;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
export declare function isSASCredential(credential: unknown): credential is SASCredential;
|
||||
//# sourceMappingURL=azureSASCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/azureSASCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/azureSASCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureSASCredential.d.ts","sourceRoot":"","sources":["../../src/azureSASCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,UAAU,CAAS;IAE3B;;OAEG;IACH,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED;;;;;OAKG;gBACS,SAAS,EAAE,MAAM;IAQ7B;;;;;;;OAOG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;CAO1C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,aAAa,CAIhF"}
|
||||
50
node_modules/@azure/core-auth/dist/esm/azureSASCredential.js
generated
vendored
Normal file
50
node_modules/@azure/core-auth/dist/esm/azureSASCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { isObjectWithProperties } from "@azure/core-util";
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
export class AzureSASCredential {
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature() {
|
||||
return this._signature;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature) {
|
||||
if (!signature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = signature;
|
||||
}
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature) {
|
||||
if (!newSignature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = newSignature;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
export function isSASCredential(credential) {
|
||||
return (isObjectWithProperties(credential, ["signature"]) && typeof credential.signature === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureSASCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/azureSASCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/azureSASCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureSASCredential.js","sourceRoot":"","sources":["../../src/azureSASCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAY1D;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAG7B;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;;;OAKG;IACH,YAAY,SAAiB;QAC3B,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,YAAoB;QAChC,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC;IACjC,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,UAAmB;IACjD,OAAO,CACL,sBAAsB,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAC,IAAI,OAAO,UAAU,CAAC,SAAS,KAAK,QAAQ,CAC9F,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static shared access signature.\n */\nexport interface SASCredential {\n /**\n * The value of the shared access signature represented as a string\n */\n readonly signature: string;\n}\n\n/**\n * A static-signature-based credential that supports updating\n * the underlying signature value.\n */\nexport class AzureSASCredential implements SASCredential {\n private _signature: string;\n\n /**\n * The value of the shared access signature to be used in authentication\n */\n public get signature(): string {\n return this._signature;\n }\n\n /**\n * Create an instance of an AzureSASCredential for use\n * with a service client.\n *\n * @param signature - The initial value of the shared access signature to use in authentication\n */\n constructor(signature: string) {\n if (!signature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = signature;\n }\n\n /**\n * Change the value of the signature.\n *\n * Updates will take effect upon the next request after\n * updating the signature value.\n *\n * @param newSignature - The new shared access signature value to be used\n */\n public update(newSignature: string): void {\n if (!newSignature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = newSignature;\n }\n}\n\n/**\n * Tests an object to determine whether it implements SASCredential.\n *\n * @param credential - The assumed SASCredential to be tested.\n */\nexport function isSASCredential(credential: unknown): credential is SASCredential {\n return (\n isObjectWithProperties(credential, [\"signature\"]) && typeof credential.signature === \"string\"\n );\n}\n"]}
|
||||
7
node_modules/@azure/core-auth/dist/esm/index.d.ts
generated
vendored
Normal file
7
node_modules/@azure/core-auth/dist/esm/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export { AzureKeyCredential } from "./azureKeyCredential.js";
|
||||
export { KeyCredential, isKeyCredential } from "./keyCredential.js";
|
||||
export { AzureNamedKeyCredential, NamedKeyCredential, isNamedKeyCredential, } from "./azureNamedKeyCredential.js";
|
||||
export { AzureSASCredential, SASCredential, isSASCredential } from "./azureSASCredential.js";
|
||||
export { TokenCredential, GetTokenOptions, AccessToken, isTokenCredential, } from "./tokenCredential.js";
|
||||
export { TracingContext } from "./tracing.js";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/index.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE7F,OAAO,EACL,eAAe,EACf,eAAe,EACf,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
||||
8
node_modules/@azure/core-auth/dist/esm/index.js
generated
vendored
Normal file
8
node_modules/@azure/core-auth/dist/esm/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export { AzureKeyCredential } from "./azureKeyCredential.js";
|
||||
export { isKeyCredential } from "./keyCredential.js";
|
||||
export { AzureNamedKeyCredential, isNamedKeyCredential, } from "./azureNamedKeyCredential.js";
|
||||
export { AzureSASCredential, isSASCredential } from "./azureSASCredential.js";
|
||||
export { isTokenCredential, } from "./tokenCredential.js";
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/index.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/index.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAiB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EACL,uBAAuB,EAEvB,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAiB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE7F,OAAO,EAIL,iBAAiB,GAClB,MAAM,sBAAsB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { AzureKeyCredential } from \"./azureKeyCredential.js\";\nexport { KeyCredential, isKeyCredential } from \"./keyCredential.js\";\nexport {\n AzureNamedKeyCredential,\n NamedKeyCredential,\n isNamedKeyCredential,\n} from \"./azureNamedKeyCredential.js\";\nexport { AzureSASCredential, SASCredential, isSASCredential } from \"./azureSASCredential.js\";\n\nexport {\n TokenCredential,\n GetTokenOptions,\n AccessToken,\n isTokenCredential,\n} from \"./tokenCredential.js\";\n\nexport { TracingContext } from \"./tracing.js\";\n"]}
|
||||
16
node_modules/@azure/core-auth/dist/esm/keyCredential.d.ts
generated
vendored
Normal file
16
node_modules/@azure/core-auth/dist/esm/keyCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Represents a credential defined by a static API key.
|
||||
*/
|
||||
export interface KeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
export declare function isKeyCredential(credential: unknown): credential is KeyCredential;
|
||||
//# sourceMappingURL=keyCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/keyCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/keyCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"keyCredential.d.ts","sourceRoot":"","sources":["../../src/keyCredential.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,aAAa,CAEhF"}
|
||||
12
node_modules/@azure/core-auth/dist/esm/keyCredential.js
generated
vendored
Normal file
12
node_modules/@azure/core-auth/dist/esm/keyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { isObjectWithProperties } from "@azure/core-util";
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
export function isKeyCredential(credential) {
|
||||
return isObjectWithProperties(credential, ["key"]) && typeof credential.key === "string";
|
||||
}
|
||||
//# sourceMappingURL=keyCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/keyCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/keyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"keyCredential.js","sourceRoot":"","sources":["../../src/keyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAY1D;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,UAAmB;IACjD,OAAO,sBAAsB,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ,CAAC;AAC3F,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static API key.\n */\nexport interface KeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n}\n\n/**\n * Tests an object to determine whether it implements KeyCredential.\n *\n * @param credential - The assumed KeyCredential to be tested.\n */\nexport function isKeyCredential(credential: unknown): credential is KeyCredential {\n return isObjectWithProperties(credential, [\"key\"]) && typeof credential.key === \"string\";\n}\n"]}
|
||||
3
node_modules/@azure/core-auth/dist/esm/package.json
generated
vendored
Normal file
3
node_modules/@azure/core-auth/dist/esm/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"type": "module"
|
||||
}
|
||||
81
node_modules/@azure/core-auth/dist/esm/tokenCredential.d.ts
generated
vendored
Normal file
81
node_modules/@azure/core-auth/dist/esm/tokenCredential.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
import { AbortSignalLike } from "@azure/abort-controller";
|
||||
import { TracingContext } from "./tracing.js";
|
||||
/**
|
||||
* Represents a credential capable of providing an authentication token.
|
||||
*/
|
||||
export interface TokenCredential {
|
||||
/**
|
||||
* Gets the token provided by this credential.
|
||||
*
|
||||
* This method is called automatically by Azure SDK client libraries. You may call this method
|
||||
* directly, but you must also handle token caching and token refreshing.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure any requests this
|
||||
* TokenCredential implementation might make.
|
||||
*/
|
||||
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
|
||||
}
|
||||
/**
|
||||
* Defines options for TokenCredential.getToken.
|
||||
*/
|
||||
export interface GetTokenOptions {
|
||||
/**
|
||||
* The signal which can be used to abort requests.
|
||||
*/
|
||||
abortSignal?: AbortSignalLike;
|
||||
/**
|
||||
* Options used when creating and sending HTTP requests for this operation.
|
||||
*/
|
||||
requestOptions?: {
|
||||
/**
|
||||
* The number of milliseconds a request can take before automatically being terminated.
|
||||
*/
|
||||
timeout?: number;
|
||||
};
|
||||
/**
|
||||
* Options used when tracing is enabled.
|
||||
*/
|
||||
tracingOptions?: {
|
||||
/**
|
||||
* Tracing Context for the current request.
|
||||
*/
|
||||
tracingContext?: TracingContext;
|
||||
};
|
||||
/**
|
||||
* Claim details to perform the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
claims?: string;
|
||||
/**
|
||||
* Indicates whether to enable the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
enableCae?: boolean;
|
||||
/**
|
||||
* Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.
|
||||
*/
|
||||
tenantId?: string;
|
||||
}
|
||||
/**
|
||||
* Represents an access token with an expiration time.
|
||||
*/
|
||||
export interface AccessToken {
|
||||
/**
|
||||
* The access token returned by the authentication service.
|
||||
*/
|
||||
token: string;
|
||||
/**
|
||||
* The access token's expiration timestamp in milliseconds, UNIX epoch time.
|
||||
*/
|
||||
expiresOnTimestamp: number;
|
||||
/**
|
||||
* The timestamp when the access token should be refreshed, in milliseconds, UNIX epoch time.
|
||||
*/
|
||||
refreshAfterTimestamp?: number;
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
export declare function isTokenCredential(credential: unknown): credential is TokenCredential;
|
||||
//# sourceMappingURL=tokenCredential.d.ts.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/tokenCredential.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/tokenCredential.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tokenCredential.d.ts","sourceRoot":"","sources":["../../src/tokenCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC7F;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF;;OAEG;IACH,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,cAAc,CAAC,EAAE,cAAc,CAAC;KACjC,CAAC;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,eAAe,CAepF"}
|
||||
19
node_modules/@azure/core-auth/dist/esm/tokenCredential.js
generated
vendored
Normal file
19
node_modules/@azure/core-auth/dist/esm/tokenCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
export function isTokenCredential(credential) {
|
||||
// Check for an object with a 'getToken' function and possibly with
|
||||
// a 'signRequest' function. We do this check to make sure that
|
||||
// a ServiceClientCredentials implementor (like TokenClientCredentials
|
||||
// in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if
|
||||
// it doesn't actually implement TokenCredential also.
|
||||
const castCredential = credential;
|
||||
return (castCredential &&
|
||||
typeof castCredential.getToken === "function" &&
|
||||
(castCredential.signRequest === undefined || castCredential.getToken.length > 0));
|
||||
}
|
||||
//# sourceMappingURL=tokenCredential.js.map
|
||||
1
node_modules/@azure/core-auth/dist/esm/tokenCredential.js.map
generated
vendored
Normal file
1
node_modules/@azure/core-auth/dist/esm/tokenCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tokenCredential.js","sourceRoot":"","sources":["../../src/tokenCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAkFlC;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAAmB;IACnD,mEAAmE;IACnE,gEAAgE;IAChE,sEAAsE;IACtE,qEAAqE;IACrE,sDAAsD;IACtD,MAAM,cAAc,GAAG,UAGtB,CAAC;IACF,OAAO,CACL,cAAc;QACd,OAAO,cAAc,CAAC,QAAQ,KAAK,UAAU;QAC7C,CAAC,cAAc,CAAC,WAAW,KAAK,SAAS,IAAI,cAAc,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { TracingContext } from \"./tracing.js\";\n\n/**\n * Represents a credential capable of providing an authentication token.\n */\nexport interface TokenCredential {\n /**\n * Gets the token provided by this credential.\n *\n * This method is called automatically by Azure SDK client libraries. You may call this method\n * directly, but you must also handle token caching and token refreshing.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;\n}\n\n/**\n * Defines options for TokenCredential.getToken.\n */\nexport interface GetTokenOptions {\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Options used when creating and sending HTTP requests for this operation.\n */\n requestOptions?: {\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n */\n timeout?: number;\n };\n /**\n * Options used when tracing is enabled.\n */\n tracingOptions?: {\n /**\n * Tracing Context for the current request.\n */\n tracingContext?: TracingContext;\n };\n /**\n * Claim details to perform the Continuous Access Evaluation authentication flow\n */\n claims?: string;\n /**\n * Indicates whether to enable the Continuous Access Evaluation authentication flow\n */\n enableCae?: boolean;\n /**\n * Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.\n */\n tenantId?: string;\n}\n\n/**\n * Represents an access token with an expiration time.\n */\nexport interface AccessToken {\n /**\n * The access token returned by the authentication service.\n */\n token: string;\n\n /**\n * The access token's expiration timestamp in milliseconds, UNIX epoch time.\n */\n expiresOnTimestamp: number;\n\n /**\n * The timestamp when the access token should be refreshed, in milliseconds, UNIX epoch time.\n */\n refreshAfterTimestamp?: number;\n}\n\n/**\n * Tests an object to determine whether it implements TokenCredential.\n *\n * @param credential - The assumed TokenCredential to be tested.\n */\nexport function isTokenCredential(credential: unknown): credential is TokenCredential {\n // Check for an object with a 'getToken' function and possibly with\n // a 'signRequest' function. We do this check to make sure that\n // a ServiceClientCredentials implementor (like TokenClientCredentials\n // in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if\n // it doesn't actually implement TokenCredential also.\n const castCredential = credential as {\n getToken: unknown;\n signRequest: unknown;\n };\n return (\n castCredential &&\n typeof castCredential.getToken === \"function\" &&\n (castCredential.signRequest === undefined || castCredential.getToken.length > 0)\n );\n}\n"]}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue