@dyrra/protocol 0.1.1
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/README.md +11 -0
- package/dist/actions.d.ts +196 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +90 -0
- package/dist/actions.js.map +1 -0
- package/dist/api.d.ts +330 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +232 -0
- package/dist/api.js.map +1 -0
- package/dist/common.d.ts +108 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +74 -0
- package/dist/common.js.map +1 -0
- package/dist/endpoints.d.ts +44 -0
- package/dist/endpoints.d.ts.map +1 -0
- package/dist/endpoints.js +33 -0
- package/dist/endpoints.js.map +1 -0
- package/dist/errors.d.ts +73 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +84 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/registry.d.ts +829 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +357 -0
- package/dist/registry.js.map +1 -0
- package/dist/rpc.d.ts +433 -0
- package/dist/rpc.d.ts.map +1 -0
- package/dist/rpc.js +185 -0
- package/dist/rpc.js.map +1 -0
- package/dist/screen.d.ts +116 -0
- package/dist/screen.d.ts.map +1 -0
- package/dist/screen.js +95 -0
- package/dist/screen.js.map +1 -0
- package/dist/system.d.ts +101 -0
- package/dist/system.d.ts.map +1 -0
- package/dist/system.js +99 -0
- package/dist/system.js.map +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,829 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as C from "./common.js";
|
|
3
|
+
import * as E from "./errors.js";
|
|
4
|
+
/**
|
|
5
|
+
* Все именованные схемы протокола. Из этого списка генерируются
|
|
6
|
+
* JSON Schema, OpenAPI и Swift-типы — руками типы не дублировать (ТЗ 6).
|
|
7
|
+
*/
|
|
8
|
+
export declare const NAMED_SCHEMAS: {
|
|
9
|
+
readonly Scope: z.ZodEnum<{
|
|
10
|
+
clipboard: "clipboard";
|
|
11
|
+
files: "files";
|
|
12
|
+
input: "input";
|
|
13
|
+
record: "record";
|
|
14
|
+
screen: "screen";
|
|
15
|
+
shell: "shell";
|
|
16
|
+
}>;
|
|
17
|
+
readonly MachineKind: z.ZodEnum<{
|
|
18
|
+
cloud: "cloud";
|
|
19
|
+
connected: "connected";
|
|
20
|
+
vm: "vm";
|
|
21
|
+
}>;
|
|
22
|
+
readonly Availability: z.ZodEnum<{
|
|
23
|
+
asleep: "asleep";
|
|
24
|
+
no_gui_session: "no_gui_session";
|
|
25
|
+
ready: "ready";
|
|
26
|
+
screen_locked: "screen_locked";
|
|
27
|
+
}>;
|
|
28
|
+
readonly ReportedAvailability: z.ZodEnum<{
|
|
29
|
+
asleep: "asleep";
|
|
30
|
+
no_gui_session: "no_gui_session";
|
|
31
|
+
ready: "ready";
|
|
32
|
+
screen_locked: "screen_locked";
|
|
33
|
+
unknown: "unknown";
|
|
34
|
+
}>;
|
|
35
|
+
readonly DisplayInfo: z.ZodObject<{
|
|
36
|
+
widthPoints: z.ZodNumber;
|
|
37
|
+
heightPoints: z.ZodNumber;
|
|
38
|
+
scaleFactor: z.ZodNumber;
|
|
39
|
+
displayId: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
readonly Permissions: z.ZodObject<{
|
|
42
|
+
screenRecording: z.ZodBoolean;
|
|
43
|
+
accessibility: z.ZodBoolean;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
readonly MachineStatus: z.ZodObject<{
|
|
46
|
+
online: z.ZodBoolean;
|
|
47
|
+
availability: z.ZodEnum<{
|
|
48
|
+
asleep: "asleep";
|
|
49
|
+
no_gui_session: "no_gui_session";
|
|
50
|
+
ready: "ready";
|
|
51
|
+
screen_locked: "screen_locked";
|
|
52
|
+
unknown: "unknown";
|
|
53
|
+
}>;
|
|
54
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
55
|
+
paused: z.ZodBoolean;
|
|
56
|
+
permissions: z.ZodObject<{
|
|
57
|
+
screenRecording: z.ZodBoolean;
|
|
58
|
+
accessibility: z.ZodBoolean;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
display: z.ZodNullable<z.ZodObject<{
|
|
61
|
+
widthPoints: z.ZodNumber;
|
|
62
|
+
heightPoints: z.ZodNumber;
|
|
63
|
+
scaleFactor: z.ZodNumber;
|
|
64
|
+
displayId: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
appVersion: z.ZodNullable<z.ZodString>;
|
|
67
|
+
macosVersion: z.ZodNullable<z.ZodString>;
|
|
68
|
+
hiddenAppCount: z.ZodDefault<z.ZodNumber>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
readonly DeliveryOptions: z.ZodObject<{
|
|
71
|
+
confirmationTimeoutMs: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
72
|
+
whenUnavailable: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
73
|
+
fail: "fail";
|
|
74
|
+
queue: "queue";
|
|
75
|
+
}>>>;
|
|
76
|
+
ttlSeconds: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
readonly ErrorCode: z.ZodEnum<{
|
|
79
|
+
app_not_frontmost: "app_not_frontmost";
|
|
80
|
+
app_update_required: "app_update_required";
|
|
81
|
+
confirmation_timeout: "confirmation_timeout";
|
|
82
|
+
denied_by_user: "denied_by_user";
|
|
83
|
+
forbidden: "forbidden";
|
|
84
|
+
hidden_app_active: "hidden_app_active";
|
|
85
|
+
internal_error: "internal_error";
|
|
86
|
+
invalid_request: "invalid_request";
|
|
87
|
+
lease_not_active: "lease_not_active";
|
|
88
|
+
link_session_expired: "link_session_expired";
|
|
89
|
+
machine_already_linked_to_other_user: "machine_already_linked_to_other_user";
|
|
90
|
+
machine_busy: "machine_busy";
|
|
91
|
+
machine_offline: "machine_offline";
|
|
92
|
+
machine_paused: "machine_paused";
|
|
93
|
+
machine_unavailable: "machine_unavailable";
|
|
94
|
+
not_found: "not_found";
|
|
95
|
+
payment_required: "payment_required";
|
|
96
|
+
permission_missing: "permission_missing";
|
|
97
|
+
rate_limited: "rate_limited";
|
|
98
|
+
recording_not_shared: "recording_not_shared";
|
|
99
|
+
scope_denied: "scope_denied";
|
|
100
|
+
snapshot_expired: "snapshot_expired";
|
|
101
|
+
timeout: "timeout";
|
|
102
|
+
unauthorized: "unauthorized";
|
|
103
|
+
}>;
|
|
104
|
+
readonly ApiError: z.ZodObject<{
|
|
105
|
+
error: z.ZodObject<{
|
|
106
|
+
code: z.ZodEnum<{
|
|
107
|
+
app_not_frontmost: "app_not_frontmost";
|
|
108
|
+
app_update_required: "app_update_required";
|
|
109
|
+
confirmation_timeout: "confirmation_timeout";
|
|
110
|
+
denied_by_user: "denied_by_user";
|
|
111
|
+
forbidden: "forbidden";
|
|
112
|
+
hidden_app_active: "hidden_app_active";
|
|
113
|
+
internal_error: "internal_error";
|
|
114
|
+
invalid_request: "invalid_request";
|
|
115
|
+
lease_not_active: "lease_not_active";
|
|
116
|
+
link_session_expired: "link_session_expired";
|
|
117
|
+
machine_already_linked_to_other_user: "machine_already_linked_to_other_user";
|
|
118
|
+
machine_busy: "machine_busy";
|
|
119
|
+
machine_offline: "machine_offline";
|
|
120
|
+
machine_paused: "machine_paused";
|
|
121
|
+
machine_unavailable: "machine_unavailable";
|
|
122
|
+
not_found: "not_found";
|
|
123
|
+
payment_required: "payment_required";
|
|
124
|
+
permission_missing: "permission_missing";
|
|
125
|
+
rate_limited: "rate_limited";
|
|
126
|
+
recording_not_shared: "recording_not_shared";
|
|
127
|
+
scope_denied: "scope_denied";
|
|
128
|
+
snapshot_expired: "snapshot_expired";
|
|
129
|
+
timeout: "timeout";
|
|
130
|
+
unauthorized: "unauthorized";
|
|
131
|
+
}>;
|
|
132
|
+
message: z.ZodString;
|
|
133
|
+
request_id: z.ZodString;
|
|
134
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
readonly MouseButton: z.ZodEnum<{
|
|
138
|
+
left: "left";
|
|
139
|
+
middle: "middle";
|
|
140
|
+
right: "right";
|
|
141
|
+
}>;
|
|
142
|
+
readonly Modifier: z.ZodEnum<{
|
|
143
|
+
alt: "alt";
|
|
144
|
+
cmd: "cmd";
|
|
145
|
+
ctrl: "ctrl";
|
|
146
|
+
fn: "fn";
|
|
147
|
+
shift: "shift";
|
|
148
|
+
}>;
|
|
149
|
+
readonly Action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
|
+
type: z.ZodLiteral<"move">;
|
|
151
|
+
x: z.ZodNumber;
|
|
152
|
+
y: z.ZodNumber;
|
|
153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
154
|
+
type: z.ZodLiteral<"click">;
|
|
155
|
+
x: z.ZodNumber;
|
|
156
|
+
y: z.ZodNumber;
|
|
157
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
158
|
+
left: "left";
|
|
159
|
+
middle: "middle";
|
|
160
|
+
right: "right";
|
|
161
|
+
}>>;
|
|
162
|
+
count: z.ZodDefault<z.ZodNumber>;
|
|
163
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
164
|
+
alt: "alt";
|
|
165
|
+
cmd: "cmd";
|
|
166
|
+
ctrl: "ctrl";
|
|
167
|
+
fn: "fn";
|
|
168
|
+
shift: "shift";
|
|
169
|
+
}>>>;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
type: z.ZodLiteral<"mouse_down">;
|
|
172
|
+
x: z.ZodNumber;
|
|
173
|
+
y: z.ZodNumber;
|
|
174
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
175
|
+
left: "left";
|
|
176
|
+
middle: "middle";
|
|
177
|
+
right: "right";
|
|
178
|
+
}>>;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
type: z.ZodLiteral<"mouse_up">;
|
|
181
|
+
x: z.ZodNumber;
|
|
182
|
+
y: z.ZodNumber;
|
|
183
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
184
|
+
left: "left";
|
|
185
|
+
middle: "middle";
|
|
186
|
+
right: "right";
|
|
187
|
+
}>>;
|
|
188
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
189
|
+
type: z.ZodLiteral<"drag">;
|
|
190
|
+
from: z.ZodObject<{
|
|
191
|
+
x: z.ZodNumber;
|
|
192
|
+
y: z.ZodNumber;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
to: z.ZodObject<{
|
|
195
|
+
x: z.ZodNumber;
|
|
196
|
+
y: z.ZodNumber;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
199
|
+
left: "left";
|
|
200
|
+
middle: "middle";
|
|
201
|
+
right: "right";
|
|
202
|
+
}>>;
|
|
203
|
+
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
204
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
205
|
+
type: z.ZodLiteral<"scroll">;
|
|
206
|
+
x: z.ZodNumber;
|
|
207
|
+
y: z.ZodNumber;
|
|
208
|
+
dx: z.ZodDefault<z.ZodNumber>;
|
|
209
|
+
dy: z.ZodDefault<z.ZodNumber>;
|
|
210
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
211
|
+
type: z.ZodLiteral<"type">;
|
|
212
|
+
text: z.ZodString;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
type: z.ZodLiteral<"key">;
|
|
215
|
+
keys: z.ZodArray<z.ZodString>;
|
|
216
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
217
|
+
type: z.ZodLiteral<"wait">;
|
|
218
|
+
ms: z.ZodNumber;
|
|
219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
+
type: z.ZodLiteral<"click_element">;
|
|
221
|
+
snapshotId: z.ZodString;
|
|
222
|
+
elementId: z.ZodString;
|
|
223
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
224
|
+
type: z.ZodLiteral<"set_value">;
|
|
225
|
+
snapshotId: z.ZodString;
|
|
226
|
+
elementId: z.ZodString;
|
|
227
|
+
text: z.ZodString;
|
|
228
|
+
}, z.core.$strip>], "type">;
|
|
229
|
+
readonly ScreenshotRequest: z.ZodObject<{
|
|
230
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
231
|
+
jpeg: "jpeg";
|
|
232
|
+
png: "png";
|
|
233
|
+
}>>;
|
|
234
|
+
quality: z.ZodDefault<z.ZodNumber>;
|
|
235
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
response: z.ZodDefault<z.ZodEnum<{
|
|
237
|
+
base64: "base64";
|
|
238
|
+
binary: "binary";
|
|
239
|
+
}>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
readonly Screenshot: z.ZodObject<{
|
|
242
|
+
mime: z.ZodString;
|
|
243
|
+
data: z.ZodString;
|
|
244
|
+
imageWidth: z.ZodNumber;
|
|
245
|
+
imageHeight: z.ZodNumber;
|
|
246
|
+
widthPoints: z.ZodNumber;
|
|
247
|
+
heightPoints: z.ZodNumber;
|
|
248
|
+
scale: z.ZodNumber;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
readonly UiTreeScope: z.ZodEnum<{
|
|
251
|
+
all_windows: "all_windows";
|
|
252
|
+
frontmost: "frontmost";
|
|
253
|
+
menu_bar: "menu_bar";
|
|
254
|
+
}>;
|
|
255
|
+
readonly UiTreeRequest: z.ZodObject<{
|
|
256
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
257
|
+
all_windows: "all_windows";
|
|
258
|
+
frontmost: "frontmost";
|
|
259
|
+
menu_bar: "menu_bar";
|
|
260
|
+
}>>;
|
|
261
|
+
interactiveOnly: z.ZodDefault<z.ZodBoolean>;
|
|
262
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
263
|
+
compact: "compact";
|
|
264
|
+
json: "json";
|
|
265
|
+
}>>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
readonly UiTreeApp: z.ZodObject<{
|
|
268
|
+
bundleId: z.ZodString;
|
|
269
|
+
name: z.ZodString;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
readonly UiElement: z.ZodObject<{
|
|
272
|
+
id: z.ZodString;
|
|
273
|
+
role: z.ZodString;
|
|
274
|
+
subrole: z.ZodOptional<z.ZodString>;
|
|
275
|
+
title: z.ZodOptional<z.ZodString>;
|
|
276
|
+
description: z.ZodOptional<z.ZodString>;
|
|
277
|
+
value: z.ZodOptional<z.ZodString>;
|
|
278
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
279
|
+
frame: z.ZodObject<{
|
|
280
|
+
x: z.ZodNumber;
|
|
281
|
+
y: z.ZodNumber;
|
|
282
|
+
w: z.ZodNumber;
|
|
283
|
+
h: z.ZodNumber;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
enabled: z.ZodBoolean;
|
|
286
|
+
focused: z.ZodBoolean;
|
|
287
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
288
|
+
}, z.core.$strip>;
|
|
289
|
+
readonly UiTree: z.ZodObject<{
|
|
290
|
+
snapshotId: z.ZodString;
|
|
291
|
+
app: z.ZodNullable<z.ZodObject<{
|
|
292
|
+
bundleId: z.ZodString;
|
|
293
|
+
name: z.ZodString;
|
|
294
|
+
}, z.core.$strip>>;
|
|
295
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
296
|
+
id: z.ZodString;
|
|
297
|
+
role: z.ZodString;
|
|
298
|
+
subrole: z.ZodOptional<z.ZodString>;
|
|
299
|
+
title: z.ZodOptional<z.ZodString>;
|
|
300
|
+
description: z.ZodOptional<z.ZodString>;
|
|
301
|
+
value: z.ZodOptional<z.ZodString>;
|
|
302
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
303
|
+
frame: z.ZodObject<{
|
|
304
|
+
x: z.ZodNumber;
|
|
305
|
+
y: z.ZodNumber;
|
|
306
|
+
w: z.ZodNumber;
|
|
307
|
+
h: z.ZodNumber;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
enabled: z.ZodBoolean;
|
|
310
|
+
focused: z.ZodBoolean;
|
|
311
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
312
|
+
}, z.core.$strip>>;
|
|
313
|
+
compact: z.ZodOptional<z.ZodString>;
|
|
314
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
readonly ShellRequest: z.ZodObject<{
|
|
317
|
+
command: z.ZodString;
|
|
318
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
319
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
320
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
321
|
+
}, z.core.$strip>;
|
|
322
|
+
readonly ShellResult: z.ZodObject<{
|
|
323
|
+
exitCode: z.ZodNumber;
|
|
324
|
+
stdout: z.ZodString;
|
|
325
|
+
stderr: z.ZodString;
|
|
326
|
+
durationMs: z.ZodNumber;
|
|
327
|
+
truncated: z.ZodBoolean;
|
|
328
|
+
timedOut: z.ZodBoolean;
|
|
329
|
+
}, z.core.$strip>;
|
|
330
|
+
readonly FileUploadBegin: z.ZodObject<{
|
|
331
|
+
path: z.ZodString;
|
|
332
|
+
sizeBytes: z.ZodNumber;
|
|
333
|
+
sha256: z.ZodString;
|
|
334
|
+
}, z.core.$strip>;
|
|
335
|
+
readonly FileStat: z.ZodObject<{
|
|
336
|
+
path: z.ZodString;
|
|
337
|
+
sizeBytes: z.ZodNumber;
|
|
338
|
+
sha256: z.ZodString;
|
|
339
|
+
modifiedAt: z.ZodString;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
readonly AppRef: z.ZodObject<{
|
|
342
|
+
bundleId: z.ZodOptional<z.ZodString>;
|
|
343
|
+
name: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
readonly RunningApp: z.ZodObject<{
|
|
346
|
+
bundleId: z.ZodString;
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
pid: z.ZodNumber;
|
|
349
|
+
active: z.ZodBoolean;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
readonly WindowInfo: z.ZodObject<{
|
|
352
|
+
title: z.ZodString;
|
|
353
|
+
bundleId: z.ZodString;
|
|
354
|
+
appName: z.ZodString;
|
|
355
|
+
frame: z.ZodObject<{
|
|
356
|
+
x: z.ZodNumber;
|
|
357
|
+
y: z.ZodNumber;
|
|
358
|
+
w: z.ZodNumber;
|
|
359
|
+
h: z.ZodNumber;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
active: z.ZodBoolean;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
readonly OpenUrlRequest: z.ZodObject<{
|
|
364
|
+
url: z.ZodString;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
readonly ClipboardText: z.ZodObject<{
|
|
367
|
+
text: z.ZodString;
|
|
368
|
+
}, z.core.$strip>;
|
|
369
|
+
readonly CommandStatus: z.ZodEnum<{
|
|
370
|
+
canceled: "canceled";
|
|
371
|
+
completed: "completed";
|
|
372
|
+
expired: "expired";
|
|
373
|
+
failed: "failed";
|
|
374
|
+
queued: "queued";
|
|
375
|
+
running: "running";
|
|
376
|
+
}>;
|
|
377
|
+
readonly QueuedCommand: z.ZodObject<{
|
|
378
|
+
commandId: z.ZodString;
|
|
379
|
+
status: z.ZodEnum<{
|
|
380
|
+
canceled: "canceled";
|
|
381
|
+
completed: "completed";
|
|
382
|
+
expired: "expired";
|
|
383
|
+
failed: "failed";
|
|
384
|
+
queued: "queued";
|
|
385
|
+
running: "running";
|
|
386
|
+
}>;
|
|
387
|
+
expiresAt: z.ZodString;
|
|
388
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
389
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
390
|
+
}, z.core.$strip>;
|
|
391
|
+
readonly RpcMethod: z.ZodEnum<{
|
|
392
|
+
"actions.perform": "actions.perform";
|
|
393
|
+
"apps.activate": "apps.activate";
|
|
394
|
+
"apps.list": "apps.list";
|
|
395
|
+
"apps.open": "apps.open";
|
|
396
|
+
"clipboard.get": "clipboard.get";
|
|
397
|
+
"clipboard.set": "clipboard.set";
|
|
398
|
+
"connection.grant": "connection.grant";
|
|
399
|
+
"connection.revoke": "connection.revoke";
|
|
400
|
+
"cursor.position": "cursor.position";
|
|
401
|
+
"display.info": "display.info";
|
|
402
|
+
"files.download": "files.download";
|
|
403
|
+
"files.upload.begin": "files.upload.begin";
|
|
404
|
+
"files.upload.chunk": "files.upload.chunk";
|
|
405
|
+
"files.upload.end": "files.upload.end";
|
|
406
|
+
heartbeat: "heartbeat";
|
|
407
|
+
hello: "hello";
|
|
408
|
+
"permissions.get": "permissions.get";
|
|
409
|
+
"queue.offer": "queue.offer";
|
|
410
|
+
screenshot: "screenshot";
|
|
411
|
+
"shell.run": "shell.run";
|
|
412
|
+
"system.reboot": "system.reboot";
|
|
413
|
+
"ui.tree": "ui.tree";
|
|
414
|
+
"urls.open": "urls.open";
|
|
415
|
+
"vnc.close": "vnc.close";
|
|
416
|
+
"vnc.open": "vnc.open";
|
|
417
|
+
"windows.list": "windows.list";
|
|
418
|
+
}>;
|
|
419
|
+
readonly RpcRequest: z.ZodObject<{
|
|
420
|
+
id: z.ZodString;
|
|
421
|
+
method: z.ZodEnum<{
|
|
422
|
+
"actions.perform": "actions.perform";
|
|
423
|
+
"apps.activate": "apps.activate";
|
|
424
|
+
"apps.list": "apps.list";
|
|
425
|
+
"apps.open": "apps.open";
|
|
426
|
+
"clipboard.get": "clipboard.get";
|
|
427
|
+
"clipboard.set": "clipboard.set";
|
|
428
|
+
"connection.grant": "connection.grant";
|
|
429
|
+
"connection.revoke": "connection.revoke";
|
|
430
|
+
"cursor.position": "cursor.position";
|
|
431
|
+
"display.info": "display.info";
|
|
432
|
+
"files.download": "files.download";
|
|
433
|
+
"files.upload.begin": "files.upload.begin";
|
|
434
|
+
"files.upload.chunk": "files.upload.chunk";
|
|
435
|
+
"files.upload.end": "files.upload.end";
|
|
436
|
+
heartbeat: "heartbeat";
|
|
437
|
+
hello: "hello";
|
|
438
|
+
"permissions.get": "permissions.get";
|
|
439
|
+
"queue.offer": "queue.offer";
|
|
440
|
+
screenshot: "screenshot";
|
|
441
|
+
"shell.run": "shell.run";
|
|
442
|
+
"system.reboot": "system.reboot";
|
|
443
|
+
"ui.tree": "ui.tree";
|
|
444
|
+
"urls.open": "urls.open";
|
|
445
|
+
"vnc.close": "vnc.close";
|
|
446
|
+
"vnc.open": "vnc.open";
|
|
447
|
+
"windows.list": "windows.list";
|
|
448
|
+
}>;
|
|
449
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
450
|
+
params: z.ZodOptional<z.ZodUnknown>;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
readonly RpcResponse: z.ZodObject<{
|
|
453
|
+
id: z.ZodString;
|
|
454
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
455
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
456
|
+
code: z.ZodString;
|
|
457
|
+
message: z.ZodString;
|
|
458
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
459
|
+
}, z.core.$strip>>;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
readonly MachineEventType: z.ZodEnum<{
|
|
462
|
+
availability_changed: "availability_changed";
|
|
463
|
+
connection_revoked: "connection_revoked";
|
|
464
|
+
paused: "paused";
|
|
465
|
+
permissions_changed: "permissions_changed";
|
|
466
|
+
queued_commands_ack: "queued_commands_ack";
|
|
467
|
+
recording_ready: "recording_ready";
|
|
468
|
+
resumed: "resumed";
|
|
469
|
+
}>;
|
|
470
|
+
readonly MachineEvent: z.ZodObject<{
|
|
471
|
+
event: z.ZodEnum<{
|
|
472
|
+
availability_changed: "availability_changed";
|
|
473
|
+
connection_revoked: "connection_revoked";
|
|
474
|
+
paused: "paused";
|
|
475
|
+
permissions_changed: "permissions_changed";
|
|
476
|
+
queued_commands_ack: "queued_commands_ack";
|
|
477
|
+
recording_ready: "recording_ready";
|
|
478
|
+
resumed: "resumed";
|
|
479
|
+
}>;
|
|
480
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
481
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
readonly Heartbeat: z.ZodObject<{
|
|
484
|
+
appVersion: z.ZodString;
|
|
485
|
+
macosVersion: z.ZodString;
|
|
486
|
+
mode: z.ZodEnum<{
|
|
487
|
+
cloud: "cloud";
|
|
488
|
+
connected: "connected";
|
|
489
|
+
vm: "vm";
|
|
490
|
+
}>;
|
|
491
|
+
permissions: z.ZodObject<{
|
|
492
|
+
screenRecording: z.ZodBoolean;
|
|
493
|
+
accessibility: z.ZodBoolean;
|
|
494
|
+
}, z.core.$strip>;
|
|
495
|
+
display: z.ZodNullable<z.ZodObject<{
|
|
496
|
+
widthPoints: z.ZodNumber;
|
|
497
|
+
heightPoints: z.ZodNumber;
|
|
498
|
+
scaleFactor: z.ZodNumber;
|
|
499
|
+
displayId: z.ZodNumber;
|
|
500
|
+
}, z.core.$strip>>;
|
|
501
|
+
paused: z.ZodBoolean;
|
|
502
|
+
availability: z.ZodEnum<{
|
|
503
|
+
asleep: "asleep";
|
|
504
|
+
no_gui_session: "no_gui_session";
|
|
505
|
+
ready: "ready";
|
|
506
|
+
screen_locked: "screen_locked";
|
|
507
|
+
}>;
|
|
508
|
+
cpu: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
memUsedMb: z.ZodOptional<z.ZodNumber>;
|
|
510
|
+
diskFreeGb: z.ZodOptional<z.ZodNumber>;
|
|
511
|
+
hiddenAppCount: z.ZodDefault<z.ZodNumber>;
|
|
512
|
+
}, z.core.$strip>;
|
|
513
|
+
readonly ConnectionGrant: z.ZodObject<{
|
|
514
|
+
connectionId: z.ZodString;
|
|
515
|
+
platformName: z.ZodString;
|
|
516
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
517
|
+
clipboard: "clipboard";
|
|
518
|
+
files: "files";
|
|
519
|
+
input: "input";
|
|
520
|
+
record: "record";
|
|
521
|
+
screen: "screen";
|
|
522
|
+
shell: "shell";
|
|
523
|
+
}>>;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
readonly CreateEndUserRequest: z.ZodObject<{
|
|
526
|
+
externalId: z.ZodString;
|
|
527
|
+
email: z.ZodOptional<z.ZodString>;
|
|
528
|
+
name: z.ZodOptional<z.ZodString>;
|
|
529
|
+
}, z.core.$strip>;
|
|
530
|
+
readonly EndUser: z.ZodObject<{
|
|
531
|
+
id: z.ZodString;
|
|
532
|
+
externalId: z.ZodString;
|
|
533
|
+
email: z.ZodNullable<z.ZodString>;
|
|
534
|
+
name: z.ZodNullable<z.ZodString>;
|
|
535
|
+
createdAt: z.ZodString;
|
|
536
|
+
}, z.core.$strip>;
|
|
537
|
+
readonly CreateLinkSessionRequest: z.ZodObject<{
|
|
538
|
+
endUserId: z.ZodString;
|
|
539
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
540
|
+
clipboard: "clipboard";
|
|
541
|
+
files: "files";
|
|
542
|
+
input: "input";
|
|
543
|
+
record: "record";
|
|
544
|
+
screen: "screen";
|
|
545
|
+
shell: "shell";
|
|
546
|
+
}>>;
|
|
547
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
548
|
+
}, z.core.$strip>;
|
|
549
|
+
readonly LinkSession: z.ZodObject<{
|
|
550
|
+
id: z.ZodString;
|
|
551
|
+
url: z.ZodString;
|
|
552
|
+
code: z.ZodString;
|
|
553
|
+
expiresAt: z.ZodString;
|
|
554
|
+
}, z.core.$strip>;
|
|
555
|
+
readonly Connection: z.ZodObject<{
|
|
556
|
+
id: z.ZodString;
|
|
557
|
+
endUserId: z.ZodString;
|
|
558
|
+
machineId: z.ZodString;
|
|
559
|
+
kind: z.ZodEnum<{
|
|
560
|
+
cloud: "cloud";
|
|
561
|
+
connected: "connected";
|
|
562
|
+
vm: "vm";
|
|
563
|
+
}>;
|
|
564
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
565
|
+
clipboard: "clipboard";
|
|
566
|
+
files: "files";
|
|
567
|
+
input: "input";
|
|
568
|
+
record: "record";
|
|
569
|
+
screen: "screen";
|
|
570
|
+
shell: "shell";
|
|
571
|
+
}>>;
|
|
572
|
+
status: z.ZodEnum<{
|
|
573
|
+
active: "active";
|
|
574
|
+
revoked: "revoked";
|
|
575
|
+
}>;
|
|
576
|
+
machine: z.ZodObject<{
|
|
577
|
+
online: z.ZodBoolean;
|
|
578
|
+
availability: z.ZodEnum<{
|
|
579
|
+
asleep: "asleep";
|
|
580
|
+
no_gui_session: "no_gui_session";
|
|
581
|
+
ready: "ready";
|
|
582
|
+
screen_locked: "screen_locked";
|
|
583
|
+
unknown: "unknown";
|
|
584
|
+
}>;
|
|
585
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
586
|
+
paused: z.ZodBoolean;
|
|
587
|
+
permissions: z.ZodObject<{
|
|
588
|
+
screenRecording: z.ZodBoolean;
|
|
589
|
+
accessibility: z.ZodBoolean;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
display: z.ZodNullable<z.ZodObject<{
|
|
592
|
+
widthPoints: z.ZodNumber;
|
|
593
|
+
heightPoints: z.ZodNumber;
|
|
594
|
+
scaleFactor: z.ZodNumber;
|
|
595
|
+
displayId: z.ZodNumber;
|
|
596
|
+
}, z.core.$strip>>;
|
|
597
|
+
appVersion: z.ZodNullable<z.ZodString>;
|
|
598
|
+
macosVersion: z.ZodNullable<z.ZodString>;
|
|
599
|
+
hiddenAppCount: z.ZodDefault<z.ZodNumber>;
|
|
600
|
+
}, z.core.$strip>;
|
|
601
|
+
createdAt: z.ZodString;
|
|
602
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
603
|
+
}, z.core.$strip>;
|
|
604
|
+
readonly CloudTerm: z.ZodEnum<{
|
|
605
|
+
day: "day";
|
|
606
|
+
month: "month";
|
|
607
|
+
week: "week";
|
|
608
|
+
}>;
|
|
609
|
+
readonly CloudHardware: z.ZodEnum<{
|
|
610
|
+
mac_mini_m4: "mac_mini_m4";
|
|
611
|
+
mac_mini_m4_pro: "mac_mini_m4_pro";
|
|
612
|
+
mac_pro: "mac_pro";
|
|
613
|
+
mac_studio_m1_max: "mac_studio_m1_max";
|
|
614
|
+
mac_studio_m1_ultra: "mac_studio_m1_ultra";
|
|
615
|
+
mac_studio_m2_max: "mac_studio_m2_max";
|
|
616
|
+
mac_studio_m2_ultra: "mac_studio_m2_ultra";
|
|
617
|
+
mac_studio_m3_ultra: "mac_studio_m3_ultra";
|
|
618
|
+
mac_studio_m4_max: "mac_studio_m4_max";
|
|
619
|
+
mac_studio_m4_ultra: "mac_studio_m4_ultra";
|
|
620
|
+
mac_studio_m5_max: "mac_studio_m5_max";
|
|
621
|
+
mac_studio_m5_ultra: "mac_studio_m5_ultra";
|
|
622
|
+
}>;
|
|
623
|
+
readonly BillingPackage: z.ZodEnum<{
|
|
624
|
+
free: "free";
|
|
625
|
+
p1000: "p1000";
|
|
626
|
+
p200: "p200";
|
|
627
|
+
p50: "p50";
|
|
628
|
+
}>;
|
|
629
|
+
readonly Subscription: z.ZodObject<{
|
|
630
|
+
package: z.ZodEnum<{
|
|
631
|
+
free: "free";
|
|
632
|
+
p1000: "p1000";
|
|
633
|
+
p200: "p200";
|
|
634
|
+
p50: "p50";
|
|
635
|
+
}>;
|
|
636
|
+
status: z.ZodEnum<{
|
|
637
|
+
active: "active";
|
|
638
|
+
canceled: "canceled";
|
|
639
|
+
past_due: "past_due";
|
|
640
|
+
}>;
|
|
641
|
+
machineLimit: z.ZodNumber;
|
|
642
|
+
activeMachines: z.ZodNumber;
|
|
643
|
+
currentPeriodEnd: z.ZodNullable<z.ZodString>;
|
|
644
|
+
cancelAtPeriodEnd: z.ZodBoolean;
|
|
645
|
+
upgradeUrls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
646
|
+
}, z.core.$strip>;
|
|
647
|
+
readonly CreateCloudMacRequest: z.ZodObject<{
|
|
648
|
+
term: z.ZodEnum<{
|
|
649
|
+
day: "day";
|
|
650
|
+
month: "month";
|
|
651
|
+
week: "week";
|
|
652
|
+
}>;
|
|
653
|
+
hardware: z.ZodDefault<z.ZodEnum<{
|
|
654
|
+
mac_mini_m4: "mac_mini_m4";
|
|
655
|
+
mac_mini_m4_pro: "mac_mini_m4_pro";
|
|
656
|
+
mac_pro: "mac_pro";
|
|
657
|
+
mac_studio_m1_max: "mac_studio_m1_max";
|
|
658
|
+
mac_studio_m1_ultra: "mac_studio_m1_ultra";
|
|
659
|
+
mac_studio_m2_max: "mac_studio_m2_max";
|
|
660
|
+
mac_studio_m2_ultra: "mac_studio_m2_ultra";
|
|
661
|
+
mac_studio_m3_ultra: "mac_studio_m3_ultra";
|
|
662
|
+
mac_studio_m4_max: "mac_studio_m4_max";
|
|
663
|
+
mac_studio_m4_ultra: "mac_studio_m4_ultra";
|
|
664
|
+
mac_studio_m5_max: "mac_studio_m5_max";
|
|
665
|
+
mac_studio_m5_ultra: "mac_studio_m5_ultra";
|
|
666
|
+
}>>;
|
|
667
|
+
developerUseAcknowledged: z.ZodLiteral<true>;
|
|
668
|
+
preinstall: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
669
|
+
"claude-code": "claude-code";
|
|
670
|
+
node: "node";
|
|
671
|
+
"xcode-cli": "xcode-cli";
|
|
672
|
+
}>>>;
|
|
673
|
+
xcodeVersion: z.ZodOptional<z.ZodString>;
|
|
674
|
+
contactEmail: z.ZodOptional<z.ZodEmail>;
|
|
675
|
+
note: z.ZodOptional<z.ZodString>;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
readonly CloudMacQuote: z.ZodObject<{
|
|
678
|
+
id: z.ZodString;
|
|
679
|
+
status: z.ZodLiteral<"quote_requested">;
|
|
680
|
+
hardware: z.ZodEnum<{
|
|
681
|
+
mac_mini_m4: "mac_mini_m4";
|
|
682
|
+
mac_mini_m4_pro: "mac_mini_m4_pro";
|
|
683
|
+
mac_pro: "mac_pro";
|
|
684
|
+
mac_studio_m1_max: "mac_studio_m1_max";
|
|
685
|
+
mac_studio_m1_ultra: "mac_studio_m1_ultra";
|
|
686
|
+
mac_studio_m2_max: "mac_studio_m2_max";
|
|
687
|
+
mac_studio_m2_ultra: "mac_studio_m2_ultra";
|
|
688
|
+
mac_studio_m3_ultra: "mac_studio_m3_ultra";
|
|
689
|
+
mac_studio_m4_max: "mac_studio_m4_max";
|
|
690
|
+
mac_studio_m4_ultra: "mac_studio_m4_ultra";
|
|
691
|
+
mac_studio_m5_max: "mac_studio_m5_max";
|
|
692
|
+
mac_studio_m5_ultra: "mac_studio_m5_ultra";
|
|
693
|
+
}>;
|
|
694
|
+
term: z.ZodEnum<{
|
|
695
|
+
day: "day";
|
|
696
|
+
month: "month";
|
|
697
|
+
week: "week";
|
|
698
|
+
}>;
|
|
699
|
+
contactEmail: z.ZodNullable<z.ZodString>;
|
|
700
|
+
note: z.ZodNullable<z.ZodString>;
|
|
701
|
+
message: z.ZodString;
|
|
702
|
+
createdAt: z.ZodString;
|
|
703
|
+
}, z.core.$strip>;
|
|
704
|
+
readonly CloudMac: z.ZodObject<{
|
|
705
|
+
id: z.ZodString;
|
|
706
|
+
status: z.ZodEnum<{
|
|
707
|
+
awaiting_payment: "awaiting_payment";
|
|
708
|
+
ended: "ended";
|
|
709
|
+
provisioning: "provisioning";
|
|
710
|
+
queued: "queued";
|
|
711
|
+
ready: "ready";
|
|
712
|
+
}>;
|
|
713
|
+
term: z.ZodEnum<{
|
|
714
|
+
day: "day";
|
|
715
|
+
month: "month";
|
|
716
|
+
week: "week";
|
|
717
|
+
}>;
|
|
718
|
+
hardware: z.ZodEnum<{
|
|
719
|
+
mac_mini_m4: "mac_mini_m4";
|
|
720
|
+
mac_mini_m4_pro: "mac_mini_m4_pro";
|
|
721
|
+
mac_pro: "mac_pro";
|
|
722
|
+
mac_studio_m1_max: "mac_studio_m1_max";
|
|
723
|
+
mac_studio_m1_ultra: "mac_studio_m1_ultra";
|
|
724
|
+
mac_studio_m2_max: "mac_studio_m2_max";
|
|
725
|
+
mac_studio_m2_ultra: "mac_studio_m2_ultra";
|
|
726
|
+
mac_studio_m3_ultra: "mac_studio_m3_ultra";
|
|
727
|
+
mac_studio_m4_max: "mac_studio_m4_max";
|
|
728
|
+
mac_studio_m4_ultra: "mac_studio_m4_ultra";
|
|
729
|
+
mac_studio_m5_max: "mac_studio_m5_max";
|
|
730
|
+
mac_studio_m5_ultra: "mac_studio_m5_ultra";
|
|
731
|
+
}>;
|
|
732
|
+
leaseStartedAt: z.ZodNullable<z.ZodString>;
|
|
733
|
+
leaseEndsAt: z.ZodNullable<z.ZodString>;
|
|
734
|
+
price: z.ZodObject<{
|
|
735
|
+
amount: z.ZodNumber;
|
|
736
|
+
currency: z.ZodString;
|
|
737
|
+
}, z.core.$strip>;
|
|
738
|
+
checkoutUrl: z.ZodNullable<z.ZodString>;
|
|
739
|
+
}, z.core.$strip>;
|
|
740
|
+
readonly Job: z.ZodObject<{
|
|
741
|
+
id: z.ZodString;
|
|
742
|
+
status: z.ZodEnum<{
|
|
743
|
+
failed: "failed";
|
|
744
|
+
running: "running";
|
|
745
|
+
succeeded: "succeeded";
|
|
746
|
+
}>;
|
|
747
|
+
logTail: z.ZodString;
|
|
748
|
+
artifacts: z.ZodArray<z.ZodObject<{
|
|
749
|
+
type: z.ZodString;
|
|
750
|
+
path: z.ZodString;
|
|
751
|
+
}, z.core.$strip>>;
|
|
752
|
+
durationSec: z.ZodNumber;
|
|
753
|
+
}, z.core.$strip>;
|
|
754
|
+
readonly Recording: z.ZodObject<{
|
|
755
|
+
id: z.ZodString;
|
|
756
|
+
status: z.ZodEnum<{
|
|
757
|
+
deleted: "deleted";
|
|
758
|
+
processing: "processing";
|
|
759
|
+
ready: "ready";
|
|
760
|
+
}>;
|
|
761
|
+
url: z.ZodOptional<z.ZodString>;
|
|
762
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
763
|
+
durationSec: z.ZodNumber;
|
|
764
|
+
createdAt: z.ZodString;
|
|
765
|
+
}, z.core.$strip>;
|
|
766
|
+
readonly WebhookEventType: z.ZodEnum<{
|
|
767
|
+
"billing.payment_failed": "billing.payment_failed";
|
|
768
|
+
"cloud_mac.ended": "cloud_mac.ended";
|
|
769
|
+
"cloud_mac.expiring": "cloud_mac.expiring";
|
|
770
|
+
"cloud_mac.ready": "cloud_mac.ready";
|
|
771
|
+
"command.completed": "command.completed";
|
|
772
|
+
"command.expired": "command.expired";
|
|
773
|
+
"command.failed": "command.failed";
|
|
774
|
+
"connection.created": "connection.created";
|
|
775
|
+
"connection.revoked": "connection.revoked";
|
|
776
|
+
"machine.offline": "machine.offline";
|
|
777
|
+
"machine.online": "machine.online";
|
|
778
|
+
"machine.paused": "machine.paused";
|
|
779
|
+
"machine.permissions_changed": "machine.permissions_changed";
|
|
780
|
+
"machine.resumed": "machine.resumed";
|
|
781
|
+
"recording.ready": "recording.ready";
|
|
782
|
+
}>;
|
|
783
|
+
readonly WebhookEvent: z.ZodObject<{
|
|
784
|
+
id: z.ZodString;
|
|
785
|
+
type: z.ZodEnum<{
|
|
786
|
+
"billing.payment_failed": "billing.payment_failed";
|
|
787
|
+
"cloud_mac.ended": "cloud_mac.ended";
|
|
788
|
+
"cloud_mac.expiring": "cloud_mac.expiring";
|
|
789
|
+
"cloud_mac.ready": "cloud_mac.ready";
|
|
790
|
+
"command.completed": "command.completed";
|
|
791
|
+
"command.expired": "command.expired";
|
|
792
|
+
"command.failed": "command.failed";
|
|
793
|
+
"connection.created": "connection.created";
|
|
794
|
+
"connection.revoked": "connection.revoked";
|
|
795
|
+
"machine.offline": "machine.offline";
|
|
796
|
+
"machine.online": "machine.online";
|
|
797
|
+
"machine.paused": "machine.paused";
|
|
798
|
+
"machine.permissions_changed": "machine.permissions_changed";
|
|
799
|
+
"machine.resumed": "machine.resumed";
|
|
800
|
+
"recording.ready": "recording.ready";
|
|
801
|
+
}>;
|
|
802
|
+
createdAt: z.ZodString;
|
|
803
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
804
|
+
}, z.core.$strip>;
|
|
805
|
+
};
|
|
806
|
+
export type NamedSchemaName = keyof typeof NAMED_SCHEMAS;
|
|
807
|
+
export interface RouteDef {
|
|
808
|
+
method: "get" | "post" | "put" | "delete";
|
|
809
|
+
path: string;
|
|
810
|
+
operationId: string;
|
|
811
|
+
summary: string;
|
|
812
|
+
tag: string;
|
|
813
|
+
/** Требуемое право подключения, если действие идёт на Mac. */
|
|
814
|
+
scope?: C.Scope;
|
|
815
|
+
body?: z.ZodType;
|
|
816
|
+
query?: z.ZodType;
|
|
817
|
+
response?: z.ZodType;
|
|
818
|
+
status?: number;
|
|
819
|
+
/** Второй успешный ответ, когда маршрут может ответить по-разному. */
|
|
820
|
+
altResponse?: {
|
|
821
|
+
status: number;
|
|
822
|
+
schema: z.ZodType;
|
|
823
|
+
description: string;
|
|
824
|
+
};
|
|
825
|
+
errors: E.ErrorCode[];
|
|
826
|
+
}
|
|
827
|
+
/** Таблица маршрутов публичного API v1 (ТЗ 8). Из неё строится OpenAPI. */
|
|
828
|
+
export declare const ROUTES: RouteDef[];
|
|
829
|
+
//# sourceMappingURL=registry.d.ts.map
|