@camstack/types 1.2.54 → 1.2.56

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.
@@ -122,6 +122,21 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
122
122
  delivered: "delivered";
123
123
  "picked-up": "picked-up";
124
124
  }>>;
125
+ systemEvent: z.ZodOptional<z.ZodObject<{
126
+ kinds: z.ZodArray<z.ZodEnum<{
127
+ "camera-online": "camera-online";
128
+ "camera-offline": "camera-offline";
129
+ "stream-online": "stream-online";
130
+ "stream-offline": "stream-offline";
131
+ "node-online": "node-online";
132
+ "node-offline": "node-offline";
133
+ "addon-update-available": "addon-update-available";
134
+ "server-update-available": "server-update-available";
135
+ }>>;
136
+ deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
137
+ nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
+ packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ }, z.core.$strip>>;
125
140
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
141
  kind: z.ZodLiteral<"polygon">;
127
142
  points: z.ZodArray<z.ZodObject<{
@@ -231,6 +246,21 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
231
246
  delivered: "delivered";
232
247
  "picked-up": "picked-up";
233
248
  }>>;
249
+ systemEvent: z.ZodOptional<z.ZodObject<{
250
+ kinds: z.ZodArray<z.ZodEnum<{
251
+ "camera-online": "camera-online";
252
+ "camera-offline": "camera-offline";
253
+ "stream-online": "stream-online";
254
+ "stream-offline": "stream-offline";
255
+ "node-online": "node-online";
256
+ "node-offline": "node-offline";
257
+ "addon-update-available": "addon-update-available";
258
+ "server-update-available": "server-update-available";
259
+ }>>;
260
+ deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
261
+ nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
262
+ packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
263
+ }, z.core.$strip>>;
234
264
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
235
265
  kind: z.ZodLiteral<"polygon">;
236
266
  points: z.ZodArray<z.ZodObject<{
@@ -412,6 +442,21 @@ export declare const osdManagerCapability: {
412
442
  delivered: "delivered";
413
443
  "picked-up": "picked-up";
414
444
  }>>;
445
+ systemEvent: z.ZodOptional<z.ZodObject<{
446
+ kinds: z.ZodArray<z.ZodEnum<{
447
+ "camera-online": "camera-online";
448
+ "camera-offline": "camera-offline";
449
+ "stream-online": "stream-online";
450
+ "stream-offline": "stream-offline";
451
+ "node-online": "node-online";
452
+ "node-offline": "node-offline";
453
+ "addon-update-available": "addon-update-available";
454
+ "server-update-available": "server-update-available";
455
+ }>>;
456
+ deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
457
+ nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
458
+ packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
459
+ }, z.core.$strip>>;
415
460
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
416
461
  kind: z.ZodLiteral<"polygon">;
417
462
  points: z.ZodArray<z.ZodObject<{
@@ -470,6 +515,7 @@ export declare const osdManagerCapability: {
470
515
  catalog: z.ZodArray<z.ZodObject<{
471
516
  id: z.ZodString;
472
517
  group: z.ZodEnum<{
518
+ system: "system";
473
519
  device: "device";
474
520
  label: "label";
475
521
  scope: "scope";
@@ -486,6 +532,7 @@ export declare const osdManagerCapability: {
486
532
  deviceState: "deviceState";
487
533
  schedule: "schedule";
488
534
  packagePhase: "packagePhase";
535
+ systemEvent: "systemEvent";
489
536
  occupancy: "occupancy";
490
537
  deviceIdList: "deviceIdList";
491
538
  stringList: "stringList";
@@ -511,6 +558,7 @@ export declare const osdManagerCapability: {
511
558
  immediate: "immediate";
512
559
  "track-end": "track-end";
513
560
  "package-event": "package-event";
561
+ "system-event": "system-event";
514
562
  }>>;
515
563
  phase: z.ZodString;
516
564
  description: z.ZodOptional<z.ZodString>;
@@ -604,6 +652,21 @@ export declare const osdManagerCapability: {
604
652
  delivered: "delivered";
605
653
  "picked-up": "picked-up";
606
654
  }>>;
655
+ systemEvent: z.ZodOptional<z.ZodObject<{
656
+ kinds: z.ZodArray<z.ZodEnum<{
657
+ "camera-online": "camera-online";
658
+ "camera-offline": "camera-offline";
659
+ "stream-online": "stream-online";
660
+ "stream-offline": "stream-offline";
661
+ "node-online": "node-online";
662
+ "node-offline": "node-offline";
663
+ "addon-update-available": "addon-update-available";
664
+ "server-update-available": "server-update-available";
665
+ }>>;
666
+ deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
667
+ nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
668
+ packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
669
+ }, z.core.$strip>>;
607
670
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
608
671
  kind: z.ZodLiteral<"polygon">;
609
672
  points: z.ZodArray<z.ZodObject<{
@@ -712,6 +775,21 @@ export declare const osdManagerCapability: {
712
775
  delivered: "delivered";
713
776
  "picked-up": "picked-up";
714
777
  }>>;
778
+ systemEvent: z.ZodOptional<z.ZodObject<{
779
+ kinds: z.ZodArray<z.ZodEnum<{
780
+ "camera-online": "camera-online";
781
+ "camera-offline": "camera-offline";
782
+ "stream-online": "stream-online";
783
+ "stream-offline": "stream-offline";
784
+ "node-online": "node-online";
785
+ "node-offline": "node-offline";
786
+ "addon-update-available": "addon-update-available";
787
+ "server-update-available": "server-update-available";
788
+ }>>;
789
+ deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
790
+ nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
791
+ packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
792
+ }, z.core.$strip>>;
715
793
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
716
794
  kind: z.ZodLiteral<"polygon">;
717
795
  points: z.ZodArray<z.ZodObject<{
@@ -840,6 +918,21 @@ export declare const osdManagerCapability: {
840
918
  delivered: "delivered";
841
919
  "picked-up": "picked-up";
842
920
  }>>;
921
+ systemEvent: z.ZodOptional<z.ZodObject<{
922
+ kinds: z.ZodArray<z.ZodEnum<{
923
+ "camera-online": "camera-online";
924
+ "camera-offline": "camera-offline";
925
+ "stream-online": "stream-online";
926
+ "stream-offline": "stream-offline";
927
+ "node-online": "node-online";
928
+ "node-offline": "node-offline";
929
+ "addon-update-available": "addon-update-available";
930
+ "server-update-available": "server-update-available";
931
+ }>>;
932
+ deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
933
+ nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
934
+ packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
935
+ }, z.core.$strip>>;
843
936
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
844
937
  kind: z.ZodLiteral<"polygon">;
845
938
  points: z.ZodArray<z.ZodObject<{
@@ -63,6 +63,7 @@ declare const SsoBridgeClaimsSchema: z.ZodObject<{
63
63
  jti: z.ZodOptional<z.ZodString>;
64
64
  codeChallenge: z.ZodOptional<z.ZodString>;
65
65
  sessionId: z.ZodOptional<z.ZodString>;
66
+ refreshTtl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"never">]>>;
66
67
  }, z.core.$strip>;
67
68
  export declare const ssoBridgeCapability: {
68
69
  readonly name: "sso-bridge";
@@ -120,8 +121,9 @@ export declare const ssoBridgeCapability: {
120
121
  jti: z.ZodOptional<z.ZodString>;
121
122
  codeChallenge: z.ZodOptional<z.ZodString>;
122
123
  sessionId: z.ZodOptional<z.ZodString>;
124
+ refreshTtl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"never">]>>;
123
125
  }, z.core.$strip>;
124
- ttlSec: z.ZodOptional<z.ZodNumber>;
126
+ ttlSec: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"never">]>>;
125
127
  }, z.core.$strip>, z.ZodObject<{
126
128
  token: z.ZodString;
127
129
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
@@ -176,6 +178,7 @@ export declare const ssoBridgeCapability: {
176
178
  jti: z.ZodOptional<z.ZodString>;
177
179
  codeChallenge: z.ZodOptional<z.ZodString>;
178
180
  sessionId: z.ZodOptional<z.ZodString>;
181
+ refreshTtl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"never">]>>;
179
182
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
180
183
  };
181
184
  };
@@ -938,6 +938,7 @@ export declare const userManagementCapability: {
938
938
  redirectUri: z.ZodString;
939
939
  hubUrl: z.ZodString;
940
940
  codeChallenge: z.ZodOptional<z.ZodString>;
941
+ refreshTtlSec: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"never">]>>;
941
942
  }, z.core.$strip>, z.ZodObject<{
942
943
  code: z.ZodString;
943
944
  }, z.core.$strip>, "mutation">;
@@ -12,6 +12,13 @@ export declare enum EventCategory {
12
12
  * Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
13
13
  */
14
14
  SystemRestartCompleted = "system.restart-completed",
15
+ /**
16
+ * A newer addon or server-root package version was found by the
17
+ * authoritative registry check. Emitted once per
18
+ * `(target, packageName, currentVersion, latestVersion)` transition; repeated
19
+ * polling of the same result is deduplicated by the checker.
20
+ */
21
+ UpdateAvailable = "update.available",
15
22
  /**
16
23
  * Readiness transition for a capability provider. Every producer emits
17
24
  * this event on `onInitialize` completion, `onDestroy`, and
package/dist/enums.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-BE4PDZ_3.js");
2
+ const require_event_category = require("./event-category-DxZbWydC.js");
3
3
  //#region src/enums/event-source-type.ts
4
4
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
5
5
  EventSourceType["Addon"] = "addon";
package/dist/enums.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-41fKf-q9.mjs";
1
+ import { t as EventCategory } from "./event-category-Cv9dO26A.mjs";
2
2
  //#region src/enums/event-source-type.ts
3
3
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
4
4
  EventSourceType["Addon"] = "addon";
@@ -14,6 +14,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  */
15
15
  EventCategory["SystemRestartCompleted"] = "system.restart-completed";
16
16
  /**
17
+ * A newer addon or server-root package version was found by the
18
+ * authoritative registry check. Emitted once per
19
+ * `(target, packageName, currentVersion, latestVersion)` transition; repeated
20
+ * polling of the same result is deduplicated by the checker.
21
+ */
22
+ EventCategory["UpdateAvailable"] = "update.available";
23
+ /**
17
24
  * Readiness transition for a capability provider. Every producer emits
18
25
  * this event on `onInitialize` completion, `onDestroy`, and
19
26
  * `$node.reconnect`; every consumer that needs to gate on a cross-process
@@ -14,6 +14,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  */
15
15
  EventCategory["SystemRestartCompleted"] = "system.restart-completed";
16
16
  /**
17
+ * A newer addon or server-root package version was found by the
18
+ * authoritative registry check. Emitted once per
19
+ * `(target, packageName, currentVersion, latestVersion)` transition; repeated
20
+ * polling of the same result is deduplicated by the checker.
21
+ */
22
+ EventCategory["UpdateAvailable"] = "update.available";
23
+ /**
17
24
  * Readiness transition for a capability provider. Every producer emits
18
25
  * this event on `onInitialize` completion, `onDestroy`, and
19
26
  * `$node.reconnect`; every consumer that needs to gate on a cross-process
package/dist/index.d.ts CHANGED
@@ -113,6 +113,7 @@ export * from './types/pipeline.js';
113
113
  export type { AvailableEngine, PipelineAddonSchema, PipelineDefaultStep, PipelineModelOption, PipelineSchema, PipelineSlotSchema, PipelineTemplate, PipelineTemplateStep, TemplateValidationResult, } from './types/pipeline-schema.js';
114
114
  export * from './types/pipeline-step.js';
115
115
  export * from './types/tracked.js';
116
+ export { type BearerPayloadShape, type BearerPrincipal, classifyBearerPrincipal, methodAccessForHttpMethod, type PrincipalAddonReachInput, type PrincipalAddonReachVerdict, principalMayReachAddon, scopesAllowAddon, scopesAllowDeviceCap, } from './auth/principal-scope.js';
116
117
  export type { AutomationAction, AutomationCondition, AutomationConditionAll, AutomationConditionAny, AutomationConditionExpression, AutomationConditionLeaf, AutomationConditionNot, AutomationConditionOperator, AutomationRecipe, AutomationTrigger, GenerateAutomationBlockInput, } from './automation/index.js';
117
118
  export { AutomationActionSchema, AutomationConditionOperatorSchema, AutomationConditionSchema, AutomationRecipeSchema, AutomationTriggerSchema, conditionDepth, countConditionLeaves, generateAutomationBlock, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, validateRecipeBounds, } from './automation/index.js';
118
119
  export * from './cap-call-context.js';