@agentdock/wire 0.0.94 → 0.0.96

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 (73) hide show
  1. package/dist/accountLanguage.d.ts +2 -8
  2. package/dist/activityPreferences.d.ts +0 -2
  3. package/dist/agentCapabilities.d.ts +16 -46
  4. package/dist/agentCommonEnv.d.ts +0 -9
  5. package/dist/agentInstallGuide.d.ts +0 -7
  6. package/dist/agentRuntimeSettings.d.ts +1 -2
  7. package/dist/bgTask.d.ts +13 -24
  8. package/dist/checkpointSchemas.d.ts +1 -2
  9. package/dist/controlLevel.d.ts +1 -9
  10. package/dist/edition.d.ts +0 -1
  11. package/dist/enterpriseCurrency.d.ts +120 -0
  12. package/dist/enterpriseCurrency.js +1 -0
  13. package/dist/enterpriseDirectory.d.ts +636 -0
  14. package/dist/enterpriseDirectory.js +1 -0
  15. package/dist/enterpriseGateway.d.ts +1 -2
  16. package/dist/enterpriseGatewayExports.d.ts +4 -0
  17. package/dist/enterpriseGatewayExports.js +1 -0
  18. package/dist/enterpriseOverview.d.ts +423 -0
  19. package/dist/enterpriseOverview.js +1 -0
  20. package/dist/enterprisePolicy.d.ts +1393 -0
  21. package/dist/enterprisePolicy.js +1 -0
  22. package/dist/enterprisePolicyExports.d.ts +2 -0
  23. package/dist/enterprisePolicyExports.js +1 -0
  24. package/dist/enterpriseRange.d.ts +19 -0
  25. package/dist/enterpriseRange.js +1 -0
  26. package/dist/enterpriseRuntime.d.ts +420 -0
  27. package/dist/enterpriseRuntime.js +1 -0
  28. package/dist/envelope.d.ts +18 -30
  29. package/dist/errorMessage.d.ts +0 -1
  30. package/dist/events.d.ts +55 -71
  31. package/dist/features.d.ts +14 -29
  32. package/dist/feedback.d.ts +3 -4
  33. package/dist/fileWhitelist.d.ts +7 -39
  34. package/dist/gateway.d.ts +1643 -328
  35. package/dist/gateway.js +1 -1
  36. package/dist/gatewayBodyRetention.d.ts +149 -0
  37. package/dist/gatewayBodyRetention.js +2 -0
  38. package/dist/gatewayUsage.d.ts +3232 -0
  39. package/dist/gatewayUsage.js +1 -0
  40. package/dist/goals.d.ts +0 -1
  41. package/dist/handoffBrief.d.ts +1 -2
  42. package/dist/inboundEvents.d.ts +32 -75
  43. package/dist/index.d.ts +11 -7
  44. package/dist/index.js +1 -1
  45. package/dist/interactionEvents.d.ts +49 -57
  46. package/dist/legacyProtocol.d.ts +0 -6
  47. package/dist/license.d.ts +36 -37
  48. package/dist/machine.d.ts +48 -56
  49. package/dist/messageMeta.d.ts +15 -17
  50. package/dist/messages.d.ts +13 -20
  51. package/dist/notification.d.ts +2 -3
  52. package/dist/ops.d.ts +9 -27
  53. package/dist/pairing.d.ts +9 -49
  54. package/dist/permissionSubject.d.ts +3 -26
  55. package/dist/protocol.d.ts +0 -6
  56. package/dist/rpc.d.ts +118 -162
  57. package/dist/rpc.js +1 -1
  58. package/dist/scheduledTasks.d.ts +9 -10
  59. package/dist/semver.d.ts +3 -22
  60. package/dist/sessionBtw.d.ts +6 -7
  61. package/dist/sessionBtw.js +1 -1
  62. package/dist/sessionResult.d.ts +21 -27
  63. package/dist/sessionTitle.d.ts +2 -9
  64. package/dist/socketEvents.d.ts +4 -5
  65. package/dist/sourceMetadata.d.ts +1 -14
  66. package/dist/spawnError.d.ts +7 -14
  67. package/dist/stats.d.ts +13 -20
  68. package/dist/sync.d.ts +75 -156
  69. package/dist/taskResult.d.ts +3 -20
  70. package/dist/telemetry.d.ts +1 -11
  71. package/dist/utils.d.ts +0 -1
  72. package/dist/workItems.d.ts +6 -30
  73. package/package.json +1 -1
@@ -1,11 +1,5 @@
1
- /**
2
- * Interaction event schemas for bidirectional communication.
3
- *
4
- * Event types: question, permission-request, answer.
5
- * RPC params: answer-question, approve-permission, deny-permission.
6
- */
7
1
  import { z } from 'zod';
8
- /** Option for structured (multiple-choice) questions. */
2
+
9
3
  export declare const QuestionOptionSchema: z.ZodObject<{
10
4
  label: z.ZodString;
11
5
  description: z.ZodDefault<z.ZodString>;
@@ -17,15 +11,15 @@ export declare const QuestionOptionSchema: z.ZodObject<{
17
11
  description: z.ZodDefault<z.ZodString>;
18
12
  }, z.ZodTypeAny, "passthrough">>;
19
13
  export type QuestionOption = z.infer<typeof QuestionOptionSchema>;
20
- /** Agent asks the user a question. */
14
+
21
15
  export declare const SessionQuestionEventSchema: z.ZodObject<{
22
16
  t: z.ZodLiteral<"question">;
23
17
  requestId: z.ZodString;
24
18
  text: z.ZodString;
25
19
  questionType: z.ZodDefault<z.ZodEnum<["free-text", "yes-no", "single-select", "multi-select"]>>;
26
- /** Header/category chip for structured questions. */
20
+
27
21
  header: z.ZodOptional<z.ZodString>;
28
- /** Options for single-select / multi-select questions. */
22
+
29
23
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
30
24
  label: z.ZodString;
31
25
  description: z.ZodDefault<z.ZodString>;
@@ -36,16 +30,16 @@ export declare const SessionQuestionEventSchema: z.ZodObject<{
36
30
  label: z.ZodString;
37
31
  description: z.ZodDefault<z.ZodString>;
38
32
  }, z.ZodTypeAny, "passthrough">>, "many">>;
39
- /** Whether multiple options can be selected. */
33
+
40
34
  multiSelect: z.ZodOptional<z.ZodBoolean>;
41
35
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
42
36
  t: z.ZodLiteral<"question">;
43
37
  requestId: z.ZodString;
44
38
  text: z.ZodString;
45
39
  questionType: z.ZodDefault<z.ZodEnum<["free-text", "yes-no", "single-select", "multi-select"]>>;
46
- /** Header/category chip for structured questions. */
40
+
47
41
  header: z.ZodOptional<z.ZodString>;
48
- /** Options for single-select / multi-select questions. */
42
+
49
43
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
44
  label: z.ZodString;
51
45
  description: z.ZodDefault<z.ZodString>;
@@ -56,16 +50,16 @@ export declare const SessionQuestionEventSchema: z.ZodObject<{
56
50
  label: z.ZodString;
57
51
  description: z.ZodDefault<z.ZodString>;
58
52
  }, z.ZodTypeAny, "passthrough">>, "many">>;
59
- /** Whether multiple options can be selected. */
53
+
60
54
  multiSelect: z.ZodOptional<z.ZodBoolean>;
61
55
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
62
56
  t: z.ZodLiteral<"question">;
63
57
  requestId: z.ZodString;
64
58
  text: z.ZodString;
65
59
  questionType: z.ZodDefault<z.ZodEnum<["free-text", "yes-no", "single-select", "multi-select"]>>;
66
- /** Header/category chip for structured questions. */
60
+
67
61
  header: z.ZodOptional<z.ZodString>;
68
- /** Options for single-select / multi-select questions. */
62
+
69
63
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
64
  label: z.ZodString;
71
65
  description: z.ZodDefault<z.ZodString>;
@@ -76,10 +70,10 @@ export declare const SessionQuestionEventSchema: z.ZodObject<{
76
70
  label: z.ZodString;
77
71
  description: z.ZodDefault<z.ZodString>;
78
72
  }, z.ZodTypeAny, "passthrough">>, "many">>;
79
- /** Whether multiple options can be selected. */
73
+
80
74
  multiSelect: z.ZodOptional<z.ZodBoolean>;
81
75
  }, z.ZodTypeAny, "passthrough">>;
82
- /** Agent requests tool execution approval. */
76
+
83
77
  export declare const SessionPermissionRequestEventSchema: z.ZodObject<{
84
78
  t: z.ZodLiteral<"permission-request">;
85
79
  requestId: z.ZodString;
@@ -102,7 +96,7 @@ export declare const SessionPermissionRequestEventSchema: z.ZodObject<{
102
96
  args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
103
97
  description: z.ZodDefault<z.ZodString>;
104
98
  }, z.ZodTypeAny, "passthrough">>;
105
- /** User's answer to a question or acknowledgement. */
99
+
106
100
  export declare const SessionAnswerEventSchema: z.ZodObject<{
107
101
  t: z.ZodLiteral<"answer">;
108
102
  requestId: z.ZodString;
@@ -116,32 +110,32 @@ export declare const SessionAnswerEventSchema: z.ZodObject<{
116
110
  requestId: z.ZodString;
117
111
  text: z.ZodString;
118
112
  }, z.ZodTypeAny, "passthrough">>;
119
- /** How a permission was resolved — persisted in envelope stream for history replay. */
113
+
120
114
  export declare const PermissionActionSchema: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
121
- /** Records the user's decision on a permission request (sent immediately after resolution). */
115
+
122
116
  export declare const SessionPermissionResolvedEventSchema: z.ZodObject<{
123
117
  t: z.ZodLiteral<"permission-resolved">;
124
118
  requestId: z.ZodString;
125
119
  action: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
126
- /** Optional feedback from user explaining why permission was denied. */
120
+
127
121
  reason: z.ZodOptional<z.ZodString>;
128
- /** Optional tool whitelist entries (e.g. ['Bash(git:)']). Used for display. */
122
+
129
123
  allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
124
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
131
125
  t: z.ZodLiteral<"permission-resolved">;
132
126
  requestId: z.ZodString;
133
127
  action: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
134
- /** Optional feedback from user explaining why permission was denied. */
128
+
135
129
  reason: z.ZodOptional<z.ZodString>;
136
- /** Optional tool whitelist entries (e.g. ['Bash(git:)']). Used for display. */
130
+
137
131
  allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
138
132
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
139
133
  t: z.ZodLiteral<"permission-resolved">;
140
134
  requestId: z.ZodString;
141
135
  action: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
142
- /** Optional feedback from user explaining why permission was denied. */
136
+
143
137
  reason: z.ZodOptional<z.ZodString>;
144
- /** Optional tool whitelist entries (e.g. ['Bash(git:)']). Used for display. */
138
+
145
139
  allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
146
140
  }, z.ZodTypeAny, "passthrough">>;
147
141
  export type SessionQuestionEvent = z.infer<typeof SessionQuestionEventSchema>;
@@ -149,56 +143,56 @@ export type SessionPermissionRequestEvent = z.infer<typeof SessionPermissionRequ
149
143
  export type SessionAnswerEvent = z.infer<typeof SessionAnswerEventSchema>;
150
144
  export type PermissionAction = z.infer<typeof PermissionActionSchema>;
151
145
  export type SessionPermissionResolvedEvent = z.infer<typeof SessionPermissionResolvedEventSchema>;
152
- /** A single image attachment (base64-encoded, frontend-compressed). */
146
+
153
147
  export declare const ImageAttachmentSchema: z.ZodObject<{
154
- /** Base64-encoded image data (no data URI prefix). */
148
+
155
149
  data: z.ZodString;
156
- /** MIME type: image/jpeg, image/png, image/gif, image/webp. */
150
+
157
151
  mediaType: z.ZodString;
158
152
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
159
- /** Base64-encoded image data (no data URI prefix). */
153
+
160
154
  data: z.ZodString;
161
- /** MIME type: image/jpeg, image/png, image/gif, image/webp. */
155
+
162
156
  mediaType: z.ZodString;
163
157
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
164
- /** Base64-encoded image data (no data URI prefix). */
158
+
165
159
  data: z.ZodString;
166
- /** MIME type: image/jpeg, image/png, image/gif, image/webp. */
160
+
167
161
  mediaType: z.ZodString;
168
162
  }, z.ZodTypeAny, "passthrough">>;
169
163
  export type ImageAttachment = z.infer<typeof ImageAttachmentSchema>;
170
- /** Params for answering a free-text question. */
164
+
171
165
  export declare const AnswerQuestionParamsSchema: z.ZodObject<{
172
166
  sessionId: z.ZodString;
173
167
  requestId: z.ZodOptional<z.ZodString>;
174
168
  text: z.ZodString;
175
- /** Optional image attachments (max 5, each ≤200KB base64 after compression). */
169
+
176
170
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
- /** Base64-encoded image data (no data URI prefix). */
171
+
178
172
  data: z.ZodString;
179
- /** MIME type: image/jpeg, image/png, image/gif, image/webp. */
173
+
180
174
  mediaType: z.ZodString;
181
175
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
182
- /** Base64-encoded image data (no data URI prefix). */
176
+
183
177
  data: z.ZodString;
184
- /** MIME type: image/jpeg, image/png, image/gif, image/webp. */
178
+
185
179
  mediaType: z.ZodString;
186
180
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
187
- /** Base64-encoded image data (no data URI prefix). */
181
+
188
182
  data: z.ZodString;
189
- /** MIME type: image/jpeg, image/png, image/gif, image/webp. */
183
+
190
184
  mediaType: z.ZodString;
191
185
  }, z.ZodTypeAny, "passthrough">>, "many">>;
192
- /** Optional metadata payload (e.g. queue auto-consume context). */
186
+
193
187
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
194
188
  }, "strict", z.ZodTypeAny, {
195
189
  text: string;
196
190
  sessionId: string;
197
191
  requestId?: string | undefined;
198
192
  images?: z.objectOutputType<{
199
- /** Base64-encoded image data (no data URI prefix). */
193
+
200
194
  data: z.ZodString;
201
- /** MIME type: image/jpeg, image/png, image/gif, image/webp. */
195
+
202
196
  mediaType: z.ZodString;
203
197
  }, z.ZodTypeAny, "passthrough">[] | undefined;
204
198
  meta?: Record<string, unknown> | undefined;
@@ -207,29 +201,28 @@ export declare const AnswerQuestionParamsSchema: z.ZodObject<{
207
201
  sessionId: string;
208
202
  requestId?: string | undefined;
209
203
  images?: z.objectInputType<{
210
- /** Base64-encoded image data (no data URI prefix). */
204
+
211
205
  data: z.ZodString;
212
- /** MIME type: image/jpeg, image/png, image/gif, image/webp. */
206
+
213
207
  mediaType: z.ZodString;
214
208
  }, z.ZodTypeAny, "passthrough">[] | undefined;
215
209
  meta?: Record<string, unknown> | undefined;
216
210
  }>;
217
- /** Permission mode for Claude sessions. */
211
+
218
212
  export declare const PermissionModeSchema: z.ZodEnum<["default", "acceptEdits", "auto", "autoEdit", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo", "suggest", "auto-edit", "full-auto", "never", "untrusted", "on-failure", "on-request", "build"]>;
219
213
  export type PermissionModeValue = z.infer<typeof PermissionModeSchema>;
220
- /** Params for approving a tool permission request. */
214
+
221
215
  export declare const ApprovePermissionParamsSchema: z.ZodObject<{
222
216
  sessionId: z.ZodString;
223
217
  requestId: z.ZodString;
224
218
  toolCallId: z.ZodString;
225
- /** Optional mode change (e.g. 'acceptEdits' for "allow all edits this session"). */
219
+
226
220
  mode: z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "auto", "autoEdit", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo", "suggest", "auto-edit", "full-auto", "never", "untrusted", "on-failure", "on-request", "build"]>>;
227
- /** Optional tool whitelist (e.g. ['Bash(git:)'] for "don't ask again"). */
221
+
228
222
  allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
229
- /** Auto-approve all edit tools for the rest of this session — independent
230
- * flag, does NOT change permissionMode. Stored in session metadata. */
223
+
231
224
  autoApproveEdits: z.ZodOptional<z.ZodBoolean>;
232
- /** Sent by web PWA — daemon reads to update permission rules. */
225
+
233
226
  inputOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
234
227
  }, "strict", z.ZodTypeAny, {
235
228
  requestId: string;
@@ -248,12 +241,12 @@ export declare const ApprovePermissionParamsSchema: z.ZodObject<{
248
241
  autoApproveEdits?: boolean | undefined;
249
242
  inputOverrides?: Record<string, unknown> | undefined;
250
243
  }>;
251
- /** Params for denying a tool permission request. */
244
+
252
245
  export declare const DenyPermissionParamsSchema: z.ZodObject<{
253
246
  sessionId: z.ZodString;
254
247
  requestId: z.ZodString;
255
248
  toolCallId: z.ZodString;
256
- /** Optional feedback from user explaining why permission was denied. */
249
+
257
250
  reason: z.ZodOptional<z.ZodString>;
258
251
  }, "strict", z.ZodTypeAny, {
259
252
  requestId: string;
@@ -269,4 +262,3 @@ export declare const DenyPermissionParamsSchema: z.ZodObject<{
269
262
  export type AnswerQuestionParams = z.infer<typeof AnswerQuestionParamsSchema>;
270
263
  export type ApprovePermissionParams = z.infer<typeof ApprovePermissionParamsSchema>;
271
264
  export type DenyPermissionParams = z.infer<typeof DenyPermissionParamsSchema>;
272
- //# sourceMappingURL=interactionEvents.d.ts.map
@@ -1,8 +1,3 @@
1
- /**
2
- * Legacy protocol.
3
- *
4
- * Defines UserMessage and AgentMessage for backward compatibility.
5
- */
6
1
  import { z } from 'zod';
7
2
  export declare const UserMessageSchema: z.ZodObject<{
8
3
  role: z.ZodLiteral<"user">;
@@ -622,4 +617,3 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
622
617
  }, z.ZodTypeAny, "passthrough">>>;
623
618
  }, z.ZodTypeAny, "passthrough">>]>;
624
619
  export type LegacyMessageContent = z.infer<typeof LegacyMessageContentSchema>;
625
- //# sourceMappingURL=legacyProtocol.d.ts.map
package/dist/license.d.ts CHANGED
@@ -8,17 +8,17 @@ export declare const EnterpriseLicenseSchema: z.ZodObject<{
8
8
  maxUsers: z.ZodNumber;
9
9
  suffix: z.ZodString;
10
10
  }, "strip", z.ZodTypeAny, {
11
- licensee: string;
12
- expiresAt: string;
13
- issuedAt: string;
14
11
  edition: "enterprise";
12
+ issuedAt: string;
13
+ expiresAt: string;
14
+ licensee: string;
15
15
  maxUsers: number;
16
16
  suffix: string;
17
17
  }, {
18
- licensee: string;
19
- expiresAt: string;
20
- issuedAt: string;
21
18
  edition: "enterprise";
19
+ issuedAt: string;
20
+ expiresAt: string;
21
+ licensee: string;
22
22
  maxUsers: number;
23
23
  suffix: string;
24
24
  }>;
@@ -30,16 +30,16 @@ export declare const PrivateLicenseSchema: z.ZodObject<{
30
30
  edition: z.ZodLiteral<"personal">;
31
31
  domain: z.ZodString;
32
32
  }, "strip", z.ZodTypeAny, {
33
- licensee: string;
34
- expiresAt: string;
35
- issuedAt: string;
36
33
  edition: "personal";
34
+ issuedAt: string;
35
+ expiresAt: string;
36
+ licensee: string;
37
37
  domain: string;
38
38
  }, {
39
- licensee: string;
40
- expiresAt: string;
41
- issuedAt: string;
42
39
  edition: "personal";
40
+ issuedAt: string;
41
+ expiresAt: string;
42
+ licensee: string;
43
43
  domain: string;
44
44
  }>;
45
45
  export declare const LicensePayloadSchema: z.ZodDiscriminatedUnion<"edition", [z.ZodObject<{
@@ -51,17 +51,17 @@ export declare const LicensePayloadSchema: z.ZodDiscriminatedUnion<"edition", [z
51
51
  maxUsers: z.ZodNumber;
52
52
  suffix: z.ZodString;
53
53
  }, "strip", z.ZodTypeAny, {
54
- licensee: string;
55
- expiresAt: string;
56
- issuedAt: string;
57
54
  edition: "enterprise";
55
+ issuedAt: string;
56
+ expiresAt: string;
57
+ licensee: string;
58
58
  maxUsers: number;
59
59
  suffix: string;
60
60
  }, {
61
- licensee: string;
62
- expiresAt: string;
63
- issuedAt: string;
64
61
  edition: "enterprise";
62
+ issuedAt: string;
63
+ expiresAt: string;
64
+ licensee: string;
65
65
  maxUsers: number;
66
66
  suffix: string;
67
67
  }>, z.ZodObject<{
@@ -72,16 +72,16 @@ export declare const LicensePayloadSchema: z.ZodDiscriminatedUnion<"edition", [z
72
72
  edition: z.ZodLiteral<"personal">;
73
73
  domain: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
- licensee: string;
76
- expiresAt: string;
77
- issuedAt: string;
78
75
  edition: "personal";
76
+ issuedAt: string;
77
+ expiresAt: string;
78
+ licensee: string;
79
79
  domain: string;
80
80
  }, {
81
- licensee: string;
82
- expiresAt: string;
83
- issuedAt: string;
84
81
  edition: "personal";
82
+ issuedAt: string;
83
+ expiresAt: string;
84
+ licensee: string;
85
85
  domain: string;
86
86
  }>]>;
87
87
  export type LicensePayload = z.infer<typeof LicensePayloadSchema>;
@@ -98,18 +98,18 @@ export declare const LicenseFileSchema: z.ZodDiscriminatedUnion<"edition", [z.Zo
98
98
  } & {
99
99
  signature: z.ZodString;
100
100
  }, "strip", z.ZodTypeAny, {
101
- licensee: string;
102
- expiresAt: string;
103
- issuedAt: string;
104
101
  edition: "enterprise";
102
+ issuedAt: string;
103
+ expiresAt: string;
104
+ licensee: string;
105
105
  maxUsers: number;
106
106
  suffix: string;
107
107
  signature: string;
108
108
  }, {
109
- licensee: string;
110
- expiresAt: string;
111
- issuedAt: string;
112
109
  edition: "enterprise";
110
+ issuedAt: string;
111
+ expiresAt: string;
112
+ licensee: string;
113
113
  maxUsers: number;
114
114
  suffix: string;
115
115
  signature: string;
@@ -123,19 +123,18 @@ export declare const LicenseFileSchema: z.ZodDiscriminatedUnion<"edition", [z.Zo
123
123
  } & {
124
124
  signature: z.ZodString;
125
125
  }, "strip", z.ZodTypeAny, {
126
- licensee: string;
127
- expiresAt: string;
128
- issuedAt: string;
129
126
  edition: "personal";
127
+ issuedAt: string;
128
+ expiresAt: string;
129
+ licensee: string;
130
130
  domain: string;
131
131
  signature: string;
132
132
  }, {
133
- licensee: string;
134
- expiresAt: string;
135
- issuedAt: string;
136
133
  edition: "personal";
134
+ issuedAt: string;
135
+ expiresAt: string;
136
+ licensee: string;
137
137
  domain: string;
138
138
  signature: string;
139
139
  }>]>;
140
140
  export type LicenseFile = z.infer<typeof LicenseFileSchema>;
141
- //# sourceMappingURL=license.d.ts.map
package/dist/machine.d.ts CHANGED
@@ -1,10 +1,3 @@
1
- /**
2
- * Machine and session status schemas for Dashboard & Machine Management.
3
- *
4
- * MachineSummary — device info returned by GET /v1/machines.
5
- * SessionStatus — real-time session state indicator.
6
- * Platform — OS platform enum matching Node's process.platform.
7
- */
8
1
  import { z } from 'zod';
9
2
  export declare const PlatformSchema: z.ZodEnum<["darwin", "linux", "win32"]>;
10
3
  export type Platform = z.infer<typeof PlatformSchema>;
@@ -20,35 +13,35 @@ export declare const MachineSummarySchema: z.ZodObject<{
20
13
  active: z.ZodBoolean;
21
14
  activeAt: z.ZodNumber;
22
15
  createdAt: z.ZodNumber;
23
- /** Whether this machine has an active terminal-server tunnel. */
16
+
24
17
  hasTerminal: z.ZodOptional<z.ZodBoolean>;
25
- /** Number of active sessions on this machine. */
18
+
26
19
  activeSessions: z.ZodOptional<z.ZodNumber>;
27
- /** Total number of sessions on this machine. */
20
+
28
21
  totalSessions: z.ZodOptional<z.ZodNumber>;
29
- /** Agent types available on this machine (persisted on each daemon connect). */
22
+
30
23
  availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
- /** Agent versions keyed by agent type name (e.g. { claude: "1.2.3" }). */
24
+
32
25
  agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
33
- /** RPC methods this machine's daemon has registered (RFC-035). */
26
+
34
27
  supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
- /** Why the machine disconnected — 'upgrade-required' triggers UI upgrade prompts (RFC-037). */
28
+
36
29
  disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
37
- /** Current upgrade state reported by the daemon (RFC-042). 'ready' = downloaded, swap pending. */
30
+
38
31
  upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
39
- /** Error message when upgradeStatus is 'failed' (RFC-042). */
32
+
40
33
  upgradeError: z.ZodOptional<z.ZodString>;
41
- /** True when this machine has been replaced by a new one (container rebuild). */
34
+
42
35
  superseded: z.ZodOptional<z.ZodBoolean>;
43
- /** Content derivation version: 0=Happy EnCoder (legacy), 1=CCPark EnCoder. */
36
+
44
37
  derivationVersion: z.ZodOptional<z.ZodNumber>;
45
- /** Whether the user has enabled automatic daemon upgrades when idle. */
38
+
46
39
  autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
47
- /** Whether this machine has a Feishu webhook configured (RFC-067). */
40
+
48
41
  notifyFeishu: z.ZodOptional<z.ZodBoolean>;
49
- /** Whether this machine has a DingTalk webhook configured (RFC-067). */
42
+
50
43
  notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
51
- /** Last daemon heartbeat timestamp (epoch ms). Updated every 30s while connected. */
44
+
52
45
  lastHeartbeat: z.ZodOptional<z.ZodNumber>;
53
46
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
54
47
  id: z.ZodString;
@@ -60,35 +53,35 @@ export declare const MachineSummarySchema: z.ZodObject<{
60
53
  active: z.ZodBoolean;
61
54
  activeAt: z.ZodNumber;
62
55
  createdAt: z.ZodNumber;
63
- /** Whether this machine has an active terminal-server tunnel. */
56
+
64
57
  hasTerminal: z.ZodOptional<z.ZodBoolean>;
65
- /** Number of active sessions on this machine. */
58
+
66
59
  activeSessions: z.ZodOptional<z.ZodNumber>;
67
- /** Total number of sessions on this machine. */
60
+
68
61
  totalSessions: z.ZodOptional<z.ZodNumber>;
69
- /** Agent types available on this machine (persisted on each daemon connect). */
62
+
70
63
  availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
- /** Agent versions keyed by agent type name (e.g. { claude: "1.2.3" }). */
64
+
72
65
  agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
73
- /** RPC methods this machine's daemon has registered (RFC-035). */
66
+
74
67
  supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
- /** Why the machine disconnected — 'upgrade-required' triggers UI upgrade prompts (RFC-037). */
68
+
76
69
  disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
77
- /** Current upgrade state reported by the daemon (RFC-042). 'ready' = downloaded, swap pending. */
70
+
78
71
  upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
79
- /** Error message when upgradeStatus is 'failed' (RFC-042). */
72
+
80
73
  upgradeError: z.ZodOptional<z.ZodString>;
81
- /** True when this machine has been replaced by a new one (container rebuild). */
74
+
82
75
  superseded: z.ZodOptional<z.ZodBoolean>;
83
- /** Content derivation version: 0=Happy EnCoder (legacy), 1=CCPark EnCoder. */
76
+
84
77
  derivationVersion: z.ZodOptional<z.ZodNumber>;
85
- /** Whether the user has enabled automatic daemon upgrades when idle. */
78
+
86
79
  autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
87
- /** Whether this machine has a Feishu webhook configured (RFC-067). */
80
+
88
81
  notifyFeishu: z.ZodOptional<z.ZodBoolean>;
89
- /** Whether this machine has a DingTalk webhook configured (RFC-067). */
82
+
90
83
  notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
91
- /** Last daemon heartbeat timestamp (epoch ms). Updated every 30s while connected. */
84
+
92
85
  lastHeartbeat: z.ZodOptional<z.ZodNumber>;
93
86
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
94
87
  id: z.ZodString;
@@ -100,42 +93,42 @@ export declare const MachineSummarySchema: z.ZodObject<{
100
93
  active: z.ZodBoolean;
101
94
  activeAt: z.ZodNumber;
102
95
  createdAt: z.ZodNumber;
103
- /** Whether this machine has an active terminal-server tunnel. */
96
+
104
97
  hasTerminal: z.ZodOptional<z.ZodBoolean>;
105
- /** Number of active sessions on this machine. */
98
+
106
99
  activeSessions: z.ZodOptional<z.ZodNumber>;
107
- /** Total number of sessions on this machine. */
100
+
108
101
  totalSessions: z.ZodOptional<z.ZodNumber>;
109
- /** Agent types available on this machine (persisted on each daemon connect). */
102
+
110
103
  availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111
- /** Agent versions keyed by agent type name (e.g. { claude: "1.2.3" }). */
104
+
112
105
  agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
113
- /** RPC methods this machine's daemon has registered (RFC-035). */
106
+
114
107
  supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
115
- /** Why the machine disconnected — 'upgrade-required' triggers UI upgrade prompts (RFC-037). */
108
+
116
109
  disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
117
- /** Current upgrade state reported by the daemon (RFC-042). 'ready' = downloaded, swap pending. */
110
+
118
111
  upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
119
- /** Error message when upgradeStatus is 'failed' (RFC-042). */
112
+
120
113
  upgradeError: z.ZodOptional<z.ZodString>;
121
- /** True when this machine has been replaced by a new one (container rebuild). */
114
+
122
115
  superseded: z.ZodOptional<z.ZodBoolean>;
123
- /** Content derivation version: 0=Happy EnCoder (legacy), 1=CCPark EnCoder. */
116
+
124
117
  derivationVersion: z.ZodOptional<z.ZodNumber>;
125
- /** Whether the user has enabled automatic daemon upgrades when idle. */
118
+
126
119
  autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
127
- /** Whether this machine has a Feishu webhook configured (RFC-067). */
120
+
128
121
  notifyFeishu: z.ZodOptional<z.ZodBoolean>;
129
- /** Whether this machine has a DingTalk webhook configured (RFC-067). */
122
+
130
123
  notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
131
- /** Last daemon heartbeat timestamp (epoch ms). Updated every 30s while connected. */
124
+
132
125
  lastHeartbeat: z.ZodOptional<z.ZodNumber>;
133
126
  }, z.ZodTypeAny, "passthrough">>;
134
127
  export type MachineSummary = z.infer<typeof MachineSummarySchema>;
135
128
  export declare const MachineRegisterResultSchema: z.ZodObject<{
136
129
  ok: z.ZodBoolean;
137
130
  error: z.ZodOptional<z.ZodString>;
138
- /** Authenticated account identity, persisted locally for E2EE WorkItem operations. */
131
+
139
132
  accountId: z.ZodOptional<z.ZodString>;
140
133
  latestVersion: z.ZodOptional<z.ZodString>;
141
134
  labsSettings: z.ZodOptional<z.ZodObject<{
@@ -149,7 +142,7 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
149
142
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
150
143
  ok: z.ZodBoolean;
151
144
  error: z.ZodOptional<z.ZodString>;
152
- /** Authenticated account identity, persisted locally for E2EE WorkItem operations. */
145
+
153
146
  accountId: z.ZodOptional<z.ZodString>;
154
147
  latestVersion: z.ZodOptional<z.ZodString>;
155
148
  labsSettings: z.ZodOptional<z.ZodObject<{
@@ -163,7 +156,7 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
163
156
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
164
157
  ok: z.ZodBoolean;
165
158
  error: z.ZodOptional<z.ZodString>;
166
- /** Authenticated account identity, persisted locally for E2EE WorkItem operations. */
159
+
167
160
  accountId: z.ZodOptional<z.ZodString>;
168
161
  latestVersion: z.ZodOptional<z.ZodString>;
169
162
  labsSettings: z.ZodOptional<z.ZodObject<{
@@ -184,4 +177,3 @@ export declare const SetDefaultMachineBodySchema: z.ZodObject<{
184
177
  machineId: string | null;
185
178
  }>;
186
179
  export type SetDefaultMachineBody = z.infer<typeof SetDefaultMachineBodySchema>;
187
- //# sourceMappingURL=machine.d.ts.map