@trycua/cua-driver 0.14.2 → 0.16.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/dist/native/cua_driver_contract.d.ts +516 -0
- package/dist/native/cua_driver_contract.js +999 -5
- package/dist/native/cua_driver_sdk-ffi.d.ts +16 -0
- package/dist/native/cua_driver_sdk-ffi.js +80 -0
- package/dist/native/cua_driver_sdk.d.ts +53 -4
- package/dist/native/cua_driver_sdk.js +267 -6
- package/package.json +7 -7
|
@@ -1,4 +1,107 @@
|
|
|
1
1
|
import { type UniffiByteArray, RustBuffer } from "@ubjs/core";
|
|
2
|
+
export declare enum ActionDeliveryMode {
|
|
3
|
+
Background = 0,
|
|
4
|
+
Foreground = 1,
|
|
5
|
+
NotApplicable = 2,
|
|
6
|
+
Unknown = 3
|
|
7
|
+
}
|
|
8
|
+
export type ActionDelivery = {
|
|
9
|
+
mode: ActionDeliveryMode;
|
|
10
|
+
deliveredCount?: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Generated factory for {@link ActionDelivery} record objects.
|
|
14
|
+
*/
|
|
15
|
+
export declare const ActionDelivery: Readonly<{
|
|
16
|
+
create: (partial: Partial<ActionDelivery> & Required<Omit<ActionDelivery, "deliveredCount">>) => ActionDelivery;
|
|
17
|
+
new: (partial: Partial<ActionDelivery> & Required<Omit<ActionDelivery, "deliveredCount">>) => ActionDelivery;
|
|
18
|
+
defaults: () => Partial<ActionDelivery>;
|
|
19
|
+
}>;
|
|
20
|
+
export declare enum ActionEscalationTarget {
|
|
21
|
+
Pixel = 0,
|
|
22
|
+
Foreground = 1,
|
|
23
|
+
Page = 2,
|
|
24
|
+
Session = 3
|
|
25
|
+
}
|
|
26
|
+
export declare enum ActionEscalationReason {
|
|
27
|
+
RouteUnavailable = 0,
|
|
28
|
+
DeliveryFailed = 1,
|
|
29
|
+
EffectUnconfirmed = 2,
|
|
30
|
+
SuspectedNoop = 3,
|
|
31
|
+
PermissionRequired = 4
|
|
32
|
+
}
|
|
33
|
+
export type ActionEscalation = {
|
|
34
|
+
target: ActionEscalationTarget;
|
|
35
|
+
reason: ActionEscalationReason;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Generated factory for {@link ActionEscalation} record objects.
|
|
39
|
+
*/
|
|
40
|
+
export declare const ActionEscalation: Readonly<{
|
|
41
|
+
create: (partial: Partial<ActionEscalation> & Required<Omit<ActionEscalation, never>>) => ActionEscalation;
|
|
42
|
+
new: (partial: Partial<ActionEscalation> & Required<Omit<ActionEscalation, never>>) => ActionEscalation;
|
|
43
|
+
defaults: () => Partial<ActionEscalation>;
|
|
44
|
+
}>;
|
|
45
|
+
export declare enum ActionEvidenceKind {
|
|
46
|
+
ValueReadback = 0,
|
|
47
|
+
WindowChange = 1
|
|
48
|
+
}
|
|
49
|
+
export type ActionEvidence = {
|
|
50
|
+
kind: ActionEvidenceKind;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Generated factory for {@link ActionEvidence} record objects.
|
|
54
|
+
*/
|
|
55
|
+
export declare const ActionEvidence: Readonly<{
|
|
56
|
+
create: (partial: Partial<ActionEvidence> & Required<Omit<ActionEvidence, never>>) => ActionEvidence;
|
|
57
|
+
new: (partial: Partial<ActionEvidence> & Required<Omit<ActionEvidence, never>>) => ActionEvidence;
|
|
58
|
+
defaults: () => Partial<ActionEvidence>;
|
|
59
|
+
}>;
|
|
60
|
+
export declare enum ActionEffect {
|
|
61
|
+
Confirmed = 0,
|
|
62
|
+
Partial = 1,
|
|
63
|
+
Unverifiable = 2,
|
|
64
|
+
SuspectedNoop = 3,
|
|
65
|
+
Refused = 4
|
|
66
|
+
}
|
|
67
|
+
export declare enum ActionRoute {
|
|
68
|
+
Accessibility = 0,
|
|
69
|
+
SyntheticEvents = 1,
|
|
70
|
+
GlobalInput = 2,
|
|
71
|
+
SystemApi = 3,
|
|
72
|
+
Dom = 4,
|
|
73
|
+
TrustedInput = 5
|
|
74
|
+
}
|
|
75
|
+
export type ActionResult = {
|
|
76
|
+
effect: ActionEffect;
|
|
77
|
+
route: ActionRoute;
|
|
78
|
+
delivery?: ActionDelivery;
|
|
79
|
+
evidence?: Array<ActionEvidence>;
|
|
80
|
+
escalation?: ActionEscalation;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Generated factory for {@link ActionResult} record objects.
|
|
84
|
+
*/
|
|
85
|
+
export declare const ActionResult: Readonly<{
|
|
86
|
+
create: (partial: Partial<ActionResult> & Required<Omit<ActionResult, "delivery" | "evidence" | "escalation">>) => ActionResult;
|
|
87
|
+
new: (partial: Partial<ActionResult> & Required<Omit<ActionResult, "delivery" | "evidence" | "escalation">>) => ActionResult;
|
|
88
|
+
defaults: () => Partial<ActionResult>;
|
|
89
|
+
}>;
|
|
90
|
+
export type BoundsExpectation = {
|
|
91
|
+
x: number;
|
|
92
|
+
y: number;
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
|
+
tolerancePx?: number;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Generated factory for {@link BoundsExpectation} record objects.
|
|
99
|
+
*/
|
|
100
|
+
export declare const BoundsExpectation: Readonly<{
|
|
101
|
+
create: (partial: Partial<BoundsExpectation> & Required<Omit<BoundsExpectation, "tolerancePx">>) => BoundsExpectation;
|
|
102
|
+
new: (partial: Partial<BoundsExpectation> & Required<Omit<BoundsExpectation, "tolerancePx">>) => BoundsExpectation;
|
|
103
|
+
defaults: () => Partial<BoundsExpectation>;
|
|
104
|
+
}>;
|
|
2
105
|
export declare enum DesktopScope {
|
|
3
106
|
Desktop = 0
|
|
4
107
|
}
|
|
@@ -26,6 +129,81 @@ export declare const ClickInput: Readonly<{
|
|
|
26
129
|
new: (partial: Partial<ClickInput> & Required<Omit<ClickInput, "session" | "button" | "count">>) => ClickInput;
|
|
27
130
|
defaults: () => Partial<ClickInput>;
|
|
28
131
|
}>;
|
|
132
|
+
export type ClipboardReadInput = {
|
|
133
|
+
/**
|
|
134
|
+
* Return plain-text clipboard content in addition to the available types.
|
|
135
|
+
* Clipboard content is privacy-sensitive and is never retained in telemetry.
|
|
136
|
+
*/
|
|
137
|
+
includeText: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Optional session id.
|
|
140
|
+
*/
|
|
141
|
+
session?: string;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Generated factory for {@link ClipboardReadInput} record objects.
|
|
145
|
+
*/
|
|
146
|
+
export declare const ClipboardReadInput: Readonly<{
|
|
147
|
+
create: (partial: Partial<ClipboardReadInput> & Required<Omit<ClipboardReadInput, "session">>) => ClipboardReadInput;
|
|
148
|
+
new: (partial: Partial<ClipboardReadInput> & Required<Omit<ClipboardReadInput, "session">>) => ClipboardReadInput;
|
|
149
|
+
defaults: () => Partial<ClipboardReadInput>;
|
|
150
|
+
}>;
|
|
151
|
+
export type ClipboardReadOutput = {
|
|
152
|
+
supported: boolean;
|
|
153
|
+
types: Array<string>;
|
|
154
|
+
text?: string;
|
|
155
|
+
privacySensitive: boolean;
|
|
156
|
+
contentRedactedFromTelemetry: boolean;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Generated factory for {@link ClipboardReadOutput} record objects.
|
|
160
|
+
*/
|
|
161
|
+
export declare const ClipboardReadOutput: Readonly<{
|
|
162
|
+
create: (partial: Partial<ClipboardReadOutput> & Required<Omit<ClipboardReadOutput, "text">>) => ClipboardReadOutput;
|
|
163
|
+
new: (partial: Partial<ClipboardReadOutput> & Required<Omit<ClipboardReadOutput, "text">>) => ClipboardReadOutput;
|
|
164
|
+
defaults: () => Partial<ClipboardReadOutput>;
|
|
165
|
+
}>;
|
|
166
|
+
export type ClipboardWriteInput = {
|
|
167
|
+
/**
|
|
168
|
+
* Plain text to place on the clipboard.
|
|
169
|
+
*/
|
|
170
|
+
text?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Absolute path to a local image to place on the clipboard.
|
|
173
|
+
*/
|
|
174
|
+
imagePath?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Absolute path to a local file to place on the clipboard as a file URL.
|
|
177
|
+
*/
|
|
178
|
+
filePath?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Optional session id.
|
|
181
|
+
*/
|
|
182
|
+
session?: string;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Generated factory for {@link ClipboardWriteInput} record objects.
|
|
186
|
+
*/
|
|
187
|
+
export declare const ClipboardWriteInput: Readonly<{
|
|
188
|
+
create: (partial: Partial<ClipboardWriteInput> & Required<Omit<ClipboardWriteInput, "session" | "text" | "imagePath" | "filePath">>) => ClipboardWriteInput;
|
|
189
|
+
new: (partial: Partial<ClipboardWriteInput> & Required<Omit<ClipboardWriteInput, "session" | "text" | "imagePath" | "filePath">>) => ClipboardWriteInput;
|
|
190
|
+
defaults: () => Partial<ClipboardWriteInput>;
|
|
191
|
+
}>;
|
|
192
|
+
export type ClipboardWriteOutput = {
|
|
193
|
+
supported: boolean;
|
|
194
|
+
writtenType: string;
|
|
195
|
+
types: Array<string>;
|
|
196
|
+
privacySensitive: boolean;
|
|
197
|
+
contentRedactedFromTelemetry: boolean;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Generated factory for {@link ClipboardWriteOutput} record objects.
|
|
201
|
+
*/
|
|
202
|
+
export declare const ClipboardWriteOutput: Readonly<{
|
|
203
|
+
create: (partial: Partial<ClipboardWriteOutput> & Required<Omit<ClipboardWriteOutput, never>>) => ClipboardWriteOutput;
|
|
204
|
+
new: (partial: Partial<ClipboardWriteOutput> & Required<Omit<ClipboardWriteOutput, never>>) => ClipboardWriteOutput;
|
|
205
|
+
defaults: () => Partial<ClipboardWriteOutput>;
|
|
206
|
+
}>;
|
|
29
207
|
export type CursorMotionOutput = {
|
|
30
208
|
startHandle: number;
|
|
31
209
|
endHandle: number;
|
|
@@ -142,6 +320,40 @@ export declare const DragInput: Readonly<{
|
|
|
142
320
|
new: (partial: Partial<DragInput> & Required<Omit<DragInput, "session" | "button" | "durationMs" | "steps" | "modifier">>) => DragInput;
|
|
143
321
|
defaults: () => Partial<DragInput>;
|
|
144
322
|
}>;
|
|
323
|
+
export type ElementSelector = {
|
|
324
|
+
role?: string;
|
|
325
|
+
labelContains?: string;
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* Generated factory for {@link ElementSelector} record objects.
|
|
329
|
+
*/
|
|
330
|
+
export declare const ElementSelector: Readonly<{
|
|
331
|
+
create: (partial: Partial<ElementSelector> & Required<Omit<ElementSelector, "role" | "labelContains">>) => ElementSelector;
|
|
332
|
+
new: (partial: Partial<ElementSelector> & Required<Omit<ElementSelector, "role" | "labelContains">>) => ElementSelector;
|
|
333
|
+
defaults: () => Partial<ElementSelector>;
|
|
334
|
+
}>;
|
|
335
|
+
export type ElementPredicate = {
|
|
336
|
+
selector: ElementSelector;
|
|
337
|
+
/**
|
|
338
|
+
* Assert that at least one trusted element matches the selector.
|
|
339
|
+
*
|
|
340
|
+
* Element walks are not yet exhaustive on every platform, so absence
|
|
341
|
+
* cannot be proven. `false` is rejected instead of returning an
|
|
342
|
+
* indefinitely-unknown predicate.
|
|
343
|
+
*/
|
|
344
|
+
exists?: boolean;
|
|
345
|
+
valueEquals?: string;
|
|
346
|
+
enabled?: boolean;
|
|
347
|
+
selected?: boolean;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Generated factory for {@link ElementPredicate} record objects.
|
|
351
|
+
*/
|
|
352
|
+
export declare const ElementPredicate: Readonly<{
|
|
353
|
+
create: (partial: Partial<ElementPredicate> & Required<Omit<ElementPredicate, "exists" | "valueEquals" | "enabled" | "selected">>) => ElementPredicate;
|
|
354
|
+
new: (partial: Partial<ElementPredicate> & Required<Omit<ElementPredicate, "exists" | "valueEquals" | "enabled" | "selected">>) => ElementPredicate;
|
|
355
|
+
defaults: () => Partial<ElementPredicate>;
|
|
356
|
+
}>;
|
|
145
357
|
export type EndSessionInput = {
|
|
146
358
|
/**
|
|
147
359
|
* The session id to end.
|
|
@@ -311,6 +523,37 @@ export declare const MoveCursorInput: Readonly<{
|
|
|
311
523
|
new: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "session">>) => MoveCursorInput;
|
|
312
524
|
defaults: () => Partial<MoveCursorInput>;
|
|
313
525
|
}>;
|
|
526
|
+
export declare enum VerificationStatus {
|
|
527
|
+
Satisfied = 0,
|
|
528
|
+
Unsatisfied = 1,
|
|
529
|
+
Unknown = 2
|
|
530
|
+
}
|
|
531
|
+
export declare enum UnknownReason {
|
|
532
|
+
InvalidPredicate = 0,
|
|
533
|
+
UnsupportedPredicate = 1,
|
|
534
|
+
UntrustedSource = 2,
|
|
535
|
+
MultiMatch = 3,
|
|
536
|
+
TargetMissing = 4,
|
|
537
|
+
ObservationUnavailable = 5,
|
|
538
|
+
StabilityUnproven = 6
|
|
539
|
+
}
|
|
540
|
+
export type PredicateOutcome = {
|
|
541
|
+
index: bigint;
|
|
542
|
+
status: VerificationStatus;
|
|
543
|
+
unknownReason?: UnknownReason;
|
|
544
|
+
/**
|
|
545
|
+
* Normalized, bounded JSON projection of the matched state.
|
|
546
|
+
*/
|
|
547
|
+
observedJson?: string;
|
|
548
|
+
};
|
|
549
|
+
/**
|
|
550
|
+
* Generated factory for {@link PredicateOutcome} record objects.
|
|
551
|
+
*/
|
|
552
|
+
export declare const PredicateOutcome: Readonly<{
|
|
553
|
+
create: (partial: Partial<PredicateOutcome> & Required<Omit<PredicateOutcome, "unknownReason" | "observedJson">>) => PredicateOutcome;
|
|
554
|
+
new: (partial: Partial<PredicateOutcome> & Required<Omit<PredicateOutcome, "unknownReason" | "observedJson">>) => PredicateOutcome;
|
|
555
|
+
defaults: () => Partial<PredicateOutcome>;
|
|
556
|
+
}>;
|
|
314
557
|
export type PressKeyInput = {
|
|
315
558
|
key: string;
|
|
316
559
|
scope: DesktopScope;
|
|
@@ -467,6 +710,26 @@ export declare const SetAgentCursorThemeOutput: Readonly<{
|
|
|
467
710
|
new: (partial: Partial<SetAgentCursorThemeOutput> & Required<Omit<SetAgentCursorThemeOutput, never>>) => SetAgentCursorThemeOutput;
|
|
468
711
|
defaults: () => Partial<SetAgentCursorThemeOutput>;
|
|
469
712
|
}>;
|
|
713
|
+
export type SetWindowFrameInput = {
|
|
714
|
+
pid: number;
|
|
715
|
+
windowId: bigint;
|
|
716
|
+
x: number;
|
|
717
|
+
y: number;
|
|
718
|
+
width: number;
|
|
719
|
+
height: number;
|
|
720
|
+
/**
|
|
721
|
+
* Optional session id.
|
|
722
|
+
*/
|
|
723
|
+
session?: string;
|
|
724
|
+
};
|
|
725
|
+
/**
|
|
726
|
+
* Generated factory for {@link SetWindowFrameInput} record objects.
|
|
727
|
+
*/
|
|
728
|
+
export declare const SetWindowFrameInput: Readonly<{
|
|
729
|
+
create: (partial: Partial<SetWindowFrameInput> & Required<Omit<SetWindowFrameInput, "session">>) => SetWindowFrameInput;
|
|
730
|
+
new: (partial: Partial<SetWindowFrameInput> & Required<Omit<SetWindowFrameInput, "session">>) => SetWindowFrameInput;
|
|
731
|
+
defaults: () => Partial<SetWindowFrameInput>;
|
|
732
|
+
}>;
|
|
470
733
|
export type StartSessionInput = {
|
|
471
734
|
/**
|
|
472
735
|
* Stable session id for this run (e.g. "research-run-1").
|
|
@@ -506,6 +769,30 @@ export declare const StartSessionOutput: Readonly<{
|
|
|
506
769
|
new: (partial: Partial<StartSessionOutput> & Required<Omit<StartSessionOutput, never>>) => StartSessionOutput;
|
|
507
770
|
defaults: () => Partial<StartSessionOutput>;
|
|
508
771
|
}>;
|
|
772
|
+
export type WindowPredicate = {
|
|
773
|
+
exists?: boolean;
|
|
774
|
+
bounds?: BoundsExpectation;
|
|
775
|
+
};
|
|
776
|
+
/**
|
|
777
|
+
* Generated factory for {@link WindowPredicate} record objects.
|
|
778
|
+
*/
|
|
779
|
+
export declare const WindowPredicate: Readonly<{
|
|
780
|
+
create: (partial: Partial<WindowPredicate> & Required<Omit<WindowPredicate, "exists" | "bounds">>) => WindowPredicate;
|
|
781
|
+
new: (partial: Partial<WindowPredicate> & Required<Omit<WindowPredicate, "exists" | "bounds">>) => WindowPredicate;
|
|
782
|
+
defaults: () => Partial<WindowPredicate>;
|
|
783
|
+
}>;
|
|
784
|
+
export type StatePredicate = {
|
|
785
|
+
window?: WindowPredicate;
|
|
786
|
+
element?: ElementPredicate;
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* Generated factory for {@link StatePredicate} record objects.
|
|
790
|
+
*/
|
|
791
|
+
export declare const StatePredicate: Readonly<{
|
|
792
|
+
create: (partial: Partial<StatePredicate> & Required<Omit<StatePredicate, "window" | "element">>) => StatePredicate;
|
|
793
|
+
new: (partial: Partial<StatePredicate> & Required<Omit<StatePredicate, "window" | "element">>) => StatePredicate;
|
|
794
|
+
defaults: () => Partial<StatePredicate>;
|
|
795
|
+
}>;
|
|
509
796
|
export type TypeTextInput = {
|
|
510
797
|
text: string;
|
|
511
798
|
scope: DesktopScope;
|
|
@@ -522,6 +809,60 @@ export declare const TypeTextInput: Readonly<{
|
|
|
522
809
|
new: (partial: Partial<TypeTextInput> & Required<Omit<TypeTextInput, "session">>) => TypeTextInput;
|
|
523
810
|
defaults: () => Partial<TypeTextInput>;
|
|
524
811
|
}>;
|
|
812
|
+
export type VerifyStateInput = {
|
|
813
|
+
/**
|
|
814
|
+
* Exact process whose window may be observed.
|
|
815
|
+
*/
|
|
816
|
+
pid: bigint;
|
|
817
|
+
/**
|
|
818
|
+
* Exact native window identifier.
|
|
819
|
+
*/
|
|
820
|
+
windowId: bigint;
|
|
821
|
+
/**
|
|
822
|
+
* One to eight predicates, combined with logical AND.
|
|
823
|
+
*/
|
|
824
|
+
expect: Array<StatePredicate>;
|
|
825
|
+
/**
|
|
826
|
+
* Optional session id for capture-scope and authorization continuity.
|
|
827
|
+
*/
|
|
828
|
+
session?: string;
|
|
829
|
+
/**
|
|
830
|
+
* Bounded wait. Zero performs one sample.
|
|
831
|
+
*/
|
|
832
|
+
timeoutMs?: bigint;
|
|
833
|
+
/**
|
|
834
|
+
* Consecutive satisfied samples required before returning success.
|
|
835
|
+
*/
|
|
836
|
+
stableSamples?: bigint;
|
|
837
|
+
/**
|
|
838
|
+
* Return the final window screenshot as image content for a multimodal
|
|
839
|
+
* caller. The driver does not interpret that image.
|
|
840
|
+
*/
|
|
841
|
+
includeScreenshot?: boolean;
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* Generated factory for {@link VerifyStateInput} record objects.
|
|
845
|
+
*/
|
|
846
|
+
export declare const VerifyStateInput: Readonly<{
|
|
847
|
+
create: (partial: Partial<VerifyStateInput> & Required<Omit<VerifyStateInput, "session" | "timeoutMs" | "stableSamples" | "includeScreenshot">>) => VerifyStateInput;
|
|
848
|
+
new: (partial: Partial<VerifyStateInput> & Required<Omit<VerifyStateInput, "session" | "timeoutMs" | "stableSamples" | "includeScreenshot">>) => VerifyStateInput;
|
|
849
|
+
defaults: () => Partial<VerifyStateInput>;
|
|
850
|
+
}>;
|
|
851
|
+
export type VerifyStateOutput = {
|
|
852
|
+
status: VerificationStatus;
|
|
853
|
+
stable: boolean;
|
|
854
|
+
elapsedMs: bigint;
|
|
855
|
+
samples: bigint;
|
|
856
|
+
predicates: Array<PredicateOutcome>;
|
|
857
|
+
};
|
|
858
|
+
/**
|
|
859
|
+
* Generated factory for {@link VerifyStateOutput} record objects.
|
|
860
|
+
*/
|
|
861
|
+
export declare const VerifyStateOutput: Readonly<{
|
|
862
|
+
create: (partial: Partial<VerifyStateOutput> & Required<Omit<VerifyStateOutput, never>>) => VerifyStateOutput;
|
|
863
|
+
new: (partial: Partial<VerifyStateOutput> & Required<Omit<VerifyStateOutput, never>>) => VerifyStateOutput;
|
|
864
|
+
defaults: () => Partial<VerifyStateOutput>;
|
|
865
|
+
}>;
|
|
525
866
|
export declare enum Platform {
|
|
526
867
|
Macos = 0,
|
|
527
868
|
Windows = 1,
|
|
@@ -541,6 +882,83 @@ declare function uniffiEnsureInitialized(): void;
|
|
|
541
882
|
declare const _default: Readonly<{
|
|
542
883
|
initialize: typeof uniffiEnsureInitialized;
|
|
543
884
|
converters: {
|
|
885
|
+
FfiConverterTypeActionDelivery: {
|
|
886
|
+
read(from: RustBuffer): ActionDelivery;
|
|
887
|
+
write(value: ActionDelivery, into: RustBuffer): void;
|
|
888
|
+
allocationSize(value: ActionDelivery): number;
|
|
889
|
+
lift(value: UniffiByteArray): ActionDelivery;
|
|
890
|
+
lower(value: ActionDelivery, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
891
|
+
};
|
|
892
|
+
FfiConverterTypeActionDeliveryMode: {
|
|
893
|
+
read(from: RustBuffer): ActionDeliveryMode;
|
|
894
|
+
write(value: ActionDeliveryMode, into: RustBuffer): void;
|
|
895
|
+
allocationSize(value: ActionDeliveryMode): number;
|
|
896
|
+
lift(value: UniffiByteArray): ActionDeliveryMode;
|
|
897
|
+
lower(value: ActionDeliveryMode, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
898
|
+
};
|
|
899
|
+
FfiConverterTypeActionEffect: {
|
|
900
|
+
read(from: RustBuffer): ActionEffect;
|
|
901
|
+
write(value: ActionEffect, into: RustBuffer): void;
|
|
902
|
+
allocationSize(value: ActionEffect): number;
|
|
903
|
+
lift(value: UniffiByteArray): ActionEffect;
|
|
904
|
+
lower(value: ActionEffect, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
905
|
+
};
|
|
906
|
+
FfiConverterTypeActionEscalation: {
|
|
907
|
+
read(from: RustBuffer): ActionEscalation;
|
|
908
|
+
write(value: ActionEscalation, into: RustBuffer): void;
|
|
909
|
+
allocationSize(value: ActionEscalation): number;
|
|
910
|
+
lift(value: UniffiByteArray): ActionEscalation;
|
|
911
|
+
lower(value: ActionEscalation, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
912
|
+
};
|
|
913
|
+
FfiConverterTypeActionEscalationReason: {
|
|
914
|
+
read(from: RustBuffer): ActionEscalationReason;
|
|
915
|
+
write(value: ActionEscalationReason, into: RustBuffer): void;
|
|
916
|
+
allocationSize(value: ActionEscalationReason): number;
|
|
917
|
+
lift(value: UniffiByteArray): ActionEscalationReason;
|
|
918
|
+
lower(value: ActionEscalationReason, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
919
|
+
};
|
|
920
|
+
FfiConverterTypeActionEscalationTarget: {
|
|
921
|
+
read(from: RustBuffer): ActionEscalationTarget;
|
|
922
|
+
write(value: ActionEscalationTarget, into: RustBuffer): void;
|
|
923
|
+
allocationSize(value: ActionEscalationTarget): number;
|
|
924
|
+
lift(value: UniffiByteArray): ActionEscalationTarget;
|
|
925
|
+
lower(value: ActionEscalationTarget, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
926
|
+
};
|
|
927
|
+
FfiConverterTypeActionEvidence: {
|
|
928
|
+
read(from: RustBuffer): ActionEvidence;
|
|
929
|
+
write(value: ActionEvidence, into: RustBuffer): void;
|
|
930
|
+
allocationSize(value: ActionEvidence): number;
|
|
931
|
+
lift(value: UniffiByteArray): ActionEvidence;
|
|
932
|
+
lower(value: ActionEvidence, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
933
|
+
};
|
|
934
|
+
FfiConverterTypeActionEvidenceKind: {
|
|
935
|
+
read(from: RustBuffer): ActionEvidenceKind;
|
|
936
|
+
write(value: ActionEvidenceKind, into: RustBuffer): void;
|
|
937
|
+
allocationSize(value: ActionEvidenceKind): number;
|
|
938
|
+
lift(value: UniffiByteArray): ActionEvidenceKind;
|
|
939
|
+
lower(value: ActionEvidenceKind, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
940
|
+
};
|
|
941
|
+
FfiConverterTypeActionResult: {
|
|
942
|
+
read(from: RustBuffer): ActionResult;
|
|
943
|
+
write(value: ActionResult, into: RustBuffer): void;
|
|
944
|
+
allocationSize(value: ActionResult): number;
|
|
945
|
+
lift(value: UniffiByteArray): ActionResult;
|
|
946
|
+
lower(value: ActionResult, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
947
|
+
};
|
|
948
|
+
FfiConverterTypeActionRoute: {
|
|
949
|
+
read(from: RustBuffer): ActionRoute;
|
|
950
|
+
write(value: ActionRoute, into: RustBuffer): void;
|
|
951
|
+
allocationSize(value: ActionRoute): number;
|
|
952
|
+
lift(value: UniffiByteArray): ActionRoute;
|
|
953
|
+
lower(value: ActionRoute, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
954
|
+
};
|
|
955
|
+
FfiConverterTypeBoundsExpectation: {
|
|
956
|
+
read(from: RustBuffer): BoundsExpectation;
|
|
957
|
+
write(value: BoundsExpectation, into: RustBuffer): void;
|
|
958
|
+
allocationSize(value: BoundsExpectation): number;
|
|
959
|
+
lift(value: UniffiByteArray): BoundsExpectation;
|
|
960
|
+
lower(value: BoundsExpectation, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
961
|
+
};
|
|
544
962
|
FfiConverterTypeCaptureScope: {
|
|
545
963
|
read(from: RustBuffer): CaptureScope;
|
|
546
964
|
write(value: CaptureScope, into: RustBuffer): void;
|
|
@@ -562,6 +980,34 @@ declare const _default: Readonly<{
|
|
|
562
980
|
lift(value: UniffiByteArray): ClickInput;
|
|
563
981
|
lower(value: ClickInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
564
982
|
};
|
|
983
|
+
FfiConverterTypeClipboardReadInput: {
|
|
984
|
+
read(from: RustBuffer): ClipboardReadInput;
|
|
985
|
+
write(value: ClipboardReadInput, into: RustBuffer): void;
|
|
986
|
+
allocationSize(value: ClipboardReadInput): number;
|
|
987
|
+
lift(value: UniffiByteArray): ClipboardReadInput;
|
|
988
|
+
lower(value: ClipboardReadInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
989
|
+
};
|
|
990
|
+
FfiConverterTypeClipboardReadOutput: {
|
|
991
|
+
read(from: RustBuffer): ClipboardReadOutput;
|
|
992
|
+
write(value: ClipboardReadOutput, into: RustBuffer): void;
|
|
993
|
+
allocationSize(value: ClipboardReadOutput): number;
|
|
994
|
+
lift(value: UniffiByteArray): ClipboardReadOutput;
|
|
995
|
+
lower(value: ClipboardReadOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
996
|
+
};
|
|
997
|
+
FfiConverterTypeClipboardWriteInput: {
|
|
998
|
+
read(from: RustBuffer): ClipboardWriteInput;
|
|
999
|
+
write(value: ClipboardWriteInput, into: RustBuffer): void;
|
|
1000
|
+
allocationSize(value: ClipboardWriteInput): number;
|
|
1001
|
+
lift(value: UniffiByteArray): ClipboardWriteInput;
|
|
1002
|
+
lower(value: ClipboardWriteInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1003
|
+
};
|
|
1004
|
+
FfiConverterTypeClipboardWriteOutput: {
|
|
1005
|
+
read(from: RustBuffer): ClipboardWriteOutput;
|
|
1006
|
+
write(value: ClipboardWriteOutput, into: RustBuffer): void;
|
|
1007
|
+
allocationSize(value: ClipboardWriteOutput): number;
|
|
1008
|
+
lift(value: UniffiByteArray): ClipboardWriteOutput;
|
|
1009
|
+
lower(value: ClipboardWriteOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1010
|
+
};
|
|
565
1011
|
FfiConverterTypeCursorAction: {
|
|
566
1012
|
read(from: RustBuffer): CursorAction;
|
|
567
1013
|
write(value: CursorAction, into: RustBuffer): void;
|
|
@@ -632,6 +1078,20 @@ declare const _default: Readonly<{
|
|
|
632
1078
|
lift(value: UniffiByteArray): EffectiveScope;
|
|
633
1079
|
lower(value: EffectiveScope, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
634
1080
|
};
|
|
1081
|
+
FfiConverterTypeElementPredicate: {
|
|
1082
|
+
read(from: RustBuffer): ElementPredicate;
|
|
1083
|
+
write(value: ElementPredicate, into: RustBuffer): void;
|
|
1084
|
+
allocationSize(value: ElementPredicate): number;
|
|
1085
|
+
lift(value: UniffiByteArray): ElementPredicate;
|
|
1086
|
+
lower(value: ElementPredicate, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1087
|
+
};
|
|
1088
|
+
FfiConverterTypeElementSelector: {
|
|
1089
|
+
read(from: RustBuffer): ElementSelector;
|
|
1090
|
+
write(value: ElementSelector, into: RustBuffer): void;
|
|
1091
|
+
allocationSize(value: ElementSelector): number;
|
|
1092
|
+
lift(value: UniffiByteArray): ElementSelector;
|
|
1093
|
+
lower(value: ElementSelector, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1094
|
+
};
|
|
635
1095
|
FfiConverterTypeEndSessionInput: {
|
|
636
1096
|
read(from: RustBuffer): EndSessionInput;
|
|
637
1097
|
write(value: EndSessionInput, into: RustBuffer): void;
|
|
@@ -723,6 +1183,13 @@ declare const _default: Readonly<{
|
|
|
723
1183
|
lift(value: UniffiByteArray): Platform;
|
|
724
1184
|
lower(value: Platform, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
725
1185
|
};
|
|
1186
|
+
FfiConverterTypePredicateOutcome: {
|
|
1187
|
+
read(from: RustBuffer): PredicateOutcome;
|
|
1188
|
+
write(value: PredicateOutcome, into: RustBuffer): void;
|
|
1189
|
+
allocationSize(value: PredicateOutcome): number;
|
|
1190
|
+
lift(value: UniffiByteArray): PredicateOutcome;
|
|
1191
|
+
lower(value: PredicateOutcome, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1192
|
+
};
|
|
726
1193
|
FfiConverterTypePressKeyInput: {
|
|
727
1194
|
read(from: RustBuffer): PressKeyInput;
|
|
728
1195
|
write(value: PressKeyInput, into: RustBuffer): void;
|
|
@@ -800,6 +1267,13 @@ declare const _default: Readonly<{
|
|
|
800
1267
|
lift(value: UniffiByteArray): SetAgentCursorThemeOutput;
|
|
801
1268
|
lower(value: SetAgentCursorThemeOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
802
1269
|
};
|
|
1270
|
+
FfiConverterTypeSetWindowFrameInput: {
|
|
1271
|
+
read(from: RustBuffer): SetWindowFrameInput;
|
|
1272
|
+
write(value: SetWindowFrameInput, into: RustBuffer): void;
|
|
1273
|
+
allocationSize(value: SetWindowFrameInput): number;
|
|
1274
|
+
lift(value: UniffiByteArray): SetWindowFrameInput;
|
|
1275
|
+
lower(value: SetWindowFrameInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1276
|
+
};
|
|
803
1277
|
FfiConverterTypeStartSessionInput: {
|
|
804
1278
|
read(from: RustBuffer): StartSessionInput;
|
|
805
1279
|
write(value: StartSessionInput, into: RustBuffer): void;
|
|
@@ -814,6 +1288,13 @@ declare const _default: Readonly<{
|
|
|
814
1288
|
lift(value: UniffiByteArray): StartSessionOutput;
|
|
815
1289
|
lower(value: StartSessionOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
816
1290
|
};
|
|
1291
|
+
FfiConverterTypeStatePredicate: {
|
|
1292
|
+
read(from: RustBuffer): StatePredicate;
|
|
1293
|
+
write(value: StatePredicate, into: RustBuffer): void;
|
|
1294
|
+
allocationSize(value: StatePredicate): number;
|
|
1295
|
+
lift(value: UniffiByteArray): StatePredicate;
|
|
1296
|
+
lower(value: StatePredicate, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1297
|
+
};
|
|
817
1298
|
FfiConverterTypeTypeTextInput: {
|
|
818
1299
|
read(from: RustBuffer): TypeTextInput;
|
|
819
1300
|
write(value: TypeTextInput, into: RustBuffer): void;
|
|
@@ -821,6 +1302,41 @@ declare const _default: Readonly<{
|
|
|
821
1302
|
lift(value: UniffiByteArray): TypeTextInput;
|
|
822
1303
|
lower(value: TypeTextInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
823
1304
|
};
|
|
1305
|
+
FfiConverterTypeUnknownReason: {
|
|
1306
|
+
read(from: RustBuffer): UnknownReason;
|
|
1307
|
+
write(value: UnknownReason, into: RustBuffer): void;
|
|
1308
|
+
allocationSize(value: UnknownReason): number;
|
|
1309
|
+
lift(value: UniffiByteArray): UnknownReason;
|
|
1310
|
+
lower(value: UnknownReason, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1311
|
+
};
|
|
1312
|
+
FfiConverterTypeVerificationStatus: {
|
|
1313
|
+
read(from: RustBuffer): VerificationStatus;
|
|
1314
|
+
write(value: VerificationStatus, into: RustBuffer): void;
|
|
1315
|
+
allocationSize(value: VerificationStatus): number;
|
|
1316
|
+
lift(value: UniffiByteArray): VerificationStatus;
|
|
1317
|
+
lower(value: VerificationStatus, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1318
|
+
};
|
|
1319
|
+
FfiConverterTypeVerifyStateInput: {
|
|
1320
|
+
read(from: RustBuffer): VerifyStateInput;
|
|
1321
|
+
write(value: VerifyStateInput, into: RustBuffer): void;
|
|
1322
|
+
allocationSize(value: VerifyStateInput): number;
|
|
1323
|
+
lift(value: UniffiByteArray): VerifyStateInput;
|
|
1324
|
+
lower(value: VerifyStateInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1325
|
+
};
|
|
1326
|
+
FfiConverterTypeVerifyStateOutput: {
|
|
1327
|
+
read(from: RustBuffer): VerifyStateOutput;
|
|
1328
|
+
write(value: VerifyStateOutput, into: RustBuffer): void;
|
|
1329
|
+
allocationSize(value: VerifyStateOutput): number;
|
|
1330
|
+
lift(value: UniffiByteArray): VerifyStateOutput;
|
|
1331
|
+
lower(value: VerifyStateOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1332
|
+
};
|
|
1333
|
+
FfiConverterTypeWindowPredicate: {
|
|
1334
|
+
read(from: RustBuffer): WindowPredicate;
|
|
1335
|
+
write(value: WindowPredicate, into: RustBuffer): void;
|
|
1336
|
+
allocationSize(value: WindowPredicate): number;
|
|
1337
|
+
lift(value: UniffiByteArray): WindowPredicate;
|
|
1338
|
+
lower(value: WindowPredicate, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1339
|
+
};
|
|
824
1340
|
};
|
|
825
1341
|
}>;
|
|
826
1342
|
export default _default;
|