@camstack/types 1.2.130 → 1.2.132
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 +3 -2
- package/dist/addon.mjs +3 -2
- package/dist/capabilities/pipeline-analytics.cap.d.ts +48 -0
- package/dist/capabilities/recording.cap.d.ts +62 -0
- package/dist/capabilities/storage-migration.cap.d.ts +149 -0
- package/dist/generated/addon-api.d.ts +56 -0
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.js +266 -10
- package/dist/index.mjs +262 -11
- package/dist/interfaces/relocate.d.ts +92 -0
- package/dist/interfaces/storage-location.d.ts +4 -5
- package/dist/{sleep-DcA-CgqX.mjs → sleep-BBI0PDUc.mjs} +2 -0
- package/dist/{sleep-DIg3xuEw.js → sleep-CqVyhcl-.js} +2 -0
- package/package.json +1 -1
|
@@ -122,6 +122,7 @@ export declare const MediaRelocateModeSchema: z.ZodEnum<{
|
|
|
122
122
|
export type MediaRelocateMode = z.infer<typeof MediaRelocateModeSchema>;
|
|
123
123
|
export declare const RelocateMediaInputSchema: z.ZodObject<{
|
|
124
124
|
toLocationId: z.ZodString;
|
|
125
|
+
fromLocationId: z.ZodOptional<z.ZodString>;
|
|
125
126
|
throttleMbps: z.ZodOptional<z.ZodNumber>;
|
|
126
127
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
127
128
|
move: "move";
|
|
@@ -174,6 +175,7 @@ export declare const UnstampedEventMediaCountSchema: z.ZodNullable<z.ZodObject<{
|
|
|
174
175
|
export type UnstampedEventMediaCount = z.infer<typeof UnstampedEventMediaCountSchema>;
|
|
175
176
|
export declare const StorageMigrationMediaMoveInputSchema: z.ZodObject<{
|
|
176
177
|
toLocationId: z.ZodString;
|
|
178
|
+
fromLocationId: z.ZodOptional<z.ZodString>;
|
|
177
179
|
throttleMbps: z.ZodOptional<z.ZodNumber>;
|
|
178
180
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
179
181
|
move: "move";
|
|
@@ -210,6 +212,20 @@ export declare const StorageMigrationDestinationsSchema: z.ZodObject<{
|
|
|
210
212
|
galleryMedia: z.ZodOptional<z.ZodString>;
|
|
211
213
|
}, z.core.$strip>;
|
|
212
214
|
export type StorageMigrationDestinations = z.infer<typeof StorageMigrationDestinationsSchema>;
|
|
215
|
+
/**
|
|
216
|
+
* Optional named source per class. Omitted = the class's current default
|
|
217
|
+
* (the historical behaviour). A named source that is NOT the default is a
|
|
218
|
+
* drain of that disk: bytes move, the default stays, and the source is
|
|
219
|
+
* disabled when the move finishes.
|
|
220
|
+
*/
|
|
221
|
+
export declare const StorageMigrationSourcesSchema: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
recordings: z.ZodOptional<z.ZodString>;
|
|
223
|
+
recordingsLow: z.ZodOptional<z.ZodString>;
|
|
224
|
+
eventMedia: z.ZodOptional<z.ZodString>;
|
|
225
|
+
backups: z.ZodOptional<z.ZodString>;
|
|
226
|
+
galleryMedia: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, z.core.$strip>>;
|
|
228
|
+
export type StorageMigrationSources = z.infer<typeof StorageMigrationSourcesSchema>;
|
|
213
229
|
/**
|
|
214
230
|
* How a migration sequences the cutover against the byte move.
|
|
215
231
|
*
|
|
@@ -242,6 +258,13 @@ export declare const StorageMigrationInputSchema: z.ZodObject<{
|
|
|
242
258
|
backups: z.ZodOptional<z.ZodString>;
|
|
243
259
|
galleryMedia: z.ZodOptional<z.ZodString>;
|
|
244
260
|
}, z.core.$strip>;
|
|
261
|
+
sources: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
recordings: z.ZodOptional<z.ZodString>;
|
|
263
|
+
recordingsLow: z.ZodOptional<z.ZodString>;
|
|
264
|
+
eventMedia: z.ZodOptional<z.ZodString>;
|
|
265
|
+
backups: z.ZodOptional<z.ZodString>;
|
|
266
|
+
galleryMedia: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
245
268
|
throttleMbps: z.ZodOptional<z.ZodNumber>;
|
|
246
269
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
247
270
|
blocking: "blocking";
|
|
@@ -323,6 +346,7 @@ export declare const StorageMigrationMoveSchema: z.ZodObject<{
|
|
|
323
346
|
}>;
|
|
324
347
|
fromLocationId: z.ZodString;
|
|
325
348
|
toLocationId: z.ZodString;
|
|
349
|
+
freezeSource: z.ZodOptional<z.ZodBoolean>;
|
|
326
350
|
moverJobId: z.ZodNullable<z.ZodString>;
|
|
327
351
|
state: z.ZodNullable<z.ZodEnum<{
|
|
328
352
|
failed: "failed";
|
|
@@ -369,6 +393,13 @@ export declare const StorageMigrationJobSchema: z.ZodObject<{
|
|
|
369
393
|
backups: z.ZodOptional<z.ZodString>;
|
|
370
394
|
galleryMedia: z.ZodOptional<z.ZodString>;
|
|
371
395
|
}, z.core.$strip>;
|
|
396
|
+
sources: z.ZodOptional<z.ZodObject<{
|
|
397
|
+
recordings: z.ZodOptional<z.ZodString>;
|
|
398
|
+
recordingsLow: z.ZodOptional<z.ZodString>;
|
|
399
|
+
eventMedia: z.ZodOptional<z.ZodString>;
|
|
400
|
+
backups: z.ZodOptional<z.ZodString>;
|
|
401
|
+
galleryMedia: z.ZodOptional<z.ZodString>;
|
|
402
|
+
}, z.core.$strip>>;
|
|
372
403
|
throttleMbps: z.ZodNumber;
|
|
373
404
|
moves: z.ZodArray<z.ZodObject<{
|
|
374
405
|
storageClass: z.ZodEnum<{
|
|
@@ -380,6 +411,7 @@ export declare const StorageMigrationJobSchema: z.ZodObject<{
|
|
|
380
411
|
}>;
|
|
381
412
|
fromLocationId: z.ZodString;
|
|
382
413
|
toLocationId: z.ZodString;
|
|
414
|
+
freezeSource: z.ZodOptional<z.ZodBoolean>;
|
|
383
415
|
moverJobId: z.ZodNullable<z.ZodString>;
|
|
384
416
|
state: z.ZodNullable<z.ZodEnum<{
|
|
385
417
|
failed: "failed";
|
|
@@ -469,6 +501,13 @@ export declare const StorageMigrationPlanSchema: z.ZodObject<{
|
|
|
469
501
|
backups: z.ZodOptional<z.ZodString>;
|
|
470
502
|
galleryMedia: z.ZodOptional<z.ZodString>;
|
|
471
503
|
}, z.core.$strip>;
|
|
504
|
+
sources: z.ZodOptional<z.ZodObject<{
|
|
505
|
+
recordings: z.ZodOptional<z.ZodString>;
|
|
506
|
+
recordingsLow: z.ZodOptional<z.ZodString>;
|
|
507
|
+
eventMedia: z.ZodOptional<z.ZodString>;
|
|
508
|
+
backups: z.ZodOptional<z.ZodString>;
|
|
509
|
+
galleryMedia: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, z.core.$strip>>;
|
|
472
511
|
mode: z.ZodEnum<{
|
|
473
512
|
blocking: "blocking";
|
|
474
513
|
nonBlocking: "nonBlocking";
|
|
@@ -483,6 +522,7 @@ export declare const StorageMigrationPlanSchema: z.ZodObject<{
|
|
|
483
522
|
}>;
|
|
484
523
|
fromLocationId: z.ZodString;
|
|
485
524
|
toLocationId: z.ZodString;
|
|
525
|
+
freezeSource: z.ZodOptional<z.ZodBoolean>;
|
|
486
526
|
}, z.core.$strip>>;
|
|
487
527
|
findings: z.ZodArray<z.ZodObject<{
|
|
488
528
|
code: z.ZodEnum<{
|
|
@@ -744,6 +784,7 @@ export declare const RelocatableMediaCountSchema: z.ZodNullable<z.ZodObject<{
|
|
|
744
784
|
export type RelocatableMediaCount = z.infer<typeof RelocatableMediaCountSchema>;
|
|
745
785
|
export declare const RelocatableMediaCountInputSchema: z.ZodObject<{
|
|
746
786
|
toLocationId: z.ZodString;
|
|
787
|
+
fromLocationId: z.ZodOptional<z.ZodString>;
|
|
747
788
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
748
789
|
move: "move";
|
|
749
790
|
seal: "seal";
|
|
@@ -751,3 +792,54 @@ export declare const RelocatableMediaCountInputSchema: z.ZodObject<{
|
|
|
751
792
|
}>>;
|
|
752
793
|
}, z.core.$strip>;
|
|
753
794
|
export type RelocatableMediaCountInput = z.infer<typeof RelocatableMediaCountInputSchema>;
|
|
795
|
+
/**
|
|
796
|
+
* Operator cleanup of leftover analytics rows, optional debug media, and
|
|
797
|
+
* ghost ledger entries on frozen footage locations.
|
|
798
|
+
*
|
|
799
|
+
* A pass is tens of minutes on a standing backlog. The hub method RETURNS
|
|
800
|
+
* `{ jobId }` immediately; progress is `cleanupStatus`. Awaiting the work
|
|
801
|
+
* is how `addons.custom` hit the 60 s UDS deadline while reclaim continued
|
|
802
|
+
* with no operator-visible status.
|
|
803
|
+
*/
|
|
804
|
+
export declare const StorageCleanupPhaseSchema: z.ZodEnum<{
|
|
805
|
+
failed: "failed";
|
|
806
|
+
done: "done";
|
|
807
|
+
cancelled: "cancelled";
|
|
808
|
+
orphans: "orphans";
|
|
809
|
+
"debug-media": "debug-media";
|
|
810
|
+
"ghost-ledger": "ghost-ledger";
|
|
811
|
+
}>;
|
|
812
|
+
export type StorageCleanupPhase = z.infer<typeof StorageCleanupPhaseSchema>;
|
|
813
|
+
export declare const StorageCleanupInputSchema: z.ZodObject<{
|
|
814
|
+
includeDebugMedia: z.ZodOptional<z.ZodBoolean>;
|
|
815
|
+
}, z.core.$strip>;
|
|
816
|
+
export type StorageCleanupInput = z.infer<typeof StorageCleanupInputSchema>;
|
|
817
|
+
export declare const StorageCleanupJobSchema: z.ZodObject<{
|
|
818
|
+
jobId: z.ZodString;
|
|
819
|
+
phase: z.ZodEnum<{
|
|
820
|
+
failed: "failed";
|
|
821
|
+
done: "done";
|
|
822
|
+
cancelled: "cancelled";
|
|
823
|
+
orphans: "orphans";
|
|
824
|
+
"debug-media": "debug-media";
|
|
825
|
+
"ghost-ledger": "ghost-ledger";
|
|
826
|
+
}>;
|
|
827
|
+
includeDebugMedia: z.ZodBoolean;
|
|
828
|
+
orphansReclaimed: z.ZodNumber;
|
|
829
|
+
orphanBytesReclaimed: z.ZodNumber;
|
|
830
|
+
debugMediaReclaimed: z.ZodNumber;
|
|
831
|
+
debugMediaBytesReclaimed: z.ZodNumber;
|
|
832
|
+
ghostsForgotten: z.ZodNumber;
|
|
833
|
+
ghostBytesForgotten: z.ZodNumber;
|
|
834
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
835
|
+
cancelRequested: z.ZodBoolean;
|
|
836
|
+
startedAt: z.ZodNumber;
|
|
837
|
+
updatedAt: z.ZodNumber;
|
|
838
|
+
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
839
|
+
error: z.ZodNullable<z.ZodString>;
|
|
840
|
+
}, z.core.$strip>;
|
|
841
|
+
export type StorageCleanupJob = z.infer<typeof StorageCleanupJobSchema>;
|
|
842
|
+
export declare const StorageCleanupStatusInputSchema: z.ZodObject<{
|
|
843
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
844
|
+
}, z.core.$strip>;
|
|
845
|
+
export type StorageCleanupStatusInput = z.infer<typeof StorageCleanupStatusInputSchema>;
|
|
@@ -33,11 +33,10 @@ export type StorageLocationType = z.infer<typeof StorageLocationTypeSchema>;
|
|
|
33
33
|
* The default location for a type uses `id === <type>:default` by
|
|
34
34
|
* convention (the bare type ref like `'backups'` resolves to it).
|
|
35
35
|
*
|
|
36
|
-
* `isSystem
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* deleting it is rejected at the cap level.
|
|
36
|
+
* `isSystem` is a legacy persisted flag. Seed still creates the initial
|
|
37
|
+
* `<type>:default` locations; the flag is no longer a lock, a badge, or a
|
|
38
|
+
* prune selector. New writes leave it false. Deletion is gated on uniqueness
|
|
39
|
+
* / last-enabled, not on this bit.
|
|
41
40
|
*/
|
|
42
41
|
export declare const StorageLocationSchema: z.ZodObject<{
|
|
43
42
|
id: z.ZodString;
|
|
@@ -3452,6 +3452,8 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3452
3452
|
listRelocateMediaJobs: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRelocateMediaJobs", "query", input),
|
|
3453
3453
|
cancelRelocateMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelRelocateMedia", "mutation", input),
|
|
3454
3454
|
listOpsLog: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listOpsLog", "query", input),
|
|
3455
|
+
reclaimDebugMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "reclaimDebugMedia", "mutation", input),
|
|
3456
|
+
getMediaReclaimStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getMediaReclaimStatus", "query", input),
|
|
3455
3457
|
getTrainingExportSummary: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportSummary", "query", input),
|
|
3456
3458
|
getTrainingExportUrl: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportUrl", "query", input),
|
|
3457
3459
|
listRetrainStaging: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRetrainStaging", "query", input),
|
|
@@ -3452,6 +3452,8 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3452
3452
|
listRelocateMediaJobs: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRelocateMediaJobs", "query", input),
|
|
3453
3453
|
cancelRelocateMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelRelocateMedia", "mutation", input),
|
|
3454
3454
|
listOpsLog: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listOpsLog", "query", input),
|
|
3455
|
+
reclaimDebugMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "reclaimDebugMedia", "mutation", input),
|
|
3456
|
+
getMediaReclaimStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getMediaReclaimStatus", "query", input),
|
|
3455
3457
|
getTrainingExportSummary: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportSummary", "query", input),
|
|
3456
3458
|
getTrainingExportUrl: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportUrl", "query", input),
|
|
3457
3459
|
listRetrainStaging: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRetrainStaging", "query", input),
|