calmlens 0.24.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/bin/calmlens.js +2202 -521
- package/cjs/{BrowserUpload-DB-G4tjH.js → BrowserUpload-DdkcoZLH.js} +1 -1
- package/{esm/BrowserUpload-nyagMGlJ.d.ts → cjs/BrowserUpload-zYWKtFSs.d.ts} +2 -2
- package/cjs/{CalmLensAppClient-CmikPp9x.js → CalmLensAppClient-Gu9mU_66.js} +22 -15
- package/{esm/CalmLensAppClient-8qOu4bIX.d.ts → cjs/CalmLensAppClient-mTTjqpRc.d.ts} +5 -11
- package/cjs/{CalmLensOptionKeys-BbMF4k44.js → CalmLensOptionKeys-BCITGsr9.js} +138 -90
- package/cjs/CalmLensServerClient-D5-njsNk.d.ts +357 -0
- package/cjs/{CalmLensServerClient-DJyULgDN.js → CalmLensServerClient-DHmAPT1u.js} +283 -303
- package/cjs/{CalmLensTypes-D3eKASff.d.ts → CalmLensTypes-Df8eBgWB.d.ts} +228 -59
- package/cjs/{Core-dsHfSHt3.d.ts → Core-CREGGR0L.d.ts} +10 -3
- package/cjs/{Core-DnXZJjWN.js → Core-DAf9lqe2.js} +30 -12
- package/{esm/ModerationContextLimits-BFILRYw_.js → cjs/ModerationContextLimits-D4iwqoN_.js} +858 -28
- package/cjs/{ReactUpload-DWnJElAd.js → ReactUpload-BNIbpxIH.js} +38 -2
- package/cjs/ReactUpload-D4htIz8X.d.ts +27 -0
- package/cjs/{UploadController-CEHCQar2.js → UploadController-B_lKxvpM.js} +16 -3
- package/cjs/{WebhookPayload-DiBh-W7_.d.ts → WebhookPayload-DMa6ihHr.d.ts} +152 -3
- package/cjs/app.d.ts +5 -5
- package/cjs/app.js +20 -2
- package/cjs/elements.d.ts +5 -5
- package/cjs/elements.js +102 -67
- package/{esm/index-L7S6-AX8.d.ts → cjs/index-CtpQldn_.d.ts} +2 -2
- package/cjs/index.d.ts +4 -4
- package/cjs/index.js +19 -1
- package/cjs/react-native.d.ts +3 -3
- package/cjs/react-native.js +6 -4
- package/cjs/react.d.ts +5 -4
- package/cjs/react.js +10 -14
- package/cjs/server.d.ts +5 -5
- package/cjs/server.js +20 -2
- package/cjs/testing.d.ts +11 -9
- package/cjs/testing.js +73 -41
- package/cjs/{ui-DJPSG8nD.d.ts → ui-BwFPFrno.d.ts} +2 -2
- package/cjs/{ui-DjX32iuB.js → ui-CvlJmRYM.js} +6 -4
- package/cjs/ui.d.ts +3 -3
- package/cjs/ui.js +4 -3
- package/cjs/vue.d.ts +15 -8
- package/cjs/vue.js +29 -16
- package/esm/{BrowserUpload-B9IJOAOn.js → BrowserUpload-BAWYEBd7.js} +1 -1
- package/{cjs/BrowserUpload-nyagMGlJ.d.ts → esm/BrowserUpload-zYWKtFSs.d.ts} +2 -2
- package/esm/{CalmLensAppClient-DKDX61Ip.js → CalmLensAppClient-DNkIZb6x.js} +22 -15
- package/{cjs/CalmLensAppClient-8qOu4bIX.d.ts → esm/CalmLensAppClient-mTTjqpRc.d.ts} +5 -11
- package/esm/{CalmLensOptionKeys-CEX6GvWi.js → CalmLensOptionKeys-CYHJo3nV.js} +133 -91
- package/esm/{CalmLensServerClient-DM147w2r.js → CalmLensServerClient-B1AiR4nv.js} +283 -303
- package/esm/CalmLensServerClient-D5-njsNk.d.ts +357 -0
- package/esm/{CalmLensTypes-D3eKASff.d.ts → CalmLensTypes-Df8eBgWB.d.ts} +228 -59
- package/esm/{Core-dsHfSHt3.d.ts → Core-CREGGR0L.d.ts} +10 -3
- package/esm/{Core-ix7mc07M.js → Core-xNBQxZWH.js} +30 -12
- package/{cjs/ModerationContextLimits-CPNFkp0P.js → esm/ModerationContextLimits-DxuPP4uM.js} +475 -285
- package/esm/{ReactUpload-CW1v2fmH.js → ReactUpload-BWifQdLv.js} +34 -4
- package/esm/ReactUpload-D4htIz8X.d.ts +27 -0
- package/esm/{UploadController-4wdF7tKa.js → UploadController-jlJdddyI.js} +11 -4
- package/esm/{WebhookPayload-DiBh-W7_.d.ts → WebhookPayload-DMa6ihHr.d.ts} +152 -3
- package/esm/app.d.ts +5 -5
- package/esm/app.js +3 -3
- package/esm/elements.d.ts +5 -5
- package/esm/elements.js +102 -68
- package/{cjs/index-L7S6-AX8.d.ts → esm/index-CtpQldn_.d.ts} +2 -2
- package/esm/index.d.ts +4 -4
- package/esm/index.js +1 -1
- package/esm/react-native.d.ts +3 -3
- package/esm/react-native.js +5 -5
- package/esm/react.d.ts +5 -4
- package/esm/react.js +9 -15
- package/esm/server.d.ts +5 -5
- package/esm/server.js +3 -3
- package/esm/styles.css +28 -10
- package/esm/svelte/CalmLensUploader.svelte +17 -17
- package/esm/svelte/context.js +21 -0
- package/esm/svelte/index.d.ts +12 -0
- package/esm/svelte/index.js +1 -0
- package/esm/testing.d.ts +11 -9
- package/esm/testing.js +73 -41
- package/esm/{ui-eVZ1gGuL.js → ui-BXzzqh7M.js} +6 -4
- package/esm/{ui-DJPSG8nD.d.ts → ui-BwFPFrno.d.ts} +2 -2
- package/esm/ui.d.ts +3 -3
- package/esm/ui.js +4 -4
- package/esm/vue.d.ts +15 -8
- package/esm/vue.js +29 -18
- package/package.json +16 -6
- package/cjs/CalmLensServerClient-CDhey01B.d.ts +0 -353
- package/cjs/ReactUpload-B_zmKB9X.d.ts +0 -17
- package/esm/CalmLensServerClient-CDhey01B.d.ts +0 -353
- package/esm/ReactUpload-B_zmKB9X.d.ts +0 -17
|
@@ -206,14 +206,13 @@ declare const ASSET_UPLOAD_SCHEMA: zod.ZodObject<{
|
|
|
206
206
|
type AssetUpload$1 = zod.infer<typeof ASSET_UPLOAD_SCHEMA>;
|
|
207
207
|
/** Findings and the policy/reviewer decision for the moderation capability. */
|
|
208
208
|
declare const ASSET_MODERATION_SCHEMA: zod.ZodObject<{
|
|
209
|
-
|
|
209
|
+
decision: zod.ZodNullable<zod.ZodEnum<{
|
|
210
210
|
"age-restricted": "age-restricted";
|
|
211
211
|
allowed: "allowed";
|
|
212
212
|
blocked: "blocked";
|
|
213
213
|
limited: "limited";
|
|
214
|
-
pending: "pending";
|
|
215
214
|
purged: "purged";
|
|
216
|
-
}
|
|
215
|
+
}>>;
|
|
217
216
|
manualReviews: zod.ZodArray<zod.ZodObject<{
|
|
218
217
|
id: zod.ZodString;
|
|
219
218
|
decision: zod.ZodEnum<{
|
|
@@ -5031,14 +5030,13 @@ declare const ASSET_CLASSIFICATION_SCHEMA: zod.ZodObject<{
|
|
|
5031
5030
|
}, zod.core.$strip>>;
|
|
5032
5031
|
testInput: zod.ZodBoolean;
|
|
5033
5032
|
moderation: zod.ZodObject<{
|
|
5034
|
-
|
|
5033
|
+
decision: zod.ZodNullable<zod.ZodEnum<{
|
|
5035
5034
|
"age-restricted": "age-restricted";
|
|
5036
5035
|
allowed: "allowed";
|
|
5037
5036
|
blocked: "blocked";
|
|
5038
5037
|
limited: "limited";
|
|
5039
|
-
pending: "pending";
|
|
5040
5038
|
purged: "purged";
|
|
5041
|
-
}
|
|
5039
|
+
}>>;
|
|
5042
5040
|
manualReviews: zod.ZodArray<zod.ZodObject<{
|
|
5043
5041
|
id: zod.ZodString;
|
|
5044
5042
|
decision: zod.ZodEnum<{
|
|
@@ -10154,14 +10152,13 @@ declare const ASSET_SCHEMA: zod.ZodObject<{
|
|
|
10154
10152
|
}, zod.core.$strip>>;
|
|
10155
10153
|
testInput: zod.ZodBoolean;
|
|
10156
10154
|
moderation: zod.ZodObject<{
|
|
10157
|
-
|
|
10155
|
+
decision: zod.ZodNullable<zod.ZodEnum<{
|
|
10158
10156
|
"age-restricted": "age-restricted";
|
|
10159
10157
|
allowed: "allowed";
|
|
10160
10158
|
blocked: "blocked";
|
|
10161
10159
|
limited: "limited";
|
|
10162
|
-
pending: "pending";
|
|
10163
10160
|
purged: "purged";
|
|
10164
|
-
}
|
|
10161
|
+
}>>;
|
|
10165
10162
|
manualReviews: zod.ZodArray<zod.ZodObject<{
|
|
10166
10163
|
id: zod.ZodString;
|
|
10167
10164
|
decision: zod.ZodEnum<{
|
|
@@ -15313,7 +15310,7 @@ type AssetBinaryPayloadInput = {
|
|
|
15313
15310
|
buffer?: never;
|
|
15314
15311
|
};
|
|
15315
15312
|
declare const ASSET_SEARCH_MATCH_FIELD_SCHEMA: zod.ZodEnum<{
|
|
15316
|
-
"classification.moderation.
|
|
15313
|
+
"classification.moderation.decision": "classification.moderation.decision";
|
|
15317
15314
|
"content.extension": "content.extension";
|
|
15318
15315
|
"content.format": "content.format";
|
|
15319
15316
|
description: "description";
|
|
@@ -15410,14 +15407,13 @@ declare const ASSET_SEARCH_RESULT_SCHEMA: zod.ZodObject<{
|
|
|
15410
15407
|
}, zod.core.$strip>>;
|
|
15411
15408
|
testInput: zod.ZodBoolean;
|
|
15412
15409
|
moderation: zod.ZodObject<{
|
|
15413
|
-
|
|
15410
|
+
decision: zod.ZodNullable<zod.ZodEnum<{
|
|
15414
15411
|
"age-restricted": "age-restricted";
|
|
15415
15412
|
allowed: "allowed";
|
|
15416
15413
|
blocked: "blocked";
|
|
15417
15414
|
limited: "limited";
|
|
15418
|
-
pending: "pending";
|
|
15419
15415
|
purged: "purged";
|
|
15420
|
-
}
|
|
15416
|
+
}>>;
|
|
15421
15417
|
manualReviews: zod.ZodArray<zod.ZodObject<{
|
|
15422
15418
|
id: zod.ZodString;
|
|
15423
15419
|
decision: zod.ZodEnum<{
|
|
@@ -20459,7 +20455,7 @@ declare const ASSET_SEARCH_RESULT_SCHEMA: zod.ZodObject<{
|
|
|
20459
20455
|
}, zod.core.$strip>;
|
|
20460
20456
|
score: zod.ZodNumber;
|
|
20461
20457
|
matchedFields: zod.ZodArray<zod.ZodEnum<{
|
|
20462
|
-
"classification.moderation.
|
|
20458
|
+
"classification.moderation.decision": "classification.moderation.decision";
|
|
20463
20459
|
"content.extension": "content.extension";
|
|
20464
20460
|
"content.format": "content.format";
|
|
20465
20461
|
description: "description";
|
|
@@ -35196,6 +35192,7 @@ declare const PUBLIC_PROJECT_SETTINGS_SCHEMA: zod.ZodObject<{
|
|
|
35196
35192
|
}>>>;
|
|
35197
35193
|
blockUnmoderatedAssets: zod.ZodDefault<zod.ZodBoolean>;
|
|
35198
35194
|
storeSensitiveMetadata: zod.ZodDefault<zod.ZodBoolean>;
|
|
35195
|
+
linkCheckingEnabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
35199
35196
|
streamingEnabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
35200
35197
|
aiMediaSearchEnabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
35201
35198
|
remoteUrlRule: zod.ZodDefault<zod.ZodNullable<zod.ZodObject<{
|
|
@@ -35224,6 +35221,7 @@ declare const PROJECT_SETTINGS_RESOURCE_SCHEMA: zod.ZodObject<{
|
|
|
35224
35221
|
}>>>;
|
|
35225
35222
|
blockUnmoderatedAssets: zod.ZodDefault<zod.ZodBoolean>;
|
|
35226
35223
|
storeSensitiveMetadata: zod.ZodDefault<zod.ZodBoolean>;
|
|
35224
|
+
linkCheckingEnabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
35227
35225
|
streamingEnabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
35228
35226
|
aiMediaSearchEnabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
35229
35227
|
remoteUrlRule: zod.ZodDefault<zod.ZodNullable<zod.ZodObject<{
|
|
@@ -35252,6 +35250,7 @@ declare const PUT_PROJECT_SETTINGS_BODY_SCHEMA: zod.ZodObject<{
|
|
|
35252
35250
|
}>>>;
|
|
35253
35251
|
blockUnmoderatedAssets: zod.ZodDefault<zod.ZodBoolean>;
|
|
35254
35252
|
storeSensitiveMetadata: zod.ZodDefault<zod.ZodBoolean>;
|
|
35253
|
+
linkCheckingEnabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
35255
35254
|
streamingEnabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
35256
35255
|
aiMediaSearchEnabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
35257
35256
|
remoteUrlRule: zod.ZodDefault<zod.ZodNullable<zod.ZodObject<{
|
|
@@ -36907,6 +36906,102 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36907
36906
|
}>>;
|
|
36908
36907
|
}, zod.core.$strip>;
|
|
36909
36908
|
};
|
|
36909
|
+
readonly "asset.review-completed": {
|
|
36910
|
+
id: "asset.review-completed";
|
|
36911
|
+
name: string;
|
|
36912
|
+
description: string;
|
|
36913
|
+
category: EventCategory;
|
|
36914
|
+
severity: EventSeverity;
|
|
36915
|
+
/** Whether the in-app connector (notification bell) subscribes to the type by default. */
|
|
36916
|
+
notify: boolean;
|
|
36917
|
+
/**
|
|
36918
|
+
* The project-wide permission needed to see events of this type (portal feed, public events
|
|
36919
|
+
* feed) and to subscribe a connector to it.
|
|
36920
|
+
*/
|
|
36921
|
+
permission: PermissionAction;
|
|
36922
|
+
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36923
|
+
enabled?: boolean;
|
|
36924
|
+
fields: {
|
|
36925
|
+
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36926
|
+
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
36927
|
+
audio: "audio";
|
|
36928
|
+
file: "file";
|
|
36929
|
+
image: "image";
|
|
36930
|
+
"multimedia-document": "multimedia-document";
|
|
36931
|
+
"plaintext-document": "plaintext-document";
|
|
36932
|
+
video: "video";
|
|
36933
|
+
website: "website";
|
|
36934
|
+
}>>>>;
|
|
36935
|
+
parentAsset: EventFieldDefinition<zod.ZodOptional<zod.ZodString>>;
|
|
36936
|
+
reviewId: EventFieldDefinition<zod.ZodString>;
|
|
36937
|
+
decision: EventFieldDefinition<zod.ZodEnum<{
|
|
36938
|
+
"age-restricted": "age-restricted";
|
|
36939
|
+
allowed: "allowed";
|
|
36940
|
+
blocked: "blocked";
|
|
36941
|
+
limited: "limited";
|
|
36942
|
+
purged: "purged";
|
|
36943
|
+
}>>;
|
|
36944
|
+
appliedToAsset: EventFieldDefinition<zod.ZodBoolean>;
|
|
36945
|
+
reviewerName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36946
|
+
note: EventFieldDefinition<zod.ZodNullable<zod.ZodString>>;
|
|
36947
|
+
};
|
|
36948
|
+
/** Example data, used for synthetic test sends (`createSampleEvent`). */
|
|
36949
|
+
example: NoInfer<{
|
|
36950
|
+
assetName?: string | null | undefined;
|
|
36951
|
+
assetType?: "audio" | "file" | "image" | "multimedia-document" | "plaintext-document" | "video" | "website" | null | undefined;
|
|
36952
|
+
parentAsset?: string | undefined;
|
|
36953
|
+
reviewId: string;
|
|
36954
|
+
decision: "age-restricted" | "allowed" | "blocked" | "limited" | "purged";
|
|
36955
|
+
appliedToAsset: boolean;
|
|
36956
|
+
reviewerName?: string | null | undefined;
|
|
36957
|
+
note: string | null;
|
|
36958
|
+
}>;
|
|
36959
|
+
factInfo: {
|
|
36960
|
+
label: string;
|
|
36961
|
+
description: string;
|
|
36962
|
+
display: EventFieldDisplay;
|
|
36963
|
+
/** Kept in the data but left out of rendered messages (usually an ID shown by another field). */
|
|
36964
|
+
hidden?: boolean;
|
|
36965
|
+
/**
|
|
36966
|
+
* Personal or account-level data that stays in the portal. Webhook, Slack and email deliveries,
|
|
36967
|
+
* and the public events feed, leave the fact out and word the title and description without it.
|
|
36968
|
+
*/
|
|
36969
|
+
inAppOnly?: boolean;
|
|
36970
|
+
/**
|
|
36971
|
+
* A person's name: `actor` names the event's `actor`, `member` the member in the `member-user-id`
|
|
36972
|
+
* fact. Deleting their account removes it from the events that name them.
|
|
36973
|
+
*/
|
|
36974
|
+
names?: "actor" | "member";
|
|
36975
|
+
/** Display names for `enum` and `list` values that don't read well humanized. */
|
|
36976
|
+
valueLabels?: Readonly<Record<string, string>>;
|
|
36977
|
+
schema: zod.ZodType<unknown, unknown, zod.core.$ZodTypeInternals<unknown, unknown>>;
|
|
36978
|
+
key: string;
|
|
36979
|
+
}[];
|
|
36980
|
+
values: zod.ZodObject<{
|
|
36981
|
+
assetName: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
36982
|
+
assetType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
36983
|
+
audio: "audio";
|
|
36984
|
+
file: "file";
|
|
36985
|
+
image: "image";
|
|
36986
|
+
"multimedia-document": "multimedia-document";
|
|
36987
|
+
"plaintext-document": "plaintext-document";
|
|
36988
|
+
video: "video";
|
|
36989
|
+
website: "website";
|
|
36990
|
+
}>>>;
|
|
36991
|
+
parentAsset: zod.ZodOptional<zod.ZodString>;
|
|
36992
|
+
reviewId: zod.ZodString;
|
|
36993
|
+
decision: zod.ZodEnum<{
|
|
36994
|
+
"age-restricted": "age-restricted";
|
|
36995
|
+
allowed: "allowed";
|
|
36996
|
+
blocked: "blocked";
|
|
36997
|
+
limited: "limited";
|
|
36998
|
+
purged: "purged";
|
|
36999
|
+
}>;
|
|
37000
|
+
appliedToAsset: zod.ZodBoolean;
|
|
37001
|
+
reviewerName: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
37002
|
+
note: zod.ZodNullable<zod.ZodString>;
|
|
37003
|
+
}, zod.core.$strip>;
|
|
37004
|
+
};
|
|
36910
37005
|
readonly "asset.hash-matched": {
|
|
36911
37006
|
id: "asset.hash-matched";
|
|
36912
37007
|
name: string;
|
|
@@ -37286,6 +37381,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37286
37381
|
configurator: "configurator";
|
|
37287
37382
|
custom: "custom";
|
|
37288
37383
|
editor: "editor";
|
|
37384
|
+
reviewer: "reviewer";
|
|
37289
37385
|
viewer: "viewer";
|
|
37290
37386
|
}>>;
|
|
37291
37387
|
};
|
|
@@ -37293,7 +37389,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37293
37389
|
example: NoInfer<{
|
|
37294
37390
|
memberUserId: string;
|
|
37295
37391
|
memberName?: string | null | undefined;
|
|
37296
|
-
role: "admin" | "configurator" | "custom" | "editor" | "viewer";
|
|
37392
|
+
role: "admin" | "configurator" | "custom" | "editor" | "reviewer" | "viewer";
|
|
37297
37393
|
}>;
|
|
37298
37394
|
factInfo: {
|
|
37299
37395
|
label: string;
|
|
@@ -37324,6 +37420,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37324
37420
|
configurator: "configurator";
|
|
37325
37421
|
custom: "custom";
|
|
37326
37422
|
editor: "editor";
|
|
37423
|
+
reviewer: "reviewer";
|
|
37327
37424
|
viewer: "viewer";
|
|
37328
37425
|
}>;
|
|
37329
37426
|
}, zod.core.$strip>;
|
|
@@ -37351,6 +37448,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37351
37448
|
configurator: "configurator";
|
|
37352
37449
|
custom: "custom";
|
|
37353
37450
|
editor: "editor";
|
|
37451
|
+
reviewer: "reviewer";
|
|
37354
37452
|
viewer: "viewer";
|
|
37355
37453
|
}>>;
|
|
37356
37454
|
};
|
|
@@ -37358,7 +37456,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37358
37456
|
example: NoInfer<{
|
|
37359
37457
|
memberUserId: string;
|
|
37360
37458
|
memberName?: string | null | undefined;
|
|
37361
|
-
role: "admin" | "configurator" | "custom" | "editor" | "viewer";
|
|
37459
|
+
role: "admin" | "configurator" | "custom" | "editor" | "reviewer" | "viewer";
|
|
37362
37460
|
}>;
|
|
37363
37461
|
factInfo: {
|
|
37364
37462
|
label: string;
|
|
@@ -37389,6 +37487,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37389
37487
|
configurator: "configurator";
|
|
37390
37488
|
custom: "custom";
|
|
37391
37489
|
editor: "editor";
|
|
37490
|
+
reviewer: "reviewer";
|
|
37392
37491
|
viewer: "viewer";
|
|
37393
37492
|
}>;
|
|
37394
37493
|
}, zod.core.$strip>;
|
|
@@ -37416,6 +37515,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37416
37515
|
configurator: "configurator";
|
|
37417
37516
|
custom: "custom";
|
|
37418
37517
|
editor: "editor";
|
|
37518
|
+
reviewer: "reviewer";
|
|
37419
37519
|
viewer: "viewer";
|
|
37420
37520
|
}>>;
|
|
37421
37521
|
};
|
|
@@ -37423,7 +37523,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37423
37523
|
example: NoInfer<{
|
|
37424
37524
|
memberUserId: string;
|
|
37425
37525
|
memberName?: string | null | undefined;
|
|
37426
|
-
role: "admin" | "configurator" | "custom" | "editor" | "viewer";
|
|
37526
|
+
role: "admin" | "configurator" | "custom" | "editor" | "reviewer" | "viewer";
|
|
37427
37527
|
}>;
|
|
37428
37528
|
factInfo: {
|
|
37429
37529
|
label: string;
|
|
@@ -37454,6 +37554,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37454
37554
|
configurator: "configurator";
|
|
37455
37555
|
custom: "custom";
|
|
37456
37556
|
editor: "editor";
|
|
37557
|
+
reviewer: "reviewer";
|
|
37457
37558
|
viewer: "viewer";
|
|
37458
37559
|
}>;
|
|
37459
37560
|
}, zod.core.$strip>;
|
|
@@ -37481,6 +37582,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37481
37582
|
configurator: "configurator";
|
|
37482
37583
|
custom: "custom";
|
|
37483
37584
|
editor: "editor";
|
|
37585
|
+
reviewer: "reviewer";
|
|
37484
37586
|
viewer: "viewer";
|
|
37485
37587
|
}>>;
|
|
37486
37588
|
role: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -37488,6 +37590,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37488
37590
|
configurator: "configurator";
|
|
37489
37591
|
custom: "custom";
|
|
37490
37592
|
editor: "editor";
|
|
37593
|
+
reviewer: "reviewer";
|
|
37491
37594
|
viewer: "viewer";
|
|
37492
37595
|
}>>;
|
|
37493
37596
|
};
|
|
@@ -37495,8 +37598,8 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37495
37598
|
example: NoInfer<{
|
|
37496
37599
|
memberUserId: string;
|
|
37497
37600
|
memberName?: string | null | undefined;
|
|
37498
|
-
previousRole: "admin" | "configurator" | "custom" | "editor" | "viewer";
|
|
37499
|
-
role: "admin" | "configurator" | "custom" | "editor" | "viewer";
|
|
37601
|
+
previousRole: "admin" | "configurator" | "custom" | "editor" | "reviewer" | "viewer";
|
|
37602
|
+
role: "admin" | "configurator" | "custom" | "editor" | "reviewer" | "viewer";
|
|
37500
37603
|
}>;
|
|
37501
37604
|
factInfo: {
|
|
37502
37605
|
label: string;
|
|
@@ -37527,6 +37630,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37527
37630
|
configurator: "configurator";
|
|
37528
37631
|
custom: "custom";
|
|
37529
37632
|
editor: "editor";
|
|
37633
|
+
reviewer: "reviewer";
|
|
37530
37634
|
viewer: "viewer";
|
|
37531
37635
|
}>;
|
|
37532
37636
|
role: zod.ZodEnum<{
|
|
@@ -37534,6 +37638,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37534
37638
|
configurator: "configurator";
|
|
37535
37639
|
custom: "custom";
|
|
37536
37640
|
editor: "editor";
|
|
37641
|
+
reviewer: "reviewer";
|
|
37537
37642
|
viewer: "viewer";
|
|
37538
37643
|
}>;
|
|
37539
37644
|
}, zod.core.$strip>;
|
|
@@ -37560,13 +37665,14 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37560
37665
|
configurator: "configurator";
|
|
37561
37666
|
custom: "custom";
|
|
37562
37667
|
editor: "editor";
|
|
37668
|
+
reviewer: "reviewer";
|
|
37563
37669
|
viewer: "viewer";
|
|
37564
37670
|
}>>;
|
|
37565
37671
|
};
|
|
37566
37672
|
/** Example data, used for synthetic test sends (`createSampleEvent`). */
|
|
37567
37673
|
example: NoInfer<{
|
|
37568
37674
|
inviteeEmail: string;
|
|
37569
|
-
role: "admin" | "configurator" | "custom" | "editor" | "viewer";
|
|
37675
|
+
role: "admin" | "configurator" | "custom" | "editor" | "reviewer" | "viewer";
|
|
37570
37676
|
}>;
|
|
37571
37677
|
factInfo: {
|
|
37572
37678
|
label: string;
|
|
@@ -37596,6 +37702,7 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37596
37702
|
configurator: "configurator";
|
|
37597
37703
|
custom: "custom";
|
|
37598
37704
|
editor: "editor";
|
|
37705
|
+
reviewer: "reviewer";
|
|
37599
37706
|
viewer: "viewer";
|
|
37600
37707
|
}>;
|
|
37601
37708
|
}, zod.core.$strip>;
|
|
@@ -38101,14 +38208,13 @@ declare const EVENT_ASSET_SCHEMA: zod.ZodObject<{
|
|
|
38101
38208
|
}>;
|
|
38102
38209
|
testInput: zod.ZodBoolean;
|
|
38103
38210
|
moderation: zod.ZodObject<{
|
|
38104
|
-
|
|
38211
|
+
decision: zod.ZodNullable<zod.ZodEnum<{
|
|
38105
38212
|
"age-restricted": "age-restricted";
|
|
38106
38213
|
allowed: "allowed";
|
|
38107
38214
|
blocked: "blocked";
|
|
38108
38215
|
limited: "limited";
|
|
38109
|
-
pending: "pending";
|
|
38110
38216
|
purged: "purged";
|
|
38111
|
-
}
|
|
38217
|
+
}>>;
|
|
38112
38218
|
}, zod.core.$strip>;
|
|
38113
38219
|
}, zod.core.$strip>;
|
|
38114
38220
|
content: zod.ZodObject<{
|
|
@@ -38154,6 +38260,7 @@ declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
|
|
|
38154
38260
|
"asset.region-restricted": "asset.region-restricted";
|
|
38155
38261
|
"asset.rerun-requested": "asset.rerun-requested";
|
|
38156
38262
|
"asset.retried": "asset.retried";
|
|
38263
|
+
"asset.review-completed": "asset.review-completed";
|
|
38157
38264
|
"asset.review-requested": "asset.review-requested";
|
|
38158
38265
|
"asset.uploaded": "asset.uploaded";
|
|
38159
38266
|
"connector.disabled": "connector.disabled";
|
|
@@ -38194,14 +38301,13 @@ declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
|
|
|
38194
38301
|
}>;
|
|
38195
38302
|
testInput: zod.ZodBoolean;
|
|
38196
38303
|
moderation: zod.ZodObject<{
|
|
38197
|
-
|
|
38304
|
+
decision: zod.ZodNullable<zod.ZodEnum<{
|
|
38198
38305
|
"age-restricted": "age-restricted";
|
|
38199
38306
|
allowed: "allowed";
|
|
38200
38307
|
blocked: "blocked";
|
|
38201
38308
|
limited: "limited";
|
|
38202
|
-
pending: "pending";
|
|
38203
38309
|
purged: "purged";
|
|
38204
|
-
}
|
|
38310
|
+
}>>;
|
|
38205
38311
|
}, zod.core.$strip>;
|
|
38206
38312
|
}, zod.core.$strip>;
|
|
38207
38313
|
content: zod.ZodObject<{
|
|
@@ -42355,6 +42461,7 @@ declare const GET_EVENTS_QUERY_SCHEMA: zod.ZodObject<{
|
|
|
42355
42461
|
"asset.region-restricted": "asset.region-restricted";
|
|
42356
42462
|
"asset.rerun-requested": "asset.rerun-requested";
|
|
42357
42463
|
"asset.retried": "asset.retried";
|
|
42464
|
+
"asset.review-completed": "asset.review-completed";
|
|
42358
42465
|
"asset.review-requested": "asset.review-requested";
|
|
42359
42466
|
"asset.uploaded": "asset.uploaded";
|
|
42360
42467
|
"connector.disabled": "connector.disabled";
|
|
@@ -42469,8 +42576,8 @@ type AssetClassification = Omit<AssetClassification$1, "status" | "failureReason
|
|
|
42469
42576
|
moderation: AssetModeration;
|
|
42470
42577
|
};
|
|
42471
42578
|
/** An asset's moderation state. */
|
|
42472
|
-
type AssetModeration = Omit<AssetModeration$1, "
|
|
42473
|
-
|
|
42579
|
+
type AssetModeration = Omit<AssetModeration$1, "decision" | "manualReviews"> & {
|
|
42580
|
+
decision: AssetModerationDecision | null;
|
|
42474
42581
|
manualReviews: Array<Omit<AssetModeration$1["manualReviews"][number], "decision"> & {
|
|
42475
42582
|
decision: AssetModerationDecision;
|
|
42476
42583
|
}>;
|
|
@@ -42485,7 +42592,7 @@ type AssetUploadStatus = AssetUpload$1["status"];
|
|
|
42485
42592
|
/** An asset as the API returns it. Fields the API adds later are present at runtime too. */
|
|
42486
42593
|
type Asset = Omit<Asset$1, "type" | "visibility" | "upload" | "classification" | "content"> & {
|
|
42487
42594
|
type: AssetType;
|
|
42488
|
-
visibility
|
|
42595
|
+
visibility: AssetVisibility;
|
|
42489
42596
|
upload: AssetUpload;
|
|
42490
42597
|
classification: AssetClassification;
|
|
42491
42598
|
content: AssetContent;
|
|
@@ -42607,8 +42714,9 @@ type CdnTransform = string | ImageTransformOptions;
|
|
|
42607
42714
|
type Lens = Omit<zod.infer<typeof PUBLIC_LENS_SCHEMA>, "transform"> & {
|
|
42608
42715
|
transform?: ImageTransformOptions | null;
|
|
42609
42716
|
};
|
|
42610
|
-
|
|
42611
|
-
|
|
42717
|
+
/** How a client's requests are sent: its defaults for every call. */
|
|
42718
|
+
interface ClientRequestDefaults {
|
|
42719
|
+
/** Cancels every request the client makes. */
|
|
42612
42720
|
signal?: AbortSignal;
|
|
42613
42721
|
/**
|
|
42614
42722
|
* Deadline in milliseconds for each API request attempt, including reading the response
|
|
@@ -42629,9 +42737,70 @@ interface RequestOptions {
|
|
|
42629
42737
|
*/
|
|
42630
42738
|
maxRetries?: number;
|
|
42631
42739
|
}
|
|
42740
|
+
/**
|
|
42741
|
+
* Options for one call, the optional last argument of every method that sends a request. They
|
|
42742
|
+
* override the client's for that call only, and apply to every request it sends: each page a
|
|
42743
|
+
* list's iteration fetches, each check `waitForDecision` makes, each part of an upload.
|
|
42744
|
+
*/
|
|
42745
|
+
interface RequestOptions {
|
|
42746
|
+
/** Cancels this call, as well as the client's `signal`. */
|
|
42747
|
+
signal?: AbortSignal;
|
|
42748
|
+
/** Deadline in milliseconds for each attempt of this call's requests. */
|
|
42749
|
+
timeoutMs?: number;
|
|
42750
|
+
/** How many times to retry this call's requests; 0 turns retries off. */
|
|
42751
|
+
maxRetries?: number;
|
|
42752
|
+
/**
|
|
42753
|
+
* Sent as `Idempotency-Key`, which also makes a create, upload or other POST safe to retry.
|
|
42754
|
+
* Uploads generate one when you pass none.
|
|
42755
|
+
*/
|
|
42756
|
+
idempotencyKey?: string;
|
|
42757
|
+
/** Extra headers. The SDK's own (`X-Api-Key`, `User-Agent`, `Idempotency-Key`) win. */
|
|
42758
|
+
headers?: Record<string, string>;
|
|
42759
|
+
/**
|
|
42760
|
+
* Query parameters to add, sent as they are without the SDK's option check, for API fields
|
|
42761
|
+
* this SDK version doesn't know yet.
|
|
42762
|
+
*/
|
|
42763
|
+
extraQuery?: Record<string, unknown>;
|
|
42764
|
+
/**
|
|
42765
|
+
* Fields to add to a JSON body (or an upload's options), sent without the SDK's option check,
|
|
42766
|
+
* for API fields this SDK version doesn't know yet.
|
|
42767
|
+
*/
|
|
42768
|
+
extraBody?: Record<string, unknown>;
|
|
42769
|
+
}
|
|
42770
|
+
/** The app a client is part of, which the SDK appends to its user agent as `name/version (url)`. */
|
|
42771
|
+
interface AppInfo {
|
|
42772
|
+
name: string;
|
|
42773
|
+
version?: string;
|
|
42774
|
+
url?: string;
|
|
42775
|
+
}
|
|
42776
|
+
/**
|
|
42777
|
+
* One attempt of a request, as the `onAttempt` hook receives it. It never holds the API key, an
|
|
42778
|
+
* upload token, the query (which can hold viewer claims) or a body.
|
|
42779
|
+
*/
|
|
42780
|
+
interface RequestAttempt {
|
|
42781
|
+
/** The client method that sent it, such as `assets.retrieve`; `null` for `client.request`. */
|
|
42782
|
+
operation: string | null;
|
|
42783
|
+
method: string;
|
|
42784
|
+
/** The URL path, without the query. */
|
|
42785
|
+
path: string;
|
|
42786
|
+
/** 1 for the first attempt, 2 for the first retry, and so on. */
|
|
42787
|
+
attempt: number;
|
|
42788
|
+
/** How long the client waits before retrying, or `null` when this attempt is the last. */
|
|
42789
|
+
delayMs: number | null;
|
|
42790
|
+
/** The HTTP status, or `null` when no response arrived. */
|
|
42791
|
+
status: number | null;
|
|
42792
|
+
/** The `X-Request-Id` header, or `null`. */
|
|
42793
|
+
requestId: string | null;
|
|
42794
|
+
durationMs: number;
|
|
42795
|
+
/** The error's code when the attempt failed, such as `sdk/timeout` or `asset/not-found`. */
|
|
42796
|
+
errorCode: string | null;
|
|
42797
|
+
}
|
|
42632
42798
|
/** Where a client sends requests and how. */
|
|
42633
|
-
interface ConnectionOptions extends
|
|
42634
|
-
/**
|
|
42799
|
+
interface ConnectionOptions extends ClientRequestDefaults {
|
|
42800
|
+
/**
|
|
42801
|
+
* Defaults to `https://api.calmlens.com/v1`. The server client reads `CALMLENS_BASE_URL` from
|
|
42802
|
+
* the environment when you leave it out.
|
|
42803
|
+
*/
|
|
42635
42804
|
baseUrl?: string;
|
|
42636
42805
|
/** The `fetch` used for every request. Defaults to the global `fetch`. */
|
|
42637
42806
|
fetch?: typeof fetch;
|
|
@@ -42646,12 +42815,30 @@ interface ConnectionOptions extends RequestOptions {
|
|
|
42646
42815
|
* defaults to 8 MiB.
|
|
42647
42816
|
*/
|
|
42648
42817
|
partSizeBytes?: number;
|
|
42818
|
+
/** Your app, appended to the user agent as `name/version (url)`. Server runtimes only. */
|
|
42819
|
+
appInfo?: AppInfo;
|
|
42820
|
+
/**
|
|
42821
|
+
* `info` logs retries and failed requests, `debug` every attempt. The server client reads
|
|
42822
|
+
* `CALMLENS_LOG` from the environment when you leave it out; otherwise it is `off`.
|
|
42823
|
+
*/
|
|
42824
|
+
logLevel?: "off" | "info" | "debug";
|
|
42825
|
+
/** Where the client logs. Defaults to `console`. */
|
|
42826
|
+
logger?: {
|
|
42827
|
+
debug(message: string): void;
|
|
42828
|
+
info(message: string): void;
|
|
42829
|
+
};
|
|
42830
|
+
/**
|
|
42831
|
+
* Called after every request attempt, with its operation, path, status, request ID, duration
|
|
42832
|
+
* and the delay before a retry. Errors it throws are ignored.
|
|
42833
|
+
*/
|
|
42834
|
+
onAttempt?: (attempt: RequestAttempt) => void;
|
|
42649
42835
|
}
|
|
42650
42836
|
/** Options for `CalmLensServerClient`, which runs on your server with a project API key. */
|
|
42651
42837
|
interface CalmLensServerClientOptions extends ConnectionOptions {
|
|
42652
|
-
/** A project API key. Keep it on your server. */
|
|
42653
|
-
apiKey
|
|
42654
|
-
|
|
42838
|
+
/** A project API key. Keep it on your server. Defaults to `CALMLENS_API_KEY`. */
|
|
42839
|
+
apiKey?: string;
|
|
42840
|
+
/** Defaults to `CALMLENS_PROJECT_ID`. */
|
|
42841
|
+
projectId?: string;
|
|
42655
42842
|
/** Defaults to `https://cdn.calmlens.com/v1`. */
|
|
42656
42843
|
cdnBaseUrl?: string;
|
|
42657
42844
|
/** Overrides `fetch` for `cdn.serve`. */
|
|
@@ -42723,7 +42910,7 @@ interface UploadedAsset {
|
|
|
42723
42910
|
failureReason: AssetClassificationFailureReason | null;
|
|
42724
42911
|
/** The moderation decision, present only when the preset shows decisions to uploaders. */
|
|
42725
42912
|
moderation?: {
|
|
42726
|
-
|
|
42913
|
+
decision: AssetModerationDecision | null;
|
|
42727
42914
|
};
|
|
42728
42915
|
};
|
|
42729
42916
|
}
|
|
@@ -42821,8 +43008,6 @@ interface EnsureLensesOptions {
|
|
|
42821
43008
|
}
|
|
42822
43009
|
/** `lenses.list` options: a page of the project's lenses, newest first unless `sort` says otherwise. */
|
|
42823
43010
|
type ListLensesOptions = Partial<GetLensesQuery>;
|
|
42824
|
-
/** `lenses.iterate` options: the sort and page size; pages are fetched as needed. */
|
|
42825
|
-
type IterateLensesOptions = Omit<ListLensesOptions, "cursor">;
|
|
42826
43011
|
type LensPage = CursorPage<Lens>;
|
|
42827
43012
|
/** A new lens: its identifier must be new to the project. */
|
|
42828
43013
|
type CreateLensOptions = EnsureLensOptions;
|
|
@@ -42836,8 +43021,6 @@ type UpdateLensOptions = PatchLensBody & LensIdOptions;
|
|
|
42836
43021
|
* `folderId==fldr_…`.
|
|
42837
43022
|
*/
|
|
42838
43023
|
type ListAssetsOptions = Partial<GetAssetsPageQuery>;
|
|
42839
|
-
/** `assets.iterate` options: list filters and page size; pages are fetched as needed. */
|
|
42840
|
-
type IterateAssetsOptions = Omit<ListAssetsOptions, "cursor">;
|
|
42841
43024
|
type ListEventsOptions = GetEventsQuery;
|
|
42842
43025
|
interface RetrieveAssetOptions {
|
|
42843
43026
|
assetId: string;
|
|
@@ -42893,8 +43076,6 @@ interface MoveFolderOptions extends FolderIdOptions {
|
|
|
42893
43076
|
}
|
|
42894
43077
|
/** `hashLists.list` options: a page of the project's hash lists, newest first unless `sort` says otherwise. */
|
|
42895
43078
|
type ListHashListsOptions = Partial<GetHashListsQuery>;
|
|
42896
|
-
/** `hashLists.iterate` options. */
|
|
42897
|
-
type IterateHashListsOptions = Omit<ListHashListsOptions, "cursor">;
|
|
42898
43079
|
type HashListPage = GetHashListsResponse;
|
|
42899
43080
|
type CreateHashListOptions = PostHashListBody;
|
|
42900
43081
|
type UpdateHashListOptions = PatchHashListBody & {
|
|
@@ -42904,8 +43085,6 @@ interface HashListIdOptions {
|
|
|
42904
43085
|
hashListId: string;
|
|
42905
43086
|
}
|
|
42906
43087
|
type ListHashListEntriesOptions = Partial<GetHashListEntriesQuery> & HashListIdOptions;
|
|
42907
|
-
/** `hashLists.iterateEntries` options. */
|
|
42908
|
-
type IterateHashListEntriesOptions = Omit<ListHashListEntriesOptions, "cursor">;
|
|
42909
43088
|
type HashListEntryPage = GetHashListEntriesResponse;
|
|
42910
43089
|
/** Send `hash` (and `quality` when you know it) or `assetId`, an image asset in the project. */
|
|
42911
43090
|
type AddHashListEntryOptions = PostHashListEntryBody & HashListIdOptions;
|
|
@@ -42914,8 +43093,6 @@ interface HashListEntryIdOptions {
|
|
|
42914
43093
|
}
|
|
42915
43094
|
/** `policies.list` options: a page of the organisation's policies, oldest first unless `sort` says otherwise. */
|
|
42916
43095
|
type ListPoliciesOptions = Partial<GetPoliciesQuery>;
|
|
42917
|
-
/** `policies.iterate` options. */
|
|
42918
|
-
type IteratePoliciesOptions = Omit<ListPoliciesOptions, "cursor">;
|
|
42919
43096
|
type PolicyPage = GetPoliciesResponse;
|
|
42920
43097
|
/** Send `settings` and a `name`, or `presetId` to copy the latest release of a built-in preset. */
|
|
42921
43098
|
type CreatePolicyOptions = PostPolicyBody;
|
|
@@ -42932,8 +43109,6 @@ type SetPolicyAutomaticUpdatesOptions = PutPolicyAutomaticUpdatesBody & PolicyId
|
|
|
42932
43109
|
type AssignPolicyOptions = PutProjectPolicyBody;
|
|
42933
43110
|
/** `uploadPresets.list` options: a page of the project's upload presets, oldest first unless `sort` says otherwise. */
|
|
42934
43111
|
type ListUploadPresetsOptions = Partial<GetUploadPresetsQuery>;
|
|
42935
|
-
/** `uploadPresets.iterate` options. */
|
|
42936
|
-
type IterateUploadPresetsOptions = Omit<ListUploadPresetsOptions, "cursor">;
|
|
42937
43112
|
type UploadPresetPage = GetUploadPresetsResponse;
|
|
42938
43113
|
/**
|
|
42939
43114
|
* One preset's whole definition, by `key`; fields left out take their defaults. Send the
|
|
@@ -42966,14 +43141,10 @@ interface MoveAssetOptions {
|
|
|
42966
43141
|
type ListAssetChildrenOptions = Partial<GetAssetChildrenQuery> & {
|
|
42967
43142
|
assetId: string;
|
|
42968
43143
|
};
|
|
42969
|
-
/** `assets.iterateChildren` options. */
|
|
42970
|
-
type IterateAssetChildrenOptions = Omit<ListAssetChildrenOptions, "cursor">;
|
|
42971
43144
|
/** `assets.listTimeline` options. */
|
|
42972
43145
|
type ListAssetTimelineOptions = Partial<GetAssetTimelineQuery> & {
|
|
42973
43146
|
assetId: string;
|
|
42974
43147
|
};
|
|
42975
|
-
/** `assets.iterateTimeline` options. */
|
|
42976
|
-
type IterateAssetTimelineOptions = Omit<ListAssetTimelineOptions, "cursor">;
|
|
42977
43148
|
type AssetContentOptions = AssetBinaryPayloadInput & {
|
|
42978
43149
|
type: string;
|
|
42979
43150
|
sizeInBytes?: number;
|
|
@@ -43010,14 +43181,14 @@ interface SubmitAssetCommonOptions extends IdempotencyOptions {
|
|
|
43010
43181
|
* Your identifier for who wrote the content. CalmLens only compares it with the author IDs in
|
|
43011
43182
|
* `context`, to tell which posts share a speaker.
|
|
43012
43183
|
*/
|
|
43013
|
-
authorId?: string;
|
|
43184
|
+
authorId?: string | null;
|
|
43014
43185
|
/**
|
|
43015
43186
|
* Earlier posts in the conversation, oldest first. CalmLens moderates only the content and uses
|
|
43016
43187
|
* these to read who it addresses, what it refers to and whether it quotes, reports, counters
|
|
43017
43188
|
* or mocks something. The SDK sends only the posts CalmLens uses: the most recent 5 that fit
|
|
43018
43189
|
* in 2,000 characters.
|
|
43019
43190
|
*/
|
|
43020
|
-
context?: ModerationContext;
|
|
43191
|
+
context?: ModerationContext | null;
|
|
43021
43192
|
externalId?: string;
|
|
43022
43193
|
externalUrl?: string;
|
|
43023
43194
|
folderId?: string | null;
|
|
@@ -43073,13 +43244,11 @@ interface VerifyWebhookSignatureOptions {
|
|
|
43073
43244
|
/** The current time, as a `Date` or milliseconds since the epoch. Defaults to `Date.now()`. */
|
|
43074
43245
|
now?: Date | number;
|
|
43075
43246
|
}
|
|
43076
|
-
interface ClassifyTextOptions extends Omit<SubmitAssetCommonOptions, "name" | "
|
|
43247
|
+
interface ClassifyTextOptions extends Omit<SubmitAssetCommonOptions, "name" | "isFinal"> {
|
|
43077
43248
|
text: string;
|
|
43078
43249
|
name?: string;
|
|
43079
43250
|
}
|
|
43080
43251
|
/** `folders.list` options. `sort` is `name` (the default) or `createdAt`, descending when prefixed with `-`. */
|
|
43081
43252
|
type ListFoldersOptions = GetFoldersQuery;
|
|
43082
|
-
/** `folders.iterate` options. */
|
|
43083
|
-
type IterateFoldersOptions = Omit<ListFoldersOptions, "cursor">;
|
|
43084
43253
|
type FolderPage = GetFoldersResponse;
|
|
43085
|
-
export {
|
|
43254
|
+
export { FolderIdOptions as $, UploadedAsset as $t, CdnAssetLocation as A, ProcessingFeatures as An, ResetPolicyOptions as At, CreateHashListOptions as B, AssetPreview as Bn, SubmitAssetOptions as Bt, AssetUploadStatus as C, AgeRange as Cn, MultipartUploadOptions as Ct, BatchAssetsResponse as D, ProcessingFeatureId as Dn, RemoveAssetContentOptions as Dt, BatchAssetsOptions as E, DetectedPerson as En, PolicyPage as Et, CdnTransform as F, AssetSearchQuery as Fn, SignAssetUrlOptions as Ft, DeleteAssetOptions as G, ExtractedText as Gn, UpdatePolicyOptions as Gt, CreateMultipartUploadPartOptions as H, AssetRenderedKind as Hn, UpdateFolderOptions as Ht, ClassifyTextOptions as I, AssetBinaryPayloadInput as In, SignUploadTokenOptions as It, EnsureLensesOptions as J, ProcessingOptions as Jn, UploadAssetPartOptions as Jt, DeleteMetadataFieldOptions as K, FileMetadata as Kn, UpdateProjectSettingsOptions as Kt, ClientRequestDefaults as L, AssetInfo as Ln, SignedAssetUrl as Lt, CdnAssetUrlOptions as M, CursorPage as Mn, RetryAssetOptions as Mt, CdnResource as N, LensType as Nn, SearchAssetsOptions as Nt, CalmLensAppClientOptions as O, ProcessingFeatureResults as On, RequestAttempt as Ot, CdnServeOptions as P, AssetSearchMatchField as Pn, SetPolicyAutomaticUpdatesOptions as Pt, ExplainAssetOptions as Q, UploadPresetSubmitAssetOptions as Qt, ConnectionOptions as R, AssetHls as Rn, SignedUploadToken as Rt, AssetUpload as S, UploadPreset as Sn, MoveFolderOptions as St, AssignPolicyOptions as T, DetectedFace as Tn, PolicyIdOptions as Tt, CreatePolicyOptions as U, AssetSafetyHold as Un, UpdateHashListOptions as Ut, CreateLensOptions as V, AssetRendered as Vn, UpdateAssetOptions as Vt, DecideAssetOptions as W, AssetSafetyHoldReason as Wn, UpdateLensOptions as Wt, EnsureUploadPresetsOptions as X, UploadPresetIdOptions as Xt, EnsureMetadataFieldsOptions as Y, UploadPresetDefinition as Yt, EnsureUploadPresetsResponse as Z, UploadPresetPage as Zt, AssetPage as _, PermissionGrant as _n, ListHashListsOptions as _t, AssetChecksums as a, AssetBatchOperation as an, HashListPage as at, AssetTimelinePage as b, ProjectSettingsResource as bn, ListUploadPresetsOptions as bt, AssetClassificationFailureReason as c, Actor as cn, Lens as ct, AssetContentOptions as d, EventCategory as dn, ListAssetChildrenOptions as dt, VerifyWebhookSignatureOptions as en, FolderPage as et, AssetContentRemovalReason as f, EventFact as fn, ListAssetTimelineOptions as ft, AssetModerationStatus as g, EventType as gn, ListHashListEntriesOptions as gt, AssetModerationDecision as h, EventSeverity as hn, ListFoldersOptions as ht, AssetAvailability as i, WebhookPayloadInput as in, HashListIdOptions as it, CdnAssetReference as j, Policy as jn, RetrieveAssetOptions as jt, CalmLensServerClientOptions as k, ProcessingFeatureStage as kn, RequestOptions as kt, AssetClassificationStatus as l, EventAsset as ln, LensIdOptions as lt, AssetModeration as m, EventFacts as mn, ListEventsOptions as mt, AppInfo as n, WaitForAssetDecisionOptions as nn, HashListEntryIdOptions as nt, AssetChildrenPage as o, AssetTimelineSegment as on, IdempotencyOptions as ot, AssetContentStatus as p, EventFactValues as pn, ListAssetsOptions as pt, EnsureLensOptions as q, MetadataItem as qn, UpgradePolicyOptions as qt, Asset as r, WebhookHeadersInput as rn, HashListEntryPage as rt, AssetClassification as s, GetEventsResponse as sn, ImageTransformOptions as st, AddHashListEntryOptions as t, ViewerClaims as tn, GetAssetInfoOptions as tt, AssetContent as u, TypedEvent as un, LensPage as ut, AssetSearchResponse as v, Folder as vn, ListLensesOptions as vt, AssetVisibility as w, BoundingBox as wn, MultipartUploadPartOptions as wt, AssetType as x, PublicProjectSettings as xn, MoveAssetOptions as xt, AssetSearchResult as y, MetadataFieldsResource as yn, ListPoliciesOptions as yt, CreateFolderOptions as z, AssetHlsRendition as zn, StreamingFeatureOptions as zt };
|