@trycua/cua 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -0
- package/bin/cua.js +37 -0
- package/browser/cua_sdk-ffi.d.ts +6 -0
- package/browser/cua_sdk-ffi.js +3 -0
- package/browser/cua_sdk-ffi.ts +14 -0
- package/browser/cua_sdk.d.ts +2237 -0
- package/browser/cua_sdk.js +2607 -0
- package/browser/cua_sdk.ts +3644 -0
- package/browser/cyclops_sdk_schema-ffi.d.ts +6 -0
- package/browser/cyclops_sdk_schema-ffi.js +3 -0
- package/browser/cyclops_sdk_schema-ffi.ts +14 -0
- package/browser/cyclops_sdk_schema.d.ts +996 -0
- package/browser/cyclops_sdk_schema.js +2194 -0
- package/browser/cyclops_sdk_schema.ts +2934 -0
- package/browser/fleet_sdk-ffi.d.ts +28 -0
- package/browser/fleet_sdk-ffi.js +3 -0
- package/browser/fleet_sdk-ffi.ts +35 -0
- package/browser/fleet_sdk.d.ts +3056 -0
- package/browser/fleet_sdk.js +5088 -0
- package/browser/fleet_sdk.ts +6830 -0
- package/browser/index.d.ts +2 -0
- package/browser/index.js +18 -0
- package/browser/index.web.ts +34 -0
- package/browser/tsconfig.json +20 -0
- package/browser/wasm-bindgen/index.d.ts +2346 -0
- package/browser/wasm-bindgen/index.js +6642 -0
- package/browser/wasm-bindgen/index_bg.wasm +0 -0
- package/browser/wasm-bindgen/index_bg.wasm.d.ts +1154 -0
- package/dist/index.d.ts +118 -0
- package/dist/index.js +207 -0
- package/dist/mcp.d.ts +33 -0
- package/dist/mcp.js +41 -0
- package/dist/native/cua_sdk-ffi.d.ts +1038 -0
- package/dist/native/cua_sdk-ffi.js +5095 -0
- package/dist/native/cua_sdk.d.ts +15906 -0
- package/dist/native/cua_sdk.js +27061 -0
- package/dist/native/index.d.ts +7 -0
- package/dist/native/index.js +12 -0
- package/dist/native/node-runtime.d.ts +72 -0
- package/dist/native/node-runtime.js +35 -0
- package/dist/spaces/cursorArt.d.ts +27 -0
- package/dist/spaces/cursorArt.js +59 -0
- package/dist/spaces/errors.d.ts +81 -0
- package/dist/spaces/errors.js +102 -0
- package/dist/spaces/events.d.ts +154 -0
- package/dist/spaces/events.js +182 -0
- package/dist/spaces/groups.d.ts +130 -0
- package/dist/spaces/groups.js +275 -0
- package/dist/spaces/host.d.ts +71 -0
- package/dist/spaces/host.js +154 -0
- package/dist/spaces/index.d.ts +48 -0
- package/dist/spaces/index.js +44 -0
- package/dist/spaces/pip.d.ts +128 -0
- package/dist/spaces/pip.js +250 -0
- package/dist/spaces/presence.d.ts +187 -0
- package/dist/spaces/presence.js +449 -0
- package/dist/spaces/presenceTypes.check.d.ts +12 -0
- package/dist/spaces/presenceTypes.check.js +1 -0
- package/dist/spaces/presenceTypes.d.ts +47 -0
- package/dist/spaces/presenceTypes.js +7 -0
- package/dist/spaces/routines.d.ts +158 -0
- package/dist/spaces/routines.js +339 -0
- package/dist/spaces/thread.d.ts +147 -0
- package/dist/spaces/thread.js +285 -0
- package/dist/spaces/transport/http.d.ts +51 -0
- package/dist/spaces/transport/http.js +113 -0
- package/dist/spaces/transport/index.d.ts +19 -0
- package/dist/spaces/transport/index.js +19 -0
- package/dist/spaces/transport/session.d.ts +120 -0
- package/dist/spaces/transport/session.js +188 -0
- package/dist/spaces/transport/tauri.d.ts +50 -0
- package/dist/spaces/transport/tauri.js +90 -0
- package/dist/spaces/transport/types.d.ts +123 -0
- package/dist/spaces/transport/types.js +59 -0
- package/dist/teleport/controller.d.ts +34 -0
- package/dist/teleport/controller.js +107 -0
- package/dist/teleport/drop.d.ts +62 -0
- package/dist/teleport/drop.js +138 -0
- package/dist/teleport/dropZone.d.ts +59 -0
- package/dist/teleport/dropZone.js +166 -0
- package/dist/teleport/element.d.ts +28 -0
- package/dist/teleport/element.js +340 -0
- package/dist/teleport/index.d.ts +32 -0
- package/dist/teleport/index.js +32 -0
- package/dist/teleport/install.d.ts +31 -0
- package/dist/teleport/install.js +65 -0
- package/dist/teleport/model.d.ts +245 -0
- package/dist/teleport/model.js +334 -0
- package/dist/teleport/windowDrag.d.ts +86 -0
- package/dist/teleport/windowDrag.js +71 -0
- package/package.json +93 -0
|
@@ -0,0 +1,2607 @@
|
|
|
1
|
+
// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
|
|
2
|
+
// Trust me, you don't want to mess with it!
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
import * as wasmBundle from "./wasm-bindgen/index.js";
|
|
7
|
+
import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterArrayBuffer, FfiConverterBool, FfiConverterFloat64, FfiConverterInt32, FfiConverterInt64, FfiConverterMap, FfiConverterObject, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, UniffiAbstractObject, UniffiError, UniffiInternalError, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTypeNameSymbol, variantOrdinalSymbol, } from "@ubjs/core";
|
|
8
|
+
// wasm1: wrap the wasm-bindgen namespace once so the codegen call sites can
|
|
9
|
+
// uniformly reference `nativeModule().rustbuffer_alloc` / `.rustbuffer_free`.
|
|
10
|
+
// For wasm1, RustBuffers are plain JS Uint8Arrays — no Rust-side allocation
|
|
11
|
+
// is involved, so alloc just hands back a fresh view and free is a no-op.
|
|
12
|
+
const _nativeModule = Object.assign({}, wasmBundle, {
|
|
13
|
+
rustbuffer_alloc: (n) => new Uint8Array(n),
|
|
14
|
+
rustbuffer_free: (_) => { },
|
|
15
|
+
});
|
|
16
|
+
const nativeModule = () => _nativeModule;
|
|
17
|
+
const uniffiCaller = new UniffiRustCaller(() => new wasmBundle.RustCallStatus());
|
|
18
|
+
const uniffiIsDebug =
|
|
19
|
+
// @ts-ignore -- The process global might not be defined
|
|
20
|
+
typeof process !== "object" ||
|
|
21
|
+
// @ts-ignore -- The process global might not be defined
|
|
22
|
+
process?.env?.NODE_ENV !== "production" ||
|
|
23
|
+
false;
|
|
24
|
+
// Public interface members begin here.
|
|
25
|
+
/**
|
|
26
|
+
* Version of the SDK library.
|
|
27
|
+
*/
|
|
28
|
+
export function cuaSdkVersion() {
|
|
29
|
+
return ((__rb) => {
|
|
30
|
+
try {
|
|
31
|
+
return FfiConverterString.lift(__rb);
|
|
32
|
+
}
|
|
33
|
+
finally {
|
|
34
|
+
nativeModule().rustbuffer_free(__rb);
|
|
35
|
+
}
|
|
36
|
+
})(uniffiCaller.rustCall(
|
|
37
|
+
/*caller:*/ (callStatus) => {
|
|
38
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_func_cua_sdk_version(callStatus);
|
|
39
|
+
},
|
|
40
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A link to the errors-reference entry of a [`CuaError`] variant, by name
|
|
44
|
+
* (`InvalidArgument`, case-insensitive). An unknown name links to the
|
|
45
|
+
* page itself. The bindings' `doc_url` / `docUrl` on `CuaError` use it.
|
|
46
|
+
*/
|
|
47
|
+
export function errorDocUrl(variant) {
|
|
48
|
+
return ((__rb) => {
|
|
49
|
+
try {
|
|
50
|
+
return FfiConverterString.lift(__rb);
|
|
51
|
+
}
|
|
52
|
+
finally {
|
|
53
|
+
nativeModule().rustbuffer_free(__rb);
|
|
54
|
+
}
|
|
55
|
+
})(uniffiCaller.rustCall(
|
|
56
|
+
/*caller:*/ (callStatus) => {
|
|
57
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_func_error_doc_url(FfiConverterString.lower(variant, nativeModule().rustbuffer_alloc), callStatus);
|
|
58
|
+
},
|
|
59
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
60
|
+
}
|
|
61
|
+
const stringConverter = (() => {
|
|
62
|
+
const encoder = new TextEncoder();
|
|
63
|
+
const decoder = new TextDecoder();
|
|
64
|
+
return {
|
|
65
|
+
stringToBytes: (s) => encoder.encode(s),
|
|
66
|
+
bytesToString: (ab) => decoder.decode(ab),
|
|
67
|
+
stringByteLength: (s) => encoder.encode(s).byteLength,
|
|
68
|
+
writeStringIntoBuffer: (s, buf, offset) => {
|
|
69
|
+
const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
|
|
70
|
+
return encoder.encodeInto(s, view).written;
|
|
71
|
+
},
|
|
72
|
+
readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length)),
|
|
73
|
+
};
|
|
74
|
+
})();
|
|
75
|
+
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
76
|
+
/**
|
|
77
|
+
* Generated factory for {@link FleetSettings} record objects.
|
|
78
|
+
*/
|
|
79
|
+
export const FleetSettings = (() => {
|
|
80
|
+
const defaults = () => ({
|
|
81
|
+
baseUrl: undefined,
|
|
82
|
+
token: undefined
|
|
83
|
+
});
|
|
84
|
+
const create = (() => {
|
|
85
|
+
return uniffiCreateRecord(defaults);
|
|
86
|
+
})();
|
|
87
|
+
return Object.freeze({
|
|
88
|
+
create,
|
|
89
|
+
new: create,
|
|
90
|
+
defaults: () => Object.freeze(defaults()),
|
|
91
|
+
});
|
|
92
|
+
})();
|
|
93
|
+
const FfiConverterTypeFleetSettings = (() => {
|
|
94
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
95
|
+
read(from) {
|
|
96
|
+
return {
|
|
97
|
+
baseUrl: FfiConverterOptionalString.read(from),
|
|
98
|
+
token: FfiConverterOptionalString.read(from)
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
write(value, into) {
|
|
102
|
+
FfiConverterOptionalString.write(value.baseUrl, into);
|
|
103
|
+
FfiConverterOptionalString.write(value.token, into);
|
|
104
|
+
}
|
|
105
|
+
allocationSize(value) {
|
|
106
|
+
return FfiConverterOptionalString.allocationSize(value.baseUrl) +
|
|
107
|
+
FfiConverterOptionalString.allocationSize(value.token);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
;
|
|
111
|
+
return new FFIConverter();
|
|
112
|
+
})();
|
|
113
|
+
/**
|
|
114
|
+
* Generated factory for {@link CuaConfig} record objects.
|
|
115
|
+
*/
|
|
116
|
+
export const CuaConfig = (() => {
|
|
117
|
+
const defaults = () => ({
|
|
118
|
+
fleet: undefined
|
|
119
|
+
});
|
|
120
|
+
const create = (() => {
|
|
121
|
+
return uniffiCreateRecord(defaults);
|
|
122
|
+
})();
|
|
123
|
+
return Object.freeze({
|
|
124
|
+
create,
|
|
125
|
+
new: create,
|
|
126
|
+
defaults: () => Object.freeze(defaults()),
|
|
127
|
+
});
|
|
128
|
+
})();
|
|
129
|
+
const FfiConverterTypeCuaConfig = (() => {
|
|
130
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
131
|
+
read(from) {
|
|
132
|
+
return {
|
|
133
|
+
fleet: FfiConverterOptionalTypeFleetSettings.read(from)
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
write(value, into) {
|
|
137
|
+
FfiConverterOptionalTypeFleetSettings.write(value.fleet, into);
|
|
138
|
+
}
|
|
139
|
+
allocationSize(value) {
|
|
140
|
+
return FfiConverterOptionalTypeFleetSettings.allocationSize(value.fleet);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
;
|
|
144
|
+
return new FFIConverter();
|
|
145
|
+
})();
|
|
146
|
+
/**
|
|
147
|
+
* Generated factory for {@link ExitInfo} record objects.
|
|
148
|
+
*/
|
|
149
|
+
export const ExitInfo = (() => {
|
|
150
|
+
const defaults = () => ({});
|
|
151
|
+
const create = (() => {
|
|
152
|
+
return uniffiCreateRecord(defaults);
|
|
153
|
+
})();
|
|
154
|
+
return Object.freeze({
|
|
155
|
+
create,
|
|
156
|
+
new: create,
|
|
157
|
+
defaults: () => Object.freeze(defaults()),
|
|
158
|
+
});
|
|
159
|
+
})();
|
|
160
|
+
const FfiConverterTypeExitInfo = (() => {
|
|
161
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
162
|
+
read(from) {
|
|
163
|
+
return {
|
|
164
|
+
code: FfiConverterOptionalInt32.read(from),
|
|
165
|
+
signal: FfiConverterOptionalString.read(from),
|
|
166
|
+
timedOut: FfiConverterBool.read(from),
|
|
167
|
+
error: FfiConverterOptionalString.read(from),
|
|
168
|
+
success: FfiConverterBool.read(from)
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
write(value, into) {
|
|
172
|
+
FfiConverterOptionalInt32.write(value.code, into);
|
|
173
|
+
FfiConverterOptionalString.write(value.signal, into);
|
|
174
|
+
FfiConverterBool.write(value.timedOut, into);
|
|
175
|
+
FfiConverterOptionalString.write(value.error, into);
|
|
176
|
+
FfiConverterBool.write(value.success, into);
|
|
177
|
+
}
|
|
178
|
+
allocationSize(value) {
|
|
179
|
+
return FfiConverterOptionalInt32.allocationSize(value.code) +
|
|
180
|
+
FfiConverterOptionalString.allocationSize(value.signal) +
|
|
181
|
+
FfiConverterBool.allocationSize(value.timedOut) +
|
|
182
|
+
FfiConverterOptionalString.allocationSize(value.error) +
|
|
183
|
+
FfiConverterBool.allocationSize(value.success);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
;
|
|
187
|
+
return new FFIConverter();
|
|
188
|
+
})();
|
|
189
|
+
/**
|
|
190
|
+
* Generated factory for {@link FileEntry} record objects.
|
|
191
|
+
*/
|
|
192
|
+
export const FileEntry = (() => {
|
|
193
|
+
const defaults = () => ({});
|
|
194
|
+
const create = (() => {
|
|
195
|
+
return uniffiCreateRecord(defaults);
|
|
196
|
+
})();
|
|
197
|
+
return Object.freeze({
|
|
198
|
+
create,
|
|
199
|
+
new: create,
|
|
200
|
+
defaults: () => Object.freeze(defaults()),
|
|
201
|
+
});
|
|
202
|
+
})();
|
|
203
|
+
const FfiConverterTypeFileEntry = (() => {
|
|
204
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
205
|
+
read(from) {
|
|
206
|
+
return {
|
|
207
|
+
name: FfiConverterString.read(from),
|
|
208
|
+
path: FfiConverterString.read(from),
|
|
209
|
+
kind: FfiConverterString.read(from),
|
|
210
|
+
size: FfiConverterUInt64.read(from),
|
|
211
|
+
mode: FfiConverterUInt32.read(from),
|
|
212
|
+
modifiedMs: FfiConverterOptionalInt64.read(from),
|
|
213
|
+
symlinkTarget: FfiConverterOptionalString.read(from)
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
write(value, into) {
|
|
217
|
+
FfiConverterString.write(value.name, into);
|
|
218
|
+
FfiConverterString.write(value.path, into);
|
|
219
|
+
FfiConverterString.write(value.kind, into);
|
|
220
|
+
FfiConverterUInt64.write(value.size, into);
|
|
221
|
+
FfiConverterUInt32.write(value.mode, into);
|
|
222
|
+
FfiConverterOptionalInt64.write(value.modifiedMs, into);
|
|
223
|
+
FfiConverterOptionalString.write(value.symlinkTarget, into);
|
|
224
|
+
}
|
|
225
|
+
allocationSize(value) {
|
|
226
|
+
return FfiConverterString.allocationSize(value.name) +
|
|
227
|
+
FfiConverterString.allocationSize(value.path) +
|
|
228
|
+
FfiConverterString.allocationSize(value.kind) +
|
|
229
|
+
FfiConverterUInt64.allocationSize(value.size) +
|
|
230
|
+
FfiConverterUInt32.allocationSize(value.mode) +
|
|
231
|
+
FfiConverterOptionalInt64.allocationSize(value.modifiedMs) +
|
|
232
|
+
FfiConverterOptionalString.allocationSize(value.symlinkTarget);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
;
|
|
236
|
+
return new FFIConverter();
|
|
237
|
+
})();
|
|
238
|
+
/**
|
|
239
|
+
* Generated factory for {@link FleetSandbox} record objects.
|
|
240
|
+
*/
|
|
241
|
+
export const FleetSandbox = (() => {
|
|
242
|
+
const defaults = () => ({});
|
|
243
|
+
const create = (() => {
|
|
244
|
+
return uniffiCreateRecord(defaults);
|
|
245
|
+
})();
|
|
246
|
+
return Object.freeze({
|
|
247
|
+
create,
|
|
248
|
+
new: create,
|
|
249
|
+
defaults: () => Object.freeze(defaults()),
|
|
250
|
+
});
|
|
251
|
+
})();
|
|
252
|
+
const FfiConverterTypeFleetSandbox = (() => {
|
|
253
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
254
|
+
read(from) {
|
|
255
|
+
return {
|
|
256
|
+
name: FfiConverterString.read(from),
|
|
257
|
+
namespace: FfiConverterString.read(from),
|
|
258
|
+
claim: FfiConverterString.read(from),
|
|
259
|
+
services: FfiConverterSequenceString.read(from)
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
write(value, into) {
|
|
263
|
+
FfiConverterString.write(value.name, into);
|
|
264
|
+
FfiConverterString.write(value.namespace, into);
|
|
265
|
+
FfiConverterString.write(value.claim, into);
|
|
266
|
+
FfiConverterSequenceString.write(value.services, into);
|
|
267
|
+
}
|
|
268
|
+
allocationSize(value) {
|
|
269
|
+
return FfiConverterString.allocationSize(value.name) +
|
|
270
|
+
FfiConverterString.allocationSize(value.namespace) +
|
|
271
|
+
FfiConverterString.allocationSize(value.claim) +
|
|
272
|
+
FfiConverterSequenceString.allocationSize(value.services);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
;
|
|
276
|
+
return new FFIConverter();
|
|
277
|
+
})();
|
|
278
|
+
/**
|
|
279
|
+
* Generated factory for {@link MediaOpenOptions} record objects.
|
|
280
|
+
*/
|
|
281
|
+
export const MediaOpenOptions = (() => {
|
|
282
|
+
const defaults = () => ({
|
|
283
|
+
display: undefined,
|
|
284
|
+
windowHandle: undefined,
|
|
285
|
+
maxFps: 0,
|
|
286
|
+
maxDimension: 0,
|
|
287
|
+
audio: false,
|
|
288
|
+
disableVideo: false,
|
|
289
|
+
requestJson: undefined
|
|
290
|
+
});
|
|
291
|
+
const create = (() => {
|
|
292
|
+
return uniffiCreateRecord(defaults);
|
|
293
|
+
})();
|
|
294
|
+
return Object.freeze({
|
|
295
|
+
create,
|
|
296
|
+
new: create,
|
|
297
|
+
defaults: () => Object.freeze(defaults()),
|
|
298
|
+
});
|
|
299
|
+
})();
|
|
300
|
+
const FfiConverterTypeMediaOpenOptions = (() => {
|
|
301
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
302
|
+
read(from) {
|
|
303
|
+
return {
|
|
304
|
+
display: FfiConverterOptionalString.read(from),
|
|
305
|
+
windowHandle: FfiConverterOptionalString.read(from),
|
|
306
|
+
maxFps: FfiConverterUInt32.read(from),
|
|
307
|
+
maxDimension: FfiConverterUInt32.read(from),
|
|
308
|
+
audio: FfiConverterBool.read(from),
|
|
309
|
+
disableVideo: FfiConverterBool.read(from),
|
|
310
|
+
requestJson: FfiConverterOptionalString.read(from)
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
write(value, into) {
|
|
314
|
+
FfiConverterOptionalString.write(value.display, into);
|
|
315
|
+
FfiConverterOptionalString.write(value.windowHandle, into);
|
|
316
|
+
FfiConverterUInt32.write(value.maxFps, into);
|
|
317
|
+
FfiConverterUInt32.write(value.maxDimension, into);
|
|
318
|
+
FfiConverterBool.write(value.audio, into);
|
|
319
|
+
FfiConverterBool.write(value.disableVideo, into);
|
|
320
|
+
FfiConverterOptionalString.write(value.requestJson, into);
|
|
321
|
+
}
|
|
322
|
+
allocationSize(value) {
|
|
323
|
+
return FfiConverterOptionalString.allocationSize(value.display) +
|
|
324
|
+
FfiConverterOptionalString.allocationSize(value.windowHandle) +
|
|
325
|
+
FfiConverterUInt32.allocationSize(value.maxFps) +
|
|
326
|
+
FfiConverterUInt32.allocationSize(value.maxDimension) +
|
|
327
|
+
FfiConverterBool.allocationSize(value.audio) +
|
|
328
|
+
FfiConverterBool.allocationSize(value.disableVideo) +
|
|
329
|
+
FfiConverterOptionalString.allocationSize(value.requestJson);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
;
|
|
333
|
+
return new FFIConverter();
|
|
334
|
+
})();
|
|
335
|
+
/**
|
|
336
|
+
* Generated factory for {@link Point} record objects.
|
|
337
|
+
*/
|
|
338
|
+
export const Point = (() => {
|
|
339
|
+
const defaults = () => ({});
|
|
340
|
+
const create = (() => {
|
|
341
|
+
return uniffiCreateRecord(defaults);
|
|
342
|
+
})();
|
|
343
|
+
return Object.freeze({
|
|
344
|
+
create,
|
|
345
|
+
new: create,
|
|
346
|
+
defaults: () => Object.freeze(defaults()),
|
|
347
|
+
});
|
|
348
|
+
})();
|
|
349
|
+
const FfiConverterTypePoint = (() => {
|
|
350
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
351
|
+
read(from) {
|
|
352
|
+
return {
|
|
353
|
+
x: FfiConverterFloat64.read(from),
|
|
354
|
+
y: FfiConverterFloat64.read(from)
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
write(value, into) {
|
|
358
|
+
FfiConverterFloat64.write(value.x, into);
|
|
359
|
+
FfiConverterFloat64.write(value.y, into);
|
|
360
|
+
}
|
|
361
|
+
allocationSize(value) {
|
|
362
|
+
return FfiConverterFloat64.allocationSize(value.x) +
|
|
363
|
+
FfiConverterFloat64.allocationSize(value.y);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
;
|
|
367
|
+
return new FFIConverter();
|
|
368
|
+
})();
|
|
369
|
+
/**
|
|
370
|
+
* Kind of a process event.
|
|
371
|
+
*/
|
|
372
|
+
export var ProcessEventKind;
|
|
373
|
+
(function (ProcessEventKind) {
|
|
374
|
+
/**
|
|
375
|
+
* stdout bytes.
|
|
376
|
+
*/
|
|
377
|
+
ProcessEventKind[ProcessEventKind["Stdout"] = 0] = "Stdout";
|
|
378
|
+
/**
|
|
379
|
+
* stderr bytes.
|
|
380
|
+
*/
|
|
381
|
+
ProcessEventKind[ProcessEventKind["Stderr"] = 1] = "Stderr";
|
|
382
|
+
/**
|
|
383
|
+
* PTY bytes.
|
|
384
|
+
*/
|
|
385
|
+
ProcessEventKind[ProcessEventKind["Pty"] = 2] = "Pty";
|
|
386
|
+
/**
|
|
387
|
+
* The process ended (always last).
|
|
388
|
+
*/
|
|
389
|
+
ProcessEventKind[ProcessEventKind["Exit"] = 3] = "Exit";
|
|
390
|
+
})(ProcessEventKind || (ProcessEventKind = {}));
|
|
391
|
+
const FfiConverterTypeProcessEventKind = (() => {
|
|
392
|
+
const ordinalConverter = FfiConverterInt32;
|
|
393
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
394
|
+
read(from) {
|
|
395
|
+
switch (ordinalConverter.read(from)) {
|
|
396
|
+
case 1: return ProcessEventKind.Stdout;
|
|
397
|
+
case 2: return ProcessEventKind.Stderr;
|
|
398
|
+
case 3: return ProcessEventKind.Pty;
|
|
399
|
+
case 4: return ProcessEventKind.Exit;
|
|
400
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
write(value, into) {
|
|
404
|
+
switch (value) {
|
|
405
|
+
case ProcessEventKind.Stdout: return ordinalConverter.write(1, into);
|
|
406
|
+
case ProcessEventKind.Stderr: return ordinalConverter.write(2, into);
|
|
407
|
+
case ProcessEventKind.Pty: return ordinalConverter.write(3, into);
|
|
408
|
+
case ProcessEventKind.Exit: return ordinalConverter.write(4, into);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
allocationSize(value) {
|
|
412
|
+
return ordinalConverter.allocationSize(0);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return new FFIConverter();
|
|
416
|
+
})();
|
|
417
|
+
/**
|
|
418
|
+
* Generated factory for {@link ProcessEvent} record objects.
|
|
419
|
+
*/
|
|
420
|
+
export const ProcessEvent = (() => {
|
|
421
|
+
const defaults = () => ({});
|
|
422
|
+
const create = (() => {
|
|
423
|
+
return uniffiCreateRecord(defaults);
|
|
424
|
+
})();
|
|
425
|
+
return Object.freeze({
|
|
426
|
+
create,
|
|
427
|
+
new: create,
|
|
428
|
+
defaults: () => Object.freeze(defaults()),
|
|
429
|
+
});
|
|
430
|
+
})();
|
|
431
|
+
const FfiConverterTypeProcessEvent = (() => {
|
|
432
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
433
|
+
read(from) {
|
|
434
|
+
return {
|
|
435
|
+
kind: FfiConverterTypeProcessEventKind.read(from),
|
|
436
|
+
offset: FfiConverterUInt64.read(from),
|
|
437
|
+
data: FfiConverterArrayBuffer.read(from),
|
|
438
|
+
exit: FfiConverterOptionalTypeExitInfo.read(from)
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
write(value, into) {
|
|
442
|
+
FfiConverterTypeProcessEventKind.write(value.kind, into);
|
|
443
|
+
FfiConverterUInt64.write(value.offset, into);
|
|
444
|
+
FfiConverterArrayBuffer.write(value.data, into);
|
|
445
|
+
FfiConverterOptionalTypeExitInfo.write(value.exit, into);
|
|
446
|
+
}
|
|
447
|
+
allocationSize(value) {
|
|
448
|
+
return FfiConverterTypeProcessEventKind.allocationSize(value.kind) +
|
|
449
|
+
FfiConverterUInt64.allocationSize(value.offset) +
|
|
450
|
+
FfiConverterArrayBuffer.allocationSize(value.data) +
|
|
451
|
+
FfiConverterOptionalTypeExitInfo.allocationSize(value.exit);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
;
|
|
455
|
+
return new FFIConverter();
|
|
456
|
+
})();
|
|
457
|
+
/**
|
|
458
|
+
* Generated factory for {@link ProcessOutput} record objects.
|
|
459
|
+
*/
|
|
460
|
+
export const ProcessOutput = (() => {
|
|
461
|
+
const defaults = () => ({});
|
|
462
|
+
const create = (() => {
|
|
463
|
+
return uniffiCreateRecord(defaults);
|
|
464
|
+
})();
|
|
465
|
+
return Object.freeze({
|
|
466
|
+
create,
|
|
467
|
+
new: create,
|
|
468
|
+
defaults: () => Object.freeze(defaults()),
|
|
469
|
+
});
|
|
470
|
+
})();
|
|
471
|
+
const FfiConverterTypeProcessOutput = (() => {
|
|
472
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
473
|
+
read(from) {
|
|
474
|
+
return {
|
|
475
|
+
exit: FfiConverterTypeExitInfo.read(from),
|
|
476
|
+
stdout: FfiConverterArrayBuffer.read(from),
|
|
477
|
+
stderr: FfiConverterArrayBuffer.read(from),
|
|
478
|
+
pty: FfiConverterArrayBuffer.read(from)
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
write(value, into) {
|
|
482
|
+
FfiConverterTypeExitInfo.write(value.exit, into);
|
|
483
|
+
FfiConverterArrayBuffer.write(value.stdout, into);
|
|
484
|
+
FfiConverterArrayBuffer.write(value.stderr, into);
|
|
485
|
+
FfiConverterArrayBuffer.write(value.pty, into);
|
|
486
|
+
}
|
|
487
|
+
allocationSize(value) {
|
|
488
|
+
return FfiConverterTypeExitInfo.allocationSize(value.exit) +
|
|
489
|
+
FfiConverterArrayBuffer.allocationSize(value.stdout) +
|
|
490
|
+
FfiConverterArrayBuffer.allocationSize(value.stderr) +
|
|
491
|
+
FfiConverterArrayBuffer.allocationSize(value.pty);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
;
|
|
495
|
+
return new FFIConverter();
|
|
496
|
+
})();
|
|
497
|
+
/**
|
|
498
|
+
* Generated factory for {@link PtySize} record objects.
|
|
499
|
+
*/
|
|
500
|
+
export const PtySize = (() => {
|
|
501
|
+
const defaults = () => ({});
|
|
502
|
+
const create = (() => {
|
|
503
|
+
return uniffiCreateRecord(defaults);
|
|
504
|
+
})();
|
|
505
|
+
return Object.freeze({
|
|
506
|
+
create,
|
|
507
|
+
new: create,
|
|
508
|
+
defaults: () => Object.freeze(defaults()),
|
|
509
|
+
});
|
|
510
|
+
})();
|
|
511
|
+
const FfiConverterTypePtySize = (() => {
|
|
512
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
513
|
+
read(from) {
|
|
514
|
+
return {
|
|
515
|
+
cols: FfiConverterUInt32.read(from),
|
|
516
|
+
rows: FfiConverterUInt32.read(from)
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
write(value, into) {
|
|
520
|
+
FfiConverterUInt32.write(value.cols, into);
|
|
521
|
+
FfiConverterUInt32.write(value.rows, into);
|
|
522
|
+
}
|
|
523
|
+
allocationSize(value) {
|
|
524
|
+
return FfiConverterUInt32.allocationSize(value.cols) +
|
|
525
|
+
FfiConverterUInt32.allocationSize(value.rows);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
;
|
|
529
|
+
return new FFIConverter();
|
|
530
|
+
})();
|
|
531
|
+
/**
|
|
532
|
+
* Screenshot encoding.
|
|
533
|
+
*/
|
|
534
|
+
export var ImageFormat;
|
|
535
|
+
(function (ImageFormat) {
|
|
536
|
+
/**
|
|
537
|
+
* PNG.
|
|
538
|
+
*/
|
|
539
|
+
ImageFormat[ImageFormat["Png"] = 0] = "Png";
|
|
540
|
+
/**
|
|
541
|
+
* JPEG.
|
|
542
|
+
*/
|
|
543
|
+
ImageFormat[ImageFormat["Jpeg"] = 1] = "Jpeg";
|
|
544
|
+
/**
|
|
545
|
+
* WebP.
|
|
546
|
+
*/
|
|
547
|
+
ImageFormat[ImageFormat["Webp"] = 2] = "Webp";
|
|
548
|
+
})(ImageFormat || (ImageFormat = {}));
|
|
549
|
+
const FfiConverterTypeImageFormat = (() => {
|
|
550
|
+
const ordinalConverter = FfiConverterInt32;
|
|
551
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
552
|
+
read(from) {
|
|
553
|
+
switch (ordinalConverter.read(from)) {
|
|
554
|
+
case 1: return ImageFormat.Png;
|
|
555
|
+
case 2: return ImageFormat.Jpeg;
|
|
556
|
+
case 3: return ImageFormat.Webp;
|
|
557
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
write(value, into) {
|
|
561
|
+
switch (value) {
|
|
562
|
+
case ImageFormat.Png: return ordinalConverter.write(1, into);
|
|
563
|
+
case ImageFormat.Jpeg: return ordinalConverter.write(2, into);
|
|
564
|
+
case ImageFormat.Webp: return ordinalConverter.write(3, into);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
allocationSize(value) {
|
|
568
|
+
return ordinalConverter.allocationSize(0);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
return new FFIConverter();
|
|
572
|
+
})();
|
|
573
|
+
/**
|
|
574
|
+
* Generated factory for {@link Screenshot} record objects.
|
|
575
|
+
*/
|
|
576
|
+
export const Screenshot = (() => {
|
|
577
|
+
const defaults = () => ({});
|
|
578
|
+
const create = (() => {
|
|
579
|
+
return uniffiCreateRecord(defaults);
|
|
580
|
+
})();
|
|
581
|
+
return Object.freeze({
|
|
582
|
+
create,
|
|
583
|
+
new: create,
|
|
584
|
+
defaults: () => Object.freeze(defaults()),
|
|
585
|
+
});
|
|
586
|
+
})();
|
|
587
|
+
const FfiConverterTypeScreenshot = (() => {
|
|
588
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
589
|
+
read(from) {
|
|
590
|
+
return {
|
|
591
|
+
image: FfiConverterArrayBuffer.read(from),
|
|
592
|
+
format: FfiConverterTypeImageFormat.read(from),
|
|
593
|
+
width: FfiConverterUInt32.read(from),
|
|
594
|
+
height: FfiConverterUInt32.read(from),
|
|
595
|
+
scale: FfiConverterFloat64.read(from),
|
|
596
|
+
screenshotId: FfiConverterString.read(from)
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
write(value, into) {
|
|
600
|
+
FfiConverterArrayBuffer.write(value.image, into);
|
|
601
|
+
FfiConverterTypeImageFormat.write(value.format, into);
|
|
602
|
+
FfiConverterUInt32.write(value.width, into);
|
|
603
|
+
FfiConverterUInt32.write(value.height, into);
|
|
604
|
+
FfiConverterFloat64.write(value.scale, into);
|
|
605
|
+
FfiConverterString.write(value.screenshotId, into);
|
|
606
|
+
}
|
|
607
|
+
allocationSize(value) {
|
|
608
|
+
return FfiConverterArrayBuffer.allocationSize(value.image) +
|
|
609
|
+
FfiConverterTypeImageFormat.allocationSize(value.format) +
|
|
610
|
+
FfiConverterUInt32.allocationSize(value.width) +
|
|
611
|
+
FfiConverterUInt32.allocationSize(value.height) +
|
|
612
|
+
FfiConverterFloat64.allocationSize(value.scale) +
|
|
613
|
+
FfiConverterString.allocationSize(value.screenshotId);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
;
|
|
617
|
+
return new FFIConverter();
|
|
618
|
+
})();
|
|
619
|
+
/**
|
|
620
|
+
* Generated factory for {@link ScreenshotOptions} record objects.
|
|
621
|
+
*/
|
|
622
|
+
export const ScreenshotOptions = (() => {
|
|
623
|
+
const defaults = () => ({
|
|
624
|
+
display: undefined,
|
|
625
|
+
format: undefined,
|
|
626
|
+
quality: undefined,
|
|
627
|
+
maxDimension: undefined,
|
|
628
|
+
includeCursor: false
|
|
629
|
+
});
|
|
630
|
+
const create = (() => {
|
|
631
|
+
return uniffiCreateRecord(defaults);
|
|
632
|
+
})();
|
|
633
|
+
return Object.freeze({
|
|
634
|
+
create,
|
|
635
|
+
new: create,
|
|
636
|
+
defaults: () => Object.freeze(defaults()),
|
|
637
|
+
});
|
|
638
|
+
})();
|
|
639
|
+
const FfiConverterTypeScreenshotOptions = (() => {
|
|
640
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
641
|
+
read(from) {
|
|
642
|
+
return {
|
|
643
|
+
display: FfiConverterOptionalString.read(from),
|
|
644
|
+
format: FfiConverterOptionalTypeImageFormat.read(from),
|
|
645
|
+
quality: FfiConverterOptionalUInt32.read(from),
|
|
646
|
+
maxDimension: FfiConverterOptionalUInt32.read(from),
|
|
647
|
+
includeCursor: FfiConverterBool.read(from)
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
write(value, into) {
|
|
651
|
+
FfiConverterOptionalString.write(value.display, into);
|
|
652
|
+
FfiConverterOptionalTypeImageFormat.write(value.format, into);
|
|
653
|
+
FfiConverterOptionalUInt32.write(value.quality, into);
|
|
654
|
+
FfiConverterOptionalUInt32.write(value.maxDimension, into);
|
|
655
|
+
FfiConverterBool.write(value.includeCursor, into);
|
|
656
|
+
}
|
|
657
|
+
allocationSize(value) {
|
|
658
|
+
return FfiConverterOptionalString.allocationSize(value.display) +
|
|
659
|
+
FfiConverterOptionalTypeImageFormat.allocationSize(value.format) +
|
|
660
|
+
FfiConverterOptionalUInt32.allocationSize(value.quality) +
|
|
661
|
+
FfiConverterOptionalUInt32.allocationSize(value.maxDimension) +
|
|
662
|
+
FfiConverterBool.allocationSize(value.includeCursor);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
;
|
|
666
|
+
return new FFIConverter();
|
|
667
|
+
})();
|
|
668
|
+
/**
|
|
669
|
+
* Generated factory for {@link SpacesdFeature} record objects.
|
|
670
|
+
*/
|
|
671
|
+
export const SpacesdFeature = (() => {
|
|
672
|
+
const defaults = () => ({});
|
|
673
|
+
const create = (() => {
|
|
674
|
+
return uniffiCreateRecord(defaults);
|
|
675
|
+
})();
|
|
676
|
+
return Object.freeze({
|
|
677
|
+
create,
|
|
678
|
+
new: create,
|
|
679
|
+
defaults: () => Object.freeze(defaults()),
|
|
680
|
+
});
|
|
681
|
+
})();
|
|
682
|
+
const FfiConverterTypeSpacesdFeature = (() => {
|
|
683
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
684
|
+
read(from) {
|
|
685
|
+
return {
|
|
686
|
+
name: FfiConverterString.read(from),
|
|
687
|
+
supported: FfiConverterBool.read(from),
|
|
688
|
+
limitation: FfiConverterOptionalString.read(from),
|
|
689
|
+
attributes: FfiConverterMapStringString.read(from)
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
write(value, into) {
|
|
693
|
+
FfiConverterString.write(value.name, into);
|
|
694
|
+
FfiConverterBool.write(value.supported, into);
|
|
695
|
+
FfiConverterOptionalString.write(value.limitation, into);
|
|
696
|
+
FfiConverterMapStringString.write(value.attributes, into);
|
|
697
|
+
}
|
|
698
|
+
allocationSize(value) {
|
|
699
|
+
return FfiConverterString.allocationSize(value.name) +
|
|
700
|
+
FfiConverterBool.allocationSize(value.supported) +
|
|
701
|
+
FfiConverterOptionalString.allocationSize(value.limitation) +
|
|
702
|
+
FfiConverterMapStringString.allocationSize(value.attributes);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
;
|
|
706
|
+
return new FFIConverter();
|
|
707
|
+
})();
|
|
708
|
+
/**
|
|
709
|
+
* Generated factory for {@link SpacesdCapabilities} record objects.
|
|
710
|
+
*/
|
|
711
|
+
export const SpacesdCapabilities = (() => {
|
|
712
|
+
const defaults = () => ({});
|
|
713
|
+
const create = (() => {
|
|
714
|
+
return uniffiCreateRecord(defaults);
|
|
715
|
+
})();
|
|
716
|
+
return Object.freeze({
|
|
717
|
+
create,
|
|
718
|
+
new: create,
|
|
719
|
+
defaults: () => Object.freeze(defaults()),
|
|
720
|
+
});
|
|
721
|
+
})();
|
|
722
|
+
const FfiConverterTypeSpacesdCapabilities = (() => {
|
|
723
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
724
|
+
read(from) {
|
|
725
|
+
return {
|
|
726
|
+
version: FfiConverterString.read(from),
|
|
727
|
+
protocolVersion: FfiConverterUInt32.read(from),
|
|
728
|
+
protocolRevision: FfiConverterUInt32.read(from),
|
|
729
|
+
osFamily: FfiConverterString.read(from),
|
|
730
|
+
osName: FfiConverterString.read(from),
|
|
731
|
+
osVersion: FfiConverterString.read(from),
|
|
732
|
+
arch: FfiConverterString.read(from),
|
|
733
|
+
hostname: FfiConverterString.read(from),
|
|
734
|
+
initialized: FfiConverterBool.read(from),
|
|
735
|
+
features: FfiConverterSequenceTypeSpacesdFeature.read(from),
|
|
736
|
+
json: FfiConverterString.read(from)
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
write(value, into) {
|
|
740
|
+
FfiConverterString.write(value.version, into);
|
|
741
|
+
FfiConverterUInt32.write(value.protocolVersion, into);
|
|
742
|
+
FfiConverterUInt32.write(value.protocolRevision, into);
|
|
743
|
+
FfiConverterString.write(value.osFamily, into);
|
|
744
|
+
FfiConverterString.write(value.osName, into);
|
|
745
|
+
FfiConverterString.write(value.osVersion, into);
|
|
746
|
+
FfiConverterString.write(value.arch, into);
|
|
747
|
+
FfiConverterString.write(value.hostname, into);
|
|
748
|
+
FfiConverterBool.write(value.initialized, into);
|
|
749
|
+
FfiConverterSequenceTypeSpacesdFeature.write(value.features, into);
|
|
750
|
+
FfiConverterString.write(value.json, into);
|
|
751
|
+
}
|
|
752
|
+
allocationSize(value) {
|
|
753
|
+
return FfiConverterString.allocationSize(value.version) +
|
|
754
|
+
FfiConverterUInt32.allocationSize(value.protocolVersion) +
|
|
755
|
+
FfiConverterUInt32.allocationSize(value.protocolRevision) +
|
|
756
|
+
FfiConverterString.allocationSize(value.osFamily) +
|
|
757
|
+
FfiConverterString.allocationSize(value.osName) +
|
|
758
|
+
FfiConverterString.allocationSize(value.osVersion) +
|
|
759
|
+
FfiConverterString.allocationSize(value.arch) +
|
|
760
|
+
FfiConverterString.allocationSize(value.hostname) +
|
|
761
|
+
FfiConverterBool.allocationSize(value.initialized) +
|
|
762
|
+
FfiConverterSequenceTypeSpacesdFeature.allocationSize(value.features) +
|
|
763
|
+
FfiConverterString.allocationSize(value.json);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
;
|
|
767
|
+
return new FFIConverter();
|
|
768
|
+
})();
|
|
769
|
+
/**
|
|
770
|
+
* Generated factory for {@link SpacesdCommand} record objects.
|
|
771
|
+
*/
|
|
772
|
+
export const SpacesdCommand = (() => {
|
|
773
|
+
const defaults = () => ({
|
|
774
|
+
args: [],
|
|
775
|
+
env: new Map(),
|
|
776
|
+
cwd: undefined,
|
|
777
|
+
user: undefined,
|
|
778
|
+
timeoutMs: undefined,
|
|
779
|
+
tag: undefined,
|
|
780
|
+
stdin: false,
|
|
781
|
+
pty: undefined
|
|
782
|
+
});
|
|
783
|
+
const create = (() => {
|
|
784
|
+
return uniffiCreateRecord(defaults);
|
|
785
|
+
})();
|
|
786
|
+
return Object.freeze({
|
|
787
|
+
create,
|
|
788
|
+
new: create,
|
|
789
|
+
defaults: () => Object.freeze(defaults()),
|
|
790
|
+
});
|
|
791
|
+
})();
|
|
792
|
+
const FfiConverterTypeSpacesdCommand = (() => {
|
|
793
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
794
|
+
read(from) {
|
|
795
|
+
return {
|
|
796
|
+
program: FfiConverterString.read(from),
|
|
797
|
+
args: FfiConverterSequenceString.read(from),
|
|
798
|
+
env: FfiConverterMapStringString.read(from),
|
|
799
|
+
cwd: FfiConverterOptionalString.read(from),
|
|
800
|
+
user: FfiConverterOptionalString.read(from),
|
|
801
|
+
timeoutMs: FfiConverterOptionalUInt32.read(from),
|
|
802
|
+
tag: FfiConverterOptionalString.read(from),
|
|
803
|
+
stdin: FfiConverterBool.read(from),
|
|
804
|
+
pty: FfiConverterOptionalTypePtySize.read(from)
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
write(value, into) {
|
|
808
|
+
FfiConverterString.write(value.program, into);
|
|
809
|
+
FfiConverterSequenceString.write(value.args, into);
|
|
810
|
+
FfiConverterMapStringString.write(value.env, into);
|
|
811
|
+
FfiConverterOptionalString.write(value.cwd, into);
|
|
812
|
+
FfiConverterOptionalString.write(value.user, into);
|
|
813
|
+
FfiConverterOptionalUInt32.write(value.timeoutMs, into);
|
|
814
|
+
FfiConverterOptionalString.write(value.tag, into);
|
|
815
|
+
FfiConverterBool.write(value.stdin, into);
|
|
816
|
+
FfiConverterOptionalTypePtySize.write(value.pty, into);
|
|
817
|
+
}
|
|
818
|
+
allocationSize(value) {
|
|
819
|
+
return FfiConverterString.allocationSize(value.program) +
|
|
820
|
+
FfiConverterSequenceString.allocationSize(value.args) +
|
|
821
|
+
FfiConverterMapStringString.allocationSize(value.env) +
|
|
822
|
+
FfiConverterOptionalString.allocationSize(value.cwd) +
|
|
823
|
+
FfiConverterOptionalString.allocationSize(value.user) +
|
|
824
|
+
FfiConverterOptionalUInt32.allocationSize(value.timeoutMs) +
|
|
825
|
+
FfiConverterOptionalString.allocationSize(value.tag) +
|
|
826
|
+
FfiConverterBool.allocationSize(value.stdin) +
|
|
827
|
+
FfiConverterOptionalTypePtySize.allocationSize(value.pty);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
;
|
|
831
|
+
return new FFIConverter();
|
|
832
|
+
})();
|
|
833
|
+
/**
|
|
834
|
+
* Generated factory for {@link TransferResult} record objects.
|
|
835
|
+
*/
|
|
836
|
+
export const TransferResult = (() => {
|
|
837
|
+
const defaults = () => ({});
|
|
838
|
+
const create = (() => {
|
|
839
|
+
return uniffiCreateRecord(defaults);
|
|
840
|
+
})();
|
|
841
|
+
return Object.freeze({
|
|
842
|
+
create,
|
|
843
|
+
new: create,
|
|
844
|
+
defaults: () => Object.freeze(defaults()),
|
|
845
|
+
});
|
|
846
|
+
})();
|
|
847
|
+
const FfiConverterTypeTransferResult = (() => {
|
|
848
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
849
|
+
read(from) {
|
|
850
|
+
return {
|
|
851
|
+
size: FfiConverterUInt64.read(from),
|
|
852
|
+
sha256: FfiConverterString.read(from),
|
|
853
|
+
resumes: FfiConverterUInt32.read(from)
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
write(value, into) {
|
|
857
|
+
FfiConverterUInt64.write(value.size, into);
|
|
858
|
+
FfiConverterString.write(value.sha256, into);
|
|
859
|
+
FfiConverterUInt32.write(value.resumes, into);
|
|
860
|
+
}
|
|
861
|
+
allocationSize(value) {
|
|
862
|
+
return FfiConverterUInt64.allocationSize(value.size) +
|
|
863
|
+
FfiConverterString.allocationSize(value.sha256) +
|
|
864
|
+
FfiConverterUInt32.allocationSize(value.resumes);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
;
|
|
868
|
+
return new FFIConverter();
|
|
869
|
+
})();
|
|
870
|
+
/**
|
|
871
|
+
* Generated factory for {@link UploadOptions} record objects.
|
|
872
|
+
*/
|
|
873
|
+
export const UploadOptions = (() => {
|
|
874
|
+
const defaults = () => ({
|
|
875
|
+
createNew: false,
|
|
876
|
+
append: false,
|
|
877
|
+
permissions: 0,
|
|
878
|
+
createParents: true
|
|
879
|
+
});
|
|
880
|
+
const create = (() => {
|
|
881
|
+
return uniffiCreateRecord(defaults);
|
|
882
|
+
})();
|
|
883
|
+
return Object.freeze({
|
|
884
|
+
create,
|
|
885
|
+
new: create,
|
|
886
|
+
defaults: () => Object.freeze(defaults()),
|
|
887
|
+
});
|
|
888
|
+
})();
|
|
889
|
+
const FfiConverterTypeUploadOptions = (() => {
|
|
890
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
891
|
+
read(from) {
|
|
892
|
+
return {
|
|
893
|
+
createNew: FfiConverterBool.read(from),
|
|
894
|
+
append: FfiConverterBool.read(from),
|
|
895
|
+
permissions: FfiConverterUInt32.read(from),
|
|
896
|
+
createParents: FfiConverterBool.read(from)
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
write(value, into) {
|
|
900
|
+
FfiConverterBool.write(value.createNew, into);
|
|
901
|
+
FfiConverterBool.write(value.append, into);
|
|
902
|
+
FfiConverterUInt32.write(value.permissions, into);
|
|
903
|
+
FfiConverterBool.write(value.createParents, into);
|
|
904
|
+
}
|
|
905
|
+
allocationSize(value) {
|
|
906
|
+
return FfiConverterBool.allocationSize(value.createNew) +
|
|
907
|
+
FfiConverterBool.allocationSize(value.append) +
|
|
908
|
+
FfiConverterUInt32.allocationSize(value.permissions) +
|
|
909
|
+
FfiConverterBool.allocationSize(value.createParents);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
;
|
|
913
|
+
return new FFIConverter();
|
|
914
|
+
})();
|
|
915
|
+
// Flat error type: CuaError
|
|
916
|
+
export var CuaError_Tags;
|
|
917
|
+
(function (CuaError_Tags) {
|
|
918
|
+
CuaError_Tags["InvalidArgument"] = "InvalidArgument";
|
|
919
|
+
CuaError_Tags["InvalidPlacement"] = "InvalidPlacement";
|
|
920
|
+
CuaError_Tags["NotFound"] = "NotFound";
|
|
921
|
+
CuaError_Tags["ProviderNotConfigured"] = "ProviderNotConfigured";
|
|
922
|
+
CuaError_Tags["Unsupported"] = "Unsupported";
|
|
923
|
+
CuaError_Tags["SpacesdNotAvailable"] = "SpacesdNotAvailable";
|
|
924
|
+
CuaError_Tags["Timeout"] = "Timeout";
|
|
925
|
+
CuaError_Tags["Fleet"] = "Fleet";
|
|
926
|
+
CuaError_Tags["FleetAdmissionDenied"] = "FleetAdmissionDenied";
|
|
927
|
+
CuaError_Tags["CloudCreditExhausted"] = "CloudCreditExhausted";
|
|
928
|
+
CuaError_Tags["Runtime"] = "Runtime";
|
|
929
|
+
CuaError_Tags["Env"] = "Env";
|
|
930
|
+
CuaError_Tags["Http"] = "Http";
|
|
931
|
+
CuaError_Tags["Unauthenticated"] = "Unauthenticated";
|
|
932
|
+
CuaError_Tags["PermissionDenied"] = "PermissionDenied";
|
|
933
|
+
CuaError_Tags["Transport"] = "Transport";
|
|
934
|
+
CuaError_Tags["DaemonNotRunning"] = "DaemonNotRunning";
|
|
935
|
+
CuaError_Tags["Closed"] = "Closed";
|
|
936
|
+
CuaError_Tags["CapabilityMissing"] = "CapabilityMissing";
|
|
937
|
+
CuaError_Tags["HostCapabilityMissing"] = "HostCapabilityMissing";
|
|
938
|
+
CuaError_Tags["TeleportRefused"] = "TeleportRefused";
|
|
939
|
+
CuaError_Tags["PoolSpecMismatch"] = "PoolSpecMismatch";
|
|
940
|
+
CuaError_Tags["ClaimSecretsNotDelivered"] = "ClaimSecretsNotDelivered";
|
|
941
|
+
CuaError_Tags["Internal"] = "Internal";
|
|
942
|
+
CuaError_Tags["AmbiguousSandbox"] = "AmbiguousSandbox";
|
|
943
|
+
CuaError_Tags["InsufficientDisk"] = "InsufficientDisk";
|
|
944
|
+
CuaError_Tags["ImageNotPublished"] = "ImageNotPublished";
|
|
945
|
+
CuaError_Tags["Cancelled"] = "Cancelled";
|
|
946
|
+
CuaError_Tags["Cloud"] = "Cloud";
|
|
947
|
+
})(CuaError_Tags || (CuaError_Tags = {}));
|
|
948
|
+
/**
|
|
949
|
+
* Every error the SDK raises. Flat across the FFI: each language sees one
|
|
950
|
+
* exception/error type with a case per variant and the message.
|
|
951
|
+
*/
|
|
952
|
+
export const CuaError = (() => {
|
|
953
|
+
/**
|
|
954
|
+
* Bad input.
|
|
955
|
+
*
|
|
956
|
+
* Fix: Check the value against the reference; the message names the
|
|
957
|
+
* argument and what it accepts.
|
|
958
|
+
*/
|
|
959
|
+
class InvalidArgument extends UniffiError {
|
|
960
|
+
/**
|
|
961
|
+
* @private
|
|
962
|
+
* This field is private and should not be used.
|
|
963
|
+
*/
|
|
964
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
965
|
+
/**
|
|
966
|
+
* @private
|
|
967
|
+
* This field is private and should not be used.
|
|
968
|
+
*/
|
|
969
|
+
[variantOrdinalSymbol] = 1;
|
|
970
|
+
tag = CuaError_Tags.InvalidArgument;
|
|
971
|
+
constructor(message) {
|
|
972
|
+
super("CuaError", "InvalidArgument", message);
|
|
973
|
+
}
|
|
974
|
+
static instanceOf(e) {
|
|
975
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 1);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* A location, kind or runtime that does not exist, or a combination of
|
|
980
|
+
* them (or with the image) that does not. The message ends with the
|
|
981
|
+
* valid values for that context.
|
|
982
|
+
*
|
|
983
|
+
* Fix: Use one of the values the message lists, or leave `kind` and
|
|
984
|
+
* `runtime` unset (`auto`). `cua config list` shows the defaults in
|
|
985
|
+
* effect.
|
|
986
|
+
*/
|
|
987
|
+
class InvalidPlacement extends UniffiError {
|
|
988
|
+
/**
|
|
989
|
+
* @private
|
|
990
|
+
* This field is private and should not be used.
|
|
991
|
+
*/
|
|
992
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
993
|
+
/**
|
|
994
|
+
* @private
|
|
995
|
+
* This field is private and should not be used.
|
|
996
|
+
*/
|
|
997
|
+
[variantOrdinalSymbol] = 2;
|
|
998
|
+
tag = CuaError_Tags.InvalidPlacement;
|
|
999
|
+
constructor(message) {
|
|
1000
|
+
super("CuaError", "InvalidPlacement", message);
|
|
1001
|
+
}
|
|
1002
|
+
static instanceOf(e) {
|
|
1003
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 2);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* No such sandbox, process, path, forward or session.
|
|
1008
|
+
*
|
|
1009
|
+
* Fix: Check the ref, path or id. `Sandboxes.list` (`cua sb ls`) lists the
|
|
1010
|
+
* sandboxes this client can see.
|
|
1011
|
+
*/
|
|
1012
|
+
class NotFound extends UniffiError {
|
|
1013
|
+
/**
|
|
1014
|
+
* @private
|
|
1015
|
+
* This field is private and should not be used.
|
|
1016
|
+
*/
|
|
1017
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1018
|
+
/**
|
|
1019
|
+
* @private
|
|
1020
|
+
* This field is private and should not be used.
|
|
1021
|
+
*/
|
|
1022
|
+
[variantOrdinalSymbol] = 3;
|
|
1023
|
+
tag = CuaError_Tags.NotFound;
|
|
1024
|
+
constructor(message) {
|
|
1025
|
+
super("CuaError", "NotFound", message);
|
|
1026
|
+
}
|
|
1027
|
+
static instanceOf(e) {
|
|
1028
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 3);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* The provider is not configured (for example no Fleet credentials).
|
|
1033
|
+
*
|
|
1034
|
+
* Fix: Set `FLEETS_TOKEN`, or `CUA_CLIENT_ID` and `CUA_CLIENT_SECRET`, or
|
|
1035
|
+
* run `cua auth login` and create the client with `fleet_from_session`.
|
|
1036
|
+
*/
|
|
1037
|
+
class ProviderNotConfigured extends UniffiError {
|
|
1038
|
+
/**
|
|
1039
|
+
* @private
|
|
1040
|
+
* This field is private and should not be used.
|
|
1041
|
+
*/
|
|
1042
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1043
|
+
/**
|
|
1044
|
+
* @private
|
|
1045
|
+
* This field is private and should not be used.
|
|
1046
|
+
*/
|
|
1047
|
+
[variantOrdinalSymbol] = 4;
|
|
1048
|
+
tag = CuaError_Tags.ProviderNotConfigured;
|
|
1049
|
+
constructor(message) {
|
|
1050
|
+
super("CuaError", "ProviderNotConfigured", message);
|
|
1051
|
+
}
|
|
1052
|
+
static instanceOf(e) {
|
|
1053
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 4);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* Not supported by this provider, guest or build.
|
|
1058
|
+
*
|
|
1059
|
+
* Fix: Use a provider, image or runtime that supports the call; the
|
|
1060
|
+
* message names what is missing.
|
|
1061
|
+
*/
|
|
1062
|
+
class Unsupported extends UniffiError {
|
|
1063
|
+
/**
|
|
1064
|
+
* @private
|
|
1065
|
+
* This field is private and should not be used.
|
|
1066
|
+
*/
|
|
1067
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1068
|
+
/**
|
|
1069
|
+
* @private
|
|
1070
|
+
* This field is private and should not be used.
|
|
1071
|
+
*/
|
|
1072
|
+
[variantOrdinalSymbol] = 5;
|
|
1073
|
+
tag = CuaError_Tags.Unsupported;
|
|
1074
|
+
constructor(message) {
|
|
1075
|
+
super("CuaError", "Unsupported", message);
|
|
1076
|
+
}
|
|
1077
|
+
static instanceOf(e) {
|
|
1078
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 5);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* No cua-spacesd answered in the sandbox or at the URL.
|
|
1083
|
+
*
|
|
1084
|
+
* Fix: Use an image that runs cua-spacesd (the canonical Linux image does),
|
|
1085
|
+
* or reach the sandbox through the services it declares.
|
|
1086
|
+
*/
|
|
1087
|
+
class SpacesdNotAvailable extends UniffiError {
|
|
1088
|
+
/**
|
|
1089
|
+
* @private
|
|
1090
|
+
* This field is private and should not be used.
|
|
1091
|
+
*/
|
|
1092
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1093
|
+
/**
|
|
1094
|
+
* @private
|
|
1095
|
+
* This field is private and should not be used.
|
|
1096
|
+
*/
|
|
1097
|
+
[variantOrdinalSymbol] = 6;
|
|
1098
|
+
tag = CuaError_Tags.SpacesdNotAvailable;
|
|
1099
|
+
constructor(message) {
|
|
1100
|
+
super("CuaError", "SpacesdNotAvailable", message);
|
|
1101
|
+
}
|
|
1102
|
+
static instanceOf(e) {
|
|
1103
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 6);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* A deadline elapsed.
|
|
1108
|
+
*
|
|
1109
|
+
* Fix: Raise the timeout (for example `ready_timeout_ms`), and check that
|
|
1110
|
+
* the sandbox or service actually starts.
|
|
1111
|
+
*/
|
|
1112
|
+
class Timeout extends UniffiError {
|
|
1113
|
+
/**
|
|
1114
|
+
* @private
|
|
1115
|
+
* This field is private and should not be used.
|
|
1116
|
+
*/
|
|
1117
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1118
|
+
/**
|
|
1119
|
+
* @private
|
|
1120
|
+
* This field is private and should not be used.
|
|
1121
|
+
*/
|
|
1122
|
+
[variantOrdinalSymbol] = 7;
|
|
1123
|
+
tag = CuaError_Tags.Timeout;
|
|
1124
|
+
constructor(message) {
|
|
1125
|
+
super("CuaError", "Timeout", message);
|
|
1126
|
+
}
|
|
1127
|
+
static instanceOf(e) {
|
|
1128
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 7);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Fleet API failure.
|
|
1133
|
+
*
|
|
1134
|
+
* Fix: Read the status in the message. Retry a transient failure; check
|
|
1135
|
+
* the credentials and the account's capacity otherwise.
|
|
1136
|
+
*/
|
|
1137
|
+
class Fleet extends UniffiError {
|
|
1138
|
+
/**
|
|
1139
|
+
* @private
|
|
1140
|
+
* This field is private and should not be used.
|
|
1141
|
+
*/
|
|
1142
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1143
|
+
/**
|
|
1144
|
+
* @private
|
|
1145
|
+
* This field is private and should not be used.
|
|
1146
|
+
*/
|
|
1147
|
+
[variantOrdinalSymbol] = 8;
|
|
1148
|
+
tag = CuaError_Tags.Fleet;
|
|
1149
|
+
constructor(message) {
|
|
1150
|
+
super("CuaError", "Fleet", message);
|
|
1151
|
+
}
|
|
1152
|
+
static instanceOf(e) {
|
|
1153
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 8);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Fleet's admission refused the request: a sandbox or pool size over
|
|
1158
|
+
* this account's limits, or a template its policy does not admit. The
|
|
1159
|
+
* message is Fleet's own and names the limit.
|
|
1160
|
+
*
|
|
1161
|
+
* Fix: Pick a size within the limit the message names (most accounts
|
|
1162
|
+
* run 1-8 vCPUs and 1-32 GiB per sandbox), or contact Cua support to
|
|
1163
|
+
* raise the account's limits.
|
|
1164
|
+
*/
|
|
1165
|
+
class FleetAdmissionDenied extends UniffiError {
|
|
1166
|
+
/**
|
|
1167
|
+
* @private
|
|
1168
|
+
* This field is private and should not be used.
|
|
1169
|
+
*/
|
|
1170
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1171
|
+
/**
|
|
1172
|
+
* @private
|
|
1173
|
+
* This field is private and should not be used.
|
|
1174
|
+
*/
|
|
1175
|
+
[variantOrdinalSymbol] = 9;
|
|
1176
|
+
tag = CuaError_Tags.FleetAdmissionDenied;
|
|
1177
|
+
constructor(message) {
|
|
1178
|
+
super("CuaError", "FleetAdmissionDenied", message);
|
|
1179
|
+
}
|
|
1180
|
+
static instanceOf(e) {
|
|
1181
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 9);
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* The account is out of Cua Cloud credit: no credit left, and no card
|
|
1186
|
+
* or plan. New cloud sandboxes and Spaces are refused; running ones
|
|
1187
|
+
* keep running, and local ones are never affected. The message ends
|
|
1188
|
+
* with the website billing page's URL.
|
|
1189
|
+
*
|
|
1190
|
+
* Fix: Add credit on that page (a plan, or a card for pay as you go),
|
|
1191
|
+
* or run the sandbox locally.
|
|
1192
|
+
*/
|
|
1193
|
+
class CloudCreditExhausted extends UniffiError {
|
|
1194
|
+
/**
|
|
1195
|
+
* @private
|
|
1196
|
+
* This field is private and should not be used.
|
|
1197
|
+
*/
|
|
1198
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1199
|
+
/**
|
|
1200
|
+
* @private
|
|
1201
|
+
* This field is private and should not be used.
|
|
1202
|
+
*/
|
|
1203
|
+
[variantOrdinalSymbol] = 10;
|
|
1204
|
+
tag = CuaError_Tags.CloudCreditExhausted;
|
|
1205
|
+
constructor(message) {
|
|
1206
|
+
super("CuaError", "CloudCreditExhausted", message);
|
|
1207
|
+
}
|
|
1208
|
+
static instanceOf(e) {
|
|
1209
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 10);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* Local runtime failure.
|
|
1214
|
+
*
|
|
1215
|
+
* Fix: Run `cua runtime doctor` (`Local.doctor`) and follow the steps it
|
|
1216
|
+
* prints.
|
|
1217
|
+
*/
|
|
1218
|
+
class Runtime extends UniffiError {
|
|
1219
|
+
/**
|
|
1220
|
+
* @private
|
|
1221
|
+
* This field is private and should not be used.
|
|
1222
|
+
*/
|
|
1223
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1224
|
+
/**
|
|
1225
|
+
* @private
|
|
1226
|
+
* This field is private and should not be used.
|
|
1227
|
+
*/
|
|
1228
|
+
[variantOrdinalSymbol] = 11;
|
|
1229
|
+
tag = CuaError_Tags.Runtime;
|
|
1230
|
+
constructor(message) {
|
|
1231
|
+
super("CuaError", "Runtime", message);
|
|
1232
|
+
}
|
|
1233
|
+
static instanceOf(e) {
|
|
1234
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 11);
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
/**
|
|
1238
|
+
* spacesd call failure.
|
|
1239
|
+
*
|
|
1240
|
+
* Fix: Read the status in the message; `SpacesdClient.capabilities` tells
|
|
1241
|
+
* whether this spacesd supports the call.
|
|
1242
|
+
*/
|
|
1243
|
+
class Env extends UniffiError {
|
|
1244
|
+
/**
|
|
1245
|
+
* @private
|
|
1246
|
+
* This field is private and should not be used.
|
|
1247
|
+
*/
|
|
1248
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1249
|
+
/**
|
|
1250
|
+
* @private
|
|
1251
|
+
* This field is private and should not be used.
|
|
1252
|
+
*/
|
|
1253
|
+
[variantOrdinalSymbol] = 12;
|
|
1254
|
+
tag = CuaError_Tags.Env;
|
|
1255
|
+
constructor(message) {
|
|
1256
|
+
super("CuaError", "Env", message);
|
|
1257
|
+
}
|
|
1258
|
+
static instanceOf(e) {
|
|
1259
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 12);
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* HTTP failure talking to a sandbox service.
|
|
1264
|
+
*
|
|
1265
|
+
* Fix: Check that the service listens on its declared port and answers
|
|
1266
|
+
* HTTP.
|
|
1267
|
+
*/
|
|
1268
|
+
class Http extends UniffiError {
|
|
1269
|
+
/**
|
|
1270
|
+
* @private
|
|
1271
|
+
* This field is private and should not be used.
|
|
1272
|
+
*/
|
|
1273
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1274
|
+
/**
|
|
1275
|
+
* @private
|
|
1276
|
+
* This field is private and should not be used.
|
|
1277
|
+
*/
|
|
1278
|
+
[variantOrdinalSymbol] = 13;
|
|
1279
|
+
tag = CuaError_Tags.Http;
|
|
1280
|
+
constructor(message) {
|
|
1281
|
+
super("CuaError", "Http", message);
|
|
1282
|
+
}
|
|
1283
|
+
static instanceOf(e) {
|
|
1284
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 13);
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Missing or wrong token or ticket.
|
|
1289
|
+
*
|
|
1290
|
+
* Fix: Pass the sandbox's env token, refresh the Fleet credentials, or run
|
|
1291
|
+
* `cua auth login` again.
|
|
1292
|
+
*/
|
|
1293
|
+
class Unauthenticated extends UniffiError {
|
|
1294
|
+
/**
|
|
1295
|
+
* @private
|
|
1296
|
+
* This field is private and should not be used.
|
|
1297
|
+
*/
|
|
1298
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1299
|
+
/**
|
|
1300
|
+
* @private
|
|
1301
|
+
* This field is private and should not be used.
|
|
1302
|
+
*/
|
|
1303
|
+
[variantOrdinalSymbol] = 14;
|
|
1304
|
+
tag = CuaError_Tags.Unauthenticated;
|
|
1305
|
+
constructor(message) {
|
|
1306
|
+
super("CuaError", "Unauthenticated", message);
|
|
1307
|
+
}
|
|
1308
|
+
static instanceOf(e) {
|
|
1309
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 14);
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* The guest OS denied permission.
|
|
1314
|
+
*
|
|
1315
|
+
* Fix: Run the call as a guest user allowed to do it, or change the
|
|
1316
|
+
* permissions of the path.
|
|
1317
|
+
*/
|
|
1318
|
+
class PermissionDenied extends UniffiError {
|
|
1319
|
+
/**
|
|
1320
|
+
* @private
|
|
1321
|
+
* This field is private and should not be used.
|
|
1322
|
+
*/
|
|
1323
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1324
|
+
/**
|
|
1325
|
+
* @private
|
|
1326
|
+
* This field is private and should not be used.
|
|
1327
|
+
*/
|
|
1328
|
+
[variantOrdinalSymbol] = 15;
|
|
1329
|
+
tag = CuaError_Tags.PermissionDenied;
|
|
1330
|
+
constructor(message) {
|
|
1331
|
+
super("CuaError", "PermissionDenied", message);
|
|
1332
|
+
}
|
|
1333
|
+
static instanceOf(e) {
|
|
1334
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 15);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
/**
|
|
1338
|
+
* Could not reach the daemon or the endpoint.
|
|
1339
|
+
*
|
|
1340
|
+
* Fix: Check the address. For a daemon client, start the daemon with `cua
|
|
1341
|
+
* daemon start`.
|
|
1342
|
+
*/
|
|
1343
|
+
class Transport extends UniffiError {
|
|
1344
|
+
/**
|
|
1345
|
+
* @private
|
|
1346
|
+
* This field is private and should not be used.
|
|
1347
|
+
*/
|
|
1348
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1349
|
+
/**
|
|
1350
|
+
* @private
|
|
1351
|
+
* This field is private and should not be used.
|
|
1352
|
+
*/
|
|
1353
|
+
[variantOrdinalSymbol] = 16;
|
|
1354
|
+
tag = CuaError_Tags.Transport;
|
|
1355
|
+
constructor(message) {
|
|
1356
|
+
super("CuaError", "Transport", message);
|
|
1357
|
+
}
|
|
1358
|
+
static instanceOf(e) {
|
|
1359
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 16);
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* No `cua daemon` is running: nothing listens at its socket or
|
|
1364
|
+
* port, or its discovery file (`~/.cua/daemon.json`) was left by a
|
|
1365
|
+
* daemon that exited. The message says so in plain words.
|
|
1366
|
+
*
|
|
1367
|
+
* Fix: Start Cua (the Spaces app starts the daemon), or run `cua daemon
|
|
1368
|
+
* start`. `Cua.auto` uses the runtime in this process when no daemon
|
|
1369
|
+
* runs.
|
|
1370
|
+
*/
|
|
1371
|
+
class DaemonNotRunning extends UniffiError {
|
|
1372
|
+
/**
|
|
1373
|
+
* @private
|
|
1374
|
+
* This field is private and should not be used.
|
|
1375
|
+
*/
|
|
1376
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1377
|
+
/**
|
|
1378
|
+
* @private
|
|
1379
|
+
* This field is private and should not be used.
|
|
1380
|
+
*/
|
|
1381
|
+
[variantOrdinalSymbol] = 17;
|
|
1382
|
+
tag = CuaError_Tags.DaemonNotRunning;
|
|
1383
|
+
constructor(message) {
|
|
1384
|
+
super("CuaError", "DaemonNotRunning", message);
|
|
1385
|
+
}
|
|
1386
|
+
static instanceOf(e) {
|
|
1387
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 17);
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* The object was closed.
|
|
1392
|
+
*
|
|
1393
|
+
* Fix: Open a new handle or session; a closed one stays closed.
|
|
1394
|
+
*/
|
|
1395
|
+
class Closed extends UniffiError {
|
|
1396
|
+
/**
|
|
1397
|
+
* @private
|
|
1398
|
+
* This field is private and should not be used.
|
|
1399
|
+
*/
|
|
1400
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1401
|
+
/**
|
|
1402
|
+
* @private
|
|
1403
|
+
* This field is private and should not be used.
|
|
1404
|
+
*/
|
|
1405
|
+
[variantOrdinalSymbol] = 18;
|
|
1406
|
+
tag = CuaError_Tags.Closed;
|
|
1407
|
+
constructor(message) {
|
|
1408
|
+
super("CuaError", "Closed", message);
|
|
1409
|
+
}
|
|
1410
|
+
static instanceOf(e) {
|
|
1411
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 18);
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* The Space's spacesd reports a feature this call needs as
|
|
1416
|
+
* unsupported (the message names it).
|
|
1417
|
+
*
|
|
1418
|
+
* Fix: Use a Space whose spacesd supports the feature (`Space.supports`),
|
|
1419
|
+
* or update cua-spacesd on it.
|
|
1420
|
+
*/
|
|
1421
|
+
class CapabilityMissing extends UniffiError {
|
|
1422
|
+
/**
|
|
1423
|
+
* @private
|
|
1424
|
+
* This field is private and should not be used.
|
|
1425
|
+
*/
|
|
1426
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1427
|
+
/**
|
|
1428
|
+
* @private
|
|
1429
|
+
* This field is private and should not be used.
|
|
1430
|
+
*/
|
|
1431
|
+
[variantOrdinalSymbol] = 19;
|
|
1432
|
+
tag = CuaError_Tags.CapabilityMissing;
|
|
1433
|
+
constructor(message) {
|
|
1434
|
+
super("CuaError", "CapabilityMissing", message);
|
|
1435
|
+
}
|
|
1436
|
+
static instanceOf(e) {
|
|
1437
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 19);
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
/**
|
|
1441
|
+
* A host-side prerequisite (app-session providers, an operator
|
|
1442
|
+
* display, a local runtime) is not available.
|
|
1443
|
+
*
|
|
1444
|
+
* Fix: Install or start the prerequisite the message names on this
|
|
1445
|
+
* machine.
|
|
1446
|
+
*/
|
|
1447
|
+
class HostCapabilityMissing extends UniffiError {
|
|
1448
|
+
/**
|
|
1449
|
+
* @private
|
|
1450
|
+
* This field is private and should not be used.
|
|
1451
|
+
*/
|
|
1452
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1453
|
+
/**
|
|
1454
|
+
* @private
|
|
1455
|
+
* This field is private and should not be used.
|
|
1456
|
+
*/
|
|
1457
|
+
[variantOrdinalSymbol] = 20;
|
|
1458
|
+
tag = CuaError_Tags.HostCapabilityMissing;
|
|
1459
|
+
constructor(message) {
|
|
1460
|
+
super("CuaError", "HostCapabilityMissing", message);
|
|
1461
|
+
}
|
|
1462
|
+
static instanceOf(e) {
|
|
1463
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 20);
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* The teleport consent gate refused (or the approver declined).
|
|
1468
|
+
*
|
|
1469
|
+
* Fix: Approve the manifest in the consent callback, or teleport a smaller
|
|
1470
|
+
* scope.
|
|
1471
|
+
*/
|
|
1472
|
+
class TeleportRefused extends UniffiError {
|
|
1473
|
+
/**
|
|
1474
|
+
* @private
|
|
1475
|
+
* This field is private and should not be used.
|
|
1476
|
+
*/
|
|
1477
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1478
|
+
/**
|
|
1479
|
+
* @private
|
|
1480
|
+
* This field is private and should not be used.
|
|
1481
|
+
*/
|
|
1482
|
+
[variantOrdinalSymbol] = 21;
|
|
1483
|
+
tag = CuaError_Tags.TeleportRefused;
|
|
1484
|
+
constructor(message) {
|
|
1485
|
+
super("CuaError", "TeleportRefused", message);
|
|
1486
|
+
}
|
|
1487
|
+
static instanceOf(e) {
|
|
1488
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 21);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* A named cloud pool's template differs from the requested sandbox
|
|
1493
|
+
* fields; the message holds the diff (pass `apply` to update it).
|
|
1494
|
+
*
|
|
1495
|
+
* Fix: Pass the pool's own fields, or pass `apply` to update its template.
|
|
1496
|
+
*/
|
|
1497
|
+
class PoolSpecMismatch extends UniffiError {
|
|
1498
|
+
/**
|
|
1499
|
+
* @private
|
|
1500
|
+
* This field is private and should not be used.
|
|
1501
|
+
*/
|
|
1502
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1503
|
+
/**
|
|
1504
|
+
* @private
|
|
1505
|
+
* This field is private and should not be used.
|
|
1506
|
+
*/
|
|
1507
|
+
[variantOrdinalSymbol] = 22;
|
|
1508
|
+
tag = CuaError_Tags.PoolSpecMismatch;
|
|
1509
|
+
constructor(message) {
|
|
1510
|
+
super("CuaError", "PoolSpecMismatch", message);
|
|
1511
|
+
}
|
|
1512
|
+
static instanceOf(e) {
|
|
1513
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 22);
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* A claim bound but its per-claim secrets (the env token) never
|
|
1518
|
+
* reached the sandbox within the bounded wait; the claim was released.
|
|
1519
|
+
*
|
|
1520
|
+
* Fix: Retry. If it keeps failing, check the pool's claim-secrets setup
|
|
1521
|
+
* and the Fleet status.
|
|
1522
|
+
*/
|
|
1523
|
+
class ClaimSecretsNotDelivered extends UniffiError {
|
|
1524
|
+
/**
|
|
1525
|
+
* @private
|
|
1526
|
+
* This field is private and should not be used.
|
|
1527
|
+
*/
|
|
1528
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1529
|
+
/**
|
|
1530
|
+
* @private
|
|
1531
|
+
* This field is private and should not be used.
|
|
1532
|
+
*/
|
|
1533
|
+
[variantOrdinalSymbol] = 23;
|
|
1534
|
+
tag = CuaError_Tags.ClaimSecretsNotDelivered;
|
|
1535
|
+
constructor(message) {
|
|
1536
|
+
super("CuaError", "ClaimSecretsNotDelivered", message);
|
|
1537
|
+
}
|
|
1538
|
+
static instanceOf(e) {
|
|
1539
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 23);
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
* Bug or I/O failure.
|
|
1544
|
+
*
|
|
1545
|
+
* Fix: Report it with the message at https://github.com/trycua/cua/issues.
|
|
1546
|
+
*/
|
|
1547
|
+
class Internal extends UniffiError {
|
|
1548
|
+
/**
|
|
1549
|
+
* @private
|
|
1550
|
+
* This field is private and should not be used.
|
|
1551
|
+
*/
|
|
1552
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1553
|
+
/**
|
|
1554
|
+
* @private
|
|
1555
|
+
* This field is private and should not be used.
|
|
1556
|
+
*/
|
|
1557
|
+
[variantOrdinalSymbol] = 24;
|
|
1558
|
+
tag = CuaError_Tags.Internal;
|
|
1559
|
+
constructor(message) {
|
|
1560
|
+
super("CuaError", "Internal", message);
|
|
1561
|
+
}
|
|
1562
|
+
static instanceOf(e) {
|
|
1563
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 24);
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* A bare sandbox name matches sandboxes in more than one location. The
|
|
1568
|
+
* message ends with the qualified candidates (`use one of: local:box,
|
|
1569
|
+
* cloud:box`); `ambiguous_sandbox_candidates` extracts them.
|
|
1570
|
+
*
|
|
1571
|
+
* Fix: Use one of the qualified refs the message lists (`local:<name>`,
|
|
1572
|
+
* `cloud:<name>`).
|
|
1573
|
+
*/
|
|
1574
|
+
class AmbiguousSandbox extends UniffiError {
|
|
1575
|
+
/**
|
|
1576
|
+
* @private
|
|
1577
|
+
* This field is private and should not be used.
|
|
1578
|
+
*/
|
|
1579
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1580
|
+
/**
|
|
1581
|
+
* @private
|
|
1582
|
+
* This field is private and should not be used.
|
|
1583
|
+
*/
|
|
1584
|
+
[variantOrdinalSymbol] = 25;
|
|
1585
|
+
tag = CuaError_Tags.AmbiguousSandbox;
|
|
1586
|
+
constructor(message) {
|
|
1587
|
+
super("CuaError", "AmbiguousSandbox", message);
|
|
1588
|
+
}
|
|
1589
|
+
static instanceOf(e) {
|
|
1590
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 25);
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1594
|
+
* A pull, build or VM create would leave less than the configured
|
|
1595
|
+
* minimum free disk space (`CUA_DISK_MIN_FREE`, default 5 GiB);
|
|
1596
|
+
* nothing was written.
|
|
1597
|
+
*
|
|
1598
|
+
* Fix: Free space with `cua cache prune`, or lower `CUA_DISK_MIN_FREE`.
|
|
1599
|
+
*/
|
|
1600
|
+
class InsufficientDisk extends UniffiError {
|
|
1601
|
+
/**
|
|
1602
|
+
* @private
|
|
1603
|
+
* This field is private and should not be used.
|
|
1604
|
+
*/
|
|
1605
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1606
|
+
/**
|
|
1607
|
+
* @private
|
|
1608
|
+
* This field is private and should not be used.
|
|
1609
|
+
*/
|
|
1610
|
+
[variantOrdinalSymbol] = 26;
|
|
1611
|
+
tag = CuaError_Tags.InsufficientDisk;
|
|
1612
|
+
constructor(message) {
|
|
1613
|
+
super("CuaError", "InsufficientDisk", message);
|
|
1614
|
+
}
|
|
1615
|
+
static instanceOf(e) {
|
|
1616
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 26);
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* A catalog image (an `Image.*` constructor, a tier or `cua sb create
|
|
1621
|
+
* <word>`) that CI has not published yet. The message names the
|
|
1622
|
+
* reference.
|
|
1623
|
+
*
|
|
1624
|
+
* Fix: Pass the reference explicitly (`Image.from_registry("<ref>")`,
|
|
1625
|
+
* `cua sb create <ref>`) to use it anyway, or pick a published image
|
|
1626
|
+
* (`cua images ls`).
|
|
1627
|
+
*/
|
|
1628
|
+
class ImageNotPublished extends UniffiError {
|
|
1629
|
+
/**
|
|
1630
|
+
* @private
|
|
1631
|
+
* This field is private and should not be used.
|
|
1632
|
+
*/
|
|
1633
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1634
|
+
/**
|
|
1635
|
+
* @private
|
|
1636
|
+
* This field is private and should not be used.
|
|
1637
|
+
*/
|
|
1638
|
+
[variantOrdinalSymbol] = 27;
|
|
1639
|
+
tag = CuaError_Tags.ImageNotPublished;
|
|
1640
|
+
constructor(message) {
|
|
1641
|
+
super("CuaError", "ImageNotPublished", message);
|
|
1642
|
+
}
|
|
1643
|
+
static instanceOf(e) {
|
|
1644
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 27);
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
/**
|
|
1648
|
+
* The create was cancelled (`Spaces.cancel_create`, Ctrl-C in `cua`,
|
|
1649
|
+
* or its caller went away). What it made is gone; the message says
|
|
1650
|
+
* what was removed and what stays (finished image downloads stay
|
|
1651
|
+
* cached, so the next create resumes).
|
|
1652
|
+
*
|
|
1653
|
+
* Fix: Nothing to clean up. Create it again when you want it.
|
|
1654
|
+
*/
|
|
1655
|
+
class Cancelled extends UniffiError {
|
|
1656
|
+
/**
|
|
1657
|
+
* @private
|
|
1658
|
+
* This field is private and should not be used.
|
|
1659
|
+
*/
|
|
1660
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1661
|
+
/**
|
|
1662
|
+
* @private
|
|
1663
|
+
* This field is private and should not be used.
|
|
1664
|
+
*/
|
|
1665
|
+
[variantOrdinalSymbol] = 28;
|
|
1666
|
+
tag = CuaError_Tags.Cancelled;
|
|
1667
|
+
constructor(message) {
|
|
1668
|
+
super("CuaError", "Cancelled", message);
|
|
1669
|
+
}
|
|
1670
|
+
static instanceOf(e) {
|
|
1671
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 28);
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
/**
|
|
1675
|
+
* Your own cloud account (AWS, Google Cloud, Modal) refused or failed
|
|
1676
|
+
* a call Cua made for a Space there: a missing permission, a quota, a
|
|
1677
|
+
* region without the machine type. The message names the cloud's own
|
|
1678
|
+
* error.
|
|
1679
|
+
*
|
|
1680
|
+
* Fix: Fix what the message names in that account (`cua cloud test
|
|
1681
|
+
* <provider>` checks it without creating anything), or connect another
|
|
1682
|
+
* region or project.
|
|
1683
|
+
*/
|
|
1684
|
+
class Cloud extends UniffiError {
|
|
1685
|
+
/**
|
|
1686
|
+
* @private
|
|
1687
|
+
* This field is private and should not be used.
|
|
1688
|
+
*/
|
|
1689
|
+
[uniffiTypeNameSymbol] = "CuaError";
|
|
1690
|
+
/**
|
|
1691
|
+
* @private
|
|
1692
|
+
* This field is private and should not be used.
|
|
1693
|
+
*/
|
|
1694
|
+
[variantOrdinalSymbol] = 29;
|
|
1695
|
+
tag = CuaError_Tags.Cloud;
|
|
1696
|
+
constructor(message) {
|
|
1697
|
+
super("CuaError", "Cloud", message);
|
|
1698
|
+
}
|
|
1699
|
+
static instanceOf(e) {
|
|
1700
|
+
return (instanceOf(e) && e[variantOrdinalSymbol] === 29);
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
// Utility function which does not rely on instanceof.
|
|
1704
|
+
function instanceOf(e) {
|
|
1705
|
+
return e[uniffiTypeNameSymbol] === "CuaError";
|
|
1706
|
+
}
|
|
1707
|
+
return {
|
|
1708
|
+
InvalidArgument,
|
|
1709
|
+
InvalidPlacement,
|
|
1710
|
+
NotFound,
|
|
1711
|
+
ProviderNotConfigured,
|
|
1712
|
+
Unsupported,
|
|
1713
|
+
SpacesdNotAvailable,
|
|
1714
|
+
Timeout,
|
|
1715
|
+
Fleet,
|
|
1716
|
+
FleetAdmissionDenied,
|
|
1717
|
+
CloudCreditExhausted,
|
|
1718
|
+
Runtime,
|
|
1719
|
+
Env,
|
|
1720
|
+
Http,
|
|
1721
|
+
Unauthenticated,
|
|
1722
|
+
PermissionDenied,
|
|
1723
|
+
Transport,
|
|
1724
|
+
DaemonNotRunning,
|
|
1725
|
+
Closed,
|
|
1726
|
+
CapabilityMissing,
|
|
1727
|
+
HostCapabilityMissing,
|
|
1728
|
+
TeleportRefused,
|
|
1729
|
+
PoolSpecMismatch,
|
|
1730
|
+
ClaimSecretsNotDelivered,
|
|
1731
|
+
Internal,
|
|
1732
|
+
AmbiguousSandbox,
|
|
1733
|
+
InsufficientDisk,
|
|
1734
|
+
ImageNotPublished,
|
|
1735
|
+
Cancelled,
|
|
1736
|
+
Cloud,
|
|
1737
|
+
instanceOf,
|
|
1738
|
+
};
|
|
1739
|
+
})();
|
|
1740
|
+
const FfiConverterTypeCuaError = (() => {
|
|
1741
|
+
const intConverter = FfiConverterInt32;
|
|
1742
|
+
class FfiConverter extends AbstractFfiConverterByteArray {
|
|
1743
|
+
read(from) {
|
|
1744
|
+
switch (intConverter.read(from)) {
|
|
1745
|
+
case 1: return new CuaError.InvalidArgument(FfiConverterString.read(from));
|
|
1746
|
+
case 2: return new CuaError.InvalidPlacement(FfiConverterString.read(from));
|
|
1747
|
+
case 3: return new CuaError.NotFound(FfiConverterString.read(from));
|
|
1748
|
+
case 4: return new CuaError.ProviderNotConfigured(FfiConverterString.read(from));
|
|
1749
|
+
case 5: return new CuaError.Unsupported(FfiConverterString.read(from));
|
|
1750
|
+
case 6: return new CuaError.SpacesdNotAvailable(FfiConverterString.read(from));
|
|
1751
|
+
case 7: return new CuaError.Timeout(FfiConverterString.read(from));
|
|
1752
|
+
case 8: return new CuaError.Fleet(FfiConverterString.read(from));
|
|
1753
|
+
case 9: return new CuaError.FleetAdmissionDenied(FfiConverterString.read(from));
|
|
1754
|
+
case 10: return new CuaError.CloudCreditExhausted(FfiConverterString.read(from));
|
|
1755
|
+
case 11: return new CuaError.Runtime(FfiConverterString.read(from));
|
|
1756
|
+
case 12: return new CuaError.Env(FfiConverterString.read(from));
|
|
1757
|
+
case 13: return new CuaError.Http(FfiConverterString.read(from));
|
|
1758
|
+
case 14: return new CuaError.Unauthenticated(FfiConverterString.read(from));
|
|
1759
|
+
case 15: return new CuaError.PermissionDenied(FfiConverterString.read(from));
|
|
1760
|
+
case 16: return new CuaError.Transport(FfiConverterString.read(from));
|
|
1761
|
+
case 17: return new CuaError.DaemonNotRunning(FfiConverterString.read(from));
|
|
1762
|
+
case 18: return new CuaError.Closed(FfiConverterString.read(from));
|
|
1763
|
+
case 19: return new CuaError.CapabilityMissing(FfiConverterString.read(from));
|
|
1764
|
+
case 20: return new CuaError.HostCapabilityMissing(FfiConverterString.read(from));
|
|
1765
|
+
case 21: return new CuaError.TeleportRefused(FfiConverterString.read(from));
|
|
1766
|
+
case 22: return new CuaError.PoolSpecMismatch(FfiConverterString.read(from));
|
|
1767
|
+
case 23: return new CuaError.ClaimSecretsNotDelivered(FfiConverterString.read(from));
|
|
1768
|
+
case 24: return new CuaError.Internal(FfiConverterString.read(from));
|
|
1769
|
+
case 25: return new CuaError.AmbiguousSandbox(FfiConverterString.read(from));
|
|
1770
|
+
case 26: return new CuaError.InsufficientDisk(FfiConverterString.read(from));
|
|
1771
|
+
case 27: return new CuaError.ImageNotPublished(FfiConverterString.read(from));
|
|
1772
|
+
case 28: return new CuaError.Cancelled(FfiConverterString.read(from));
|
|
1773
|
+
case 29: return new CuaError.Cloud(FfiConverterString.read(from));
|
|
1774
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
write(value, into) {
|
|
1778
|
+
const obj = value;
|
|
1779
|
+
const index = obj[variantOrdinalSymbol];
|
|
1780
|
+
intConverter.write(index, into);
|
|
1781
|
+
}
|
|
1782
|
+
allocationSize(value) {
|
|
1783
|
+
return intConverter.allocationSize(0);
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
return new FfiConverter();
|
|
1787
|
+
})();
|
|
1788
|
+
/**
|
|
1789
|
+
* Fleet control plane (browser transport).
|
|
1790
|
+
*/
|
|
1791
|
+
export class Fleet extends UniffiAbstractObject {
|
|
1792
|
+
[uniffiTypeNameSymbol] = "Fleet";
|
|
1793
|
+
[destructorGuardSymbol];
|
|
1794
|
+
[pointerLiteralSymbol];
|
|
1795
|
+
// No primary constructor declared for this class.
|
|
1796
|
+
constructor(pointer) {
|
|
1797
|
+
super();
|
|
1798
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1799
|
+
this[destructorGuardSymbol] = uniffiTypeFleetObjectFactory.bless(pointer);
|
|
1800
|
+
}
|
|
1801
|
+
/**
|
|
1802
|
+
* Claims a sandbox from `pool` and waits for it to bind.
|
|
1803
|
+
*/
|
|
1804
|
+
async acquire(pool, name, asyncOpts_) {
|
|
1805
|
+
return await uniffiRustCallAsync(
|
|
1806
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1807
|
+
/*rustFutureFunc:*/ () => {
|
|
1808
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_fleet_acquire(uniffiTypeFleetObjectFactory.clonePointer(this), FfiConverterString.lower(pool, nativeModule().rustbuffer_alloc), FfiConverterOptionalString.lower(name, nativeModule().rustbuffer_alloc));
|
|
1809
|
+
},
|
|
1810
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
1811
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
1812
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
1813
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
1814
|
+
// Async returns always go through the JS-side converter: the
|
|
1815
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1816
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1817
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1818
|
+
// here using the per-callable return-type converter.
|
|
1819
|
+
/*liftFunc:*/ FfiConverterTypeFleetSandbox.lift.bind(FfiConverterTypeFleetSandbox),
|
|
1820
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1821
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1822
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Claims in a namespace (JSON resources).
|
|
1826
|
+
*/
|
|
1827
|
+
async listClaims(namespace, asyncOpts_) {
|
|
1828
|
+
return await uniffiRustCallAsync(
|
|
1829
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1830
|
+
/*rustFutureFunc:*/ () => {
|
|
1831
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_fleet_list_claims(uniffiTypeFleetObjectFactory.clonePointer(this), FfiConverterString.lower(namespace, nativeModule().rustbuffer_alloc));
|
|
1832
|
+
},
|
|
1833
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
1834
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
1835
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
1836
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
1837
|
+
// Async returns always go through the JS-side converter: the
|
|
1838
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1839
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1840
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1841
|
+
// here using the per-callable return-type converter.
|
|
1842
|
+
/*liftFunc:*/ FfiConverterSequenceString.lift.bind(FfiConverterSequenceString),
|
|
1843
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1844
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1845
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Pools in a namespace (JSON resources).
|
|
1849
|
+
*/
|
|
1850
|
+
async listPools(namespace, asyncOpts_) {
|
|
1851
|
+
return await uniffiRustCallAsync(
|
|
1852
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1853
|
+
/*rustFutureFunc:*/ () => {
|
|
1854
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_fleet_list_pools(uniffiTypeFleetObjectFactory.clonePointer(this), FfiConverterString.lower(namespace, nativeModule().rustbuffer_alloc));
|
|
1855
|
+
},
|
|
1856
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
1857
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
1858
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
1859
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
1860
|
+
// Async returns always go through the JS-side converter: the
|
|
1861
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1862
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1863
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1864
|
+
// here using the per-callable return-type converter.
|
|
1865
|
+
/*liftFunc:*/ FfiConverterSequenceString.lift.bind(FfiConverterSequenceString),
|
|
1866
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1867
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1868
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* Releases a claim.
|
|
1872
|
+
*/
|
|
1873
|
+
async release(sandbox, asyncOpts_) {
|
|
1874
|
+
return await uniffiRustCallAsync(
|
|
1875
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1876
|
+
/*rustFutureFunc:*/ () => {
|
|
1877
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_fleet_release(uniffiTypeFleetObjectFactory.clonePointer(this), FfiConverterTypeFleetSandbox.lower(sandbox, nativeModule().rustbuffer_alloc));
|
|
1878
|
+
},
|
|
1879
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_void,
|
|
1880
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_void,
|
|
1881
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_void,
|
|
1882
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_void,
|
|
1883
|
+
/*liftFunc:*/ (_v) => { },
|
|
1884
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1885
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1886
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
1887
|
+
}
|
|
1888
|
+
uniffiDestroy() {
|
|
1889
|
+
const ptr = this[destructorGuardSymbol];
|
|
1890
|
+
if (ptr !== undefined) {
|
|
1891
|
+
const pointer = uniffiTypeFleetObjectFactory.pointer(this);
|
|
1892
|
+
uniffiTypeFleetObjectFactory.freePointer(pointer);
|
|
1893
|
+
uniffiTypeFleetObjectFactory.unbless(ptr);
|
|
1894
|
+
delete this[destructorGuardSymbol];
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
static instanceOf(obj_) {
|
|
1898
|
+
return uniffiTypeFleetObjectFactory.isConcreteType(obj_);
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
const uniffiTypeFleetObjectFactory = (() => {
|
|
1902
|
+
/// <reference lib="es2021" />
|
|
1903
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
1904
|
+
uniffiTypeFleetObjectFactory.freePointer(heldValue);
|
|
1905
|
+
}) : null;
|
|
1906
|
+
return {
|
|
1907
|
+
create(pointer) {
|
|
1908
|
+
const instance = Object.create(Fleet.prototype);
|
|
1909
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1910
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1911
|
+
instance[uniffiTypeNameSymbol] = "Fleet";
|
|
1912
|
+
return instance;
|
|
1913
|
+
},
|
|
1914
|
+
bless(p) {
|
|
1915
|
+
const ptr = {
|
|
1916
|
+
p, // make sure this object doesn't get optimized away.
|
|
1917
|
+
markDestroyed: () => undefined,
|
|
1918
|
+
};
|
|
1919
|
+
if (registry) {
|
|
1920
|
+
registry.register(ptr, p, ptr);
|
|
1921
|
+
}
|
|
1922
|
+
return ptr;
|
|
1923
|
+
},
|
|
1924
|
+
unbless(ptr_) {
|
|
1925
|
+
if (registry) {
|
|
1926
|
+
registry.unregister(ptr_);
|
|
1927
|
+
}
|
|
1928
|
+
},
|
|
1929
|
+
pointer(obj_) {
|
|
1930
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1931
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
1932
|
+
}
|
|
1933
|
+
return obj_[pointerLiteralSymbol];
|
|
1934
|
+
},
|
|
1935
|
+
clonePointer(obj_) {
|
|
1936
|
+
const pointer = this.pointer(obj_);
|
|
1937
|
+
return uniffiCaller.rustCall(
|
|
1938
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cua_sdk_fn_clone_fleet(pointer, callStatus),
|
|
1939
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1940
|
+
},
|
|
1941
|
+
freePointer(pointer) {
|
|
1942
|
+
uniffiCaller.rustCall(
|
|
1943
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cua_sdk_fn_free_fleet(pointer, callStatus),
|
|
1944
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1945
|
+
},
|
|
1946
|
+
isConcreteType(obj_) {
|
|
1947
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Fleet";
|
|
1948
|
+
},
|
|
1949
|
+
};
|
|
1950
|
+
})();
|
|
1951
|
+
const FfiConverterTypeFleet = new FfiConverterObject(uniffiTypeFleetObjectFactory);
|
|
1952
|
+
/**
|
|
1953
|
+
* cua-spacesd over gRPC-Web.
|
|
1954
|
+
*/
|
|
1955
|
+
export class SpacesdClient extends UniffiAbstractObject {
|
|
1956
|
+
[uniffiTypeNameSymbol] = "SpacesdClient";
|
|
1957
|
+
[destructorGuardSymbol];
|
|
1958
|
+
[pointerLiteralSymbol];
|
|
1959
|
+
// No primary constructor declared for this class.
|
|
1960
|
+
constructor(pointer) {
|
|
1961
|
+
super();
|
|
1962
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1963
|
+
this[destructorGuardSymbol] = uniffiTypeSpacesdClientObjectFactory.bless(pointer);
|
|
1964
|
+
}
|
|
1965
|
+
/**
|
|
1966
|
+
* Any unary `cua.env.v1` RPC with proto3-JSON bodies.
|
|
1967
|
+
*/
|
|
1968
|
+
async callJson(method, requestJson, asyncOpts_) {
|
|
1969
|
+
return await uniffiRustCallAsync(
|
|
1970
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1971
|
+
/*rustFutureFunc:*/ () => {
|
|
1972
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_call_json(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterString.lower(method, nativeModule().rustbuffer_alloc), FfiConverterString.lower(requestJson, nativeModule().rustbuffer_alloc));
|
|
1973
|
+
},
|
|
1974
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
1975
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
1976
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
1977
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
1978
|
+
// Async returns always go through the JS-side converter: the
|
|
1979
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1980
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1981
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1982
|
+
// here using the per-callable return-type converter.
|
|
1983
|
+
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1984
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1985
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1986
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
1987
|
+
}
|
|
1988
|
+
/**
|
|
1989
|
+
* `GetCapabilities`.
|
|
1990
|
+
*/
|
|
1991
|
+
async capabilities(asyncOpts_) {
|
|
1992
|
+
return await uniffiRustCallAsync(
|
|
1993
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1994
|
+
/*rustFutureFunc:*/ () => {
|
|
1995
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_capabilities(uniffiTypeSpacesdClientObjectFactory.clonePointer(this));
|
|
1996
|
+
},
|
|
1997
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
1998
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
1999
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
2000
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
2001
|
+
// Async returns always go through the JS-side converter: the
|
|
2002
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2003
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2004
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2005
|
+
// here using the per-callable return-type converter.
|
|
2006
|
+
/*liftFunc:*/ FfiConverterTypeSpacesdCapabilities.lift.bind(FfiConverterTypeSpacesdCapabilities),
|
|
2007
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2008
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2009
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
* Left click.
|
|
2013
|
+
*/
|
|
2014
|
+
async click(x, y, asyncOpts_) {
|
|
2015
|
+
return await uniffiRustCallAsync(
|
|
2016
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2017
|
+
/*rustFutureFunc:*/ () => {
|
|
2018
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_click(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterFloat64.lower(x, nativeModule().rustbuffer_alloc), FfiConverterFloat64.lower(y, nativeModule().rustbuffer_alloc));
|
|
2019
|
+
},
|
|
2020
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_void,
|
|
2021
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_void,
|
|
2022
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_void,
|
|
2023
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_void,
|
|
2024
|
+
/*liftFunc:*/ (_v) => { },
|
|
2025
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2026
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2027
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Pointer position.
|
|
2031
|
+
*/
|
|
2032
|
+
async cursorPosition(asyncOpts_) {
|
|
2033
|
+
return await uniffiRustCallAsync(
|
|
2034
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2035
|
+
/*rustFutureFunc:*/ () => {
|
|
2036
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_cursor_position(uniffiTypeSpacesdClientObjectFactory.clonePointer(this));
|
|
2037
|
+
},
|
|
2038
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
2039
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
2040
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
2041
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
2042
|
+
// Async returns always go through the JS-side converter: the
|
|
2043
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2044
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2045
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2046
|
+
// here using the per-callable return-type converter.
|
|
2047
|
+
/*liftFunc:*/ FfiConverterTypePoint.lift.bind(FfiConverterTypePoint),
|
|
2048
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2049
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2050
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2051
|
+
}
|
|
2052
|
+
/**
|
|
2053
|
+
* Clipboard text.
|
|
2054
|
+
*/
|
|
2055
|
+
async getClipboard(asyncOpts_) {
|
|
2056
|
+
return await uniffiRustCallAsync(
|
|
2057
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2058
|
+
/*rustFutureFunc:*/ () => {
|
|
2059
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_get_clipboard(uniffiTypeSpacesdClientObjectFactory.clonePointer(this));
|
|
2060
|
+
},
|
|
2061
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
2062
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
2063
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
2064
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
2065
|
+
// Async returns always go through the JS-side converter: the
|
|
2066
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2067
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2068
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2069
|
+
// here using the per-callable return-type converter.
|
|
2070
|
+
/*liftFunc:*/ FfiConverterOptionalString.lift.bind(FfiConverterOptionalString),
|
|
2071
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2072
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2073
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* `Health` as proto3 JSON.
|
|
2077
|
+
*/
|
|
2078
|
+
async health(asyncOpts_) {
|
|
2079
|
+
return await uniffiRustCallAsync(
|
|
2080
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2081
|
+
/*rustFutureFunc:*/ () => {
|
|
2082
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_health(uniffiTypeSpacesdClientObjectFactory.clonePointer(this));
|
|
2083
|
+
},
|
|
2084
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
2085
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
2086
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
2087
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
2088
|
+
// Async returns always go through the JS-side converter: the
|
|
2089
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2090
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2091
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2092
|
+
// here using the per-callable return-type converter.
|
|
2093
|
+
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2094
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2095
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2096
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* Presses a chord.
|
|
2100
|
+
*/
|
|
2101
|
+
async hotkey(keys, asyncOpts_) {
|
|
2102
|
+
return await uniffiRustCallAsync(
|
|
2103
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2104
|
+
/*rustFutureFunc:*/ () => {
|
|
2105
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_hotkey(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterSequenceString.lower(keys, nativeModule().rustbuffer_alloc));
|
|
2106
|
+
},
|
|
2107
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_void,
|
|
2108
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_void,
|
|
2109
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_void,
|
|
2110
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_void,
|
|
2111
|
+
/*liftFunc:*/ (_v) => { },
|
|
2112
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2113
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2114
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* Moves the pointer.
|
|
2118
|
+
*/
|
|
2119
|
+
async moveTo(x, y, asyncOpts_) {
|
|
2120
|
+
return await uniffiRustCallAsync(
|
|
2121
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2122
|
+
/*rustFutureFunc:*/ () => {
|
|
2123
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_move_to(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterFloat64.lower(x, nativeModule().rustbuffer_alloc), FfiConverterFloat64.lower(y, nativeModule().rustbuffer_alloc));
|
|
2124
|
+
},
|
|
2125
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_void,
|
|
2126
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_void,
|
|
2127
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_void,
|
|
2128
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_void,
|
|
2129
|
+
/*liftFunc:*/ (_v) => { },
|
|
2130
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2131
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2132
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2133
|
+
}
|
|
2134
|
+
/**
|
|
2135
|
+
* Presses one key.
|
|
2136
|
+
*/
|
|
2137
|
+
async press(keyName, asyncOpts_) {
|
|
2138
|
+
return await uniffiRustCallAsync(
|
|
2139
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2140
|
+
/*rustFutureFunc:*/ () => {
|
|
2141
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_press(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterString.lower(keyName, nativeModule().rustbuffer_alloc));
|
|
2142
|
+
},
|
|
2143
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_void,
|
|
2144
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_void,
|
|
2145
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_void,
|
|
2146
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_void,
|
|
2147
|
+
/*liftFunc:*/ (_v) => { },
|
|
2148
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2149
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2150
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Runs a command to completion (at most 64 MiB of output).
|
|
2154
|
+
*/
|
|
2155
|
+
async run(command, asyncOpts_) {
|
|
2156
|
+
return await uniffiRustCallAsync(
|
|
2157
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2158
|
+
/*rustFutureFunc:*/ () => {
|
|
2159
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_run(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterTypeSpacesdCommand.lower(command, nativeModule().rustbuffer_alloc));
|
|
2160
|
+
},
|
|
2161
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
2162
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
2163
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
2164
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
2165
|
+
// Async returns always go through the JS-side converter: the
|
|
2166
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2167
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2168
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2169
|
+
// here using the per-callable return-type converter.
|
|
2170
|
+
/*liftFunc:*/ FfiConverterTypeProcessOutput.lift.bind(FfiConverterTypeProcessOutput),
|
|
2171
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2172
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2173
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2174
|
+
}
|
|
2175
|
+
/**
|
|
2176
|
+
* Captures a display.
|
|
2177
|
+
*/
|
|
2178
|
+
async screenshot(options, asyncOpts_) {
|
|
2179
|
+
return await uniffiRustCallAsync(
|
|
2180
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2181
|
+
/*rustFutureFunc:*/ () => {
|
|
2182
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_screenshot(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterOptionalTypeScreenshotOptions.lower(options, nativeModule().rustbuffer_alloc));
|
|
2183
|
+
},
|
|
2184
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
2185
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
2186
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
2187
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
2188
|
+
// Async returns always go through the JS-side converter: the
|
|
2189
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2190
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2191
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2192
|
+
// here using the per-callable return-type converter.
|
|
2193
|
+
/*liftFunc:*/ FfiConverterTypeScreenshot.lift.bind(FfiConverterTypeScreenshot),
|
|
2194
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2195
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2196
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2197
|
+
}
|
|
2198
|
+
/**
|
|
2199
|
+
* Scrolls by line deltas.
|
|
2200
|
+
*/
|
|
2201
|
+
async scroll(dx, dy, asyncOpts_) {
|
|
2202
|
+
return await uniffiRustCallAsync(
|
|
2203
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2204
|
+
/*rustFutureFunc:*/ () => {
|
|
2205
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_scroll(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterFloat64.lower(dx, nativeModule().rustbuffer_alloc), FfiConverterFloat64.lower(dy, nativeModule().rustbuffer_alloc));
|
|
2206
|
+
},
|
|
2207
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_void,
|
|
2208
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_void,
|
|
2209
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_void,
|
|
2210
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_void,
|
|
2211
|
+
/*liftFunc:*/ (_v) => { },
|
|
2212
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2213
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2214
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2215
|
+
}
|
|
2216
|
+
/**
|
|
2217
|
+
* Sets clipboard text.
|
|
2218
|
+
*/
|
|
2219
|
+
async setClipboard(text, asyncOpts_) {
|
|
2220
|
+
return await uniffiRustCallAsync(
|
|
2221
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2222
|
+
/*rustFutureFunc:*/ () => {
|
|
2223
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_set_clipboard(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterString.lower(text, nativeModule().rustbuffer_alloc));
|
|
2224
|
+
},
|
|
2225
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_u64,
|
|
2226
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_u64,
|
|
2227
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_u64,
|
|
2228
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_u64,
|
|
2229
|
+
// Async returns always go through the JS-side converter: the
|
|
2230
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2231
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2232
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2233
|
+
// here using the per-callable return-type converter.
|
|
2234
|
+
/*liftFunc:*/ FfiConverterUInt64.lift.bind(FfiConverterUInt64),
|
|
2235
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2236
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2237
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2238
|
+
}
|
|
2239
|
+
/**
|
|
2240
|
+
* Runs `line` with `/bin/sh -c`.
|
|
2241
|
+
*/
|
|
2242
|
+
async sh(line, timeoutMs, asyncOpts_) {
|
|
2243
|
+
return await uniffiRustCallAsync(
|
|
2244
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2245
|
+
/*rustFutureFunc:*/ () => {
|
|
2246
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_sh(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterString.lower(line, nativeModule().rustbuffer_alloc), FfiConverterOptionalUInt32.lower(timeoutMs, nativeModule().rustbuffer_alloc));
|
|
2247
|
+
},
|
|
2248
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
2249
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
2250
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
2251
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
2252
|
+
// Async returns always go through the JS-side converter: the
|
|
2253
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2254
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2255
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2256
|
+
// here using the per-callable return-type converter.
|
|
2257
|
+
/*liftFunc:*/ FfiConverterTypeProcessOutput.lift.bind(FfiConverterTypeProcessOutput),
|
|
2258
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2259
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2260
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2261
|
+
}
|
|
2262
|
+
/**
|
|
2263
|
+
* Types text.
|
|
2264
|
+
*/
|
|
2265
|
+
async typeText(text, asyncOpts_) {
|
|
2266
|
+
return await uniffiRustCallAsync(
|
|
2267
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2268
|
+
/*rustFutureFunc:*/ () => {
|
|
2269
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_spacesdclient_type_text(uniffiTypeSpacesdClientObjectFactory.clonePointer(this), FfiConverterString.lower(text, nativeModule().rustbuffer_alloc));
|
|
2270
|
+
},
|
|
2271
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_void,
|
|
2272
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_void,
|
|
2273
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_void,
|
|
2274
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_void,
|
|
2275
|
+
/*liftFunc:*/ (_v) => { },
|
|
2276
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2277
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2278
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2279
|
+
}
|
|
2280
|
+
uniffiDestroy() {
|
|
2281
|
+
const ptr = this[destructorGuardSymbol];
|
|
2282
|
+
if (ptr !== undefined) {
|
|
2283
|
+
const pointer = uniffiTypeSpacesdClientObjectFactory.pointer(this);
|
|
2284
|
+
uniffiTypeSpacesdClientObjectFactory.freePointer(pointer);
|
|
2285
|
+
uniffiTypeSpacesdClientObjectFactory.unbless(ptr);
|
|
2286
|
+
delete this[destructorGuardSymbol];
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
static instanceOf(obj_) {
|
|
2290
|
+
return uniffiTypeSpacesdClientObjectFactory.isConcreteType(obj_);
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
const uniffiTypeSpacesdClientObjectFactory = (() => {
|
|
2294
|
+
/// <reference lib="es2021" />
|
|
2295
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
2296
|
+
uniffiTypeSpacesdClientObjectFactory.freePointer(heldValue);
|
|
2297
|
+
}) : null;
|
|
2298
|
+
return {
|
|
2299
|
+
create(pointer) {
|
|
2300
|
+
const instance = Object.create(SpacesdClient.prototype);
|
|
2301
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
2302
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
2303
|
+
instance[uniffiTypeNameSymbol] = "SpacesdClient";
|
|
2304
|
+
return instance;
|
|
2305
|
+
},
|
|
2306
|
+
bless(p) {
|
|
2307
|
+
const ptr = {
|
|
2308
|
+
p, // make sure this object doesn't get optimized away.
|
|
2309
|
+
markDestroyed: () => undefined,
|
|
2310
|
+
};
|
|
2311
|
+
if (registry) {
|
|
2312
|
+
registry.register(ptr, p, ptr);
|
|
2313
|
+
}
|
|
2314
|
+
return ptr;
|
|
2315
|
+
},
|
|
2316
|
+
unbless(ptr_) {
|
|
2317
|
+
if (registry) {
|
|
2318
|
+
registry.unregister(ptr_);
|
|
2319
|
+
}
|
|
2320
|
+
},
|
|
2321
|
+
pointer(obj_) {
|
|
2322
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
2323
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
2324
|
+
}
|
|
2325
|
+
return obj_[pointerLiteralSymbol];
|
|
2326
|
+
},
|
|
2327
|
+
clonePointer(obj_) {
|
|
2328
|
+
const pointer = this.pointer(obj_);
|
|
2329
|
+
return uniffiCaller.rustCall(
|
|
2330
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cua_sdk_fn_clone_spacesdclient(pointer, callStatus),
|
|
2331
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
2332
|
+
},
|
|
2333
|
+
freePointer(pointer) {
|
|
2334
|
+
uniffiCaller.rustCall(
|
|
2335
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cua_sdk_fn_free_spacesdclient(pointer, callStatus),
|
|
2336
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
2337
|
+
},
|
|
2338
|
+
isConcreteType(obj_) {
|
|
2339
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "SpacesdClient";
|
|
2340
|
+
},
|
|
2341
|
+
};
|
|
2342
|
+
})();
|
|
2343
|
+
const FfiConverterTypeSpacesdClient = new FfiConverterObject(uniffiTypeSpacesdClientObjectFactory);
|
|
2344
|
+
/**
|
|
2345
|
+
* The cua SDK (browser build).
|
|
2346
|
+
*/
|
|
2347
|
+
export class Cua extends UniffiAbstractObject {
|
|
2348
|
+
[uniffiTypeNameSymbol] = "Cua";
|
|
2349
|
+
[destructorGuardSymbol];
|
|
2350
|
+
[pointerLiteralSymbol];
|
|
2351
|
+
// No primary constructor declared for this class.
|
|
2352
|
+
constructor(pointer) {
|
|
2353
|
+
super();
|
|
2354
|
+
this[pointerLiteralSymbol] = pointer;
|
|
2355
|
+
this[destructorGuardSymbol] = uniffiTypeCuaObjectFactory.bless(pointer);
|
|
2356
|
+
}
|
|
2357
|
+
/**
|
|
2358
|
+
* The browser runtime.
|
|
2359
|
+
*/
|
|
2360
|
+
static embedded(config) {
|
|
2361
|
+
return FfiConverterTypeCua.lift(uniffiCaller.rustCall(
|
|
2362
|
+
/*caller:*/ (callStatus) => {
|
|
2363
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_constructor_cua_embedded(FfiConverterTypeCuaConfig.lower(config, nativeModule().rustbuffer_alloc), callStatus);
|
|
2364
|
+
},
|
|
2365
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
2366
|
+
}
|
|
2367
|
+
/**
|
|
2368
|
+
* Fleet control plane.
|
|
2369
|
+
*/
|
|
2370
|
+
fleet() {
|
|
2371
|
+
return FfiConverterTypeFleet.lift(uniffiCaller.rustCallWithError(
|
|
2372
|
+
/*liftError:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError),
|
|
2373
|
+
/*caller:*/ (callStatus) => {
|
|
2374
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_cua_fleet(uniffiTypeCuaObjectFactory.clonePointer(this), callStatus);
|
|
2375
|
+
},
|
|
2376
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
2377
|
+
}
|
|
2378
|
+
/**
|
|
2379
|
+
* Connects to cua-spacesd at `url` over gRPC-Web.
|
|
2380
|
+
*/
|
|
2381
|
+
async spacesd(url, token, asyncOpts_) {
|
|
2382
|
+
return await uniffiRustCallAsync(
|
|
2383
|
+
/*rustCaller:*/ uniffiCaller,
|
|
2384
|
+
/*rustFutureFunc:*/ () => {
|
|
2385
|
+
return nativeModule().ubrn_uniffi_cua_sdk_fn_method_cua_spacesd(uniffiTypeCuaObjectFactory.clonePointer(this), FfiConverterString.lower(url, nativeModule().rustbuffer_alloc), FfiConverterOptionalString.lower(token, nativeModule().rustbuffer_alloc));
|
|
2386
|
+
},
|
|
2387
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_poll_u64,
|
|
2388
|
+
/*cancelFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_cancel_u64,
|
|
2389
|
+
/*completeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_complete_u64,
|
|
2390
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_cua_sdk_rust_future_free_u64,
|
|
2391
|
+
// Async returns always go through the JS-side converter: the
|
|
2392
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2393
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2394
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2395
|
+
// here using the per-callable return-type converter.
|
|
2396
|
+
/*liftFunc:*/ FfiConverterTypeSpacesdClient.lift.bind(FfiConverterTypeSpacesdClient),
|
|
2397
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
2398
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
2399
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
2400
|
+
}
|
|
2401
|
+
uniffiDestroy() {
|
|
2402
|
+
const ptr = this[destructorGuardSymbol];
|
|
2403
|
+
if (ptr !== undefined) {
|
|
2404
|
+
const pointer = uniffiTypeCuaObjectFactory.pointer(this);
|
|
2405
|
+
uniffiTypeCuaObjectFactory.freePointer(pointer);
|
|
2406
|
+
uniffiTypeCuaObjectFactory.unbless(ptr);
|
|
2407
|
+
delete this[destructorGuardSymbol];
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
static instanceOf(obj_) {
|
|
2411
|
+
return uniffiTypeCuaObjectFactory.isConcreteType(obj_);
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
const uniffiTypeCuaObjectFactory = (() => {
|
|
2415
|
+
/// <reference lib="es2021" />
|
|
2416
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
2417
|
+
uniffiTypeCuaObjectFactory.freePointer(heldValue);
|
|
2418
|
+
}) : null;
|
|
2419
|
+
return {
|
|
2420
|
+
create(pointer) {
|
|
2421
|
+
const instance = Object.create(Cua.prototype);
|
|
2422
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
2423
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
2424
|
+
instance[uniffiTypeNameSymbol] = "Cua";
|
|
2425
|
+
return instance;
|
|
2426
|
+
},
|
|
2427
|
+
bless(p) {
|
|
2428
|
+
const ptr = {
|
|
2429
|
+
p, // make sure this object doesn't get optimized away.
|
|
2430
|
+
markDestroyed: () => undefined,
|
|
2431
|
+
};
|
|
2432
|
+
if (registry) {
|
|
2433
|
+
registry.register(ptr, p, ptr);
|
|
2434
|
+
}
|
|
2435
|
+
return ptr;
|
|
2436
|
+
},
|
|
2437
|
+
unbless(ptr_) {
|
|
2438
|
+
if (registry) {
|
|
2439
|
+
registry.unregister(ptr_);
|
|
2440
|
+
}
|
|
2441
|
+
},
|
|
2442
|
+
pointer(obj_) {
|
|
2443
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
2444
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
2445
|
+
}
|
|
2446
|
+
return obj_[pointerLiteralSymbol];
|
|
2447
|
+
},
|
|
2448
|
+
clonePointer(obj_) {
|
|
2449
|
+
const pointer = this.pointer(obj_);
|
|
2450
|
+
return uniffiCaller.rustCall(
|
|
2451
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cua_sdk_fn_clone_cua(pointer, callStatus),
|
|
2452
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
2453
|
+
},
|
|
2454
|
+
freePointer(pointer) {
|
|
2455
|
+
uniffiCaller.rustCall(
|
|
2456
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cua_sdk_fn_free_cua(pointer, callStatus),
|
|
2457
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
2458
|
+
},
|
|
2459
|
+
isConcreteType(obj_) {
|
|
2460
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Cua";
|
|
2461
|
+
},
|
|
2462
|
+
};
|
|
2463
|
+
})();
|
|
2464
|
+
const FfiConverterTypeCua = new FfiConverterObject(uniffiTypeCuaObjectFactory);
|
|
2465
|
+
// FfiConverter for string | undefined
|
|
2466
|
+
const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
2467
|
+
// FfiConverter for FleetSettings | undefined
|
|
2468
|
+
const FfiConverterOptionalTypeFleetSettings = new FfiConverterOptional(FfiConverterTypeFleetSettings);
|
|
2469
|
+
// FfiConverter for number | undefined
|
|
2470
|
+
const FfiConverterOptionalInt32 = new FfiConverterOptional(FfiConverterInt32);
|
|
2471
|
+
// FfiConverter for bigint | undefined
|
|
2472
|
+
const FfiConverterOptionalInt64 = new FfiConverterOptional(FfiConverterInt64);
|
|
2473
|
+
// FfiConverter for Array<string>
|
|
2474
|
+
const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
2475
|
+
// FfiConverter for ExitInfo | undefined
|
|
2476
|
+
const FfiConverterOptionalTypeExitInfo = new FfiConverterOptional(FfiConverterTypeExitInfo);
|
|
2477
|
+
// FfiConverter for ImageFormat | undefined
|
|
2478
|
+
const FfiConverterOptionalTypeImageFormat = new FfiConverterOptional(FfiConverterTypeImageFormat);
|
|
2479
|
+
// FfiConverter for number | undefined
|
|
2480
|
+
const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32);
|
|
2481
|
+
// FfiConverter for Map<string, string>
|
|
2482
|
+
const FfiConverterMapStringString = new FfiConverterMap(FfiConverterString, FfiConverterString);
|
|
2483
|
+
// FfiConverter for Array<SpacesdFeature>
|
|
2484
|
+
const FfiConverterSequenceTypeSpacesdFeature = new FfiConverterArray(FfiConverterTypeSpacesdFeature);
|
|
2485
|
+
// FfiConverter for PtySize | undefined
|
|
2486
|
+
const FfiConverterOptionalTypePtySize = new FfiConverterOptional(FfiConverterTypePtySize);
|
|
2487
|
+
// FfiConverter for ScreenshotOptions | undefined
|
|
2488
|
+
const FfiConverterOptionalTypeScreenshotOptions = new FfiConverterOptional(FfiConverterTypeScreenshotOptions);
|
|
2489
|
+
/**
|
|
2490
|
+
* This should be called before anything else.
|
|
2491
|
+
*
|
|
2492
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
2493
|
+
*
|
|
2494
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
2495
|
+
* and when the bindings were generated.
|
|
2496
|
+
*
|
|
2497
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
2498
|
+
*/
|
|
2499
|
+
function uniffiEnsureInitialized() {
|
|
2500
|
+
// Get the bindings contract version from our ComponentInterface
|
|
2501
|
+
const bindingsContractVersion = 30;
|
|
2502
|
+
// Get the scaffolding contract version by calling the into the dylib
|
|
2503
|
+
const scaffoldingContractVersion = nativeModule().ubrn_ffi_cua_sdk_uniffi_contract_version();
|
|
2504
|
+
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
2505
|
+
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
2506
|
+
}
|
|
2507
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_func_cua_sdk_version() !== 62700) {
|
|
2508
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_func_cua_sdk_version");
|
|
2509
|
+
}
|
|
2510
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_func_error_doc_url() !== 10839) {
|
|
2511
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_func_error_doc_url");
|
|
2512
|
+
}
|
|
2513
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_constructor_cua_embedded() !== 45489) {
|
|
2514
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_constructor_cua_embedded");
|
|
2515
|
+
}
|
|
2516
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_cua_fleet() !== 47468) {
|
|
2517
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_cua_fleet");
|
|
2518
|
+
}
|
|
2519
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_cua_spacesd() !== 55115) {
|
|
2520
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_cua_spacesd");
|
|
2521
|
+
}
|
|
2522
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_fleet_acquire() !== 37737) {
|
|
2523
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_fleet_acquire");
|
|
2524
|
+
}
|
|
2525
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_fleet_list_claims() !== 29250) {
|
|
2526
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_fleet_list_claims");
|
|
2527
|
+
}
|
|
2528
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_fleet_list_pools() !== 64386) {
|
|
2529
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_fleet_list_pools");
|
|
2530
|
+
}
|
|
2531
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_fleet_release() !== 61023) {
|
|
2532
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_fleet_release");
|
|
2533
|
+
}
|
|
2534
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_call_json() !== 32221) {
|
|
2535
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_call_json");
|
|
2536
|
+
}
|
|
2537
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_capabilities() !== 52681) {
|
|
2538
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_capabilities");
|
|
2539
|
+
}
|
|
2540
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_click() !== 34615) {
|
|
2541
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_click");
|
|
2542
|
+
}
|
|
2543
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_cursor_position() !== 32994) {
|
|
2544
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_cursor_position");
|
|
2545
|
+
}
|
|
2546
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_get_clipboard() !== 29593) {
|
|
2547
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_get_clipboard");
|
|
2548
|
+
}
|
|
2549
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_health() !== 58046) {
|
|
2550
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_health");
|
|
2551
|
+
}
|
|
2552
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_hotkey() !== 26513) {
|
|
2553
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_hotkey");
|
|
2554
|
+
}
|
|
2555
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_move_to() !== 8497) {
|
|
2556
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_move_to");
|
|
2557
|
+
}
|
|
2558
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_press() !== 48859) {
|
|
2559
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_press");
|
|
2560
|
+
}
|
|
2561
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_run() !== 60712) {
|
|
2562
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_run");
|
|
2563
|
+
}
|
|
2564
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_screenshot() !== 23114) {
|
|
2565
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_screenshot");
|
|
2566
|
+
}
|
|
2567
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_scroll() !== 18534) {
|
|
2568
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_scroll");
|
|
2569
|
+
}
|
|
2570
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_set_clipboard() !== 37414) {
|
|
2571
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_set_clipboard");
|
|
2572
|
+
}
|
|
2573
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_sh() !== 11145) {
|
|
2574
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_sh");
|
|
2575
|
+
}
|
|
2576
|
+
if (nativeModule().ubrn_uniffi_cua_sdk_checksum_method_spacesdclient_type_text() !== 18745) {
|
|
2577
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_spacesdclient_type_text");
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
export default Object.freeze({
|
|
2581
|
+
initialize: uniffiEnsureInitialized,
|
|
2582
|
+
converters: {
|
|
2583
|
+
FfiConverterTypeCua,
|
|
2584
|
+
FfiConverterTypeCuaConfig,
|
|
2585
|
+
FfiConverterTypeCuaError,
|
|
2586
|
+
FfiConverterTypeExitInfo,
|
|
2587
|
+
FfiConverterTypeFileEntry,
|
|
2588
|
+
FfiConverterTypeFleet,
|
|
2589
|
+
FfiConverterTypeFleetSandbox,
|
|
2590
|
+
FfiConverterTypeFleetSettings,
|
|
2591
|
+
FfiConverterTypeImageFormat,
|
|
2592
|
+
FfiConverterTypeMediaOpenOptions,
|
|
2593
|
+
FfiConverterTypePoint,
|
|
2594
|
+
FfiConverterTypeProcessEvent,
|
|
2595
|
+
FfiConverterTypeProcessEventKind,
|
|
2596
|
+
FfiConverterTypeProcessOutput,
|
|
2597
|
+
FfiConverterTypePtySize,
|
|
2598
|
+
FfiConverterTypeScreenshot,
|
|
2599
|
+
FfiConverterTypeScreenshotOptions,
|
|
2600
|
+
FfiConverterTypeSpacesdCapabilities,
|
|
2601
|
+
FfiConverterTypeSpacesdClient,
|
|
2602
|
+
FfiConverterTypeSpacesdCommand,
|
|
2603
|
+
FfiConverterTypeSpacesdFeature,
|
|
2604
|
+
FfiConverterTypeTransferResult,
|
|
2605
|
+
FfiConverterTypeUploadOptions,
|
|
2606
|
+
}
|
|
2607
|
+
});
|