diff --git a/lib/IAMClient.d.ts b/lib/IAMClient.d.ts index 6400156..c281316 100644 --- a/lib/IAMClient.d.ts +++ b/lib/IAMClient.d.ts @@ -36,7 +36,7 @@ declare class VaultClient { setCustomEndpointForSignature(host: any, path: any): void; _host: any; __path: any; - enableIAMOnAdminRoutes(): this; + enableIAMOnAdminRoutes(): VaultClient; /** * Set the configuration for the werelogs logger * @param {object} config - A configuration object for werelogs @@ -362,6 +362,21 @@ declare class VaultClient { reqUid: string; logger?: werelogs.RequestLogger; }, callback: Function): undefined; + /** + * Retrieves the default encryption key id for the given account's canonical id, + * or creates one if it does not exist. + * + * @param {String} canonicalId - The canonical id of the account. + * @param {Object} options - Additional arguments. + * @param {string} options.reqUid - The request UID. + * @param {Function} callback + * - `error` (Error|null) - error object if the operation failed, otherwise null. + * - `result` (Object) - result object on success, containing raw response data and HTTP status code. + * @returns {void} + */ + getOrCreateEncryptionKeyId(canonicalId: string, options: { + reqUid: string; + }, callback: Function): void; healthcheck(reqUid: any, callback: any): void; report(reqUid: any, callback: any): void; _signRequest(iamAuthenticate: any, req: any, options: any, path: any): Promise; diff --git a/lib/IAMClient.d.ts.map b/lib/IAMClient.d.ts.map index 7900401..ff1e60c 100644 --- a/lib/IAMClient.d.ts.map +++ b/lib/IAMClient.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IAMClient.d.ts","sourceRoot":"","sources":["IAMClient.js"],"names":[],"mappings":";AAkBA;IACI;;;;;;;;;;;;;;;;OAgBG;IACH,kBAfW,MAAM,SACN,MAAM,aACN,OAAO,QACP,MAAM,SACN,MAAM,OACN,MAAM,aACN,OAAO,cACP,MAAM,mBACN,MAAM,WACN,QAAQ,CAAC,GAAG,SAEZ,MAAM,iBACN,MAAM,wBACN,OAAO,EA4CjB;IA5BG,mBAAsB;IACtB,mBAA8B;IAC9B,aAAe;IACf,cAAiB;IACjB,YAAa;IACb,kBAAmC;IAE/B,2CAME;IAON,kBAA0B;IAC1B,uBAAoC;IACpC,qBAAgC;I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AAM,GAAvC,QAAQ,CAAC,aAAa;KAC9B,uBAEU,SAAS,CAqBrB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,oCAbG;QAAqC,cAAc;QAGb,YAAY;KAGlD,WAAQ,MAAM,WAEd;QAAuB,MAAM;KAC7B,uBAES,SAAS,CA+BpB;IAED;;;;;;;;;OASG;IACH,sBARU,QAAQ,WAEf;QAAwB,MAAM,EAAtB,MAAM;QAC2B,MAAM,GAAvC,QAAQ,CAAC,aAAa;KAC9B,uBAES,SAAS,CAsBpB;IAED,8CAEC;IAED,yCAUC;IAGD,qFAgCC;IAGD;;;;;;;;;;;;;OAaG;IACH,gBAbW,MAAM,QACN,MAAM,mBACN,OAAO,uBAGP,MAAM,WAIN,MAAM,gBACN,MAAM,GACJ,SAAS,CA0ErB;IAED;;;;;OAKG;IACH,cAHW,MAAM,GACL,MAAM,GAAC,KAAK,CAWvB;IAED;;;;;;OAMG;IACH,YAJW,MAAM,iBAEL,SAAS,CAkBpB;IAED;;;;;;;OAOG;IACH,oBAPW,MAAM,OACN,MAAM,OAEN,MAAM,YAEJ,SAAS,CAwCrB;CACJ"} \ No newline at end of file +{"version":3,"file":"IAMClient.d.ts","sourceRoot":"","sources":["IAMClient.js"],"names":[],"mappings":";AAkBA;IACI;;;;;;;;;;;;;;;;OAgBG;IACH,kBAfW,MAAM,SACN,MAAM,aACN,OAAO,QACP,MAAM,SACN,MAAM,OACN,MAAM,aACN,OAAO,cACP,MAAM,mBACN,MAAM,WACN,SAAS,GAAG,SAEZ,MAAM,iBACN,MAAM,wBACN,OAAO,EA4CjB;IA5BG,mBAAsB;IACtB,mBAA8B;IAC9B,aAAe;IACf,cAAiB;IACjB,YAAa;IACb,kBAAmC;IAE/B,2CAME;IAON,kBAA0B;IAC1B,uBAAoC;IACpC,qBAAgC;IAChC,uCAAgC;IAChC,SAAgD;IAChD,cAAiB;IACjB,qCAAwC;IACxC,6BAA2F;IAG/F,0DAGC;IAFG,WAAiB;IACjB,YAAkB;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aAAa;4BAGrB,SAAS,CAsBpB;IAED;;;;;;;;;;;OAWG;IACH;QAN2B,MAAM,EAAtB,MAAM;4BAIJ,IAAI,CAsBhB;IAED,8CAEC;IAED,yCAUC;IAGD,qFAgCC;IAGD;;;;;;;;;;;;;OAaG;IACH,gBAbW,MAAM,QACN,MAAM,mBACN,OAAO,uBAGP,MAAM,WAIN,MAAM,gBACN,MAAM,GACJ,SAAS,CA0ErB;IAED;;;;;OAKG;IACH,cAHW,MAAM,GACL,MAAM,GAAC,KAAK,CAWvB;IAED;;;;;;OAMG;IACH,YAJW,MAAM,iBAEL,SAAS,CAkBpB;IAED;;;;;;;OAOG;IACH,oBAPW,MAAM,OACN,MAAM,OAEN,MAAM,YAEJ,SAAS,CAwCrB;CACJ"} \ No newline at end of file diff --git a/lib/constants.d.ts b/lib/constants.d.ts index 70e2fc4..16c7e5c 100644 --- a/lib/constants.d.ts +++ b/lib/constants.d.ts @@ -1,28 +1,28 @@ export const httpClientFreeSocketTimeout: 55000; export namespace InternalError { - let code: number; - let description: string; - let InternalError: boolean; + const code: number; + const description: string; + const InternalError: boolean; } export namespace InvalidParameterValue { - let code_1: number; + const code_1: number; export { code_1 as code }; - let description_1: string; + const description_1: string; export { description_1 as description }; - export let InvalidParameterValue: boolean; + export const InvalidParameterValue: boolean; } export namespace Forbidden { - let code_2: number; + const code_2: number; export { code_2 as code }; - let description_2: string; + const description_2: string; export { description_2 as description }; - export let Forbidden: boolean; + export const Forbidden: boolean; } export namespace WrongFormat { - let code_3: number; + const code_3: number; export { code_3 as code }; - let description_3: string; + const description_3: string; export { description_3 as description }; - export let WrongFormat: boolean; + export const WrongFormat: boolean; } //# sourceMappingURL=constants.d.ts.map \ No newline at end of file