@trycua/cua-driver 0.28.1 → 0.28.3
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 +660 -10
- package/dist/native/cua_driver_contract.js +1095 -164
- package/dist/native/cua_driver_sdk-ffi.d.ts +4 -0
- package/dist/native/cua_driver_sdk-ffi.js +20 -0
- package/dist/native/cua_driver_sdk.d.ts +15 -3
- package/dist/native/cua_driver_sdk.js +65 -1
- package/package.json +7 -7
|
@@ -17,6 +17,21 @@ export declare const ActionDelivery: Readonly<{
|
|
|
17
17
|
new: (partial: Partial<ActionDelivery> & Required<Omit<ActionDelivery, "deliveredCount">>) => ActionDelivery;
|
|
18
18
|
defaults: () => Partial<ActionDelivery>;
|
|
19
19
|
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Why a `refused` action sent no input, and what to do instead.
|
|
22
|
+
*/
|
|
23
|
+
export type ActionError = {
|
|
24
|
+
code: string;
|
|
25
|
+
hint?: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Generated factory for {@link ActionError} record objects.
|
|
29
|
+
*/
|
|
30
|
+
export declare const ActionError: Readonly<{
|
|
31
|
+
create: (partial: Partial<ActionError> & Required<Omit<ActionError, "hint">>) => ActionError;
|
|
32
|
+
new: (partial: Partial<ActionError> & Required<Omit<ActionError, "hint">>) => ActionError;
|
|
33
|
+
defaults: () => Partial<ActionError>;
|
|
34
|
+
}>;
|
|
20
35
|
export declare enum ActionEscalationTarget {
|
|
21
36
|
Pixel = 0,
|
|
22
37
|
Foreground = 1,
|
|
@@ -48,13 +63,18 @@ export declare enum ActionEvidenceKind {
|
|
|
48
63
|
}
|
|
49
64
|
export type ActionEvidence = {
|
|
50
65
|
kind: ActionEvidenceKind;
|
|
66
|
+
/**
|
|
67
|
+
* Human-readable readback the evidence rests on (what changed, which
|
|
68
|
+
* popup or window appeared and how to target it). Never request data.
|
|
69
|
+
*/
|
|
70
|
+
detail?: string;
|
|
51
71
|
};
|
|
52
72
|
/**
|
|
53
73
|
* Generated factory for {@link ActionEvidence} record objects.
|
|
54
74
|
*/
|
|
55
75
|
export declare const ActionEvidence: Readonly<{
|
|
56
|
-
create: (partial: Partial<ActionEvidence> & Required<Omit<ActionEvidence,
|
|
57
|
-
new: (partial: Partial<ActionEvidence> & Required<Omit<ActionEvidence,
|
|
76
|
+
create: (partial: Partial<ActionEvidence> & Required<Omit<ActionEvidence, "detail">>) => ActionEvidence;
|
|
77
|
+
new: (partial: Partial<ActionEvidence> & Required<Omit<ActionEvidence, "detail">>) => ActionEvidence;
|
|
58
78
|
defaults: () => Partial<ActionEvidence>;
|
|
59
79
|
}>;
|
|
60
80
|
export declare enum ActionEffect {
|
|
@@ -78,13 +98,24 @@ export type ActionResult = {
|
|
|
78
98
|
delivery?: ActionDelivery;
|
|
79
99
|
evidence?: Array<ActionEvidence>;
|
|
80
100
|
escalation?: ActionEscalation;
|
|
101
|
+
/**
|
|
102
|
+
* The producer's human summary of what happened (resolved points, the
|
|
103
|
+
* element hit, popups that opened, focus outcome, follow-up calls).
|
|
104
|
+
* Clients that read only `structuredContent` still get everything the
|
|
105
|
+
* text content says.
|
|
106
|
+
*/
|
|
107
|
+
summary?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Present only with `effect: refused`.
|
|
110
|
+
*/
|
|
111
|
+
error?: ActionError;
|
|
81
112
|
};
|
|
82
113
|
/**
|
|
83
114
|
* Generated factory for {@link ActionResult} record objects.
|
|
84
115
|
*/
|
|
85
116
|
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;
|
|
117
|
+
create: (partial: Partial<ActionResult> & Required<Omit<ActionResult, "delivery" | "evidence" | "escalation" | "summary" | "error">>) => ActionResult;
|
|
118
|
+
new: (partial: Partial<ActionResult> & Required<Omit<ActionResult, "delivery" | "evidence" | "escalation" | "summary" | "error">>) => ActionResult;
|
|
88
119
|
defaults: () => Partial<ActionResult>;
|
|
89
120
|
}>;
|
|
90
121
|
export type AppInfo = {
|
|
@@ -227,7 +258,8 @@ export declare const ActionTarget: Readonly<{
|
|
|
227
258
|
export type ActionTarget = InstanceType<typeof ActionTarget['Window' | 'Desktop']>;
|
|
228
259
|
export declare enum ClickPosition_Tags {
|
|
229
260
|
Coordinates = "Coordinates",
|
|
230
|
-
Element = "Element"
|
|
261
|
+
Element = "Element",
|
|
262
|
+
CapturedCoordinates = "CapturedCoordinates"
|
|
231
263
|
}
|
|
232
264
|
export declare const ClickPosition: Readonly<{
|
|
233
265
|
instanceOf: (obj: any) => obj is ClickPosition;
|
|
@@ -314,8 +346,57 @@ export declare const ClickPosition: Readonly<{
|
|
|
314
346
|
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
315
347
|
};
|
|
316
348
|
};
|
|
349
|
+
CapturedCoordinates: {
|
|
350
|
+
new (inner: {
|
|
351
|
+
x: number;
|
|
352
|
+
y: number;
|
|
353
|
+
captureId: string;
|
|
354
|
+
}): {
|
|
355
|
+
readonly tag: ClickPosition_Tags.CapturedCoordinates;
|
|
356
|
+
readonly inner: Readonly<{
|
|
357
|
+
x: number;
|
|
358
|
+
y: number;
|
|
359
|
+
captureId: string;
|
|
360
|
+
}>;
|
|
361
|
+
/**
|
|
362
|
+
* @private
|
|
363
|
+
* This field is private and should not be used, use `tag` instead.
|
|
364
|
+
*/
|
|
365
|
+
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
366
|
+
};
|
|
367
|
+
"new"(inner: {
|
|
368
|
+
x: number;
|
|
369
|
+
y: number;
|
|
370
|
+
captureId: string;
|
|
371
|
+
}): {
|
|
372
|
+
readonly tag: ClickPosition_Tags.CapturedCoordinates;
|
|
373
|
+
readonly inner: Readonly<{
|
|
374
|
+
x: number;
|
|
375
|
+
y: number;
|
|
376
|
+
captureId: string;
|
|
377
|
+
}>;
|
|
378
|
+
/**
|
|
379
|
+
* @private
|
|
380
|
+
* This field is private and should not be used, use `tag` instead.
|
|
381
|
+
*/
|
|
382
|
+
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
383
|
+
};
|
|
384
|
+
instanceOf(obj: any): obj is {
|
|
385
|
+
readonly tag: ClickPosition_Tags.CapturedCoordinates;
|
|
386
|
+
readonly inner: Readonly<{
|
|
387
|
+
x: number;
|
|
388
|
+
y: number;
|
|
389
|
+
captureId: string;
|
|
390
|
+
}>;
|
|
391
|
+
/**
|
|
392
|
+
* @private
|
|
393
|
+
* This field is private and should not be used, use `tag` instead.
|
|
394
|
+
*/
|
|
395
|
+
readonly [uniffiTypeNameSymbol]: "ClickPosition";
|
|
396
|
+
};
|
|
397
|
+
};
|
|
317
398
|
}>;
|
|
318
|
-
export type ClickPosition = InstanceType<typeof ClickPosition['Coordinates' | 'Element']>;
|
|
399
|
+
export type ClickPosition = InstanceType<typeof ClickPosition['Coordinates' | 'Element' | 'CapturedCoordinates']>;
|
|
319
400
|
export declare enum InputDeliveryMode {
|
|
320
401
|
Background = 0,
|
|
321
402
|
Foreground = 1
|
|
@@ -695,13 +776,19 @@ export type GetDesktopStateInput = {
|
|
|
695
776
|
* Write the PNG here instead of returning base64.
|
|
696
777
|
*/
|
|
697
778
|
screenshotOutFile?: string;
|
|
779
|
+
/**
|
|
780
|
+
* Optional long-edge cap for the returned PNG, in pixels. Omitted or 0
|
|
781
|
+
* returns the full-size capture. When the cap downsizes the image,
|
|
782
|
+
* desktop-scope x/y taken from it are mapped back automatically.
|
|
783
|
+
*/
|
|
784
|
+
maxImageDimension?: number;
|
|
698
785
|
};
|
|
699
786
|
/**
|
|
700
787
|
* Generated factory for {@link GetDesktopStateInput} record objects.
|
|
701
788
|
*/
|
|
702
789
|
export declare const GetDesktopStateInput: Readonly<{
|
|
703
|
-
create: (partial: Partial<GetDesktopStateInput> & Required<Omit<GetDesktopStateInput, "session" | "screenshotOutFile">>) => GetDesktopStateInput;
|
|
704
|
-
new: (partial: Partial<GetDesktopStateInput> & Required<Omit<GetDesktopStateInput, "session" | "screenshotOutFile">>) => GetDesktopStateInput;
|
|
790
|
+
create: (partial: Partial<GetDesktopStateInput> & Required<Omit<GetDesktopStateInput, "session" | "screenshotOutFile" | "maxImageDimension">>) => GetDesktopStateInput;
|
|
791
|
+
new: (partial: Partial<GetDesktopStateInput> & Required<Omit<GetDesktopStateInput, "session" | "screenshotOutFile" | "maxImageDimension">>) => GetDesktopStateInput;
|
|
705
792
|
defaults: () => Partial<GetDesktopStateInput>;
|
|
706
793
|
}>;
|
|
707
794
|
export type GetScreenSizeInput = {
|
|
@@ -760,13 +847,24 @@ export type GetWindowStateInput = {
|
|
|
760
847
|
maxElements?: number;
|
|
761
848
|
maxDepth?: number;
|
|
762
849
|
maxDimension?: number;
|
|
850
|
+
/**
|
|
851
|
+
* Optional per-call long-edge ceiling. Zero requests native resolution;
|
|
852
|
+
* omit it to preserve the configured session or global behavior.
|
|
853
|
+
*/
|
|
854
|
+
maxImageDimension?: number;
|
|
855
|
+
/**
|
|
856
|
+
* Wall-clock budget for the accessibility walk in milliseconds
|
|
857
|
+
* (default 1000 on every platform). A walk that runs out returns a
|
|
858
|
+
* partial tree flagged `truncated` rather than failing.
|
|
859
|
+
*/
|
|
860
|
+
timeoutMs?: number;
|
|
763
861
|
};
|
|
764
862
|
/**
|
|
765
863
|
* Generated factory for {@link GetWindowStateInput} record objects.
|
|
766
864
|
*/
|
|
767
865
|
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;
|
|
866
|
+
create: (partial: Partial<GetWindowStateInput> & Required<Omit<GetWindowStateInput, "session" | "screenshotOutFile" | "maxImageDimension" | "query" | "includeAccessibilityTree" | "includeScreenshot" | "maxElements" | "maxDepth" | "maxDimension" | "timeoutMs">>) => GetWindowStateInput;
|
|
867
|
+
new: (partial: Partial<GetWindowStateInput> & Required<Omit<GetWindowStateInput, "session" | "screenshotOutFile" | "maxImageDimension" | "query" | "includeAccessibilityTree" | "includeScreenshot" | "maxElements" | "maxDepth" | "maxDimension" | "timeoutMs">>) => GetWindowStateInput;
|
|
770
868
|
defaults: () => Partial<GetWindowStateInput>;
|
|
771
869
|
}>;
|
|
772
870
|
export type HotkeyInput = {
|
|
@@ -994,6 +1092,411 @@ export declare const MoveCursorInput: Readonly<{
|
|
|
994
1092
|
new: (partial: Partial<MoveCursorInput> & Required<Omit<MoveCursorInput, "target" | "session" | "scope">>) => MoveCursorInput;
|
|
995
1093
|
defaults: () => Partial<MoveCursorInput>;
|
|
996
1094
|
}>;
|
|
1095
|
+
export declare enum VisualRegionKind {
|
|
1096
|
+
Text = 0,
|
|
1097
|
+
Icon = 1
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Optional, model-neutral controls for one bounded parse.
|
|
1101
|
+
*/
|
|
1102
|
+
export type ParseVisualRegionsOptions = {
|
|
1103
|
+
kinds?: Array<VisualRegionKind>;
|
|
1104
|
+
minConfidence?: number;
|
|
1105
|
+
maxRegions?: number;
|
|
1106
|
+
};
|
|
1107
|
+
/**
|
|
1108
|
+
* Generated factory for {@link ParseVisualRegionsOptions} record objects.
|
|
1109
|
+
*/
|
|
1110
|
+
export declare const ParseVisualRegionsOptions: Readonly<{
|
|
1111
|
+
create: (partial: Partial<ParseVisualRegionsOptions> & Required<Omit<ParseVisualRegionsOptions, "kinds" | "minConfidence" | "maxRegions">>) => ParseVisualRegionsOptions;
|
|
1112
|
+
new: (partial: Partial<ParseVisualRegionsOptions> & Required<Omit<ParseVisualRegionsOptions, "kinds" | "minConfidence" | "maxRegions">>) => ParseVisualRegionsOptions;
|
|
1113
|
+
defaults: () => Partial<ParseVisualRegionsOptions>;
|
|
1114
|
+
}>;
|
|
1115
|
+
/**
|
|
1116
|
+
* Transport-free request. Runtime use requires the future capture registry.
|
|
1117
|
+
*/
|
|
1118
|
+
export type ParseVisualRegionsInput = {
|
|
1119
|
+
captureId: string;
|
|
1120
|
+
options: ParseVisualRegionsOptions;
|
|
1121
|
+
};
|
|
1122
|
+
/**
|
|
1123
|
+
* Generated factory for {@link ParseVisualRegionsInput} record objects.
|
|
1124
|
+
*/
|
|
1125
|
+
export declare const ParseVisualRegionsInput: Readonly<{
|
|
1126
|
+
create: (partial: Partial<ParseVisualRegionsInput> & Required<Omit<ParseVisualRegionsInput, never>>) => ParseVisualRegionsInput;
|
|
1127
|
+
new: (partial: Partial<ParseVisualRegionsInput> & Required<Omit<ParseVisualRegionsInput, never>>) => ParseVisualRegionsInput;
|
|
1128
|
+
defaults: () => Partial<ParseVisualRegionsInput>;
|
|
1129
|
+
}>;
|
|
1130
|
+
export declare enum VisualCaptureSource_Tags {
|
|
1131
|
+
Window = "Window",
|
|
1132
|
+
PrimaryDesktop = "PrimaryDesktop"
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Exact screen content that produced the immutable capture.
|
|
1136
|
+
*/
|
|
1137
|
+
export declare const VisualCaptureSource: Readonly<{
|
|
1138
|
+
instanceOf: (obj: any) => obj is VisualCaptureSource;
|
|
1139
|
+
Window: {
|
|
1140
|
+
new (inner: {
|
|
1141
|
+
pid: number;
|
|
1142
|
+
windowId: bigint;
|
|
1143
|
+
}): {
|
|
1144
|
+
readonly tag: VisualCaptureSource_Tags.Window;
|
|
1145
|
+
readonly inner: Readonly<{
|
|
1146
|
+
pid: number;
|
|
1147
|
+
windowId: bigint;
|
|
1148
|
+
}>;
|
|
1149
|
+
/**
|
|
1150
|
+
* @private
|
|
1151
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1152
|
+
*/
|
|
1153
|
+
readonly [uniffiTypeNameSymbol]: "VisualCaptureSource";
|
|
1154
|
+
};
|
|
1155
|
+
"new"(inner: {
|
|
1156
|
+
pid: number;
|
|
1157
|
+
windowId: bigint;
|
|
1158
|
+
}): {
|
|
1159
|
+
readonly tag: VisualCaptureSource_Tags.Window;
|
|
1160
|
+
readonly inner: Readonly<{
|
|
1161
|
+
pid: number;
|
|
1162
|
+
windowId: bigint;
|
|
1163
|
+
}>;
|
|
1164
|
+
/**
|
|
1165
|
+
* @private
|
|
1166
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1167
|
+
*/
|
|
1168
|
+
readonly [uniffiTypeNameSymbol]: "VisualCaptureSource";
|
|
1169
|
+
};
|
|
1170
|
+
instanceOf(obj: any): obj is {
|
|
1171
|
+
readonly tag: VisualCaptureSource_Tags.Window;
|
|
1172
|
+
readonly inner: Readonly<{
|
|
1173
|
+
pid: number;
|
|
1174
|
+
windowId: bigint;
|
|
1175
|
+
}>;
|
|
1176
|
+
/**
|
|
1177
|
+
* @private
|
|
1178
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1179
|
+
*/
|
|
1180
|
+
readonly [uniffiTypeNameSymbol]: "VisualCaptureSource";
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
PrimaryDesktop: {
|
|
1184
|
+
new (inner: {
|
|
1185
|
+
displayId: string;
|
|
1186
|
+
}): {
|
|
1187
|
+
readonly tag: VisualCaptureSource_Tags.PrimaryDesktop;
|
|
1188
|
+
readonly inner: Readonly<{
|
|
1189
|
+
displayId: string;
|
|
1190
|
+
}>;
|
|
1191
|
+
/**
|
|
1192
|
+
* @private
|
|
1193
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1194
|
+
*/
|
|
1195
|
+
readonly [uniffiTypeNameSymbol]: "VisualCaptureSource";
|
|
1196
|
+
};
|
|
1197
|
+
"new"(inner: {
|
|
1198
|
+
displayId: string;
|
|
1199
|
+
}): {
|
|
1200
|
+
readonly tag: VisualCaptureSource_Tags.PrimaryDesktop;
|
|
1201
|
+
readonly inner: Readonly<{
|
|
1202
|
+
displayId: string;
|
|
1203
|
+
}>;
|
|
1204
|
+
/**
|
|
1205
|
+
* @private
|
|
1206
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1207
|
+
*/
|
|
1208
|
+
readonly [uniffiTypeNameSymbol]: "VisualCaptureSource";
|
|
1209
|
+
};
|
|
1210
|
+
instanceOf(obj: any): obj is {
|
|
1211
|
+
readonly tag: VisualCaptureSource_Tags.PrimaryDesktop;
|
|
1212
|
+
readonly inner: Readonly<{
|
|
1213
|
+
displayId: string;
|
|
1214
|
+
}>;
|
|
1215
|
+
/**
|
|
1216
|
+
* @private
|
|
1217
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1218
|
+
*/
|
|
1219
|
+
readonly [uniffiTypeNameSymbol]: "VisualCaptureSource";
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
}>;
|
|
1223
|
+
/**
|
|
1224
|
+
* Exact screen content that produced the immutable capture.
|
|
1225
|
+
*/
|
|
1226
|
+
export type VisualCaptureSource = InstanceType<typeof VisualCaptureSource['Window' | 'PrimaryDesktop']>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Screenshot identity and geometry retained by the future capture registry.
|
|
1229
|
+
*/
|
|
1230
|
+
export type VisualScreenshotReference = {
|
|
1231
|
+
/**
|
|
1232
|
+
* Opaque identity for these exact encoded pixels, such as a content digest.
|
|
1233
|
+
*/
|
|
1234
|
+
reference: string;
|
|
1235
|
+
width: number;
|
|
1236
|
+
height: number;
|
|
1237
|
+
mimeType: string;
|
|
1238
|
+
sha256?: string;
|
|
1239
|
+
};
|
|
1240
|
+
/**
|
|
1241
|
+
* Generated factory for {@link VisualScreenshotReference} record objects.
|
|
1242
|
+
*/
|
|
1243
|
+
export declare const VisualScreenshotReference: Readonly<{
|
|
1244
|
+
create: (partial: Partial<VisualScreenshotReference> & Required<Omit<VisualScreenshotReference, "sha256">>) => VisualScreenshotReference;
|
|
1245
|
+
new: (partial: Partial<VisualScreenshotReference> & Required<Omit<VisualScreenshotReference, "sha256">>) => VisualScreenshotReference;
|
|
1246
|
+
defaults: () => Partial<VisualScreenshotReference>;
|
|
1247
|
+
}>;
|
|
1248
|
+
export declare enum VisualActionCoordinateSpace_Tags {
|
|
1249
|
+
ScreenshotPixels = "ScreenshotPixels",
|
|
1250
|
+
Affine = "Affine"
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* Normative mapping from source screenshot pixels to Driver action coordinates.
|
|
1254
|
+
*
|
|
1255
|
+
* Screenshot coordinates always originate at the encoded PNG's top-left; X
|
|
1256
|
+
* increases right and Y increases down. The affine form maps a source point
|
|
1257
|
+
* `(px, py)` exactly as:
|
|
1258
|
+
*
|
|
1259
|
+
* `action_x = m11 * px + m12 * py + tx`
|
|
1260
|
+
*
|
|
1261
|
+
* `action_y = m21 * px + m22 * py + ty`
|
|
1262
|
+
*/
|
|
1263
|
+
export declare const VisualActionCoordinateSpace: Readonly<{
|
|
1264
|
+
instanceOf: (obj: any) => obj is VisualActionCoordinateSpace;
|
|
1265
|
+
ScreenshotPixels: {
|
|
1266
|
+
new (): {
|
|
1267
|
+
readonly tag: VisualActionCoordinateSpace_Tags.ScreenshotPixels;
|
|
1268
|
+
/**
|
|
1269
|
+
* @private
|
|
1270
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1271
|
+
*/
|
|
1272
|
+
readonly [uniffiTypeNameSymbol]: "VisualActionCoordinateSpace";
|
|
1273
|
+
};
|
|
1274
|
+
"new"(): {
|
|
1275
|
+
readonly tag: VisualActionCoordinateSpace_Tags.ScreenshotPixels;
|
|
1276
|
+
/**
|
|
1277
|
+
* @private
|
|
1278
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1279
|
+
*/
|
|
1280
|
+
readonly [uniffiTypeNameSymbol]: "VisualActionCoordinateSpace";
|
|
1281
|
+
};
|
|
1282
|
+
instanceOf(obj: any): obj is {
|
|
1283
|
+
readonly tag: VisualActionCoordinateSpace_Tags.ScreenshotPixels;
|
|
1284
|
+
/**
|
|
1285
|
+
* @private
|
|
1286
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1287
|
+
*/
|
|
1288
|
+
readonly [uniffiTypeNameSymbol]: "VisualActionCoordinateSpace";
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
Affine: {
|
|
1292
|
+
new (inner: {
|
|
1293
|
+
m11: number;
|
|
1294
|
+
m12: number;
|
|
1295
|
+
m21: number;
|
|
1296
|
+
m22: number;
|
|
1297
|
+
tx: number;
|
|
1298
|
+
ty: number;
|
|
1299
|
+
}): {
|
|
1300
|
+
readonly tag: VisualActionCoordinateSpace_Tags.Affine;
|
|
1301
|
+
readonly inner: Readonly<{
|
|
1302
|
+
m11: number;
|
|
1303
|
+
m12: number;
|
|
1304
|
+
m21: number;
|
|
1305
|
+
m22: number;
|
|
1306
|
+
tx: number;
|
|
1307
|
+
ty: number;
|
|
1308
|
+
}>;
|
|
1309
|
+
/**
|
|
1310
|
+
* @private
|
|
1311
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1312
|
+
*/
|
|
1313
|
+
readonly [uniffiTypeNameSymbol]: "VisualActionCoordinateSpace";
|
|
1314
|
+
};
|
|
1315
|
+
"new"(inner: {
|
|
1316
|
+
m11: number;
|
|
1317
|
+
m12: number;
|
|
1318
|
+
m21: number;
|
|
1319
|
+
m22: number;
|
|
1320
|
+
tx: number;
|
|
1321
|
+
ty: number;
|
|
1322
|
+
}): {
|
|
1323
|
+
readonly tag: VisualActionCoordinateSpace_Tags.Affine;
|
|
1324
|
+
readonly inner: Readonly<{
|
|
1325
|
+
m11: number;
|
|
1326
|
+
m12: number;
|
|
1327
|
+
m21: number;
|
|
1328
|
+
m22: number;
|
|
1329
|
+
tx: number;
|
|
1330
|
+
ty: number;
|
|
1331
|
+
}>;
|
|
1332
|
+
/**
|
|
1333
|
+
* @private
|
|
1334
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1335
|
+
*/
|
|
1336
|
+
readonly [uniffiTypeNameSymbol]: "VisualActionCoordinateSpace";
|
|
1337
|
+
};
|
|
1338
|
+
instanceOf(obj: any): obj is {
|
|
1339
|
+
readonly tag: VisualActionCoordinateSpace_Tags.Affine;
|
|
1340
|
+
readonly inner: Readonly<{
|
|
1341
|
+
m11: number;
|
|
1342
|
+
m12: number;
|
|
1343
|
+
m21: number;
|
|
1344
|
+
m22: number;
|
|
1345
|
+
tx: number;
|
|
1346
|
+
ty: number;
|
|
1347
|
+
}>;
|
|
1348
|
+
/**
|
|
1349
|
+
* @private
|
|
1350
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1351
|
+
*/
|
|
1352
|
+
readonly [uniffiTypeNameSymbol]: "VisualActionCoordinateSpace";
|
|
1353
|
+
};
|
|
1354
|
+
};
|
|
1355
|
+
}>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Normative mapping from source screenshot pixels to Driver action coordinates.
|
|
1358
|
+
*
|
|
1359
|
+
* Screenshot coordinates always originate at the encoded PNG's top-left; X
|
|
1360
|
+
* increases right and Y increases down. The affine form maps a source point
|
|
1361
|
+
* `(px, py)` exactly as:
|
|
1362
|
+
*
|
|
1363
|
+
* `action_x = m11 * px + m12 * py + tx`
|
|
1364
|
+
*
|
|
1365
|
+
* `action_y = m21 * px + m22 * py + ty`
|
|
1366
|
+
*/
|
|
1367
|
+
export type VisualActionCoordinateSpace = InstanceType<typeof VisualActionCoordinateSpace['ScreenshotPixels' | 'Affine']>;
|
|
1368
|
+
/**
|
|
1369
|
+
* Immutable capture provenance echoed by a parse result.
|
|
1370
|
+
*/
|
|
1371
|
+
export type VisualCaptureProvenance = {
|
|
1372
|
+
captureId: string;
|
|
1373
|
+
source: VisualCaptureSource;
|
|
1374
|
+
screenshot: VisualScreenshotReference;
|
|
1375
|
+
actionCoordinateSpace: VisualActionCoordinateSpace;
|
|
1376
|
+
capturedAt?: string;
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* Generated factory for {@link VisualCaptureProvenance} record objects.
|
|
1380
|
+
*/
|
|
1381
|
+
export declare const VisualCaptureProvenance: Readonly<{
|
|
1382
|
+
create: (partial: Partial<VisualCaptureProvenance> & Required<Omit<VisualCaptureProvenance, "capturedAt">>) => VisualCaptureProvenance;
|
|
1383
|
+
new: (partial: Partial<VisualCaptureProvenance> & Required<Omit<VisualCaptureProvenance, "capturedAt">>) => VisualCaptureProvenance;
|
|
1384
|
+
defaults: () => Partial<VisualCaptureProvenance>;
|
|
1385
|
+
}>;
|
|
1386
|
+
/**
|
|
1387
|
+
* Identity of the extension and model that produced a result.
|
|
1388
|
+
*/
|
|
1389
|
+
export type VisualParserMetadata = {
|
|
1390
|
+
extensionId: string;
|
|
1391
|
+
extensionVersion: string;
|
|
1392
|
+
modelId: string;
|
|
1393
|
+
modelVersion: string;
|
|
1394
|
+
runtime?: string;
|
|
1395
|
+
backend?: string;
|
|
1396
|
+
modelSourceRevision?: string;
|
|
1397
|
+
modelManifestSha256?: string;
|
|
1398
|
+
onnxRuntimeVersion?: string;
|
|
1399
|
+
onnxRuntimeLibrarySha256?: string;
|
|
1400
|
+
fixtureSha256?: string;
|
|
1401
|
+
};
|
|
1402
|
+
/**
|
|
1403
|
+
* Generated factory for {@link VisualParserMetadata} record objects.
|
|
1404
|
+
*/
|
|
1405
|
+
export declare const VisualParserMetadata: Readonly<{
|
|
1406
|
+
create: (partial: Partial<VisualParserMetadata> & Required<Omit<VisualParserMetadata, "runtime" | "backend" | "modelSourceRevision" | "modelManifestSha256" | "onnxRuntimeVersion" | "onnxRuntimeLibrarySha256" | "fixtureSha256">>) => VisualParserMetadata;
|
|
1407
|
+
new: (partial: Partial<VisualParserMetadata> & Required<Omit<VisualParserMetadata, "runtime" | "backend" | "modelSourceRevision" | "modelManifestSha256" | "onnxRuntimeVersion" | "onnxRuntimeLibrarySha256" | "fixtureSha256">>) => VisualParserMetadata;
|
|
1408
|
+
defaults: () => Partial<VisualParserMetadata>;
|
|
1409
|
+
}>;
|
|
1410
|
+
/**
|
|
1411
|
+
* Integer pixel-edge bounds `[x, x + width) x [y, y + height)`.
|
|
1412
|
+
*
|
|
1413
|
+
* `x` and `y` name the left and top pixel edges. The right and bottom edges
|
|
1414
|
+
* are excluded. A region therefore covers every pixel whose center lies in
|
|
1415
|
+
* this half-open box; its geometric center may lie between pixels.
|
|
1416
|
+
*/
|
|
1417
|
+
export type VisualRegionBounds = {
|
|
1418
|
+
x: number;
|
|
1419
|
+
y: number;
|
|
1420
|
+
width: number;
|
|
1421
|
+
height: number;
|
|
1422
|
+
};
|
|
1423
|
+
/**
|
|
1424
|
+
* Generated factory for {@link VisualRegionBounds} record objects.
|
|
1425
|
+
*/
|
|
1426
|
+
export declare const VisualRegionBounds: Readonly<{
|
|
1427
|
+
create: (partial: Partial<VisualRegionBounds> & Required<Omit<VisualRegionBounds, never>>) => VisualRegionBounds;
|
|
1428
|
+
new: (partial: Partial<VisualRegionBounds> & Required<Omit<VisualRegionBounds, never>>) => VisualRegionBounds;
|
|
1429
|
+
defaults: () => Partial<VisualRegionBounds>;
|
|
1430
|
+
}>;
|
|
1431
|
+
/**
|
|
1432
|
+
* One parser-observed region in the exact source screenshot pixel space.
|
|
1433
|
+
*/
|
|
1434
|
+
export type VisualRegion = {
|
|
1435
|
+
/**
|
|
1436
|
+
* Stable identifier unique within this parse result.
|
|
1437
|
+
*/
|
|
1438
|
+
id: string;
|
|
1439
|
+
kind: VisualRegionKind;
|
|
1440
|
+
bounds: VisualRegionBounds;
|
|
1441
|
+
text?: string;
|
|
1442
|
+
label?: string;
|
|
1443
|
+
confidence: number;
|
|
1444
|
+
interactive: boolean;
|
|
1445
|
+
parentId?: string;
|
|
1446
|
+
groupId?: string;
|
|
1447
|
+
readingOrder?: number;
|
|
1448
|
+
};
|
|
1449
|
+
/**
|
|
1450
|
+
* Generated factory for {@link VisualRegion} record objects.
|
|
1451
|
+
*/
|
|
1452
|
+
export declare const VisualRegion: Readonly<{
|
|
1453
|
+
create: (partial: Partial<VisualRegion> & Required<Omit<VisualRegion, "text" | "label" | "parentId" | "groupId" | "readingOrder">>) => VisualRegion;
|
|
1454
|
+
new: (partial: Partial<VisualRegion> & Required<Omit<VisualRegion, "text" | "label" | "parentId" | "groupId" | "readingOrder">>) => VisualRegion;
|
|
1455
|
+
defaults: () => Partial<VisualRegion>;
|
|
1456
|
+
}>;
|
|
1457
|
+
export type VisualParseWarning = {
|
|
1458
|
+
code: string;
|
|
1459
|
+
message: string;
|
|
1460
|
+
detail?: string;
|
|
1461
|
+
};
|
|
1462
|
+
/**
|
|
1463
|
+
* Generated factory for {@link VisualParseWarning} record objects.
|
|
1464
|
+
*/
|
|
1465
|
+
export declare const VisualParseWarning: Readonly<{
|
|
1466
|
+
create: (partial: Partial<VisualParseWarning> & Required<Omit<VisualParseWarning, "detail">>) => VisualParseWarning;
|
|
1467
|
+
new: (partial: Partial<VisualParseWarning> & Required<Omit<VisualParseWarning, "detail">>) => VisualParseWarning;
|
|
1468
|
+
defaults: () => Partial<VisualParseWarning>;
|
|
1469
|
+
}>;
|
|
1470
|
+
export type VisualParseTiming = {
|
|
1471
|
+
durationMs: bigint;
|
|
1472
|
+
preprocessMs?: bigint;
|
|
1473
|
+
inferenceMs?: bigint;
|
|
1474
|
+
};
|
|
1475
|
+
/**
|
|
1476
|
+
* Generated factory for {@link VisualParseTiming} record objects.
|
|
1477
|
+
*/
|
|
1478
|
+
export declare const VisualParseTiming: Readonly<{
|
|
1479
|
+
create: (partial: Partial<VisualParseTiming> & Required<Omit<VisualParseTiming, "preprocessMs" | "inferenceMs">>) => VisualParseTiming;
|
|
1480
|
+
new: (partial: Partial<VisualParseTiming> & Required<Omit<VisualParseTiming, "preprocessMs" | "inferenceMs">>) => VisualParseTiming;
|
|
1481
|
+
defaults: () => Partial<VisualParseTiming>;
|
|
1482
|
+
}>;
|
|
1483
|
+
export type ParseVisualRegionsOutput = {
|
|
1484
|
+
schema: string;
|
|
1485
|
+
capture: VisualCaptureProvenance;
|
|
1486
|
+
parser: VisualParserMetadata;
|
|
1487
|
+
regions: Array<VisualRegion>;
|
|
1488
|
+
warnings: Array<VisualParseWarning>;
|
|
1489
|
+
timing: VisualParseTiming;
|
|
1490
|
+
requestId?: string;
|
|
1491
|
+
};
|
|
1492
|
+
/**
|
|
1493
|
+
* Generated factory for {@link ParseVisualRegionsOutput} record objects.
|
|
1494
|
+
*/
|
|
1495
|
+
export declare const ParseVisualRegionsOutput: Readonly<{
|
|
1496
|
+
create: (partial: Partial<ParseVisualRegionsOutput> & Required<Omit<ParseVisualRegionsOutput, "requestId">>) => ParseVisualRegionsOutput;
|
|
1497
|
+
new: (partial: Partial<ParseVisualRegionsOutput> & Required<Omit<ParseVisualRegionsOutput, "requestId">>) => ParseVisualRegionsOutput;
|
|
1498
|
+
defaults: () => Partial<ParseVisualRegionsOutput>;
|
|
1499
|
+
}>;
|
|
997
1500
|
export declare enum VerificationStatus {
|
|
998
1501
|
Satisfied = 0,
|
|
999
1502
|
Unsatisfied = 1,
|
|
@@ -1376,6 +1879,41 @@ export declare const VerifyStateOutput: Readonly<{
|
|
|
1376
1879
|
new: (partial: Partial<VerifyStateOutput> & Required<Omit<VerifyStateOutput, never>>) => VerifyStateOutput;
|
|
1377
1880
|
defaults: () => Partial<VerifyStateOutput>;
|
|
1378
1881
|
}>;
|
|
1882
|
+
/**
|
|
1883
|
+
* Stable machine-readable failures for capture lookup and visual parsing.
|
|
1884
|
+
*/
|
|
1885
|
+
export declare enum VisualParseErrorCode {
|
|
1886
|
+
NotInstalled = 0,
|
|
1887
|
+
CaptureNotFound = 1,
|
|
1888
|
+
CaptureExpired = 2,
|
|
1889
|
+
CaptureStale = 3,
|
|
1890
|
+
CaptureGenerationMismatch = 4,
|
|
1891
|
+
UnsupportedTarget = 5,
|
|
1892
|
+
UnsupportedPlatform = 6,
|
|
1893
|
+
IncompatibleProtocol = 7,
|
|
1894
|
+
InvalidFrame = 8,
|
|
1895
|
+
WorkerLaunchFailed = 9,
|
|
1896
|
+
WorkerCrashed = 10,
|
|
1897
|
+
WorkerCancelled = 11,
|
|
1898
|
+
Timeout = 12,
|
|
1899
|
+
ResourceLimitExceeded = 13,
|
|
1900
|
+
ArtifactInvalid = 14,
|
|
1901
|
+
InferenceFailed = 15
|
|
1902
|
+
}
|
|
1903
|
+
export type VisualParseError = {
|
|
1904
|
+
code: VisualParseErrorCode;
|
|
1905
|
+
message: string;
|
|
1906
|
+
retryable: boolean;
|
|
1907
|
+
detail?: string;
|
|
1908
|
+
};
|
|
1909
|
+
/**
|
|
1910
|
+
* Generated factory for {@link VisualParseError} record objects.
|
|
1911
|
+
*/
|
|
1912
|
+
export declare const VisualParseError: Readonly<{
|
|
1913
|
+
create: (partial: Partial<VisualParseError> & Required<Omit<VisualParseError, "detail">>) => VisualParseError;
|
|
1914
|
+
new: (partial: Partial<VisualParseError> & Required<Omit<VisualParseError, "detail">>) => VisualParseError;
|
|
1915
|
+
defaults: () => Partial<VisualParseError>;
|
|
1916
|
+
}>;
|
|
1379
1917
|
export type WindowElement = {
|
|
1380
1918
|
elementIndex: bigint;
|
|
1381
1919
|
role: string;
|
|
@@ -1478,6 +2016,13 @@ declare const _default: Readonly<{
|
|
|
1478
2016
|
lift(value: UniffiByteArray): ActionEffect;
|
|
1479
2017
|
lower(value: ActionEffect, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1480
2018
|
};
|
|
2019
|
+
FfiConverterTypeActionError: {
|
|
2020
|
+
read(from: RustBuffer): ActionError;
|
|
2021
|
+
write(value: ActionError, into: RustBuffer): void;
|
|
2022
|
+
allocationSize(value: ActionError): number;
|
|
2023
|
+
lift(value: UniffiByteArray): ActionError;
|
|
2024
|
+
lower(value: ActionError, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2025
|
+
};
|
|
1481
2026
|
FfiConverterTypeActionEscalation: {
|
|
1482
2027
|
read(from: RustBuffer): ActionEscalation;
|
|
1483
2028
|
write(value: ActionEscalation, into: RustBuffer): void;
|
|
@@ -1849,6 +2394,27 @@ declare const _default: Readonly<{
|
|
|
1849
2394
|
lift(value: UniffiByteArray): MoveCursorInput;
|
|
1850
2395
|
lower(value: MoveCursorInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
1851
2396
|
};
|
|
2397
|
+
FfiConverterTypeParseVisualRegionsInput: {
|
|
2398
|
+
read(from: RustBuffer): ParseVisualRegionsInput;
|
|
2399
|
+
write(value: ParseVisualRegionsInput, into: RustBuffer): void;
|
|
2400
|
+
allocationSize(value: ParseVisualRegionsInput): number;
|
|
2401
|
+
lift(value: UniffiByteArray): ParseVisualRegionsInput;
|
|
2402
|
+
lower(value: ParseVisualRegionsInput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2403
|
+
};
|
|
2404
|
+
FfiConverterTypeParseVisualRegionsOptions: {
|
|
2405
|
+
read(from: RustBuffer): ParseVisualRegionsOptions;
|
|
2406
|
+
write(value: ParseVisualRegionsOptions, into: RustBuffer): void;
|
|
2407
|
+
allocationSize(value: ParseVisualRegionsOptions): number;
|
|
2408
|
+
lift(value: UniffiByteArray): ParseVisualRegionsOptions;
|
|
2409
|
+
lower(value: ParseVisualRegionsOptions, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2410
|
+
};
|
|
2411
|
+
FfiConverterTypeParseVisualRegionsOutput: {
|
|
2412
|
+
read(from: RustBuffer): ParseVisualRegionsOutput;
|
|
2413
|
+
write(value: ParseVisualRegionsOutput, into: RustBuffer): void;
|
|
2414
|
+
allocationSize(value: ParseVisualRegionsOutput): number;
|
|
2415
|
+
lift(value: UniffiByteArray): ParseVisualRegionsOutput;
|
|
2416
|
+
lower(value: ParseVisualRegionsOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2417
|
+
};
|
|
1852
2418
|
FfiConverterTypePlatform: {
|
|
1853
2419
|
read(from: RustBuffer): Platform;
|
|
1854
2420
|
write(value: Platform, into: RustBuffer): void;
|
|
@@ -2038,6 +2604,90 @@ declare const _default: Readonly<{
|
|
|
2038
2604
|
lift(value: UniffiByteArray): VerifyStateOutput;
|
|
2039
2605
|
lower(value: VerifyStateOutput, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2040
2606
|
};
|
|
2607
|
+
FfiConverterTypeVisualActionCoordinateSpace: {
|
|
2608
|
+
read(from: RustBuffer): VisualActionCoordinateSpace;
|
|
2609
|
+
write(value: VisualActionCoordinateSpace, into: RustBuffer): void;
|
|
2610
|
+
allocationSize(value: VisualActionCoordinateSpace): number;
|
|
2611
|
+
lift(value: UniffiByteArray): VisualActionCoordinateSpace;
|
|
2612
|
+
lower(value: VisualActionCoordinateSpace, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2613
|
+
};
|
|
2614
|
+
FfiConverterTypeVisualCaptureProvenance: {
|
|
2615
|
+
read(from: RustBuffer): VisualCaptureProvenance;
|
|
2616
|
+
write(value: VisualCaptureProvenance, into: RustBuffer): void;
|
|
2617
|
+
allocationSize(value: VisualCaptureProvenance): number;
|
|
2618
|
+
lift(value: UniffiByteArray): VisualCaptureProvenance;
|
|
2619
|
+
lower(value: VisualCaptureProvenance, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2620
|
+
};
|
|
2621
|
+
FfiConverterTypeVisualCaptureSource: {
|
|
2622
|
+
read(from: RustBuffer): VisualCaptureSource;
|
|
2623
|
+
write(value: VisualCaptureSource, into: RustBuffer): void;
|
|
2624
|
+
allocationSize(value: VisualCaptureSource): number;
|
|
2625
|
+
lift(value: UniffiByteArray): VisualCaptureSource;
|
|
2626
|
+
lower(value: VisualCaptureSource, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2627
|
+
};
|
|
2628
|
+
FfiConverterTypeVisualParseError: {
|
|
2629
|
+
read(from: RustBuffer): VisualParseError;
|
|
2630
|
+
write(value: VisualParseError, into: RustBuffer): void;
|
|
2631
|
+
allocationSize(value: VisualParseError): number;
|
|
2632
|
+
lift(value: UniffiByteArray): VisualParseError;
|
|
2633
|
+
lower(value: VisualParseError, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2634
|
+
};
|
|
2635
|
+
FfiConverterTypeVisualParseErrorCode: {
|
|
2636
|
+
read(from: RustBuffer): VisualParseErrorCode;
|
|
2637
|
+
write(value: VisualParseErrorCode, into: RustBuffer): void;
|
|
2638
|
+
allocationSize(value: VisualParseErrorCode): number;
|
|
2639
|
+
lift(value: UniffiByteArray): VisualParseErrorCode;
|
|
2640
|
+
lower(value: VisualParseErrorCode, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2641
|
+
};
|
|
2642
|
+
FfiConverterTypeVisualParseTiming: {
|
|
2643
|
+
read(from: RustBuffer): VisualParseTiming;
|
|
2644
|
+
write(value: VisualParseTiming, into: RustBuffer): void;
|
|
2645
|
+
allocationSize(value: VisualParseTiming): number;
|
|
2646
|
+
lift(value: UniffiByteArray): VisualParseTiming;
|
|
2647
|
+
lower(value: VisualParseTiming, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2648
|
+
};
|
|
2649
|
+
FfiConverterTypeVisualParseWarning: {
|
|
2650
|
+
read(from: RustBuffer): VisualParseWarning;
|
|
2651
|
+
write(value: VisualParseWarning, into: RustBuffer): void;
|
|
2652
|
+
allocationSize(value: VisualParseWarning): number;
|
|
2653
|
+
lift(value: UniffiByteArray): VisualParseWarning;
|
|
2654
|
+
lower(value: VisualParseWarning, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2655
|
+
};
|
|
2656
|
+
FfiConverterTypeVisualParserMetadata: {
|
|
2657
|
+
read(from: RustBuffer): VisualParserMetadata;
|
|
2658
|
+
write(value: VisualParserMetadata, into: RustBuffer): void;
|
|
2659
|
+
allocationSize(value: VisualParserMetadata): number;
|
|
2660
|
+
lift(value: UniffiByteArray): VisualParserMetadata;
|
|
2661
|
+
lower(value: VisualParserMetadata, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2662
|
+
};
|
|
2663
|
+
FfiConverterTypeVisualRegion: {
|
|
2664
|
+
read(from: RustBuffer): VisualRegion;
|
|
2665
|
+
write(value: VisualRegion, into: RustBuffer): void;
|
|
2666
|
+
allocationSize(value: VisualRegion): number;
|
|
2667
|
+
lift(value: UniffiByteArray): VisualRegion;
|
|
2668
|
+
lower(value: VisualRegion, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2669
|
+
};
|
|
2670
|
+
FfiConverterTypeVisualRegionBounds: {
|
|
2671
|
+
read(from: RustBuffer): VisualRegionBounds;
|
|
2672
|
+
write(value: VisualRegionBounds, into: RustBuffer): void;
|
|
2673
|
+
allocationSize(value: VisualRegionBounds): number;
|
|
2674
|
+
lift(value: UniffiByteArray): VisualRegionBounds;
|
|
2675
|
+
lower(value: VisualRegionBounds, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2676
|
+
};
|
|
2677
|
+
FfiConverterTypeVisualRegionKind: {
|
|
2678
|
+
read(from: RustBuffer): VisualRegionKind;
|
|
2679
|
+
write(value: VisualRegionKind, into: RustBuffer): void;
|
|
2680
|
+
allocationSize(value: VisualRegionKind): number;
|
|
2681
|
+
lift(value: UniffiByteArray): VisualRegionKind;
|
|
2682
|
+
lower(value: VisualRegionKind, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2683
|
+
};
|
|
2684
|
+
FfiConverterTypeVisualScreenshotReference: {
|
|
2685
|
+
read(from: RustBuffer): VisualScreenshotReference;
|
|
2686
|
+
write(value: VisualScreenshotReference, into: RustBuffer): void;
|
|
2687
|
+
allocationSize(value: VisualScreenshotReference): number;
|
|
2688
|
+
lift(value: UniffiByteArray): VisualScreenshotReference;
|
|
2689
|
+
lower(value: VisualScreenshotReference, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2690
|
+
};
|
|
2041
2691
|
FfiConverterTypeWindowBounds: {
|
|
2042
2692
|
read(from: RustBuffer): WindowBounds;
|
|
2043
2693
|
write(value: WindowBounds, into: RustBuffer): void;
|