@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,672 @@
|
|
|
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.js";
|
|
5
|
+
import { DaytonaProtocol, } from "../protocol.js";
|
|
6
|
+
import { UnknownDaytonaError } from "../errors.js";
|
|
7
|
+
import * as Retry from "../retry.js";
|
|
8
|
+
export const ClickRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
+
button: S.optional(S.String),
|
|
10
|
+
double: S.optional(S.Boolean),
|
|
11
|
+
x: S.optional(S.Number),
|
|
12
|
+
y: S.optional(S.Number),
|
|
13
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/mouse/click", code: 200 }))).annotate({ identifier: "ClickRequest" });
|
|
14
|
+
export const MouseClickResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
15
|
+
x: S.optional(S.Number),
|
|
16
|
+
y: S.optional(S.Number),
|
|
17
|
+
})).annotate({
|
|
18
|
+
identifier: "MouseClickResponse",
|
|
19
|
+
});
|
|
20
|
+
export const DeleteRecordingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
21
|
+
id: S.String.pipe(T.Label()),
|
|
22
|
+
}).pipe(T.Http({
|
|
23
|
+
method: "DELETE",
|
|
24
|
+
uri: "/computeruse/recordings/{id}",
|
|
25
|
+
code: 200,
|
|
26
|
+
}))).annotate({
|
|
27
|
+
identifier: "DeleteRecordingRequest",
|
|
28
|
+
});
|
|
29
|
+
export const DeleteRecordingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
30
|
+
identifier: "DeleteRecordingResponse",
|
|
31
|
+
});
|
|
32
|
+
export const DownloadRecordingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
33
|
+
id: S.String.pipe(T.Label()),
|
|
34
|
+
}).pipe(T.Http({
|
|
35
|
+
method: "GET",
|
|
36
|
+
uri: "/computeruse/recordings/{id}/download",
|
|
37
|
+
code: 200,
|
|
38
|
+
}))).annotate({
|
|
39
|
+
identifier: "DownloadRecordingRequest",
|
|
40
|
+
});
|
|
41
|
+
export const DownloadRecordingResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
42
|
+
identifier: "DownloadRecordingResponse",
|
|
43
|
+
});
|
|
44
|
+
export const DragRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
+
button: S.optional(S.String),
|
|
46
|
+
endX: S.optional(S.Number),
|
|
47
|
+
endY: S.optional(S.Number),
|
|
48
|
+
startX: S.optional(S.Number),
|
|
49
|
+
startY: S.optional(S.Number),
|
|
50
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/mouse/drag", code: 200 }))).annotate({ identifier: "DragRequest" });
|
|
51
|
+
export const MouseDragResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
52
|
+
x: S.optional(S.Number),
|
|
53
|
+
y: S.optional(S.Number),
|
|
54
|
+
})).annotate({
|
|
55
|
+
identifier: "MouseDragResponse",
|
|
56
|
+
});
|
|
57
|
+
export const FindAccessibilityNodesRequestStatesList = /*@__PURE__*/ S.Array(S.String);
|
|
58
|
+
export const FindAccessibilityNodesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
59
|
+
limit: S.optional(S.Number),
|
|
60
|
+
name: S.optional(S.String),
|
|
61
|
+
nameMatch: S.optional(S.String),
|
|
62
|
+
pid: S.optional(S.Number),
|
|
63
|
+
role: S.optional(S.String),
|
|
64
|
+
scope: S.optional(S.String),
|
|
65
|
+
states: S.optional(FindAccessibilityNodesRequestStatesList),
|
|
66
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/a11y/find", code: 200 }))).annotate({
|
|
67
|
+
identifier: "FindAccessibilityNodesRequest",
|
|
68
|
+
});
|
|
69
|
+
export const ComputeruseAccessibilityNodeActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
70
|
+
export const AccessibilityBounds = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
71
|
+
height: S.optional(S.Number),
|
|
72
|
+
width: S.optional(S.Number),
|
|
73
|
+
x: S.optional(S.Number),
|
|
74
|
+
y: S.optional(S.Number),
|
|
75
|
+
})).annotate({
|
|
76
|
+
identifier: "AccessibilityBounds",
|
|
77
|
+
});
|
|
78
|
+
export const ComputeruseAccessibilityNodeChildrenList = /*@__PURE__*/ S.Array(S.suspend(() => ComputeruseAccessibilityNode));
|
|
79
|
+
export const ComputeruseAccessibilityNodeStatesList = /*@__PURE__*/ S.Array(S.String);
|
|
80
|
+
export const ComputeruseAccessibilityNode = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
81
|
+
actions: S.optional(ComputeruseAccessibilityNodeActionsList),
|
|
82
|
+
bounds: S.optional(AccessibilityBounds),
|
|
83
|
+
children: S.optional(ComputeruseAccessibilityNodeChildrenList),
|
|
84
|
+
description: S.optional(S.String),
|
|
85
|
+
id: S.optional(S.String),
|
|
86
|
+
name: S.optional(S.String),
|
|
87
|
+
role: S.optional(S.String),
|
|
88
|
+
states: S.optional(ComputeruseAccessibilityNodeStatesList),
|
|
89
|
+
})).annotate({
|
|
90
|
+
identifier: "ComputeruseAccessibilityNode",
|
|
91
|
+
});
|
|
92
|
+
export const AccessibilityNodesResponseMatchesList = /*@__PURE__*/ S.Array(ComputeruseAccessibilityNode);
|
|
93
|
+
export const AccessibilityNodesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
+
matches: S.optional(AccessibilityNodesResponseMatchesList),
|
|
95
|
+
truncated: S.optional(S.Boolean),
|
|
96
|
+
})).annotate({
|
|
97
|
+
identifier: "AccessibilityNodesResponse",
|
|
98
|
+
});
|
|
99
|
+
export const FocusAccessibilityNodeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
100
|
+
id: S.String,
|
|
101
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/a11y/node/focus", code: 200 }))).annotate({
|
|
102
|
+
identifier: "FocusAccessibilityNodeRequest",
|
|
103
|
+
});
|
|
104
|
+
export const FocusAccessibilityNodeResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
105
|
+
identifier: "FocusAccessibilityNodeResponse",
|
|
106
|
+
});
|
|
107
|
+
export const GetAccessibilityTreeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
108
|
+
scope: S.optional(S.String.pipe(T.Query())),
|
|
109
|
+
pid: S.optional(S.Number.pipe(T.Query())),
|
|
110
|
+
maxDepth: S.optional(S.Number.pipe(T.Query())),
|
|
111
|
+
}).pipe(T.Http({ method: "GET", uri: "/computeruse/a11y/tree", code: 200 }))).annotate({
|
|
112
|
+
identifier: "GetAccessibilityTreeRequest",
|
|
113
|
+
});
|
|
114
|
+
export const AccessibilityTreeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
115
|
+
root: S.optional(ComputeruseAccessibilityNode),
|
|
116
|
+
truncated: S.optional(S.Boolean),
|
|
117
|
+
})).annotate({
|
|
118
|
+
identifier: "AccessibilityTreeResponse",
|
|
119
|
+
});
|
|
120
|
+
export const GetComputerUseStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/computeruse/process-status", code: 200 }))).annotate({
|
|
121
|
+
identifier: "GetComputerUseStatusRequest",
|
|
122
|
+
});
|
|
123
|
+
export const ComputerUseStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
124
|
+
status: S.optional(S.String),
|
|
125
|
+
})).annotate({
|
|
126
|
+
identifier: "ComputerUseStatusResponse",
|
|
127
|
+
});
|
|
128
|
+
export const GetComputerUseSystemStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/computeruse/status", code: 200 }))).annotate({
|
|
129
|
+
identifier: "GetComputerUseSystemStatusRequest",
|
|
130
|
+
});
|
|
131
|
+
export const GetDisplayInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/computeruse/display/info", code: 200 }))).annotate({
|
|
132
|
+
identifier: "GetDisplayInfoRequest",
|
|
133
|
+
});
|
|
134
|
+
export const DisplayInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
135
|
+
height: S.optional(S.Number),
|
|
136
|
+
id: S.optional(S.Number),
|
|
137
|
+
isActive: S.optional(S.Boolean),
|
|
138
|
+
width: S.optional(S.Number),
|
|
139
|
+
x: S.optional(S.Number),
|
|
140
|
+
y: S.optional(S.Number),
|
|
141
|
+
})).annotate({ identifier: "DisplayInfo" });
|
|
142
|
+
export const DisplayInfoResponseDisplaysList = /*@__PURE__*/ S.Array(DisplayInfo);
|
|
143
|
+
export const DisplayInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
144
|
+
displays: S.optional(DisplayInfoResponseDisplaysList),
|
|
145
|
+
})).annotate({
|
|
146
|
+
identifier: "DisplayInfoResponse",
|
|
147
|
+
});
|
|
148
|
+
export const GetMousePositionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/computeruse/mouse/position", code: 200 }))).annotate({
|
|
149
|
+
identifier: "GetMousePositionRequest",
|
|
150
|
+
});
|
|
151
|
+
export const MousePositionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
152
|
+
x: S.optional(S.Number),
|
|
153
|
+
y: S.optional(S.Number),
|
|
154
|
+
})).annotate({
|
|
155
|
+
identifier: "MousePositionResponse",
|
|
156
|
+
});
|
|
157
|
+
export const GetProcessErrorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
158
|
+
processName: S.String.pipe(T.Label()),
|
|
159
|
+
}).pipe(T.Http({
|
|
160
|
+
method: "GET",
|
|
161
|
+
uri: "/computeruse/process/{processName}/errors",
|
|
162
|
+
code: 200,
|
|
163
|
+
}))).annotate({
|
|
164
|
+
identifier: "GetProcessErrorsRequest",
|
|
165
|
+
});
|
|
166
|
+
export const ProcessErrorsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
167
|
+
errors: S.optional(S.String),
|
|
168
|
+
processName: S.optional(S.String),
|
|
169
|
+
})).annotate({
|
|
170
|
+
identifier: "ProcessErrorsResponse",
|
|
171
|
+
});
|
|
172
|
+
export const GetProcessLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
173
|
+
processName: S.String.pipe(T.Label()),
|
|
174
|
+
}).pipe(T.Http({
|
|
175
|
+
method: "GET",
|
|
176
|
+
uri: "/computeruse/process/{processName}/logs",
|
|
177
|
+
code: 200,
|
|
178
|
+
}))).annotate({
|
|
179
|
+
identifier: "GetProcessLogsRequest",
|
|
180
|
+
});
|
|
181
|
+
export const ProcessLogsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
182
|
+
logs: S.optional(S.String),
|
|
183
|
+
processName: S.optional(S.String),
|
|
184
|
+
})).annotate({
|
|
185
|
+
identifier: "ProcessLogsResponse",
|
|
186
|
+
});
|
|
187
|
+
export const GetProcessStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
188
|
+
processName: S.String.pipe(T.Label()),
|
|
189
|
+
}).pipe(T.Http({
|
|
190
|
+
method: "GET",
|
|
191
|
+
uri: "/computeruse/process/{processName}/status",
|
|
192
|
+
code: 200,
|
|
193
|
+
}))).annotate({
|
|
194
|
+
identifier: "GetProcessStatusRequest",
|
|
195
|
+
});
|
|
196
|
+
export const ProcessStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
197
|
+
processName: S.optional(S.String),
|
|
198
|
+
running: S.optional(S.Boolean),
|
|
199
|
+
})).annotate({
|
|
200
|
+
identifier: "ProcessStatusResponse",
|
|
201
|
+
});
|
|
202
|
+
export const GetRecordingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
203
|
+
id: S.String.pipe(T.Label()),
|
|
204
|
+
}).pipe(T.Http({ method: "GET", uri: "/computeruse/recordings/{id}", code: 200 }))).annotate({
|
|
205
|
+
identifier: "GetRecordingRequest",
|
|
206
|
+
});
|
|
207
|
+
export const Recording = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
208
|
+
durationSeconds: S.optional(S.Number),
|
|
209
|
+
endTime: S.optional(S.String),
|
|
210
|
+
fileName: S.String,
|
|
211
|
+
filePath: S.String,
|
|
212
|
+
id: S.String,
|
|
213
|
+
sizeBytes: S.optional(S.Number),
|
|
214
|
+
startTime: S.String,
|
|
215
|
+
status: S.String,
|
|
216
|
+
})).annotate({ identifier: "Recording" });
|
|
217
|
+
export const GetWindowsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/computeruse/display/windows", code: 200 }))).annotate({
|
|
218
|
+
identifier: "GetWindowsRequest",
|
|
219
|
+
});
|
|
220
|
+
export const WindowInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
221
|
+
height: S.optional(S.Number),
|
|
222
|
+
id: S.optional(S.Number),
|
|
223
|
+
isActive: S.optional(S.Boolean),
|
|
224
|
+
title: S.optional(S.String),
|
|
225
|
+
width: S.optional(S.Number),
|
|
226
|
+
x: S.optional(S.Number),
|
|
227
|
+
y: S.optional(S.Number),
|
|
228
|
+
})).annotate({ identifier: "WindowInfo" });
|
|
229
|
+
export const WindowsResponseWindowsList = /*@__PURE__*/ S.Array(WindowInfo);
|
|
230
|
+
export const WindowsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
231
|
+
windows: S.optional(WindowsResponseWindowsList),
|
|
232
|
+
})).annotate({
|
|
233
|
+
identifier: "WindowsResponse",
|
|
234
|
+
});
|
|
235
|
+
export const InvokeAccessibilityNodeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
236
|
+
action: S.optional(S.String),
|
|
237
|
+
id: S.String,
|
|
238
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/a11y/node/invoke", code: 200 }))).annotate({
|
|
239
|
+
identifier: "InvokeAccessibilityNodeRequest",
|
|
240
|
+
});
|
|
241
|
+
export const InvokeAccessibilityNodeResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
242
|
+
identifier: "InvokeAccessibilityNodeResponse",
|
|
243
|
+
});
|
|
244
|
+
export const ListRecordingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/computeruse/recordings", code: 200 }))).annotate({
|
|
245
|
+
identifier: "ListRecordingsRequest",
|
|
246
|
+
});
|
|
247
|
+
export const ListRecordingsResponseRecordingsList = /*@__PURE__*/ S.Array(Recording);
|
|
248
|
+
export const ListRecordingsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
249
|
+
recordings: ListRecordingsResponseRecordingsList,
|
|
250
|
+
})).annotate({
|
|
251
|
+
identifier: "ListRecordingsResponse",
|
|
252
|
+
});
|
|
253
|
+
export const MoveMouseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
254
|
+
x: S.optional(S.Number),
|
|
255
|
+
y: S.optional(S.Number),
|
|
256
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/mouse/move", code: 200 }))).annotate({
|
|
257
|
+
identifier: "MoveMouseRequest",
|
|
258
|
+
});
|
|
259
|
+
export const PressHotkeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
260
|
+
keys: S.optional(S.String),
|
|
261
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/keyboard/hotkey", code: 200 }))).annotate({
|
|
262
|
+
identifier: "PressHotkeyRequest",
|
|
263
|
+
});
|
|
264
|
+
export const PressHotkeyResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
265
|
+
identifier: "PressHotkeyResponse",
|
|
266
|
+
});
|
|
267
|
+
export const PressKeyRequestModifiersList = /*@__PURE__*/ S.Array(S.String);
|
|
268
|
+
export const PressKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
269
|
+
key: S.optional(S.String),
|
|
270
|
+
modifiers: S.optional(PressKeyRequestModifiersList),
|
|
271
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/keyboard/key", code: 200 }))).annotate({
|
|
272
|
+
identifier: "PressKeyRequest",
|
|
273
|
+
});
|
|
274
|
+
export const PressKeyResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
275
|
+
identifier: "PressKeyResponse",
|
|
276
|
+
});
|
|
277
|
+
export const RestartProcessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
278
|
+
processName: S.String.pipe(T.Label()),
|
|
279
|
+
}).pipe(T.Http({
|
|
280
|
+
method: "POST",
|
|
281
|
+
uri: "/computeruse/process/{processName}/restart",
|
|
282
|
+
code: 200,
|
|
283
|
+
}))).annotate({
|
|
284
|
+
identifier: "RestartProcessRequest",
|
|
285
|
+
});
|
|
286
|
+
export const ProcessRestartResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
287
|
+
message: S.optional(S.String),
|
|
288
|
+
processName: S.optional(S.String),
|
|
289
|
+
})).annotate({
|
|
290
|
+
identifier: "ProcessRestartResponse",
|
|
291
|
+
});
|
|
292
|
+
export const ScrollRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
293
|
+
amount: S.optional(S.Number),
|
|
294
|
+
direction: S.optional(S.String),
|
|
295
|
+
x: S.optional(S.Number),
|
|
296
|
+
y: S.optional(S.Number),
|
|
297
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/mouse/scroll", code: 200 }))).annotate({ identifier: "ScrollRequest" });
|
|
298
|
+
export const ScrollResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
299
|
+
success: S.optional(S.Boolean),
|
|
300
|
+
})).annotate({ identifier: "ScrollResponse" });
|
|
301
|
+
export const SetAccessibilityNodeValueRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
302
|
+
id: S.String,
|
|
303
|
+
value: S.optional(S.String),
|
|
304
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/a11y/node/value", code: 200 }))).annotate({
|
|
305
|
+
identifier: "SetAccessibilityNodeValueRequest",
|
|
306
|
+
});
|
|
307
|
+
export const SetAccessibilityNodeValueResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
308
|
+
identifier: "SetAccessibilityNodeValueResponse",
|
|
309
|
+
});
|
|
310
|
+
export const StartComputerUseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/computeruse/start", code: 200 }))).annotate({
|
|
311
|
+
identifier: "StartComputerUseRequest",
|
|
312
|
+
});
|
|
313
|
+
export const ProcessStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
314
|
+
autoRestart: S.optional(S.Boolean),
|
|
315
|
+
pid: S.optional(S.Number),
|
|
316
|
+
priority: S.optional(S.Number),
|
|
317
|
+
running: S.optional(S.Boolean),
|
|
318
|
+
})).annotate({ identifier: "ProcessStatus" });
|
|
319
|
+
export const ComputerUseStartResponseStatusMap = /*@__PURE__*/ S.Record(S.String, ProcessStatus);
|
|
320
|
+
export const ComputerUseStartResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
+
message: S.optional(S.String),
|
|
322
|
+
status: S.optional(ComputerUseStartResponseStatusMap),
|
|
323
|
+
})).annotate({
|
|
324
|
+
identifier: "ComputerUseStartResponse",
|
|
325
|
+
});
|
|
326
|
+
export const StartRecordingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
+
label: S.optional(S.String),
|
|
328
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/recordings/start", code: 200 }))).annotate({
|
|
329
|
+
identifier: "StartRecordingRequest",
|
|
330
|
+
});
|
|
331
|
+
export const StopComputerUseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/computeruse/stop", code: 200 }))).annotate({
|
|
332
|
+
identifier: "StopComputerUseRequest",
|
|
333
|
+
});
|
|
334
|
+
export const ComputerUseStopResponseStatusMap = /*@__PURE__*/ S.Record(S.String, ProcessStatus);
|
|
335
|
+
export const ComputerUseStopResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
336
|
+
message: S.optional(S.String),
|
|
337
|
+
status: S.optional(ComputerUseStopResponseStatusMap),
|
|
338
|
+
})).annotate({
|
|
339
|
+
identifier: "ComputerUseStopResponse",
|
|
340
|
+
});
|
|
341
|
+
export const StopRecordingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
342
|
+
id: S.String,
|
|
343
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/recordings/stop", code: 200 }))).annotate({
|
|
344
|
+
identifier: "StopRecordingRequest",
|
|
345
|
+
});
|
|
346
|
+
export const TakeCompressedRegionScreenshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
347
|
+
x: S.Number.pipe(T.Query()),
|
|
348
|
+
y: S.Number.pipe(T.Query()),
|
|
349
|
+
width: S.Number.pipe(T.Query()),
|
|
350
|
+
height: S.Number.pipe(T.Query()),
|
|
351
|
+
showCursor: S.optional(S.Boolean.pipe(T.Query())),
|
|
352
|
+
format: S.optional(S.String.pipe(T.Query())),
|
|
353
|
+
quality: S.optional(S.Number.pipe(T.Query())),
|
|
354
|
+
scale: S.optional(S.Number.pipe(T.Query())),
|
|
355
|
+
}).pipe(T.Http({
|
|
356
|
+
method: "GET",
|
|
357
|
+
uri: "/computeruse/screenshot/region/compressed",
|
|
358
|
+
code: 200,
|
|
359
|
+
}))).annotate({
|
|
360
|
+
identifier: "TakeCompressedRegionScreenshotRequest",
|
|
361
|
+
});
|
|
362
|
+
export const Position = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
363
|
+
x: S.optional(S.Number),
|
|
364
|
+
y: S.optional(S.Number),
|
|
365
|
+
})).annotate({ identifier: "Position" });
|
|
366
|
+
export const ScreenshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
367
|
+
cursorPosition: S.optional(Position),
|
|
368
|
+
screenshot: S.optional(S.String),
|
|
369
|
+
sizeBytes: S.optional(S.Number),
|
|
370
|
+
})).annotate({
|
|
371
|
+
identifier: "ScreenshotResponse",
|
|
372
|
+
});
|
|
373
|
+
export const TakeCompressedScreenshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
374
|
+
showCursor: S.optional(S.Boolean.pipe(T.Query())),
|
|
375
|
+
format: S.optional(S.String.pipe(T.Query())),
|
|
376
|
+
quality: S.optional(S.Number.pipe(T.Query())),
|
|
377
|
+
scale: S.optional(S.Number.pipe(T.Query())),
|
|
378
|
+
}).pipe(T.Http({
|
|
379
|
+
method: "GET",
|
|
380
|
+
uri: "/computeruse/screenshot/compressed",
|
|
381
|
+
code: 200,
|
|
382
|
+
}))).annotate({
|
|
383
|
+
identifier: "TakeCompressedScreenshotRequest",
|
|
384
|
+
});
|
|
385
|
+
export const TakeRegionScreenshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
386
|
+
x: S.Number.pipe(T.Query()),
|
|
387
|
+
y: S.Number.pipe(T.Query()),
|
|
388
|
+
width: S.Number.pipe(T.Query()),
|
|
389
|
+
height: S.Number.pipe(T.Query()),
|
|
390
|
+
showCursor: S.optional(S.Boolean.pipe(T.Query())),
|
|
391
|
+
}).pipe(T.Http({ method: "GET", uri: "/computeruse/screenshot/region", code: 200 }))).annotate({
|
|
392
|
+
identifier: "TakeRegionScreenshotRequest",
|
|
393
|
+
});
|
|
394
|
+
export const TakeScreenshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
395
|
+
showCursor: S.optional(S.Boolean.pipe(T.Query())),
|
|
396
|
+
}).pipe(T.Http({ method: "GET", uri: "/computeruse/screenshot", code: 200 }))).annotate({
|
|
397
|
+
identifier: "TakeScreenshotRequest",
|
|
398
|
+
});
|
|
399
|
+
export const TypeTextRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
400
|
+
delay: S.optional(S.Number),
|
|
401
|
+
text: S.optional(S.String),
|
|
402
|
+
}).pipe(T.Http({ method: "POST", uri: "/computeruse/keyboard/type", code: 200 }))).annotate({
|
|
403
|
+
identifier: "TypeTextRequest",
|
|
404
|
+
});
|
|
405
|
+
export const TypeTextResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
406
|
+
identifier: "TypeTextResponse",
|
|
407
|
+
});
|
|
408
|
+
/** Click mouse button Click the mouse button at the specified coordinates */
|
|
409
|
+
export const click = /*@__PURE__*/ API.make(() => ({
|
|
410
|
+
input: ClickRequest,
|
|
411
|
+
output: MouseClickResponse,
|
|
412
|
+
errors: [UnknownDaytonaError],
|
|
413
|
+
protocol: DaytonaProtocol,
|
|
414
|
+
retry: Retry.Retry,
|
|
415
|
+
}));
|
|
416
|
+
/** Delete a recording Delete a recording file by ID */
|
|
417
|
+
export const deleteRecording = /*@__PURE__*/ API.make(() => ({
|
|
418
|
+
input: DeleteRecordingRequest,
|
|
419
|
+
output: DeleteRecordingResponse,
|
|
420
|
+
errors: [UnknownDaytonaError],
|
|
421
|
+
protocol: DaytonaProtocol,
|
|
422
|
+
retry: Retry.Retry,
|
|
423
|
+
}));
|
|
424
|
+
/** Download a recording Download a recording by providing its ID */
|
|
425
|
+
export const downloadRecording = /*@__PURE__*/ API.make(() => ({
|
|
426
|
+
input: DownloadRecordingRequest,
|
|
427
|
+
output: DownloadRecordingResponse,
|
|
428
|
+
errors: [UnknownDaytonaError],
|
|
429
|
+
protocol: DaytonaProtocol,
|
|
430
|
+
retry: Retry.Retry,
|
|
431
|
+
}));
|
|
432
|
+
/** Drag mouse Drag the mouse from start to end coordinates */
|
|
433
|
+
export const drag = /*@__PURE__*/ API.make(() => ({
|
|
434
|
+
input: DragRequest,
|
|
435
|
+
output: MouseDragResponse,
|
|
436
|
+
errors: [UnknownDaytonaError],
|
|
437
|
+
protocol: DaytonaProtocol,
|
|
438
|
+
retry: Retry.Retry,
|
|
439
|
+
}));
|
|
440
|
+
/** Find accessibility nodes Search the AT-SPI tree for nodes matching a role/name/state filter and return a flat list. */
|
|
441
|
+
export const findAccessibilityNodes = /*@__PURE__*/ API.make(() => ({
|
|
442
|
+
input: FindAccessibilityNodesRequest,
|
|
443
|
+
output: AccessibilityNodesResponse,
|
|
444
|
+
errors: [UnknownDaytonaError],
|
|
445
|
+
protocol: DaytonaProtocol,
|
|
446
|
+
retry: Retry.Retry,
|
|
447
|
+
}));
|
|
448
|
+
/** Focus an accessibility node Move keyboard focus to the AT-SPI node identified by id (bus-name:object-path). */
|
|
449
|
+
export const focusAccessibilityNode = /*@__PURE__*/ API.make(() => ({
|
|
450
|
+
input: FocusAccessibilityNodeRequest,
|
|
451
|
+
output: FocusAccessibilityNodeResponse,
|
|
452
|
+
errors: [UnknownDaytonaError],
|
|
453
|
+
protocol: DaytonaProtocol,
|
|
454
|
+
retry: Retry.Retry,
|
|
455
|
+
}));
|
|
456
|
+
/** Get accessibility tree Fetch the AT-SPI accessibility tree for the focused application, a specific PID, or all registered applications. */
|
|
457
|
+
export const getAccessibilityTree = /*@__PURE__*/ API.make(() => ({
|
|
458
|
+
input: GetAccessibilityTreeRequest,
|
|
459
|
+
output: AccessibilityTreeResponse,
|
|
460
|
+
errors: [UnknownDaytonaError],
|
|
461
|
+
protocol: DaytonaProtocol,
|
|
462
|
+
retry: Retry.Retry,
|
|
463
|
+
}));
|
|
464
|
+
/** Get computer use process status Get the status of all computer use processes */
|
|
465
|
+
export const getComputerUseStatus = /*@__PURE__*/ API.make(() => ({
|
|
466
|
+
input: GetComputerUseStatusRequest,
|
|
467
|
+
output: ComputerUseStatusResponse,
|
|
468
|
+
errors: [UnknownDaytonaError],
|
|
469
|
+
protocol: DaytonaProtocol,
|
|
470
|
+
retry: Retry.Retry,
|
|
471
|
+
}));
|
|
472
|
+
/** Get computer use status Get the current status of the computer use system */
|
|
473
|
+
export const getComputerUseSystemStatus = /*@__PURE__*/ API.make(() => ({
|
|
474
|
+
input: GetComputerUseSystemStatusRequest,
|
|
475
|
+
output: ComputerUseStatusResponse,
|
|
476
|
+
errors: [UnknownDaytonaError],
|
|
477
|
+
protocol: DaytonaProtocol,
|
|
478
|
+
retry: Retry.Retry,
|
|
479
|
+
}));
|
|
480
|
+
/** Get display information Get information about all available displays */
|
|
481
|
+
export const getDisplayInfo = /*@__PURE__*/ API.make(() => ({
|
|
482
|
+
input: GetDisplayInfoRequest,
|
|
483
|
+
output: DisplayInfoResponse,
|
|
484
|
+
errors: [UnknownDaytonaError],
|
|
485
|
+
protocol: DaytonaProtocol,
|
|
486
|
+
retry: Retry.Retry,
|
|
487
|
+
}));
|
|
488
|
+
/** Get mouse position Get the current mouse cursor position */
|
|
489
|
+
export const getMousePosition = /*@__PURE__*/ API.make(() => ({
|
|
490
|
+
input: GetMousePositionRequest,
|
|
491
|
+
output: MousePositionResponse,
|
|
492
|
+
errors: [UnknownDaytonaError],
|
|
493
|
+
protocol: DaytonaProtocol,
|
|
494
|
+
retry: Retry.Retry,
|
|
495
|
+
}));
|
|
496
|
+
/** Get process errors Get errors for a specific computer use process */
|
|
497
|
+
export const getProcessErrors = /*@__PURE__*/ API.make(() => ({
|
|
498
|
+
input: GetProcessErrorsRequest,
|
|
499
|
+
output: ProcessErrorsResponse,
|
|
500
|
+
errors: [UnknownDaytonaError],
|
|
501
|
+
protocol: DaytonaProtocol,
|
|
502
|
+
retry: Retry.Retry,
|
|
503
|
+
}));
|
|
504
|
+
/** Get process logs Get logs for a specific computer use process */
|
|
505
|
+
export const getProcessLogs = /*@__PURE__*/ API.make(() => ({
|
|
506
|
+
input: GetProcessLogsRequest,
|
|
507
|
+
output: ProcessLogsResponse,
|
|
508
|
+
errors: [UnknownDaytonaError],
|
|
509
|
+
protocol: DaytonaProtocol,
|
|
510
|
+
retry: Retry.Retry,
|
|
511
|
+
}));
|
|
512
|
+
/** Get specific process status Check if a specific computer use process is running */
|
|
513
|
+
export const getProcessStatus = /*@__PURE__*/ API.make(() => ({
|
|
514
|
+
input: GetProcessStatusRequest,
|
|
515
|
+
output: ProcessStatusResponse,
|
|
516
|
+
errors: [UnknownDaytonaError],
|
|
517
|
+
protocol: DaytonaProtocol,
|
|
518
|
+
retry: Retry.Retry,
|
|
519
|
+
}));
|
|
520
|
+
/** Get recording details Get details of a specific recording by ID */
|
|
521
|
+
export const getRecording = /*@__PURE__*/ API.make(() => ({
|
|
522
|
+
input: GetRecordingRequest,
|
|
523
|
+
output: Recording,
|
|
524
|
+
errors: [UnknownDaytonaError],
|
|
525
|
+
protocol: DaytonaProtocol,
|
|
526
|
+
retry: Retry.Retry,
|
|
527
|
+
}));
|
|
528
|
+
/** Get windows information Get information about all open windows */
|
|
529
|
+
export const getWindows = /*@__PURE__*/ API.make(() => ({
|
|
530
|
+
input: GetWindowsRequest,
|
|
531
|
+
output: WindowsResponse,
|
|
532
|
+
errors: [UnknownDaytonaError],
|
|
533
|
+
protocol: DaytonaProtocol,
|
|
534
|
+
retry: Retry.Retry,
|
|
535
|
+
}));
|
|
536
|
+
/** 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. */
|
|
537
|
+
export const invokeAccessibilityNode = /*@__PURE__*/ API.make(() => ({
|
|
538
|
+
input: InvokeAccessibilityNodeRequest,
|
|
539
|
+
output: InvokeAccessibilityNodeResponse,
|
|
540
|
+
errors: [UnknownDaytonaError],
|
|
541
|
+
protocol: DaytonaProtocol,
|
|
542
|
+
retry: Retry.Retry,
|
|
543
|
+
}));
|
|
544
|
+
/** List all recordings Get a list of all recordings (active and completed) */
|
|
545
|
+
export const listRecordings = /*@__PURE__*/ API.make(() => ({
|
|
546
|
+
input: ListRecordingsRequest,
|
|
547
|
+
output: ListRecordingsResponse,
|
|
548
|
+
errors: [UnknownDaytonaError],
|
|
549
|
+
protocol: DaytonaProtocol,
|
|
550
|
+
retry: Retry.Retry,
|
|
551
|
+
}));
|
|
552
|
+
/** Move mouse cursor Move the mouse cursor to the specified coordinates */
|
|
553
|
+
export const moveMouse = /*@__PURE__*/ API.make(() => ({
|
|
554
|
+
input: MoveMouseRequest,
|
|
555
|
+
output: MousePositionResponse,
|
|
556
|
+
errors: [UnknownDaytonaError],
|
|
557
|
+
protocol: DaytonaProtocol,
|
|
558
|
+
retry: Retry.Retry,
|
|
559
|
+
}));
|
|
560
|
+
/** Press hotkey Press a hotkey combination (e.g., ctrl+c, cmd+v) */
|
|
561
|
+
export const pressHotkey = /*@__PURE__*/ API.make(() => ({
|
|
562
|
+
input: PressHotkeyRequest,
|
|
563
|
+
output: PressHotkeyResponse,
|
|
564
|
+
errors: [UnknownDaytonaError],
|
|
565
|
+
protocol: DaytonaProtocol,
|
|
566
|
+
retry: Retry.Retry,
|
|
567
|
+
}));
|
|
568
|
+
/** Press key Press a key with optional modifiers */
|
|
569
|
+
export const pressKey = /*@__PURE__*/ API.make(() => ({
|
|
570
|
+
input: PressKeyRequest,
|
|
571
|
+
output: PressKeyResponse,
|
|
572
|
+
errors: [UnknownDaytonaError],
|
|
573
|
+
protocol: DaytonaProtocol,
|
|
574
|
+
retry: Retry.Retry,
|
|
575
|
+
}));
|
|
576
|
+
/** Restart specific process Restart a specific computer use process */
|
|
577
|
+
export const restartProcess = /*@__PURE__*/ API.make(() => ({
|
|
578
|
+
input: RestartProcessRequest,
|
|
579
|
+
output: ProcessRestartResponse,
|
|
580
|
+
errors: [UnknownDaytonaError],
|
|
581
|
+
protocol: DaytonaProtocol,
|
|
582
|
+
retry: Retry.Retry,
|
|
583
|
+
}));
|
|
584
|
+
/** Scroll mouse wheel Scroll the mouse wheel at the specified coordinates */
|
|
585
|
+
export const scroll = /*@__PURE__*/ API.make(() => ({
|
|
586
|
+
input: ScrollRequest,
|
|
587
|
+
output: ScrollResponse,
|
|
588
|
+
errors: [UnknownDaytonaError],
|
|
589
|
+
protocol: DaytonaProtocol,
|
|
590
|
+
retry: Retry.Retry,
|
|
591
|
+
}));
|
|
592
|
+
/** Set the value of an accessibility node Write the given value to the node via EditableText.SetTextContents or, for numeric controls, Value.CurrentValue. */
|
|
593
|
+
export const setAccessibilityNodeValue = /*@__PURE__*/ API.make(() => ({
|
|
594
|
+
input: SetAccessibilityNodeValueRequest,
|
|
595
|
+
output: SetAccessibilityNodeValueResponse,
|
|
596
|
+
errors: [UnknownDaytonaError],
|
|
597
|
+
protocol: DaytonaProtocol,
|
|
598
|
+
retry: Retry.Retry,
|
|
599
|
+
}));
|
|
600
|
+
/** Start computer use processes Start all computer use processes and return their status */
|
|
601
|
+
export const startComputerUse = /*@__PURE__*/ API.make(() => ({
|
|
602
|
+
input: StartComputerUseRequest,
|
|
603
|
+
output: ComputerUseStartResponse,
|
|
604
|
+
errors: [UnknownDaytonaError],
|
|
605
|
+
protocol: DaytonaProtocol,
|
|
606
|
+
retry: Retry.Retry,
|
|
607
|
+
}));
|
|
608
|
+
/** Start a new recording Start a new screen recording session */
|
|
609
|
+
export const startRecording = /*@__PURE__*/ API.make(() => ({
|
|
610
|
+
input: StartRecordingRequest,
|
|
611
|
+
output: Recording,
|
|
612
|
+
errors: [UnknownDaytonaError],
|
|
613
|
+
protocol: DaytonaProtocol,
|
|
614
|
+
retry: Retry.Retry,
|
|
615
|
+
}));
|
|
616
|
+
/** Stop computer use processes Stop all computer use processes and return their status */
|
|
617
|
+
export const stopComputerUse = /*@__PURE__*/ API.make(() => ({
|
|
618
|
+
input: StopComputerUseRequest,
|
|
619
|
+
output: ComputerUseStopResponse,
|
|
620
|
+
errors: [UnknownDaytonaError],
|
|
621
|
+
protocol: DaytonaProtocol,
|
|
622
|
+
retry: Retry.Retry,
|
|
623
|
+
}));
|
|
624
|
+
/** Stop a recording Stop an active screen recording session */
|
|
625
|
+
export const stopRecording = /*@__PURE__*/ API.make(() => ({
|
|
626
|
+
input: StopRecordingRequest,
|
|
627
|
+
output: Recording,
|
|
628
|
+
errors: [UnknownDaytonaError],
|
|
629
|
+
protocol: DaytonaProtocol,
|
|
630
|
+
retry: Retry.Retry,
|
|
631
|
+
}));
|
|
632
|
+
/** Take a compressed region screenshot Take a compressed screenshot of a specific region of the screen */
|
|
633
|
+
export const takeCompressedRegionScreenshot = /*@__PURE__*/ API.make(() => ({
|
|
634
|
+
input: TakeCompressedRegionScreenshotRequest,
|
|
635
|
+
output: ScreenshotResponse,
|
|
636
|
+
errors: [UnknownDaytonaError],
|
|
637
|
+
protocol: DaytonaProtocol,
|
|
638
|
+
retry: Retry.Retry,
|
|
639
|
+
}));
|
|
640
|
+
/** Take a compressed screenshot Take a compressed screenshot of the entire screen */
|
|
641
|
+
export const takeCompressedScreenshot = /*@__PURE__*/ API.make(() => ({
|
|
642
|
+
input: TakeCompressedScreenshotRequest,
|
|
643
|
+
output: ScreenshotResponse,
|
|
644
|
+
errors: [UnknownDaytonaError],
|
|
645
|
+
protocol: DaytonaProtocol,
|
|
646
|
+
retry: Retry.Retry,
|
|
647
|
+
}));
|
|
648
|
+
/** Take a region screenshot Take a screenshot of a specific region of the screen */
|
|
649
|
+
export const takeRegionScreenshot = /*@__PURE__*/ API.make(() => ({
|
|
650
|
+
input: TakeRegionScreenshotRequest,
|
|
651
|
+
output: ScreenshotResponse,
|
|
652
|
+
errors: [UnknownDaytonaError],
|
|
653
|
+
protocol: DaytonaProtocol,
|
|
654
|
+
retry: Retry.Retry,
|
|
655
|
+
}));
|
|
656
|
+
/** Take a screenshot Take a screenshot of the entire screen */
|
|
657
|
+
export const takeScreenshot = /*@__PURE__*/ API.make(() => ({
|
|
658
|
+
input: TakeScreenshotRequest,
|
|
659
|
+
output: ScreenshotResponse,
|
|
660
|
+
errors: [UnknownDaytonaError],
|
|
661
|
+
protocol: DaytonaProtocol,
|
|
662
|
+
retry: Retry.Retry,
|
|
663
|
+
}));
|
|
664
|
+
/** Type text Type text with optional delay between keystrokes */
|
|
665
|
+
export const typeText = /*@__PURE__*/ API.make(() => ({
|
|
666
|
+
input: TypeTextRequest,
|
|
667
|
+
output: TypeTextResponse,
|
|
668
|
+
errors: [UnknownDaytonaError],
|
|
669
|
+
protocol: DaytonaProtocol,
|
|
670
|
+
retry: Retry.Retry,
|
|
671
|
+
}));
|
|
672
|
+
//# sourceMappingURL=computer_use.js.map
|