@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.
- package/dist/accountLanguage.d.ts +2 -8
- package/dist/activityPreferences.d.ts +0 -2
- package/dist/agentCapabilities.d.ts +16 -46
- package/dist/agentCommonEnv.d.ts +0 -9
- package/dist/agentInstallGuide.d.ts +0 -7
- package/dist/agentRuntimeSettings.d.ts +1 -2
- package/dist/bgTask.d.ts +13 -24
- package/dist/checkpointSchemas.d.ts +1 -2
- package/dist/controlLevel.d.ts +1 -9
- package/dist/edition.d.ts +0 -1
- package/dist/enterpriseCurrency.d.ts +120 -0
- package/dist/enterpriseCurrency.js +1 -0
- package/dist/enterpriseDirectory.d.ts +636 -0
- package/dist/enterpriseDirectory.js +1 -0
- package/dist/enterpriseGateway.d.ts +1 -2
- package/dist/enterpriseGatewayExports.d.ts +4 -0
- package/dist/enterpriseGatewayExports.js +1 -0
- package/dist/enterpriseOverview.d.ts +423 -0
- package/dist/enterpriseOverview.js +1 -0
- package/dist/enterprisePolicy.d.ts +1393 -0
- package/dist/enterprisePolicy.js +1 -0
- package/dist/enterprisePolicyExports.d.ts +2 -0
- package/dist/enterprisePolicyExports.js +1 -0
- package/dist/enterpriseRange.d.ts +19 -0
- package/dist/enterpriseRange.js +1 -0
- package/dist/enterpriseRuntime.d.ts +420 -0
- package/dist/enterpriseRuntime.js +1 -0
- package/dist/envelope.d.ts +18 -30
- package/dist/errorMessage.d.ts +0 -1
- package/dist/events.d.ts +55 -71
- package/dist/features.d.ts +14 -29
- package/dist/feedback.d.ts +3 -4
- package/dist/fileWhitelist.d.ts +7 -39
- package/dist/gateway.d.ts +1643 -328
- package/dist/gateway.js +1 -1
- package/dist/gatewayBodyRetention.d.ts +149 -0
- package/dist/gatewayBodyRetention.js +2 -0
- package/dist/gatewayUsage.d.ts +3232 -0
- package/dist/gatewayUsage.js +1 -0
- package/dist/goals.d.ts +0 -1
- package/dist/handoffBrief.d.ts +1 -2
- package/dist/inboundEvents.d.ts +32 -75
- package/dist/index.d.ts +11 -7
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +49 -57
- package/dist/legacyProtocol.d.ts +0 -6
- package/dist/license.d.ts +36 -37
- package/dist/machine.d.ts +48 -56
- package/dist/messageMeta.d.ts +15 -17
- package/dist/messages.d.ts +13 -20
- package/dist/notification.d.ts +2 -3
- package/dist/ops.d.ts +9 -27
- package/dist/pairing.d.ts +9 -49
- package/dist/permissionSubject.d.ts +3 -26
- package/dist/protocol.d.ts +0 -6
- package/dist/rpc.d.ts +118 -162
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +9 -10
- package/dist/semver.d.ts +3 -22
- package/dist/sessionBtw.d.ts +6 -7
- package/dist/sessionBtw.js +1 -1
- package/dist/sessionResult.d.ts +21 -27
- package/dist/sessionTitle.d.ts +2 -9
- package/dist/socketEvents.d.ts +4 -5
- package/dist/sourceMetadata.d.ts +1 -14
- package/dist/spawnError.d.ts +7 -14
- package/dist/stats.d.ts +13 -20
- package/dist/sync.d.ts +75 -156
- package/dist/taskResult.d.ts +3 -20
- package/dist/telemetry.d.ts +1 -11
- package/dist/utils.d.ts +0 -1
- package/dist/workItems.d.ts +6 -30
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
20
|
+
|
|
27
21
|
header: z.ZodOptional<z.ZodString>;
|
|
28
|
-
|
|
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
|
-
|
|
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
|
-
|
|
40
|
+
|
|
47
41
|
header: z.ZodOptional<z.ZodString>;
|
|
48
|
-
|
|
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
|
-
|
|
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
|
-
|
|
60
|
+
|
|
67
61
|
header: z.ZodOptional<z.ZodString>;
|
|
68
|
-
|
|
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
|
-
|
|
73
|
+
|
|
80
74
|
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
81
75
|
}, z.ZodTypeAny, "passthrough">>;
|
|
82
|
-
|
|
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
|
-
|
|
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
|
-
|
|
113
|
+
|
|
120
114
|
export declare const PermissionActionSchema: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
|
|
121
|
-
|
|
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
|
-
|
|
120
|
+
|
|
127
121
|
reason: z.ZodOptional<z.ZodString>;
|
|
128
|
-
|
|
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
|
-
|
|
128
|
+
|
|
135
129
|
reason: z.ZodOptional<z.ZodString>;
|
|
136
|
-
|
|
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
|
-
|
|
136
|
+
|
|
143
137
|
reason: z.ZodOptional<z.ZodString>;
|
|
144
|
-
|
|
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
|
-
|
|
146
|
+
|
|
153
147
|
export declare const ImageAttachmentSchema: z.ZodObject<{
|
|
154
|
-
|
|
148
|
+
|
|
155
149
|
data: z.ZodString;
|
|
156
|
-
|
|
150
|
+
|
|
157
151
|
mediaType: z.ZodString;
|
|
158
152
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
159
|
-
|
|
153
|
+
|
|
160
154
|
data: z.ZodString;
|
|
161
|
-
|
|
155
|
+
|
|
162
156
|
mediaType: z.ZodString;
|
|
163
157
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
164
|
-
|
|
158
|
+
|
|
165
159
|
data: z.ZodString;
|
|
166
|
-
|
|
160
|
+
|
|
167
161
|
mediaType: z.ZodString;
|
|
168
162
|
}, z.ZodTypeAny, "passthrough">>;
|
|
169
163
|
export type ImageAttachment = z.infer<typeof ImageAttachmentSchema>;
|
|
170
|
-
|
|
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
|
-
|
|
169
|
+
|
|
176
170
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
177
|
-
|
|
171
|
+
|
|
178
172
|
data: z.ZodString;
|
|
179
|
-
|
|
173
|
+
|
|
180
174
|
mediaType: z.ZodString;
|
|
181
175
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
182
|
-
|
|
176
|
+
|
|
183
177
|
data: z.ZodString;
|
|
184
|
-
|
|
178
|
+
|
|
185
179
|
mediaType: z.ZodString;
|
|
186
180
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
187
|
-
|
|
181
|
+
|
|
188
182
|
data: z.ZodString;
|
|
189
|
-
|
|
183
|
+
|
|
190
184
|
mediaType: z.ZodString;
|
|
191
185
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
192
|
-
|
|
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
|
-
|
|
193
|
+
|
|
200
194
|
data: z.ZodString;
|
|
201
|
-
|
|
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
|
-
|
|
204
|
+
|
|
211
205
|
data: z.ZodString;
|
|
212
|
-
|
|
206
|
+
|
|
213
207
|
mediaType: z.ZodString;
|
|
214
208
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
215
209
|
meta?: Record<string, unknown> | undefined;
|
|
216
210
|
}>;
|
|
217
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
221
|
+
|
|
228
222
|
allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
229
|
-
|
|
230
|
-
* flag, does NOT change permissionMode. Stored in session metadata. */
|
|
223
|
+
|
|
231
224
|
autoApproveEdits: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
package/dist/legacyProtocol.d.ts
CHANGED
|
@@ -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
|
-
|
|
16
|
+
|
|
24
17
|
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
-
|
|
18
|
+
|
|
26
19
|
activeSessions: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
|
|
20
|
+
|
|
28
21
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
|
|
22
|
+
|
|
30
23
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
-
|
|
24
|
+
|
|
32
25
|
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
|
-
|
|
26
|
+
|
|
34
27
|
supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
|
-
|
|
28
|
+
|
|
36
29
|
disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
|
|
37
|
-
|
|
30
|
+
|
|
38
31
|
upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
|
|
39
|
-
|
|
32
|
+
|
|
40
33
|
upgradeError: z.ZodOptional<z.ZodString>;
|
|
41
|
-
|
|
34
|
+
|
|
42
35
|
superseded: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
-
|
|
36
|
+
|
|
44
37
|
derivationVersion: z.ZodOptional<z.ZodNumber>;
|
|
45
|
-
|
|
38
|
+
|
|
46
39
|
autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
-
|
|
40
|
+
|
|
48
41
|
notifyFeishu: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
|
|
42
|
+
|
|
50
43
|
notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
|
|
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
|
-
|
|
56
|
+
|
|
64
57
|
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
-
|
|
58
|
+
|
|
66
59
|
activeSessions: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
|
|
60
|
+
|
|
68
61
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
|
69
|
-
|
|
62
|
+
|
|
70
63
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
71
|
-
|
|
64
|
+
|
|
72
65
|
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
73
|
-
|
|
66
|
+
|
|
74
67
|
supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
75
|
-
|
|
68
|
+
|
|
76
69
|
disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
|
|
77
|
-
|
|
70
|
+
|
|
78
71
|
upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
|
|
79
|
-
|
|
72
|
+
|
|
80
73
|
upgradeError: z.ZodOptional<z.ZodString>;
|
|
81
|
-
|
|
74
|
+
|
|
82
75
|
superseded: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
-
|
|
76
|
+
|
|
84
77
|
derivationVersion: z.ZodOptional<z.ZodNumber>;
|
|
85
|
-
|
|
78
|
+
|
|
86
79
|
autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
-
|
|
80
|
+
|
|
88
81
|
notifyFeishu: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
-
|
|
82
|
+
|
|
90
83
|
notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
-
|
|
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
|
-
|
|
96
|
+
|
|
104
97
|
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
|
|
98
|
+
|
|
106
99
|
activeSessions: z.ZodOptional<z.ZodNumber>;
|
|
107
|
-
|
|
100
|
+
|
|
108
101
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
|
109
|
-
|
|
102
|
+
|
|
110
103
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
111
|
-
|
|
104
|
+
|
|
112
105
|
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
113
|
-
|
|
106
|
+
|
|
114
107
|
supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
115
|
-
|
|
108
|
+
|
|
116
109
|
disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
|
|
117
|
-
|
|
110
|
+
|
|
118
111
|
upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
|
|
119
|
-
|
|
112
|
+
|
|
120
113
|
upgradeError: z.ZodOptional<z.ZodString>;
|
|
121
|
-
|
|
114
|
+
|
|
122
115
|
superseded: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
-
|
|
116
|
+
|
|
124
117
|
derivationVersion: z.ZodOptional<z.ZodNumber>;
|
|
125
|
-
|
|
118
|
+
|
|
126
119
|
autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
|
|
120
|
+
|
|
128
121
|
notifyFeishu: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
-
|
|
122
|
+
|
|
130
123
|
notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|