calmlens 0.27.4 → 0.27.6

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 (87) hide show
  1. package/README.md +2 -2
  2. package/bin/calmlens.js +26 -15
  3. package/cjs/{BrowserUpload-CFtjSpBI.d.ts → BrowserUpload-CdOfuIcV.d.ts} +2 -2
  4. package/cjs/{BrowserUpload-Ch9y2ZDx.js → BrowserUpload-GQtZti-D.js} +1 -1
  5. package/{esm/CalmLensAppClient-DzoSqUgG.d.ts → cjs/CalmLensAppClient-Btp8f-34.d.ts} +2 -2
  6. package/cjs/{CalmLensAppClient-DGtj1vUV.js → CalmLensAppClient-Bwt3gP0C.js} +3 -3
  7. package/cjs/{CalmLensOptionKeys-DbL03fZj.js → CalmLensOptionKeys--gTpTkwt.js} +1 -1
  8. package/cjs/{CalmLensServerClient-D62AeRAi.js → CalmLensServerClient-BYMzGkQK.js} +7 -7
  9. package/cjs/{CalmLensServerClient-D3K5HS9v.d.ts → CalmLensServerClient-C3kaPLUZ.d.ts} +2 -2
  10. package/cjs/{CalmLensTypes-OWZsGvBX.d.ts → CalmLensTypes-DxxyZt2L.d.ts} +73 -5
  11. package/cjs/{Core-Cv2zLAJ-.js → Core-52DVaX7d.js} +63 -21
  12. package/{esm/Core-BXeXyiNv.d.ts → cjs/Core-Dhijt6JU.d.ts} +13 -14
  13. package/cjs/{CryptoUtils-B_x8lMIx-YBW1-bvL.js → CryptoUtils-BLCa-oZe-leCkr1ko.js} +1 -2
  14. package/cjs/{ModerationContextLimits-DjacyIkw.js → ModerationContextLimits-DJyIjzIn.js} +21 -3
  15. package/cjs/{ReactUpload-C47UrgH2.d.ts → ReactUpload-BuqLPgNr.d.ts} +1 -1
  16. package/cjs/{ReactUpload-CytoQTh_.js → ReactUpload-DHuhGYsr.js} +1 -1
  17. package/cjs/{TestTriggers-Cvi7e2KA-DcT1pc_W.js → TestTriggers-DP4m92jg-C0HD-A4r.js} +14 -14
  18. package/cjs/{UploadController-fpTC5TUO.js → UploadController-ChzDPMmm.js} +2 -2
  19. package/{esm/WebhookPayload-CrMU6lg0.d.ts → cjs/WebhookPayload-D_yWJA9M.d.ts} +5 -1
  20. package/cjs/app.d.ts +4 -4
  21. package/cjs/app.js +2 -2
  22. package/cjs/elements.d.ts +8 -19
  23. package/cjs/elements.js +45 -53
  24. package/cjs/{index-BDxmVi-G.d.ts → index-CUA-HDNu.d.ts} +2 -2
  25. package/cjs/index.d.ts +3 -3
  26. package/cjs/index.js +1 -1
  27. package/cjs/react-native.d.ts +3 -3
  28. package/cjs/react-native.js +6 -4
  29. package/cjs/react.d.ts +5 -11
  30. package/cjs/react.js +29 -36
  31. package/cjs/server.d.ts +4 -4
  32. package/cjs/server.js +2 -2
  33. package/cjs/test-inputs.js +13 -13
  34. package/cjs/testing.d.ts +4 -4
  35. package/cjs/testing.js +54 -32
  36. package/cjs/{ui-5IdEYYpC.d.ts → ui-BSm_qphN.d.ts} +3 -9
  37. package/cjs/{ui-BvyDbJBb.js → ui-C1_SDSiq.js} +2 -201
  38. package/cjs/ui.d.ts +3 -3
  39. package/cjs/ui.js +5 -5
  40. package/cjs/vue.d.ts +6 -319
  41. package/cjs/vue.js +27 -17
  42. package/esm/{BrowserUpload-BE8OVeBC.js → BrowserUpload-BaKFKEBz.js} +1 -1
  43. package/esm/{BrowserUpload-CFtjSpBI.d.ts → BrowserUpload-CdOfuIcV.d.ts} +2 -2
  44. package/{cjs/CalmLensAppClient-DzoSqUgG.d.ts → esm/CalmLensAppClient-Btp8f-34.d.ts} +2 -2
  45. package/esm/{CalmLensAppClient-C1cpQEYR.js → CalmLensAppClient-DM6c3pGC.js} +3 -3
  46. package/esm/{CalmLensOptionKeys-DoCKKuLT.js → CalmLensOptionKeys-CKZs8i3_.js} +1 -1
  47. package/esm/{CalmLensServerClient-D3K5HS9v.d.ts → CalmLensServerClient-C3kaPLUZ.d.ts} +2 -2
  48. package/esm/{CalmLensServerClient-CSCrJ7wX.js → CalmLensServerClient-Da2UfUo4.js} +3 -3
  49. package/esm/{CalmLensTypes-OWZsGvBX.d.ts → CalmLensTypes-DxxyZt2L.d.ts} +73 -5
  50. package/{cjs/Core-BXeXyiNv.d.ts → esm/Core-Dhijt6JU.d.ts} +13 -14
  51. package/esm/{Core-Df2PSa1n.js → Core-kYMRW5C1.js} +52 -22
  52. package/esm/{CryptoUtils-B_x8lMIx-DhuWGzqn.js → CryptoUtils-BLCa-oZe-DKr3LmN6.js} +1 -2
  53. package/esm/{ModerationContextLimits-tu_PY4fn.js → ModerationContextLimits-ZIlK9n2X.js} +21 -3
  54. package/esm/{ReactUpload-C47UrgH2.d.ts → ReactUpload-BuqLPgNr.d.ts} +1 -1
  55. package/esm/{ReactUpload-BsbisXS6.js → ReactUpload-CipY3cmO.js} +1 -1
  56. package/esm/{TestTriggers-Cvi7e2KA-BA83CRJb.js → TestTriggers-DP4m92jg-DhOI4S1V.js} +11 -11
  57. package/esm/{UploadController-Dqjf23bS.js → UploadController-D-14HWII.js} +2 -2
  58. package/{cjs/WebhookPayload-CrMU6lg0.d.ts → esm/WebhookPayload-D_yWJA9M.d.ts} +5 -1
  59. package/esm/app.d.ts +4 -4
  60. package/esm/app.js +2 -2
  61. package/esm/elements.d.ts +8 -19
  62. package/esm/elements.js +44 -50
  63. package/esm/{index-BDxmVi-G.d.ts → index-CUA-HDNu.d.ts} +2 -2
  64. package/esm/index.d.ts +3 -3
  65. package/esm/index.js +1 -1
  66. package/esm/react-native.d.ts +3 -3
  67. package/esm/react-native.js +5 -5
  68. package/esm/react.d.ts +5 -11
  69. package/esm/react.js +29 -34
  70. package/esm/server.d.ts +4 -4
  71. package/esm/server.js +2 -2
  72. package/esm/styles.css +12 -16
  73. package/esm/svelte/CalmLensAsset.svelte +22 -4
  74. package/esm/svelte/index.d.ts +0 -6
  75. package/esm/svelte/index.js +0 -2
  76. package/esm/test-inputs.js +1 -1
  77. package/esm/testing.d.ts +4 -4
  78. package/esm/testing.js +45 -23
  79. package/esm/{ui-5IdEYYpC.d.ts → ui-BSm_qphN.d.ts} +3 -9
  80. package/esm/{ui-DF7-9mB3.js → ui-CgIG3knW.js} +3 -190
  81. package/esm/ui.d.ts +3 -3
  82. package/esm/ui.js +4 -4
  83. package/esm/vue.d.ts +6 -319
  84. package/esm/vue.js +26 -14
  85. package/package.json +1 -1
  86. package/esm/svelte/CalmLensImageViewer.svelte +0 -7
  87. package/esm/svelte/CalmLensWebsiteViewer.svelte +0 -7
@@ -5017,11 +5017,11 @@ declare const ASSET_CLASSIFICATION_SCHEMA: zod.ZodObject<{
5017
5017
  "processing-error": "processing-error";
5018
5018
  "resolution-limit": "resolution-limit";
5019
5019
  "too-many-items": "too-many-items";
5020
- "website-unavailable": "website-unavailable";
5021
5020
  "type-mismatch": "type-mismatch";
5022
5021
  "undecodable-content": "undecodable-content";
5023
5022
  "unsupported-format": "unsupported-format";
5024
5023
  "uploads-paused": "uploads-paused";
5024
+ "website-unavailable": "website-unavailable";
5025
5025
  }>>;
5026
5026
  updatedAt: zod.ZodNullable<zod.ZodNumber>;
5027
5027
  completedAt: zod.ZodNullable<zod.ZodNumber>;
@@ -10140,11 +10140,11 @@ declare const ASSET_SCHEMA: zod.ZodObject<{
10140
10140
  "processing-error": "processing-error";
10141
10141
  "resolution-limit": "resolution-limit";
10142
10142
  "too-many-items": "too-many-items";
10143
- "website-unavailable": "website-unavailable";
10144
10143
  "type-mismatch": "type-mismatch";
10145
10144
  "undecodable-content": "undecodable-content";
10146
10145
  "unsupported-format": "unsupported-format";
10147
10146
  "uploads-paused": "uploads-paused";
10147
+ "website-unavailable": "website-unavailable";
10148
10148
  }>>;
10149
10149
  updatedAt: zod.ZodNullable<zod.ZodNumber>;
10150
10150
  completedAt: zod.ZodNullable<zod.ZodNumber>;
@@ -15396,11 +15396,11 @@ declare const ASSET_SEARCH_RESULT_SCHEMA: zod.ZodObject<{
15396
15396
  "processing-error": "processing-error";
15397
15397
  "resolution-limit": "resolution-limit";
15398
15398
  "too-many-items": "too-many-items";
15399
- "website-unavailable": "website-unavailable";
15400
15399
  "type-mismatch": "type-mismatch";
15401
15400
  "undecodable-content": "undecodable-content";
15402
15401
  "unsupported-format": "unsupported-format";
15403
15402
  "uploads-paused": "uploads-paused";
15403
+ "website-unavailable": "website-unavailable";
15404
15404
  }>>;
15405
15405
  updatedAt: zod.ZodNullable<zod.ZodNumber>;
15406
15406
  completedAt: zod.ZodNullable<zod.ZodNumber>;
@@ -36368,11 +36368,11 @@ declare const EVENT_TYPE_INFO: {
36368
36368
  "processing-error": "processing-error";
36369
36369
  "resolution-limit": "resolution-limit";
36370
36370
  "too-many-items": "too-many-items";
36371
- "website-unavailable": "website-unavailable";
36372
36371
  "type-mismatch": "type-mismatch";
36373
36372
  "undecodable-content": "undecodable-content";
36374
36373
  "unsupported-format": "unsupported-format";
36375
36374
  "uploads-paused": "uploads-paused";
36375
+ "website-unavailable": "website-unavailable";
36376
36376
  }>>;
36377
36377
  };
36378
36378
  /** Example data, used for synthetic test sends (`createSampleEvent`). */
@@ -36431,11 +36431,11 @@ declare const EVENT_TYPE_INFO: {
36431
36431
  "processing-error": "processing-error";
36432
36432
  "resolution-limit": "resolution-limit";
36433
36433
  "too-many-items": "too-many-items";
36434
- "website-unavailable": "website-unavailable";
36435
36434
  "type-mismatch": "type-mismatch";
36436
36435
  "undecodable-content": "undecodable-content";
36437
36436
  "unsupported-format": "unsupported-format";
36438
36437
  "uploads-paused": "uploads-paused";
36438
+ "website-unavailable": "website-unavailable";
36439
36439
  }>;
36440
36440
  }, zod.core.$strip>;
36441
36441
  };
@@ -36511,6 +36511,72 @@ declare const EVENT_TYPE_INFO: {
36511
36511
  totalSections: zod.ZodNumber;
36512
36512
  }, zod.core.$strip>;
36513
36513
  };
36514
+ readonly "asset.media-ready": {
36515
+ id: "asset.media-ready";
36516
+ name: string;
36517
+ description: string;
36518
+ category: EventCategory;
36519
+ severity: EventSeverity;
36520
+ /** Whether the in-app connector (notification bell) subscribes to the type by default. */
36521
+ notify: boolean;
36522
+ /**
36523
+ * The project-wide permission needed to see events of this type (portal feed, public events
36524
+ * feed) and to subscribe a connector to it.
36525
+ */
36526
+ permission: PermissionAction;
36527
+ /** Types of unreleased features are left out of the published contract until enabled. */
36528
+ enabled?: boolean;
36529
+ fields: {
36530
+ assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36531
+ assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
36532
+ audio: "audio";
36533
+ file: "file";
36534
+ image: "image";
36535
+ "multimedia-document": "multimedia-document";
36536
+ "plaintext-document": "plaintext-document";
36537
+ video: "video";
36538
+ website: "website";
36539
+ }>>>>;
36540
+ };
36541
+ /** Example data, used for synthetic test sends (`createSampleEvent`). */
36542
+ example: NoInfer<{
36543
+ assetName?: string | null | undefined;
36544
+ assetType?: "audio" | "file" | "image" | "multimedia-document" | "plaintext-document" | "video" | "website" | null | undefined;
36545
+ }>;
36546
+ factInfo: {
36547
+ label: string;
36548
+ description: string;
36549
+ display: EventFieldDisplay;
36550
+ /** Kept in the data but left out of rendered messages (usually an ID shown by another field). */
36551
+ hidden?: boolean;
36552
+ /**
36553
+ * Personal or account-level data that stays in the portal. Webhook, Slack and email deliveries,
36554
+ * and the public events feed, leave the fact out and word the title and description without it.
36555
+ */
36556
+ inAppOnly?: boolean;
36557
+ /**
36558
+ * A person's name: `actor` names the event's `actor`, `member` the member in the `member-user-id`
36559
+ * fact. Deleting their account removes it from the events that name them.
36560
+ */
36561
+ names?: "actor" | "member";
36562
+ /** Display names for `enum` and `list` values that don't read well humanized. */
36563
+ valueLabels?: Readonly<Record<string, string>>;
36564
+ schema: zod.ZodType<unknown, unknown, zod.core.$ZodTypeInternals<unknown, unknown>>;
36565
+ key: string;
36566
+ }[];
36567
+ values: zod.ZodObject<{
36568
+ assetName: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
36569
+ assetType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
36570
+ audio: "audio";
36571
+ file: "file";
36572
+ image: "image";
36573
+ "multimedia-document": "multimedia-document";
36574
+ "plaintext-document": "plaintext-document";
36575
+ video: "video";
36576
+ website: "website";
36577
+ }>>>;
36578
+ }, zod.core.$strip>;
36579
+ };
36514
36580
  readonly "asset.deleted": {
36515
36581
  id: "asset.deleted";
36516
36582
  name: string;
@@ -38176,6 +38242,7 @@ declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
38176
38242
  "asset.hash-matched": "asset.hash-matched";
38177
38243
  "asset.limited": "asset.limited";
38178
38244
  "asset.link-flagged": "asset.link-flagged";
38245
+ "asset.media-ready": "asset.media-ready";
38179
38246
  "asset.progress-updated": "asset.progress-updated";
38180
38247
  "asset.purged": "asset.purged";
38181
38248
  "asset.region-restricted": "asset.region-restricted";
@@ -42376,6 +42443,7 @@ declare const GET_EVENTS_QUERY_SCHEMA: zod.ZodObject<{
42376
42443
  "asset.hash-matched": "asset.hash-matched";
42377
42444
  "asset.limited": "asset.limited";
42378
42445
  "asset.link-flagged": "asset.link-flagged";
42446
+ "asset.media-ready": "asset.media-ready";
42379
42447
  "asset.progress-updated": "asset.progress-updated";
42380
42448
  "asset.purged": "asset.purged";
42381
42449
  "asset.region-restricted": "asset.region-restricted";
@@ -1,5 +1,5 @@
1
- import { F as CdnTransform, O as CalmLensAppClientOptions, en as ViewerClaims, g as AssetModerationStatus, i as AssetAvailability } from "./CalmLensTypes-OWZsGvBX.js";
2
- import { t as CalmLensAppClient } from "./CalmLensAppClient-DzoSqUgG.js";
1
+ import { F as CdnTransform, O as CalmLensAppClientOptions, en as ViewerClaims, g as AssetModerationStatus, i as AssetAvailability } from "./CalmLensTypes-DxxyZt2L.js";
2
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-Btp8f-34.js";
3
3
  import { o as UploadFileIconFamily } from "./FileIcons-4qSX7DW2.js";
4
4
  /**
5
5
  * The text the asset viewers show, keyed by name. `{name}` placeholders are filled in when shown.
@@ -7,12 +7,6 @@ import { o as UploadFileIconFamily } from "./FileIcons-4qSX7DW2.js";
7
7
  */
8
8
  interface ViewerMessages {
9
9
  loading: string;
10
- /** An image that can't be loaded. */
11
- imageFailed: string;
12
- /** The website viewer's link to the original page; `{host}` is the page's host name. */
13
- openWebsite: string;
14
- /** The website screenshot's accessible name when no `label` is set. */
15
- websiteLabel: string;
16
10
  textLabel: string;
17
11
  textFailed: string;
18
12
  documentLabel: string;
@@ -151,11 +145,6 @@ interface ViewerTextOptions {
151
145
  */
152
146
  getText?: () => Promise<string>;
153
147
  }
154
- interface ImageViewerOptions extends ViewerOptions {
155
- /** The `sizes` attribute of a public image's responsive widths. Defaults to `100vw`. */
156
- sizes?: string;
157
- }
158
- type WebsiteViewerOptions = ViewerOptions;
159
148
  type TextViewerOptions = ViewerOptions & ViewerTextOptions;
160
149
  interface SpreadsheetViewerOptions extends ViewerOptions, ViewerTextOptions {
161
150
  /** Rows shown at a time. Defaults to 100. */
@@ -364,6 +353,16 @@ declare const getPlayedPercent: (media: {
364
353
  currentTime: number;
365
354
  duration: number;
366
355
  }) => number;
356
+ /**
357
+ * How soon after an image element mounts an `onload` still counts as a browser cache hit (such as
358
+ * the HTTP disk cache, where `complete` is false on mount) and appears immediately without fading.
359
+ */
360
+ declare const INSTANT_LOAD_MS = 50;
361
+ /** True when an image element is already decoded in the browser's memory cache. */
362
+ declare const isImageReady: (image: {
363
+ complete: boolean;
364
+ naturalWidth: number;
365
+ } | null | undefined) => boolean;
367
366
  /** Where a video or audio element was when its URL failed, to resume once a fresh one loads. */
368
367
  interface MediaPlayback {
369
368
  position: number;
@@ -831,4 +830,4 @@ declare const CALMLENS_THEME: {
831
830
  * as the stylesheet mixes them from the page's text colour.
832
831
  */
833
832
  declare const resolveTheme: (overrides?: Partial<CalmLensTheme>) => CalmLensTheme;
834
- export { getAssetAspectRatio as $, CustomUploadContext as A, isFileAccepted as B, formatMessage as C, resolveMessages as D, getUploadItemOutcome as E, UploadFile as F, AssetImageSource as G, AssetDisplay as H, UploadItem as I, AssetSessionState as J, AssetOptions as K, UploadSnapshot as L, UploadClient as M, UploadController as N, CalmLensProvidedOptions as O, UploadControllerOptions as P, MediaPlayback as Q, UploadStage as R, formatBytes as S, getUploadItemMessage as T, AssetDocumentOptions as U, withProvidedOptions as V, AssetImageOptions as W, AssetVideoOptions as X, AssetSpreadsheetOptions as Y, AssetView as Z, DEFAULT_MESSAGES as _, DEFAULT_VIEWER_MESSAGES as _t, ProgressFetchOptions as a, AssetViewerKind as at, describeUploadItem as b, resolveViewerMessages as bt, ICON_ATTRIBUTES as c, PdfAssetOptions as ct, AssetDisplayOptions as d, ViewerAsset as dt, getAssetView as et, AssetEventHandlers as f, ViewerOptions as ft, CalmLensMessages as g, isSpreadsheetFormat as gt, UploaderProps as h, getAssetViewerKind as ht, CALMLENS_STYLES as i, pickAssetSource as it, CustomUploadResult as j, CalmLensUpload as k, IconName as l, SpreadsheetViewerOptions as lt, UploaderDisplayOptions as m, WebsiteViewerOptions as mt, CalmLensTheme as n, getPeakHeights as nt, createProgressFetch as o, DocumentViewerOptions as ot, AssetProps as p, ViewerTextOptions as pt, AssetSession as q, resolveTheme as r, getPlayedPercent as rt, ICONS as s, ImageViewerOptions as st, CALMLENS_THEME as t, getAssetViewKey as tt, ASSET_FILE_ICON_SIZE as u, TextViewerOptions as ut, UploadItemView as v, ViewerMessages as vt, getDropzoneHint as w, describeUploader as x, UploaderView as y, formatViewerMessage as yt, createUploadController as z };
833
+ export { MediaPlayback as $, CustomUploadContext as A, isFileAccepted as B, formatMessage as C, resolveMessages as D, getUploadItemOutcome as E, UploadFile as F, AssetImageSource as G, AssetDisplay as H, UploadItem as I, AssetSessionState as J, AssetOptions as K, UploadSnapshot as L, UploadClient as M, UploadController as N, CalmLensProvidedOptions as O, UploadControllerOptions as P, INSTANT_LOAD_MS as Q, UploadStage as R, formatBytes as S, getUploadItemMessage as T, AssetDocumentOptions as U, withProvidedOptions as V, AssetImageOptions as W, AssetVideoOptions as X, AssetSpreadsheetOptions as Y, AssetView as Z, DEFAULT_MESSAGES as _, DEFAULT_VIEWER_MESSAGES as _t, ProgressFetchOptions as a, isImageReady as at, describeUploadItem as b, resolveViewerMessages as bt, ICON_ATTRIBUTES as c, DocumentViewerOptions as ct, AssetDisplayOptions as d, TextViewerOptions as dt, getAssetAspectRatio as et, AssetEventHandlers as f, ViewerAsset as ft, CalmLensMessages as g, isSpreadsheetFormat as gt, UploaderProps as h, getAssetViewerKind as ht, CALMLENS_STYLES as i, getPlayedPercent as it, CustomUploadResult as j, CalmLensUpload as k, IconName as l, PdfAssetOptions as lt, UploaderDisplayOptions as m, ViewerTextOptions as mt, CalmLensTheme as n, getAssetViewKey as nt, createProgressFetch as o, pickAssetSource as ot, AssetProps as p, ViewerOptions as pt, AssetSession as q, resolveTheme as r, getPeakHeights as rt, ICONS as s, AssetViewerKind as st, CALMLENS_THEME as t, getAssetView as tt, ASSET_FILE_ICON_SIZE as u, SpreadsheetViewerOptions as ut, UploadItemView as v, ViewerMessages as vt, getDropzoneHint as w, describeUploader as x, UploaderView as y, formatViewerMessage as yt, createUploadController as z };
@@ -1,5 +1,5 @@
1
- import { Y as CalmLensError, a as appendAssetLocation, c as toUrlViewerClaims, s as getAssetInfo, v as serializeTransform, x as transformSelector } from "./ModerationContextLimits-tu_PY4fn.js";
2
- import { o as placeholderHashToDataURL } from "./UploadController-Dqjf23bS.js";
1
+ import { Y as CalmLensError, a as appendAssetLocation, c as toUrlViewerClaims, s as getAssetInfo, v as serializeTransform, x as transformSelector } from "./ModerationContextLimits-ZIlK9n2X.js";
2
+ import { o as placeholderHashToDataURL } from "./UploadController-D-14HWII.js";
3
3
  import { a as getFileIcon, c as renderFileIconSvg } from "./FileIcons-M6dzjFxd.js";
4
4
  // src/ui/viewers/ViewerAsset.ts
5
5
  /** Spreadsheet MIME types, as `content.format` reports them (compared lower-cased). */
@@ -89,7 +89,7 @@ const VIEWER_STYLES = `
89
89
  /* An opaque surface of its own, so sticky headers and the toolbar cover what scrolls under them. */
90
90
  background: var(--calmlens-viewer-background, Canvas); color: var(--calmlens-viewer-text, CanvasText);
91
91
  }
92
- .calmlens-viewer:is([data-kind="text"], [data-kind="document"], [data-kind="spreadsheet"], [data-kind="website"]) > .calmlens-viewer__frame { min-height: 320px; }
92
+ .calmlens-viewer:is([data-kind="text"], [data-kind="document"], [data-kind="spreadsheet"]) > .calmlens-viewer__frame { min-height: 320px; }
93
93
  .calmlens-viewer :focus-visible {
94
94
  outline: 2px solid var(--calmlens-focus-ring); outline-offset: -2px;
95
95
  }
@@ -110,18 +110,6 @@ const VIEWER_STYLES = `
110
110
  .calmlens-viewer__spacer { flex: 1; }
111
111
  .calmlens-viewer__link { text-decoration: none; overflow-wrap: anywhere; }
112
112
  .calmlens-viewer__scroll { flex: 1; min-height: 0; overflow: auto; position: relative; }
113
- /* Images fit inside the frame, keeping their shape; without a frame height, the box takes it. */
114
- .calmlens-viewer[data-kind="image"] > .calmlens-viewer__frame { aspect-ratio: var(--calmlens-viewer-ratio, auto); max-height: 100%; }
115
- .calmlens-viewer[data-kind="image"] > .calmlens-viewer__frame > img {
116
- position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
117
- }
118
- .calmlens-viewer:not([data-kind="image"]) .calmlens-viewer__placeholder {
119
- position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
120
- }
121
- .calmlens-viewer__placeholder { filter: blur(12px); transform: scale(1.05); }
122
- .calmlens-viewer__image { opacity: 0; transition: opacity 250ms; }
123
- .calmlens-viewer[data-state="loaded"] .calmlens-viewer__image { opacity: 1; }
124
- .calmlens-viewer[data-kind="website"] .calmlens-viewer__image { position: relative; display: block; width: 100%; height: auto; }
125
113
  .calmlens-viewer__text {
126
114
  margin: 0 auto; padding: 20px 24px; max-width: 75ch; white-space: pre-wrap; overflow-wrap: anywhere;
127
115
  font-family: inherit; font-size: 1rem; line-height: 1.6;
@@ -178,6 +166,20 @@ const decodePlaceholderHash = (hash) => {
178
166
  }
179
167
  return decodedPlaceholders.get(hash);
180
168
  };
169
+ /** Default responsive widths offered for full rendered images, up to 2560px. */
170
+ const DEFAULT_IMAGE_WIDTHS = [
171
+ 320,
172
+ 640,
173
+ 960,
174
+ 1280,
175
+ 1920,
176
+ 2560
177
+ ];
178
+ const hasExplicitSize = (transform) => {
179
+ if (!transform) return false;
180
+ if (typeof transform === "string") return /(?:^|,)\s*(?:width|height)=/i.test(transform);
181
+ return transform.width !== void 0 || transform.height !== void 0;
182
+ };
181
183
  const withWidth = (base, width) => {
182
184
  if (width === void 0) return base;
183
185
  if (base === void 0 || typeof base !== "string") return {
@@ -255,17 +257,30 @@ const getAssetView = (options, state) => {
255
257
  };
256
258
  const image = options.image ?? {};
257
259
  const still = (resource, size) => {
258
- const widths = [...new Set(image.widths ?? [])].filter((width) => Number.isSafeInteger(width) && width > 0).sort((a, b) => a - b);
259
260
  const build = (width) => url(resource, {
260
261
  lens: image.lens,
261
262
  transform: withWidth(image.transform, width)
262
263
  });
263
- const sources = widths.map((width) => ({
264
+ const explicitWidths = image.widths !== void 0;
265
+ let sources;
266
+ if (explicitWidths) sources = [...new Set(image.widths ?? [])].filter((width) => Number.isSafeInteger(width) && width > 0).sort((a, b) => a - b).map((width) => ({
264
267
  src: build(width),
265
268
  width
266
269
  }));
270
+ else if (resource === "rendered" && !image.lens && !hasExplicitSize(image.transform)) {
271
+ const maxWidth = size?.width ?? void 0;
272
+ const candidates = DEFAULT_IMAGE_WIDTHS.filter((width) => !maxWidth || width < maxWidth);
273
+ sources = candidates.map((width) => ({
274
+ src: build(width),
275
+ width
276
+ }));
277
+ if (maxWidth && candidates.length > 0 && maxWidth <= DEFAULT_IMAGE_WIDTHS.at(-1)) sources.push({
278
+ src: build(),
279
+ width: maxWidth
280
+ });
281
+ } else sources = [];
267
282
  return {
268
- src: sources.at(-1)?.src ?? build(),
283
+ src: explicitWidths ? sources.at(-1)?.src ?? build() : build(),
269
284
  srcSet: sources.length ? sources.map(({ src: source, width }) => `${source} ${width}w`).join(", ") : void 0,
270
285
  sources: sources.length ? sources : void 0,
271
286
  width: size?.width ?? void 0,
@@ -363,6 +378,13 @@ const pickAssetSource = (view, displayWidth) => {
363
378
  const getPeakHeights = (peaks) => peaks.map((peak) => Math.round(Math.min(1, Math.max(.02, peak)) * 1e3) / 10);
364
379
  /** How much of a media element has played, in percent, to one decimal place. */
365
380
  const getPlayedPercent = (media) => Number.isFinite(media.duration) && media.duration > 0 ? Math.round(Math.min(1, Math.max(0, media.currentTime / media.duration)) * 1e3) / 10 : 0;
381
+ /**
382
+ * How soon after an image element mounts an `onload` still counts as a browser cache hit (such as
383
+ * the HTTP disk cache, where `complete` is false on mount) and appears immediately without fading.
384
+ */
385
+ const INSTANT_LOAD_MS = 50;
386
+ /** True when an image element is already decoded in the browser's memory cache. */
387
+ const isImageReady = (image) => Boolean(image?.complete && image.naturalWidth > 0);
366
388
  const codeOf = (error) => CalmLensError.isCalmLensError(error) ? error.code : void 0;
367
389
  /**
368
390
  * One `CalmLensAsset`'s connection to the CDN. Each render calls `update` with the options and
@@ -793,7 +815,7 @@ const CALMLENS_STYLES = `
793
815
  }
794
816
  .calmlens-icon-button:hover { background: color-mix(in srgb, var(--calmlens-accent) 8%, transparent); border-color: var(--calmlens-border); }
795
817
  @media (prefers-reduced-motion: reduce) {
796
- .calmlens-dropzone, .calmlens-dropzone__icon, .calmlens-asset__content { transition: none; }
818
+ .calmlens-dropzone, .calmlens-dropzone__icon { transition: none; }
797
819
  .calmlens-progress:indeterminate {
798
820
  --calmlens-progress-animation: calmlens-indeterminate-still 1s both;
799
821
  }
@@ -812,9 +834,17 @@ const CALMLENS_STYLES = `
812
834
  .calmlens-asset:not([data-sized]) .calmlens-asset__content { position: relative; height: auto; }
813
835
  .calmlens-asset:not([data-sized])[data-kind="age-restricted"], .calmlens-asset:not([data-sized])[data-kind="unavailable"],
814
836
  .calmlens-asset:not([data-sized])[data-state="error"] { min-height: 160px; }
815
- .calmlens-asset__placeholder { transform: scale(1.1); filter: blur(12px); }
816
- .calmlens-asset__content { opacity: 0; transition: opacity 250ms; }
837
+ .calmlens-asset__placeholder { transform: scale(1.1); filter: blur(12px); opacity: 1; pointer-events: none; }
838
+ .calmlens-asset__content { opacity: 0; }
817
839
  .calmlens-asset[data-state="loaded"] .calmlens-asset__content { opacity: 1; }
840
+ .calmlens-asset[data-state="loaded"]:not([data-kind="age-restricted"]) .calmlens-asset__placeholder { opacity: 0; visibility: hidden; }
841
+ @media (prefers-reduced-motion: no-preference) {
842
+ .calmlens-asset[data-state="loaded"]:not([data-instant]) { transition: background-color 250ms; }
843
+ .calmlens-asset[data-state="loaded"]:not([data-instant]) .calmlens-asset__content { transition: opacity 250ms; }
844
+ .calmlens-asset[data-state="loaded"]:not([data-kind="age-restricted"], [data-instant]) .calmlens-asset__placeholder {
845
+ transition: opacity 250ms, visibility 0s linear 250ms;
846
+ }
847
+ }
818
848
  .calmlens-asset[data-kind="video"] .calmlens-asset__content, .calmlens-asset[data-kind="audio"] .calmlens-asset__content { opacity: 1; }
819
849
  /* Documents, text and spreadsheets fill the box with their viewer; a document shows its first
820
850
  page's still and an open link until the viewer loads. */
@@ -866,4 +896,4 @@ const CALMLENS_STYLES = `
866
896
  ${VIEWER_STYLES}`;
867
897
  /** Identifies the stylesheet, so React adds it once however many components render. */
868
898
  const CALMLENS_STYLES_ID = "calmlens-styles";
869
- export { CALMLENS_THEME as C, isSpreadsheetFormat as E, VIEWER_STYLES as S, getAssetViewerKind as T, getAssetView as _, describeUploadItem as a, getPlayedPercent as b, formatMessage as c, getUploadItemOutcome as d, resolveMessages as f, getAssetAspectRatio as g, AssetSession as h, DEFAULT_MESSAGES as i, getDropzoneHint as l, ICON_ATTRIBUTES as m, CALMLENS_STYLES_ID as n, describeUploader as o, ICONS as p, ASSET_FILE_ICON_SIZE as r, formatBytes as s, CALMLENS_STYLES as t, getUploadItemMessage as u, getAssetViewKey as v, resolveTheme as w, pickAssetSource as x, getPeakHeights as y };
899
+ export { pickAssetSource as C, getAssetViewerKind as D, resolveTheme as E, isSpreadsheetFormat as O, isImageReady as S, CALMLENS_THEME as T, getAssetAspectRatio as _, describeUploadItem as a, getPeakHeights as b, formatMessage as c, getUploadItemOutcome as d, resolveMessages as f, INSTANT_LOAD_MS as g, AssetSession as h, DEFAULT_MESSAGES as i, getDropzoneHint as l, ICON_ATTRIBUTES as m, CALMLENS_STYLES_ID as n, describeUploader as o, ICONS as p, ASSET_FILE_ICON_SIZE as r, formatBytes as s, CALMLENS_STYLES as t, getUploadItemMessage as u, getAssetView as v, VIEWER_STYLES as w, getPlayedPercent as x, getAssetViewKey as y };
@@ -1,8 +1,7 @@
1
- // src/contract/CryptoUtils-B_x8lMIx.js
1
+ // src/contract/CryptoUtils-BLCa-oZe.js
2
2
  const encoder = new TextEncoder();
3
3
  /** Lowercase hex of `bytes`, two characters per byte. */
4
4
  const bytesToHex = (bytes) => Array.from(bytes instanceof Uint8Array ? bytes : new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
5
- /** SHA-256 of the UTF-8 encoding of `value`, as lowercase hex. */
6
5
  const sha256Hex = async (value) => bytesToHex(await crypto.subtle.digest("SHA-256", encoder.encode(value)));
7
6
  /** HMAC-SHA256 of `message` keyed with `secret` (both UTF-8 encoded), as lowercase hex. */
8
7
  const hmacSha256Hex = async (secret, message) => {
@@ -40,6 +40,7 @@ const API_ERROR_CODES = {
40
40
  INVALID_IMAGE: "image/invalid",
41
41
  IMAGE_TOO_LARGE: "image/too-large",
42
42
  FREE_UPLOADS_EXHAUSTED: "usage/free-uploads-exhausted",
43
+ WEBSITE_BILLING_REQUIRED: "payment/billing-required",
43
44
  UPLOADS_PAUSED: "usage/uploads-paused",
44
45
  UNSUPPORTED_UPLOAD_TYPE: "upload/unsupported-type",
45
46
  INVALID_UPLOAD_PAYLOAD: "upload-payload/invalid",
@@ -79,6 +80,7 @@ const API_ERROR_CODES = {
79
80
  HASH_LIST_ENTRY_NOT_FOUND: "hash-list-entry/not-found",
80
81
  HASH_LIST_LIMIT_REACHED: "hash-list/limit-reached",
81
82
  HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list-entry/limit-reached",
83
+ HASH_LIST_ENTRY_QUALITY_TOO_LOW: "hash-list-entry/quality-too-low",
82
84
  HASH_LIST_ASSET_NOT_HASHED: "hash-list/asset-not-hashed",
83
85
  POLICY_NOT_FOUND: "policy/not-found",
84
86
  POLICY_REVISION_CONFLICT: "policy/revision-conflict",
@@ -277,6 +279,10 @@ const API_ERROR_DEFINITIONS = {
277
279
  status: 403,
278
280
  message: "This project's organisation has used its free uploads. Set up billing to continue uploading."
279
281
  },
282
+ "payment/billing-required": {
283
+ status: 409,
284
+ message: "Set up billing to upload websites."
285
+ },
280
286
  "usage/uploads-paused": {
281
287
  status: 402,
282
288
  message: "This upload would pass its organisation's usage limits, so it was refused. See details.reason; an owner can review them in Billing."
@@ -433,6 +439,10 @@ const API_ERROR_DEFINITIONS = {
433
439
  status: 409,
434
440
  message: "This project's hash lists hold the most entries they can. Remove entries to add more."
435
441
  },
442
+ "hash-list-entry/quality-too-low": {
443
+ status: 422,
444
+ message: "This hash cannot be matched. Use a more detailed image or a hash of higher quality."
445
+ },
436
446
  "hash-list/asset-not-hashed": {
437
447
  status: 409,
438
448
  message: "This asset has no perceptual hash. Only image assets that finished processing can be added."
@@ -1052,7 +1062,7 @@ const listPages = (fetchPage, { cursor, feed = false } = {}) => {
1052
1062
  };
1053
1063
  // src/client/CalmLensVersion.ts
1054
1064
  /** This SDK's version, from its package.json. */
1055
- const SDK_VERSION = "0.27.4";
1065
+ const SDK_VERSION = "0.27.6";
1056
1066
  const runtimeName = () => {
1057
1067
  const runtime = globalThis;
1058
1068
  if (isReactNativeRuntime()) return "react-native";
@@ -1432,7 +1442,7 @@ var CalmLensTransport = class {
1432
1442
  }
1433
1443
  }
1434
1444
  };
1435
- // src/contract/SharedConstants-DxUCZwLZ.js
1445
+ // src/contract/SharedConstants-D-QkbICw.js
1436
1446
  const IMPERSONATION_COOKIE_NAME = "CL_impersonation";
1437
1447
  const DAY_MS = 864e5;
1438
1448
  const YEAR_MS = 365 * DAY_MS;
@@ -1545,7 +1555,7 @@ const FIRST_PARTY_COOKIES = {
1545
1555
  },
1546
1556
  ASSET_DASHBOARD_STATE: {
1547
1557
  name: "CL_assetDashboardState",
1548
- description: "Remembers your asset dashboard view (view mode, filters, sorting and folder)",
1558
+ description: "Remembers your asset dashboard view (view mode and metadata grouping)",
1549
1559
  expirationDescription: "1 year",
1550
1560
  expirationMs: YEAR_MS,
1551
1561
  type: "functional",
@@ -1593,6 +1603,14 @@ const FIRST_PARTY_COOKIES = {
1593
1603
  type: "functional",
1594
1604
  providerName: "CalmLens"
1595
1605
  },
1606
+ CHATGPT_AD_CLICK: {
1607
+ name: "CL_chatgptAdClick",
1608
+ description: "Links a ChatGPT ad click to signups, moderation checks and credit checkouts",
1609
+ expirationDescription: "30 days",
1610
+ expirationMs: 30 * DAY_MS,
1611
+ type: "marketing",
1612
+ providerName: "CalmLens"
1613
+ },
1596
1614
  SEARCH_SDK_LANGUAGE: {
1597
1615
  name: "CL_searchSdkLanguage",
1598
1616
  description: "Remembers the SDK you chose to filter documentation search results by",
@@ -1,4 +1,4 @@
1
- import { F as UploadFile, L as UploadSnapshot, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions } from "./Core-BXeXyiNv.js";
1
+ import { F as UploadFile, L as UploadSnapshot, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions } from "./Core-Dhijt6JU.js";
2
2
  import { ReactNode } from "react";
3
3
  type CalmLensProviderProps<F extends UploadFile = File> = CalmLensProvidedOptions<F> & {
4
4
  children?: ReactNode;
@@ -1,4 +1,4 @@
1
- import { i as withProvidedOptions, n as createUploadController } from "./UploadController-Dqjf23bS.js";
1
+ import { i as withProvidedOptions, n as createUploadController } from "./UploadController-D-14HWII.js";
2
2
  import { createContext, createElement, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
3
3
  // src/ui/ReactUpload.ts
4
4
  const CalmLensContext = createContext(void 0);
@@ -1,4 +1,4 @@
1
- import { r as timingSafeEqual, t as hmacSha256Hex } from "./CryptoUtils-B_x8lMIx-DhuWGzqn.js";
1
+ import { r as timingSafeEqual, t as hmacSha256Hex } from "./CryptoUtils-BLCa-oZe-DKr3LmN6.js";
2
2
  import * as z from "zod";
3
3
  import { globalRegistry } from "zod";
4
4
  // src/contract/ModerationCategories-CHFRoeWV.js
@@ -12,7 +12,7 @@ const CLASSIFICATION_CATEGORIES = [
12
12
  "personal-information",
13
13
  "profanity"
14
14
  ];
15
- // src/contract/LazySchema-D_3-dV1e.js
15
+ // src/contract/LazySchema-BKMpWIaF.js
16
16
  const registryMap = globalRegistry._map;
17
17
  /**
18
18
  * A schema built the first time anything reads it, rather than when its module loads. Building
@@ -34,9 +34,9 @@ const lazySchema = /* @__NO_SIDE_EFFECTS__ */ (build) => {
34
34
  if (!schema) {
35
35
  const built = build();
36
36
  schema = built;
37
+ const internals = built._zod;
37
38
  const meta = registryMap.get(built);
38
39
  if (meta !== void 0) registryMap.set(proxy, meta);
39
- const internals = built._zod;
40
40
  const process = internals.processJSONSchema;
41
41
  if (process) internals.processJSONSchema = (context, json, params) => {
42
42
  const record = context.seen.get(proxy);
@@ -82,7 +82,7 @@ const lazySchema = /* @__NO_SIDE_EFFECTS__ */ (build) => {
82
82
  });
83
83
  return proxy;
84
84
  };
85
- // src/contract/Jurisdiction-CQN8qnzX.js
85
+ // src/contract/Jurisdiction-uODFGQGo.js
86
86
  /**
87
87
  * Jurisdictions with legal rules always apply to every project. An optional jurisdiction is a
88
88
  * product standard rather than a legal floor: every project serves it unless it opts out.
@@ -134,7 +134,7 @@ Object.keys(JURISDICTIONS).filter((code) => !JURISDICTIONS[code].optional);
134
134
  Object.keys(JURISDICTIONS).filter((code) => JURISDICTIONS[code].optional);
135
135
  new Set("AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "));
136
136
  new Set("AT BE BG HR CY CZ DK EE FI FR DE GR HU IE IT LV LT LU MT NL PL PT RO SK SI ES SE".split(" "));
137
- // src/contract/TestRegionalActions-BhyWuU49.js
137
+ // src/contract/TestRegionalActions-Ce8EVv4q.js
138
138
  /**
139
139
  * Marks English text in shared, backend and data modules that the portal shows, so the app's
140
140
  * message catalog (packages/app/vite/messageCatalog.ts) extracts it and the portal can translate it
@@ -1165,7 +1165,7 @@ const TEST_REGIONAL_ACTIONS_SCHEMA = /* @__PURE__ */ lazySchema(() => z.array(z.
1165
1165
  "block"
1166
1166
  ])
1167
1167
  }).strict()).max(7).refine((entries) => new Set(entries.map((entry) => entry.region)).size === entries.length, "Choose each region once"));
1168
- // src/contract/TestTriggers-Cvi7e2KA.js
1168
+ // src/contract/TestTriggers-DP4m92jg.js
1169
1169
  /**
1170
1170
  * The visual encoding of test images (shared by images and video frames), independent of what the
1171
1171
  * bytes mean. An odd N×N grid of square cells fills the image. Its outer ring alternates black and
@@ -1625,19 +1625,19 @@ const TEST_FACE_AGE_PRESETS = {
1625
1625
  }
1626
1626
  };
1627
1627
  const TEST_FACE_AGE_MAX = 120;
1628
- const basisPoints = z.number().int().min(0).max(TEST_DETECTION_BOX_MAX);
1628
+ const basisPoints = /* @__PURE__ */ lazySchema(() => z.number().int().min(0).max(TEST_DETECTION_BOX_MAX));
1629
1629
  const detectionShape = {
1630
- box: z.tuple([
1630
+ box: /* @__PURE__ */ lazySchema(() => z.tuple([
1631
1631
  basisPoints,
1632
1632
  basisPoints,
1633
1633
  basisPoints,
1634
1634
  basisPoints
1635
- ]),
1636
- confidence: z.number().int().min(0).max(100).optional()
1635
+ ])),
1636
+ confidence: /* @__PURE__ */ lazySchema(() => z.number().int().min(0).max(100).optional())
1637
1637
  };
1638
1638
  const fitsImage = ({ box: [left, top, width, height] }) => left + width <= 1e4 && top + height <= 1e4;
1639
1639
  const BOX_MESSAGE = msg("A box must lie inside the image: left + width and top + height are at most 10000.");
1640
- const ageYears = z.number().int().min(0).max(120);
1640
+ const ageYears = /* @__PURE__ */ lazySchema(() => z.number().int().min(0).max(120));
1641
1641
  const TEST_DETECTED_PERSON_SCHEMA = /* @__PURE__ */ lazySchema(() => z.object(detectionShape).strict().refine(fitsImage, BOX_MESSAGE));
1642
1642
  const TEST_DETECTED_FACE_SCHEMA = /* @__PURE__ */ lazySchema(() => z.object({
1643
1643
  ...detectionShape,
@@ -1,5 +1,5 @@
1
- import { Y as CalmLensError, ot as SDK_ERROR_CODES } from "./ModerationContextLimits-tu_PY4fn.js";
2
- import { t as CalmLensAppClient } from "./CalmLensAppClient-C1cpQEYR.js";
1
+ import { Y as CalmLensError, ot as SDK_ERROR_CODES } from "./ModerationContextLimits-ZIlK9n2X.js";
2
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-DM6c3pGC.js";
3
3
  // src/contract/PlaceholderHashDecode.js
4
4
  /**
5
5
  * Decodes a ThumbHash to an RGBA image. RGB is not be premultiplied by A.
@@ -1,4 +1,4 @@
1
- import { cn as EventAsset, ln as TypedEvent, sn as Actor } from "./CalmLensTypes-OWZsGvBX.js";
1
+ import { cn as EventAsset, ln as TypedEvent, sn as Actor } from "./CalmLensTypes-DxxyZt2L.js";
2
2
  import * as zod from "zod";
3
3
  /** Error codes the CalmLens API documents, by name. */
4
4
  declare const API_ERROR_CODES: {
@@ -41,6 +41,7 @@ declare const API_ERROR_CODES: {
41
41
  readonly INVALID_IMAGE: "image/invalid";
42
42
  readonly IMAGE_TOO_LARGE: "image/too-large";
43
43
  readonly FREE_UPLOADS_EXHAUSTED: "usage/free-uploads-exhausted";
44
+ readonly WEBSITE_BILLING_REQUIRED: "payment/billing-required";
44
45
  readonly UPLOADS_PAUSED: "usage/uploads-paused";
45
46
  readonly UNSUPPORTED_UPLOAD_TYPE: "upload/unsupported-type";
46
47
  readonly INVALID_UPLOAD_PAYLOAD: "upload-payload/invalid";
@@ -80,6 +81,7 @@ declare const API_ERROR_CODES: {
80
81
  readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list-entry/not-found";
81
82
  readonly HASH_LIST_LIMIT_REACHED: "hash-list/limit-reached";
82
83
  readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list-entry/limit-reached";
84
+ readonly HASH_LIST_ENTRY_QUALITY_TOO_LOW: "hash-list-entry/quality-too-low";
83
85
  readonly HASH_LIST_ASSET_NOT_HASHED: "hash-list/asset-not-hashed";
84
86
  readonly POLICY_NOT_FOUND: "policy/not-found";
85
87
  readonly POLICY_REVISION_CONFLICT: "policy/revision-conflict";
@@ -189,6 +191,7 @@ declare const CALMLENS_ERROR_CODES: {
189
191
  readonly INVALID_IMAGE: "image/invalid";
190
192
  readonly IMAGE_TOO_LARGE: "image/too-large";
191
193
  readonly FREE_UPLOADS_EXHAUSTED: "usage/free-uploads-exhausted";
194
+ readonly WEBSITE_BILLING_REQUIRED: "payment/billing-required";
192
195
  readonly UPLOADS_PAUSED: "usage/uploads-paused";
193
196
  readonly UNSUPPORTED_UPLOAD_TYPE: "upload/unsupported-type";
194
197
  readonly INVALID_UPLOAD_PAYLOAD: "upload-payload/invalid";
@@ -228,6 +231,7 @@ declare const CALMLENS_ERROR_CODES: {
228
231
  readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list-entry/not-found";
229
232
  readonly HASH_LIST_LIMIT_REACHED: "hash-list/limit-reached";
230
233
  readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list-entry/limit-reached";
234
+ readonly HASH_LIST_ENTRY_QUALITY_TOO_LOW: "hash-list-entry/quality-too-low";
231
235
  readonly HASH_LIST_ASSET_NOT_HASHED: "hash-list/asset-not-hashed";
232
236
  readonly POLICY_NOT_FOUND: "policy/not-found";
233
237
  readonly POLICY_REVISION_CONFLICT: "policy/revision-conflict";
package/esm/app.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as ClassificationNotEvaluatedReason, c as ModerationQualifier, d as HashListEntry, f as ModerationContext, g as selectModerationContextItems, h as ModerationContextItem, i as ClassificationCategoryReport, l as PolicyAction, m as MODERATION_CONTEXT_USED_ITEMS, n as ClassificationCategories, o as ClassificationQualifierResults, p as MODERATION_CONTEXT_USED_CHARACTERS, r as ClassificationCategory, s as Likelihood, u as HashList } from "./Classification-CMM2tZpJ-IdIh63n0.js";
2
- import { $ as FolderPage, $t as VerifyWebhookSignatureOptions, A as CdnAssetLocation, An as Policy, At as RetrieveAssetOptions, B as CreateHashListOptions, Bn as AssetRendered, Bt as UpdateAssetOptions, C as AssetUploadStatus, Cn as BoundingBox, Ct as MultipartUploadPartOptions, D as BatchAssetsResponse, Dn as ProcessingFeatureResults, Dt as RequestAttempt, E as BatchAssetsOptions, En as ProcessingFeatureId, Et as RemoveAssetContentOptions, F as CdnTransform, Ft as SignUploadTokenOptions, G as DeleteAssetOptions, Gn as FileMetadata, Gt as UpdateProjectSettingsOptions, H as CreateMultipartUploadPartOptions, Hn as AssetSafetyHold, Ht as UpdateHashListOptions, I as ClassifyTextOptions, In as AssetInfo, It as SignedAssetUrl, J as EnsureLensesOptions, Jt as UploadPresetDefinition, K as DeleteMetadataFieldOptions, Kn as MetadataItem, Kt as UpgradePolicyOptions, L as ClientRequestDefaults, Ln as AssetHls, Lt as SignedUploadToken, M as CdnAssetUrlOptions, Mn as LensType, Mt as SearchAssetsOptions, N as CdnResource, Nn as AssetSearchMatchField, Nt as SetPolicyAutomaticUpdatesOptions, O as CalmLensAppClientOptions, On as ProcessingFeatureStage, Ot as RequestOptions, P as CdnServeOptions, Pn as AssetSearchQuery, Pt as SignAssetUrlOptions, Q as FolderIdOptions, Qt as UploadedAsset, R as ConnectionOptions, Rn as AssetHlsRendition, Rt as StreamingFeatureOptions, S as AssetUpload, Sn as AgeRange, St as MultipartUploadOptions, T as AssignPolicyOptions, Tn as DetectedPerson, Tt as PolicyPage, U as CreatePolicyOptions, Un as AssetSafetyHoldReason, Ut as UpdateLensOptions, V as CreateLensOptions, Vn as AssetRenderedKind, Vt as UpdateFolderOptions, W as DecideAssetOptions, Wn as ExtractedText, Wt as UpdatePolicyOptions, X as EnsureUploadPresetsOptions, Xt as UploadPresetPage, Y as EnsureMetadataFieldsOptions, Yt as UploadPresetIdOptions, Z as EnsureUploadPresetsResponse, Zt as UploadPresetSubmitAssetOptions, _ as AssetPage, _n as Folder, _t as ListLensesOptions, a as AssetChecksums, an as AssetTimelineSegment, at as IdempotencyOptions, b as AssetTimelinePage, bn as PublicProjectSettings, bt as MoveAssetOptions, c as AssetClassificationFailureReason, cn as EventAsset, ct as LensIdOptions, d as AssetContentOptions, dn as EventFact, dt as ListAssetTimelineOptions, en as ViewerClaims, et as GetAssetInfoOptions, f as AssetContentRemovalReason, fn as EventFactValues, ft as ListAssetsOptions, g as AssetModerationStatus, gt as ListHashListsOptions, h as AssetModerationDecision, hn as EventType, ht as ListHashListEntriesOptions, i as AssetAvailability, in as AssetBatchOperation, it as HashListPage, j as CdnAssetReference, jn as CursorPage, jt as RetryAssetOptions, k as CalmLensServerClientOptions, kn as ProcessingFeatures, kt as ResetPolicyOptions, l as AssetClassificationStatus, ln as TypedEvent, lt as LensPage, m as AssetModeration, mn as EventSeverity, mt as ListFoldersOptions, n as AppInfo, nn as WebhookHeadersInput, nt as HashListEntryPage, o as AssetChildrenPage, on as GetEventsResponse, ot as ImageTransformOptions, p as AssetContentStatus, pn as EventFacts, pt as ListEventsOptions, q as EnsureLensOptions, qn as ProcessingOptions, qt as UploadAssetPartOptions, r as Asset, rn as WebhookPayloadInput, rt as HashListIdOptions, s as AssetClassification, st as Lens, t as AddHashListEntryOptions, tn as WaitForAssetDecisionOptions, tt as HashListEntryIdOptions, u as AssetContent, un as EventCategory, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vn as MetadataFieldsResource, vt as ListPoliciesOptions, w as AssetVisibility, wn as DetectedFace, wt as PolicyIdOptions, x as AssetType, xn as UploadPreset, xt as MoveFolderOptions, y as AssetSearchResult, yn as ProjectSettingsResource, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zn as AssetPreview, zt as SubmitAssetOptions } from "./CalmLensTypes-OWZsGvBX.js";
3
- import { t as CalmLensAppClient } from "./CalmLensAppClient-DzoSqUgG.js";
4
- import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-BDxmVi-G.js";
5
- import { A as CalmLensRateLimitError, C as CalmLensErrorKind, D as CalmLensNotFoundError, E as CalmLensInvalidResponseError, F as SdkErrorCode, I as ApiErrorCode, M as CalmLensTimeoutError, N as CalmLensUnprocessableEntityError, O as CalmLensPayloadTooLargeError, P as CalmLensWebhookVerificationError, S as CalmLensErrorDetails, T as CalmLensInvalidArgumentError, _ as CalmLensConfigurationError, a as AUTO_PAGING_TO_ARRAY_MAX, b as CalmLensError, c as CalmLensLastResponse, d as ListPromise, f as CALMLENS_ERROR_CODES, g as CalmLensCancelledError, h as CalmLensBadRequestError, i as ServedAssetInfo, j as CalmLensServerError, k as CalmLensPermissionDeniedError, l as CalmLensResponse, m as CalmLensAuthenticationError, o as AutoPaging, p as CalmLensApiError, r as CdnResponse, s as AutoPagingToArrayOptions, t as ReceivedWebhookEventPayload, u as ListPage, v as CalmLensConflictError, w as CalmLensErrorOptions, x as CalmLensErrorCode, y as CalmLensConnectionError } from "./WebhookPayload-CrMU6lg0.js";
2
+ import { $ as FolderPage, $t as VerifyWebhookSignatureOptions, A as CdnAssetLocation, An as Policy, At as RetrieveAssetOptions, B as CreateHashListOptions, Bn as AssetRendered, Bt as UpdateAssetOptions, C as AssetUploadStatus, Cn as BoundingBox, Ct as MultipartUploadPartOptions, D as BatchAssetsResponse, Dn as ProcessingFeatureResults, Dt as RequestAttempt, E as BatchAssetsOptions, En as ProcessingFeatureId, Et as RemoveAssetContentOptions, F as CdnTransform, Ft as SignUploadTokenOptions, G as DeleteAssetOptions, Gn as FileMetadata, Gt as UpdateProjectSettingsOptions, H as CreateMultipartUploadPartOptions, Hn as AssetSafetyHold, Ht as UpdateHashListOptions, I as ClassifyTextOptions, In as AssetInfo, It as SignedAssetUrl, J as EnsureLensesOptions, Jt as UploadPresetDefinition, K as DeleteMetadataFieldOptions, Kn as MetadataItem, Kt as UpgradePolicyOptions, L as ClientRequestDefaults, Ln as AssetHls, Lt as SignedUploadToken, M as CdnAssetUrlOptions, Mn as LensType, Mt as SearchAssetsOptions, N as CdnResource, Nn as AssetSearchMatchField, Nt as SetPolicyAutomaticUpdatesOptions, O as CalmLensAppClientOptions, On as ProcessingFeatureStage, Ot as RequestOptions, P as CdnServeOptions, Pn as AssetSearchQuery, Pt as SignAssetUrlOptions, Q as FolderIdOptions, Qt as UploadedAsset, R as ConnectionOptions, Rn as AssetHlsRendition, Rt as StreamingFeatureOptions, S as AssetUpload, Sn as AgeRange, St as MultipartUploadOptions, T as AssignPolicyOptions, Tn as DetectedPerson, Tt as PolicyPage, U as CreatePolicyOptions, Un as AssetSafetyHoldReason, Ut as UpdateLensOptions, V as CreateLensOptions, Vn as AssetRenderedKind, Vt as UpdateFolderOptions, W as DecideAssetOptions, Wn as ExtractedText, Wt as UpdatePolicyOptions, X as EnsureUploadPresetsOptions, Xt as UploadPresetPage, Y as EnsureMetadataFieldsOptions, Yt as UploadPresetIdOptions, Z as EnsureUploadPresetsResponse, Zt as UploadPresetSubmitAssetOptions, _ as AssetPage, _n as Folder, _t as ListLensesOptions, a as AssetChecksums, an as AssetTimelineSegment, at as IdempotencyOptions, b as AssetTimelinePage, bn as PublicProjectSettings, bt as MoveAssetOptions, c as AssetClassificationFailureReason, cn as EventAsset, ct as LensIdOptions, d as AssetContentOptions, dn as EventFact, dt as ListAssetTimelineOptions, en as ViewerClaims, et as GetAssetInfoOptions, f as AssetContentRemovalReason, fn as EventFactValues, ft as ListAssetsOptions, g as AssetModerationStatus, gt as ListHashListsOptions, h as AssetModerationDecision, hn as EventType, ht as ListHashListEntriesOptions, i as AssetAvailability, in as AssetBatchOperation, it as HashListPage, j as CdnAssetReference, jn as CursorPage, jt as RetryAssetOptions, k as CalmLensServerClientOptions, kn as ProcessingFeatures, kt as ResetPolicyOptions, l as AssetClassificationStatus, ln as TypedEvent, lt as LensPage, m as AssetModeration, mn as EventSeverity, mt as ListFoldersOptions, n as AppInfo, nn as WebhookHeadersInput, nt as HashListEntryPage, o as AssetChildrenPage, on as GetEventsResponse, ot as ImageTransformOptions, p as AssetContentStatus, pn as EventFacts, pt as ListEventsOptions, q as EnsureLensOptions, qn as ProcessingOptions, qt as UploadAssetPartOptions, r as Asset, rn as WebhookPayloadInput, rt as HashListIdOptions, s as AssetClassification, st as Lens, t as AddHashListEntryOptions, tn as WaitForAssetDecisionOptions, tt as HashListEntryIdOptions, u as AssetContent, un as EventCategory, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vn as MetadataFieldsResource, vt as ListPoliciesOptions, w as AssetVisibility, wn as DetectedFace, wt as PolicyIdOptions, x as AssetType, xn as UploadPreset, xt as MoveFolderOptions, y as AssetSearchResult, yn as ProjectSettingsResource, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zn as AssetPreview, zt as SubmitAssetOptions } from "./CalmLensTypes-DxxyZt2L.js";
3
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-Btp8f-34.js";
4
+ import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-CUA-HDNu.js";
5
+ import { A as CalmLensRateLimitError, C as CalmLensErrorKind, D as CalmLensNotFoundError, E as CalmLensInvalidResponseError, F as SdkErrorCode, I as ApiErrorCode, M as CalmLensTimeoutError, N as CalmLensUnprocessableEntityError, O as CalmLensPayloadTooLargeError, P as CalmLensWebhookVerificationError, S as CalmLensErrorDetails, T as CalmLensInvalidArgumentError, _ as CalmLensConfigurationError, a as AUTO_PAGING_TO_ARRAY_MAX, b as CalmLensError, c as CalmLensLastResponse, d as ListPromise, f as CALMLENS_ERROR_CODES, g as CalmLensCancelledError, h as CalmLensBadRequestError, i as ServedAssetInfo, j as CalmLensServerError, k as CalmLensPermissionDeniedError, l as CalmLensResponse, m as CalmLensAuthenticationError, o as AutoPaging, p as CalmLensApiError, r as CdnResponse, s as AutoPagingToArrayOptions, t as ReceivedWebhookEventPayload, u as ListPage, v as CalmLensConflictError, w as CalmLensErrorOptions, x as CalmLensErrorCode, y as CalmLensConnectionError } from "./WebhookPayload-D_yWJA9M.js";
6
6
  export { AUTO_PAGING_TO_ARRAY_MAX, type AddHashListEntryOptions, type AgeRange, type ApiErrorCode, type AppInfo, type Asset, type AssetAvailability, type AssetBatchOperation, type AssetChecksums, type AssetChildrenPage, type AssetClassification, type AssetClassificationFailureReason, type AssetClassificationStatus, type AssetContent, type AssetContentOptions, type AssetContentRemovalReason, type AssetContentStatus, type AssetHls, type AssetHlsRendition, type AssetInfo, type AssetModeration, type AssetModerationDecision, type AssetModerationStatus, type AssetPage, type AssetPreview, type AssetRendered, type AssetRenderedKind, type AssetSafetyHold, type AssetSafetyHoldReason, type AssetSearchMatchField, type AssetSearchQuery, type AssetSearchResponse, type AssetSearchResult, type AssetTimelinePage, type AssetTimelineSegment, type AssetType, type AssetUpload, type AssetUploadStatus, type AssetVisibility, type AssignPolicyOptions, type AutoPaging, type AutoPagingToArrayOptions, type BatchAssetsOptions, type BatchAssetsResponse, type BoundingBox, CALMLENS_ERROR_CODES, CDN_RESOURCES, CalmLensApiError, CalmLensAppClient, type CalmLensAppClientOptions, CalmLensAuthenticationError, CalmLensBadRequestError, CalmLensCancelledError, CalmLensConfigurationError, CalmLensConflictError, CalmLensConnectionError, CalmLensError, type CalmLensErrorCode, type CalmLensErrorDetails, type CalmLensErrorKind, type CalmLensErrorOptions, CalmLensInvalidArgumentError, CalmLensInvalidResponseError, type CalmLensLastResponse, CalmLensNotFoundError, CalmLensPayloadTooLargeError, CalmLensPermissionDeniedError, CalmLensRateLimitError, type CalmLensResponse, type CalmLensServerClientOptions, CalmLensServerError, CalmLensTimeoutError, CalmLensUnprocessableEntityError, CalmLensWebhookVerificationError, type CdnAssetLocation, type CdnAssetReference, type CdnAssetUrlOptions, type CdnResource, type CdnResponse, type CdnServeOptions, type CdnTransform, type ClassificationCategories, type ClassificationCategory, type ClassificationCategoryReport, type ClassificationNotEvaluatedReason, type ClassificationQualifierResults, type ClassifyTextOptions, type ClientRequestDefaults, type ConnectionOptions, type CreateFolderOptions, type CreateHashListOptions, type CreateLensOptions, type CreateMultipartUploadPartOptions, type CreatePolicyOptions, type CursorPage, DEFAULT_CDN_BASE_URL, type DecideAssetOptions, type DeleteAssetOptions, type DeleteMetadataFieldOptions, type DetectedFace, type DetectedPerson, type EnsureLensOptions, type EnsureLensesOptions, type EnsureMetadataFieldsOptions, type EnsureUploadPresetsOptions, type EnsureUploadPresetsResponse, type EventAsset, type EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventSeverity, type EventType, type GetEventsResponse as EventsPage, type ExtractedText, type FileMetadata, type Folder, type FolderIdOptions, type FolderPage, type GetAssetInfoOptions, type HashList, type HashListEntry, type HashListEntryIdOptions, type HashListEntryPage, type HashListIdOptions, type HashListPage, type IdempotencyOptions, type ImageTransformOptions, type Lens, type LensIdOptions, type LensPage, type LensType, type Likelihood, type ListAssetChildrenOptions, type ListAssetTimelineOptions, type ListAssetsOptions, type ListEventsOptions, type ListFoldersOptions, type ListHashListEntriesOptions, type ListHashListsOptions, type ListLensesOptions, type ListPage, type ListPoliciesOptions, type ListPromise, type ListUploadPresetsOptions, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, type MetadataFieldsResource, type MetadataItem, type ModerationContext, type ModerationContextItem, type ModerationQualifier, type MoveAssetOptions, type MoveFolderOptions, type MultipartUploadOptions, type MultipartUploadPartOptions, type Policy, type PolicyAction, type PolicyIdOptions, type PolicyPage, type ProcessingFeatureId, type ProcessingFeatureResults, type ProcessingFeatureStage, type ProcessingFeatures, type ProcessingOptions, type ProjectSettingsResource, type PublicProjectSettings, type RemoveAssetContentOptions, type RequestAttempt, type RequestOptions, type ResetPolicyOptions, type RetrieveAssetOptions, type RetryAssetOptions, SDK_VERSION, type SdkErrorCode, type SearchAssetsOptions, type ServedAssetInfo, type SetPolicyAutomaticUpdatesOptions, type SignAssetUrlOptions, type SignUploadTokenOptions, type SignedAssetUrl, type SignedUploadToken, type StreamingFeatureOptions, type SubmitAssetOptions, type TypedEvent, type UpdateAssetOptions, type UpdateFolderOptions, type UpdateHashListOptions, type UpdateLensOptions, type UpdatePolicyOptions, type UpdateProjectSettingsOptions, type UpgradePolicyOptions, type UploadAssetPartOptions, type UploadPreset, type UploadPresetDefinition, type UploadPresetIdOptions, type UploadPresetPage, type UploadPresetSubmitAssetOptions, type UploadedAsset, type VerifyWebhookSignatureOptions, type ViewerClaims, type WaitForAssetDecisionOptions, type ReceivedWebhookEventPayload as WebhookEventPayload, type WebhookHeadersInput, type WebhookPayloadInput, getAssetInfo, selectModerationContextItems };
package/esm/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as CalmLensPayloadTooLargeError, G as CalmLensCancelledError, H as CalmLensApiError, I as AUTO_PAGING_TO_ARRAY_MAX, J as CalmLensConnectionError, K as CalmLensConfigurationError, N as SDK_VERSION, Q as CalmLensNotFoundError, U as CalmLensAuthenticationError, V as CALMLENS_ERROR_CODES, W as CalmLensBadRequestError, X as CalmLensInvalidArgumentError, Y as CalmLensError, Z as CalmLensInvalidResponseError, at as CalmLensWebhookVerificationError, et as CalmLensPermissionDeniedError, i as CDN_RESOURCES, it as CalmLensUnprocessableEntityError, n as MODERATION_CONTEXT_USED_ITEMS, nt as CalmLensServerError, q as CalmLensConflictError, r as selectModerationContextItems, rt as CalmLensTimeoutError, s as getAssetInfo, t as MODERATION_CONTEXT_USED_CHARACTERS, tt as CalmLensRateLimitError, u as DEFAULT_CDN_BASE_URL } from "./ModerationContextLimits-tu_PY4fn.js";
1
+ import { $ as CalmLensPayloadTooLargeError, G as CalmLensCancelledError, H as CalmLensApiError, I as AUTO_PAGING_TO_ARRAY_MAX, J as CalmLensConnectionError, K as CalmLensConfigurationError, N as SDK_VERSION, Q as CalmLensNotFoundError, U as CalmLensAuthenticationError, V as CALMLENS_ERROR_CODES, W as CalmLensBadRequestError, X as CalmLensInvalidArgumentError, Y as CalmLensError, Z as CalmLensInvalidResponseError, at as CalmLensWebhookVerificationError, et as CalmLensPermissionDeniedError, i as CDN_RESOURCES, it as CalmLensUnprocessableEntityError, n as MODERATION_CONTEXT_USED_ITEMS, nt as CalmLensServerError, q as CalmLensConflictError, r as selectModerationContextItems, rt as CalmLensTimeoutError, s as getAssetInfo, t as MODERATION_CONTEXT_USED_CHARACTERS, tt as CalmLensRateLimitError, u as DEFAULT_CDN_BASE_URL } from "./ModerationContextLimits-ZIlK9n2X.js";
2
2
  import "./index.js";
3
- import { t as CalmLensAppClient } from "./CalmLensAppClient-C1cpQEYR.js";
3
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-DM6c3pGC.js";
4
4
  export { AUTO_PAGING_TO_ARRAY_MAX, CALMLENS_ERROR_CODES, CDN_RESOURCES, CalmLensApiError, CalmLensAppClient, CalmLensAuthenticationError, CalmLensBadRequestError, CalmLensCancelledError, CalmLensConfigurationError, CalmLensConflictError, CalmLensConnectionError, CalmLensError, CalmLensInvalidArgumentError, CalmLensInvalidResponseError, CalmLensNotFoundError, CalmLensPayloadTooLargeError, CalmLensPermissionDeniedError, CalmLensRateLimitError, CalmLensServerError, CalmLensTimeoutError, CalmLensUnprocessableEntityError, CalmLensWebhookVerificationError, DEFAULT_CDN_BASE_URL, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, SDK_VERSION, getAssetInfo, selectModerationContextItems };