calmlens 0.21.0 → 0.23.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 (85) hide show
  1. package/README.md +3 -2
  2. package/bin/calmlens.js +594 -88
  3. package/{esm/BrowserUpload-D-NnAN7g.d.ts → cjs/BrowserUpload-B2kmc3Y_.d.ts} +2 -2
  4. package/cjs/{BrowserUpload-CeSwiMo5.js → BrowserUpload-B5IJpb8m.js} +1 -1
  5. package/{esm/CalmLensAppClient-gG16T2py.d.ts → cjs/CalmLensAppClient-CMVh0y5w.d.ts} +1 -1
  6. package/cjs/{CalmLensAppClient-0UVCuNqW.js → CalmLensAppClient-DWClthAd.js} +3 -3
  7. package/cjs/{CalmLensOptionKeys-CYY6elxg.js → CalmLensOptionKeys-DsPvFCox.js} +139 -31
  8. package/cjs/{CalmLensServerClient-nfu6_YEW.js → CalmLensServerClient-B35N3hCo.js} +66 -9
  9. package/cjs/{CalmLensServerClient-BHx3x_nZ.d.ts → CalmLensServerClient-izj412cc.d.ts} +43 -7
  10. package/cjs/{CalmLensTypes-CUB0YYVz.d.ts → CalmLensTypes-SmOCgKI3.d.ts} +858 -70
  11. package/cjs/{Classification-Q5zGpR8l-CEWjnE39.d.ts → Classification-CxRedzgH-C9qlYW_J.d.ts} +35 -0
  12. package/cjs/{Core-Dc3cteU7.js → Core-5Mrihf2l.js} +10 -7
  13. package/{esm/Core-C82YmjjX.d.ts → cjs/Core-Dt_HUNvH.d.ts} +9 -5
  14. package/cjs/{ModerationContextLimits-BxOmeSqq.js → ModerationContextLimits-Bm8DxcJ_.js} +64 -12
  15. package/cjs/{ReactUpload-BK2O3dnK.js → ReactUpload-BJCjlqEb.js} +1 -1
  16. package/cjs/{ReactUpload-DiiXfKvj.d.ts → ReactUpload-Bd7Hea4w.d.ts} +1 -1
  17. package/{esm/TestTriggers-D0pYHbkr-D5T0VdSn.d.ts → cjs/TestTriggers-BJ4B-MXR-D1tGifPU.d.ts} +7 -5
  18. package/cjs/{TestTriggers-BTyXtX0Q-ATuFDhLX.js → TestTriggers-CiFcTHX3-BmfH4J3f.js} +35 -22
  19. package/cjs/{UploadController-DLyiLDTB.js → UploadController-DoD51qnV.js} +2 -2
  20. package/{esm/WebhookPayload-BLT2y_Jy.d.ts → cjs/WebhookPayload-C7KAk3iR.d.ts} +28 -1
  21. package/cjs/app.d.ts +6 -6
  22. package/cjs/app.js +2 -2
  23. package/cjs/elements.d.ts +4 -4
  24. package/cjs/elements.js +4 -4
  25. package/{esm/index-CKRgjV16.d.ts → cjs/index-BJf0y_Uk.d.ts} +3 -3
  26. package/cjs/index.d.ts +5 -5
  27. package/cjs/index.js +1 -1
  28. package/cjs/react-native.d.ts +2 -2
  29. package/cjs/react-native.js +4 -4
  30. package/cjs/react.d.ts +3 -3
  31. package/cjs/react.js +5 -5
  32. package/cjs/server.d.ts +6 -6
  33. package/cjs/server.js +2 -2
  34. package/cjs/test-inputs.d.ts +1 -1
  35. package/cjs/test-inputs.js +13 -13
  36. package/cjs/testing.d.ts +22 -9
  37. package/cjs/testing.js +399 -57
  38. package/cjs/{ui-CTBUxnVp.d.ts → ui-DNXPuzha.d.ts} +2 -2
  39. package/cjs/{ui-CZ8exACq.js → ui-DPLnhovP.js} +3 -3
  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/{cjs/BrowserUpload-D-NnAN7g.d.ts → esm/BrowserUpload-B2kmc3Y_.d.ts} +2 -2
  45. package/esm/{BrowserUpload-i9OhCzMJ.js → BrowserUpload-BheeMat4.js} +1 -1
  46. package/{cjs/CalmLensAppClient-gG16T2py.d.ts → esm/CalmLensAppClient-CMVh0y5w.d.ts} +1 -1
  47. package/esm/{CalmLensAppClient-CK4_Py0c.js → CalmLensAppClient-D51UlnU3.js} +3 -3
  48. package/esm/{CalmLensOptionKeys-BGZlIsT2.js → CalmLensOptionKeys-BmYuSh9G.js} +139 -31
  49. package/esm/{CalmLensServerClient-dAQUcDWb.js → CalmLensServerClient-CJCjmAXh.js} +66 -9
  50. package/esm/{CalmLensServerClient-BHx3x_nZ.d.ts → CalmLensServerClient-izj412cc.d.ts} +43 -7
  51. package/esm/{CalmLensTypes-CUB0YYVz.d.ts → CalmLensTypes-SmOCgKI3.d.ts} +858 -70
  52. package/esm/{Classification-Q5zGpR8l-CEWjnE39.d.ts → Classification-CxRedzgH-C9qlYW_J.d.ts} +35 -0
  53. package/esm/{Core-BxeIud_S.js → Core-5A2CZKsC.js} +10 -7
  54. package/{cjs/Core-C82YmjjX.d.ts → esm/Core-Dt_HUNvH.d.ts} +9 -5
  55. package/esm/{ModerationContextLimits-B6_RalCQ.js → ModerationContextLimits-DeqK3UAt.js} +64 -12
  56. package/esm/{ReactUpload-DiiXfKvj.d.ts → ReactUpload-Bd7Hea4w.d.ts} +1 -1
  57. package/esm/{ReactUpload-DxwVqfX1.js → ReactUpload-OkhH4jXm.js} +1 -1
  58. package/{cjs/TestTriggers-D0pYHbkr-D5T0VdSn.d.ts → esm/TestTriggers-BJ4B-MXR-D1tGifPU.d.ts} +7 -5
  59. package/esm/{TestTriggers-BTyXtX0Q-GRB9jQwo.js → TestTriggers-CiFcTHX3-BK2-sgOC.js} +35 -22
  60. package/esm/{UploadController-D9Z-h00Q.js → UploadController-BssSSy8Y.js} +2 -2
  61. package/{cjs/WebhookPayload-BLT2y_Jy.d.ts → esm/WebhookPayload-C7KAk3iR.d.ts} +28 -1
  62. package/esm/app.d.ts +6 -6
  63. package/esm/app.js +2 -2
  64. package/esm/elements.d.ts +4 -4
  65. package/esm/elements.js +4 -4
  66. package/{cjs/index-CKRgjV16.d.ts → esm/index-BJf0y_Uk.d.ts} +3 -3
  67. package/esm/index.d.ts +5 -5
  68. package/esm/index.js +1 -1
  69. package/esm/react-native.d.ts +2 -2
  70. package/esm/react-native.js +4 -4
  71. package/esm/react.d.ts +3 -3
  72. package/esm/react.js +5 -5
  73. package/esm/server.d.ts +6 -6
  74. package/esm/server.js +2 -2
  75. package/esm/test-inputs.d.ts +1 -1
  76. package/esm/test-inputs.js +1 -1
  77. package/esm/testing.d.ts +22 -9
  78. package/esm/testing.js +393 -51
  79. package/esm/{ui-Cr7s6JHm.js → ui-CZVG46z9.js} +3 -3
  80. package/esm/{ui-CTBUxnVp.d.ts → ui-DNXPuzha.d.ts} +2 -2
  81. package/esm/ui.d.ts +2 -2
  82. package/esm/ui.js +3 -3
  83. package/esm/vue.d.ts +5 -5
  84. package/esm/vue.js +4 -4
  85. package/package.json +2 -2
@@ -457,6 +457,13 @@ declare const MODERATION_QUALIFIER_INFO: {
457
457
  readonly description: "Qualifying content clearly attributed to an invented character, fictional story, game, illustration, generated image or reenacted scene.";
458
458
  readonly exclusions: "Unclear fictional context, and a real-world threat or actionable harmful request presented as fiction.";
459
459
  };
460
+ readonly "sexual-artistic": {
461
+ readonly category: "sexual";
462
+ readonly kind: "context";
463
+ readonly displayName: "Artwork";
464
+ readonly description: "Qualifying content that is a work of art presented as art, such as a painting, sculpture, print, poem or stage or film scene, or a critic, guide or lecturer talking about one, and not made to arouse.";
465
+ readonly exclusions: "Content meant to arouse, whatever it is called; pornography, erotic illustration, hentai and generated images; photographs labelled as art; adult content promotion.";
466
+ };
460
467
  readonly "sexual-support-prevention": {
461
468
  readonly category: "sexual";
462
469
  readonly kind: "context";
@@ -1194,6 +1201,7 @@ declare const STRICT_QUALIFIER_RESULTS_SCHEMA: zod.ZodRecord<zod.ZodEnum<{
1194
1201
  "self-harm-thoughts": "self-harm-thoughts";
1195
1202
  "sexual-activity": "sexual-activity";
1196
1203
  "sexual-adult-promotion": "sexual-adult-promotion";
1204
+ "sexual-artistic": "sexual-artistic";
1197
1205
  "sexual-assault-media": "sexual-assault-media";
1198
1206
  "sexual-discussion": "sexual-discussion";
1199
1207
  "sexual-documentary": "sexual-documentary";
@@ -1367,6 +1375,7 @@ declare const CLASSIFICATION_CATEGORY_REPORT_SCHEMA: zod.ZodDiscriminatedUnion<[
1367
1375
  "self-harm-thoughts": "self-harm-thoughts";
1368
1376
  "sexual-activity": "sexual-activity";
1369
1377
  "sexual-adult-promotion": "sexual-adult-promotion";
1378
+ "sexual-artistic": "sexual-artistic";
1370
1379
  "sexual-assault-media": "sexual-assault-media";
1371
1380
  "sexual-discussion": "sexual-discussion";
1372
1381
  "sexual-documentary": "sexual-documentary";
@@ -1543,6 +1552,7 @@ declare const CLASSIFICATION_CATEGORY_REPORT_SCHEMA: zod.ZodDiscriminatedUnion<[
1543
1552
  "self-harm-thoughts": "self-harm-thoughts";
1544
1553
  "sexual-activity": "sexual-activity";
1545
1554
  "sexual-adult-promotion": "sexual-adult-promotion";
1555
+ "sexual-artistic": "sexual-artistic";
1546
1556
  "sexual-assault-media": "sexual-assault-media";
1547
1557
  "sexual-discussion": "sexual-discussion";
1548
1558
  "sexual-documentary": "sexual-documentary";
@@ -1715,6 +1725,7 @@ declare const CLASSIFICATION_CATEGORY_REPORT_SCHEMA: zod.ZodDiscriminatedUnion<[
1715
1725
  "self-harm-thoughts": "self-harm-thoughts";
1716
1726
  "sexual-activity": "sexual-activity";
1717
1727
  "sexual-adult-promotion": "sexual-adult-promotion";
1728
+ "sexual-artistic": "sexual-artistic";
1718
1729
  "sexual-assault-media": "sexual-assault-media";
1719
1730
  "sexual-discussion": "sexual-discussion";
1720
1731
  "sexual-documentary": "sexual-documentary";
@@ -1894,6 +1905,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
1894
1905
  "self-harm-thoughts": "self-harm-thoughts";
1895
1906
  "sexual-activity": "sexual-activity";
1896
1907
  "sexual-adult-promotion": "sexual-adult-promotion";
1908
+ "sexual-artistic": "sexual-artistic";
1897
1909
  "sexual-assault-media": "sexual-assault-media";
1898
1910
  "sexual-discussion": "sexual-discussion";
1899
1911
  "sexual-documentary": "sexual-documentary";
@@ -2070,6 +2082,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
2070
2082
  "self-harm-thoughts": "self-harm-thoughts";
2071
2083
  "sexual-activity": "sexual-activity";
2072
2084
  "sexual-adult-promotion": "sexual-adult-promotion";
2085
+ "sexual-artistic": "sexual-artistic";
2073
2086
  "sexual-assault-media": "sexual-assault-media";
2074
2087
  "sexual-discussion": "sexual-discussion";
2075
2088
  "sexual-documentary": "sexual-documentary";
@@ -2242,6 +2255,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
2242
2255
  "self-harm-thoughts": "self-harm-thoughts";
2243
2256
  "sexual-activity": "sexual-activity";
2244
2257
  "sexual-adult-promotion": "sexual-adult-promotion";
2258
+ "sexual-artistic": "sexual-artistic";
2245
2259
  "sexual-assault-media": "sexual-assault-media";
2246
2260
  "sexual-discussion": "sexual-discussion";
2247
2261
  "sexual-documentary": "sexual-documentary";
@@ -2419,6 +2433,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
2419
2433
  "self-harm-thoughts": "self-harm-thoughts";
2420
2434
  "sexual-activity": "sexual-activity";
2421
2435
  "sexual-adult-promotion": "sexual-adult-promotion";
2436
+ "sexual-artistic": "sexual-artistic";
2422
2437
  "sexual-assault-media": "sexual-assault-media";
2423
2438
  "sexual-discussion": "sexual-discussion";
2424
2439
  "sexual-documentary": "sexual-documentary";
@@ -2595,6 +2610,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
2595
2610
  "self-harm-thoughts": "self-harm-thoughts";
2596
2611
  "sexual-activity": "sexual-activity";
2597
2612
  "sexual-adult-promotion": "sexual-adult-promotion";
2613
+ "sexual-artistic": "sexual-artistic";
2598
2614
  "sexual-assault-media": "sexual-assault-media";
2599
2615
  "sexual-discussion": "sexual-discussion";
2600
2616
  "sexual-documentary": "sexual-documentary";
@@ -2767,6 +2783,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
2767
2783
  "self-harm-thoughts": "self-harm-thoughts";
2768
2784
  "sexual-activity": "sexual-activity";
2769
2785
  "sexual-adult-promotion": "sexual-adult-promotion";
2786
+ "sexual-artistic": "sexual-artistic";
2770
2787
  "sexual-assault-media": "sexual-assault-media";
2771
2788
  "sexual-discussion": "sexual-discussion";
2772
2789
  "sexual-documentary": "sexual-documentary";
@@ -2944,6 +2961,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
2944
2961
  "self-harm-thoughts": "self-harm-thoughts";
2945
2962
  "sexual-activity": "sexual-activity";
2946
2963
  "sexual-adult-promotion": "sexual-adult-promotion";
2964
+ "sexual-artistic": "sexual-artistic";
2947
2965
  "sexual-assault-media": "sexual-assault-media";
2948
2966
  "sexual-discussion": "sexual-discussion";
2949
2967
  "sexual-documentary": "sexual-documentary";
@@ -3120,6 +3138,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
3120
3138
  "self-harm-thoughts": "self-harm-thoughts";
3121
3139
  "sexual-activity": "sexual-activity";
3122
3140
  "sexual-adult-promotion": "sexual-adult-promotion";
3141
+ "sexual-artistic": "sexual-artistic";
3123
3142
  "sexual-assault-media": "sexual-assault-media";
3124
3143
  "sexual-discussion": "sexual-discussion";
3125
3144
  "sexual-documentary": "sexual-documentary";
@@ -3292,6 +3311,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
3292
3311
  "self-harm-thoughts": "self-harm-thoughts";
3293
3312
  "sexual-activity": "sexual-activity";
3294
3313
  "sexual-adult-promotion": "sexual-adult-promotion";
3314
+ "sexual-artistic": "sexual-artistic";
3295
3315
  "sexual-assault-media": "sexual-assault-media";
3296
3316
  "sexual-discussion": "sexual-discussion";
3297
3317
  "sexual-documentary": "sexual-documentary";
@@ -3469,6 +3489,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
3469
3489
  "self-harm-thoughts": "self-harm-thoughts";
3470
3490
  "sexual-activity": "sexual-activity";
3471
3491
  "sexual-adult-promotion": "sexual-adult-promotion";
3492
+ "sexual-artistic": "sexual-artistic";
3472
3493
  "sexual-assault-media": "sexual-assault-media";
3473
3494
  "sexual-discussion": "sexual-discussion";
3474
3495
  "sexual-documentary": "sexual-documentary";
@@ -3645,6 +3666,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
3645
3666
  "self-harm-thoughts": "self-harm-thoughts";
3646
3667
  "sexual-activity": "sexual-activity";
3647
3668
  "sexual-adult-promotion": "sexual-adult-promotion";
3669
+ "sexual-artistic": "sexual-artistic";
3648
3670
  "sexual-assault-media": "sexual-assault-media";
3649
3671
  "sexual-discussion": "sexual-discussion";
3650
3672
  "sexual-documentary": "sexual-documentary";
@@ -3817,6 +3839,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
3817
3839
  "self-harm-thoughts": "self-harm-thoughts";
3818
3840
  "sexual-activity": "sexual-activity";
3819
3841
  "sexual-adult-promotion": "sexual-adult-promotion";
3842
+ "sexual-artistic": "sexual-artistic";
3820
3843
  "sexual-assault-media": "sexual-assault-media";
3821
3844
  "sexual-discussion": "sexual-discussion";
3822
3845
  "sexual-documentary": "sexual-documentary";
@@ -3994,6 +4017,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
3994
4017
  "self-harm-thoughts": "self-harm-thoughts";
3995
4018
  "sexual-activity": "sexual-activity";
3996
4019
  "sexual-adult-promotion": "sexual-adult-promotion";
4020
+ "sexual-artistic": "sexual-artistic";
3997
4021
  "sexual-assault-media": "sexual-assault-media";
3998
4022
  "sexual-discussion": "sexual-discussion";
3999
4023
  "sexual-documentary": "sexual-documentary";
@@ -4170,6 +4194,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
4170
4194
  "self-harm-thoughts": "self-harm-thoughts";
4171
4195
  "sexual-activity": "sexual-activity";
4172
4196
  "sexual-adult-promotion": "sexual-adult-promotion";
4197
+ "sexual-artistic": "sexual-artistic";
4173
4198
  "sexual-assault-media": "sexual-assault-media";
4174
4199
  "sexual-discussion": "sexual-discussion";
4175
4200
  "sexual-documentary": "sexual-documentary";
@@ -4342,6 +4367,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
4342
4367
  "self-harm-thoughts": "self-harm-thoughts";
4343
4368
  "sexual-activity": "sexual-activity";
4344
4369
  "sexual-adult-promotion": "sexual-adult-promotion";
4370
+ "sexual-artistic": "sexual-artistic";
4345
4371
  "sexual-assault-media": "sexual-assault-media";
4346
4372
  "sexual-discussion": "sexual-discussion";
4347
4373
  "sexual-documentary": "sexual-documentary";
@@ -4519,6 +4545,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
4519
4545
  "self-harm-thoughts": "self-harm-thoughts";
4520
4546
  "sexual-activity": "sexual-activity";
4521
4547
  "sexual-adult-promotion": "sexual-adult-promotion";
4548
+ "sexual-artistic": "sexual-artistic";
4522
4549
  "sexual-assault-media": "sexual-assault-media";
4523
4550
  "sexual-discussion": "sexual-discussion";
4524
4551
  "sexual-documentary": "sexual-documentary";
@@ -4695,6 +4722,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
4695
4722
  "self-harm-thoughts": "self-harm-thoughts";
4696
4723
  "sexual-activity": "sexual-activity";
4697
4724
  "sexual-adult-promotion": "sexual-adult-promotion";
4725
+ "sexual-artistic": "sexual-artistic";
4698
4726
  "sexual-assault-media": "sexual-assault-media";
4699
4727
  "sexual-discussion": "sexual-discussion";
4700
4728
  "sexual-documentary": "sexual-documentary";
@@ -4867,6 +4895,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
4867
4895
  "self-harm-thoughts": "self-harm-thoughts";
4868
4896
  "sexual-activity": "sexual-activity";
4869
4897
  "sexual-adult-promotion": "sexual-adult-promotion";
4898
+ "sexual-artistic": "sexual-artistic";
4870
4899
  "sexual-assault-media": "sexual-assault-media";
4871
4900
  "sexual-discussion": "sexual-discussion";
4872
4901
  "sexual-documentary": "sexual-documentary";
@@ -5044,6 +5073,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
5044
5073
  "self-harm-thoughts": "self-harm-thoughts";
5045
5074
  "sexual-activity": "sexual-activity";
5046
5075
  "sexual-adult-promotion": "sexual-adult-promotion";
5076
+ "sexual-artistic": "sexual-artistic";
5047
5077
  "sexual-assault-media": "sexual-assault-media";
5048
5078
  "sexual-discussion": "sexual-discussion";
5049
5079
  "sexual-documentary": "sexual-documentary";
@@ -5220,6 +5250,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
5220
5250
  "self-harm-thoughts": "self-harm-thoughts";
5221
5251
  "sexual-activity": "sexual-activity";
5222
5252
  "sexual-adult-promotion": "sexual-adult-promotion";
5253
+ "sexual-artistic": "sexual-artistic";
5223
5254
  "sexual-assault-media": "sexual-assault-media";
5224
5255
  "sexual-discussion": "sexual-discussion";
5225
5256
  "sexual-documentary": "sexual-documentary";
@@ -5392,6 +5423,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
5392
5423
  "self-harm-thoughts": "self-harm-thoughts";
5393
5424
  "sexual-activity": "sexual-activity";
5394
5425
  "sexual-adult-promotion": "sexual-adult-promotion";
5426
+ "sexual-artistic": "sexual-artistic";
5395
5427
  "sexual-assault-media": "sexual-assault-media";
5396
5428
  "sexual-discussion": "sexual-discussion";
5397
5429
  "sexual-documentary": "sexual-documentary";
@@ -5569,6 +5601,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
5569
5601
  "self-harm-thoughts": "self-harm-thoughts";
5570
5602
  "sexual-activity": "sexual-activity";
5571
5603
  "sexual-adult-promotion": "sexual-adult-promotion";
5604
+ "sexual-artistic": "sexual-artistic";
5572
5605
  "sexual-assault-media": "sexual-assault-media";
5573
5606
  "sexual-discussion": "sexual-discussion";
5574
5607
  "sexual-documentary": "sexual-documentary";
@@ -5745,6 +5778,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
5745
5778
  "self-harm-thoughts": "self-harm-thoughts";
5746
5779
  "sexual-activity": "sexual-activity";
5747
5780
  "sexual-adult-promotion": "sexual-adult-promotion";
5781
+ "sexual-artistic": "sexual-artistic";
5748
5782
  "sexual-assault-media": "sexual-assault-media";
5749
5783
  "sexual-discussion": "sexual-discussion";
5750
5784
  "sexual-documentary": "sexual-documentary";
@@ -5917,6 +5951,7 @@ declare const CATEGORIES_SCHEMA: zod.ZodObject<{
5917
5951
  "self-harm-thoughts": "self-harm-thoughts";
5918
5952
  "sexual-activity": "sexual-activity";
5919
5953
  "sexual-adult-promotion": "sexual-adult-promotion";
5954
+ "sexual-artistic": "sexual-artistic";
5920
5955
  "sexual-assault-media": "sexual-assault-media";
5921
5956
  "sexual-discussion": "sexual-discussion";
5922
5957
  "sexual-documentary": "sexual-documentary";
@@ -1,5 +1,5 @@
1
- const require_ModerationContextLimits = require("./ModerationContextLimits-BxOmeSqq.js");
2
- const require_UploadController = require("./UploadController-DLyiLDTB.js");
1
+ const require_ModerationContextLimits = require("./ModerationContextLimits-Bm8DxcJ_.js");
2
+ const require_UploadController = require("./UploadController-DoD51qnV.js");
3
3
  const require_FileIcons = require("./FileIcons-Ob003MdS.js");
4
4
  // src/ui/viewers/ViewerAsset.ts
5
5
  /** Spreadsheet MIME types, as `content.format` reports them (compared lower-cased). */
@@ -298,7 +298,7 @@ const getAssetView = (options, state) => {
298
298
  link: pageLink(info.externalUrl)
299
299
  } : icon();
300
300
  case "media": {
301
- const streams = options.video?.stream !== false && Boolean(content.hls);
301
+ const streams = options.video?.stream !== false && content.hls?.status === "ready";
302
302
  if (rendered?.kind === "audio") return {
303
303
  kind: "audio",
304
304
  src: url("rendered"),
@@ -616,13 +616,16 @@ const getUploadItemOutcome = (item) => {
616
616
  if (item.status === "blocked" || item.status === "purged") return "rejected";
617
617
  return item.status === "age-restricted" ? "restricted" : "accepted";
618
618
  };
619
- /** A byte count for people, such as `1.2 MB`. */
619
+ /**
620
+ * A byte count for people, such as `1.2 MiB`: binary units, labelled as such, the unit of every
621
+ * CalmLens size limit.
622
+ */
620
623
  const formatBytes = (bytes) => {
621
624
  if (bytes < 1024) return `${bytes} B`;
622
625
  const units = [
623
- "KB",
624
- "MB",
625
- "GB"
626
+ "KiB",
627
+ "MiB",
628
+ "GiB"
626
629
  ];
627
630
  let value = bytes / 1024;
628
631
  let unit = 0;
@@ -1,5 +1,5 @@
1
- import { D as CalmLensAppClientOptions, P as CdnTransform, Zt as ViewerClaims, h as AssetModerationStatus, r as AssetAvailability } from "./CalmLensTypes-CUB0YYVz.js";
2
- import { t as CalmLensAppClient } from "./CalmLensAppClient-gG16T2py.js";
1
+ import { D as CalmLensAppClientOptions, P as CdnTransform, h as AssetModerationStatus, r as AssetAvailability, sn as ViewerClaims } from "./CalmLensTypes-SmOCgKI3.js";
2
+ import { t as CalmLensAppClient } from "./CalmLensAppClient-CMVh0y5w.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.
@@ -91,8 +91,9 @@ interface ViewerAsset {
91
91
  rendered?: ViewerRendered | null;
92
92
  /** The still image the CDN serves at `/preview`, or `null` when the asset has none. */
93
93
  preview?: ViewerPreview | null;
94
- /** The adaptive (HLS) stream of video or audio, or `null` until one is prepared. */
94
+ /** The adaptive (HLS) stream of video or audio asked for: playable once `ready`. */
95
95
  hls?: {
96
+ status?: string;
96
97
  renditions?: readonly unknown[];
97
98
  } | null;
98
99
  /** The text extracted from the content, inline when it is small (API assets only). */
@@ -605,7 +606,7 @@ interface CalmLensMessages {
605
606
  chooseFiles: string;
606
607
  /** Replaces the picked file when the uploader takes one file. */
607
608
  chooseAnother: string;
608
- /** `{size}` is replaced with the largest accepted size, such as `20 MB`. */
609
+ /** `{size}` is replaced with the largest accepted size, such as `20 MiB`. */
609
610
  maxFileSizeHint: string;
610
611
  /** Under a file waiting for `start()`. Empty by default, so the row shows only its size. */
611
612
  selected: string;
@@ -650,7 +651,10 @@ declare const formatMessage: (message: string, values: Record<string, string>) =
650
651
  declare const getUploadItemMessage: (item: UploadItem, messages: CalmLensMessages) => string;
651
652
  /** How a finished file turned out, for styling: `accepted`, `restricted` or `rejected`. */
652
653
  declare const getUploadItemOutcome: (item: UploadItem) => "accepted" | "restricted" | "rejected" | undefined;
653
- /** A byte count for people, such as `1.2 MB`. */
654
+ /**
655
+ * A byte count for people, such as `1.2 MiB`: binary units, labelled as such, the unit of every
656
+ * CalmLens size limit.
657
+ */
654
658
  declare const formatBytes: (bytes: number) => string;
655
659
  /** Everything a file's row shows, worked out once for every framework's uploader. */
656
660
  interface UploadItemView {
@@ -36,12 +36,14 @@ const API_ERROR_CODES = {
36
36
  PERMISSION_DENIED: "auth/permission-denied",
37
37
  UPLOAD_TOO_LARGE: "upload/too-large",
38
38
  DOCUMENT_TOO_MANY_ITEMS: "document/too-many-items",
39
+ MEDIA_DURATION_LIMIT: "media/duration-limit",
39
40
  INVALID_IMAGE: "image/invalid",
40
41
  IMAGE_TOO_LARGE: "image/too-large",
41
42
  FREE_UPLOADS_EXHAUSTED: "usage/free-uploads-exhausted",
42
43
  UPLOADS_PAUSED: "usage/uploads-paused",
43
44
  UNSUPPORTED_UPLOAD_TYPE: "upload/unsupported-type",
44
45
  INVALID_UPLOAD_PAYLOAD: "upload-payload/invalid",
46
+ UPLOAD_OPTIONS_IN_QUERY: "upload/options-in-query",
45
47
  USE_UPLOAD_PART: "upload/use-upload-part",
46
48
  UPLOAD_NOT_OPEN: "upload/not-open",
47
49
  INVALID_UPLOAD_PART_NUMBER: "upload-part/invalid-number",
@@ -98,6 +100,14 @@ const API_ERROR_CODES = {
98
100
  UPLOAD_PRESET_DAILY_LIMIT_REACHED: "upload-preset/daily-limit-reached",
99
101
  UPLOAD_PRESET_ORIGIN_NOT_ALLOWED: "upload-preset/origin-not-allowed",
100
102
  UPLOAD_PRESET_FIELD_NOT_ALLOWED: "upload-preset/field-not-allowed",
103
+ UPLOAD_PRESET_REVISION_CONFLICT: "upload-preset/revision-conflict",
104
+ UPLOAD_PRESET_KEY_TAKEN: "upload-preset/key-taken",
105
+ UPLOAD_PRESET_DAILY_LIMIT_REQUIRED: "upload-preset/daily-limit-required",
106
+ UPLOAD_PRESET_INVALID_FOLDER: "upload-preset/invalid-folder",
107
+ UPLOAD_PRESET_INVALID_POLICY: "upload-preset/invalid-policy",
108
+ PROJECT_SETTINGS_REVISION_CONFLICT: "project-settings/revision-conflict",
109
+ SEARCH_ESTIMATE_CHANGED: "search/estimate-changed",
110
+ METADATA_FIELD_NOT_FOUND: "metadata-field/not-found",
101
111
  UPLOAD_TOKEN_INVALID: "upload-token/invalid",
102
112
  UPLOAD_TOKEN_EXPIRED: "upload-token/expired",
103
113
  UPLOAD_TOKEN_USED: "upload-token/used",
@@ -244,7 +254,7 @@ const API_ERROR_DEFINITIONS = {
244
254
  },
245
255
  "auth/permission-denied": {
246
256
  status: 403,
247
- message: "This API key lacks a permission the request needs (details.permission names it, such as assets:download for an asset's folder), or the resource belongs to another project."
257
+ message: "This API key lacks a permission the request needs (details.permission names it, such as assets:download for an asset's folder, and details.role the least role that includes it), or the resource belongs to another project."
248
258
  },
249
259
  "upload/too-large": {
250
260
  status: 413,
@@ -254,6 +264,10 @@ const API_ERROR_DEFINITIONS = {
254
264
  status: 422,
255
265
  message: "The document holds more embedded images or audio and video files than can be moderated: details.limit is `images` or `media` and details.maximum the most allowed. Split it into smaller documents."
256
266
  },
267
+ "media/duration-limit": {
268
+ status: 422,
269
+ message: "The audio or video is longer than allowed: details.durationSeconds is what its file states and details.limitSeconds the limit. Trim it or split it into separate uploads; before billing is set up, setting it up raises the limit."
270
+ },
257
271
  "image/invalid": {
258
272
  status: 422,
259
273
  message: "The image is corrupt or cannot be decoded. Upload a valid image file."
@@ -268,16 +282,20 @@ const API_ERROR_DEFINITIONS = {
268
282
  },
269
283
  "usage/uploads-paused": {
270
284
  status: 402,
271
- message: "Uploads to this project are paused by its organisation's usage limits. See details.reason; an owner can review them in Billing."
285
+ message: "This upload would pass its organisation's usage limits, so it was refused. See details.reason; an owner can review them in Billing."
272
286
  },
273
287
  "upload/unsupported-type": {
274
288
  status: 415,
275
- message: "The file type is not accepted. details.source is `calmlens` when CalmLens cannot store and process it (use a concrete MIME type such as image/png, application/pdf or text/plain) or `preset` when the upload preset doesn't allow it."
289
+ message: "The file type is not accepted. details.source is `calmlens` when CalmLens cannot store and process it (use a concrete MIME type such as image/png, application/pdf or text/plain) or `preset` when the upload preset doesn't allow it (details.contentType and details.allowedContentTypes say what was sent and what it accepts)."
276
290
  },
277
291
  "upload-payload/invalid": {
278
292
  status: 400,
279
293
  message: "Upload payload is invalid."
280
294
  },
295
+ "upload/options-in-query": {
296
+ status: 400,
297
+ message: "Send the asset's name and fields in the request body (the JSON body, or the options part of a multipart/form-data upload), not in the query string."
298
+ },
281
299
  "upload/use-upload-part": {
282
300
  status: 409,
283
301
  message: "Use uploadPart for multipart upload parts after the first part"
@@ -502,6 +520,38 @@ const API_ERROR_DEFINITIONS = {
502
520
  status: 400,
503
521
  message: "This field is set by the upload preset or the upload token and can't be changed by the upload."
504
522
  },
523
+ "upload-preset/revision-conflict": {
524
+ status: 409,
525
+ message: "The upload preset changed, or was created or deleted, since you read it. Retrieve it again and retry with its current revision."
526
+ },
527
+ "upload-preset/key-taken": {
528
+ status: 409,
529
+ message: "Another upload preset in this project has this key. Choose a different key."
530
+ },
531
+ "upload-preset/daily-limit-required": {
532
+ status: 400,
533
+ message: "A preset that anyone can upload to needs a daily upload limit."
534
+ },
535
+ "upload-preset/invalid-folder": {
536
+ status: 400,
537
+ message: "The folder isn't in this project. Choose a folder from this project and try again."
538
+ },
539
+ "upload-preset/invalid-policy": {
540
+ status: 400,
541
+ message: "The policy isn't one of this organisation's. Choose one of its policies and try again."
542
+ },
543
+ "project-settings/revision-conflict": {
544
+ status: 409,
545
+ message: "The project's settings or metadata fields changed since you read them. Retrieve them again and retry with the current revision."
546
+ },
547
+ "search/estimate-changed": {
548
+ status: 409,
549
+ message: "Turning on AI media search needs a searchIndexingBudgetUnits of at least the current indexing estimate, which details.indexingUnits gives."
550
+ },
551
+ "metadata-field/not-found": {
552
+ status: 404,
553
+ message: "The project has no metadata field with this ID."
554
+ },
505
555
  "upload-token/invalid": {
506
556
  status: 401,
507
557
  message: "The upload token is invalid. Sign a new one on your server with an active API key for this project."
@@ -628,6 +678,15 @@ var CalmLensError = class CalmLensError extends Error {
628
678
  static [Symbol.hasInstance](value) {
629
679
  return CalmLensError.isCalmLensError(value);
630
680
  }
681
+ /**
682
+ * Whether the SDK raised this error itself, with no HTTP response: before sending (an invalid
683
+ * argument or option, or content it checks first, such as `upload/unsupported-type`), or because
684
+ * no response arrived (a timeout, a cancellation or a connection failure). The code is the one
685
+ * the API would use; there is no `status` or `requestId`, so branch on `code`.
686
+ */
687
+ isLocal() {
688
+ return this.status === void 0;
689
+ }
631
690
  /** The resource does not exist or is not visible to this API key. */
632
691
  isNotFound() {
633
692
  return this.status === 404;
@@ -649,7 +708,7 @@ const invalidArgument = (message, details) => new CalmLensError(SDK_ERROR_CODES.
649
708
  const invalidConfig = (message) => new CalmLensError(SDK_ERROR_CODES.INVALID_CONFIG, { message });
650
709
  // src/client/CalmLensVersion.ts
651
710
  /** This SDK's version, from its package.json. */
652
- const SDK_VERSION = "0.21.0";
711
+ const SDK_VERSION = "0.23.0";
653
712
  const runtimeName = () => {
654
713
  const runtime = globalThis;
655
714
  if (isReactNativeRuntime()) return "react-native";
@@ -1182,14 +1241,6 @@ const TRANSFORM_OPTIONS_SCHEMA = {
1182
1241
  anim: { type: "boolean" },
1183
1242
  background: { type: "string" },
1184
1243
  blur: { type: "number" },
1185
- redact: {
1186
- type: "object",
1187
- properties: {
1188
- text: { type: "boolean" },
1189
- personalInformation: { type: "boolean" },
1190
- faces: { type: "boolean" }
1191
- }
1192
- },
1193
1244
  border: {
1194
1245
  type: "object",
1195
1246
  properties: {
@@ -1368,6 +1419,7 @@ const validateConnectionOptions = (options) => {
1368
1419
  const validateServerClientOptions = (options) => {
1369
1420
  if (!options || typeof options !== "object") throw invalidConfig("Client options are required");
1370
1421
  if (!options.apiKey || typeof options.apiKey !== "string") throw invalidConfig("API key is required");
1422
+ if (!/^[\x21-\x7e]+$/.test(options.apiKey)) throw invalidConfig("API key must be printable ASCII without spaces");
1371
1423
  if (!options.projectId) throw invalidConfig("Project ID is required");
1372
1424
  configPathSegment(options.projectId, "Project ID");
1373
1425
  validateConnectionOptions(options);
@@ -1,4 +1,4 @@
1
- const require_UploadController = require("./UploadController-DLyiLDTB.js");
1
+ const require_UploadController = require("./UploadController-DoD51qnV.js");
2
2
  let react = require("react");
3
3
  // src/ui/ReactUpload.ts
4
4
  /** Re-renders with a controller's snapshot. */
@@ -1,4 +1,4 @@
1
- import { I as UploadSnapshot, M as UploadController, N as UploadControllerOptions, P as UploadFile } from "./Core-C82YmjjX.js";
1
+ import { I as UploadSnapshot, M as UploadController, N as UploadControllerOptions, P as UploadFile } from "./Core-Dt_HUNvH.js";
2
2
  interface UseCalmLensUploadResult<F extends UploadFile = UploadFile> extends UploadSnapshot<F> {
3
3
  controller: UploadController<F>;
4
4
  addFiles: UploadController<F>["addFiles"];
@@ -1,4 +1,4 @@
1
- import { r as ClassificationCategory } from "./Classification-Q5zGpR8l-CEWjnE39.js";
1
+ import { r as ClassificationCategory } from "./Classification-CxRedzgH-C9qlYW_J.js";
2
2
  import * as z from "zod";
3
3
  interface RgbaImage {
4
4
  width: number;
@@ -184,6 +184,7 @@ declare const TEST_INPUT_SCHEMA: z.ZodObject<{
184
184
  "self-harm-thoughts": "self-harm-thoughts";
185
185
  "sexual-activity": "sexual-activity";
186
186
  "sexual-adult-promotion": "sexual-adult-promotion";
187
+ "sexual-artistic": "sexual-artistic";
187
188
  "sexual-assault-media": "sexual-assault-media";
188
189
  "sexual-discussion": "sexual-discussion";
189
190
  "sexual-documentary": "sexual-documentary";
@@ -287,9 +288,10 @@ declare const TEST_INPUT_PRESETS: {
287
288
  })[];
288
289
  };
289
290
  germany: {
290
- instances: {
291
- category: "hate";
292
- qualifiers: ("hate-nazi-symbols-public-display" | "hate-symbol")[];
291
+ instances: never[];
292
+ regionalActions: {
293
+ region: "DE";
294
+ action: "block";
293
295
  }[];
294
296
  };
295
297
  mixed: {
@@ -395,7 +397,7 @@ declare function detectTestImage(image: RgbaImage, key: string,
395
397
  category: "criminal-activity" | "harassment" | "hate" | "personal-information" | "profanity" | "self-harm" | "sexual" | "violence";
396
398
  score?: number | undefined;
397
399
  action?: "age-restrict" | "allow" | "block" | "limit" | undefined;
398
- qualifiers: ("criminal-activity-alcohol" | "criminal-activity-coded-incitement" | "criminal-activity-csam" | "criminal-activity-demonstration" | "criminal-activity-discussion" | "criminal-activity-documentary" | "criminal-activity-educational" | "criminal-activity-fictional" | "criminal-activity-fraud" | "criminal-activity-gambling" | "criminal-activity-graffiti" | "criminal-activity-grooming" | "criminal-activity-historical" | "criminal-activity-instructions" | "criminal-activity-preparation" | "criminal-activity-promotion" | "criminal-activity-request" | "criminal-activity-sexual-solicitation" | "criminal-activity-substances" | "criminal-activity-support-prevention" | "criminal-activity-tobacco" | "harassment-abuse" | "harassment-bullying" | "harassment-documentary" | "harassment-educational" | "harassment-encouragement" | "harassment-fictional" | "harassment-historical" | "harassment-mild" | "harassment-public-target" | "harassment-sexual" | "harassment-support-prevention" | "harassment-threat" | "hate-abuse" | "hate-adjudicated-nazi-crimes-denial" | "hate-counterspeech" | "hate-dehumanization" | "hate-documentary" | "hate-educational" | "hate-exclusion" | "hate-fictional" | "hate-historical" | "hate-hostility" | "hate-inferiority" | "hate-nazi-genocide-denial-or-approval" | "hate-nazi-genocide-public-peace" | "hate-nazi-insignia-public-display" | "hate-nazi-symbols-public-display" | "hate-personal" | "hate-slurs" | "hate-support-prevention" | "hate-symbol" | "hate-threat" | "personal-information-contact" | "personal-information-credentials" | "personal-information-documentary" | "personal-information-educational" | "personal-information-email" | "personal-information-fictional" | "personal-information-financial" | "personal-information-government-id" | "personal-information-historical" | "personal-information-identifiers" | "personal-information-location" | "personal-information-phone" | "personal-information-request" | "personal-information-self-disclosure" | "personal-information-support-prevention" | "personal-information-third-party" | "profanity-documentary" | "profanity-educational" | "profanity-fictional" | "profanity-historical" | "profanity-mild" | "profanity-obfuscated" | "profanity-slurs" | "profanity-strong" | "profanity-support-prevention" | "self-harm-act" | "self-harm-age-restricted" | "self-harm-documentary" | "self-harm-educational" | "self-harm-encouragement" | "self-harm-fictional" | "self-harm-historical" | "self-harm-methods" | "self-harm-preparation" | "self-harm-support-prevention" | "self-harm-thoughts" | "sexual-activity" | "sexual-adult-promotion" | "sexual-assault-media" | "sexual-discussion" | "sexual-documentary" | "sexual-educational" | "sexual-explicit-language" | "sexual-extreme" | "sexual-fictional" | "sexual-historical" | "sexual-incest" | "sexual-intimate-image-abuse" | "sexual-minors" | "sexual-non-consensual" | "sexual-non-erotic-nudity" | "sexual-nudity" | "sexual-paid" | "sexual-pornographic-media" | "sexual-revealing-clothing" | "sexual-solicitation" | "sexual-strangulation" | "sexual-suggestive" | "sexual-support-prevention" | "sexual-text" | "violence-attack" | "violence-coded-incitement" | "violence-decapitation-act" | "violence-discussion" | "violence-documentary" | "violence-educational" | "violence-encouragement" | "violence-extremism" | "violence-fantasy" | "violence-fictional" | "violence-gore" | "violence-graphic" | "violence-high-impact" | "violence-historical" | "violence-injury" | "violence-natural-death" | "violence-preparation" | "violence-sport" | "violence-support-prevention" | "violence-text" | "violence-threat" | "violence-violent-death" | "violence-weapon" | "violence-wish")[];
400
+ qualifiers: ("criminal-activity-alcohol" | "criminal-activity-coded-incitement" | "criminal-activity-csam" | "criminal-activity-demonstration" | "criminal-activity-discussion" | "criminal-activity-documentary" | "criminal-activity-educational" | "criminal-activity-fictional" | "criminal-activity-fraud" | "criminal-activity-gambling" | "criminal-activity-graffiti" | "criminal-activity-grooming" | "criminal-activity-historical" | "criminal-activity-instructions" | "criminal-activity-preparation" | "criminal-activity-promotion" | "criminal-activity-request" | "criminal-activity-sexual-solicitation" | "criminal-activity-substances" | "criminal-activity-support-prevention" | "criminal-activity-tobacco" | "harassment-abuse" | "harassment-bullying" | "harassment-documentary" | "harassment-educational" | "harassment-encouragement" | "harassment-fictional" | "harassment-historical" | "harassment-mild" | "harassment-public-target" | "harassment-sexual" | "harassment-support-prevention" | "harassment-threat" | "hate-abuse" | "hate-adjudicated-nazi-crimes-denial" | "hate-counterspeech" | "hate-dehumanization" | "hate-documentary" | "hate-educational" | "hate-exclusion" | "hate-fictional" | "hate-historical" | "hate-hostility" | "hate-inferiority" | "hate-nazi-genocide-denial-or-approval" | "hate-nazi-genocide-public-peace" | "hate-nazi-insignia-public-display" | "hate-nazi-symbols-public-display" | "hate-personal" | "hate-slurs" | "hate-support-prevention" | "hate-symbol" | "hate-threat" | "personal-information-contact" | "personal-information-credentials" | "personal-information-documentary" | "personal-information-educational" | "personal-information-email" | "personal-information-fictional" | "personal-information-financial" | "personal-information-government-id" | "personal-information-historical" | "personal-information-identifiers" | "personal-information-location" | "personal-information-phone" | "personal-information-request" | "personal-information-self-disclosure" | "personal-information-support-prevention" | "personal-information-third-party" | "profanity-documentary" | "profanity-educational" | "profanity-fictional" | "profanity-historical" | "profanity-mild" | "profanity-obfuscated" | "profanity-slurs" | "profanity-strong" | "profanity-support-prevention" | "self-harm-act" | "self-harm-age-restricted" | "self-harm-documentary" | "self-harm-educational" | "self-harm-encouragement" | "self-harm-fictional" | "self-harm-historical" | "self-harm-methods" | "self-harm-preparation" | "self-harm-support-prevention" | "self-harm-thoughts" | "sexual-activity" | "sexual-adult-promotion" | "sexual-artistic" | "sexual-assault-media" | "sexual-discussion" | "sexual-documentary" | "sexual-educational" | "sexual-explicit-language" | "sexual-extreme" | "sexual-fictional" | "sexual-historical" | "sexual-incest" | "sexual-intimate-image-abuse" | "sexual-minors" | "sexual-non-consensual" | "sexual-non-erotic-nudity" | "sexual-nudity" | "sexual-paid" | "sexual-pornographic-media" | "sexual-revealing-clothing" | "sexual-solicitation" | "sexual-strangulation" | "sexual-suggestive" | "sexual-support-prevention" | "sexual-text" | "violence-attack" | "violence-coded-incitement" | "violence-decapitation-act" | "violence-discussion" | "violence-documentary" | "violence-educational" | "violence-encouragement" | "violence-extremism" | "violence-fantasy" | "violence-fictional" | "violence-gore" | "violence-graphic" | "violence-high-impact" | "violence-historical" | "violence-injury" | "violence-natural-death" | "violence-preparation" | "violence-sport" | "violence-support-prevention" | "violence-text" | "violence-threat" | "violence-violent-death" | "violence-weapon" | "violence-wish")[];
399
401
  }[];
400
402
  detections?: {
401
403
  people?: "unavailable" | {