calmlens 0.29.2 → 0.31.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 (86) hide show
  1. package/bin/calmlens.js +17 -45
  2. package/{esm/BrowserUpload-CeGsM9h1.d.ts → cjs/BrowserUpload-BAH54V1q.d.ts} +2 -2
  3. package/cjs/{BrowserUpload-CCXt4DAY.js → BrowserUpload-IiRDbL85.js} +1 -1
  4. package/cjs/{CalmLensAppClient-ea-qXkmD.js → CalmLensAppClient-BBcq6pJg.js} +10 -10
  5. package/cjs/{CalmLensAppClient-D-BD_Ny1.d.ts → CalmLensAppClient-CdlcDd5l.d.ts} +1 -1
  6. package/cjs/{ModerationContextLimits-1XP4ZTQk.js → CalmLensCdn-2VbArrj-.js} +2 -52
  7. package/cjs/{CalmLensConnection-BrySN2M3.js → CalmLensConnection-CpnDGa8W.js} +15 -22
  8. package/cjs/{CalmLensError-DPHJaVjX.js → CalmLensError-ifj5rLmk.js} +5 -0
  9. package/{esm/CalmLensServerClient-BYN_N0lt.d.ts → cjs/CalmLensServerClient-CtS66dCU.d.ts} +12 -8
  10. package/cjs/{CalmLensServerClient-FD7H7KvL.js → CalmLensServerClient-DbemlDXj.js} +38 -37
  11. package/cjs/{CalmLensTestInputArguments-BXDBAOg_.js → CalmLensTestInputArguments-PYuRmE0j.js} +1 -1
  12. package/cjs/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-87kiUg0H.d.ts} +208 -10
  13. package/cjs/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-C3pkrGYS-B7EygpJn.d.ts} +16 -50
  14. package/cjs/{Core-CNmoxDCW.d.ts → Core-Ccy4-_sN.d.ts} +2 -2
  15. package/cjs/{Core-DMFa3EUp.js → Core-xy9aV1ED.js} +8 -8
  16. package/cjs/{ReactUpload-gaeiPSeH.js → ReactUpload-BX3XOVfb.js} +1 -1
  17. package/{esm/ReactUpload-kqEe6gcN.d.ts → cjs/ReactUpload-DBhppuxM.d.ts} +1 -1
  18. package/cjs/{TestTriggers-CFnel6a9.d.ts → TestTriggers-Daxebd0V.d.ts} +1 -1
  19. package/cjs/{UploadController-CyPTBuZg.js → UploadController-CmTjpOfp.js} +2 -2
  20. package/{esm/WebhookPayload-DZWlnvcY.d.ts → cjs/WebhookPayload-B4rA_Dvm.d.ts} +13 -7
  21. package/cjs/app.d.ts +6 -6
  22. package/cjs/app.js +8 -11
  23. package/cjs/elements.d.ts +4 -4
  24. package/cjs/elements.js +4 -4
  25. package/cjs/{index-Dl2qwS8L.d.ts → index-CWUnLKoF.d.ts} +8 -4
  26. package/cjs/index.d.ts +5 -5
  27. package/cjs/index.js +7 -10
  28. package/cjs/react-native.d.ts +2 -2
  29. package/cjs/react-native.js +7 -7
  30. package/cjs/react.d.ts +4 -4
  31. package/cjs/react.js +5 -5
  32. package/cjs/server.d.ts +12 -12
  33. package/cjs/server.js +9 -12
  34. package/cjs/test-inputs.d.ts +1 -1
  35. package/cjs/test-inputs.js +1 -1
  36. package/cjs/testing.d.ts +12 -8
  37. package/cjs/testing.js +89 -37
  38. package/cjs/{ui-DNP1uWQy.js → ui-BJKh49aM.js} +3 -3
  39. package/cjs/{ui-BtmJC-f9.d.ts → ui-sjnJhloQ.d.ts} +2 -2
  40. package/cjs/ui.d.ts +2 -2
  41. package/cjs/ui.js +3 -3
  42. package/cjs/vue.d.ts +5 -5
  43. package/cjs/vue.js +4 -4
  44. package/{cjs/BrowserUpload-CeGsM9h1.d.ts → esm/BrowserUpload-BAH54V1q.d.ts} +2 -2
  45. package/esm/{BrowserUpload-Bu6eWqQS.js → BrowserUpload-C5aXj6QC.js} +1 -1
  46. package/esm/{CalmLensAppClient-D-BD_Ny1.d.ts → CalmLensAppClient-CdlcDd5l.d.ts} +1 -1
  47. package/esm/{CalmLensAppClient-xp-fH6Lz.js → CalmLensAppClient-gAd0C_Q_.js} +3 -3
  48. package/esm/{ModerationContextLimits-CtAyz60h.js → CalmLensCdn-CcxEY6wB.js} +3 -35
  49. package/esm/{CalmLensConnection-DwG5yBk2.js → CalmLensConnection-CfGVp95D.js} +2 -9
  50. package/esm/{CalmLensError-BDWThPCr.js → CalmLensError-C15tWu8W.js} +5 -0
  51. package/esm/{CalmLensServerClient-CKlNBBo3.js → CalmLensServerClient-CPWeRVWO.js} +18 -17
  52. package/{cjs/CalmLensServerClient-BYN_N0lt.d.ts → esm/CalmLensServerClient-CtS66dCU.d.ts} +12 -8
  53. package/esm/{CalmLensTestInputArguments-Xh4GIadS.js → CalmLensTestInputArguments-CqPADTkl.js} +1 -1
  54. package/esm/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-87kiUg0H.d.ts} +208 -10
  55. package/esm/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-C3pkrGYS-B7EygpJn.d.ts} +16 -50
  56. package/esm/{Core-CNmoxDCW.d.ts → Core-Ccy4-_sN.d.ts} +2 -2
  57. package/esm/{Core-DnCeTmvS.js → Core-DTcxpv3O.js} +3 -3
  58. package/{cjs/ReactUpload-kqEe6gcN.d.ts → esm/ReactUpload-DBhppuxM.d.ts} +1 -1
  59. package/esm/{ReactUpload-D30YlRui.js → ReactUpload-Dg7MtjbJ.js} +1 -1
  60. package/esm/{TestTriggers-CFnel6a9.d.ts → TestTriggers-Daxebd0V.d.ts} +1 -1
  61. package/esm/{UploadController-DENryQ8H.js → UploadController-DVsTVJVv.js} +2 -2
  62. package/{cjs/WebhookPayload-DZWlnvcY.d.ts → esm/WebhookPayload-B4rA_Dvm.d.ts} +13 -7
  63. package/esm/app.d.ts +6 -6
  64. package/esm/app.js +4 -4
  65. package/esm/elements.d.ts +4 -4
  66. package/esm/elements.js +4 -4
  67. package/esm/{index-Dl2qwS8L.d.ts → index-CWUnLKoF.d.ts} +8 -4
  68. package/esm/index.d.ts +5 -5
  69. package/esm/index.js +3 -3
  70. package/esm/react-native.d.ts +2 -2
  71. package/esm/react-native.js +4 -4
  72. package/esm/react.d.ts +4 -4
  73. package/esm/react.js +5 -5
  74. package/esm/server.d.ts +12 -12
  75. package/esm/server.js +4 -4
  76. package/esm/test-inputs.d.ts +1 -1
  77. package/esm/test-inputs.js +1 -1
  78. package/esm/testing.d.ts +12 -8
  79. package/esm/testing.js +74 -22
  80. package/esm/{ui-DUEBbRJ0.js → ui-DUao8UY0.js} +2 -2
  81. package/esm/{ui-BtmJC-f9.d.ts → ui-sjnJhloQ.d.ts} +2 -2
  82. package/esm/ui.d.ts +2 -2
  83. package/esm/ui.js +3 -3
  84. package/esm/vue.d.ts +5 -5
  85. package/esm/vue.js +4 -4
  86. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- const require_CalmLensError = require("./CalmLensError-DPHJaVjX.js");
2
- const require_ModerationContextLimits = require("./ModerationContextLimits-1XP4ZTQk.js");
3
- const require_CalmLensConnection = require("./CalmLensConnection-BrySN2M3.js");
1
+ const require_CalmLensError = require("./CalmLensError-ifj5rLmk.js");
2
+ const require_CalmLensCdn = require("./CalmLensCdn-2VbArrj-.js");
3
+ const require_CalmLensConnection = require("./CalmLensConnection-CpnDGa8W.js");
4
4
  const require_CryptoUtils_BLCa_oZe = require("./CryptoUtils-BLCa-oZe-leCkr1ko.js");
5
5
  // src/contract/JsonUtils.js
6
6
  const stringifyJsonCanonical = (value) => JSON.stringify(value, (_key, nestedValue) => {
@@ -59,7 +59,7 @@ const decodeUploadToken = (token) => {
59
59
  const signUploadTokenWithApiKey = async (apiKey, options, { now = Date.now(), nonce = crypto.randomUUID() } = {}) => {
60
60
  if (!options || typeof options !== "object") throw require_CalmLensError.invalidArgument("Options are required");
61
61
  const { uploadPresetId, externalId, expiresIn = 600 } = options;
62
- require_ModerationContextLimits.encodePathSegment(uploadPresetId, "Upload preset ID");
62
+ require_CalmLensCdn.encodePathSegment(uploadPresetId, "Upload preset ID");
63
63
  if (!Number.isInteger(expiresIn) || expiresIn < 1 || expiresIn > 3600) throw require_CalmLensError.invalidArgument(`expiresIn must be a whole number from 1 to ${UPLOAD_TOKEN_MAX_TTL_SECONDS}`);
64
64
  if (externalId !== void 0 && (typeof externalId !== "string" || !externalId)) throw require_CalmLensError.invalidArgument("externalId must be a non-empty string");
65
65
  const expiresAt = now + expiresIn * 1e3;
@@ -153,8 +153,8 @@ const isOptional = (value, type, nullable) => value === void 0 || nullable && va
153
153
  */
154
154
  const isWebhookEvent = (value) => {
155
155
  if (!isObject(value) || typeof value.id !== "string" || typeof value.type !== "string" || typeof value.projectId !== "string" || typeof value.createdAt !== "number") return false;
156
- const { severity, title, description, assetId, assetSequence, facts } = value;
157
- return isOptional(severity, "string", false) && isOptional(title, "string", false) && isOptional(description, "string", true) && isOptional(assetId, "string", true) && isOptional(assetSequence, "number", true) && (facts === void 0 || Array.isArray(facts) && facts.every((fact) => isObject(fact) && typeof fact.key === "string" && "value" in fact && isOptional(fact.url, "string", false)));
156
+ const { severity, title, description, resource, facts } = value;
157
+ return isOptional(severity, "string", false) && isOptional(title, "string", false) && isOptional(description, "string", true) && (resource === void 0 || resource === null || isObject(resource) && typeof resource.kind === "string" && typeof resource.id === "string" && typeof resource.sequence === "number") && (facts === void 0 || Array.isArray(facts) && facts.every((fact) => isObject(fact) && typeof fact.key === "string" && "value" in fact && isOptional(fact.url, "string", false)));
158
158
  };
159
159
  /**
160
160
  * The value of one of an event's facts, by key, or `undefined` when the event doesn't carry it.
@@ -178,13 +178,13 @@ const getEventFacts = (event) => {
178
178
  */
179
179
  const isTestWebhookEvent = (event) => Array.isArray(event?.facts) && event.facts.some((fact) => fact?.key === "test" && fact.value === true);
180
180
  /**
181
- * Whether to apply `event` after `lastSequence`, the highest `assetSequence` you have applied for
182
- * its asset (`null` or `undefined` when none). Deliveries can arrive out of order: an event about
183
- * an asset is newer only with a higher `assetSequence`, so a retried or repeated delivery of an
184
- * earlier one returns `false`. Events that aren't about an asset have no sequence and are always
185
- * new. Store the event's `assetSequence` per `assetId` once you have applied it.
181
+ * Whether to apply `event` after `lastSequence`, the highest `resource.sequence` you have applied
182
+ * for its resource (`null` or `undefined` when none). Deliveries can arrive out of order: an event
183
+ * about a resource is newer only with a higher sequence, so a retried or repeated delivery of an
184
+ * earlier one returns `false`. Events about no resource have no sequence and are always new.
185
+ * Store the event's `resource.sequence` per `resource.id` once you have applied it.
186
186
  */
187
- const isNewerAssetEvent = (event, lastSequence) => event.assetSequence === null || event.assetSequence === void 0 || lastSequence === null || lastSequence === void 0 || event.assetSequence > lastSequence;
187
+ const isNewerEvent = (event, lastSequence) => !event.resource || lastSequence === null || lastSequence === void 0 || event.resource.sequence > lastSequence;
188
188
  // src/client/ServedAssetInfo.ts
189
189
  function parseServedAssetInfo(header) {
190
190
  if (!header) return void 0;
@@ -215,7 +215,7 @@ const getEnsureLensCacheKey = (options) => stringifyJsonCanonical({
215
215
  active: options.active ?? true,
216
216
  transform: options.transform ?? null
217
217
  });
218
- const requireId = (value, name) => require_ModerationContextLimits.encodePathSegment(value, name);
218
+ const requireId = (value, name) => require_CalmLensCdn.encodePathSegment(value, name);
219
219
  /** `options`, after checking that text it classifies isn't empty. */
220
220
  const checkedTextContent = (options) => {
221
221
  if (options && "content" in options && "plainText" in options.content && (typeof options.content.plainText !== "string" || !options.content.plainText.trim())) throw require_CalmLensConnection.invalidPayload("Text to classify must be a non-empty string");
@@ -235,9 +235,9 @@ const anySignal = (signals) => {
235
235
  */
236
236
  const withEnvironmentDefaults = (options) => {
237
237
  if (!options || typeof options !== "object" || require_CalmLensConnection.getMockHooks(options)) return options;
238
- const apiKey = options.apiKey ?? require_ModerationContextLimits.readEnv("CALMLENS_API_KEY");
239
- const projectId = options.projectId ?? require_ModerationContextLimits.readEnv("CALMLENS_PROJECT_ID");
240
- const baseUrl = options.baseUrl ?? require_ModerationContextLimits.readEnv("CALMLENS_BASE_URL");
238
+ const apiKey = options.apiKey ?? require_CalmLensCdn.readEnv("CALMLENS_API_KEY");
239
+ const projectId = options.projectId ?? require_CalmLensCdn.readEnv("CALMLENS_PROJECT_ID");
240
+ const baseUrl = options.baseUrl ?? require_CalmLensCdn.readEnv("CALMLENS_BASE_URL");
241
241
  return {
242
242
  ...options,
243
243
  ...apiKey !== void 0 && { apiKey },
@@ -250,7 +250,7 @@ const withEnvironmentDefaults = (options) => {
250
250
  * `null` that the API refuses as `null`: those are left out, as if omitted.
251
251
  */
252
252
  const checked = (operation, options) => {
253
- require_ModerationContextLimits.checkOptionKeys(options, operation, require_CalmLensConnection.SERVER_OPTION_KEYS);
253
+ require_CalmLensCdn.checkOptionKeys(options, operation, require_CalmLensConnection.SERVER_OPTION_KEYS);
254
254
  if (!options || typeof options !== "object" || Array.isArray(options)) return options;
255
255
  const nullable = require_CalmLensConnection.NULLABLE_OPTION_KEYS[operation] ?? [];
256
256
  return Object.fromEntries(Object.entries(options).filter(([key, value]) => value !== null || nullable.includes(key)));
@@ -308,14 +308,14 @@ var CalmLensServerClient = class {
308
308
  }
309
309
  constructor(clientOptions = {}, lenses) {
310
310
  const options = withEnvironmentDefaults(clientOptions);
311
- require_ModerationContextLimits.validateServerClientOptions(options);
312
- if ((require_ModerationContextLimits.isBrowserRuntime() || require_ModerationContextLimits.isReactNativeRuntime()) && !options.dangerouslyAllowBrowser) throw require_CalmLensError.invalidConfig("CalmLensServerClient is running in a browser or app, where anyone could read the API key. Call CalmLens from your server, upload from the browser or app with CalmLensAppClient, or set dangerouslyAllowBrowser: true for trusted internal tools.");
311
+ require_CalmLensCdn.validateServerClientOptions(options);
312
+ if ((require_CalmLensCdn.isBrowserRuntime() || require_CalmLensCdn.isReactNativeRuntime()) && !options.dangerouslyAllowBrowser) throw require_CalmLensError.invalidConfig("CalmLensServerClient is running in a browser or app, where anyone could read the API key. Call CalmLens from your server, upload from the browser or app with CalmLensAppClient, or set dangerouslyAllowBrowser: true for trusted internal tools.");
313
313
  const { apiKey, projectId, ...rest } = options;
314
314
  this.#apiKey = apiKey;
315
315
  this.#settings = {
316
316
  projectId,
317
317
  ...require_CalmLensConnection.resolveConnectionOptions(rest),
318
- cdnBaseUrl: (rest.cdnBaseUrl ?? require_CalmLensConnection.getMockHooks(rest)?.defaultCdnBaseUrl ?? require_ModerationContextLimits.DEFAULT_CDN_BASE_URL).replace(/\/+$/, "")
318
+ cdnBaseUrl: (rest.cdnBaseUrl ?? require_CalmLensConnection.getMockHooks(rest)?.defaultCdnBaseUrl ?? require_CalmLensCdn.DEFAULT_CDN_BASE_URL).replace(/\/+$/, "")
319
319
  };
320
320
  this.#lenses = lenses ?? {
321
321
  ensuredLenses: /* @__PURE__ */ new Map(),
@@ -379,7 +379,7 @@ var CalmLensServerClient = class {
379
379
  */
380
380
  #paginate(operation, options, requestOptions, send) {
381
381
  const first = options?.cursor;
382
- return require_ModerationContextLimits.listPages(async (cursor) => {
382
+ return require_CalmLensCdn.listPages(async (cursor) => {
383
383
  const valid = checked(operation, options);
384
384
  return send(cursor === first ? valid : {
385
385
  ...valid,
@@ -420,7 +420,7 @@ var CalmLensServerClient = class {
420
420
  */
421
421
  getAssetUrl: (urlOptions) => {
422
422
  const { projectId, ...options } = checked("cdn.getAssetUrl", urlOptions);
423
- return require_ModerationContextLimits.buildAssetUrl(this.#settings.cdnBaseUrl, projectId ?? this.#settings.projectId, options);
423
+ return require_CalmLensCdn.buildAssetUrl(this.#settings.cdnBaseUrl, projectId ?? this.#settings.projectId, options);
424
424
  },
425
425
  /**
426
426
  * Signs a private asset's URL on your server, so browsers and apps can load it without an API
@@ -431,7 +431,7 @@ var CalmLensServerClient = class {
431
431
  */
432
432
  signAssetUrl: async (signOptions, requestOptions) => {
433
433
  const options = checked("cdn.signAssetUrl", signOptions);
434
- require_ModerationContextLimits.validateSignAssetUrlOptions(options);
434
+ require_CalmLensCdn.validateSignAssetUrlOptions(options);
435
435
  const { projectId, assetId, externalId, expiresIn, ...location } = options;
436
436
  const project = requireId(projectId ?? this.#settings.projectId, "Project ID");
437
437
  const signed = await this.#send("cdn.signAssetUrl", requestOptions, "POST", `/projects/${project}/signed-asset-urls`, { body: {
@@ -440,8 +440,8 @@ var CalmLensServerClient = class {
440
440
  ...location.resource !== void 0 ? { resource: location.resource } : {}
441
441
  } });
442
442
  if (!signed || typeof signed.url !== "string" || !signed.url || typeof signed.expiresAt !== "number") throw new require_CalmLensError.CalmLensError(require_CalmLensError.SDK_ERROR_CODES.INVALID_RESPONSE, { message: "The API returned no signed asset URL" });
443
- return require_ModerationContextLimits.copyLastResponse({
444
- url: require_ModerationContextLimits.appendSignedLocation(signed.url, location),
443
+ return require_CalmLensCdn.copyLastResponse({
444
+ url: require_CalmLensCdn.appendSignedLocation(signed.url, location),
445
445
  expiresAt: signed.expiresAt
446
446
  }, signed);
447
447
  },
@@ -451,7 +451,7 @@ var CalmLensServerClient = class {
451
451
  * A server can pass it to `CalmLensAsset` as `info`, so the first render is the real
452
452
  * element.
453
453
  */
454
- getAssetInfo: (url, options = {}) => require_ModerationContextLimits.getAssetInfo(url, {
454
+ getAssetInfo: (url, options = {}) => require_CalmLensCdn.getAssetInfo(url, {
455
455
  ...options,
456
456
  fetch: this.#settings.cdnFetch
457
457
  }),
@@ -468,7 +468,7 @@ var CalmLensServerClient = class {
468
468
  ...urlOptions,
469
469
  resource
470
470
  });
471
- const extraQuery = requestOptions?.extraQuery && require_ModerationContextLimits.stringifyQuery(requestOptions.extraQuery);
471
+ const extraQuery = requestOptions?.extraQuery && require_CalmLensCdn.stringifyQuery(requestOptions.extraQuery);
472
472
  const method = init?.method?.toUpperCase() ?? "GET";
473
473
  const { response } = await connection.transport.send({
474
474
  ...connection.callRequest(),
@@ -490,7 +490,7 @@ var CalmLensServerClient = class {
490
490
  * Moderates text and waits for the decision. Sends `text` as `text/plain` content named
491
491
  * `text` unless you pass `name`.
492
492
  */
493
- classify: async (options, requestOptions) => this.#submitAsset("text.classify", checkedTextContent(require_ModerationContextLimits.toTextAssetOptions(checked("text.classify", options))), true, requestOptions) };
493
+ classify: async (options, requestOptions) => this.#submitAsset("text.classify", checkedTextContent(require_CalmLensCdn.toTextAssetOptions(checked("text.classify", options))), true, requestOptions) };
494
494
  }
495
495
  /** Assets: uploads, moderation and management. */
496
496
  get assets() {
@@ -627,7 +627,7 @@ sign: async (options) => {
627
627
  ...requestOptions,
628
628
  ...signal && { signal }
629
629
  });
630
- return require_ModerationContextLimits.pollForDecision(() => connection.json("GET", `/assets/${requireId(assetId, "Asset ID")}`), {
630
+ return require_CalmLensCdn.pollForDecision(() => connection.json("GET", `/assets/${requireId(assetId, "Asset ID")}`), {
631
631
  ...options,
632
632
  deadlineAt: connection.call.deadlineAt
633
633
  }, connection.sleep, connection.now);
@@ -661,7 +661,7 @@ sign: async (options) => {
661
661
  */
662
662
  batch: async (options, requestOptions) => {
663
663
  const { assetIds, operation } = checked("assets.batch", options);
664
- require_ModerationContextLimits.validateBatchAssetsOptions({
664
+ require_CalmLensCdn.validateBatchAssetsOptions({
665
665
  assetIds,
666
666
  operation
667
667
  });
@@ -688,12 +688,13 @@ sign: async (options) => {
688
688
  } })),
689
689
  /**
690
690
  * Retrieves the asset an event is about, as it is now, such as one from `events.list` or a
691
- * parsed webhook delivery; events carry only the asset's ID. Resolves to `null` for an
692
- * event that isn't about an asset, and rejects with `asset/not-found` once the asset is
693
- * deleted. The asset's `eventSequence` orders it against events: an event with a higher
694
- * `assetSequence` happened after this state, one with an equal or lower one is reflected in it.
691
+ * parsed webhook delivery; events carry only the asset's ID, in `resource`. Resolves to
692
+ * `null` for an event that isn't about an asset, and rejects with `asset/not-found` once the
693
+ * asset is deleted. The asset's `sequence` orders it against events: an event with a higher
694
+ * `resource.sequence` happened after this state, one with an equal or lower one is reflected
695
+ * in it.
695
696
  */
696
- retrieveAsset: async (event, requestOptions) => event.assetId ? this.assets.retrieve({ assetId: event.assetId }, requestOptions) : null
697
+ retrieveAsset: async (event, requestOptions) => event.resource?.kind === "asset" ? this.assets.retrieve({ assetId: event.resource.id }, requestOptions) : null
697
698
  };
698
699
  }
699
700
  get folders() {
@@ -997,10 +998,10 @@ Object.defineProperty(exports, "getEventFacts", {
997
998
  return getEventFacts;
998
999
  }
999
1000
  });
1000
- Object.defineProperty(exports, "isNewerAssetEvent", {
1001
+ Object.defineProperty(exports, "isNewerEvent", {
1001
1002
  enumerable: true,
1002
1003
  get: function() {
1003
- return isNewerAssetEvent;
1004
+ return isNewerEvent;
1004
1005
  }
1005
1006
  });
1006
1007
  Object.defineProperty(exports, "isTestWebhookEvent", {
@@ -19,7 +19,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
19
19
  value: mod,
20
20
  enumerable: true
21
21
  }) : target, mod));
22
- const require_CalmLensError = require("./CalmLensError-DPHJaVjX.js");
22
+ const require_CalmLensError = require("./CalmLensError-ifj5rLmk.js");
23
23
  const require_CryptoUtils_BLCa_oZe = require("./CryptoUtils-BLCa-oZe-leCkr1ko.js");
24
24
  let zod = require("zod");
25
25
  let zod$1 = __toESM(zod, 1);