@camstack/types 1.2.58 → 1.2.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/index.d.ts +5 -3
- package/dist/capabilities/pipeline-analytics.cap.d.ts +26 -10
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +12 -0
- package/dist/capabilities/recording.cap.d.ts +30 -12
- package/dist/capabilities/storage-migration.cap.d.ts +105 -0
- package/dist/capabilities/terminal-session.cap.d.ts +88 -5
- package/dist/generated/addon-api.d.ts +152 -18
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +5 -3
- package/dist/index.js +383 -48
- package/dist/index.mjs +369 -49
- package/dist/interfaces/relocate.d.ts +179 -8
- package/dist/{sleep-DcLy1h8o.js → sleep-BszXLEvP.js} +6 -3
- package/dist/{sleep-m2HUob6m.mjs → sleep-BxjBLp3L.mjs} +6 -3
- package/package.json +1 -1
|
@@ -2,12 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
/**
|
|
3
3
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
4
4
|
*
|
|
5
|
-
* One shape shared by the recorder
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* row on the owning addon's surface.
|
|
5
|
+
* One shape shared by the recorder and pipeline-analytics internal movers.
|
|
6
|
+
* The public admin surface is `storage-migration`; child jobs remain in RAM
|
|
7
|
+
* because copy-if-absent, verify, delete and index/row repoint are resumable.
|
|
8
|
+
* Each completed/failed run also lands one durable ops-log row on its owning
|
|
9
|
+
* addon surface.
|
|
11
10
|
*/
|
|
12
11
|
export declare const RelocateJobStateSchema: z.ZodEnum<{
|
|
13
12
|
done: "done";
|
|
@@ -36,19 +35,191 @@ export declare const RelocateJobSchema: z.ZodObject<{
|
|
|
36
35
|
error: z.ZodNullable<z.ZodString>;
|
|
37
36
|
}, z.core.$strip>;
|
|
38
37
|
export type RelocateJob = z.infer<typeof RelocateJobSchema>;
|
|
38
|
+
/** Profile-derived footage selection used only by the migration coordinator:
|
|
39
|
+
* `recordings` owns high+mid; `recordingsLow` owns low. */
|
|
40
|
+
export declare const RelocateFootageClassSchema: z.ZodEnum<{
|
|
41
|
+
recordings: "recordings";
|
|
42
|
+
recordingsLow: "recordingsLow";
|
|
43
|
+
}>;
|
|
44
|
+
export type RelocateFootageClass = z.infer<typeof RelocateFootageClassSchema>;
|
|
39
45
|
export declare const RelocateFootageInputSchema: z.ZodObject<{
|
|
40
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
41
46
|
fromLocationId: z.ZodString;
|
|
42
47
|
toLocationId: z.ZodString;
|
|
43
48
|
entities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
44
49
|
segments: "segments";
|
|
45
50
|
}>>>;
|
|
51
|
+
footageClass: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
recordings: "recordings";
|
|
53
|
+
recordingsLow: "recordingsLow";
|
|
54
|
+
}>>;
|
|
46
55
|
throttleMbps: z.ZodOptional<z.ZodNumber>;
|
|
47
56
|
}, z.core.$strip>;
|
|
48
57
|
export type RelocateFootageInput = z.infer<typeof RelocateFootageInputSchema>;
|
|
58
|
+
/** Internal, lease-scoped participant operation. It is intentionally separate
|
|
59
|
+
* from persistent recording settings: a migration never changes
|
|
60
|
+
* `RecordingConfig.enabled` or camera wrapper bindings. */
|
|
61
|
+
export declare const StorageMigrationLeaseInputSchema: z.ZodObject<{
|
|
62
|
+
leaseId: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type StorageMigrationLeaseInput = z.infer<typeof StorageMigrationLeaseInputSchema>;
|
|
65
|
+
export declare const StorageMigrationFootageMoveInputSchema: z.ZodObject<{
|
|
66
|
+
fromLocationId: z.ZodString;
|
|
67
|
+
toLocationId: z.ZodString;
|
|
68
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
69
|
+
segments: "segments";
|
|
70
|
+
}>>>;
|
|
71
|
+
footageClass: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
recordings: "recordings";
|
|
73
|
+
recordingsLow: "recordingsLow";
|
|
74
|
+
}>>;
|
|
75
|
+
throttleMbps: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
leaseId: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export type StorageMigrationFootageMoveInput = z.infer<typeof StorageMigrationFootageMoveInputSchema>;
|
|
49
79
|
export declare const RelocateMediaInputSchema: z.ZodObject<{
|
|
50
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
51
80
|
toLocationId: z.ZodString;
|
|
52
81
|
throttleMbps: z.ZodOptional<z.ZodNumber>;
|
|
53
82
|
}, z.core.$strip>;
|
|
54
83
|
export type RelocateMediaInput = z.infer<typeof RelocateMediaInputSchema>;
|
|
84
|
+
export declare const StorageMigrationMediaMoveInputSchema: z.ZodObject<{
|
|
85
|
+
toLocationId: z.ZodString;
|
|
86
|
+
throttleMbps: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
leaseId: z.ZodString;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type StorageMigrationMediaMoveInput = z.infer<typeof StorageMigrationMediaMoveInputSchema>;
|
|
90
|
+
/** The independently selectable logical storage classes. `recordings`
|
|
91
|
+
* encompasses the high and mid segment profiles; `recordingsLow` is low
|
|
92
|
+
* segments; `eventMedia` is post-analysis blobs. */
|
|
93
|
+
export declare const StorageMigrationClassSchema: z.ZodEnum<{
|
|
94
|
+
recordings: "recordings";
|
|
95
|
+
recordingsLow: "recordingsLow";
|
|
96
|
+
eventMedia: "eventMedia";
|
|
97
|
+
}>;
|
|
98
|
+
export type StorageMigrationClass = z.infer<typeof StorageMigrationClassSchema>;
|
|
99
|
+
/** A destination is always an existing, fully-qualified location id. The
|
|
100
|
+
* migration API intentionally never changes a source location's `basePath`:
|
|
101
|
+
* callers create a new `<type>:<slug>` location, then select it here. */
|
|
102
|
+
export declare const StorageMigrationDestinationsSchema: z.ZodObject<{
|
|
103
|
+
recordings: z.ZodOptional<z.ZodString>;
|
|
104
|
+
recordingsLow: z.ZodOptional<z.ZodString>;
|
|
105
|
+
eventMedia: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type StorageMigrationDestinations = z.infer<typeof StorageMigrationDestinationsSchema>;
|
|
108
|
+
/** Shared input for planning and starting an orchestrated storage migration. */
|
|
109
|
+
export declare const StorageMigrationInputSchema: z.ZodObject<{
|
|
110
|
+
destinations: z.ZodObject<{
|
|
111
|
+
recordings: z.ZodOptional<z.ZodString>;
|
|
112
|
+
recordingsLow: z.ZodOptional<z.ZodString>;
|
|
113
|
+
eventMedia: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
throttleMbps: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export type StorageMigrationInput = z.infer<typeof StorageMigrationInputSchema>;
|
|
118
|
+
/** The durable coordinator state machine. The only phase that changes default
|
|
119
|
+
* locations is `repointing`, after every selected mover has completed and been
|
|
120
|
+
* verified. */
|
|
121
|
+
export declare const StorageMigrationPhaseSchema: z.ZodEnum<{
|
|
122
|
+
done: "done";
|
|
123
|
+
failed: "failed";
|
|
124
|
+
cancelled: "cancelled";
|
|
125
|
+
moving: "moving";
|
|
126
|
+
verifying: "verifying";
|
|
127
|
+
planning: "planning";
|
|
128
|
+
pausing: "pausing";
|
|
129
|
+
repointing: "repointing";
|
|
130
|
+
refreshing: "refreshing";
|
|
131
|
+
resuming: "resuming";
|
|
132
|
+
}>;
|
|
133
|
+
export type StorageMigrationPhase = z.infer<typeof StorageMigrationPhaseSchema>;
|
|
134
|
+
export declare const StorageMigrationParticipantSchema: z.ZodEnum<{
|
|
135
|
+
pipeline: "pipeline";
|
|
136
|
+
recorder: "recorder";
|
|
137
|
+
analytics: "analytics";
|
|
138
|
+
}>;
|
|
139
|
+
export type StorageMigrationParticipant = z.infer<typeof StorageMigrationParticipantSchema>;
|
|
140
|
+
export declare const StorageMigrationMoveSchema: z.ZodObject<{
|
|
141
|
+
storageClass: z.ZodEnum<{
|
|
142
|
+
recordings: "recordings";
|
|
143
|
+
recordingsLow: "recordingsLow";
|
|
144
|
+
eventMedia: "eventMedia";
|
|
145
|
+
}>;
|
|
146
|
+
fromLocationId: z.ZodString;
|
|
147
|
+
toLocationId: z.ZodString;
|
|
148
|
+
moverJobId: z.ZodNullable<z.ZodString>;
|
|
149
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
150
|
+
done: "done";
|
|
151
|
+
failed: "failed";
|
|
152
|
+
running: "running";
|
|
153
|
+
cancelled: "cancelled";
|
|
154
|
+
}>>;
|
|
155
|
+
error: z.ZodNullable<z.ZodString>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export type StorageMigrationMove = z.infer<typeof StorageMigrationMoveSchema>;
|
|
158
|
+
export declare const StorageMigrationJobSchema: z.ZodObject<{
|
|
159
|
+
jobId: z.ZodString;
|
|
160
|
+
phase: z.ZodEnum<{
|
|
161
|
+
done: "done";
|
|
162
|
+
failed: "failed";
|
|
163
|
+
cancelled: "cancelled";
|
|
164
|
+
moving: "moving";
|
|
165
|
+
verifying: "verifying";
|
|
166
|
+
planning: "planning";
|
|
167
|
+
pausing: "pausing";
|
|
168
|
+
repointing: "repointing";
|
|
169
|
+
refreshing: "refreshing";
|
|
170
|
+
resuming: "resuming";
|
|
171
|
+
}>;
|
|
172
|
+
destinations: z.ZodObject<{
|
|
173
|
+
recordings: z.ZodOptional<z.ZodString>;
|
|
174
|
+
recordingsLow: z.ZodOptional<z.ZodString>;
|
|
175
|
+
eventMedia: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
throttleMbps: z.ZodNumber;
|
|
178
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
179
|
+
storageClass: z.ZodEnum<{
|
|
180
|
+
recordings: "recordings";
|
|
181
|
+
recordingsLow: "recordingsLow";
|
|
182
|
+
eventMedia: "eventMedia";
|
|
183
|
+
}>;
|
|
184
|
+
fromLocationId: z.ZodString;
|
|
185
|
+
toLocationId: z.ZodString;
|
|
186
|
+
moverJobId: z.ZodNullable<z.ZodString>;
|
|
187
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
188
|
+
done: "done";
|
|
189
|
+
failed: "failed";
|
|
190
|
+
running: "running";
|
|
191
|
+
cancelled: "cancelled";
|
|
192
|
+
}>>;
|
|
193
|
+
error: z.ZodNullable<z.ZodString>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
pauseLeaseId: z.ZodNullable<z.ZodString>;
|
|
196
|
+
pausedParticipants: z.ZodArray<z.ZodEnum<{
|
|
197
|
+
pipeline: "pipeline";
|
|
198
|
+
recorder: "recorder";
|
|
199
|
+
analytics: "analytics";
|
|
200
|
+
}>>;
|
|
201
|
+
repointed: z.ZodBoolean;
|
|
202
|
+
cancelRequested: z.ZodBoolean;
|
|
203
|
+
startedAt: z.ZodNumber;
|
|
204
|
+
updatedAt: z.ZodNumber;
|
|
205
|
+
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
206
|
+
error: z.ZodNullable<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
export type StorageMigrationJob = z.infer<typeof StorageMigrationJobSchema>;
|
|
209
|
+
export declare const StorageMigrationPlanSchema: z.ZodObject<{
|
|
210
|
+
destinations: z.ZodObject<{
|
|
211
|
+
recordings: z.ZodOptional<z.ZodString>;
|
|
212
|
+
recordingsLow: z.ZodOptional<z.ZodString>;
|
|
213
|
+
eventMedia: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
216
|
+
storageClass: z.ZodEnum<{
|
|
217
|
+
recordings: "recordings";
|
|
218
|
+
recordingsLow: "recordingsLow";
|
|
219
|
+
eventMedia: "eventMedia";
|
|
220
|
+
}>;
|
|
221
|
+
fromLocationId: z.ZodString;
|
|
222
|
+
toLocationId: z.ZodString;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
export type StorageMigrationPlan = z.infer<typeof StorageMigrationPlanSchema>;
|
|
@@ -3201,9 +3201,12 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3201
3201
|
getEventStoreFootprint: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventStoreFootprint", "query", input),
|
|
3202
3202
|
pruneEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneEvents", "mutation", input),
|
|
3203
3203
|
deleteDeviceEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "deleteDeviceEvents", "mutation", input),
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3204
|
+
pauseForStorageMigration: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pauseForStorageMigration", "mutation", input),
|
|
3205
|
+
resumeForStorageMigration: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "resumeForStorageMigration", "mutation", input),
|
|
3206
|
+
refreshStorageLocationsForMigration: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "refreshStorageLocationsForMigration", "mutation", input),
|
|
3207
|
+
startStorageMigrationMove: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "startStorageMigrationMove", "mutation", input),
|
|
3208
|
+
getStorageMigrationMoveStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getStorageMigrationMoveStatus", "query", input),
|
|
3209
|
+
cancelStorageMigrationMove: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelStorageMigrationMove", "mutation", input),
|
|
3207
3210
|
listOpsLog: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listOpsLog", "query", input),
|
|
3208
3211
|
getTrainingExportSummary: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportSummary", "query", input),
|
|
3209
3212
|
getTrainingExportUrl: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportUrl", "query", input),
|
|
@@ -3201,9 +3201,12 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3201
3201
|
getEventStoreFootprint: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventStoreFootprint", "query", input),
|
|
3202
3202
|
pruneEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneEvents", "mutation", input),
|
|
3203
3203
|
deleteDeviceEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "deleteDeviceEvents", "mutation", input),
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3204
|
+
pauseForStorageMigration: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pauseForStorageMigration", "mutation", input),
|
|
3205
|
+
resumeForStorageMigration: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "resumeForStorageMigration", "mutation", input),
|
|
3206
|
+
refreshStorageLocationsForMigration: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "refreshStorageLocationsForMigration", "mutation", input),
|
|
3207
|
+
startStorageMigrationMove: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "startStorageMigrationMove", "mutation", input),
|
|
3208
|
+
getStorageMigrationMoveStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getStorageMigrationMoveStatus", "query", input),
|
|
3209
|
+
cancelStorageMigrationMove: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelStorageMigrationMove", "mutation", input),
|
|
3207
3210
|
listOpsLog: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listOpsLog", "query", input),
|
|
3208
3211
|
getTrainingExportSummary: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportSummary", "query", input),
|
|
3209
3212
|
getTrainingExportUrl: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportUrl", "query", input),
|