open ai api
This commit is contained in:
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 type { 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
|
||||
43
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.js
generated
vendored
Normal file
43
node_modules/@azure/core-auth/dist/commonjs/azureKeyCredential.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
"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 {
|
||||
_key;
|
||||
/**
|
||||
* 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;IACrB,IAAI,CAAS;IAErB;;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 type { 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
|
||||
69
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.js
generated
vendored
Normal file
69
node_modules/@azure/core-auth/dist/commonjs/azureNamedKeyCredential.js
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
"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 {
|
||||
_key;
|
||||
_name;
|
||||
/**
|
||||
* 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;IAC1B,IAAI,CAAS;IACb,KAAK,CAAS;IAEtB;;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
|
||||
56
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.js
generated
vendored
Normal file
56
node_modules/@azure/core-auth/dist/commonjs/azureSASCredential.js
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"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 {
|
||||
_signature;
|
||||
/**
|
||||
* 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;IACrB,UAAU,CAAS;IAE3B;;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"]}
|
||||
8
node_modules/@azure/core-auth/dist/commonjs/index.d.ts
generated
vendored
Normal file
8
node_modules/@azure/core-auth/dist/commonjs/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export { HttpMethods } from "@azure/core-util";
|
||||
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
|
||||
16
node_modules/@azure/core-auth/dist/commonjs/index.js
generated
vendored
Normal file
16
node_modules/@azure/core-auth/dist/commonjs/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
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":";;;AAGA,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.\nexport { HttpMethods } from \"@azure/core-util\";\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
|
||||
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"
|
||||
}
|
||||
117
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.d.ts
generated
vendored
Normal file
117
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.d.ts
generated
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
import type { AbortSignalLike } from "@azure/abort-controller";
|
||||
import type { TracingContext } from "./tracing.js";
|
||||
import type { HttpMethods } from "@azure/core-util";
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Options for Proof of Possession token requests
|
||||
*/
|
||||
proofOfPossessionOptions?: {
|
||||
/**
|
||||
* The nonce value required for PoP token requests.
|
||||
* This is typically retrieved from the WWW-Authenticate header of a 401 challenge response.
|
||||
* This is used in combination with {@link resourceRequestUrl} and {@link resourceRequestMethod} to generate the PoP token.
|
||||
*/
|
||||
nonce: string;
|
||||
/**
|
||||
* The HTTP method of the request.
|
||||
* This is used in combination with {@link resourceRequestUrl} and {@link nonce} to generate the PoP token.
|
||||
*/
|
||||
resourceRequestMethod: HttpMethods;
|
||||
/**
|
||||
* The URL of the request.
|
||||
* This is used in combination with {@link resourceRequestMethod} and {@link nonce} to generate the PoP token.
|
||||
*/
|
||||
resourceRequestUrl: 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;
|
||||
/** Type of token - `Bearer` or `pop` */
|
||||
tokenType?: "Bearer" | "pop";
|
||||
}
|
||||
/**
|
||||
* @internal
|
||||
* @param accessToken - Access token
|
||||
* @returns Whether a token is bearer type or not
|
||||
*/
|
||||
export declare function isBearerToken(accessToken: AccessToken): boolean;
|
||||
/**
|
||||
* @internal
|
||||
* @param accessToken - Access token
|
||||
* @returns Whether a token is Pop token or not
|
||||
*/
|
||||
export declare function isPopToken(accessToken: AccessToken): boolean;
|
||||
/**
|
||||
* 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
|
||||
40
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.js
generated
vendored
Normal file
40
node_modules/@azure/core-auth/dist/commonjs/tokenCredential.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isBearerToken = isBearerToken;
|
||||
exports.isPopToken = isPopToken;
|
||||
exports.isTokenCredential = isTokenCredential;
|
||||
/**
|
||||
* @internal
|
||||
* @param accessToken - Access token
|
||||
* @returns Whether a token is bearer type or not
|
||||
*/
|
||||
function isBearerToken(accessToken) {
|
||||
return !accessToken.tokenType || accessToken.tokenType === "Bearer";
|
||||
}
|
||||
/**
|
||||
* @internal
|
||||
* @param accessToken - Access token
|
||||
* @returns Whether a token is Pop token or not
|
||||
*/
|
||||
function isPopToken(accessToken) {
|
||||
return accessToken.tokenType === "pop";
|
||||
}
|
||||
/**
|
||||
* 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
File diff suppressed because one or more lines are too long
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
|
||||
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.52.11"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user