calmlens 0.38.0 → 0.38.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 (82) hide show
  1. package/bin/calmlens.js +79 -15
  2. package/cjs/{BrowserUpload-BO_ZukUM.js → BrowserUpload-DS0lxg5C.js} +1 -1
  3. package/{esm/BrowserUpload-BuTS7yTy.d.ts → cjs/BrowserUpload-_iMX_nq0.d.ts} +2 -2
  4. package/{esm/CalmLensAppClient-L5x_sMOI.d.ts → cjs/CalmLensAppClient-CQpnc4JZ.d.ts} +1 -1
  5. package/cjs/{CalmLensAppClient-DoNMg8Dh.js → CalmLensAppClient-Diu1QtBz.js} +2 -2
  6. package/cjs/{CalmLensCdn-B_Tbwq10.js → CalmLensCdn-DCj0AfoS.js} +1 -1
  7. package/cjs/{CalmLensConnection-Dhg1amnb.js → CalmLensConnection-BpBq0nQR.js} +13 -3
  8. package/cjs/{CalmLensServerClient-2H0ZpJlr.d.ts → CalmLensServerClient-CeTsE5Jx.d.ts} +2 -2
  9. package/cjs/{CalmLensServerClient-D0wCcQNn.js → CalmLensServerClient-vdHfH0Nf.js} +2 -2
  10. package/cjs/{CalmLensTypes-CCsoVr39.d.ts → CalmLensTypes-jond9q6a.d.ts} +24 -5
  11. package/cjs/{Core-iNgZ8Cij.js → Core-BHQSo7rY.js} +2 -2
  12. package/cjs/{Core-B110Ug8_.d.ts → Core-C6_Q5ZME.d.ts} +2 -2
  13. package/cjs/{ReactUpload-BS8bYIhv.js → ReactUpload-bbHMmEUQ.js} +1 -1
  14. package/{esm/ReactUpload-CbtQtN6v.d.ts → cjs/ReactUpload-fy6zhY8M.d.ts} +1 -1
  15. package/cjs/{UploadController-CVKtUCK0.js → UploadController-C1tiTTRR.js} +1 -1
  16. package/{esm/WebhookPayload-_fvY2eu8.d.ts → cjs/WebhookPayload-DdpKjQGw.d.ts} +1 -1
  17. package/cjs/app.d.ts +4 -4
  18. package/cjs/app.js +2 -2
  19. package/cjs/elements.d.ts +4 -4
  20. package/cjs/elements.js +4 -4
  21. package/cjs/{index-Dk3I5YXf.d.ts → index-CgAztQdX.d.ts} +2 -2
  22. package/cjs/index.d.ts +3 -3
  23. package/cjs/index.js +1 -1
  24. package/cjs/react-native.d.ts +2 -2
  25. package/cjs/react-native.js +4 -4
  26. package/cjs/react.d.ts +4 -4
  27. package/cjs/react.js +5 -5
  28. package/cjs/server.d.ts +4 -4
  29. package/cjs/server.js +2 -2
  30. package/cjs/{test-inputs-BVJZjtFd.js → test-inputs-DJnupsBH.js} +79 -10
  31. package/cjs/{test-inputs-JaZaV9Up.d.ts → test-inputs-fugEK0py.d.ts} +17 -142
  32. package/cjs/test-inputs.d.ts +2 -2
  33. package/cjs/test-inputs.js +3 -1
  34. package/cjs/testing.d.ts +5 -5
  35. package/cjs/testing.js +9 -8
  36. package/cjs/{ui-CuO37F4u.js → ui-2jJvTcCP.js} +2 -2
  37. package/cjs/{ui--E_s-cDd.d.ts → ui-Cp18fGXG.d.ts} +2 -2
  38. package/cjs/ui.d.ts +2 -2
  39. package/cjs/ui.js +3 -3
  40. package/cjs/vue.d.ts +5 -5
  41. package/cjs/vue.js +4 -4
  42. package/esm/{BrowserUpload-DxgiUXC2.js → BrowserUpload-C4YF17a3.js} +1 -1
  43. package/{cjs/BrowserUpload-BuTS7yTy.d.ts → esm/BrowserUpload-_iMX_nq0.d.ts} +2 -2
  44. package/esm/{CalmLensAppClient-C7ScAfRx.js → CalmLensAppClient-B2H7x_SJ.js} +2 -2
  45. package/{cjs/CalmLensAppClient-L5x_sMOI.d.ts → esm/CalmLensAppClient-CQpnc4JZ.d.ts} +1 -1
  46. package/esm/{CalmLensCdn-CW5Fn3ph.js → CalmLensCdn-Dh546rXe.js} +1 -1
  47. package/esm/{CalmLensConnection-Blv8JyLF.js → CalmLensConnection-BbFlVAdl.js} +13 -3
  48. package/esm/{CalmLensServerClient-2H0ZpJlr.d.ts → CalmLensServerClient-CeTsE5Jx.d.ts} +2 -2
  49. package/esm/{CalmLensServerClient-C7n6EzVd.js → CalmLensServerClient-CqH-tqcC.js} +2 -2
  50. package/esm/{CalmLensTypes-CCsoVr39.d.ts → CalmLensTypes-jond9q6a.d.ts} +24 -5
  51. package/esm/{Core-B110Ug8_.d.ts → Core-C6_Q5ZME.d.ts} +2 -2
  52. package/esm/{Core-BRrPxS4i.js → Core-VNBTpvrG.js} +2 -2
  53. package/esm/{ReactUpload-BGPktblV.js → ReactUpload-CRH6rSaX.js} +1 -1
  54. package/{cjs/ReactUpload-CbtQtN6v.d.ts → esm/ReactUpload-fy6zhY8M.d.ts} +1 -1
  55. package/esm/{UploadController-CQ4NouIU.js → UploadController-BYxiONcw.js} +1 -1
  56. package/{cjs/WebhookPayload-_fvY2eu8.d.ts → esm/WebhookPayload-DdpKjQGw.d.ts} +1 -1
  57. package/esm/app.d.ts +4 -4
  58. package/esm/app.js +2 -2
  59. package/esm/elements.d.ts +4 -4
  60. package/esm/elements.js +4 -4
  61. package/esm/{index-Dk3I5YXf.d.ts → index-CgAztQdX.d.ts} +2 -2
  62. package/esm/index.d.ts +3 -3
  63. package/esm/index.js +1 -1
  64. package/esm/react-native.d.ts +2 -2
  65. package/esm/react-native.js +4 -4
  66. package/esm/react.d.ts +4 -4
  67. package/esm/react.js +5 -5
  68. package/esm/server.d.ts +4 -4
  69. package/esm/server.js +2 -2
  70. package/esm/{test-inputs-DizPp8_w.js → test-inputs-BLlkOmNC.js} +68 -11
  71. package/esm/{test-inputs-JaZaV9Up.d.ts → test-inputs-fugEK0py.d.ts} +17 -142
  72. package/esm/test-inputs.d.ts +2 -2
  73. package/esm/test-inputs.js +1 -1
  74. package/esm/testing.d.ts +5 -5
  75. package/esm/testing.js +9 -8
  76. package/esm/{ui--E_s-cDd.d.ts → ui-Cp18fGXG.d.ts} +2 -2
  77. package/esm/{ui-B-QOHuVI.js → ui-siBYiNJZ.js} +2 -2
  78. package/esm/ui.d.ts +2 -2
  79. package/esm/ui.js +3 -3
  80. package/esm/vue.d.ts +5 -5
  81. package/esm/vue.js +4 -4
  82. package/package.json +1 -1
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-CuO37F4u.js");
4
- const require_Core = require("./Core-iNgZ8Cij.js");
5
- const require_UploadController = require("./UploadController-CVKtUCK0.js");
3
+ const require_ui = require("./ui-2jJvTcCP.js");
4
+ const require_Core = require("./Core-BHQSo7rY.js");
5
+ const require_UploadController = require("./UploadController-C1tiTTRR.js");
6
6
  const require_FileIcons = require("./FileIcons-Ob003MdS.js");
7
- const require_ReactUpload = require("./ReactUpload-BS8bYIhv.js");
8
- const require_BrowserUpload = require("./BrowserUpload-BO_ZukUM.js");
7
+ const require_ReactUpload = require("./ReactUpload-bbHMmEUQ.js");
8
+ const require_BrowserUpload = require("./BrowserUpload-DS0lxg5C.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
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 EventFactValues, $n as ProcessingOptions, $t as UpdateFolderOptions, A as CdnAssetLocation, An as LensType, At as PolicyIdOptions, B as CreateHashListOptions, Bn as AssetSearchQuery, Bt as RetrieveAssetByExternalIdOptions, C as AssetUploadStatus, Cn as DetectedFace, Ct as ListPoliciesOptions, D as BatchAssetsResponse, Dn as ProcessingFeatureStage, Dt as MultipartUploadOptions, E as BatchAssetsOptions, En as ProcessingFeatureResults, Et as MoveFolderOptions, F as CdnTransform, Fn as EventResourceKind, Ft as RemoveAssetContentOptions, G as DeleteAssetOptions, Gn as AssetPreview, Gt as SignAssetUrlOptions, H as CreateMultipartUploadPartOptions, Hn as AssetInfo, Ht as RetryAssetOptions, I as ClassifyTextOptions, In as EventSeverity, It as RequestAssetReviewOptions, J as EnsureLensesOptions, Jn as AssetSafetyHold, Jt as SignedUploadToken, K as DeleteMetadataFieldOptions, Kn as AssetRendered, Kt as SignUploadTokenOptions, L as ClientRequestDefaults, Lt as RequestAttempt, M as CdnAssetUrlOptions, Mn as EventResource, Mt as PolicySettings, N as CdnResource, Nt as ProjectSettingsResource, O as CalmLensAppClientOptions, On as ProcessingFeatures, Ot as MultipartUploadPartOptions, P as CdnServeOptions, Pn as EventCategory, Pt as PublicProjectSettings, Q as EventFact, Qn as MetadataItem, Qt as UpdateAssetOptions, R as ConnectionOptions, Rn as Folder, Rt as RequestOptions, S as AssetUpload, Sn as BoundingBox, St as ListLensesOptions, T as AssignPolicyOptions, Tn as ProcessingFeatureId, Tt as MoveAssetOptions, U as CreatePolicyOptions, Un as AssetHls, Ut as SearchAssetsOptions, V as CreateLensOptions, Vt as RetrieveAssetOptions, W as DecideAssetOptions, Wn as AssetHlsRendition, Wt as SetPolicyAutomaticUpdatesOptions, X as EnsureUploadPresetsOptions, Xn as ExtractedText, Xt as SubmitAssetOptions, Y as EnsureMetadataFieldsOptions, Yn as AssetSafetyHoldReason, Yt as StreamingFeatureOptions, Z as EnsureUploadPresetsResponse, Zn as FileMetadata, Zt as TypedEvent, _ as AssetPage, _n as AssetReviewRequest, _t as ListAssetsOptions, a as AssetChecksums, an as UploadAssetPartOptions, at as GetAssetInfoOptions, b as AssetTimelinePage, bn as UploadPreset, bt as ListHashListEntriesOptions, c as AssetClassificationFailureReason, cn as UploadPresetPage, ct as HashListIdOptions, d as AssetContentOptions, dn as VerifyWebhookSignatureOptions, dt as ImageTransformOptions, en as UpdateHashListOptions, et as EventFacts, f as AssetContentRemovalReason, fn as ViewerClaims, ft as Lens, g as AssetModerationStatus, gn as AssetBatchOperation, gt as ListAssetTimelineOptions, h as AssetModerationDecision, hn as WebhookPayloadInput, ht as ListAssetChildrenOptions, i as AssetAvailability, in as UpgradePolicyOptions, it as FolderPage, j as CdnAssetReference, jt as PolicyPage, k as CalmLensServerClientOptions, kn as CursorPage, kt as Policy, l as AssetClassificationStatus, ln as UploadPresetSubmitAssetOptions, lt as HashListPage, m as AssetModeration, mn as WebhookHeadersInput, mt as LensPage, n as AppInfo, nn as UpdatePolicyOptions, nt as EventsPage, o as AssetChildrenPage, on as UploadPresetDefinition, ot as HashListEntryIdOptions, p as AssetContentStatus, pn as WaitForAssetDecisionOptions, pt as LensIdOptions, q as EnsureLensOptions, qn as AssetRenderedKind, qt as SignedAssetUrl, r as Asset, rn as UpdateProjectSettingsOptions, rt as FolderIdOptions, s as AssetClassification, sn as UploadPresetIdOptions, st as HashListEntryPage, t as AddHashListEntryOptions, tn as UpdateLensOptions, tt as EventType, u as AssetContent, un as UploadedAsset, ut as IdempotencyOptions, v as AssetSearchResponse, vn as AssetTimelineSegment, vt as ListEventsOptions, w as AssetVisibility, wn as DetectedPerson, wt as ListUploadPresetsOptions, x as AssetType, xn as AgeRange, xt as ListHashListsOptions, y as AssetSearchResult, yn as MetadataFieldsResource, yt as ListFoldersOptions, z as CreateFolderOptions, zn as AssetSearchMatchField, zt as ResetPolicyOptions } from "./CalmLensTypes-CCsoVr39.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-Dk3I5YXf.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-_fvY2eu8.js";
5
- import { t as CalmLensServerClient } from "./CalmLensServerClient-2H0ZpJlr.js";
2
+ import { $ as EventFactValues, $n as ProcessingOptions, $t as UpdateFolderOptions, A as CdnAssetLocation, An as LensType, At as PolicyIdOptions, B as CreateHashListOptions, Bn as AssetSearchQuery, Bt as RetrieveAssetByExternalIdOptions, C as AssetUploadStatus, Cn as DetectedFace, Ct as ListPoliciesOptions, D as BatchAssetsResponse, Dn as ProcessingFeatureStage, Dt as MultipartUploadOptions, E as BatchAssetsOptions, En as ProcessingFeatureResults, Et as MoveFolderOptions, F as CdnTransform, Fn as EventResourceKind, Ft as RemoveAssetContentOptions, G as DeleteAssetOptions, Gn as AssetPreview, Gt as SignAssetUrlOptions, H as CreateMultipartUploadPartOptions, Hn as AssetInfo, Ht as RetryAssetOptions, I as ClassifyTextOptions, In as EventSeverity, It as RequestAssetReviewOptions, J as EnsureLensesOptions, Jn as AssetSafetyHold, Jt as SignedUploadToken, K as DeleteMetadataFieldOptions, Kn as AssetRendered, Kt as SignUploadTokenOptions, L as ClientRequestDefaults, Lt as RequestAttempt, M as CdnAssetUrlOptions, Mn as EventResource, Mt as PolicySettings, N as CdnResource, Nt as ProjectSettingsResource, O as CalmLensAppClientOptions, On as ProcessingFeatures, Ot as MultipartUploadPartOptions, P as CdnServeOptions, Pn as EventCategory, Pt as PublicProjectSettings, Q as EventFact, Qn as MetadataItem, Qt as UpdateAssetOptions, R as ConnectionOptions, Rn as Folder, Rt as RequestOptions, S as AssetUpload, Sn as BoundingBox, St as ListLensesOptions, T as AssignPolicyOptions, Tn as ProcessingFeatureId, Tt as MoveAssetOptions, U as CreatePolicyOptions, Un as AssetHls, Ut as SearchAssetsOptions, V as CreateLensOptions, Vt as RetrieveAssetOptions, W as DecideAssetOptions, Wn as AssetHlsRendition, Wt as SetPolicyAutomaticUpdatesOptions, X as EnsureUploadPresetsOptions, Xn as ExtractedText, Xt as SubmitAssetOptions, Y as EnsureMetadataFieldsOptions, Yn as AssetSafetyHoldReason, Yt as StreamingFeatureOptions, Z as EnsureUploadPresetsResponse, Zn as FileMetadata, Zt as TypedEvent, _ as AssetPage, _n as AssetReviewRequest, _t as ListAssetsOptions, a as AssetChecksums, an as UploadAssetPartOptions, at as GetAssetInfoOptions, b as AssetTimelinePage, bn as UploadPreset, bt as ListHashListEntriesOptions, c as AssetClassificationFailureReason, cn as UploadPresetPage, ct as HashListIdOptions, d as AssetContentOptions, dn as VerifyWebhookSignatureOptions, dt as ImageTransformOptions, en as UpdateHashListOptions, et as EventFacts, f as AssetContentRemovalReason, fn as ViewerClaims, ft as Lens, g as AssetModerationStatus, gn as AssetBatchOperation, gt as ListAssetTimelineOptions, h as AssetModerationDecision, hn as WebhookPayloadInput, ht as ListAssetChildrenOptions, i as AssetAvailability, in as UpgradePolicyOptions, it as FolderPage, j as CdnAssetReference, jt as PolicyPage, k as CalmLensServerClientOptions, kn as CursorPage, kt as Policy, l as AssetClassificationStatus, ln as UploadPresetSubmitAssetOptions, lt as HashListPage, m as AssetModeration, mn as WebhookHeadersInput, mt as LensPage, n as AppInfo, nn as UpdatePolicyOptions, nt as EventsPage, o as AssetChildrenPage, on as UploadPresetDefinition, ot as HashListEntryIdOptions, p as AssetContentStatus, pn as WaitForAssetDecisionOptions, pt as LensIdOptions, q as EnsureLensOptions, qn as AssetRenderedKind, qt as SignedAssetUrl, r as Asset, rn as UpdateProjectSettingsOptions, rt as FolderIdOptions, s as AssetClassification, sn as UploadPresetIdOptions, st as HashListEntryPage, t as AddHashListEntryOptions, tn as UpdateLensOptions, tt as EventType, u as AssetContent, un as UploadedAsset, ut as IdempotencyOptions, v as AssetSearchResponse, vn as AssetTimelineSegment, vt as ListEventsOptions, w as AssetVisibility, wn as DetectedPerson, wt as ListUploadPresetsOptions, x as AssetType, xn as AgeRange, xt as ListHashListsOptions, y as AssetSearchResult, yn as MetadataFieldsResource, yt as ListFoldersOptions, z as CreateFolderOptions, zn as AssetSearchMatchField, zt as ResetPolicyOptions } from "./CalmLensTypes-jond9q6a.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-CgAztQdX.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-DdpKjQGw.js";
5
+ import { t as CalmLensServerClient } from "./CalmLensServerClient-CeTsE5Jx.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";
package/cjs/server.js CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_CalmLensError = require("./CalmLensError-C9g7GXfU.js");
3
- const require_CalmLensCdn = require("./CalmLensCdn-B_Tbwq10.js");
3
+ const require_CalmLensCdn = require("./CalmLensCdn-DCj0AfoS.js");
4
4
  require("./index.js");
5
- const require_CalmLensServerClient = require("./CalmLensServerClient-D0wCcQNn.js");
5
+ const require_CalmLensServerClient = require("./CalmLensServerClient-vdHfH0Nf.js");
6
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
8
  exports.CDN_RESOURCES = require_CalmLensCdn.CDN_RESOURCES;
@@ -157,7 +157,7 @@ Object.keys(JURISDICTIONS).filter((code) => !JURISDICTIONS[code].optional);
157
157
  Object.keys(JURISDICTIONS).filter((code) => JURISDICTIONS[code].optional);
158
158
  new Set("AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "));
159
159
  const EU_COUNTRIES = new Set("AT BE BG HR CY CZ DK EE FI FR DE GR HU IE IT LV LT LU MT NL PL PT RO SK SI ES SE".split(" "));
160
- // src/contract/TestRegionalActions-Ce8EVv4q.js
160
+ // src/contract/TestRegionalActions-BAzqFJfV.js
161
161
  /**
162
162
  * Marks English text in shared, backend and data modules that the portal shows, so the app's
163
163
  * message catalog (packages/app/vite/messageCatalog.ts) extracts it and the portal can translate it
@@ -1172,13 +1172,15 @@ const MODERATION_QUALIFIER_INFO = {
1172
1172
  }
1173
1173
  };
1174
1174
  const MODERATION_QUALIFIERS = Object.keys(MODERATION_QUALIFIER_INFO);
1175
- MODERATION_QUALIFIERS.reduce((groups, qualifier) => {
1175
+ const MODERATION_QUALIFIERS_BY_CATEGORY = MODERATION_QUALIFIERS.reduce((groups, qualifier) => {
1176
1176
  (groups[MODERATION_QUALIFIER_INFO[qualifier].category] ??= []).push(qualifier);
1177
1177
  return groups;
1178
1178
  }, {});
1179
- function getModerationQualifierInfo(qualifier) {
1180
- return MODERATION_QUALIFIER_INFO[qualifier];
1179
+ /** A qualifier the input type sets (`fromInput`), which no model is asked about. */
1180
+ function isInputQualifier(qualifier) {
1181
+ return MODERATION_QUALIFIER_INFO[qualifier].fromInput === true;
1181
1182
  }
1183
+ const getModerationQualifiers = (category) => MODERATION_QUALIFIERS_BY_CATEGORY[category] ?? [];
1182
1184
  /** Authenticated test inputs can add regional delivery restrictions without inventing evidence. */
1183
1185
  const TEST_REGIONAL_ACTIONS_SCHEMA = /* @__PURE__ */ lazySchema(() => zod$1.array(zod$1.object({
1184
1186
  region: JURISDICTION_SCHEMA.exclude(["global"]),
@@ -1188,7 +1190,7 @@ const TEST_REGIONAL_ACTIONS_SCHEMA = /* @__PURE__ */ lazySchema(() => zod$1.arra
1188
1190
  "block"
1189
1191
  ])
1190
1192
  }).strict()).max(7).refine((entries) => new Set(entries.map((entry) => entry.region)).size === entries.length, "Choose each region once"));
1191
- // src/contract/TestTriggers-uL2Ec8Vt.js
1193
+ // src/contract/TestTriggers-ByQZ27Zp.js
1192
1194
  /**
1193
1195
  * The visual encoding of test images (shared by images and video frames), independent of what the
1194
1196
  * bytes mean. An odd N×N grid of square cells fills the image. Its outer ring alternates black and
@@ -1674,6 +1676,22 @@ const TEST_DETECTIONS_SCHEMA = /* @__PURE__ */ lazySchema(() => zod$1.object({
1674
1676
  people: zod$1.union([zod$1.array(TEST_DETECTED_PERSON_SCHEMA).max(32), zod$1.literal("unavailable")]).optional(),
1675
1677
  faces: zod$1.union([zod$1.array(TEST_DETECTED_FACE_SCHEMA).max(32), zod$1.literal("unavailable")]).optional()
1676
1678
  }).strict());
1679
+ /**
1680
+ * Why a test input's qualifier is refused: each zod issue's `params` carry the `category`,
1681
+ * `qualifier` and `reason`, and `allowed` (the category's qualifiers) for an unknown one.
1682
+ */
1683
+ const TEST_INPUT_QUALIFIER_ERRORS = {
1684
+ /** Not a qualifier of the instance's category. */
1685
+ unknown: "unknown-qualifier",
1686
+ /** A qualifier the input type sets, such as `sexual-text`. */
1687
+ automatic: "input-type-qualifier",
1688
+ /** Given more than once in one instance. */
1689
+ repeated: "repeated-qualifier"
1690
+ };
1691
+ const isKnownQualifier = (qualifier) => MODERATION_QUALIFIERS.includes(qualifier);
1692
+ const isCategoryQualifier = (category, qualifier) => getModerationQualifiers(category).includes(qualifier);
1693
+ /** The qualifiers a test input may give for `category`: its own, less those the input type sets. */
1694
+ const getTestInputQualifiers = (category) => getModerationQualifiers(category).filter((qualifier) => !isInputQualifier(qualifier));
1677
1695
  /** Each row is one qualifying instance. Unselected qualifiers are explicitly absent. */
1678
1696
  const TEST_INPUT_SCHEMA = /* @__PURE__ */ lazySchema(() => zod$1.object({
1679
1697
  regionalActions: TEST_REGIONAL_ACTIONS_SCHEMA.optional(),
@@ -1686,11 +1704,46 @@ const TEST_INPUT_SCHEMA = /* @__PURE__ */ lazySchema(() => zod$1.object({
1686
1704
  "age-restrict",
1687
1705
  "block"
1688
1706
  ]).optional(),
1689
- qualifiers: zod$1.array(zod$1.enum(MODERATION_QUALIFIERS)).max(64)
1707
+ qualifiers: zod$1.array(zod$1.custom((value) => typeof value === "string", { message: "A qualifier is a string, such as harassment-abuse." })).max(64)
1690
1708
  }).strict().superRefine((instance, context) => {
1691
- if (new Set(instance.qualifiers).size !== instance.qualifiers.length || instance.qualifiers.some((q) => getModerationQualifierInfo(q).category !== instance.category || "fromInput" in getModerationQualifierInfo(q))) context.addIssue({
1692
- code: "custom",
1693
- message: "Choose unique content qualifiers from this category; input-type facts are automatic."
1709
+ const seen = /* @__PURE__ */ new Set();
1710
+ instance.qualifiers.forEach((qualifier, index) => {
1711
+ const path = ["qualifiers", index];
1712
+ const details = {
1713
+ category: instance.category,
1714
+ qualifier
1715
+ };
1716
+ if (isKnownQualifier(qualifier) && isInputQualifier(qualifier)) context.addIssue({
1717
+ code: "custom",
1718
+ path,
1719
+ params: {
1720
+ ...details,
1721
+ reason: TEST_INPUT_QUALIFIER_ERRORS.automatic
1722
+ },
1723
+ message: `"${qualifier}" is set by the input type: leave it out.`
1724
+ });
1725
+ else if (!isCategoryQualifier(instance.category, qualifier)) {
1726
+ const allowed = getTestInputQualifiers(instance.category);
1727
+ context.addIssue({
1728
+ code: "custom",
1729
+ path,
1730
+ params: {
1731
+ ...details,
1732
+ reason: TEST_INPUT_QUALIFIER_ERRORS.unknown,
1733
+ allowed
1734
+ },
1735
+ message: `Unknown ${instance.category} qualifier "${qualifier}": choose from ${allowed.join(", ")}.`
1736
+ });
1737
+ } else if (seen.has(qualifier)) context.addIssue({
1738
+ code: "custom",
1739
+ path,
1740
+ params: {
1741
+ ...details,
1742
+ reason: TEST_INPUT_QUALIFIER_ERRORS.repeated
1743
+ },
1744
+ message: `"${qualifier}" is repeated: give each qualifier once.`
1745
+ });
1746
+ seen.add(qualifier);
1694
1747
  });
1695
1748
  })).max(128),
1696
1749
  detections: TEST_DETECTIONS_SCHEMA.optional()
@@ -1994,7 +2047,11 @@ async function withValidTestInputArguments(key, generate) {
1994
2047
  if (error instanceof zod.ZodError) {
1995
2048
  const [issue] = error.issues;
1996
2049
  const path = (issue?.path ?? []).map((segment) => typeof segment === "number" ? segment : String(segment));
1997
- throw require_CalmLensError.invalidArgument(`Invalid test scenario at ${path.length ? path.join(".") : "scenario"}: ${issue?.message ?? error.message}`, { path });
2050
+ const qualifier = issue?.code === "custom" && typeof issue.params?.reason === "string" ? issue.params : {};
2051
+ throw require_CalmLensError.invalidArgument(`Invalid test scenario at ${path.length ? path.join(".") : "scenario"}: ${issue?.message ?? error.message}`, {
2052
+ path,
2053
+ ...qualifier
2054
+ });
1998
2055
  }
1999
2056
  if (error instanceof RangeError) throw require_CalmLensError.invalidArgument(error.message);
2000
2057
  throw error;
@@ -2194,6 +2251,12 @@ Object.defineProperty(exports, "TEST_INPUT_PRESETS", {
2194
2251
  return TEST_INPUT_PRESETS;
2195
2252
  }
2196
2253
  });
2254
+ Object.defineProperty(exports, "TEST_INPUT_QUALIFIER_ERRORS", {
2255
+ enumerable: true,
2256
+ get: function() {
2257
+ return TEST_INPUT_QUALIFIER_ERRORS;
2258
+ }
2259
+ });
2197
2260
  Object.defineProperty(exports, "__toESM", {
2198
2261
  enumerable: true,
2199
2262
  get: function() {
@@ -2230,6 +2293,12 @@ Object.defineProperty(exports, "getImageTestCategories", {
2230
2293
  return getImageTestCategories;
2231
2294
  }
2232
2295
  });
2296
+ Object.defineProperty(exports, "getTestInputQualifiers", {
2297
+ enumerable: true,
2298
+ get: function() {
2299
+ return getTestInputQualifiers;
2300
+ }
2301
+ });
2233
2302
  Object.defineProperty(exports, "lazySchema", {
2234
2303
  enumerable: true,
2235
2304
  get: function() {
@@ -1,4 +1,4 @@
1
- import { n as ClassificationCategory } from "./Classification-C3pkrGYS-B7EygpJn.js";
1
+ import { n as ClassificationCategory, s as ModerationQualifier } from "./Classification-C3pkrGYS-B7EygpJn.js";
2
2
  import * as z from "zod";
3
3
  interface RgbaImage {
4
4
  width: number;
@@ -46,6 +46,20 @@ declare const TEST_DETECTIONS_SCHEMA: z.ZodObject<{
46
46
  }, z.core.$strict>>, z.ZodLiteral<"unavailable">]>>;
47
47
  }, z.core.$strict>;
48
48
  type TestDetections = z.infer<typeof TEST_DETECTIONS_SCHEMA>;
49
+ /**
50
+ * Why a test input's qualifier is refused: each zod issue's `params` carry the `category`,
51
+ * `qualifier` and `reason`, and `allowed` (the category's qualifiers) for an unknown one.
52
+ */
53
+ declare const TEST_INPUT_QUALIFIER_ERRORS: {
54
+ /** Not a qualifier of the instance's category. */
55
+ readonly unknown: "unknown-qualifier";
56
+ /** A qualifier the input type sets, such as `sexual-text`. */
57
+ readonly automatic: "input-type-qualifier";
58
+ /** Given more than once in one instance. */
59
+ readonly repeated: "repeated-qualifier";
60
+ };
61
+ /** The qualifiers a test input may give for `category`: its own, less those the input type sets. */
62
+ declare const getTestInputQualifiers: (category: string) => ModerationQualifier[];
49
63
  /** Each row is one qualifying instance. Unselected qualifiers are explicitly absent. */
50
64
  declare const TEST_INPUT_SCHEMA: z.ZodObject<{
51
65
  regionalActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -91,146 +105,7 @@ declare const TEST_INPUT_SCHEMA: z.ZodObject<{
91
105
  block: "block";
92
106
  limit: "limit";
93
107
  }>>;
94
- qualifiers: z.ZodArray<z.ZodEnum<{
95
- "criminal-activity-alcohol": "criminal-activity-alcohol";
96
- "criminal-activity-coded-incitement": "criminal-activity-coded-incitement";
97
- "criminal-activity-csam": "criminal-activity-csam";
98
- "criminal-activity-demonstration": "criminal-activity-demonstration";
99
- "criminal-activity-discussion": "criminal-activity-discussion";
100
- "criminal-activity-documentary": "criminal-activity-documentary";
101
- "criminal-activity-educational": "criminal-activity-educational";
102
- "criminal-activity-fictional": "criminal-activity-fictional";
103
- "criminal-activity-fraud": "criminal-activity-fraud";
104
- "criminal-activity-gambling": "criminal-activity-gambling";
105
- "criminal-activity-graffiti": "criminal-activity-graffiti";
106
- "criminal-activity-grooming": "criminal-activity-grooming";
107
- "criminal-activity-historical": "criminal-activity-historical";
108
- "criminal-activity-instructions": "criminal-activity-instructions";
109
- "criminal-activity-preparation": "criminal-activity-preparation";
110
- "criminal-activity-promotion": "criminal-activity-promotion";
111
- "criminal-activity-request": "criminal-activity-request";
112
- "criminal-activity-sexual-solicitation": "criminal-activity-sexual-solicitation";
113
- "criminal-activity-substances": "criminal-activity-substances";
114
- "criminal-activity-support-prevention": "criminal-activity-support-prevention";
115
- "criminal-activity-tobacco": "criminal-activity-tobacco";
116
- "harassment-abuse": "harassment-abuse";
117
- "harassment-bullying": "harassment-bullying";
118
- "harassment-documentary": "harassment-documentary";
119
- "harassment-educational": "harassment-educational";
120
- "harassment-encouragement": "harassment-encouragement";
121
- "harassment-fictional": "harassment-fictional";
122
- "harassment-historical": "harassment-historical";
123
- "harassment-mild": "harassment-mild";
124
- "harassment-public-target": "harassment-public-target";
125
- "harassment-sexual": "harassment-sexual";
126
- "harassment-support-prevention": "harassment-support-prevention";
127
- "harassment-threat": "harassment-threat";
128
- "hate-abuse": "hate-abuse";
129
- "hate-adjudicated-nazi-crimes-denial": "hate-adjudicated-nazi-crimes-denial";
130
- "hate-counterspeech": "hate-counterspeech";
131
- "hate-dehumanization": "hate-dehumanization";
132
- "hate-documentary": "hate-documentary";
133
- "hate-educational": "hate-educational";
134
- "hate-exclusion": "hate-exclusion";
135
- "hate-fictional": "hate-fictional";
136
- "hate-historical": "hate-historical";
137
- "hate-hostility": "hate-hostility";
138
- "hate-inferiority": "hate-inferiority";
139
- "hate-nazi-genocide-denial-or-approval": "hate-nazi-genocide-denial-or-approval";
140
- "hate-nazi-genocide-public-peace": "hate-nazi-genocide-public-peace";
141
- "hate-nazi-insignia-public-display": "hate-nazi-insignia-public-display";
142
- "hate-nazi-symbols-public-display": "hate-nazi-symbols-public-display";
143
- "hate-personal": "hate-personal";
144
- "hate-slurs": "hate-slurs";
145
- "hate-support-prevention": "hate-support-prevention";
146
- "hate-symbol": "hate-symbol";
147
- "hate-threat": "hate-threat";
148
- "personal-information-contact": "personal-information-contact";
149
- "personal-information-credentials": "personal-information-credentials";
150
- "personal-information-documentary": "personal-information-documentary";
151
- "personal-information-educational": "personal-information-educational";
152
- "personal-information-email": "personal-information-email";
153
- "personal-information-fictional": "personal-information-fictional";
154
- "personal-information-financial": "personal-information-financial";
155
- "personal-information-government-id": "personal-information-government-id";
156
- "personal-information-historical": "personal-information-historical";
157
- "personal-information-identifiers": "personal-information-identifiers";
158
- "personal-information-location": "personal-information-location";
159
- "personal-information-phone": "personal-information-phone";
160
- "personal-information-request": "personal-information-request";
161
- "personal-information-self-disclosure": "personal-information-self-disclosure";
162
- "personal-information-support-prevention": "personal-information-support-prevention";
163
- "personal-information-third-party": "personal-information-third-party";
164
- "profanity-documentary": "profanity-documentary";
165
- "profanity-educational": "profanity-educational";
166
- "profanity-fictional": "profanity-fictional";
167
- "profanity-historical": "profanity-historical";
168
- "profanity-mild": "profanity-mild";
169
- "profanity-obfuscated": "profanity-obfuscated";
170
- "profanity-slurs": "profanity-slurs";
171
- "profanity-strong": "profanity-strong";
172
- "profanity-support-prevention": "profanity-support-prevention";
173
- "self-harm-act": "self-harm-act";
174
- "self-harm-age-restricted": "self-harm-age-restricted";
175
- "self-harm-documentary": "self-harm-documentary";
176
- "self-harm-educational": "self-harm-educational";
177
- "self-harm-encouragement": "self-harm-encouragement";
178
- "self-harm-fictional": "self-harm-fictional";
179
- "self-harm-historical": "self-harm-historical";
180
- "self-harm-methods": "self-harm-methods";
181
- "self-harm-preparation": "self-harm-preparation";
182
- "self-harm-support-prevention": "self-harm-support-prevention";
183
- "self-harm-thoughts": "self-harm-thoughts";
184
- "sexual-activity": "sexual-activity";
185
- "sexual-adult-promotion": "sexual-adult-promotion";
186
- "sexual-artistic": "sexual-artistic";
187
- "sexual-assault-media": "sexual-assault-media";
188
- "sexual-discussion": "sexual-discussion";
189
- "sexual-documentary": "sexual-documentary";
190
- "sexual-educational": "sexual-educational";
191
- "sexual-explicit-language": "sexual-explicit-language";
192
- "sexual-extreme": "sexual-extreme";
193
- "sexual-fictional": "sexual-fictional";
194
- "sexual-historical": "sexual-historical";
195
- "sexual-incest": "sexual-incest";
196
- "sexual-intimate-image-abuse": "sexual-intimate-image-abuse";
197
- "sexual-minors": "sexual-minors";
198
- "sexual-non-consensual": "sexual-non-consensual";
199
- "sexual-non-erotic-nudity": "sexual-non-erotic-nudity";
200
- "sexual-nudity": "sexual-nudity";
201
- "sexual-paid": "sexual-paid";
202
- "sexual-pornographic-media": "sexual-pornographic-media";
203
- "sexual-revealing-clothing": "sexual-revealing-clothing";
204
- "sexual-solicitation": "sexual-solicitation";
205
- "sexual-strangulation": "sexual-strangulation";
206
- "sexual-suggestive": "sexual-suggestive";
207
- "sexual-support-prevention": "sexual-support-prevention";
208
- "sexual-text": "sexual-text";
209
- "violence-attack": "violence-attack";
210
- "violence-coded-incitement": "violence-coded-incitement";
211
- "violence-decapitation-act": "violence-decapitation-act";
212
- "violence-discussion": "violence-discussion";
213
- "violence-documentary": "violence-documentary";
214
- "violence-educational": "violence-educational";
215
- "violence-encouragement": "violence-encouragement";
216
- "violence-extremism": "violence-extremism";
217
- "violence-fantasy": "violence-fantasy";
218
- "violence-fictional": "violence-fictional";
219
- "violence-gore": "violence-gore";
220
- "violence-graphic": "violence-graphic";
221
- "violence-high-impact": "violence-high-impact";
222
- "violence-historical": "violence-historical";
223
- "violence-injury": "violence-injury";
224
- "violence-natural-death": "violence-natural-death";
225
- "violence-preparation": "violence-preparation";
226
- "violence-sport": "violence-sport";
227
- "violence-support-prevention": "violence-support-prevention";
228
- "violence-text": "violence-text";
229
- "violence-threat": "violence-threat";
230
- "violence-violent-death": "violence-violent-death";
231
- "violence-weapon": "violence-weapon";
232
- "violence-wish": "violence-wish";
233
- }>>;
108
+ qualifiers: z.ZodArray<z.ZodCustom<"criminal-activity-alcohol" | "criminal-activity-coded-incitement" | "criminal-activity-csam" | "criminal-activity-demonstration" | "criminal-activity-discussion" | "criminal-activity-documentary" | "criminal-activity-educational" | "criminal-activity-fictional" | "criminal-activity-fraud" | "criminal-activity-gambling" | "criminal-activity-graffiti" | "criminal-activity-grooming" | "criminal-activity-historical" | "criminal-activity-instructions" | "criminal-activity-preparation" | "criminal-activity-promotion" | "criminal-activity-request" | "criminal-activity-sexual-solicitation" | "criminal-activity-substances" | "criminal-activity-support-prevention" | "criminal-activity-tobacco" | "harassment-abuse" | "harassment-bullying" | "harassment-documentary" | "harassment-educational" | "harassment-encouragement" | "harassment-fictional" | "harassment-historical" | "harassment-mild" | "harassment-public-target" | "harassment-sexual" | "harassment-support-prevention" | "harassment-threat" | "hate-abuse" | "hate-adjudicated-nazi-crimes-denial" | "hate-counterspeech" | "hate-dehumanization" | "hate-documentary" | "hate-educational" | "hate-exclusion" | "hate-fictional" | "hate-historical" | "hate-hostility" | "hate-inferiority" | "hate-nazi-genocide-denial-or-approval" | "hate-nazi-genocide-public-peace" | "hate-nazi-insignia-public-display" | "hate-nazi-symbols-public-display" | "hate-personal" | "hate-slurs" | "hate-support-prevention" | "hate-symbol" | "hate-threat" | "personal-information-contact" | "personal-information-credentials" | "personal-information-documentary" | "personal-information-educational" | "personal-information-email" | "personal-information-fictional" | "personal-information-financial" | "personal-information-government-id" | "personal-information-historical" | "personal-information-identifiers" | "personal-information-location" | "personal-information-phone" | "personal-information-request" | "personal-information-self-disclosure" | "personal-information-support-prevention" | "personal-information-third-party" | "profanity-documentary" | "profanity-educational" | "profanity-fictional" | "profanity-historical" | "profanity-mild" | "profanity-obfuscated" | "profanity-slurs" | "profanity-strong" | "profanity-support-prevention" | "self-harm-act" | "self-harm-age-restricted" | "self-harm-documentary" | "self-harm-educational" | "self-harm-encouragement" | "self-harm-fictional" | "self-harm-historical" | "self-harm-methods" | "self-harm-preparation" | "self-harm-support-prevention" | "self-harm-thoughts" | "sexual-activity" | "sexual-adult-promotion" | "sexual-artistic" | "sexual-assault-media" | "sexual-discussion" | "sexual-documentary" | "sexual-educational" | "sexual-explicit-language" | "sexual-extreme" | "sexual-fictional" | "sexual-historical" | "sexual-incest" | "sexual-intimate-image-abuse" | "sexual-minors" | "sexual-non-consensual" | "sexual-non-erotic-nudity" | "sexual-nudity" | "sexual-paid" | "sexual-pornographic-media" | "sexual-revealing-clothing" | "sexual-solicitation" | "sexual-strangulation" | "sexual-suggestive" | "sexual-support-prevention" | "sexual-text" | "violence-attack" | "violence-coded-incitement" | "violence-decapitation-act" | "violence-discussion" | "violence-documentary" | "violence-educational" | "violence-encouragement" | "violence-extremism" | "violence-fantasy" | "violence-fictional" | "violence-gore" | "violence-graphic" | "violence-high-impact" | "violence-historical" | "violence-injury" | "violence-natural-death" | "violence-preparation" | "violence-sport" | "violence-support-prevention" | "violence-text" | "violence-threat" | "violence-violent-death" | "violence-weapon" | "violence-wish", "criminal-activity-alcohol" | "criminal-activity-coded-incitement" | "criminal-activity-csam" | "criminal-activity-demonstration" | "criminal-activity-discussion" | "criminal-activity-documentary" | "criminal-activity-educational" | "criminal-activity-fictional" | "criminal-activity-fraud" | "criminal-activity-gambling" | "criminal-activity-graffiti" | "criminal-activity-grooming" | "criminal-activity-historical" | "criminal-activity-instructions" | "criminal-activity-preparation" | "criminal-activity-promotion" | "criminal-activity-request" | "criminal-activity-sexual-solicitation" | "criminal-activity-substances" | "criminal-activity-support-prevention" | "criminal-activity-tobacco" | "harassment-abuse" | "harassment-bullying" | "harassment-documentary" | "harassment-educational" | "harassment-encouragement" | "harassment-fictional" | "harassment-historical" | "harassment-mild" | "harassment-public-target" | "harassment-sexual" | "harassment-support-prevention" | "harassment-threat" | "hate-abuse" | "hate-adjudicated-nazi-crimes-denial" | "hate-counterspeech" | "hate-dehumanization" | "hate-documentary" | "hate-educational" | "hate-exclusion" | "hate-fictional" | "hate-historical" | "hate-hostility" | "hate-inferiority" | "hate-nazi-genocide-denial-or-approval" | "hate-nazi-genocide-public-peace" | "hate-nazi-insignia-public-display" | "hate-nazi-symbols-public-display" | "hate-personal" | "hate-slurs" | "hate-support-prevention" | "hate-symbol" | "hate-threat" | "personal-information-contact" | "personal-information-credentials" | "personal-information-documentary" | "personal-information-educational" | "personal-information-email" | "personal-information-fictional" | "personal-information-financial" | "personal-information-government-id" | "personal-information-historical" | "personal-information-identifiers" | "personal-information-location" | "personal-information-phone" | "personal-information-request" | "personal-information-self-disclosure" | "personal-information-support-prevention" | "personal-information-third-party" | "profanity-documentary" | "profanity-educational" | "profanity-fictional" | "profanity-historical" | "profanity-mild" | "profanity-obfuscated" | "profanity-slurs" | "profanity-strong" | "profanity-support-prevention" | "self-harm-act" | "self-harm-age-restricted" | "self-harm-documentary" | "self-harm-educational" | "self-harm-encouragement" | "self-harm-fictional" | "self-harm-historical" | "self-harm-methods" | "self-harm-preparation" | "self-harm-support-prevention" | "self-harm-thoughts" | "sexual-activity" | "sexual-adult-promotion" | "sexual-artistic" | "sexual-assault-media" | "sexual-discussion" | "sexual-documentary" | "sexual-educational" | "sexual-explicit-language" | "sexual-extreme" | "sexual-fictional" | "sexual-historical" | "sexual-incest" | "sexual-intimate-image-abuse" | "sexual-minors" | "sexual-non-consensual" | "sexual-non-erotic-nudity" | "sexual-nudity" | "sexual-paid" | "sexual-pornographic-media" | "sexual-revealing-clothing" | "sexual-solicitation" | "sexual-strangulation" | "sexual-suggestive" | "sexual-support-prevention" | "sexual-text" | "violence-attack" | "violence-coded-incitement" | "violence-decapitation-act" | "violence-discussion" | "violence-documentary" | "violence-educational" | "violence-encouragement" | "violence-extremism" | "violence-fantasy" | "violence-fictional" | "violence-gore" | "violence-graphic" | "violence-high-impact" | "violence-historical" | "violence-injury" | "violence-natural-death" | "violence-preparation" | "violence-sport" | "violence-support-prevention" | "violence-text" | "violence-threat" | "violence-violent-death" | "violence-weapon" | "violence-wish">>;
234
109
  }, z.core.$strict>>;
235
110
  detections: z.ZodOptional<z.ZodObject<{
236
111
  people: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
@@ -421,4 +296,4 @@ interface TestImage {
421
296
  * image, optionally on a plain single-colour border.
422
297
  */
423
298
  declare const paintTestImage: (scenario: TestInput | ClassificationTestSignal, key: string) => Promise<TestImage>;
424
- export { getImageTestCategories as _, MEDIA_TEST_SIGNALS as a, TEST_DETECTION_BOX_MAX as c, TEST_INPUT_KEY_PATTERN as d, TEST_INPUT_PRESETS as f, detectTestTrigger as g, detectTestImage as h, paintTestImage as i, TEST_FACE_AGE_MAX as l, TestInput as m, generateMediaTestCode as n, ClassificationTestSignal as o, TestDetections as p, generateTestTextCode as r, TEST_DETECTIONS_MAX as s, TestImage as t, TEST_FACE_AGE_PRESETS as u, testInputForSignal as v };
299
+ export { detectTestTrigger as _, MEDIA_TEST_SIGNALS as a, testInputForSignal as b, TEST_DETECTION_BOX_MAX as c, TEST_INPUT_KEY_PATTERN as d, TEST_INPUT_PRESETS as f, detectTestImage as g, TestInput as h, paintTestImage as i, TEST_FACE_AGE_MAX as l, TestDetections as m, generateMediaTestCode as n, ClassificationTestSignal as o, TEST_INPUT_QUALIFIER_ERRORS as p, generateTestTextCode as r, TEST_DETECTIONS_MAX as s, TestImage as t, TEST_FACE_AGE_PRESETS as u, getImageTestCategories as v, getTestInputQualifiers as y };
@@ -1,2 +1,2 @@
1
- import { _ as getImageTestCategories, a as MEDIA_TEST_SIGNALS, c as TEST_DETECTION_BOX_MAX, d as TEST_INPUT_KEY_PATTERN, f as TEST_INPUT_PRESETS, g as detectTestTrigger, h as detectTestImage, i as paintTestImage, l as TEST_FACE_AGE_MAX, m as TestInput, n as generateMediaTestCode, o as ClassificationTestSignal, p as TestDetections, r as generateTestTextCode, s as TEST_DETECTIONS_MAX, t as TestImage, u as TEST_FACE_AGE_PRESETS, v as testInputForSignal } from "./test-inputs-JaZaV9Up.js";
2
- export { type ClassificationTestSignal, MEDIA_TEST_SIGNALS, TEST_DETECTIONS_MAX, TEST_DETECTION_BOX_MAX, TEST_FACE_AGE_MAX, TEST_FACE_AGE_PRESETS, TEST_INPUT_KEY_PATTERN, TEST_INPUT_PRESETS, type TestDetections, TestImage, type TestInput, detectTestImage, detectTestTrigger, generateMediaTestCode, generateTestTextCode, getImageTestCategories, paintTestImage, testInputForSignal };
1
+ import { _ as detectTestTrigger, a as MEDIA_TEST_SIGNALS, b as testInputForSignal, c as TEST_DETECTION_BOX_MAX, d as TEST_INPUT_KEY_PATTERN, f as TEST_INPUT_PRESETS, g as detectTestImage, h as TestInput, i as paintTestImage, l as TEST_FACE_AGE_MAX, m as TestDetections, n as generateMediaTestCode, o as ClassificationTestSignal, p as TEST_INPUT_QUALIFIER_ERRORS, r as generateTestTextCode, s as TEST_DETECTIONS_MAX, t as TestImage, u as TEST_FACE_AGE_PRESETS, v as getImageTestCategories, y as getTestInputQualifiers } from "./test-inputs-fugEK0py.js";
2
+ export { type ClassificationTestSignal, MEDIA_TEST_SIGNALS, TEST_DETECTIONS_MAX, TEST_DETECTION_BOX_MAX, TEST_FACE_AGE_MAX, TEST_FACE_AGE_PRESETS, TEST_INPUT_KEY_PATTERN, TEST_INPUT_PRESETS, TEST_INPUT_QUALIFIER_ERRORS, type TestDetections, TestImage, type TestInput, detectTestImage, detectTestTrigger, generateMediaTestCode, generateTestTextCode, getImageTestCategories, getTestInputQualifiers, paintTestImage, testInputForSignal };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_test_inputs = require("./test-inputs-BVJZjtFd.js");
2
+ const require_test_inputs = require("./test-inputs-DJnupsBH.js");
3
3
  exports.MEDIA_TEST_SIGNALS = require_test_inputs.MEDIA_TEST_SIGNALS;
4
4
  exports.TEST_DETECTIONS_MAX = require_test_inputs.TEST_DETECTIONS_MAX;
5
5
  exports.TEST_DETECTION_BOX_MAX = require_test_inputs.TEST_DETECTION_BOX_MAX;
@@ -7,10 +7,12 @@ exports.TEST_FACE_AGE_MAX = require_test_inputs.TEST_FACE_AGE_MAX;
7
7
  exports.TEST_FACE_AGE_PRESETS = require_test_inputs.TEST_FACE_AGE_PRESETS;
8
8
  exports.TEST_INPUT_KEY_PATTERN = require_test_inputs.TEST_INPUT_KEY_PATTERN;
9
9
  exports.TEST_INPUT_PRESETS = require_test_inputs.TEST_INPUT_PRESETS;
10
+ exports.TEST_INPUT_QUALIFIER_ERRORS = require_test_inputs.TEST_INPUT_QUALIFIER_ERRORS;
10
11
  exports.detectTestImage = require_test_inputs.detectTestImage;
11
12
  exports.detectTestTrigger = require_test_inputs.detectTestTrigger;
12
13
  exports.generateMediaTestCode = require_test_inputs.generateMediaTestCode;
13
14
  exports.generateTestTextCode = require_test_inputs.generateTestTextCode;
14
15
  exports.getImageTestCategories = require_test_inputs.getImageTestCategories;
16
+ exports.getTestInputQualifiers = require_test_inputs.getTestInputQualifiers;
15
17
  exports.paintTestImage = require_test_inputs.paintTestImage;
16
18
  exports.testInputForSignal = require_test_inputs.testInputForSignal;
package/cjs/testing.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Jt as SignedUploadToken, Kt as SignUploadTokenOptions, Ln as PermissionGrant, Nn as TypedEvent, O as CalmLensAppClientOptions, Rn as Folder, Vn as AssetBinaryPayloadInput, k as CalmLensServerClientOptions, m as AssetModeration, on as UploadPresetDefinition, r as Asset } from "./CalmLensTypes-CCsoVr39.js";
2
- import { t as CalmLensAppClient } from "./CalmLensAppClient-L5x_sMOI.js";
3
- import { I as ApiErrorCode, n as WebhookEventPayload } from "./WebhookPayload-_fvY2eu8.js";
4
- import { t as CalmLensServerClient } from "./CalmLensServerClient-2H0ZpJlr.js";
5
- import { a as MEDIA_TEST_SIGNALS, n as generateMediaTestCode } from "./test-inputs-JaZaV9Up.js";
1
+ import { Jt as SignedUploadToken, Kt as SignUploadTokenOptions, Ln as PermissionGrant, Nn as TypedEvent, O as CalmLensAppClientOptions, Rn as Folder, Vn as AssetBinaryPayloadInput, k as CalmLensServerClientOptions, m as AssetModeration, on as UploadPresetDefinition, r as Asset } from "./CalmLensTypes-jond9q6a.js";
2
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-CQpnc4JZ.js";
3
+ import { I as ApiErrorCode, n as WebhookEventPayload } from "./WebhookPayload-DdpKjQGw.js";
4
+ import { t as CalmLensServerClient } from "./CalmLensServerClient-CeTsE5Jx.js";
5
+ import { a as MEDIA_TEST_SIGNALS, n as generateMediaTestCode } from "./test-inputs-fugEK0py.js";
6
6
  import "zod";
7
7
  /**
8
8
  * Signs a single-use upload token with `apiKey`, locally. `CalmLensServerClient` and
package/cjs/testing.js CHANGED
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_test_inputs = require("./test-inputs-BVJZjtFd.js");
2
+ const require_test_inputs = require("./test-inputs-DJnupsBH.js");
3
3
  const require_CalmLensError = require("./CalmLensError-C9g7GXfU.js");
4
- const require_CalmLensCdn = require("./CalmLensCdn-B_Tbwq10.js");
5
- const require_CalmLensServerClient = require("./CalmLensServerClient-D0wCcQNn.js");
6
- const require_CalmLensConnection = require("./CalmLensConnection-Dhg1amnb.js");
4
+ const require_CalmLensCdn = require("./CalmLensCdn-DCj0AfoS.js");
5
+ const require_CalmLensServerClient = require("./CalmLensServerClient-vdHfH0Nf.js");
6
+ const require_CalmLensConnection = require("./CalmLensConnection-BpBq0nQR.js");
7
7
  const require_CryptoUtils_BLCa_oZe = require("./CryptoUtils-BLCa-oZe-leCkr1ko.js");
8
- const require_CalmLensAppClient = require("./CalmLensAppClient-DoNMg8Dh.js");
9
- const require_UploadController = require("./UploadController-CVKtUCK0.js");
8
+ const require_CalmLensAppClient = require("./CalmLensAppClient-Diu1QtBz.js");
9
+ const require_UploadController = require("./UploadController-C1tiTTRR.js");
10
10
  let zod = require("zod");
11
11
  let zod$1 = require_test_inputs.__toESM(zod, 1);
12
12
  zod = require_test_inputs.__toESM(zod);
@@ -11023,10 +11023,11 @@ var MockCalmLensApi = class {
11023
11023
  const { content, part, sizeInBytes: _size, totalSizeInBytes, ...fields } = body;
11024
11024
  const text = content ?? part;
11025
11025
  if (text === void 0) return fields;
11026
- if (typeof text.plainText !== "string" || typeof text.type !== "string") throw invalidField("validation/invalid-type", content ? "content" : "part");
11026
+ const type = content && text.type === void 0 ? "text/plain" : text.type;
11027
+ if (typeof text.plainText !== "string" || typeof type !== "string") throw invalidField("validation/invalid-type", content ? "content" : "part");
11027
11028
  return {
11028
11029
  ...fields,
11029
- contentType: text.type,
11030
+ contentType: type,
11030
11031
  bytes: new TextEncoder().encode(text.plainText),
11031
11032
  part: part ? {
11032
11033
  partNumber: typeof part.partNumber === "number" ? part.partNumber : 1,
@@ -1,5 +1,5 @@
1
- const require_CalmLensCdn = require("./CalmLensCdn-B_Tbwq10.js");
2
- require("./Core-iNgZ8Cij.js");
1
+ const require_CalmLensCdn = require("./CalmLensCdn-DCj0AfoS.js");
2
+ require("./Core-BHQSo7rY.js");
3
3
  // src/ui/viewers/PdfLoader.ts
4
4
  let loading;
5
5
  /**
@@ -1,5 +1,5 @@
1
- import "./CalmLensTypes-CCsoVr39.js";
2
- import { K as AssetOptions, Z as AssetView, ct as DocumentViewerOptions, dt as TextViewerOptions, lt as PdfAssetOptions, pt as ViewerOptions, q as AssetSession, ut as SpreadsheetViewerOptions } from "./Core-B110Ug8_.js";
1
+ import "./CalmLensTypes-jond9q6a.js";
2
+ import { K as AssetOptions, Z as AssetView, ct as DocumentViewerOptions, dt as TextViewerOptions, lt as PdfAssetOptions, pt as ViewerOptions, q as AssetSession, ut as SpreadsheetViewerOptions } from "./Core-C6_Q5ZME.js";
3
3
  import "pdfjs-dist";
4
4
  /** A viewer mounted into an element, which it owns the children of. */
5
5
  interface AssetViewer<O extends ViewerOptions = ViewerOptions> {
package/cjs/ui.d.ts CHANGED
@@ -1,3 +1,3 @@
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, _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, h as UploaderProps, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, k as CalmLensUpload, 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, z as createUploadController } from "./Core-B110Ug8_.js";
2
- 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--E_s-cDd.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, _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, h as UploaderProps, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, k as CalmLensUpload, 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, z as createUploadController } from "./Core-C6_Q5ZME.js";
2
+ 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-Cp18fGXG.js";
3
3
  export { ASSET_FILE_ICON_SIZE, ASSET_VIEWERS, type AssetDisplay, type AssetDisplayOptions, type AssetDocumentOptions, type AssetEventHandlers, type AssetImageOptions, type AssetImageSource, type AssetOptions, type AssetProps, AssetSession, type AssetSessionState, type AssetSpreadsheetOptions, type AssetVideoOptions, type AssetView, type AssetViewer, type AssetViewerKind, AssetViewerMount, AssetViewerName, AssetViewerOptionsByKind, CALMLENS_STYLES, CALMLENS_THEME, type CalmLensMessages, type CalmLensProvidedOptions, type CalmLensTheme, type CalmLensUpload, type CustomUploadContext, type CustomUploadResult, DEFAULT_MESSAGES, DEFAULT_VIEWER_MESSAGES, type DocumentViewerOptions, ICONS, ICON_ATTRIBUTES, INSTANT_LOAD_MS, type IconName, type MediaPlayback, MediaStreamPlayer, type MountedViewerKind, type PdfAssetOptions, type ProgressFetchOptions, type SpreadsheetCell, type SpreadsheetRow, type SpreadsheetSheet, type SpreadsheetViewerOptions, type TextViewerOptions, type UploadClient, UploadController, type UploadControllerOptions, type UploadFile, type UploadItem, type UploadItemView, type UploadSnapshot, type UploadStage, type UploaderDisplayOptions, type UploaderProps, type UploaderView, VIEWER_STYLES, type ViewerAsset, type ViewerMessages, type ViewerOptions, type ViewerState, type ViewerTextOptions, createDocumentViewer, createProgressFetch, createSpreadsheetViewer, createTextViewer, createUploadController, describeUploadItem, describeUploader, formatBytes, formatMessage, formatViewerMessage, getAssetAspectRatio, getAssetView, getAssetViewKey, getAssetViewerKind, getDropzoneHint, getMountedViewerOptions, getPeakHeights, getPlayedPercent, getSpreadsheetPage, getUploadItemMessage, getUploadItemOutcome, isFileAccepted, isImageReady, isMountedViewerKind, isSpreadsheetFormat, loadPdfJs, parseSpreadsheetText, pickAssetSource, resolveMessages, resolveTheme, resolveViewerMessages, spreadsheetColumnIndex, withProvidedOptions };
package/cjs/ui.js CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_ui = require("./ui-CuO37F4u.js");
3
- const require_Core = require("./Core-iNgZ8Cij.js");
4
- const require_UploadController = require("./UploadController-CVKtUCK0.js");
2
+ const require_ui = require("./ui-2jJvTcCP.js");
3
+ const require_Core = require("./Core-BHQSo7rY.js");
4
+ const require_UploadController = require("./UploadController-C1tiTTRR.js");
5
5
  exports.ASSET_FILE_ICON_SIZE = require_Core.ASSET_FILE_ICON_SIZE;
6
6
  exports.ASSET_VIEWERS = require_ui.ASSET_VIEWERS;
7
7
  exports.AssetSession = require_Core.AssetSession;
package/cjs/vue.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { O as CalmLensAppClientOptions, fn as ViewerClaims, g as AssetModerationStatus, i as AssetAvailability } from "./CalmLensTypes-CCsoVr39.js";
2
- import "./index-Dk3I5YXf.js";
3
- 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-B110Ug8_.js";
4
- import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-BuTS7yTy.js";
5
- 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--E_s-cDd.js";
1
+ import { O as CalmLensAppClientOptions, fn as ViewerClaims, g as AssetModerationStatus, i as AssetAvailability } from "./CalmLensTypes-jond9q6a.js";
2
+ import "./index-CgAztQdX.js";
3
+ 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-C6_Q5ZME.js";
4
+ import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-_iMX_nq0.js";
5
+ 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-Cp18fGXG.js";
6
6
  import { App, MaybeRefOrGetter, PropType, ShallowRef } from "vue";
7
7
  /** Shows a text asset's text, escaped, in a scrolling region. */
8
8
  export declare const CalmLensTextViewer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
package/cjs/vue.js CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_ui = require("./ui-CuO37F4u.js");
3
- const require_Core = require("./Core-iNgZ8Cij.js");
4
- const require_UploadController = require("./UploadController-CVKtUCK0.js");
2
+ const require_ui = require("./ui-2jJvTcCP.js");
3
+ const require_Core = require("./Core-BHQSo7rY.js");
4
+ const require_UploadController = require("./UploadController-C1tiTTRR.js");
5
5
  const require_FileIcons = require("./FileIcons-Ob003MdS.js");
6
- const require_BrowserUpload = require("./BrowserUpload-BO_ZukUM.js");
6
+ const require_BrowserUpload = require("./BrowserUpload-DS0lxg5C.js");
7
7
  let vue = require("vue");
8
8
  // src/viewers/Vue.ts
9
9
  const optional$1 = (type) => ({
@@ -1,4 +1,4 @@
1
- import { n as createUploadController$1 } from "./UploadController-CQ4NouIU.js";
1
+ import { n as createUploadController$1 } from "./UploadController-BYxiONcw.js";
2
2
  // src/ui/BrowserUpload.ts
3
3
  /** Creates an upload queue for the browser components, such as one a form starts on submit. */
4
4
  const createUploadController = (options) => createUploadController$1(options);
@@ -1,5 +1,5 @@
1
- import { F as UploadFile, I as UploadItem$1, L as UploadSnapshot$1, N as UploadController, P as UploadControllerOptions$1, h as UploaderProps$1, k as CalmLensUpload$1 } from "./Core-B110Ug8_.js";
2
- import { r as UseCalmLensUploadResult$1 } from "./ReactUpload-CbtQtN6v.js";
1
+ import { F as UploadFile, I as UploadItem$1, L as UploadSnapshot$1, N as UploadController, P as UploadControllerOptions$1, h as UploaderProps$1, k as CalmLensUpload$1 } from "./Core-C6_Q5ZME.js";
2
+ import { r as UseCalmLensUploadResult$1 } from "./ReactUpload-fy6zhY8M.js";
3
3
  type UploadItem<F extends UploadFile = File> = UploadItem$1<F>;
4
4
  type CalmLensUpload<F extends UploadFile = File> = CalmLensUpload$1<F>;
5
5
  type UploadSnapshot<F extends UploadFile = File> = UploadSnapshot$1<F>;