@camstack/types 1.2.275 → 1.2.277

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.
@@ -49,8 +49,8 @@ export type RecordingWeekday = z.infer<typeof RecordingWeekdaySchema>;
49
49
  */
50
50
  export declare const RecordingStorageModeSchema: z.ZodEnum<{
51
51
  events: "events";
52
- off: "off";
53
52
  continuous: "continuous";
53
+ off: "off";
54
54
  "on-device-decision": "on-device-decision";
55
55
  }>;
56
56
  export type RecordingStorageMode = z.infer<typeof RecordingStorageModeSchema>;
@@ -290,8 +290,8 @@ export declare const RecordingConfigSchema: z.ZodObject<{
290
290
  enabled: z.ZodBoolean;
291
291
  mode: z.ZodOptional<z.ZodEnum<{
292
292
  events: "events";
293
- off: "off";
294
293
  continuous: "continuous";
294
+ off: "off";
295
295
  "on-device-decision": "on-device-decision";
296
296
  }>>;
297
297
  profiles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -0,0 +1,187 @@
1
+ /**
2
+ * Ground truth for the tracking bench, as debug marks (D681, spec §4).
3
+ *
4
+ * Identity over live tracks, not boxes: "A and B are the same subject",
5
+ * "A and B are different subjects", and one track's purity ("mixed" — two
6
+ * subjects, optionally switching at an instant — or "not a subject"). Rows
7
+ * reference tracks as PROVENANCE: they outlive the tracks by design.
8
+ *
9
+ * Bounded by COUNT, never by age (the D405 argument): ground truth is most
10
+ * valuable when it is old enough for the pattern to have repeated.
11
+ */
12
+ import { z } from 'zod';
13
+ export declare const MAX_TRACK_RELATIONS = 20000;
14
+ export declare const MAX_TRACK_PURITIES = 5000;
15
+ export declare const TRACK_RELATIONS_DEFAULT_LIMIT = 500;
16
+ export declare const TrackRelationKindSchema: z.ZodEnum<{
17
+ "same-subject": "same-subject";
18
+ "different-subjects": "different-subjects";
19
+ }>;
20
+ export type TrackRelationKind = z.infer<typeof TrackRelationKindSchema>;
21
+ export declare const TrackSideSchema: z.ZodEnum<{
22
+ before: "before";
23
+ after: "after";
24
+ }>;
25
+ export type TrackSide = z.infer<typeof TrackSideSchema>;
26
+ export declare const TrackPurityValueSchema: z.ZodEnum<{
27
+ mixed: "mixed";
28
+ "not-a-subject": "not-a-subject";
29
+ }>;
30
+ export type TrackPurityValue = z.infer<typeof TrackPurityValueSchema>;
31
+ export declare const TrackRelationSchema: z.ZodObject<{
32
+ id: z.ZodString;
33
+ deviceId: z.ZodNumber;
34
+ leftTrackId: z.ZodString;
35
+ rightTrackId: z.ZodString;
36
+ leftSide: z.ZodNullable<z.ZodEnum<{
37
+ before: "before";
38
+ after: "after";
39
+ }>>;
40
+ rightSide: z.ZodNullable<z.ZodEnum<{
41
+ before: "before";
42
+ after: "after";
43
+ }>>;
44
+ relation: z.ZodEnum<{
45
+ "same-subject": "same-subject";
46
+ "different-subjects": "different-subjects";
47
+ }>;
48
+ presence: z.ZodNullable<z.ZodLiteral<"continuous">>;
49
+ leftStartedAt: z.ZodNullable<z.ZodNumber>;
50
+ rightStartedAt: z.ZodNullable<z.ZodNumber>;
51
+ createdAt: z.ZodNumber;
52
+ updatedAt: z.ZodNumber;
53
+ author: z.ZodNullable<z.ZodString>;
54
+ }, z.core.$strip>;
55
+ export type TrackRelation = z.infer<typeof TrackRelationSchema>;
56
+ export declare const TrackPuritySchema: z.ZodObject<{
57
+ id: z.ZodString;
58
+ deviceId: z.ZodNumber;
59
+ sourceTrackId: z.ZodString;
60
+ purity: z.ZodEnum<{
61
+ mixed: "mixed";
62
+ "not-a-subject": "not-a-subject";
63
+ }>;
64
+ switchAtMs: z.ZodNullable<z.ZodNumber>;
65
+ startedAt: z.ZodNullable<z.ZodNumber>;
66
+ createdAt: z.ZodNumber;
67
+ updatedAt: z.ZodNumber;
68
+ author: z.ZodNullable<z.ZodString>;
69
+ }, z.core.$strip>;
70
+ export type TrackPurity = z.infer<typeof TrackPuritySchema>;
71
+ export declare const SetTrackRelationInputSchema: z.ZodObject<{
72
+ deviceId: z.ZodNumber;
73
+ trackId: z.ZodString;
74
+ otherTrackId: z.ZodString;
75
+ relation: z.ZodEnum<{
76
+ "same-subject": "same-subject";
77
+ "different-subjects": "different-subjects";
78
+ }>;
79
+ presence: z.ZodOptional<z.ZodLiteral<"continuous">>;
80
+ trackSide: z.ZodOptional<z.ZodEnum<{
81
+ before: "before";
82
+ after: "after";
83
+ }>>;
84
+ otherSide: z.ZodOptional<z.ZodEnum<{
85
+ before: "before";
86
+ after: "after";
87
+ }>>;
88
+ }, z.core.$strip>;
89
+ export type SetTrackRelationInput = z.infer<typeof SetTrackRelationInputSchema>;
90
+ export declare const ClearTrackRelationInputSchema: z.ZodObject<{
91
+ deviceId: z.ZodNumber;
92
+ trackId: z.ZodString;
93
+ otherTrackId: z.ZodString;
94
+ }, z.core.$strip>;
95
+ export type ClearTrackRelationInput = z.infer<typeof ClearTrackRelationInputSchema>;
96
+ export declare const ClearTrackRelationResultSchema: z.ZodObject<{
97
+ cleared: z.ZodBoolean;
98
+ }, z.core.$strip>;
99
+ export type ClearTrackRelationResult = z.infer<typeof ClearTrackRelationResultSchema>;
100
+ export declare const SetTrackPurityInputSchema: z.ZodObject<{
101
+ deviceId: z.ZodNumber;
102
+ trackId: z.ZodString;
103
+ purity: z.ZodEnum<{
104
+ mixed: "mixed";
105
+ "not-a-subject": "not-a-subject";
106
+ pure: "pure";
107
+ }>;
108
+ switchAtMs: z.ZodOptional<z.ZodNumber>;
109
+ }, z.core.$strip>;
110
+ export type SetTrackPurityInput = z.infer<typeof SetTrackPurityInputSchema>;
111
+ /** `null` when `pure` cleared the row. */
112
+ export declare const SetTrackPurityResultSchema: z.ZodObject<{
113
+ purity: z.ZodNullable<z.ZodObject<{
114
+ id: z.ZodString;
115
+ deviceId: z.ZodNumber;
116
+ sourceTrackId: z.ZodString;
117
+ purity: z.ZodEnum<{
118
+ mixed: "mixed";
119
+ "not-a-subject": "not-a-subject";
120
+ }>;
121
+ switchAtMs: z.ZodNullable<z.ZodNumber>;
122
+ startedAt: z.ZodNullable<z.ZodNumber>;
123
+ createdAt: z.ZodNumber;
124
+ updatedAt: z.ZodNumber;
125
+ author: z.ZodNullable<z.ZodString>;
126
+ }, z.core.$strip>>;
127
+ }, z.core.$strip>;
128
+ export type SetTrackPurityResult = z.infer<typeof SetTrackPurityResultSchema>;
129
+ export declare const ListTrackRelationsInputSchema: z.ZodObject<{
130
+ deviceId: z.ZodNumber;
131
+ trackId: z.ZodOptional<z.ZodString>;
132
+ since: z.ZodOptional<z.ZodNumber>;
133
+ until: z.ZodOptional<z.ZodNumber>;
134
+ limit: z.ZodOptional<z.ZodNumber>;
135
+ }, z.core.$strip>;
136
+ export type ListTrackRelationsInput = z.infer<typeof ListTrackRelationsInputSchema>;
137
+ export declare const ListTrackRelationsResultSchema: z.ZodObject<{
138
+ relations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
139
+ id: z.ZodString;
140
+ deviceId: z.ZodNumber;
141
+ leftTrackId: z.ZodString;
142
+ rightTrackId: z.ZodString;
143
+ leftSide: z.ZodNullable<z.ZodEnum<{
144
+ before: "before";
145
+ after: "after";
146
+ }>>;
147
+ rightSide: z.ZodNullable<z.ZodEnum<{
148
+ before: "before";
149
+ after: "after";
150
+ }>>;
151
+ relation: z.ZodEnum<{
152
+ "same-subject": "same-subject";
153
+ "different-subjects": "different-subjects";
154
+ }>;
155
+ presence: z.ZodNullable<z.ZodLiteral<"continuous">>;
156
+ leftStartedAt: z.ZodNullable<z.ZodNumber>;
157
+ rightStartedAt: z.ZodNullable<z.ZodNumber>;
158
+ createdAt: z.ZodNumber;
159
+ updatedAt: z.ZodNumber;
160
+ author: z.ZodNullable<z.ZodString>;
161
+ }, z.core.$strip>>>;
162
+ purities: z.ZodReadonly<z.ZodArray<z.ZodObject<{
163
+ id: z.ZodString;
164
+ deviceId: z.ZodNumber;
165
+ sourceTrackId: z.ZodString;
166
+ purity: z.ZodEnum<{
167
+ mixed: "mixed";
168
+ "not-a-subject": "not-a-subject";
169
+ }>;
170
+ switchAtMs: z.ZodNullable<z.ZodNumber>;
171
+ startedAt: z.ZodNullable<z.ZodNumber>;
172
+ createdAt: z.ZodNumber;
173
+ updatedAt: z.ZodNumber;
174
+ author: z.ZodNullable<z.ZodString>;
175
+ }, z.core.$strip>>>;
176
+ truncated: z.ZodBoolean;
177
+ }, z.core.$strip>;
178
+ export type ListTrackRelationsResult = z.infer<typeof ListTrackRelationsResultSchema>;
179
+ export declare const TrackRelationRefusalSchema: z.ZodEnum<{
180
+ "unknown-track": "unknown-track";
181
+ "cross-device": "cross-device";
182
+ "self-relation": "self-relation";
183
+ contradiction: "contradiction";
184
+ "switch-outside-track": "switch-outside-track";
185
+ "switch-needs-mixed": "switch-needs-mixed";
186
+ }>;
187
+ export type TrackRelationRefusal = z.infer<typeof TrackRelationRefusalSchema>;
@@ -3487,6 +3487,10 @@ function createDeviceProxy(api, binding, opts) {
3487
3487
  deleteTracks: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "deleteTracks", "mutation", input),
3488
3488
  setTrackFlags: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "setTrackFlags", "mutation", input),
3489
3489
  listArchivedDebugNotes: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listArchivedDebugNotes", "query", input),
3490
+ setTrackRelation: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "setTrackRelation", "mutation", input),
3491
+ clearTrackRelation: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "clearTrackRelation", "mutation", input),
3492
+ setTrackPurity: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "setTrackPurity", "mutation", input),
3493
+ listTrackRelations: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listTrackRelations", "query", input),
3490
3494
  listBirthDecisions: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listBirthDecisions", "query", input),
3491
3495
  getEventStoreFootprint: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventStoreFootprint", "query", input),
3492
3496
  getEventMediaFootprintByKind: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventMediaFootprintByKind", "query", input),
@@ -3487,6 +3487,10 @@ function createDeviceProxy(api, binding, opts) {
3487
3487
  deleteTracks: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "deleteTracks", "mutation", input),
3488
3488
  setTrackFlags: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "setTrackFlags", "mutation", input),
3489
3489
  listArchivedDebugNotes: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listArchivedDebugNotes", "query", input),
3490
+ setTrackRelation: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "setTrackRelation", "mutation", input),
3491
+ clearTrackRelation: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "clearTrackRelation", "mutation", input),
3492
+ setTrackPurity: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "setTrackPurity", "mutation", input),
3493
+ listTrackRelations: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listTrackRelations", "query", input),
3490
3494
  listBirthDecisions: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listBirthDecisions", "query", input),
3491
3495
  getEventStoreFootprint: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventStoreFootprint", "query", input),
3492
3496
  getEventMediaFootprintByKind: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventMediaFootprintByKind", "query", input),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.275",
3
+ "version": "1.2.277",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",