calmlens 0.20.0 → 0.22.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.
- package/README.md +15 -10
- package/bin/calmlens.js +1848 -679
- package/cjs/{BrowserUpload-C07aL9Vq.d.ts → BrowserUpload-BWjZ9ntu.d.ts} +2 -2
- package/cjs/{BrowserUpload-CjSHjx3C.js → BrowserUpload-Bwlib4Zc.js} +1 -1
- package/cjs/{CalmLensAppClient-DDLojj0P.d.ts → CalmLensAppClient-BaW3ddUR.d.ts} +13 -3
- package/cjs/{CalmLensAppClient-NaCxOVlM.js → CalmLensAppClient-DUYMo9PZ.js} +30 -10
- package/cjs/{CalmLensOptionKeys-p2QK687A.js → CalmLensOptionKeys-YvgV995V.js} +318 -374
- package/cjs/{CalmLensServerClient-BDzTthxE.js → CalmLensServerClient-3N-gdsxC.js} +346 -89
- package/cjs/CalmLensServerClient-BKzn8zmp.d.ts +353 -0
- package/cjs/{CalmLensTypes-COJbOuiv.d.ts → CalmLensTypes-BDKwThbO.d.ts} +26993 -27187
- package/cjs/{Classification-D3SkprrQ-CMnQKW13.d.ts → Classification-Q5zGpR8l-CEWjnE39.d.ts} +731 -607
- package/cjs/Core-C33pkBmf.d.ts +826 -0
- package/cjs/Core-Cm5Z1oJ9.js +1001 -0
- package/cjs/FileIcons-4qSX7DW2.d.ts +67 -0
- package/cjs/{ModerationContextLimits-2nIv7Zh3.js → ModerationContextLimits-ud1xpZRK.js} +727 -268
- package/cjs/{ReactUpload-BdTRCTGA.js → ReactUpload-DQ0BYISX.js} +1 -1
- package/cjs/{ReactUpload-CRJNPB5T.d.ts → ReactUpload-DhF8mm51.d.ts} +1 -1
- package/{esm/TestTriggers-D-fwfhEP-hlaP1oW2.d.ts → cjs/TestTriggers-D0pYHbkr-D5T0VdSn.d.ts} +146 -8
- package/cjs/{TestTriggers-DbhsNPdg-DjvVuc2h.js → TestTriggers-D29T_R0M-D6Bu-Mln.js} +355 -47
- package/cjs/{UploadController-MLVs97Zt.js → UploadController-l8fZM2qT.js} +34 -14
- package/{esm/WebhookPayload-DkukERKE.d.ts → cjs/WebhookPayload-Dt6DttS0.d.ts} +120 -86
- package/cjs/app.d.ts +6 -7
- package/cjs/app.js +4 -3
- package/cjs/elements.d.ts +123 -22
- package/cjs/elements.js +553 -156
- package/cjs/file-icons.d.ts +2 -67
- package/cjs/index-Bde1wjiw.d.ts +16 -0
- package/cjs/index.d.ts +5 -6
- package/cjs/index.js +3 -2
- package/cjs/react-native.d.ts +52 -11
- package/cjs/react-native.js +231 -99
- package/cjs/react.d.ts +42 -9
- package/cjs/react.js +381 -118
- package/cjs/server.d.ts +48 -7
- package/cjs/server.js +7 -3
- package/cjs/test-inputs.d.ts +2 -2
- package/cjs/test-inputs.js +13 -9
- package/cjs/testing.d.ts +29 -15
- package/cjs/testing.js +1722 -433
- package/cjs/ui-BRA4HQ8r.js +1359 -0
- package/cjs/ui-YQuvbidU.d.ts +139 -0
- package/cjs/ui.d.ts +3 -2
- package/cjs/ui.js +45 -22
- package/cjs/vue.d.ts +802 -199
- package/cjs/vue.js +359 -127
- package/esm/{BrowserUpload-C07aL9Vq.d.ts → BrowserUpload-BWjZ9ntu.d.ts} +2 -2
- package/esm/{BrowserUpload-CAVkRotw.js → BrowserUpload-GRZVB0G_.js} +1 -1
- package/esm/{CalmLensAppClient-PQ9VBvlW.js → CalmLensAppClient-B5QIJ6KS.js} +30 -10
- package/esm/{CalmLensAppClient-DDLojj0P.d.ts → CalmLensAppClient-BaW3ddUR.d.ts} +13 -3
- package/esm/{CalmLensOptionKeys-Do2mPP6w.js → CalmLensOptionKeys-BG7Qrh8-.js} +317 -367
- package/esm/CalmLensServerClient-BKzn8zmp.d.ts +353 -0
- package/esm/{CalmLensServerClient-C_H5aAsV.js → CalmLensServerClient-bRUAebi-.js} +323 -90
- package/esm/{CalmLensTypes-COJbOuiv.d.ts → CalmLensTypes-BDKwThbO.d.ts} +26993 -27187
- package/esm/{Classification-D3SkprrQ-CMnQKW13.d.ts → Classification-Q5zGpR8l-CEWjnE39.d.ts} +731 -607
- package/esm/Core-BvQe4moS.js +846 -0
- package/esm/Core-C33pkBmf.d.ts +826 -0
- package/esm/FileIcons-4qSX7DW2.d.ts +67 -0
- package/esm/{ModerationContextLimits-Chw-AzgL.js → ModerationContextLimits-CrxSnVZ3.js} +682 -253
- package/esm/{ReactUpload-CMmL0R5Q.js → ReactUpload-BMO8saxT.js} +1 -1
- package/esm/{ReactUpload-CRJNPB5T.d.ts → ReactUpload-DhF8mm51.d.ts} +1 -1
- package/{cjs/TestTriggers-D-fwfhEP-hlaP1oW2.d.ts → esm/TestTriggers-D0pYHbkr-D5T0VdSn.d.ts} +146 -8
- package/esm/{TestTriggers-DbhsNPdg-CUdrv8Nm.js → TestTriggers-D29T_R0M-Ztc74ucs.js} +332 -48
- package/esm/{UploadController-BJZghJpg.js → UploadController-DnJrWiE4.js} +34 -14
- package/{cjs/WebhookPayload-DkukERKE.d.ts → esm/WebhookPayload-Dt6DttS0.d.ts} +120 -86
- package/esm/app.d.ts +6 -7
- package/esm/app.js +3 -3
- package/esm/elements.d.ts +123 -22
- package/esm/elements.js +497 -128
- package/esm/file-icons.d.ts +2 -67
- package/esm/index-Bde1wjiw.d.ts +16 -0
- package/esm/index.d.ts +5 -6
- package/esm/index.js +1 -1
- package/esm/react-native.d.ts +52 -11
- package/esm/react-native.js +205 -75
- package/esm/react.d.ts +42 -9
- package/esm/react.js +327 -91
- package/esm/server.d.ts +48 -7
- package/esm/server.js +3 -3
- package/esm/styles.css +142 -22
- package/esm/svelte/AssetViewer.svelte +25 -0
- package/esm/svelte/CalmLensAsset.svelte +318 -0
- package/esm/svelte/CalmLensDocumentViewer.svelte +7 -0
- package/esm/svelte/CalmLensImageViewer.svelte +7 -0
- package/esm/svelte/CalmLensSpreadsheetViewer.svelte +7 -0
- package/esm/svelte/CalmLensTextViewer.svelte +7 -0
- package/esm/svelte/CalmLensWebsiteViewer.svelte +7 -0
- package/esm/svelte/index.d.ts +29 -6
- package/esm/svelte/index.js +7 -2
- package/esm/test-inputs.d.ts +2 -2
- package/esm/test-inputs.js +1 -1
- package/esm/testing.d.ts +29 -15
- package/esm/testing.js +1718 -429
- package/esm/ui-YQuvbidU.d.ts +139 -0
- package/esm/ui-heryDd6g.js +1258 -0
- package/esm/ui.d.ts +3 -2
- package/esm/ui.js +4 -3
- package/esm/vue.d.ts +802 -199
- package/esm/vue.js +308 -103
- package/package.json +4 -2
- package/cjs/CalmLensServerClient-C-jsjn8m.d.ts +0 -259
- package/cjs/ModerationContext-9lGm-Mna-CcmbRnOy.d.ts +0 -67
- package/cjs/index-DxbJ_Xaa.d.ts +0 -253
- package/cjs/ui-BSqPGKrZ.d.ts +0 -539
- package/cjs/ui-CX1z2pD9.js +0 -586
- package/esm/CalmLensServerClient-C-jsjn8m.d.ts +0 -259
- package/esm/ModerationContext-9lGm-Mna-CcmbRnOy.d.ts +0 -67
- package/esm/index-DxbJ_Xaa.d.ts +0 -253
- package/esm/svelte/CalmLensMedia.svelte +0 -134
- package/esm/ui-BSqPGKrZ.d.ts +0 -539
- package/esm/ui-CXH7xJpb.js +0 -461
|
@@ -1,64 +1,66 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gn as TypedEvent, hn as EventAsset, mn as Actor } from "./CalmLensTypes-BDKwThbO.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
|
|
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
|
|
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: "
|
|
19
|
-
readonly INVALID_FILTER: "
|
|
20
|
-
readonly
|
|
21
|
-
readonly ROUTE_NOT_FOUND: "
|
|
22
|
-
readonly 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: "
|
|
25
|
-
readonly 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: "
|
|
28
|
-
readonly INVALID_TRANSFORM_OPTIONS: "
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
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
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
38
|
+
readonly UPLOAD_TOO_LARGE: "upload/too-large";
|
|
39
|
+
readonly DOCUMENT_TOO_MANY_ITEMS: "document/too-many-items";
|
|
40
|
+
readonly MEDIA_DURATION_LIMIT: "media/duration-limit";
|
|
41
|
+
readonly INVALID_IMAGE: "image/invalid";
|
|
42
|
+
readonly IMAGE_TOO_LARGE: "image/too-large";
|
|
43
|
+
readonly FREE_UPLOADS_EXHAUSTED: "usage/free-uploads-exhausted";
|
|
44
|
+
readonly UPLOADS_PAUSED: "usage/uploads-paused";
|
|
45
|
+
readonly UNSUPPORTED_UPLOAD_TYPE: "upload/unsupported-type";
|
|
46
|
+
readonly INVALID_UPLOAD_PAYLOAD: "upload-payload/invalid";
|
|
47
|
+
readonly UPLOAD_OPTIONS_IN_QUERY: "upload/options-in-query";
|
|
48
48
|
readonly USE_UPLOAD_PART: "upload/use-upload-part";
|
|
49
49
|
readonly UPLOAD_NOT_OPEN: "upload/not-open";
|
|
50
|
-
readonly INVALID_UPLOAD_PART_NUMBER: "upload/invalid-
|
|
50
|
+
readonly INVALID_UPLOAD_PART_NUMBER: "upload-part/invalid-number";
|
|
51
51
|
readonly UPLOAD_MISSING: "upload/missing";
|
|
52
52
|
readonly UPLOAD_SIZE_MISMATCH: "upload/size-mismatch";
|
|
53
53
|
readonly INVALID_IDEMPOTENCY_KEY: "idempotency/invalid-key";
|
|
54
54
|
readonly IDEMPOTENCY_KEY_REUSED: "idempotency/key-reused";
|
|
55
55
|
readonly IDEMPOTENT_REQUEST_IN_PROGRESS: "idempotency/request-in-progress";
|
|
56
|
+
readonly NO_RENDERED_VERSION: "asset/no-rendered-version";
|
|
56
57
|
readonly ASSET_NOT_FOUND: "asset/not-found";
|
|
57
58
|
readonly PROJECT_NOT_FOUND: "project/not-found";
|
|
59
|
+
readonly ASSET_CHILD_NOT_DELETABLE: "asset/child-not-deletable";
|
|
58
60
|
readonly ASSET_REVIEW_CHANGED: "asset/review-changed";
|
|
59
61
|
readonly ASSET_REVIEW_NOTE_REQUIRED: "asset/review-note-required";
|
|
60
62
|
readonly ASSET_UPDATE_FAILED: "asset/update-failed";
|
|
61
|
-
readonly
|
|
63
|
+
readonly ASSET_HELD: "asset/held";
|
|
62
64
|
readonly ASSET_PROCESSING: "asset/processing";
|
|
63
65
|
readonly ASSET_DECISION_NOT_ALLOWED: "asset/decision-not-allowed";
|
|
64
66
|
readonly ASSET_DECISION_UNCHANGED: "asset/decision-unchanged";
|
|
@@ -68,18 +70,19 @@ declare const API_ERROR_CODES: {
|
|
|
68
70
|
readonly ASSET_NOT_DECIDED: "asset/not-decided";
|
|
69
71
|
readonly ASSET_POLICY_CHANGED: "asset/policy-changed";
|
|
70
72
|
readonly ASSET_REVIEWED: "asset/reviewed";
|
|
71
|
-
readonly SUPPORT_TICKET_NOT_FOUND: "support/
|
|
73
|
+
readonly SUPPORT_TICKET_NOT_FOUND: "support-ticket/not-found";
|
|
72
74
|
readonly DUPLICATE_EXTERNAL_ID: "asset/duplicate-external-id";
|
|
73
75
|
readonly FOLDER_NOT_FOUND: "folder/not-found";
|
|
74
76
|
readonly DUPLICATE_FOLDER_NAME: "folder/duplicate-name";
|
|
75
77
|
readonly FOLDER_NOT_EMPTY: "folder/not-empty";
|
|
76
78
|
readonly FOLDER_PARENT_CYCLE: "folder/parent-cycle";
|
|
77
|
-
readonly
|
|
79
|
+
readonly LENS_NOT_FOUND: "lens/not-found";
|
|
80
|
+
readonly LENS_IDENTIFIER_TAKEN: "lens/identifier-taken";
|
|
78
81
|
readonly LENS_IDENTIFIER_RESERVED: "lens/identifier-reserved";
|
|
79
82
|
readonly HASH_LIST_NOT_FOUND: "hash-list/not-found";
|
|
80
|
-
readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list/
|
|
83
|
+
readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list-entry/not-found";
|
|
81
84
|
readonly HASH_LIST_LIMIT_REACHED: "hash-list/limit-reached";
|
|
82
|
-
readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list/
|
|
85
|
+
readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list-entry/limit-reached";
|
|
83
86
|
readonly HASH_LIST_ASSET_NOT_HASHED: "hash-list/asset-not-hashed";
|
|
84
87
|
readonly POLICY_NOT_FOUND: "policy/not-found";
|
|
85
88
|
readonly POLICY_REVISION_CONFLICT: "policy/revision-conflict";
|
|
@@ -93,18 +96,24 @@ declare const API_ERROR_CODES: {
|
|
|
93
96
|
readonly UPLOAD_PRESET_NOT_FOUND: "upload-preset/not-found";
|
|
94
97
|
readonly UPLOAD_PRESET_DISABLED: "upload-preset/disabled";
|
|
95
98
|
readonly UPLOAD_PRESET_TOKEN_REQUIRED: "upload-preset/token-required";
|
|
96
|
-
readonly REMOTE_URL_NOT_ALLOWED: "
|
|
97
|
-
readonly
|
|
98
|
-
readonly UPLOAD_PRESET_CONTENT_TYPE_NOT_ALLOWED: "upload-preset/content-type-not-allowed";
|
|
99
|
-
readonly UPLOAD_PRESET_TOO_LARGE: "upload-preset/too-large";
|
|
99
|
+
readonly REMOTE_URL_NOT_ALLOWED: "remote-url/not-allowed";
|
|
100
|
+
readonly WEBSITE_RATE_LIMIT_REACHED: "upload/website-rate-limit-reached";
|
|
100
101
|
readonly UPLOAD_PRESET_DAILY_LIMIT_REACHED: "upload-preset/daily-limit-reached";
|
|
101
102
|
readonly UPLOAD_PRESET_ORIGIN_NOT_ALLOWED: "upload-preset/origin-not-allowed";
|
|
102
103
|
readonly UPLOAD_PRESET_FIELD_NOT_ALLOWED: "upload-preset/field-not-allowed";
|
|
104
|
+
readonly UPLOAD_PRESET_REVISION_CONFLICT: "upload-preset/revision-conflict";
|
|
105
|
+
readonly UPLOAD_PRESET_KEY_TAKEN: "upload-preset/key-taken";
|
|
106
|
+
readonly UPLOAD_PRESET_DAILY_LIMIT_REQUIRED: "upload-preset/daily-limit-required";
|
|
107
|
+
readonly UPLOAD_PRESET_INVALID_FOLDER: "upload-preset/invalid-folder";
|
|
108
|
+
readonly UPLOAD_PRESET_INVALID_POLICY: "upload-preset/invalid-policy";
|
|
109
|
+
readonly PROJECT_SETTINGS_REVISION_CONFLICT: "project-settings/revision-conflict";
|
|
110
|
+
readonly SEARCH_ESTIMATE_CHANGED: "search/estimate-changed";
|
|
111
|
+
readonly METADATA_FIELD_NOT_FOUND: "metadata-field/not-found";
|
|
103
112
|
readonly UPLOAD_TOKEN_INVALID: "upload-token/invalid";
|
|
104
113
|
readonly UPLOAD_TOKEN_EXPIRED: "upload-token/expired";
|
|
105
114
|
readonly UPLOAD_TOKEN_USED: "upload-token/used";
|
|
106
|
-
readonly INVALID_REMOTE_URL: "
|
|
107
|
-
readonly REMOTE_URL_UNAVAILABLE: "
|
|
115
|
+
readonly INVALID_REMOTE_URL: "remote-url/invalid";
|
|
116
|
+
readonly REMOTE_URL_UNAVAILABLE: "remote-url/unavailable";
|
|
108
117
|
readonly APPEAL_NOT_FOUND: "appeal/not-found";
|
|
109
118
|
readonly APPEAL_JUDGMENT_NOT_FOUND: "appeal/judgment-not-found";
|
|
110
119
|
readonly APPEAL_ASSET_NOT_FOUND: "appeal/asset-not-found";
|
|
@@ -112,7 +121,6 @@ declare const API_ERROR_CODES: {
|
|
|
112
121
|
readonly APPEAL_ALREADY_REVIEWED: "appeal/already-reviewed";
|
|
113
122
|
readonly APPEAL_DECISION_CHANGED: "appeal/decision-changed";
|
|
114
123
|
readonly APPEAL_INVALID_ACTION: "appeal/invalid-action";
|
|
115
|
-
readonly APPEAL_SAFETY_HELD: "appeal/safety-held";
|
|
116
124
|
readonly APPEAL_CONTENT_UNAVAILABLE: "appeal/content-unavailable";
|
|
117
125
|
};
|
|
118
126
|
type ApiErrorCode = (typeof API_ERROR_CODES)[keyof typeof API_ERROR_CODES];
|
|
@@ -145,63 +153,65 @@ declare const SDK_ERROR_CODES: {
|
|
|
145
153
|
type SdkErrorCode = (typeof SDK_ERROR_CODES)[keyof typeof SDK_ERROR_CODES];
|
|
146
154
|
/** Every error code the SDK can throw: the documented API codes and the SDK's own `sdk/*` codes. */
|
|
147
155
|
declare const CALMLENS_ERROR_CODES: {
|
|
148
|
-
readonly INVALID_VIEWER_CLAIMS: "viewer/invalid
|
|
156
|
+
readonly INVALID_VIEWER_CLAIMS: "viewer-claims/invalid";
|
|
149
157
|
readonly AGE_CONFIRMATION_REQUIRED: "viewer/age-confirmation-required";
|
|
150
|
-
readonly INVALID_VIEWER_REGION: "viewer/invalid
|
|
158
|
+
readonly INVALID_VIEWER_REGION: "viewer-region/invalid";
|
|
151
159
|
readonly VIEWER_REGION_REQUIRED: "viewer/region-required";
|
|
152
160
|
readonly REGIONAL_EVIDENCE_REQUIRED: "asset/regional-evidence-required";
|
|
153
161
|
readonly SIGNED_URL_EXPIRED: "signed-url/expired";
|
|
154
162
|
readonly SIGNED_URL_INVALID: "signed-url/invalid";
|
|
163
|
+
readonly SIGNED_URL_ORIGINAL_NOT_GRANTED: "signed-url/original-not-granted";
|
|
164
|
+
readonly INVALID_REQUEST: "validation/invalid-request";
|
|
155
165
|
readonly INVALID_TYPE: "validation/invalid-type";
|
|
156
166
|
readonly TOO_SMALL: "validation/too-small";
|
|
157
167
|
readonly TOO_BIG: "validation/too-big";
|
|
158
168
|
readonly INVALID_FORMAT: "validation/invalid-format";
|
|
159
169
|
readonly INVALID_VALUE: "validation/invalid-value";
|
|
160
170
|
readonly UNKNOWN_FIELD: "validation/unknown-field";
|
|
161
|
-
readonly UNSUPPORTED_CONTENT_TYPE: "
|
|
162
|
-
readonly INVALID_FILTER: "
|
|
163
|
-
readonly
|
|
164
|
-
readonly ROUTE_NOT_FOUND: "
|
|
165
|
-
readonly INTERNAL_ERROR: "
|
|
171
|
+
readonly UNSUPPORTED_CONTENT_TYPE: "request/unsupported-content-type";
|
|
172
|
+
readonly INVALID_FILTER: "filter/invalid";
|
|
173
|
+
readonly UNSUPPORTED_ORDERING_FIELD: "ordering/unsupported-field";
|
|
174
|
+
readonly ROUTE_NOT_FOUND: "request/route-not-found";
|
|
175
|
+
readonly INTERNAL_ERROR: "server/internal-error";
|
|
166
176
|
readonly UNAUTHENTICATED: "auth/unauthenticated";
|
|
167
|
-
readonly TOKEN_EXPIRED: "
|
|
168
|
-
readonly INVALID_TOKEN: "
|
|
177
|
+
readonly TOKEN_EXPIRED: "session-token/expired";
|
|
178
|
+
readonly INVALID_TOKEN: "session-token/invalid";
|
|
169
179
|
readonly SEARCH_UNAVAILABLE: "search/unavailable";
|
|
170
|
-
readonly INVALID_TRANSFORM: "
|
|
171
|
-
readonly INVALID_TRANSFORM_OPTIONS: "
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
174
|
-
readonly
|
|
175
|
-
readonly
|
|
176
|
-
readonly
|
|
177
|
-
readonly
|
|
178
|
-
readonly API_KEY_PROJECT_MISMATCH: "auth/project-mismatch";
|
|
179
|
-
readonly API_KEY_NOT_ACCEPTED: "auth/api-key-not-accepted";
|
|
180
|
+
readonly INVALID_TRANSFORM: "transform/invalid";
|
|
181
|
+
readonly INVALID_TRANSFORM_OPTIONS: "transform-options/invalid";
|
|
182
|
+
readonly REMOTE_URL_TOO_MANY_REDIRECTS: "remote-url/too-many-redirects";
|
|
183
|
+
readonly INVALID_CURSOR: "cursor/invalid";
|
|
184
|
+
readonly MISSING_API_KEY: "api-key/missing";
|
|
185
|
+
readonly INVALID_API_KEY: "api-key/invalid";
|
|
186
|
+
readonly API_KEY_PROJECT_MISMATCH: "api-key/project-mismatch";
|
|
187
|
+
readonly API_KEY_NOT_ACCEPTED: "api-key/not-accepted";
|
|
180
188
|
readonly PERMISSION_DENIED: "auth/permission-denied";
|
|
181
|
-
readonly
|
|
182
|
-
readonly
|
|
183
|
-
readonly
|
|
184
|
-
readonly
|
|
185
|
-
readonly
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
readonly
|
|
189
|
-
readonly
|
|
190
|
-
readonly
|
|
189
|
+
readonly UPLOAD_TOO_LARGE: "upload/too-large";
|
|
190
|
+
readonly DOCUMENT_TOO_MANY_ITEMS: "document/too-many-items";
|
|
191
|
+
readonly MEDIA_DURATION_LIMIT: "media/duration-limit";
|
|
192
|
+
readonly INVALID_IMAGE: "image/invalid";
|
|
193
|
+
readonly IMAGE_TOO_LARGE: "image/too-large";
|
|
194
|
+
readonly FREE_UPLOADS_EXHAUSTED: "usage/free-uploads-exhausted";
|
|
195
|
+
readonly UPLOADS_PAUSED: "usage/uploads-paused";
|
|
196
|
+
readonly UNSUPPORTED_UPLOAD_TYPE: "upload/unsupported-type";
|
|
197
|
+
readonly INVALID_UPLOAD_PAYLOAD: "upload-payload/invalid";
|
|
198
|
+
readonly UPLOAD_OPTIONS_IN_QUERY: "upload/options-in-query";
|
|
191
199
|
readonly USE_UPLOAD_PART: "upload/use-upload-part";
|
|
192
200
|
readonly UPLOAD_NOT_OPEN: "upload/not-open";
|
|
193
|
-
readonly INVALID_UPLOAD_PART_NUMBER: "upload/invalid-
|
|
201
|
+
readonly INVALID_UPLOAD_PART_NUMBER: "upload-part/invalid-number";
|
|
194
202
|
readonly UPLOAD_MISSING: "upload/missing";
|
|
195
203
|
readonly UPLOAD_SIZE_MISMATCH: "upload/size-mismatch";
|
|
196
204
|
readonly INVALID_IDEMPOTENCY_KEY: "idempotency/invalid-key";
|
|
197
205
|
readonly IDEMPOTENCY_KEY_REUSED: "idempotency/key-reused";
|
|
198
206
|
readonly IDEMPOTENT_REQUEST_IN_PROGRESS: "idempotency/request-in-progress";
|
|
207
|
+
readonly NO_RENDERED_VERSION: "asset/no-rendered-version";
|
|
199
208
|
readonly ASSET_NOT_FOUND: "asset/not-found";
|
|
200
209
|
readonly PROJECT_NOT_FOUND: "project/not-found";
|
|
210
|
+
readonly ASSET_CHILD_NOT_DELETABLE: "asset/child-not-deletable";
|
|
201
211
|
readonly ASSET_REVIEW_CHANGED: "asset/review-changed";
|
|
202
212
|
readonly ASSET_REVIEW_NOTE_REQUIRED: "asset/review-note-required";
|
|
203
213
|
readonly ASSET_UPDATE_FAILED: "asset/update-failed";
|
|
204
|
-
readonly
|
|
214
|
+
readonly ASSET_HELD: "asset/held";
|
|
205
215
|
readonly ASSET_PROCESSING: "asset/processing";
|
|
206
216
|
readonly ASSET_DECISION_NOT_ALLOWED: "asset/decision-not-allowed";
|
|
207
217
|
readonly ASSET_DECISION_UNCHANGED: "asset/decision-unchanged";
|
|
@@ -211,18 +221,19 @@ declare const CALMLENS_ERROR_CODES: {
|
|
|
211
221
|
readonly ASSET_NOT_DECIDED: "asset/not-decided";
|
|
212
222
|
readonly ASSET_POLICY_CHANGED: "asset/policy-changed";
|
|
213
223
|
readonly ASSET_REVIEWED: "asset/reviewed";
|
|
214
|
-
readonly SUPPORT_TICKET_NOT_FOUND: "support/
|
|
224
|
+
readonly SUPPORT_TICKET_NOT_FOUND: "support-ticket/not-found";
|
|
215
225
|
readonly DUPLICATE_EXTERNAL_ID: "asset/duplicate-external-id";
|
|
216
226
|
readonly FOLDER_NOT_FOUND: "folder/not-found";
|
|
217
227
|
readonly DUPLICATE_FOLDER_NAME: "folder/duplicate-name";
|
|
218
228
|
readonly FOLDER_NOT_EMPTY: "folder/not-empty";
|
|
219
229
|
readonly FOLDER_PARENT_CYCLE: "folder/parent-cycle";
|
|
220
|
-
readonly
|
|
230
|
+
readonly LENS_NOT_FOUND: "lens/not-found";
|
|
231
|
+
readonly LENS_IDENTIFIER_TAKEN: "lens/identifier-taken";
|
|
221
232
|
readonly LENS_IDENTIFIER_RESERVED: "lens/identifier-reserved";
|
|
222
233
|
readonly HASH_LIST_NOT_FOUND: "hash-list/not-found";
|
|
223
|
-
readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list/
|
|
234
|
+
readonly HASH_LIST_ENTRY_NOT_FOUND: "hash-list-entry/not-found";
|
|
224
235
|
readonly HASH_LIST_LIMIT_REACHED: "hash-list/limit-reached";
|
|
225
|
-
readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list/
|
|
236
|
+
readonly HASH_LIST_ENTRY_LIMIT_REACHED: "hash-list-entry/limit-reached";
|
|
226
237
|
readonly HASH_LIST_ASSET_NOT_HASHED: "hash-list/asset-not-hashed";
|
|
227
238
|
readonly POLICY_NOT_FOUND: "policy/not-found";
|
|
228
239
|
readonly POLICY_REVISION_CONFLICT: "policy/revision-conflict";
|
|
@@ -236,18 +247,24 @@ declare const CALMLENS_ERROR_CODES: {
|
|
|
236
247
|
readonly UPLOAD_PRESET_NOT_FOUND: "upload-preset/not-found";
|
|
237
248
|
readonly UPLOAD_PRESET_DISABLED: "upload-preset/disabled";
|
|
238
249
|
readonly UPLOAD_PRESET_TOKEN_REQUIRED: "upload-preset/token-required";
|
|
239
|
-
readonly REMOTE_URL_NOT_ALLOWED: "
|
|
240
|
-
readonly
|
|
241
|
-
readonly UPLOAD_PRESET_CONTENT_TYPE_NOT_ALLOWED: "upload-preset/content-type-not-allowed";
|
|
242
|
-
readonly UPLOAD_PRESET_TOO_LARGE: "upload-preset/too-large";
|
|
250
|
+
readonly REMOTE_URL_NOT_ALLOWED: "remote-url/not-allowed";
|
|
251
|
+
readonly WEBSITE_RATE_LIMIT_REACHED: "upload/website-rate-limit-reached";
|
|
243
252
|
readonly UPLOAD_PRESET_DAILY_LIMIT_REACHED: "upload-preset/daily-limit-reached";
|
|
244
253
|
readonly UPLOAD_PRESET_ORIGIN_NOT_ALLOWED: "upload-preset/origin-not-allowed";
|
|
245
254
|
readonly UPLOAD_PRESET_FIELD_NOT_ALLOWED: "upload-preset/field-not-allowed";
|
|
255
|
+
readonly UPLOAD_PRESET_REVISION_CONFLICT: "upload-preset/revision-conflict";
|
|
256
|
+
readonly UPLOAD_PRESET_KEY_TAKEN: "upload-preset/key-taken";
|
|
257
|
+
readonly UPLOAD_PRESET_DAILY_LIMIT_REQUIRED: "upload-preset/daily-limit-required";
|
|
258
|
+
readonly UPLOAD_PRESET_INVALID_FOLDER: "upload-preset/invalid-folder";
|
|
259
|
+
readonly UPLOAD_PRESET_INVALID_POLICY: "upload-preset/invalid-policy";
|
|
260
|
+
readonly PROJECT_SETTINGS_REVISION_CONFLICT: "project-settings/revision-conflict";
|
|
261
|
+
readonly SEARCH_ESTIMATE_CHANGED: "search/estimate-changed";
|
|
262
|
+
readonly METADATA_FIELD_NOT_FOUND: "metadata-field/not-found";
|
|
246
263
|
readonly UPLOAD_TOKEN_INVALID: "upload-token/invalid";
|
|
247
264
|
readonly UPLOAD_TOKEN_EXPIRED: "upload-token/expired";
|
|
248
265
|
readonly UPLOAD_TOKEN_USED: "upload-token/used";
|
|
249
|
-
readonly INVALID_REMOTE_URL: "
|
|
250
|
-
readonly REMOTE_URL_UNAVAILABLE: "
|
|
266
|
+
readonly INVALID_REMOTE_URL: "remote-url/invalid";
|
|
267
|
+
readonly REMOTE_URL_UNAVAILABLE: "remote-url/unavailable";
|
|
251
268
|
readonly APPEAL_NOT_FOUND: "appeal/not-found";
|
|
252
269
|
readonly APPEAL_JUDGMENT_NOT_FOUND: "appeal/judgment-not-found";
|
|
253
270
|
readonly APPEAL_ASSET_NOT_FOUND: "appeal/asset-not-found";
|
|
@@ -255,7 +272,6 @@ declare const CALMLENS_ERROR_CODES: {
|
|
|
255
272
|
readonly APPEAL_ALREADY_REVIEWED: "appeal/already-reviewed";
|
|
256
273
|
readonly APPEAL_DECISION_CHANGED: "appeal/decision-changed";
|
|
257
274
|
readonly APPEAL_INVALID_ACTION: "appeal/invalid-action";
|
|
258
|
-
readonly APPEAL_SAFETY_HELD: "appeal/safety-held";
|
|
259
275
|
readonly APPEAL_CONTENT_UNAVAILABLE: "appeal/content-unavailable";
|
|
260
276
|
/** The request could not be completed: DNS, TLS, a refused or reset connection, a truncated body. */
|
|
261
277
|
readonly TRANSPORT_ERROR: "sdk/transport-error";
|
|
@@ -325,11 +341,18 @@ declare class CalmLensError extends Error {
|
|
|
325
341
|
/** True for any `CalmLensError`, including one created by another copy or build of the SDK. */
|
|
326
342
|
static isCalmLensError(value: unknown): value is CalmLensError;
|
|
327
343
|
static [Symbol.hasInstance](value: unknown): boolean;
|
|
344
|
+
/**
|
|
345
|
+
* Whether the SDK raised this error itself, with no HTTP response: before sending (an invalid
|
|
346
|
+
* argument or option, or content it checks first, such as `upload/unsupported-type`), or because
|
|
347
|
+
* no response arrived (a timeout, a cancellation or a connection failure). The code is the one
|
|
348
|
+
* the API would use; there is no `status` or `requestId`, so branch on `code`.
|
|
349
|
+
*/
|
|
350
|
+
isLocal(): boolean;
|
|
328
351
|
/** The resource does not exist or is not visible to this API key. */
|
|
329
352
|
isNotFound(): boolean;
|
|
330
353
|
/**
|
|
331
354
|
* 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)
|
|
355
|
+
* `timeoutMs` or `waitForDecision`'s deadline), throttling (429), internal and gateway errors (500, 502, 503, 504)
|
|
333
356
|
* and idempotent requests still in progress. Only repeat a create or upload with the same
|
|
334
357
|
* `idempotencyKey`.
|
|
335
358
|
*/
|
|
@@ -346,7 +369,12 @@ declare const RECEIVED_WEBHOOK_EVENT_PAYLOAD_SCHEMA: zod.ZodObject<{
|
|
|
346
369
|
severity: zod.ZodOptional<zod.ZodString>;
|
|
347
370
|
title: zod.ZodOptional<zod.ZodString>;
|
|
348
371
|
description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
372
|
+
actor: zod.ZodOptional<zod.ZodObject<{
|
|
373
|
+
type: zod.ZodString;
|
|
374
|
+
id: zod.ZodNullable<zod.ZodString>;
|
|
375
|
+
}, zod.core.$loose>>;
|
|
349
376
|
assetId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
377
|
+
assetSequence: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
|
|
350
378
|
asset: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
351
379
|
id: zod.ZodString;
|
|
352
380
|
}, zod.core.$loose>>>;
|
|
@@ -370,7 +398,13 @@ interface ReceivedWebhookEventPayload {
|
|
|
370
398
|
severity?: string;
|
|
371
399
|
title?: string;
|
|
372
400
|
description?: string | null;
|
|
401
|
+
/** Who caused the event; `type` may take values added later. */
|
|
402
|
+
actor?: {
|
|
403
|
+
type: Actor["type"] | (string & {});
|
|
404
|
+
id: string | null;
|
|
405
|
+
};
|
|
373
406
|
assetId?: string | null;
|
|
407
|
+
assetSequence?: number | null;
|
|
374
408
|
asset?: (EventAsset & Record<string, unknown>) | null;
|
|
375
409
|
facts?: ReceivedFact;
|
|
376
410
|
[key: string]: unknown;
|
package/esm/app.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { a as selectModerationContextItems,
|
|
2
|
-
import { $ as
|
|
3
|
-
import { t as CalmLensAppClient } from "./CalmLensAppClient-
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
|
|
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 GetAssetInfoOptions, $n as FileMetadata, $t as UpgradePolicyOptions, A as CdnAssetReference, An as BoundingBox, At as MultipartUploadOptions, B as CreateMultipartUploadPartOptions, Bn as AssetSearchMatchField, Bt as SetPolicyAutomaticUpdatesOptions, C as AssetVisibility, Ct as ListHashListEntriesOptions, D as CalmLensAppClientOptions, Dn as PublicProjectSettings, Dt as ListUploadPresetsOptions, E as BatchAssetsResponse, En as ProjectSettingsResource, Et as ListPoliciesOptions, F as ClassifyTextOptions, Fn as ProcessingFeatureStage, Ft as RequestOptions, G as EnsureLensOptions, Gn as AssetHlsRendition, Gt as StreamingFeatureOptions, H as DecideAssetOptions, Ht as SignUploadTokenOptions, I as ConnectionOptions, In as ProcessingFeatures, It as ResetPolicyOptions, J as EnsureUploadPresetsOptions, Jn as AssetRendered, Jt as UpdateFolderOptions, K as EnsureLensesOptions, Kn as AssetHlsStatus, Kt as SubmitAssetOptions, L as CreateFolderOptions, Ln as Policy, Lt as RetrieveAssetOptions, M as CdnResource, Mn as DetectedPerson, Mt as PolicyIdOptions, N as CdnServeOptions, Nn as ProcessingFeatureId, Nt as PolicyPage, O as CalmLensServerClientOptions, On as UploadPreset, Ot as MoveAssetOptions, P as CdnTransform, Pn as ProcessingFeatureResults, Pt as RemoveAssetContentOptions, Q as FolderPage, Qn as ExtractedText, Qt as UpdateProjectSettingsOptions, R as CreateHashListOptions, Rn as CursorPage, Rt as RetryAssetOptions, S as AssetUploadStatus, Sn as EventType, St as ListFoldersOptions, T as BatchAssetsOptions, Tn as MetadataFieldsResource, Tt as ListLensesOptions, U as DeleteAssetOptions, Un as AssetInfo, Ut as SignedAssetUrl, V as CreatePolicyOptions, Vn as AssetSearchQuery, Vt as SignAssetUrlOptions, W as DeleteMetadataFieldOptions, Wn as AssetHls, Wt as SignedUploadToken, X as ExplainAssetOptions, Xn as AssetSafetyHold, Xt as UpdateLensOptions, Y as EnsureUploadPresetsResponse, Yn as AssetRenderedKind, Yt as UpdateHashListOptions, Z as FolderIdOptions, Zn as AssetSafetyHoldReason, Zt as UpdatePolicyOptions, _ as AssetSearchResponse, _n as EventCategory, _t as LensPage, a as AssetChildrenPage, an as UploadedAsset, at as ImageTransformOptions, b as AssetType, bn as EventFacts, bt as ListAssetsOptions, c as AssetClassificationStatus, cn as WaitForAssetDecisionOptions, ct as IterateAssetsOptions, d as AssetContentRemovalReason, dn as AssetBatchOperation, dt as IterateHashListsOptions, en as UploadAssetPartOptions, er as MetadataItem, et as HashListEntryIdOptions, f as AssetContentStatus, fn as AssetTimelineSegment, ft as IterateLensesOptions, g as AssetPage, gn as TypedEvent, gt as LensIdOptions, h as AssetModerationStatus, hn as EventAsset, ht as Lens, i as AssetChecksums, in as UploadPresetSubmitAssetOptions, it as IdempotencyOptions, j as CdnAssetUrlOptions, jn as DetectedFace, jt as MultipartUploadPartOptions, k as CdnAssetLocation, kn as AgeRange, kt as MoveFolderOptions, l as AssetContent, ln as WebhookHeadersInput, lt as IterateFoldersOptions, m as AssetModerationDecision, mt as IterateUploadPresetsOptions, n as Asset, nn as UploadPresetIdOptions, nt as HashListIdOptions, o as AssetClassification, on as VerifyWebhookSignatureOptions, ot as IterateAssetChildrenOptions, p as AssetModeration, pn as GetEventsResponse, pt as IteratePoliciesOptions, q as EnsureMetadataFieldsOptions, qn as AssetPreview, qt as UpdateAssetOptions, r as AssetAvailability, rn as UploadPresetPage, rt as HashListPage, s as AssetClassificationFailureReason, sn as ViewerClaims, st as IterateAssetTimelineOptions, t as AddHashListEntryOptions, tn as UploadPresetDefinition, tr as ProcessingOptions, tt as HashListEntryPage, u as AssetContentOptions, un as WebhookPayloadInput, ut as IterateHashListEntriesOptions, v as AssetSearchResult, vn as EventFact, vt as ListAssetChildrenOptions, w as AssignPolicyOptions, wn as Folder, wt as ListHashListsOptions, x as AssetUpload, xn as EventSeverity, xt as ListEventsOptions, y as AssetTimelinePage, yn as EventFactValues, yt as ListAssetTimelineOptions, z as CreateLensOptions, zn as LensType, zt as SearchAssetsOptions } from "./CalmLensTypes-BDKwThbO.js";
|
|
3
|
+
import { t as CalmLensAppClient } from "./CalmLensAppClient-BaW3ddUR.js";
|
|
4
|
+
import { i as getAssetInfo, n as DEFAULT_CDN_BASE_URL, r as CDN_RESOURCES, t as SDK_VERSION } from "./index-Bde1wjiw.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-Dt6DttS0.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 AssetHlsStatus, 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 DeleteMetadataFieldOptions, type DetectedFace, type DetectedPerson, type EnsureLensOptions, type EnsureLensesOptions, type EnsureMetadataFieldsOptions, type EnsureUploadPresetsOptions, type EnsureUploadPresetsResponse, type EventAsset, type EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventSeverity, type EventType, type GetEventsResponse as EventsPage, type 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 IterateUploadPresetsOptions, 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, type ListUploadPresetsOptions, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, type MetadataFieldsResource, type MetadataItem, type ModerationContext, type ModerationContextItem, type ModerationQualifier, type MoveAssetOptions, type MoveFolderOptions, type MultipartUploadOptions, type MultipartUploadPartOptions, type Policy, type PolicyAction, type PolicyIdOptions, type PolicyPage, type ProcessingFeatureId, type ProcessingFeatureResults, type ProcessingFeatureStage, type ProcessingFeatures, type ProcessingOptions, type ProjectSettingsResource, type PublicProjectSettings, type RemoveAssetContentOptions, type 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 UpdateProjectSettingsOptions, type UpgradePolicyOptions, type UploadAssetPartOptions, type UploadPreset, type UploadPresetDefinition, type UploadPresetIdOptions, type UploadPresetPage, type UploadPresetSubmitAssetOptions, type UploadedAsset, type VerifyWebhookSignatureOptions, type ViewerClaims, type WaitForAssetDecisionOptions, type ReceivedWebhookEventPayload as WebhookEventPayload, type WebhookHeadersInput, type WebhookPayloadInput, getAssetInfo, selectModerationContextItems };
|
package/esm/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-CrxSnVZ3.js";
|
|
2
2
|
import "./index.js";
|
|
3
|
-
import { t as CalmLensAppClient } from "./CalmLensAppClient-
|
|
4
|
-
export { CALMLENS_ERROR_CODES, CalmLensAppClient, CalmLensError, DEFAULT_CDN_BASE_URL, MODERATION_CONTEXT_USED_CHARACTERS, MODERATION_CONTEXT_USED_ITEMS, SDK_VERSION,
|
|
3
|
+
import { t as CalmLensAppClient } from "./CalmLensAppClient-B5QIJ6KS.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 };
|