@trycua/cua-driver 0.19.2 → 0.20.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 +11 -3
- package/dist/native/cua_driver_contract.d.ts +353 -49
- package/dist/native/cua_driver_contract.js +444 -46
- package/dist/native/cua_driver_sdk-ffi.d.ts +10 -0
- package/dist/native/cua_driver_sdk-ffi.js +50 -0
- package/dist/native/cua_driver_sdk.d.ts +61 -8
- package/dist/native/cua_driver_sdk.js +188 -4
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type UniffiByteArray, RustBuffer } from "@ubjs/core";
|
|
1
|
+
import { type UniffiByteArray, RustBuffer, uniffiTypeNameSymbol } from "@ubjs/core";
|
|
2
2
|
export declare enum ActionDeliveryMode {
|
|
3
3
|
Background = 0,
|
|
4
4
|
Foreground = 1,
|
|
@@ -102,6 +102,111 @@ export declare const BoundsExpectation: Readonly<{
|
|
|
102
102
|
new: (partial: Partial<BoundsExpectation> & Required<Omit<BoundsExpectation, "tolerancePx">>) => BoundsExpectation;
|
|
103
103
|
defaults: () => Partial<BoundsExpectation>;
|
|
104
104
|
}>;
|
|
105
|
+
export declare enum ActionTarget_Tags {
|
|
106
|
+
Window = "Window",
|
|
107
|
+
Desktop = "Desktop"
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Exact capture/input target selected independently for each action.
|
|
111
|
+
*
|
|
112
|
+
* `display_id="primary"` is the portable desktop target in this release.
|
|
113
|
+
* Platforms that cannot address another display reject it explicitly rather
|
|
114
|
+
* than silently changing coordinate spaces.
|
|
115
|
+
*/
|
|
116
|
+
export declare const ActionTarget: Readonly<{
|
|
117
|
+
instanceOf: (obj: any) => obj is ActionTarget;
|
|
118
|
+
Window: {
|
|
119
|
+
new (inner: {
|
|
120
|
+
pid: number;
|
|
121
|
+
windowId: bigint;
|
|
122
|
+
}): {
|
|
123
|
+
readonly tag: ActionTarget_Tags.Window;
|
|
124
|
+
readonly inner: Readonly<{
|
|
125
|
+
pid: number;
|
|
126
|
+
windowId: bigint;
|
|
127
|
+
}>;
|
|
128
|
+
/**
|
|
129
|
+
* @private
|
|
130
|
+
* This field is private and should not be used, use `tag` instead.
|
|
131
|
+
*/
|
|
132
|
+
readonly [uniffiTypeNameSymbol]: "ActionTarget";
|
|
133
|
+
};
|
|
134
|
+
"new"(inner: {
|
|
135
|
+
pid: number;
|
|
136
|
+
windowId: bigint;
|
|
137
|
+
}): {
|
|
138
|
+
readonly tag: ActionTarget_Tags.Window;
|
|
139
|
+
readonly inner: Readonly<{
|
|
140
|
+
pid: number;
|
|
141
|
+
windowId: bigint;
|
|
142
|
+
}>;
|
|
143
|
+
/**
|
|
144
|
+
* @private
|
|
145
|
+
* This field is private and should not be used, use `tag` instead.
|
|
146
|
+
*/
|
|
147
|
+
readonly [uniffiTypeNameSymbol]: "ActionTarget";
|
|
148
|
+
};
|
|
149
|
+
instanceOf(obj: any): obj is {
|
|
150
|
+
readonly tag: ActionTarget_Tags.Window;
|
|
151
|
+
readonly inner: Readonly<{
|
|
152
|
+
pid: number;
|
|
153
|
+
windowId: bigint;
|
|
154
|
+
}>;
|
|
155
|
+
/**
|
|
156
|
+
* @private
|
|
157
|
+
* This field is private and should not be used, use `tag` instead.
|
|
158
|
+
*/
|
|
159
|
+
readonly [uniffiTypeNameSymbol]: "ActionTarget";
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
Desktop: {
|
|
163
|
+
new (inner: {
|
|
164
|
+
displayId: string;
|
|
165
|
+
}): {
|
|
166
|
+
readonly tag: ActionTarget_Tags.Desktop;
|
|
167
|
+
readonly inner: Readonly<{
|
|
168
|
+
displayId: string;
|
|
169
|
+
}>;
|
|
170
|
+
/**
|
|
171
|
+
* @private
|
|
172
|
+
* This field is private and should not be used, use `tag` instead.
|
|
173
|
+
*/
|
|
174
|
+
readonly [uniffiTypeNameSymbol]: "ActionTarget";
|
|
175
|
+
};
|
|
176
|
+
"new"(inner: {
|
|
177
|
+
displayId: string;
|
|
178
|
+
}): {
|
|
179
|
+
readonly tag: ActionTarget_Tags.Desktop;
|
|
180
|
+
readonly inner: Readonly<{
|
|
181
|
+
displayId: string;
|
|
182
|
+
}>;
|
|
183
|
+
/**
|
|
184
|
+
* @private
|
|
185
|
+
* This field is private and should not be used, use `tag` instead.
|
|
186
|
+
*/
|
|
187
|
+
readonly [uniffiTypeNameSymbol]: "ActionTarget";
|
|
188
|
+
};
|
|
189
|
+
instanceOf(obj: any): obj is {
|
|
190
|
+
readonly tag: ActionTarget_Tags.Desktop;
|
|
191
|
+
readonly inner: Readonly<{
|
|
192
|
+
displayId: string;
|
|
193
|
+
}>;
|
|
194
|
+
/**
|
|
195
|
+
* @private
|
|
196
|
+
* This field is private and should not be used, use `tag` instead.
|
|
197
|
+
*/
|
|
198
|
+
readonly [uniffiTypeNameSymbol]: "ActionTarget";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
}>;
|
|
202
|
+
/**
|
|
203
|
+
* Exact capture/input target selected independently for each action.
|
|
204
|
+
*
|
|
205
|
+
* `display_id="primary"` is the portable desktop target in this release.
|
|
206
|
+
* Platforms that cannot address another display reject it explicitly rather
|
|
207
|
+
* than silently changing coordinate spaces.
|
|
208
|
+
*/
|
|
209
|
+
export type ActionTarget = InstanceType<typeof ActionTarget['Window' | 'Desktop']>;
|
|
105
210
|
export declare enum DesktopScope {
|
|
106
211
|
Desktop = 0
|
|
107
212
|
}
|
|
@@ -113,9 +218,14 @@ export declare enum ClickButton {
|
|
|
113
218
|
export type ClickInput = {
|
|
114
219
|
x: number;
|
|
115
220
|
y: number;
|
|
116
|
-
|
|
221
|
+
target?: ActionTarget;
|
|
117
222
|
/**
|
|
118
|
-
*
|
|
223
|
+
* Deprecated flat desktop target retained for wire compatibility.
|
|
224
|
+
*/
|
|
225
|
+
scope?: DesktopScope;
|
|
226
|
+
/**
|
|
227
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
228
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
119
229
|
*/
|
|
120
230
|
session?: string;
|
|
121
231
|
button?: ClickButton;
|
|
@@ -125,8 +235,8 @@ export type ClickInput = {
|
|
|
125
235
|
* Generated factory for {@link ClickInput} record objects.
|
|
126
236
|
*/
|
|
127
237
|
export declare const ClickInput: Readonly<{
|
|
128
|
-
create: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "session" | "button" | "count">>) => ClickInput;
|
|
129
|
-
new: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "session" | "button" | "count">>) => ClickInput;
|
|
238
|
+
create: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "target" | "scope" | "session" | "button" | "count">>) => ClickInput;
|
|
239
|
+
new: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "target" | "scope" | "session" | "button" | "count">>) => ClickInput;
|
|
130
240
|
defaults: () => Partial<ClickInput>;
|
|
131
241
|
}>;
|
|
132
242
|
export type ClipboardReadInput = {
|
|
@@ -136,7 +246,8 @@ export type ClipboardReadInput = {
|
|
|
136
246
|
*/
|
|
137
247
|
includeText: boolean;
|
|
138
248
|
/**
|
|
139
|
-
*
|
|
249
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
250
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
140
251
|
*/
|
|
141
252
|
session?: string;
|
|
142
253
|
};
|
|
@@ -177,7 +288,8 @@ export type ClipboardWriteInput = {
|
|
|
177
288
|
*/
|
|
178
289
|
filePath?: string;
|
|
179
290
|
/**
|
|
180
|
-
*
|
|
291
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
292
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
181
293
|
*/
|
|
182
294
|
session?: string;
|
|
183
295
|
};
|
|
@@ -302,9 +414,14 @@ export type DragInput = {
|
|
|
302
414
|
fromY: number;
|
|
303
415
|
toX: number;
|
|
304
416
|
toY: number;
|
|
305
|
-
|
|
417
|
+
target?: ActionTarget;
|
|
306
418
|
/**
|
|
307
|
-
*
|
|
419
|
+
* Deprecated flat desktop target retained for wire compatibility.
|
|
420
|
+
*/
|
|
421
|
+
scope?: DesktopScope;
|
|
422
|
+
/**
|
|
423
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
424
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
308
425
|
*/
|
|
309
426
|
session?: string;
|
|
310
427
|
durationMs?: bigint;
|
|
@@ -316,8 +433,8 @@ export type DragInput = {
|
|
|
316
433
|
* Generated factory for {@link DragInput} record objects.
|
|
317
434
|
*/
|
|
318
435
|
export declare const DragInput: Readonly<{
|
|
319
|
-
create: (partial: Partial<DragInput> & Required<Omit<DragInput, "session" | "button" | "durationMs" | "steps" | "modifier">>) => DragInput;
|
|
320
|
-
new: (partial: Partial<DragInput> & Required<Omit<DragInput, "session" | "button" | "durationMs" | "steps" | "modifier">>) => DragInput;
|
|
436
|
+
create: (partial: Partial<DragInput> & Required<Omit<DragInput, "target" | "scope" | "session" | "button" | "durationMs" | "steps" | "modifier">>) => DragInput;
|
|
437
|
+
new: (partial: Partial<DragInput> & Required<Omit<DragInput, "target" | "scope" | "session" | "button" | "durationMs" | "steps" | "modifier">>) => DragInput;
|
|
321
438
|
defaults: () => Partial<DragInput>;
|
|
322
439
|
}>;
|
|
323
440
|
export type ElementSelector = {
|
|
@@ -356,16 +473,17 @@ export declare const ElementPredicate: Readonly<{
|
|
|
356
473
|
}>;
|
|
357
474
|
export type EndSessionInput = {
|
|
358
475
|
/**
|
|
359
|
-
*
|
|
476
|
+
* Optional public label to end. When omitted, end the caller's attached
|
|
477
|
+
* implicit session.
|
|
360
478
|
*/
|
|
361
|
-
session
|
|
479
|
+
session?: string;
|
|
362
480
|
};
|
|
363
481
|
/**
|
|
364
482
|
* Generated factory for {@link EndSessionInput} record objects.
|
|
365
483
|
*/
|
|
366
484
|
export declare const EndSessionInput: Readonly<{
|
|
367
|
-
create: (partial: Partial<EndSessionInput> & Required<Omit<EndSessionInput,
|
|
368
|
-
new: (partial: Partial<EndSessionInput> & Required<Omit<EndSessionInput,
|
|
485
|
+
create: (partial: Partial<EndSessionInput> & Required<Omit<EndSessionInput, "session">>) => EndSessionInput;
|
|
486
|
+
new: (partial: Partial<EndSessionInput> & Required<Omit<EndSessionInput, "session">>) => EndSessionInput;
|
|
369
487
|
defaults: () => Partial<EndSessionInput>;
|
|
370
488
|
}>;
|
|
371
489
|
/**
|
|
@@ -435,7 +553,8 @@ export declare const GetAgentCursorStateOutput: Readonly<{
|
|
|
435
553
|
}>;
|
|
436
554
|
export type GetCursorPositionInput = {
|
|
437
555
|
/**
|
|
438
|
-
*
|
|
556
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
557
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
439
558
|
*/
|
|
440
559
|
session?: string;
|
|
441
560
|
};
|
|
@@ -449,7 +568,8 @@ export declare const GetCursorPositionInput: Readonly<{
|
|
|
449
568
|
}>;
|
|
450
569
|
export type GetDesktopStateInput = {
|
|
451
570
|
/**
|
|
452
|
-
*
|
|
571
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
572
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
453
573
|
*/
|
|
454
574
|
session?: string;
|
|
455
575
|
/**
|
|
@@ -467,7 +587,8 @@ export declare const GetDesktopStateInput: Readonly<{
|
|
|
467
587
|
}>;
|
|
468
588
|
export type GetScreenSizeInput = {
|
|
469
589
|
/**
|
|
470
|
-
*
|
|
590
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
591
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
471
592
|
*/
|
|
472
593
|
session?: string;
|
|
473
594
|
};
|
|
@@ -479,22 +600,46 @@ export declare const GetScreenSizeInput: Readonly<{
|
|
|
479
600
|
new: (partial: Partial<GetScreenSizeInput> & Required<Omit<GetScreenSizeInput, "session">>) => GetScreenSizeInput;
|
|
480
601
|
defaults: () => Partial<GetScreenSizeInput>;
|
|
481
602
|
}>;
|
|
603
|
+
export type GetSessionInput = {
|
|
604
|
+
/**
|
|
605
|
+
* Optional public label. When omitted, inspect the caller's attached
|
|
606
|
+
* implicit session.
|
|
607
|
+
*/
|
|
608
|
+
session?: string;
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Generated factory for {@link GetSessionInput} record objects.
|
|
612
|
+
*/
|
|
613
|
+
export declare const GetSessionInput: Readonly<{
|
|
614
|
+
create: (partial: Partial<GetSessionInput> & Required<Omit<GetSessionInput, "session">>) => GetSessionInput;
|
|
615
|
+
new: (partial: Partial<GetSessionInput> & Required<Omit<GetSessionInput, "session">>) => GetSessionInput;
|
|
616
|
+
defaults: () => Partial<GetSessionInput>;
|
|
617
|
+
}>;
|
|
482
618
|
export type GetSessionStateInput = {
|
|
483
|
-
|
|
619
|
+
/**
|
|
620
|
+
* Optional public label. When omitted, inspect the caller's attached
|
|
621
|
+
* implicit session.
|
|
622
|
+
*/
|
|
623
|
+
session?: string;
|
|
484
624
|
};
|
|
485
625
|
/**
|
|
486
626
|
* Generated factory for {@link GetSessionStateInput} record objects.
|
|
487
627
|
*/
|
|
488
628
|
export declare const GetSessionStateInput: Readonly<{
|
|
489
|
-
create: (partial: Partial<GetSessionStateInput> & Required<Omit<GetSessionStateInput,
|
|
490
|
-
new: (partial: Partial<GetSessionStateInput> & Required<Omit<GetSessionStateInput,
|
|
629
|
+
create: (partial: Partial<GetSessionStateInput> & Required<Omit<GetSessionStateInput, "session">>) => GetSessionStateInput;
|
|
630
|
+
new: (partial: Partial<GetSessionStateInput> & Required<Omit<GetSessionStateInput, "session">>) => GetSessionStateInput;
|
|
491
631
|
defaults: () => Partial<GetSessionStateInput>;
|
|
492
632
|
}>;
|
|
493
633
|
export type HotkeyInput = {
|
|
494
634
|
keys: Array<string>;
|
|
495
|
-
|
|
635
|
+
target?: ActionTarget;
|
|
636
|
+
/**
|
|
637
|
+
* Deprecated flat desktop target retained for wire compatibility.
|
|
638
|
+
*/
|
|
639
|
+
scope?: DesktopScope;
|
|
496
640
|
/**
|
|
497
|
-
*
|
|
641
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
642
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
498
643
|
*/
|
|
499
644
|
session?: string;
|
|
500
645
|
};
|
|
@@ -502,8 +647,8 @@ export type HotkeyInput = {
|
|
|
502
647
|
* Generated factory for {@link HotkeyInput} record objects.
|
|
503
648
|
*/
|
|
504
649
|
export declare const HotkeyInput: Readonly<{
|
|
505
|
-
create: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "session">>) => HotkeyInput;
|
|
506
|
-
new: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "session">>) => HotkeyInput;
|
|
650
|
+
create: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "target" | "scope" | "session">>) => HotkeyInput;
|
|
651
|
+
new: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "target" | "scope" | "session">>) => HotkeyInput;
|
|
507
652
|
defaults: () => Partial<HotkeyInput>;
|
|
508
653
|
}>;
|
|
509
654
|
/**
|
|
@@ -516,7 +661,8 @@ export type InvokeMenuInput = {
|
|
|
516
661
|
windowId: bigint;
|
|
517
662
|
path: Array<string>;
|
|
518
663
|
/**
|
|
519
|
-
*
|
|
664
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
665
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
520
666
|
*/
|
|
521
667
|
session?: string;
|
|
522
668
|
};
|
|
@@ -528,12 +674,93 @@ export declare const InvokeMenuInput: Readonly<{
|
|
|
528
674
|
new: (partial: Partial<InvokeMenuInput> & Required<Omit<InvokeMenuInput, "session">>) => InvokeMenuInput;
|
|
529
675
|
defaults: () => Partial<InvokeMenuInput>;
|
|
530
676
|
}>;
|
|
677
|
+
export type ListSessionsInput = {
|
|
678
|
+
/**
|
|
679
|
+
* Maximum number of content-free summaries to return (default 50, max
|
|
680
|
+
* 100). Ordinary agent transports are scoped to their own lease.
|
|
681
|
+
*/
|
|
682
|
+
limit?: number;
|
|
683
|
+
/**
|
|
684
|
+
* Opaque continuation cursor returned by a previous call.
|
|
685
|
+
*/
|
|
686
|
+
cursor?: string;
|
|
687
|
+
};
|
|
688
|
+
/**
|
|
689
|
+
* Generated factory for {@link ListSessionsInput} record objects.
|
|
690
|
+
*/
|
|
691
|
+
export declare const ListSessionsInput: Readonly<{
|
|
692
|
+
create: (partial: Partial<ListSessionsInput> & Required<Omit<ListSessionsInput, "limit" | "cursor">>) => ListSessionsInput;
|
|
693
|
+
new: (partial: Partial<ListSessionsInput> & Required<Omit<ListSessionsInput, "limit" | "cursor">>) => ListSessionsInput;
|
|
694
|
+
defaults: () => Partial<ListSessionsInput>;
|
|
695
|
+
}>;
|
|
696
|
+
export declare enum SessionLifecycleState {
|
|
697
|
+
Active = 0,
|
|
698
|
+
Ending = 1
|
|
699
|
+
}
|
|
700
|
+
export declare enum SessionClientKindOutput {
|
|
701
|
+
Cli = 0,
|
|
702
|
+
Direct = 1,
|
|
703
|
+
Mcp = 2,
|
|
704
|
+
PythonSdk = 3,
|
|
705
|
+
TypescriptSdk = 4
|
|
706
|
+
}
|
|
707
|
+
export declare enum SessionTransportOutput {
|
|
708
|
+
Cli = 0,
|
|
709
|
+
Daemon = 1,
|
|
710
|
+
McpStdio = 2,
|
|
711
|
+
McpHttp = 3
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Content-free lifecycle state safe for an ordinary agent transport.
|
|
715
|
+
*/
|
|
716
|
+
export type SessionOutput = {
|
|
717
|
+
/**
|
|
718
|
+
* Sanitized public label, or null for an unnamed implicit session.
|
|
719
|
+
*/
|
|
720
|
+
session?: string;
|
|
721
|
+
implicit: boolean;
|
|
722
|
+
state: SessionLifecycleState;
|
|
723
|
+
clientKind: SessionClientKindOutput;
|
|
724
|
+
transport: SessionTransportOutput;
|
|
725
|
+
cursorVisible: boolean;
|
|
726
|
+
recordingActive: boolean;
|
|
727
|
+
idleSeconds: bigint;
|
|
728
|
+
expiresInSeconds: bigint;
|
|
729
|
+
};
|
|
730
|
+
/**
|
|
731
|
+
* Generated factory for {@link SessionOutput} record objects.
|
|
732
|
+
*/
|
|
733
|
+
export declare const SessionOutput: Readonly<{
|
|
734
|
+
create: (partial: Partial<SessionOutput> & Required<Omit<SessionOutput, "session">>) => SessionOutput;
|
|
735
|
+
new: (partial: Partial<SessionOutput> & Required<Omit<SessionOutput, "session">>) => SessionOutput;
|
|
736
|
+
defaults: () => Partial<SessionOutput>;
|
|
737
|
+
}>;
|
|
738
|
+
export type ListSessionsOutput = {
|
|
739
|
+
sessions: Array<SessionOutput>;
|
|
740
|
+
nextCursor?: string;
|
|
741
|
+
};
|
|
742
|
+
/**
|
|
743
|
+
* Generated factory for {@link ListSessionsOutput} record objects.
|
|
744
|
+
*/
|
|
745
|
+
export declare const ListSessionsOutput: Readonly<{
|
|
746
|
+
create: (partial: Partial<ListSessionsOutput> & Required<Omit<ListSessionsOutput, "nextCursor">>) => ListSessionsOutput;
|
|
747
|
+
new: (partial: Partial<ListSessionsOutput> & Required<Omit<ListSessionsOutput, "nextCursor">>) => ListSessionsOutput;
|
|
748
|
+
defaults: () => Partial<ListSessionsOutput>;
|
|
749
|
+
}>;
|
|
531
750
|
export type MoveCursorInput = {
|
|
532
751
|
x: number;
|
|
533
752
|
y: number;
|
|
534
|
-
scope: DesktopScope;
|
|
535
753
|
/**
|
|
536
|
-
*
|
|
754
|
+
* Preferred per-call target. New callers should set this field.
|
|
755
|
+
*/
|
|
756
|
+
target?: ActionTarget;
|
|
757
|
+
/**
|
|
758
|
+
* Deprecated flat desktop target retained for wire compatibility.
|
|
759
|
+
*/
|
|
760
|
+
scope?: DesktopScope;
|
|
761
|
+
/**
|
|
762
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
763
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
537
764
|
*/
|
|
538
765
|
session?: string;
|
|
539
766
|
};
|
|
@@ -541,8 +768,8 @@ export type MoveCursorInput = {
|
|
|
541
768
|
* Generated factory for {@link MoveCursorInput} record objects.
|
|
542
769
|
*/
|
|
543
770
|
export declare const MoveCursorInput: Readonly<{
|
|
544
|
-
create: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "session">>) => MoveCursorInput;
|
|
545
|
-
new: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "session">>) => MoveCursorInput;
|
|
771
|
+
create: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "target" | "scope" | "session">>) => MoveCursorInput;
|
|
772
|
+
new: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "target" | "scope" | "session">>) => MoveCursorInput;
|
|
546
773
|
defaults: () => Partial<MoveCursorInput>;
|
|
547
774
|
}>;
|
|
548
775
|
export declare enum VerificationStatus {
|
|
@@ -578,9 +805,14 @@ export declare const PredicateOutcome: Readonly<{
|
|
|
578
805
|
}>;
|
|
579
806
|
export type PressKeyInput = {
|
|
580
807
|
key: string;
|
|
581
|
-
|
|
808
|
+
target?: ActionTarget;
|
|
582
809
|
/**
|
|
583
|
-
*
|
|
810
|
+
* Deprecated flat desktop target retained for wire compatibility.
|
|
811
|
+
*/
|
|
812
|
+
scope?: DesktopScope;
|
|
813
|
+
/**
|
|
814
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
815
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
584
816
|
*/
|
|
585
817
|
session?: string;
|
|
586
818
|
modifiers?: Array<string>;
|
|
@@ -589,8 +821,8 @@ export type PressKeyInput = {
|
|
|
589
821
|
* Generated factory for {@link PressKeyInput} record objects.
|
|
590
822
|
*/
|
|
591
823
|
export declare const PressKeyInput: Readonly<{
|
|
592
|
-
create: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "session" | "modifiers">>) => PressKeyInput;
|
|
593
|
-
new: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "session" | "modifiers">>) => PressKeyInput;
|
|
824
|
+
create: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "target" | "scope" | "session" | "modifiers">>) => PressKeyInput;
|
|
825
|
+
new: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "target" | "scope" | "session" | "modifiers">>) => PressKeyInput;
|
|
594
826
|
defaults: () => Partial<PressKeyInput>;
|
|
595
827
|
}>;
|
|
596
828
|
export declare enum ScrollDirection {
|
|
@@ -607,9 +839,14 @@ export type ScrollInput = {
|
|
|
607
839
|
x: number;
|
|
608
840
|
y: number;
|
|
609
841
|
direction: ScrollDirection;
|
|
610
|
-
|
|
842
|
+
target?: ActionTarget;
|
|
843
|
+
/**
|
|
844
|
+
* Deprecated flat desktop target retained for wire compatibility.
|
|
845
|
+
*/
|
|
846
|
+
scope?: DesktopScope;
|
|
611
847
|
/**
|
|
612
|
-
*
|
|
848
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
849
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
613
850
|
*/
|
|
614
851
|
session?: string;
|
|
615
852
|
by?: ScrollBy;
|
|
@@ -619,8 +856,8 @@ export type ScrollInput = {
|
|
|
619
856
|
* Generated factory for {@link ScrollInput} record objects.
|
|
620
857
|
*/
|
|
621
858
|
export declare const ScrollInput: Readonly<{
|
|
622
|
-
create: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "session" | "by" | "amount">>) => ScrollInput;
|
|
623
|
-
new: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "session" | "by" | "amount">>) => ScrollInput;
|
|
859
|
+
create: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "target" | "scope" | "session" | "by" | "amount">>) => ScrollInput;
|
|
860
|
+
new: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "target" | "scope" | "session" | "by" | "amount">>) => ScrollInput;
|
|
624
861
|
defaults: () => Partial<ScrollInput>;
|
|
625
862
|
}>;
|
|
626
863
|
export declare enum CaptureScope {
|
|
@@ -740,7 +977,8 @@ export type SetWindowFrameInput = {
|
|
|
740
977
|
width: number;
|
|
741
978
|
height: number;
|
|
742
979
|
/**
|
|
743
|
-
*
|
|
980
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
981
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
744
982
|
*/
|
|
745
983
|
session?: string;
|
|
746
984
|
};
|
|
@@ -754,11 +992,14 @@ export declare const SetWindowFrameInput: Readonly<{
|
|
|
754
992
|
}>;
|
|
755
993
|
export type StartSessionInput = {
|
|
756
994
|
/**
|
|
757
|
-
*
|
|
995
|
+
* Optional stable public label for this run (e.g. "research-run-1").
|
|
996
|
+
* When omitted, the authenticated transport lease's implicit session is
|
|
997
|
+
* created or returned.
|
|
758
998
|
*/
|
|
759
|
-
session
|
|
999
|
+
session?: string;
|
|
760
1000
|
/**
|
|
761
|
-
*
|
|
1001
|
+
* Deprecated compatibility policy. New callers select window or desktop
|
|
1002
|
+
* modality on each action instead of storing it on the session.
|
|
762
1003
|
*/
|
|
763
1004
|
captureScope?: CaptureScope;
|
|
764
1005
|
/**
|
|
@@ -771,8 +1012,8 @@ export type StartSessionInput = {
|
|
|
771
1012
|
* Generated factory for {@link StartSessionInput} record objects.
|
|
772
1013
|
*/
|
|
773
1014
|
export declare const StartSessionInput: Readonly<{
|
|
774
|
-
create: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "captureScope" | "cursorTheme">>) => StartSessionInput;
|
|
775
|
-
new: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "captureScope" | "cursorTheme">>) => StartSessionInput;
|
|
1015
|
+
create: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "session" | "captureScope" | "cursorTheme">>) => StartSessionInput;
|
|
1016
|
+
new: (partial: Partial<StartSessionInput> & Required<Omit<StartSessionInput, "session" | "captureScope" | "cursorTheme">>) => StartSessionInput;
|
|
776
1017
|
defaults: () => Partial<StartSessionInput>;
|
|
777
1018
|
}>;
|
|
778
1019
|
/**
|
|
@@ -817,9 +1058,14 @@ export declare const StatePredicate: Readonly<{
|
|
|
817
1058
|
}>;
|
|
818
1059
|
export type TypeTextInput = {
|
|
819
1060
|
text: string;
|
|
820
|
-
|
|
1061
|
+
target?: ActionTarget;
|
|
1062
|
+
/**
|
|
1063
|
+
* Deprecated flat desktop target retained for wire compatibility.
|
|
1064
|
+
*/
|
|
1065
|
+
scope?: DesktopScope;
|
|
821
1066
|
/**
|
|
822
|
-
*
|
|
1067
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
1068
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session.
|
|
823
1069
|
*/
|
|
824
1070
|
session?: string;
|
|
825
1071
|
};
|
|
@@ -827,8 +1073,8 @@ export type TypeTextInput = {
|
|
|
827
1073
|
* Generated factory for {@link TypeTextInput} record objects.
|
|
828
1074
|
*/
|
|
829
1075
|
export declare const TypeTextInput: Readonly<{
|
|
830
|
-
create: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "session">>) => TypeTextInput;
|
|
831
|
-
new: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "session">>) => TypeTextInput;
|
|
1076
|
+
create: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "target" | "scope" | "session">>) => TypeTextInput;
|
|
1077
|
+
new: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "target" | "scope" | "session">>) => TypeTextInput;
|
|
832
1078
|
defaults: () => Partial<TypeTextInput>;
|
|
833
1079
|
}>;
|
|
834
1080
|
export type VerifyStateInput = {
|
|
@@ -845,7 +1091,9 @@ export type VerifyStateInput = {
|
|
|
845
1091
|
*/
|
|
846
1092
|
expect: Array<StatePredicate>;
|
|
847
1093
|
/**
|
|
848
|
-
*
|
|
1094
|
+
* For multi-call work, prefer a short public session label and repeat it on every call that
|
|
1095
|
+
* accepts it. Omit it to use the authenticated transport's implicit lifecycle session. This
|
|
1096
|
+
* field never selects capture modality or authorization.
|
|
849
1097
|
*/
|
|
850
1098
|
session?: string;
|
|
851
1099
|
/**
|
|
@@ -974,6 +1222,13 @@ declare const _default: Readonly<{
|
|
|
974
1222
|
lift(value: UniffiByteArray): ActionRoute;
|
|
975
1223
|
lower(value: ActionRoute, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
976
1224
|
};
|
|
1225
|
+
FfiConverterTypeActionTarget: {
|
|
1226
|
+
read(from: RustBuffer): ActionTarget;
|
|
1227
|
+
write(value: ActionTarget, into: RustBuffer): void;
|
|
1228
|
+
allocationSize(value: ActionTarget): number;
|
|
1229
|
+
lift(value: UniffiByteArray): ActionTarget;
|
|
1230
|
+
lower(value: ActionTarget, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1231
|
+
};
|
|
977
1232
|
FfiConverterTypeBoundsExpectation: {
|
|
978
1233
|
read(from: RustBuffer): BoundsExpectation;
|
|
979
1234
|
write(value: BoundsExpectation, into: RustBuffer): void;
|
|
@@ -1177,6 +1432,13 @@ declare const _default: Readonly<{
|
|
|
1177
1432
|
lift(value: UniffiByteArray): GetScreenSizeInput;
|
|
1178
1433
|
lower(value: GetScreenSizeInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1179
1434
|
};
|
|
1435
|
+
FfiConverterTypeGetSessionInput: {
|
|
1436
|
+
read(from: RustBuffer): GetSessionInput;
|
|
1437
|
+
write(value: GetSessionInput, into: RustBuffer): void;
|
|
1438
|
+
allocationSize(value: GetSessionInput): number;
|
|
1439
|
+
lift(value: UniffiByteArray): GetSessionInput;
|
|
1440
|
+
lower(value: GetSessionInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1441
|
+
};
|
|
1180
1442
|
FfiConverterTypeGetSessionStateInput: {
|
|
1181
1443
|
read(from: RustBuffer): GetSessionStateInput;
|
|
1182
1444
|
write(value: GetSessionStateInput, into: RustBuffer): void;
|
|
@@ -1198,6 +1460,20 @@ declare const _default: Readonly<{
|
|
|
1198
1460
|
lift(value: UniffiByteArray): InvokeMenuInput;
|
|
1199
1461
|
lower(value: InvokeMenuInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1200
1462
|
};
|
|
1463
|
+
FfiConverterTypeListSessionsInput: {
|
|
1464
|
+
read(from: RustBuffer): ListSessionsInput;
|
|
1465
|
+
write(value: ListSessionsInput, into: RustBuffer): void;
|
|
1466
|
+
allocationSize(value: ListSessionsInput): number;
|
|
1467
|
+
lift(value: UniffiByteArray): ListSessionsInput;
|
|
1468
|
+
lower(value: ListSessionsInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1469
|
+
};
|
|
1470
|
+
FfiConverterTypeListSessionsOutput: {
|
|
1471
|
+
read(from: RustBuffer): ListSessionsOutput;
|
|
1472
|
+
write(value: ListSessionsOutput, into: RustBuffer): void;
|
|
1473
|
+
allocationSize(value: ListSessionsOutput): number;
|
|
1474
|
+
lift(value: UniffiByteArray): ListSessionsOutput;
|
|
1475
|
+
lower(value: ListSessionsOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1476
|
+
};
|
|
1201
1477
|
FfiConverterTypeMoveCursorInput: {
|
|
1202
1478
|
read(from: RustBuffer): MoveCursorInput;
|
|
1203
1479
|
write(value: MoveCursorInput, into: RustBuffer): void;
|
|
@@ -1247,6 +1523,27 @@ declare const _default: Readonly<{
|
|
|
1247
1523
|
lift(value: UniffiByteArray): ScrollInput;
|
|
1248
1524
|
lower(value: ScrollInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1249
1525
|
};
|
|
1526
|
+
FfiConverterTypeSessionClientKindOutput: {
|
|
1527
|
+
read(from: RustBuffer): SessionClientKindOutput;
|
|
1528
|
+
write(value: SessionClientKindOutput, into: RustBuffer): void;
|
|
1529
|
+
allocationSize(value: SessionClientKindOutput): number;
|
|
1530
|
+
lift(value: UniffiByteArray): SessionClientKindOutput;
|
|
1531
|
+
lower(value: SessionClientKindOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1532
|
+
};
|
|
1533
|
+
FfiConverterTypeSessionLifecycleState: {
|
|
1534
|
+
read(from: RustBuffer): SessionLifecycleState;
|
|
1535
|
+
write(value: SessionLifecycleState, into: RustBuffer): void;
|
|
1536
|
+
allocationSize(value: SessionLifecycleState): number;
|
|
1537
|
+
lift(value: UniffiByteArray): SessionLifecycleState;
|
|
1538
|
+
lower(value: SessionLifecycleState, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1539
|
+
};
|
|
1540
|
+
FfiConverterTypeSessionOutput: {
|
|
1541
|
+
read(from: RustBuffer): SessionOutput;
|
|
1542
|
+
write(value: SessionOutput, into: RustBuffer): void;
|
|
1543
|
+
allocationSize(value: SessionOutput): number;
|
|
1544
|
+
lift(value: UniffiByteArray): SessionOutput;
|
|
1545
|
+
lower(value: SessionOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1546
|
+
};
|
|
1250
1547
|
FfiConverterTypeSessionStateOutput: {
|
|
1251
1548
|
read(from: RustBuffer): SessionStateOutput;
|
|
1252
1549
|
write(value: SessionStateOutput, into: RustBuffer): void;
|
|
@@ -1254,6 +1551,13 @@ declare const _default: Readonly<{
|
|
|
1254
1551
|
lift(value: UniffiByteArray): SessionStateOutput;
|
|
1255
1552
|
lower(value: SessionStateOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1256
1553
|
};
|
|
1554
|
+
FfiConverterTypeSessionTransportOutput: {
|
|
1555
|
+
read(from: RustBuffer): SessionTransportOutput;
|
|
1556
|
+
write(value: SessionTransportOutput, into: RustBuffer): void;
|
|
1557
|
+
allocationSize(value: SessionTransportOutput): number;
|
|
1558
|
+
lift(value: UniffiByteArray): SessionTransportOutput;
|
|
1559
|
+
lower(value: SessionTransportOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1560
|
+
};
|
|
1257
1561
|
FfiConverterTypeSetAgentCursorEnabledInput: {
|
|
1258
1562
|
read(from: RustBuffer): SetAgentCursorEnabledInput;
|
|
1259
1563
|
write(value: SetAgentCursorEnabledInput, into: RustBuffer): void;
|