@rio-cloud/cdk-v2-constructs 8.6.1 → 8.7.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.
@@ -1002,17 +1002,17 @@ var init_schemaDeserializationMiddleware = __esm({
1002
1002
  response,
1003
1003
  output: parsed
1004
1004
  };
1005
- } catch (error2) {
1006
- Object.defineProperty(error2, "$response", {
1005
+ } catch (error3) {
1006
+ Object.defineProperty(error3, "$response", {
1007
1007
  value: response,
1008
1008
  enumerable: false,
1009
1009
  writable: false,
1010
1010
  configurable: false
1011
1011
  });
1012
- if (!("$metadata" in error2)) {
1012
+ if (!("$metadata" in error3)) {
1013
1013
  const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
1014
1014
  try {
1015
- error2.message += "\n " + hint;
1015
+ error3.message += "\n " + hint;
1016
1016
  } catch (ignored) {
1017
1017
  if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
1018
1018
  console.warn(hint);
@@ -1020,16 +1020,16 @@ var init_schemaDeserializationMiddleware = __esm({
1020
1020
  context.logger?.warn?.(hint);
1021
1021
  }
1022
1022
  }
1023
- if (typeof error2.$responseBodyText !== "undefined") {
1024
- if (error2.$response) {
1025
- error2.$response.body = error2.$responseBodyText;
1023
+ if (typeof error3.$responseBodyText !== "undefined") {
1024
+ if (error3.$response) {
1025
+ error3.$response.body = error3.$responseBodyText;
1026
1026
  }
1027
1027
  }
1028
1028
  try {
1029
1029
  if (HttpResponse.isInstance(response)) {
1030
1030
  const { headers = {}, statusCode } = response;
1031
1031
  const headerEntries = Object.entries(headers);
1032
- error2.$metadata = {
1032
+ error3.$metadata = {
1033
1033
  httpStatusCode: statusCode,
1034
1034
  requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
1035
1035
  extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
@@ -1039,7 +1039,7 @@ var init_schemaDeserializationMiddleware = __esm({
1039
1039
  } catch (ignored) {
1040
1040
  }
1041
1041
  }
1042
- throw error2;
1042
+ throw error3;
1043
1043
  }
1044
1044
  };
1045
1045
  findHeader = (pattern, headers) => {
@@ -3530,17 +3530,17 @@ var init_deserializerMiddleware = __esm({
3530
3530
  response,
3531
3531
  output: parsed
3532
3532
  };
3533
- } catch (error2) {
3534
- Object.defineProperty(error2, "$response", {
3533
+ } catch (error3) {
3534
+ Object.defineProperty(error3, "$response", {
3535
3535
  value: response,
3536
3536
  enumerable: false,
3537
3537
  writable: false,
3538
3538
  configurable: false
3539
3539
  });
3540
- if (!("$metadata" in error2)) {
3540
+ if (!("$metadata" in error3)) {
3541
3541
  const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
3542
3542
  try {
3543
- error2.message += "\n " + hint;
3543
+ error3.message += "\n " + hint;
3544
3544
  } catch (ignored) {
3545
3545
  if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
3546
3546
  console.warn(hint);
@@ -3548,16 +3548,16 @@ var init_deserializerMiddleware = __esm({
3548
3548
  context.logger?.warn?.(hint);
3549
3549
  }
3550
3550
  }
3551
- if (typeof error2.$responseBodyText !== "undefined") {
3552
- if (error2.$response) {
3553
- error2.$response.body = error2.$responseBodyText;
3551
+ if (typeof error3.$responseBodyText !== "undefined") {
3552
+ if (error3.$response) {
3553
+ error3.$response.body = error3.$responseBodyText;
3554
3554
  }
3555
3555
  }
3556
3556
  try {
3557
3557
  if (HttpResponse.isInstance(response)) {
3558
3558
  const { headers = {} } = response;
3559
3559
  const headerEntries = Object.entries(headers);
3560
- error2.$metadata = {
3560
+ error3.$metadata = {
3561
3561
  httpStatusCode: response.statusCode,
3562
3562
  requestId: findHeader2(/^x-[\w-]+-request-?id$/, headerEntries),
3563
3563
  extendedRequestId: findHeader2(/^x-[\w-]+-id-2$/, headerEntries),
@@ -3567,7 +3567,7 @@ var init_deserializerMiddleware = __esm({
3567
3567
  } catch (ignored) {
3568
3568
  }
3569
3569
  }
3570
- throw error2;
3570
+ throw error3;
3571
3571
  }
3572
3572
  };
3573
3573
  findHeader2 = (pattern, headers) => {
@@ -3601,8 +3601,8 @@ var init_ProviderError = __esm({
3601
3601
  Object.setPrototypeOf(this, _ProviderError.prototype);
3602
3602
  logger3?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
3603
3603
  }
3604
- static from(error2, options = true) {
3605
- return Object.assign(new this(error2.message, options), error2);
3604
+ static from(error3, options = true) {
3605
+ return Object.assign(new this(error3.message, options), error3);
3606
3606
  }
3607
3607
  };
3608
3608
  }
@@ -5730,9 +5730,9 @@ var init_getEndpointUrl = __esm({
5730
5730
  if (typeof expression === "string") {
5731
5731
  try {
5732
5732
  return new URL(expression);
5733
- } catch (error2) {
5734
- console.error(`Failed to construct URL with ${expression}`, error2);
5735
- throw error2;
5733
+ } catch (error3) {
5734
+ console.error(`Failed to construct URL with ${expression}`, error3);
5735
+ throw error3;
5736
5736
  }
5737
5737
  }
5738
5738
  throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
@@ -5867,7 +5867,7 @@ var init_evaluateErrorRule = __esm({
5867
5867
  init_evaluateConditions();
5868
5868
  init_evaluateExpression();
5869
5869
  evaluateErrorRule = (errorRule, options) => {
5870
- const { conditions, error: error2 } = errorRule;
5870
+ const { conditions, error: error3 } = errorRule;
5871
5871
  const { result, referenceRecord } = evaluateConditions(conditions, options);
5872
5872
  if (!result) {
5873
5873
  return;
@@ -5876,7 +5876,7 @@ var init_evaluateErrorRule = __esm({
5876
5876
  ...options,
5877
5877
  referenceRecord: { ...options.referenceRecord, ...referenceRecord }
5878
5878
  } : options;
5879
- throw new EndpointError(evaluateExpression(error2, "Error", errorRuleOptions));
5879
+ throw new EndpointError(evaluateExpression(error3, "Error", errorRuleOptions));
5880
5880
  };
5881
5881
  }
5882
5882
  });
@@ -6183,15 +6183,15 @@ var init_ChecksumStream = __esm({
6183
6183
  }
6184
6184
  this.push(null);
6185
6185
  };
6186
- onSourceError = (error2) => {
6187
- this.destroy(error2);
6186
+ onSourceError = (error3) => {
6187
+ this.destroy(error3);
6188
6188
  };
6189
6189
  _read(size) {
6190
6190
  this.source.resume();
6191
6191
  }
6192
- _destroy(error2, callback) {
6192
+ _destroy(error3, callback) {
6193
6193
  this.source?.destroy();
6194
- callback(error2);
6194
+ callback(error3);
6195
6195
  }
6196
6196
  };
6197
6197
  }
@@ -6313,8 +6313,8 @@ var init_createChecksumStream_browser = __esm({
6313
6313
  const digest2 = await checksum.digest();
6314
6314
  const received = encoder(digest2);
6315
6315
  if (expectedChecksum !== received) {
6316
- const error2 = new Error(`Checksum mismatch: expected "${expectedChecksum}" but received "${received}" in response header "${checksumSourceLocation}".`);
6317
- controller.error(error2);
6316
+ const error3 = new Error(`Checksum mismatch: expected "${expectedChecksum}" but received "${received}" in response header "${checksumSourceLocation}".`);
6317
+ controller.error(error3);
6318
6318
  } else {
6319
6319
  controller.terminate();
6320
6320
  }
@@ -7562,14 +7562,14 @@ var init_Sha256Js = __esm({
7562
7562
  const h5 = new _Sha256Js();
7563
7563
  h5.update(key);
7564
7564
  const out = h5.digestSync();
7565
- const padded = new Uint8Array(BLOCK);
7566
- padded.set(out);
7567
- return padded;
7565
+ const padded2 = new Uint8Array(BLOCK);
7566
+ padded2.set(out);
7567
+ return padded2;
7568
7568
  }
7569
7569
  if (key.byteLength < BLOCK) {
7570
- const padded = new Uint8Array(BLOCK);
7571
- padded.set(key);
7572
- return padded;
7570
+ const padded2 = new Uint8Array(BLOCK);
7571
+ padded2.set(key);
7572
+ return padded2;
7573
7573
  }
7574
7574
  return key;
7575
7575
  }
@@ -8418,9 +8418,9 @@ function getMessageUnmarshaller(deserializer, toUtf83) {
8418
8418
  const exception = { [code]: message };
8419
8419
  const deserializedException = await deserializer(exception);
8420
8420
  if (deserializedException.$unknown) {
8421
- const error2 = new Error(toUtf83(message.body));
8422
- error2.name = code;
8423
- throw error2;
8421
+ const error3 = new Error(toUtf83(message.body));
8422
+ error3.name = code;
8423
+ throw error3;
8424
8424
  }
8425
8425
  throw deserializedException[code];
8426
8426
  } else if (messageType === "event") {
@@ -10267,8 +10267,8 @@ var init_S3ExpressIdentityProviderImpl = __esm({
10267
10267
  return cache5.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity;
10268
10268
  }
10269
10269
  async getIdentity(key) {
10270
- await this.cache.purgeExpired().catch((error2) => {
10271
- console.warn("Error while clearing expired entries in S3ExpressIdentityCache: \n" + error2);
10270
+ await this.cache.purgeExpired().catch((error3) => {
10271
+ console.warn("Error while clearing expired entries in S3ExpressIdentityCache: \n" + error3);
10272
10272
  });
10273
10273
  const session = await this.createSessionFn(key);
10274
10274
  if (!session.Credentials?.AccessKeyId || !session.Credentials?.SecretAccessKey) {
@@ -11168,18 +11168,18 @@ var init_constants5 = __esm({
11168
11168
  });
11169
11169
 
11170
11170
  // node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js
11171
- function isNodeJsHttp2TransientError(error2) {
11172
- return error2.code === "ERR_HTTP2_STREAM_ERROR" && error2.message.includes("NGHTTP2_REFUSED_STREAM");
11171
+ function isNodeJsHttp2TransientError(error3) {
11172
+ return error3.code === "ERR_HTTP2_STREAM_ERROR" && error3.message.includes("NGHTTP2_REFUSED_STREAM");
11173
11173
  }
11174
11174
  var isRetryableByTrait, isClockSkewError, isClockSkewCorrectedError, isBrowserNetworkError, isThrottlingError, isTransientError, isServerError;
11175
11175
  var init_service_error_classification = __esm({
11176
11176
  "node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js"() {
11177
11177
  "use strict";
11178
11178
  init_constants5();
11179
- isRetryableByTrait = (error2) => error2?.$retryable !== void 0;
11180
- isClockSkewError = (error2) => CLOCK_SKEW_ERROR_CODES.includes(error2.name);
11181
- isClockSkewCorrectedError = (error2) => error2.$metadata?.clockSkewCorrected;
11182
- isBrowserNetworkError = (error2) => {
11179
+ isRetryableByTrait = (error3) => error3?.$retryable !== void 0;
11180
+ isClockSkewError = (error3) => CLOCK_SKEW_ERROR_CODES.includes(error3.name);
11181
+ isClockSkewCorrectedError = (error3) => error3.$metadata?.clockSkewCorrected;
11182
+ isBrowserNetworkError = (error3) => {
11183
11183
  const errorMessages = /* @__PURE__ */ new Set([
11184
11184
  "Failed to fetch",
11185
11185
  "NetworkError when attempting to fetch resource",
@@ -11187,18 +11187,18 @@ var init_service_error_classification = __esm({
11187
11187
  "Load failed",
11188
11188
  "Network request failed"
11189
11189
  ]);
11190
- const isValid = error2 && error2 instanceof TypeError;
11190
+ const isValid = error3 && error3 instanceof TypeError;
11191
11191
  if (!isValid) {
11192
11192
  return false;
11193
11193
  }
11194
- return errorMessages.has(error2.message);
11194
+ return errorMessages.has(error3.message);
11195
11195
  };
11196
- isThrottlingError = (error2) => error2.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error2.name) || error2.$retryable?.throttling == true;
11197
- isTransientError = (error2, depth = 0) => isRetryableByTrait(error2) || isClockSkewCorrectedError(error2) || error2.name === "InvalidSignatureException" && error2.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error2.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error2?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error2?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error2.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error2) || isNodeJsHttp2TransientError(error2) || error2.cause !== void 0 && depth <= 10 && isTransientError(error2.cause, depth + 1);
11198
- isServerError = (error2) => {
11199
- if (error2.$metadata?.httpStatusCode !== void 0) {
11200
- const statusCode = error2.$metadata.httpStatusCode;
11201
- if (500 <= statusCode && statusCode <= 599 && !isTransientError(error2)) {
11196
+ isThrottlingError = (error3) => error3.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error3.name) || error3.$retryable?.throttling == true;
11197
+ isTransientError = (error3, depth = 0) => isRetryableByTrait(error3) || isClockSkewCorrectedError(error3) || error3.name === "InvalidSignatureException" && error3.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error3.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error3?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error3?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error3.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error3) || isNodeJsHttp2TransientError(error3) || error3.cause !== void 0 && depth <= 10 && isTransientError(error3.cause, depth + 1);
11198
+ isServerError = (error3) => {
11199
+ if (error3.$metadata?.httpStatusCode !== void 0) {
11200
+ const statusCode = error3.$metadata.httpStatusCode;
11201
+ if (500 <= statusCode && statusCode <= 599 && !isTransientError(error3)) {
11202
11202
  return true;
11203
11203
  }
11204
11204
  return false;
@@ -11281,14 +11281,14 @@ var asSdkError;
11281
11281
  var init_util = __esm({
11282
11282
  "node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js"() {
11283
11283
  "use strict";
11284
- asSdkError = (error2) => {
11285
- if (error2 instanceof Error)
11286
- return error2;
11287
- if (error2 instanceof Object)
11288
- return Object.assign(new Error(), error2);
11289
- if (typeof error2 === "string")
11290
- return new Error(error2);
11291
- return new Error(`AWS SDK error wrapper for ${error2}`);
11284
+ asSdkError = (error3) => {
11285
+ if (error3 instanceof Error)
11286
+ return error3;
11287
+ if (error3 instanceof Object)
11288
+ return Object.assign(new Error(), error3);
11289
+ if (typeof error3 === "string")
11290
+ return new Error(error3);
11291
+ return new Error(`AWS SDK error wrapper for ${error3}`);
11292
11292
  };
11293
11293
  }
11294
11294
  });
@@ -11374,23 +11374,23 @@ var init_retryMiddleware = __esm({
11374
11374
  init_util();
11375
11375
  cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
11376
11376
  isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
11377
- getRetryErrorInfo = (error2, logger3) => {
11377
+ getRetryErrorInfo = (error3, logger3) => {
11378
11378
  const errorInfo = {
11379
- error: error2,
11380
- errorType: getRetryErrorType(error2)
11379
+ error: error3,
11380
+ errorType: getRetryErrorType(error3)
11381
11381
  };
11382
- const retryAfterHint = parseRetryAfterHeader(error2.$response, logger3);
11382
+ const retryAfterHint = parseRetryAfterHeader(error3.$response, logger3);
11383
11383
  if (retryAfterHint) {
11384
11384
  errorInfo.retryAfterHint = retryAfterHint;
11385
11385
  }
11386
11386
  return errorInfo;
11387
11387
  };
11388
- getRetryErrorType = (error2) => {
11389
- if (isThrottlingError(error2))
11388
+ getRetryErrorType = (error3) => {
11389
+ if (isThrottlingError(error3))
11390
11390
  return "THROTTLING";
11391
- if (isTransientError(error2))
11391
+ if (isTransientError(error3))
11392
11392
  return "TRANSIENT";
11393
- if (isServerError(error2))
11393
+ if (isServerError(error3))
11394
11394
  return "SERVER_ERROR";
11395
11395
  return "CLIENT_ERROR";
11396
11396
  };
@@ -11800,13 +11800,13 @@ var init_defaultRetryQuota = __esm({
11800
11800
  const retryCost = options?.retryCost ?? RETRY_COST;
11801
11801
  const timeoutRetryCost = options?.timeoutRetryCost ?? TIMEOUT_RETRY_COST;
11802
11802
  let availableCapacity = initialRetryTokens;
11803
- const getCapacityAmount = (error2) => error2.name === "TimeoutError" ? timeoutRetryCost : retryCost;
11804
- const hasRetryTokens = (error2) => getCapacityAmount(error2) <= availableCapacity;
11805
- const retrieveRetryTokens = (error2) => {
11806
- if (!hasRetryTokens(error2)) {
11803
+ const getCapacityAmount = (error3) => error3.name === "TimeoutError" ? timeoutRetryCost : retryCost;
11804
+ const hasRetryTokens = (error3) => getCapacityAmount(error3) <= availableCapacity;
11805
+ const retrieveRetryTokens = (error3) => {
11806
+ if (!hasRetryTokens(error3)) {
11807
11807
  throw new Error("No retry token available");
11808
11808
  }
11809
- const capacityAmount = getCapacityAmount(error2);
11809
+ const capacityAmount = getCapacityAmount(error3);
11810
11810
  availableCapacity -= capacityAmount;
11811
11811
  return capacityAmount;
11812
11812
  };
@@ -11839,11 +11839,11 @@ var init_retryDecider = __esm({
11839
11839
  "node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/retryDecider.js"() {
11840
11840
  "use strict";
11841
11841
  init_service_error_classification();
11842
- defaultRetryDecider = (error2) => {
11843
- if (!error2) {
11842
+ defaultRetryDecider = (error3) => {
11843
+ if (!error3) {
11844
11844
  return false;
11845
11845
  }
11846
- return isRetryableByTrait(error2) || isClockSkewError(error2) || isThrottlingError(error2) || isTransientError(error2);
11846
+ return isRetryableByTrait(error3) || isClockSkewError(error3) || isThrottlingError(error3) || isTransientError(error3);
11847
11847
  };
11848
11848
  }
11849
11849
  });
@@ -11874,8 +11874,8 @@ var init_StandardRetryStrategy2 = __esm({
11874
11874
  this.delayDecider = options?.delayDecider ?? defaultDelayDecider;
11875
11875
  this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(INITIAL_RETRY_TOKENS);
11876
11876
  }
11877
- shouldRetry(error2, attempts, maxAttempts) {
11878
- return attempts < maxAttempts && this.retryDecider(error2) && this.retryQuota.hasRetryTokens(error2);
11877
+ shouldRetry(error3, attempts, maxAttempts) {
11878
+ return attempts < maxAttempts && this.retryDecider(error3) && this.retryQuota.hasRetryTokens(error3);
11879
11879
  }
11880
11880
  async getMaxAttempts() {
11881
11881
  let maxAttempts;
@@ -12246,7 +12246,7 @@ var init_loggerMiddleware = __esm({
12246
12246
  metadata: $metadata
12247
12247
  });
12248
12248
  return response;
12249
- } catch (error2) {
12249
+ } catch (error3) {
12250
12250
  const { clientName, commandName, logger: logger3, dynamoDbDocumentClientOptions = {} } = context;
12251
12251
  const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
12252
12252
  const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
@@ -12254,10 +12254,10 @@ var init_loggerMiddleware = __esm({
12254
12254
  clientName,
12255
12255
  commandName,
12256
12256
  input: inputFilterSensitiveLog(args.input),
12257
- error: error2,
12258
- metadata: error2.$metadata
12257
+ error: error3,
12258
+ metadata: error3.$metadata
12259
12259
  });
12260
- throw error2;
12260
+ throw error3;
12261
12261
  }
12262
12262
  };
12263
12263
  loggerMiddlewareOptions = {
@@ -12642,8 +12642,8 @@ var init_httpSigningMiddleware = __esm({
12642
12642
  "use strict";
12643
12643
  init_protocols();
12644
12644
  init_transport();
12645
- defaultErrorHandler = (signingProperties) => (error2) => {
12646
- throw error2;
12645
+ defaultErrorHandler = (signingProperties) => (error3) => {
12646
+ throw error3;
12647
12647
  };
12648
12648
  defaultSuccessHandler = (httpResponse, signingProperties) => {
12649
12649
  };
@@ -14854,8 +14854,8 @@ var init_s3ExpressHttpSigningMiddleware = __esm({
14854
14854
  init_client2();
14855
14855
  init_protocols();
14856
14856
  init_signS3Express();
14857
- defaultErrorHandler2 = (signingProperties) => (error2) => {
14858
- throw error2;
14857
+ defaultErrorHandler2 = (signingProperties) => (error3) => {
14858
+ throw error3;
14859
14859
  };
14860
14860
  defaultSuccessHandler2 = (httpResponse, signingProperties) => {
14861
14861
  };
@@ -15151,20 +15151,20 @@ var init_ProtocolLib = __esm({
15151
15151
  decorateServiceException(exception, additions = {}) {
15152
15152
  if (this.queryCompat) {
15153
15153
  const msg = exception.Message ?? additions.Message;
15154
- const error2 = decorateServiceException(exception, additions);
15154
+ const error3 = decorateServiceException(exception, additions);
15155
15155
  if (msg) {
15156
- error2.message = msg;
15157
- }
15158
- const errorObj = error2.Error ?? {};
15159
- errorObj.Type = error2.Error?.Type;
15160
- errorObj.Code = error2.Error?.Code;
15161
- errorObj.Message = error2.Error?.message ?? error2.Error?.Message ?? msg;
15162
- error2.Error = errorObj;
15163
- const reqId = error2.$metadata.requestId;
15156
+ error3.message = msg;
15157
+ }
15158
+ const errorObj = error3.Error ?? {};
15159
+ errorObj.Type = error3.Error?.Type;
15160
+ errorObj.Code = error3.Error?.Code;
15161
+ errorObj.Message = error3.Error?.message ?? error3.Error?.Message ?? msg;
15162
+ error3.Error = errorObj;
15163
+ const reqId = error3.$metadata.requestId;
15164
15164
  if (reqId) {
15165
- error2.RequestId = reqId;
15165
+ error3.RequestId = reqId;
15166
15166
  }
15167
- return error2;
15167
+ return error3;
15168
15168
  }
15169
15169
  return decorateServiceException(exception, additions);
15170
15170
  }
@@ -18446,12 +18446,12 @@ var init_validateChecksumFromResponse = __esm({
18446
18446
  let checksumAlgorithmFn;
18447
18447
  try {
18448
18448
  checksumAlgorithmFn = selectChecksumAlgorithmFunction(algorithm, config2);
18449
- } catch (error2) {
18449
+ } catch (error3) {
18450
18450
  if (algorithm === ChecksumAlgorithm.CRC64NVME) {
18451
- logger3?.warn(`Skipping ${ChecksumAlgorithm.CRC64NVME} checksum validation: ${error2.message}`);
18451
+ logger3?.warn(`Skipping ${ChecksumAlgorithm.CRC64NVME} checksum validation: ${error3.message}`);
18452
18452
  continue;
18453
18453
  }
18454
- throw error2;
18454
+ throw error3;
18455
18455
  }
18456
18456
  const { base64Encoder } = config2;
18457
18457
  if (isStreaming(responseBody)) {
@@ -19233,8 +19233,8 @@ var init_AwsSdkSigV4Signer = __esm({
19233
19233
  return signedRequest;
19234
19234
  }
19235
19235
  errorHandler(signingProperties) {
19236
- return (error2) => {
19237
- const errorException = error2;
19236
+ return (error3) => {
19237
+ const errorException = error3;
19238
19238
  const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
19239
19239
  if (serverTime) {
19240
19240
  const config2 = throwSigningPropertyError("config", signingProperties.config);
@@ -19248,7 +19248,7 @@ var init_AwsSdkSigV4Signer = __esm({
19248
19248
  errorException.$metadata.clockSkewCorrected = true;
19249
19249
  }
19250
19250
  }
19251
- throw error2;
19251
+ throw error3;
19252
19252
  };
19253
19253
  }
19254
19254
  successHandler(httpResponse, signingProperties) {
@@ -27400,8 +27400,8 @@ function __read(o3, n3) {
27400
27400
  var i5 = m3.call(o3), r5, ar = [], e5;
27401
27401
  try {
27402
27402
  while ((n3 === void 0 || n3-- > 0) && !(r5 = i5.next()).done) ar.push(r5.value);
27403
- } catch (error2) {
27404
- e5 = { error: error2 };
27403
+ } catch (error3) {
27404
+ e5 = { error: error3 };
27405
27405
  } finally {
27406
27406
  try {
27407
27407
  if (r5 && !r5.done && (m3 = i5["return"])) m3.call(i5);
@@ -27652,9 +27652,9 @@ var init_tslib_es6 = __esm({
27652
27652
  };
27653
27653
  return ownKeys(o3);
27654
27654
  };
27655
- _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message) {
27655
+ _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error3, suppressed, message) {
27656
27656
  var e5 = new Error(message);
27657
- return e5.name = "SuppressedError", e5.error = error2, e5.suppressed = suppressed, e5;
27657
+ return e5.name = "SuppressedError", e5.error = error3, e5.suppressed = suppressed, e5;
27658
27658
  };
27659
27659
  tslib_es6_default = {
27660
27660
  __extends,
@@ -28159,12 +28159,12 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
28159
28159
  let token;
28160
28160
  try {
28161
28161
  token = (await getMetadataToken({ ...endpoint, timeout })).toString();
28162
- } catch (error2) {
28163
- if (error2?.statusCode === 400) {
28164
- throw Object.assign(error2, {
28162
+ } catch (error3) {
28163
+ if (error3?.statusCode === 400) {
28164
+ throw Object.assign(error3, {
28165
28165
  message: "EC2 Metadata token request returned error"
28166
28166
  });
28167
- } else if (error2.message === "TimeoutError" || [403, 404, 405].includes(error2.statusCode)) {
28167
+ } else if (error3.message === "TimeoutError" || [403, 404, 405].includes(error3.statusCode)) {
28168
28168
  disableFetchToken = true;
28169
28169
  }
28170
28170
  logger3?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
@@ -28291,12 +28291,12 @@ var require_dist_cjs22 = __commonJS({
28291
28291
  return timing.setTimeout(() => {
28292
28292
  let msg = `@smithy/node-http-handler - [${throwOnRequestTimeout ? "ERROR" : "WARN"}] a request has exceeded the configured ${timeoutInMs} ms requestTimeout.`;
28293
28293
  if (throwOnRequestTimeout) {
28294
- const error2 = Object.assign(new Error(msg), {
28294
+ const error3 = Object.assign(new Error(msg), {
28295
28295
  name: "TimeoutError",
28296
28296
  code: "ETIMEDOUT"
28297
28297
  });
28298
- req.destroy(error2);
28299
- reject(error2);
28298
+ req.destroy(error3);
28299
+ reject(error3);
28300
28300
  } else {
28301
28301
  msg += ` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;
28302
28302
  logger3?.warn?.(msg);
@@ -30423,13 +30423,13 @@ var require_dist_cjs24 = __commonJS({
30423
30423
  expiresAt: newTokenExpiration.toISOString(),
30424
30424
  refreshToken: newSsoOidcToken.refreshToken
30425
30425
  });
30426
- } catch (error2) {
30426
+ } catch (error3) {
30427
30427
  }
30428
30428
  return {
30429
30429
  token: newSsoOidcToken.accessToken,
30430
30430
  expiration: newTokenExpiration
30431
30431
  };
30432
- } catch (error2) {
30432
+ } catch (error3) {
30433
30433
  validateTokenExpiry(existingToken);
30434
30434
  return existingToken;
30435
30435
  }
@@ -32271,9 +32271,9 @@ var require_dist_cjs26 = __commonJS({
32271
32271
  accountId: newAccessToken.accountId,
32272
32272
  expiration
32273
32273
  };
32274
- } catch (error2) {
32275
- if (error2.name === "AccessDeniedException") {
32276
- const errorType = error2.error;
32274
+ } catch (error3) {
32275
+ if (error3.name === "AccessDeniedException") {
32276
+ const errorType = error3.error;
32277
32277
  let message;
32278
32278
  switch (errorType) {
32279
32279
  case "TOKEN_EXPIRED":
@@ -32286,11 +32286,11 @@ var require_dist_cjs26 = __commonJS({
32286
32286
  message = "Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";
32287
32287
  break;
32288
32288
  default:
32289
- message = `Failed to refresh token: ${String(error2)}. Please re-authenticate using \`aws login\``;
32289
+ message = `Failed to refresh token: ${String(error3)}. Please re-authenticate using \`aws login\``;
32290
32290
  }
32291
32291
  throw new CredentialsProviderError2(message, { logger: this.logger, tryNextLink: false });
32292
32292
  }
32293
- throw new CredentialsProviderError2(`Failed to refresh token: ${String(error2)}. Please re-authenticate using aws login`, { logger: this.logger });
32293
+ throw new CredentialsProviderError2(`Failed to refresh token: ${String(error3)}. Please re-authenticate using aws login`, { logger: this.logger });
32294
32294
  }
32295
32295
  }
32296
32296
  async loadToken() {
@@ -32314,8 +32314,8 @@ var require_dist_cjs26 = __commonJS({
32314
32314
  });
32315
32315
  }
32316
32316
  return token;
32317
- } catch (error2) {
32318
- throw new CredentialsProviderError2(`Failed to load token from ${tokenFilePath}: ${String(error2)}`, {
32317
+ } catch (error3) {
32318
+ throw new CredentialsProviderError2(`Failed to load token from ${tokenFilePath}: ${String(error3)}`, {
32319
32319
  logger: this.logger,
32320
32320
  tryNextLink: false
32321
32321
  });
@@ -32326,7 +32326,7 @@ var require_dist_cjs26 = __commonJS({
32326
32326
  const directory = dirname(tokenFilePath);
32327
32327
  try {
32328
32328
  await promises.mkdir(directory, { recursive: true });
32329
- } catch (error2) {
32329
+ } catch (error3) {
32330
32330
  }
32331
32331
  await promises.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8");
32332
32332
  }
@@ -32417,8 +32417,8 @@ var require_dist_cjs26 = __commonJS({
32417
32417
  const rawSignature = this.derToRawSignature(asn1Signature);
32418
32418
  const signatureB64 = rawSignature.toString("base64url");
32419
32419
  return `${message}.${signatureB64}`;
32420
- } catch (error2) {
32421
- throw new CredentialsProviderError2(`Failed to generate Dpop proof: ${error2 instanceof Error ? error2.message : String(error2)}`, { logger: this.logger, tryNextLink: false });
32420
+ } catch (error3) {
32421
+ throw new CredentialsProviderError2(`Failed to generate Dpop proof: ${error3 instanceof Error ? error3.message : String(error3)}`, { logger: this.logger, tryNextLink: false });
32422
32422
  }
32423
32423
  }
32424
32424
  };
@@ -33721,8 +33721,8 @@ var require_dist_cjs27 = __commonJS({
33721
33721
  throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
33722
33722
  }
33723
33723
  return getValidatedProcessCredentials(profileName, data, profiles);
33724
- } catch (error2) {
33725
- throw new CredentialsProviderError2(error2.message, { logger: logger3 });
33724
+ } catch (error3) {
33725
+ throw new CredentialsProviderError2(error3.message, { logger: logger3 });
33726
33726
  }
33727
33727
  } else {
33728
33728
  throw new CredentialsProviderError2(`Profile ${profileName} did not contain credential_process.`, { logger: logger3 });
@@ -37139,16 +37139,16 @@ var LogFormatter = class {
37139
37139
  *
37140
37140
  * @param error - Error to format
37141
37141
  */
37142
- formatError(error2) {
37143
- const { name, message, stack, cause, ...errorAttributes } = error2;
37142
+ formatError(error3) {
37143
+ const { name, message, stack, cause, ...errorAttributes } = error3;
37144
37144
  const formattedError = {
37145
37145
  name,
37146
- location: this.getCodeLocation(error2.stack),
37146
+ location: this.getCodeLocation(error3.stack),
37147
37147
  message,
37148
37148
  stack: isDevMode() && typeof stack === "string" ? stack?.split("\n") : stack,
37149
37149
  cause: cause instanceof Error ? this.formatError(cause) : cause
37150
37150
  };
37151
- for (const key in error2) {
37151
+ for (const key in error3) {
37152
37152
  if (typeof key === "string" && !["name", "message", "stack", "cause"].includes(key)) {
37153
37153
  formattedError[key] = errorAttributes[key];
37154
37154
  }
@@ -38127,15 +38127,15 @@ var Logger = class _Logger extends Utility {
38127
38127
  }
38128
38128
  try {
38129
38129
  return await originalMethod.apply(this, args);
38130
- } catch (error2) {
38130
+ } catch (error3) {
38131
38131
  if (options?.flushBufferOnUncaughtError) {
38132
38132
  loggerRef.flushBuffer();
38133
38133
  loggerRef.error({
38134
38134
  message: UncaughtErrorLogMessage,
38135
- error: error2
38135
+ error: error3
38136
38136
  });
38137
38137
  }
38138
- throw error2;
38138
+ throw error3;
38139
38139
  } finally {
38140
38140
  if (options?.clearState || options?.resetKeys)
38141
38141
  loggerRef.resetKeys();
@@ -38578,8 +38578,8 @@ var Logger = class _Logger extends Utility {
38578
38578
  if (traceId !== void 0 && this.shouldBufferLog(traceId, logLevel)) {
38579
38579
  try {
38580
38580
  this.bufferLogItem(traceId, this.createAndPopulateLogItem(logLevel, input, extraInput), logLevel);
38581
- } catch (error2) {
38582
- this.printLog(LogLevelThreshold.WARN, this.createAndPopulateLogItem(LogLevelThreshold.WARN, `Unable to buffer log: ${error2.message}`, [error2]));
38581
+ } catch (error3) {
38582
+ this.printLog(LogLevelThreshold.WARN, this.createAndPopulateLogItem(LogLevelThreshold.WARN, `Unable to buffer log: ${error3.message}`, [error3]));
38583
38583
  this.printLog(logLevel, this.createAndPopulateLogItem(logLevel, input, extraInput));
38584
38584
  }
38585
38585
  return;
@@ -38926,10 +38926,10 @@ var SBOM_CATALOG_BUCKET_ARN = `arn:aws:s3:::${SBOM_CATALOG_BUCKET_NAME}`;
38926
38926
 
38927
38927
  // src/sbom-catalog/lambda/upload-artifacts.ts
38928
38928
  var s3Client = new import_client_s3.S3Client({});
38929
- async function uploadArtifacts(configuration) {
38929
+ async function uploadArtifacts(configuration, eventId, eventTime) {
38930
38930
  const isStandaloneUpload = "name" in configuration;
38931
38931
  const projectName = isStandaloneUpload ? configuration.name : configuration.collectionName;
38932
- const destinationPrefix = buildDestinationObjectKeyPrefix(configuration, projectName);
38932
+ const destinationPrefix = buildDestinationObjectKeyPrefix(configuration, projectName, eventId, eventTime);
38933
38933
  let projects;
38934
38934
  let manifest;
38935
38935
  if (isStandaloneUpload) {
@@ -38945,13 +38945,29 @@ async function uploadArtifacts(configuration) {
38945
38945
  await writeToDestinationBucket(manifestKey, manifestBody);
38946
38946
  return { manifestKey, projects };
38947
38947
  }
38948
- function buildDestinationObjectKeyPrefix(configuration, projectName) {
38948
+ function buildDestinationObjectKeyPrefix(configuration, projectName, eventId, eventTime) {
38949
38949
  return [
38950
38950
  `${configuration.originAccountId}-${configuration.originAccountName}`,
38951
38951
  projectName,
38952
- configuration.buildIdentifier
38952
+ eventDestinationPath(eventId, eventTime)
38953
38953
  ].join("/");
38954
38954
  }
38955
+ function eventDestinationPath(eventId, eventTime) {
38956
+ const timestamp = new Date(eventTime);
38957
+ if (Number.isNaN(timestamp.getTime())) {
38958
+ throw new Error(`Invalid EventBridge event time '${eventTime}'`);
38959
+ }
38960
+ const year2 = timestamp.getUTCFullYear();
38961
+ const month = padded(timestamp.getUTCMonth() + 1);
38962
+ const day = padded(timestamp.getUTCDate());
38963
+ const hours = padded(timestamp.getUTCHours());
38964
+ const minutes = padded(timestamp.getUTCMinutes());
38965
+ const seconds = padded(timestamp.getUTCSeconds());
38966
+ return `${year2}/${month}/${day}/${hours}${minutes}${seconds}-${eventId}`;
38967
+ }
38968
+ function padded(value) {
38969
+ return value.toString().padStart(2, "0");
38970
+ }
38955
38971
  function buildStandaloneManifest(project) {
38956
38972
  return {
38957
38973
  schemaVersion: 1,
@@ -39810,10 +39826,10 @@ var initializer = (inst, def) => {
39810
39826
  };
39811
39827
  var $ZodError = $constructor("$ZodError", initializer);
39812
39828
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
39813
- function flattenError(error2, mapper = (issue2) => issue2.message) {
39829
+ function flattenError(error3, mapper = (issue2) => issue2.message) {
39814
39830
  const fieldErrors = {};
39815
39831
  const formErrors = [];
39816
- for (const sub of error2.issues) {
39832
+ for (const sub of error3.issues) {
39817
39833
  if (sub.path.length > 0) {
39818
39834
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
39819
39835
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -39823,10 +39839,10 @@ function flattenError(error2, mapper = (issue2) => issue2.message) {
39823
39839
  }
39824
39840
  return { formErrors, fieldErrors };
39825
39841
  }
39826
- function formatError(error2, mapper = (issue2) => issue2.message) {
39842
+ function formatError(error3, mapper = (issue2) => issue2.message) {
39827
39843
  const fieldErrors = { _errors: [] };
39828
- const processError = (error3, path = []) => {
39829
- for (const issue2 of error3.issues) {
39844
+ const processError = (error4, path = []) => {
39845
+ for (const issue2 of error4.issues) {
39830
39846
  if (issue2.code === "invalid_union" && issue2.errors.length) {
39831
39847
  issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
39832
39848
  } else if (issue2.code === "invalid_key") {
@@ -39856,7 +39872,7 @@ function formatError(error2, mapper = (issue2) => issue2.message) {
39856
39872
  }
39857
39873
  }
39858
39874
  };
39859
- processError(error2);
39875
+ processError(error3);
39860
39876
  return fieldErrors;
39861
39877
  }
39862
39878
 
@@ -40624,8 +40640,8 @@ function isValidBase64URL(data) {
40624
40640
  if (!base64url.test(data))
40625
40641
  return false;
40626
40642
  const base642 = data.replace(/[-_]/g, (c5) => c5 === "-" ? "+" : "/");
40627
- const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
40628
- return isValidBase64(padded);
40643
+ const padded2 = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
40644
+ return isValidBase64(padded2);
40629
40645
  }
40630
40646
  var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
40631
40647
  def.pattern ?? (def.pattern = base64url);
@@ -41459,6 +41475,119 @@ function handleRefineResult(result, payload, input, inst) {
41459
41475
  }
41460
41476
  }
41461
41477
 
41478
+ // node_modules/zod/v4/locales/en.js
41479
+ var error2 = () => {
41480
+ const Sizable = {
41481
+ string: { unit: "characters", verb: "to have" },
41482
+ file: { unit: "bytes", verb: "to have" },
41483
+ array: { unit: "items", verb: "to have" },
41484
+ set: { unit: "items", verb: "to have" },
41485
+ map: { unit: "entries", verb: "to have" }
41486
+ };
41487
+ function getSizing(origin) {
41488
+ return Sizable[origin] ?? null;
41489
+ }
41490
+ const FormatDictionary = {
41491
+ regex: "input",
41492
+ email: "email address",
41493
+ url: "URL",
41494
+ emoji: "emoji",
41495
+ uuid: "UUID",
41496
+ uuidv4: "UUIDv4",
41497
+ uuidv6: "UUIDv6",
41498
+ nanoid: "nanoid",
41499
+ guid: "GUID",
41500
+ cuid: "cuid",
41501
+ cuid2: "cuid2",
41502
+ ulid: "ULID",
41503
+ xid: "XID",
41504
+ ksuid: "KSUID",
41505
+ datetime: "ISO datetime",
41506
+ date: "ISO date",
41507
+ time: "ISO time",
41508
+ duration: "ISO duration",
41509
+ ipv4: "IPv4 address",
41510
+ ipv6: "IPv6 address",
41511
+ mac: "MAC address",
41512
+ cidrv4: "IPv4 range",
41513
+ cidrv6: "IPv6 range",
41514
+ base64: "base64-encoded string",
41515
+ base64url: "base64url-encoded string",
41516
+ json_string: "JSON string",
41517
+ e164: "E.164 number",
41518
+ jwt: "JWT",
41519
+ template_literal: "input"
41520
+ };
41521
+ const TypeDictionary = {
41522
+ // Compatibility: "nan" -> "NaN" for display
41523
+ nan: "NaN"
41524
+ // All other type names omitted - they fall back to raw values via ?? operator
41525
+ };
41526
+ return (issue2) => {
41527
+ switch (issue2.code) {
41528
+ case "invalid_type": {
41529
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
41530
+ const receivedType = parsedType(issue2.input);
41531
+ const received = TypeDictionary[receivedType] ?? receivedType;
41532
+ return `Invalid input: expected ${expected}, received ${received}`;
41533
+ }
41534
+ case "invalid_value":
41535
+ if (issue2.values.length === 1)
41536
+ return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
41537
+ return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`;
41538
+ case "too_big": {
41539
+ const adj = issue2.inclusive ? "<=" : "<";
41540
+ const sizing = getSizing(issue2.origin);
41541
+ if (sizing)
41542
+ return `Too big: expected ${issue2.origin ?? "value"} to have ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;
41543
+ return `Too big: expected ${issue2.origin ?? "value"} to be ${adj}${issue2.maximum.toString()}`;
41544
+ }
41545
+ case "too_small": {
41546
+ const adj = issue2.inclusive ? ">=" : ">";
41547
+ const sizing = getSizing(issue2.origin);
41548
+ if (sizing) {
41549
+ return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
41550
+ }
41551
+ return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`;
41552
+ }
41553
+ case "invalid_format": {
41554
+ const _issue = issue2;
41555
+ if (_issue.format === "starts_with") {
41556
+ return `Invalid string: must start with "${_issue.prefix}"`;
41557
+ }
41558
+ if (_issue.format === "ends_with")
41559
+ return `Invalid string: must end with "${_issue.suffix}"`;
41560
+ if (_issue.format === "includes")
41561
+ return `Invalid string: must include "${_issue.includes}"`;
41562
+ if (_issue.format === "regex")
41563
+ return `Invalid string: must match pattern ${_issue.pattern}`;
41564
+ return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
41565
+ }
41566
+ case "not_multiple_of":
41567
+ return `Invalid number: must be a multiple of ${issue2.divisor}`;
41568
+ case "unrecognized_keys":
41569
+ return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
41570
+ case "invalid_key":
41571
+ return `Invalid key in ${issue2.origin}`;
41572
+ case "invalid_union":
41573
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
41574
+ const opts = issue2.options.map((o3) => `'${o3}'`).join(" | ");
41575
+ return `Invalid discriminator value. Expected ${opts}`;
41576
+ }
41577
+ return "Invalid input";
41578
+ case "invalid_element":
41579
+ return `Invalid value in ${issue2.origin}`;
41580
+ default:
41581
+ return `Invalid input`;
41582
+ }
41583
+ };
41584
+ };
41585
+ function en_default() {
41586
+ return {
41587
+ localeError: error2()
41588
+ };
41589
+ }
41590
+
41462
41591
  // node_modules/zod/v4/core/registries.js
41463
41592
  var _a3;
41464
41593
  var $output = Symbol("ZodOutput");
@@ -42521,6 +42650,17 @@ var optionalProcessor = (schema, ctx, _json2, params) => {
42521
42650
  };
42522
42651
 
42523
42652
  // node_modules/zod/v4/classic/iso.js
42653
+ var iso_exports = {};
42654
+ __export(iso_exports, {
42655
+ ZodISODate: () => ZodISODate,
42656
+ ZodISODateTime: () => ZodISODateTime,
42657
+ ZodISODuration: () => ZodISODuration,
42658
+ ZodISOTime: () => ZodISOTime,
42659
+ date: () => date3,
42660
+ datetime: () => datetime2,
42661
+ duration: () => duration2,
42662
+ time: () => time3
42663
+ });
42524
42664
  var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
42525
42665
  $ZodISODateTime.init(inst, def);
42526
42666
  ZodStringFormat.init(inst, def);
@@ -43283,6 +43423,9 @@ function superRefine(fn, params) {
43283
43423
  return _superRefine(fn, params);
43284
43424
  }
43285
43425
 
43426
+ // node_modules/zod/v4/classic/external.js
43427
+ config(en_default());
43428
+
43286
43429
  // src/sbom-catalog/lambda/upload-event.ts
43287
43430
  var requiredTextSchema = string2().min(1);
43288
43431
  var destinationKeySegmentSchema = requiredTextSchema.refine((value) => !value.includes("/"), {
@@ -43301,8 +43444,7 @@ var collectionChildSchema = object({
43301
43444
  });
43302
43445
  var sharedConfigurationFields = {
43303
43446
  originAccountId: destinationKeySegmentSchema,
43304
- originAccountName: destinationKeySegmentSchema,
43305
- buildIdentifier: destinationKeySegmentSchema
43447
+ originAccountName: destinationKeySegmentSchema
43306
43448
  };
43307
43449
  var standaloneConfigurationSchema = object({
43308
43450
  ...sharedConfigurationFields,
@@ -43319,7 +43461,8 @@ var catalogConfigurationSchema = object({
43319
43461
  children: array(collectionChildSchema).min(1)
43320
43462
  });
43321
43463
  var uploadEventSchema = object({
43322
- eventId: requiredTextSchema,
43464
+ eventId: destinationKeySegmentSchema,
43465
+ eventTime: iso_exports.datetime(),
43323
43466
  stackId: requiredTextSchema,
43324
43467
  stackStatus: requiredTextSchema,
43325
43468
  configuration: union([standaloneConfigurationSchema, catalogConfigurationSchema])
@@ -43334,10 +43477,11 @@ var handler = async (event) => {
43334
43477
  const uploadEvent = parseUploadEvent(event);
43335
43478
  logger2.info("SBOM upload requested", {
43336
43479
  eventId: uploadEvent.eventId,
43480
+ eventTime: uploadEvent.eventTime,
43337
43481
  stackId: uploadEvent.stackId,
43338
43482
  stackStatus: uploadEvent.stackStatus
43339
43483
  });
43340
- const result = await uploadArtifacts(uploadEvent.configuration);
43484
+ const result = await uploadArtifacts(uploadEvent.configuration, uploadEvent.eventId, uploadEvent.eventTime);
43341
43485
  logger2.info("SBOM upload completed", {
43342
43486
  manifestKey: result.manifestKey,
43343
43487
  projects: result.projects