@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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
import nativeModule from "./cua_driver_contract-ffi.js";
|
|
7
|
-
import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterFloat64, FfiConverterInt32, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, UniffiInternalError, UniffiRustCaller, uniffiCreateFfiConverterString, uniffiCreateRecord, } from "@ubjs/core";
|
|
7
|
+
import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterFloat64, FfiConverterInt32, FfiConverterInt64, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, UniffiInternalError, UniffiRustCaller, uniffiCreateFfiConverterString, uniffiCreateRecord, } from "@ubjs/core";
|
|
8
8
|
const uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
|
|
9
9
|
const uniffiIsDebug =
|
|
10
10
|
// @ts-ignore -- The process global might not be defined
|
|
@@ -13,6 +13,395 @@ typeof process !== "object" ||
|
|
|
13
13
|
process?.env?.NODE_ENV !== "production" ||
|
|
14
14
|
false;
|
|
15
15
|
// Public interface members begin here.
|
|
16
|
+
export var ActionDeliveryMode;
|
|
17
|
+
(function (ActionDeliveryMode) {
|
|
18
|
+
ActionDeliveryMode[ActionDeliveryMode["Background"] = 0] = "Background";
|
|
19
|
+
ActionDeliveryMode[ActionDeliveryMode["Foreground"] = 1] = "Foreground";
|
|
20
|
+
ActionDeliveryMode[ActionDeliveryMode["NotApplicable"] = 2] = "NotApplicable";
|
|
21
|
+
ActionDeliveryMode[ActionDeliveryMode["Unknown"] = 3] = "Unknown";
|
|
22
|
+
})(ActionDeliveryMode || (ActionDeliveryMode = {}));
|
|
23
|
+
const FfiConverterTypeActionDeliveryMode = (() => {
|
|
24
|
+
const ordinalConverter = FfiConverterInt32;
|
|
25
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
26
|
+
read(from) {
|
|
27
|
+
switch (ordinalConverter.read(from)) {
|
|
28
|
+
case 1: return ActionDeliveryMode.Background;
|
|
29
|
+
case 2: return ActionDeliveryMode.Foreground;
|
|
30
|
+
case 3: return ActionDeliveryMode.NotApplicable;
|
|
31
|
+
case 4: return ActionDeliveryMode.Unknown;
|
|
32
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
write(value, into) {
|
|
36
|
+
switch (value) {
|
|
37
|
+
case ActionDeliveryMode.Background: return ordinalConverter.write(1, into);
|
|
38
|
+
case ActionDeliveryMode.Foreground: return ordinalConverter.write(2, into);
|
|
39
|
+
case ActionDeliveryMode.NotApplicable: return ordinalConverter.write(3, into);
|
|
40
|
+
case ActionDeliveryMode.Unknown: return ordinalConverter.write(4, into);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
allocationSize(value) {
|
|
44
|
+
return ordinalConverter.allocationSize(0);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return new FFIConverter();
|
|
48
|
+
})();
|
|
49
|
+
/**
|
|
50
|
+
* Generated factory for {@link ActionDelivery} record objects.
|
|
51
|
+
*/
|
|
52
|
+
export const ActionDelivery = (() => {
|
|
53
|
+
const defaults = () => ({});
|
|
54
|
+
const create = (() => {
|
|
55
|
+
return uniffiCreateRecord(defaults);
|
|
56
|
+
})();
|
|
57
|
+
return Object.freeze({
|
|
58
|
+
create,
|
|
59
|
+
new: create,
|
|
60
|
+
defaults: () => Object.freeze(defaults()),
|
|
61
|
+
});
|
|
62
|
+
})();
|
|
63
|
+
const FfiConverterTypeActionDelivery = (() => {
|
|
64
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
65
|
+
read(from) {
|
|
66
|
+
return {
|
|
67
|
+
mode: FfiConverterTypeActionDeliveryMode.read(from),
|
|
68
|
+
deliveredCount: FfiConverterOptionalUInt32.read(from)
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
write(value, into) {
|
|
72
|
+
FfiConverterTypeActionDeliveryMode.write(value.mode, into);
|
|
73
|
+
FfiConverterOptionalUInt32.write(value.deliveredCount, into);
|
|
74
|
+
}
|
|
75
|
+
allocationSize(value) {
|
|
76
|
+
return FfiConverterTypeActionDeliveryMode.allocationSize(value.mode) +
|
|
77
|
+
FfiConverterOptionalUInt32.allocationSize(value.deliveredCount);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
;
|
|
81
|
+
return new FFIConverter();
|
|
82
|
+
})();
|
|
83
|
+
export var ActionEscalationTarget;
|
|
84
|
+
(function (ActionEscalationTarget) {
|
|
85
|
+
ActionEscalationTarget[ActionEscalationTarget["Pixel"] = 0] = "Pixel";
|
|
86
|
+
ActionEscalationTarget[ActionEscalationTarget["Foreground"] = 1] = "Foreground";
|
|
87
|
+
ActionEscalationTarget[ActionEscalationTarget["Page"] = 2] = "Page";
|
|
88
|
+
ActionEscalationTarget[ActionEscalationTarget["Session"] = 3] = "Session";
|
|
89
|
+
})(ActionEscalationTarget || (ActionEscalationTarget = {}));
|
|
90
|
+
const FfiConverterTypeActionEscalationTarget = (() => {
|
|
91
|
+
const ordinalConverter = FfiConverterInt32;
|
|
92
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
93
|
+
read(from) {
|
|
94
|
+
switch (ordinalConverter.read(from)) {
|
|
95
|
+
case 1: return ActionEscalationTarget.Pixel;
|
|
96
|
+
case 2: return ActionEscalationTarget.Foreground;
|
|
97
|
+
case 3: return ActionEscalationTarget.Page;
|
|
98
|
+
case 4: return ActionEscalationTarget.Session;
|
|
99
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
write(value, into) {
|
|
103
|
+
switch (value) {
|
|
104
|
+
case ActionEscalationTarget.Pixel: return ordinalConverter.write(1, into);
|
|
105
|
+
case ActionEscalationTarget.Foreground: return ordinalConverter.write(2, into);
|
|
106
|
+
case ActionEscalationTarget.Page: return ordinalConverter.write(3, into);
|
|
107
|
+
case ActionEscalationTarget.Session: return ordinalConverter.write(4, into);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
allocationSize(value) {
|
|
111
|
+
return ordinalConverter.allocationSize(0);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return new FFIConverter();
|
|
115
|
+
})();
|
|
116
|
+
export var ActionEscalationReason;
|
|
117
|
+
(function (ActionEscalationReason) {
|
|
118
|
+
ActionEscalationReason[ActionEscalationReason["RouteUnavailable"] = 0] = "RouteUnavailable";
|
|
119
|
+
ActionEscalationReason[ActionEscalationReason["DeliveryFailed"] = 1] = "DeliveryFailed";
|
|
120
|
+
ActionEscalationReason[ActionEscalationReason["EffectUnconfirmed"] = 2] = "EffectUnconfirmed";
|
|
121
|
+
ActionEscalationReason[ActionEscalationReason["SuspectedNoop"] = 3] = "SuspectedNoop";
|
|
122
|
+
ActionEscalationReason[ActionEscalationReason["PermissionRequired"] = 4] = "PermissionRequired";
|
|
123
|
+
})(ActionEscalationReason || (ActionEscalationReason = {}));
|
|
124
|
+
const FfiConverterTypeActionEscalationReason = (() => {
|
|
125
|
+
const ordinalConverter = FfiConverterInt32;
|
|
126
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
127
|
+
read(from) {
|
|
128
|
+
switch (ordinalConverter.read(from)) {
|
|
129
|
+
case 1: return ActionEscalationReason.RouteUnavailable;
|
|
130
|
+
case 2: return ActionEscalationReason.DeliveryFailed;
|
|
131
|
+
case 3: return ActionEscalationReason.EffectUnconfirmed;
|
|
132
|
+
case 4: return ActionEscalationReason.SuspectedNoop;
|
|
133
|
+
case 5: return ActionEscalationReason.PermissionRequired;
|
|
134
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
write(value, into) {
|
|
138
|
+
switch (value) {
|
|
139
|
+
case ActionEscalationReason.RouteUnavailable: return ordinalConverter.write(1, into);
|
|
140
|
+
case ActionEscalationReason.DeliveryFailed: return ordinalConverter.write(2, into);
|
|
141
|
+
case ActionEscalationReason.EffectUnconfirmed: return ordinalConverter.write(3, into);
|
|
142
|
+
case ActionEscalationReason.SuspectedNoop: return ordinalConverter.write(4, into);
|
|
143
|
+
case ActionEscalationReason.PermissionRequired: return ordinalConverter.write(5, into);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
allocationSize(value) {
|
|
147
|
+
return ordinalConverter.allocationSize(0);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return new FFIConverter();
|
|
151
|
+
})();
|
|
152
|
+
/**
|
|
153
|
+
* Generated factory for {@link ActionEscalation} record objects.
|
|
154
|
+
*/
|
|
155
|
+
export const ActionEscalation = (() => {
|
|
156
|
+
const defaults = () => ({});
|
|
157
|
+
const create = (() => {
|
|
158
|
+
return uniffiCreateRecord(defaults);
|
|
159
|
+
})();
|
|
160
|
+
return Object.freeze({
|
|
161
|
+
create,
|
|
162
|
+
new: create,
|
|
163
|
+
defaults: () => Object.freeze(defaults()),
|
|
164
|
+
});
|
|
165
|
+
})();
|
|
166
|
+
const FfiConverterTypeActionEscalation = (() => {
|
|
167
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
168
|
+
read(from) {
|
|
169
|
+
return {
|
|
170
|
+
target: FfiConverterTypeActionEscalationTarget.read(from),
|
|
171
|
+
reason: FfiConverterTypeActionEscalationReason.read(from)
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
write(value, into) {
|
|
175
|
+
FfiConverterTypeActionEscalationTarget.write(value.target, into);
|
|
176
|
+
FfiConverterTypeActionEscalationReason.write(value.reason, into);
|
|
177
|
+
}
|
|
178
|
+
allocationSize(value) {
|
|
179
|
+
return FfiConverterTypeActionEscalationTarget.allocationSize(value.target) +
|
|
180
|
+
FfiConverterTypeActionEscalationReason.allocationSize(value.reason);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
;
|
|
184
|
+
return new FFIConverter();
|
|
185
|
+
})();
|
|
186
|
+
export var ActionEvidenceKind;
|
|
187
|
+
(function (ActionEvidenceKind) {
|
|
188
|
+
ActionEvidenceKind[ActionEvidenceKind["ValueReadback"] = 0] = "ValueReadback";
|
|
189
|
+
ActionEvidenceKind[ActionEvidenceKind["WindowChange"] = 1] = "WindowChange";
|
|
190
|
+
})(ActionEvidenceKind || (ActionEvidenceKind = {}));
|
|
191
|
+
const FfiConverterTypeActionEvidenceKind = (() => {
|
|
192
|
+
const ordinalConverter = FfiConverterInt32;
|
|
193
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
194
|
+
read(from) {
|
|
195
|
+
switch (ordinalConverter.read(from)) {
|
|
196
|
+
case 1: return ActionEvidenceKind.ValueReadback;
|
|
197
|
+
case 2: return ActionEvidenceKind.WindowChange;
|
|
198
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
write(value, into) {
|
|
202
|
+
switch (value) {
|
|
203
|
+
case ActionEvidenceKind.ValueReadback: return ordinalConverter.write(1, into);
|
|
204
|
+
case ActionEvidenceKind.WindowChange: return ordinalConverter.write(2, into);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
allocationSize(value) {
|
|
208
|
+
return ordinalConverter.allocationSize(0);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return new FFIConverter();
|
|
212
|
+
})();
|
|
213
|
+
/**
|
|
214
|
+
* Generated factory for {@link ActionEvidence} record objects.
|
|
215
|
+
*/
|
|
216
|
+
export const ActionEvidence = (() => {
|
|
217
|
+
const defaults = () => ({});
|
|
218
|
+
const create = (() => {
|
|
219
|
+
return uniffiCreateRecord(defaults);
|
|
220
|
+
})();
|
|
221
|
+
return Object.freeze({
|
|
222
|
+
create,
|
|
223
|
+
new: create,
|
|
224
|
+
defaults: () => Object.freeze(defaults()),
|
|
225
|
+
});
|
|
226
|
+
})();
|
|
227
|
+
const FfiConverterTypeActionEvidence = (() => {
|
|
228
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
229
|
+
read(from) {
|
|
230
|
+
return {
|
|
231
|
+
kind: FfiConverterTypeActionEvidenceKind.read(from)
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
write(value, into) {
|
|
235
|
+
FfiConverterTypeActionEvidenceKind.write(value.kind, into);
|
|
236
|
+
}
|
|
237
|
+
allocationSize(value) {
|
|
238
|
+
return FfiConverterTypeActionEvidenceKind.allocationSize(value.kind);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
;
|
|
242
|
+
return new FFIConverter();
|
|
243
|
+
})();
|
|
244
|
+
export var ActionEffect;
|
|
245
|
+
(function (ActionEffect) {
|
|
246
|
+
ActionEffect[ActionEffect["Confirmed"] = 0] = "Confirmed";
|
|
247
|
+
ActionEffect[ActionEffect["Partial"] = 1] = "Partial";
|
|
248
|
+
ActionEffect[ActionEffect["Unverifiable"] = 2] = "Unverifiable";
|
|
249
|
+
ActionEffect[ActionEffect["SuspectedNoop"] = 3] = "SuspectedNoop";
|
|
250
|
+
ActionEffect[ActionEffect["Refused"] = 4] = "Refused";
|
|
251
|
+
})(ActionEffect || (ActionEffect = {}));
|
|
252
|
+
const FfiConverterTypeActionEffect = (() => {
|
|
253
|
+
const ordinalConverter = FfiConverterInt32;
|
|
254
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
255
|
+
read(from) {
|
|
256
|
+
switch (ordinalConverter.read(from)) {
|
|
257
|
+
case 1: return ActionEffect.Confirmed;
|
|
258
|
+
case 2: return ActionEffect.Partial;
|
|
259
|
+
case 3: return ActionEffect.Unverifiable;
|
|
260
|
+
case 4: return ActionEffect.SuspectedNoop;
|
|
261
|
+
case 5: return ActionEffect.Refused;
|
|
262
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
write(value, into) {
|
|
266
|
+
switch (value) {
|
|
267
|
+
case ActionEffect.Confirmed: return ordinalConverter.write(1, into);
|
|
268
|
+
case ActionEffect.Partial: return ordinalConverter.write(2, into);
|
|
269
|
+
case ActionEffect.Unverifiable: return ordinalConverter.write(3, into);
|
|
270
|
+
case ActionEffect.SuspectedNoop: return ordinalConverter.write(4, into);
|
|
271
|
+
case ActionEffect.Refused: return ordinalConverter.write(5, into);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
allocationSize(value) {
|
|
275
|
+
return ordinalConverter.allocationSize(0);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return new FFIConverter();
|
|
279
|
+
})();
|
|
280
|
+
export var ActionRoute;
|
|
281
|
+
(function (ActionRoute) {
|
|
282
|
+
ActionRoute[ActionRoute["Accessibility"] = 0] = "Accessibility";
|
|
283
|
+
ActionRoute[ActionRoute["SyntheticEvents"] = 1] = "SyntheticEvents";
|
|
284
|
+
ActionRoute[ActionRoute["GlobalInput"] = 2] = "GlobalInput";
|
|
285
|
+
ActionRoute[ActionRoute["SystemApi"] = 3] = "SystemApi";
|
|
286
|
+
ActionRoute[ActionRoute["Dom"] = 4] = "Dom";
|
|
287
|
+
ActionRoute[ActionRoute["TrustedInput"] = 5] = "TrustedInput";
|
|
288
|
+
})(ActionRoute || (ActionRoute = {}));
|
|
289
|
+
const FfiConverterTypeActionRoute = (() => {
|
|
290
|
+
const ordinalConverter = FfiConverterInt32;
|
|
291
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
292
|
+
read(from) {
|
|
293
|
+
switch (ordinalConverter.read(from)) {
|
|
294
|
+
case 1: return ActionRoute.Accessibility;
|
|
295
|
+
case 2: return ActionRoute.SyntheticEvents;
|
|
296
|
+
case 3: return ActionRoute.GlobalInput;
|
|
297
|
+
case 4: return ActionRoute.SystemApi;
|
|
298
|
+
case 5: return ActionRoute.Dom;
|
|
299
|
+
case 6: return ActionRoute.TrustedInput;
|
|
300
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
write(value, into) {
|
|
304
|
+
switch (value) {
|
|
305
|
+
case ActionRoute.Accessibility: return ordinalConverter.write(1, into);
|
|
306
|
+
case ActionRoute.SyntheticEvents: return ordinalConverter.write(2, into);
|
|
307
|
+
case ActionRoute.GlobalInput: return ordinalConverter.write(3, into);
|
|
308
|
+
case ActionRoute.SystemApi: return ordinalConverter.write(4, into);
|
|
309
|
+
case ActionRoute.Dom: return ordinalConverter.write(5, into);
|
|
310
|
+
case ActionRoute.TrustedInput: return ordinalConverter.write(6, into);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
allocationSize(value) {
|
|
314
|
+
return ordinalConverter.allocationSize(0);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return new FFIConverter();
|
|
318
|
+
})();
|
|
319
|
+
/**
|
|
320
|
+
* Generated factory for {@link ActionResult} record objects.
|
|
321
|
+
*/
|
|
322
|
+
export const ActionResult = (() => {
|
|
323
|
+
const defaults = () => ({});
|
|
324
|
+
const create = (() => {
|
|
325
|
+
return uniffiCreateRecord(defaults);
|
|
326
|
+
})();
|
|
327
|
+
return Object.freeze({
|
|
328
|
+
create,
|
|
329
|
+
new: create,
|
|
330
|
+
defaults: () => Object.freeze(defaults()),
|
|
331
|
+
});
|
|
332
|
+
})();
|
|
333
|
+
const FfiConverterTypeActionResult = (() => {
|
|
334
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
335
|
+
read(from) {
|
|
336
|
+
return {
|
|
337
|
+
effect: FfiConverterTypeActionEffect.read(from),
|
|
338
|
+
route: FfiConverterTypeActionRoute.read(from),
|
|
339
|
+
delivery: FfiConverterOptionalTypeActionDelivery.read(from),
|
|
340
|
+
evidence: FfiConverterOptionalSequenceTypeActionEvidence.read(from),
|
|
341
|
+
escalation: FfiConverterOptionalTypeActionEscalation.read(from)
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
write(value, into) {
|
|
345
|
+
FfiConverterTypeActionEffect.write(value.effect, into);
|
|
346
|
+
FfiConverterTypeActionRoute.write(value.route, into);
|
|
347
|
+
FfiConverterOptionalTypeActionDelivery.write(value.delivery, into);
|
|
348
|
+
FfiConverterOptionalSequenceTypeActionEvidence.write(value.evidence, into);
|
|
349
|
+
FfiConverterOptionalTypeActionEscalation.write(value.escalation, into);
|
|
350
|
+
}
|
|
351
|
+
allocationSize(value) {
|
|
352
|
+
return FfiConverterTypeActionEffect.allocationSize(value.effect) +
|
|
353
|
+
FfiConverterTypeActionRoute.allocationSize(value.route) +
|
|
354
|
+
FfiConverterOptionalTypeActionDelivery.allocationSize(value.delivery) +
|
|
355
|
+
FfiConverterOptionalSequenceTypeActionEvidence.allocationSize(value.evidence) +
|
|
356
|
+
FfiConverterOptionalTypeActionEscalation.allocationSize(value.escalation);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
;
|
|
360
|
+
return new FFIConverter();
|
|
361
|
+
})();
|
|
362
|
+
/**
|
|
363
|
+
* Generated factory for {@link BoundsExpectation} record objects.
|
|
364
|
+
*/
|
|
365
|
+
export const BoundsExpectation = (() => {
|
|
366
|
+
const defaults = () => ({});
|
|
367
|
+
const create = (() => {
|
|
368
|
+
return uniffiCreateRecord(defaults);
|
|
369
|
+
})();
|
|
370
|
+
return Object.freeze({
|
|
371
|
+
create,
|
|
372
|
+
new: create,
|
|
373
|
+
defaults: () => Object.freeze(defaults()),
|
|
374
|
+
});
|
|
375
|
+
})();
|
|
376
|
+
const FfiConverterTypeBoundsExpectation = (() => {
|
|
377
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
378
|
+
read(from) {
|
|
379
|
+
return {
|
|
380
|
+
x: FfiConverterFloat64.read(from),
|
|
381
|
+
y: FfiConverterFloat64.read(from),
|
|
382
|
+
width: FfiConverterFloat64.read(from),
|
|
383
|
+
height: FfiConverterFloat64.read(from),
|
|
384
|
+
tolerancePx: FfiConverterOptionalFloat64.read(from)
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
write(value, into) {
|
|
388
|
+
FfiConverterFloat64.write(value.x, into);
|
|
389
|
+
FfiConverterFloat64.write(value.y, into);
|
|
390
|
+
FfiConverterFloat64.write(value.width, into);
|
|
391
|
+
FfiConverterFloat64.write(value.height, into);
|
|
392
|
+
FfiConverterOptionalFloat64.write(value.tolerancePx, into);
|
|
393
|
+
}
|
|
394
|
+
allocationSize(value) {
|
|
395
|
+
return FfiConverterFloat64.allocationSize(value.x) +
|
|
396
|
+
FfiConverterFloat64.allocationSize(value.y) +
|
|
397
|
+
FfiConverterFloat64.allocationSize(value.width) +
|
|
398
|
+
FfiConverterFloat64.allocationSize(value.height) +
|
|
399
|
+
FfiConverterOptionalFloat64.allocationSize(value.tolerancePx);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
;
|
|
403
|
+
return new FFIConverter();
|
|
404
|
+
})();
|
|
16
405
|
export var DesktopScope;
|
|
17
406
|
(function (DesktopScope) {
|
|
18
407
|
DesktopScope[DesktopScope["Desktop"] = 0] = "Desktop";
|
|
@@ -128,6 +517,166 @@ const FfiConverterTypeClickInput = (() => {
|
|
|
128
517
|
;
|
|
129
518
|
return new FFIConverter();
|
|
130
519
|
})();
|
|
520
|
+
/**
|
|
521
|
+
* Generated factory for {@link ClipboardReadInput} record objects.
|
|
522
|
+
*/
|
|
523
|
+
export const ClipboardReadInput = (() => {
|
|
524
|
+
const defaults = () => ({});
|
|
525
|
+
const create = (() => {
|
|
526
|
+
return uniffiCreateRecord(defaults);
|
|
527
|
+
})();
|
|
528
|
+
return Object.freeze({
|
|
529
|
+
create,
|
|
530
|
+
new: create,
|
|
531
|
+
defaults: () => Object.freeze(defaults()),
|
|
532
|
+
});
|
|
533
|
+
})();
|
|
534
|
+
const FfiConverterTypeClipboardReadInput = (() => {
|
|
535
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
536
|
+
read(from) {
|
|
537
|
+
return {
|
|
538
|
+
includeText: FfiConverterBool.read(from),
|
|
539
|
+
session: FfiConverterOptionalString.read(from)
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
write(value, into) {
|
|
543
|
+
FfiConverterBool.write(value.includeText, into);
|
|
544
|
+
FfiConverterOptionalString.write(value.session, into);
|
|
545
|
+
}
|
|
546
|
+
allocationSize(value) {
|
|
547
|
+
return FfiConverterBool.allocationSize(value.includeText) +
|
|
548
|
+
FfiConverterOptionalString.allocationSize(value.session);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
;
|
|
552
|
+
return new FFIConverter();
|
|
553
|
+
})();
|
|
554
|
+
/**
|
|
555
|
+
* Generated factory for {@link ClipboardReadOutput} record objects.
|
|
556
|
+
*/
|
|
557
|
+
export const ClipboardReadOutput = (() => {
|
|
558
|
+
const defaults = () => ({});
|
|
559
|
+
const create = (() => {
|
|
560
|
+
return uniffiCreateRecord(defaults);
|
|
561
|
+
})();
|
|
562
|
+
return Object.freeze({
|
|
563
|
+
create,
|
|
564
|
+
new: create,
|
|
565
|
+
defaults: () => Object.freeze(defaults()),
|
|
566
|
+
});
|
|
567
|
+
})();
|
|
568
|
+
const FfiConverterTypeClipboardReadOutput = (() => {
|
|
569
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
570
|
+
read(from) {
|
|
571
|
+
return {
|
|
572
|
+
supported: FfiConverterBool.read(from),
|
|
573
|
+
types: FfiConverterSequenceString.read(from),
|
|
574
|
+
text: FfiConverterOptionalString.read(from),
|
|
575
|
+
privacySensitive: FfiConverterBool.read(from),
|
|
576
|
+
contentRedactedFromTelemetry: FfiConverterBool.read(from)
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
write(value, into) {
|
|
580
|
+
FfiConverterBool.write(value.supported, into);
|
|
581
|
+
FfiConverterSequenceString.write(value.types, into);
|
|
582
|
+
FfiConverterOptionalString.write(value.text, into);
|
|
583
|
+
FfiConverterBool.write(value.privacySensitive, into);
|
|
584
|
+
FfiConverterBool.write(value.contentRedactedFromTelemetry, into);
|
|
585
|
+
}
|
|
586
|
+
allocationSize(value) {
|
|
587
|
+
return FfiConverterBool.allocationSize(value.supported) +
|
|
588
|
+
FfiConverterSequenceString.allocationSize(value.types) +
|
|
589
|
+
FfiConverterOptionalString.allocationSize(value.text) +
|
|
590
|
+
FfiConverterBool.allocationSize(value.privacySensitive) +
|
|
591
|
+
FfiConverterBool.allocationSize(value.contentRedactedFromTelemetry);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
;
|
|
595
|
+
return new FFIConverter();
|
|
596
|
+
})();
|
|
597
|
+
/**
|
|
598
|
+
* Generated factory for {@link ClipboardWriteInput} record objects.
|
|
599
|
+
*/
|
|
600
|
+
export const ClipboardWriteInput = (() => {
|
|
601
|
+
const defaults = () => ({});
|
|
602
|
+
const create = (() => {
|
|
603
|
+
return uniffiCreateRecord(defaults);
|
|
604
|
+
})();
|
|
605
|
+
return Object.freeze({
|
|
606
|
+
create,
|
|
607
|
+
new: create,
|
|
608
|
+
defaults: () => Object.freeze(defaults()),
|
|
609
|
+
});
|
|
610
|
+
})();
|
|
611
|
+
const FfiConverterTypeClipboardWriteInput = (() => {
|
|
612
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
613
|
+
read(from) {
|
|
614
|
+
return {
|
|
615
|
+
text: FfiConverterOptionalString.read(from),
|
|
616
|
+
imagePath: FfiConverterOptionalString.read(from),
|
|
617
|
+
filePath: FfiConverterOptionalString.read(from),
|
|
618
|
+
session: FfiConverterOptionalString.read(from)
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
write(value, into) {
|
|
622
|
+
FfiConverterOptionalString.write(value.text, into);
|
|
623
|
+
FfiConverterOptionalString.write(value.imagePath, into);
|
|
624
|
+
FfiConverterOptionalString.write(value.filePath, into);
|
|
625
|
+
FfiConverterOptionalString.write(value.session, into);
|
|
626
|
+
}
|
|
627
|
+
allocationSize(value) {
|
|
628
|
+
return FfiConverterOptionalString.allocationSize(value.text) +
|
|
629
|
+
FfiConverterOptionalString.allocationSize(value.imagePath) +
|
|
630
|
+
FfiConverterOptionalString.allocationSize(value.filePath) +
|
|
631
|
+
FfiConverterOptionalString.allocationSize(value.session);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
;
|
|
635
|
+
return new FFIConverter();
|
|
636
|
+
})();
|
|
637
|
+
/**
|
|
638
|
+
* Generated factory for {@link ClipboardWriteOutput} record objects.
|
|
639
|
+
*/
|
|
640
|
+
export const ClipboardWriteOutput = (() => {
|
|
641
|
+
const defaults = () => ({});
|
|
642
|
+
const create = (() => {
|
|
643
|
+
return uniffiCreateRecord(defaults);
|
|
644
|
+
})();
|
|
645
|
+
return Object.freeze({
|
|
646
|
+
create,
|
|
647
|
+
new: create,
|
|
648
|
+
defaults: () => Object.freeze(defaults()),
|
|
649
|
+
});
|
|
650
|
+
})();
|
|
651
|
+
const FfiConverterTypeClipboardWriteOutput = (() => {
|
|
652
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
653
|
+
read(from) {
|
|
654
|
+
return {
|
|
655
|
+
supported: FfiConverterBool.read(from),
|
|
656
|
+
writtenType: FfiConverterString.read(from),
|
|
657
|
+
types: FfiConverterSequenceString.read(from),
|
|
658
|
+
privacySensitive: FfiConverterBool.read(from),
|
|
659
|
+
contentRedactedFromTelemetry: FfiConverterBool.read(from)
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
write(value, into) {
|
|
663
|
+
FfiConverterBool.write(value.supported, into);
|
|
664
|
+
FfiConverterString.write(value.writtenType, into);
|
|
665
|
+
FfiConverterSequenceString.write(value.types, into);
|
|
666
|
+
FfiConverterBool.write(value.privacySensitive, into);
|
|
667
|
+
FfiConverterBool.write(value.contentRedactedFromTelemetry, into);
|
|
668
|
+
}
|
|
669
|
+
allocationSize(value) {
|
|
670
|
+
return FfiConverterBool.allocationSize(value.supported) +
|
|
671
|
+
FfiConverterString.allocationSize(value.writtenType) +
|
|
672
|
+
FfiConverterSequenceString.allocationSize(value.types) +
|
|
673
|
+
FfiConverterBool.allocationSize(value.privacySensitive) +
|
|
674
|
+
FfiConverterBool.allocationSize(value.contentRedactedFromTelemetry);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
;
|
|
678
|
+
return new FFIConverter();
|
|
679
|
+
})();
|
|
131
680
|
/**
|
|
132
681
|
* Generated factory for {@link CursorMotionOutput} record objects.
|
|
133
682
|
*/
|
|
@@ -485,6 +1034,83 @@ const FfiConverterTypeDragInput = (() => {
|
|
|
485
1034
|
;
|
|
486
1035
|
return new FFIConverter();
|
|
487
1036
|
})();
|
|
1037
|
+
/**
|
|
1038
|
+
* Generated factory for {@link ElementSelector} record objects.
|
|
1039
|
+
*/
|
|
1040
|
+
export const ElementSelector = (() => {
|
|
1041
|
+
const defaults = () => ({});
|
|
1042
|
+
const create = (() => {
|
|
1043
|
+
return uniffiCreateRecord(defaults);
|
|
1044
|
+
})();
|
|
1045
|
+
return Object.freeze({
|
|
1046
|
+
create,
|
|
1047
|
+
new: create,
|
|
1048
|
+
defaults: () => Object.freeze(defaults()),
|
|
1049
|
+
});
|
|
1050
|
+
})();
|
|
1051
|
+
const FfiConverterTypeElementSelector = (() => {
|
|
1052
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1053
|
+
read(from) {
|
|
1054
|
+
return {
|
|
1055
|
+
role: FfiConverterOptionalString.read(from),
|
|
1056
|
+
labelContains: FfiConverterOptionalString.read(from)
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
write(value, into) {
|
|
1060
|
+
FfiConverterOptionalString.write(value.role, into);
|
|
1061
|
+
FfiConverterOptionalString.write(value.labelContains, into);
|
|
1062
|
+
}
|
|
1063
|
+
allocationSize(value) {
|
|
1064
|
+
return FfiConverterOptionalString.allocationSize(value.role) +
|
|
1065
|
+
FfiConverterOptionalString.allocationSize(value.labelContains);
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
;
|
|
1069
|
+
return new FFIConverter();
|
|
1070
|
+
})();
|
|
1071
|
+
/**
|
|
1072
|
+
* Generated factory for {@link ElementPredicate} record objects.
|
|
1073
|
+
*/
|
|
1074
|
+
export const ElementPredicate = (() => {
|
|
1075
|
+
const defaults = () => ({});
|
|
1076
|
+
const create = (() => {
|
|
1077
|
+
return uniffiCreateRecord(defaults);
|
|
1078
|
+
})();
|
|
1079
|
+
return Object.freeze({
|
|
1080
|
+
create,
|
|
1081
|
+
new: create,
|
|
1082
|
+
defaults: () => Object.freeze(defaults()),
|
|
1083
|
+
});
|
|
1084
|
+
})();
|
|
1085
|
+
const FfiConverterTypeElementPredicate = (() => {
|
|
1086
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1087
|
+
read(from) {
|
|
1088
|
+
return {
|
|
1089
|
+
selector: FfiConverterTypeElementSelector.read(from),
|
|
1090
|
+
exists: FfiConverterOptionalBoolean.read(from),
|
|
1091
|
+
valueEquals: FfiConverterOptionalString.read(from),
|
|
1092
|
+
enabled: FfiConverterOptionalBoolean.read(from),
|
|
1093
|
+
selected: FfiConverterOptionalBoolean.read(from)
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
write(value, into) {
|
|
1097
|
+
FfiConverterTypeElementSelector.write(value.selector, into);
|
|
1098
|
+
FfiConverterOptionalBoolean.write(value.exists, into);
|
|
1099
|
+
FfiConverterOptionalString.write(value.valueEquals, into);
|
|
1100
|
+
FfiConverterOptionalBoolean.write(value.enabled, into);
|
|
1101
|
+
FfiConverterOptionalBoolean.write(value.selected, into);
|
|
1102
|
+
}
|
|
1103
|
+
allocationSize(value) {
|
|
1104
|
+
return FfiConverterTypeElementSelector.allocationSize(value.selector) +
|
|
1105
|
+
FfiConverterOptionalBoolean.allocationSize(value.exists) +
|
|
1106
|
+
FfiConverterOptionalString.allocationSize(value.valueEquals) +
|
|
1107
|
+
FfiConverterOptionalBoolean.allocationSize(value.enabled) +
|
|
1108
|
+
FfiConverterOptionalBoolean.allocationSize(value.selected);
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
;
|
|
1112
|
+
return new FFIConverter();
|
|
1113
|
+
})();
|
|
488
1114
|
/**
|
|
489
1115
|
* Generated factory for {@link EndSessionInput} record objects.
|
|
490
1116
|
*/
|
|
@@ -904,6 +1530,118 @@ const FfiConverterTypeMoveCursorInput = (() => {
|
|
|
904
1530
|
;
|
|
905
1531
|
return new FFIConverter();
|
|
906
1532
|
})();
|
|
1533
|
+
export var VerificationStatus;
|
|
1534
|
+
(function (VerificationStatus) {
|
|
1535
|
+
VerificationStatus[VerificationStatus["Satisfied"] = 0] = "Satisfied";
|
|
1536
|
+
VerificationStatus[VerificationStatus["Unsatisfied"] = 1] = "Unsatisfied";
|
|
1537
|
+
VerificationStatus[VerificationStatus["Unknown"] = 2] = "Unknown";
|
|
1538
|
+
})(VerificationStatus || (VerificationStatus = {}));
|
|
1539
|
+
const FfiConverterTypeVerificationStatus = (() => {
|
|
1540
|
+
const ordinalConverter = FfiConverterInt32;
|
|
1541
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1542
|
+
read(from) {
|
|
1543
|
+
switch (ordinalConverter.read(from)) {
|
|
1544
|
+
case 1: return VerificationStatus.Satisfied;
|
|
1545
|
+
case 2: return VerificationStatus.Unsatisfied;
|
|
1546
|
+
case 3: return VerificationStatus.Unknown;
|
|
1547
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
write(value, into) {
|
|
1551
|
+
switch (value) {
|
|
1552
|
+
case VerificationStatus.Satisfied: return ordinalConverter.write(1, into);
|
|
1553
|
+
case VerificationStatus.Unsatisfied: return ordinalConverter.write(2, into);
|
|
1554
|
+
case VerificationStatus.Unknown: return ordinalConverter.write(3, into);
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
allocationSize(value) {
|
|
1558
|
+
return ordinalConverter.allocationSize(0);
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
return new FFIConverter();
|
|
1562
|
+
})();
|
|
1563
|
+
export var UnknownReason;
|
|
1564
|
+
(function (UnknownReason) {
|
|
1565
|
+
UnknownReason[UnknownReason["InvalidPredicate"] = 0] = "InvalidPredicate";
|
|
1566
|
+
UnknownReason[UnknownReason["UnsupportedPredicate"] = 1] = "UnsupportedPredicate";
|
|
1567
|
+
UnknownReason[UnknownReason["UntrustedSource"] = 2] = "UntrustedSource";
|
|
1568
|
+
UnknownReason[UnknownReason["MultiMatch"] = 3] = "MultiMatch";
|
|
1569
|
+
UnknownReason[UnknownReason["TargetMissing"] = 4] = "TargetMissing";
|
|
1570
|
+
UnknownReason[UnknownReason["ObservationUnavailable"] = 5] = "ObservationUnavailable";
|
|
1571
|
+
UnknownReason[UnknownReason["StabilityUnproven"] = 6] = "StabilityUnproven";
|
|
1572
|
+
})(UnknownReason || (UnknownReason = {}));
|
|
1573
|
+
const FfiConverterTypeUnknownReason = (() => {
|
|
1574
|
+
const ordinalConverter = FfiConverterInt32;
|
|
1575
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1576
|
+
read(from) {
|
|
1577
|
+
switch (ordinalConverter.read(from)) {
|
|
1578
|
+
case 1: return UnknownReason.InvalidPredicate;
|
|
1579
|
+
case 2: return UnknownReason.UnsupportedPredicate;
|
|
1580
|
+
case 3: return UnknownReason.UntrustedSource;
|
|
1581
|
+
case 4: return UnknownReason.MultiMatch;
|
|
1582
|
+
case 5: return UnknownReason.TargetMissing;
|
|
1583
|
+
case 6: return UnknownReason.ObservationUnavailable;
|
|
1584
|
+
case 7: return UnknownReason.StabilityUnproven;
|
|
1585
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
write(value, into) {
|
|
1589
|
+
switch (value) {
|
|
1590
|
+
case UnknownReason.InvalidPredicate: return ordinalConverter.write(1, into);
|
|
1591
|
+
case UnknownReason.UnsupportedPredicate: return ordinalConverter.write(2, into);
|
|
1592
|
+
case UnknownReason.UntrustedSource: return ordinalConverter.write(3, into);
|
|
1593
|
+
case UnknownReason.MultiMatch: return ordinalConverter.write(4, into);
|
|
1594
|
+
case UnknownReason.TargetMissing: return ordinalConverter.write(5, into);
|
|
1595
|
+
case UnknownReason.ObservationUnavailable: return ordinalConverter.write(6, into);
|
|
1596
|
+
case UnknownReason.StabilityUnproven: return ordinalConverter.write(7, into);
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
allocationSize(value) {
|
|
1600
|
+
return ordinalConverter.allocationSize(0);
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
return new FFIConverter();
|
|
1604
|
+
})();
|
|
1605
|
+
/**
|
|
1606
|
+
* Generated factory for {@link PredicateOutcome} record objects.
|
|
1607
|
+
*/
|
|
1608
|
+
export const PredicateOutcome = (() => {
|
|
1609
|
+
const defaults = () => ({});
|
|
1610
|
+
const create = (() => {
|
|
1611
|
+
return uniffiCreateRecord(defaults);
|
|
1612
|
+
})();
|
|
1613
|
+
return Object.freeze({
|
|
1614
|
+
create,
|
|
1615
|
+
new: create,
|
|
1616
|
+
defaults: () => Object.freeze(defaults()),
|
|
1617
|
+
});
|
|
1618
|
+
})();
|
|
1619
|
+
const FfiConverterTypePredicateOutcome = (() => {
|
|
1620
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1621
|
+
read(from) {
|
|
1622
|
+
return {
|
|
1623
|
+
index: FfiConverterUInt64.read(from),
|
|
1624
|
+
status: FfiConverterTypeVerificationStatus.read(from),
|
|
1625
|
+
unknownReason: FfiConverterOptionalTypeUnknownReason.read(from),
|
|
1626
|
+
observedJson: FfiConverterOptionalString.read(from)
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
write(value, into) {
|
|
1630
|
+
FfiConverterUInt64.write(value.index, into);
|
|
1631
|
+
FfiConverterTypeVerificationStatus.write(value.status, into);
|
|
1632
|
+
FfiConverterOptionalTypeUnknownReason.write(value.unknownReason, into);
|
|
1633
|
+
FfiConverterOptionalString.write(value.observedJson, into);
|
|
1634
|
+
}
|
|
1635
|
+
allocationSize(value) {
|
|
1636
|
+
return FfiConverterUInt64.allocationSize(value.index) +
|
|
1637
|
+
FfiConverterTypeVerificationStatus.allocationSize(value.status) +
|
|
1638
|
+
FfiConverterOptionalTypeUnknownReason.allocationSize(value.unknownReason) +
|
|
1639
|
+
FfiConverterOptionalString.allocationSize(value.observedJson);
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
;
|
|
1643
|
+
return new FFIConverter();
|
|
1644
|
+
})();
|
|
907
1645
|
/**
|
|
908
1646
|
* Generated factory for {@link PressKeyInput} record objects.
|
|
909
1647
|
*/
|
|
@@ -1387,6 +2125,55 @@ const FfiConverterTypeSetAgentCursorThemeOutput = (() => {
|
|
|
1387
2125
|
;
|
|
1388
2126
|
return new FFIConverter();
|
|
1389
2127
|
})();
|
|
2128
|
+
/**
|
|
2129
|
+
* Generated factory for {@link SetWindowFrameInput} record objects.
|
|
2130
|
+
*/
|
|
2131
|
+
export const SetWindowFrameInput = (() => {
|
|
2132
|
+
const defaults = () => ({});
|
|
2133
|
+
const create = (() => {
|
|
2134
|
+
return uniffiCreateRecord(defaults);
|
|
2135
|
+
})();
|
|
2136
|
+
return Object.freeze({
|
|
2137
|
+
create,
|
|
2138
|
+
new: create,
|
|
2139
|
+
defaults: () => Object.freeze(defaults()),
|
|
2140
|
+
});
|
|
2141
|
+
})();
|
|
2142
|
+
const FfiConverterTypeSetWindowFrameInput = (() => {
|
|
2143
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2144
|
+
read(from) {
|
|
2145
|
+
return {
|
|
2146
|
+
pid: FfiConverterUInt32.read(from),
|
|
2147
|
+
windowId: FfiConverterUInt64.read(from),
|
|
2148
|
+
x: FfiConverterFloat64.read(from),
|
|
2149
|
+
y: FfiConverterFloat64.read(from),
|
|
2150
|
+
width: FfiConverterFloat64.read(from),
|
|
2151
|
+
height: FfiConverterFloat64.read(from),
|
|
2152
|
+
session: FfiConverterOptionalString.read(from)
|
|
2153
|
+
};
|
|
2154
|
+
}
|
|
2155
|
+
write(value, into) {
|
|
2156
|
+
FfiConverterUInt32.write(value.pid, into);
|
|
2157
|
+
FfiConverterUInt64.write(value.windowId, into);
|
|
2158
|
+
FfiConverterFloat64.write(value.x, into);
|
|
2159
|
+
FfiConverterFloat64.write(value.y, into);
|
|
2160
|
+
FfiConverterFloat64.write(value.width, into);
|
|
2161
|
+
FfiConverterFloat64.write(value.height, into);
|
|
2162
|
+
FfiConverterOptionalString.write(value.session, into);
|
|
2163
|
+
}
|
|
2164
|
+
allocationSize(value) {
|
|
2165
|
+
return FfiConverterUInt32.allocationSize(value.pid) +
|
|
2166
|
+
FfiConverterUInt64.allocationSize(value.windowId) +
|
|
2167
|
+
FfiConverterFloat64.allocationSize(value.x) +
|
|
2168
|
+
FfiConverterFloat64.allocationSize(value.y) +
|
|
2169
|
+
FfiConverterFloat64.allocationSize(value.width) +
|
|
2170
|
+
FfiConverterFloat64.allocationSize(value.height) +
|
|
2171
|
+
FfiConverterOptionalString.allocationSize(value.session);
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
;
|
|
2175
|
+
return new FFIConverter();
|
|
2176
|
+
})();
|
|
1390
2177
|
/**
|
|
1391
2178
|
* Generated factory for {@link StartSessionInput} record objects.
|
|
1392
2179
|
*/
|
|
@@ -1461,6 +2248,74 @@ const FfiConverterTypeStartSessionOutput = (() => {
|
|
|
1461
2248
|
;
|
|
1462
2249
|
return new FFIConverter();
|
|
1463
2250
|
})();
|
|
2251
|
+
/**
|
|
2252
|
+
* Generated factory for {@link WindowPredicate} record objects.
|
|
2253
|
+
*/
|
|
2254
|
+
export const WindowPredicate = (() => {
|
|
2255
|
+
const defaults = () => ({});
|
|
2256
|
+
const create = (() => {
|
|
2257
|
+
return uniffiCreateRecord(defaults);
|
|
2258
|
+
})();
|
|
2259
|
+
return Object.freeze({
|
|
2260
|
+
create,
|
|
2261
|
+
new: create,
|
|
2262
|
+
defaults: () => Object.freeze(defaults()),
|
|
2263
|
+
});
|
|
2264
|
+
})();
|
|
2265
|
+
const FfiConverterTypeWindowPredicate = (() => {
|
|
2266
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2267
|
+
read(from) {
|
|
2268
|
+
return {
|
|
2269
|
+
exists: FfiConverterOptionalBoolean.read(from),
|
|
2270
|
+
bounds: FfiConverterOptionalTypeBoundsExpectation.read(from)
|
|
2271
|
+
};
|
|
2272
|
+
}
|
|
2273
|
+
write(value, into) {
|
|
2274
|
+
FfiConverterOptionalBoolean.write(value.exists, into);
|
|
2275
|
+
FfiConverterOptionalTypeBoundsExpectation.write(value.bounds, into);
|
|
2276
|
+
}
|
|
2277
|
+
allocationSize(value) {
|
|
2278
|
+
return FfiConverterOptionalBoolean.allocationSize(value.exists) +
|
|
2279
|
+
FfiConverterOptionalTypeBoundsExpectation.allocationSize(value.bounds);
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
;
|
|
2283
|
+
return new FFIConverter();
|
|
2284
|
+
})();
|
|
2285
|
+
/**
|
|
2286
|
+
* Generated factory for {@link StatePredicate} record objects.
|
|
2287
|
+
*/
|
|
2288
|
+
export const StatePredicate = (() => {
|
|
2289
|
+
const defaults = () => ({});
|
|
2290
|
+
const create = (() => {
|
|
2291
|
+
return uniffiCreateRecord(defaults);
|
|
2292
|
+
})();
|
|
2293
|
+
return Object.freeze({
|
|
2294
|
+
create,
|
|
2295
|
+
new: create,
|
|
2296
|
+
defaults: () => Object.freeze(defaults()),
|
|
2297
|
+
});
|
|
2298
|
+
})();
|
|
2299
|
+
const FfiConverterTypeStatePredicate = (() => {
|
|
2300
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2301
|
+
read(from) {
|
|
2302
|
+
return {
|
|
2303
|
+
window: FfiConverterOptionalTypeWindowPredicate.read(from),
|
|
2304
|
+
element: FfiConverterOptionalTypeElementPredicate.read(from)
|
|
2305
|
+
};
|
|
2306
|
+
}
|
|
2307
|
+
write(value, into) {
|
|
2308
|
+
FfiConverterOptionalTypeWindowPredicate.write(value.window, into);
|
|
2309
|
+
FfiConverterOptionalTypeElementPredicate.write(value.element, into);
|
|
2310
|
+
}
|
|
2311
|
+
allocationSize(value) {
|
|
2312
|
+
return FfiConverterOptionalTypeWindowPredicate.allocationSize(value.window) +
|
|
2313
|
+
FfiConverterOptionalTypeElementPredicate.allocationSize(value.element);
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
;
|
|
2317
|
+
return new FFIConverter();
|
|
2318
|
+
})();
|
|
1464
2319
|
/**
|
|
1465
2320
|
* Generated factory for {@link TypeTextInput} record objects.
|
|
1466
2321
|
*/
|
|
@@ -1498,6 +2353,98 @@ const FfiConverterTypeTypeTextInput = (() => {
|
|
|
1498
2353
|
;
|
|
1499
2354
|
return new FFIConverter();
|
|
1500
2355
|
})();
|
|
2356
|
+
/**
|
|
2357
|
+
* Generated factory for {@link VerifyStateInput} record objects.
|
|
2358
|
+
*/
|
|
2359
|
+
export const VerifyStateInput = (() => {
|
|
2360
|
+
const defaults = () => ({});
|
|
2361
|
+
const create = (() => {
|
|
2362
|
+
return uniffiCreateRecord(defaults);
|
|
2363
|
+
})();
|
|
2364
|
+
return Object.freeze({
|
|
2365
|
+
create,
|
|
2366
|
+
new: create,
|
|
2367
|
+
defaults: () => Object.freeze(defaults()),
|
|
2368
|
+
});
|
|
2369
|
+
})();
|
|
2370
|
+
const FfiConverterTypeVerifyStateInput = (() => {
|
|
2371
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2372
|
+
read(from) {
|
|
2373
|
+
return {
|
|
2374
|
+
pid: FfiConverterInt64.read(from),
|
|
2375
|
+
windowId: FfiConverterUInt64.read(from),
|
|
2376
|
+
expect: FfiConverterSequenceTypeStatePredicate.read(from),
|
|
2377
|
+
session: FfiConverterOptionalString.read(from),
|
|
2378
|
+
timeoutMs: FfiConverterOptionalUInt64.read(from),
|
|
2379
|
+
stableSamples: FfiConverterOptionalUInt64.read(from),
|
|
2380
|
+
includeScreenshot: FfiConverterOptionalBoolean.read(from)
|
|
2381
|
+
};
|
|
2382
|
+
}
|
|
2383
|
+
write(value, into) {
|
|
2384
|
+
FfiConverterInt64.write(value.pid, into);
|
|
2385
|
+
FfiConverterUInt64.write(value.windowId, into);
|
|
2386
|
+
FfiConverterSequenceTypeStatePredicate.write(value.expect, into);
|
|
2387
|
+
FfiConverterOptionalString.write(value.session, into);
|
|
2388
|
+
FfiConverterOptionalUInt64.write(value.timeoutMs, into);
|
|
2389
|
+
FfiConverterOptionalUInt64.write(value.stableSamples, into);
|
|
2390
|
+
FfiConverterOptionalBoolean.write(value.includeScreenshot, into);
|
|
2391
|
+
}
|
|
2392
|
+
allocationSize(value) {
|
|
2393
|
+
return FfiConverterInt64.allocationSize(value.pid) +
|
|
2394
|
+
FfiConverterUInt64.allocationSize(value.windowId) +
|
|
2395
|
+
FfiConverterSequenceTypeStatePredicate.allocationSize(value.expect) +
|
|
2396
|
+
FfiConverterOptionalString.allocationSize(value.session) +
|
|
2397
|
+
FfiConverterOptionalUInt64.allocationSize(value.timeoutMs) +
|
|
2398
|
+
FfiConverterOptionalUInt64.allocationSize(value.stableSamples) +
|
|
2399
|
+
FfiConverterOptionalBoolean.allocationSize(value.includeScreenshot);
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
;
|
|
2403
|
+
return new FFIConverter();
|
|
2404
|
+
})();
|
|
2405
|
+
/**
|
|
2406
|
+
* Generated factory for {@link VerifyStateOutput} record objects.
|
|
2407
|
+
*/
|
|
2408
|
+
export const VerifyStateOutput = (() => {
|
|
2409
|
+
const defaults = () => ({});
|
|
2410
|
+
const create = (() => {
|
|
2411
|
+
return uniffiCreateRecord(defaults);
|
|
2412
|
+
})();
|
|
2413
|
+
return Object.freeze({
|
|
2414
|
+
create,
|
|
2415
|
+
new: create,
|
|
2416
|
+
defaults: () => Object.freeze(defaults()),
|
|
2417
|
+
});
|
|
2418
|
+
})();
|
|
2419
|
+
const FfiConverterTypeVerifyStateOutput = (() => {
|
|
2420
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2421
|
+
read(from) {
|
|
2422
|
+
return {
|
|
2423
|
+
status: FfiConverterTypeVerificationStatus.read(from),
|
|
2424
|
+
stable: FfiConverterBool.read(from),
|
|
2425
|
+
elapsedMs: FfiConverterUInt64.read(from),
|
|
2426
|
+
samples: FfiConverterUInt64.read(from),
|
|
2427
|
+
predicates: FfiConverterSequenceTypePredicateOutcome.read(from)
|
|
2428
|
+
};
|
|
2429
|
+
}
|
|
2430
|
+
write(value, into) {
|
|
2431
|
+
FfiConverterTypeVerificationStatus.write(value.status, into);
|
|
2432
|
+
FfiConverterBool.write(value.stable, into);
|
|
2433
|
+
FfiConverterUInt64.write(value.elapsedMs, into);
|
|
2434
|
+
FfiConverterUInt64.write(value.samples, into);
|
|
2435
|
+
FfiConverterSequenceTypePredicateOutcome.write(value.predicates, into);
|
|
2436
|
+
}
|
|
2437
|
+
allocationSize(value) {
|
|
2438
|
+
return FfiConverterTypeVerificationStatus.allocationSize(value.status) +
|
|
2439
|
+
FfiConverterBool.allocationSize(value.stable) +
|
|
2440
|
+
FfiConverterUInt64.allocationSize(value.elapsedMs) +
|
|
2441
|
+
FfiConverterUInt64.allocationSize(value.samples) +
|
|
2442
|
+
FfiConverterSequenceTypePredicateOutcome.allocationSize(value.predicates);
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
;
|
|
2446
|
+
return new FFIConverter();
|
|
2447
|
+
})();
|
|
1501
2448
|
export var Platform;
|
|
1502
2449
|
(function (Platform) {
|
|
1503
2450
|
Platform[Platform["Macos"] = 0] = "Macos";
|
|
@@ -1528,30 +2475,52 @@ const FfiConverterTypePlatform = (() => {
|
|
|
1528
2475
|
}
|
|
1529
2476
|
return new FFIConverter();
|
|
1530
2477
|
})();
|
|
2478
|
+
// FfiConverter for number | undefined
|
|
2479
|
+
const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32);
|
|
2480
|
+
// FfiConverter for ActionDelivery | undefined
|
|
2481
|
+
const FfiConverterOptionalTypeActionDelivery = new FfiConverterOptional(FfiConverterTypeActionDelivery);
|
|
2482
|
+
// FfiConverter for Array<ActionEvidence>
|
|
2483
|
+
const FfiConverterSequenceTypeActionEvidence = new FfiConverterArray(FfiConverterTypeActionEvidence);
|
|
2484
|
+
// FfiConverter for Array<ActionEvidence> | undefined
|
|
2485
|
+
const FfiConverterOptionalSequenceTypeActionEvidence = new FfiConverterOptional(FfiConverterSequenceTypeActionEvidence);
|
|
2486
|
+
// FfiConverter for ActionEscalation | undefined
|
|
2487
|
+
const FfiConverterOptionalTypeActionEscalation = new FfiConverterOptional(FfiConverterTypeActionEscalation);
|
|
2488
|
+
// FfiConverter for number | undefined
|
|
2489
|
+
const FfiConverterOptionalFloat64 = new FfiConverterOptional(FfiConverterFloat64);
|
|
1531
2490
|
// FfiConverter for string | undefined
|
|
1532
2491
|
const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
1533
2492
|
// FfiConverter for ClickButton | undefined
|
|
1534
2493
|
const FfiConverterOptionalTypeClickButton = new FfiConverterOptional(FfiConverterTypeClickButton);
|
|
1535
|
-
// FfiConverter for number | undefined
|
|
1536
|
-
const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32);
|
|
1537
2494
|
// FfiConverter for Array<string>
|
|
1538
2495
|
const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
1539
2496
|
// FfiConverter for bigint | undefined
|
|
1540
2497
|
const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
|
|
1541
2498
|
// FfiConverter for Array<string> | undefined
|
|
1542
2499
|
const FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverterSequenceString);
|
|
2500
|
+
// FfiConverter for boolean | undefined
|
|
2501
|
+
const FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
|
|
1543
2502
|
// FfiConverter for CursorPointOutput | undefined
|
|
1544
2503
|
const FfiConverterOptionalTypeCursorPointOutput = new FfiConverterOptional(FfiConverterTypeCursorPointOutput);
|
|
2504
|
+
// FfiConverter for UnknownReason | undefined
|
|
2505
|
+
const FfiConverterOptionalTypeUnknownReason = new FfiConverterOptional(FfiConverterTypeUnknownReason);
|
|
1545
2506
|
// FfiConverter for ScrollBy | undefined
|
|
1546
2507
|
const FfiConverterOptionalTypeScrollBy = new FfiConverterOptional(FfiConverterTypeScrollBy);
|
|
1547
2508
|
// FfiConverter for EscalationReason | undefined
|
|
1548
2509
|
const FfiConverterOptionalTypeEscalationReason = new FfiConverterOptional(FfiConverterTypeEscalationReason);
|
|
1549
|
-
// FfiConverter for number | undefined
|
|
1550
|
-
const FfiConverterOptionalFloat64 = new FfiConverterOptional(FfiConverterFloat64);
|
|
1551
2510
|
// FfiConverter for CaptureScope | undefined
|
|
1552
2511
|
const FfiConverterOptionalTypeCaptureScope = new FfiConverterOptional(FfiConverterTypeCaptureScope);
|
|
1553
2512
|
// FfiConverter for CursorThemeSelection | undefined
|
|
1554
2513
|
const FfiConverterOptionalTypeCursorThemeSelection = new FfiConverterOptional(FfiConverterTypeCursorThemeSelection);
|
|
2514
|
+
// FfiConverter for BoundsExpectation | undefined
|
|
2515
|
+
const FfiConverterOptionalTypeBoundsExpectation = new FfiConverterOptional(FfiConverterTypeBoundsExpectation);
|
|
2516
|
+
// FfiConverter for WindowPredicate | undefined
|
|
2517
|
+
const FfiConverterOptionalTypeWindowPredicate = new FfiConverterOptional(FfiConverterTypeWindowPredicate);
|
|
2518
|
+
// FfiConverter for ElementPredicate | undefined
|
|
2519
|
+
const FfiConverterOptionalTypeElementPredicate = new FfiConverterOptional(FfiConverterTypeElementPredicate);
|
|
2520
|
+
// FfiConverter for Array<StatePredicate>
|
|
2521
|
+
const FfiConverterSequenceTypeStatePredicate = new FfiConverterArray(FfiConverterTypeStatePredicate);
|
|
2522
|
+
// FfiConverter for Array<PredicateOutcome>
|
|
2523
|
+
const FfiConverterSequenceTypePredicateOutcome = new FfiConverterArray(FfiConverterTypePredicateOutcome);
|
|
1555
2524
|
/**
|
|
1556
2525
|
* This should be called before anything else.
|
|
1557
2526
|
*
|
|
@@ -1574,9 +2543,24 @@ function uniffiEnsureInitialized() {
|
|
|
1574
2543
|
export default Object.freeze({
|
|
1575
2544
|
initialize: uniffiEnsureInitialized,
|
|
1576
2545
|
converters: {
|
|
2546
|
+
FfiConverterTypeActionDelivery,
|
|
2547
|
+
FfiConverterTypeActionDeliveryMode,
|
|
2548
|
+
FfiConverterTypeActionEffect,
|
|
2549
|
+
FfiConverterTypeActionEscalation,
|
|
2550
|
+
FfiConverterTypeActionEscalationReason,
|
|
2551
|
+
FfiConverterTypeActionEscalationTarget,
|
|
2552
|
+
FfiConverterTypeActionEvidence,
|
|
2553
|
+
FfiConverterTypeActionEvidenceKind,
|
|
2554
|
+
FfiConverterTypeActionResult,
|
|
2555
|
+
FfiConverterTypeActionRoute,
|
|
2556
|
+
FfiConverterTypeBoundsExpectation,
|
|
1577
2557
|
FfiConverterTypeCaptureScope,
|
|
1578
2558
|
FfiConverterTypeClickButton,
|
|
1579
2559
|
FfiConverterTypeClickInput,
|
|
2560
|
+
FfiConverterTypeClipboardReadInput,
|
|
2561
|
+
FfiConverterTypeClipboardReadOutput,
|
|
2562
|
+
FfiConverterTypeClipboardWriteInput,
|
|
2563
|
+
FfiConverterTypeClipboardWriteOutput,
|
|
1580
2564
|
FfiConverterTypeCursorAction,
|
|
1581
2565
|
FfiConverterTypeCursorMotionOutput,
|
|
1582
2566
|
FfiConverterTypeCursorPointOutput,
|
|
@@ -1587,6 +2571,8 @@ export default Object.freeze({
|
|
|
1587
2571
|
FfiConverterTypeDesktopScope,
|
|
1588
2572
|
FfiConverterTypeDragInput,
|
|
1589
2573
|
FfiConverterTypeEffectiveScope,
|
|
2574
|
+
FfiConverterTypeElementPredicate,
|
|
2575
|
+
FfiConverterTypeElementSelector,
|
|
1590
2576
|
FfiConverterTypeEndSessionInput,
|
|
1591
2577
|
FfiConverterTypeEndSessionOutput,
|
|
1592
2578
|
FfiConverterTypeEscalateSessionInput,
|
|
@@ -1600,6 +2586,7 @@ export default Object.freeze({
|
|
|
1600
2586
|
FfiConverterTypeHotkeyInput,
|
|
1601
2587
|
FfiConverterTypeMoveCursorInput,
|
|
1602
2588
|
FfiConverterTypePlatform,
|
|
2589
|
+
FfiConverterTypePredicateOutcome,
|
|
1603
2590
|
FfiConverterTypePressKeyInput,
|
|
1604
2591
|
FfiConverterTypeScrollBy,
|
|
1605
2592
|
FfiConverterTypeScrollDirection,
|
|
@@ -1611,8 +2598,15 @@ export default Object.freeze({
|
|
|
1611
2598
|
FfiConverterTypeSetAgentCursorMotionOutput,
|
|
1612
2599
|
FfiConverterTypeSetAgentCursorThemeInput,
|
|
1613
2600
|
FfiConverterTypeSetAgentCursorThemeOutput,
|
|
2601
|
+
FfiConverterTypeSetWindowFrameInput,
|
|
1614
2602
|
FfiConverterTypeStartSessionInput,
|
|
1615
2603
|
FfiConverterTypeStartSessionOutput,
|
|
2604
|
+
FfiConverterTypeStatePredicate,
|
|
1616
2605
|
FfiConverterTypeTypeTextInput,
|
|
2606
|
+
FfiConverterTypeUnknownReason,
|
|
2607
|
+
FfiConverterTypeVerificationStatus,
|
|
2608
|
+
FfiConverterTypeVerifyStateInput,
|
|
2609
|
+
FfiConverterTypeVerifyStateOutput,
|
|
2610
|
+
FfiConverterTypeWindowPredicate,
|
|
1617
2611
|
}
|
|
1618
2612
|
});
|