@camstack/types 1.2.327 → 1.2.328

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.
Files changed (71) hide show
  1. package/dist/addon/base-addon.d.ts +58 -0
  2. package/dist/addon/secret-aware-context.d.ts +27 -0
  3. package/dist/addon/secret-paths.d.ts +48 -0
  4. package/dist/addon/secret-settings-view.d.ts +80 -0
  5. package/dist/addon.d.ts +1 -0
  6. package/dist/addon.js +52 -4
  7. package/dist/addon.mjs +27 -5
  8. package/dist/capabilities/addons.cap.d.ts +4 -4
  9. package/dist/capabilities/alerts.cap.d.ts +5 -5
  10. package/dist/capabilities/control.cap.d.ts +11 -11
  11. package/dist/capabilities/day-night.cap.d.ts +8 -8
  12. package/dist/capabilities/device-manager.cap.d.ts +2 -0
  13. package/dist/capabilities/enum-sensor.cap.d.ts +4 -4
  14. package/dist/capabilities/index.d.ts +6 -2
  15. package/dist/capabilities/integrations.cap.d.ts +6 -3
  16. package/dist/capabilities/keychain-admin.cap.d.ts +312 -0
  17. package/dist/capabilities/keychain.cap.d.ts +180 -0
  18. package/dist/capabilities/lawn-mower-control.cap.d.ts +4 -4
  19. package/dist/capabilities/log-channels.cap.d.ts +1 -1
  20. package/dist/capabilities/log-destination.cap.d.ts +5 -5
  21. package/dist/capabilities/notification-rules.cap.d.ts +30 -30
  22. package/dist/capabilities/osd-manager.cap.d.ts +11 -11
  23. package/dist/capabilities/osd.cap.d.ts +5 -5
  24. package/dist/capabilities/pipeline-analytics.cap.d.ts +996 -118
  25. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +384 -0
  26. package/dist/capabilities/pipeline-runner.cap.d.ts +145 -2
  27. package/dist/capabilities/storage.cap.d.ts +1 -1
  28. package/dist/capabilities/system.cap.d.ts +16 -16
  29. package/dist/capabilities/webrtc-session.cap.d.ts +3 -3
  30. package/dist/client.js +32 -1
  31. package/dist/client.mjs +32 -1
  32. package/dist/device/device-context.d.ts +11 -1
  33. package/dist/device/index.d.ts +1 -1
  34. package/dist/enums/event-category.d.ts +7 -0
  35. package/dist/enums.js +1 -1
  36. package/dist/enums.mjs +1 -1
  37. package/dist/{event-category-CtBAl88K.js → event-category-CHduMGvg.js} +7 -0
  38. package/dist/{event-category-B_0XEcLF.mjs → event-category-DaIZi00R.mjs} +7 -0
  39. package/dist/generated/addon-api.d.ts +254 -0
  40. package/dist/generated/cap-input-defaults.d.ts +1 -1
  41. package/dist/generated/capability-router-map.d.ts +8 -2
  42. package/dist/generated/method-access-map.d.ts +1 -1
  43. package/dist/generated/method-device-selectors.d.ts +1 -1
  44. package/dist/generated/system-proxy.d.ts +4 -2
  45. package/dist/health/wiring-health.d.ts +8 -8
  46. package/dist/index.d.ts +6 -2
  47. package/dist/index.js +1736 -101
  48. package/dist/index.mjs +1625 -98
  49. package/dist/interfaces/addon.d.ts +25 -0
  50. package/dist/interfaces/config-ui-secrets.d.ts +12 -0
  51. package/dist/interfaces/config-ui.d.ts +29 -1
  52. package/dist/interfaces/event-bus.d.ts +11 -0
  53. package/dist/interfaces/pipeline-runner-capability.d.ts +18 -0
  54. package/dist/keychain/index.d.ts +5 -0
  55. package/dist/keychain/known-secrets.d.ts +31 -0
  56. package/dist/keychain/resolve-secret-views.d.ts +2 -0
  57. package/dist/keychain/secret-marker.d.ts +52 -0
  58. package/dist/keychain/secret-ref.d.ts +62 -0
  59. package/dist/keychain/secrets-access.d.ts +77 -0
  60. package/dist/logging/log-channel.d.ts +2 -2
  61. package/dist/pipeline/auto-tune/plan-schemas.d.ts +123 -0
  62. package/dist/pipeline/auto-tune/recommend.d.ts +26 -1
  63. package/dist/pipeline/load-balancing/schemas.d.ts +8 -7
  64. package/dist/pipeline/node-benchmark/benchmark-mode.d.ts +57 -0
  65. package/dist/pipeline/node-benchmark/index.d.ts +9 -0
  66. package/dist/pipeline/node-benchmark/results.d.ts +52 -0
  67. package/dist/pipeline/node-benchmark/schemas.d.ts +848 -0
  68. package/dist/pipeline/node-benchmark/step-tree.d.ts +23 -0
  69. package/dist/{sleep-B0JG7-_F.mjs → sleep-Cr5YOk3m.mjs} +1335 -121
  70. package/dist/{sleep-az1qiFzK.js → sleep-i3kl-0Na.js} +1575 -121
  71. package/package.json +1 -1
@@ -0,0 +1,180 @@
1
+ import { z } from 'zod';
2
+ import { type InferProvider } from './capability-definition.js';
3
+ /**
4
+ * `keychain` — the hub's encrypted store of secret values (D787).
5
+ *
6
+ * Settings blobs never hold a secret: they hold a marker
7
+ * `{"$secret":"secret://<owner>/<scope>/<fieldPath>","v":1}` and the value
8
+ * lives here, AES-256-GCM under a data key that a master key wraps. This cap
9
+ * is the OWNER's door to its own values: every method is owner-checked
10
+ * against the CALLER, never against anything the caller claims.
11
+ *
12
+ * Who the caller is: the transport stamps `callerAddonId` into the args of a
13
+ * call that crossed a process (the parent `LocalChildRegistry` from the UDS
14
+ * connection, the agent from its child's connection carried in
15
+ * `$hub-cap-fwd`'s envelope). A stamp always overwrites; a wire call with no
16
+ * stamp has its claim stripped. Only a hub in-process caller may state its own
17
+ * identity — `ctx.secrets` does that with the addon id closed over. This is
18
+ * identity against BUGS and misrouting, not against a malicious addon (every
19
+ * runner is the same OS user): see the threat model in
20
+ * `docs/design/2026-10-08-secrets-keychain.md`.
21
+ *
22
+ * `callerAddonId` is deliberately NOT in any input schema: the tRPC router
23
+ * parses the input, so a session can never supply it, and the internal mount
24
+ * floors every method to admin anyway (D240).
25
+ *
26
+ * Internal: addons reach it through `ctx.secrets`, never directly.
27
+ */
28
+ /** Why a value cannot be served right now. Never folded into "missing". */
29
+ export declare const KeychainUnavailableReasonSchema: z.ZodEnum<{
30
+ "key-missing": "key-missing";
31
+ "wrong-key": "wrong-key";
32
+ "key-file-unreadable": "key-file-unreadable";
33
+ "store-unavailable": "store-unavailable";
34
+ "not-initialized": "not-initialized";
35
+ "decrypt-failed": "decrypt-failed";
36
+ }>;
37
+ export type KeychainUnavailableReason = z.infer<typeof KeychainUnavailableReasonSchema>;
38
+ export declare const KeychainStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
39
+ state: z.ZodLiteral<"ready">;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ state: z.ZodLiteral<"locked">;
42
+ reason: z.ZodEnum<{
43
+ "key-missing": "key-missing";
44
+ "wrong-key": "wrong-key";
45
+ "key-file-unreadable": "key-file-unreadable";
46
+ "store-unavailable": "store-unavailable";
47
+ "not-initialized": "not-initialized";
48
+ "decrypt-failed": "decrypt-failed";
49
+ }>;
50
+ }, z.core.$strip>], "state">;
51
+ export type KeychainState = z.infer<typeof KeychainStateSchema>;
52
+ export declare const KeychainResolveEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
53
+ kind: z.ZodLiteral<"value">;
54
+ value: z.ZodString;
55
+ version: z.ZodNumber;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ kind: z.ZodLiteral<"missing">;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ kind: z.ZodLiteral<"unavailable">;
60
+ reason: z.ZodEnum<{
61
+ "key-missing": "key-missing";
62
+ "wrong-key": "wrong-key";
63
+ "key-file-unreadable": "key-file-unreadable";
64
+ "store-unavailable": "store-unavailable";
65
+ "not-initialized": "not-initialized";
66
+ "decrypt-failed": "decrypt-failed";
67
+ }>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ kind: z.ZodLiteral<"forbidden">;
70
+ }, z.core.$strip>], "kind">;
71
+ export type KeychainResolveEntry = z.infer<typeof KeychainResolveEntrySchema>;
72
+ export declare const KeychainResolveResultSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
73
+ kind: z.ZodLiteral<"value">;
74
+ value: z.ZodString;
75
+ version: z.ZodNumber;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ kind: z.ZodLiteral<"missing">;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ kind: z.ZodLiteral<"unavailable">;
80
+ reason: z.ZodEnum<{
81
+ "key-missing": "key-missing";
82
+ "wrong-key": "wrong-key";
83
+ "key-file-unreadable": "key-file-unreadable";
84
+ "store-unavailable": "store-unavailable";
85
+ "not-initialized": "not-initialized";
86
+ "decrypt-failed": "decrypt-failed";
87
+ }>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ kind: z.ZodLiteral<"forbidden">;
90
+ }, z.core.$strip>], "kind">>;
91
+ export type KeychainResolveResult = z.infer<typeof KeychainResolveResultSchema>;
92
+ /** Metadata of one stored value — never the value. */
93
+ export declare const KeychainSecretMetaSchema: z.ZodObject<{
94
+ ref: z.ZodString;
95
+ owner: z.ZodString;
96
+ scope: z.ZodString;
97
+ fieldPath: z.ZodString;
98
+ version: z.ZodNumber;
99
+ createdAt: z.ZodNumber;
100
+ updatedAt: z.ZodNumber;
101
+ updatedBy: z.ZodString;
102
+ lastReadAt: z.ZodNullable<z.ZodNumber>;
103
+ }, z.core.$strip>;
104
+ export type KeychainSecretMeta = z.infer<typeof KeychainSecretMetaSchema>;
105
+ /** A batch bound: one `resolveConfig` resolves every marker of one blob at once. */
106
+ export declare const KEYCHAIN_MAX_REFS_PER_CALL = 512;
107
+ export declare const keychainCapability: {
108
+ readonly name: "keychain";
109
+ readonly scope: "system";
110
+ readonly mode: "singleton";
111
+ readonly internal: true;
112
+ readonly methods: {
113
+ /** Store (or replace) the caller's value at `ref`. Refused while locked. */
114
+ readonly put: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
115
+ ref: z.ZodString;
116
+ value: z.ZodString;
117
+ }, z.core.$strip>, z.ZodObject<{
118
+ ref: z.ZodString;
119
+ version: z.ZodNumber;
120
+ }, z.core.$strip>, "mutation">;
121
+ /**
122
+ * Resolve the caller's refs in one round-trip. A locked keychain answers
123
+ * `unavailable` per ref — never `missing`, never an empty value.
124
+ */
125
+ readonly resolve: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
126
+ refs: z.ZodArray<z.ZodString>;
127
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
128
+ kind: z.ZodLiteral<"value">;
129
+ value: z.ZodString;
130
+ version: z.ZodNumber;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ kind: z.ZodLiteral<"missing">;
133
+ }, z.core.$strip>, z.ZodObject<{
134
+ kind: z.ZodLiteral<"unavailable">;
135
+ reason: z.ZodEnum<{
136
+ "key-missing": "key-missing";
137
+ "wrong-key": "wrong-key";
138
+ "key-file-unreadable": "key-file-unreadable";
139
+ "store-unavailable": "store-unavailable";
140
+ "not-initialized": "not-initialized";
141
+ "decrypt-failed": "decrypt-failed";
142
+ }>;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ kind: z.ZodLiteral<"forbidden">;
145
+ }, z.core.$strip>], "kind">>, import("./capability-definition.js").CapabilityMethodKind>;
146
+ /** Remove the caller's refs. Unknown refs are ignored. */
147
+ readonly delete: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
148
+ refs: z.ZodArray<z.ZodString>;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ deleted: z.ZodNumber;
151
+ }, z.core.$strip>, "mutation">;
152
+ /** The caller's own refs, metadata only. */
153
+ readonly listMeta: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
154
+ ref: z.ZodString;
155
+ owner: z.ZodString;
156
+ scope: z.ZodString;
157
+ fieldPath: z.ZodString;
158
+ version: z.ZodNumber;
159
+ createdAt: z.ZodNumber;
160
+ updatedAt: z.ZodNumber;
161
+ updatedBy: z.ZodString;
162
+ lastReadAt: z.ZodNullable<z.ZodNumber>;
163
+ }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
164
+ /** Whether values can be served — the save path refuses a write while locked. */
165
+ readonly getState: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
166
+ state: z.ZodLiteral<"ready">;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ state: z.ZodLiteral<"locked">;
169
+ reason: z.ZodEnum<{
170
+ "key-missing": "key-missing";
171
+ "wrong-key": "wrong-key";
172
+ "key-file-unreadable": "key-file-unreadable";
173
+ "store-unavailable": "store-unavailable";
174
+ "not-initialized": "not-initialized";
175
+ "decrypt-failed": "decrypt-failed";
176
+ }>;
177
+ }, z.core.$strip>], "state">, import("./capability-definition.js").CapabilityMethodKind>;
178
+ };
179
+ };
180
+ export type IKeychainProvider = InferProvider<typeof keychainCapability>;
@@ -22,8 +22,8 @@ export declare const LawnMowerActivitySchema: z.ZodEnum<{
22
22
  export type LawnMowerActivity = z.infer<typeof LawnMowerActivitySchema>;
23
23
  /** Severity of the current device/error code — info (status), warning, error. */
24
24
  export declare const DeviceCodeSeveritySchema: z.ZodEnum<{
25
- error: "error";
26
25
  info: "info";
26
+ error: "error";
27
27
  warning: "warning";
28
28
  }>;
29
29
  export type DeviceCodeSeverity = z.infer<typeof DeviceCodeSeveritySchema>;
@@ -40,8 +40,8 @@ export declare const LawnMowerControlStatusSchema: z.ZodObject<{
40
40
  currentCode: z.ZodNullable<z.ZodNumber>;
41
41
  currentCodeLabel: z.ZodNullable<z.ZodString>;
42
42
  severity: z.ZodEnum<{
43
- error: "error";
44
43
  info: "info";
44
+ error: "error";
45
45
  warning: "warning";
46
46
  }>;
47
47
  lastChangedAt: z.ZodNumber;
@@ -78,8 +78,8 @@ export declare const lawnMowerControlCapability: {
78
78
  currentCode: z.ZodNullable<z.ZodNumber>;
79
79
  currentCodeLabel: z.ZodNullable<z.ZodString>;
80
80
  severity: z.ZodEnum<{
81
- error: "error";
82
81
  info: "info";
82
+ error: "error";
83
83
  warning: "warning";
84
84
  }>;
85
85
  lastChangedAt: z.ZodNumber;
@@ -103,8 +103,8 @@ export declare const lawnMowerControlCapability: {
103
103
  currentCode: z.ZodNullable<z.ZodNumber>;
104
104
  currentCodeLabel: z.ZodNullable<z.ZodString>;
105
105
  severity: z.ZodEnum<{
106
- error: "error";
107
106
  info: "info";
107
+ error: "error";
108
108
  warning: "warning";
109
109
  }>;
110
110
  lastChangedAt: z.ZodNumber;
@@ -57,8 +57,8 @@ export declare const logChannelsCapability: {
57
57
  name: z.ZodString;
58
58
  description: z.ZodString;
59
59
  defaultLevel: z.ZodEnum<{
60
- error: "error";
61
60
  info: "info";
61
+ error: "error";
62
62
  warn: "warn";
63
63
  }>;
64
64
  perDevice: z.ZodBoolean;
@@ -1,17 +1,17 @@
1
1
  import { z } from 'zod';
2
2
  import { type InferProvider } from './capability-definition.js';
3
3
  declare const LogLevelSchema: z.ZodEnum<{
4
+ info: "info";
4
5
  error: "error";
5
6
  debug: "debug";
6
- info: "info";
7
7
  warn: "warn";
8
8
  }>;
9
9
  declare const LogEntrySchema: z.ZodObject<{
10
10
  timestamp: z.ZodDate;
11
11
  level: z.ZodEnum<{
12
+ info: "info";
12
13
  error: "error";
13
14
  debug: "debug";
14
- info: "info";
15
15
  warn: "warn";
16
16
  }>;
17
17
  scope: z.ZodArray<z.ZodString>;
@@ -28,9 +28,9 @@ export declare const logDestinationCapability: {
28
28
  readonly write: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
29
29
  timestamp: z.ZodDate;
30
30
  level: z.ZodEnum<{
31
+ info: "info";
31
32
  error: "error";
32
33
  debug: "debug";
33
- info: "info";
34
34
  warn: "warn";
35
35
  }>;
36
36
  scope: z.ZodArray<z.ZodString>;
@@ -41,9 +41,9 @@ export declare const logDestinationCapability: {
41
41
  readonly query: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
42
42
  scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
43
  level: z.ZodOptional<z.ZodEnum<{
44
+ info: "info";
44
45
  error: "error";
45
46
  debug: "debug";
46
- info: "info";
47
47
  warn: "warn";
48
48
  }>>;
49
49
  since: z.ZodOptional<z.ZodDate>;
@@ -53,9 +53,9 @@ export declare const logDestinationCapability: {
53
53
  }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
54
54
  timestamp: z.ZodDate;
55
55
  level: z.ZodEnum<{
56
+ info: "info";
56
57
  error: "error";
57
58
  debug: "debug";
58
- info: "info";
59
59
  warn: "warn";
60
60
  }>;
61
61
  scope: z.ZodArray<z.ZodString>;