@camstack/types 1.2.183 → 1.2.184
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/capabilities/system.cap.d.ts +6 -0
- package/dist/index.js +31 -1
- package/dist/index.mjs +31 -1
- package/package.json +1 -1
|
@@ -466,6 +466,7 @@ declare const LoggingSettingsPatchSchema: z.ZodObject<{
|
|
|
466
466
|
armMs: z.ZodNumber;
|
|
467
467
|
deviceIds: z.ZodOptional<z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
468
468
|
}, z.core.$strip>>>>;
|
|
469
|
+
opsLogRetentionDays: z.ZodOptional<z.ZodNumber>;
|
|
469
470
|
}, z.core.$strip>;
|
|
470
471
|
/**
|
|
471
472
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -555,6 +556,7 @@ declare const SetLoggingSettingsInputSchema: z.ZodObject<{
|
|
|
555
556
|
armMs: z.ZodNumber;
|
|
556
557
|
deviceIds: z.ZodOptional<z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
557
558
|
}, z.core.$strip>>>>;
|
|
559
|
+
opsLogRetentionDays: z.ZodOptional<z.ZodNumber>;
|
|
558
560
|
}, z.core.$strip>;
|
|
559
561
|
}, z.core.$strip>;
|
|
560
562
|
/**
|
|
@@ -626,6 +628,7 @@ declare const LoggingSettingsStateSchema: z.ZodObject<{
|
|
|
626
628
|
remainingMs: z.ZodNumber;
|
|
627
629
|
deviceIds: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
|
|
628
630
|
}, z.core.$strip>>>;
|
|
631
|
+
opsLogRetentionDays: z.ZodNumber;
|
|
629
632
|
persisted: z.ZodBoolean;
|
|
630
633
|
}, z.core.$strip>;
|
|
631
634
|
export declare const systemCapability: {
|
|
@@ -931,6 +934,7 @@ export declare const systemCapability: {
|
|
|
931
934
|
remainingMs: z.ZodNumber;
|
|
932
935
|
deviceIds: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
|
|
933
936
|
}, z.core.$strip>>>;
|
|
937
|
+
opsLogRetentionDays: z.ZodNumber;
|
|
934
938
|
persisted: z.ZodBoolean;
|
|
935
939
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
936
940
|
/**
|
|
@@ -964,6 +968,7 @@ export declare const systemCapability: {
|
|
|
964
968
|
armMs: z.ZodNumber;
|
|
965
969
|
deviceIds: z.ZodOptional<z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
966
970
|
}, z.core.$strip>>>>;
|
|
971
|
+
opsLogRetentionDays: z.ZodOptional<z.ZodNumber>;
|
|
967
972
|
}, z.core.$strip>;
|
|
968
973
|
}, z.core.$strip>, z.ZodObject<{
|
|
969
974
|
scopeNodeId: z.ZodNullable<z.ZodString>;
|
|
@@ -1025,6 +1030,7 @@ export declare const systemCapability: {
|
|
|
1025
1030
|
remainingMs: z.ZodNumber;
|
|
1026
1031
|
deviceIds: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
|
|
1027
1032
|
}, z.core.$strip>>>;
|
|
1033
|
+
opsLogRetentionDays: z.ZodNumber;
|
|
1028
1034
|
persisted: z.ZodBoolean;
|
|
1029
1035
|
}, z.core.$strip>, "mutation">;
|
|
1030
1036
|
};
|
package/dist/index.js
CHANGED
|
@@ -36465,7 +36465,29 @@ var LoggingSettingsPatchSchema = zod.z.object({
|
|
|
36465
36465
|
* disarmed the channels it did not mention would make the Levels page and
|
|
36466
36466
|
* the Diagnostics page fight over the same value.
|
|
36467
36467
|
*/
|
|
36468
|
-
channels: zod.z.array(LogChannelWindowPatchSchema).readonly().optional()
|
|
36468
|
+
channels: zod.z.array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
36469
|
+
/**
|
|
36470
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
36471
|
+
* retention actually deleted.
|
|
36472
|
+
*
|
|
36473
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
36474
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
36475
|
+
* this system is configured through this one document, and a retention audit
|
|
36476
|
+
* configured somewhere else is a second place to look when the question is
|
|
36477
|
+
* "what happened to my data".
|
|
36478
|
+
*
|
|
36479
|
+
* That placement has a cost worth stating: this document ships in the
|
|
36480
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
36481
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
36482
|
+
*
|
|
36483
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
36484
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
36485
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
36486
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
36487
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
36488
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
36489
|
+
*/
|
|
36490
|
+
opsLogRetentionDays: zod.z.number().int().min(0).max(3650).optional()
|
|
36469
36491
|
});
|
|
36470
36492
|
/**
|
|
36471
36493
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -36538,6 +36560,14 @@ var LoggingSettingsStateSchema = zod.z.object({
|
|
|
36538
36560
|
channels: zod.z.array(LogChannelDescriptorSchema).readonly(),
|
|
36539
36561
|
/** The channels ARMED right now, each with its deadline. */
|
|
36540
36562
|
activeChannels: zod.z.array(LogChannelWindowStateSchema).readonly(),
|
|
36563
|
+
/**
|
|
36564
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
36565
|
+
*
|
|
36566
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
36567
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
36568
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
36569
|
+
*/
|
|
36570
|
+
opsLogRetentionDays: zod.z.number().int().min(0),
|
|
36541
36571
|
persisted: zod.z.boolean()
|
|
36542
36572
|
});
|
|
36543
36573
|
var systemCapability = {
|
package/dist/index.mjs
CHANGED
|
@@ -36457,7 +36457,29 @@ var LoggingSettingsPatchSchema = z.object({
|
|
|
36457
36457
|
* disarmed the channels it did not mention would make the Levels page and
|
|
36458
36458
|
* the Diagnostics page fight over the same value.
|
|
36459
36459
|
*/
|
|
36460
|
-
channels: z.array(LogChannelWindowPatchSchema).readonly().optional()
|
|
36460
|
+
channels: z.array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
36461
|
+
/**
|
|
36462
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
36463
|
+
* retention actually deleted.
|
|
36464
|
+
*
|
|
36465
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
36466
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
36467
|
+
* this system is configured through this one document, and a retention audit
|
|
36468
|
+
* configured somewhere else is a second place to look when the question is
|
|
36469
|
+
* "what happened to my data".
|
|
36470
|
+
*
|
|
36471
|
+
* That placement has a cost worth stating: this document ships in the
|
|
36472
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
36473
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
36474
|
+
*
|
|
36475
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
36476
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
36477
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
36478
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
36479
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
36480
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
36481
|
+
*/
|
|
36482
|
+
opsLogRetentionDays: z.number().int().min(0).max(3650).optional()
|
|
36461
36483
|
});
|
|
36462
36484
|
/**
|
|
36463
36485
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -36530,6 +36552,14 @@ var LoggingSettingsStateSchema = z.object({
|
|
|
36530
36552
|
channels: z.array(LogChannelDescriptorSchema).readonly(),
|
|
36531
36553
|
/** The channels ARMED right now, each with its deadline. */
|
|
36532
36554
|
activeChannels: z.array(LogChannelWindowStateSchema).readonly(),
|
|
36555
|
+
/**
|
|
36556
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
36557
|
+
*
|
|
36558
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
36559
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
36560
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
36561
|
+
*/
|
|
36562
|
+
opsLogRetentionDays: z.number().int().min(0),
|
|
36533
36563
|
persisted: z.boolean()
|
|
36534
36564
|
});
|
|
36535
36565
|
var systemCapability = {
|