calmlens 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +13 -9
  2. package/bin/calmlens.js +1646 -706
  3. package/cjs/{BrowserUpload-CJ4Xc9bR.js → BrowserUpload-CeSwiMo5.js} +1 -1
  4. package/{esm/BrowserUpload-RkxV_Vv7.d.ts → cjs/BrowserUpload-D-NnAN7g.d.ts} +2 -2
  5. package/cjs/{CalmLensAppClient-LHMEQ-UZ.js → CalmLensAppClient-0UVCuNqW.js} +30 -10
  6. package/cjs/{CalmLensAppClient-B5gfOB6J.d.ts → CalmLensAppClient-gG16T2py.d.ts} +13 -3
  7. package/cjs/{CalmLensOptionKeys-BUj7v5AG.js → CalmLensOptionKeys-CYY6elxg.js} +242 -345
  8. package/cjs/{CalmLensServerClient-DCSbwIBs.d.ts → CalmLensServerClient-BHx3x_nZ.d.ts} +107 -49
  9. package/cjs/{CalmLensServerClient-BVOEUT_v.js → CalmLensServerClient-nfu6_YEW.js} +297 -92
  10. package/cjs/{CalmLensTypes-DpU-hXq2.d.ts → CalmLensTypes-CUB0YYVz.d.ts} +26601 -27354
  11. package/cjs/{Classification-D3SkprrQ-CMnQKW13.d.ts → Classification-Q5zGpR8l-CEWjnE39.d.ts} +731 -607
  12. package/cjs/Core-C82YmjjX.d.ts +823 -0
  13. package/cjs/Core-Dc3cteU7.js +998 -0
  14. package/cjs/FileIcons-4qSX7DW2.d.ts +67 -0
  15. package/cjs/{ModerationContextLimits-FDpQmw_T.js → ModerationContextLimits-BxOmeSqq.js} +970 -278
  16. package/cjs/{ReactUpload-BvpW4hJi.js → ReactUpload-BK2O3dnK.js} +1 -1
  17. package/cjs/{ReactUpload-huIMnOJ4.d.ts → ReactUpload-DiiXfKvj.d.ts} +1 -1
  18. package/cjs/{TestTriggers-CMwMrbjy-K0YBzu2a.js → TestTriggers-BTyXtX0Q-ATuFDhLX.js} +343 -35
  19. package/{esm/TestTriggers-D-fwfhEP-hlaP1oW2.d.ts → cjs/TestTriggers-D0pYHbkr-D5T0VdSn.d.ts} +146 -8
  20. package/cjs/{UploadController-D4qOZZc3.js → UploadController-DLyiLDTB.js} +34 -14
  21. package/cjs/{WebhookPayload-CQg8BBZQ.d.ts → WebhookPayload-BLT2y_Jy.d.ts} +93 -86
  22. package/cjs/app.d.ts +6 -7
  23. package/cjs/app.js +4 -3
  24. package/cjs/elements.d.ts +123 -22
  25. package/cjs/elements.js +553 -156
  26. package/cjs/file-icons.d.ts +2 -67
  27. package/cjs/index-CKRgjV16.d.ts +16 -0
  28. package/cjs/index.d.ts +5 -6
  29. package/cjs/index.js +3 -2
  30. package/cjs/react-native.d.ts +52 -11
  31. package/cjs/react-native.js +231 -99
  32. package/cjs/react.d.ts +42 -9
  33. package/cjs/react.js +381 -118
  34. package/cjs/server.d.ts +48 -7
  35. package/cjs/server.js +7 -3
  36. package/cjs/test-inputs.d.ts +2 -2
  37. package/cjs/test-inputs.js +13 -9
  38. package/cjs/testing.d.ts +29 -16
  39. package/cjs/testing.js +1511 -397
  40. package/cjs/ui-CTBUxnVp.d.ts +139 -0
  41. package/cjs/ui-CZ8exACq.js +1359 -0
  42. package/cjs/ui.d.ts +3 -2
  43. package/cjs/ui.js +45 -22
  44. package/cjs/vue.d.ts +802 -199
  45. package/cjs/vue.js +359 -127
  46. package/{cjs/BrowserUpload-RkxV_Vv7.d.ts → esm/BrowserUpload-D-NnAN7g.d.ts} +2 -2
  47. package/esm/{BrowserUpload-DpzS2bbj.js → BrowserUpload-i9OhCzMJ.js} +1 -1
  48. package/esm/{CalmLensAppClient-BjlvBweS.js → CalmLensAppClient-CK4_Py0c.js} +30 -10
  49. package/esm/{CalmLensAppClient-B5gfOB6J.d.ts → CalmLensAppClient-gG16T2py.d.ts} +13 -3
  50. package/esm/{CalmLensOptionKeys-BKez0Wiw.js → CalmLensOptionKeys-BGZlIsT2.js} +235 -338
  51. package/esm/{CalmLensServerClient-DCSbwIBs.d.ts → CalmLensServerClient-BHx3x_nZ.d.ts} +107 -49
  52. package/esm/{CalmLensServerClient-DemxbNMn.js → CalmLensServerClient-dAQUcDWb.js} +274 -93
  53. package/esm/{CalmLensTypes-DpU-hXq2.d.ts → CalmLensTypes-CUB0YYVz.d.ts} +26601 -27354
  54. package/esm/{Classification-D3SkprrQ-CMnQKW13.d.ts → Classification-Q5zGpR8l-CEWjnE39.d.ts} +731 -607
  55. package/esm/Core-BxeIud_S.js +843 -0
  56. package/esm/Core-C82YmjjX.d.ts +823 -0
  57. package/esm/FileIcons-4qSX7DW2.d.ts +67 -0
  58. package/esm/{ModerationContextLimits-lLfmyLni.js → ModerationContextLimits-B6_RalCQ.js} +911 -261
  59. package/esm/{ReactUpload-huIMnOJ4.d.ts → ReactUpload-DiiXfKvj.d.ts} +1 -1
  60. package/esm/{ReactUpload-6klucehl.js → ReactUpload-DxwVqfX1.js} +1 -1
  61. package/esm/{TestTriggers-CMwMrbjy-bdowBBKw.js → TestTriggers-BTyXtX0Q-GRB9jQwo.js} +320 -36
  62. package/{cjs/TestTriggers-D-fwfhEP-hlaP1oW2.d.ts → esm/TestTriggers-D0pYHbkr-D5T0VdSn.d.ts} +146 -8
  63. package/esm/{UploadController-UxP6gj7A.js → UploadController-D9Z-h00Q.js} +34 -14
  64. package/esm/{WebhookPayload-CQg8BBZQ.d.ts → WebhookPayload-BLT2y_Jy.d.ts} +93 -86
  65. package/esm/app.d.ts +6 -7
  66. package/esm/app.js +3 -3
  67. package/esm/elements.d.ts +123 -22
  68. package/esm/elements.js +497 -128
  69. package/esm/file-icons.d.ts +2 -67
  70. package/esm/index-CKRgjV16.d.ts +16 -0
  71. package/esm/index.d.ts +5 -6
  72. package/esm/index.js +1 -1
  73. package/esm/react-native.d.ts +52 -11
  74. package/esm/react-native.js +205 -75
  75. package/esm/react.d.ts +42 -9
  76. package/esm/react.js +327 -91
  77. package/esm/server.d.ts +48 -7
  78. package/esm/server.js +3 -3
  79. package/esm/styles.css +142 -22
  80. package/esm/svelte/AssetViewer.svelte +25 -0
  81. package/esm/svelte/CalmLensAsset.svelte +318 -0
  82. package/esm/svelte/CalmLensDocumentViewer.svelte +7 -0
  83. package/esm/svelte/CalmLensImageViewer.svelte +7 -0
  84. package/esm/svelte/CalmLensSpreadsheetViewer.svelte +7 -0
  85. package/esm/svelte/CalmLensTextViewer.svelte +7 -0
  86. package/esm/svelte/CalmLensWebsiteViewer.svelte +7 -0
  87. package/esm/svelte/index.d.ts +29 -6
  88. package/esm/svelte/index.js +7 -2
  89. package/esm/test-inputs.d.ts +2 -2
  90. package/esm/test-inputs.js +1 -1
  91. package/esm/testing.d.ts +29 -16
  92. package/esm/testing.js +1507 -393
  93. package/esm/ui-CTBUxnVp.d.ts +139 -0
  94. package/esm/ui-Cr7s6JHm.js +1258 -0
  95. package/esm/ui.d.ts +3 -2
  96. package/esm/ui.js +4 -3
  97. package/esm/vue.d.ts +802 -199
  98. package/esm/vue.js +308 -103
  99. package/package.json +3 -1
  100. package/cjs/ModerationContext-9lGm-Mna-CcmbRnOy.d.ts +0 -67
  101. package/cjs/index-BcDDQJF2.d.ts +0 -253
  102. package/cjs/ui-B23r8BvW.d.ts +0 -539
  103. package/cjs/ui-Dq-cm6Rx.js +0 -586
  104. package/esm/ModerationContext-9lGm-Mna-CcmbRnOy.d.ts +0 -67
  105. package/esm/index-BcDDQJF2.d.ts +0 -253
  106. package/esm/svelte/CalmLensMedia.svelte +0 -134
  107. package/esm/ui-B23r8BvW.d.ts +0 -539
  108. package/esm/ui-Bn29rfAi.js +0 -461
@@ -1,64 +1,64 @@
1
- import { Bt as TypedEvent, zt as EventAsset } from "./CalmLensTypes-DpU-hXq2.js";
1
+ import { an as EventAsset, in as Actor, on as TypedEvent } from "./CalmLensTypes-CUB0YYVz.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: {
5
- readonly INVALID_VIEWER_CLAIMS: "viewer/invalid-claims";
5
+ readonly INVALID_VIEWER_CLAIMS: "viewer-claims/invalid";
6
6
  readonly AGE_CONFIRMATION_REQUIRED: "viewer/age-confirmation-required";
7
- readonly INVALID_VIEWER_REGION: "viewer/invalid-region";
7
+ readonly INVALID_VIEWER_REGION: "viewer-region/invalid";
8
8
  readonly VIEWER_REGION_REQUIRED: "viewer/region-required";
9
9
  readonly REGIONAL_EVIDENCE_REQUIRED: "asset/regional-evidence-required";
10
10
  readonly SIGNED_URL_EXPIRED: "signed-url/expired";
11
11
  readonly SIGNED_URL_INVALID: "signed-url/invalid";
12
+ readonly SIGNED_URL_ORIGINAL_NOT_GRANTED: "signed-url/original-not-granted";
13
+ readonly INVALID_REQUEST: "validation/invalid-request";
12
14
  readonly INVALID_TYPE: "validation/invalid-type";
13
15
  readonly TOO_SMALL: "validation/too-small";
14
16
  readonly TOO_BIG: "validation/too-big";
15
17
  readonly INVALID_FORMAT: "validation/invalid-format";
16
18
  readonly INVALID_VALUE: "validation/invalid-value";
17
19
  readonly UNKNOWN_FIELD: "validation/unknown-field";
18
- readonly UNSUPPORTED_CONTENT_TYPE: "validation/unsupported-content-type";
19
- readonly INVALID_FILTER: "validation/invalid-filter";
20
- readonly INVALID_ORDERING_FIELD: "validation/invalid-ordering-field";
21
- readonly ROUTE_NOT_FOUND: "misc/route-not-found";
22
- readonly INTERNAL_ERROR: "misc/internal-error";
20
+ readonly UNSUPPORTED_CONTENT_TYPE: "request/unsupported-content-type";
21
+ readonly INVALID_FILTER: "filter/invalid";
22
+ readonly UNSUPPORTED_ORDERING_FIELD: "ordering/unsupported-field";
23
+ readonly ROUTE_NOT_FOUND: "request/route-not-found";
24
+ readonly INTERNAL_ERROR: "server/internal-error";
23
25
  readonly UNAUTHENTICATED: "auth/unauthenticated";
24
- readonly TOKEN_EXPIRED: "auth/token-expired";
25
- readonly INVALID_TOKEN: "auth/invalid-token";
26
+ readonly TOKEN_EXPIRED: "session-token/expired";
27
+ readonly INVALID_TOKEN: "session-token/invalid";
26
28
  readonly SEARCH_UNAVAILABLE: "search/unavailable";
27
- readonly INVALID_TRANSFORM: "asset/invalid-transform";
28
- readonly INVALID_TRANSFORM_OPTIONS: "asset/invalid-transform-options";
29
- readonly REMOTE_URL_REDIRECT_LIMIT: "asset/remote-url-redirect-limit";
30
- readonly COPYRIGHT_CONTENT_HELD: "copyright/content-held";
31
- readonly DOWNLOAD_PERMISSION_REQUIRED: "asset/api-key-missing-permission";
32
- readonly INVALID_CURSOR: "validation/invalid-cursor";
33
- readonly MISSING_TOKEN: "auth/missing-token";
34
- readonly INVALID_API_KEY: "auth/invalid-api-key";
35
- readonly API_KEY_PROJECT_MISMATCH: "auth/project-mismatch";
36
- readonly API_KEY_NOT_ACCEPTED: "auth/api-key-not-accepted";
29
+ readonly INVALID_TRANSFORM: "transform/invalid";
30
+ readonly INVALID_TRANSFORM_OPTIONS: "transform-options/invalid";
31
+ readonly REMOTE_URL_TOO_MANY_REDIRECTS: "remote-url/too-many-redirects";
32
+ readonly INVALID_CURSOR: "cursor/invalid";
33
+ readonly MISSING_API_KEY: "api-key/missing";
34
+ readonly INVALID_API_KEY: "api-key/invalid";
35
+ readonly API_KEY_PROJECT_MISMATCH: "api-key/project-mismatch";
36
+ readonly API_KEY_NOT_ACCEPTED: "api-key/not-accepted";
37
37
  readonly PERMISSION_DENIED: "auth/permission-denied";
38
- readonly FILE_TOO_LARGE: "upload/file-too-large";
39
- readonly MULTIPART_IMAGE_TOO_LARGE: "upload/multipart-image-too-large";
40
- readonly IMAGE_EXCEEDED_MAX_DIMENSIONS: "upload/image-exceeded-max-dimensions";
41
- readonly IMAGE_INVALID_INPUT: "image/invalid-input";
42
- readonly IMAGE_UNSUPPORTED_FORMAT: "image/unsupported-format";
43
- readonly IMAGE_INPUT_LIMIT: "image/input-limit";
44
- readonly UPLOAD_LIMIT_EXCEEDED: "upload/limit-exceeded";
45
- readonly SPEND_LIMIT_REACHED: "upload/spend-limit-reached";
46
- readonly INVALID_UPLOAD_MIME_TYPE: "upload/invalid-mime-type";
47
- readonly INVALID_UPLOAD_PAYLOAD: "upload/invalid-payload";
38
+ readonly UPLOAD_TOO_LARGE: "upload/too-large";
39
+ readonly DOCUMENT_TOO_MANY_ITEMS: "document/too-many-items";
40
+ readonly INVALID_IMAGE: "image/invalid";
41
+ readonly IMAGE_TOO_LARGE: "image/too-large";
42
+ readonly FREE_UPLOADS_EXHAUSTED: "usage/free-uploads-exhausted";
43
+ readonly UPLOADS_PAUSED: "usage/uploads-paused";
44
+ readonly UNSUPPORTED_UPLOAD_TYPE: "upload/unsupported-type";
45
+ readonly INVALID_UPLOAD_PAYLOAD: "upload-payload/invalid";
48
46
  readonly USE_UPLOAD_PART: "upload/use-upload-part";
49
47
  readonly UPLOAD_NOT_OPEN: "upload/not-open";
50
- readonly INVALID_UPLOAD_PART_NUMBER: "upload/invalid-part-number";
48
+ readonly INVALID_UPLOAD_PART_NUMBER: "upload-part/invalid-number";
51
49
  readonly UPLOAD_MISSING: "upload/missing";
52
50
  readonly UPLOAD_SIZE_MISMATCH: "upload/size-mismatch";
53
51
  readonly INVALID_IDEMPOTENCY_KEY: "idempotency/invalid-key";
54
52
  readonly IDEMPOTENCY_KEY_REUSED: "idempotency/key-reused";
55
53
  readonly IDEMPOTENT_REQUEST_IN_PROGRESS: "idempotency/request-in-progress";
54
+ readonly NO_RENDERED_VERSION: "asset/no-rendered-version";
56
55
  readonly ASSET_NOT_FOUND: "asset/not-found";
57
56
  readonly PROJECT_NOT_FOUND: "project/not-found";
57
+ readonly ASSET_CHILD_NOT_DELETABLE: "asset/child-not-deletable";
58
58
  readonly ASSET_REVIEW_CHANGED: "asset/review-changed";
59
59
  readonly ASSET_REVIEW_NOTE_REQUIRED: "asset/review-note-required";
60
60
  readonly ASSET_UPDATE_FAILED: "asset/update-failed";
61
- readonly ASSET_SAFETY_HELD: "asset/safety-held";
61
+ readonly ASSET_HELD: "asset/held";
62
62
  readonly ASSET_PROCESSING: "asset/processing";
63
63
  readonly ASSET_DECISION_NOT_ALLOWED: "asset/decision-not-allowed";
64
64
  readonly ASSET_DECISION_UNCHANGED: "asset/decision-unchanged";
@@ -68,18 +68,19 @@ declare const API_ERROR_CODES: {
68
68
  readonly ASSET_NOT_DECIDED: "asset/not-decided";
69
69
  readonly ASSET_POLICY_CHANGED: "asset/policy-changed";
70
70
  readonly ASSET_REVIEWED: "asset/reviewed";
71
- readonly SUPPORT_TICKET_NOT_FOUND: "support/ticket-not-found";
71
+ readonly SUPPORT_TICKET_NOT_FOUND: "support-ticket/not-found";
72
72
  readonly DUPLICATE_EXTERNAL_ID: "asset/duplicate-external-id";
73
73
  readonly FOLDER_NOT_FOUND: "folder/not-found";
74
74
  readonly DUPLICATE_FOLDER_NAME: "folder/duplicate-name";
75
75
  readonly FOLDER_NOT_EMPTY: "folder/not-empty";
76
76
  readonly FOLDER_PARENT_CYCLE: "folder/parent-cycle";
77
- readonly LENS_VERSION_CONFLICT: "lens/version-conflict";
77
+ readonly LENS_NOT_FOUND: "lens/not-found";
78
+ readonly LENS_IDENTIFIER_TAKEN: "lens/identifier-taken";
78
79
  readonly LENS_IDENTIFIER_RESERVED: "lens/identifier-reserved";
79
80
  readonly HASH_LIST_NOT_FOUND: "hash-list/not-found";
80
- readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list/entry-not-found";
81
+ readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list-entry/not-found";
81
82
  readonly HASH_LIST_LIMIT_REACHED: "hash-list/limit-reached";
82
- readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list/entry-limit-reached";
83
+ readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list-entry/limit-reached";
83
84
  readonly HASH_LIST_ASSET_NOT_HASHED: "hash-list/asset-not-hashed";
84
85
  readonly POLICY_NOT_FOUND: "policy/not-found";
85
86
  readonly POLICY_REVISION_CONFLICT: "policy/revision-conflict";
@@ -93,18 +94,16 @@ declare const API_ERROR_CODES: {
93
94
  readonly UPLOAD_PRESET_NOT_FOUND: "upload-preset/not-found";
94
95
  readonly UPLOAD_PRESET_DISABLED: "upload-preset/disabled";
95
96
  readonly UPLOAD_PRESET_TOKEN_REQUIRED: "upload-preset/token-required";
96
- readonly REMOTE_URL_NOT_ALLOWED: "upload/remote-url-not-allowed";
97
- readonly WEBSITE_RATE_LIMIT_EXCEEDED: "upload/website-rate-limit-exceeded";
98
- readonly UPLOAD_PRESET_CONTENT_TYPE_NOT_ALLOWED: "upload-preset/content-type-not-allowed";
99
- readonly UPLOAD_PRESET_TOO_LARGE: "upload-preset/too-large";
97
+ readonly REMOTE_URL_NOT_ALLOWED: "remote-url/not-allowed";
98
+ readonly WEBSITE_RATE_LIMIT_REACHED: "upload/website-rate-limit-reached";
100
99
  readonly UPLOAD_PRESET_DAILY_LIMIT_REACHED: "upload-preset/daily-limit-reached";
101
100
  readonly UPLOAD_PRESET_ORIGIN_NOT_ALLOWED: "upload-preset/origin-not-allowed";
102
101
  readonly UPLOAD_PRESET_FIELD_NOT_ALLOWED: "upload-preset/field-not-allowed";
103
102
  readonly UPLOAD_TOKEN_INVALID: "upload-token/invalid";
104
103
  readonly UPLOAD_TOKEN_EXPIRED: "upload-token/expired";
105
104
  readonly UPLOAD_TOKEN_USED: "upload-token/used";
106
- readonly INVALID_REMOTE_URL: "asset/invalid-remote-url";
107
- readonly REMOTE_URL_UNAVAILABLE: "asset/remote-url-unavailable";
105
+ readonly INVALID_REMOTE_URL: "remote-url/invalid";
106
+ readonly REMOTE_URL_UNAVAILABLE: "remote-url/unavailable";
108
107
  readonly APPEAL_NOT_FOUND: "appeal/not-found";
109
108
  readonly APPEAL_JUDGMENT_NOT_FOUND: "appeal/judgment-not-found";
110
109
  readonly APPEAL_ASSET_NOT_FOUND: "appeal/asset-not-found";
@@ -112,7 +111,6 @@ declare const API_ERROR_CODES: {
112
111
  readonly APPEAL_ALREADY_REVIEWED: "appeal/already-reviewed";
113
112
  readonly APPEAL_DECISION_CHANGED: "appeal/decision-changed";
114
113
  readonly APPEAL_INVALID_ACTION: "appeal/invalid-action";
115
- readonly APPEAL_SAFETY_HELD: "appeal/safety-held";
116
114
  readonly APPEAL_CONTENT_UNAVAILABLE: "appeal/content-unavailable";
117
115
  };
118
116
  type ApiErrorCode = (typeof API_ERROR_CODES)[keyof typeof API_ERROR_CODES];
@@ -145,63 +143,63 @@ declare const SDK_ERROR_CODES: {
145
143
  type SdkErrorCode = (typeof SDK_ERROR_CODES)[keyof typeof SDK_ERROR_CODES];
146
144
  /** Every error code the SDK can throw: the documented API codes and the SDK's own `sdk/*` codes. */
147
145
  declare const CALMLENS_ERROR_CODES: {
148
- readonly INVALID_VIEWER_CLAIMS: "viewer/invalid-claims";
146
+ readonly INVALID_VIEWER_CLAIMS: "viewer-claims/invalid";
149
147
  readonly AGE_CONFIRMATION_REQUIRED: "viewer/age-confirmation-required";
150
- readonly INVALID_VIEWER_REGION: "viewer/invalid-region";
148
+ readonly INVALID_VIEWER_REGION: "viewer-region/invalid";
151
149
  readonly VIEWER_REGION_REQUIRED: "viewer/region-required";
152
150
  readonly REGIONAL_EVIDENCE_REQUIRED: "asset/regional-evidence-required";
153
151
  readonly SIGNED_URL_EXPIRED: "signed-url/expired";
154
152
  readonly SIGNED_URL_INVALID: "signed-url/invalid";
153
+ readonly SIGNED_URL_ORIGINAL_NOT_GRANTED: "signed-url/original-not-granted";
154
+ readonly INVALID_REQUEST: "validation/invalid-request";
155
155
  readonly INVALID_TYPE: "validation/invalid-type";
156
156
  readonly TOO_SMALL: "validation/too-small";
157
157
  readonly TOO_BIG: "validation/too-big";
158
158
  readonly INVALID_FORMAT: "validation/invalid-format";
159
159
  readonly INVALID_VALUE: "validation/invalid-value";
160
160
  readonly UNKNOWN_FIELD: "validation/unknown-field";
161
- readonly UNSUPPORTED_CONTENT_TYPE: "validation/unsupported-content-type";
162
- readonly INVALID_FILTER: "validation/invalid-filter";
163
- readonly INVALID_ORDERING_FIELD: "validation/invalid-ordering-field";
164
- readonly ROUTE_NOT_FOUND: "misc/route-not-found";
165
- readonly INTERNAL_ERROR: "misc/internal-error";
161
+ readonly UNSUPPORTED_CONTENT_TYPE: "request/unsupported-content-type";
162
+ readonly INVALID_FILTER: "filter/invalid";
163
+ readonly UNSUPPORTED_ORDERING_FIELD: "ordering/unsupported-field";
164
+ readonly ROUTE_NOT_FOUND: "request/route-not-found";
165
+ readonly INTERNAL_ERROR: "server/internal-error";
166
166
  readonly UNAUTHENTICATED: "auth/unauthenticated";
167
- readonly TOKEN_EXPIRED: "auth/token-expired";
168
- readonly INVALID_TOKEN: "auth/invalid-token";
167
+ readonly TOKEN_EXPIRED: "session-token/expired";
168
+ readonly INVALID_TOKEN: "session-token/invalid";
169
169
  readonly SEARCH_UNAVAILABLE: "search/unavailable";
170
- readonly INVALID_TRANSFORM: "asset/invalid-transform";
171
- readonly INVALID_TRANSFORM_OPTIONS: "asset/invalid-transform-options";
172
- readonly REMOTE_URL_REDIRECT_LIMIT: "asset/remote-url-redirect-limit";
173
- readonly COPYRIGHT_CONTENT_HELD: "copyright/content-held";
174
- readonly DOWNLOAD_PERMISSION_REQUIRED: "asset/api-key-missing-permission";
175
- readonly INVALID_CURSOR: "validation/invalid-cursor";
176
- readonly MISSING_TOKEN: "auth/missing-token";
177
- readonly INVALID_API_KEY: "auth/invalid-api-key";
178
- readonly API_KEY_PROJECT_MISMATCH: "auth/project-mismatch";
179
- readonly API_KEY_NOT_ACCEPTED: "auth/api-key-not-accepted";
170
+ readonly INVALID_TRANSFORM: "transform/invalid";
171
+ readonly INVALID_TRANSFORM_OPTIONS: "transform-options/invalid";
172
+ readonly REMOTE_URL_TOO_MANY_REDIRECTS: "remote-url/too-many-redirects";
173
+ readonly INVALID_CURSOR: "cursor/invalid";
174
+ readonly MISSING_API_KEY: "api-key/missing";
175
+ readonly INVALID_API_KEY: "api-key/invalid";
176
+ readonly API_KEY_PROJECT_MISMATCH: "api-key/project-mismatch";
177
+ readonly API_KEY_NOT_ACCEPTED: "api-key/not-accepted";
180
178
  readonly PERMISSION_DENIED: "auth/permission-denied";
181
- readonly FILE_TOO_LARGE: "upload/file-too-large";
182
- readonly MULTIPART_IMAGE_TOO_LARGE: "upload/multipart-image-too-large";
183
- readonly IMAGE_EXCEEDED_MAX_DIMENSIONS: "upload/image-exceeded-max-dimensions";
184
- readonly IMAGE_INVALID_INPUT: "image/invalid-input";
185
- readonly IMAGE_UNSUPPORTED_FORMAT: "image/unsupported-format";
186
- readonly IMAGE_INPUT_LIMIT: "image/input-limit";
187
- readonly UPLOAD_LIMIT_EXCEEDED: "upload/limit-exceeded";
188
- readonly SPEND_LIMIT_REACHED: "upload/spend-limit-reached";
189
- readonly INVALID_UPLOAD_MIME_TYPE: "upload/invalid-mime-type";
190
- readonly INVALID_UPLOAD_PAYLOAD: "upload/invalid-payload";
179
+ readonly UPLOAD_TOO_LARGE: "upload/too-large";
180
+ readonly DOCUMENT_TOO_MANY_ITEMS: "document/too-many-items";
181
+ readonly INVALID_IMAGE: "image/invalid";
182
+ readonly IMAGE_TOO_LARGE: "image/too-large";
183
+ readonly FREE_UPLOADS_EXHAUSTED: "usage/free-uploads-exhausted";
184
+ readonly UPLOADS_PAUSED: "usage/uploads-paused";
185
+ readonly UNSUPPORTED_UPLOAD_TYPE: "upload/unsupported-type";
186
+ readonly INVALID_UPLOAD_PAYLOAD: "upload-payload/invalid";
191
187
  readonly USE_UPLOAD_PART: "upload/use-upload-part";
192
188
  readonly UPLOAD_NOT_OPEN: "upload/not-open";
193
- readonly INVALID_UPLOAD_PART_NUMBER: "upload/invalid-part-number";
189
+ readonly INVALID_UPLOAD_PART_NUMBER: "upload-part/invalid-number";
194
190
  readonly UPLOAD_MISSING: "upload/missing";
195
191
  readonly UPLOAD_SIZE_MISMATCH: "upload/size-mismatch";
196
192
  readonly INVALID_IDEMPOTENCY_KEY: "idempotency/invalid-key";
197
193
  readonly IDEMPOTENCY_KEY_REUSED: "idempotency/key-reused";
198
194
  readonly IDEMPOTENT_REQUEST_IN_PROGRESS: "idempotency/request-in-progress";
195
+ readonly NO_RENDERED_VERSION: "asset/no-rendered-version";
199
196
  readonly ASSET_NOT_FOUND: "asset/not-found";
200
197
  readonly PROJECT_NOT_FOUND: "project/not-found";
198
+ readonly ASSET_CHILD_NOT_DELETABLE: "asset/child-not-deletable";
201
199
  readonly ASSET_REVIEW_CHANGED: "asset/review-changed";
202
200
  readonly ASSET_REVIEW_NOTE_REQUIRED: "asset/review-note-required";
203
201
  readonly ASSET_UPDATE_FAILED: "asset/update-failed";
204
- readonly ASSET_SAFETY_HELD: "asset/safety-held";
202
+ readonly ASSET_HELD: "asset/held";
205
203
  readonly ASSET_PROCESSING: "asset/processing";
206
204
  readonly ASSET_DECISION_NOT_ALLOWED: "asset/decision-not-allowed";
207
205
  readonly ASSET_DECISION_UNCHANGED: "asset/decision-unchanged";
@@ -211,18 +209,19 @@ declare const CALMLENS_ERROR_CODES: {
211
209
  readonly ASSET_NOT_DECIDED: "asset/not-decided";
212
210
  readonly ASSET_POLICY_CHANGED: "asset/policy-changed";
213
211
  readonly ASSET_REVIEWED: "asset/reviewed";
214
- readonly SUPPORT_TICKET_NOT_FOUND: "support/ticket-not-found";
212
+ readonly SUPPORT_TICKET_NOT_FOUND: "support-ticket/not-found";
215
213
  readonly DUPLICATE_EXTERNAL_ID: "asset/duplicate-external-id";
216
214
  readonly FOLDER_NOT_FOUND: "folder/not-found";
217
215
  readonly DUPLICATE_FOLDER_NAME: "folder/duplicate-name";
218
216
  readonly FOLDER_NOT_EMPTY: "folder/not-empty";
219
217
  readonly FOLDER_PARENT_CYCLE: "folder/parent-cycle";
220
- readonly LENS_VERSION_CONFLICT: "lens/version-conflict";
218
+ readonly LENS_NOT_FOUND: "lens/not-found";
219
+ readonly LENS_IDENTIFIER_TAKEN: "lens/identifier-taken";
221
220
  readonly LENS_IDENTIFIER_RESERVED: "lens/identifier-reserved";
222
221
  readonly HASH_LIST_NOT_FOUND: "hash-list/not-found";
223
- readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list/entry-not-found";
222
+ readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list-entry/not-found";
224
223
  readonly HASH_LIST_LIMIT_REACHED: "hash-list/limit-reached";
225
- readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list/entry-limit-reached";
224
+ readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list-entry/limit-reached";
226
225
  readonly HASH_LIST_ASSET_NOT_HASHED: "hash-list/asset-not-hashed";
227
226
  readonly POLICY_NOT_FOUND: "policy/not-found";
228
227
  readonly POLICY_REVISION_CONFLICT: "policy/revision-conflict";
@@ -236,18 +235,16 @@ declare const CALMLENS_ERROR_CODES: {
236
235
  readonly UPLOAD_PRESET_NOT_FOUND: "upload-preset/not-found";
237
236
  readonly UPLOAD_PRESET_DISABLED: "upload-preset/disabled";
238
237
  readonly UPLOAD_PRESET_TOKEN_REQUIRED: "upload-preset/token-required";
239
- readonly REMOTE_URL_NOT_ALLOWED: "upload/remote-url-not-allowed";
240
- readonly WEBSITE_RATE_LIMIT_EXCEEDED: "upload/website-rate-limit-exceeded";
241
- readonly UPLOAD_PRESET_CONTENT_TYPE_NOT_ALLOWED: "upload-preset/content-type-not-allowed";
242
- readonly UPLOAD_PRESET_TOO_LARGE: "upload-preset/too-large";
238
+ readonly REMOTE_URL_NOT_ALLOWED: "remote-url/not-allowed";
239
+ readonly WEBSITE_RATE_LIMIT_REACHED: "upload/website-rate-limit-reached";
243
240
  readonly UPLOAD_PRESET_DAILY_LIMIT_REACHED: "upload-preset/daily-limit-reached";
244
241
  readonly UPLOAD_PRESET_ORIGIN_NOT_ALLOWED: "upload-preset/origin-not-allowed";
245
242
  readonly UPLOAD_PRESET_FIELD_NOT_ALLOWED: "upload-preset/field-not-allowed";
246
243
  readonly UPLOAD_TOKEN_INVALID: "upload-token/invalid";
247
244
  readonly UPLOAD_TOKEN_EXPIRED: "upload-token/expired";
248
245
  readonly UPLOAD_TOKEN_USED: "upload-token/used";
249
- readonly INVALID_REMOTE_URL: "asset/invalid-remote-url";
250
- readonly REMOTE_URL_UNAVAILABLE: "asset/remote-url-unavailable";
246
+ readonly INVALID_REMOTE_URL: "remote-url/invalid";
247
+ readonly REMOTE_URL_UNAVAILABLE: "remote-url/unavailable";
251
248
  readonly APPEAL_NOT_FOUND: "appeal/not-found";
252
249
  readonly APPEAL_JUDGMENT_NOT_FOUND: "appeal/judgment-not-found";
253
250
  readonly APPEAL_ASSET_NOT_FOUND: "appeal/asset-not-found";
@@ -255,7 +252,6 @@ declare const CALMLENS_ERROR_CODES: {
255
252
  readonly APPEAL_ALREADY_REVIEWED: "appeal/already-reviewed";
256
253
  readonly APPEAL_DECISION_CHANGED: "appeal/decision-changed";
257
254
  readonly APPEAL_INVALID_ACTION: "appeal/invalid-action";
258
- readonly APPEAL_SAFETY_HELD: "appeal/safety-held";
259
255
  readonly APPEAL_CONTENT_UNAVAILABLE: "appeal/content-unavailable";
260
256
  /** The request could not be completed: DNS, TLS, a refused or reset connection, a truncated body. */
261
257
  readonly TRANSPORT_ERROR: "sdk/transport-error";
@@ -329,7 +325,7 @@ declare class CalmLensError extends Error {
329
325
  isNotFound(): boolean;
330
326
  /**
331
327
  * Whether repeating the same request may succeed: transport failures, timeouts (a request's
332
- * `timeoutMs` or `waitForDecision`'s deadline), throttling (429), gateway errors (502, 503, 504)
328
+ * `timeoutMs` or `waitForDecision`'s deadline), throttling (429), internal and gateway errors (500, 502, 503, 504)
333
329
  * and idempotent requests still in progress. Only repeat a create or upload with the same
334
330
  * `idempotencyKey`.
335
331
  */
@@ -346,7 +342,12 @@ declare const RECEIVED_WEBHOOK_EVENT_PAYLOAD_SCHEMA: zod.ZodObject<{
346
342
  severity: zod.ZodOptional<zod.ZodString>;
347
343
  title: zod.ZodOptional<zod.ZodString>;
348
344
  description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
345
+ actor: zod.ZodOptional<zod.ZodObject<{
346
+ type: zod.ZodString;
347
+ id: zod.ZodNullable<zod.ZodString>;
348
+ }, zod.core.$loose>>;
349
349
  assetId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
350
+ assetSequence: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
350
351
  asset: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
351
352
  id: zod.ZodString;
352
353
  }, zod.core.$loose>>>;
@@ -370,7 +371,13 @@ interface ReceivedWebhookEventPayload {
370
371
  severity?: string;
371
372
  title?: string;
372
373
  description?: string | null;
374
+ /** Who caused the event; `type` may take values added later. */
375
+ actor?: {
376
+ type: Actor["type"] | (string & {});
377
+ id: string | null;
378
+ };
373
379
  assetId?: string | null;
380
+ assetSequence?: number | null;
374
381
  asset?: (EventAsset & Record<string, unknown>) | null;
375
382
  facts?: ReceivedFact;
376
383
  [key: string]: unknown;
package/esm/app.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { a as selectModerationContextItems, i as ModerationContextItem, n as MODERATION_CONTEXT_USED_CHARACTERS, o as HashList, r as MODERATION_CONTEXT_USED_ITEMS, s as HashListEntry, t as ModerationContext } from "./ModerationContext-9lGm-Mna-CcmbRnOy.js";
2
- import { $ as ImageTransformOptions, $t as AssetSearchMatchField, A as CdnServeOptions, At as UploadedAsset, B as DeleteAssetContentOptions, Bt as TypedEvent, C as AssignPolicyOptions, Ct as SubmitAssetOptions, D as CalmLensServerClientOptions, Dt as UpdatePolicyOptions, E as CalmLensAppClientOptions, Et as UpdateHashListOptions, F as CreateFolderOptions, Ft as WebhookPayloadInput, G as FolderIdOptions, Gt as EventSeverity, H as EnsureLensOptions, Ht as EventFact, I as CreateHashListOptions, It as AssetBatchOperation, J as HashListEntryIdOptions, Jt as Folder, Kt as EventType, L as CreateMultipartUploadPartOptions, Lt as GetEventsResponse, M as ClassifyTextOptions, Mt as ViewerClaims, N as ConnectionOptions, Nt as WaitForAssetDecisionOptions, O as CdnAssetUrlOptions, Ot as UploadAssetPartOptions, P as CreateAssetSignedUrlOptions, Pt as WebhookHeadersInput, Q as IdempotencyOptions, Qt as LensType, R as CreatePolicyOptions, S as AssetVisibility, St as SignedUrl, T as BatchAssetsResponse, Tt as UpdateFolderOptions, U as EnsureLensesOptions, Ut as EventFactValues, V as DeleteAssetOptions, Vt as EventCategory, W as ExplainAssetOptions, Wt as EventFacts, X as HashListIdOptions, Xt as CursorPage, Y as HashListEntryPage, Yt as Policy, Z as HashListPage, Zt as Order, _ as AssetSearchResponse, _t as RetryAssetOptions, a as AssetChildrenPage, an as ExtractedText, at as ListEventsOptions, b as AssetUpload, bt as SignUploadTokenOptions, c as AssetClassificationStatus, cn as ProcessingOptions, ct as ListHashListsOptions, d as AssetContentRemovalReason, dt as MultipartUploadOptions, en as AssetSearchQuery, et as IterateAssetChildrenOptions, f as AssetContentStatus, ft as MultipartUploadPartOptions, g as AssetPage, gt as RetrieveAssetOptions, h as AssetModerationStatus, ht as RequestOptions, i as AssetChecksums, in as AssetSafetyHoldReason, it as ListAssetsOptions, j as CdnTransform, jt as VerifyWebhookSignatureOptions, k as CdnResource, kt as UploadPresetSubmitAssetOptions, l as AssetContent, lt as MoveAssetOptions, m as AssetModerationDecision, mt as PolicyList, n as ApplyPolicyPresetOptions, nn as AssetImage, nt as Lens, o as AssetClassification, on as FileMetadata, p as AssetModeration, pt as PolicyIdOptions, q as GetAssetUrlOptions, r as Asset, rn as AssetSafetyHold, rt as ListAssetChildrenOptions, s as AssetClassificationFailureReason, sn as MetadataItem, st as ListHashListEntriesOptions, t as AddHashListEntryOptions, tt as IterateAssetsOptions, u as AssetContentOptions, ut as MoveFolderOptions, v as AssetSearchResult, vt as SearchAssetsOptions, w as BatchAssetsOptions, wt as UpdateAssetOptions, x as AssetUploadStatus, xt as SignedUploadToken, y as AssetType, yt as SetPolicyAutomaticUpdatesOptions, z as DecideAssetOptions, zt as EventAsset } from "./CalmLensTypes-DpU-hXq2.js";
3
- import { t as CalmLensAppClient } from "./CalmLensAppClient-B5gfOB6J.js";
4
- import { a as CalmLensErrorCode, c as SdkErrorCode, i as CalmLensError, l as ApiErrorCode, o as CalmLensErrorDetails, r as CALMLENS_ERROR_CODES, s as CalmLensErrorOptions, t as ReceivedWebhookEventPayload } from "./WebhookPayload-CQg8BBZQ.js";
5
- import { a as ProcessingFeatureId, c as ProcessingFeatures, d as getAssetUrl, i as DetectedPerson, l as SDK_VERSION, n as BoundingBox, o as ProcessingFeatureResults, r as DetectedFace, s as ProcessingFeatureStage, t as AgeRange, u as DEFAULT_CDN_BASE_URL } from "./index-BcDDQJF2.js";
6
- import { a as ClassificationNotEvaluatedReason, c as ModerationQualifier, i as ClassificationLabel, l as PolicyAction, n as ClassificationCategory, o as ClassificationQualifierResults, r as ClassificationCategoryReport, s as Likelihood, t as ClassificationCategories } from "./Classification-D3SkprrQ-CMnQKW13.js";
7
- export { type AddHashListEntryOptions, type AgeRange, type ApiErrorCode, type ApplyPolicyPresetOptions, type Asset, type AssetBatchOperation, type AssetChecksums, type AssetChildrenPage, type AssetClassification, type AssetClassificationFailureReason, type AssetClassificationStatus, type AssetContent, type AssetContentOptions, type AssetContentRemovalReason, type AssetContentStatus, type AssetImage, type AssetModeration, type AssetModerationDecision, type AssetModerationStatus, type AssetPage, type AssetSafetyHold, type AssetSafetyHoldReason, type AssetSearchMatchField, type AssetSearchQuery, type AssetSearchResponse, type AssetSearchResult, type AssetType, type AssetUpload, type AssetUploadStatus, type AssetVisibility, type AssignPolicyOptions, type BatchAssetsOptions, type BatchAssetsResponse, type BoundingBox, CALMLENS_ERROR_CODES, CalmLensAppClient, type CalmLensAppClientOptions, CalmLensError, type CalmLensErrorCode, type CalmLensErrorDetails, type CalmLensErrorOptions, type CalmLensServerClientOptions, type CdnAssetUrlOptions, type CdnResource, type CdnServeOptions, type CdnTransform, type ClassificationCategories, type ClassificationCategory, type ClassificationCategoryReport, type ClassificationLabel, type ClassificationNotEvaluatedReason, type ClassificationQualifierResults, type ClassifyTextOptions, type ConnectionOptions, type CreateAssetSignedUrlOptions, type CreateFolderOptions, type CreateHashListOptions, type CreateMultipartUploadPartOptions, type CreatePolicyOptions, type CursorPage, DEFAULT_CDN_BASE_URL, type DecideAssetOptions, type DeleteAssetContentOptions, type DeleteAssetOptions, type DetectedFace, type DetectedPerson, type EnsureLensOptions, type EnsureLensesOptions, type EventAsset, type EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventSeverity, type EventType, type GetEventsResponse as EventsPage, type ExplainAssetOptions, type ExtractedText, type FileMetadata, type Folder, type FolderIdOptions, type GetAssetUrlOptions, type HashList, type HashListEntry, type HashListEntryIdOptions, type HashListEntryPage, type HashListIdOptions, type HashListPage, type IdempotencyOptions, type ImageTransformOptions, type IterateAssetChildrenOptions, type IterateAssetsOptions, type Lens, type LensType, type Likelihood, type ListAssetChildrenOptions, type ListAssetsOptions, type ListEventsOptions, type ListHashListEntriesOptions, type ListHashListsOptions, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, type MetadataItem, type ModerationContext, type ModerationContextItem, type ModerationQualifier, type MoveAssetOptions, type MoveFolderOptions, type MultipartUploadOptions, type MultipartUploadPartOptions, type Order, type Policy, type PolicyAction, type PolicyIdOptions, type PolicyList, type ProcessingFeatureId, type ProcessingFeatureResults, type ProcessingFeatureStage, type ProcessingFeatures, type ProcessingOptions, type RequestOptions, type RetrieveAssetOptions, type RetryAssetOptions, SDK_VERSION, type SdkErrorCode, type SearchAssetsOptions, type SetPolicyAutomaticUpdatesOptions, type SignUploadTokenOptions, type SignedUploadToken, type SignedUrl, type SubmitAssetOptions, type TypedEvent, type UpdateAssetOptions, type UpdateFolderOptions, type UpdateHashListOptions, type UpdatePolicyOptions, type UploadAssetPartOptions, type UploadPresetSubmitAssetOptions, type UploadedAsset, type VerifyWebhookSignatureOptions, type ViewerClaims, type WaitForAssetDecisionOptions, type ReceivedWebhookEventPayload as WebhookEventPayload, type WebhookHeadersInput, type WebhookPayloadInput, getAssetUrl, selectModerationContextItems };
1
+ import { a as ClassificationNotEvaluatedReason, c as ModerationQualifier, d as HashListEntry, f as ModerationContext, g as selectModerationContextItems, h as ModerationContextItem, i as ClassificationCategoryReport, l as PolicyAction, m as MODERATION_CONTEXT_USED_ITEMS, n as ClassificationCategories, o as ClassificationQualifierResults, p as MODERATION_CONTEXT_USED_CHARACTERS, r as ClassificationCategory, s as Likelihood, u as HashList } from "./Classification-Q5zGpR8l-CEWjnE39.js";
2
+ import { $ as HashListPage, $t as WebhookHeadersInput, A as CdnAssetReference, An as AssetHls, At as ResetPolicyOptions, B as CreateMultipartUploadPartOptions, Bn as ProcessingOptions, Bt as SubmitAssetOptions, C as AssetVisibility, Cn as Policy, Ct as MoveFolderOptions, D as CalmLensAppClientOptions, Dn as AssetSearchQuery, Dt as PolicyPage, E as BatchAssetsResponse, En as AssetSearchMatchField, Et as PolicyIdOptions, F as ClassifyTextOptions, Fn as AssetSafetyHold, Ft as SignAssetUrlOptions, G as EnsureLensesOptions, Gt as UpdatePolicyOptions, H as DecideAssetOptions, Ht as UpdateFolderOptions, I as ConnectionOptions, In as AssetSafetyHoldReason, It as SignUploadTokenOptions, J as FolderPage, Jt as UploadPresetSubmitAssetOptions, K as ExplainAssetOptions, Kt as UpgradePolicyOptions, L as CreateFolderOptions, Ln as ExtractedText, Lt as SignedAssetUrl, M as CdnResource, Mn as AssetPreview, Mt as RetryAssetOptions, N as CdnServeOptions, Nn as AssetRendered, Nt as SearchAssetsOptions, O as CalmLensServerClientOptions, Ot as RemoveAssetContentOptions, P as CdnTransform, Pn as AssetRenderedKind, Pt as SetPolicyAutomaticUpdatesOptions, Q as HashListIdOptions, Qt as WaitForAssetDecisionOptions, R as CreateHashListOptions, Rn as FileMetadata, Rt as SignedUploadToken, S as AssetUploadStatus, Sn as ProcessingFeatures, St as MoveAssetOptions, T as BatchAssetsOptions, Tn as LensType, Tt as MultipartUploadPartOptions, U as DeleteAssetOptions, Ut as UpdateHashListOptions, V as CreatePolicyOptions, Vt as UpdateAssetOptions, W as EnsureLensOptions, Wt as UpdateLensOptions, X as HashListEntryIdOptions, Xt as VerifyWebhookSignatureOptions, Y as GetAssetInfoOptions, Yt as UploadedAsset, Z as HashListEntryPage, Zt as ViewerClaims, _ as AssetSearchResponse, _n as DetectedFace, _t as ListFoldersOptions, a as AssetChildrenPage, an as EventAsset, at as IterateFoldersOptions, b as AssetType, bn as ProcessingFeatureResults, bt as ListLensesOptions, c as AssetClassificationStatus, cn as EventFact, ct as IterateLensesOptions, d as AssetContentRemovalReason, dn as EventSeverity, dt as LensIdOptions, en as WebhookPayloadInput, et as IdempotencyOptions, f as AssetContentStatus, fn as EventType, ft as LensPage, g as AssetPage, gn as BoundingBox, gt as ListEventsOptions, h as AssetModerationStatus, hn as AgeRange, ht as ListAssetsOptions, i as AssetChecksums, it as IterateAssetsOptions, j as CdnAssetUrlOptions, jn as AssetHlsRendition, jt as RetrieveAssetOptions, k as CdnAssetLocation, kn as AssetInfo, kt as RequestOptions, l as AssetContent, ln as EventFactValues, lt as IteratePoliciesOptions, m as AssetModerationDecision, mn as Folder, mt as ListAssetTimelineOptions, n as Asset, nn as AssetTimelineSegment, nt as IterateAssetChildrenOptions, o as AssetClassification, on as TypedEvent, ot as IterateHashListEntriesOptions, p as AssetModeration, pt as ListAssetChildrenOptions, q as FolderIdOptions, qt as UploadAssetPartOptions, r as AssetAvailability, rn as GetEventsResponse, rt as IterateAssetTimelineOptions, s as AssetClassificationFailureReason, sn as EventCategory, st as IterateHashListsOptions, t as AddHashListEntryOptions, tn as AssetBatchOperation, tt as ImageTransformOptions, u as AssetContentOptions, un as EventFacts, ut as Lens, v as AssetSearchResult, vn as DetectedPerson, vt as ListHashListEntriesOptions, w as AssignPolicyOptions, wn as CursorPage, wt as MultipartUploadOptions, x as AssetUpload, xn as ProcessingFeatureStage, xt as ListPoliciesOptions, y as AssetTimelinePage, yn as ProcessingFeatureId, yt as ListHashListsOptions, z as CreateLensOptions, zn as MetadataItem, zt as StreamingFeatureOptions } from "./CalmLensTypes-CUB0YYVz.js";
3
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-gG16T2py.js";
4
+ import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-CKRgjV16.js";
5
+ import { a as CalmLensErrorCode, c as SdkErrorCode, i as CalmLensError, l as ApiErrorCode, o as CalmLensErrorDetails, r as CALMLENS_ERROR_CODES, s as CalmLensErrorOptions, t as ReceivedWebhookEventPayload } from "./WebhookPayload-BLT2y_Jy.js";
6
+ export { type AddHashListEntryOptions, type AgeRange, type ApiErrorCode, type Asset, type AssetAvailability, type AssetBatchOperation, type AssetChecksums, type AssetChildrenPage, type AssetClassification, type AssetClassificationFailureReason, type AssetClassificationStatus, type AssetContent, type AssetContentOptions, type AssetContentRemovalReason, type AssetContentStatus, type AssetHls, type AssetHlsRendition, type AssetInfo, type AssetModeration, type AssetModerationDecision, type AssetModerationStatus, type AssetPage, type AssetPreview, type AssetRendered, type AssetRenderedKind, type AssetSafetyHold, type AssetSafetyHoldReason, type AssetSearchMatchField, type AssetSearchQuery, type AssetSearchResponse, type AssetSearchResult, type AssetTimelinePage, type AssetTimelineSegment, type AssetType, type AssetUpload, type AssetUploadStatus, type AssetVisibility, type AssignPolicyOptions, type BatchAssetsOptions, type BatchAssetsResponse, type BoundingBox, CALMLENS_ERROR_CODES, CDN_RESOURCES, CalmLensAppClient, type CalmLensAppClientOptions, CalmLensError, type CalmLensErrorCode, type CalmLensErrorDetails, type CalmLensErrorOptions, type CalmLensServerClientOptions, type CdnAssetLocation, type CdnAssetReference, type CdnAssetUrlOptions, type CdnResource, type CdnServeOptions, type CdnTransform, type ClassificationCategories, type ClassificationCategory, type ClassificationCategoryReport, type ClassificationNotEvaluatedReason, type ClassificationQualifierResults, type ClassifyTextOptions, type ConnectionOptions, type CreateFolderOptions, type CreateHashListOptions, type CreateLensOptions, type CreateMultipartUploadPartOptions, type CreatePolicyOptions, type CursorPage, DEFAULT_CDN_BASE_URL, type DecideAssetOptions, type DeleteAssetOptions, type DetectedFace, type DetectedPerson, type EnsureLensOptions, type EnsureLensesOptions, type EventAsset, type EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventSeverity, type EventType, type GetEventsResponse as EventsPage, type ExplainAssetOptions, 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 IterateAssetChildrenOptions, type IterateAssetTimelineOptions, type IterateAssetsOptions, type IterateFoldersOptions, type IterateHashListEntriesOptions, type IterateHashListsOptions, type IterateLensesOptions, type IteratePoliciesOptions, 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 ListPoliciesOptions, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, 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 RemoveAssetContentOptions, type RequestOptions, type ResetPolicyOptions, type RetrieveAssetOptions, type RetryAssetOptions, SDK_VERSION, type SdkErrorCode, type SearchAssetsOptions, 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 UpgradePolicyOptions, type UploadAssetPartOptions, type UploadPresetSubmitAssetOptions, type UploadedAsset, type VerifyWebhookSignatureOptions, type ViewerClaims, type WaitForAssetDecisionOptions, type ReceivedWebhookEventPayload as WebhookEventPayload, type WebhookHeadersInput, type WebhookPayloadInput, getAssetInfo, selectModerationContextItems };
package/esm/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as CALMLENS_ERROR_CODES, c as DEFAULT_CDN_BASE_URL, d as getAssetUrl, i as SDK_VERSION, j as CalmLensError, n as MODERATION_CONTEXT_USED_ITEMS, r as selectModerationContextItems, t as MODERATION_CONTEXT_USED_CHARACTERS } from "./ModerationContextLimits-lLfmyLni.js";
1
+ import { L as CALMLENS_ERROR_CODES, P as SDK_VERSION, R as CalmLensError, i as CDN_RESOURCES, n as MODERATION_CONTEXT_USED_ITEMS, r as selectModerationContextItems, s as getAssetInfo, t as MODERATION_CONTEXT_USED_CHARACTERS, u as DEFAULT_CDN_BASE_URL } from "./ModerationContextLimits-B6_RalCQ.js";
2
2
  import "./index.js";
3
- import { t as CalmLensAppClient } from "./CalmLensAppClient-BjlvBweS.js";
4
- export { CALMLENS_ERROR_CODES, CalmLensAppClient, CalmLensError, DEFAULT_CDN_BASE_URL, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, SDK_VERSION, getAssetUrl, selectModerationContextItems };
3
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-CK4_Py0c.js";
4
+ export { CALMLENS_ERROR_CODES, CDN_RESOURCES, CalmLensAppClient, CalmLensError, DEFAULT_CDN_BASE_URL, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, SDK_VERSION, getAssetInfo, selectModerationContextItems };
package/esm/elements.d.ts CHANGED
@@ -1,5 +1,72 @@
1
- import { A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as getUploadItemOutcome, E as getUploadItemMessage, F as UploadFile, G as MediaSource, H as MediaImageSource, J as pickMediaSource, K as MediaState, M as UploadClient, N as UploadController, O as resolveMessages, R as UploadStage, S as formatBytes, T as getMediaUnavailableMessage, U as MediaOptions, V as MediaAsset, W as MediaSettings, Y as resolveMediaProps, _ as DEFAULT_MESSAGES, a as ProgressFetchOptions, b as describeUploadItem, c as ICON_ATTRIBUTES, d as MediaProps, f as UploaderDisplayOptions, g as CalmLensMessages, h as getMediaLoadKey, i as CALMLENS_STYLES, j as CustomUploadResult, l as IconName, m as getMediaAspectRatio, n as CalmLensTheme, o as createProgressFetch, q as getMediaState, r as resolveTheme, s as ICONS, t as CALMLENS_THEME, u as MediaDisplayOptions, v as UploadItemView, w as getDropzoneHint, x as describeUploader, y as UploaderView } from "./ui-B23r8BvW.js";
2
- import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-RkxV_Vv7.js";
1
+ import { r as AssetAvailability } from "./CalmLensTypes-CUB0YYVz.js";
2
+ import { $ as getAssetViewKey, A as CustomUploadResult, B as AssetDisplay, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, G as AssetSession, H as AssetImageOptions, J as AssetVideoOptions, K as AssetSessionState, L as UploadStage, M as UploadController, P as UploadFile, Q as getAssetView, S as formatBytes, T as getUploadItemMessage, U as AssetImageSource, V as AssetDocumentOptions, W as AssetOptions, X as MediaPlayback, Y as AssetView, Z as getAssetAspectRatio, _ as DEFAULT_MESSAGES, _t as formatViewerMessage, a as ProgressFetchOptions, at as ImageViewerOptions, b as describeUploadItem, c as ICON_ATTRIBUTES, ct as TextViewerOptions, d as AssetDisplayOptions, dt as ViewerTextOptions, et as getPeakHeights, f as AssetEventHandlers, ft as WebsiteViewerOptions, g as CalmLensMessages, gt as ViewerMessages, ht as DEFAULT_VIEWER_MESSAGES, i as CALMLENS_STYLES, it as DocumentViewerOptions, j as UploadClient, k as CustomUploadContext, l as IconName, lt as ViewerAsset, m as UploaderDisplayOptions, mt as isSpreadsheetFormat, n as CalmLensTheme, nt as pickAssetSource, o as createProgressFetch, ot as PdfAssetOptions, p as AssetProps, pt as getAssetViewerKind, q as AssetSpreadsheetOptions, r as resolveTheme, rt as AssetViewerKind, s as ICONS, st as SpreadsheetViewerOptions, t as CALMLENS_THEME, tt as getPlayedPercent, u as ASSET_FILE_ICON_SIZE, ut as ViewerOptions, v as UploadItemView, vt as resolveViewerMessages, w as getDropzoneHint, x as describeUploader, y as UploaderView, z as isFileAccepted } from "./Core-C82YmjjX.js";
3
+ import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-D-NnAN7g.js";
4
+ import { C as ViewerState, S as AssetViewer, _ as spreadsheetColumnIndex, a as isMountedViewerKind, b as createWebsiteViewer, 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 createDocumentViewer, y as createImageViewer } from "./ui-CTBUxnVp.js";
5
+ declare const BaseElement$1: typeof HTMLElement;
6
+ /**
7
+ * An asset viewer element. Set the `src` attribute to the asset URL (public or signed) and the
8
+ * `asset` property to its display info or the asset from the API, and `onExpired` to refresh a
9
+ * signed URL; other attributes: `label`, `viewer-claims` (JSON), `sizes` (images), `page-size`
10
+ * (spreadsheets) and `initial-page` (documents). The `text` and `getText` properties supply text
11
+ * and spreadsheet viewers' text, `messages` replaces their text and `pdf` sets where pdf.js loads
12
+ * its files from.
13
+ */
14
+ declare abstract class ViewerElement<K extends AssetViewerName> extends BaseElement$1 {
15
+ #private;
16
+ static observedAttributes: string[];
17
+ protected abstract readonly kind: K;
18
+ /** The asset to show, from the API. */
19
+ get asset(): ViewerAsset | undefined;
20
+ set asset(value: ViewerAsset | undefined);
21
+ /** Returns a fresh asset URL from your server once a signed one expires. */
22
+ get onExpired(): (() => string | Promise<string>) | undefined;
23
+ set onExpired(value: (() => string | Promise<string>) | undefined);
24
+ /** Reads a text or spreadsheet viewer's text yourself. */
25
+ get getText(): (() => Promise<string>) | undefined;
26
+ set getText(value: (() => Promise<string>) | undefined);
27
+ /** Text your app already has, for a text or spreadsheet viewer. */
28
+ get text(): string | undefined;
29
+ set text(value: string | undefined);
30
+ get messages(): Partial<ViewerMessages> | undefined;
31
+ set messages(value: Partial<ViewerMessages> | undefined);
32
+ /** Where a document viewer's pdf.js loads its worker, fonts and decoders from. */
33
+ get pdf(): PdfAssetOptions | undefined;
34
+ set pdf(value: PdfAssetOptions | undefined);
35
+ connectedCallback(): void;
36
+ attributeChangedCallback(): void;
37
+ disconnectedCallback(): void;
38
+ }
39
+ /** `<calmlens-image-viewer>`: an image asset's rendered file, fitted to the element. */
40
+ export declare class CalmLensImageViewerElement extends ViewerElement<"image"> {
41
+ protected readonly kind = "image";
42
+ }
43
+ /** `<calmlens-website-viewer>`: a website's screenshot and a link to the page. */
44
+ export declare class CalmLensWebsiteViewerElement extends ViewerElement<"website"> {
45
+ protected readonly kind = "website";
46
+ }
47
+ /** `<calmlens-text-viewer>`: text, escaped, in a scrolling region. */
48
+ export declare class CalmLensTextViewerElement extends ViewerElement<"text"> {
49
+ protected readonly kind = "text";
50
+ }
51
+ /** `<calmlens-document-viewer>`: a PDF a page at a time, with pdf.js loaded lazily. */
52
+ export declare class CalmLensDocumentViewerElement extends ViewerElement<"document"> {
53
+ protected readonly kind = "document";
54
+ }
55
+ /** `<calmlens-spreadsheet-viewer>`: a spreadsheet's sheets as tabs and paged tables. */
56
+ export declare class CalmLensSpreadsheetViewerElement extends ViewerElement<"spreadsheet"> {
57
+ protected readonly kind = "spreadsheet";
58
+ }
59
+ /** Defines the asset viewer elements, if they aren't defined yet. */
60
+ export declare const defineCalmLensViewerElements: () => void;
61
+ declare global {
62
+ interface HTMLElementTagNameMap {
63
+ "calmlens-image-viewer": CalmLensImageViewerElement;
64
+ "calmlens-website-viewer": CalmLensWebsiteViewerElement;
65
+ "calmlens-text-viewer": CalmLensTextViewerElement;
66
+ "calmlens-document-viewer": CalmLensDocumentViewerElement;
67
+ "calmlens-spreadsheet-viewer": CalmLensSpreadsheetViewerElement;
68
+ }
69
+ }
3
70
  /** The `detail` of each event the elements dispatch. */
4
71
  export interface CalmLensElementEvents {
5
72
  "calmlens-uploaded": CalmLensUpload;
@@ -7,7 +74,13 @@ export interface CalmLensElementEvents {
7
74
  "calmlens-failed": UploadItem;
8
75
  "calmlens-removed": UploadItem;
9
76
  "calmlens-change": UploadSnapshot;
10
- "calmlens-reveal": undefined;
77
+ "calmlens-load": undefined;
78
+ "calmlens-error": undefined;
79
+ "calmlens-availability-change": AssetAvailability;
80
+ "calmlens-age-confirm-request": undefined;
81
+ "calmlens-play": undefined;
82
+ "calmlens-ended": undefined;
83
+ "calmlens-timeupdate": number;
11
84
  }
12
85
  declare const BaseElement: typeof HTMLElement;
13
86
  /**
@@ -46,35 +119,57 @@ export declare class CalmLensUploaderElement extends BaseElement {
46
119
  attributeChangedCallback(): void;
47
120
  }
48
121
  /**
49
- * `<calmlens-media project-id="…" asset-id="…" status="allowed" alt="…">` shows an asset from the
50
- * CalmLens CDN with a blurred placeholder while it loads. Age-restricted assets show the
51
- * placeholder and a reveal button, which dispatches `calmlens-reveal`, until `age-confirmed` is set.
52
- * Attributes: `project-id`, `asset-id`, `status`, `age-confirmed`, `type`, `resource`, `lens`,
53
- * `transform`, `widths` (comma-separated), `url`, `no-placeholder`, `placeholder-hash`,
54
- * `placeholder-url`, `average-color`, `cdn-base-url`, `alt`, `aspect-ratio`, `width`, `height`,
55
- * `sizes`, `fit`, `position`, `eager`, `fetch-priority` and `no-controls`. Set the
56
- * `asset` property to an API asset instead of `project-id` and `asset-id`.
122
+ * `<calmlens-asset src="…" alt="…">` shows any asset from its asset URL (public, or signed by your
123
+ * server), natively in the page, the same way `CalmLensAsset` does in React, Vue and Svelte. It
124
+ * reads `{src}/info` once connected, unless the `info` property is set. Attributes: `src`,
125
+ * `display` (`full` or `preview`), `viewer-claims` (JSON), `alt`, `fit`, `aspect-ratio`, `eager`,
126
+ * `fetch-priority`, `lens`, `transform`, `widths` (comma-separated), `sizes`, `no-controls`,
127
+ * `autoplay`, `muted`, `loop`, `no-stream`, `initial-page` and `page-size`. Properties: `info`,
128
+ * `onExpired` (returns a fresh signed asset URL), `messages`, `pdf`, `getText` (a spreadsheet's
129
+ * sheets), and `renderUnavailable` / `renderAgeGate` (return your own notice's node). Events:
130
+ * `calmlens-load`, `calmlens-error`, `calmlens-availability-change` (detail: the availability),
131
+ * `calmlens-age-confirm-request`, `calmlens-play`, `calmlens-ended` and `calmlens-timeupdate`
132
+ * (detail: the position in seconds).
57
133
  */
58
- export declare class CalmLensMediaElement extends BaseElement {
134
+ export declare class CalmLensAssetElement extends BaseElement {
59
135
  #private;
60
136
  static observedAttributes: string[];
61
137
  get messages(): Partial<CalmLensMessages> | undefined;
62
138
  set messages(value: Partial<CalmLensMessages> | undefined);
63
- /**
64
- * An asset from the API, in place of `project-id` and `asset-id`. It supplies the status, type
65
- * and preview too; attributes you set win over it.
66
- */
67
- get asset(): MediaAsset | undefined;
68
- set asset(value: MediaAsset | undefined);
139
+ /** The asset's display info, prefetched with `getAssetInfo`, so nothing waits for `/info`. */
140
+ get info(): ViewerAsset | undefined;
141
+ set info(value: ViewerAsset | undefined);
142
+ /** Returns a fresh asset URL from your server once a signed one expires. */
143
+ get onExpired(): (() => string | Promise<string>) | undefined;
144
+ set onExpired(value: (() => string | Promise<string>) | undefined);
145
+ /** Where a document's pdf.js loads its worker, fonts and decoders from. */
146
+ get pdf(): PdfAssetOptions | undefined;
147
+ set pdf(value: PdfAssetOptions | undefined);
148
+ /** Reads a spreadsheet's sheets yourself, such as from its text child asset. */
149
+ get getText(): (() => Promise<string>) | undefined;
150
+ set getText(value: (() => Promise<string>) | undefined);
151
+ /** Returns your own unavailable notice. */
152
+ get renderUnavailable(): (() => Node) | undefined;
153
+ set renderUnavailable(value: (() => Node) | undefined);
154
+ /** Returns your own age notice; call `confirm` from its reveal button. */
155
+ get renderAgeGate(): ((props: {
156
+ placeholderUrl?: string;
157
+ confirm: () => void;
158
+ }) => Node) | undefined;
159
+ set renderAgeGate(value: ((props: {
160
+ placeholderUrl?: string;
161
+ confirm: () => void;
162
+ }) => Node) | undefined);
69
163
  connectedCallback(): void;
70
164
  attributeChangedCallback(): void;
165
+ disconnectedCallback(): void;
71
166
  }
72
- /** Defines `<calmlens-uploader>` and `<calmlens-media>`, if they aren't defined yet. */
167
+ /** Defines `<calmlens-uploader>` and `<calmlens-asset>`, if they aren't defined yet. */
73
168
  export declare const defineCalmLensElements: () => void;
74
169
  declare global {
75
170
  interface HTMLElementTagNameMap {
76
171
  "calmlens-uploader": CalmLensUploaderElement;
77
- "calmlens-media": CalmLensMediaElement;
172
+ "calmlens-asset": CalmLensAssetElement;
78
173
  }
79
174
  interface HTMLElementEventMap {
80
175
  "calmlens-uploaded": CustomEvent<CalmLensUpload>;
@@ -82,7 +177,13 @@ declare global {
82
177
  "calmlens-failed": CustomEvent<UploadItem>;
83
178
  "calmlens-removed": CustomEvent<UploadItem>;
84
179
  "calmlens-change": CustomEvent<UploadSnapshot>;
85
- "calmlens-reveal": CustomEvent<undefined>;
180
+ "calmlens-load": CustomEvent<undefined>;
181
+ "calmlens-error": CustomEvent<undefined>;
182
+ "calmlens-availability-change": CustomEvent<AssetAvailability>;
183
+ "calmlens-age-confirm-request": CustomEvent<undefined>;
184
+ "calmlens-play": CustomEvent<undefined>;
185
+ "calmlens-ended": CustomEvent<undefined>;
186
+ "calmlens-timeupdate": CustomEvent<number>;
86
187
  }
87
188
  }
88
- export { CALMLENS_STYLES, CALMLENS_THEME, type CalmLensMessages, type CalmLensTheme, type CalmLensUpload, type CustomUploadContext, type CustomUploadResult, DEFAULT_MESSAGES, ICONS, ICON_ATTRIBUTES, type IconName, type MediaAsset, type MediaDisplayOptions, type MediaImageSource, type MediaOptions, type MediaProps, type MediaSettings, type MediaSource, type MediaState, type ProgressFetchOptions, type UploadClient, UploadController, type UploadControllerOptions, type UploadFile, type UploadItem, type UploadItemView, type UploadSnapshot, type UploadStage, type UploaderDisplayOptions, type UploaderProps, type UploaderView, createProgressFetch, createUploadController, describeUploadItem, describeUploader, formatBytes, formatMessage, getDropzoneHint, getMediaAspectRatio, getMediaLoadKey, getMediaState, getMediaUnavailableMessage, getUploadItemMessage, getUploadItemOutcome, isFileAccepted, pickMediaSource, resolveMediaProps, resolveMessages, resolveTheme };
189
+ 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 CalmLensTheme, type CalmLensUpload, type CustomUploadContext, type CustomUploadResult, DEFAULT_MESSAGES, DEFAULT_VIEWER_MESSAGES, type DocumentViewerOptions, ICONS, ICON_ATTRIBUTES, type IconName, type ImageViewerOptions, 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, type WebsiteViewerOptions, createDocumentViewer, createImageViewer, createProgressFetch, createSpreadsheetViewer, createTextViewer, createUploadController, createWebsiteViewer, describeUploadItem, describeUploader, formatBytes, formatMessage, formatViewerMessage, getAssetAspectRatio, getAssetView, getAssetViewKey, getAssetViewerKind, getDropzoneHint, getMountedViewerOptions, getPeakHeights, getPlayedPercent, getSpreadsheetPage, getUploadItemMessage, getUploadItemOutcome, isFileAccepted, isMountedViewerKind, isSpreadsheetFormat, loadPdfJs, parseSpreadsheetText, pickAssetSource, resolveMessages, resolveTheme, resolveViewerMessages, spreadsheetColumnIndex };