calmlens 0.29.1 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/bin/calmlens.js +39 -18
  2. package/cjs/{BrowserUpload-CsxEB1Pr.js → BrowserUpload-BNeTp6eF.js} +1 -1
  3. package/cjs/{BrowserUpload-CeGsM9h1.d.ts → BrowserUpload-DS6KT6o_.d.ts} +2 -2
  4. package/{esm/CalmLensAppClient-D-BD_Ny1.d.ts → cjs/CalmLensAppClient-B4vzxEzg.d.ts} +1 -1
  5. package/cjs/{CalmLensAppClient-BWMcQM9v.js → CalmLensAppClient-ClqGwUbl.js} +7 -6
  6. package/cjs/{CalmLensConnection-DBgV8D1B.js → CalmLensConnection-og0jh-Fw.js} +29 -28
  7. package/cjs/CalmLensError-DPHJaVjX.js +1066 -0
  8. package/cjs/{CalmLensServerClient-BYN_N0lt.d.ts → CalmLensServerClient-BJl2Hsxr.d.ts} +12 -8
  9. package/cjs/{CalmLensServerClient-DYO3geSA.js → CalmLensServerClient-KsXM77rO.js} +37 -35
  10. package/cjs/{TestTriggers-uL2Ec8Vt-cPmmKvYd.js → CalmLensTestInputArguments-BXDBAOg_.js} +50 -22
  11. package/cjs/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-fAgF0_lq.d.ts} +206 -6
  12. package/cjs/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-DbXUPSvH-C0o2t4mg.d.ts} +15 -30
  13. package/cjs/{Core-CNmoxDCW.d.ts → Core-DL531ZPG.d.ts} +2 -2
  14. package/cjs/{Core-Bl-aESvN.js → Core-eDiPpil9.js} +4 -3
  15. package/cjs/{ModerationContextLimits-DHu2jHpo.js → ModerationContextLimits-BVBkcgSU.js} +67 -1126
  16. package/{esm/ReactUpload-kqEe6gcN.d.ts → cjs/ReactUpload-BoS0lr7U.d.ts} +1 -1
  17. package/cjs/{ReactUpload-BFVNyWoI.js → ReactUpload-DAPAzAwY.js} +1 -1
  18. package/{esm/TestTriggers-dognME9k-PWyIfHMI.d.ts → cjs/TestTriggers-CLjF01NU.d.ts} +2 -3
  19. package/cjs/{UploadController-VM1qYwNq.js → UploadController-BElzwMic.js} +6 -6
  20. package/{esm/WebhookPayload-DZWlnvcY.d.ts → cjs/WebhookPayload-DlGoY_db.d.ts} +11 -7
  21. package/cjs/app.d.ts +6 -6
  22. package/cjs/app.js +22 -21
  23. package/cjs/elements.d.ts +4 -4
  24. package/cjs/elements.js +4 -4
  25. package/cjs/{index-Dl2qwS8L.d.ts → index-ChrzzIRt.d.ts} +3 -3
  26. package/cjs/index.d.ts +5 -5
  27. package/cjs/index.js +21 -20
  28. package/cjs/react-native.d.ts +2 -2
  29. package/cjs/react-native.js +4 -4
  30. package/cjs/react.d.ts +4 -4
  31. package/cjs/react.js +5 -5
  32. package/cjs/server.d.ts +12 -12
  33. package/cjs/server.js +23 -22
  34. package/cjs/test-inputs.d.ts +6 -2
  35. package/cjs/test-inputs.js +23 -13
  36. package/cjs/testing.d.ts +14 -10
  37. package/cjs/testing.js +154 -147
  38. package/cjs/{ui-BCiLF8cU.js → ui-COjb2Hx6.js} +2 -2
  39. package/cjs/{ui-BtmJC-f9.d.ts → ui-DpZOLeVs.d.ts} +2 -2
  40. package/cjs/ui.d.ts +2 -2
  41. package/cjs/ui.js +3 -3
  42. package/cjs/vue.d.ts +5 -5
  43. package/cjs/vue.js +4 -4
  44. package/esm/{BrowserUpload-DB3WpaC1.js → BrowserUpload-BCmj5eGu.js} +1 -1
  45. package/esm/{BrowserUpload-CeGsM9h1.d.ts → BrowserUpload-DS6KT6o_.d.ts} +2 -2
  46. package/{cjs/CalmLensAppClient-D-BD_Ny1.d.ts → esm/CalmLensAppClient-B4vzxEzg.d.ts} +1 -1
  47. package/esm/{CalmLensAppClient-Dg-jPs4B.js → CalmLensAppClient-DcPVLn2y.js} +3 -2
  48. package/esm/{CalmLensConnection-Di7K7Wnl.js → CalmLensConnection-Pm-g6a1l.js} +2 -1
  49. package/esm/CalmLensError-BDWThPCr.js +917 -0
  50. package/esm/{CalmLensServerClient-BYN_N0lt.d.ts → CalmLensServerClient-BJl2Hsxr.d.ts} +12 -8
  51. package/esm/{CalmLensServerClient-Pdp7TI8y.js → CalmLensServerClient-C2HGsjkT.js} +18 -16
  52. package/esm/{TestTriggers-uL2Ec8Vt-DYbTEJWm.js → CalmLensTestInputArguments-Xh4GIadS.js} +22 -1
  53. package/esm/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-fAgF0_lq.d.ts} +206 -6
  54. package/esm/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-DbXUPSvH-C0o2t4mg.d.ts} +15 -30
  55. package/esm/{Core-CNmoxDCW.d.ts → Core-DL531ZPG.d.ts} +2 -2
  56. package/esm/{Core-CKk4teFu.js → Core-KYgLJ0eb.js} +3 -2
  57. package/esm/{ModerationContextLimits-xvxUjGfL.js → ModerationContextLimits-DmjWgTBa.js} +3 -918
  58. package/{cjs/ReactUpload-kqEe6gcN.d.ts → esm/ReactUpload-BoS0lr7U.d.ts} +1 -1
  59. package/esm/{ReactUpload-DY5qQ70s.js → ReactUpload-QW_RNxFp.js} +1 -1
  60. package/{cjs/TestTriggers-dognME9k-PWyIfHMI.d.ts → esm/TestTriggers-CLjF01NU.d.ts} +2 -3
  61. package/esm/{UploadController-wyor-5Z2.js → UploadController-Civ7QPwT.js} +2 -2
  62. package/{cjs/WebhookPayload-DZWlnvcY.d.ts → esm/WebhookPayload-DlGoY_db.d.ts} +11 -7
  63. package/esm/app.d.ts +6 -6
  64. package/esm/app.js +3 -2
  65. package/esm/elements.d.ts +4 -4
  66. package/esm/elements.js +4 -4
  67. package/esm/{index-Dl2qwS8L.d.ts → index-ChrzzIRt.d.ts} +3 -3
  68. package/esm/index.d.ts +5 -5
  69. package/esm/index.js +3 -1
  70. package/esm/react-native.d.ts +2 -2
  71. package/esm/react-native.js +4 -4
  72. package/esm/react.d.ts +4 -4
  73. package/esm/react.js +5 -5
  74. package/esm/server.d.ts +12 -12
  75. package/esm/server.js +4 -3
  76. package/esm/test-inputs.d.ts +6 -2
  77. package/esm/test-inputs.js +12 -1
  78. package/esm/testing.d.ts +14 -10
  79. package/esm/testing.js +27 -21
  80. package/esm/{ui-BqF49fSy.js → ui-BVXgDCO2.js} +2 -2
  81. package/esm/{ui-BtmJC-f9.d.ts → ui-DpZOLeVs.d.ts} +2 -2
  82. package/esm/ui.d.ts +2 -2
  83. package/esm/ui.js +3 -3
  84. package/esm/vue.d.ts +5 -5
  85. package/esm/vue.js +4 -4
  86. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { d as HashListEntry, f as ModerationContext, t as AssetModerationDecision$1, u as HashList } from "./Classification-CMM2tZpJ-IdIh63n0.js";
1
+ import { c as HashList, d as ModerationContext, l as HashListEntry } from "./Classification-DbXUPSvH-C0o2t4mg.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
@@ -15202,7 +15202,7 @@ declare const ASSET_SCHEMA: zod.ZodObject<{
15202
15202
  averageColor: zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>;
15203
15203
  }, zod.core.$strip>>;
15204
15204
  }, zod.core.$strip>;
15205
- eventSequence: zod.ZodNumber;
15205
+ sequence: zod.ZodNumber;
15206
15206
  }, zod.core.$strip>;
15207
15207
  type Asset$1 = zod.infer<typeof ASSET_SCHEMA>;
15208
15208
  /**
@@ -15280,6 +15280,21 @@ declare const ASSET_INFO_SCHEMA: zod.ZodObject<{
15280
15280
  }>;
15281
15281
  }, zod.core.$strip>;
15282
15282
  type AssetInfo = zod.infer<typeof ASSET_INFO_SCHEMA>;
15283
+ /**
15284
+ * What moderation decided for an asset, which also decides how it is delivered: served to anyone
15285
+ * with access (`allowed`), served the same way but marked for reduced reach (`limited`), only to
15286
+ * requests that confirm the viewer's age with `ageConfirmed`, signed URLs and server keys included
15287
+ * (`age-restricted`), not served (`blocked`), or not served with its stored content deleted
15288
+ * (`purged`).
15289
+ */
15290
+ declare const ASSET_MODERATION_DECISION_SCHEMA: zod.ZodEnum<{
15291
+ "age-restricted": "age-restricted";
15292
+ allowed: "allowed";
15293
+ blocked: "blocked";
15294
+ limited: "limited";
15295
+ purged: "purged";
15296
+ }>;
15297
+ type AssetModerationDecision$1 = zod.infer<typeof ASSET_MODERATION_DECISION_SCHEMA>;
15283
15298
  type AssetDataInput = Blob | Response | ReadableStream<Uint8Array>;
15284
15299
  type AssetBufferInput = ArrayBuffer | (Uint8Array & {
15285
15300
  write(string: string, offset?: number, length?: number, encoding?: string): number;
@@ -20460,7 +20475,7 @@ declare const ASSET_SEARCH_RESULT_SCHEMA: zod.ZodObject<{
20460
20475
  averageColor: zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>;
20461
20476
  }, zod.core.$strip>>;
20462
20477
  }, zod.core.$strip>;
20463
- eventSequence: zod.ZodNumber;
20478
+ sequence: zod.ZodNumber;
20464
20479
  }, zod.core.$strip>;
20465
20480
  score: zod.ZodNumber;
20466
20481
  matchedFields: zod.ZodArray<zod.ZodEnum<{
@@ -35482,6 +35497,11 @@ declare const EVENT_TYPE_INFO: {
35482
35497
  permission: PermissionAction;
35483
35498
  /** Types of unreleased features are left out of the published contract until enabled. */
35484
35499
  enabled?: boolean;
35500
+ /**
35501
+ * The kind of resource other than an asset that events of this type are about: each is numbered
35502
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
35503
+ */
35504
+ resource?: undefined;
35485
35505
  fields: {
35486
35506
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
35487
35507
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -35551,6 +35571,11 @@ declare const EVENT_TYPE_INFO: {
35551
35571
  permission: PermissionAction;
35552
35572
  /** Types of unreleased features are left out of the published contract until enabled. */
35553
35573
  enabled?: boolean;
35574
+ /**
35575
+ * The kind of resource other than an asset that events of this type are about: each is numbered
35576
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
35577
+ */
35578
+ resource?: undefined;
35554
35579
  fields: {
35555
35580
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
35556
35581
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -35673,6 +35698,11 @@ declare const EVENT_TYPE_INFO: {
35673
35698
  permission: PermissionAction;
35674
35699
  /** Types of unreleased features are left out of the published contract until enabled. */
35675
35700
  enabled?: boolean;
35701
+ /**
35702
+ * The kind of resource other than an asset that events of this type are about: each is numbered
35703
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
35704
+ */
35705
+ resource?: undefined;
35676
35706
  fields: {
35677
35707
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
35678
35708
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -35777,6 +35807,11 @@ declare const EVENT_TYPE_INFO: {
35777
35807
  permission: PermissionAction;
35778
35808
  /** Types of unreleased features are left out of the published contract until enabled. */
35779
35809
  enabled?: boolean;
35810
+ /**
35811
+ * The kind of resource other than an asset that events of this type are about: each is numbered
35812
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
35813
+ */
35814
+ resource?: undefined;
35780
35815
  fields: {
35781
35816
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
35782
35817
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -35891,6 +35926,11 @@ declare const EVENT_TYPE_INFO: {
35891
35926
  permission: PermissionAction;
35892
35927
  /** Types of unreleased features are left out of the published contract until enabled. */
35893
35928
  enabled?: boolean;
35929
+ /**
35930
+ * The kind of resource other than an asset that events of this type are about: each is numbered
35931
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
35932
+ */
35933
+ resource?: undefined;
35894
35934
  fields: {
35895
35935
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
35896
35936
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36005,6 +36045,11 @@ declare const EVENT_TYPE_INFO: {
36005
36045
  permission: PermissionAction;
36006
36046
  /** Types of unreleased features are left out of the published contract until enabled. */
36007
36047
  enabled?: boolean;
36048
+ /**
36049
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36050
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36051
+ */
36052
+ resource?: undefined;
36008
36053
  fields: {
36009
36054
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36010
36055
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36119,6 +36164,11 @@ declare const EVENT_TYPE_INFO: {
36119
36164
  permission: PermissionAction;
36120
36165
  /** Types of unreleased features are left out of the published contract until enabled. */
36121
36166
  enabled?: boolean;
36167
+ /**
36168
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36169
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36170
+ */
36171
+ resource?: undefined;
36122
36172
  fields: {
36123
36173
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36124
36174
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36233,6 +36283,11 @@ declare const EVENT_TYPE_INFO: {
36233
36283
  permission: PermissionAction;
36234
36284
  /** Types of unreleased features are left out of the published contract until enabled. */
36235
36285
  enabled?: boolean;
36286
+ /**
36287
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36288
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36289
+ */
36290
+ resource?: undefined;
36236
36291
  fields: {
36237
36292
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36238
36293
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36347,6 +36402,11 @@ declare const EVENT_TYPE_INFO: {
36347
36402
  permission: PermissionAction;
36348
36403
  /** Types of unreleased features are left out of the published contract until enabled. */
36349
36404
  enabled?: boolean;
36405
+ /**
36406
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36407
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36408
+ */
36409
+ resource?: undefined;
36350
36410
  fields: {
36351
36411
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36352
36412
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36460,6 +36520,11 @@ declare const EVENT_TYPE_INFO: {
36460
36520
  permission: PermissionAction;
36461
36521
  /** Types of unreleased features are left out of the published contract until enabled. */
36462
36522
  enabled?: boolean;
36523
+ /**
36524
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36525
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36526
+ */
36527
+ resource?: undefined;
36463
36528
  fields: {
36464
36529
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36465
36530
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36532,6 +36597,11 @@ declare const EVENT_TYPE_INFO: {
36532
36597
  permission: PermissionAction;
36533
36598
  /** Types of unreleased features are left out of the published contract until enabled. */
36534
36599
  enabled?: boolean;
36600
+ /**
36601
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36602
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36603
+ */
36604
+ resource?: undefined;
36535
36605
  fields: {
36536
36606
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36537
36607
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36598,6 +36668,11 @@ declare const EVENT_TYPE_INFO: {
36598
36668
  permission: PermissionAction;
36599
36669
  /** Types of unreleased features are left out of the published contract until enabled. */
36600
36670
  enabled?: boolean;
36671
+ /**
36672
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36673
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36674
+ */
36675
+ resource?: undefined;
36601
36676
  fields: {
36602
36677
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36603
36678
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36667,6 +36742,11 @@ declare const EVENT_TYPE_INFO: {
36667
36742
  permission: PermissionAction;
36668
36743
  /** Types of unreleased features are left out of the published contract until enabled. */
36669
36744
  enabled?: boolean;
36745
+ /**
36746
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36747
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36748
+ */
36749
+ resource?: undefined;
36670
36750
  fields: {
36671
36751
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36672
36752
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36736,6 +36816,11 @@ declare const EVENT_TYPE_INFO: {
36736
36816
  permission: PermissionAction;
36737
36817
  /** Types of unreleased features are left out of the published contract until enabled. */
36738
36818
  enabled?: boolean;
36819
+ /**
36820
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36821
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36822
+ */
36823
+ resource?: undefined;
36739
36824
  fields: {
36740
36825
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36741
36826
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36802,6 +36887,11 @@ declare const EVENT_TYPE_INFO: {
36802
36887
  permission: PermissionAction;
36803
36888
  /** Types of unreleased features are left out of the published contract until enabled. */
36804
36889
  enabled?: boolean;
36890
+ /**
36891
+ * The kind of resource other than an asset that events of this type are about: each is numbered
36892
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
36893
+ */
36894
+ resource?: undefined;
36805
36895
  fields: {
36806
36896
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36807
36897
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -36922,6 +37012,11 @@ declare const EVENT_TYPE_INFO: {
36922
37012
  permission: PermissionAction;
36923
37013
  /** Types of unreleased features are left out of the published contract until enabled. */
36924
37014
  enabled?: boolean;
37015
+ /**
37016
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37017
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37018
+ */
37019
+ resource?: undefined;
36925
37020
  fields: {
36926
37021
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
36927
37022
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -37018,6 +37113,11 @@ declare const EVENT_TYPE_INFO: {
37018
37113
  permission: PermissionAction;
37019
37114
  /** Types of unreleased features are left out of the published contract until enabled. */
37020
37115
  enabled?: boolean;
37116
+ /**
37117
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37118
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37119
+ */
37120
+ resource?: undefined;
37021
37121
  fields: {
37022
37122
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
37023
37123
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -37105,6 +37205,11 @@ declare const EVENT_TYPE_INFO: {
37105
37205
  permission: PermissionAction;
37106
37206
  /** Types of unreleased features are left out of the published contract until enabled. */
37107
37207
  enabled?: boolean;
37208
+ /**
37209
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37210
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37211
+ */
37212
+ resource?: undefined;
37108
37213
  fields: {
37109
37214
  assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
37110
37215
  assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
@@ -37208,6 +37313,11 @@ declare const EVENT_TYPE_INFO: {
37208
37313
  permission: PermissionAction;
37209
37314
  /** Types of unreleased features are left out of the published contract until enabled. */
37210
37315
  enabled?: boolean;
37316
+ /**
37317
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37318
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37319
+ */
37320
+ resource?: undefined;
37211
37321
  fields: {
37212
37322
  limit: EventFieldDefinition<zod.ZodNumber>;
37213
37323
  used: EventFieldDefinition<zod.ZodNumber>;
@@ -37261,6 +37371,11 @@ declare const EVENT_TYPE_INFO: {
37261
37371
  permission: PermissionAction;
37262
37372
  /** Types of unreleased features are left out of the published contract until enabled. */
37263
37373
  enabled?: boolean;
37374
+ /**
37375
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37376
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37377
+ */
37378
+ resource?: undefined;
37264
37379
  fields: {
37265
37380
  reason: EventFieldDefinition<zod.ZodEnum<{
37266
37381
  "payment-failed": "payment-failed";
@@ -37321,6 +37436,11 @@ declare const EVENT_TYPE_INFO: {
37321
37436
  permission: PermissionAction;
37322
37437
  /** Types of unreleased features are left out of the published contract until enabled. */
37323
37438
  enabled?: boolean;
37439
+ /**
37440
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37441
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37442
+ */
37443
+ resource?: undefined;
37324
37444
  fields: {
37325
37445
  presetId: EventFieldDefinition<zod.ZodString>;
37326
37446
  presetName: EventFieldDefinition<zod.ZodString>;
@@ -37374,6 +37494,11 @@ declare const EVENT_TYPE_INFO: {
37374
37494
  permission: PermissionAction;
37375
37495
  /** Types of unreleased features are left out of the published contract until enabled. */
37376
37496
  enabled?: boolean;
37497
+ /**
37498
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37499
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37500
+ */
37501
+ resource?: "member" | undefined;
37377
37502
  fields: {
37378
37503
  memberUserId: EventFieldDefinition<zod.ZodString>;
37379
37504
  memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
@@ -37441,6 +37566,11 @@ declare const EVENT_TYPE_INFO: {
37441
37566
  permission: PermissionAction;
37442
37567
  /** Types of unreleased features are left out of the published contract until enabled. */
37443
37568
  enabled?: boolean;
37569
+ /**
37570
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37571
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37572
+ */
37573
+ resource?: "member" | undefined;
37444
37574
  fields: {
37445
37575
  memberUserId: EventFieldDefinition<zod.ZodString>;
37446
37576
  memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
@@ -37508,6 +37638,11 @@ declare const EVENT_TYPE_INFO: {
37508
37638
  permission: PermissionAction;
37509
37639
  /** Types of unreleased features are left out of the published contract until enabled. */
37510
37640
  enabled?: boolean;
37641
+ /**
37642
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37643
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37644
+ */
37645
+ resource?: "member" | undefined;
37511
37646
  fields: {
37512
37647
  memberUserId: EventFieldDefinition<zod.ZodString>;
37513
37648
  memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
@@ -37575,6 +37710,11 @@ declare const EVENT_TYPE_INFO: {
37575
37710
  permission: PermissionAction;
37576
37711
  /** Types of unreleased features are left out of the published contract until enabled. */
37577
37712
  enabled?: boolean;
37713
+ /**
37714
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37715
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37716
+ */
37717
+ resource?: "member" | undefined;
37578
37718
  fields: {
37579
37719
  memberUserId: EventFieldDefinition<zod.ZodString>;
37580
37720
  memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
@@ -37659,6 +37799,11 @@ declare const EVENT_TYPE_INFO: {
37659
37799
  permission: PermissionAction;
37660
37800
  /** Types of unreleased features are left out of the published contract until enabled. */
37661
37801
  enabled?: boolean;
37802
+ /**
37803
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37804
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37805
+ */
37806
+ resource?: undefined;
37662
37807
  fields: {
37663
37808
  inviteeEmail: EventFieldDefinition<zod.ZodString>;
37664
37809
  role: EventFieldDefinition<zod.ZodEnum<{
@@ -37723,6 +37868,11 @@ declare const EVENT_TYPE_INFO: {
37723
37868
  permission: PermissionAction;
37724
37869
  /** Types of unreleased features are left out of the published contract until enabled. */
37725
37870
  enabled?: boolean;
37871
+ /**
37872
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37873
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37874
+ */
37875
+ resource?: undefined;
37726
37876
  fields: {
37727
37877
  previousOrganisationId: EventFieldDefinition<zod.ZodString>;
37728
37878
  previousOrganisationName: EventFieldDefinition<zod.ZodString>;
@@ -37794,6 +37944,11 @@ declare const EVENT_TYPE_INFO: {
37794
37944
  permission: PermissionAction;
37795
37945
  /** Types of unreleased features are left out of the published contract until enabled. */
37796
37946
  enabled?: boolean;
37947
+ /**
37948
+ * The kind of resource other than an asset that events of this type are about: each is numbered
37949
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
37950
+ */
37951
+ resource?: "api-key" | undefined;
37797
37952
  fields: {
37798
37953
  keyId: EventFieldDefinition<zod.ZodString>;
37799
37954
  keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
@@ -37862,6 +38017,11 @@ declare const EVENT_TYPE_INFO: {
37862
38017
  permission: PermissionAction;
37863
38018
  /** Types of unreleased features are left out of the published contract until enabled. */
37864
38019
  enabled?: boolean;
38020
+ /**
38021
+ * The kind of resource other than an asset that events of this type are about: each is numbered
38022
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
38023
+ */
38024
+ resource?: "api-key" | undefined;
37865
38025
  fields: {
37866
38026
  keyId: EventFieldDefinition<zod.ZodString>;
37867
38027
  keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
@@ -37915,6 +38075,11 @@ declare const EVENT_TYPE_INFO: {
37915
38075
  permission: PermissionAction;
37916
38076
  /** Types of unreleased features are left out of the published contract until enabled. */
37917
38077
  enabled?: boolean;
38078
+ /**
38079
+ * The kind of resource other than an asset that events of this type are about: each is numbered
38080
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
38081
+ */
38082
+ resource?: "api-key" | undefined;
37918
38083
  fields: {
37919
38084
  keyId: EventFieldDefinition<zod.ZodString>;
37920
38085
  keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
@@ -37968,6 +38133,11 @@ declare const EVENT_TYPE_INFO: {
37968
38133
  permission: PermissionAction;
37969
38134
  /** Types of unreleased features are left out of the published contract until enabled. */
37970
38135
  enabled?: boolean;
38136
+ /**
38137
+ * The kind of resource other than an asset that events of this type are about: each is numbered
38138
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
38139
+ */
38140
+ resource?: undefined;
37971
38141
  fields: {
37972
38142
  connectorId: EventFieldDefinition<zod.ZodString>;
37973
38143
  connectorName: EventFieldDefinition<zod.ZodString>;
@@ -38037,6 +38207,11 @@ declare const EVENT_TYPE_INFO: {
38037
38207
  permission: PermissionAction;
38038
38208
  /** Types of unreleased features are left out of the published contract until enabled. */
38039
38209
  enabled?: boolean;
38210
+ /**
38211
+ * The kind of resource other than an asset that events of this type are about: each is numbered
38212
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
38213
+ */
38214
+ resource?: undefined;
38040
38215
  fields: {
38041
38216
  appealId: EventFieldDefinition<zod.ZodString>;
38042
38217
  subjectType: EventFieldDefinition<zod.ZodEnum<{
@@ -38100,6 +38275,11 @@ declare const EVENT_TYPE_INFO: {
38100
38275
  permission: PermissionAction;
38101
38276
  /** Types of unreleased features are left out of the published contract until enabled. */
38102
38277
  enabled?: boolean;
38278
+ /**
38279
+ * The kind of resource other than an asset that events of this type are about: each is numbered
38280
+ * in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
38281
+ */
38282
+ resource?: undefined;
38103
38283
  fields: {
38104
38284
  appealId: EventFieldDefinition<zod.ZodString>;
38105
38285
  subjectType: EventFieldDefinition<zod.ZodEnum<{
@@ -38180,6 +38360,9 @@ type EventFact<TType extends EventType = EventType> = TType extends EventType ?
38180
38360
  url?: string;
38181
38361
  } : never;
38182
38362
  type EventFacts<TType extends EventType = EventType> = EventFact<TType>[];
38363
+ /** The kinds of resource an event can be about. Each resource numbers its own events in sequence. */
38364
+ declare const EVENT_RESOURCE_KINDS: readonly ["asset", "member", "api-key"];
38365
+ type EventResourceKind = (typeof EVENT_RESOURCE_KINDS)[number];
38183
38366
  declare const ACTOR_SCHEMA: zod.ZodObject<{
38184
38367
  type: zod.ZodEnum<{
38185
38368
  "api-key": "api-key";
@@ -38190,6 +38373,16 @@ declare const ACTOR_SCHEMA: zod.ZodObject<{
38190
38373
  id: zod.ZodNullable<zod.ZodString>;
38191
38374
  }, zod.core.$strict>;
38192
38375
  type Actor = zod.infer<typeof ACTOR_SCHEMA>;
38376
+ declare const EVENT_RESOURCE_SCHEMA: zod.ZodObject<{
38377
+ kind: zod.ZodEnum<{
38378
+ "api-key": "api-key";
38379
+ asset: "asset";
38380
+ member: "member";
38381
+ }>;
38382
+ id: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
38383
+ sequence: zod.ZodNumber;
38384
+ }, zod.core.$strict>;
38385
+ type EventResource = zod.infer<typeof EVENT_RESOURCE_SCHEMA>;
38193
38386
  /** An event as `GET /events` lists it and webhooks deliver it. */
38194
38387
  declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
38195
38388
  id: zod.ZodString;
@@ -38244,8 +38437,15 @@ declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
38244
38437
  }>;
38245
38438
  title: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
38246
38439
  description: zod.ZodOptional<zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>>;
38247
- assetId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
38248
- assetSequence: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
38440
+ resource: zod.ZodNullable<zod.ZodObject<{
38441
+ kind: zod.ZodEnum<{
38442
+ "api-key": "api-key";
38443
+ asset: "asset";
38444
+ member: "member";
38445
+ }>;
38446
+ id: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
38447
+ sequence: zod.ZodNumber;
38448
+ }, zod.core.$strict>>;
38249
38449
  facts: zod.ZodArray<zod.ZodObject<{
38250
38450
  key: zod.ZodString;
38251
38451
  value: zod.ZodUnknown & zod.ZodType<{} | null, unknown, zod.core.$ZodTypeInternals<{} | null, unknown>>;
@@ -43219,4 +43419,4 @@ interface ClassifyTextOptions extends Omit<SubmitAssetCommonOptions, "name" | "i
43219
43419
  /** `folders.list` options. `sort` is `name` (the default) or `createdAt`, descending when prefixed with `-`. */
43220
43420
  type ListFoldersOptions = GetFoldersQuery;
43221
43421
  type FolderPage = GetFoldersResponse;
43222
- export { FolderPage as $, UploadPresetSubmitAssetOptions as $t, CdnAssetLocation as A, ProcessingFeatureStage as An, ResetPolicyOptions as At, CreateHashListOptions as B, AssetHlsRendition as Bn, StreamingFeatureOptions as Bt, AssetUploadStatus as C, UploadPreset as Cn, MultipartUploadPartOptions as Ct, BatchAssetsResponse as D, DetectedPerson as Dn, RequestAssetReviewOptions as Dt, BatchAssetsOptions as E, DetectedFace as En, RemoveAssetContentOptions as Et, CdnTransform as F, AssetSearchMatchField as Fn, SetPolicyAutomaticUpdatesOptions as Ft, DeleteAssetOptions as G, AssetSafetyHoldReason as Gn, UpdateLensOptions as Gt, CreateMultipartUploadPartOptions as H, AssetRendered as Hn, UpdateAssetOptions as Ht, ClassifyTextOptions as I, AssetSearchQuery as In, SignAssetUrlOptions as It, EnsureLensesOptions as J, MetadataItem as Jn, UpgradePolicyOptions as Jt, DeleteMetadataFieldOptions as K, ExtractedText as Kn, UpdatePolicyOptions as Kt, ClientRequestDefaults as L, AssetBinaryPayloadInput as Ln, SignUploadTokenOptions as Lt, CdnAssetUrlOptions as M, Policy as Mn, RetrieveAssetOptions as Mt, CdnResource as N, CursorPage as Nn, RetryAssetOptions as Nt, CalmLensAppClientOptions as O, ProcessingFeatureId as On, RequestAttempt as Ot, CdnServeOptions as P, LensType as Pn, SearchAssetsOptions as Pt, FolderIdOptions as Q, UploadPresetPage as Qt, ConnectionOptions as R, AssetInfo as Rn, SignedAssetUrl as Rt, AssetUpload as S, PublicProjectSettings as Sn, MultipartUploadOptions as St, AssignPolicyOptions as T, BoundingBox as Tn, PolicyPage as Tt, CreatePolicyOptions as U, AssetRenderedKind as Un, UpdateFolderOptions as Ut, CreateLensOptions as V, AssetPreview as Vn, SubmitAssetOptions as Vt, DecideAssetOptions as W, AssetSafetyHold as Wn, UpdateHashListOptions as Wt, EnsureUploadPresetsOptions as X, UploadPresetDefinition as Xt, EnsureMetadataFieldsOptions as Y, ProcessingOptions as Yn, UploadAssetPartOptions as Yt, EnsureUploadPresetsResponse as Z, UploadPresetIdOptions as Zt, AssetPage as _, EventType as _n, ListLensesOptions as _t, AssetChecksums as a, WebhookPayloadInput as an, IdempotencyOptions as at, AssetTimelinePage as b, MetadataFieldsResource as bn, MoveAssetOptions as bt, AssetClassificationFailureReason as c, AssetTimelineSegment as cn, LensIdOptions as ct, AssetContentOptions as d, TypedEvent as dn, ListAssetTimelineOptions as dt, UploadedAsset as en, GetAssetInfoOptions as et, AssetContentRemovalReason as f, EventCategory as fn, ListAssetsOptions as ft, AssetModerationStatus as g, EventSeverity as gn, ListHashListsOptions as gt, AssetModerationDecision as h, EventFacts as hn, ListHashListEntriesOptions as ht, AssetAvailability as i, WebhookHeadersInput as in, HashListPage as it, CdnAssetReference as j, ProcessingFeatures as jn, RetrieveAssetByExternalIdOptions as jt, CalmLensServerClientOptions as k, ProcessingFeatureResults as kn, RequestOptions as kt, AssetClassificationStatus as l, GetEventsResponse as ln, LensPage as lt, AssetModeration as m, EventFactValues 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, EventFact as pn, ListEventsOptions as pt, EnsureLensOptions as q, FileMetadata 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, PermissionGrant as vn, ListPoliciesOptions as vt, AssetVisibility as w, AgeRange as wn, PolicyIdOptions as wt, AssetType as x, ProjectSettingsResource as xn, MoveFolderOptions as xt, AssetSearchResult as y, Folder as yn, ListUploadPresetsOptions as yt, CreateFolderOptions as z, AssetHls as zn, SignedUploadToken as zt };
43422
+ 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 };
@@ -25,6 +25,20 @@ declare const MODERATION_CONTEXT_SCHEMA: zod.ZodObject<{
25
25
  }, zod.core.$strict>>;
26
26
  }, zod.core.$strict>;
27
27
  type ModerationContext = zod.infer<typeof MODERATION_CONTEXT_SCHEMA>;
28
+ /**
29
+ * What a policy does with content: deliver it (`allow`), deliver it but mark it so your app
30
+ * reduces its reach (`limit`), keep it off its plain URL so your app limits it to adults
31
+ * (`age-restrict`: `viewerClaims.ageConfirmed: true`), stop delivering it
32
+ * (`block`), or stop delivering it and delete its stored content (`purge`).
33
+ */
34
+ declare const POLICY_ACTION_SCHEMA: zod.ZodEnum<{
35
+ "age-restrict": "age-restrict";
36
+ allow: "allow";
37
+ block: "block";
38
+ limit: "limit";
39
+ purge: "purge";
40
+ }>;
41
+ type PolicyAction = zod.infer<typeof POLICY_ACTION_SCHEMA>;
28
42
  declare const HASH_LIST_SCHEMA: zod.ZodObject<{
29
43
  id: zod.ZodString;
30
44
  projectId: zod.ZodString;
@@ -1056,35 +1070,6 @@ declare const MODERATION_QUALIFIER_INFO: {
1056
1070
  };
1057
1071
  };
1058
1072
  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
1073
  declare const CLASSIFICATION_CATEGORY_SCHEMA: zod.ZodEnum<{
1089
1074
  "criminal-activity": "criminal-activity";
1090
1075
  harassment: "harassment";
@@ -6028,4 +6013,4 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
6028
6013
  }, zod.core.$strict>], "status">;
6029
6014
  }, zod.core.$strict>;
6030
6015
  type ClassificationCategories = zod.infer<typeof CATEGORIES_SCHEMA>;
6031
- export { ClassificationNotEvaluatedReason as a, ModerationQualifier as c, HashListEntry as d, ModerationContext as f, selectModerationContextItems as g, ModerationContextItem as h, ClassificationCategoryReport as i, PolicyAction as l, MODERATION_CONTEXT_USED_ITEMS as m, ClassificationCategories as n, ClassificationQualifierResults as o, MODERATION_CONTEXT_USED_CHARACTERS as p, ClassificationCategory as r, Likelihood as s, AssetModerationDecision as t, HashList as u };
6016
+ export { ClassificationQualifierResults as a, HashList as c, ModerationContext as d, MODERATION_CONTEXT_USED_CHARACTERS as f, selectModerationContextItems as h, ClassificationNotEvaluatedReason as i, HashListEntry as l, ModerationContextItem as m, ClassificationCategory as n, Likelihood as o, MODERATION_CONTEXT_USED_ITEMS as p, 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-C2blKgTu.js";
2
- import { t as CalmLensAppClient } from "./CalmLensAppClient-D-BD_Ny1.js";
1
+ import { F as CdnTransform, O as CalmLensAppClientOptions, g as AssetModerationStatus, i as AssetAvailability, nn as ViewerClaims } from "./CalmLensTypes-fAgF0_lq.js";
2
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-B4vzxEzg.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.
@@ -1,5 +1,6 @@
1
- const require_ModerationContextLimits = require("./ModerationContextLimits-DHu2jHpo.js");
2
- const require_UploadController = require("./UploadController-VM1qYwNq.js");
1
+ const require_CalmLensError = require("./CalmLensError-DPHJaVjX.js");
2
+ const require_ModerationContextLimits = require("./ModerationContextLimits-BVBkcgSU.js");
3
+ const require_UploadController = require("./UploadController-BElzwMic.js");
3
4
  const require_FileIcons = require("./FileIcons-Ob003MdS.js");
4
5
  // src/ui/viewers/ViewerAsset.ts
5
6
  /** Spreadsheet MIME types, as `content.format` reports them (compared lower-cased). */
@@ -388,7 +389,7 @@ const getPlayedPercent = (media) => Number.isFinite(media.duration) && media.dur
388
389
  const INSTANT_LOAD_MS = 50;
389
390
  /** True when an image element is already decoded in the browser's memory cache. */
390
391
  const isImageReady = (image) => Boolean(image?.complete && image.naturalWidth > 0);
391
- const codeOf = (error) => require_ModerationContextLimits.CalmLensError.isCalmLensError(error) ? error.code : void 0;
392
+ const codeOf = (error) => require_CalmLensError.CalmLensError.isCalmLensError(error) ? error.code : void 0;
392
393
  /**
393
394
  * One `CalmLensAsset`'s connection to the CDN. Each render calls `update` with the options and
394
395
  * renders `getAssetView` of what it returns; once mounted, `load` fetches `{src}/info` when `info`