calmlens 0.29.1 → 0.30.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 +39 -18
  2. package/cjs/{BrowserUpload-CsxEB1Pr.js → BrowserUpload-BNeTp6eF.js} +1 -1
  3. package/cjs/{BrowserUpload-CeGsM9h1.d.ts → BrowserUpload-DS6KT6o_.d.ts} +2 -2
  4. package/{esm/CalmLensAppClient-D-BD_Ny1.d.ts → cjs/CalmLensAppClient-B4vzxEzg.d.ts} +1 -1
  5. package/cjs/{CalmLensAppClient-BWMcQM9v.js → CalmLensAppClient-ClqGwUbl.js} +7 -6
  6. package/cjs/{CalmLensConnection-DBgV8D1B.js → CalmLensConnection-og0jh-Fw.js} +29 -28
  7. package/cjs/CalmLensError-DPHJaVjX.js +1066 -0
  8. package/cjs/{CalmLensServerClient-BYN_N0lt.d.ts → CalmLensServerClient-BJl2Hsxr.d.ts} +12 -8
  9. package/cjs/{CalmLensServerClient-DYO3geSA.js → CalmLensServerClient-KsXM77rO.js} +37 -35
  10. package/cjs/{TestTriggers-uL2Ec8Vt-cPmmKvYd.js → CalmLensTestInputArguments-BXDBAOg_.js} +50 -22
  11. package/cjs/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-fAgF0_lq.d.ts} +206 -6
  12. package/cjs/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-DbXUPSvH-C0o2t4mg.d.ts} +15 -30
  13. package/cjs/{Core-CNmoxDCW.d.ts → Core-DL531ZPG.d.ts} +2 -2
  14. package/cjs/{Core-Bl-aESvN.js → Core-eDiPpil9.js} +4 -3
  15. package/cjs/{ModerationContextLimits-DHu2jHpo.js → ModerationContextLimits-BVBkcgSU.js} +67 -1126
  16. package/{esm/ReactUpload-kqEe6gcN.d.ts → cjs/ReactUpload-BoS0lr7U.d.ts} +1 -1
  17. package/cjs/{ReactUpload-BFVNyWoI.js → ReactUpload-DAPAzAwY.js} +1 -1
  18. package/{esm/TestTriggers-dognME9k-PWyIfHMI.d.ts → cjs/TestTriggers-CLjF01NU.d.ts} +2 -3
  19. package/cjs/{UploadController-VM1qYwNq.js → UploadController-BElzwMic.js} +6 -6
  20. package/{esm/WebhookPayload-DZWlnvcY.d.ts → cjs/WebhookPayload-DlGoY_db.d.ts} +11 -7
  21. package/cjs/app.d.ts +6 -6
  22. package/cjs/app.js +22 -21
  23. package/cjs/elements.d.ts +4 -4
  24. package/cjs/elements.js +4 -4
  25. package/cjs/{index-Dl2qwS8L.d.ts → index-ChrzzIRt.d.ts} +3 -3
  26. package/cjs/index.d.ts +5 -5
  27. package/cjs/index.js +21 -20
  28. package/cjs/react-native.d.ts +2 -2
  29. package/cjs/react-native.js +4 -4
  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 +23 -22
  34. package/cjs/test-inputs.d.ts +6 -2
  35. package/cjs/test-inputs.js +23 -13
  36. package/cjs/testing.d.ts +14 -10
  37. package/cjs/testing.js +154 -147
  38. package/cjs/{ui-BCiLF8cU.js → ui-COjb2Hx6.js} +2 -2
  39. package/cjs/{ui-BtmJC-f9.d.ts → ui-DpZOLeVs.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/esm/{BrowserUpload-DB3WpaC1.js → BrowserUpload-BCmj5eGu.js} +1 -1
  45. package/esm/{BrowserUpload-CeGsM9h1.d.ts → BrowserUpload-DS6KT6o_.d.ts} +2 -2
  46. package/{cjs/CalmLensAppClient-D-BD_Ny1.d.ts → esm/CalmLensAppClient-B4vzxEzg.d.ts} +1 -1
  47. package/esm/{CalmLensAppClient-Dg-jPs4B.js → CalmLensAppClient-DcPVLn2y.js} +3 -2
  48. package/esm/{CalmLensConnection-Di7K7Wnl.js → CalmLensConnection-Pm-g6a1l.js} +2 -1
  49. package/esm/CalmLensError-BDWThPCr.js +917 -0
  50. package/esm/{CalmLensServerClient-BYN_N0lt.d.ts → CalmLensServerClient-BJl2Hsxr.d.ts} +12 -8
  51. package/esm/{CalmLensServerClient-Pdp7TI8y.js → CalmLensServerClient-C2HGsjkT.js} +18 -16
  52. package/esm/{TestTriggers-uL2Ec8Vt-DYbTEJWm.js → CalmLensTestInputArguments-Xh4GIadS.js} +22 -1
  53. package/esm/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-fAgF0_lq.d.ts} +206 -6
  54. package/esm/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-DbXUPSvH-C0o2t4mg.d.ts} +15 -30
  55. package/esm/{Core-CNmoxDCW.d.ts → Core-DL531ZPG.d.ts} +2 -2
  56. package/esm/{Core-CKk4teFu.js → Core-KYgLJ0eb.js} +3 -2
  57. package/esm/{ModerationContextLimits-xvxUjGfL.js → ModerationContextLimits-DmjWgTBa.js} +3 -918
  58. package/{cjs/ReactUpload-kqEe6gcN.d.ts → esm/ReactUpload-BoS0lr7U.d.ts} +1 -1
  59. package/esm/{ReactUpload-DY5qQ70s.js → ReactUpload-QW_RNxFp.js} +1 -1
  60. package/{cjs/TestTriggers-dognME9k-PWyIfHMI.d.ts → esm/TestTriggers-CLjF01NU.d.ts} +2 -3
  61. package/esm/{UploadController-wyor-5Z2.js → UploadController-Civ7QPwT.js} +2 -2
  62. package/{cjs/WebhookPayload-DZWlnvcY.d.ts → esm/WebhookPayload-DlGoY_db.d.ts} +11 -7
  63. package/esm/app.d.ts +6 -6
  64. package/esm/app.js +3 -2
  65. package/esm/elements.d.ts +4 -4
  66. package/esm/elements.js +4 -4
  67. package/esm/{index-Dl2qwS8L.d.ts → index-ChrzzIRt.d.ts} +3 -3
  68. package/esm/index.d.ts +5 -5
  69. package/esm/index.js +3 -1
  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 -3
  76. package/esm/test-inputs.d.ts +6 -2
  77. package/esm/test-inputs.js +12 -1
  78. package/esm/testing.d.ts +14 -10
  79. package/esm/testing.js +27 -21
  80. package/esm/{ui-BqF49fSy.js → ui-BVXgDCO2.js} +2 -2
  81. package/esm/{ui-BtmJC-f9.d.ts → ui-DpZOLeVs.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,4 +1,4 @@
1
- import { F as UploadFile, L as UploadSnapshot, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions } from "./Core-CNmoxDCW.js";
1
+ import { F as UploadFile, L as UploadSnapshot, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions } from "./Core-DL531ZPG.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-wyor-5Z2.js";
1
+ import { i as withProvidedOptions, n as createUploadController } from "./UploadController-Civ7QPwT.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 ClassificationCategory } from "./Classification-CMM2tZpJ-IdIh63n0.js";
1
+ import { n as ClassificationCategory } from "./Classification-DbXUPSvH-C0o2t4mg.js";
2
2
  import * as z from "zod";
3
3
  interface RgbaImage {
4
4
  width: number;
@@ -356,7 +356,6 @@ declare const TEST_INPUT_PRESETS: {
356
356
  };
357
357
  };
358
358
  };
359
- declare function generateTestTextCode(scenario: TestInput | ClassificationTestSignal, key: string): Promise<string>;
360
359
  /**
361
360
  * The scenario a text declares when the whole text is one code signed with `key`; surrounding
362
361
  * text, a second code or an altered code all return undefined, so the text is moderated as
@@ -413,4 +412,4 @@ declare function detectTestImage(image: RgbaImage, key: string,
413
412
  }[] | undefined;
414
413
  } | undefined;
415
414
  } | undefined>;
416
- export { TEST_FACE_AGE_PRESETS as a, TestDetections as c, detectTestTrigger as d, generateTestTextCode as f, testInputForSignal as h, TEST_FACE_AGE_MAX as i, TestInput as l, paintTestImage as m, TEST_DETECTIONS_MAX as n, TEST_INPUT_KEY_PATTERN as o, getImageTestCategories as p, TEST_DETECTION_BOX_MAX as r, TEST_INPUT_PRESETS as s, ClassificationTestSignal as t, detectTestImage as u };
415
+ export { TEST_FACE_AGE_PRESETS as a, TestDetections as c, detectTestTrigger as d, getImageTestCategories as f, TEST_FACE_AGE_MAX as i, TestInput as l, testInputForSignal as m, TEST_DETECTIONS_MAX as n, TEST_INPUT_KEY_PATTERN as o, paintTestImage as p, TEST_DETECTION_BOX_MAX as r, TEST_INPUT_PRESETS as s, ClassificationTestSignal as t, detectTestImage as u };
@@ -1,5 +1,5 @@
1
- import { Q as CalmLensError, lt as SDK_ERROR_CODES } from "./ModerationContextLimits-xvxUjGfL.js";
2
- import { t as CalmLensAppClient } from "./CalmLensAppClient-Dg-jPs4B.js";
1
+ import { l as CalmLensError, x as SDK_ERROR_CODES } from "./CalmLensError-BDWThPCr.js";
2
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-DcPVLn2y.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 { dn as TypedEvent, un as Actor } from "./CalmLensTypes-C2blKgTu.js";
1
+ import { _n as EventResourceKind, fn as TypedEvent, un as Actor } from "./CalmLensTypes-fAgF0_lq.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: {
@@ -522,10 +522,10 @@ declare const RECEIVED_WEBHOOK_EVENT_PAYLOAD_SCHEMA: zod.ZodObject<{
522
522
  type: zod.ZodString;
523
523
  id: zod.ZodNullable<zod.ZodString>;
524
524
  }, zod.core.$loose>>;
525
- assetId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
526
- assetSequence: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
527
- asset: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
525
+ resource: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
526
+ kind: zod.ZodString;
528
527
  id: zod.ZodString;
528
+ sequence: zod.ZodNumber;
529
529
  }, zod.core.$loose>>>;
530
530
  facts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
531
531
  key: zod.ZodString;
@@ -536,7 +536,7 @@ declare const RECEIVED_WEBHOOK_EVENT_PAYLOAD_SCHEMA: zod.ZodObject<{
536
536
  type ReceivedFact = zod.infer<typeof RECEIVED_WEBHOOK_EVENT_PAYLOAD_SCHEMA>["facts"];
537
537
  /**
538
538
  * The schema only requires what parsing needs, so future fields still parse. The type describes
539
- * the payload CalmLens sends today, including the asset snapshot; fields added later arrive too,
539
+ * the payload CalmLens sends today; fields added later arrive too,
540
540
  * untyped.
541
541
  */
542
542
  interface ReceivedWebhookEventPayload {
@@ -552,8 +552,12 @@ interface ReceivedWebhookEventPayload {
552
552
  type: Actor["type"] | (string & {});
553
553
  id: string | null;
554
554
  };
555
- assetId?: string | null;
556
- assetSequence?: number | null;
555
+ /** The resource the event is about; `kind` may take values added later. */
556
+ resource?: {
557
+ kind: EventResourceKind | (string & {});
558
+ id: string;
559
+ sequence: number;
560
+ } | null;
557
561
  facts?: ReceivedFact;
558
562
  [key: string]: unknown;
559
563
  }
package/esm/app.d.ts CHANGED
@@ -1,6 +1,6 @@
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 UploadPresetSubmitAssetOptions, A as CdnAssetLocation, An as ProcessingFeatureStage, At as ResetPolicyOptions, B as CreateHashListOptions, Bn as AssetHlsRendition, Bt as StreamingFeatureOptions, C as AssetUploadStatus, Cn as UploadPreset, Ct as MultipartUploadPartOptions, D as BatchAssetsResponse, Dn as DetectedPerson, Dt as RequestAssetReviewOptions, E as BatchAssetsOptions, En as DetectedFace, Et as RemoveAssetContentOptions, F as CdnTransform, Fn as AssetSearchMatchField, Ft as SetPolicyAutomaticUpdatesOptions, G as DeleteAssetOptions, Gn as AssetSafetyHoldReason, Gt as UpdateLensOptions, H as CreateMultipartUploadPartOptions, Hn as AssetRendered, Ht as UpdateAssetOptions, I as ClassifyTextOptions, In as AssetSearchQuery, It as SignAssetUrlOptions, J as EnsureLensesOptions, Jn as MetadataItem, Jt as UpgradePolicyOptions, K as DeleteMetadataFieldOptions, Kn as ExtractedText, Kt as UpdatePolicyOptions, L as ClientRequestDefaults, Lt as SignUploadTokenOptions, M as CdnAssetUrlOptions, Mn as Policy, Mt as RetrieveAssetOptions, N as CdnResource, Nn as CursorPage, Nt as RetryAssetOptions, O as CalmLensAppClientOptions, On as ProcessingFeatureId, Ot as RequestAttempt, P as CdnServeOptions, Pn as LensType, Pt as SearchAssetsOptions, Q as FolderIdOptions, Qt as UploadPresetPage, R as ConnectionOptions, Rn as AssetInfo, Rt as SignedAssetUrl, S as AssetUpload, Sn as PublicProjectSettings, St as MultipartUploadOptions, T as AssignPolicyOptions, Tn as BoundingBox, Tt as PolicyPage, U as CreatePolicyOptions, Un as AssetRenderedKind, Ut as UpdateFolderOptions, V as CreateLensOptions, Vn as AssetPreview, Vt as SubmitAssetOptions, W as DecideAssetOptions, Wn as AssetSafetyHold, Wt as UpdateHashListOptions, X as EnsureUploadPresetsOptions, Xt as UploadPresetDefinition, Y as EnsureMetadataFieldsOptions, Yn as ProcessingOptions, Yt as UploadAssetPartOptions, Z as EnsureUploadPresetsResponse, Zt as UploadPresetIdOptions, _ as AssetPage, _n as EventType, _t as ListLensesOptions, a as AssetChecksums, an as WebhookPayloadInput, at as IdempotencyOptions, b as AssetTimelinePage, bn as MetadataFieldsResource, bt as MoveAssetOptions, c as AssetClassificationFailureReason, cn as AssetTimelineSegment, ct as LensIdOptions, d as AssetContentOptions, dn as TypedEvent, dt as ListAssetTimelineOptions, en as UploadedAsset, et as GetAssetInfoOptions, f as AssetContentRemovalReason, fn as EventCategory, ft as ListAssetsOptions, g as AssetModerationStatus, gn as EventSeverity, gt as ListHashListsOptions, h as AssetModerationDecision, hn as EventFacts, ht as ListHashListEntriesOptions, i as AssetAvailability, in as WebhookHeadersInput, it as HashListPage, j as CdnAssetReference, jn as ProcessingFeatures, jt as RetrieveAssetByExternalIdOptions, k as CalmLensServerClientOptions, kn as ProcessingFeatureResults, kt as RequestOptions, l as AssetClassificationStatus, ln as GetEventsResponse, lt as LensPage, m as AssetModeration, mn as EventFactValues, mt as ListFoldersOptions, n as AppInfo, nn as ViewerClaims, nt as HashListEntryPage, o as AssetChildrenPage, on as AssetBatchOperation, ot as ImageTransformOptions, p as AssetContentStatus, pn as EventFact, pt as ListEventsOptions, q as EnsureLensOptions, qn as FileMetadata, qt as UpdateProjectSettingsOptions, r as Asset, rn as WaitForAssetDecisionOptions, rt as HashListIdOptions, s as AssetClassification, sn as AssetReviewRequest, st as Lens, t as AddHashListEntryOptions, tn as VerifyWebhookSignatureOptions, tt as HashListEntryIdOptions, u as AssetContent, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vt as ListPoliciesOptions, w as AssetVisibility, wn as AgeRange, wt as PolicyIdOptions, x as AssetType, xn as ProjectSettingsResource, xt as MoveFolderOptions, y as AssetSearchResult, yn as Folder, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zn as AssetHls, zt as SignedUploadToken } from "./CalmLensTypes-C2blKgTu.js";
3
- import { t as CalmLensAppClient } from "./CalmLensAppClient-D-BD_Ny1.js";
4
- import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-Dl2qwS8L.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-DZWlnvcY.js";
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 AssetReviewRequest, 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 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 RequestAssetReviewOptions, type RequestAttempt, type RequestOptions, type ResetPolicyOptions, type RetrieveAssetByExternalIdOptions, 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 };
1
+ import { a as ClassificationQualifierResults, c as HashList, d as ModerationContext, f as MODERATION_CONTEXT_USED_CHARACTERS, h as selectModerationContextItems, i as ClassificationNotEvaluatedReason, l as HashListEntry, m as ModerationContextItem, n as ClassificationCategory, o as Likelihood, p as MODERATION_CONTEXT_USED_ITEMS, r as ClassificationCategoryReport, s as ModerationQualifier, t as ClassificationCategories, u as PolicyAction } from "./Classification-DbXUPSvH-C0o2t4mg.js";
2
+ import { $ as FolderPage, $t as UploadPresetSubmitAssetOptions, A as CdnAssetLocation, An as ProcessingFeatureId, At as ResetPolicyOptions, B as CreateHashListOptions, Bn as AssetInfo, Bt as StreamingFeatureOptions, C as AssetUploadStatus, Cn as ProjectSettingsResource, Ct as MultipartUploadPartOptions, D as BatchAssetsResponse, Dn as BoundingBox, Dt as RequestAssetReviewOptions, E as BatchAssetsOptions, En as AgeRange, Et as RemoveAssetContentOptions, F as CdnTransform, Fn as CursorPage, Ft as SetPolicyAutomaticUpdatesOptions, G as DeleteAssetOptions, Gn as AssetRenderedKind, Gt as UpdateLensOptions, H as CreateMultipartUploadPartOptions, Hn as AssetHlsRendition, Ht as UpdateAssetOptions, I as ClassifyTextOptions, In as LensType, It as SignAssetUrlOptions, J as EnsureLensesOptions, Jn as ExtractedText, Jt as UpgradePolicyOptions, K as DeleteMetadataFieldOptions, Kn as AssetSafetyHold, Kt as UpdatePolicyOptions, L as ClientRequestDefaults, Ln as AssetSearchMatchField, Lt as SignUploadTokenOptions, M as CdnAssetUrlOptions, Mn as ProcessingFeatureStage, Mt as RetrieveAssetOptions, N as CdnResource, Nn as ProcessingFeatures, Nt as RetryAssetOptions, O as CalmLensAppClientOptions, On as DetectedFace, Ot as RequestAttempt, P as CdnServeOptions, Pn as Policy, Pt as SearchAssetsOptions, Q as FolderIdOptions, Qt as UploadPresetPage, R as ConnectionOptions, Rn as AssetSearchQuery, Rt as SignedAssetUrl, S as AssetUpload, Sn as MetadataFieldsResource, St as MultipartUploadOptions, T as AssignPolicyOptions, Tn as UploadPreset, Tt as PolicyPage, U as CreatePolicyOptions, Un as AssetPreview, Ut as UpdateFolderOptions, V as CreateLensOptions, Vn as AssetHls, Vt as SubmitAssetOptions, W as DecideAssetOptions, Wn as AssetRendered, Wt as UpdateHashListOptions, X as EnsureUploadPresetsOptions, Xn as MetadataItem, Xt as UploadPresetDefinition, Y as EnsureMetadataFieldsOptions, Yn as FileMetadata, Yt as UploadAssetPartOptions, Z as EnsureUploadPresetsResponse, Zn as ProcessingOptions, Zt as UploadPresetIdOptions, _ as AssetPage, _n as EventResourceKind, _t as ListLensesOptions, a as AssetChecksums, an as WebhookPayloadInput, at as IdempotencyOptions, b as AssetTimelinePage, bt as MoveAssetOptions, c as AssetClassificationFailureReason, cn as AssetTimelineSegment, ct as LensIdOptions, d as AssetContentOptions, dn as EventResource, dt as ListAssetTimelineOptions, en as UploadedAsset, et as GetAssetInfoOptions, f as AssetContentRemovalReason, fn as TypedEvent, ft as ListAssetsOptions, g as AssetModerationStatus, gn as EventFacts, gt as ListHashListsOptions, h as AssetModerationDecision, hn as EventFactValues, ht as ListHashListEntriesOptions, i as AssetAvailability, in as WebhookHeadersInput, it as HashListPage, j as CdnAssetReference, jn as ProcessingFeatureResults, jt as RetrieveAssetByExternalIdOptions, k as CalmLensServerClientOptions, kn as DetectedPerson, kt as RequestOptions, l as AssetClassificationStatus, ln as GetEventsResponse, lt as LensPage, m as AssetModeration, mn as EventFact, mt as ListFoldersOptions, n as AppInfo, nn as ViewerClaims, nt as HashListEntryPage, o as AssetChildrenPage, on as AssetBatchOperation, ot as ImageTransformOptions, p as AssetContentStatus, pn as EventCategory, pt as ListEventsOptions, q as EnsureLensOptions, qn as AssetSafetyHoldReason, qt as UpdateProjectSettingsOptions, r as Asset, rn as WaitForAssetDecisionOptions, rt as HashListIdOptions, s as AssetClassification, sn as AssetReviewRequest, st as Lens, t as AddHashListEntryOptions, tn as VerifyWebhookSignatureOptions, tt as HashListEntryIdOptions, u as AssetContent, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vn as EventSeverity, vt as ListPoliciesOptions, w as AssetVisibility, wn as PublicProjectSettings, wt as PolicyIdOptions, x as AssetType, xn as Folder, xt as MoveFolderOptions, y as AssetSearchResult, yn as EventType, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zt as SignedUploadToken } from "./CalmLensTypes-fAgF0_lq.js";
3
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-B4vzxEzg.js";
4
+ import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-ChrzzIRt.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-DlGoY_db.js";
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 AssetReviewRequest, 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 EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventResource, type EventResourceKind, 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 RequestAssetReviewOptions, type RequestAttempt, type RequestOptions, type ResetPolicyOptions, type RetrieveAssetByExternalIdOptions, 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,5 @@
1
- import { $ as CalmLensInvalidArgumentError, G as CalmLensApiError, I as SDK_VERSION, J as CalmLensCancelledError, K as CalmLensAuthenticationError, Q as CalmLensError, W as CALMLENS_ERROR_CODES, X as CalmLensConflictError, Y as CalmLensConfigurationError, Z as CalmLensConnectionError, a as CDN_RESOURCES, at as CalmLensServerError, ct as CalmLensWebhookVerificationError, et as CalmLensInvalidResponseError, it as CalmLensRateLimitError, n as MODERATION_CONTEXT_USED_ITEMS, nt as CalmLensPayloadTooLargeError, ot as CalmLensTimeoutError, p as DEFAULT_CDN_BASE_URL, q as CalmLensBadRequestError, r as selectModerationContextItems, rt as CalmLensPermissionDeniedError, st as CalmLensUnprocessableEntityError, t as MODERATION_CONTEXT_USED_CHARACTERS, tt as CalmLensNotFoundError, u as getAssetInfo, z as AUTO_PAGING_TO_ARRAY_MAX } from "./ModerationContextLimits-xvxUjGfL.js";
1
+ import { _ as CalmLensTimeoutError, a as CalmLensCancelledError, c as CalmLensConnectionError, d as CalmLensInvalidResponseError, f as CalmLensNotFoundError, g as CalmLensServerError, h as CalmLensRateLimitError, i as CalmLensBadRequestError, l as CalmLensError, m as CalmLensPermissionDeniedError, n as CalmLensApiError, o as CalmLensConfigurationError, p as CalmLensPayloadTooLargeError, r as CalmLensAuthenticationError, s as CalmLensConflictError, t as CALMLENS_ERROR_CODES, u as CalmLensInvalidArgumentError, v as CalmLensUnprocessableEntityError, y as CalmLensWebhookVerificationError } from "./CalmLensError-BDWThPCr.js";
2
+ import { I as SDK_VERSION, a as CDN_RESOURCES, n as MODERATION_CONTEXT_USED_ITEMS, p as DEFAULT_CDN_BASE_URL, r as selectModerationContextItems, t as MODERATION_CONTEXT_USED_CHARACTERS, u as getAssetInfo, z as AUTO_PAGING_TO_ARRAY_MAX } from "./ModerationContextLimits-DmjWgTBa.js";
2
3
  import "./index.js";
3
- import { t as CalmLensAppClient } from "./CalmLensAppClient-Dg-jPs4B.js";
4
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-DcPVLn2y.js";
4
5
  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 };
package/esm/elements.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { i as AssetAvailability } from "./CalmLensTypes-C2blKgTu.js";
2
- import { $ as MediaPlayback, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, J as AssetSessionState, K as AssetOptions, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, Q as INSTANT_LOAD_MS, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, _t as DEFAULT_VIEWER_MESSAGES, a as ProgressFetchOptions, at as isImageReady, b as describeUploadItem, bt as resolveViewerMessages, c as ICON_ATTRIBUTES, ct as DocumentViewerOptions, d as AssetDisplayOptions, dt as TextViewerOptions, et as getAssetAspectRatio, f as AssetEventHandlers, ft as ViewerAsset, g as CalmLensMessages, gt as isSpreadsheetFormat, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, l as IconName, lt as PdfAssetOptions, m as UploaderDisplayOptions, mt as ViewerTextOptions, n as CalmLensTheme, nt as getAssetViewKey, o as createProgressFetch, ot as pickAssetSource, p as AssetProps, pt as ViewerOptions, q as AssetSession, r as resolveTheme, rt as getPeakHeights, s as ICONS, st as AssetViewerKind, t as CALMLENS_THEME, tt as getAssetView, u as ASSET_FILE_ICON_SIZE, ut as SpreadsheetViewerOptions, v as UploadItemView, vt as ViewerMessages, w as getDropzoneHint, x as describeUploader, y as UploaderView, yt as formatViewerMessage } from "./Core-CNmoxDCW.js";
3
- import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-CeGsM9h1.js";
4
- import { _ as spreadsheetColumnIndex, a as isMountedViewerKind, b as AssetViewer, c as AssetViewerOptionsByKind, d as createTextViewer, f as SpreadsheetCell, g as parseSpreadsheetText, h as getSpreadsheetPage, i as getMountedViewerOptions, l as VIEWER_STYLES, m as SpreadsheetSheet, n as AssetViewerMount, o as ASSET_VIEWERS, p as SpreadsheetRow, r as MountedViewerKind, s as AssetViewerName, t as MediaStreamPlayer, u as createSpreadsheetViewer, v as loadPdfJs, x as ViewerState, y as createDocumentViewer } from "./ui-BtmJC-f9.js";
1
+ import { i as AssetAvailability } from "./CalmLensTypes-fAgF0_lq.js";
2
+ import { $ as MediaPlayback, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, J as AssetSessionState, K as AssetOptions, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, Q as INSTANT_LOAD_MS, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, _t as DEFAULT_VIEWER_MESSAGES, a as ProgressFetchOptions, at as isImageReady, b as describeUploadItem, bt as resolveViewerMessages, c as ICON_ATTRIBUTES, ct as DocumentViewerOptions, d as AssetDisplayOptions, dt as TextViewerOptions, et as getAssetAspectRatio, f as AssetEventHandlers, ft as ViewerAsset, g as CalmLensMessages, gt as isSpreadsheetFormat, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, l as IconName, lt as PdfAssetOptions, m as UploaderDisplayOptions, mt as ViewerTextOptions, n as CalmLensTheme, nt as getAssetViewKey, o as createProgressFetch, ot as pickAssetSource, p as AssetProps, pt as ViewerOptions, q as AssetSession, r as resolveTheme, rt as getPeakHeights, s as ICONS, st as AssetViewerKind, t as CALMLENS_THEME, tt as getAssetView, u as ASSET_FILE_ICON_SIZE, ut as SpreadsheetViewerOptions, v as UploadItemView, vt as ViewerMessages, w as getDropzoneHint, x as describeUploader, y as UploaderView, yt as formatViewerMessage } from "./Core-DL531ZPG.js";
3
+ import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-DS6KT6o_.js";
4
+ import { _ as spreadsheetColumnIndex, a as isMountedViewerKind, b as AssetViewer, c as AssetViewerOptionsByKind, d as createTextViewer, f as SpreadsheetCell, g as parseSpreadsheetText, h as getSpreadsheetPage, i as getMountedViewerOptions, l as VIEWER_STYLES, m as SpreadsheetSheet, n as AssetViewerMount, o as ASSET_VIEWERS, p as SpreadsheetRow, r as MountedViewerKind, s as AssetViewerName, t as MediaStreamPlayer, u as createSpreadsheetViewer, v as loadPdfJs, x as ViewerState, y as createDocumentViewer } from "./ui-DpZOLeVs.js";
5
5
  declare const BaseElement$1: typeof HTMLElement;
6
6
  /**
7
7
  * An asset viewer element. Set the `src` attribute to the asset URL (public or signed) and the
package/esm/elements.js CHANGED
@@ -1,8 +1,8 @@
1
- import { a as ASSET_VIEWERS, c as getSpreadsheetPage, d as createDocumentViewer, f as DEFAULT_VIEWER_MESSAGES, h as loadPdfJs, i as isMountedViewerKind, l as parseSpreadsheetText, m as resolveViewerMessages, n as AssetViewerMount, o as createSpreadsheetViewer, p as formatViewerMessage, r as getMountedViewerOptions, s as createTextViewer, t as MediaStreamPlayer, u as spreadsheetColumnIndex } from "./ui-BqF49fSy.js";
2
- import { C as pickAssetSource, D as getAssetViewerKind, E as resolveTheme, O as isSpreadsheetFormat, S as isImageReady, T as CALMLENS_THEME, _ as getAssetAspectRatio, a as describeUploadItem, b as getPeakHeights, c as formatMessage, d as getUploadItemOutcome, f as resolveMessages, g as INSTANT_LOAD_MS, h as AssetSession, i as DEFAULT_MESSAGES, l as getDropzoneHint, m as ICON_ATTRIBUTES, o as describeUploader, p as ICONS, r as ASSET_FILE_ICON_SIZE, s as formatBytes, t as CALMLENS_STYLES, u as getUploadItemMessage, v as getAssetView, w as VIEWER_STYLES, x as getPlayedPercent, y as getAssetViewKey } from "./Core-CKk4teFu.js";
3
- import { a as createProgressFetch, i as withProvidedOptions, n as createUploadController$1, r as isFileAccepted, t as UploadController } from "./UploadController-wyor-5Z2.js";
1
+ import { a as ASSET_VIEWERS, c as getSpreadsheetPage, d as createDocumentViewer, f as DEFAULT_VIEWER_MESSAGES, h as loadPdfJs, i as isMountedViewerKind, l as parseSpreadsheetText, m as resolveViewerMessages, n as AssetViewerMount, o as createSpreadsheetViewer, p as formatViewerMessage, r as getMountedViewerOptions, s as createTextViewer, t as MediaStreamPlayer, u as spreadsheetColumnIndex } from "./ui-BVXgDCO2.js";
2
+ import { C as pickAssetSource, D as getAssetViewerKind, E as resolveTheme, O as isSpreadsheetFormat, S as isImageReady, T as CALMLENS_THEME, _ as getAssetAspectRatio, a as describeUploadItem, b as getPeakHeights, c as formatMessage, d as getUploadItemOutcome, f as resolveMessages, g as INSTANT_LOAD_MS, h as AssetSession, i as DEFAULT_MESSAGES, l as getDropzoneHint, m as ICON_ATTRIBUTES, o as describeUploader, p as ICONS, r as ASSET_FILE_ICON_SIZE, s as formatBytes, t as CALMLENS_STYLES, u as getUploadItemMessage, v as getAssetView, w as VIEWER_STYLES, x as getPlayedPercent, y as getAssetViewKey } from "./Core-KYgLJ0eb.js";
3
+ import { a as createProgressFetch, i as withProvidedOptions, n as createUploadController$1, r as isFileAccepted, t as UploadController } from "./UploadController-Civ7QPwT.js";
4
4
  import { c as renderFileIconSvg } from "./FileIcons-M6dzjFxd.js";
5
- import { t as createUploadController } from "./BrowserUpload-DB3WpaC1.js";
5
+ import { t as createUploadController } from "./BrowserUpload-BCmj5eGu.js";
6
6
  // src/viewers/Elements.ts
7
7
  const BaseElement$1 = typeof HTMLElement === "undefined" ? class {} : HTMLElement;
8
8
  const PROPERTIES = [
@@ -1,6 +1,6 @@
1
- import "./Classification-CMM2tZpJ-IdIh63n0.js";
2
- import { N as CdnResource, Rn as AssetInfo, et as GetAssetInfoOptions } from "./CalmLensTypes-C2blKgTu.js";
3
- import "./WebhookPayload-DZWlnvcY.js";
1
+ import "./Classification-DbXUPSvH-C0o2t4mg.js";
2
+ import { Bn as AssetInfo, N as CdnResource, et as GetAssetInfoOptions } from "./CalmLensTypes-fAgF0_lq.js";
3
+ import "./WebhookPayload-DlGoY_db.js";
4
4
  /** Every CDN resource beneath an asset URL, as `getAssetUrl` and `signAssetUrl` accept them. */
5
5
  declare const CDN_RESOURCES: CdnResource[];
6
6
  /**
package/esm/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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 UploadPresetSubmitAssetOptions, A as CdnAssetLocation, An as ProcessingFeatureStage, At as ResetPolicyOptions, B as CreateHashListOptions, Bn as AssetHlsRendition, Bt as StreamingFeatureOptions, C as AssetUploadStatus, Cn as UploadPreset, Ct as MultipartUploadPartOptions, D as BatchAssetsResponse, Dn as DetectedPerson, Dt as RequestAssetReviewOptions, E as BatchAssetsOptions, En as DetectedFace, Et as RemoveAssetContentOptions, F as CdnTransform, Fn as AssetSearchMatchField, Ft as SetPolicyAutomaticUpdatesOptions, G as DeleteAssetOptions, Gn as AssetSafetyHoldReason, Gt as UpdateLensOptions, H as CreateMultipartUploadPartOptions, Hn as AssetRendered, Ht as UpdateAssetOptions, I as ClassifyTextOptions, In as AssetSearchQuery, It as SignAssetUrlOptions, J as EnsureLensesOptions, Jn as MetadataItem, Jt as UpgradePolicyOptions, K as DeleteMetadataFieldOptions, Kn as ExtractedText, Kt as UpdatePolicyOptions, L as ClientRequestDefaults, Lt as SignUploadTokenOptions, M as CdnAssetUrlOptions, Mn as Policy, Mt as RetrieveAssetOptions, N as CdnResource, Nn as CursorPage, Nt as RetryAssetOptions, O as CalmLensAppClientOptions, On as ProcessingFeatureId, Ot as RequestAttempt, P as CdnServeOptions, Pn as LensType, Pt as SearchAssetsOptions, Q as FolderIdOptions, Qt as UploadPresetPage, R as ConnectionOptions, Rn as AssetInfo, Rt as SignedAssetUrl, S as AssetUpload, Sn as PublicProjectSettings, St as MultipartUploadOptions, T as AssignPolicyOptions, Tn as BoundingBox, Tt as PolicyPage, U as CreatePolicyOptions, Un as AssetRenderedKind, Ut as UpdateFolderOptions, V as CreateLensOptions, Vn as AssetPreview, Vt as SubmitAssetOptions, W as DecideAssetOptions, Wn as AssetSafetyHold, Wt as UpdateHashListOptions, X as EnsureUploadPresetsOptions, Xt as UploadPresetDefinition, Y as EnsureMetadataFieldsOptions, Yn as ProcessingOptions, Yt as UploadAssetPartOptions, Z as EnsureUploadPresetsResponse, Zt as UploadPresetIdOptions, _ as AssetPage, _n as EventType, _t as ListLensesOptions, a as AssetChecksums, an as WebhookPayloadInput, at as IdempotencyOptions, b as AssetTimelinePage, bn as MetadataFieldsResource, bt as MoveAssetOptions, c as AssetClassificationFailureReason, cn as AssetTimelineSegment, ct as LensIdOptions, d as AssetContentOptions, dn as TypedEvent, dt as ListAssetTimelineOptions, en as UploadedAsset, et as GetAssetInfoOptions, f as AssetContentRemovalReason, fn as EventCategory, ft as ListAssetsOptions, g as AssetModerationStatus, gn as EventSeverity, gt as ListHashListsOptions, h as AssetModerationDecision, hn as EventFacts, ht as ListHashListEntriesOptions, i as AssetAvailability, in as WebhookHeadersInput, it as HashListPage, j as CdnAssetReference, jn as ProcessingFeatures, jt as RetrieveAssetByExternalIdOptions, k as CalmLensServerClientOptions, kn as ProcessingFeatureResults, kt as RequestOptions, l as AssetClassificationStatus, ln as GetEventsResponse, lt as LensPage, m as AssetModeration, mn as EventFactValues, mt as ListFoldersOptions, n as AppInfo, nn as ViewerClaims, nt as HashListEntryPage, o as AssetChildrenPage, on as AssetBatchOperation, ot as ImageTransformOptions, p as AssetContentStatus, pn as EventFact, pt as ListEventsOptions, q as EnsureLensOptions, qn as FileMetadata, qt as UpdateProjectSettingsOptions, r as Asset, rn as WaitForAssetDecisionOptions, rt as HashListIdOptions, s as AssetClassification, sn as AssetReviewRequest, st as Lens, t as AddHashListEntryOptions, tn as VerifyWebhookSignatureOptions, tt as HashListEntryIdOptions, u as AssetContent, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vt as ListPoliciesOptions, w as AssetVisibility, wn as AgeRange, wt as PolicyIdOptions, x as AssetType, xn as ProjectSettingsResource, xt as MoveFolderOptions, y as AssetSearchResult, yn as Folder, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zn as AssetHls, zt as SignedUploadToken } from "./CalmLensTypes-C2blKgTu.js";
3
- import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-Dl2qwS8L.js";
4
- 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-DZWlnvcY.js";
5
- 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 AssetReviewRequest, 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, 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 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 RequestAssetReviewOptions, type RequestAttempt, type RequestOptions, type ResetPolicyOptions, type RetrieveAssetByExternalIdOptions, 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 };
1
+ import { a as ClassificationQualifierResults, c as HashList, d as ModerationContext, f as MODERATION_CONTEXT_USED_CHARACTERS, h as selectModerationContextItems, i as ClassificationNotEvaluatedReason, l as HashListEntry, m as ModerationContextItem, n as ClassificationCategory, o as Likelihood, p as MODERATION_CONTEXT_USED_ITEMS, r as ClassificationCategoryReport, s as ModerationQualifier, t as ClassificationCategories, u as PolicyAction } from "./Classification-DbXUPSvH-C0o2t4mg.js";
2
+ import { $ as FolderPage, $t as UploadPresetSubmitAssetOptions, A as CdnAssetLocation, An as ProcessingFeatureId, At as ResetPolicyOptions, B as CreateHashListOptions, Bn as AssetInfo, Bt as StreamingFeatureOptions, C as AssetUploadStatus, Cn as ProjectSettingsResource, Ct as MultipartUploadPartOptions, D as BatchAssetsResponse, Dn as BoundingBox, Dt as RequestAssetReviewOptions, E as BatchAssetsOptions, En as AgeRange, Et as RemoveAssetContentOptions, F as CdnTransform, Fn as CursorPage, Ft as SetPolicyAutomaticUpdatesOptions, G as DeleteAssetOptions, Gn as AssetRenderedKind, Gt as UpdateLensOptions, H as CreateMultipartUploadPartOptions, Hn as AssetHlsRendition, Ht as UpdateAssetOptions, I as ClassifyTextOptions, In as LensType, It as SignAssetUrlOptions, J as EnsureLensesOptions, Jn as ExtractedText, Jt as UpgradePolicyOptions, K as DeleteMetadataFieldOptions, Kn as AssetSafetyHold, Kt as UpdatePolicyOptions, L as ClientRequestDefaults, Ln as AssetSearchMatchField, Lt as SignUploadTokenOptions, M as CdnAssetUrlOptions, Mn as ProcessingFeatureStage, Mt as RetrieveAssetOptions, N as CdnResource, Nn as ProcessingFeatures, Nt as RetryAssetOptions, O as CalmLensAppClientOptions, On as DetectedFace, Ot as RequestAttempt, P as CdnServeOptions, Pn as Policy, Pt as SearchAssetsOptions, Q as FolderIdOptions, Qt as UploadPresetPage, R as ConnectionOptions, Rn as AssetSearchQuery, Rt as SignedAssetUrl, S as AssetUpload, Sn as MetadataFieldsResource, St as MultipartUploadOptions, T as AssignPolicyOptions, Tn as UploadPreset, Tt as PolicyPage, U as CreatePolicyOptions, Un as AssetPreview, Ut as UpdateFolderOptions, V as CreateLensOptions, Vn as AssetHls, Vt as SubmitAssetOptions, W as DecideAssetOptions, Wn as AssetRendered, Wt as UpdateHashListOptions, X as EnsureUploadPresetsOptions, Xn as MetadataItem, Xt as UploadPresetDefinition, Y as EnsureMetadataFieldsOptions, Yn as FileMetadata, Yt as UploadAssetPartOptions, Z as EnsureUploadPresetsResponse, Zn as ProcessingOptions, Zt as UploadPresetIdOptions, _ as AssetPage, _n as EventResourceKind, _t as ListLensesOptions, a as AssetChecksums, an as WebhookPayloadInput, at as IdempotencyOptions, b as AssetTimelinePage, bt as MoveAssetOptions, c as AssetClassificationFailureReason, cn as AssetTimelineSegment, ct as LensIdOptions, d as AssetContentOptions, dn as EventResource, dt as ListAssetTimelineOptions, en as UploadedAsset, et as GetAssetInfoOptions, f as AssetContentRemovalReason, fn as TypedEvent, ft as ListAssetsOptions, g as AssetModerationStatus, gn as EventFacts, gt as ListHashListsOptions, h as AssetModerationDecision, hn as EventFactValues, ht as ListHashListEntriesOptions, i as AssetAvailability, in as WebhookHeadersInput, it as HashListPage, j as CdnAssetReference, jn as ProcessingFeatureResults, jt as RetrieveAssetByExternalIdOptions, k as CalmLensServerClientOptions, kn as DetectedPerson, kt as RequestOptions, l as AssetClassificationStatus, ln as GetEventsResponse, lt as LensPage, m as AssetModeration, mn as EventFact, mt as ListFoldersOptions, n as AppInfo, nn as ViewerClaims, nt as HashListEntryPage, o as AssetChildrenPage, on as AssetBatchOperation, ot as ImageTransformOptions, p as AssetContentStatus, pn as EventCategory, pt as ListEventsOptions, q as EnsureLensOptions, qn as AssetSafetyHoldReason, qt as UpdateProjectSettingsOptions, r as Asset, rn as WaitForAssetDecisionOptions, rt as HashListIdOptions, s as AssetClassification, sn as AssetReviewRequest, st as Lens, t as AddHashListEntryOptions, tn as VerifyWebhookSignatureOptions, tt as HashListEntryIdOptions, u as AssetContent, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vn as EventSeverity, vt as ListPoliciesOptions, w as AssetVisibility, wn as PublicProjectSettings, wt as PolicyIdOptions, x as AssetType, xn as Folder, xt as MoveFolderOptions, y as AssetSearchResult, yn as EventType, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zt as SignedUploadToken } from "./CalmLensTypes-fAgF0_lq.js";
3
+ import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-ChrzzIRt.js";
4
+ 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-DlGoY_db.js";
5
+ 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 AssetReviewRequest, 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, 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 EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventResource, type EventResourceKind, 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 RequestAssetReviewOptions, type RequestAttempt, type RequestOptions, type ResetPolicyOptions, type RetrieveAssetByExternalIdOptions, 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/index.js CHANGED
@@ -1 +1,3 @@
1
- export { z as AUTO_PAGING_TO_ARRAY_MAX, W as CALMLENS_ERROR_CODES, a as CDN_RESOURCES, G as CalmLensApiError, K as CalmLensAuthenticationError, q as CalmLensBadRequestError, J as CalmLensCancelledError, Y as CalmLensConfigurationError, X as CalmLensConflictError, Z as CalmLensConnectionError, Q as CalmLensError, $ as CalmLensInvalidArgumentError, et as CalmLensInvalidResponseError, tt as CalmLensNotFoundError, nt as CalmLensPayloadTooLargeError, rt as CalmLensPermissionDeniedError, it as CalmLensRateLimitError, at as CalmLensServerError, ot as CalmLensTimeoutError, st as CalmLensUnprocessableEntityError, ct as CalmLensWebhookVerificationError, p as DEFAULT_CDN_BASE_URL, t as MODERATION_CONTEXT_USED_CHARACTERS, n as MODERATION_CONTEXT_USED_ITEMS, I as SDK_VERSION, u as getAssetInfo, r as selectModerationContextItems } from "./ModerationContextLimits-xvxUjGfL.js";
1
+ import { _ as CalmLensTimeoutError, a as CalmLensCancelledError, c as CalmLensConnectionError, d as CalmLensInvalidResponseError, f as CalmLensNotFoundError, g as CalmLensServerError, h as CalmLensRateLimitError, i as CalmLensBadRequestError, l as CalmLensError, m as CalmLensPermissionDeniedError, n as CalmLensApiError, o as CalmLensConfigurationError, p as CalmLensPayloadTooLargeError, r as CalmLensAuthenticationError, s as CalmLensConflictError, t as CALMLENS_ERROR_CODES, u as CalmLensInvalidArgumentError, v as CalmLensUnprocessableEntityError, y as CalmLensWebhookVerificationError } from "./CalmLensError-BDWThPCr.js";
2
+ import { I as SDK_VERSION, a as CDN_RESOURCES, n as MODERATION_CONTEXT_USED_ITEMS, p as DEFAULT_CDN_BASE_URL, r as selectModerationContextItems, t as MODERATION_CONTEXT_USED_CHARACTERS, u as getAssetInfo, z as AUTO_PAGING_TO_ARRAY_MAX } from "./ModerationContextLimits-DmjWgTBa.js";
3
+ export { AUTO_PAGING_TO_ARRAY_MAX, CALMLENS_ERROR_CODES, CDN_RESOURCES, CalmLensApiError, 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 };
@@ -1,5 +1,5 @@
1
- import { $ as MediaPlayback, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, I as UploadItem, J as AssetSessionState, K as AssetOptions, L as UploadSnapshot, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions, Q as INSTANT_LOAD_MS, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, a as ProgressFetchOptions, at as isImageReady, b as describeUploadItem, c as ICON_ATTRIBUTES, d as AssetDisplayOptions, et as getAssetAspectRatio, f as AssetEventHandlers, g as CalmLensMessages, h as UploaderProps, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, k as CalmLensUpload, l as IconName, m as UploaderDisplayOptions, n as CalmLensTheme, nt as getAssetViewKey, o as createProgressFetch, ot as pickAssetSource, p as AssetProps, q as AssetSession, r as resolveTheme, rt as getPeakHeights, s as ICONS, t as CALMLENS_THEME, tt as getAssetView, u as ASSET_FILE_ICON_SIZE, v as UploadItemView, w as getDropzoneHint, x as describeUploader, y as UploaderView, z as createUploadController } from "./Core-CNmoxDCW.js";
2
- import { i as useCalmLensUpload, n as CalmLensProviderProps, r as UseCalmLensUploadResult, t as CalmLensProvider } from "./ReactUpload-kqEe6gcN.js";
1
+ import { $ as MediaPlayback, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, I as UploadItem, J as AssetSessionState, K as AssetOptions, L as UploadSnapshot, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions, Q as INSTANT_LOAD_MS, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, a as ProgressFetchOptions, at as isImageReady, b as describeUploadItem, c as ICON_ATTRIBUTES, d as AssetDisplayOptions, et as getAssetAspectRatio, f as AssetEventHandlers, g as CalmLensMessages, h as UploaderProps, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, k as CalmLensUpload, l as IconName, m as UploaderDisplayOptions, n as CalmLensTheme, nt as getAssetViewKey, o as createProgressFetch, ot as pickAssetSource, p as AssetProps, q as AssetSession, r as resolveTheme, rt as getPeakHeights, s as ICONS, t as CALMLENS_THEME, tt as getAssetView, u as ASSET_FILE_ICON_SIZE, v as UploadItemView, w as getDropzoneHint, x as describeUploader, y as UploaderView, z as createUploadController } from "./Core-DL531ZPG.js";
2
+ import { i as useCalmLensUpload, n as CalmLensProviderProps, r as UseCalmLensUploadResult, t as CalmLensProvider } from "./ReactUpload-BoS0lr7U.js";
3
3
  import { ReactNode } from "react";
4
4
  import { StyleProp, ViewStyle } from "react-native";
5
5
  /** What the uploader asks your picker for. */
@@ -1,8 +1,8 @@
1
- import { c as assetUrlOf, o as appendAssetLocation } from "./ModerationContextLimits-xvxUjGfL.js";
2
- import { C as pickAssetSource, E as resolveTheme, S as isImageReady, T as CALMLENS_THEME, _ as getAssetAspectRatio, a as describeUploadItem, b as getPeakHeights, c as formatMessage, d as getUploadItemOutcome, f as resolveMessages, g as INSTANT_LOAD_MS, h as AssetSession, i as DEFAULT_MESSAGES, l as getDropzoneHint, m as ICON_ATTRIBUTES, o as describeUploader, p as ICONS, r as ASSET_FILE_ICON_SIZE, s as formatBytes, t as CALMLENS_STYLES, u as getUploadItemMessage, v as getAssetView, x as getPlayedPercent, y as getAssetViewKey } from "./Core-CKk4teFu.js";
3
- import { a as createProgressFetch, i as withProvidedOptions, n as createUploadController, r as isFileAccepted, t as UploadController } from "./UploadController-wyor-5Z2.js";
1
+ import { c as assetUrlOf, o as appendAssetLocation } from "./ModerationContextLimits-DmjWgTBa.js";
2
+ import { C as pickAssetSource, E as resolveTheme, S as isImageReady, T as CALMLENS_THEME, _ as getAssetAspectRatio, a as describeUploadItem, b as getPeakHeights, c as formatMessage, d as getUploadItemOutcome, f as resolveMessages, g as INSTANT_LOAD_MS, h as AssetSession, i as DEFAULT_MESSAGES, l as getDropzoneHint, m as ICON_ATTRIBUTES, o as describeUploader, p as ICONS, r as ASSET_FILE_ICON_SIZE, s as formatBytes, t as CALMLENS_STYLES, u as getUploadItemMessage, v as getAssetView, x as getPlayedPercent, y as getAssetViewKey } from "./Core-KYgLJ0eb.js";
3
+ import { a as createProgressFetch, i as withProvidedOptions, n as createUploadController, r as isFileAccepted, t as UploadController } from "./UploadController-Civ7QPwT.js";
4
4
  import { a as getFileIcon, o as getFileIconLabel, t as FILE_ICON_COLORS } from "./FileIcons-M6dzjFxd.js";
5
- import { i as useUploadSnapshot, n as useCalmLensUpload, r as useOwnController, t as CalmLensProvider } from "./ReactUpload-DY5qQ70s.js";
5
+ import { i as useUploadSnapshot, n as useCalmLensUpload, r as useOwnController, t as CalmLensProvider } from "./ReactUpload-QW_RNxFp.js";
6
6
  import { useEffect, useMemo, useRef, useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { Image, Linking, PixelRatio, Pressable, StyleSheet, Text, View } from "react-native";
package/esm/react.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { $ as MediaPlayback, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, J as AssetSessionState, K as AssetOptions, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, Q as INSTANT_LOAD_MS, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, _t as DEFAULT_VIEWER_MESSAGES, a as ProgressFetchOptions, at as isImageReady, b as describeUploadItem, bt as resolveViewerMessages, c as ICON_ATTRIBUTES, ct as DocumentViewerOptions, d as AssetDisplayOptions, dt as TextViewerOptions, et as getAssetAspectRatio, f as AssetEventHandlers, ft as ViewerAsset, g as CalmLensMessages, gt as isSpreadsheetFormat, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, l as IconName, lt as PdfAssetOptions, m as UploaderDisplayOptions, mt as ViewerTextOptions, n as CalmLensTheme, nt as getAssetViewKey, o as createProgressFetch, ot as pickAssetSource, p as AssetProps, pt as ViewerOptions, q as AssetSession, r as resolveTheme, rt as getPeakHeights, s as ICONS, st as AssetViewerKind, t as CALMLENS_THEME, tt as getAssetView, u as ASSET_FILE_ICON_SIZE, ut as SpreadsheetViewerOptions, v as UploadItemView, vt as ViewerMessages, w as getDropzoneHint, x as describeUploader, y as UploaderView, yt as formatViewerMessage } from "./Core-CNmoxDCW.js";
2
- import { n as CalmLensProviderProps, t as CalmLensProvider } from "./ReactUpload-kqEe6gcN.js";
3
- import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, o as UseCalmLensUploadResult, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-CeGsM9h1.js";
4
- import { _ as spreadsheetColumnIndex, a as isMountedViewerKind, b as AssetViewer, c as AssetViewerOptionsByKind, d as createTextViewer, f as SpreadsheetCell, g as parseSpreadsheetText, h as getSpreadsheetPage, i as getMountedViewerOptions, l as VIEWER_STYLES, m as SpreadsheetSheet, n as AssetViewerMount, o as ASSET_VIEWERS, p as SpreadsheetRow, r as MountedViewerKind, s as AssetViewerName, t as MediaStreamPlayer, u as createSpreadsheetViewer, v as loadPdfJs, x as ViewerState, y as createDocumentViewer } from "./ui-BtmJC-f9.js";
1
+ import { $ as MediaPlayback, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, J as AssetSessionState, K as AssetOptions, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, Q as INSTANT_LOAD_MS, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, _t as DEFAULT_VIEWER_MESSAGES, a as ProgressFetchOptions, at as isImageReady, b as describeUploadItem, bt as resolveViewerMessages, c as ICON_ATTRIBUTES, ct as DocumentViewerOptions, d as AssetDisplayOptions, dt as TextViewerOptions, et as getAssetAspectRatio, f as AssetEventHandlers, ft as ViewerAsset, g as CalmLensMessages, gt as isSpreadsheetFormat, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, l as IconName, lt as PdfAssetOptions, m as UploaderDisplayOptions, mt as ViewerTextOptions, n as CalmLensTheme, nt as getAssetViewKey, o as createProgressFetch, ot as pickAssetSource, p as AssetProps, pt as ViewerOptions, q as AssetSession, r as resolveTheme, rt as getPeakHeights, s as ICONS, st as AssetViewerKind, t as CALMLENS_THEME, tt as getAssetView, u as ASSET_FILE_ICON_SIZE, ut as SpreadsheetViewerOptions, v as UploadItemView, vt as ViewerMessages, w as getDropzoneHint, x as describeUploader, y as UploaderView, yt as formatViewerMessage } from "./Core-DL531ZPG.js";
2
+ import { n as CalmLensProviderProps, t as CalmLensProvider } from "./ReactUpload-BoS0lr7U.js";
3
+ import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, o as UseCalmLensUploadResult, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-DS6KT6o_.js";
4
+ import { _ as spreadsheetColumnIndex, a as isMountedViewerKind, b as AssetViewer, c as AssetViewerOptionsByKind, d as createTextViewer, f as SpreadsheetCell, g as parseSpreadsheetText, h as getSpreadsheetPage, i as getMountedViewerOptions, l as VIEWER_STYLES, m as SpreadsheetSheet, n as AssetViewerMount, o as ASSET_VIEWERS, p as SpreadsheetRow, r as MountedViewerKind, s as AssetViewerName, t as MediaStreamPlayer, u as createSpreadsheetViewer, v as loadPdfJs, x as ViewerState, y as createDocumentViewer } from "./ui-DpZOLeVs.js";
5
5
  import { CSSProperties, HTMLAttributes, ReactNode } from "react";
6
6
  type ElementProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
7
7
  /** Leaves out the stylesheet the viewers render, so you can style the `calmlens-*` classes. */
package/esm/react.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { a as ASSET_VIEWERS, c as getSpreadsheetPage, d as createDocumentViewer, f as DEFAULT_VIEWER_MESSAGES, h as loadPdfJs, i as isMountedViewerKind, l as parseSpreadsheetText, m as resolveViewerMessages, n as AssetViewerMount, o as createSpreadsheetViewer, p as formatViewerMessage, r as getMountedViewerOptions, s as createTextViewer, t as MediaStreamPlayer, u as spreadsheetColumnIndex } from "./ui-BqF49fSy.js";
3
- import { C as pickAssetSource, D as getAssetViewerKind, E as resolveTheme, O as isSpreadsheetFormat, S as isImageReady, T as CALMLENS_THEME, _ as getAssetAspectRatio, a as describeUploadItem, b as getPeakHeights, c as formatMessage, d as getUploadItemOutcome, f as resolveMessages, g as INSTANT_LOAD_MS, h as AssetSession, i as DEFAULT_MESSAGES, l as getDropzoneHint, m as ICON_ATTRIBUTES, n as CALMLENS_STYLES_ID, o as describeUploader, p as ICONS, r as ASSET_FILE_ICON_SIZE, s as formatBytes, t as CALMLENS_STYLES, u as getUploadItemMessage, v as getAssetView, w as VIEWER_STYLES, x as getPlayedPercent, y as getAssetViewKey } from "./Core-CKk4teFu.js";
4
- import { a as createProgressFetch, i as withProvidedOptions, r as isFileAccepted, t as UploadController } from "./UploadController-wyor-5Z2.js";
2
+ import { a as ASSET_VIEWERS, c as getSpreadsheetPage, d as createDocumentViewer, f as DEFAULT_VIEWER_MESSAGES, h as loadPdfJs, i as isMountedViewerKind, l as parseSpreadsheetText, m as resolveViewerMessages, n as AssetViewerMount, o as createSpreadsheetViewer, p as formatViewerMessage, r as getMountedViewerOptions, s as createTextViewer, t as MediaStreamPlayer, u as spreadsheetColumnIndex } from "./ui-BVXgDCO2.js";
3
+ import { C as pickAssetSource, D as getAssetViewerKind, E as resolveTheme, O as isSpreadsheetFormat, S as isImageReady, T as CALMLENS_THEME, _ as getAssetAspectRatio, a as describeUploadItem, b as getPeakHeights, c as formatMessage, d as getUploadItemOutcome, f as resolveMessages, g as INSTANT_LOAD_MS, h as AssetSession, i as DEFAULT_MESSAGES, l as getDropzoneHint, m as ICON_ATTRIBUTES, n as CALMLENS_STYLES_ID, o as describeUploader, p as ICONS, r as ASSET_FILE_ICON_SIZE, s as formatBytes, t as CALMLENS_STYLES, u as getUploadItemMessage, v as getAssetView, w as VIEWER_STYLES, x as getPlayedPercent, y as getAssetViewKey } from "./Core-KYgLJ0eb.js";
4
+ import { a as createProgressFetch, i as withProvidedOptions, r as isFileAccepted, t as UploadController } from "./UploadController-Civ7QPwT.js";
5
5
  import { c as renderFileIconSvg } from "./FileIcons-M6dzjFxd.js";
6
- import { i as useUploadSnapshot, n as useCalmLensUpload$1, r as useOwnController, t as CalmLensProvider } from "./ReactUpload-DY5qQ70s.js";
7
- import { t as createUploadController } from "./BrowserUpload-DB3WpaC1.js";
6
+ import { i as useUploadSnapshot, n as useCalmLensUpload$1, r as useOwnController, t as CalmLensProvider } from "./ReactUpload-QW_RNxFp.js";
7
+ import { t as createUploadController } from "./BrowserUpload-BCmj5eGu.js";
8
8
  import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  const OPTION_NAMES = /* @__PURE__ */ new Set([
package/esm/server.d.ts CHANGED
@@ -1,8 +1,8 @@
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 UploadPresetSubmitAssetOptions, A as CdnAssetLocation, An as ProcessingFeatureStage, At as ResetPolicyOptions, B as CreateHashListOptions, Bn as AssetHlsRendition, Bt as StreamingFeatureOptions, C as AssetUploadStatus, Cn as UploadPreset, Ct as MultipartUploadPartOptions, D as BatchAssetsResponse, Dn as DetectedPerson, Dt as RequestAssetReviewOptions, E as BatchAssetsOptions, En as DetectedFace, Et as RemoveAssetContentOptions, F as CdnTransform, Fn as AssetSearchMatchField, Ft as SetPolicyAutomaticUpdatesOptions, G as DeleteAssetOptions, Gn as AssetSafetyHoldReason, Gt as UpdateLensOptions, H as CreateMultipartUploadPartOptions, Hn as AssetRendered, Ht as UpdateAssetOptions, I as ClassifyTextOptions, In as AssetSearchQuery, It as SignAssetUrlOptions, J as EnsureLensesOptions, Jn as MetadataItem, Jt as UpgradePolicyOptions, K as DeleteMetadataFieldOptions, Kn as ExtractedText, Kt as UpdatePolicyOptions, L as ClientRequestDefaults, Lt as SignUploadTokenOptions, M as CdnAssetUrlOptions, Mn as Policy, Mt as RetrieveAssetOptions, N as CdnResource, Nn as CursorPage, Nt as RetryAssetOptions, O as CalmLensAppClientOptions, On as ProcessingFeatureId, Ot as RequestAttempt, P as CdnServeOptions, Pn as LensType, Pt as SearchAssetsOptions, Q as FolderIdOptions, Qt as UploadPresetPage, R as ConnectionOptions, Rn as AssetInfo, Rt as SignedAssetUrl, S as AssetUpload, Sn as PublicProjectSettings, St as MultipartUploadOptions, T as AssignPolicyOptions, Tn as BoundingBox, Tt as PolicyPage, U as CreatePolicyOptions, Un as AssetRenderedKind, Ut as UpdateFolderOptions, V as CreateLensOptions, Vn as AssetPreview, Vt as SubmitAssetOptions, W as DecideAssetOptions, Wn as AssetSafetyHold, Wt as UpdateHashListOptions, X as EnsureUploadPresetsOptions, Xt as UploadPresetDefinition, Y as EnsureMetadataFieldsOptions, Yn as ProcessingOptions, Yt as UploadAssetPartOptions, Z as EnsureUploadPresetsResponse, Zt as UploadPresetIdOptions, _ as AssetPage, _n as EventType, _t as ListLensesOptions, a as AssetChecksums, an as WebhookPayloadInput, at as IdempotencyOptions, b as AssetTimelinePage, bn as MetadataFieldsResource, bt as MoveAssetOptions, c as AssetClassificationFailureReason, cn as AssetTimelineSegment, ct as LensIdOptions, d as AssetContentOptions, dn as TypedEvent, dt as ListAssetTimelineOptions, en as UploadedAsset, et as GetAssetInfoOptions, f as AssetContentRemovalReason, fn as EventCategory, ft as ListAssetsOptions, g as AssetModerationStatus, gn as EventSeverity, gt as ListHashListsOptions, h as AssetModerationDecision, hn as EventFacts, ht as ListHashListEntriesOptions, i as AssetAvailability, in as WebhookHeadersInput, it as HashListPage, j as CdnAssetReference, jn as ProcessingFeatures, jt as RetrieveAssetByExternalIdOptions, k as CalmLensServerClientOptions, kn as ProcessingFeatureResults, kt as RequestOptions, l as AssetClassificationStatus, ln as GetEventsResponse, lt as LensPage, m as AssetModeration, mn as EventFactValues, mt as ListFoldersOptions, n as AppInfo, nn as ViewerClaims, nt as HashListEntryPage, o as AssetChildrenPage, on as AssetBatchOperation, ot as ImageTransformOptions, p as AssetContentStatus, pn as EventFact, pt as ListEventsOptions, q as EnsureLensOptions, qn as FileMetadata, qt as UpdateProjectSettingsOptions, r as Asset, rn as WaitForAssetDecisionOptions, rt as HashListIdOptions, s as AssetClassification, sn as AssetReviewRequest, st as Lens, t as AddHashListEntryOptions, tn as VerifyWebhookSignatureOptions, tt as HashListEntryIdOptions, u as AssetContent, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vt as ListPoliciesOptions, w as AssetVisibility, wn as AgeRange, wt as PolicyIdOptions, x as AssetType, xn as ProjectSettingsResource, xt as MoveFolderOptions, y as AssetSearchResult, yn as Folder, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zn as AssetHls, zt as SignedUploadToken } from "./CalmLensTypes-C2blKgTu.js";
3
- import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-Dl2qwS8L.js";
4
- 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-DZWlnvcY.js";
5
- import { t as CalmLensServerClient } from "./CalmLensServerClient-BYN_N0lt.js";
1
+ import { a as ClassificationQualifierResults, c as HashList, d as ModerationContext, f as MODERATION_CONTEXT_USED_CHARACTERS, h as selectModerationContextItems, i as ClassificationNotEvaluatedReason, l as HashListEntry, m as ModerationContextItem, n as ClassificationCategory, o as Likelihood, p as MODERATION_CONTEXT_USED_ITEMS, r as ClassificationCategoryReport, s as ModerationQualifier, t as ClassificationCategories, u as PolicyAction } from "./Classification-DbXUPSvH-C0o2t4mg.js";
2
+ import { $ as FolderPage, $t as UploadPresetSubmitAssetOptions, A as CdnAssetLocation, An as ProcessingFeatureId, At as ResetPolicyOptions, B as CreateHashListOptions, Bn as AssetInfo, Bt as StreamingFeatureOptions, C as AssetUploadStatus, Cn as ProjectSettingsResource, Ct as MultipartUploadPartOptions, D as BatchAssetsResponse, Dn as BoundingBox, Dt as RequestAssetReviewOptions, E as BatchAssetsOptions, En as AgeRange, Et as RemoveAssetContentOptions, F as CdnTransform, Fn as CursorPage, Ft as SetPolicyAutomaticUpdatesOptions, G as DeleteAssetOptions, Gn as AssetRenderedKind, Gt as UpdateLensOptions, H as CreateMultipartUploadPartOptions, Hn as AssetHlsRendition, Ht as UpdateAssetOptions, I as ClassifyTextOptions, In as LensType, It as SignAssetUrlOptions, J as EnsureLensesOptions, Jn as ExtractedText, Jt as UpgradePolicyOptions, K as DeleteMetadataFieldOptions, Kn as AssetSafetyHold, Kt as UpdatePolicyOptions, L as ClientRequestDefaults, Ln as AssetSearchMatchField, Lt as SignUploadTokenOptions, M as CdnAssetUrlOptions, Mn as ProcessingFeatureStage, Mt as RetrieveAssetOptions, N as CdnResource, Nn as ProcessingFeatures, Nt as RetryAssetOptions, O as CalmLensAppClientOptions, On as DetectedFace, Ot as RequestAttempt, P as CdnServeOptions, Pn as Policy, Pt as SearchAssetsOptions, Q as FolderIdOptions, Qt as UploadPresetPage, R as ConnectionOptions, Rn as AssetSearchQuery, Rt as SignedAssetUrl, S as AssetUpload, Sn as MetadataFieldsResource, St as MultipartUploadOptions, T as AssignPolicyOptions, Tn as UploadPreset, Tt as PolicyPage, U as CreatePolicyOptions, Un as AssetPreview, Ut as UpdateFolderOptions, V as CreateLensOptions, Vn as AssetHls, Vt as SubmitAssetOptions, W as DecideAssetOptions, Wn as AssetRendered, Wt as UpdateHashListOptions, X as EnsureUploadPresetsOptions, Xn as MetadataItem, Xt as UploadPresetDefinition, Y as EnsureMetadataFieldsOptions, Yn as FileMetadata, Yt as UploadAssetPartOptions, Z as EnsureUploadPresetsResponse, Zn as ProcessingOptions, Zt as UploadPresetIdOptions, _ as AssetPage, _n as EventResourceKind, _t as ListLensesOptions, a as AssetChecksums, an as WebhookPayloadInput, at as IdempotencyOptions, b as AssetTimelinePage, bt as MoveAssetOptions, c as AssetClassificationFailureReason, cn as AssetTimelineSegment, ct as LensIdOptions, d as AssetContentOptions, dn as EventResource, dt as ListAssetTimelineOptions, en as UploadedAsset, et as GetAssetInfoOptions, f as AssetContentRemovalReason, fn as TypedEvent, ft as ListAssetsOptions, g as AssetModerationStatus, gn as EventFacts, gt as ListHashListsOptions, h as AssetModerationDecision, hn as EventFactValues, ht as ListHashListEntriesOptions, i as AssetAvailability, in as WebhookHeadersInput, it as HashListPage, j as CdnAssetReference, jn as ProcessingFeatureResults, jt as RetrieveAssetByExternalIdOptions, k as CalmLensServerClientOptions, kn as DetectedPerson, kt as RequestOptions, l as AssetClassificationStatus, ln as GetEventsResponse, lt as LensPage, m as AssetModeration, mn as EventFact, mt as ListFoldersOptions, n as AppInfo, nn as ViewerClaims, nt as HashListEntryPage, o as AssetChildrenPage, on as AssetBatchOperation, ot as ImageTransformOptions, p as AssetContentStatus, pn as EventCategory, pt as ListEventsOptions, q as EnsureLensOptions, qn as AssetSafetyHoldReason, qt as UpdateProjectSettingsOptions, r as Asset, rn as WaitForAssetDecisionOptions, rt as HashListIdOptions, s as AssetClassification, sn as AssetReviewRequest, st as Lens, t as AddHashListEntryOptions, tn as VerifyWebhookSignatureOptions, tt as HashListEntryIdOptions, u as AssetContent, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vn as EventSeverity, vt as ListPoliciesOptions, w as AssetVisibility, wn as PublicProjectSettings, wt as PolicyIdOptions, x as AssetType, xn as Folder, xt as MoveFolderOptions, y as AssetSearchResult, yn as EventType, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zt as SignedUploadToken } from "./CalmLensTypes-fAgF0_lq.js";
3
+ import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-ChrzzIRt.js";
4
+ 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-DlGoY_db.js";
5
+ import { t as CalmLensServerClient } from "./CalmLensServerClient-BJl2Hsxr.js";
6
6
  export declare const WEBHOOK_DELIVERY_HEADER = "x-calmlens-delivery";
7
7
  export declare const WEBHOOK_TIMESTAMP_HEADER = "x-calmlens-timestamp";
8
8
  export declare const WEBHOOK_SIGNATURE_HEADER = "x-calmlens-signature";
@@ -64,11 +64,11 @@ export declare const getEventFacts: <TEvent extends {
64
64
  */
65
65
  export declare const isTestWebhookEvent: (event: Pick<ReceivedWebhookEventPayload, "facts">) => boolean;
66
66
  /**
67
- * Whether to apply `event` after `lastSequence`, the highest `assetSequence` you have applied for
68
- * its asset (`null` or `undefined` when none). Deliveries can arrive out of order: an event about
69
- * an asset is newer only with a higher `assetSequence`, so a retried or repeated delivery of an
70
- * earlier one returns `false`. Events that aren't about an asset have no sequence and are always
71
- * new. Store the event's `assetSequence` per `assetId` once you have applied it.
67
+ * Whether to apply `event` after `lastSequence`, the highest `resource.sequence` you have applied
68
+ * for its resource (`null` or `undefined` when none). Deliveries can arrive out of order: an event
69
+ * about a resource is newer only with a higher sequence, so a retried or repeated delivery of an
70
+ * earlier one returns `false`. Events about no resource have no sequence and are always new.
71
+ * Store the event's `resource.sequence` per `resource.id` once you have applied it.
72
72
  */
73
- export declare const isNewerAssetEvent: (event: Pick<ReceivedWebhookEventPayload, "assetSequence">, lastSequence: number | null | undefined) => boolean;
74
- 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 AssetReviewRequest, 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, 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, CalmLensServerClient, 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 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 RequestAssetReviewOptions, type RequestAttempt, type RequestOptions, type ResetPolicyOptions, type RetrieveAssetByExternalIdOptions, 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 };
73
+ export declare const isNewerEvent: (event: Pick<ReceivedWebhookEventPayload, "resource">, lastSequence: number | null | undefined) => boolean;
74
+ 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 AssetReviewRequest, 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, 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, CalmLensServerClient, 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 EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventResource, type EventResourceKind, 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 RequestAssetReviewOptions, type RequestAttempt, type RequestOptions, type ResetPolicyOptions, type RetrieveAssetByExternalIdOptions, 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/server.js CHANGED
@@ -1,4 +1,5 @@
1
- import { $ as CalmLensInvalidArgumentError, G as CalmLensApiError, I as SDK_VERSION, J as CalmLensCancelledError, K as CalmLensAuthenticationError, Q as CalmLensError, W as CALMLENS_ERROR_CODES, X as CalmLensConflictError, Y as CalmLensConfigurationError, Z as CalmLensConnectionError, a as CDN_RESOURCES, at as CalmLensServerError, ct as CalmLensWebhookVerificationError, et as CalmLensInvalidResponseError, it as CalmLensRateLimitError, n as MODERATION_CONTEXT_USED_ITEMS, nt as CalmLensPayloadTooLargeError, ot as CalmLensTimeoutError, p as DEFAULT_CDN_BASE_URL, q as CalmLensBadRequestError, r as selectModerationContextItems, rt as CalmLensPermissionDeniedError, st as CalmLensUnprocessableEntityError, t as MODERATION_CONTEXT_USED_CHARACTERS, tt as CalmLensNotFoundError, u as getAssetInfo, z as AUTO_PAGING_TO_ARRAY_MAX } from "./ModerationContextLimits-xvxUjGfL.js";
1
+ import { _ as CalmLensTimeoutError, a as CalmLensCancelledError, c as CalmLensConnectionError, d as CalmLensInvalidResponseError, f as CalmLensNotFoundError, g as CalmLensServerError, h as CalmLensRateLimitError, i as CalmLensBadRequestError, l as CalmLensError, m as CalmLensPermissionDeniedError, n as CalmLensApiError, o as CalmLensConfigurationError, p as CalmLensPayloadTooLargeError, r as CalmLensAuthenticationError, s as CalmLensConflictError, t as CALMLENS_ERROR_CODES, u as CalmLensInvalidArgumentError, v as CalmLensUnprocessableEntityError, y as CalmLensWebhookVerificationError } from "./CalmLensError-BDWThPCr.js";
2
+ import { I as SDK_VERSION, a as CDN_RESOURCES, n as MODERATION_CONTEXT_USED_ITEMS, p as DEFAULT_CDN_BASE_URL, r as selectModerationContextItems, t as MODERATION_CONTEXT_USED_CHARACTERS, u as getAssetInfo, z as AUTO_PAGING_TO_ARRAY_MAX } from "./ModerationContextLimits-DmjWgTBa.js";
2
3
  import "./index.js";
3
- import { a as WEBHOOK_TIMESTAMP_HEADER, c as isNewerAssetEvent, d as verifyWebhookSignature, i as WEBHOOK_SIGNATURE_TOLERANCE_SECONDS, l as isTestWebhookEvent, n as WEBHOOK_DELIVERY_HEADER, o as getEventFact, r as WEBHOOK_SIGNATURE_HEADER, s as getEventFacts, t as CalmLensServerClient, u as parseWebhookEvent } from "./CalmLensServerClient-Pdp7TI8y.js";
4
- export { AUTO_PAGING_TO_ARRAY_MAX, CALMLENS_ERROR_CODES, CDN_RESOURCES, CalmLensApiError, CalmLensAuthenticationError, CalmLensBadRequestError, CalmLensCancelledError, CalmLensConfigurationError, CalmLensConflictError, CalmLensConnectionError, CalmLensError, CalmLensInvalidArgumentError, CalmLensInvalidResponseError, CalmLensNotFoundError, CalmLensPayloadTooLargeError, CalmLensPermissionDeniedError, CalmLensRateLimitError, CalmLensServerClient, CalmLensServerError, CalmLensTimeoutError, CalmLensUnprocessableEntityError, CalmLensWebhookVerificationError, DEFAULT_CDN_BASE_URL, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, SDK_VERSION, WEBHOOK_DELIVERY_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_SIGNATURE_TOLERANCE_SECONDS, WEBHOOK_TIMESTAMP_HEADER, getAssetInfo, getEventFact, getEventFacts, isNewerAssetEvent, isTestWebhookEvent, parseWebhookEvent, selectModerationContextItems, verifyWebhookSignature };
4
+ import { a as WEBHOOK_TIMESTAMP_HEADER, c as isNewerEvent, d as verifyWebhookSignature, i as WEBHOOK_SIGNATURE_TOLERANCE_SECONDS, l as isTestWebhookEvent, n as WEBHOOK_DELIVERY_HEADER, o as getEventFact, r as WEBHOOK_SIGNATURE_HEADER, s as getEventFacts, t as CalmLensServerClient, u as parseWebhookEvent } from "./CalmLensServerClient-C2HGsjkT.js";
5
+ export { AUTO_PAGING_TO_ARRAY_MAX, CALMLENS_ERROR_CODES, CDN_RESOURCES, CalmLensApiError, CalmLensAuthenticationError, CalmLensBadRequestError, CalmLensCancelledError, CalmLensConfigurationError, CalmLensConflictError, CalmLensConnectionError, CalmLensError, CalmLensInvalidArgumentError, CalmLensInvalidResponseError, CalmLensNotFoundError, CalmLensPayloadTooLargeError, CalmLensPermissionDeniedError, CalmLensRateLimitError, CalmLensServerClient, CalmLensServerError, CalmLensTimeoutError, CalmLensUnprocessableEntityError, CalmLensWebhookVerificationError, DEFAULT_CDN_BASE_URL, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, SDK_VERSION, WEBHOOK_DELIVERY_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_SIGNATURE_TOLERANCE_SECONDS, WEBHOOK_TIMESTAMP_HEADER, getAssetInfo, getEventFact, getEventFacts, isNewerEvent, isTestWebhookEvent, parseWebhookEvent, selectModerationContextItems, verifyWebhookSignature };
@@ -1,2 +1,6 @@
1
- import { a as TEST_FACE_AGE_PRESETS, c as TestDetections, d as detectTestTrigger, f as generateTestTextCode, h as testInputForSignal, i as TEST_FACE_AGE_MAX, l as TestInput, m as paintTestImage, n as TEST_DETECTIONS_MAX, o as TEST_INPUT_KEY_PATTERN, p as getImageTestCategories, r as TEST_DETECTION_BOX_MAX, s as TEST_INPUT_PRESETS, t as ClassificationTestSignal, u as detectTestImage } from "./TestTriggers-dognME9k-PWyIfHMI.js";
2
- export { type ClassificationTestSignal, TEST_DETECTIONS_MAX, TEST_DETECTION_BOX_MAX, TEST_FACE_AGE_MAX, TEST_FACE_AGE_PRESETS, TEST_INPUT_KEY_PATTERN, TEST_INPUT_PRESETS, type TestDetections, type TestInput, detectTestImage, detectTestTrigger, generateTestTextCode, getImageTestCategories, paintTestImage, testInputForSignal };
1
+ import { a as TEST_FACE_AGE_PRESETS, c as TestDetections, d as detectTestTrigger, f as getImageTestCategories, i as TEST_FACE_AGE_MAX, l as TestInput, m as testInputForSignal, n as TEST_DETECTIONS_MAX, o as TEST_INPUT_KEY_PATTERN, p as paintTestImage$1, r as TEST_DETECTION_BOX_MAX, s as TEST_INPUT_PRESETS, t as ClassificationTestSignal, u as detectTestImage } from "./TestTriggers-CLjF01NU.js";
2
+ /** A text code for `scenario`, signed with the project's test input key. */
3
+ export declare const generateTestTextCode: (scenario: TestInput | ClassificationTestSignal, key: string) => Promise<string>;
4
+ /** An RGBA test image for `scenario`, signed with the project's test input key. */
5
+ export declare const paintTestImage: (scenario: TestInput | ClassificationTestSignal, key: string) => ReturnType<typeof paintTestImage$1>;
6
+ export { type ClassificationTestSignal, TEST_DETECTIONS_MAX, TEST_DETECTION_BOX_MAX, TEST_FACE_AGE_MAX, TEST_FACE_AGE_PRESETS, TEST_INPUT_KEY_PATTERN, TEST_INPUT_PRESETS, type TestDetections, type TestInput, detectTestImage, detectTestTrigger, getImageTestCategories, testInputForSignal };
@@ -1 +1,12 @@
1
- export { t as TEST_DETECTIONS_MAX, n as TEST_DETECTION_BOX_MAX, r as TEST_FACE_AGE_MAX, i as TEST_FACE_AGE_PRESETS, a as TEST_INPUT_KEY_PATTERN, o as TEST_INPUT_PRESETS, s as detectTestImage, c as detectTestTrigger, l as generateTestTextCode, u as getImageTestCategories, f as paintTestImage, p as testInputForSignal } from "./TestTriggers-uL2Ec8Vt-DYbTEJWm.js";
1
+ import { a as TEST_FACE_AGE_PRESETS, c as detectTestImage, d as getImageTestCategories, i as TEST_FACE_AGE_MAX, l as detectTestTrigger, m as testInputForSignal, n as TEST_DETECTIONS_MAX, o as TEST_INPUT_KEY_PATTERN, p as paintTestImage$1, r as TEST_DETECTION_BOX_MAX, s as TEST_INPUT_PRESETS, t as withValidTestInputArguments, u as generateTestTextCode$1 } from "./CalmLensTestInputArguments-Xh4GIadS.js";
2
+ // src/test-inputs.ts
3
+ /**
4
+ * Portable test inputs: presets and custom instances share one authenticated format. CalmLens
5
+ * recognises a code only as the whole text and a test image only as the whole
6
+ * upload, signed with the project's own key.
7
+ */
8
+ /** A text code for `scenario`, signed with the project's test input key. */
9
+ const generateTestTextCode = (scenario, key) => withValidTestInputArguments(key, () => generateTestTextCode$1(scenario, key));
10
+ /** An RGBA test image for `scenario`, signed with the project's test input key. */
11
+ const paintTestImage = (scenario, key) => withValidTestInputArguments(key, () => paintTestImage$1(scenario, key));
12
+ export { TEST_DETECTIONS_MAX, TEST_DETECTION_BOX_MAX, TEST_FACE_AGE_MAX, TEST_FACE_AGE_PRESETS, TEST_INPUT_KEY_PATTERN, TEST_INPUT_PRESETS, detectTestImage, detectTestTrigger, generateTestTextCode, getImageTestCategories, paintTestImage, testInputForSignal };
package/esm/testing.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Ln as AssetBinaryPayloadInput, Lt as SignUploadTokenOptions, O as CalmLensAppClientOptions, Xt as UploadPresetDefinition, dn as TypedEvent, k as CalmLensServerClientOptions, m as AssetModeration, r as Asset, vn as PermissionGrant, yn as Folder, zt as SignedUploadToken } from "./CalmLensTypes-C2blKgTu.js";
2
- import { t as CalmLensAppClient } from "./CalmLensAppClient-D-BD_Ny1.js";
3
- import { I as ApiErrorCode, n as WebhookEventPayload } from "./WebhookPayload-DZWlnvcY.js";
4
- import { t as CalmLensServerClient } from "./CalmLensServerClient-BYN_N0lt.js";
5
- import { t as ClassificationTestSignal } from "./TestTriggers-dognME9k-PWyIfHMI.js";
1
+ import { Lt as SignUploadTokenOptions, O as CalmLensAppClientOptions, Xt as UploadPresetDefinition, bn as PermissionGrant, fn as TypedEvent, k as CalmLensServerClientOptions, m as AssetModeration, r as Asset, xn as Folder, zn as AssetBinaryPayloadInput, zt as SignedUploadToken } from "./CalmLensTypes-fAgF0_lq.js";
2
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-B4vzxEzg.js";
3
+ import { I as ApiErrorCode, n as WebhookEventPayload } from "./WebhookPayload-DlGoY_db.js";
4
+ import { t as CalmLensServerClient } from "./CalmLensServerClient-BJl2Hsxr.js";
5
+ import { t as ClassificationTestSignal } from "./TestTriggers-CLjF01NU.js";
6
6
  import "zod";
7
7
  /**
8
8
  * Signs a single-use upload token with `apiKey`, locally. `CalmLensServerClient` and
@@ -15,8 +15,6 @@ declare const signUploadTokenWithApiKey: (apiKey: string, options: SignUploadTok
15
15
  nonce?: string;
16
16
  }) => Promise<SignedUploadToken>;
17
17
  export declare const MEDIA_TEST_SIGNALS: readonly ["sexual", "violence", "self-harm", "harassment", "hate", "criminal-activity", "personal-information", "profanity", "violence.graphic"];
18
- /** Read this aloud, or render it as large, high-contrast text in a video frame. */
19
- export declare function generateMediaTestCode(signal: ClassificationTestSignal, testInputKey: string): Promise<string>;
20
18
  export declare const MOCK_API_KEY_PREFIX = "sk_test_";
21
19
  export declare const createMockApiKey: (grants?: PermissionGrant[]) => string;
22
20
  /**
@@ -302,10 +300,14 @@ interface MockServedUrl {
302
300
  /** The `Content-Type` the URL answers with, such as `image/png`. */
303
301
  type: string;
304
302
  }
305
- /** An event to add to the mock feed; omitted fields get defaults. */
306
- /** An event to add to the feed; its `assetSequence` is assigned like the API's. */
307
- type MockEventInput = Partial<Omit<TypedEvent, "type" | "assetSequence">> & {
303
+ /**
304
+ * An event to add to the mock feed; omitted fields get defaults. With `assetId` it is about that
305
+ * asset, and its `resource` takes the asset's next number like the API's; without, it is about no
306
+ * resource.
307
+ */
308
+ type MockEventInput = Partial<Omit<TypedEvent, "type" | "resource">> & {
308
309
  type: TypedEvent["type"];
310
+ assetId?: string | null;
309
311
  };
310
312
  /**
311
313
  * The upload preset settings a `MockCalmLensAppClient` applies, as the API would, with the same
@@ -477,4 +479,6 @@ export declare const createWebhookHeaders: (options: {
477
479
  deliveryId: string;
478
480
  timestampSeconds?: number;
479
481
  }) => Promise<Record<string, string>>;
482
+ /** A spoken media test phrase for `signal`, signed with the project's test input key. */
483
+ export declare const generateMediaTestCode: (signal: ClassificationTestSignal, key: string) => Promise<string>;
480
484
  export { type MockAssetOutcome, type MockCalmLensAppClientOptions, type MockCalmLensCall, type MockCalmLensOperation, type MockCalmLensServerClientOptions, type MockDatabaseStorage, type MockDetectedFace, type MockDetectedLink, type MockDetectedPerson, type MockEventInput, type MockFailureOptions, type MockImageStorage, type MockModerate, type MockModerationInput, type MockModerationTrigger, type MockQrCode, type MockRequestFailure, type MockReviewDecision, type MockServedUrl, type MockStoredContent, type MockTextRegion, type MockUploadPreset, signUploadTokenWithApiKey as signUploadToken };