calmlens 0.30.0 → 0.31.1

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 +2 -29
  2. package/{esm/BrowserUpload-DS6KT6o_.d.ts → cjs/BrowserUpload-BAH54V1q.d.ts} +2 -2
  3. package/cjs/{BrowserUpload-BNeTp6eF.js → BrowserUpload-BwBE37LM.js} +1 -1
  4. package/cjs/{CalmLensAppClient-B4vzxEzg.d.ts → CalmLensAppClient-CdlcDd5l.d.ts} +1 -1
  5. package/cjs/{CalmLensAppClient-ClqGwUbl.js → CalmLensAppClient-D6Y7MgH_.js} +10 -10
  6. package/cjs/{ModerationContextLimits-BVBkcgSU.js → CalmLensCdn-Q68faCEE.js} +2 -52
  7. package/cjs/{CalmLensConnection-og0jh-Fw.js → CalmLensConnection-j2aBsuNx.js} +15 -22
  8. package/cjs/{CalmLensError-DPHJaVjX.js → CalmLensError-ifj5rLmk.js} +5 -0
  9. package/cjs/{CalmLensServerClient-KsXM77rO.js → CalmLensServerClient-CjK691kq.js} +22 -22
  10. package/{esm/CalmLensServerClient-BJl2Hsxr.d.ts → cjs/CalmLensServerClient-CtS66dCU.d.ts} +3 -3
  11. package/cjs/{CalmLensTestInputArguments-BXDBAOg_.js → CalmLensTestInputArguments-PYuRmE0j.js} +1 -1
  12. package/cjs/{CalmLensTypes-fAgF0_lq.d.ts → CalmLensTypes-87kiUg0H.d.ts} +3 -5
  13. package/cjs/{Classification-DbXUPSvH-C0o2t4mg.d.ts → Classification-C3pkrGYS-B7EygpJn.d.ts} +2 -21
  14. package/cjs/{Core-DL531ZPG.d.ts → Core-Ccy4-_sN.d.ts} +2 -2
  15. package/cjs/{Core-eDiPpil9.js → Core-Dsj4tRNP.js} +8 -8
  16. package/cjs/{ReactUpload-DAPAzAwY.js → ReactUpload-B7SdNAel.js} +1 -1
  17. package/cjs/{ReactUpload-BoS0lr7U.d.ts → ReactUpload-DBhppuxM.d.ts} +1 -1
  18. package/{esm/TestTriggers-CLjF01NU.d.ts → cjs/TestTriggers-Daxebd0V.d.ts} +1 -1
  19. package/cjs/{UploadController-BElzwMic.js → UploadController-DsIENVY1.js} +2 -2
  20. package/{esm/WebhookPayload-DlGoY_db.d.ts → cjs/WebhookPayload-B4rA_Dvm.d.ts} +3 -1
  21. package/cjs/app.d.ts +6 -6
  22. package/cjs/app.js +8 -11
  23. package/cjs/elements.d.ts +4 -4
  24. package/cjs/elements.js +4 -4
  25. package/cjs/{index-ChrzzIRt.d.ts → index-CWUnLKoF.d.ts} +8 -4
  26. package/cjs/index.d.ts +5 -5
  27. package/cjs/index.js +7 -10
  28. package/cjs/react-native.d.ts +2 -2
  29. package/cjs/react-native.js +7 -7
  30. package/cjs/react.d.ts +4 -4
  31. package/cjs/react.js +5 -5
  32. package/cjs/server.d.ts +6 -6
  33. package/cjs/server.js +8 -11
  34. package/cjs/test-inputs.d.ts +1 -1
  35. package/cjs/test-inputs.js +1 -1
  36. package/cjs/testing.d.ts +5 -5
  37. package/cjs/testing.js +82 -25
  38. package/cjs/{ui-COjb2Hx6.js → ui-BC70R8KT.js} +3 -3
  39. package/cjs/{ui-DpZOLeVs.d.ts → ui-sjnJhloQ.d.ts} +2 -2
  40. package/cjs/ui.d.ts +2 -2
  41. package/cjs/ui.js +3 -3
  42. package/cjs/vue.d.ts +5 -5
  43. package/cjs/vue.js +4 -4
  44. package/{cjs/BrowserUpload-DS6KT6o_.d.ts → esm/BrowserUpload-BAH54V1q.d.ts} +2 -2
  45. package/esm/{BrowserUpload-BCmj5eGu.js → BrowserUpload-DSLCpWgz.js} +1 -1
  46. package/esm/{CalmLensAppClient-DcPVLn2y.js → CalmLensAppClient-BKanqwYL.js} +3 -3
  47. package/esm/{CalmLensAppClient-B4vzxEzg.d.ts → CalmLensAppClient-CdlcDd5l.d.ts} +1 -1
  48. package/esm/{ModerationContextLimits-DmjWgTBa.js → CalmLensCdn-CL1P1v2t.js} +3 -35
  49. package/esm/{CalmLensConnection-Pm-g6a1l.js → CalmLensConnection-CHNNULpg.js} +2 -9
  50. package/esm/{CalmLensError-BDWThPCr.js → CalmLensError-C15tWu8W.js} +5 -0
  51. package/esm/{CalmLensServerClient-C2HGsjkT.js → CalmLensServerClient-CBjSqROz.js} +3 -3
  52. package/{cjs/CalmLensServerClient-BJl2Hsxr.d.ts → esm/CalmLensServerClient-CtS66dCU.d.ts} +3 -3
  53. package/esm/{CalmLensTestInputArguments-Xh4GIadS.js → CalmLensTestInputArguments-CqPADTkl.js} +1 -1
  54. package/esm/{CalmLensTypes-fAgF0_lq.d.ts → CalmLensTypes-87kiUg0H.d.ts} +3 -5
  55. package/esm/{Classification-DbXUPSvH-C0o2t4mg.d.ts → Classification-C3pkrGYS-B7EygpJn.d.ts} +2 -21
  56. package/esm/{Core-DL531ZPG.d.ts → Core-Ccy4-_sN.d.ts} +2 -2
  57. package/esm/{Core-KYgLJ0eb.js → Core-WxPuobo_.js} +3 -3
  58. package/esm/{ReactUpload-BoS0lr7U.d.ts → ReactUpload-DBhppuxM.d.ts} +1 -1
  59. package/esm/{ReactUpload-QW_RNxFp.js → ReactUpload-U49veoZl.js} +1 -1
  60. package/{cjs/TestTriggers-CLjF01NU.d.ts → esm/TestTriggers-Daxebd0V.d.ts} +1 -1
  61. package/esm/{UploadController-Civ7QPwT.js → UploadController-X2gEFMGy.js} +2 -2
  62. package/{cjs/WebhookPayload-DlGoY_db.d.ts → esm/WebhookPayload-B4rA_Dvm.d.ts} +3 -1
  63. package/esm/app.d.ts +6 -6
  64. package/esm/app.js +4 -4
  65. package/esm/elements.d.ts +4 -4
  66. package/esm/elements.js +4 -4
  67. package/esm/{index-ChrzzIRt.d.ts → index-CWUnLKoF.d.ts} +8 -4
  68. package/esm/index.d.ts +5 -5
  69. package/esm/index.js +3 -3
  70. package/esm/react-native.d.ts +2 -2
  71. package/esm/react-native.js +4 -4
  72. package/esm/react.d.ts +4 -4
  73. package/esm/react.js +5 -5
  74. package/esm/server.d.ts +6 -6
  75. package/esm/server.js +4 -4
  76. package/esm/test-inputs.d.ts +1 -1
  77. package/esm/test-inputs.js +1 -1
  78. package/esm/testing.d.ts +5 -5
  79. package/esm/testing.js +67 -10
  80. package/esm/{ui-BVXgDCO2.js → ui-DS85DGfi.js} +2 -2
  81. package/esm/{ui-DpZOLeVs.d.ts → ui-sjnJhloQ.d.ts} +2 -2
  82. package/esm/ui.d.ts +2 -2
  83. package/esm/ui.js +3 -3
  84. package/esm/vue.d.ts +5 -5
  85. package/esm/vue.js +4 -4
  86. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- const require_CalmLensError = require("./CalmLensError-DPHJaVjX.js");
2
- const require_ModerationContextLimits = require("./ModerationContextLimits-BVBkcgSU.js");
3
- const require_UploadController = require("./UploadController-BElzwMic.js");
1
+ const require_CalmLensError = require("./CalmLensError-ifj5rLmk.js");
2
+ const require_CalmLensCdn = require("./CalmLensCdn-Q68faCEE.js");
3
+ const require_UploadController = require("./UploadController-DsIENVY1.js");
4
4
  const require_FileIcons = require("./FileIcons-Ob003MdS.js");
5
5
  // src/ui/viewers/ViewerAsset.ts
6
6
  /** Spreadsheet MIME types, as `content.format` reports them (compared lower-cased). */
@@ -187,7 +187,7 @@ const withWidth = (base, width) => {
187
187
  ...base,
188
188
  width
189
189
  };
190
- return [require_ModerationContextLimits.transformSelector(base), require_ModerationContextLimits.serializeTransform({ width })].filter(Boolean).join(",");
190
+ return [require_CalmLensCdn.transformSelector(base), require_CalmLensCdn.serializeTransform({ width })].filter(Boolean).join(",");
191
191
  };
192
192
  /** The file-type icon for an asset with nothing to show, from its type. */
193
193
  const FILE_ICONS = {
@@ -212,7 +212,7 @@ const pageLink = (address) => {
212
212
  * The asset URL without any query; claims are added per resource. A resource URL beneath it, such
213
213
  * as a URL signed for `original`, gives the asset URL its resources load beneath.
214
214
  */
215
- const baseOf = (src) => require_ModerationContextLimits.assetUrlOf(src);
215
+ const baseOf = (src) => require_CalmLensCdn.assetUrlOf(src);
216
216
  /** The viewer claims an asset URL carries in its query, if any. */
217
217
  const claimsOf = (src) => {
218
218
  const query = src.split("?", 2)[1];
@@ -227,7 +227,7 @@ const claimsOf = (src) => {
227
227
  /** The claims requests carry: the options', else the URL's. Invalid claims are left out. */
228
228
  const effectiveClaims = (src, claims) => {
229
229
  try {
230
- return require_ModerationContextLimits.toUrlViewerClaims(claims ?? (src ? claimsOf(src) : void 0));
230
+ return require_CalmLensCdn.toUrlViewerClaims(claims ?? (src ? claimsOf(src) : void 0));
231
231
  } catch {
232
232
  return;
233
233
  }
@@ -245,7 +245,7 @@ const getAssetView = (options, state) => {
245
245
  if (!src) return { kind: "pending" };
246
246
  const base = baseOf(src);
247
247
  const claims = effectiveClaims(src, options.viewerClaims);
248
- const url = (resource, location = {}) => require_ModerationContextLimits.appendAssetLocation(base, {
248
+ const url = (resource, location = {}) => require_CalmLensCdn.appendAssetLocation(base, {
249
249
  resource,
250
250
  ...location,
251
251
  viewerClaims: resource === "placeholder" ? claims?.region ? { region: claims.region } : void 0 : claims
@@ -549,7 +549,7 @@ var AssetSession = class {
549
549
  return `${this.#src ?? ""}\n${this.#claimsKey ?? ""}`;
550
550
  }
551
551
  #readInfo() {
552
- return require_ModerationContextLimits.getAssetInfo(baseOf(this.#src), { viewerClaims: effectiveClaims(this.#src, this.#options.viewerClaims) ?? {} });
552
+ return require_CalmLensCdn.getAssetInfo(baseOf(this.#src), { viewerClaims: effectiveClaims(this.#src, this.#options.viewerClaims) ?? {} });
553
553
  }
554
554
  /** The info couldn't be read: an expired signed URL is refreshed, anything else is unavailable. */
555
555
  #refused(error) {
@@ -1,4 +1,4 @@
1
- const require_UploadController = require("./UploadController-BElzwMic.js");
1
+ const require_UploadController = require("./UploadController-DsIENVY1.js");
2
2
  let react = require("react");
3
3
  // src/ui/ReactUpload.ts
4
4
  const CalmLensContext = (0, react.createContext)(void 0);
@@ -1,4 +1,4 @@
1
- import { F as UploadFile, L as UploadSnapshot, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions } from "./Core-DL531ZPG.js";
1
+ import { F as UploadFile, L as UploadSnapshot, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions } from "./Core-Ccy4-_sN.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 { n as ClassificationCategory } from "./Classification-DbXUPSvH-C0o2t4mg.js";
1
+ import { n as ClassificationCategory } from "./Classification-C3pkrGYS-B7EygpJn.js";
2
2
  import * as z from "zod";
3
3
  interface RgbaImage {
4
4
  width: number;
@@ -1,5 +1,5 @@
1
- const require_CalmLensError = require("./CalmLensError-DPHJaVjX.js");
2
- const require_CalmLensAppClient = require("./CalmLensAppClient-ClqGwUbl.js");
1
+ const require_CalmLensError = require("./CalmLensError-ifj5rLmk.js");
2
+ const require_CalmLensAppClient = require("./CalmLensAppClient-D6Y7MgH_.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 { _n as EventResourceKind, fn as TypedEvent, un as Actor } from "./CalmLensTypes-fAgF0_lq.js";
1
+ import { _n as EventResourceKind, fn as TypedEvent, un as Actor } from "./CalmLensTypes-87kiUg0H.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: {
@@ -116,6 +116,7 @@ declare const API_ERROR_CODES: {
116
116
  readonly REMOTE_URL_UNAVAILABLE: "remote-url/unavailable";
117
117
  readonly APPEAL_NOT_FOUND: "appeal/not-found";
118
118
  readonly APPEAL_JUDGMENT_NOT_FOUND: "appeal/judgment-not-found";
119
+ readonly CONTEXT_ASSET_NOT_FOUND: "context/asset-not-found";
119
120
  readonly APPEAL_ASSET_NOT_FOUND: "appeal/asset-not-found";
120
121
  readonly APPEAL_PERMISSION_DENIED: "appeal/permission-denied";
121
122
  readonly APPEAL_ALREADY_REVIEWED: "appeal/already-reviewed";
@@ -267,6 +268,7 @@ declare const CALMLENS_ERROR_CODES: {
267
268
  readonly REMOTE_URL_UNAVAILABLE: "remote-url/unavailable";
268
269
  readonly APPEAL_NOT_FOUND: "appeal/not-found";
269
270
  readonly APPEAL_JUDGMENT_NOT_FOUND: "appeal/judgment-not-found";
271
+ readonly CONTEXT_ASSET_NOT_FOUND: "context/asset-not-found";
270
272
  readonly APPEAL_ASSET_NOT_FOUND: "appeal/asset-not-found";
271
273
  readonly APPEAL_PERMISSION_DENIED: "appeal/permission-denied";
272
274
  readonly APPEAL_ALREADY_REVIEWED: "appeal/already-reviewed";
package/cjs/app.d.ts CHANGED
@@ -1,6 +1,6 @@
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 };
1
+ import { a as ClassificationQualifierResults, c as HashList, d as ModerationContext, i as ClassificationNotEvaluatedReason, l as HashListEntry, n as ClassificationCategory, o as Likelihood, r as ClassificationCategoryReport, s as ModerationQualifier, t as ClassificationCategories, u as PolicyAction } from "./Classification-C3pkrGYS-B7EygpJn.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-87kiUg0H.js";
3
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-CdlcDd5l.js";
4
+ import { a as getAssetInfo, i as CDN_RESOURCES, n as SDK_VERSION, r as DEFAULT_CDN_BASE_URL, t as ModerationContextItem } from "./index-CWUnLKoF.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-B4rA_Dvm.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, 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 };
package/cjs/app.js CHANGED
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_CalmLensError = require("./CalmLensError-DPHJaVjX.js");
3
- const require_ModerationContextLimits = require("./ModerationContextLimits-BVBkcgSU.js");
2
+ const require_CalmLensError = require("./CalmLensError-ifj5rLmk.js");
3
+ const require_CalmLensCdn = require("./CalmLensCdn-Q68faCEE.js");
4
4
  require("./index.js");
5
- const require_CalmLensAppClient = require("./CalmLensAppClient-ClqGwUbl.js");
6
- exports.AUTO_PAGING_TO_ARRAY_MAX = require_ModerationContextLimits.AUTO_PAGING_TO_ARRAY_MAX;
5
+ const require_CalmLensAppClient = require("./CalmLensAppClient-D6Y7MgH_.js");
6
+ exports.AUTO_PAGING_TO_ARRAY_MAX = require_CalmLensCdn.AUTO_PAGING_TO_ARRAY_MAX;
7
7
  exports.CALMLENS_ERROR_CODES = require_CalmLensError.CALMLENS_ERROR_CODES;
8
- exports.CDN_RESOURCES = require_ModerationContextLimits.CDN_RESOURCES;
8
+ exports.CDN_RESOURCES = require_CalmLensCdn.CDN_RESOURCES;
9
9
  exports.CalmLensApiError = require_CalmLensError.CalmLensApiError;
10
10
  exports.CalmLensAppClient = require_CalmLensAppClient.CalmLensAppClient;
11
11
  exports.CalmLensAuthenticationError = require_CalmLensError.CalmLensAuthenticationError;
@@ -25,9 +25,6 @@ exports.CalmLensServerError = require_CalmLensError.CalmLensServerError;
25
25
  exports.CalmLensTimeoutError = require_CalmLensError.CalmLensTimeoutError;
26
26
  exports.CalmLensUnprocessableEntityError = require_CalmLensError.CalmLensUnprocessableEntityError;
27
27
  exports.CalmLensWebhookVerificationError = require_CalmLensError.CalmLensWebhookVerificationError;
28
- exports.DEFAULT_CDN_BASE_URL = require_ModerationContextLimits.DEFAULT_CDN_BASE_URL;
29
- exports.MODERATION_CONTEXT_USED_CHARACTERS = require_ModerationContextLimits.MODERATION_CONTEXT_USED_CHARACTERS;
30
- exports.MODERATION_CONTEXT_USED_ITEMS = require_ModerationContextLimits.MODERATION_CONTEXT_USED_ITEMS;
31
- exports.SDK_VERSION = require_ModerationContextLimits.SDK_VERSION;
32
- exports.getAssetInfo = require_ModerationContextLimits.getAssetInfo;
33
- exports.selectModerationContextItems = require_ModerationContextLimits.selectModerationContextItems;
28
+ exports.DEFAULT_CDN_BASE_URL = require_CalmLensCdn.DEFAULT_CDN_BASE_URL;
29
+ exports.SDK_VERSION = require_CalmLensCdn.SDK_VERSION;
30
+ exports.getAssetInfo = require_CalmLensCdn.getAssetInfo;
package/cjs/elements.d.ts CHANGED
@@ -1,7 +1,7 @@
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";
1
+ import { i as AssetAvailability } from "./CalmLensTypes-87kiUg0H.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-Ccy4-_sN.js";
3
+ import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-BAH54V1q.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-sjnJhloQ.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/cjs/elements.js CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_ui = require("./ui-COjb2Hx6.js");
3
- const require_Core = require("./Core-eDiPpil9.js");
4
- const require_UploadController = require("./UploadController-BElzwMic.js");
2
+ const require_ui = require("./ui-BC70R8KT.js");
3
+ const require_Core = require("./Core-Dsj4tRNP.js");
4
+ const require_UploadController = require("./UploadController-DsIENVY1.js");
5
5
  const require_FileIcons = require("./FileIcons-Ob003MdS.js");
6
- const require_BrowserUpload = require("./BrowserUpload-BNeTp6eF.js");
6
+ const require_BrowserUpload = require("./BrowserUpload-BwBE37LM.js");
7
7
  // src/viewers/Elements.ts
8
8
  const BaseElement$1 = typeof HTMLElement === "undefined" ? class {} : HTMLElement;
9
9
  const PROPERTIES = [
@@ -1,6 +1,6 @@
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";
1
+ import "./Classification-C3pkrGYS-B7EygpJn.js";
2
+ import { Bn as AssetInfo, N as CdnResource, et as GetAssetInfoOptions } from "./CalmLensTypes-87kiUg0H.js";
3
+ import "./WebhookPayload-B4rA_Dvm.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
  /**
@@ -13,4 +13,8 @@ declare const getAssetInfo: (url: string, options?: GetAssetInfoOptions) => Prom
13
13
  declare const DEFAULT_CDN_BASE_URL = "https://cdn.calmlens.com/v1";
14
14
  /** This SDK's version, from its package.json. */
15
15
  declare const SDK_VERSION: string;
16
- export { getAssetInfo as i, DEFAULT_CDN_BASE_URL as n, CDN_RESOURCES as r, SDK_VERSION as t };
16
+ /** An earlier post in the conversation: an asset of the project, read from it when it's used. */
17
+ interface ModerationContextItem {
18
+ assetId: string;
19
+ }
20
+ export { getAssetInfo as a, CDN_RESOURCES as i, SDK_VERSION as n, DEFAULT_CDN_BASE_URL as r, ModerationContextItem as t };
package/cjs/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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 };
1
+ import { a as ClassificationQualifierResults, c as HashList, d as ModerationContext, i as ClassificationNotEvaluatedReason, l as HashListEntry, n as ClassificationCategory, o as Likelihood, r as ClassificationCategoryReport, s as ModerationQualifier, t as ClassificationCategories, u as PolicyAction } from "./Classification-C3pkrGYS-B7EygpJn.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-87kiUg0H.js";
3
+ import { a as getAssetInfo, i as CDN_RESOURCES, n as SDK_VERSION, r as DEFAULT_CDN_BASE_URL, t as ModerationContextItem } from "./index-CWUnLKoF.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-B4rA_Dvm.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, 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 };
package/cjs/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_CalmLensError = require("./CalmLensError-DPHJaVjX.js");
3
- const require_ModerationContextLimits = require("./ModerationContextLimits-BVBkcgSU.js");
4
- exports.AUTO_PAGING_TO_ARRAY_MAX = require_ModerationContextLimits.AUTO_PAGING_TO_ARRAY_MAX;
2
+ const require_CalmLensError = require("./CalmLensError-ifj5rLmk.js");
3
+ const require_CalmLensCdn = require("./CalmLensCdn-Q68faCEE.js");
4
+ exports.AUTO_PAGING_TO_ARRAY_MAX = require_CalmLensCdn.AUTO_PAGING_TO_ARRAY_MAX;
5
5
  exports.CALMLENS_ERROR_CODES = require_CalmLensError.CALMLENS_ERROR_CODES;
6
- exports.CDN_RESOURCES = require_ModerationContextLimits.CDN_RESOURCES;
6
+ exports.CDN_RESOURCES = require_CalmLensCdn.CDN_RESOURCES;
7
7
  exports.CalmLensApiError = require_CalmLensError.CalmLensApiError;
8
8
  exports.CalmLensAuthenticationError = require_CalmLensError.CalmLensAuthenticationError;
9
9
  exports.CalmLensBadRequestError = require_CalmLensError.CalmLensBadRequestError;
@@ -22,9 +22,6 @@ exports.CalmLensServerError = require_CalmLensError.CalmLensServerError;
22
22
  exports.CalmLensTimeoutError = require_CalmLensError.CalmLensTimeoutError;
23
23
  exports.CalmLensUnprocessableEntityError = require_CalmLensError.CalmLensUnprocessableEntityError;
24
24
  exports.CalmLensWebhookVerificationError = require_CalmLensError.CalmLensWebhookVerificationError;
25
- exports.DEFAULT_CDN_BASE_URL = require_ModerationContextLimits.DEFAULT_CDN_BASE_URL;
26
- exports.MODERATION_CONTEXT_USED_CHARACTERS = require_ModerationContextLimits.MODERATION_CONTEXT_USED_CHARACTERS;
27
- exports.MODERATION_CONTEXT_USED_ITEMS = require_ModerationContextLimits.MODERATION_CONTEXT_USED_ITEMS;
28
- exports.SDK_VERSION = require_ModerationContextLimits.SDK_VERSION;
29
- exports.getAssetInfo = require_ModerationContextLimits.getAssetInfo;
30
- exports.selectModerationContextItems = require_ModerationContextLimits.selectModerationContextItems;
25
+ exports.DEFAULT_CDN_BASE_URL = require_CalmLensCdn.DEFAULT_CDN_BASE_URL;
26
+ exports.SDK_VERSION = require_CalmLensCdn.SDK_VERSION;
27
+ exports.getAssetInfo = require_CalmLensCdn.getAssetInfo;
@@ -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-DL531ZPG.js";
2
- import { i as useCalmLensUpload, n as CalmLensProviderProps, r as UseCalmLensUploadResult, t as CalmLensProvider } from "./ReactUpload-BoS0lr7U.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-Ccy4-_sN.js";
2
+ import { i as useCalmLensUpload, n as CalmLensProviderProps, r as UseCalmLensUploadResult, t as CalmLensProvider } from "./ReactUpload-DBhppuxM.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,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_ModerationContextLimits = require("./ModerationContextLimits-BVBkcgSU.js");
3
- const require_Core = require("./Core-eDiPpil9.js");
4
- const require_UploadController = require("./UploadController-BElzwMic.js");
2
+ const require_CalmLensCdn = require("./CalmLensCdn-Q68faCEE.js");
3
+ const require_Core = require("./Core-Dsj4tRNP.js");
4
+ const require_UploadController = require("./UploadController-DsIENVY1.js");
5
5
  const require_FileIcons = require("./FileIcons-Ob003MdS.js");
6
- const require_ReactUpload = require("./ReactUpload-DAPAzAwY.js");
6
+ const require_ReactUpload = require("./ReactUpload-B7SdNAel.js");
7
7
  let react = require("react");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  let react_native = require("react-native");
@@ -412,8 +412,8 @@ function CalmLensAsset(props) {
412
412
  onAvailabilityChange
413
413
  };
414
414
  (0, react.useEffect)(() => session.load());
415
- const base = state.src ? require_ModerationContextLimits.assetUrlOf(state.src) : void 0;
416
- const previewUrl = base && state.info?.content?.preview ? require_ModerationContextLimits.appendAssetLocation(base, {
415
+ const base = state.src ? require_CalmLensCdn.assetUrlOf(state.src) : void 0;
416
+ const previewUrl = base && state.info?.content?.preview ? require_CalmLensCdn.appendAssetLocation(base, {
417
417
  resource: "preview",
418
418
  viewerClaims
419
419
  }) : void 0;
@@ -421,7 +421,7 @@ function CalmLensAsset(props) {
421
421
  const shownImage = view.kind === "image" || view.kind === "website" ? require_Core.pickAssetSource(view, layoutWidth) : void 0;
422
422
  const still = view.kind === "video" && !renderPlayer ? view.poster : view.kind === "audio" && !renderPlayer ? view.waveformUrl : view.kind === "document" ? view.still : view.kind === "text" || view.kind === "spreadsheet" ? previewUrl : void 0;
423
423
  const shown = shownImage ?? still;
424
- const opens = view.kind === "document" ? view.src : view.kind === "website" ? view.link : (view.kind === "text" || view.kind === "spreadsheet") && base ? require_ModerationContextLimits.appendAssetLocation(base, {
424
+ const opens = view.kind === "document" ? view.src : view.kind === "website" ? view.link : (view.kind === "text" || view.kind === "spreadsheet") && base ? require_CalmLensCdn.appendAssetLocation(base, {
425
425
  resource: "original",
426
426
  viewerClaims
427
427
  }) : playable && !renderPlayer ? view.src : void 0;
package/cjs/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-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";
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-Ccy4-_sN.js";
2
+ import { n as CalmLensProviderProps, t as CalmLensProvider } from "./ReactUpload-DBhppuxM.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-BAH54V1q.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-sjnJhloQ.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/cjs/react.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_ui = require("./ui-COjb2Hx6.js");
4
- const require_Core = require("./Core-eDiPpil9.js");
5
- const require_UploadController = require("./UploadController-BElzwMic.js");
3
+ const require_ui = require("./ui-BC70R8KT.js");
4
+ const require_Core = require("./Core-Dsj4tRNP.js");
5
+ const require_UploadController = require("./UploadController-DsIENVY1.js");
6
6
  const require_FileIcons = require("./FileIcons-Ob003MdS.js");
7
- const require_ReactUpload = require("./ReactUpload-DAPAzAwY.js");
8
- const require_BrowserUpload = require("./BrowserUpload-BNeTp6eF.js");
7
+ const require_ReactUpload = require("./ReactUpload-B7SdNAel.js");
8
+ const require_BrowserUpload = require("./BrowserUpload-BwBE37LM.js");
9
9
  let react = require("react");
10
10
  let react_jsx_runtime = require("react/jsx-runtime");
11
11
  const OPTION_NAMES = /* @__PURE__ */ new Set([
package/cjs/server.d.ts CHANGED
@@ -1,8 +1,8 @@
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";
1
+ import { a as ClassificationQualifierResults, c as HashList, d as ModerationContext, i as ClassificationNotEvaluatedReason, l as HashListEntry, n as ClassificationCategory, o as Likelihood, r as ClassificationCategoryReport, s as ModerationQualifier, t as ClassificationCategories, u as PolicyAction } from "./Classification-C3pkrGYS-B7EygpJn.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-87kiUg0H.js";
3
+ import { a as getAssetInfo, i as CDN_RESOURCES, n as SDK_VERSION, r as DEFAULT_CDN_BASE_URL, t as ModerationContextItem } from "./index-CWUnLKoF.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-B4rA_Dvm.js";
5
+ import { t as CalmLensServerClient } from "./CalmLensServerClient-CtS66dCU.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";
@@ -71,4 +71,4 @@ export declare const isTestWebhookEvent: (event: Pick<ReceivedWebhookEventPayloa
71
71
  * Store the event's `resource.sequence` per `resource.id` once you have applied it.
72
72
  */
73
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 };
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, 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 };
package/cjs/server.js CHANGED
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_CalmLensError = require("./CalmLensError-DPHJaVjX.js");
3
- const require_ModerationContextLimits = require("./ModerationContextLimits-BVBkcgSU.js");
2
+ const require_CalmLensError = require("./CalmLensError-ifj5rLmk.js");
3
+ const require_CalmLensCdn = require("./CalmLensCdn-Q68faCEE.js");
4
4
  require("./index.js");
5
- const require_CalmLensServerClient = require("./CalmLensServerClient-KsXM77rO.js");
6
- exports.AUTO_PAGING_TO_ARRAY_MAX = require_ModerationContextLimits.AUTO_PAGING_TO_ARRAY_MAX;
5
+ const require_CalmLensServerClient = require("./CalmLensServerClient-CjK691kq.js");
6
+ exports.AUTO_PAGING_TO_ARRAY_MAX = require_CalmLensCdn.AUTO_PAGING_TO_ARRAY_MAX;
7
7
  exports.CALMLENS_ERROR_CODES = require_CalmLensError.CALMLENS_ERROR_CODES;
8
- exports.CDN_RESOURCES = require_ModerationContextLimits.CDN_RESOURCES;
8
+ exports.CDN_RESOURCES = require_CalmLensCdn.CDN_RESOURCES;
9
9
  exports.CalmLensApiError = require_CalmLensError.CalmLensApiError;
10
10
  exports.CalmLensAuthenticationError = require_CalmLensError.CalmLensAuthenticationError;
11
11
  exports.CalmLensBadRequestError = require_CalmLensError.CalmLensBadRequestError;
@@ -25,19 +25,16 @@ exports.CalmLensServerError = require_CalmLensError.CalmLensServerError;
25
25
  exports.CalmLensTimeoutError = require_CalmLensError.CalmLensTimeoutError;
26
26
  exports.CalmLensUnprocessableEntityError = require_CalmLensError.CalmLensUnprocessableEntityError;
27
27
  exports.CalmLensWebhookVerificationError = require_CalmLensError.CalmLensWebhookVerificationError;
28
- exports.DEFAULT_CDN_BASE_URL = require_ModerationContextLimits.DEFAULT_CDN_BASE_URL;
29
- exports.MODERATION_CONTEXT_USED_CHARACTERS = require_ModerationContextLimits.MODERATION_CONTEXT_USED_CHARACTERS;
30
- exports.MODERATION_CONTEXT_USED_ITEMS = require_ModerationContextLimits.MODERATION_CONTEXT_USED_ITEMS;
31
- exports.SDK_VERSION = require_ModerationContextLimits.SDK_VERSION;
28
+ exports.DEFAULT_CDN_BASE_URL = require_CalmLensCdn.DEFAULT_CDN_BASE_URL;
29
+ exports.SDK_VERSION = require_CalmLensCdn.SDK_VERSION;
32
30
  exports.WEBHOOK_DELIVERY_HEADER = require_CalmLensServerClient.WEBHOOK_DELIVERY_HEADER;
33
31
  exports.WEBHOOK_SIGNATURE_HEADER = require_CalmLensServerClient.WEBHOOK_SIGNATURE_HEADER;
34
32
  exports.WEBHOOK_SIGNATURE_TOLERANCE_SECONDS = require_CalmLensServerClient.WEBHOOK_SIGNATURE_TOLERANCE_SECONDS;
35
33
  exports.WEBHOOK_TIMESTAMP_HEADER = require_CalmLensServerClient.WEBHOOK_TIMESTAMP_HEADER;
36
- exports.getAssetInfo = require_ModerationContextLimits.getAssetInfo;
34
+ exports.getAssetInfo = require_CalmLensCdn.getAssetInfo;
37
35
  exports.getEventFact = require_CalmLensServerClient.getEventFact;
38
36
  exports.getEventFacts = require_CalmLensServerClient.getEventFacts;
39
37
  exports.isNewerEvent = require_CalmLensServerClient.isNewerEvent;
40
38
  exports.isTestWebhookEvent = require_CalmLensServerClient.isTestWebhookEvent;
41
39
  exports.parseWebhookEvent = require_CalmLensServerClient.parseWebhookEvent;
42
- exports.selectModerationContextItems = require_ModerationContextLimits.selectModerationContextItems;
43
40
  exports.verifyWebhookSignature = require_CalmLensServerClient.verifyWebhookSignature;
@@ -1,4 +1,4 @@
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";
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-Daxebd0V.js";
2
2
  /** A text code for `scenario`, signed with the project's test input key. */
3
3
  export declare const generateTestTextCode: (scenario: TestInput | ClassificationTestSignal, key: string) => Promise<string>;
4
4
  /** An RGBA test image for `scenario`, signed with the project's test input key. */
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_CalmLensTestInputArguments = require("./CalmLensTestInputArguments-BXDBAOg_.js");
2
+ const require_CalmLensTestInputArguments = require("./CalmLensTestInputArguments-PYuRmE0j.js");
3
3
  // src/test-inputs.ts
4
4
  /**
5
5
  * Portable test inputs: presets and custom instances share one authenticated format. CalmLens
package/cjs/testing.d.ts CHANGED
@@ -1,8 +1,8 @@
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";
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-87kiUg0H.js";
2
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-CdlcDd5l.js";
3
+ import { I as ApiErrorCode, n as WebhookEventPayload } from "./WebhookPayload-B4rA_Dvm.js";
4
+ import { t as CalmLensServerClient } from "./CalmLensServerClient-CtS66dCU.js";
5
+ import { t as ClassificationTestSignal } from "./TestTriggers-Daxebd0V.js";
6
6
  import "zod";
7
7
  /**
8
8
  * Signs a single-use upload token with `apiKey`, locally. `CalmLensServerClient` and