@uug-ai/models 1.7.125 → 1.7.126

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.
@@ -0,0 +1,169 @@
1
+ {
2
+ "description": "Where a redaction region is drawn, frame by frame. Every implementation of the rule (RedactionRegion.BoxAt in Go, the editor's preview in TypeScript) runs these cases. A region is drawn on a frame when it is enabled, the frame is within start..end, and the frame is in no hidden range (all bounds inclusive). Its box is the keyframe on that frame; between two keyframes a and b each coordinate is a + (b - a) * (frame - a.frame) / (b.frame - a.frame); before the first keyframe it is the first keyframe's box, after the last keyframe the last one's. Each expectation gives a frame and either the box as [x1, y1, x2, y2] or null when the region is not drawn. Compare coordinates with a tolerance of 1e-9.",
3
+ "cases": [
4
+ {
5
+ "name": "a single keyframe is a static region over its time range",
6
+ "region": {
7
+ "id": "static", "origin": "manual", "shape": "rectangle", "style": { "mode": "black" },
8
+ "enabled": true, "start": 10, "end": 20,
9
+ "keyframes": [{ "frame": 10, "x1": 0.5, "y1": 0.25, "x2": 0.75, "y2": 0.5 }]
10
+ },
11
+ "expect": [
12
+ { "frame": 9, "box": null },
13
+ { "frame": 10, "box": [0.5, 0.25, 0.75, 0.5] },
14
+ { "frame": 15, "box": [0.5, 0.25, 0.75, 0.5] },
15
+ { "frame": 20, "box": [0.5, 0.25, 0.75, 0.5] },
16
+ { "frame": 21, "box": null }
17
+ ]
18
+ },
19
+ {
20
+ "name": "each coordinate is interpolated linearly between two keyframes",
21
+ "region": {
22
+ "id": "moving", "origin": "detected", "shape": "rectangle", "style": { "mode": "blur" },
23
+ "enabled": true, "start": 0, "end": 8,
24
+ "keyframes": [
25
+ { "frame": 0, "x1": 0, "y1": 0, "x2": 0.25, "y2": 0.5 },
26
+ { "frame": 8, "x1": 0.5, "y1": 0.25, "x2": 1, "y2": 1 }
27
+ ]
28
+ },
29
+ "expect": [
30
+ { "frame": 0, "box": [0, 0, 0.25, 0.5] },
31
+ { "frame": 2, "box": [0.125, 0.0625, 0.4375, 0.625] },
32
+ { "frame": 4, "box": [0.25, 0.125, 0.625, 0.75] },
33
+ { "frame": 8, "box": [0.5, 0.25, 1, 1] }
34
+ ]
35
+ },
36
+ {
37
+ "name": "the segment between the two surrounding keyframes is used",
38
+ "region": {
39
+ "id": "three", "origin": "detected", "shape": "rectangle", "style": { "mode": "pixelate" },
40
+ "enabled": true, "start": 0, "end": 12,
41
+ "keyframes": [
42
+ { "frame": 0, "x1": 0, "y1": 0, "x2": 0.5, "y2": 0.5 },
43
+ { "frame": 4, "x1": 0.5, "y1": 0, "x2": 1, "y2": 0.5 },
44
+ { "frame": 12, "x1": 0.5, "y1": 0.5, "x2": 1, "y2": 1 }
45
+ ]
46
+ },
47
+ "expect": [
48
+ { "frame": 2, "box": [0.25, 0, 0.75, 0.5] },
49
+ { "frame": 4, "box": [0.5, 0, 1, 0.5] },
50
+ { "frame": 8, "box": [0.5, 0.25, 1, 0.75] },
51
+ { "frame": 12, "box": [0.5, 0.5, 1, 1] }
52
+ ]
53
+ },
54
+ {
55
+ "name": "the first box is held before the first keyframe and the last box after the last keyframe",
56
+ "region": {
57
+ "id": "held", "origin": "manual", "shape": "rectangle", "style": { "mode": "blur" },
58
+ "enabled": true, "start": 0, "end": 30,
59
+ "keyframes": [
60
+ { "frame": 10, "x1": 0, "y1": 0, "x2": 0.5, "y2": 0.5 },
61
+ { "frame": 20, "x1": 0.5, "y1": 0.5, "x2": 1, "y2": 1 }
62
+ ]
63
+ },
64
+ "expect": [
65
+ { "frame": 0, "box": [0, 0, 0.5, 0.5] },
66
+ { "frame": 9, "box": [0, 0, 0.5, 0.5] },
67
+ { "frame": 15, "box": [0.25, 0.25, 0.75, 0.75] },
68
+ { "frame": 21, "box": [0.5, 0.5, 1, 1] },
69
+ { "frame": 30, "box": [0.5, 0.5, 1, 1] }
70
+ ]
71
+ },
72
+ {
73
+ "name": "keyframes outside the time range still anchor the interpolation",
74
+ "region": {
75
+ "id": "trimmed", "origin": "detected", "shape": "rectangle", "style": { "mode": "blur" },
76
+ "enabled": true, "start": 4, "end": 6,
77
+ "keyframes": [
78
+ { "frame": 0, "x1": 0, "y1": 0, "x2": 0.25, "y2": 0.25 },
79
+ { "frame": 8, "x1": 0.5, "y1": 0.5, "x2": 0.75, "y2": 0.75 }
80
+ ]
81
+ },
82
+ "expect": [
83
+ { "frame": 0, "box": null },
84
+ { "frame": 3, "box": null },
85
+ { "frame": 4, "box": [0.25, 0.25, 0.5, 0.5] },
86
+ { "frame": 6, "box": [0.375, 0.375, 0.625, 0.625] },
87
+ { "frame": 7, "box": null },
88
+ { "frame": 8, "box": null }
89
+ ]
90
+ },
91
+ {
92
+ "name": "a hidden range hides both of its ends and nothing around them",
93
+ "region": {
94
+ "id": "hidden", "origin": "detected", "shape": "rectangle", "style": { "mode": "blur" },
95
+ "enabled": true, "start": 0, "end": 10,
96
+ "hidden": [{ "from": 3, "to": 5 }, { "from": 8, "to": 8 }],
97
+ "keyframes": [{ "frame": 0, "x1": 0.25, "y1": 0.25, "x2": 0.5, "y2": 0.5 }]
98
+ },
99
+ "expect": [
100
+ { "frame": 2, "box": [0.25, 0.25, 0.5, 0.5] },
101
+ { "frame": 3, "box": null },
102
+ { "frame": 4, "box": null },
103
+ { "frame": 5, "box": null },
104
+ { "frame": 6, "box": [0.25, 0.25, 0.5, 0.5] },
105
+ { "frame": 7, "box": [0.25, 0.25, 0.5, 0.5] },
106
+ { "frame": 8, "box": null },
107
+ { "frame": 9, "box": [0.25, 0.25, 0.5, 0.5] }
108
+ ]
109
+ },
110
+ {
111
+ "name": "a keyframe on a hidden frame is not drawn but still anchors the interpolation",
112
+ "region": {
113
+ "id": "hidden-keyframe", "origin": "detected", "shape": "rectangle", "style": { "mode": "blur" },
114
+ "enabled": true, "start": 0, "end": 8,
115
+ "hidden": [{ "from": 4, "to": 4 }],
116
+ "keyframes": [
117
+ { "frame": 0, "x1": 0, "y1": 0, "x2": 0.25, "y2": 0.25 },
118
+ { "frame": 4, "x1": 0.5, "y1": 0.5, "x2": 0.75, "y2": 0.75 },
119
+ { "frame": 8, "x1": 0, "y1": 0, "x2": 0.25, "y2": 0.25 }
120
+ ]
121
+ },
122
+ "expect": [
123
+ { "frame": 2, "box": [0.25, 0.25, 0.5, 0.5] },
124
+ { "frame": 4, "box": null },
125
+ { "frame": 6, "box": [0.25, 0.25, 0.5, 0.5] }
126
+ ]
127
+ },
128
+ {
129
+ "name": "overlapping and unsorted hidden ranges are all applied",
130
+ "region": {
131
+ "id": "overlap", "origin": "manual", "shape": "rectangle", "style": { "mode": "black" },
132
+ "enabled": true, "start": 0, "end": 10,
133
+ "hidden": [{ "from": 6, "to": 9 }, { "from": 0, "to": 4 }, { "from": 3, "to": 7 }],
134
+ "keyframes": [{ "frame": 0, "x1": 0, "y1": 0, "x2": 1, "y2": 1 }]
135
+ },
136
+ "expect": [
137
+ { "frame": 0, "box": null },
138
+ { "frame": 5, "box": null },
139
+ { "frame": 9, "box": null },
140
+ { "frame": 10, "box": [0, 0, 1, 1] }
141
+ ]
142
+ },
143
+ {
144
+ "name": "a disabled region is never drawn",
145
+ "region": {
146
+ "id": "disabled", "origin": "detected", "shape": "rectangle", "style": { "mode": "blur" },
147
+ "enabled": false, "start": 0, "end": 10,
148
+ "keyframes": [{ "frame": 0, "x1": 0.25, "y1": 0.25, "x2": 0.5, "y2": 0.5 }]
149
+ },
150
+ "expect": [
151
+ { "frame": 0, "box": null },
152
+ { "frame": 5, "box": null }
153
+ ]
154
+ },
155
+ {
156
+ "name": "a time range of one frame draws that frame only",
157
+ "region": {
158
+ "id": "one-frame", "origin": "manual", "shape": "rectangle", "style": { "mode": "blur" },
159
+ "enabled": true, "start": 7, "end": 7,
160
+ "keyframes": [{ "frame": 7, "x1": 0.25, "y1": 0.25, "x2": 0.5, "y2": 0.5 }]
161
+ },
162
+ "expect": [
163
+ { "frame": 6, "box": null },
164
+ { "frame": 7, "box": [0.25, 0.25, 0.5, 0.5] },
165
+ { "frame": 8, "box": null }
166
+ ]
167
+ }
168
+ ]
169
+ }
package/dist/types.d.ts CHANGED
@@ -2733,6 +2733,123 @@ export interface paths {
2733
2733
  patch?: never;
2734
2734
  trace?: never;
2735
2735
  };
2736
+ "/internal/casemediaredactiondrafterrorresponse": {
2737
+ parameters: {
2738
+ query?: never;
2739
+ header?: never;
2740
+ path?: never;
2741
+ cookie?: never;
2742
+ };
2743
+ /**
2744
+ * Get CaseMediaRedactionDraftErrorResponse (schema generation only)
2745
+ * @description Internal endpoint used only to ensure CaseMediaRedactionDraftErrorResponse schema is generated in OpenAPI spec
2746
+ */
2747
+ get: {
2748
+ parameters: {
2749
+ query?: never;
2750
+ header?: never;
2751
+ path?: never;
2752
+ cookie?: never;
2753
+ };
2754
+ requestBody?: never;
2755
+ responses: {
2756
+ /** @description OK */
2757
+ 200: {
2758
+ headers: {
2759
+ [name: string]: unknown;
2760
+ };
2761
+ content: {
2762
+ "application/json": components["schemas"]["api.CaseMediaRedactionDraftErrorResponse"];
2763
+ };
2764
+ };
2765
+ };
2766
+ };
2767
+ put?: never;
2768
+ post?: never;
2769
+ delete?: never;
2770
+ options?: never;
2771
+ head?: never;
2772
+ patch?: never;
2773
+ trace?: never;
2774
+ };
2775
+ "/internal/casemediaredactiondraftresponse": {
2776
+ parameters: {
2777
+ query?: never;
2778
+ header?: never;
2779
+ path?: never;
2780
+ cookie?: never;
2781
+ };
2782
+ /**
2783
+ * Get CaseMediaRedactionDraftResponse (schema generation only)
2784
+ * @description Internal endpoint used only to ensure CaseMediaRedactionDraftResponse schema is generated in OpenAPI spec
2785
+ */
2786
+ get: {
2787
+ parameters: {
2788
+ query?: never;
2789
+ header?: never;
2790
+ path?: never;
2791
+ cookie?: never;
2792
+ };
2793
+ requestBody?: never;
2794
+ responses: {
2795
+ /** @description OK */
2796
+ 200: {
2797
+ headers: {
2798
+ [name: string]: unknown;
2799
+ };
2800
+ content: {
2801
+ "application/json": components["schemas"]["api.CaseMediaRedactionDraftResponse"];
2802
+ };
2803
+ };
2804
+ };
2805
+ };
2806
+ put?: never;
2807
+ post?: never;
2808
+ delete?: never;
2809
+ options?: never;
2810
+ head?: never;
2811
+ patch?: never;
2812
+ trace?: never;
2813
+ };
2814
+ "/internal/casemediaredactiondraftsuccessresponse": {
2815
+ parameters: {
2816
+ query?: never;
2817
+ header?: never;
2818
+ path?: never;
2819
+ cookie?: never;
2820
+ };
2821
+ /**
2822
+ * Get CaseMediaRedactionDraftSuccessResponse (schema generation only)
2823
+ * @description Internal endpoint used only to ensure CaseMediaRedactionDraftSuccessResponse schema is generated in OpenAPI spec
2824
+ */
2825
+ get: {
2826
+ parameters: {
2827
+ query?: never;
2828
+ header?: never;
2829
+ path?: never;
2830
+ cookie?: never;
2831
+ };
2832
+ requestBody?: never;
2833
+ responses: {
2834
+ /** @description OK */
2835
+ 200: {
2836
+ headers: {
2837
+ [name: string]: unknown;
2838
+ };
2839
+ content: {
2840
+ "application/json": components["schemas"]["api.CaseMediaRedactionDraftSuccessResponse"];
2841
+ };
2842
+ };
2843
+ };
2844
+ };
2845
+ put?: never;
2846
+ post?: never;
2847
+ delete?: never;
2848
+ options?: never;
2849
+ head?: never;
2850
+ patch?: never;
2851
+ trace?: never;
2852
+ };
2736
2853
  "/internal/casemediastatusevent": {
2737
2854
  parameters: {
2738
2855
  query?: never;
@@ -14511,6 +14628,123 @@ export interface paths {
14511
14628
  patch?: never;
14512
14629
  trace?: never;
14513
14630
  };
14631
+ "/internal/getcasemediaredactionerrorresponse": {
14632
+ parameters: {
14633
+ query?: never;
14634
+ header?: never;
14635
+ path?: never;
14636
+ cookie?: never;
14637
+ };
14638
+ /**
14639
+ * Get GetCaseMediaRedactionErrorResponse (schema generation only)
14640
+ * @description Internal endpoint used only to ensure GetCaseMediaRedactionErrorResponse schema is generated in OpenAPI spec
14641
+ */
14642
+ get: {
14643
+ parameters: {
14644
+ query?: never;
14645
+ header?: never;
14646
+ path?: never;
14647
+ cookie?: never;
14648
+ };
14649
+ requestBody?: never;
14650
+ responses: {
14651
+ /** @description OK */
14652
+ 200: {
14653
+ headers: {
14654
+ [name: string]: unknown;
14655
+ };
14656
+ content: {
14657
+ "application/json": components["schemas"]["api.GetCaseMediaRedactionErrorResponse"];
14658
+ };
14659
+ };
14660
+ };
14661
+ };
14662
+ put?: never;
14663
+ post?: never;
14664
+ delete?: never;
14665
+ options?: never;
14666
+ head?: never;
14667
+ patch?: never;
14668
+ trace?: never;
14669
+ };
14670
+ "/internal/getcasemediaredactionresponse": {
14671
+ parameters: {
14672
+ query?: never;
14673
+ header?: never;
14674
+ path?: never;
14675
+ cookie?: never;
14676
+ };
14677
+ /**
14678
+ * Get GetCaseMediaRedactionResponse (schema generation only)
14679
+ * @description Internal endpoint used only to ensure GetCaseMediaRedactionResponse schema is generated in OpenAPI spec
14680
+ */
14681
+ get: {
14682
+ parameters: {
14683
+ query?: never;
14684
+ header?: never;
14685
+ path?: never;
14686
+ cookie?: never;
14687
+ };
14688
+ requestBody?: never;
14689
+ responses: {
14690
+ /** @description OK */
14691
+ 200: {
14692
+ headers: {
14693
+ [name: string]: unknown;
14694
+ };
14695
+ content: {
14696
+ "application/json": components["schemas"]["api.GetCaseMediaRedactionResponse"];
14697
+ };
14698
+ };
14699
+ };
14700
+ };
14701
+ put?: never;
14702
+ post?: never;
14703
+ delete?: never;
14704
+ options?: never;
14705
+ head?: never;
14706
+ patch?: never;
14707
+ trace?: never;
14708
+ };
14709
+ "/internal/getcasemediaredactionsuccessresponse": {
14710
+ parameters: {
14711
+ query?: never;
14712
+ header?: never;
14713
+ path?: never;
14714
+ cookie?: never;
14715
+ };
14716
+ /**
14717
+ * Get GetCaseMediaRedactionSuccessResponse (schema generation only)
14718
+ * @description Internal endpoint used only to ensure GetCaseMediaRedactionSuccessResponse schema is generated in OpenAPI spec
14719
+ */
14720
+ get: {
14721
+ parameters: {
14722
+ query?: never;
14723
+ header?: never;
14724
+ path?: never;
14725
+ cookie?: never;
14726
+ };
14727
+ requestBody?: never;
14728
+ responses: {
14729
+ /** @description OK */
14730
+ 200: {
14731
+ headers: {
14732
+ [name: string]: unknown;
14733
+ };
14734
+ content: {
14735
+ "application/json": components["schemas"]["api.GetCaseMediaRedactionSuccessResponse"];
14736
+ };
14737
+ };
14738
+ };
14739
+ };
14740
+ put?: never;
14741
+ post?: never;
14742
+ delete?: never;
14743
+ options?: never;
14744
+ head?: never;
14745
+ patch?: never;
14746
+ trace?: never;
14747
+ };
14514
14748
  "/internal/getcasesharebytokeninput": {
14515
14749
  parameters: {
14516
14750
  query?: never;
@@ -32217,6 +32451,84 @@ export interface paths {
32217
32451
  patch?: never;
32218
32452
  trace?: never;
32219
32453
  };
32454
+ "/internal/redactionbox": {
32455
+ parameters: {
32456
+ query?: never;
32457
+ header?: never;
32458
+ path?: never;
32459
+ cookie?: never;
32460
+ };
32461
+ /**
32462
+ * Get RedactionBox (schema generation only)
32463
+ * @description Internal endpoint used only to ensure RedactionBox schema is generated in OpenAPI spec
32464
+ */
32465
+ get: {
32466
+ parameters: {
32467
+ query?: never;
32468
+ header?: never;
32469
+ path?: never;
32470
+ cookie?: never;
32471
+ };
32472
+ requestBody?: never;
32473
+ responses: {
32474
+ /** @description OK */
32475
+ 200: {
32476
+ headers: {
32477
+ [name: string]: unknown;
32478
+ };
32479
+ content: {
32480
+ "application/json": components["schemas"]["models.RedactionBox"];
32481
+ };
32482
+ };
32483
+ };
32484
+ };
32485
+ put?: never;
32486
+ post?: never;
32487
+ delete?: never;
32488
+ options?: never;
32489
+ head?: never;
32490
+ patch?: never;
32491
+ trace?: never;
32492
+ };
32493
+ "/internal/redactiondraft": {
32494
+ parameters: {
32495
+ query?: never;
32496
+ header?: never;
32497
+ path?: never;
32498
+ cookie?: never;
32499
+ };
32500
+ /**
32501
+ * Get RedactionDraft (schema generation only)
32502
+ * @description Internal endpoint used only to ensure RedactionDraft schema is generated in OpenAPI spec
32503
+ */
32504
+ get: {
32505
+ parameters: {
32506
+ query?: never;
32507
+ header?: never;
32508
+ path?: never;
32509
+ cookie?: never;
32510
+ };
32511
+ requestBody?: never;
32512
+ responses: {
32513
+ /** @description OK */
32514
+ 200: {
32515
+ headers: {
32516
+ [name: string]: unknown;
32517
+ };
32518
+ content: {
32519
+ "application/json": components["schemas"]["models.RedactionDraft"];
32520
+ };
32521
+ };
32522
+ };
32523
+ };
32524
+ put?: never;
32525
+ post?: never;
32526
+ delete?: never;
32527
+ options?: never;
32528
+ head?: never;
32529
+ patch?: never;
32530
+ trace?: never;
32531
+ };
32220
32532
  "/internal/redactionevent": {
32221
32533
  parameters: {
32222
32534
  query?: never;
@@ -32256,6 +32568,318 @@ export interface paths {
32256
32568
  patch?: never;
32257
32569
  trace?: never;
32258
32570
  };
32571
+ "/internal/redactionframerange": {
32572
+ parameters: {
32573
+ query?: never;
32574
+ header?: never;
32575
+ path?: never;
32576
+ cookie?: never;
32577
+ };
32578
+ /**
32579
+ * Get RedactionFrameRange (schema generation only)
32580
+ * @description Internal endpoint used only to ensure RedactionFrameRange schema is generated in OpenAPI spec
32581
+ */
32582
+ get: {
32583
+ parameters: {
32584
+ query?: never;
32585
+ header?: never;
32586
+ path?: never;
32587
+ cookie?: never;
32588
+ };
32589
+ requestBody?: never;
32590
+ responses: {
32591
+ /** @description OK */
32592
+ 200: {
32593
+ headers: {
32594
+ [name: string]: unknown;
32595
+ };
32596
+ content: {
32597
+ "application/json": components["schemas"]["models.RedactionFrameRange"];
32598
+ };
32599
+ };
32600
+ };
32601
+ };
32602
+ put?: never;
32603
+ post?: never;
32604
+ delete?: never;
32605
+ options?: never;
32606
+ head?: never;
32607
+ patch?: never;
32608
+ trace?: never;
32609
+ };
32610
+ "/internal/redactionkeyframe": {
32611
+ parameters: {
32612
+ query?: never;
32613
+ header?: never;
32614
+ path?: never;
32615
+ cookie?: never;
32616
+ };
32617
+ /**
32618
+ * Get RedactionKeyframe (schema generation only)
32619
+ * @description Internal endpoint used only to ensure RedactionKeyframe schema is generated in OpenAPI spec
32620
+ */
32621
+ get: {
32622
+ parameters: {
32623
+ query?: never;
32624
+ header?: never;
32625
+ path?: never;
32626
+ cookie?: never;
32627
+ };
32628
+ requestBody?: never;
32629
+ responses: {
32630
+ /** @description OK */
32631
+ 200: {
32632
+ headers: {
32633
+ [name: string]: unknown;
32634
+ };
32635
+ content: {
32636
+ "application/json": components["schemas"]["models.RedactionKeyframe"];
32637
+ };
32638
+ };
32639
+ };
32640
+ };
32641
+ put?: never;
32642
+ post?: never;
32643
+ delete?: never;
32644
+ options?: never;
32645
+ head?: never;
32646
+ patch?: never;
32647
+ trace?: never;
32648
+ };
32649
+ "/internal/redactionlimits": {
32650
+ parameters: {
32651
+ query?: never;
32652
+ header?: never;
32653
+ path?: never;
32654
+ cookie?: never;
32655
+ };
32656
+ /**
32657
+ * Get RedactionLimits (schema generation only)
32658
+ * @description Internal endpoint used only to ensure RedactionLimits schema is generated in OpenAPI spec
32659
+ */
32660
+ get: {
32661
+ parameters: {
32662
+ query?: never;
32663
+ header?: never;
32664
+ path?: never;
32665
+ cookie?: never;
32666
+ };
32667
+ requestBody?: never;
32668
+ responses: {
32669
+ /** @description OK */
32670
+ 200: {
32671
+ headers: {
32672
+ [name: string]: unknown;
32673
+ };
32674
+ content: {
32675
+ "application/json": components["schemas"]["models.RedactionLimits"];
32676
+ };
32677
+ };
32678
+ };
32679
+ };
32680
+ put?: never;
32681
+ post?: never;
32682
+ delete?: never;
32683
+ options?: never;
32684
+ head?: never;
32685
+ patch?: never;
32686
+ trace?: never;
32687
+ };
32688
+ "/internal/redactionplan": {
32689
+ parameters: {
32690
+ query?: never;
32691
+ header?: never;
32692
+ path?: never;
32693
+ cookie?: never;
32694
+ };
32695
+ /**
32696
+ * Get RedactionPlan (schema generation only)
32697
+ * @description Internal endpoint used only to ensure RedactionPlan schema is generated in OpenAPI spec
32698
+ */
32699
+ get: {
32700
+ parameters: {
32701
+ query?: never;
32702
+ header?: never;
32703
+ path?: never;
32704
+ cookie?: never;
32705
+ };
32706
+ requestBody?: never;
32707
+ responses: {
32708
+ /** @description OK */
32709
+ 200: {
32710
+ headers: {
32711
+ [name: string]: unknown;
32712
+ };
32713
+ content: {
32714
+ "application/json": components["schemas"]["models.RedactionPlan"];
32715
+ };
32716
+ };
32717
+ };
32718
+ };
32719
+ put?: never;
32720
+ post?: never;
32721
+ delete?: never;
32722
+ options?: never;
32723
+ head?: never;
32724
+ patch?: never;
32725
+ trace?: never;
32726
+ };
32727
+ "/internal/redactionplanmedia": {
32728
+ parameters: {
32729
+ query?: never;
32730
+ header?: never;
32731
+ path?: never;
32732
+ cookie?: never;
32733
+ };
32734
+ /**
32735
+ * Get RedactionPlanMedia (schema generation only)
32736
+ * @description Internal endpoint used only to ensure RedactionPlanMedia schema is generated in OpenAPI spec
32737
+ */
32738
+ get: {
32739
+ parameters: {
32740
+ query?: never;
32741
+ header?: never;
32742
+ path?: never;
32743
+ cookie?: never;
32744
+ };
32745
+ requestBody?: never;
32746
+ responses: {
32747
+ /** @description OK */
32748
+ 200: {
32749
+ headers: {
32750
+ [name: string]: unknown;
32751
+ };
32752
+ content: {
32753
+ "application/json": components["schemas"]["models.RedactionPlanMedia"];
32754
+ };
32755
+ };
32756
+ };
32757
+ };
32758
+ put?: never;
32759
+ post?: never;
32760
+ delete?: never;
32761
+ options?: never;
32762
+ head?: never;
32763
+ patch?: never;
32764
+ trace?: never;
32765
+ };
32766
+ "/internal/redactionregion": {
32767
+ parameters: {
32768
+ query?: never;
32769
+ header?: never;
32770
+ path?: never;
32771
+ cookie?: never;
32772
+ };
32773
+ /**
32774
+ * Get RedactionRegion (schema generation only)
32775
+ * @description Internal endpoint used only to ensure RedactionRegion schema is generated in OpenAPI spec
32776
+ */
32777
+ get: {
32778
+ parameters: {
32779
+ query?: never;
32780
+ header?: never;
32781
+ path?: never;
32782
+ cookie?: never;
32783
+ };
32784
+ requestBody?: never;
32785
+ responses: {
32786
+ /** @description OK */
32787
+ 200: {
32788
+ headers: {
32789
+ [name: string]: unknown;
32790
+ };
32791
+ content: {
32792
+ "application/json": components["schemas"]["models.RedactionRegion"];
32793
+ };
32794
+ };
32795
+ };
32796
+ };
32797
+ put?: never;
32798
+ post?: never;
32799
+ delete?: never;
32800
+ options?: never;
32801
+ head?: never;
32802
+ patch?: never;
32803
+ trace?: never;
32804
+ };
32805
+ "/internal/redactionregionsource": {
32806
+ parameters: {
32807
+ query?: never;
32808
+ header?: never;
32809
+ path?: never;
32810
+ cookie?: never;
32811
+ };
32812
+ /**
32813
+ * Get RedactionRegionSource (schema generation only)
32814
+ * @description Internal endpoint used only to ensure RedactionRegionSource schema is generated in OpenAPI spec
32815
+ */
32816
+ get: {
32817
+ parameters: {
32818
+ query?: never;
32819
+ header?: never;
32820
+ path?: never;
32821
+ cookie?: never;
32822
+ };
32823
+ requestBody?: never;
32824
+ responses: {
32825
+ /** @description OK */
32826
+ 200: {
32827
+ headers: {
32828
+ [name: string]: unknown;
32829
+ };
32830
+ content: {
32831
+ "application/json": components["schemas"]["models.RedactionRegionSource"];
32832
+ };
32833
+ };
32834
+ };
32835
+ };
32836
+ put?: never;
32837
+ post?: never;
32838
+ delete?: never;
32839
+ options?: never;
32840
+ head?: never;
32841
+ patch?: never;
32842
+ trace?: never;
32843
+ };
32844
+ "/internal/redactionstyle": {
32845
+ parameters: {
32846
+ query?: never;
32847
+ header?: never;
32848
+ path?: never;
32849
+ cookie?: never;
32850
+ };
32851
+ /**
32852
+ * Get RedactionStyle (schema generation only)
32853
+ * @description Internal endpoint used only to ensure RedactionStyle schema is generated in OpenAPI spec
32854
+ */
32855
+ get: {
32856
+ parameters: {
32857
+ query?: never;
32858
+ header?: never;
32859
+ path?: never;
32860
+ cookie?: never;
32861
+ };
32862
+ requestBody?: never;
32863
+ responses: {
32864
+ /** @description OK */
32865
+ 200: {
32866
+ headers: {
32867
+ [name: string]: unknown;
32868
+ };
32869
+ content: {
32870
+ "application/json": components["schemas"]["models.RedactionStyle"];
32871
+ };
32872
+ };
32873
+ };
32874
+ };
32875
+ put?: never;
32876
+ post?: never;
32877
+ delete?: never;
32878
+ options?: never;
32879
+ head?: never;
32880
+ patch?: never;
32881
+ trace?: never;
32882
+ };
32259
32883
  "/internal/region": {
32260
32884
  parameters: {
32261
32885
  query?: never;
@@ -34050,6 +34674,45 @@ export interface paths {
34050
34674
  patch?: never;
34051
34675
  trace?: never;
34052
34676
  };
34677
+ "/internal/savecasemediaredactiondraftrequest": {
34678
+ parameters: {
34679
+ query?: never;
34680
+ header?: never;
34681
+ path?: never;
34682
+ cookie?: never;
34683
+ };
34684
+ /**
34685
+ * Get SaveCaseMediaRedactionDraftRequest (schema generation only)
34686
+ * @description Internal endpoint used only to ensure SaveCaseMediaRedactionDraftRequest schema is generated in OpenAPI spec
34687
+ */
34688
+ get: {
34689
+ parameters: {
34690
+ query?: never;
34691
+ header?: never;
34692
+ path?: never;
34693
+ cookie?: never;
34694
+ };
34695
+ requestBody?: never;
34696
+ responses: {
34697
+ /** @description OK */
34698
+ 200: {
34699
+ headers: {
34700
+ [name: string]: unknown;
34701
+ };
34702
+ content: {
34703
+ "application/json": components["schemas"]["api.SaveCaseMediaRedactionDraftRequest"];
34704
+ };
34705
+ };
34706
+ };
34707
+ };
34708
+ put?: never;
34709
+ post?: never;
34710
+ delete?: never;
34711
+ options?: never;
34712
+ head?: never;
34713
+ patch?: never;
34714
+ trace?: never;
34715
+ };
34053
34716
  "/internal/savefaceredactionerrorresponse": {
34054
34717
  parameters: {
34055
34718
  query?: never;
@@ -44894,6 +45557,34 @@ export interface components {
44894
45557
  function?: string;
44895
45558
  line?: number;
44896
45559
  };
45560
+ "api.CaseMediaRedactionDraftErrorResponse": {
45561
+ /** @description Application-specific error code */
45562
+ applicationStatusCode?: string;
45563
+ /** @description Entity-specific error code */
45564
+ entityStatusCode?: string;
45565
+ /** @description HTTP status code for the error */
45566
+ httpStatusCode?: number;
45567
+ /** @description Error message describing the issue */
45568
+ message?: string;
45569
+ /** @description Additional metadata about the error, such as timestamps and request IDs */
45570
+ metadata?: components["schemas"]["api.Metadata"];
45571
+ };
45572
+ "api.CaseMediaRedactionDraftResponse": {
45573
+ draft?: components["schemas"]["models.RedactionDraft"];
45574
+ };
45575
+ "api.CaseMediaRedactionDraftSuccessResponse": {
45576
+ /** @description Application-specific status code */
45577
+ applicationStatusCode?: string;
45578
+ data?: components["schemas"]["api.CaseMediaRedactionDraftResponse"];
45579
+ /** @description Entity-specific status code */
45580
+ entityStatusCode?: string;
45581
+ /** @description HTTP status code for the response */
45582
+ httpStatusCode?: number;
45583
+ /** @description Success message describing the operation */
45584
+ message?: string;
45585
+ /** @description Additional metadata about the response, such as timestamps and request IDs */
45586
+ metadata?: components["schemas"]["api.Metadata"];
45587
+ };
44897
45588
  "api.CaseMediaStatusEvent": {
44898
45589
  caseMediaId?: string;
44899
45590
  file?: string;
@@ -45142,10 +45833,17 @@ export interface components {
45142
45833
  };
45143
45834
  "api.CreateMediaEditRequest": {
45144
45835
  action?: components["schemas"]["models.CaseMediaAction"];
45836
+ /** @description DraftRevision is the revision of the source's redaction draft this
45837
+ * edit was made from. When it equals the stored revision, the draft is
45838
+ * removed once the edit is created. */
45839
+ draftRevision?: number;
45145
45840
  editType?: components["schemas"]["models.CaseMediaEditType"];
45146
45841
  params?: {
45147
45842
  [key: string]: unknown;
45148
45843
  };
45844
+ /** @description Redaction is the plan to render. Required when Action = "redaction"
45845
+ * and EditType = "regions", and not allowed otherwise. */
45846
+ redaction?: components["schemas"]["models.RedactionPlan"];
45149
45847
  /** @description SourceAttachmentId points at a video CaseAttachment by its id.
45150
45848
  * When both SourceCaseMediaId and SourceVideoFile are empty the API
45151
45849
  * materialises (idempotently — reuses the attachment's linked row
@@ -46583,6 +47281,34 @@ export interface components {
46583
47281
  /** @description Additional metadata about the response, such as timestamps and request IDs */
46584
47282
  metadata?: components["schemas"]["api.Metadata"];
46585
47283
  };
47284
+ "api.GetCaseMediaRedactionErrorResponse": {
47285
+ /** @description Application-specific error code */
47286
+ applicationStatusCode?: string;
47287
+ /** @description Entity-specific error code */
47288
+ entityStatusCode?: string;
47289
+ /** @description HTTP status code for the error */
47290
+ httpStatusCode?: number;
47291
+ /** @description Error message describing the issue */
47292
+ message?: string;
47293
+ /** @description Additional metadata about the error, such as timestamps and request IDs */
47294
+ metadata?: components["schemas"]["api.Metadata"];
47295
+ };
47296
+ "api.GetCaseMediaRedactionResponse": {
47297
+ redaction?: components["schemas"]["models.RedactionPlan"];
47298
+ };
47299
+ "api.GetCaseMediaRedactionSuccessResponse": {
47300
+ /** @description Application-specific status code */
47301
+ applicationStatusCode?: string;
47302
+ data?: components["schemas"]["api.GetCaseMediaRedactionResponse"];
47303
+ /** @description Entity-specific status code */
47304
+ entityStatusCode?: string;
47305
+ /** @description HTTP status code for the response */
47306
+ httpStatusCode?: number;
47307
+ /** @description Success message describing the operation */
47308
+ message?: string;
47309
+ /** @description Additional metadata about the response, such as timestamps and request IDs */
47310
+ metadata?: components["schemas"]["api.Metadata"];
47311
+ };
46586
47312
  "api.GetChannelErrorResponse": {
46587
47313
  /** @description Application-specific error code */
46588
47314
  applicationStatusCode?: string;
@@ -49504,6 +50230,12 @@ export interface components {
49504
50230
  /** @description Additional metadata about the response, such as timestamps and request IDs */
49505
50231
  metadata?: components["schemas"]["api.Metadata"];
49506
50232
  };
50233
+ "api.SaveCaseMediaRedactionDraftRequest": {
50234
+ /** @description BaseVersionId is the edit row the draft started from, if any. */
50235
+ baseVersionId?: string;
50236
+ plan?: components["schemas"]["models.RedactionPlan"];
50237
+ revision?: number;
50238
+ };
49507
50239
  "api.SaveFaceRedactionErrorResponse": {
49508
50240
  /** @description Application-specific error code */
49509
50241
  applicationStatusCode?: string;
@@ -49715,6 +50447,11 @@ export interface components {
49715
50447
  * on-demand PipelineEvent (event.Payload) or a hub-workflows stage dispatch
49716
50448
  * (run.User) — i.e. the request is self-contained and transport agnostic. */
49717
50449
  organisationId?: string;
50450
+ /** @description Plan is the redaction plan of a "regions" edit. When present the
50451
+ * worker renders from it alone and ignores Mode, AllFrameCoordinates,
50452
+ * FaceRedaction and detector output. A worker refuses a plan it does
50453
+ * not understand or that draws nothing; it never skips a region. */
50454
+ plan?: components["schemas"]["models.RedactionPlan"];
49718
50455
  projectId?: string;
49719
50456
  signedUrl?: string;
49720
50457
  taskId?: string;
@@ -50720,7 +51457,7 @@ export interface components {
50720
51457
  userId?: string;
50721
51458
  };
50722
51459
  /** @enum {string} */
50723
- "models.AccessTokenScope": "markers.read" | "markers.write" | "markers.all" | "dashboard.page" | "latest-events.page" | "live.page" | "videowalls.page" | "media.page" | "days.page" | "analytics.page" | "watchlist.page" | "cases.page" | "alerts.page" | "channels.page" | "workflows.page" | "io.page" | "devices.page" | "sites.page" | "floor-plans.page" | "groups.page" | "settings.page" | "organisation.page" | "members.page" | "roles.page" | "subscription.page" | "audit.page" | "pages.dashboard" | "pages.latestEvents" | "pages.liveView" | "pages.videowall" | "pages.recordings" | "pages.dayOverview" | "pages.analytics" | "pages.watchlist" | "pages.cases" | "pages.alerts" | "pages.channels" | "pages.workflows" | "pages.io" | "pages.devices" | "pages.sites" | "pages.floorPlans" | "pages.groups" | "pages.settings" | "pages.organisation" | "pages.members" | "pages.roles" | "pages.subscription" | "pages.audit" | "days.read" | "detections.read" | "detections.create" | "detections.delete" | "videowalls.read" | "videowalls.create" | "videowalls.update" | "videowalls.delete" | "videowalls.assign" | "analytics.read" | "alerts.read" | "alerts.create" | "alerts.update" | "alerts.delete" | "alerts.managePrivacy" | "billing.read" | "billing.manage" | "labels.read" | "labels.create" | "labels.update" | "labels.delete" | "groups.read" | "groups.create" | "groups.update" | "groups.delete" | "storage.read" | "storage.update" | "channels.read" | "channels.create" | "channels.update" | "channels.delete" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "cases.manageMembership" | "cases.moderateComments" | "io.read" | "io.create" | "io.delete" | "io.trigger" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "organisation.read" | "organisation.update" | "members.read" | "members.invite" | "members.update" | "members.remove" | "notifications.read" | "notifications.update" | "organisation.manageIdentityProvider" | "floor-plans.read" | "floor-plans.create" | "floor-plans.update" | "floor-plans.delete" | "project.update" | "project.manageCredentials" | "project.manageAccess" | "projects.create" | "projects.delete" | "projects.manageAccess" | "devices.read" | "devices.update" | "devices.delete" | "devices.configure" | "devices.managePermissions" | "devices.manageRecording" | "devices.readLogs" | "live.preview" | "live.stream" | "ptz.zoom" | "ptz.panTilt" | "ptz.control" | "ptz.presets" | "devices.manageSystemTags" | "teams.read" | "teams.create" | "teams.update" | "teams.delete" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "audit.read" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "media.forward" | "media.playHD" | "application" | "sites.read" | "sites.create" | "sites.update" | "sites.delete";
51460
+ "models.AccessTokenScope": "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "detections.read" | "detections.create" | "detections.delete" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "media.forward" | "media.playHD" | "notifications.read" | "notifications.update" | "billing.read" | "billing.manage" | "storage.read" | "storage.update" | "analytics.read" | "project.update" | "project.manageCredentials" | "project.manageAccess" | "projects.create" | "projects.delete" | "projects.manageAccess" | "application" | "devices.read" | "devices.update" | "devices.delete" | "devices.configure" | "devices.managePermissions" | "devices.manageRecording" | "devices.readLogs" | "live.preview" | "live.stream" | "ptz.zoom" | "ptz.panTilt" | "ptz.control" | "ptz.presets" | "devices.manageSystemTags" | "alerts.read" | "alerts.create" | "alerts.update" | "alerts.delete" | "alerts.managePrivacy" | "channels.read" | "channels.create" | "channels.update" | "channels.delete" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "cases.manageMembership" | "cases.moderateComments" | "videowalls.read" | "videowalls.create" | "videowalls.update" | "videowalls.delete" | "videowalls.assign" | "groups.read" | "groups.create" | "groups.update" | "groups.delete" | "teams.read" | "teams.create" | "teams.update" | "teams.delete" | "floor-plans.read" | "floor-plans.create" | "floor-plans.update" | "floor-plans.delete" | "days.read" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "audit.read" | "dashboard.page" | "latest-events.page" | "live.page" | "videowalls.page" | "media.page" | "days.page" | "analytics.page" | "watchlist.page" | "cases.page" | "alerts.page" | "channels.page" | "workflows.page" | "io.page" | "devices.page" | "sites.page" | "floor-plans.page" | "groups.page" | "settings.page" | "organisation.page" | "members.page" | "roles.page" | "subscription.page" | "audit.page" | "pages.dashboard" | "pages.latestEvents" | "pages.liveView" | "pages.videowall" | "pages.recordings" | "pages.dayOverview" | "pages.analytics" | "pages.watchlist" | "pages.cases" | "pages.alerts" | "pages.channels" | "pages.workflows" | "pages.io" | "pages.devices" | "pages.sites" | "pages.floorPlans" | "pages.groups" | "pages.settings" | "pages.organisation" | "pages.members" | "pages.roles" | "pages.subscription" | "pages.audit" | "sites.read" | "sites.create" | "sites.update" | "sites.delete" | "labels.read" | "labels.create" | "labels.update" | "labels.delete" | "organisation.manageIdentityProvider" | "io.read" | "io.create" | "io.delete" | "io.trigger" | "organisation.read" | "organisation.update" | "members.read" | "members.invite" | "members.update" | "members.remove" | "markers.read" | "markers.write" | "markers.all";
50724
51461
  "models.Account": {
50725
51462
  account?: components["schemas"]["models.AccountBody"];
50726
51463
  };
@@ -51175,8 +51912,8 @@ export interface components {
51175
51912
  cameraId?: string;
51176
51913
  createdAt?: number;
51177
51914
  createdBy?: string;
51178
- /** @description EditType is a sub-variant of Action (for example "face_blur",
51179
- * "face_pixelate", "face_mask" when Action = "redaction"). Display
51915
+ /** @description EditType is a sub-variant of Action (for example "regions",
51916
+ * "face_blur", "face_pixelate", "face_mask" when Action = "redaction"). Display
51180
51917
  * labels are derived from this in the UI. Canonical values are
51181
51918
  * declared as CaseMediaEditType constants below. */
51182
51919
  editType?: components["schemas"]["models.CaseMediaEditType"];
@@ -51236,6 +51973,17 @@ export interface components {
51236
51973
  * A nil value places it in the organisation's default project (see ResolveProjectId). */
51237
51974
  projectId?: string;
51238
51975
  provider?: string;
51976
+ /** @description Redaction is the plan a Role = "edit" row with Action = "redaction"
51977
+ * and EditType = "regions" was rendered from: its regions, each with
51978
+ * its own style, time range and positions. It replaces the tracks
51979
+ * and per-frame boxes the face_* edit types keep in Params. The case
51980
+ * media list leaves it out; it is fetched per edit. */
51981
+ redaction?: components["schemas"]["models.RedactionPlan"];
51982
+ /** @description RedactionDraft is a plan saved without rendering it. Only
51983
+ * meaningful on Role = "source" rows: one draft per source, shared
51984
+ * by everyone who may edit the case. The case media list leaves it
51985
+ * out. */
51986
+ redactionDraft?: components["schemas"]["models.RedactionDraft"];
51239
51987
  /** @description Role describes whether this entry represents a source attached to
51240
51988
  * the case or an edit derived from another entry. See CaseMediaRole. */
51241
51989
  role?: components["schemas"]["models.CaseMediaRole"];
@@ -51288,7 +52036,7 @@ export interface components {
51288
52036
  /** @enum {string} */
51289
52037
  "models.CaseMediaAction": "redaction" | "trim" | "composite";
51290
52038
  /** @enum {string} */
51291
- "models.CaseMediaEditType": "face_blur" | "face_pixelate" | "face_mask";
52039
+ "models.CaseMediaEditType": "face_blur" | "face_pixelate" | "face_mask" | "regions";
51292
52040
  /** @enum {string} */
51293
52041
  "models.CaseMediaRole": "source" | "edit";
51294
52042
  /** @enum {string} */
@@ -53720,7 +54468,7 @@ export interface components {
53720
54468
  videowall?: components["schemas"]["models.Videowall"];
53721
54469
  };
53722
54470
  /** @enum {string} */
53723
- "models.Permission": "markers.read" | "markers.write" | "markers.all" | "dashboard.page" | "latest-events.page" | "live.page" | "videowalls.page" | "media.page" | "days.page" | "analytics.page" | "watchlist.page" | "cases.page" | "alerts.page" | "channels.page" | "workflows.page" | "io.page" | "devices.page" | "sites.page" | "floor-plans.page" | "groups.page" | "settings.page" | "organisation.page" | "members.page" | "roles.page" | "subscription.page" | "audit.page" | "pages.dashboard" | "pages.latestEvents" | "pages.liveView" | "pages.videowall" | "pages.recordings" | "pages.dayOverview" | "pages.analytics" | "pages.watchlist" | "pages.cases" | "pages.alerts" | "pages.channels" | "pages.workflows" | "pages.io" | "pages.devices" | "pages.sites" | "pages.floorPlans" | "pages.groups" | "pages.settings" | "pages.organisation" | "pages.members" | "pages.roles" | "pages.subscription" | "pages.audit" | "days.read" | "detections.read" | "detections.create" | "detections.delete" | "videowalls.read" | "videowalls.create" | "videowalls.update" | "videowalls.delete" | "videowalls.assign" | "analytics.read" | "alerts.read" | "alerts.create" | "alerts.update" | "alerts.delete" | "alerts.managePrivacy" | "billing.read" | "billing.manage" | "labels.read" | "labels.create" | "labels.update" | "labels.delete" | "groups.read" | "groups.create" | "groups.update" | "groups.delete" | "storage.read" | "storage.update" | "channels.read" | "channels.create" | "channels.update" | "channels.delete" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "cases.manageMembership" | "cases.moderateComments" | "io.read" | "io.create" | "io.delete" | "io.trigger" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "organisation.read" | "organisation.update" | "members.read" | "members.invite" | "members.update" | "members.remove" | "notifications.read" | "notifications.update" | "organisation.manageIdentityProvider" | "floor-plans.read" | "floor-plans.create" | "floor-plans.update" | "floor-plans.delete" | "project.update" | "project.manageCredentials" | "project.manageAccess" | "projects.create" | "projects.delete" | "projects.manageAccess" | "devices.read" | "devices.update" | "devices.delete" | "devices.configure" | "devices.managePermissions" | "devices.manageRecording" | "devices.readLogs" | "live.preview" | "live.stream" | "ptz.zoom" | "ptz.panTilt" | "ptz.control" | "ptz.presets" | "devices.manageSystemTags" | "teams.read" | "teams.create" | "teams.update" | "teams.delete" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "audit.read" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "media.forward" | "media.playHD" | "application" | "sites.read" | "sites.create" | "sites.update" | "sites.delete";
54471
+ "models.Permission": "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "detections.read" | "detections.create" | "detections.delete" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "media.forward" | "media.playHD" | "notifications.read" | "notifications.update" | "billing.read" | "billing.manage" | "storage.read" | "storage.update" | "analytics.read" | "project.update" | "project.manageCredentials" | "project.manageAccess" | "projects.create" | "projects.delete" | "projects.manageAccess" | "application" | "devices.read" | "devices.update" | "devices.delete" | "devices.configure" | "devices.managePermissions" | "devices.manageRecording" | "devices.readLogs" | "live.preview" | "live.stream" | "ptz.zoom" | "ptz.panTilt" | "ptz.control" | "ptz.presets" | "devices.manageSystemTags" | "alerts.read" | "alerts.create" | "alerts.update" | "alerts.delete" | "alerts.managePrivacy" | "channels.read" | "channels.create" | "channels.update" | "channels.delete" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "cases.manageMembership" | "cases.moderateComments" | "videowalls.read" | "videowalls.create" | "videowalls.update" | "videowalls.delete" | "videowalls.assign" | "groups.read" | "groups.create" | "groups.update" | "groups.delete" | "teams.read" | "teams.create" | "teams.update" | "teams.delete" | "floor-plans.read" | "floor-plans.create" | "floor-plans.update" | "floor-plans.delete" | "days.read" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "audit.read" | "dashboard.page" | "latest-events.page" | "live.page" | "videowalls.page" | "media.page" | "days.page" | "analytics.page" | "watchlist.page" | "cases.page" | "alerts.page" | "channels.page" | "workflows.page" | "io.page" | "devices.page" | "sites.page" | "floor-plans.page" | "groups.page" | "settings.page" | "organisation.page" | "members.page" | "roles.page" | "subscription.page" | "audit.page" | "pages.dashboard" | "pages.latestEvents" | "pages.liveView" | "pages.videowall" | "pages.recordings" | "pages.dayOverview" | "pages.analytics" | "pages.watchlist" | "pages.cases" | "pages.alerts" | "pages.channels" | "pages.workflows" | "pages.io" | "pages.devices" | "pages.sites" | "pages.floorPlans" | "pages.groups" | "pages.settings" | "pages.organisation" | "pages.members" | "pages.roles" | "pages.subscription" | "pages.audit" | "sites.read" | "sites.create" | "sites.update" | "sites.delete" | "labels.read" | "labels.create" | "labels.update" | "labels.delete" | "organisation.manageIdentityProvider" | "io.read" | "io.create" | "io.delete" | "io.trigger" | "organisation.read" | "organisation.update" | "members.read" | "members.invite" | "members.update" | "members.remove" | "markers.read" | "markers.write" | "markers.all";
53724
54472
  "models.PermissionDefinition": {
53725
54473
  /** @description Implies lists the permissions that holding this one also grants, e.g. a
53726
54474
  * graded capability implies its lower grades. Implied permissions always
@@ -53981,8 +54729,100 @@ export interface components {
53981
54729
  sendto?: string;
53982
54730
  valid?: boolean;
53983
54731
  };
54732
+ "models.RedactionBox": {
54733
+ x1?: number;
54734
+ x2?: number;
54735
+ y1?: number;
54736
+ y2?: number;
54737
+ };
54738
+ "models.RedactionDraft": {
54739
+ /** @description BaseVersionId is the edit row the draft started from, if any. */
54740
+ baseVersionId?: string;
54741
+ plan?: components["schemas"]["models.RedactionPlan"];
54742
+ /** @description Revision increases by one on every save. A save sends the revision it
54743
+ * loaded and is refused when the stored one differs. */
54744
+ revision?: number;
54745
+ updatedAt?: number;
54746
+ updatedBy?: string;
54747
+ };
54748
+ "models.RedactionFrameRange": {
54749
+ from?: number;
54750
+ to?: number;
54751
+ };
54752
+ "models.RedactionKeyframe": {
54753
+ /** @description Edited marks a position the user set. Absent on positions copied from
54754
+ * a detector. */
54755
+ edited?: boolean;
54756
+ frame?: number;
54757
+ x1?: number;
54758
+ x2?: number;
54759
+ y1?: number;
54760
+ y2?: number;
54761
+ };
54762
+ "models.RedactionLimits": {
54763
+ /** @description MaxKeyframes is the most keyframes a plan may hold over all regions. */
54764
+ maxKeyframes?: number;
54765
+ /** @description MaxLabelLength is the most characters a region label may have. */
54766
+ maxLabelLength?: number;
54767
+ /** @description MaxRegions is the most regions a plan may hold. */
54768
+ maxRegions?: number;
54769
+ };
53984
54770
  /** @enum {string} */
53985
54771
  "models.RedactionMode": "blur" | "pixelate" | "black";
54772
+ "models.RedactionPlan": {
54773
+ /** @description Media records what the editor measured on the video the plan was made
54774
+ * against. It is informational and never used to place a box. */
54775
+ media?: components["schemas"]["models.RedactionPlanMedia"];
54776
+ /** @description Regions are the areas to hide. Order has no meaning. */
54777
+ regions?: components["schemas"]["models.RedactionRegion"][];
54778
+ /** @description SchemaVersion is RedactionPlanSchemaVersion. */
54779
+ schemaVersion?: number;
54780
+ };
54781
+ "models.RedactionPlanMedia": {
54782
+ fps?: number;
54783
+ frameCount?: number;
54784
+ height?: number;
54785
+ width?: number;
54786
+ };
54787
+ "models.RedactionRegion": {
54788
+ /** @description Class is what the detector called the region ("face", "person"). Empty
54789
+ * for a drawn region. */
54790
+ class?: string;
54791
+ /** @description Enabled is the editor's checkbox. A disabled region is stored and not
54792
+ * rendered. */
54793
+ enabled?: boolean;
54794
+ end?: number;
54795
+ /** @description Hidden lists frame ranges where the region is not drawn. */
54796
+ hidden?: components["schemas"]["models.RedactionFrameRange"][];
54797
+ /** @description Id is unique within the plan and set by the editor. */
54798
+ id?: string;
54799
+ /** @description Keyframes are the region's positions, sorted by frame, at least one.
54800
+ * A keyframe outside Start..End still anchors the interpolation. */
54801
+ keyframes?: components["schemas"]["models.RedactionKeyframe"][];
54802
+ /** @description Label is the name shown in the editor. */
54803
+ label?: string;
54804
+ origin?: components["schemas"]["models.RedactionRegionOrigin"];
54805
+ shape?: components["schemas"]["models.RedactionShape"];
54806
+ /** @description Source is the detection run and track the region was copied from. */
54807
+ source?: components["schemas"]["models.RedactionRegionSource"];
54808
+ /** @description Start and End are the first and last frame the region applies to,
54809
+ * inclusive. */
54810
+ start?: number;
54811
+ style?: components["schemas"]["models.RedactionStyle"];
54812
+ };
54813
+ /** @enum {string} */
54814
+ "models.RedactionRegionOrigin": "detected" | "manual";
54815
+ "models.RedactionRegionSource": {
54816
+ /** @description RunId is DetectionRun.Source.RunId. */
54817
+ runId?: string;
54818
+ /** @description TrackId is FaceRedactionTrack.Id within that run. */
54819
+ trackId?: string;
54820
+ };
54821
+ /** @enum {string} */
54822
+ "models.RedactionShape": "rectangle";
54823
+ "models.RedactionStyle": {
54824
+ mode?: components["schemas"]["models.RedactionMode"];
54825
+ };
53986
54826
  "models.Region": {
53987
54827
  device?: string;
53988
54828
  direction?: string;
@@ -56294,6 +57134,16 @@ export declare namespace models {
56294
57134
  type ProjectUpdate = components['schemas']['models.ProjectUpdate'];
56295
57135
  type Pushbullet = components['schemas']['models.Pushbullet'];
56296
57136
  type Pushover = components['schemas']['models.Pushover'];
57137
+ type RedactionBox = components['schemas']['models.RedactionBox'];
57138
+ type RedactionDraft = components['schemas']['models.RedactionDraft'];
57139
+ type RedactionFrameRange = components['schemas']['models.RedactionFrameRange'];
57140
+ type RedactionKeyframe = components['schemas']['models.RedactionKeyframe'];
57141
+ type RedactionLimits = components['schemas']['models.RedactionLimits'];
57142
+ type RedactionPlan = components['schemas']['models.RedactionPlan'];
57143
+ type RedactionPlanMedia = components['schemas']['models.RedactionPlanMedia'];
57144
+ type RedactionRegion = components['schemas']['models.RedactionRegion'];
57145
+ type RedactionRegionSource = components['schemas']['models.RedactionRegionSource'];
57146
+ type RedactionStyle = components['schemas']['models.RedactionStyle'];
56297
57147
  type Region = components['schemas']['models.Region'];
56298
57148
  type RegionPoint = components['schemas']['models.RegionPoint'];
56299
57149
  type RemoveAlertInput = components['schemas']['models.RemoveAlertInput'];
@@ -56462,6 +57312,9 @@ export declare namespace api {
56462
57312
  type AddTeamMembersSuccessResponse = components['schemas']['api.AddTeamMembersSuccessResponse'];
56463
57313
  type AdminRecentSubscription = components['schemas']['api.AdminRecentSubscription'];
56464
57314
  type CallerInfo = components['schemas']['api.CallerInfo'];
57315
+ type CaseMediaRedactionDraftErrorResponse = components['schemas']['api.CaseMediaRedactionDraftErrorResponse'];
57316
+ type CaseMediaRedactionDraftResponse = components['schemas']['api.CaseMediaRedactionDraftResponse'];
57317
+ type CaseMediaRedactionDraftSuccessResponse = components['schemas']['api.CaseMediaRedactionDraftSuccessResponse'];
56465
57318
  type CaseMediaStatusEvent = components['schemas']['api.CaseMediaStatusEvent'];
56466
57319
  type CountMediaErrorResponse = components['schemas']['api.CountMediaErrorResponse'];
56467
57320
  type CountMediaRequest = components['schemas']['api.CountMediaRequest'];
@@ -56635,6 +57488,9 @@ export declare namespace api {
56635
57488
  type GetCaseAttachmentErrorResponse = components['schemas']['api.GetCaseAttachmentErrorResponse'];
56636
57489
  type GetCaseAttachmentResponse = components['schemas']['api.GetCaseAttachmentResponse'];
56637
57490
  type GetCaseAttachmentSuccessResponse = components['schemas']['api.GetCaseAttachmentSuccessResponse'];
57491
+ type GetCaseMediaRedactionErrorResponse = components['schemas']['api.GetCaseMediaRedactionErrorResponse'];
57492
+ type GetCaseMediaRedactionResponse = components['schemas']['api.GetCaseMediaRedactionResponse'];
57493
+ type GetCaseMediaRedactionSuccessResponse = components['schemas']['api.GetCaseMediaRedactionSuccessResponse'];
56638
57494
  type GetChannelErrorResponse = components['schemas']['api.GetChannelErrorResponse'];
56639
57495
  type GetChannelResponse = components['schemas']['api.GetChannelResponse'];
56640
57496
  type GetChannelSuccessResponse = components['schemas']['api.GetChannelSuccessResponse'];
@@ -56953,6 +57809,7 @@ export declare namespace api {
56953
57809
  type RunWorkflowRequest = components['schemas']['api.RunWorkflowRequest'];
56954
57810
  type RunWorkflowResponse = components['schemas']['api.RunWorkflowResponse'];
56955
57811
  type RunWorkflowSuccessResponse = components['schemas']['api.RunWorkflowSuccessResponse'];
57812
+ type SaveCaseMediaRedactionDraftRequest = components['schemas']['api.SaveCaseMediaRedactionDraftRequest'];
56956
57813
  type SaveFaceRedactionErrorResponse = components['schemas']['api.SaveFaceRedactionErrorResponse'];
56957
57814
  type SaveFaceRedactionRequest = components['schemas']['api.SaveFaceRedactionRequest'];
56958
57815
  type SaveFaceRedactionResponse = components['schemas']['api.SaveFaceRedactionResponse'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uug-ai/models",
3
- "version": "1.7.125",
3
+ "version": "1.7.126",
4
4
  "description": "TypeScript type definitions for Go models",
5
5
  "main": "dist/types.js",
6
6
  "types": "dist/types.d.ts",
@@ -8,7 +8,7 @@
8
8
  "dist/**/*"
9
9
  ],
10
10
  "scripts": {
11
- "build": "tsc",
11
+ "build": "tsc && node copy-fixtures.js",
12
12
  "prepublishOnly": "npm run build"
13
13
  },
14
14
  "keywords": [