@camstack/types 1.2.95 → 1.2.97

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-CRPORAAz.js");
3
- const require_sleep = require("./sleep-CMRLJj2e.js");
2
+ const require_event_category = require("./event-category-EY0GNjV9.js");
3
+ const require_sleep = require("./sleep-C2XhJhkd.js");
4
4
  const require_err_msg = require("./err-msg-COpsHMw2.js");
5
5
  //#region src/generated/cap-input-defaults.ts
6
6
  /**
package/dist/addon.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as EventCategory } from "./event-category-XfKNtfCc.mjs";
2
- import { A as expandCapMethods, B as ReadinessTimeoutError, I as nodePin, L as readNodePin, T as adminUiCapability, U as scopeKey, _t as BaseAddon, a as asJsonObject, b as viewerUiCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DisposerChain, ht as DATAPLANE_SECRET_HEADER, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as normalizeAddonInitResult, w as DeviceType, xt as emitReadiness, y as deviceOpsCapability, z as ReadinessRegistry } from "./sleep-zMxKWD0M.mjs";
1
+ import { t as EventCategory } from "./event-category-CIa_iT6b.mjs";
2
+ import { A as expandCapMethods, B as ReadinessTimeoutError, I as nodePin, L as readNodePin, T as adminUiCapability, U as scopeKey, _t as BaseAddon, a as asJsonObject, b as viewerUiCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DisposerChain, ht as DATAPLANE_SECRET_HEADER, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as normalizeAddonInitResult, w as DeviceType, xt as emitReadiness, y as deviceOpsCapability, z as ReadinessRegistry } from "./sleep-B8EIZt4h.mjs";
3
3
  import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
5
5
  /**
@@ -285,6 +285,80 @@ export declare const localNetworkCapability: {
285
285
  readonly resetAllowlistToBestMatch: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
286
286
  addresses: z.ZodReadonly<z.ZodArray<z.ZodString>>;
287
287
  }, z.core.$strip>, "mutation">;
288
+ /**
289
+ * Live TLS material for the Network → Local access certificate card.
290
+ * LAN HTTP / hostname are addon settings (`globalSettingsSchema`), not
291
+ * a second store — this query is status, not configuration.
292
+ */
293
+ readonly getTlsStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
294
+ mode: z.ZodEnum<{
295
+ disabled: "disabled";
296
+ generated: "generated";
297
+ uploaded: "uploaded";
298
+ }>;
299
+ leafFingerprintSha256: z.ZodNullable<z.ZodString>;
300
+ caFingerprintSha256: z.ZodNullable<z.ZodString>;
301
+ validTo: z.ZodNullable<z.ZodString>;
302
+ sans: z.ZodArray<z.ZodString>;
303
+ caCertPem: z.ZodNullable<z.ZodString>;
304
+ reissueError: z.ZodNullable<z.ZodString>;
305
+ restartRequired: z.ZodBoolean;
306
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
307
+ /** Issue a new leaf under the existing local CA. Disabled in uploaded mode. */
308
+ readonly regenerateCertificate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
309
+ reason: z.ZodOptional<z.ZodString>;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ mode: z.ZodEnum<{
312
+ disabled: "disabled";
313
+ generated: "generated";
314
+ uploaded: "uploaded";
315
+ }>;
316
+ leafFingerprintSha256: z.ZodNullable<z.ZodString>;
317
+ caFingerprintSha256: z.ZodNullable<z.ZodString>;
318
+ validTo: z.ZodNullable<z.ZodString>;
319
+ sans: z.ZodArray<z.ZodString>;
320
+ caCertPem: z.ZodNullable<z.ZodString>;
321
+ reissueError: z.ZodNullable<z.ZodString>;
322
+ restartRequired: z.ZodBoolean;
323
+ }, z.core.$strip>, "mutation">;
324
+ /** Replace the served material with operator-supplied PEMs. */
325
+ readonly uploadCertificate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
326
+ certPem: z.ZodString;
327
+ keyPem: z.ZodString;
328
+ caPem: z.ZodOptional<z.ZodString>;
329
+ }, z.core.$strip>, z.ZodObject<{
330
+ mode: z.ZodEnum<{
331
+ disabled: "disabled";
332
+ generated: "generated";
333
+ uploaded: "uploaded";
334
+ }>;
335
+ leafFingerprintSha256: z.ZodNullable<z.ZodString>;
336
+ caFingerprintSha256: z.ZodNullable<z.ZodString>;
337
+ validTo: z.ZodNullable<z.ZodString>;
338
+ sans: z.ZodArray<z.ZodString>;
339
+ caCertPem: z.ZodNullable<z.ZodString>;
340
+ reissueError: z.ZodNullable<z.ZodString>;
341
+ restartRequired: z.ZodBoolean;
342
+ }, z.core.$strip>, "mutation">;
343
+ /** The local CA PEM, or empty when there is none to download. */
344
+ readonly downloadCa: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
345
+ pem: z.ZodString;
346
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
347
+ /** Drop uploaded material and return to the generated local CA. */
348
+ readonly revertToGeneratedCertificate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
349
+ mode: z.ZodEnum<{
350
+ disabled: "disabled";
351
+ generated: "generated";
352
+ uploaded: "uploaded";
353
+ }>;
354
+ leafFingerprintSha256: z.ZodNullable<z.ZodString>;
355
+ caFingerprintSha256: z.ZodNullable<z.ZodString>;
356
+ validTo: z.ZodNullable<z.ZodString>;
357
+ sans: z.ZodArray<z.ZodString>;
358
+ caCertPem: z.ZodNullable<z.ZodString>;
359
+ reissueError: z.ZodNullable<z.ZodString>;
360
+ restartRequired: z.ZodBoolean;
361
+ }, z.core.$strip>, "mutation">;
288
362
  };
289
363
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
290
364
  readonly mount: {
@@ -26,6 +26,10 @@ declare const TerminalProfileInfoSchema: z.ZodObject<{
26
26
  profileId: z.ZodString;
27
27
  label: z.ZodString;
28
28
  description: z.ZodOptional<z.ZodString>;
29
+ executable: z.ZodOptional<z.ZodString>;
30
+ args: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
31
+ cwd: z.ZodOptional<z.ZodString>;
32
+ environment: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
29
33
  }, z.core.$strip>;
30
34
  /**
31
35
  * A durable operator-created Terminal instance. Profiles are templates; only
@@ -39,6 +43,10 @@ declare const TerminalInstanceInfoSchema: z.ZodObject<{
39
43
  profileLabel: z.ZodString;
40
44
  name: z.ZodString;
41
45
  enabled: z.ZodBoolean;
46
+ executable: z.ZodString;
47
+ args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
48
+ cwd: z.ZodString;
49
+ environment: z.ZodReadonly<z.ZodArray<z.ZodString>>;
42
50
  }, z.core.$strip>;
43
51
  declare const TerminalLegacyCameraSchema: z.ZodObject<{
44
52
  stableId: z.ZodString;
@@ -90,6 +98,10 @@ export declare const terminalSessionCapability: {
90
98
  profileId: z.ZodString;
91
99
  label: z.ZodString;
92
100
  description: z.ZodOptional<z.ZodString>;
101
+ executable: z.ZodOptional<z.ZodString>;
102
+ args: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
103
+ cwd: z.ZodOptional<z.ZodString>;
104
+ environment: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
93
105
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
94
106
  /** Explicit durable Terminal instances, managed centrally on the hub. */
95
107
  readonly listInstances: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -100,11 +112,19 @@ export declare const terminalSessionCapability: {
100
112
  profileLabel: z.ZodString;
101
113
  name: z.ZodString;
102
114
  enabled: z.ZodBoolean;
115
+ executable: z.ZodString;
116
+ args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
117
+ cwd: z.ZodString;
118
+ environment: z.ZodReadonly<z.ZodArray<z.ZodString>>;
103
119
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
104
120
  readonly createInstance: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
105
121
  targetNodeId: z.ZodString;
106
122
  profileId: z.ZodString;
107
123
  name: z.ZodOptional<z.ZodString>;
124
+ executable: z.ZodOptional<z.ZodString>;
125
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
+ cwd: z.ZodOptional<z.ZodString>;
127
+ environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
108
128
  }, z.core.$strip>, z.ZodObject<{
109
129
  instanceId: z.ZodString;
110
130
  cameraStableId: z.ZodString;
@@ -113,6 +133,30 @@ export declare const terminalSessionCapability: {
113
133
  profileLabel: z.ZodString;
114
134
  name: z.ZodString;
115
135
  enabled: z.ZodBoolean;
136
+ executable: z.ZodString;
137
+ args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
138
+ cwd: z.ZodString;
139
+ environment: z.ZodReadonly<z.ZodArray<z.ZodString>>;
140
+ }, z.core.$strip>, "mutation">;
141
+ readonly updateInstance: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
142
+ instanceId: z.ZodString;
143
+ name: z.ZodOptional<z.ZodString>;
144
+ executable: z.ZodOptional<z.ZodString>;
145
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
+ cwd: z.ZodOptional<z.ZodString>;
147
+ environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
148
+ }, z.core.$strip>, z.ZodObject<{
149
+ instanceId: z.ZodString;
150
+ cameraStableId: z.ZodString;
151
+ nodeId: z.ZodString;
152
+ profileId: z.ZodString;
153
+ profileLabel: z.ZodString;
154
+ name: z.ZodString;
155
+ enabled: z.ZodBoolean;
156
+ executable: z.ZodString;
157
+ args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
158
+ cwd: z.ZodString;
159
+ environment: z.ZodReadonly<z.ZodArray<z.ZodString>>;
116
160
  }, z.core.$strip>, "mutation">;
117
161
  readonly deleteInstance: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
118
162
  instanceId: z.ZodString;
@@ -128,6 +172,10 @@ export declare const terminalSessionCapability: {
128
172
  profileLabel: z.ZodString;
129
173
  name: z.ZodString;
130
174
  enabled: z.ZodBoolean;
175
+ executable: z.ZodString;
176
+ args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
177
+ cwd: z.ZodString;
178
+ environment: z.ZodReadonly<z.ZodArray<z.ZodString>>;
131
179
  }, z.core.$strip>, "mutation">;
132
180
  /** Existing automatic cameras are shown for explicit migration only. */
133
181
  readonly listLegacyCameras: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -150,6 +198,10 @@ export declare const terminalSessionCapability: {
150
198
  profileLabel: z.ZodString;
151
199
  name: z.ZodString;
152
200
  enabled: z.ZodBoolean;
201
+ executable: z.ZodString;
202
+ args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
203
+ cwd: z.ZodString;
204
+ environment: z.ZodReadonly<z.ZodArray<z.ZodString>>;
153
205
  }, z.core.$strip>, "mutation">;
154
206
  /** Live sessions currently hosted by the provider. */
155
207
  readonly listSessions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -168,6 +220,10 @@ export declare const terminalSessionCapability: {
168
220
  profileId: z.ZodString;
169
221
  cols: z.ZodNumber;
170
222
  rows: z.ZodNumber;
223
+ executable: z.ZodOptional<z.ZodString>;
224
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
+ cwd: z.ZodOptional<z.ZodString>;
226
+ environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
171
227
  }, z.core.$strip>, z.ZodObject<{
172
228
  sessionId: z.ZodString;
173
229
  profileId: z.ZodString;
@@ -12,6 +12,15 @@ 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
+ * The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
17
+ * Emitted only when the material on disk actually changed, so an
18
+ * operator who trusted the old certificate by hand is told rather than
19
+ * discovering it as a browser error. Payload `TlsCertChangedPayload`.
20
+ *
21
+ * Rule: docs/decisions/adr-0227-*.md
22
+ */
23
+ SystemTlsCertChanged = "system.tls-cert-changed",
15
24
  /**
16
25
  * A newer addon or server-root package version was found by the
17
26
  * authoritative registry check. Emitted once when any observed
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-CRPORAAz.js");
2
+ const require_event_category = require("./event-category-EY0GNjV9.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-XfKNtfCc.mjs";
1
+ import { t as EventCategory } from "./event-category-CIa_iT6b.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,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  */
15
15
  EventCategory["SystemRestartCompleted"] = "system.restart-completed";
16
16
  /**
17
+ * The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
18
+ * Emitted only when the material on disk actually changed, so an
19
+ * operator who trusted the old certificate by hand is told rather than
20
+ * discovering it as a browser error. Payload `TlsCertChangedPayload`.
21
+ *
22
+ * Rule: docs/decisions/adr-0227-*.md
23
+ */
24
+ EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
25
+ /**
17
26
  * A newer addon or server-root package version was found by the
18
27
  * authoritative registry check. Emitted once when any observed
19
28
  * `latestVersion` changes (or a package/node first appears behind);
@@ -14,6 +14,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  */
15
15
  EventCategory["SystemRestartCompleted"] = "system.restart-completed";
16
16
  /**
17
+ * The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
18
+ * Emitted only when the material on disk actually changed, so an
19
+ * operator who trusted the old certificate by hand is told rather than
20
+ * discovering it as a browser error. Payload `TlsCertChangedPayload`.
21
+ *
22
+ * Rule: docs/decisions/adr-0227-*.md
23
+ */
24
+ EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
25
+ /**
17
26
  * A newer addon or server-root package version was found by the
18
27
  * authoritative registry check. Emitted once when any observed
19
28
  * `latestVersion` changes (or a package/node first appears behind);
@@ -3613,6 +3613,41 @@ export type AppRouter = TrpcCoreRouter<{
3613
3613
  output: z.infer<typeof localNetworkCapability.methods.resetAllowlistToBestMatch.output>;
3614
3614
  meta: object;
3615
3615
  }>;
3616
+ getTlsStatus: TRPCQueryProcedure<{
3617
+ input: {
3618
+ nodeId?: string | undefined;
3619
+ } | undefined;
3620
+ output: z.infer<typeof localNetworkCapability.methods.getTlsStatus.output>;
3621
+ meta: object;
3622
+ }>;
3623
+ regenerateCertificate: TRPCMutationProcedure<{
3624
+ input: {
3625
+ [x: string]: unknown;
3626
+ } & z.input<typeof localNetworkCapability.methods.regenerateCertificate.input>;
3627
+ output: z.infer<typeof localNetworkCapability.methods.regenerateCertificate.output>;
3628
+ meta: object;
3629
+ }>;
3630
+ uploadCertificate: TRPCMutationProcedure<{
3631
+ input: {
3632
+ [x: string]: unknown;
3633
+ } & z.input<typeof localNetworkCapability.methods.uploadCertificate.input>;
3634
+ output: z.infer<typeof localNetworkCapability.methods.uploadCertificate.output>;
3635
+ meta: object;
3636
+ }>;
3637
+ downloadCa: TRPCQueryProcedure<{
3638
+ input: {
3639
+ nodeId?: string | undefined;
3640
+ } | undefined;
3641
+ output: z.infer<typeof localNetworkCapability.methods.downloadCa.output>;
3642
+ meta: object;
3643
+ }>;
3644
+ revertToGeneratedCertificate: TRPCMutationProcedure<{
3645
+ input: {
3646
+ nodeId?: string | undefined;
3647
+ } | undefined;
3648
+ output: z.infer<typeof localNetworkCapability.methods.revertToGeneratedCertificate.output>;
3649
+ meta: object;
3650
+ }>;
3616
3651
  }>>;
3617
3652
  lockControl: TRPCBuiltRouter<{
3618
3653
  ctx: TrpcContext;
@@ -7611,6 +7646,13 @@ export type AppRouter = TrpcCoreRouter<{
7611
7646
  output: z.infer<typeof terminalSessionCapability.methods.createInstance.output>;
7612
7647
  meta: object;
7613
7648
  }>;
7649
+ updateInstance: TRPCMutationProcedure<{
7650
+ input: {
7651
+ [x: string]: unknown;
7652
+ } & z.input<typeof terminalSessionCapability.methods.updateInstance.input>;
7653
+ output: z.infer<typeof terminalSessionCapability.methods.updateInstance.output>;
7654
+ meta: object;
7655
+ }>;
7614
7656
  deleteInstance: TRPCMutationProcedure<{
7615
7657
  input: {
7616
7658
  [x: string]: unknown;
@@ -6,7 +6,7 @@
6
6
  * scope+access check inside `protectedProcedure` (see
7
7
  * `server/backend/src/api/trpc/trpc.middleware.ts`).
8
8
  *
9
- * Coverage: 943 method paths across 123 capabilities.
9
+ * Coverage: 949 method paths across 123 capabilities.
10
10
  */
11
11
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
12
12
  export interface MethodAccessRecord {
@@ -74,7 +74,7 @@ export interface SystemProxy {
74
74
  readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'removeSample' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
75
75
  readonly integrations: Pick<InferProvider<typeof integrationsCapability>, 'list' | 'get' | 'getByAddonId' | 'create' | 'update' | 'delete' | 'getSettings' | 'setSettings' | 'getAvailableTypes' | 'testConnection'>;
76
76
  readonly llm: Pick<InferProvider<typeof llmCapability>, 'generate' | 'generateVision' | 'cancel' | 'listProfileKinds' | 'listProfiles' | 'upsertProfile' | 'deleteProfile' | 'testProfile' | 'listModels' | 'getDefaults' | 'setDefault' | 'getUsage' | 'listModelCatalog' | 'listRuntimeNodes' | 'listNodeModels' | 'resolveModelRef' | 'installModel' | 'deleteModel' | 'getRuntimeStatus' | 'startRuntime' | 'stopRuntime'>;
77
- readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getNotificationEndpoint' | 'setNotificationEndpoint' | 'getAllowedAddresses' | 'setAllowedAddresses' | 'resetAllowlistToBestMatch'>;
77
+ readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getNotificationEndpoint' | 'setNotificationEndpoint' | 'getAllowedAddresses' | 'setAllowedAddresses' | 'resetAllowlistToBestMatch' | 'getTlsStatus' | 'regenerateCertificate' | 'uploadCertificate' | 'downloadCa' | 'revertToGeneratedCertificate'>;
78
78
  readonly meshNetwork: Pick<InferProvider<typeof meshNetworkCapability>, 'getStatus' | 'join' | 'startLogin' | 'leave' | 'logout' | 'listPeers' | 'testConnection'>;
79
79
  readonly metricsProvider: Pick<InferProvider<typeof metricsProviderCapability>, 'collectSnapshot' | 'getCached' | 'getCurrent' | 'getDiskSpace' | 'getGpuInfo' | 'getCpuTemperature' | 'getProcessStats' | 'listAddonInstances' | 'getAddonStats' | 'listNodeProcesses' | 'killProcess' | 'dumpHeapSnapshot'>;
80
80
  readonly mqttBroker: Pick<InferProvider<typeof mqttBrokerCapability>, 'listBrokers' | 'getBrokerConfig' | 'addBroker' | 'removeBroker' | 'testConnection' | 'startEmbeddedBroker' | 'stopEmbeddedBroker' | 'getStatus'>;
@@ -95,7 +95,7 @@ export interface SystemProxy {
95
95
  readonly storageMigration: Pick<InferProvider<typeof storageMigrationCapability>, 'plan' | 'start' | 'status' | 'cancel'>;
96
96
  readonly streamBroker: Pick<InferProvider<typeof streamBrokerCapability>, 'fetchEventMedia' | 'listAllCameraStreams' | 'listAllProfileSlots' | 'getBrokerStats' | 'probeStream' | 'listClients' | 'killClient' | 'getStreamUrl' | 'getStreamWithCodec' | 'releaseStreamWithCodec' | 'acquireEgressTranscode' | 'releaseEgressTranscode' | 'subscribeAudioChunks' | 'pullAudioChunks' | 'unsubscribeAudioChunks' | 'subscribeFrames' | 'pullFrameHandles' | 'unsubscribeFrames' | 'setPreBufferDuration' | 'getPreBufferInfo' | 'getRtspPort' | 'getAllRtspEntries' | 'getRtspEntry' | 'regenerateRtspToken' | 'setRtspEnabled' | 'isRtspEnabled'>;
97
97
  readonly system: Pick<InferProvider<typeof systemCapability>, 'info' | 'health' | 'featureFlags' | 'networkAddresses' | 'getRetentionConfig' | 'setRetentionConfig' | 'forceRetentionCleanup' | 'getSiteLocation' | 'setSiteLocation' | 'detectSiteLocation'>;
98
- readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | 'listInstances' | 'createInstance' | 'deleteInstance' | 'setInstanceEnabled' | 'listLegacyCameras' | 'adoptLegacyMonitor' | 'listSessions' | 'openSession' | 'resize' | 'pullOutput' | 'writeInput' | 'close'>;
98
+ readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | 'listInstances' | 'createInstance' | 'updateInstance' | 'deleteInstance' | 'setInstanceEnabled' | 'listLegacyCameras' | 'adoptLegacyMonitor' | 'listSessions' | 'openSession' | 'resize' | 'pullOutput' | 'writeInput' | 'close'>;
99
99
  readonly toast: Pick<InferProvider<typeof toastCapability>, 'onToast'>;
100
100
  readonly turnProvider: Pick<InferProvider<typeof turnProviderCapability>, 'getTurnServers'>;
101
101
  readonly userManagement: Pick<InferProvider<typeof userManagementCapability>, 'listUsers' | 'createUser' | 'updateUser' | 'deleteUser' | 'resetPassword' | 'setUserScopes' | 'validateCredentials' | 'listApiKeys' | 'createApiKey' | 'revokeApiKey' | 'validateApiKey' | 'createScopedToken' | 'revokeScopedToken' | 'validateScopedToken' | 'listScopedTokens' | 'setupTotp' | 'confirmTotp' | 'disableTotp' | 'getTotpStatus' | 'verifyTotp' | 'oauthIssueCode' | 'oauthExchangeCode' | 'oauthRefresh' | 'oauthVerifyAccessToken' | 'listOauthSessions' | 'revokeOauthSession'>;
package/dist/index.d.ts CHANGED
@@ -199,7 +199,7 @@ export { isScheduleActive } from './notification/schedule.js';
199
199
  export { NC_SYSTEM_EVENT_FILTER_KEYS, type NcSystemEventFilterKey, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, } from './notification/system-event-filters.js';
200
200
  export type { TimelapseCadencePair, TimelapsePreviewMode, TimelapseRule, TimelapseRuleInput, TimelapseRulePatch, TimelapseTemplate, } from './notification/timelapse-rule.js';
201
201
  export { assertTimelapseCadences, DEFAULT_TIMELAPSE_PREVIEW_TEXT, readTimelapseGeneratedAt, TIMELAPSE_DENSE_FLOOR_SEC, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, } from './notification/timelapse-rule.js';
202
- export { CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, type ClusterModelScopedStep, type ClusterStepModels, clusterModelSettingKey, DEFAULT_CLUSTER_STEP_MODELS, type HydratedClusterSection, type HydratedClusterView, isClusterScopedStep, pickClusterStepModels, readClusterStepModels, resolveClusterStepModelId, type StepModelScope, } from './pipeline/cluster-model-scope.js';
202
+ export { CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, CLUSTER_STEP_SETTING_FIELDS, type ClusterModelScopedStep, type ClusterStepModels, type ClusterStepSettingField, type ClusterStepSettings, clusterModelSettingKey, clusterStepSettingFieldsFor, clusterStepSettingKey, DEFAULT_CLUSTER_STEP_MODELS, DEFAULT_CLUSTER_STEP_SETTINGS, DEFAULT_MIN_LANDMARK_FACE_SIZE_PX, type HydratedClusterSection, type HydratedClusterView, isClusterScopedStep, overlayClusterStepSettings, pickClusterStepModels, pickClusterStepSettings, readClusterStepModels, readClusterStepSettings, resolveClusterStepModelId, type StepModelScope, } from './pipeline/cluster-model-scope.js';
203
203
  export { DEFAULT_DETAIL_CROP_CONVENTION, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, FULL_IMAGE_BBOX, type DetailCropConvention, DetailCropConventionSchema, type DetailCropRect, deriveDetailCropRect, type HydratedSettingsSection, type HydratedSettingsView, pickDetailCropConvention, readDetailCropConvention, } from './pipeline/detail-crop.js';
204
204
  export { DEFAULT_NATIVE_LEASE_SETTINGS, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, type NativeLeaseAdmission, NativeLeaseAdmissionSchema, type NativeLeaseKnob, type NativeLeaseNumberKnob, type NativeLeaseSettings, type NativeLeaseSettingsOverride, NativeLeaseSettingsSchema, pickNativeLeaseOverride, readNativeLeaseOverride, } from './pipeline/native-lease.js';
205
205
  export { ACCESS_ROLES, type AccessRoleAssignment, type AccessRoleId, type AccessRoleSpec, buildRoleScopes, detectAccessRole, roleSpec, } from './schemas/access-roles.js';