@distilled.cloud/daytona 0.0.0-placeholder → 1.0.0-rc.13
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/LICENSE +201 -0
- package/README.md +34 -0
- package/lib/credentials.d.ts +46 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +67 -0
- package/lib/credentials.js.map +1 -0
- package/lib/endpoints.d.ts +15 -0
- package/lib/endpoints.d.ts.map +1 -0
- package/lib/endpoints.js +28 -0
- package/lib/endpoints.js.map +1 -0
- package/lib/errors.d.ts +53 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +30 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +10 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +75 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +43 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/api_keys.d.ts +120 -0
- package/lib/services/api_keys.d.ts.map +1 -0
- package/lib/services/api_keys.js +126 -0
- package/lib/services/api_keys.js.map +1 -0
- package/lib/services/audit.d.ts +159 -0
- package/lib/services/audit.d.ts.map +1 -0
- package/lib/services/audit.js +126 -0
- package/lib/services/audit.js.map +1 -0
- package/lib/services/computer_use.d.ts +484 -0
- package/lib/services/computer_use.d.ts.map +1 -0
- package/lib/services/computer_use.js +672 -0
- package/lib/services/computer_use.js.map +1 -0
- package/lib/services/config.d.ts +138 -0
- package/lib/services/config.d.ts.map +1 -0
- package/lib/services/config.js +88 -0
- package/lib/services/config.js.map +1 -0
- package/lib/services/docker_registry.d.ts +126 -0
- package/lib/services/docker_registry.d.ts.map +1 -0
- package/lib/services/docker_registry.js +135 -0
- package/lib/services/docker_registry.js.map +1 -0
- package/lib/services/file_system.d.ts +203 -0
- package/lib/services/file_system.d.ts.map +1 -0
- package/lib/services/file_system.js +255 -0
- package/lib/services/file_system.js.map +1 -0
- package/lib/services/git.d.ts +338 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +417 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/health.d.ts +41 -0
- package/lib/services/health.d.ts.map +1 -0
- package/lib/services/health.js +49 -0
- package/lib/services/health.js.map +1 -0
- package/lib/services/index.d.ts +31 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +32 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/info.d.ts +37 -0
- package/lib/services/info.d.ts.map +1 -0
- package/lib/services/info.js +55 -0
- package/lib/services/info.js.map +1 -0
- package/lib/services/interpreter.d.ts +56 -0
- package/lib/services/interpreter.d.ts.map +1 -0
- package/lib/services/interpreter.js +83 -0
- package/lib/services/interpreter.js.map +1 -0
- package/lib/services/jobs.d.ts +104 -0
- package/lib/services/jobs.d.ts.map +1 -0
- package/lib/services/jobs.js +94 -0
- package/lib/services/jobs.js.map +1 -0
- package/lib/services/lsp.d.ts +137 -0
- package/lib/services/lsp.d.ts.map +1 -0
- package/lib/services/lsp.js +160 -0
- package/lib/services/lsp.js.map +1 -0
- package/lib/services/object_storage.d.ts +31 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +33 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/organizations.d.ts +963 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +1143 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/port.d.ts +29 -0
- package/lib/services/port.d.ts.map +1 -0
- package/lib/services/port.js +41 -0
- package/lib/services/port.js.map +1 -0
- package/lib/services/preview.d.ts +73 -0
- package/lib/services/preview.d.ts.map +1 -0
- package/lib/services/preview.js +125 -0
- package/lib/services/preview.js.map +1 -0
- package/lib/services/process.d.ts +329 -0
- package/lib/services/process.d.ts.map +1 -0
- package/lib/services/process.js +421 -0
- package/lib/services/process.js.map +1 -0
- package/lib/services/regions.d.ts +41 -0
- package/lib/services/regions.d.ts.map +1 -0
- package/lib/services/regions.js +36 -0
- package/lib/services/regions.js.map +1 -0
- package/lib/services/runners.d.ts +358 -0
- package/lib/services/runners.d.ts.map +1 -0
- package/lib/services/runners.js +316 -0
- package/lib/services/runners.js.map +1 -0
- package/lib/services/sandbox.d.ts +1276 -0
- package/lib/services/sandbox.d.ts.map +1 -0
- package/lib/services/sandbox.js +1218 -0
- package/lib/services/sandbox.js.map +1 -0
- package/lib/services/secret.d.ts +120 -0
- package/lib/services/secret.d.ts.map +1 -0
- package/lib/services/secret.js +113 -0
- package/lib/services/secret.js.map +1 -0
- package/lib/services/server.d.ts +44 -0
- package/lib/services/server.d.ts.map +1 -0
- package/lib/services/server.js +46 -0
- package/lib/services/server.js.map +1 -0
- package/lib/services/snapshots.d.ts +208 -0
- package/lib/services/snapshots.d.ts.map +1 -0
- package/lib/services/snapshots.js +189 -0
- package/lib/services/snapshots.js.map +1 -0
- package/lib/services/system.d.ts +24 -0
- package/lib/services/system.d.ts.map +1 -0
- package/lib/services/system.js +31 -0
- package/lib/services/system.js.map +1 -0
- package/lib/services/telemetry.d.ts +141 -0
- package/lib/services/telemetry.d.ts.map +1 -0
- package/lib/services/telemetry.js +165 -0
- package/lib/services/telemetry.js.map +1 -0
- package/lib/services/usage.d.ts +111 -0
- package/lib/services/usage.d.ts.map +1 -0
- package/lib/services/usage.js +146 -0
- package/lib/services/usage.js.map +1 -0
- package/lib/services/users.d.ts +125 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +172 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/volumes.d.ts +83 -0
- package/lib/services/volumes.d.ts.map +1 -0
- package/lib/services/volumes.js +96 -0
- package/lib/services/volumes.js.map +1 -0
- package/lib/services/warm_pools.d.ts +79 -0
- package/lib/services/warm_pools.d.ts.map +1 -0
- package/lib/services/warm_pools.js +90 -0
- package/lib/services/warm_pools.js.map +1 -0
- package/lib/services/webhooks.d.ts +67 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +103 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +135 -0
- package/src/endpoints.ts +28 -0
- package/src/errors.ts +85 -0
- package/src/index.ts +33 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +108 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +74 -0
- package/src/services/api_keys.ts +378 -0
- package/src/services/audit.ts +416 -0
- package/src/services/computer_use.ts +1496 -0
- package/src/services/config.ts +256 -0
- package/src/services/docker_registry.ts +325 -0
- package/src/services/file_system.ts +575 -0
- package/src/services/git.ts +928 -0
- package/src/services/health.ts +116 -0
- package/src/services/index.ts +31 -0
- package/src/services/info.ts +116 -0
- package/src/services/interpreter.ts +182 -0
- package/src/services/jobs.ts +249 -0
- package/src/services/lsp.ts +367 -0
- package/src/services/object_storage.ts +75 -0
- package/src/services/organizations.ts +2712 -0
- package/src/services/port.ts +87 -0
- package/src/services/preview.ts +256 -0
- package/src/services/process.ts +948 -0
- package/src/services/regions.ts +90 -0
- package/src/services/runners.ts +811 -0
- package/src/services/sandbox.ts +3158 -0
- package/src/services/secret.ts +289 -0
- package/src/services/server.ts +111 -0
- package/src/services/snapshots.ts +508 -0
- package/src/services/system.ts +64 -0
- package/src/services/telemetry.ts +385 -0
- package/src/services/usage.ts +316 -0
- package/src/services/users.ts +380 -0
- package/src/services/volumes.ts +233 -0
- package/src/services/warm_pools.ts +209 -0
- package/src/services/webhooks.ts +214 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,1496 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-daytona/specs/{openapi,toolbox-openapi,analytics-openapi}.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
DaytonaProtocol,
|
|
7
|
+
type DaytonaOpError,
|
|
8
|
+
type DaytonaOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
14
|
+
|
|
15
|
+
export interface ClickRequest {
|
|
16
|
+
/** left, right, middle */
|
|
17
|
+
button?: string;
|
|
18
|
+
double?: boolean;
|
|
19
|
+
x?: number;
|
|
20
|
+
y?: number;
|
|
21
|
+
}
|
|
22
|
+
export const ClickRequest = /*@__PURE__*/ S.suspend(() =>
|
|
23
|
+
S.Struct({
|
|
24
|
+
button: S.optional(S.String),
|
|
25
|
+
double: S.optional(S.Boolean),
|
|
26
|
+
x: S.optional(S.Number),
|
|
27
|
+
y: S.optional(S.Number),
|
|
28
|
+
}).pipe(
|
|
29
|
+
T.Http({ method: "POST", uri: "/computeruse/mouse/click", code: 200 }),
|
|
30
|
+
),
|
|
31
|
+
).annotate({ identifier: "ClickRequest" }) as any as S.Schema<ClickRequest>;
|
|
32
|
+
|
|
33
|
+
export interface MouseClickResponse {
|
|
34
|
+
x?: number;
|
|
35
|
+
y?: number;
|
|
36
|
+
}
|
|
37
|
+
export const MouseClickResponse = /*@__PURE__*/ S.suspend(() =>
|
|
38
|
+
S.Struct({
|
|
39
|
+
x: S.optional(S.Number),
|
|
40
|
+
y: S.optional(S.Number),
|
|
41
|
+
}),
|
|
42
|
+
).annotate({
|
|
43
|
+
identifier: "MouseClickResponse",
|
|
44
|
+
}) as any as S.Schema<MouseClickResponse>;
|
|
45
|
+
|
|
46
|
+
export interface DeleteRecordingRequest {
|
|
47
|
+
/** Recording ID */
|
|
48
|
+
id: string;
|
|
49
|
+
}
|
|
50
|
+
export const DeleteRecordingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
51
|
+
S.Struct({
|
|
52
|
+
id: S.String.pipe(T.Label()),
|
|
53
|
+
}).pipe(
|
|
54
|
+
T.Http({
|
|
55
|
+
method: "DELETE",
|
|
56
|
+
uri: "/computeruse/recordings/{id}",
|
|
57
|
+
code: 200,
|
|
58
|
+
}),
|
|
59
|
+
),
|
|
60
|
+
).annotate({
|
|
61
|
+
identifier: "DeleteRecordingRequest",
|
|
62
|
+
}) as any as S.Schema<DeleteRecordingRequest>;
|
|
63
|
+
|
|
64
|
+
export interface DeleteRecordingResponse {}
|
|
65
|
+
export const DeleteRecordingResponse = /*@__PURE__*/ S.suspend(() =>
|
|
66
|
+
S.Struct({}),
|
|
67
|
+
).annotate({
|
|
68
|
+
identifier: "DeleteRecordingResponse",
|
|
69
|
+
}) as any as S.Schema<DeleteRecordingResponse>;
|
|
70
|
+
|
|
71
|
+
export interface DownloadRecordingRequest {
|
|
72
|
+
/** Recording ID */
|
|
73
|
+
id: string;
|
|
74
|
+
}
|
|
75
|
+
export const DownloadRecordingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
76
|
+
S.Struct({
|
|
77
|
+
id: S.String.pipe(T.Label()),
|
|
78
|
+
}).pipe(
|
|
79
|
+
T.Http({
|
|
80
|
+
method: "GET",
|
|
81
|
+
uri: "/computeruse/recordings/{id}/download",
|
|
82
|
+
code: 200,
|
|
83
|
+
}),
|
|
84
|
+
),
|
|
85
|
+
).annotate({
|
|
86
|
+
identifier: "DownloadRecordingRequest",
|
|
87
|
+
}) as any as S.Schema<DownloadRecordingRequest>;
|
|
88
|
+
|
|
89
|
+
export type DownloadRecordingResponse = unknown;
|
|
90
|
+
export const DownloadRecordingResponse = /*@__PURE__*/ S.suspend(() =>
|
|
91
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
92
|
+
).annotate({
|
|
93
|
+
identifier: "DownloadRecordingResponse",
|
|
94
|
+
}) as any as S.Schema<DownloadRecordingResponse>;
|
|
95
|
+
|
|
96
|
+
export interface DragRequest {
|
|
97
|
+
button?: string;
|
|
98
|
+
endX?: number;
|
|
99
|
+
endY?: number;
|
|
100
|
+
startX?: number;
|
|
101
|
+
startY?: number;
|
|
102
|
+
}
|
|
103
|
+
export const DragRequest = /*@__PURE__*/ S.suspend(() =>
|
|
104
|
+
S.Struct({
|
|
105
|
+
button: S.optional(S.String),
|
|
106
|
+
endX: S.optional(S.Number),
|
|
107
|
+
endY: S.optional(S.Number),
|
|
108
|
+
startX: S.optional(S.Number),
|
|
109
|
+
startY: S.optional(S.Number),
|
|
110
|
+
}).pipe(
|
|
111
|
+
T.Http({ method: "POST", uri: "/computeruse/mouse/drag", code: 200 }),
|
|
112
|
+
),
|
|
113
|
+
).annotate({ identifier: "DragRequest" }) as any as S.Schema<DragRequest>;
|
|
114
|
+
|
|
115
|
+
export interface MouseDragResponse {
|
|
116
|
+
x?: number;
|
|
117
|
+
y?: number;
|
|
118
|
+
}
|
|
119
|
+
export const MouseDragResponse = /*@__PURE__*/ S.suspend(() =>
|
|
120
|
+
S.Struct({
|
|
121
|
+
x: S.optional(S.Number),
|
|
122
|
+
y: S.optional(S.Number),
|
|
123
|
+
}),
|
|
124
|
+
).annotate({
|
|
125
|
+
identifier: "MouseDragResponse",
|
|
126
|
+
}) as any as S.Schema<MouseDragResponse>;
|
|
127
|
+
|
|
128
|
+
export type FindAccessibilityNodesRequestStatesList = Array<string>;
|
|
129
|
+
export const FindAccessibilityNodesRequestStatesList = /*@__PURE__*/ S.Array(
|
|
130
|
+
S.String,
|
|
131
|
+
) as any as S.Schema<FindAccessibilityNodesRequestStatesList>;
|
|
132
|
+
|
|
133
|
+
export interface FindAccessibilityNodesRequest {
|
|
134
|
+
limit?: number;
|
|
135
|
+
name?: string;
|
|
136
|
+
/** "exact" | "substring" | "regex" */
|
|
137
|
+
nameMatch?: string;
|
|
138
|
+
pid?: number;
|
|
139
|
+
role?: string;
|
|
140
|
+
scope?: string;
|
|
141
|
+
states?: FindAccessibilityNodesRequestStatesList;
|
|
142
|
+
}
|
|
143
|
+
export const FindAccessibilityNodesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
144
|
+
S.Struct({
|
|
145
|
+
limit: S.optional(S.Number),
|
|
146
|
+
name: S.optional(S.String),
|
|
147
|
+
nameMatch: S.optional(S.String),
|
|
148
|
+
pid: S.optional(S.Number),
|
|
149
|
+
role: S.optional(S.String),
|
|
150
|
+
scope: S.optional(S.String),
|
|
151
|
+
states: S.optional(FindAccessibilityNodesRequestStatesList),
|
|
152
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/a11y/find", code: 200 })),
|
|
153
|
+
).annotate({
|
|
154
|
+
identifier: "FindAccessibilityNodesRequest",
|
|
155
|
+
}) as any as S.Schema<FindAccessibilityNodesRequest>;
|
|
156
|
+
|
|
157
|
+
export type ComputeruseAccessibilityNodeActionsList = Array<string>;
|
|
158
|
+
export const ComputeruseAccessibilityNodeActionsList = /*@__PURE__*/ S.Array(
|
|
159
|
+
S.String,
|
|
160
|
+
) as any as S.Schema<ComputeruseAccessibilityNodeActionsList>;
|
|
161
|
+
|
|
162
|
+
export interface AccessibilityBounds {
|
|
163
|
+
height?: number;
|
|
164
|
+
width?: number;
|
|
165
|
+
x?: number;
|
|
166
|
+
y?: number;
|
|
167
|
+
}
|
|
168
|
+
export const AccessibilityBounds = /*@__PURE__*/ S.suspend(() =>
|
|
169
|
+
S.Struct({
|
|
170
|
+
height: S.optional(S.Number),
|
|
171
|
+
width: S.optional(S.Number),
|
|
172
|
+
x: S.optional(S.Number),
|
|
173
|
+
y: S.optional(S.Number),
|
|
174
|
+
}),
|
|
175
|
+
).annotate({
|
|
176
|
+
identifier: "AccessibilityBounds",
|
|
177
|
+
}) as any as S.Schema<AccessibilityBounds>;
|
|
178
|
+
|
|
179
|
+
export type ComputeruseAccessibilityNodeChildrenList =
|
|
180
|
+
Array<ComputeruseAccessibilityNode>;
|
|
181
|
+
export const ComputeruseAccessibilityNodeChildrenList = /*@__PURE__*/ S.Array(
|
|
182
|
+
S.suspend(() => ComputeruseAccessibilityNode),
|
|
183
|
+
) as any as S.Schema<ComputeruseAccessibilityNodeChildrenList>;
|
|
184
|
+
|
|
185
|
+
export type ComputeruseAccessibilityNodeStatesList = Array<string>;
|
|
186
|
+
export const ComputeruseAccessibilityNodeStatesList = /*@__PURE__*/ S.Array(
|
|
187
|
+
S.String,
|
|
188
|
+
) as any as S.Schema<ComputeruseAccessibilityNodeStatesList>;
|
|
189
|
+
|
|
190
|
+
export interface ComputeruseAccessibilityNode {
|
|
191
|
+
actions?: ComputeruseAccessibilityNodeActionsList;
|
|
192
|
+
bounds?: AccessibilityBounds;
|
|
193
|
+
children?: ComputeruseAccessibilityNodeChildrenList;
|
|
194
|
+
description?: string;
|
|
195
|
+
id?: string;
|
|
196
|
+
name?: string;
|
|
197
|
+
role?: string;
|
|
198
|
+
states?: ComputeruseAccessibilityNodeStatesList;
|
|
199
|
+
}
|
|
200
|
+
export const ComputeruseAccessibilityNode = /*@__PURE__*/ S.suspend(() =>
|
|
201
|
+
S.Struct({
|
|
202
|
+
actions: S.optional(ComputeruseAccessibilityNodeActionsList),
|
|
203
|
+
bounds: S.optional(AccessibilityBounds),
|
|
204
|
+
children: S.optional(ComputeruseAccessibilityNodeChildrenList),
|
|
205
|
+
description: S.optional(S.String),
|
|
206
|
+
id: S.optional(S.String),
|
|
207
|
+
name: S.optional(S.String),
|
|
208
|
+
role: S.optional(S.String),
|
|
209
|
+
states: S.optional(ComputeruseAccessibilityNodeStatesList),
|
|
210
|
+
}),
|
|
211
|
+
).annotate({
|
|
212
|
+
identifier: "ComputeruseAccessibilityNode",
|
|
213
|
+
}) as any as S.Schema<ComputeruseAccessibilityNode>;
|
|
214
|
+
|
|
215
|
+
export type AccessibilityNodesResponseMatchesList =
|
|
216
|
+
Array<ComputeruseAccessibilityNode>;
|
|
217
|
+
export const AccessibilityNodesResponseMatchesList = /*@__PURE__*/ S.Array(
|
|
218
|
+
ComputeruseAccessibilityNode,
|
|
219
|
+
) as any as S.Schema<AccessibilityNodesResponseMatchesList>;
|
|
220
|
+
|
|
221
|
+
export interface AccessibilityNodesResponse {
|
|
222
|
+
matches?: AccessibilityNodesResponseMatchesList;
|
|
223
|
+
truncated?: boolean;
|
|
224
|
+
}
|
|
225
|
+
export const AccessibilityNodesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
226
|
+
S.Struct({
|
|
227
|
+
matches: S.optional(AccessibilityNodesResponseMatchesList),
|
|
228
|
+
truncated: S.optional(S.Boolean),
|
|
229
|
+
}),
|
|
230
|
+
).annotate({
|
|
231
|
+
identifier: "AccessibilityNodesResponse",
|
|
232
|
+
}) as any as S.Schema<AccessibilityNodesResponse>;
|
|
233
|
+
|
|
234
|
+
export interface FocusAccessibilityNodeRequest {
|
|
235
|
+
id: string;
|
|
236
|
+
}
|
|
237
|
+
export const FocusAccessibilityNodeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
238
|
+
S.Struct({
|
|
239
|
+
id: S.String,
|
|
240
|
+
}).pipe(
|
|
241
|
+
T.Http({ method: "POST", uri: "/computeruse/a11y/node/focus", code: 200 }),
|
|
242
|
+
),
|
|
243
|
+
).annotate({
|
|
244
|
+
identifier: "FocusAccessibilityNodeRequest",
|
|
245
|
+
}) as any as S.Schema<FocusAccessibilityNodeRequest>;
|
|
246
|
+
|
|
247
|
+
export type FocusAccessibilityNodeResponse = unknown;
|
|
248
|
+
export const FocusAccessibilityNodeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
249
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
250
|
+
).annotate({
|
|
251
|
+
identifier: "FocusAccessibilityNodeResponse",
|
|
252
|
+
}) as any as S.Schema<FocusAccessibilityNodeResponse>;
|
|
253
|
+
|
|
254
|
+
export interface GetAccessibilityTreeRequest {
|
|
255
|
+
/** Scope: focused | pid | all (default: focused) */
|
|
256
|
+
scope?: string;
|
|
257
|
+
/** Process ID when scope=pid */
|
|
258
|
+
pid?: number;
|
|
259
|
+
/** Max tree depth (-1 unbounded, 0 root only; default -1) */
|
|
260
|
+
maxDepth?: number;
|
|
261
|
+
}
|
|
262
|
+
export const GetAccessibilityTreeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
263
|
+
S.Struct({
|
|
264
|
+
scope: S.optional(S.String.pipe(T.Query())),
|
|
265
|
+
pid: S.optional(S.Number.pipe(T.Query())),
|
|
266
|
+
maxDepth: S.optional(S.Number.pipe(T.Query())),
|
|
267
|
+
}).pipe(T.Http({ method: "GET", uri: "/computeruse/a11y/tree", code: 200 })),
|
|
268
|
+
).annotate({
|
|
269
|
+
identifier: "GetAccessibilityTreeRequest",
|
|
270
|
+
}) as any as S.Schema<GetAccessibilityTreeRequest>;
|
|
271
|
+
|
|
272
|
+
export interface AccessibilityTreeResponse {
|
|
273
|
+
root?: ComputeruseAccessibilityNode;
|
|
274
|
+
truncated?: boolean;
|
|
275
|
+
}
|
|
276
|
+
export const AccessibilityTreeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
277
|
+
S.Struct({
|
|
278
|
+
root: S.optional(ComputeruseAccessibilityNode),
|
|
279
|
+
truncated: S.optional(S.Boolean),
|
|
280
|
+
}),
|
|
281
|
+
).annotate({
|
|
282
|
+
identifier: "AccessibilityTreeResponse",
|
|
283
|
+
}) as any as S.Schema<AccessibilityTreeResponse>;
|
|
284
|
+
|
|
285
|
+
export interface GetComputerUseStatusRequest {}
|
|
286
|
+
export const GetComputerUseStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
287
|
+
S.Struct({}).pipe(
|
|
288
|
+
T.Http({ method: "GET", uri: "/computeruse/process-status", code: 200 }),
|
|
289
|
+
),
|
|
290
|
+
).annotate({
|
|
291
|
+
identifier: "GetComputerUseStatusRequest",
|
|
292
|
+
}) as any as S.Schema<GetComputerUseStatusRequest>;
|
|
293
|
+
|
|
294
|
+
export interface ComputerUseStatusResponse {
|
|
295
|
+
status?: string;
|
|
296
|
+
}
|
|
297
|
+
export const ComputerUseStatusResponse = /*@__PURE__*/ S.suspend(() =>
|
|
298
|
+
S.Struct({
|
|
299
|
+
status: S.optional(S.String),
|
|
300
|
+
}),
|
|
301
|
+
).annotate({
|
|
302
|
+
identifier: "ComputerUseStatusResponse",
|
|
303
|
+
}) as any as S.Schema<ComputerUseStatusResponse>;
|
|
304
|
+
|
|
305
|
+
export interface GetComputerUseSystemStatusRequest {}
|
|
306
|
+
export const GetComputerUseSystemStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
307
|
+
S.Struct({}).pipe(
|
|
308
|
+
T.Http({ method: "GET", uri: "/computeruse/status", code: 200 }),
|
|
309
|
+
),
|
|
310
|
+
).annotate({
|
|
311
|
+
identifier: "GetComputerUseSystemStatusRequest",
|
|
312
|
+
}) as any as S.Schema<GetComputerUseSystemStatusRequest>;
|
|
313
|
+
|
|
314
|
+
export interface GetDisplayInfoRequest {}
|
|
315
|
+
export const GetDisplayInfoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
316
|
+
S.Struct({}).pipe(
|
|
317
|
+
T.Http({ method: "GET", uri: "/computeruse/display/info", code: 200 }),
|
|
318
|
+
),
|
|
319
|
+
).annotate({
|
|
320
|
+
identifier: "GetDisplayInfoRequest",
|
|
321
|
+
}) as any as S.Schema<GetDisplayInfoRequest>;
|
|
322
|
+
|
|
323
|
+
export interface DisplayInfo {
|
|
324
|
+
height?: number;
|
|
325
|
+
id?: number;
|
|
326
|
+
isActive?: boolean;
|
|
327
|
+
width?: number;
|
|
328
|
+
x?: number;
|
|
329
|
+
y?: number;
|
|
330
|
+
}
|
|
331
|
+
export const DisplayInfo = /*@__PURE__*/ S.suspend(() =>
|
|
332
|
+
S.Struct({
|
|
333
|
+
height: S.optional(S.Number),
|
|
334
|
+
id: S.optional(S.Number),
|
|
335
|
+
isActive: S.optional(S.Boolean),
|
|
336
|
+
width: S.optional(S.Number),
|
|
337
|
+
x: S.optional(S.Number),
|
|
338
|
+
y: S.optional(S.Number),
|
|
339
|
+
}),
|
|
340
|
+
).annotate({ identifier: "DisplayInfo" }) as any as S.Schema<DisplayInfo>;
|
|
341
|
+
|
|
342
|
+
export type DisplayInfoResponseDisplaysList = Array<DisplayInfo>;
|
|
343
|
+
export const DisplayInfoResponseDisplaysList = /*@__PURE__*/ S.Array(
|
|
344
|
+
DisplayInfo,
|
|
345
|
+
) as any as S.Schema<DisplayInfoResponseDisplaysList>;
|
|
346
|
+
|
|
347
|
+
export interface DisplayInfoResponse {
|
|
348
|
+
displays?: DisplayInfoResponseDisplaysList;
|
|
349
|
+
}
|
|
350
|
+
export const DisplayInfoResponse = /*@__PURE__*/ S.suspend(() =>
|
|
351
|
+
S.Struct({
|
|
352
|
+
displays: S.optional(DisplayInfoResponseDisplaysList),
|
|
353
|
+
}),
|
|
354
|
+
).annotate({
|
|
355
|
+
identifier: "DisplayInfoResponse",
|
|
356
|
+
}) as any as S.Schema<DisplayInfoResponse>;
|
|
357
|
+
|
|
358
|
+
export interface GetMousePositionRequest {}
|
|
359
|
+
export const GetMousePositionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
360
|
+
S.Struct({}).pipe(
|
|
361
|
+
T.Http({ method: "GET", uri: "/computeruse/mouse/position", code: 200 }),
|
|
362
|
+
),
|
|
363
|
+
).annotate({
|
|
364
|
+
identifier: "GetMousePositionRequest",
|
|
365
|
+
}) as any as S.Schema<GetMousePositionRequest>;
|
|
366
|
+
|
|
367
|
+
export interface MousePositionResponse {
|
|
368
|
+
x?: number;
|
|
369
|
+
y?: number;
|
|
370
|
+
}
|
|
371
|
+
export const MousePositionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
372
|
+
S.Struct({
|
|
373
|
+
x: S.optional(S.Number),
|
|
374
|
+
y: S.optional(S.Number),
|
|
375
|
+
}),
|
|
376
|
+
).annotate({
|
|
377
|
+
identifier: "MousePositionResponse",
|
|
378
|
+
}) as any as S.Schema<MousePositionResponse>;
|
|
379
|
+
|
|
380
|
+
export interface GetProcessErrorsRequest {
|
|
381
|
+
/** Process name to get errors for */
|
|
382
|
+
processName: string;
|
|
383
|
+
}
|
|
384
|
+
export const GetProcessErrorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
385
|
+
S.Struct({
|
|
386
|
+
processName: S.String.pipe(T.Label()),
|
|
387
|
+
}).pipe(
|
|
388
|
+
T.Http({
|
|
389
|
+
method: "GET",
|
|
390
|
+
uri: "/computeruse/process/{processName}/errors",
|
|
391
|
+
code: 200,
|
|
392
|
+
}),
|
|
393
|
+
),
|
|
394
|
+
).annotate({
|
|
395
|
+
identifier: "GetProcessErrorsRequest",
|
|
396
|
+
}) as any as S.Schema<GetProcessErrorsRequest>;
|
|
397
|
+
|
|
398
|
+
export interface ProcessErrorsResponse {
|
|
399
|
+
errors?: string;
|
|
400
|
+
processName?: string;
|
|
401
|
+
}
|
|
402
|
+
export const ProcessErrorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
403
|
+
S.Struct({
|
|
404
|
+
errors: S.optional(S.String),
|
|
405
|
+
processName: S.optional(S.String),
|
|
406
|
+
}),
|
|
407
|
+
).annotate({
|
|
408
|
+
identifier: "ProcessErrorsResponse",
|
|
409
|
+
}) as any as S.Schema<ProcessErrorsResponse>;
|
|
410
|
+
|
|
411
|
+
export interface GetProcessLogsRequest {
|
|
412
|
+
/** Process name to get logs for */
|
|
413
|
+
processName: string;
|
|
414
|
+
}
|
|
415
|
+
export const GetProcessLogsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
416
|
+
S.Struct({
|
|
417
|
+
processName: S.String.pipe(T.Label()),
|
|
418
|
+
}).pipe(
|
|
419
|
+
T.Http({
|
|
420
|
+
method: "GET",
|
|
421
|
+
uri: "/computeruse/process/{processName}/logs",
|
|
422
|
+
code: 200,
|
|
423
|
+
}),
|
|
424
|
+
),
|
|
425
|
+
).annotate({
|
|
426
|
+
identifier: "GetProcessLogsRequest",
|
|
427
|
+
}) as any as S.Schema<GetProcessLogsRequest>;
|
|
428
|
+
|
|
429
|
+
export interface ProcessLogsResponse {
|
|
430
|
+
logs?: string;
|
|
431
|
+
processName?: string;
|
|
432
|
+
}
|
|
433
|
+
export const ProcessLogsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
434
|
+
S.Struct({
|
|
435
|
+
logs: S.optional(S.String),
|
|
436
|
+
processName: S.optional(S.String),
|
|
437
|
+
}),
|
|
438
|
+
).annotate({
|
|
439
|
+
identifier: "ProcessLogsResponse",
|
|
440
|
+
}) as any as S.Schema<ProcessLogsResponse>;
|
|
441
|
+
|
|
442
|
+
export interface GetProcessStatusRequest {
|
|
443
|
+
/** Process name to check */
|
|
444
|
+
processName: string;
|
|
445
|
+
}
|
|
446
|
+
export const GetProcessStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
447
|
+
S.Struct({
|
|
448
|
+
processName: S.String.pipe(T.Label()),
|
|
449
|
+
}).pipe(
|
|
450
|
+
T.Http({
|
|
451
|
+
method: "GET",
|
|
452
|
+
uri: "/computeruse/process/{processName}/status",
|
|
453
|
+
code: 200,
|
|
454
|
+
}),
|
|
455
|
+
),
|
|
456
|
+
).annotate({
|
|
457
|
+
identifier: "GetProcessStatusRequest",
|
|
458
|
+
}) as any as S.Schema<GetProcessStatusRequest>;
|
|
459
|
+
|
|
460
|
+
export interface ProcessStatusResponse {
|
|
461
|
+
processName?: string;
|
|
462
|
+
running?: boolean;
|
|
463
|
+
}
|
|
464
|
+
export const ProcessStatusResponse = /*@__PURE__*/ S.suspend(() =>
|
|
465
|
+
S.Struct({
|
|
466
|
+
processName: S.optional(S.String),
|
|
467
|
+
running: S.optional(S.Boolean),
|
|
468
|
+
}),
|
|
469
|
+
).annotate({
|
|
470
|
+
identifier: "ProcessStatusResponse",
|
|
471
|
+
}) as any as S.Schema<ProcessStatusResponse>;
|
|
472
|
+
|
|
473
|
+
export interface GetRecordingRequest {
|
|
474
|
+
/** Recording ID */
|
|
475
|
+
id: string;
|
|
476
|
+
}
|
|
477
|
+
export const GetRecordingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
478
|
+
S.Struct({
|
|
479
|
+
id: S.String.pipe(T.Label()),
|
|
480
|
+
}).pipe(
|
|
481
|
+
T.Http({ method: "GET", uri: "/computeruse/recordings/{id}", code: 200 }),
|
|
482
|
+
),
|
|
483
|
+
).annotate({
|
|
484
|
+
identifier: "GetRecordingRequest",
|
|
485
|
+
}) as any as S.Schema<GetRecordingRequest>;
|
|
486
|
+
|
|
487
|
+
export interface Recording {
|
|
488
|
+
durationSeconds?: number;
|
|
489
|
+
endTime?: string;
|
|
490
|
+
fileName: string;
|
|
491
|
+
filePath: string;
|
|
492
|
+
id: string;
|
|
493
|
+
sizeBytes?: number;
|
|
494
|
+
startTime: string;
|
|
495
|
+
status: string;
|
|
496
|
+
}
|
|
497
|
+
export const Recording = /*@__PURE__*/ S.suspend(() =>
|
|
498
|
+
S.Struct({
|
|
499
|
+
durationSeconds: S.optional(S.Number),
|
|
500
|
+
endTime: S.optional(S.String),
|
|
501
|
+
fileName: S.String,
|
|
502
|
+
filePath: S.String,
|
|
503
|
+
id: S.String,
|
|
504
|
+
sizeBytes: S.optional(S.Number),
|
|
505
|
+
startTime: S.String,
|
|
506
|
+
status: S.String,
|
|
507
|
+
}),
|
|
508
|
+
).annotate({ identifier: "Recording" }) as any as S.Schema<Recording>;
|
|
509
|
+
|
|
510
|
+
export interface GetWindowsRequest {}
|
|
511
|
+
export const GetWindowsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
512
|
+
S.Struct({}).pipe(
|
|
513
|
+
T.Http({ method: "GET", uri: "/computeruse/display/windows", code: 200 }),
|
|
514
|
+
),
|
|
515
|
+
).annotate({
|
|
516
|
+
identifier: "GetWindowsRequest",
|
|
517
|
+
}) as any as S.Schema<GetWindowsRequest>;
|
|
518
|
+
|
|
519
|
+
export interface WindowInfo {
|
|
520
|
+
height?: number;
|
|
521
|
+
id?: number;
|
|
522
|
+
isActive?: boolean;
|
|
523
|
+
title?: string;
|
|
524
|
+
width?: number;
|
|
525
|
+
x?: number;
|
|
526
|
+
y?: number;
|
|
527
|
+
}
|
|
528
|
+
export const WindowInfo = /*@__PURE__*/ S.suspend(() =>
|
|
529
|
+
S.Struct({
|
|
530
|
+
height: S.optional(S.Number),
|
|
531
|
+
id: S.optional(S.Number),
|
|
532
|
+
isActive: S.optional(S.Boolean),
|
|
533
|
+
title: S.optional(S.String),
|
|
534
|
+
width: S.optional(S.Number),
|
|
535
|
+
x: S.optional(S.Number),
|
|
536
|
+
y: S.optional(S.Number),
|
|
537
|
+
}),
|
|
538
|
+
).annotate({ identifier: "WindowInfo" }) as any as S.Schema<WindowInfo>;
|
|
539
|
+
|
|
540
|
+
export type WindowsResponseWindowsList = Array<WindowInfo>;
|
|
541
|
+
export const WindowsResponseWindowsList = /*@__PURE__*/ S.Array(
|
|
542
|
+
WindowInfo,
|
|
543
|
+
) as any as S.Schema<WindowsResponseWindowsList>;
|
|
544
|
+
|
|
545
|
+
export interface WindowsResponse {
|
|
546
|
+
windows?: WindowsResponseWindowsList;
|
|
547
|
+
}
|
|
548
|
+
export const WindowsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
549
|
+
S.Struct({
|
|
550
|
+
windows: S.optional(WindowsResponseWindowsList),
|
|
551
|
+
}),
|
|
552
|
+
).annotate({
|
|
553
|
+
identifier: "WindowsResponse",
|
|
554
|
+
}) as any as S.Schema<WindowsResponse>;
|
|
555
|
+
|
|
556
|
+
export interface InvokeAccessibilityNodeRequest {
|
|
557
|
+
action?: string;
|
|
558
|
+
id: string;
|
|
559
|
+
}
|
|
560
|
+
export const InvokeAccessibilityNodeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
561
|
+
S.Struct({
|
|
562
|
+
action: S.optional(S.String),
|
|
563
|
+
id: S.String,
|
|
564
|
+
}).pipe(
|
|
565
|
+
T.Http({ method: "POST", uri: "/computeruse/a11y/node/invoke", code: 200 }),
|
|
566
|
+
),
|
|
567
|
+
).annotate({
|
|
568
|
+
identifier: "InvokeAccessibilityNodeRequest",
|
|
569
|
+
}) as any as S.Schema<InvokeAccessibilityNodeRequest>;
|
|
570
|
+
|
|
571
|
+
export type InvokeAccessibilityNodeResponse = unknown;
|
|
572
|
+
export const InvokeAccessibilityNodeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
573
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
574
|
+
).annotate({
|
|
575
|
+
identifier: "InvokeAccessibilityNodeResponse",
|
|
576
|
+
}) as any as S.Schema<InvokeAccessibilityNodeResponse>;
|
|
577
|
+
|
|
578
|
+
export interface ListRecordingsRequest {}
|
|
579
|
+
export const ListRecordingsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
580
|
+
S.Struct({}).pipe(
|
|
581
|
+
T.Http({ method: "GET", uri: "/computeruse/recordings", code: 200 }),
|
|
582
|
+
),
|
|
583
|
+
).annotate({
|
|
584
|
+
identifier: "ListRecordingsRequest",
|
|
585
|
+
}) as any as S.Schema<ListRecordingsRequest>;
|
|
586
|
+
|
|
587
|
+
export type ListRecordingsResponseRecordingsList = Array<Recording>;
|
|
588
|
+
export const ListRecordingsResponseRecordingsList = /*@__PURE__*/ S.Array(
|
|
589
|
+
Recording,
|
|
590
|
+
) as any as S.Schema<ListRecordingsResponseRecordingsList>;
|
|
591
|
+
|
|
592
|
+
export interface ListRecordingsResponse {
|
|
593
|
+
recordings: ListRecordingsResponseRecordingsList;
|
|
594
|
+
}
|
|
595
|
+
export const ListRecordingsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
596
|
+
S.Struct({
|
|
597
|
+
recordings: ListRecordingsResponseRecordingsList,
|
|
598
|
+
}),
|
|
599
|
+
).annotate({
|
|
600
|
+
identifier: "ListRecordingsResponse",
|
|
601
|
+
}) as any as S.Schema<ListRecordingsResponse>;
|
|
602
|
+
|
|
603
|
+
export interface MoveMouseRequest {
|
|
604
|
+
x?: number;
|
|
605
|
+
y?: number;
|
|
606
|
+
}
|
|
607
|
+
export const MoveMouseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
608
|
+
S.Struct({
|
|
609
|
+
x: S.optional(S.Number),
|
|
610
|
+
y: S.optional(S.Number),
|
|
611
|
+
}).pipe(
|
|
612
|
+
T.Http({ method: "POST", uri: "/computeruse/mouse/move", code: 200 }),
|
|
613
|
+
),
|
|
614
|
+
).annotate({
|
|
615
|
+
identifier: "MoveMouseRequest",
|
|
616
|
+
}) as any as S.Schema<MoveMouseRequest>;
|
|
617
|
+
|
|
618
|
+
export interface PressHotkeyRequest {
|
|
619
|
+
/** e.g., "ctrl+c", "cmd+v" */
|
|
620
|
+
keys?: string;
|
|
621
|
+
}
|
|
622
|
+
export const PressHotkeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
623
|
+
S.Struct({
|
|
624
|
+
keys: S.optional(S.String),
|
|
625
|
+
}).pipe(
|
|
626
|
+
T.Http({ method: "POST", uri: "/computeruse/keyboard/hotkey", code: 200 }),
|
|
627
|
+
),
|
|
628
|
+
).annotate({
|
|
629
|
+
identifier: "PressHotkeyRequest",
|
|
630
|
+
}) as any as S.Schema<PressHotkeyRequest>;
|
|
631
|
+
|
|
632
|
+
export type PressHotkeyResponse = unknown;
|
|
633
|
+
export const PressHotkeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
634
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
635
|
+
).annotate({
|
|
636
|
+
identifier: "PressHotkeyResponse",
|
|
637
|
+
}) as any as S.Schema<PressHotkeyResponse>;
|
|
638
|
+
|
|
639
|
+
/** ctrl, alt, shift, cmd */
|
|
640
|
+
export type PressKeyRequestModifiersList = Array<string>;
|
|
641
|
+
export const PressKeyRequestModifiersList = /*@__PURE__*/ S.Array(
|
|
642
|
+
S.String,
|
|
643
|
+
) as any as S.Schema<PressKeyRequestModifiersList>;
|
|
644
|
+
|
|
645
|
+
export interface PressKeyRequest {
|
|
646
|
+
key?: string;
|
|
647
|
+
/** ctrl, alt, shift, cmd */
|
|
648
|
+
modifiers?: PressKeyRequestModifiersList;
|
|
649
|
+
}
|
|
650
|
+
export const PressKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
651
|
+
S.Struct({
|
|
652
|
+
key: S.optional(S.String),
|
|
653
|
+
modifiers: S.optional(PressKeyRequestModifiersList),
|
|
654
|
+
}).pipe(
|
|
655
|
+
T.Http({ method: "POST", uri: "/computeruse/keyboard/key", code: 200 }),
|
|
656
|
+
),
|
|
657
|
+
).annotate({
|
|
658
|
+
identifier: "PressKeyRequest",
|
|
659
|
+
}) as any as S.Schema<PressKeyRequest>;
|
|
660
|
+
|
|
661
|
+
export type PressKeyResponse = unknown;
|
|
662
|
+
export const PressKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
663
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
664
|
+
).annotate({
|
|
665
|
+
identifier: "PressKeyResponse",
|
|
666
|
+
}) as any as S.Schema<PressKeyResponse>;
|
|
667
|
+
|
|
668
|
+
export interface RestartProcessRequest {
|
|
669
|
+
/** Process name to restart */
|
|
670
|
+
processName: string;
|
|
671
|
+
}
|
|
672
|
+
export const RestartProcessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
673
|
+
S.Struct({
|
|
674
|
+
processName: S.String.pipe(T.Label()),
|
|
675
|
+
}).pipe(
|
|
676
|
+
T.Http({
|
|
677
|
+
method: "POST",
|
|
678
|
+
uri: "/computeruse/process/{processName}/restart",
|
|
679
|
+
code: 200,
|
|
680
|
+
}),
|
|
681
|
+
),
|
|
682
|
+
).annotate({
|
|
683
|
+
identifier: "RestartProcessRequest",
|
|
684
|
+
}) as any as S.Schema<RestartProcessRequest>;
|
|
685
|
+
|
|
686
|
+
export interface ProcessRestartResponse {
|
|
687
|
+
message?: string;
|
|
688
|
+
processName?: string;
|
|
689
|
+
}
|
|
690
|
+
export const ProcessRestartResponse = /*@__PURE__*/ S.suspend(() =>
|
|
691
|
+
S.Struct({
|
|
692
|
+
message: S.optional(S.String),
|
|
693
|
+
processName: S.optional(S.String),
|
|
694
|
+
}),
|
|
695
|
+
).annotate({
|
|
696
|
+
identifier: "ProcessRestartResponse",
|
|
697
|
+
}) as any as S.Schema<ProcessRestartResponse>;
|
|
698
|
+
|
|
699
|
+
export interface ScrollRequest {
|
|
700
|
+
amount?: number;
|
|
701
|
+
/** up, down */
|
|
702
|
+
direction?: string;
|
|
703
|
+
x?: number;
|
|
704
|
+
y?: number;
|
|
705
|
+
}
|
|
706
|
+
export const ScrollRequest = /*@__PURE__*/ S.suspend(() =>
|
|
707
|
+
S.Struct({
|
|
708
|
+
amount: S.optional(S.Number),
|
|
709
|
+
direction: S.optional(S.String),
|
|
710
|
+
x: S.optional(S.Number),
|
|
711
|
+
y: S.optional(S.Number),
|
|
712
|
+
}).pipe(
|
|
713
|
+
T.Http({ method: "POST", uri: "/computeruse/mouse/scroll", code: 200 }),
|
|
714
|
+
),
|
|
715
|
+
).annotate({ identifier: "ScrollRequest" }) as any as S.Schema<ScrollRequest>;
|
|
716
|
+
|
|
717
|
+
export interface ScrollResponse {
|
|
718
|
+
success?: boolean;
|
|
719
|
+
}
|
|
720
|
+
export const ScrollResponse = /*@__PURE__*/ S.suspend(() =>
|
|
721
|
+
S.Struct({
|
|
722
|
+
success: S.optional(S.Boolean),
|
|
723
|
+
}),
|
|
724
|
+
).annotate({ identifier: "ScrollResponse" }) as any as S.Schema<ScrollResponse>;
|
|
725
|
+
|
|
726
|
+
export interface SetAccessibilityNodeValueRequest {
|
|
727
|
+
id: string;
|
|
728
|
+
value?: string;
|
|
729
|
+
}
|
|
730
|
+
export const SetAccessibilityNodeValueRequest = /*@__PURE__*/ S.suspend(() =>
|
|
731
|
+
S.Struct({
|
|
732
|
+
id: S.String,
|
|
733
|
+
value: S.optional(S.String),
|
|
734
|
+
}).pipe(
|
|
735
|
+
T.Http({ method: "POST", uri: "/computeruse/a11y/node/value", code: 200 }),
|
|
736
|
+
),
|
|
737
|
+
).annotate({
|
|
738
|
+
identifier: "SetAccessibilityNodeValueRequest",
|
|
739
|
+
}) as any as S.Schema<SetAccessibilityNodeValueRequest>;
|
|
740
|
+
|
|
741
|
+
export type SetAccessibilityNodeValueResponse = unknown;
|
|
742
|
+
export const SetAccessibilityNodeValueResponse = /*@__PURE__*/ S.suspend(() =>
|
|
743
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
744
|
+
).annotate({
|
|
745
|
+
identifier: "SetAccessibilityNodeValueResponse",
|
|
746
|
+
}) as any as S.Schema<SetAccessibilityNodeValueResponse>;
|
|
747
|
+
|
|
748
|
+
export interface StartComputerUseRequest {}
|
|
749
|
+
export const StartComputerUseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
750
|
+
S.Struct({}).pipe(
|
|
751
|
+
T.Http({ method: "POST", uri: "/computeruse/start", code: 200 }),
|
|
752
|
+
),
|
|
753
|
+
).annotate({
|
|
754
|
+
identifier: "StartComputerUseRequest",
|
|
755
|
+
}) as any as S.Schema<StartComputerUseRequest>;
|
|
756
|
+
|
|
757
|
+
export interface ProcessStatus {
|
|
758
|
+
autoRestart?: boolean;
|
|
759
|
+
pid?: number;
|
|
760
|
+
priority?: number;
|
|
761
|
+
running?: boolean;
|
|
762
|
+
}
|
|
763
|
+
export const ProcessStatus = /*@__PURE__*/ S.suspend(() =>
|
|
764
|
+
S.Struct({
|
|
765
|
+
autoRestart: S.optional(S.Boolean),
|
|
766
|
+
pid: S.optional(S.Number),
|
|
767
|
+
priority: S.optional(S.Number),
|
|
768
|
+
running: S.optional(S.Boolean),
|
|
769
|
+
}),
|
|
770
|
+
).annotate({ identifier: "ProcessStatus" }) as any as S.Schema<ProcessStatus>;
|
|
771
|
+
|
|
772
|
+
export type ComputerUseStartResponseStatusMap = {
|
|
773
|
+
[key: string]: ProcessStatus | undefined;
|
|
774
|
+
};
|
|
775
|
+
export const ComputerUseStartResponseStatusMap = /*@__PURE__*/ S.Record(
|
|
776
|
+
S.String,
|
|
777
|
+
ProcessStatus,
|
|
778
|
+
) as any as S.Schema<ComputerUseStartResponseStatusMap>;
|
|
779
|
+
|
|
780
|
+
export interface ComputerUseStartResponse {
|
|
781
|
+
message?: string;
|
|
782
|
+
status?: ComputerUseStartResponseStatusMap;
|
|
783
|
+
}
|
|
784
|
+
export const ComputerUseStartResponse = /*@__PURE__*/ S.suspend(() =>
|
|
785
|
+
S.Struct({
|
|
786
|
+
message: S.optional(S.String),
|
|
787
|
+
status: S.optional(ComputerUseStartResponseStatusMap),
|
|
788
|
+
}),
|
|
789
|
+
).annotate({
|
|
790
|
+
identifier: "ComputerUseStartResponse",
|
|
791
|
+
}) as any as S.Schema<ComputerUseStartResponse>;
|
|
792
|
+
|
|
793
|
+
export interface StartRecordingRequest {
|
|
794
|
+
label?: string;
|
|
795
|
+
}
|
|
796
|
+
export const StartRecordingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
797
|
+
S.Struct({
|
|
798
|
+
label: S.optional(S.String),
|
|
799
|
+
}).pipe(
|
|
800
|
+
T.Http({ method: "POST", uri: "/computeruse/recordings/start", code: 200 }),
|
|
801
|
+
),
|
|
802
|
+
).annotate({
|
|
803
|
+
identifier: "StartRecordingRequest",
|
|
804
|
+
}) as any as S.Schema<StartRecordingRequest>;
|
|
805
|
+
|
|
806
|
+
export interface StopComputerUseRequest {}
|
|
807
|
+
export const StopComputerUseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
808
|
+
S.Struct({}).pipe(
|
|
809
|
+
T.Http({ method: "POST", uri: "/computeruse/stop", code: 200 }),
|
|
810
|
+
),
|
|
811
|
+
).annotate({
|
|
812
|
+
identifier: "StopComputerUseRequest",
|
|
813
|
+
}) as any as S.Schema<StopComputerUseRequest>;
|
|
814
|
+
|
|
815
|
+
export type ComputerUseStopResponseStatusMap = {
|
|
816
|
+
[key: string]: ProcessStatus | undefined;
|
|
817
|
+
};
|
|
818
|
+
export const ComputerUseStopResponseStatusMap = /*@__PURE__*/ S.Record(
|
|
819
|
+
S.String,
|
|
820
|
+
ProcessStatus,
|
|
821
|
+
) as any as S.Schema<ComputerUseStopResponseStatusMap>;
|
|
822
|
+
|
|
823
|
+
export interface ComputerUseStopResponse {
|
|
824
|
+
message?: string;
|
|
825
|
+
status?: ComputerUseStopResponseStatusMap;
|
|
826
|
+
}
|
|
827
|
+
export const ComputerUseStopResponse = /*@__PURE__*/ S.suspend(() =>
|
|
828
|
+
S.Struct({
|
|
829
|
+
message: S.optional(S.String),
|
|
830
|
+
status: S.optional(ComputerUseStopResponseStatusMap),
|
|
831
|
+
}),
|
|
832
|
+
).annotate({
|
|
833
|
+
identifier: "ComputerUseStopResponse",
|
|
834
|
+
}) as any as S.Schema<ComputerUseStopResponse>;
|
|
835
|
+
|
|
836
|
+
export interface StopRecordingRequest {
|
|
837
|
+
id: string;
|
|
838
|
+
}
|
|
839
|
+
export const StopRecordingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
840
|
+
S.Struct({
|
|
841
|
+
id: S.String,
|
|
842
|
+
}).pipe(
|
|
843
|
+
T.Http({ method: "POST", uri: "/computeruse/recordings/stop", code: 200 }),
|
|
844
|
+
),
|
|
845
|
+
).annotate({
|
|
846
|
+
identifier: "StopRecordingRequest",
|
|
847
|
+
}) as any as S.Schema<StopRecordingRequest>;
|
|
848
|
+
|
|
849
|
+
export interface TakeCompressedRegionScreenshotRequest {
|
|
850
|
+
/** X coordinate of the region */
|
|
851
|
+
x: number;
|
|
852
|
+
/** Y coordinate of the region */
|
|
853
|
+
y: number;
|
|
854
|
+
/** Width of the region */
|
|
855
|
+
width: number;
|
|
856
|
+
/** Height of the region */
|
|
857
|
+
height: number;
|
|
858
|
+
/** Whether to show cursor in screenshot */
|
|
859
|
+
showCursor?: boolean;
|
|
860
|
+
/** Image format (png or jpeg) */
|
|
861
|
+
format?: string;
|
|
862
|
+
/** JPEG quality (1-100) */
|
|
863
|
+
quality?: number;
|
|
864
|
+
/** Scale factor (0.1-1.0) */
|
|
865
|
+
scale?: number;
|
|
866
|
+
}
|
|
867
|
+
export const TakeCompressedRegionScreenshotRequest = /*@__PURE__*/ S.suspend(
|
|
868
|
+
() =>
|
|
869
|
+
S.Struct({
|
|
870
|
+
x: S.Number.pipe(T.Query()),
|
|
871
|
+
y: S.Number.pipe(T.Query()),
|
|
872
|
+
width: S.Number.pipe(T.Query()),
|
|
873
|
+
height: S.Number.pipe(T.Query()),
|
|
874
|
+
showCursor: S.optional(S.Boolean.pipe(T.Query())),
|
|
875
|
+
format: S.optional(S.String.pipe(T.Query())),
|
|
876
|
+
quality: S.optional(S.Number.pipe(T.Query())),
|
|
877
|
+
scale: S.optional(S.Number.pipe(T.Query())),
|
|
878
|
+
}).pipe(
|
|
879
|
+
T.Http({
|
|
880
|
+
method: "GET",
|
|
881
|
+
uri: "/computeruse/screenshot/region/compressed",
|
|
882
|
+
code: 200,
|
|
883
|
+
}),
|
|
884
|
+
),
|
|
885
|
+
).annotate({
|
|
886
|
+
identifier: "TakeCompressedRegionScreenshotRequest",
|
|
887
|
+
}) as any as S.Schema<TakeCompressedRegionScreenshotRequest>;
|
|
888
|
+
|
|
889
|
+
export interface Position {
|
|
890
|
+
x?: number;
|
|
891
|
+
y?: number;
|
|
892
|
+
}
|
|
893
|
+
export const Position = /*@__PURE__*/ S.suspend(() =>
|
|
894
|
+
S.Struct({
|
|
895
|
+
x: S.optional(S.Number),
|
|
896
|
+
y: S.optional(S.Number),
|
|
897
|
+
}),
|
|
898
|
+
).annotate({ identifier: "Position" }) as any as S.Schema<Position>;
|
|
899
|
+
|
|
900
|
+
export interface ScreenshotResponse {
|
|
901
|
+
cursorPosition?: Position;
|
|
902
|
+
screenshot?: string;
|
|
903
|
+
sizeBytes?: number;
|
|
904
|
+
}
|
|
905
|
+
export const ScreenshotResponse = /*@__PURE__*/ S.suspend(() =>
|
|
906
|
+
S.Struct({
|
|
907
|
+
cursorPosition: S.optional(Position),
|
|
908
|
+
screenshot: S.optional(S.String),
|
|
909
|
+
sizeBytes: S.optional(S.Number),
|
|
910
|
+
}),
|
|
911
|
+
).annotate({
|
|
912
|
+
identifier: "ScreenshotResponse",
|
|
913
|
+
}) as any as S.Schema<ScreenshotResponse>;
|
|
914
|
+
|
|
915
|
+
export interface TakeCompressedScreenshotRequest {
|
|
916
|
+
/** Whether to show cursor in screenshot */
|
|
917
|
+
showCursor?: boolean;
|
|
918
|
+
/** Image format (png or jpeg) */
|
|
919
|
+
format?: string;
|
|
920
|
+
/** JPEG quality (1-100) */
|
|
921
|
+
quality?: number;
|
|
922
|
+
/** Scale factor (0.1-1.0) */
|
|
923
|
+
scale?: number;
|
|
924
|
+
}
|
|
925
|
+
export const TakeCompressedScreenshotRequest = /*@__PURE__*/ S.suspend(() =>
|
|
926
|
+
S.Struct({
|
|
927
|
+
showCursor: S.optional(S.Boolean.pipe(T.Query())),
|
|
928
|
+
format: S.optional(S.String.pipe(T.Query())),
|
|
929
|
+
quality: S.optional(S.Number.pipe(T.Query())),
|
|
930
|
+
scale: S.optional(S.Number.pipe(T.Query())),
|
|
931
|
+
}).pipe(
|
|
932
|
+
T.Http({
|
|
933
|
+
method: "GET",
|
|
934
|
+
uri: "/computeruse/screenshot/compressed",
|
|
935
|
+
code: 200,
|
|
936
|
+
}),
|
|
937
|
+
),
|
|
938
|
+
).annotate({
|
|
939
|
+
identifier: "TakeCompressedScreenshotRequest",
|
|
940
|
+
}) as any as S.Schema<TakeCompressedScreenshotRequest>;
|
|
941
|
+
|
|
942
|
+
export interface TakeRegionScreenshotRequest {
|
|
943
|
+
/** X coordinate of the region */
|
|
944
|
+
x: number;
|
|
945
|
+
/** Y coordinate of the region */
|
|
946
|
+
y: number;
|
|
947
|
+
/** Width of the region */
|
|
948
|
+
width: number;
|
|
949
|
+
/** Height of the region */
|
|
950
|
+
height: number;
|
|
951
|
+
/** Whether to show cursor in screenshot */
|
|
952
|
+
showCursor?: boolean;
|
|
953
|
+
}
|
|
954
|
+
export const TakeRegionScreenshotRequest = /*@__PURE__*/ S.suspend(() =>
|
|
955
|
+
S.Struct({
|
|
956
|
+
x: S.Number.pipe(T.Query()),
|
|
957
|
+
y: S.Number.pipe(T.Query()),
|
|
958
|
+
width: S.Number.pipe(T.Query()),
|
|
959
|
+
height: S.Number.pipe(T.Query()),
|
|
960
|
+
showCursor: S.optional(S.Boolean.pipe(T.Query())),
|
|
961
|
+
}).pipe(
|
|
962
|
+
T.Http({ method: "GET", uri: "/computeruse/screenshot/region", code: 200 }),
|
|
963
|
+
),
|
|
964
|
+
).annotate({
|
|
965
|
+
identifier: "TakeRegionScreenshotRequest",
|
|
966
|
+
}) as any as S.Schema<TakeRegionScreenshotRequest>;
|
|
967
|
+
|
|
968
|
+
export interface TakeScreenshotRequest {
|
|
969
|
+
/** Whether to show cursor in screenshot */
|
|
970
|
+
showCursor?: boolean;
|
|
971
|
+
}
|
|
972
|
+
export const TakeScreenshotRequest = /*@__PURE__*/ S.suspend(() =>
|
|
973
|
+
S.Struct({
|
|
974
|
+
showCursor: S.optional(S.Boolean.pipe(T.Query())),
|
|
975
|
+
}).pipe(T.Http({ method: "GET", uri: "/computeruse/screenshot", code: 200 })),
|
|
976
|
+
).annotate({
|
|
977
|
+
identifier: "TakeScreenshotRequest",
|
|
978
|
+
}) as any as S.Schema<TakeScreenshotRequest>;
|
|
979
|
+
|
|
980
|
+
export interface TypeTextRequest {
|
|
981
|
+
/** milliseconds between keystrokes */
|
|
982
|
+
delay?: number;
|
|
983
|
+
text?: string;
|
|
984
|
+
}
|
|
985
|
+
export const TypeTextRequest = /*@__PURE__*/ S.suspend(() =>
|
|
986
|
+
S.Struct({
|
|
987
|
+
delay: S.optional(S.Number),
|
|
988
|
+
text: S.optional(S.String),
|
|
989
|
+
}).pipe(
|
|
990
|
+
T.Http({ method: "POST", uri: "/computeruse/keyboard/type", code: 200 }),
|
|
991
|
+
),
|
|
992
|
+
).annotate({
|
|
993
|
+
identifier: "TypeTextRequest",
|
|
994
|
+
}) as any as S.Schema<TypeTextRequest>;
|
|
995
|
+
|
|
996
|
+
export type TypeTextResponse = unknown;
|
|
997
|
+
export const TypeTextResponse = /*@__PURE__*/ S.suspend(() =>
|
|
998
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
999
|
+
).annotate({
|
|
1000
|
+
identifier: "TypeTextResponse",
|
|
1001
|
+
}) as any as S.Schema<TypeTextResponse>;
|
|
1002
|
+
|
|
1003
|
+
export type ClickError = DaytonaOpError;
|
|
1004
|
+
/** Click mouse button Click the mouse button at the specified coordinates */
|
|
1005
|
+
export const click: API.OperationMethod<
|
|
1006
|
+
ClickRequest,
|
|
1007
|
+
MouseClickResponse,
|
|
1008
|
+
ClickError,
|
|
1009
|
+
DaytonaOpContext
|
|
1010
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1011
|
+
input: ClickRequest,
|
|
1012
|
+
output: MouseClickResponse,
|
|
1013
|
+
errors: [UnknownDaytonaError],
|
|
1014
|
+
protocol: DaytonaProtocol,
|
|
1015
|
+
retry: Retry.Retry,
|
|
1016
|
+
}));
|
|
1017
|
+
|
|
1018
|
+
export type DeleteRecordingError = DaytonaOpError;
|
|
1019
|
+
/** Delete a recording Delete a recording file by ID */
|
|
1020
|
+
export const deleteRecording: API.OperationMethod<
|
|
1021
|
+
DeleteRecordingRequest,
|
|
1022
|
+
DeleteRecordingResponse,
|
|
1023
|
+
DeleteRecordingError,
|
|
1024
|
+
DaytonaOpContext
|
|
1025
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1026
|
+
input: DeleteRecordingRequest,
|
|
1027
|
+
output: DeleteRecordingResponse,
|
|
1028
|
+
errors: [UnknownDaytonaError],
|
|
1029
|
+
protocol: DaytonaProtocol,
|
|
1030
|
+
retry: Retry.Retry,
|
|
1031
|
+
}));
|
|
1032
|
+
|
|
1033
|
+
export type DownloadRecordingError = DaytonaOpError;
|
|
1034
|
+
/** Download a recording Download a recording by providing its ID */
|
|
1035
|
+
export const downloadRecording: API.OperationMethod<
|
|
1036
|
+
DownloadRecordingRequest,
|
|
1037
|
+
DownloadRecordingResponse,
|
|
1038
|
+
DownloadRecordingError,
|
|
1039
|
+
DaytonaOpContext
|
|
1040
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1041
|
+
input: DownloadRecordingRequest,
|
|
1042
|
+
output: DownloadRecordingResponse,
|
|
1043
|
+
errors: [UnknownDaytonaError],
|
|
1044
|
+
protocol: DaytonaProtocol,
|
|
1045
|
+
retry: Retry.Retry,
|
|
1046
|
+
}));
|
|
1047
|
+
|
|
1048
|
+
export type DragError = DaytonaOpError;
|
|
1049
|
+
/** Drag mouse Drag the mouse from start to end coordinates */
|
|
1050
|
+
export const drag: API.OperationMethod<
|
|
1051
|
+
DragRequest,
|
|
1052
|
+
MouseDragResponse,
|
|
1053
|
+
DragError,
|
|
1054
|
+
DaytonaOpContext
|
|
1055
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1056
|
+
input: DragRequest,
|
|
1057
|
+
output: MouseDragResponse,
|
|
1058
|
+
errors: [UnknownDaytonaError],
|
|
1059
|
+
protocol: DaytonaProtocol,
|
|
1060
|
+
retry: Retry.Retry,
|
|
1061
|
+
}));
|
|
1062
|
+
|
|
1063
|
+
export type FindAccessibilityNodesError = DaytonaOpError;
|
|
1064
|
+
/** Find accessibility nodes Search the AT-SPI tree for nodes matching a role/name/state filter and return a flat list. */
|
|
1065
|
+
export const findAccessibilityNodes: API.OperationMethod<
|
|
1066
|
+
FindAccessibilityNodesRequest,
|
|
1067
|
+
AccessibilityNodesResponse,
|
|
1068
|
+
FindAccessibilityNodesError,
|
|
1069
|
+
DaytonaOpContext
|
|
1070
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1071
|
+
input: FindAccessibilityNodesRequest,
|
|
1072
|
+
output: AccessibilityNodesResponse,
|
|
1073
|
+
errors: [UnknownDaytonaError],
|
|
1074
|
+
protocol: DaytonaProtocol,
|
|
1075
|
+
retry: Retry.Retry,
|
|
1076
|
+
}));
|
|
1077
|
+
|
|
1078
|
+
export type FocusAccessibilityNodeError = DaytonaOpError;
|
|
1079
|
+
/** Focus an accessibility node Move keyboard focus to the AT-SPI node identified by id (bus-name:object-path). */
|
|
1080
|
+
export const focusAccessibilityNode: API.OperationMethod<
|
|
1081
|
+
FocusAccessibilityNodeRequest,
|
|
1082
|
+
FocusAccessibilityNodeResponse,
|
|
1083
|
+
FocusAccessibilityNodeError,
|
|
1084
|
+
DaytonaOpContext
|
|
1085
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1086
|
+
input: FocusAccessibilityNodeRequest,
|
|
1087
|
+
output: FocusAccessibilityNodeResponse,
|
|
1088
|
+
errors: [UnknownDaytonaError],
|
|
1089
|
+
protocol: DaytonaProtocol,
|
|
1090
|
+
retry: Retry.Retry,
|
|
1091
|
+
}));
|
|
1092
|
+
|
|
1093
|
+
export type GetAccessibilityTreeError = DaytonaOpError;
|
|
1094
|
+
/** Get accessibility tree Fetch the AT-SPI accessibility tree for the focused application, a specific PID, or all registered applications. */
|
|
1095
|
+
export const getAccessibilityTree: API.OperationMethod<
|
|
1096
|
+
GetAccessibilityTreeRequest,
|
|
1097
|
+
AccessibilityTreeResponse,
|
|
1098
|
+
GetAccessibilityTreeError,
|
|
1099
|
+
DaytonaOpContext
|
|
1100
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1101
|
+
input: GetAccessibilityTreeRequest,
|
|
1102
|
+
output: AccessibilityTreeResponse,
|
|
1103
|
+
errors: [UnknownDaytonaError],
|
|
1104
|
+
protocol: DaytonaProtocol,
|
|
1105
|
+
retry: Retry.Retry,
|
|
1106
|
+
}));
|
|
1107
|
+
|
|
1108
|
+
export type GetComputerUseStatusError = DaytonaOpError;
|
|
1109
|
+
/** Get computer use process status Get the status of all computer use processes */
|
|
1110
|
+
export const getComputerUseStatus: API.OperationMethod<
|
|
1111
|
+
GetComputerUseStatusRequest,
|
|
1112
|
+
ComputerUseStatusResponse,
|
|
1113
|
+
GetComputerUseStatusError,
|
|
1114
|
+
DaytonaOpContext
|
|
1115
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1116
|
+
input: GetComputerUseStatusRequest,
|
|
1117
|
+
output: ComputerUseStatusResponse,
|
|
1118
|
+
errors: [UnknownDaytonaError],
|
|
1119
|
+
protocol: DaytonaProtocol,
|
|
1120
|
+
retry: Retry.Retry,
|
|
1121
|
+
}));
|
|
1122
|
+
|
|
1123
|
+
export type GetComputerUseSystemStatusError = DaytonaOpError;
|
|
1124
|
+
/** Get computer use status Get the current status of the computer use system */
|
|
1125
|
+
export const getComputerUseSystemStatus: API.OperationMethod<
|
|
1126
|
+
GetComputerUseSystemStatusRequest,
|
|
1127
|
+
ComputerUseStatusResponse,
|
|
1128
|
+
GetComputerUseSystemStatusError,
|
|
1129
|
+
DaytonaOpContext
|
|
1130
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1131
|
+
input: GetComputerUseSystemStatusRequest,
|
|
1132
|
+
output: ComputerUseStatusResponse,
|
|
1133
|
+
errors: [UnknownDaytonaError],
|
|
1134
|
+
protocol: DaytonaProtocol,
|
|
1135
|
+
retry: Retry.Retry,
|
|
1136
|
+
}));
|
|
1137
|
+
|
|
1138
|
+
export type GetDisplayInfoError = DaytonaOpError;
|
|
1139
|
+
/** Get display information Get information about all available displays */
|
|
1140
|
+
export const getDisplayInfo: API.OperationMethod<
|
|
1141
|
+
GetDisplayInfoRequest,
|
|
1142
|
+
DisplayInfoResponse,
|
|
1143
|
+
GetDisplayInfoError,
|
|
1144
|
+
DaytonaOpContext
|
|
1145
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1146
|
+
input: GetDisplayInfoRequest,
|
|
1147
|
+
output: DisplayInfoResponse,
|
|
1148
|
+
errors: [UnknownDaytonaError],
|
|
1149
|
+
protocol: DaytonaProtocol,
|
|
1150
|
+
retry: Retry.Retry,
|
|
1151
|
+
}));
|
|
1152
|
+
|
|
1153
|
+
export type GetMousePositionError = DaytonaOpError;
|
|
1154
|
+
/** Get mouse position Get the current mouse cursor position */
|
|
1155
|
+
export const getMousePosition: API.OperationMethod<
|
|
1156
|
+
GetMousePositionRequest,
|
|
1157
|
+
MousePositionResponse,
|
|
1158
|
+
GetMousePositionError,
|
|
1159
|
+
DaytonaOpContext
|
|
1160
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1161
|
+
input: GetMousePositionRequest,
|
|
1162
|
+
output: MousePositionResponse,
|
|
1163
|
+
errors: [UnknownDaytonaError],
|
|
1164
|
+
protocol: DaytonaProtocol,
|
|
1165
|
+
retry: Retry.Retry,
|
|
1166
|
+
}));
|
|
1167
|
+
|
|
1168
|
+
export type GetProcessErrorsError = DaytonaOpError;
|
|
1169
|
+
/** Get process errors Get errors for a specific computer use process */
|
|
1170
|
+
export const getProcessErrors: API.OperationMethod<
|
|
1171
|
+
GetProcessErrorsRequest,
|
|
1172
|
+
ProcessErrorsResponse,
|
|
1173
|
+
GetProcessErrorsError,
|
|
1174
|
+
DaytonaOpContext
|
|
1175
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1176
|
+
input: GetProcessErrorsRequest,
|
|
1177
|
+
output: ProcessErrorsResponse,
|
|
1178
|
+
errors: [UnknownDaytonaError],
|
|
1179
|
+
protocol: DaytonaProtocol,
|
|
1180
|
+
retry: Retry.Retry,
|
|
1181
|
+
}));
|
|
1182
|
+
|
|
1183
|
+
export type GetProcessLogsError = DaytonaOpError;
|
|
1184
|
+
/** Get process logs Get logs for a specific computer use process */
|
|
1185
|
+
export const getProcessLogs: API.OperationMethod<
|
|
1186
|
+
GetProcessLogsRequest,
|
|
1187
|
+
ProcessLogsResponse,
|
|
1188
|
+
GetProcessLogsError,
|
|
1189
|
+
DaytonaOpContext
|
|
1190
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1191
|
+
input: GetProcessLogsRequest,
|
|
1192
|
+
output: ProcessLogsResponse,
|
|
1193
|
+
errors: [UnknownDaytonaError],
|
|
1194
|
+
protocol: DaytonaProtocol,
|
|
1195
|
+
retry: Retry.Retry,
|
|
1196
|
+
}));
|
|
1197
|
+
|
|
1198
|
+
export type GetProcessStatusError = DaytonaOpError;
|
|
1199
|
+
/** Get specific process status Check if a specific computer use process is running */
|
|
1200
|
+
export const getProcessStatus: API.OperationMethod<
|
|
1201
|
+
GetProcessStatusRequest,
|
|
1202
|
+
ProcessStatusResponse,
|
|
1203
|
+
GetProcessStatusError,
|
|
1204
|
+
DaytonaOpContext
|
|
1205
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1206
|
+
input: GetProcessStatusRequest,
|
|
1207
|
+
output: ProcessStatusResponse,
|
|
1208
|
+
errors: [UnknownDaytonaError],
|
|
1209
|
+
protocol: DaytonaProtocol,
|
|
1210
|
+
retry: Retry.Retry,
|
|
1211
|
+
}));
|
|
1212
|
+
|
|
1213
|
+
export type GetRecordingError = DaytonaOpError;
|
|
1214
|
+
/** Get recording details Get details of a specific recording by ID */
|
|
1215
|
+
export const getRecording: API.OperationMethod<
|
|
1216
|
+
GetRecordingRequest,
|
|
1217
|
+
Recording,
|
|
1218
|
+
GetRecordingError,
|
|
1219
|
+
DaytonaOpContext
|
|
1220
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1221
|
+
input: GetRecordingRequest,
|
|
1222
|
+
output: Recording,
|
|
1223
|
+
errors: [UnknownDaytonaError],
|
|
1224
|
+
protocol: DaytonaProtocol,
|
|
1225
|
+
retry: Retry.Retry,
|
|
1226
|
+
}));
|
|
1227
|
+
|
|
1228
|
+
export type GetWindowsError = DaytonaOpError;
|
|
1229
|
+
/** Get windows information Get information about all open windows */
|
|
1230
|
+
export const getWindows: API.OperationMethod<
|
|
1231
|
+
GetWindowsRequest,
|
|
1232
|
+
WindowsResponse,
|
|
1233
|
+
GetWindowsError,
|
|
1234
|
+
DaytonaOpContext
|
|
1235
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1236
|
+
input: GetWindowsRequest,
|
|
1237
|
+
output: WindowsResponse,
|
|
1238
|
+
errors: [UnknownDaytonaError],
|
|
1239
|
+
protocol: DaytonaProtocol,
|
|
1240
|
+
retry: Retry.Retry,
|
|
1241
|
+
}));
|
|
1242
|
+
|
|
1243
|
+
export type InvokeAccessibilityNodeError = DaytonaOpError;
|
|
1244
|
+
/** Invoke an action on an accessibility node Call an AT-SPI Action on the node. Leave action empty to invoke the node's primary (first) action. */
|
|
1245
|
+
export const invokeAccessibilityNode: API.OperationMethod<
|
|
1246
|
+
InvokeAccessibilityNodeRequest,
|
|
1247
|
+
InvokeAccessibilityNodeResponse,
|
|
1248
|
+
InvokeAccessibilityNodeError,
|
|
1249
|
+
DaytonaOpContext
|
|
1250
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1251
|
+
input: InvokeAccessibilityNodeRequest,
|
|
1252
|
+
output: InvokeAccessibilityNodeResponse,
|
|
1253
|
+
errors: [UnknownDaytonaError],
|
|
1254
|
+
protocol: DaytonaProtocol,
|
|
1255
|
+
retry: Retry.Retry,
|
|
1256
|
+
}));
|
|
1257
|
+
|
|
1258
|
+
export type ListRecordingsError = DaytonaOpError;
|
|
1259
|
+
/** List all recordings Get a list of all recordings (active and completed) */
|
|
1260
|
+
export const listRecordings: API.OperationMethod<
|
|
1261
|
+
ListRecordingsRequest,
|
|
1262
|
+
ListRecordingsResponse,
|
|
1263
|
+
ListRecordingsError,
|
|
1264
|
+
DaytonaOpContext
|
|
1265
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1266
|
+
input: ListRecordingsRequest,
|
|
1267
|
+
output: ListRecordingsResponse,
|
|
1268
|
+
errors: [UnknownDaytonaError],
|
|
1269
|
+
protocol: DaytonaProtocol,
|
|
1270
|
+
retry: Retry.Retry,
|
|
1271
|
+
}));
|
|
1272
|
+
|
|
1273
|
+
export type MoveMouseError = DaytonaOpError;
|
|
1274
|
+
/** Move mouse cursor Move the mouse cursor to the specified coordinates */
|
|
1275
|
+
export const moveMouse: API.OperationMethod<
|
|
1276
|
+
MoveMouseRequest,
|
|
1277
|
+
MousePositionResponse,
|
|
1278
|
+
MoveMouseError,
|
|
1279
|
+
DaytonaOpContext
|
|
1280
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1281
|
+
input: MoveMouseRequest,
|
|
1282
|
+
output: MousePositionResponse,
|
|
1283
|
+
errors: [UnknownDaytonaError],
|
|
1284
|
+
protocol: DaytonaProtocol,
|
|
1285
|
+
retry: Retry.Retry,
|
|
1286
|
+
}));
|
|
1287
|
+
|
|
1288
|
+
export type PressHotkeyError = DaytonaOpError;
|
|
1289
|
+
/** Press hotkey Press a hotkey combination (e.g., ctrl+c, cmd+v) */
|
|
1290
|
+
export const pressHotkey: API.OperationMethod<
|
|
1291
|
+
PressHotkeyRequest,
|
|
1292
|
+
PressHotkeyResponse,
|
|
1293
|
+
PressHotkeyError,
|
|
1294
|
+
DaytonaOpContext
|
|
1295
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1296
|
+
input: PressHotkeyRequest,
|
|
1297
|
+
output: PressHotkeyResponse,
|
|
1298
|
+
errors: [UnknownDaytonaError],
|
|
1299
|
+
protocol: DaytonaProtocol,
|
|
1300
|
+
retry: Retry.Retry,
|
|
1301
|
+
}));
|
|
1302
|
+
|
|
1303
|
+
export type PressKeyError = DaytonaOpError;
|
|
1304
|
+
/** Press key Press a key with optional modifiers */
|
|
1305
|
+
export const pressKey: API.OperationMethod<
|
|
1306
|
+
PressKeyRequest,
|
|
1307
|
+
PressKeyResponse,
|
|
1308
|
+
PressKeyError,
|
|
1309
|
+
DaytonaOpContext
|
|
1310
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1311
|
+
input: PressKeyRequest,
|
|
1312
|
+
output: PressKeyResponse,
|
|
1313
|
+
errors: [UnknownDaytonaError],
|
|
1314
|
+
protocol: DaytonaProtocol,
|
|
1315
|
+
retry: Retry.Retry,
|
|
1316
|
+
}));
|
|
1317
|
+
|
|
1318
|
+
export type RestartProcessError = DaytonaOpError;
|
|
1319
|
+
/** Restart specific process Restart a specific computer use process */
|
|
1320
|
+
export const restartProcess: API.OperationMethod<
|
|
1321
|
+
RestartProcessRequest,
|
|
1322
|
+
ProcessRestartResponse,
|
|
1323
|
+
RestartProcessError,
|
|
1324
|
+
DaytonaOpContext
|
|
1325
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1326
|
+
input: RestartProcessRequest,
|
|
1327
|
+
output: ProcessRestartResponse,
|
|
1328
|
+
errors: [UnknownDaytonaError],
|
|
1329
|
+
protocol: DaytonaProtocol,
|
|
1330
|
+
retry: Retry.Retry,
|
|
1331
|
+
}));
|
|
1332
|
+
|
|
1333
|
+
export type ScrollError = DaytonaOpError;
|
|
1334
|
+
/** Scroll mouse wheel Scroll the mouse wheel at the specified coordinates */
|
|
1335
|
+
export const scroll: API.OperationMethod<
|
|
1336
|
+
ScrollRequest,
|
|
1337
|
+
ScrollResponse,
|
|
1338
|
+
ScrollError,
|
|
1339
|
+
DaytonaOpContext
|
|
1340
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1341
|
+
input: ScrollRequest,
|
|
1342
|
+
output: ScrollResponse,
|
|
1343
|
+
errors: [UnknownDaytonaError],
|
|
1344
|
+
protocol: DaytonaProtocol,
|
|
1345
|
+
retry: Retry.Retry,
|
|
1346
|
+
}));
|
|
1347
|
+
|
|
1348
|
+
export type SetAccessibilityNodeValueError = DaytonaOpError;
|
|
1349
|
+
/** Set the value of an accessibility node Write the given value to the node via EditableText.SetTextContents or, for numeric controls, Value.CurrentValue. */
|
|
1350
|
+
export const setAccessibilityNodeValue: API.OperationMethod<
|
|
1351
|
+
SetAccessibilityNodeValueRequest,
|
|
1352
|
+
SetAccessibilityNodeValueResponse,
|
|
1353
|
+
SetAccessibilityNodeValueError,
|
|
1354
|
+
DaytonaOpContext
|
|
1355
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1356
|
+
input: SetAccessibilityNodeValueRequest,
|
|
1357
|
+
output: SetAccessibilityNodeValueResponse,
|
|
1358
|
+
errors: [UnknownDaytonaError],
|
|
1359
|
+
protocol: DaytonaProtocol,
|
|
1360
|
+
retry: Retry.Retry,
|
|
1361
|
+
}));
|
|
1362
|
+
|
|
1363
|
+
export type StartComputerUseError = DaytonaOpError;
|
|
1364
|
+
/** Start computer use processes Start all computer use processes and return their status */
|
|
1365
|
+
export const startComputerUse: API.OperationMethod<
|
|
1366
|
+
StartComputerUseRequest,
|
|
1367
|
+
ComputerUseStartResponse,
|
|
1368
|
+
StartComputerUseError,
|
|
1369
|
+
DaytonaOpContext
|
|
1370
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1371
|
+
input: StartComputerUseRequest,
|
|
1372
|
+
output: ComputerUseStartResponse,
|
|
1373
|
+
errors: [UnknownDaytonaError],
|
|
1374
|
+
protocol: DaytonaProtocol,
|
|
1375
|
+
retry: Retry.Retry,
|
|
1376
|
+
}));
|
|
1377
|
+
|
|
1378
|
+
export type StartRecordingError = DaytonaOpError;
|
|
1379
|
+
/** Start a new recording Start a new screen recording session */
|
|
1380
|
+
export const startRecording: API.OperationMethod<
|
|
1381
|
+
StartRecordingRequest,
|
|
1382
|
+
Recording,
|
|
1383
|
+
StartRecordingError,
|
|
1384
|
+
DaytonaOpContext
|
|
1385
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1386
|
+
input: StartRecordingRequest,
|
|
1387
|
+
output: Recording,
|
|
1388
|
+
errors: [UnknownDaytonaError],
|
|
1389
|
+
protocol: DaytonaProtocol,
|
|
1390
|
+
retry: Retry.Retry,
|
|
1391
|
+
}));
|
|
1392
|
+
|
|
1393
|
+
export type StopComputerUseError = DaytonaOpError;
|
|
1394
|
+
/** Stop computer use processes Stop all computer use processes and return their status */
|
|
1395
|
+
export const stopComputerUse: API.OperationMethod<
|
|
1396
|
+
StopComputerUseRequest,
|
|
1397
|
+
ComputerUseStopResponse,
|
|
1398
|
+
StopComputerUseError,
|
|
1399
|
+
DaytonaOpContext
|
|
1400
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1401
|
+
input: StopComputerUseRequest,
|
|
1402
|
+
output: ComputerUseStopResponse,
|
|
1403
|
+
errors: [UnknownDaytonaError],
|
|
1404
|
+
protocol: DaytonaProtocol,
|
|
1405
|
+
retry: Retry.Retry,
|
|
1406
|
+
}));
|
|
1407
|
+
|
|
1408
|
+
export type StopRecordingError = DaytonaOpError;
|
|
1409
|
+
/** Stop a recording Stop an active screen recording session */
|
|
1410
|
+
export const stopRecording: API.OperationMethod<
|
|
1411
|
+
StopRecordingRequest,
|
|
1412
|
+
Recording,
|
|
1413
|
+
StopRecordingError,
|
|
1414
|
+
DaytonaOpContext
|
|
1415
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1416
|
+
input: StopRecordingRequest,
|
|
1417
|
+
output: Recording,
|
|
1418
|
+
errors: [UnknownDaytonaError],
|
|
1419
|
+
protocol: DaytonaProtocol,
|
|
1420
|
+
retry: Retry.Retry,
|
|
1421
|
+
}));
|
|
1422
|
+
|
|
1423
|
+
export type TakeCompressedRegionScreenshotError = DaytonaOpError;
|
|
1424
|
+
/** Take a compressed region screenshot Take a compressed screenshot of a specific region of the screen */
|
|
1425
|
+
export const takeCompressedRegionScreenshot: API.OperationMethod<
|
|
1426
|
+
TakeCompressedRegionScreenshotRequest,
|
|
1427
|
+
ScreenshotResponse,
|
|
1428
|
+
TakeCompressedRegionScreenshotError,
|
|
1429
|
+
DaytonaOpContext
|
|
1430
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1431
|
+
input: TakeCompressedRegionScreenshotRequest,
|
|
1432
|
+
output: ScreenshotResponse,
|
|
1433
|
+
errors: [UnknownDaytonaError],
|
|
1434
|
+
protocol: DaytonaProtocol,
|
|
1435
|
+
retry: Retry.Retry,
|
|
1436
|
+
}));
|
|
1437
|
+
|
|
1438
|
+
export type TakeCompressedScreenshotError = DaytonaOpError;
|
|
1439
|
+
/** Take a compressed screenshot Take a compressed screenshot of the entire screen */
|
|
1440
|
+
export const takeCompressedScreenshot: API.OperationMethod<
|
|
1441
|
+
TakeCompressedScreenshotRequest,
|
|
1442
|
+
ScreenshotResponse,
|
|
1443
|
+
TakeCompressedScreenshotError,
|
|
1444
|
+
DaytonaOpContext
|
|
1445
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1446
|
+
input: TakeCompressedScreenshotRequest,
|
|
1447
|
+
output: ScreenshotResponse,
|
|
1448
|
+
errors: [UnknownDaytonaError],
|
|
1449
|
+
protocol: DaytonaProtocol,
|
|
1450
|
+
retry: Retry.Retry,
|
|
1451
|
+
}));
|
|
1452
|
+
|
|
1453
|
+
export type TakeRegionScreenshotError = DaytonaOpError;
|
|
1454
|
+
/** Take a region screenshot Take a screenshot of a specific region of the screen */
|
|
1455
|
+
export const takeRegionScreenshot: API.OperationMethod<
|
|
1456
|
+
TakeRegionScreenshotRequest,
|
|
1457
|
+
ScreenshotResponse,
|
|
1458
|
+
TakeRegionScreenshotError,
|
|
1459
|
+
DaytonaOpContext
|
|
1460
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1461
|
+
input: TakeRegionScreenshotRequest,
|
|
1462
|
+
output: ScreenshotResponse,
|
|
1463
|
+
errors: [UnknownDaytonaError],
|
|
1464
|
+
protocol: DaytonaProtocol,
|
|
1465
|
+
retry: Retry.Retry,
|
|
1466
|
+
}));
|
|
1467
|
+
|
|
1468
|
+
export type TakeScreenshotError = DaytonaOpError;
|
|
1469
|
+
/** Take a screenshot Take a screenshot of the entire screen */
|
|
1470
|
+
export const takeScreenshot: API.OperationMethod<
|
|
1471
|
+
TakeScreenshotRequest,
|
|
1472
|
+
ScreenshotResponse,
|
|
1473
|
+
TakeScreenshotError,
|
|
1474
|
+
DaytonaOpContext
|
|
1475
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1476
|
+
input: TakeScreenshotRequest,
|
|
1477
|
+
output: ScreenshotResponse,
|
|
1478
|
+
errors: [UnknownDaytonaError],
|
|
1479
|
+
protocol: DaytonaProtocol,
|
|
1480
|
+
retry: Retry.Retry,
|
|
1481
|
+
}));
|
|
1482
|
+
|
|
1483
|
+
export type TypeTextError = DaytonaOpError;
|
|
1484
|
+
/** Type text Type text with optional delay between keystrokes */
|
|
1485
|
+
export const typeText: API.OperationMethod<
|
|
1486
|
+
TypeTextRequest,
|
|
1487
|
+
TypeTextResponse,
|
|
1488
|
+
TypeTextError,
|
|
1489
|
+
DaytonaOpContext
|
|
1490
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1491
|
+
input: TypeTextRequest,
|
|
1492
|
+
output: TypeTextResponse,
|
|
1493
|
+
errors: [UnknownDaytonaError],
|
|
1494
|
+
protocol: DaytonaProtocol,
|
|
1495
|
+
retry: Retry.Retry,
|
|
1496
|
+
}));
|