@trycua/cua-driver 0.11.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 +131 -0
- package/dist/electron.d.ts +7 -0
- package/dist/electron.js +7 -0
- package/dist/embedded.d.ts +6 -0
- package/dist/embedded.js +6 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/native/cua_driver_contract-ffi.d.ts +62 -0
- package/dist/native/cua_driver_contract-ffi.js +294 -0
- package/dist/native/cua_driver_contract.d.ts +515 -0
- package/dist/native/cua_driver_contract.js +987 -0
- package/dist/native/cua_driver_sdk-ffi.d.ts +128 -0
- package/dist/native/cua_driver_sdk-ffi.js +624 -0
- package/dist/native/cua_driver_sdk.d.ts +1541 -0
- package/dist/native/cua_driver_sdk.js +1857 -0
- package/dist/native/index.d.ts +10 -0
- package/dist/native/index.js +16 -0
- package/package.json +52 -0
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
import { type UniffiByteArray, RustBuffer } from "@ubjs/core";
|
|
2
|
+
export declare enum DesktopScope {
|
|
3
|
+
Desktop = 0
|
|
4
|
+
}
|
|
5
|
+
export declare enum ClickButton {
|
|
6
|
+
Left = 0,
|
|
7
|
+
Right = 1,
|
|
8
|
+
Middle = 2
|
|
9
|
+
}
|
|
10
|
+
export type ClickInput = {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
scope: DesktopScope;
|
|
14
|
+
/**
|
|
15
|
+
* Optional session id.
|
|
16
|
+
*/
|
|
17
|
+
session?: string;
|
|
18
|
+
button?: ClickButton;
|
|
19
|
+
count?: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Generated factory for {@link ClickInput} record objects.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ClickInput: Readonly<{
|
|
25
|
+
create: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "session" | "button" | "count">>) => ClickInput;
|
|
26
|
+
new: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "session" | "button" | "count">>) => ClickInput;
|
|
27
|
+
defaults: () => Partial<ClickInput>;
|
|
28
|
+
}>;
|
|
29
|
+
export type DragInput = {
|
|
30
|
+
fromX: number;
|
|
31
|
+
fromY: number;
|
|
32
|
+
toX: number;
|
|
33
|
+
toY: number;
|
|
34
|
+
scope: DesktopScope;
|
|
35
|
+
/**
|
|
36
|
+
* Optional session id.
|
|
37
|
+
*/
|
|
38
|
+
session?: string;
|
|
39
|
+
durationMs?: bigint;
|
|
40
|
+
steps?: bigint;
|
|
41
|
+
button?: ClickButton;
|
|
42
|
+
modifier?: Array<string>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Generated factory for {@link DragInput} record objects.
|
|
46
|
+
*/
|
|
47
|
+
export declare const DragInput: Readonly<{
|
|
48
|
+
create: (partial: Partial<DragInput> & Required<Omit<DragInput, "session" | "button" | "durationMs" | "steps" | "modifier">>) => DragInput;
|
|
49
|
+
new: (partial: Partial<DragInput> & Required<Omit<DragInput, "session" | "button" | "durationMs" | "steps" | "modifier">>) => DragInput;
|
|
50
|
+
defaults: () => Partial<DragInput>;
|
|
51
|
+
}>;
|
|
52
|
+
export type EndSessionInput = {
|
|
53
|
+
/**
|
|
54
|
+
* The session id to end.
|
|
55
|
+
*/
|
|
56
|
+
session: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Generated factory for {@link EndSessionInput} record objects.
|
|
60
|
+
*/
|
|
61
|
+
export declare const EndSessionInput: Readonly<{
|
|
62
|
+
create: (partial: Partial<EndSessionInput> & Required<Omit<EndSessionInput, never>>) => EndSessionInput;
|
|
63
|
+
new: (partial: Partial<EndSessionInput> & Required<Omit<EndSessionInput, never>>) => EndSessionInput;
|
|
64
|
+
defaults: () => Partial<EndSessionInput>;
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* Successful structured result returned by `end_session`.
|
|
68
|
+
*/
|
|
69
|
+
export type EndSessionOutput = {
|
|
70
|
+
session: string;
|
|
71
|
+
active: boolean;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Generated factory for {@link EndSessionOutput} record objects.
|
|
75
|
+
*/
|
|
76
|
+
export declare const EndSessionOutput: Readonly<{
|
|
77
|
+
create: (partial: Partial<EndSessionOutput> & Required<Omit<EndSessionOutput, never>>) => EndSessionOutput;
|
|
78
|
+
new: (partial: Partial<EndSessionOutput> & Required<Omit<EndSessionOutput, never>>) => EndSessionOutput;
|
|
79
|
+
defaults: () => Partial<EndSessionOutput>;
|
|
80
|
+
}>;
|
|
81
|
+
export declare enum EscalationReason {
|
|
82
|
+
AxTreePixelMismatch = 0,
|
|
83
|
+
BackgroundDeliveryFailed = 1,
|
|
84
|
+
ForegroundIneffective = 2,
|
|
85
|
+
NoWindowTarget = 3,
|
|
86
|
+
Other = 4
|
|
87
|
+
}
|
|
88
|
+
export type EscalateSessionInput = {
|
|
89
|
+
session: string;
|
|
90
|
+
reason: EscalationReason;
|
|
91
|
+
/**
|
|
92
|
+
* Optional bounded diagnostic detail. Never use secrets or page content.
|
|
93
|
+
*/
|
|
94
|
+
detail?: string;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Generated factory for {@link EscalateSessionInput} record objects.
|
|
98
|
+
*/
|
|
99
|
+
export declare const EscalateSessionInput: Readonly<{
|
|
100
|
+
create: (partial: Partial<EscalateSessionInput> & Required<Omit<EscalateSessionInput, "detail">>) => EscalateSessionInput;
|
|
101
|
+
new: (partial: Partial<EscalateSessionInput> & Required<Omit<EscalateSessionInput, "detail">>) => EscalateSessionInput;
|
|
102
|
+
defaults: () => Partial<EscalateSessionInput>;
|
|
103
|
+
}>;
|
|
104
|
+
export type GetCursorPositionInput = {
|
|
105
|
+
/**
|
|
106
|
+
* Optional session id.
|
|
107
|
+
*/
|
|
108
|
+
session?: string;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Generated factory for {@link GetCursorPositionInput} record objects.
|
|
112
|
+
*/
|
|
113
|
+
export declare const GetCursorPositionInput: Readonly<{
|
|
114
|
+
create: (partial: Partial<GetCursorPositionInput> & Required<Omit<GetCursorPositionInput, "session">>) => GetCursorPositionInput;
|
|
115
|
+
new: (partial: Partial<GetCursorPositionInput> & Required<Omit<GetCursorPositionInput, "session">>) => GetCursorPositionInput;
|
|
116
|
+
defaults: () => Partial<GetCursorPositionInput>;
|
|
117
|
+
}>;
|
|
118
|
+
export type GetDesktopStateInput = {
|
|
119
|
+
/**
|
|
120
|
+
* Optional session id.
|
|
121
|
+
*/
|
|
122
|
+
session?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Write the PNG here instead of returning base64.
|
|
125
|
+
*/
|
|
126
|
+
screenshotOutFile?: string;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Generated factory for {@link GetDesktopStateInput} record objects.
|
|
130
|
+
*/
|
|
131
|
+
export declare const GetDesktopStateInput: Readonly<{
|
|
132
|
+
create: (partial: Partial<GetDesktopStateInput> & Required<Omit<GetDesktopStateInput, "session" | "screenshotOutFile">>) => GetDesktopStateInput;
|
|
133
|
+
new: (partial: Partial<GetDesktopStateInput> & Required<Omit<GetDesktopStateInput, "session" | "screenshotOutFile">>) => GetDesktopStateInput;
|
|
134
|
+
defaults: () => Partial<GetDesktopStateInput>;
|
|
135
|
+
}>;
|
|
136
|
+
export type GetScreenSizeInput = {
|
|
137
|
+
/**
|
|
138
|
+
* Optional session id.
|
|
139
|
+
*/
|
|
140
|
+
session?: string;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Generated factory for {@link GetScreenSizeInput} record objects.
|
|
144
|
+
*/
|
|
145
|
+
export declare const GetScreenSizeInput: Readonly<{
|
|
146
|
+
create: (partial: Partial<GetScreenSizeInput> & Required<Omit<GetScreenSizeInput, "session">>) => GetScreenSizeInput;
|
|
147
|
+
new: (partial: Partial<GetScreenSizeInput> & Required<Omit<GetScreenSizeInput, "session">>) => GetScreenSizeInput;
|
|
148
|
+
defaults: () => Partial<GetScreenSizeInput>;
|
|
149
|
+
}>;
|
|
150
|
+
export type GetSessionStateInput = {
|
|
151
|
+
session: string;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Generated factory for {@link GetSessionStateInput} record objects.
|
|
155
|
+
*/
|
|
156
|
+
export declare const GetSessionStateInput: Readonly<{
|
|
157
|
+
create: (partial: Partial<GetSessionStateInput> & Required<Omit<GetSessionStateInput, never>>) => GetSessionStateInput;
|
|
158
|
+
new: (partial: Partial<GetSessionStateInput> & Required<Omit<GetSessionStateInput, never>>) => GetSessionStateInput;
|
|
159
|
+
defaults: () => Partial<GetSessionStateInput>;
|
|
160
|
+
}>;
|
|
161
|
+
export type HotkeyInput = {
|
|
162
|
+
keys: Array<string>;
|
|
163
|
+
scope: DesktopScope;
|
|
164
|
+
/**
|
|
165
|
+
* Optional session id.
|
|
166
|
+
*/
|
|
167
|
+
session?: string;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Generated factory for {@link HotkeyInput} record objects.
|
|
171
|
+
*/
|
|
172
|
+
export declare const HotkeyInput: Readonly<{
|
|
173
|
+
create: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "session">>) => HotkeyInput;
|
|
174
|
+
new: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "session">>) => HotkeyInput;
|
|
175
|
+
defaults: () => Partial<HotkeyInput>;
|
|
176
|
+
}>;
|
|
177
|
+
export type MoveCursorInput = {
|
|
178
|
+
x: number;
|
|
179
|
+
y: number;
|
|
180
|
+
scope: DesktopScope;
|
|
181
|
+
/**
|
|
182
|
+
* Optional session id.
|
|
183
|
+
*/
|
|
184
|
+
session?: string;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Generated factory for {@link MoveCursorInput} record objects.
|
|
188
|
+
*/
|
|
189
|
+
export declare const MoveCursorInput: Readonly<{
|
|
190
|
+
create: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "session">>) => MoveCursorInput;
|
|
191
|
+
new: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "session">>) => MoveCursorInput;
|
|
192
|
+
defaults: () => Partial<MoveCursorInput>;
|
|
193
|
+
}>;
|
|
194
|
+
export type PressKeyInput = {
|
|
195
|
+
key: string;
|
|
196
|
+
scope: DesktopScope;
|
|
197
|
+
/**
|
|
198
|
+
* Optional session id.
|
|
199
|
+
*/
|
|
200
|
+
session?: string;
|
|
201
|
+
modifiers?: Array<string>;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Generated factory for {@link PressKeyInput} record objects.
|
|
205
|
+
*/
|
|
206
|
+
export declare const PressKeyInput: Readonly<{
|
|
207
|
+
create: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "session" | "modifiers">>) => PressKeyInput;
|
|
208
|
+
new: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "session" | "modifiers">>) => PressKeyInput;
|
|
209
|
+
defaults: () => Partial<PressKeyInput>;
|
|
210
|
+
}>;
|
|
211
|
+
export declare enum ScrollDirection {
|
|
212
|
+
Up = 0,
|
|
213
|
+
Down = 1,
|
|
214
|
+
Left = 2,
|
|
215
|
+
Right = 3
|
|
216
|
+
}
|
|
217
|
+
export declare enum ScrollBy {
|
|
218
|
+
Line = 0,
|
|
219
|
+
Page = 1
|
|
220
|
+
}
|
|
221
|
+
export type ScrollInput = {
|
|
222
|
+
x: number;
|
|
223
|
+
y: number;
|
|
224
|
+
direction: ScrollDirection;
|
|
225
|
+
scope: DesktopScope;
|
|
226
|
+
/**
|
|
227
|
+
* Optional session id.
|
|
228
|
+
*/
|
|
229
|
+
session?: string;
|
|
230
|
+
by?: ScrollBy;
|
|
231
|
+
amount?: bigint;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Generated factory for {@link ScrollInput} record objects.
|
|
235
|
+
*/
|
|
236
|
+
export declare const ScrollInput: Readonly<{
|
|
237
|
+
create: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "session" | "by" | "amount">>) => ScrollInput;
|
|
238
|
+
new: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "session" | "by" | "amount">>) => ScrollInput;
|
|
239
|
+
defaults: () => Partial<ScrollInput>;
|
|
240
|
+
}>;
|
|
241
|
+
export declare enum CaptureScope {
|
|
242
|
+
Auto = 0,
|
|
243
|
+
Window = 1,
|
|
244
|
+
Desktop = 2
|
|
245
|
+
}
|
|
246
|
+
export declare enum EffectiveScope {
|
|
247
|
+
Window = 0,
|
|
248
|
+
Desktop = 1
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Successful structured result shared by session state and escalation tools.
|
|
252
|
+
*/
|
|
253
|
+
export type SessionStateOutput = {
|
|
254
|
+
session: string;
|
|
255
|
+
captureScope: CaptureScope;
|
|
256
|
+
effectiveScope: EffectiveScope;
|
|
257
|
+
desktopUnlocked: boolean;
|
|
258
|
+
escalationReason?: EscalationReason;
|
|
259
|
+
escalationDetail?: string;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Generated factory for {@link SessionStateOutput} record objects.
|
|
263
|
+
*/
|
|
264
|
+
export declare const SessionStateOutput: Readonly<{
|
|
265
|
+
create: (partial: Partial<SessionStateOutput> & Required<Omit<SessionStateOutput, "escalationReason" | "escalationDetail">>) => SessionStateOutput;
|
|
266
|
+
new: (partial: Partial<SessionStateOutput> & Required<Omit<SessionStateOutput, "escalationReason" | "escalationDetail">>) => SessionStateOutput;
|
|
267
|
+
defaults: () => Partial<SessionStateOutput>;
|
|
268
|
+
}>;
|
|
269
|
+
export type StartSessionInput = {
|
|
270
|
+
/**
|
|
271
|
+
* Stable session id for this run (e.g. "research-run-1").
|
|
272
|
+
*/
|
|
273
|
+
session: string;
|
|
274
|
+
/**
|
|
275
|
+
* Per-session perception/action modality. auto starts window-only and requires explicit escalation before desktop tools; window and desktop are strict. Immutable for the live session.
|
|
276
|
+
*/
|
|
277
|
+
captureScope?: CaptureScope;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Generated factory for {@link StartSessionInput} record objects.
|
|
281
|
+
*/
|
|
282
|
+
export declare const StartSessionInput: Readonly<{
|
|
283
|
+
create: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "captureScope">>) => StartSessionInput;
|
|
284
|
+
new: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "captureScope">>) => StartSessionInput;
|
|
285
|
+
defaults: () => Partial<StartSessionInput>;
|
|
286
|
+
}>;
|
|
287
|
+
/**
|
|
288
|
+
* Successful structured result returned by `start_session`.
|
|
289
|
+
*/
|
|
290
|
+
export type StartSessionOutput = {
|
|
291
|
+
state: SessionStateOutput;
|
|
292
|
+
active: boolean;
|
|
293
|
+
revived: boolean;
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* Generated factory for {@link StartSessionOutput} record objects.
|
|
297
|
+
*/
|
|
298
|
+
export declare const StartSessionOutput: Readonly<{
|
|
299
|
+
create: (partial: Partial<StartSessionOutput> & Required<Omit<StartSessionOutput, never>>) => StartSessionOutput;
|
|
300
|
+
new: (partial: Partial<StartSessionOutput> & Required<Omit<StartSessionOutput, never>>) => StartSessionOutput;
|
|
301
|
+
defaults: () => Partial<StartSessionOutput>;
|
|
302
|
+
}>;
|
|
303
|
+
export type TypeTextInput = {
|
|
304
|
+
text: string;
|
|
305
|
+
scope: DesktopScope;
|
|
306
|
+
/**
|
|
307
|
+
* Optional session id.
|
|
308
|
+
*/
|
|
309
|
+
session?: string;
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* Generated factory for {@link TypeTextInput} record objects.
|
|
313
|
+
*/
|
|
314
|
+
export declare const TypeTextInput: Readonly<{
|
|
315
|
+
create: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "session">>) => TypeTextInput;
|
|
316
|
+
new: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "session">>) => TypeTextInput;
|
|
317
|
+
defaults: () => Partial<TypeTextInput>;
|
|
318
|
+
}>;
|
|
319
|
+
export declare enum Platform {
|
|
320
|
+
Macos = 0,
|
|
321
|
+
Windows = 1,
|
|
322
|
+
Linux = 2
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* This should be called before anything else.
|
|
326
|
+
*
|
|
327
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
328
|
+
*
|
|
329
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
330
|
+
* and when the bindings were generated.
|
|
331
|
+
*
|
|
332
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
333
|
+
*/
|
|
334
|
+
declare function uniffiEnsureInitialized(): void;
|
|
335
|
+
declare const _default: Readonly<{
|
|
336
|
+
initialize: typeof uniffiEnsureInitialized;
|
|
337
|
+
converters: {
|
|
338
|
+
FfiConverterTypeCaptureScope: {
|
|
339
|
+
read(from: RustBuffer): CaptureScope;
|
|
340
|
+
write(value: CaptureScope, into: RustBuffer): void;
|
|
341
|
+
allocationSize(value: CaptureScope): number;
|
|
342
|
+
lift(value: UniffiByteArray): CaptureScope;
|
|
343
|
+
lower(value: CaptureScope, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
344
|
+
};
|
|
345
|
+
FfiConverterTypeClickButton: {
|
|
346
|
+
read(from: RustBuffer): ClickButton;
|
|
347
|
+
write(value: ClickButton, into: RustBuffer): void;
|
|
348
|
+
allocationSize(value: ClickButton): number;
|
|
349
|
+
lift(value: UniffiByteArray): ClickButton;
|
|
350
|
+
lower(value: ClickButton, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
351
|
+
};
|
|
352
|
+
FfiConverterTypeClickInput: {
|
|
353
|
+
read(from: RustBuffer): ClickInput;
|
|
354
|
+
write(value: ClickInput, into: RustBuffer): void;
|
|
355
|
+
allocationSize(value: ClickInput): number;
|
|
356
|
+
lift(value: UniffiByteArray): ClickInput;
|
|
357
|
+
lower(value: ClickInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
358
|
+
};
|
|
359
|
+
FfiConverterTypeDesktopScope: {
|
|
360
|
+
read(from: RustBuffer): DesktopScope;
|
|
361
|
+
write(value: DesktopScope, into: RustBuffer): void;
|
|
362
|
+
allocationSize(value: DesktopScope): number;
|
|
363
|
+
lift(value: UniffiByteArray): DesktopScope;
|
|
364
|
+
lower(value: DesktopScope, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
365
|
+
};
|
|
366
|
+
FfiConverterTypeDragInput: {
|
|
367
|
+
read(from: RustBuffer): DragInput;
|
|
368
|
+
write(value: DragInput, into: RustBuffer): void;
|
|
369
|
+
allocationSize(value: DragInput): number;
|
|
370
|
+
lift(value: UniffiByteArray): DragInput;
|
|
371
|
+
lower(value: DragInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
372
|
+
};
|
|
373
|
+
FfiConverterTypeEffectiveScope: {
|
|
374
|
+
read(from: RustBuffer): EffectiveScope;
|
|
375
|
+
write(value: EffectiveScope, into: RustBuffer): void;
|
|
376
|
+
allocationSize(value: EffectiveScope): number;
|
|
377
|
+
lift(value: UniffiByteArray): EffectiveScope;
|
|
378
|
+
lower(value: EffectiveScope, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
379
|
+
};
|
|
380
|
+
FfiConverterTypeEndSessionInput: {
|
|
381
|
+
read(from: RustBuffer): EndSessionInput;
|
|
382
|
+
write(value: EndSessionInput, into: RustBuffer): void;
|
|
383
|
+
allocationSize(value: EndSessionInput): number;
|
|
384
|
+
lift(value: UniffiByteArray): EndSessionInput;
|
|
385
|
+
lower(value: EndSessionInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
386
|
+
};
|
|
387
|
+
FfiConverterTypeEndSessionOutput: {
|
|
388
|
+
read(from: RustBuffer): EndSessionOutput;
|
|
389
|
+
write(value: EndSessionOutput, into: RustBuffer): void;
|
|
390
|
+
allocationSize(value: EndSessionOutput): number;
|
|
391
|
+
lift(value: UniffiByteArray): EndSessionOutput;
|
|
392
|
+
lower(value: EndSessionOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
393
|
+
};
|
|
394
|
+
FfiConverterTypeEscalateSessionInput: {
|
|
395
|
+
read(from: RustBuffer): EscalateSessionInput;
|
|
396
|
+
write(value: EscalateSessionInput, into: RustBuffer): void;
|
|
397
|
+
allocationSize(value: EscalateSessionInput): number;
|
|
398
|
+
lift(value: UniffiByteArray): EscalateSessionInput;
|
|
399
|
+
lower(value: EscalateSessionInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
400
|
+
};
|
|
401
|
+
FfiConverterTypeEscalationReason: {
|
|
402
|
+
read(from: RustBuffer): EscalationReason;
|
|
403
|
+
write(value: EscalationReason, into: RustBuffer): void;
|
|
404
|
+
allocationSize(value: EscalationReason): number;
|
|
405
|
+
lift(value: UniffiByteArray): EscalationReason;
|
|
406
|
+
lower(value: EscalationReason, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
407
|
+
};
|
|
408
|
+
FfiConverterTypeGetCursorPositionInput: {
|
|
409
|
+
read(from: RustBuffer): GetCursorPositionInput;
|
|
410
|
+
write(value: GetCursorPositionInput, into: RustBuffer): void;
|
|
411
|
+
allocationSize(value: GetCursorPositionInput): number;
|
|
412
|
+
lift(value: UniffiByteArray): GetCursorPositionInput;
|
|
413
|
+
lower(value: GetCursorPositionInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
414
|
+
};
|
|
415
|
+
FfiConverterTypeGetDesktopStateInput: {
|
|
416
|
+
read(from: RustBuffer): GetDesktopStateInput;
|
|
417
|
+
write(value: GetDesktopStateInput, into: RustBuffer): void;
|
|
418
|
+
allocationSize(value: GetDesktopStateInput): number;
|
|
419
|
+
lift(value: UniffiByteArray): GetDesktopStateInput;
|
|
420
|
+
lower(value: GetDesktopStateInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
421
|
+
};
|
|
422
|
+
FfiConverterTypeGetScreenSizeInput: {
|
|
423
|
+
read(from: RustBuffer): GetScreenSizeInput;
|
|
424
|
+
write(value: GetScreenSizeInput, into: RustBuffer): void;
|
|
425
|
+
allocationSize(value: GetScreenSizeInput): number;
|
|
426
|
+
lift(value: UniffiByteArray): GetScreenSizeInput;
|
|
427
|
+
lower(value: GetScreenSizeInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
428
|
+
};
|
|
429
|
+
FfiConverterTypeGetSessionStateInput: {
|
|
430
|
+
read(from: RustBuffer): GetSessionStateInput;
|
|
431
|
+
write(value: GetSessionStateInput, into: RustBuffer): void;
|
|
432
|
+
allocationSize(value: GetSessionStateInput): number;
|
|
433
|
+
lift(value: UniffiByteArray): GetSessionStateInput;
|
|
434
|
+
lower(value: GetSessionStateInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
435
|
+
};
|
|
436
|
+
FfiConverterTypeHotkeyInput: {
|
|
437
|
+
read(from: RustBuffer): HotkeyInput;
|
|
438
|
+
write(value: HotkeyInput, into: RustBuffer): void;
|
|
439
|
+
allocationSize(value: HotkeyInput): number;
|
|
440
|
+
lift(value: UniffiByteArray): HotkeyInput;
|
|
441
|
+
lower(value: HotkeyInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
442
|
+
};
|
|
443
|
+
FfiConverterTypeMoveCursorInput: {
|
|
444
|
+
read(from: RustBuffer): MoveCursorInput;
|
|
445
|
+
write(value: MoveCursorInput, into: RustBuffer): void;
|
|
446
|
+
allocationSize(value: MoveCursorInput): number;
|
|
447
|
+
lift(value: UniffiByteArray): MoveCursorInput;
|
|
448
|
+
lower(value: MoveCursorInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
449
|
+
};
|
|
450
|
+
FfiConverterTypePlatform: {
|
|
451
|
+
read(from: RustBuffer): Platform;
|
|
452
|
+
write(value: Platform, into: RustBuffer): void;
|
|
453
|
+
allocationSize(value: Platform): number;
|
|
454
|
+
lift(value: UniffiByteArray): Platform;
|
|
455
|
+
lower(value: Platform, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
456
|
+
};
|
|
457
|
+
FfiConverterTypePressKeyInput: {
|
|
458
|
+
read(from: RustBuffer): PressKeyInput;
|
|
459
|
+
write(value: PressKeyInput, into: RustBuffer): void;
|
|
460
|
+
allocationSize(value: PressKeyInput): number;
|
|
461
|
+
lift(value: UniffiByteArray): PressKeyInput;
|
|
462
|
+
lower(value: PressKeyInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
463
|
+
};
|
|
464
|
+
FfiConverterTypeScrollBy: {
|
|
465
|
+
read(from: RustBuffer): ScrollBy;
|
|
466
|
+
write(value: ScrollBy, into: RustBuffer): void;
|
|
467
|
+
allocationSize(value: ScrollBy): number;
|
|
468
|
+
lift(value: UniffiByteArray): ScrollBy;
|
|
469
|
+
lower(value: ScrollBy, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
470
|
+
};
|
|
471
|
+
FfiConverterTypeScrollDirection: {
|
|
472
|
+
read(from: RustBuffer): ScrollDirection;
|
|
473
|
+
write(value: ScrollDirection, into: RustBuffer): void;
|
|
474
|
+
allocationSize(value: ScrollDirection): number;
|
|
475
|
+
lift(value: UniffiByteArray): ScrollDirection;
|
|
476
|
+
lower(value: ScrollDirection, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
477
|
+
};
|
|
478
|
+
FfiConverterTypeScrollInput: {
|
|
479
|
+
read(from: RustBuffer): ScrollInput;
|
|
480
|
+
write(value: ScrollInput, into: RustBuffer): void;
|
|
481
|
+
allocationSize(value: ScrollInput): number;
|
|
482
|
+
lift(value: UniffiByteArray): ScrollInput;
|
|
483
|
+
lower(value: ScrollInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
484
|
+
};
|
|
485
|
+
FfiConverterTypeSessionStateOutput: {
|
|
486
|
+
read(from: RustBuffer): SessionStateOutput;
|
|
487
|
+
write(value: SessionStateOutput, into: RustBuffer): void;
|
|
488
|
+
allocationSize(value: SessionStateOutput): number;
|
|
489
|
+
lift(value: UniffiByteArray): SessionStateOutput;
|
|
490
|
+
lower(value: SessionStateOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
491
|
+
};
|
|
492
|
+
FfiConverterTypeStartSessionInput: {
|
|
493
|
+
read(from: RustBuffer): StartSessionInput;
|
|
494
|
+
write(value: StartSessionInput, into: RustBuffer): void;
|
|
495
|
+
allocationSize(value: StartSessionInput): number;
|
|
496
|
+
lift(value: UniffiByteArray): StartSessionInput;
|
|
497
|
+
lower(value: StartSessionInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
498
|
+
};
|
|
499
|
+
FfiConverterTypeStartSessionOutput: {
|
|
500
|
+
read(from: RustBuffer): StartSessionOutput;
|
|
501
|
+
write(value: StartSessionOutput, into: RustBuffer): void;
|
|
502
|
+
allocationSize(value: StartSessionOutput): number;
|
|
503
|
+
lift(value: UniffiByteArray): StartSessionOutput;
|
|
504
|
+
lower(value: StartSessionOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
505
|
+
};
|
|
506
|
+
FfiConverterTypeTypeTextInput: {
|
|
507
|
+
read(from: RustBuffer): TypeTextInput;
|
|
508
|
+
write(value: TypeTextInput, into: RustBuffer): void;
|
|
509
|
+
allocationSize(value: TypeTextInput): number;
|
|
510
|
+
lift(value: UniffiByteArray): TypeTextInput;
|
|
511
|
+
lower(value: TypeTextInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
}>;
|
|
515
|
+
export default _default;
|