@trycua/cua-driver 0.25.0 → 0.26.1
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 +31 -3
- package/dist/native/cua_driver_contract.d.ts +423 -29
- package/dist/native/cua_driver_contract.js +794 -40
- package/dist/native/cua_driver_sdk-ffi.d.ts +12 -0
- package/dist/native/cua_driver_sdk-ffi.js +60 -0
- package/dist/native/cua_driver_sdk.d.ts +41 -5
- package/dist/native/cua_driver_sdk.js +197 -5
- package/package.json +7 -7
|
@@ -87,6 +87,24 @@ export declare const ActionResult: Readonly<{
|
|
|
87
87
|
new: (partial: Partial<ActionResult> & Required<Omit<ActionResult, "delivery" | "evidence" | "escalation">>) => ActionResult;
|
|
88
88
|
defaults: () => Partial<ActionResult>;
|
|
89
89
|
}>;
|
|
90
|
+
export type AppInfo = {
|
|
91
|
+
pid: number;
|
|
92
|
+
name: string;
|
|
93
|
+
running: boolean;
|
|
94
|
+
active: boolean;
|
|
95
|
+
bundleId?: string;
|
|
96
|
+
launchPath?: string;
|
|
97
|
+
kind?: string;
|
|
98
|
+
lastUsed?: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Generated factory for {@link AppInfo} record objects.
|
|
102
|
+
*/
|
|
103
|
+
export declare const AppInfo: Readonly<{
|
|
104
|
+
create: (partial: Partial<AppInfo> & Required<Omit<AppInfo, "kind" | "bundleId" | "launchPath" | "lastUsed">>) => AppInfo;
|
|
105
|
+
new: (partial: Partial<AppInfo> & Required<Omit<AppInfo, "kind" | "bundleId" | "launchPath" | "lastUsed">>) => AppInfo;
|
|
106
|
+
defaults: () => Partial<AppInfo>;
|
|
107
|
+
}>;
|
|
90
108
|
export type BoundsExpectation = {
|
|
91
109
|
x: number;
|
|
92
110
|
y: number;
|
|
@@ -207,8 +225,100 @@ export declare const ActionTarget: Readonly<{
|
|
|
207
225
|
* than silently changing coordinate spaces.
|
|
208
226
|
*/
|
|
209
227
|
export type ActionTarget = InstanceType<typeof ActionTarget['Window' | 'Desktop']>;
|
|
210
|
-
export declare enum
|
|
211
|
-
|
|
228
|
+
export declare enum ClickPosition_Tags {
|
|
229
|
+
Coordinates = "Coordinates",
|
|
230
|
+
Element = "Element"
|
|
231
|
+
}
|
|
232
|
+
export declare const ClickPosition: Readonly<{
|
|
233
|
+
instanceOf: (obj: any) => obj is ClickPosition;
|
|
234
|
+
Coordinates: {
|
|
235
|
+
new (inner: {
|
|
236
|
+
x: number;
|
|
237
|
+
y: number;
|
|
238
|
+
}): {
|
|
239
|
+
readonly tag: ClickPosition_Tags.Coordinates;
|
|
240
|
+
readonly inner: Readonly<{
|
|
241
|
+
x: number;
|
|
242
|
+
y: number;
|
|
243
|
+
}>;
|
|
244
|
+
/**
|
|
245
|
+
* @private
|
|
246
|
+
* This field is private and should not be used, use `tag` instead.
|
|
247
|
+
*/
|
|
248
|
+
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
249
|
+
};
|
|
250
|
+
"new"(inner: {
|
|
251
|
+
x: number;
|
|
252
|
+
y: number;
|
|
253
|
+
}): {
|
|
254
|
+
readonly tag: ClickPosition_Tags.Coordinates;
|
|
255
|
+
readonly inner: Readonly<{
|
|
256
|
+
x: number;
|
|
257
|
+
y: number;
|
|
258
|
+
}>;
|
|
259
|
+
/**
|
|
260
|
+
* @private
|
|
261
|
+
* This field is private and should not be used, use `tag` instead.
|
|
262
|
+
*/
|
|
263
|
+
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
264
|
+
};
|
|
265
|
+
instanceOf(obj: any): obj is {
|
|
266
|
+
readonly tag: ClickPosition_Tags.Coordinates;
|
|
267
|
+
readonly inner: Readonly<{
|
|
268
|
+
x: number;
|
|
269
|
+
y: number;
|
|
270
|
+
}>;
|
|
271
|
+
/**
|
|
272
|
+
* @private
|
|
273
|
+
* This field is private and should not be used, use `tag` instead.
|
|
274
|
+
*/
|
|
275
|
+
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
Element: {
|
|
279
|
+
new (inner: {
|
|
280
|
+
elementToken: string;
|
|
281
|
+
}): {
|
|
282
|
+
readonly tag: ClickPosition_Tags.Element;
|
|
283
|
+
readonly inner: Readonly<{
|
|
284
|
+
elementToken: string;
|
|
285
|
+
}>;
|
|
286
|
+
/**
|
|
287
|
+
* @private
|
|
288
|
+
* This field is private and should not be used, use `tag` instead.
|
|
289
|
+
*/
|
|
290
|
+
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
291
|
+
};
|
|
292
|
+
"new"(inner: {
|
|
293
|
+
elementToken: string;
|
|
294
|
+
}): {
|
|
295
|
+
readonly tag: ClickPosition_Tags.Element;
|
|
296
|
+
readonly inner: Readonly<{
|
|
297
|
+
elementToken: string;
|
|
298
|
+
}>;
|
|
299
|
+
/**
|
|
300
|
+
* @private
|
|
301
|
+
* This field is private and should not be used, use `tag` instead.
|
|
302
|
+
*/
|
|
303
|
+
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
304
|
+
};
|
|
305
|
+
instanceOf(obj: any): obj is {
|
|
306
|
+
readonly tag: ClickPosition_Tags.Element;
|
|
307
|
+
readonly inner: Readonly<{
|
|
308
|
+
elementToken: string;
|
|
309
|
+
}>;
|
|
310
|
+
/**
|
|
311
|
+
* @private
|
|
312
|
+
* This field is private and should not be used, use `tag` instead.
|
|
313
|
+
*/
|
|
314
|
+
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
}>;
|
|
318
|
+
export type ClickPosition = InstanceType<typeof ClickPosition['Coordinates' | 'Element']>;
|
|
319
|
+
export declare enum InputDeliveryMode {
|
|
320
|
+
Background = 0,
|
|
321
|
+
Foreground = 1
|
|
212
322
|
}
|
|
213
323
|
export declare enum ClickButton {
|
|
214
324
|
Left = 0,
|
|
@@ -216,17 +326,9 @@ export declare enum ClickButton {
|
|
|
216
326
|
Middle = 2
|
|
217
327
|
}
|
|
218
328
|
export type ClickInput = {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
/**
|
|
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.
|
|
229
|
-
*/
|
|
329
|
+
target: ActionTarget;
|
|
330
|
+
position: ClickPosition;
|
|
331
|
+
deliveryMode: InputDeliveryMode;
|
|
230
332
|
session?: string;
|
|
231
333
|
button?: ClickButton;
|
|
232
334
|
count?: number;
|
|
@@ -235,8 +337,8 @@ export type ClickInput = {
|
|
|
235
337
|
* Generated factory for {@link ClickInput} record objects.
|
|
236
338
|
*/
|
|
237
339
|
export declare const ClickInput: Readonly<{
|
|
238
|
-
create: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "
|
|
239
|
-
new: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "
|
|
340
|
+
create: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "session" | "button" | "count">>) => ClickInput;
|
|
341
|
+
new: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "session" | "button" | "count">>) => ClickInput;
|
|
240
342
|
defaults: () => Partial<ClickInput>;
|
|
241
343
|
}>;
|
|
242
344
|
export type ClipboardReadInput = {
|
|
@@ -409,6 +511,9 @@ export declare const CursorVisualOutput: Readonly<{
|
|
|
409
511
|
new: (partial: Partial<CursorVisualOutput> & Required<Omit<CursorVisualOutput, never>>) => CursorVisualOutput;
|
|
410
512
|
defaults: () => Partial<CursorVisualOutput>;
|
|
411
513
|
}>;
|
|
514
|
+
export declare enum DesktopScope {
|
|
515
|
+
Desktop = 0
|
|
516
|
+
}
|
|
412
517
|
export type DragInput = {
|
|
413
518
|
fromX: number;
|
|
414
519
|
fromY: number;
|
|
@@ -433,10 +538,24 @@ export type DragInput = {
|
|
|
433
538
|
* Generated factory for {@link DragInput} record objects.
|
|
434
539
|
*/
|
|
435
540
|
export declare const DragInput: Readonly<{
|
|
436
|
-
create: (partial: Partial<DragInput> & Required<Omit<DragInput, "target" | "
|
|
437
|
-
new: (partial: Partial<DragInput> & Required<Omit<DragInput, "target" | "
|
|
541
|
+
create: (partial: Partial<DragInput> & Required<Omit<DragInput, "target" | "session" | "button" | "scope" | "durationMs" | "steps" | "modifier">>) => DragInput;
|
|
542
|
+
new: (partial: Partial<DragInput> & Required<Omit<DragInput, "target" | "session" | "button" | "scope" | "durationMs" | "steps" | "modifier">>) => DragInput;
|
|
438
543
|
defaults: () => Partial<DragInput>;
|
|
439
544
|
}>;
|
|
545
|
+
export type ElementFrame = {
|
|
546
|
+
x: number;
|
|
547
|
+
y: number;
|
|
548
|
+
w: number;
|
|
549
|
+
h: number;
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* Generated factory for {@link ElementFrame} record objects.
|
|
553
|
+
*/
|
|
554
|
+
export declare const ElementFrame: Readonly<{
|
|
555
|
+
create: (partial: Partial<ElementFrame> & Required<Omit<ElementFrame, never>>) => ElementFrame;
|
|
556
|
+
new: (partial: Partial<ElementFrame> & Required<Omit<ElementFrame, never>>) => ElementFrame;
|
|
557
|
+
defaults: () => Partial<ElementFrame>;
|
|
558
|
+
}>;
|
|
440
559
|
export type ElementSelector = {
|
|
441
560
|
role?: string;
|
|
442
561
|
labelContains?: string;
|
|
@@ -630,6 +749,26 @@ export declare const GetSessionStateInput: Readonly<{
|
|
|
630
749
|
new: (partial: Partial<GetSessionStateInput> & Required<Omit<GetSessionStateInput, "session">>) => GetSessionStateInput;
|
|
631
750
|
defaults: () => Partial<GetSessionStateInput>;
|
|
632
751
|
}>;
|
|
752
|
+
export type GetWindowStateInput = {
|
|
753
|
+
pid: number;
|
|
754
|
+
windowId: bigint;
|
|
755
|
+
session?: string;
|
|
756
|
+
query?: string;
|
|
757
|
+
includeAccessibilityTree?: boolean;
|
|
758
|
+
includeScreenshot?: boolean;
|
|
759
|
+
screenshotOutFile?: string;
|
|
760
|
+
maxElements?: number;
|
|
761
|
+
maxDepth?: number;
|
|
762
|
+
maxDimension?: number;
|
|
763
|
+
};
|
|
764
|
+
/**
|
|
765
|
+
* Generated factory for {@link GetWindowStateInput} record objects.
|
|
766
|
+
*/
|
|
767
|
+
export declare const GetWindowStateInput: Readonly<{
|
|
768
|
+
create: (partial: Partial<GetWindowStateInput> & Required<Omit<GetWindowStateInput, "session" | "screenshotOutFile" | "query" | "includeAccessibilityTree" | "includeScreenshot" | "maxElements" | "maxDepth" | "maxDimension">>) => GetWindowStateInput;
|
|
769
|
+
new: (partial: Partial<GetWindowStateInput> & Required<Omit<GetWindowStateInput, "session" | "screenshotOutFile" | "query" | "includeAccessibilityTree" | "includeScreenshot" | "maxElements" | "maxDepth" | "maxDimension">>) => GetWindowStateInput;
|
|
770
|
+
defaults: () => Partial<GetWindowStateInput>;
|
|
771
|
+
}>;
|
|
633
772
|
export type HotkeyInput = {
|
|
634
773
|
keys: Array<string>;
|
|
635
774
|
target?: ActionTarget;
|
|
@@ -647,8 +786,8 @@ export type HotkeyInput = {
|
|
|
647
786
|
* Generated factory for {@link HotkeyInput} record objects.
|
|
648
787
|
*/
|
|
649
788
|
export declare const HotkeyInput: Readonly<{
|
|
650
|
-
create: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "target" | "
|
|
651
|
-
new: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "target" | "
|
|
789
|
+
create: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "target" | "session" | "scope">>) => HotkeyInput;
|
|
790
|
+
new: (partial: Partial<HotkeyInput> & Required<Omit<HotkeyInput, "target" | "session" | "scope">>) => HotkeyInput;
|
|
652
791
|
defaults: () => Partial<HotkeyInput>;
|
|
653
792
|
}>;
|
|
654
793
|
/**
|
|
@@ -674,6 +813,26 @@ export declare const InvokeMenuInput: Readonly<{
|
|
|
674
813
|
new: (partial: Partial<InvokeMenuInput> & Required<Omit<InvokeMenuInput, "session">>) => InvokeMenuInput;
|
|
675
814
|
defaults: () => Partial<InvokeMenuInput>;
|
|
676
815
|
}>;
|
|
816
|
+
export type ListAppsInput = {};
|
|
817
|
+
/**
|
|
818
|
+
* Generated factory for {@link ListAppsInput} record objects.
|
|
819
|
+
*/
|
|
820
|
+
export declare const ListAppsInput: Readonly<{
|
|
821
|
+
create: (partial: Partial<ListAppsInput> & Required<Omit<ListAppsInput, never>>) => ListAppsInput;
|
|
822
|
+
new: (partial: Partial<ListAppsInput> & Required<Omit<ListAppsInput, never>>) => ListAppsInput;
|
|
823
|
+
defaults: () => Partial<ListAppsInput>;
|
|
824
|
+
}>;
|
|
825
|
+
export type ListAppsOutput = {
|
|
826
|
+
apps: Array<AppInfo>;
|
|
827
|
+
};
|
|
828
|
+
/**
|
|
829
|
+
* Generated factory for {@link ListAppsOutput} record objects.
|
|
830
|
+
*/
|
|
831
|
+
export declare const ListAppsOutput: Readonly<{
|
|
832
|
+
create: (partial: Partial<ListAppsOutput> & Required<Omit<ListAppsOutput, never>>) => ListAppsOutput;
|
|
833
|
+
new: (partial: Partial<ListAppsOutput> & Required<Omit<ListAppsOutput, never>>) => ListAppsOutput;
|
|
834
|
+
defaults: () => Partial<ListAppsOutput>;
|
|
835
|
+
}>;
|
|
677
836
|
export type ListSessionsInput = {
|
|
678
837
|
/**
|
|
679
838
|
* Maximum number of content-free summaries to return (default 50, max
|
|
@@ -747,6 +906,69 @@ export declare const ListSessionsOutput: Readonly<{
|
|
|
747
906
|
new: (partial: Partial<ListSessionsOutput> & Required<Omit<ListSessionsOutput, "nextCursor">>) => ListSessionsOutput;
|
|
748
907
|
defaults: () => Partial<ListSessionsOutput>;
|
|
749
908
|
}>;
|
|
909
|
+
export type ListWindowsInput = {
|
|
910
|
+
pid?: number;
|
|
911
|
+
onScreenOnly?: boolean;
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
* Generated factory for {@link ListWindowsInput} record objects.
|
|
915
|
+
*/
|
|
916
|
+
export declare const ListWindowsInput: Readonly<{
|
|
917
|
+
create: (partial: Partial<ListWindowsInput> & Required<Omit<ListWindowsInput, "pid" | "onScreenOnly">>) => ListWindowsInput;
|
|
918
|
+
new: (partial: Partial<ListWindowsInput> & Required<Omit<ListWindowsInput, "pid" | "onScreenOnly">>) => ListWindowsInput;
|
|
919
|
+
defaults: () => Partial<ListWindowsInput>;
|
|
920
|
+
}>;
|
|
921
|
+
export type WindowBounds = {
|
|
922
|
+
x: number;
|
|
923
|
+
y: number;
|
|
924
|
+
width: number;
|
|
925
|
+
height: number;
|
|
926
|
+
};
|
|
927
|
+
/**
|
|
928
|
+
* Generated factory for {@link WindowBounds} record objects.
|
|
929
|
+
*/
|
|
930
|
+
export declare const WindowBounds: Readonly<{
|
|
931
|
+
create: (partial: Partial<WindowBounds> & Required<Omit<WindowBounds, never>>) => WindowBounds;
|
|
932
|
+
new: (partial: Partial<WindowBounds> & Required<Omit<WindowBounds, never>>) => WindowBounds;
|
|
933
|
+
defaults: () => Partial<WindowBounds>;
|
|
934
|
+
}>;
|
|
935
|
+
export type WindowInfo = {
|
|
936
|
+
windowId: bigint;
|
|
937
|
+
pid?: number;
|
|
938
|
+
appName: string;
|
|
939
|
+
title: string;
|
|
940
|
+
bounds: WindowBounds;
|
|
941
|
+
isOnScreen: boolean;
|
|
942
|
+
/**
|
|
943
|
+
* Higher values are closer to the front. Null means stacking order is unavailable; callers must not infer an order from array position.
|
|
944
|
+
*/
|
|
945
|
+
zIndex?: bigint;
|
|
946
|
+
layer?: number;
|
|
947
|
+
minimized?: boolean;
|
|
948
|
+
currentSpaceId?: bigint;
|
|
949
|
+
onCurrentSpace?: boolean;
|
|
950
|
+
spaceIds?: Array<bigint>;
|
|
951
|
+
};
|
|
952
|
+
/**
|
|
953
|
+
* Generated factory for {@link WindowInfo} record objects.
|
|
954
|
+
*/
|
|
955
|
+
export declare const WindowInfo: Readonly<{
|
|
956
|
+
create: (partial: Partial<WindowInfo> & Required<Omit<WindowInfo, "pid" | "zIndex" | "layer" | "minimized" | "currentSpaceId" | "onCurrentSpace" | "spaceIds">>) => WindowInfo;
|
|
957
|
+
new: (partial: Partial<WindowInfo> & Required<Omit<WindowInfo, "pid" | "zIndex" | "layer" | "minimized" | "currentSpaceId" | "onCurrentSpace" | "spaceIds">>) => WindowInfo;
|
|
958
|
+
defaults: () => Partial<WindowInfo>;
|
|
959
|
+
}>;
|
|
960
|
+
export type ListWindowsOutput = {
|
|
961
|
+
windows: Array<WindowInfo>;
|
|
962
|
+
currentSpaceId?: bigint;
|
|
963
|
+
};
|
|
964
|
+
/**
|
|
965
|
+
* Generated factory for {@link ListWindowsOutput} record objects.
|
|
966
|
+
*/
|
|
967
|
+
export declare const ListWindowsOutput: Readonly<{
|
|
968
|
+
create: (partial: Partial<ListWindowsOutput> & Required<Omit<ListWindowsOutput, "currentSpaceId">>) => ListWindowsOutput;
|
|
969
|
+
new: (partial: Partial<ListWindowsOutput> & Required<Omit<ListWindowsOutput, "currentSpaceId">>) => ListWindowsOutput;
|
|
970
|
+
defaults: () => Partial<ListWindowsOutput>;
|
|
971
|
+
}>;
|
|
750
972
|
export type MoveCursorInput = {
|
|
751
973
|
x: number;
|
|
752
974
|
y: number;
|
|
@@ -768,8 +990,8 @@ export type MoveCursorInput = {
|
|
|
768
990
|
* Generated factory for {@link MoveCursorInput} record objects.
|
|
769
991
|
*/
|
|
770
992
|
export declare const MoveCursorInput: Readonly<{
|
|
771
|
-
create: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "target" | "
|
|
772
|
-
new: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "target" | "
|
|
993
|
+
create: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "target" | "session" | "scope">>) => MoveCursorInput;
|
|
994
|
+
new: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "target" | "session" | "scope">>) => MoveCursorInput;
|
|
773
995
|
defaults: () => Partial<MoveCursorInput>;
|
|
774
996
|
}>;
|
|
775
997
|
export declare enum VerificationStatus {
|
|
@@ -821,8 +1043,8 @@ export type PressKeyInput = {
|
|
|
821
1043
|
* Generated factory for {@link PressKeyInput} record objects.
|
|
822
1044
|
*/
|
|
823
1045
|
export declare const PressKeyInput: Readonly<{
|
|
824
|
-
create: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "target" | "
|
|
825
|
-
new: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "target" | "
|
|
1046
|
+
create: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "target" | "session" | "modifiers" | "scope">>) => PressKeyInput;
|
|
1047
|
+
new: (partial: Partial<PressKeyInput> & Required<Omit<PressKeyInput, "target" | "session" | "modifiers" | "scope">>) => PressKeyInput;
|
|
826
1048
|
defaults: () => Partial<PressKeyInput>;
|
|
827
1049
|
}>;
|
|
828
1050
|
export declare enum ScrollDirection {
|
|
@@ -856,8 +1078,8 @@ export type ScrollInput = {
|
|
|
856
1078
|
* Generated factory for {@link ScrollInput} record objects.
|
|
857
1079
|
*/
|
|
858
1080
|
export declare const ScrollInput: Readonly<{
|
|
859
|
-
create: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "target" | "
|
|
860
|
-
new: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "target" | "
|
|
1081
|
+
create: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "target" | "session" | "scope" | "by" | "amount">>) => ScrollInput;
|
|
1082
|
+
new: (partial: Partial<ScrollInput> & Required<Omit<ScrollInput, "target" | "session" | "scope" | "by" | "amount">>) => ScrollInput;
|
|
861
1083
|
defaults: () => Partial<ScrollInput>;
|
|
862
1084
|
}>;
|
|
863
1085
|
export declare enum CaptureScope {
|
|
@@ -999,6 +1221,18 @@ export declare const SetWindowFrameInput: Readonly<{
|
|
|
999
1221
|
new: (partial: Partial<SetWindowFrameInput> & Required<Omit<SetWindowFrameInput, "session">>) => SetWindowFrameInput;
|
|
1000
1222
|
defaults: () => Partial<SetWindowFrameInput>;
|
|
1001
1223
|
}>;
|
|
1224
|
+
export type SnapshotImage = {
|
|
1225
|
+
mimeType: string;
|
|
1226
|
+
dataBase64: string;
|
|
1227
|
+
};
|
|
1228
|
+
/**
|
|
1229
|
+
* Generated factory for {@link SnapshotImage} record objects.
|
|
1230
|
+
*/
|
|
1231
|
+
export declare const SnapshotImage: Readonly<{
|
|
1232
|
+
create: (partial: Partial<SnapshotImage> & Required<Omit<SnapshotImage, never>>) => SnapshotImage;
|
|
1233
|
+
new: (partial: Partial<SnapshotImage> & Required<Omit<SnapshotImage, never>>) => SnapshotImage;
|
|
1234
|
+
defaults: () => Partial<SnapshotImage>;
|
|
1235
|
+
}>;
|
|
1002
1236
|
export type StartSessionInput = {
|
|
1003
1237
|
/**
|
|
1004
1238
|
* Optional stable public label for this run (e.g. "research-run-1").
|
|
@@ -1082,8 +1316,8 @@ export type TypeTextInput = {
|
|
|
1082
1316
|
* Generated factory for {@link TypeTextInput} record objects.
|
|
1083
1317
|
*/
|
|
1084
1318
|
export declare const TypeTextInput: Readonly<{
|
|
1085
|
-
create: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "target" | "
|
|
1086
|
-
new: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "target" | "
|
|
1319
|
+
create: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "target" | "session" | "scope">>) => TypeTextInput;
|
|
1320
|
+
new: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "target" | "session" | "scope">>) => TypeTextInput;
|
|
1087
1321
|
defaults: () => Partial<TypeTextInput>;
|
|
1088
1322
|
}>;
|
|
1089
1323
|
export type VerifyStateInput = {
|
|
@@ -1123,8 +1357,8 @@ export type VerifyStateInput = {
|
|
|
1123
1357
|
* Generated factory for {@link VerifyStateInput} record objects.
|
|
1124
1358
|
*/
|
|
1125
1359
|
export declare const VerifyStateInput: Readonly<{
|
|
1126
|
-
create: (partial: Partial<VerifyStateInput> & Required<Omit<VerifyStateInput, "session" | "
|
|
1127
|
-
new: (partial: Partial<VerifyStateInput> & Required<Omit<VerifyStateInput, "session" | "
|
|
1360
|
+
create: (partial: Partial<VerifyStateInput> & Required<Omit<VerifyStateInput, "session" | "includeScreenshot" | "timeoutMs" | "stableSamples">>) => VerifyStateInput;
|
|
1361
|
+
new: (partial: Partial<VerifyStateInput> & Required<Omit<VerifyStateInput, "session" | "includeScreenshot" | "timeoutMs" | "stableSamples">>) => VerifyStateInput;
|
|
1128
1362
|
defaults: () => Partial<VerifyStateInput>;
|
|
1129
1363
|
}>;
|
|
1130
1364
|
export type VerifyStateOutput = {
|
|
@@ -1142,6 +1376,68 @@ export declare const VerifyStateOutput: Readonly<{
|
|
|
1142
1376
|
new: (partial: Partial<VerifyStateOutput> & Required<Omit<VerifyStateOutput, never>>) => VerifyStateOutput;
|
|
1143
1377
|
defaults: () => Partial<VerifyStateOutput>;
|
|
1144
1378
|
}>;
|
|
1379
|
+
export type WindowElement = {
|
|
1380
|
+
elementIndex: bigint;
|
|
1381
|
+
role: string;
|
|
1382
|
+
depth: number;
|
|
1383
|
+
elementToken?: string;
|
|
1384
|
+
label?: string;
|
|
1385
|
+
value?: string;
|
|
1386
|
+
valueDescription?: string;
|
|
1387
|
+
enabled?: boolean;
|
|
1388
|
+
selected?: boolean;
|
|
1389
|
+
inWebContent?: boolean;
|
|
1390
|
+
actions?: Array<string>;
|
|
1391
|
+
parentIndex?: bigint;
|
|
1392
|
+
frame?: ElementFrame;
|
|
1393
|
+
min?: number;
|
|
1394
|
+
max?: number;
|
|
1395
|
+
};
|
|
1396
|
+
/**
|
|
1397
|
+
* Generated factory for {@link WindowElement} record objects.
|
|
1398
|
+
*/
|
|
1399
|
+
export declare const WindowElement: Readonly<{
|
|
1400
|
+
create: (partial: Partial<WindowElement> & Required<Omit<WindowElement, "elementToken" | "frame" | "enabled" | "selected" | "label" | "value" | "valueDescription" | "inWebContent" | "actions" | "parentIndex" | "min" | "max">>) => WindowElement;
|
|
1401
|
+
new: (partial: Partial<WindowElement> & Required<Omit<WindowElement, "elementToken" | "frame" | "enabled" | "selected" | "label" | "value" | "valueDescription" | "inWebContent" | "actions" | "parentIndex" | "min" | "max">>) => WindowElement;
|
|
1402
|
+
defaults: () => Partial<WindowElement>;
|
|
1403
|
+
}>;
|
|
1404
|
+
export type WindowStateOutput = {
|
|
1405
|
+
pid: number;
|
|
1406
|
+
windowId: bigint;
|
|
1407
|
+
snapshotId?: string;
|
|
1408
|
+
appName?: string;
|
|
1409
|
+
windowTitle?: string;
|
|
1410
|
+
treeMarkdown?: string;
|
|
1411
|
+
elements?: Array<WindowElement>;
|
|
1412
|
+
elementCount?: bigint;
|
|
1413
|
+
totalElementCount?: bigint;
|
|
1414
|
+
returnedElementCount?: bigint;
|
|
1415
|
+
filteredElementCount?: bigint;
|
|
1416
|
+
elementsComplete?: boolean;
|
|
1417
|
+
degraded?: boolean;
|
|
1418
|
+
degradedReason?: string;
|
|
1419
|
+
truncated?: boolean;
|
|
1420
|
+
truncationReason?: string;
|
|
1421
|
+
screenshotWidth?: number;
|
|
1422
|
+
screenshotHeight?: number;
|
|
1423
|
+
screenshotScale?: number;
|
|
1424
|
+
screenshotMimeType?: string;
|
|
1425
|
+
screenshotFilePath?: string;
|
|
1426
|
+
screenshotFrameValid?: boolean;
|
|
1427
|
+
windowBounds?: WindowBounds;
|
|
1428
|
+
/**
|
|
1429
|
+
* Image content belongs to the MCP envelope, never structuredContent.
|
|
1430
|
+
*/
|
|
1431
|
+
images: Array<SnapshotImage>;
|
|
1432
|
+
};
|
|
1433
|
+
/**
|
|
1434
|
+
* Generated factory for {@link WindowStateOutput} record objects.
|
|
1435
|
+
*/
|
|
1436
|
+
export declare const WindowStateOutput: Readonly<{
|
|
1437
|
+
create: (partial: Partial<WindowStateOutput> & Required<Omit<WindowStateOutput, "appName" | "snapshotId" | "windowTitle" | "treeMarkdown" | "elements" | "elementCount" | "totalElementCount" | "returnedElementCount" | "filteredElementCount" | "elementsComplete" | "degraded" | "degradedReason" | "truncated" | "truncationReason" | "screenshotWidth" | "screenshotHeight" | "screenshotScale" | "screenshotMimeType" | "screenshotFilePath" | "screenshotFrameValid" | "windowBounds">>) => WindowStateOutput;
|
|
1438
|
+
new: (partial: Partial<WindowStateOutput> & Required<Omit<WindowStateOutput, "appName" | "snapshotId" | "windowTitle" | "treeMarkdown" | "elements" | "elementCount" | "totalElementCount" | "returnedElementCount" | "filteredElementCount" | "elementsComplete" | "degraded" | "degradedReason" | "truncated" | "truncationReason" | "screenshotWidth" | "screenshotHeight" | "screenshotScale" | "screenshotMimeType" | "screenshotFilePath" | "screenshotFrameValid" | "windowBounds">>) => WindowStateOutput;
|
|
1439
|
+
defaults: () => Partial<WindowStateOutput>;
|
|
1440
|
+
}>;
|
|
1145
1441
|
export declare enum Platform {
|
|
1146
1442
|
Macos = 0,
|
|
1147
1443
|
Windows = 1,
|
|
@@ -1238,6 +1534,13 @@ declare const _default: Readonly<{
|
|
|
1238
1534
|
lift(value: UniffiByteArray): ActionTarget;
|
|
1239
1535
|
lower(value: ActionTarget, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1240
1536
|
};
|
|
1537
|
+
FfiConverterTypeAppInfo: {
|
|
1538
|
+
read(from: RustBuffer): AppInfo;
|
|
1539
|
+
write(value: AppInfo, into: RustBuffer): void;
|
|
1540
|
+
allocationSize(value: AppInfo): number;
|
|
1541
|
+
lift(value: UniffiByteArray): AppInfo;
|
|
1542
|
+
lower(value: AppInfo, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1543
|
+
};
|
|
1241
1544
|
FfiConverterTypeBoundsExpectation: {
|
|
1242
1545
|
read(from: RustBuffer): BoundsExpectation;
|
|
1243
1546
|
write(value: BoundsExpectation, into: RustBuffer): void;
|
|
@@ -1266,6 +1569,13 @@ declare const _default: Readonly<{
|
|
|
1266
1569
|
lift(value: UniffiByteArray): ClickInput;
|
|
1267
1570
|
lower(value: ClickInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1268
1571
|
};
|
|
1572
|
+
FfiConverterTypeClickPosition: {
|
|
1573
|
+
read(from: RustBuffer): ClickPosition;
|
|
1574
|
+
write(value: ClickPosition, into: RustBuffer): void;
|
|
1575
|
+
allocationSize(value: ClickPosition): number;
|
|
1576
|
+
lift(value: UniffiByteArray): ClickPosition;
|
|
1577
|
+
lower(value: ClickPosition, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1578
|
+
};
|
|
1269
1579
|
FfiConverterTypeClipboardReadInput: {
|
|
1270
1580
|
read(from: RustBuffer): ClipboardReadInput;
|
|
1271
1581
|
write(value: ClipboardReadInput, into: RustBuffer): void;
|
|
@@ -1364,6 +1674,13 @@ declare const _default: Readonly<{
|
|
|
1364
1674
|
lift(value: UniffiByteArray): EffectiveScope;
|
|
1365
1675
|
lower(value: EffectiveScope, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1366
1676
|
};
|
|
1677
|
+
FfiConverterTypeElementFrame: {
|
|
1678
|
+
read(from: RustBuffer): ElementFrame;
|
|
1679
|
+
write(value: ElementFrame, into: RustBuffer): void;
|
|
1680
|
+
allocationSize(value: ElementFrame): number;
|
|
1681
|
+
lift(value: UniffiByteArray): ElementFrame;
|
|
1682
|
+
lower(value: ElementFrame, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1683
|
+
};
|
|
1367
1684
|
FfiConverterTypeElementPredicate: {
|
|
1368
1685
|
read(from: RustBuffer): ElementPredicate;
|
|
1369
1686
|
write(value: ElementPredicate, into: RustBuffer): void;
|
|
@@ -1455,6 +1772,13 @@ declare const _default: Readonly<{
|
|
|
1455
1772
|
lift(value: UniffiByteArray): GetSessionStateInput;
|
|
1456
1773
|
lower(value: GetSessionStateInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1457
1774
|
};
|
|
1775
|
+
FfiConverterTypeGetWindowStateInput: {
|
|
1776
|
+
read(from: RustBuffer): GetWindowStateInput;
|
|
1777
|
+
write(value: GetWindowStateInput, into: RustBuffer): void;
|
|
1778
|
+
allocationSize(value: GetWindowStateInput): number;
|
|
1779
|
+
lift(value: UniffiByteArray): GetWindowStateInput;
|
|
1780
|
+
lower(value: GetWindowStateInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1781
|
+
};
|
|
1458
1782
|
FfiConverterTypeHotkeyInput: {
|
|
1459
1783
|
read(from: RustBuffer): HotkeyInput;
|
|
1460
1784
|
write(value: HotkeyInput, into: RustBuffer): void;
|
|
@@ -1462,6 +1786,13 @@ declare const _default: Readonly<{
|
|
|
1462
1786
|
lift(value: UniffiByteArray): HotkeyInput;
|
|
1463
1787
|
lower(value: HotkeyInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1464
1788
|
};
|
|
1789
|
+
FfiConverterTypeInputDeliveryMode: {
|
|
1790
|
+
read(from: RustBuffer): InputDeliveryMode;
|
|
1791
|
+
write(value: InputDeliveryMode, into: RustBuffer): void;
|
|
1792
|
+
allocationSize(value: InputDeliveryMode): number;
|
|
1793
|
+
lift(value: UniffiByteArray): InputDeliveryMode;
|
|
1794
|
+
lower(value: InputDeliveryMode, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1795
|
+
};
|
|
1465
1796
|
FfiConverterTypeInvokeMenuInput: {
|
|
1466
1797
|
read(from: RustBuffer): InvokeMenuInput;
|
|
1467
1798
|
write(value: InvokeMenuInput, into: RustBuffer): void;
|
|
@@ -1469,6 +1800,20 @@ declare const _default: Readonly<{
|
|
|
1469
1800
|
lift(value: UniffiByteArray): InvokeMenuInput;
|
|
1470
1801
|
lower(value: InvokeMenuInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1471
1802
|
};
|
|
1803
|
+
FfiConverterTypeListAppsInput: {
|
|
1804
|
+
read(from: RustBuffer): ListAppsInput;
|
|
1805
|
+
write(value: ListAppsInput, into: RustBuffer): void;
|
|
1806
|
+
allocationSize(value: ListAppsInput): number;
|
|
1807
|
+
lift(value: UniffiByteArray): ListAppsInput;
|
|
1808
|
+
lower(value: ListAppsInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1809
|
+
};
|
|
1810
|
+
FfiConverterTypeListAppsOutput: {
|
|
1811
|
+
read(from: RustBuffer): ListAppsOutput;
|
|
1812
|
+
write(value: ListAppsOutput, into: RustBuffer): void;
|
|
1813
|
+
allocationSize(value: ListAppsOutput): number;
|
|
1814
|
+
lift(value: UniffiByteArray): ListAppsOutput;
|
|
1815
|
+
lower(value: ListAppsOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1816
|
+
};
|
|
1472
1817
|
FfiConverterTypeListSessionsInput: {
|
|
1473
1818
|
read(from: RustBuffer): ListSessionsInput;
|
|
1474
1819
|
write(value: ListSessionsInput, into: RustBuffer): void;
|
|
@@ -1483,6 +1828,20 @@ declare const _default: Readonly<{
|
|
|
1483
1828
|
lift(value: UniffiByteArray): ListSessionsOutput;
|
|
1484
1829
|
lower(value: ListSessionsOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1485
1830
|
};
|
|
1831
|
+
FfiConverterTypeListWindowsInput: {
|
|
1832
|
+
read(from: RustBuffer): ListWindowsInput;
|
|
1833
|
+
write(value: ListWindowsInput, into: RustBuffer): void;
|
|
1834
|
+
allocationSize(value: ListWindowsInput): number;
|
|
1835
|
+
lift(value: UniffiByteArray): ListWindowsInput;
|
|
1836
|
+
lower(value: ListWindowsInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1837
|
+
};
|
|
1838
|
+
FfiConverterTypeListWindowsOutput: {
|
|
1839
|
+
read(from: RustBuffer): ListWindowsOutput;
|
|
1840
|
+
write(value: ListWindowsOutput, into: RustBuffer): void;
|
|
1841
|
+
allocationSize(value: ListWindowsOutput): number;
|
|
1842
|
+
lift(value: UniffiByteArray): ListWindowsOutput;
|
|
1843
|
+
lower(value: ListWindowsOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1844
|
+
};
|
|
1486
1845
|
FfiConverterTypeMoveCursorInput: {
|
|
1487
1846
|
read(from: RustBuffer): MoveCursorInput;
|
|
1488
1847
|
write(value: MoveCursorInput, into: RustBuffer): void;
|
|
@@ -1616,6 +1975,13 @@ declare const _default: Readonly<{
|
|
|
1616
1975
|
lift(value: UniffiByteArray): SetWindowFrameInput;
|
|
1617
1976
|
lower(value: SetWindowFrameInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1618
1977
|
};
|
|
1978
|
+
FfiConverterTypeSnapshotImage: {
|
|
1979
|
+
read(from: RustBuffer): SnapshotImage;
|
|
1980
|
+
write(value: SnapshotImage, into: RustBuffer): void;
|
|
1981
|
+
allocationSize(value: SnapshotImage): number;
|
|
1982
|
+
lift(value: UniffiByteArray): SnapshotImage;
|
|
1983
|
+
lower(value: SnapshotImage, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1984
|
+
};
|
|
1619
1985
|
FfiConverterTypeStartSessionInput: {
|
|
1620
1986
|
read(from: RustBuffer): StartSessionInput;
|
|
1621
1987
|
write(value: StartSessionInput, into: RustBuffer): void;
|
|
@@ -1672,6 +2038,27 @@ declare const _default: Readonly<{
|
|
|
1672
2038
|
lift(value: UniffiByteArray): VerifyStateOutput;
|
|
1673
2039
|
lower(value: VerifyStateOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1674
2040
|
};
|
|
2041
|
+
FfiConverterTypeWindowBounds: {
|
|
2042
|
+
read(from: RustBuffer): WindowBounds;
|
|
2043
|
+
write(value: WindowBounds, into: RustBuffer): void;
|
|
2044
|
+
allocationSize(value: WindowBounds): number;
|
|
2045
|
+
lift(value: UniffiByteArray): WindowBounds;
|
|
2046
|
+
lower(value: WindowBounds, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2047
|
+
};
|
|
2048
|
+
FfiConverterTypeWindowElement: {
|
|
2049
|
+
read(from: RustBuffer): WindowElement;
|
|
2050
|
+
write(value: WindowElement, into: RustBuffer): void;
|
|
2051
|
+
allocationSize(value: WindowElement): number;
|
|
2052
|
+
lift(value: UniffiByteArray): WindowElement;
|
|
2053
|
+
lower(value: WindowElement, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2054
|
+
};
|
|
2055
|
+
FfiConverterTypeWindowInfo: {
|
|
2056
|
+
read(from: RustBuffer): WindowInfo;
|
|
2057
|
+
write(value: WindowInfo, into: RustBuffer): void;
|
|
2058
|
+
allocationSize(value: WindowInfo): number;
|
|
2059
|
+
lift(value: UniffiByteArray): WindowInfo;
|
|
2060
|
+
lower(value: WindowInfo, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2061
|
+
};
|
|
1675
2062
|
FfiConverterTypeWindowPredicate: {
|
|
1676
2063
|
read(from: RustBuffer): WindowPredicate;
|
|
1677
2064
|
write(value: WindowPredicate, into: RustBuffer): void;
|
|
@@ -1679,6 +2066,13 @@ declare const _default: Readonly<{
|
|
|
1679
2066
|
lift(value: UniffiByteArray): WindowPredicate;
|
|
1680
2067
|
lower(value: WindowPredicate, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1681
2068
|
};
|
|
2069
|
+
FfiConverterTypeWindowStateOutput: {
|
|
2070
|
+
read(from: RustBuffer): WindowStateOutput;
|
|
2071
|
+
write(value: WindowStateOutput, into: RustBuffer): void;
|
|
2072
|
+
allocationSize(value: WindowStateOutput): number;
|
|
2073
|
+
lift(value: UniffiByteArray): WindowStateOutput;
|
|
2074
|
+
lower(value: WindowStateOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2075
|
+
};
|
|
1682
2076
|
};
|
|
1683
2077
|
}>;
|
|
1684
2078
|
export default _default;
|