calmlens 0.29.2 → 0.31.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/bin/calmlens.js +17 -45
- package/{esm/BrowserUpload-CeGsM9h1.d.ts → cjs/BrowserUpload-BAH54V1q.d.ts} +2 -2
- package/cjs/{BrowserUpload-CCXt4DAY.js → BrowserUpload-IiRDbL85.js} +1 -1
- package/cjs/{CalmLensAppClient-ea-qXkmD.js → CalmLensAppClient-BBcq6pJg.js} +10 -10
- package/cjs/{CalmLensAppClient-D-BD_Ny1.d.ts → CalmLensAppClient-CdlcDd5l.d.ts} +1 -1
- package/cjs/{ModerationContextLimits-1XP4ZTQk.js → CalmLensCdn-2VbArrj-.js} +2 -52
- package/cjs/{CalmLensConnection-BrySN2M3.js → CalmLensConnection-CpnDGa8W.js} +15 -22
- package/cjs/{CalmLensError-DPHJaVjX.js → CalmLensError-ifj5rLmk.js} +5 -0
- package/{esm/CalmLensServerClient-BYN_N0lt.d.ts → cjs/CalmLensServerClient-CtS66dCU.d.ts} +12 -8
- package/cjs/{CalmLensServerClient-FD7H7KvL.js → CalmLensServerClient-DbemlDXj.js} +38 -37
- package/cjs/{CalmLensTestInputArguments-BXDBAOg_.js → CalmLensTestInputArguments-PYuRmE0j.js} +1 -1
- package/cjs/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-87kiUg0H.d.ts} +208 -10
- package/cjs/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-C3pkrGYS-B7EygpJn.d.ts} +16 -50
- package/cjs/{Core-CNmoxDCW.d.ts → Core-Ccy4-_sN.d.ts} +2 -2
- package/cjs/{Core-DMFa3EUp.js → Core-xy9aV1ED.js} +8 -8
- package/cjs/{ReactUpload-gaeiPSeH.js → ReactUpload-BX3XOVfb.js} +1 -1
- package/{esm/ReactUpload-kqEe6gcN.d.ts → cjs/ReactUpload-DBhppuxM.d.ts} +1 -1
- package/cjs/{TestTriggers-CFnel6a9.d.ts → TestTriggers-Daxebd0V.d.ts} +1 -1
- package/cjs/{UploadController-CyPTBuZg.js → UploadController-CmTjpOfp.js} +2 -2
- package/{esm/WebhookPayload-DZWlnvcY.d.ts → cjs/WebhookPayload-B4rA_Dvm.d.ts} +13 -7
- package/cjs/app.d.ts +6 -6
- package/cjs/app.js +8 -11
- package/cjs/elements.d.ts +4 -4
- package/cjs/elements.js +4 -4
- package/cjs/{index-Dl2qwS8L.d.ts → index-CWUnLKoF.d.ts} +8 -4
- package/cjs/index.d.ts +5 -5
- package/cjs/index.js +7 -10
- package/cjs/react-native.d.ts +2 -2
- package/cjs/react-native.js +7 -7
- package/cjs/react.d.ts +4 -4
- package/cjs/react.js +5 -5
- package/cjs/server.d.ts +12 -12
- package/cjs/server.js +9 -12
- package/cjs/test-inputs.d.ts +1 -1
- package/cjs/test-inputs.js +1 -1
- package/cjs/testing.d.ts +12 -8
- package/cjs/testing.js +89 -37
- package/cjs/{ui-DNP1uWQy.js → ui-BJKh49aM.js} +3 -3
- package/cjs/{ui-BtmJC-f9.d.ts → ui-sjnJhloQ.d.ts} +2 -2
- package/cjs/ui.d.ts +2 -2
- package/cjs/ui.js +3 -3
- package/cjs/vue.d.ts +5 -5
- package/cjs/vue.js +4 -4
- package/{cjs/BrowserUpload-CeGsM9h1.d.ts → esm/BrowserUpload-BAH54V1q.d.ts} +2 -2
- package/esm/{BrowserUpload-Bu6eWqQS.js → BrowserUpload-C5aXj6QC.js} +1 -1
- package/esm/{CalmLensAppClient-D-BD_Ny1.d.ts → CalmLensAppClient-CdlcDd5l.d.ts} +1 -1
- package/esm/{CalmLensAppClient-xp-fH6Lz.js → CalmLensAppClient-gAd0C_Q_.js} +3 -3
- package/esm/{ModerationContextLimits-CtAyz60h.js → CalmLensCdn-CcxEY6wB.js} +3 -35
- package/esm/{CalmLensConnection-DwG5yBk2.js → CalmLensConnection-CfGVp95D.js} +2 -9
- package/esm/{CalmLensError-BDWThPCr.js → CalmLensError-C15tWu8W.js} +5 -0
- package/esm/{CalmLensServerClient-CKlNBBo3.js → CalmLensServerClient-CPWeRVWO.js} +18 -17
- package/{cjs/CalmLensServerClient-BYN_N0lt.d.ts → esm/CalmLensServerClient-CtS66dCU.d.ts} +12 -8
- package/esm/{CalmLensTestInputArguments-Xh4GIadS.js → CalmLensTestInputArguments-CqPADTkl.js} +1 -1
- package/esm/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-87kiUg0H.d.ts} +208 -10
- package/esm/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-C3pkrGYS-B7EygpJn.d.ts} +16 -50
- package/esm/{Core-CNmoxDCW.d.ts → Core-Ccy4-_sN.d.ts} +2 -2
- package/esm/{Core-DnCeTmvS.js → Core-DTcxpv3O.js} +3 -3
- package/{cjs/ReactUpload-kqEe6gcN.d.ts → esm/ReactUpload-DBhppuxM.d.ts} +1 -1
- package/esm/{ReactUpload-D30YlRui.js → ReactUpload-Dg7MtjbJ.js} +1 -1
- package/esm/{TestTriggers-CFnel6a9.d.ts → TestTriggers-Daxebd0V.d.ts} +1 -1
- package/esm/{UploadController-DENryQ8H.js → UploadController-DVsTVJVv.js} +2 -2
- package/{cjs/WebhookPayload-DZWlnvcY.d.ts → esm/WebhookPayload-B4rA_Dvm.d.ts} +13 -7
- package/esm/app.d.ts +6 -6
- package/esm/app.js +4 -4
- package/esm/elements.d.ts +4 -4
- package/esm/elements.js +4 -4
- package/esm/{index-Dl2qwS8L.d.ts → index-CWUnLKoF.d.ts} +8 -4
- package/esm/index.d.ts +5 -5
- package/esm/index.js +3 -3
- package/esm/react-native.d.ts +2 -2
- package/esm/react-native.js +4 -4
- package/esm/react.d.ts +4 -4
- package/esm/react.js +5 -5
- package/esm/server.d.ts +12 -12
- package/esm/server.js +4 -4
- package/esm/test-inputs.d.ts +1 -1
- package/esm/test-inputs.js +1 -1
- package/esm/testing.d.ts +12 -8
- package/esm/testing.js +74 -22
- package/esm/{ui-DUEBbRJ0.js → ui-DUao8UY0.js} +2 -2
- package/esm/{ui-BtmJC-f9.d.ts → ui-sjnJhloQ.d.ts} +2 -2
- package/esm/ui.d.ts +2 -2
- package/esm/ui.js +3 -3
- package/esm/vue.d.ts +5 -5
- package/esm/vue.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as HashList, d as ModerationContext, l as HashListEntry } from "./Classification-C3pkrGYS-B7EygpJn.js";
|
|
2
2
|
import * as zod from "zod";
|
|
3
3
|
/**
|
|
4
4
|
* Where the asset is in the pipeline: waiting for its content or its turn (`queued`), being
|
|
@@ -10095,8 +10095,7 @@ declare const ASSET_SCHEMA: zod.ZodObject<{
|
|
|
10095
10095
|
authorId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
10096
10096
|
context: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
10097
10097
|
items: zod.ZodArray<zod.ZodObject<{
|
|
10098
|
-
|
|
10099
|
-
authorId: zod.ZodOptional<zod.ZodString>;
|
|
10098
|
+
assetId: zod.ZodString;
|
|
10100
10099
|
}, zod.core.$strict>>;
|
|
10101
10100
|
}, zod.core.$strip>>>;
|
|
10102
10101
|
type: zod.ZodEnum<{
|
|
@@ -15202,7 +15201,7 @@ declare const ASSET_SCHEMA: zod.ZodObject<{
|
|
|
15202
15201
|
averageColor: zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>;
|
|
15203
15202
|
}, zod.core.$strip>>;
|
|
15204
15203
|
}, zod.core.$strip>;
|
|
15205
|
-
|
|
15204
|
+
sequence: zod.ZodNumber;
|
|
15206
15205
|
}, zod.core.$strip>;
|
|
15207
15206
|
type Asset$1 = zod.infer<typeof ASSET_SCHEMA>;
|
|
15208
15207
|
/**
|
|
@@ -15280,6 +15279,21 @@ declare const ASSET_INFO_SCHEMA: zod.ZodObject<{
|
|
|
15280
15279
|
}>;
|
|
15281
15280
|
}, zod.core.$strip>;
|
|
15282
15281
|
type AssetInfo = zod.infer<typeof ASSET_INFO_SCHEMA>;
|
|
15282
|
+
/**
|
|
15283
|
+
* What moderation decided for an asset, which also decides how it is delivered: served to anyone
|
|
15284
|
+
* with access (`allowed`), served the same way but marked for reduced reach (`limited`), only to
|
|
15285
|
+
* requests that confirm the viewer's age with `ageConfirmed`, signed URLs and server keys included
|
|
15286
|
+
* (`age-restricted`), not served (`blocked`), or not served with its stored content deleted
|
|
15287
|
+
* (`purged`).
|
|
15288
|
+
*/
|
|
15289
|
+
declare const ASSET_MODERATION_DECISION_SCHEMA: zod.ZodEnum<{
|
|
15290
|
+
"age-restricted": "age-restricted";
|
|
15291
|
+
allowed: "allowed";
|
|
15292
|
+
blocked: "blocked";
|
|
15293
|
+
limited: "limited";
|
|
15294
|
+
purged: "purged";
|
|
15295
|
+
}>;
|
|
15296
|
+
type AssetModerationDecision$1 = zod.infer<typeof ASSET_MODERATION_DECISION_SCHEMA>;
|
|
15283
15297
|
type AssetDataInput = Blob | Response | ReadableStream<Uint8Array>;
|
|
15284
15298
|
type AssetBufferInput = ArrayBuffer | (Uint8Array & {
|
|
15285
15299
|
write(string: string, offset?: number, length?: number, encoding?: string): number;
|
|
@@ -15353,8 +15367,7 @@ declare const ASSET_SEARCH_RESULT_SCHEMA: zod.ZodObject<{
|
|
|
15353
15367
|
authorId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
15354
15368
|
context: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
15355
15369
|
items: zod.ZodArray<zod.ZodObject<{
|
|
15356
|
-
|
|
15357
|
-
authorId: zod.ZodOptional<zod.ZodString>;
|
|
15370
|
+
assetId: zod.ZodString;
|
|
15358
15371
|
}, zod.core.$strict>>;
|
|
15359
15372
|
}, zod.core.$strip>>>;
|
|
15360
15373
|
type: zod.ZodEnum<{
|
|
@@ -20460,7 +20473,7 @@ declare const ASSET_SEARCH_RESULT_SCHEMA: zod.ZodObject<{
|
|
|
20460
20473
|
averageColor: zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>;
|
|
20461
20474
|
}, zod.core.$strip>>;
|
|
20462
20475
|
}, zod.core.$strip>;
|
|
20463
|
-
|
|
20476
|
+
sequence: zod.ZodNumber;
|
|
20464
20477
|
}, zod.core.$strip>;
|
|
20465
20478
|
score: zod.ZodNumber;
|
|
20466
20479
|
matchedFields: zod.ZodArray<zod.ZodEnum<{
|
|
@@ -35482,6 +35495,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35482
35495
|
permission: PermissionAction;
|
|
35483
35496
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35484
35497
|
enabled?: boolean;
|
|
35498
|
+
/**
|
|
35499
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35500
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35501
|
+
*/
|
|
35502
|
+
resource?: undefined;
|
|
35485
35503
|
fields: {
|
|
35486
35504
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35487
35505
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35551,6 +35569,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35551
35569
|
permission: PermissionAction;
|
|
35552
35570
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35553
35571
|
enabled?: boolean;
|
|
35572
|
+
/**
|
|
35573
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35574
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35575
|
+
*/
|
|
35576
|
+
resource?: undefined;
|
|
35554
35577
|
fields: {
|
|
35555
35578
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35556
35579
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35673,6 +35696,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35673
35696
|
permission: PermissionAction;
|
|
35674
35697
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35675
35698
|
enabled?: boolean;
|
|
35699
|
+
/**
|
|
35700
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35701
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35702
|
+
*/
|
|
35703
|
+
resource?: undefined;
|
|
35676
35704
|
fields: {
|
|
35677
35705
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35678
35706
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35777,6 +35805,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35777
35805
|
permission: PermissionAction;
|
|
35778
35806
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35779
35807
|
enabled?: boolean;
|
|
35808
|
+
/**
|
|
35809
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35810
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35811
|
+
*/
|
|
35812
|
+
resource?: undefined;
|
|
35780
35813
|
fields: {
|
|
35781
35814
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35782
35815
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35891,6 +35924,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35891
35924
|
permission: PermissionAction;
|
|
35892
35925
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35893
35926
|
enabled?: boolean;
|
|
35927
|
+
/**
|
|
35928
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35929
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35930
|
+
*/
|
|
35931
|
+
resource?: undefined;
|
|
35894
35932
|
fields: {
|
|
35895
35933
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35896
35934
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36005,6 +36043,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36005
36043
|
permission: PermissionAction;
|
|
36006
36044
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36007
36045
|
enabled?: boolean;
|
|
36046
|
+
/**
|
|
36047
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36048
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36049
|
+
*/
|
|
36050
|
+
resource?: undefined;
|
|
36008
36051
|
fields: {
|
|
36009
36052
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36010
36053
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36119,6 +36162,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36119
36162
|
permission: PermissionAction;
|
|
36120
36163
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36121
36164
|
enabled?: boolean;
|
|
36165
|
+
/**
|
|
36166
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36167
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36168
|
+
*/
|
|
36169
|
+
resource?: undefined;
|
|
36122
36170
|
fields: {
|
|
36123
36171
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36124
36172
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36233,6 +36281,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36233
36281
|
permission: PermissionAction;
|
|
36234
36282
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36235
36283
|
enabled?: boolean;
|
|
36284
|
+
/**
|
|
36285
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36286
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36287
|
+
*/
|
|
36288
|
+
resource?: undefined;
|
|
36236
36289
|
fields: {
|
|
36237
36290
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36238
36291
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36347,6 +36400,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36347
36400
|
permission: PermissionAction;
|
|
36348
36401
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36349
36402
|
enabled?: boolean;
|
|
36403
|
+
/**
|
|
36404
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36405
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36406
|
+
*/
|
|
36407
|
+
resource?: undefined;
|
|
36350
36408
|
fields: {
|
|
36351
36409
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36352
36410
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36460,6 +36518,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36460
36518
|
permission: PermissionAction;
|
|
36461
36519
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36462
36520
|
enabled?: boolean;
|
|
36521
|
+
/**
|
|
36522
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36523
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36524
|
+
*/
|
|
36525
|
+
resource?: undefined;
|
|
36463
36526
|
fields: {
|
|
36464
36527
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36465
36528
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36532,6 +36595,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36532
36595
|
permission: PermissionAction;
|
|
36533
36596
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36534
36597
|
enabled?: boolean;
|
|
36598
|
+
/**
|
|
36599
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36600
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36601
|
+
*/
|
|
36602
|
+
resource?: undefined;
|
|
36535
36603
|
fields: {
|
|
36536
36604
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36537
36605
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36598,6 +36666,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36598
36666
|
permission: PermissionAction;
|
|
36599
36667
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36600
36668
|
enabled?: boolean;
|
|
36669
|
+
/**
|
|
36670
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36671
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36672
|
+
*/
|
|
36673
|
+
resource?: undefined;
|
|
36601
36674
|
fields: {
|
|
36602
36675
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36603
36676
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36667,6 +36740,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36667
36740
|
permission: PermissionAction;
|
|
36668
36741
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36669
36742
|
enabled?: boolean;
|
|
36743
|
+
/**
|
|
36744
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36745
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36746
|
+
*/
|
|
36747
|
+
resource?: undefined;
|
|
36670
36748
|
fields: {
|
|
36671
36749
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36672
36750
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36736,6 +36814,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36736
36814
|
permission: PermissionAction;
|
|
36737
36815
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36738
36816
|
enabled?: boolean;
|
|
36817
|
+
/**
|
|
36818
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36819
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36820
|
+
*/
|
|
36821
|
+
resource?: undefined;
|
|
36739
36822
|
fields: {
|
|
36740
36823
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36741
36824
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36802,6 +36885,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36802
36885
|
permission: PermissionAction;
|
|
36803
36886
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36804
36887
|
enabled?: boolean;
|
|
36888
|
+
/**
|
|
36889
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36890
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36891
|
+
*/
|
|
36892
|
+
resource?: undefined;
|
|
36805
36893
|
fields: {
|
|
36806
36894
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36807
36895
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36922,6 +37010,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36922
37010
|
permission: PermissionAction;
|
|
36923
37011
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36924
37012
|
enabled?: boolean;
|
|
37013
|
+
/**
|
|
37014
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37015
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37016
|
+
*/
|
|
37017
|
+
resource?: undefined;
|
|
36925
37018
|
fields: {
|
|
36926
37019
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36927
37020
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -37018,6 +37111,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37018
37111
|
permission: PermissionAction;
|
|
37019
37112
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37020
37113
|
enabled?: boolean;
|
|
37114
|
+
/**
|
|
37115
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37116
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37117
|
+
*/
|
|
37118
|
+
resource?: undefined;
|
|
37021
37119
|
fields: {
|
|
37022
37120
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
37023
37121
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -37105,6 +37203,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37105
37203
|
permission: PermissionAction;
|
|
37106
37204
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37107
37205
|
enabled?: boolean;
|
|
37206
|
+
/**
|
|
37207
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37208
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37209
|
+
*/
|
|
37210
|
+
resource?: undefined;
|
|
37108
37211
|
fields: {
|
|
37109
37212
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
37110
37213
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -37208,6 +37311,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37208
37311
|
permission: PermissionAction;
|
|
37209
37312
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37210
37313
|
enabled?: boolean;
|
|
37314
|
+
/**
|
|
37315
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37316
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37317
|
+
*/
|
|
37318
|
+
resource?: undefined;
|
|
37211
37319
|
fields: {
|
|
37212
37320
|
limit: EventFieldDefinition<zod.ZodNumber>;
|
|
37213
37321
|
used: EventFieldDefinition<zod.ZodNumber>;
|
|
@@ -37261,6 +37369,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37261
37369
|
permission: PermissionAction;
|
|
37262
37370
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37263
37371
|
enabled?: boolean;
|
|
37372
|
+
/**
|
|
37373
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37374
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37375
|
+
*/
|
|
37376
|
+
resource?: undefined;
|
|
37264
37377
|
fields: {
|
|
37265
37378
|
reason: EventFieldDefinition<zod.ZodEnum<{
|
|
37266
37379
|
"payment-failed": "payment-failed";
|
|
@@ -37321,6 +37434,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37321
37434
|
permission: PermissionAction;
|
|
37322
37435
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37323
37436
|
enabled?: boolean;
|
|
37437
|
+
/**
|
|
37438
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37439
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37440
|
+
*/
|
|
37441
|
+
resource?: undefined;
|
|
37324
37442
|
fields: {
|
|
37325
37443
|
presetId: EventFieldDefinition<zod.ZodString>;
|
|
37326
37444
|
presetName: EventFieldDefinition<zod.ZodString>;
|
|
@@ -37374,6 +37492,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37374
37492
|
permission: PermissionAction;
|
|
37375
37493
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37376
37494
|
enabled?: boolean;
|
|
37495
|
+
/**
|
|
37496
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37497
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37498
|
+
*/
|
|
37499
|
+
resource?: "member" | undefined;
|
|
37377
37500
|
fields: {
|
|
37378
37501
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37379
37502
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37441,6 +37564,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37441
37564
|
permission: PermissionAction;
|
|
37442
37565
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37443
37566
|
enabled?: boolean;
|
|
37567
|
+
/**
|
|
37568
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37569
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37570
|
+
*/
|
|
37571
|
+
resource?: "member" | undefined;
|
|
37444
37572
|
fields: {
|
|
37445
37573
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37446
37574
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37508,6 +37636,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37508
37636
|
permission: PermissionAction;
|
|
37509
37637
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37510
37638
|
enabled?: boolean;
|
|
37639
|
+
/**
|
|
37640
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37641
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37642
|
+
*/
|
|
37643
|
+
resource?: "member" | undefined;
|
|
37511
37644
|
fields: {
|
|
37512
37645
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37513
37646
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37575,6 +37708,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37575
37708
|
permission: PermissionAction;
|
|
37576
37709
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37577
37710
|
enabled?: boolean;
|
|
37711
|
+
/**
|
|
37712
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37713
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37714
|
+
*/
|
|
37715
|
+
resource?: "member" | undefined;
|
|
37578
37716
|
fields: {
|
|
37579
37717
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37580
37718
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37659,6 +37797,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37659
37797
|
permission: PermissionAction;
|
|
37660
37798
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37661
37799
|
enabled?: boolean;
|
|
37800
|
+
/**
|
|
37801
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37802
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37803
|
+
*/
|
|
37804
|
+
resource?: undefined;
|
|
37662
37805
|
fields: {
|
|
37663
37806
|
inviteeEmail: EventFieldDefinition<zod.ZodString>;
|
|
37664
37807
|
role: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -37723,6 +37866,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37723
37866
|
permission: PermissionAction;
|
|
37724
37867
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37725
37868
|
enabled?: boolean;
|
|
37869
|
+
/**
|
|
37870
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37871
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37872
|
+
*/
|
|
37873
|
+
resource?: undefined;
|
|
37726
37874
|
fields: {
|
|
37727
37875
|
previousOrganisationId: EventFieldDefinition<zod.ZodString>;
|
|
37728
37876
|
previousOrganisationName: EventFieldDefinition<zod.ZodString>;
|
|
@@ -37794,6 +37942,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37794
37942
|
permission: PermissionAction;
|
|
37795
37943
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37796
37944
|
enabled?: boolean;
|
|
37945
|
+
/**
|
|
37946
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37947
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37948
|
+
*/
|
|
37949
|
+
resource?: "api-key" | undefined;
|
|
37797
37950
|
fields: {
|
|
37798
37951
|
keyId: EventFieldDefinition<zod.ZodString>;
|
|
37799
37952
|
keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37862,6 +38015,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37862
38015
|
permission: PermissionAction;
|
|
37863
38016
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37864
38017
|
enabled?: boolean;
|
|
38018
|
+
/**
|
|
38019
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38020
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38021
|
+
*/
|
|
38022
|
+
resource?: "api-key" | undefined;
|
|
37865
38023
|
fields: {
|
|
37866
38024
|
keyId: EventFieldDefinition<zod.ZodString>;
|
|
37867
38025
|
keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37915,6 +38073,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37915
38073
|
permission: PermissionAction;
|
|
37916
38074
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37917
38075
|
enabled?: boolean;
|
|
38076
|
+
/**
|
|
38077
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38078
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38079
|
+
*/
|
|
38080
|
+
resource?: "api-key" | undefined;
|
|
37918
38081
|
fields: {
|
|
37919
38082
|
keyId: EventFieldDefinition<zod.ZodString>;
|
|
37920
38083
|
keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37968,6 +38131,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37968
38131
|
permission: PermissionAction;
|
|
37969
38132
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37970
38133
|
enabled?: boolean;
|
|
38134
|
+
/**
|
|
38135
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38136
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38137
|
+
*/
|
|
38138
|
+
resource?: undefined;
|
|
37971
38139
|
fields: {
|
|
37972
38140
|
connectorId: EventFieldDefinition<zod.ZodString>;
|
|
37973
38141
|
connectorName: EventFieldDefinition<zod.ZodString>;
|
|
@@ -38037,6 +38205,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
38037
38205
|
permission: PermissionAction;
|
|
38038
38206
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
38039
38207
|
enabled?: boolean;
|
|
38208
|
+
/**
|
|
38209
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38210
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38211
|
+
*/
|
|
38212
|
+
resource?: undefined;
|
|
38040
38213
|
fields: {
|
|
38041
38214
|
appealId: EventFieldDefinition<zod.ZodString>;
|
|
38042
38215
|
subjectType: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -38100,6 +38273,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
38100
38273
|
permission: PermissionAction;
|
|
38101
38274
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
38102
38275
|
enabled?: boolean;
|
|
38276
|
+
/**
|
|
38277
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38278
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38279
|
+
*/
|
|
38280
|
+
resource?: undefined;
|
|
38103
38281
|
fields: {
|
|
38104
38282
|
appealId: EventFieldDefinition<zod.ZodString>;
|
|
38105
38283
|
subjectType: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -38180,6 +38358,9 @@ type EventFact<TType extends EventType = EventType> = TType extends EventType ?
|
|
|
38180
38358
|
url?: string;
|
|
38181
38359
|
} : never;
|
|
38182
38360
|
type EventFacts<TType extends EventType = EventType> = EventFact<TType>[];
|
|
38361
|
+
/** The kinds of resource an event can be about. Each resource numbers its own events in sequence. */
|
|
38362
|
+
declare const EVENT_RESOURCE_KINDS: readonly ["asset", "member", "api-key"];
|
|
38363
|
+
type EventResourceKind = (typeof EVENT_RESOURCE_KINDS)[number];
|
|
38183
38364
|
declare const ACTOR_SCHEMA: zod.ZodObject<{
|
|
38184
38365
|
type: zod.ZodEnum<{
|
|
38185
38366
|
"api-key": "api-key";
|
|
@@ -38190,6 +38371,16 @@ declare const ACTOR_SCHEMA: zod.ZodObject<{
|
|
|
38190
38371
|
id: zod.ZodNullable<zod.ZodString>;
|
|
38191
38372
|
}, zod.core.$strict>;
|
|
38192
38373
|
type Actor = zod.infer<typeof ACTOR_SCHEMA>;
|
|
38374
|
+
declare const EVENT_RESOURCE_SCHEMA: zod.ZodObject<{
|
|
38375
|
+
kind: zod.ZodEnum<{
|
|
38376
|
+
"api-key": "api-key";
|
|
38377
|
+
asset: "asset";
|
|
38378
|
+
member: "member";
|
|
38379
|
+
}>;
|
|
38380
|
+
id: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
38381
|
+
sequence: zod.ZodNumber;
|
|
38382
|
+
}, zod.core.$strict>;
|
|
38383
|
+
type EventResource = zod.infer<typeof EVENT_RESOURCE_SCHEMA>;
|
|
38193
38384
|
/** An event as `GET /events` lists it and webhooks deliver it. */
|
|
38194
38385
|
declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
|
|
38195
38386
|
id: zod.ZodString;
|
|
@@ -38244,8 +38435,15 @@ declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
|
|
|
38244
38435
|
}>;
|
|
38245
38436
|
title: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
38246
38437
|
description: zod.ZodOptional<zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>>;
|
|
38247
|
-
|
|
38248
|
-
|
|
38438
|
+
resource: zod.ZodNullable<zod.ZodObject<{
|
|
38439
|
+
kind: zod.ZodEnum<{
|
|
38440
|
+
"api-key": "api-key";
|
|
38441
|
+
asset: "asset";
|
|
38442
|
+
member: "member";
|
|
38443
|
+
}>;
|
|
38444
|
+
id: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
38445
|
+
sequence: zod.ZodNumber;
|
|
38446
|
+
}, zod.core.$strict>>;
|
|
38249
38447
|
facts: zod.ZodArray<zod.ZodObject<{
|
|
38250
38448
|
key: zod.ZodString;
|
|
38251
38449
|
value: zod.ZodUnknown & zod.ZodType<{} | null, unknown, zod.core.$ZodTypeInternals<{} | null, unknown>>;
|
|
@@ -43219,4 +43417,4 @@ interface ClassifyTextOptions extends Omit<SubmitAssetCommonOptions, "name" | "i
|
|
|
43219
43417
|
/** `folders.list` options. `sort` is `name` (the default) or `createdAt`, descending when prefixed with `-`. */
|
|
43220
43418
|
type ListFoldersOptions = GetFoldersQuery;
|
|
43221
43419
|
type FolderPage = GetFoldersResponse;
|
|
43222
|
-
export { FolderPage as $, UploadPresetSubmitAssetOptions as $t, CdnAssetLocation as A,
|
|
43420
|
+
export { FolderPage as $, UploadPresetSubmitAssetOptions as $t, CdnAssetLocation as A, ProcessingFeatureId as An, ResetPolicyOptions as At, CreateHashListOptions as B, AssetInfo as Bn, StreamingFeatureOptions as Bt, AssetUploadStatus as C, ProjectSettingsResource as Cn, MultipartUploadPartOptions as Ct, BatchAssetsResponse as D, BoundingBox as Dn, RequestAssetReviewOptions as Dt, BatchAssetsOptions as E, AgeRange as En, RemoveAssetContentOptions as Et, CdnTransform as F, CursorPage as Fn, SetPolicyAutomaticUpdatesOptions as Ft, DeleteAssetOptions as G, AssetRenderedKind as Gn, UpdateLensOptions as Gt, CreateMultipartUploadPartOptions as H, AssetHlsRendition as Hn, UpdateAssetOptions as Ht, ClassifyTextOptions as I, LensType as In, SignAssetUrlOptions as It, EnsureLensesOptions as J, ExtractedText as Jn, UpgradePolicyOptions as Jt, DeleteMetadataFieldOptions as K, AssetSafetyHold as Kn, UpdatePolicyOptions as Kt, ClientRequestDefaults as L, AssetSearchMatchField as Ln, SignUploadTokenOptions as Lt, CdnAssetUrlOptions as M, ProcessingFeatureStage as Mn, RetrieveAssetOptions as Mt, CdnResource as N, ProcessingFeatures as Nn, RetryAssetOptions as Nt, CalmLensAppClientOptions as O, DetectedFace as On, RequestAttempt as Ot, CdnServeOptions as P, Policy as Pn, SearchAssetsOptions as Pt, FolderIdOptions as Q, UploadPresetPage as Qt, ConnectionOptions as R, AssetSearchQuery as Rn, SignedAssetUrl as Rt, AssetUpload as S, MetadataFieldsResource as Sn, MultipartUploadOptions as St, AssignPolicyOptions as T, UploadPreset as Tn, PolicyPage as Tt, CreatePolicyOptions as U, AssetPreview as Un, UpdateFolderOptions as Ut, CreateLensOptions as V, AssetHls as Vn, SubmitAssetOptions as Vt, DecideAssetOptions as W, AssetRendered as Wn, UpdateHashListOptions as Wt, EnsureUploadPresetsOptions as X, MetadataItem as Xn, UploadPresetDefinition as Xt, EnsureMetadataFieldsOptions as Y, FileMetadata as Yn, UploadAssetPartOptions as Yt, EnsureUploadPresetsResponse as Z, ProcessingOptions as Zn, UploadPresetIdOptions as Zt, AssetPage as _, EventResourceKind as _n, ListLensesOptions as _t, AssetChecksums as a, WebhookPayloadInput as an, IdempotencyOptions as at, AssetTimelinePage as b, PermissionGrant as bn, MoveAssetOptions as bt, AssetClassificationFailureReason as c, AssetTimelineSegment as cn, LensIdOptions as ct, AssetContentOptions as d, EventResource as dn, ListAssetTimelineOptions as dt, UploadedAsset as en, GetAssetInfoOptions as et, AssetContentRemovalReason as f, TypedEvent as fn, ListAssetsOptions as ft, AssetModerationStatus as g, EventFacts as gn, ListHashListsOptions as gt, AssetModerationDecision as h, EventFactValues as hn, ListHashListEntriesOptions as ht, AssetAvailability as i, WebhookHeadersInput as in, HashListPage as it, CdnAssetReference as j, ProcessingFeatureResults as jn, RetrieveAssetByExternalIdOptions as jt, CalmLensServerClientOptions as k, DetectedPerson as kn, RequestOptions as kt, AssetClassificationStatus as l, GetEventsResponse as ln, LensPage as lt, AssetModeration as m, EventFact as mn, ListFoldersOptions as mt, AppInfo as n, ViewerClaims as nn, HashListEntryPage as nt, AssetChildrenPage as o, AssetBatchOperation as on, ImageTransformOptions as ot, AssetContentStatus as p, EventCategory as pn, ListEventsOptions as pt, EnsureLensOptions as q, AssetSafetyHoldReason as qn, UpdateProjectSettingsOptions as qt, Asset as r, WaitForAssetDecisionOptions as rn, HashListIdOptions as rt, AssetClassification as s, AssetReviewRequest as sn, Lens as st, AddHashListEntryOptions as t, VerifyWebhookSignatureOptions as tn, HashListEntryIdOptions as tt, AssetContent as u, Actor as un, ListAssetChildrenOptions as ut, AssetSearchResponse as v, EventSeverity as vn, ListPoliciesOptions as vt, AssetVisibility as w, PublicProjectSettings as wn, PolicyIdOptions as wt, AssetType as x, Folder as xn, MoveFolderOptions as xt, AssetSearchResult as y, EventType as yn, ListUploadPresetsOptions as yt, CreateFolderOptions as z, AssetBinaryPayloadInput as zn, SignedUploadToken as zt };
|
|
@@ -1,30 +1,25 @@
|
|
|
1
1
|
import * as zod from "zod";
|
|
2
|
-
/** The most recent earlier posts CalmLens uses. */
|
|
3
|
-
declare const MODERATION_CONTEXT_USED_ITEMS = 5;
|
|
4
|
-
/**
|
|
5
|
-
* The most characters of earlier posts CalmLens uses. The newest post always fits, since no post
|
|
6
|
-
* may be longer.
|
|
7
|
-
*/
|
|
8
|
-
declare const MODERATION_CONTEXT_USED_CHARACTERS = 2000;
|
|
9
|
-
/** An earlier post in the conversation. */
|
|
10
|
-
interface ModerationContextItem {
|
|
11
|
-
text: string;
|
|
12
|
-
authorId?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The earlier posts CalmLens uses: the most recent ones, newest first, while at most
|
|
16
|
-
* `MODERATION_CONTEXT_USED_ITEMS` and `MODERATION_CONTEXT_USED_CHARACTERS` allow, returned oldest
|
|
17
|
-
* first. The newest post is always kept, so an over-long one is left for validation to reject.
|
|
18
|
-
*/
|
|
19
|
-
declare const selectModerationContextItems: <Item extends ModerationContextItem>(items: readonly Item[]) => Item[];
|
|
20
2
|
/** The context a request may send: up to 20 earlier posts, oldest first. */
|
|
21
3
|
declare const MODERATION_CONTEXT_SCHEMA: zod.ZodObject<{
|
|
22
4
|
items: zod.ZodArray<zod.ZodObject<{
|
|
23
|
-
|
|
24
|
-
authorId: zod.ZodOptional<zod.ZodString>;
|
|
5
|
+
assetId: zod.ZodString;
|
|
25
6
|
}, zod.core.$strict>>;
|
|
26
7
|
}, zod.core.$strict>;
|
|
27
8
|
type ModerationContext = zod.infer<typeof MODERATION_CONTEXT_SCHEMA>;
|
|
9
|
+
/**
|
|
10
|
+
* What a policy does with content: deliver it (`allow`), deliver it but mark it so your app
|
|
11
|
+
* reduces its reach (`limit`), keep it off its plain URL so your app limits it to adults
|
|
12
|
+
* (`age-restrict`: `viewerClaims.ageConfirmed: true`), stop delivering it
|
|
13
|
+
* (`block`), or stop delivering it and delete its stored content (`purge`).
|
|
14
|
+
*/
|
|
15
|
+
declare const POLICY_ACTION_SCHEMA: zod.ZodEnum<{
|
|
16
|
+
"age-restrict": "age-restrict";
|
|
17
|
+
allow: "allow";
|
|
18
|
+
block: "block";
|
|
19
|
+
limit: "limit";
|
|
20
|
+
purge: "purge";
|
|
21
|
+
}>;
|
|
22
|
+
type PolicyAction = zod.infer<typeof POLICY_ACTION_SCHEMA>;
|
|
28
23
|
declare const HASH_LIST_SCHEMA: zod.ZodObject<{
|
|
29
24
|
id: zod.ZodString;
|
|
30
25
|
projectId: zod.ZodString;
|
|
@@ -1056,35 +1051,6 @@ declare const MODERATION_QUALIFIER_INFO: {
|
|
|
1056
1051
|
};
|
|
1057
1052
|
};
|
|
1058
1053
|
type ModerationQualifier = keyof typeof MODERATION_QUALIFIER_INFO;
|
|
1059
|
-
/**
|
|
1060
|
-
* What a policy does with content: deliver it (`allow`), deliver it but mark it so your app
|
|
1061
|
-
* reduces its reach (`limit`), keep it off its plain URL so your app limits it to adults
|
|
1062
|
-
* (`age-restrict`: `viewerClaims.ageConfirmed: true`), stop delivering it
|
|
1063
|
-
* (`block`), or stop delivering it and delete its stored content (`purge`).
|
|
1064
|
-
*/
|
|
1065
|
-
declare const POLICY_ACTION_SCHEMA: zod.ZodEnum<{
|
|
1066
|
-
"age-restrict": "age-restrict";
|
|
1067
|
-
allow: "allow";
|
|
1068
|
-
block: "block";
|
|
1069
|
-
limit: "limit";
|
|
1070
|
-
purge: "purge";
|
|
1071
|
-
}>;
|
|
1072
|
-
type PolicyAction = zod.infer<typeof POLICY_ACTION_SCHEMA>;
|
|
1073
|
-
/**
|
|
1074
|
-
* What moderation decided for an asset, which also decides how it is delivered: served to anyone
|
|
1075
|
-
* with access (`allowed`), served the same way but marked for reduced reach (`limited`), only to
|
|
1076
|
-
* requests that confirm the viewer's age with `ageConfirmed`, signed URLs and server keys included
|
|
1077
|
-
* (`age-restricted`), not served (`blocked`), or not served with its stored content deleted
|
|
1078
|
-
* (`purged`).
|
|
1079
|
-
*/
|
|
1080
|
-
declare const ASSET_MODERATION_DECISION_SCHEMA: zod.ZodEnum<{
|
|
1081
|
-
"age-restricted": "age-restricted";
|
|
1082
|
-
allowed: "allowed";
|
|
1083
|
-
blocked: "blocked";
|
|
1084
|
-
limited: "limited";
|
|
1085
|
-
purged: "purged";
|
|
1086
|
-
}>;
|
|
1087
|
-
type AssetModerationDecision = zod.infer<typeof ASSET_MODERATION_DECISION_SCHEMA>;
|
|
1088
1054
|
declare const CLASSIFICATION_CATEGORY_SCHEMA: zod.ZodEnum<{
|
|
1089
1055
|
"criminal-activity": "criminal-activity";
|
|
1090
1056
|
harassment: "harassment";
|
|
@@ -6028,4 +5994,4 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
|
|
|
6028
5994
|
}, zod.core.$strict>], "status">;
|
|
6029
5995
|
}, zod.core.$strict>;
|
|
6030
5996
|
type ClassificationCategories = zod.infer<typeof CATEGORIES_SCHEMA>;
|
|
6031
|
-
export {
|
|
5997
|
+
export { ClassificationQualifierResults as a, HashList as c, ModerationContext as d, ClassificationNotEvaluatedReason as i, HashListEntry as l, ClassificationCategory as n, Likelihood as o, ClassificationCategoryReport as r, ModerationQualifier as s, ClassificationCategories as t, PolicyAction as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as CdnTransform, O as CalmLensAppClientOptions, g as AssetModerationStatus, i as AssetAvailability, nn as ViewerClaims } from "./CalmLensTypes-
|
|
2
|
-
import { t as CalmLensAppClient } from "./CalmLensAppClient-
|
|
1
|
+
import { F as CdnTransform, O as CalmLensAppClientOptions, g as AssetModerationStatus, i as AssetAvailability, nn as ViewerClaims } from "./CalmLensTypes-87kiUg0H.js";
|
|
2
|
+
import { t as CalmLensAppClient } from "./CalmLensAppClient-CdlcDd5l.js";
|
|
3
3
|
import { o as UploadFileIconFamily } from "./FileIcons-4qSX7DW2.js";
|
|
4
4
|
/**
|
|
5
5
|
* The text the asset viewers show, keyed by name. `{name}` placeholders are filled in when shown.
|