@alienplatform/sdk 1.11.2 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.turbo/turbo-build.log +18 -44
  2. package/dist/bearerTokenAuthenticationPolicy.js +40 -40
  3. package/dist/{serde.js → checksum.js} +1103 -469
  4. package/dist/dist-cjs.js +15256 -1
  5. package/dist/dist.js +37 -23
  6. package/dist/es5.js +107 -11
  7. package/dist/esm.js +4803 -4946
  8. package/dist/esm2.js +298 -236
  9. package/dist/event-streams.js +571 -4
  10. package/dist/generated/artifact_registry.d.ts +14 -14
  11. package/dist/generated/artifact_registry.d.ts.map +1 -1
  12. package/dist/generated/build.d.ts +6 -6
  13. package/dist/generated/build.d.ts.map +1 -1
  14. package/dist/generated/container.d.ts +6 -6
  15. package/dist/generated/container.d.ts.map +1 -1
  16. package/dist/generated/control.d.ts +8 -8
  17. package/dist/generated/control.d.ts.map +1 -1
  18. package/dist/generated/kv.d.ts +10 -10
  19. package/dist/generated/kv.d.ts.map +1 -1
  20. package/dist/generated/queue.d.ts +6 -6
  21. package/dist/generated/queue.d.ts.map +1 -1
  22. package/dist/generated/service_account.d.ts +4 -4
  23. package/dist/generated/service_account.d.ts.map +1 -1
  24. package/dist/generated/storage.d.ts +28 -28
  25. package/dist/generated/storage.d.ts.map +1 -1
  26. package/dist/generated/vault.d.ts +6 -6
  27. package/dist/generated/vault.d.ts.map +1 -1
  28. package/dist/generated/wait_until.d.ts +8 -8
  29. package/dist/generated/wait_until.d.ts.map +1 -1
  30. package/dist/generated/worker.d.ts +4 -4
  31. package/dist/generated/worker.d.ts.map +1 -1
  32. package/dist/index.js +311 -278
  33. package/dist/open.js +2 -1
  34. package/dist/rolldown-runtime.js +9 -2
  35. package/dist/src.js +10240 -10043
  36. package/dist/src2.js +15 -13
  37. package/package.json +4 -4
  38. package/src/generated/artifact_registry.ts +125 -35
  39. package/src/generated/build.ts +67 -19
  40. package/src/generated/container.ts +28 -10
  41. package/src/generated/control.ts +130 -34
  42. package/src/generated/google/protobuf/duration.ts +1 -1
  43. package/src/generated/google/protobuf/timestamp.ts +1 -1
  44. package/src/generated/kv.ts +53 -21
  45. package/src/generated/queue.ts +37 -13
  46. package/src/generated/service_account.ts +64 -16
  47. package/src/generated/storage.ts +189 -61
  48. package/src/generated/vault.ts +37 -13
  49. package/src/generated/wait_until.ts +68 -20
  50. package/src/generated/worker.ts +29 -11
  51. package/dist/client.js +0 -2376
  52. package/dist/dist-cjs2.js +0 -718
  53. package/dist/dist-cjs3.js +0 -2486
  54. package/dist/dist-cjs4.js +0 -171
  55. package/dist/dist-cjs5.js +0 -429
  56. package/dist/dist-cjs6.js +0 -60
  57. package/dist/dist-cjs7.js +0 -978
  58. package/dist/dist-cjs8.js +0 -86
  59. package/dist/dist-cjs9.js +0 -319
  60. package/dist/package.js +0 -4
  61. package/dist/protocols.js +0 -954
  62. package/dist/protocols2.js +0 -5565
  63. package/dist/signin.js +0 -723
  64. package/dist/sso-oidc.js +0 -940
  65. package/dist/sts.js +0 -1329
  66. package/dist/tslib.es6.js +0 -543
package/dist/esm2.js CHANGED
@@ -1,5 +1,4 @@
1
- import { a as __rest, i as __await, n as __asyncGenerator, o as init_tslib_es6, r as __asyncValues, t as __asyncDelegator } from "./tslib.es6.js";
2
- import { B as createTracingClient, C as RestError, D as createHttpHeaders, E as createPipelineRequest, F as delay, L as stringToUint8Array, M as stringToUint8Array$1, N as uint8ArrayToString$1, P as isObjectWithProperties, R as uint8ArrayToString, S as logger$3, T as createEmptyPipeline, V as createClientLogger, _ as decompressResponsePolicy, a as RestError$1, b as logPolicy, c as multipartPolicyName, d as tlsPolicy, f as agentPolicy, h as defaultRetryPolicy, l as isBinaryBody, m as formDataPolicy, n as bearerTokenAuthenticationPolicyName, p as proxyPolicy, r as createPipelineFromOptions$1, s as multipartPolicy, t as bearerTokenAuthenticationPolicy, u as isReadableStream, v as SDK_VERSION$1, w as isRestError, x as createDefaultHttpClient, y as redirectPolicy, z as isNodeLike } from "./bearerTokenAuthenticationPolicy.js";
1
+ import { B as createTracingClient, C as RestError, D as createHttpHeaders, E as createPipelineRequest, F as delay, L as stringToUint8Array, M as stringToUint8Array$1, N as uint8ArrayToString$1, P as isObjectWithProperties, R as uint8ArrayToString, S as logger$2, T as createEmptyPipeline, V as createClientLogger, _ as decompressResponsePolicy, a as RestError$1, b as logPolicy, c as multipartPolicyName, d as tlsPolicy, f as agentPolicy, h as defaultRetryPolicy, l as isBinaryBody, m as formDataPolicy, n as bearerTokenAuthenticationPolicyName, p as proxyPolicy, r as createPipelineFromOptions$1, s as multipartPolicy, t as bearerTokenAuthenticationPolicy, u as isReadableStream, v as SDK_VERSION$1, w as isRestError, x as createDefaultHttpClient, y as redirectPolicy, z as isNodeLike } from "./bearerTokenAuthenticationPolicy.js";
3
2
  import os from "node:os";
4
3
  import process$1 from "node:process";
5
4
  //#region ../../node_modules/.pnpm/@typespec+ts-http-runtime@0.3.2/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgentPlatform.js
@@ -160,7 +159,7 @@ function allowInsecureConnection(request, options) {
160
159
  */
161
160
  function emitInsecureConnectionWarning() {
162
161
  const warning = "Sending token over insecure transport. Assume any token issued is compromised.";
163
- logger$3.warning(warning);
162
+ logger$2.warning(warning);
164
163
  if (typeof process?.emitWarning === "function" && !insecureConnectionWarningEmmitted) {
165
164
  insecureConnectionWarningEmmitted = true;
166
165
  process.emitWarning(warning);
@@ -453,7 +452,7 @@ function buildPipelineRequest(method, url, options = {}) {
453
452
  onDownloadProgress: options.onDownloadProgress,
454
453
  timeout: options.timeout,
455
454
  enableBrowserStreams: true,
456
- streamResponseStatusCodes: options.responseAsStream ? new Set([Number.POSITIVE_INFINITY]) : void 0
455
+ streamResponseStatusCodes: options.responseAsStream ? /* @__PURE__ */ new Set([Number.POSITIVE_INFINITY]) : void 0
457
456
  });
458
457
  }
459
458
  /**
@@ -711,32 +710,18 @@ function statusCodeToNumber(statusCode) {
711
710
  return Number.isNaN(status) ? void 0 : status;
712
711
  }
713
712
  //#endregion
714
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/log.js
715
- init_tslib_es6();
713
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/logger.js
716
714
  /**
717
715
  * The \@azure/logger configuration for this package.
718
716
  */
719
717
  const logger = createClientLogger("keyvault-secrets");
720
718
  //#endregion
721
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/generated/logger.js
722
- const logger$2 = createClientLogger("keyvault-secrets");
723
- //#endregion
724
719
  //#region ../../node_modules/.pnpm/@azure-rest+core-client@2.5.1/node_modules/@azure-rest/core-client/dist/esm/restError.js
725
720
  function createRestError(messageOrResponse, response) {
726
721
  if (typeof messageOrResponse === "string") return createRestError$1(messageOrResponse, response);
727
722
  else return createRestError$1(messageOrResponse);
728
723
  }
729
724
  //#endregion
730
- //#region ../../node_modules/.pnpm/@azure-rest+core-client@2.5.1/node_modules/@azure-rest/core-client/dist/esm/operationOptionHelpers.js
731
- /**
732
- * Helper function to convert OperationOptions to RequestParameters
733
- * @param options - the options that are used by Modular layer to send the request
734
- * @returns the result of the conversion in RequestParameters of RLC layer
735
- */
736
- function operationOptionsToRequestParameters(options) {
737
- return operationOptionsToRequestParameters$1(options);
738
- }
739
- //#endregion
740
725
  //#region ../../node_modules/.pnpm/@azure+core-auth@1.10.1/node_modules/@azure/core-auth/dist/esm/keyCredential.js
741
726
  /**
742
727
  * Tests an object to determine whether it implements KeyCredential.
@@ -826,6 +811,16 @@ function isKeyCredential(credential) {
826
811
  return credential.key !== void 0;
827
812
  }
828
813
  //#endregion
814
+ //#region ../../node_modules/.pnpm/@azure-rest+core-client@2.5.1/node_modules/@azure-rest/core-client/dist/esm/operationOptionHelpers.js
815
+ /**
816
+ * Helper function to convert OperationOptions to RequestParameters
817
+ * @param options - the options that are used by Modular layer to send the request
818
+ * @returns the result of the conversion in RequestParameters of RLC layer
819
+ */
820
+ function operationOptionsToRequestParameters(options) {
821
+ return operationOptionsToRequestParameters$1(options);
822
+ }
823
+ //#endregion
829
824
  //#region ../../node_modules/.pnpm/@azure-rest+core-client@2.5.1/node_modules/@azure-rest/core-client/dist/esm/getClient.js
830
825
  /**
831
826
  * Function to wrap RequestParameters so that we get the legacy onResponse behavior in core-client-rest
@@ -886,22 +881,25 @@ function isCredential(param) {
886
881
  return isKeyCredential$1(param) || isTokenCredential(param);
887
882
  }
888
883
  //#endregion
889
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/generated/api/keyVaultContext.js
890
- /** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */
884
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/constants.js
885
+ const SDK_VERSION = "4.11.2";
886
+ //#endregion
887
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/api/keyVaultContext.js
888
+ /** Creates a new Azure Key Vault Secrets client context. */
891
889
  function createKeyVault(endpointParam, credential, options = {}) {
892
- var _a, _b, _c, _d, _e, _f, _g, _h;
893
- const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : String(endpointParam);
894
- const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
895
- const userAgentInfo = `azsdk-js-keyvault-secrets/1.0.0-beta.1`;
890
+ const endpointUrl = options.endpoint ?? options.baseUrl ?? String(endpointParam);
891
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
892
+ const userAgentInfo = `azsdk-js-keyvault-secrets/${SDK_VERSION}`;
896
893
  const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` : `azsdk-js-api ${userAgentInfo}`;
897
- const _j = Object.assign(Object.assign({}, options), {
894
+ const { apiVersion: _, ...updatedOptions } = {
895
+ ...options,
898
896
  userAgentOptions: { userAgentPrefix },
899
- loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger$2.info },
900
- credentials: { scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : ["https://vault.azure.net/.default"] }
901
- }), { apiVersion: _ } = _j;
902
- const clientContext = getClient(endpointUrl, credential, __rest(_j, ["apiVersion"]));
897
+ loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
898
+ credentials: { scopes: options.credentials?.scopes ?? ["https://vault.azure.net/.default"] }
899
+ };
900
+ const clientContext = getClient(endpointUrl, credential, updatedOptions);
903
901
  clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
904
- const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "7.6";
902
+ const apiVersion = options.apiVersion ?? "2025-07-01";
905
903
  clientContext.pipeline.addPolicy({
906
904
  name: "ClientApiVersionPolicy",
907
905
  sendRequest: (req, next) => {
@@ -910,10 +908,13 @@ function createKeyVault(endpointParam, credential, options = {}) {
910
908
  return next(req);
911
909
  }
912
910
  });
913
- return Object.assign(Object.assign({}, clientContext), { apiVersion });
911
+ return {
912
+ ...clientContext,
913
+ apiVersion
914
+ };
914
915
  }
915
916
  //#endregion
916
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/generated/models/models.js
917
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/models/models.js
917
918
  function secretSetParametersSerializer(item) {
918
919
  return {
919
920
  value: item["value"],
@@ -966,7 +967,8 @@ function secretBundleDeserializer(item) {
966
967
  attributes: !item["attributes"] ? item["attributes"] : secretAttributesDeserializer(item["attributes"]),
967
968
  tags: item["tags"],
968
969
  kid: item["kid"],
969
- managed: item["managed"]
970
+ managed: item["managed"],
971
+ previousVersion: item["previousVersion"]
970
972
  };
971
973
  }
972
974
  function keyVaultErrorDeserializer(item) {
@@ -988,6 +990,7 @@ function deletedSecretBundleDeserializer(item) {
988
990
  tags: item["tags"],
989
991
  kid: item["kid"],
990
992
  managed: item["managed"],
993
+ previousVersion: item["previousVersion"],
991
994
  recoveryId: item["recoveryId"],
992
995
  scheduledPurgeDate: !item["scheduledPurgeDate"] ? item["scheduledPurgeDate"] : /* @__PURE__ */ new Date(item["scheduledPurgeDate"] * 1e3),
993
996
  deletedDate: !item["deletedDate"] ? item["deletedDate"] : /* @__PURE__ */ new Date(item["deletedDate"] * 1e3)
@@ -1049,6 +1052,14 @@ function backupSecretResultDeserializer(item) {
1049
1052
  function secretRestoreParametersSerializer(item) {
1050
1053
  return { value: uint8ArrayToString$1(item["secretBundleBackup"], "base64url") };
1051
1054
  }
1055
+ /** Known values of {@link ContentType} that the service accepts. */
1056
+ var KnownContentType;
1057
+ (function(KnownContentType) {
1058
+ /** The PKCS#12 (PFX) certificate format. */
1059
+ KnownContentType["PFX"] = "application/x-pkcs12";
1060
+ /** The PEM certificate format. */
1061
+ KnownContentType["PEM"] = "application/x-pem-file";
1062
+ })(KnownContentType || (KnownContentType = {}));
1052
1063
  /** The available API versions. */
1053
1064
  var KnownVersions;
1054
1065
  (function(KnownVersions) {
@@ -1058,17 +1069,17 @@ var KnownVersions;
1058
1069
  KnownVersions["V76Preview2"] = "7.6-preview.2";
1059
1070
  /** The 7.6 API version. */
1060
1071
  KnownVersions["V76"] = "7.6";
1072
+ /** The 2025-07-01 API version. */
1073
+ KnownVersions["V20250701"] = "2025-07-01";
1061
1074
  })(KnownVersions || (KnownVersions = {}));
1062
1075
  //#endregion
1063
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/generated/static-helpers/pagingHelpers.js
1064
- init_tslib_es6();
1076
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/static-helpers/pagingHelpers.js
1065
1077
  /**
1066
1078
  * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
1067
1079
  */
1068
1080
  function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
1069
- var _a, _b;
1070
- const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
1071
- const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
1081
+ const itemName = options.itemName ?? "value";
1082
+ const nextLinkName = options.nextLinkName ?? "nextLink";
1072
1083
  const pagedResult = {
1073
1084
  getPage: async (pageLink) => {
1074
1085
  const result = pageLink === void 0 ? await getInitialResponse() : await client.pathUnchecked(pageLink).get();
@@ -1081,7 +1092,7 @@ function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody
1081
1092
  };
1082
1093
  },
1083
1094
  byPage: (settings) => {
1084
- const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
1095
+ const { continuationToken } = settings ?? {};
1085
1096
  return getPageAsyncIterator(pagedResult, { pageLink: continuationToken });
1086
1097
  }
1087
1098
  };
@@ -1095,7 +1106,6 @@ function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody
1095
1106
  * @returns a paged async iterator that iterates over results.
1096
1107
  */
1097
1108
  function getPagedAsyncIterator(pagedResult) {
1098
- var _a;
1099
1109
  const iter = getItemAsyncIterator(pagedResult);
1100
1110
  return {
1101
1111
  next() {
@@ -1104,49 +1114,30 @@ function getPagedAsyncIterator(pagedResult) {
1104
1114
  [Symbol.asyncIterator]() {
1105
1115
  return this;
1106
1116
  },
1107
- byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
1108
- const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
1117
+ byPage: pagedResult?.byPage ?? ((settings) => {
1118
+ const { continuationToken } = settings ?? {};
1109
1119
  return getPageAsyncIterator(pagedResult, { pageLink: continuationToken });
1110
1120
  })
1111
1121
  };
1112
1122
  }
1113
- function getItemAsyncIterator(pagedResult) {
1114
- return __asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
1115
- var _a, e_1, _b, _c;
1116
- const pages = getPageAsyncIterator(pagedResult);
1117
- try {
1118
- for (var _d = true, pages_1 = __asyncValues(pages), pages_1_1; pages_1_1 = yield __await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
1119
- _c = pages_1_1.value;
1120
- _d = false;
1121
- yield __await(yield* __asyncDelegator(__asyncValues(_c)));
1122
- }
1123
- } catch (e_1_1) {
1124
- e_1 = { error: e_1_1 };
1125
- } finally {
1126
- try {
1127
- if (!_d && !_a && (_b = pages_1.return)) yield __await(_b.call(pages_1));
1128
- } finally {
1129
- if (e_1) throw e_1.error;
1130
- }
1131
- }
1132
- });
1133
- }
1134
- function getPageAsyncIterator(pagedResult_1) {
1135
- return __asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
1136
- const { pageLink } = options;
1137
- let response = yield __await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
1138
- if (!response) return yield __await(void 0);
1139
- let result = response.page;
1123
+ async function* getItemAsyncIterator(pagedResult) {
1124
+ const pages = getPageAsyncIterator(pagedResult);
1125
+ for await (const page of pages) yield* page;
1126
+ }
1127
+ async function* getPageAsyncIterator(pagedResult, options = {}) {
1128
+ const { pageLink } = options;
1129
+ let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);
1130
+ if (!response) return;
1131
+ let result = response.page;
1132
+ result.continuationToken = response.nextPageLink;
1133
+ yield result;
1134
+ while (response.nextPageLink) {
1135
+ response = await pagedResult.getPage(response.nextPageLink);
1136
+ if (!response) return;
1137
+ result = response.page;
1140
1138
  result.continuationToken = response.nextPageLink;
1141
- yield yield __await(result);
1142
- while (response.nextPageLink) {
1143
- response = yield __await(pagedResult.getPage(response.nextPageLink));
1144
- if (!response) return yield __await(void 0);
1145
- result = response.page;
1146
- result.continuationToken = response.nextPageLink;
1147
- yield yield __await(result);
1148
- }
1149
- });
1139
+ yield result;
1140
+ }
1150
1141
  }
1151
1142
  /**
1152
1143
  * Gets for the value of nextLink in the body
@@ -1164,7 +1155,7 @@ function getNextLink(body, nextLinkName) {
1164
1155
  function getElements(body, itemName) {
1165
1156
  const value = body[itemName];
1166
1157
  if (!Array.isArray(value)) throw new RestError$1(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
1167
- return value !== null && value !== void 0 ? value : [];
1158
+ return value ?? [];
1168
1159
  }
1169
1160
  /**
1170
1161
  * Checks if a request failed
@@ -1173,9 +1164,9 @@ function checkPagingRequest(response, expectedStatuses) {
1173
1164
  if (!expectedStatuses.includes(response.status)) throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
1174
1165
  }
1175
1166
  //#endregion
1176
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/generated/static-helpers/urlTemplate.js
1167
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/static-helpers/urlTemplate.js
1177
1168
  function encodeComponent(val, reserved, op) {
1178
- return (reserved !== null && reserved !== void 0 ? reserved : op === "+") || op === "#" ? encodeReservedComponent(val) : encodeRFC3986URIComponent(val);
1169
+ return (reserved ?? op === "+") || op === "#" ? encodeReservedComponent(val) : encodeRFC3986URIComponent(val);
1179
1170
  }
1180
1171
  function encodeReservedComponent(str) {
1181
1172
  return str.split(/(%[0-9A-Fa-f]{2})/g).map((part) => !/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part).join("");
@@ -1294,7 +1285,7 @@ function expandUrlTemplate(template, context, option) {
1294
1285
  varValue: context[varMatch[1]],
1295
1286
  varName: varMatch[1],
1296
1287
  modifier: varMatch[2] || varMatch[3],
1297
- reserved: option === null || option === void 0 ? void 0 : option.allowReserved
1288
+ reserved: option?.allowReserved
1298
1289
  });
1299
1290
  if (varValue) result.push(varValue);
1300
1291
  }
@@ -1302,15 +1293,18 @@ function expandUrlTemplate(template, context, option) {
1302
1293
  });
1303
1294
  }
1304
1295
  //#endregion
1305
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/generated/api/operations.js
1296
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/api/operations.js
1306
1297
  function _restoreSecretSend(context, parameters, options = { requestOptions: {} }) {
1307
- var _a, _b;
1308
- const path = expandUrlTemplate("/secrets/restore{?api%2Dversion}", { "api%2Dversion": context.apiVersion }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1309
- return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), {
1298
+ const path = expandUrlTemplate("/secrets/restore{?api%2Dversion}", { "api%2Dversion": context.apiVersion }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1299
+ return context.path(path).post({
1300
+ ...operationOptionsToRequestParameters(options),
1310
1301
  contentType: "application/json",
1311
- headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers),
1302
+ headers: {
1303
+ accept: "application/json",
1304
+ ...options.requestOptions?.headers
1305
+ },
1312
1306
  body: secretRestoreParametersSerializer(parameters)
1313
- }));
1307
+ });
1314
1308
  }
1315
1309
  async function _restoreSecretDeserialize(result) {
1316
1310
  if (!["200"].includes(result.status)) {
@@ -1325,12 +1319,17 @@ async function restoreSecret(context, parameters, options = { requestOptions: {}
1325
1319
  return _restoreSecretDeserialize(await _restoreSecretSend(context, parameters, options));
1326
1320
  }
1327
1321
  function _backupSecretSend(context, secretName, options = { requestOptions: {} }) {
1328
- var _a, _b;
1329
1322
  const path = expandUrlTemplate("/secrets/{secret-name}/backup{?api%2Dversion}", {
1330
1323
  "secret-name": secretName,
1331
1324
  "api%2Dversion": context.apiVersion
1332
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1333
- return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1325
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1326
+ return context.path(path).post({
1327
+ ...operationOptionsToRequestParameters(options),
1328
+ headers: {
1329
+ accept: "application/json",
1330
+ ...options.requestOptions?.headers
1331
+ }
1332
+ });
1334
1333
  }
1335
1334
  async function _backupSecretDeserialize(result) {
1336
1335
  if (!["200"].includes(result.status)) {
@@ -1345,12 +1344,17 @@ async function backupSecret(context, secretName, options = { requestOptions: {}
1345
1344
  return _backupSecretDeserialize(await _backupSecretSend(context, secretName, options));
1346
1345
  }
1347
1346
  function _recoverDeletedSecretSend(context, secretName, options = { requestOptions: {} }) {
1348
- var _a, _b;
1349
1347
  const path = expandUrlTemplate("/deletedsecrets/{secret-name}/recover{?api%2Dversion}", {
1350
1348
  "secret-name": secretName,
1351
1349
  "api%2Dversion": context.apiVersion
1352
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1353
- return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1350
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1351
+ return context.path(path).post({
1352
+ ...operationOptionsToRequestParameters(options),
1353
+ headers: {
1354
+ accept: "application/json",
1355
+ ...options.requestOptions?.headers
1356
+ }
1357
+ });
1354
1358
  }
1355
1359
  async function _recoverDeletedSecretDeserialize(result) {
1356
1360
  if (!["200"].includes(result.status)) {
@@ -1365,12 +1369,17 @@ async function recoverDeletedSecret(context, secretName, options = { requestOpti
1365
1369
  return _recoverDeletedSecretDeserialize(await _recoverDeletedSecretSend(context, secretName, options));
1366
1370
  }
1367
1371
  function _purgeDeletedSecretSend(context, secretName, options = { requestOptions: {} }) {
1368
- var _a, _b;
1369
1372
  const path = expandUrlTemplate("/deletedsecrets/{secret-name}{?api%2Dversion}", {
1370
1373
  "secret-name": secretName,
1371
1374
  "api%2Dversion": context.apiVersion
1372
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1373
- return context.path(path).delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1375
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1376
+ return context.path(path).delete({
1377
+ ...operationOptionsToRequestParameters(options),
1378
+ headers: {
1379
+ accept: "application/json",
1380
+ ...options.requestOptions?.headers
1381
+ }
1382
+ });
1374
1383
  }
1375
1384
  async function _purgeDeletedSecretDeserialize(result) {
1376
1385
  if (!["204"].includes(result.status)) {
@@ -1384,12 +1393,17 @@ async function purgeDeletedSecret(context, secretName, options = { requestOption
1384
1393
  return _purgeDeletedSecretDeserialize(await _purgeDeletedSecretSend(context, secretName, options));
1385
1394
  }
1386
1395
  function _getDeletedSecretSend(context, secretName, options = { requestOptions: {} }) {
1387
- var _a, _b;
1388
1396
  const path = expandUrlTemplate("/deletedsecrets/{secret-name}{?api%2Dversion}", {
1389
1397
  "secret-name": secretName,
1390
1398
  "api%2Dversion": context.apiVersion
1391
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1392
- return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1399
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1400
+ return context.path(path).get({
1401
+ ...operationOptionsToRequestParameters(options),
1402
+ headers: {
1403
+ accept: "application/json",
1404
+ ...options.requestOptions?.headers
1405
+ }
1406
+ });
1393
1407
  }
1394
1408
  async function _getDeletedSecretDeserialize(result) {
1395
1409
  if (!["200"].includes(result.status)) {
@@ -1404,12 +1418,17 @@ async function getDeletedSecret(context, secretName, options = { requestOptions:
1404
1418
  return _getDeletedSecretDeserialize(await _getDeletedSecretSend(context, secretName, options));
1405
1419
  }
1406
1420
  function _getDeletedSecretsSend(context, options = { requestOptions: {} }) {
1407
- var _a, _b;
1408
1421
  const path = expandUrlTemplate("/deletedsecrets{?api%2Dversion,maxresults}", {
1409
1422
  "api%2Dversion": context.apiVersion,
1410
- maxresults: options === null || options === void 0 ? void 0 : options.maxresults
1411
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1412
- return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1423
+ maxresults: options?.maxresults
1424
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1425
+ return context.path(path).get({
1426
+ ...operationOptionsToRequestParameters(options),
1427
+ headers: {
1428
+ accept: "application/json",
1429
+ ...options.requestOptions?.headers
1430
+ }
1431
+ });
1413
1432
  }
1414
1433
  async function _getDeletedSecretsDeserialize(result) {
1415
1434
  if (!["200"].includes(result.status)) {
@@ -1427,13 +1446,18 @@ function getDeletedSecrets(context, options = { requestOptions: {} }) {
1427
1446
  });
1428
1447
  }
1429
1448
  function _getSecretVersionsSend(context, secretName, options = { requestOptions: {} }) {
1430
- var _a, _b;
1431
1449
  const path = expandUrlTemplate("/secrets/{secret-name}/versions{?api%2Dversion,maxresults}", {
1432
1450
  "secret-name": secretName,
1433
1451
  "api%2Dversion": context.apiVersion,
1434
- maxresults: options === null || options === void 0 ? void 0 : options.maxresults
1435
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1436
- return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1452
+ maxresults: options?.maxresults
1453
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1454
+ return context.path(path).get({
1455
+ ...operationOptionsToRequestParameters(options),
1456
+ headers: {
1457
+ accept: "application/json",
1458
+ ...options.requestOptions?.headers
1459
+ }
1460
+ });
1437
1461
  }
1438
1462
  async function _getSecretVersionsDeserialize(result) {
1439
1463
  if (!["200"].includes(result.status)) {
@@ -1451,12 +1475,17 @@ function getSecretVersions(context, secretName, options = { requestOptions: {} }
1451
1475
  });
1452
1476
  }
1453
1477
  function _getSecretsSend(context, options = { requestOptions: {} }) {
1454
- var _a, _b;
1455
1478
  const path = expandUrlTemplate("/secrets{?api%2Dversion,maxresults}", {
1456
1479
  "api%2Dversion": context.apiVersion,
1457
- maxresults: options === null || options === void 0 ? void 0 : options.maxresults
1458
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1459
- return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1480
+ maxresults: options?.maxresults
1481
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1482
+ return context.path(path).get({
1483
+ ...operationOptionsToRequestParameters(options),
1484
+ headers: {
1485
+ accept: "application/json",
1486
+ ...options.requestOptions?.headers
1487
+ }
1488
+ });
1460
1489
  }
1461
1490
  async function _getSecretsDeserialize(result) {
1462
1491
  if (!["200"].includes(result.status)) {
@@ -1474,13 +1503,19 @@ function getSecrets(context, options = { requestOptions: {} }) {
1474
1503
  });
1475
1504
  }
1476
1505
  function _getSecretSend(context, secretName, secretVersion, options = { requestOptions: {} }) {
1477
- var _a, _b;
1478
- const path = expandUrlTemplate("/secrets/{secret-name}/{secret-version}{?api%2Dversion}", {
1506
+ const path = expandUrlTemplate("/secrets/{secret-name}/{secret-version}{?api%2Dversion,outContentType}", {
1479
1507
  "secret-name": secretName,
1480
1508
  "secret-version": secretVersion,
1481
- "api%2Dversion": context.apiVersion
1482
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1483
- return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1509
+ "api%2Dversion": context.apiVersion,
1510
+ outContentType: options?.outContentType
1511
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1512
+ return context.path(path).get({
1513
+ ...operationOptionsToRequestParameters(options),
1514
+ headers: {
1515
+ accept: "application/json",
1516
+ ...options.requestOptions?.headers
1517
+ }
1518
+ });
1484
1519
  }
1485
1520
  async function _getSecretDeserialize(result) {
1486
1521
  if (!["200"].includes(result.status)) {
@@ -1495,17 +1530,20 @@ async function getSecret(context, secretName, secretVersion, options = { request
1495
1530
  return _getSecretDeserialize(await _getSecretSend(context, secretName, secretVersion, options));
1496
1531
  }
1497
1532
  function _updateSecretSend(context, secretName, secretVersion, parameters, options = { requestOptions: {} }) {
1498
- var _a, _b;
1499
1533
  const path = expandUrlTemplate("/secrets/{secret-name}/{secret-version}{?api%2Dversion}", {
1500
1534
  "secret-name": secretName,
1501
1535
  "secret-version": secretVersion,
1502
1536
  "api%2Dversion": context.apiVersion
1503
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1504
- return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), {
1537
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1538
+ return context.path(path).patch({
1539
+ ...operationOptionsToRequestParameters(options),
1505
1540
  contentType: "application/json",
1506
- headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers),
1541
+ headers: {
1542
+ accept: "application/json",
1543
+ ...options.requestOptions?.headers
1544
+ },
1507
1545
  body: secretUpdateParametersSerializer(parameters)
1508
- }));
1546
+ });
1509
1547
  }
1510
1548
  async function _updateSecretDeserialize(result) {
1511
1549
  if (!["200"].includes(result.status)) {
@@ -1520,12 +1558,17 @@ async function updateSecret(context, secretName, secretVersion, parameters, opti
1520
1558
  return _updateSecretDeserialize(await _updateSecretSend(context, secretName, secretVersion, parameters, options));
1521
1559
  }
1522
1560
  function _deleteSecretSend(context, secretName, options = { requestOptions: {} }) {
1523
- var _a, _b;
1524
1561
  const path = expandUrlTemplate("/secrets/{secret-name}{?api%2Dversion}", {
1525
1562
  "secret-name": secretName,
1526
1563
  "api%2Dversion": context.apiVersion
1527
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1528
- return context.path(path).delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1564
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1565
+ return context.path(path).delete({
1566
+ ...operationOptionsToRequestParameters(options),
1567
+ headers: {
1568
+ accept: "application/json",
1569
+ ...options.requestOptions?.headers
1570
+ }
1571
+ });
1529
1572
  }
1530
1573
  async function _deleteSecretDeserialize(result) {
1531
1574
  if (!["200"].includes(result.status)) {
@@ -1540,16 +1583,19 @@ async function deleteSecret(context, secretName, options = { requestOptions: {}
1540
1583
  return _deleteSecretDeserialize(await _deleteSecretSend(context, secretName, options));
1541
1584
  }
1542
1585
  function _setSecretSend(context, secretName, parameters, options = { requestOptions: {} }) {
1543
- var _a, _b;
1544
1586
  const path = expandUrlTemplate("/secrets/{secret-name}{?api%2Dversion}", {
1545
1587
  "secret-name": secretName,
1546
1588
  "api%2Dversion": context.apiVersion
1547
- }, { allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding });
1548
- return context.path(path).put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), {
1589
+ }, { allowReserved: options?.requestOptions?.skipUrlEncoding });
1590
+ return context.path(path).put({
1591
+ ...operationOptionsToRequestParameters(options),
1549
1592
  contentType: "application/json",
1550
- headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers),
1593
+ headers: {
1594
+ accept: "application/json",
1595
+ ...options.requestOptions?.headers
1596
+ },
1551
1597
  body: secretSetParametersSerializer(parameters)
1552
- }));
1598
+ });
1553
1599
  }
1554
1600
  async function _setSecretDeserialize(result) {
1555
1601
  if (!["200"].includes(result.status)) {
@@ -1564,14 +1610,19 @@ async function setSecret(context, secretName, parameters, options = { requestOpt
1564
1610
  return _setSecretDeserialize(await _setSecretSend(context, secretName, parameters, options));
1565
1611
  }
1566
1612
  //#endregion
1567
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/generated/keyVaultClient.js
1613
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/keyVaultClient.js
1568
1614
  var KeyVaultClient = class {
1615
+ _client;
1616
+ /** The pipeline used by this client to make requests */
1617
+ pipeline;
1569
1618
  /** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */
1570
1619
  constructor(endpointParam, credential, options = {}) {
1571
- var _a;
1572
- const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
1620
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
1573
1621
  const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-client` : `azsdk-js-client`;
1574
- this._client = createKeyVault(endpointParam, credential, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
1622
+ this._client = createKeyVault(endpointParam, credential, {
1623
+ ...options,
1624
+ userAgentOptions: { userAgentPrefix }
1625
+ });
1575
1626
  this.pipeline = this._client.pipeline;
1576
1627
  }
1577
1628
  /** Restores a backed up secret, and all its versions, to a vault. This operation requires the secrets/restore permission. */
@@ -1624,7 +1675,7 @@ var KeyVaultClient = class {
1624
1675
  }
1625
1676
  };
1626
1677
  //#endregion
1627
- //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.0.0/node_modules/@azure/keyvault-common/dist/esm/parseWWWAuthenticate.js
1678
+ //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.1.0/node_modules/@azure/keyvault-common/dist/esm/parseWWWAuthenticate.js
1628
1679
  const validWWWAuthenticateProperties = [
1629
1680
  "authorization",
1630
1681
  "authorization_url",
@@ -1646,7 +1697,10 @@ function parseWWWAuthenticateHeader(headerValue) {
1646
1697
  const parsed = headerValue.split(/,? +/).reduce((kvPairs, p) => {
1647
1698
  if (p.match(/\w="/)) {
1648
1699
  const [key, ...value] = p.split("=");
1649
- if (validWWWAuthenticateProperties.includes(key)) return Object.assign(Object.assign({}, kvPairs), { [key]: value.join("=").slice(1, -1) });
1700
+ if (validWWWAuthenticateProperties.includes(key)) return {
1701
+ ...kvPairs,
1702
+ [key]: value.join("=").slice(1, -1)
1703
+ };
1650
1704
  }
1651
1705
  return kvPairs;
1652
1706
  }, {});
@@ -1659,7 +1713,7 @@ function parseWWWAuthenticateHeader(headerValue) {
1659
1713
  return parsed;
1660
1714
  }
1661
1715
  //#endregion
1662
- //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.0.0/node_modules/@azure/keyvault-common/dist/esm/tokenCycler.js
1716
+ //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.1.0/node_modules/@azure/keyvault-common/dist/esm/tokenCycler.js
1663
1717
  const DEFAULT_CYCLER_OPTIONS = {
1664
1718
  forcedRefreshWindowInMs: 1e3,
1665
1719
  retryIntervalInMs: 3e3,
@@ -1679,7 +1733,7 @@ async function beginRefresh(getAccessToken, retryIntervalInMs, refreshTimeout) {
1679
1733
  async function tryGetAccessToken() {
1680
1734
  if (Date.now() < refreshTimeout) try {
1681
1735
  return await getAccessToken();
1682
- } catch (_a) {
1736
+ } catch {
1683
1737
  return null;
1684
1738
  }
1685
1739
  else {
@@ -1713,7 +1767,10 @@ function createTokenCycler(credential, tokenCyclerOptions) {
1713
1767
  let refreshWorker = null;
1714
1768
  let token = null;
1715
1769
  let tenantId;
1716
- const options = Object.assign(Object.assign({}, DEFAULT_CYCLER_OPTIONS), tokenCyclerOptions);
1770
+ const options = {
1771
+ ...DEFAULT_CYCLER_OPTIONS,
1772
+ ...tokenCyclerOptions
1773
+ };
1717
1774
  /**
1718
1775
  * This little holder defines several predicates that we use to construct
1719
1776
  * the rules of refreshing the token.
@@ -1730,10 +1787,9 @@ function createTokenCycler(credential, tokenCyclerOptions) {
1730
1787
  * window and not already refreshing)
1731
1788
  */
1732
1789
  get shouldRefresh() {
1733
- var _a;
1734
1790
  if (cycler.isRefreshing) return false;
1735
- if ((token === null || token === void 0 ? void 0 : token.refreshAfterTimestamp) && token.refreshAfterTimestamp < Date.now()) return true;
1736
- return ((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now();
1791
+ if (token?.refreshAfterTimestamp && token.refreshAfterTimestamp < Date.now()) return true;
1792
+ return (token?.expiresOnTimestamp ?? 0) - options.refreshWindowInMs < Date.now();
1737
1793
  },
1738
1794
  /**
1739
1795
  * Produces true if the cycler MUST refresh (null or nearly-expired
@@ -1748,10 +1804,9 @@ function createTokenCycler(credential, tokenCyclerOptions) {
1748
1804
  * running.
1749
1805
  */
1750
1806
  function refresh(scopes, getTokenOptions) {
1751
- var _a;
1752
1807
  if (!cycler.isRefreshing) {
1753
1808
  const tryGetAccessToken = () => credential.getToken(scopes, getTokenOptions);
1754
- refreshWorker = beginRefresh(tryGetAccessToken, options.retryIntervalInMs, (_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : Date.now()).then((_token) => {
1809
+ refreshWorker = beginRefresh(tryGetAccessToken, options.retryIntervalInMs, token?.expiresOnTimestamp ?? Date.now()).then((_token) => {
1755
1810
  refreshWorker = null;
1756
1811
  token = _token;
1757
1812
  tenantId = getTokenOptions.tenantId;
@@ -1775,10 +1830,10 @@ function createTokenCycler(credential, tokenCyclerOptions) {
1775
1830
  };
1776
1831
  }
1777
1832
  //#endregion
1778
- //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.0.0/node_modules/@azure/keyvault-common/dist/esm/logger.js
1833
+ //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.1.0/node_modules/@azure/keyvault-common/dist/esm/logger.js
1779
1834
  const logger$1 = createClientLogger("keyvault-common");
1780
1835
  //#endregion
1781
- //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.0.0/node_modules/@azure/keyvault-common/dist/esm/keyVaultAuthenticationPolicy.js
1836
+ //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.1.0/node_modules/@azure/keyvault-common/dist/esm/keyVaultAuthenticationPolicy.js
1782
1837
  function verifyChallengeResource(scope, request) {
1783
1838
  let scopeAsUrl;
1784
1839
  try {
@@ -1828,10 +1883,11 @@ function keyVaultAuthenticationPolicy(credential, options = {}) {
1828
1883
  break;
1829
1884
  case "started": break;
1830
1885
  case "complete": {
1831
- const token = await getAccessToken(challengeState.scopes, Object.assign(Object.assign({}, requestOptions), {
1886
+ const token = await getAccessToken(challengeState.scopes, {
1887
+ ...requestOptions,
1832
1888
  enableCae: true,
1833
1889
  tenantId: challengeState.tenantId
1834
- }));
1890
+ });
1835
1891
  if (token) request.headers.set("authorization", `Bearer ${token.token}`);
1836
1892
  break;
1837
1893
  }
@@ -1850,10 +1906,11 @@ function keyVaultAuthenticationPolicy(credential, options = {}) {
1850
1906
  const scope = parsedChallenge.resource ? parsedChallenge.resource + "/.default" : parsedChallenge.scope;
1851
1907
  if (!scope) return response;
1852
1908
  if (!disableChallengeResourceVerification) verifyChallengeResource(scope, request);
1853
- const accessToken = await getAccessToken([scope], Object.assign(Object.assign({}, getTokenOptions), {
1909
+ const accessToken = await getAccessToken([scope], {
1910
+ ...getTokenOptions,
1854
1911
  enableCae: true,
1855
1912
  tenantId: parsedChallenge.tenantId
1856
- }));
1913
+ });
1857
1914
  if (!accessToken) return response;
1858
1915
  request.headers.set("Authorization", `Bearer ${accessToken.token}`);
1859
1916
  challengeState = {
@@ -1872,11 +1929,12 @@ function keyVaultAuthenticationPolicy(credential, options = {}) {
1872
1929
  const { claims: base64EncodedClaims, error } = parseWWWAuthenticateHeader(challenge);
1873
1930
  if (error !== "insufficient_claims" || base64EncodedClaims === void 0) return response;
1874
1931
  const claims = atob(base64EncodedClaims);
1875
- const accessToken = await getAccessToken(challengeState.scopes, Object.assign(Object.assign({}, getTokenOptions), {
1932
+ const accessToken = await getAccessToken(challengeState.scopes, {
1933
+ ...getTokenOptions,
1876
1934
  enableCae: true,
1877
1935
  tenantId: challengeState.tenantId,
1878
1936
  claims
1879
- }));
1937
+ });
1880
1938
  request.headers.set("Authorization", `Bearer ${accessToken.token}`);
1881
1939
  return next(request);
1882
1940
  }
@@ -1893,7 +1951,7 @@ function keyVaultAuthenticationPolicy(credential, options = {}) {
1893
1951
  };
1894
1952
  }
1895
1953
  //#endregion
1896
- //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.0.0/node_modules/@azure/keyvault-common/dist/esm/parseKeyVaultIdentifier.js
1954
+ //#region ../../node_modules/.pnpm/@azure+keyvault-common@2.1.0/node_modules/@azure/keyvault-common/dist/esm/parseKeyVaultIdentifier.js
1897
1955
  /**
1898
1956
  * Parses a Key Vault identifier into its components.
1899
1957
  *
@@ -1919,7 +1977,7 @@ function parseKeyVaultIdentifier(collection, identifier) {
1919
1977
  };
1920
1978
  }
1921
1979
  //#endregion
1922
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/identifier.js
1980
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/identifier.js
1923
1981
  /**
1924
1982
  * Parses the given Key Vault Secret Id. An example is:
1925
1983
  *
@@ -1938,11 +1996,13 @@ function parseKeyVaultIdentifier(collection, identifier) {
1938
1996
  */
1939
1997
  function parseKeyVaultSecretIdentifier(id) {
1940
1998
  const collection = id.split("/")[3];
1941
- return Object.assign({ sourceId: id }, parseKeyVaultIdentifier(collection, id));
1999
+ return {
2000
+ sourceId: id,
2001
+ ...parseKeyVaultIdentifier(collection, id)
2002
+ };
1942
2003
  }
1943
2004
  //#endregion
1944
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/transformations.js
1945
- init_tslib_es6();
2005
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/transformations.js
1946
2006
  /**
1947
2007
  * @internal
1948
2008
  * Shapes the exposed {@link KeyVaultKey} based on either a received secret bundle or deleted secret bundle.
@@ -1957,17 +2017,18 @@ function getSecretFromSecretBundle(bundle) {
1957
2017
  value: secretBundle.value,
1958
2018
  name: parsedId.name,
1959
2019
  properties: {
1960
- expiresOn: attributes === null || attributes === void 0 ? void 0 : attributes.expires,
1961
- createdOn: attributes === null || attributes === void 0 ? void 0 : attributes.created,
1962
- updatedOn: attributes === null || attributes === void 0 ? void 0 : attributes.updated,
1963
- enabled: attributes === null || attributes === void 0 ? void 0 : attributes.enabled,
1964
- notBefore: attributes === null || attributes === void 0 ? void 0 : attributes.notBefore,
1965
- recoverableDays: attributes === null || attributes === void 0 ? void 0 : attributes.recoverableDays,
1966
- recoveryLevel: attributes === null || attributes === void 0 ? void 0 : attributes.recoveryLevel,
2020
+ expiresOn: attributes?.expires,
2021
+ createdOn: attributes?.created,
2022
+ updatedOn: attributes?.updated,
2023
+ enabled: attributes?.enabled,
2024
+ notBefore: attributes?.notBefore,
2025
+ recoverableDays: attributes?.recoverableDays,
2026
+ recoveryLevel: attributes?.recoveryLevel,
1967
2027
  id: secretBundle.id,
1968
2028
  contentType: secretBundle.contentType,
1969
2029
  tags: secretBundle.tags,
1970
2030
  managed: secretBundle.managed,
2031
+ previousVersion: secretBundle.previousVersion,
1971
2032
  vaultUrl: parsedId.vaultUrl,
1972
2033
  version: parsedId.version,
1973
2034
  name: parsedId.name,
@@ -2003,41 +2064,30 @@ function mapPagedAsyncIterable(operation, operationOptions, mapper) {
2003
2064
  let iter = void 0;
2004
2065
  return {
2005
2066
  async next() {
2006
- iter !== null && iter !== void 0 || (iter = operation(Object.assign(Object.assign({}, operationOptions), { maxresults: void 0 })));
2067
+ iter ??= operation({
2068
+ ...operationOptions,
2069
+ maxresults: void 0
2070
+ });
2007
2071
  const result = await iter.next();
2008
- return Object.assign(Object.assign({}, result), { value: result.value && mapper(result.value) });
2072
+ return {
2073
+ ...result,
2074
+ value: result.value && mapper(result.value)
2075
+ };
2009
2076
  },
2010
2077
  [Symbol.asyncIterator]() {
2011
2078
  return this;
2012
2079
  },
2013
- byPage(settings) {
2014
- return __asyncGenerator(this, arguments, function* byPage_1() {
2015
- var _a, e_1, _b, _c;
2016
- const iteratorByPage = operation(Object.assign(Object.assign({}, operationOptions), { maxresults: settings === null || settings === void 0 ? void 0 : settings.maxPageSize })).byPage(settings);
2017
- try {
2018
- for (var _d = true, iteratorByPage_1 = __asyncValues(iteratorByPage), iteratorByPage_1_1; iteratorByPage_1_1 = yield __await(iteratorByPage_1.next()), _a = iteratorByPage_1_1.done, !_a; _d = true) {
2019
- _c = iteratorByPage_1_1.value;
2020
- _d = false;
2021
- yield yield __await(_c.map(mapper));
2022
- }
2023
- } catch (e_1_1) {
2024
- e_1 = { error: e_1_1 };
2025
- } finally {
2026
- try {
2027
- if (!_d && !_a && (_b = iteratorByPage_1.return)) yield __await(_b.call(iteratorByPage_1));
2028
- } finally {
2029
- if (e_1) throw e_1.error;
2030
- }
2031
- }
2032
- });
2080
+ async *byPage(settings) {
2081
+ const iteratorByPage = operation({
2082
+ ...operationOptions,
2083
+ maxresults: settings?.maxPageSize
2084
+ }).byPage(settings);
2085
+ for await (const page of iteratorByPage) yield page.map(mapper);
2033
2086
  }
2034
2087
  };
2035
2088
  }
2036
2089
  //#endregion
2037
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/constants.js
2038
- const SDK_VERSION = "4.10.0";
2039
- //#endregion
2040
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/tracing.js
2090
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/tracing.js
2041
2091
  const tracingClient = createTracingClient({
2042
2092
  namespace: "Microsoft.KeyVault",
2043
2093
  packageName: "@azure/keyvault-secrets",
@@ -2410,18 +2460,15 @@ var Poller = class {
2410
2460
  }
2411
2461
  };
2412
2462
  //#endregion
2413
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/lro/keyVaultSecretPoller.js
2463
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/lro/keyVaultSecretPoller.js
2414
2464
  /**
2415
2465
  * Common properties and methods of the Key Vault Secret Pollers.
2416
2466
  */
2417
2467
  var KeyVaultSecretPoller = class extends Poller {
2418
- constructor() {
2419
- super(...arguments);
2420
- /**
2421
- * Defines how much time the poller is going to wait before making a new request to the service.
2422
- */
2423
- this.intervalInMs = 2e3;
2424
- }
2468
+ /**
2469
+ * Defines how much time the poller is going to wait before making a new request to the service.
2470
+ */
2471
+ intervalInMs = 2e3;
2425
2472
  /**
2426
2473
  * The method used by the poller to wait before attempting to update its operation.
2427
2474
  */
@@ -2433,9 +2480,10 @@ var KeyVaultSecretPoller = class extends Poller {
2433
2480
  * Common properties and methods of the Key Vault Secret Poller operations.
2434
2481
  */
2435
2482
  var KeyVaultSecretPollOperation = class {
2483
+ state;
2484
+ cancelMessage = "";
2436
2485
  constructor(state, options = {}) {
2437
2486
  this.state = state;
2438
- this.cancelMessage = "";
2439
2487
  if (options.cancelMessage) this.cancelMessage = options.cancelMessage;
2440
2488
  }
2441
2489
  /**
@@ -2460,11 +2508,14 @@ var KeyVaultSecretPollOperation = class {
2460
2508
  }
2461
2509
  };
2462
2510
  //#endregion
2463
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/lro/delete/operation.js
2511
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/lro/delete/operation.js
2464
2512
  /**
2465
2513
  * An interface representing a delete secret's poll operation
2466
2514
  */
2467
2515
  var DeleteSecretPollOperation = class extends KeyVaultSecretPollOperation {
2516
+ state;
2517
+ client;
2518
+ operationOptions;
2468
2519
  constructor(state, client, operationOptions = {}) {
2469
2520
  super(state, { cancelMessage: "Canceling the deletion of a secret is not supported." });
2470
2521
  this.state = state;
@@ -2517,7 +2568,7 @@ var DeleteSecretPollOperation = class extends KeyVaultSecretPollOperation {
2517
2568
  }
2518
2569
  };
2519
2570
  //#endregion
2520
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/lro/delete/poller.js
2571
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/lro/delete/poller.js
2521
2572
  /**
2522
2573
  * Class that creates a poller that waits until a secret finishes being deleted.
2523
2574
  */
@@ -2526,17 +2577,23 @@ var DeleteSecretPoller = class extends KeyVaultSecretPoller {
2526
2577
  const { client, name, operationOptions, intervalInMs = 2e3, resumeFrom } = options;
2527
2578
  let state;
2528
2579
  if (resumeFrom) state = JSON.parse(resumeFrom).state;
2529
- const operation = new DeleteSecretPollOperation(Object.assign(Object.assign({}, state), { name }), client, operationOptions);
2580
+ const operation = new DeleteSecretPollOperation({
2581
+ ...state,
2582
+ name
2583
+ }, client, operationOptions);
2530
2584
  super(operation);
2531
2585
  this.intervalInMs = intervalInMs;
2532
2586
  }
2533
2587
  };
2534
2588
  //#endregion
2535
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/lro/recover/operation.js
2589
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/lro/recover/operation.js
2536
2590
  /**
2537
2591
  * An interface representing a delete secret's poll operation
2538
2592
  */
2539
2593
  var RecoverDeletedSecretPollOperation = class extends KeyVaultSecretPollOperation {
2594
+ state;
2595
+ client;
2596
+ options;
2540
2597
  constructor(state, client, options = {}) {
2541
2598
  super(state, { cancelMessage: "Canceling the recovery of a deleted secret is not supported." });
2542
2599
  this.state = state;
@@ -2572,7 +2629,7 @@ var RecoverDeletedSecretPollOperation = class extends KeyVaultSecretPollOperatio
2572
2629
  try {
2573
2630
  state.result = (await this.getSecret(name, this.options)).properties;
2574
2631
  state.isCompleted = true;
2575
- } catch (_a) {}
2632
+ } catch {}
2576
2633
  if (!state.isCompleted) {
2577
2634
  state.result = (await this.recoverDeletedSecret(name, this.options)).properties;
2578
2635
  state.isStarted = true;
@@ -2593,7 +2650,7 @@ var RecoverDeletedSecretPollOperation = class extends KeyVaultSecretPollOperatio
2593
2650
  }
2594
2651
  };
2595
2652
  //#endregion
2596
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/lro/recover/poller.js
2653
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/lro/recover/poller.js
2597
2654
  /**
2598
2655
  * Class that deletes a poller that waits until a secret finishes being deleted
2599
2656
  */
@@ -2602,14 +2659,16 @@ var RecoverDeletedSecretPoller = class extends KeyVaultSecretPoller {
2602
2659
  const { client, name, operationOptions, intervalInMs = 2e3, resumeFrom } = options;
2603
2660
  let state;
2604
2661
  if (resumeFrom) state = JSON.parse(resumeFrom).state;
2605
- const operation = new RecoverDeletedSecretPollOperation(Object.assign(Object.assign({}, state), { name }), client, operationOptions);
2662
+ const operation = new RecoverDeletedSecretPollOperation({
2663
+ ...state,
2664
+ name
2665
+ }, client, operationOptions);
2606
2666
  super(operation);
2607
2667
  this.intervalInMs = intervalInMs;
2608
2668
  }
2609
2669
  };
2610
2670
  //#endregion
2611
- //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.10.0/node_modules/@azure/keyvault-secrets/dist/esm/index.js
2612
- init_tslib_es6();
2671
+ //#region ../../node_modules/.pnpm/@azure+keyvault-secrets@4.11.2/node_modules/@azure/keyvault-secrets/dist/esm/index.js
2613
2672
  /**
2614
2673
  * The SecretClient provides methods to manage {@link KeyVaultSecret} in
2615
2674
  * the Azure Key Vault. The client supports creating, retrieving, updating,
@@ -2618,6 +2677,14 @@ init_tslib_es6();
2618
2677
  * Key Vault.
2619
2678
  */
2620
2679
  var SecretClient = class {
2680
+ /**
2681
+ * The base URL to the vault
2682
+ */
2683
+ vaultUrl;
2684
+ /**
2685
+ * A reference to the auto-generated KeyVault HTTP client.
2686
+ */
2687
+ client;
2621
2688
  /**
2622
2689
  * Creates an instance of SecretClient.
2623
2690
  *
@@ -2632,7 +2699,7 @@ var SecretClient = class {
2632
2699
  * const vaultName = "<YOUR KEYVAULT NAME>";
2633
2700
  * const url = `https://${vaultName}.vault.azure.net`;
2634
2701
  *
2635
- * // Lastly, create our keys client and connect to the service
2702
+ * // Lastly, create our secrets client and connect to the service
2636
2703
  * const client = new SecretClient(url, credential);
2637
2704
  * ```
2638
2705
  * @param vaultUrl - The base URL to the vault. You should validate that this URL references a valid Key Vault resource. See https://aka.ms/azsdk/blog/vault-uri for details.
@@ -2641,11 +2708,11 @@ var SecretClient = class {
2641
2708
  * Omit this parameter to use the default pipeline configuration.
2642
2709
  */
2643
2710
  constructor(vaultUrl, credential, pipelineOptions = {}) {
2644
- var _a, _b;
2645
2711
  this.vaultUrl = vaultUrl;
2646
- const internalPipelineOptions = Object.assign(Object.assign({}, pipelineOptions), {
2647
- userAgentOptions: { userAgentPrefix: `${(_b = (_a = pipelineOptions.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix) !== null && _b !== void 0 ? _b : ""} azsdk-js-keyvault-secrets/${SDK_VERSION}` },
2648
- apiVersion: pipelineOptions.serviceVersion || "7.6",
2712
+ const internalPipelineOptions = {
2713
+ ...pipelineOptions,
2714
+ userAgentOptions: { userAgentPrefix: `${pipelineOptions.userAgentOptions?.userAgentPrefix ?? ""} azsdk-js-keyvault-secrets/${SDK_VERSION}` },
2715
+ apiVersion: pipelineOptions.serviceVersion || "2025-07-01",
2649
2716
  loggingOptions: {
2650
2717
  logger: logger.info,
2651
2718
  additionalAllowedHeaderNames: [
@@ -2654,15 +2721,14 @@ var SecretClient = class {
2654
2721
  "x-ms-keyvault-service-version"
2655
2722
  ]
2656
2723
  }
2657
- });
2724
+ };
2658
2725
  this.client = new KeyVaultClient(this.vaultUrl, credential, internalPipelineOptions);
2659
2726
  this.client.pipeline.removePolicy({ name: bearerTokenAuthenticationPolicyName });
2660
2727
  this.client.pipeline.addPolicy(keyVaultAuthenticationPolicy(credential, pipelineOptions), {});
2661
2728
  this.client.pipeline.addPolicy({
2662
2729
  name: "ContentTypePolicy",
2663
2730
  sendRequest(request, next) {
2664
- var _a;
2665
- if (((_a = request.headers.get("Content-Type")) !== null && _a !== void 0 ? _a : "").startsWith("application/json")) request.headers.set("Content-Type", "application/json");
2731
+ if ((request.headers.get("Content-Type") ?? "").startsWith("application/json")) request.headers.set("Content-Type", "application/json");
2666
2732
  return next(request);
2667
2733
  }
2668
2734
  });
@@ -2695,15 +2761,11 @@ var SecretClient = class {
2695
2761
  * @param options - The optional parameters.
2696
2762
  */
2697
2763
  setSecret(secretName, value, options = {}) {
2698
- const { enabled, notBefore, expiresOn: expires, tags } = options, remainingOptions = __rest(options, [
2699
- "enabled",
2700
- "notBefore",
2701
- "expiresOn",
2702
- "tags"
2703
- ]);
2764
+ const { contentType, enabled, notBefore, expiresOn: expires, tags, ...remainingOptions } = options;
2704
2765
  return tracingClient.withSpan("SecretClient.setSecret", remainingOptions, async (updatedOptions) => {
2705
2766
  return getSecretFromSecretBundle(await this.client.setSecret(secretName, {
2706
2767
  value,
2768
+ contentType,
2707
2769
  secretAttributes: {
2708
2770
  enabled,
2709
2771
  notBefore,
@@ -2740,10 +2802,12 @@ var SecretClient = class {
2740
2802
  * @param options - The optional parameters.
2741
2803
  */
2742
2804
  async beginDeleteSecret(name, options = {}) {
2743
- const poller = new DeleteSecretPoller(Object.assign(Object.assign({
2805
+ const poller = new DeleteSecretPoller({
2744
2806
  name,
2745
- client: this.client
2746
- }, options), { operationOptions: options }));
2807
+ client: this.client,
2808
+ ...options,
2809
+ operationOptions: options
2810
+ });
2747
2811
  await poller.poll();
2748
2812
  return poller;
2749
2813
  }
@@ -2775,14 +2839,10 @@ var SecretClient = class {
2775
2839
  * @param options - The optional parameters.
2776
2840
  */
2777
2841
  async updateSecretProperties(secretName, secretVersion, options = {}) {
2778
- const { enabled, notBefore, expiresOn: expires, tags } = options, remainingOptions = __rest(options, [
2779
- "enabled",
2780
- "notBefore",
2781
- "expiresOn",
2782
- "tags"
2783
- ]);
2842
+ const { contentType, enabled, notBefore, expiresOn: expires, tags, ...remainingOptions } = options;
2784
2843
  return tracingClient.withSpan("SecretClient.updateSecretProperties", remainingOptions, async (updatedOptions) => {
2785
2844
  return getSecretFromSecretBundle(await this.client.updateSecret(secretName, secretVersion, {
2845
+ contentType,
2786
2846
  secretAttributes: {
2787
2847
  enabled,
2788
2848
  notBefore,
@@ -2924,10 +2984,12 @@ var SecretClient = class {
2924
2984
  * @param options - The optional parameters.
2925
2985
  */
2926
2986
  async beginRecoverDeletedSecret(name, options = {}) {
2927
- const poller = new RecoverDeletedSecretPoller(Object.assign(Object.assign({
2987
+ const poller = new RecoverDeletedSecretPoller({
2928
2988
  name,
2929
- client: this.client
2930
- }, options), { operationOptions: options }));
2989
+ client: this.client,
2990
+ ...options,
2991
+ operationOptions: options
2992
+ });
2931
2993
  await poller.poll();
2932
2994
  return poller;
2933
2995
  }
@@ -3101,4 +3163,4 @@ var SecretClient = class {
3101
3163
  }
3102
3164
  };
3103
3165
  //#endregion
3104
- export { KnownDeletionRecoveryLevel, SecretClient, logger, parseKeyVaultSecretIdentifier };
3166
+ export { KnownContentType, KnownDeletionRecoveryLevel, SecretClient, logger, parseKeyVaultSecretIdentifier };