@trycua/cua-driver 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -3
- package/dist/native/cua_driver_contract.d.ts +423 -29
- package/dist/native/cua_driver_contract.js +794 -40
- package/dist/native/cua_driver_sdk-ffi.d.ts +12 -0
- package/dist/native/cua_driver_sdk-ffi.js +60 -0
- package/dist/native/cua_driver_sdk.d.ts +41 -5
- package/dist/native/cua_driver_sdk.js +197 -5
- package/package.json +7 -7
|
@@ -359,6 +359,73 @@ const FfiConverterTypeActionResult = (() => {
|
|
|
359
359
|
;
|
|
360
360
|
return new FFIConverter();
|
|
361
361
|
})();
|
|
362
|
+
const stringConverter = (() => {
|
|
363
|
+
const encoder = new TextEncoder();
|
|
364
|
+
const decoder = new TextDecoder();
|
|
365
|
+
return {
|
|
366
|
+
stringToBytes: (s) => encoder.encode(s),
|
|
367
|
+
bytesToString: (ab) => decoder.decode(ab),
|
|
368
|
+
stringByteLength: (s) => encoder.encode(s).byteLength,
|
|
369
|
+
writeStringIntoBuffer: (s, buf, offset) => {
|
|
370
|
+
const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
|
|
371
|
+
return encoder.encodeInto(s, view).written;
|
|
372
|
+
},
|
|
373
|
+
readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length)),
|
|
374
|
+
};
|
|
375
|
+
})();
|
|
376
|
+
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
377
|
+
/**
|
|
378
|
+
* Generated factory for {@link AppInfo} record objects.
|
|
379
|
+
*/
|
|
380
|
+
export const AppInfo = (() => {
|
|
381
|
+
const defaults = () => ({});
|
|
382
|
+
const create = (() => {
|
|
383
|
+
return uniffiCreateRecord(defaults);
|
|
384
|
+
})();
|
|
385
|
+
return Object.freeze({
|
|
386
|
+
create,
|
|
387
|
+
new: create,
|
|
388
|
+
defaults: () => Object.freeze(defaults()),
|
|
389
|
+
});
|
|
390
|
+
})();
|
|
391
|
+
const FfiConverterTypeAppInfo = (() => {
|
|
392
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
393
|
+
read(from) {
|
|
394
|
+
return {
|
|
395
|
+
pid: FfiConverterUInt32.read(from),
|
|
396
|
+
name: FfiConverterString.read(from),
|
|
397
|
+
running: FfiConverterBool.read(from),
|
|
398
|
+
active: FfiConverterBool.read(from),
|
|
399
|
+
bundleId: FfiConverterOptionalString.read(from),
|
|
400
|
+
launchPath: FfiConverterOptionalString.read(from),
|
|
401
|
+
kind: FfiConverterOptionalString.read(from),
|
|
402
|
+
lastUsed: FfiConverterOptionalString.read(from)
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
write(value, into) {
|
|
406
|
+
FfiConverterUInt32.write(value.pid, into);
|
|
407
|
+
FfiConverterString.write(value.name, into);
|
|
408
|
+
FfiConverterBool.write(value.running, into);
|
|
409
|
+
FfiConverterBool.write(value.active, into);
|
|
410
|
+
FfiConverterOptionalString.write(value.bundleId, into);
|
|
411
|
+
FfiConverterOptionalString.write(value.launchPath, into);
|
|
412
|
+
FfiConverterOptionalString.write(value.kind, into);
|
|
413
|
+
FfiConverterOptionalString.write(value.lastUsed, into);
|
|
414
|
+
}
|
|
415
|
+
allocationSize(value) {
|
|
416
|
+
return FfiConverterUInt32.allocationSize(value.pid) +
|
|
417
|
+
FfiConverterString.allocationSize(value.name) +
|
|
418
|
+
FfiConverterBool.allocationSize(value.running) +
|
|
419
|
+
FfiConverterBool.allocationSize(value.active) +
|
|
420
|
+
FfiConverterOptionalString.allocationSize(value.bundleId) +
|
|
421
|
+
FfiConverterOptionalString.allocationSize(value.launchPath) +
|
|
422
|
+
FfiConverterOptionalString.allocationSize(value.kind) +
|
|
423
|
+
FfiConverterOptionalString.allocationSize(value.lastUsed);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
;
|
|
427
|
+
return new FFIConverter();
|
|
428
|
+
})();
|
|
362
429
|
/**
|
|
363
430
|
* Generated factory for {@link BoundsExpectation} record objects.
|
|
364
431
|
*/
|
|
@@ -402,21 +469,6 @@ const FfiConverterTypeBoundsExpectation = (() => {
|
|
|
402
469
|
;
|
|
403
470
|
return new FFIConverter();
|
|
404
471
|
})();
|
|
405
|
-
const stringConverter = (() => {
|
|
406
|
-
const encoder = new TextEncoder();
|
|
407
|
-
const decoder = new TextDecoder();
|
|
408
|
-
return {
|
|
409
|
-
stringToBytes: (s) => encoder.encode(s),
|
|
410
|
-
bytesToString: (ab) => decoder.decode(ab),
|
|
411
|
-
stringByteLength: (s) => encoder.encode(s).byteLength,
|
|
412
|
-
writeStringIntoBuffer: (s, buf, offset) => {
|
|
413
|
-
const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
|
|
414
|
-
return encoder.encodeInto(s, view).written;
|
|
415
|
-
},
|
|
416
|
-
readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length)),
|
|
417
|
-
};
|
|
418
|
-
})();
|
|
419
|
-
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
420
472
|
// Enum: ActionTarget
|
|
421
473
|
export var ActionTarget_Tags;
|
|
422
474
|
(function (ActionTarget_Tags) {
|
|
@@ -530,22 +582,131 @@ const FfiConverterTypeActionTarget = (() => {
|
|
|
530
582
|
}
|
|
531
583
|
return new FFIConverter();
|
|
532
584
|
})();
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
585
|
+
// Enum: ClickPosition
|
|
586
|
+
export var ClickPosition_Tags;
|
|
587
|
+
(function (ClickPosition_Tags) {
|
|
588
|
+
ClickPosition_Tags["Coordinates"] = "Coordinates";
|
|
589
|
+
ClickPosition_Tags["Element"] = "Element";
|
|
590
|
+
})(ClickPosition_Tags || (ClickPosition_Tags = {}));
|
|
591
|
+
export const ClickPosition = (() => {
|
|
592
|
+
class Coordinates_ extends UniffiEnum {
|
|
593
|
+
/**
|
|
594
|
+
* @private
|
|
595
|
+
* This field is private and should not be used, use `tag` instead.
|
|
596
|
+
*/
|
|
597
|
+
[uniffiTypeNameSymbol] = "ClickPosition";
|
|
598
|
+
tag = ClickPosition_Tags.Coordinates;
|
|
599
|
+
inner;
|
|
600
|
+
constructor(inner) {
|
|
601
|
+
super("ClickPosition", "Coordinates");
|
|
602
|
+
this.inner = Object.freeze(inner);
|
|
603
|
+
}
|
|
604
|
+
static new(inner) {
|
|
605
|
+
return new Coordinates_(inner);
|
|
606
|
+
}
|
|
607
|
+
static instanceOf(obj) {
|
|
608
|
+
return obj.tag === ClickPosition_Tags.Coordinates;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
class Element_ extends UniffiEnum {
|
|
612
|
+
/**
|
|
613
|
+
* @private
|
|
614
|
+
* This field is private and should not be used, use `tag` instead.
|
|
615
|
+
*/
|
|
616
|
+
[uniffiTypeNameSymbol] = "ClickPosition";
|
|
617
|
+
tag = ClickPosition_Tags.Element;
|
|
618
|
+
inner;
|
|
619
|
+
constructor(inner) {
|
|
620
|
+
super("ClickPosition", "Element");
|
|
621
|
+
this.inner = Object.freeze(inner);
|
|
622
|
+
}
|
|
623
|
+
static new(inner) {
|
|
624
|
+
return new Element_(inner);
|
|
625
|
+
}
|
|
626
|
+
static instanceOf(obj) {
|
|
627
|
+
return obj.tag === ClickPosition_Tags.Element;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
function instanceOf(obj) {
|
|
631
|
+
return obj[uniffiTypeNameSymbol] === "ClickPosition";
|
|
632
|
+
}
|
|
633
|
+
return Object.freeze({
|
|
634
|
+
instanceOf,
|
|
635
|
+
Coordinates: Coordinates_,
|
|
636
|
+
Element: Element_
|
|
637
|
+
});
|
|
638
|
+
})();
|
|
639
|
+
// FfiConverter for enum ClickPosition
|
|
640
|
+
const FfiConverterTypeClickPosition = (() => {
|
|
538
641
|
const ordinalConverter = FfiConverterInt32;
|
|
539
642
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
540
643
|
read(from) {
|
|
541
644
|
switch (ordinalConverter.read(from)) {
|
|
542
|
-
case 1: return
|
|
645
|
+
case 1: return new ClickPosition.Coordinates({ x: FfiConverterFloat64.read(from), y: FfiConverterFloat64.read(from) });
|
|
646
|
+
case 2: return new ClickPosition.Element({ elementToken: FfiConverterString.read(from) });
|
|
647
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
write(value, into) {
|
|
651
|
+
switch (value.tag) {
|
|
652
|
+
case ClickPosition_Tags.Coordinates: {
|
|
653
|
+
ordinalConverter.write(1, into);
|
|
654
|
+
const inner = value.inner;
|
|
655
|
+
FfiConverterFloat64.write(inner.x, into);
|
|
656
|
+
FfiConverterFloat64.write(inner.y, into);
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
case ClickPosition_Tags.Element: {
|
|
660
|
+
ordinalConverter.write(2, into);
|
|
661
|
+
const inner = value.inner;
|
|
662
|
+
FfiConverterString.write(inner.elementToken, into);
|
|
663
|
+
return;
|
|
664
|
+
}
|
|
665
|
+
default:
|
|
666
|
+
// Throwing from here means that ClickPosition_Tags hasn't matched an ordinal.
|
|
667
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
allocationSize(value) {
|
|
671
|
+
switch (value.tag) {
|
|
672
|
+
case ClickPosition_Tags.Coordinates: {
|
|
673
|
+
const inner = value.inner;
|
|
674
|
+
let size = ordinalConverter.allocationSize(1);
|
|
675
|
+
size += FfiConverterFloat64.allocationSize(inner.x);
|
|
676
|
+
size += FfiConverterFloat64.allocationSize(inner.y);
|
|
677
|
+
return size;
|
|
678
|
+
}
|
|
679
|
+
case ClickPosition_Tags.Element: {
|
|
680
|
+
const inner = value.inner;
|
|
681
|
+
let size = ordinalConverter.allocationSize(2);
|
|
682
|
+
size += FfiConverterString.allocationSize(inner.elementToken);
|
|
683
|
+
return size;
|
|
684
|
+
}
|
|
685
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
return new FFIConverter();
|
|
690
|
+
})();
|
|
691
|
+
export var InputDeliveryMode;
|
|
692
|
+
(function (InputDeliveryMode) {
|
|
693
|
+
InputDeliveryMode[InputDeliveryMode["Background"] = 0] = "Background";
|
|
694
|
+
InputDeliveryMode[InputDeliveryMode["Foreground"] = 1] = "Foreground";
|
|
695
|
+
})(InputDeliveryMode || (InputDeliveryMode = {}));
|
|
696
|
+
const FfiConverterTypeInputDeliveryMode = (() => {
|
|
697
|
+
const ordinalConverter = FfiConverterInt32;
|
|
698
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
699
|
+
read(from) {
|
|
700
|
+
switch (ordinalConverter.read(from)) {
|
|
701
|
+
case 1: return InputDeliveryMode.Background;
|
|
702
|
+
case 2: return InputDeliveryMode.Foreground;
|
|
543
703
|
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
544
704
|
}
|
|
545
705
|
}
|
|
546
706
|
write(value, into) {
|
|
547
707
|
switch (value) {
|
|
548
|
-
case
|
|
708
|
+
case InputDeliveryMode.Background: return ordinalConverter.write(1, into);
|
|
709
|
+
case InputDeliveryMode.Foreground: return ordinalConverter.write(2, into);
|
|
549
710
|
}
|
|
550
711
|
}
|
|
551
712
|
allocationSize(value) {
|
|
@@ -602,29 +763,26 @@ const FfiConverterTypeClickInput = (() => {
|
|
|
602
763
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
603
764
|
read(from) {
|
|
604
765
|
return {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
scope: FfiConverterOptionalTypeDesktopScope.read(from),
|
|
766
|
+
target: FfiConverterTypeActionTarget.read(from),
|
|
767
|
+
position: FfiConverterTypeClickPosition.read(from),
|
|
768
|
+
deliveryMode: FfiConverterTypeInputDeliveryMode.read(from),
|
|
609
769
|
session: FfiConverterOptionalString.read(from),
|
|
610
770
|
button: FfiConverterOptionalTypeClickButton.read(from),
|
|
611
771
|
count: FfiConverterOptionalUInt32.read(from)
|
|
612
772
|
};
|
|
613
773
|
}
|
|
614
774
|
write(value, into) {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
FfiConverterOptionalTypeDesktopScope.write(value.scope, into);
|
|
775
|
+
FfiConverterTypeActionTarget.write(value.target, into);
|
|
776
|
+
FfiConverterTypeClickPosition.write(value.position, into);
|
|
777
|
+
FfiConverterTypeInputDeliveryMode.write(value.deliveryMode, into);
|
|
619
778
|
FfiConverterOptionalString.write(value.session, into);
|
|
620
779
|
FfiConverterOptionalTypeClickButton.write(value.button, into);
|
|
621
780
|
FfiConverterOptionalUInt32.write(value.count, into);
|
|
622
781
|
}
|
|
623
782
|
allocationSize(value) {
|
|
624
|
-
return
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
FfiConverterOptionalTypeDesktopScope.allocationSize(value.scope) +
|
|
783
|
+
return FfiConverterTypeActionTarget.allocationSize(value.target) +
|
|
784
|
+
FfiConverterTypeClickPosition.allocationSize(value.position) +
|
|
785
|
+
FfiConverterTypeInputDeliveryMode.allocationSize(value.deliveryMode) +
|
|
628
786
|
FfiConverterOptionalString.allocationSize(value.session) +
|
|
629
787
|
FfiConverterOptionalTypeClickButton.allocationSize(value.button) +
|
|
630
788
|
FfiConverterOptionalUInt32.allocationSize(value.count);
|
|
@@ -1092,6 +1250,30 @@ const FfiConverterTypeCursorVisualOutput = (() => {
|
|
|
1092
1250
|
;
|
|
1093
1251
|
return new FFIConverter();
|
|
1094
1252
|
})();
|
|
1253
|
+
export var DesktopScope;
|
|
1254
|
+
(function (DesktopScope) {
|
|
1255
|
+
DesktopScope[DesktopScope["Desktop"] = 0] = "Desktop";
|
|
1256
|
+
})(DesktopScope || (DesktopScope = {}));
|
|
1257
|
+
const FfiConverterTypeDesktopScope = (() => {
|
|
1258
|
+
const ordinalConverter = FfiConverterInt32;
|
|
1259
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1260
|
+
read(from) {
|
|
1261
|
+
switch (ordinalConverter.read(from)) {
|
|
1262
|
+
case 1: return DesktopScope.Desktop;
|
|
1263
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
write(value, into) {
|
|
1267
|
+
switch (value) {
|
|
1268
|
+
case DesktopScope.Desktop: return ordinalConverter.write(1, into);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
allocationSize(value) {
|
|
1272
|
+
return ordinalConverter.allocationSize(0);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
return new FFIConverter();
|
|
1276
|
+
})();
|
|
1095
1277
|
/**
|
|
1096
1278
|
* Generated factory for {@link DragInput} record objects.
|
|
1097
1279
|
*/
|
|
@@ -1153,6 +1335,46 @@ const FfiConverterTypeDragInput = (() => {
|
|
|
1153
1335
|
;
|
|
1154
1336
|
return new FFIConverter();
|
|
1155
1337
|
})();
|
|
1338
|
+
/**
|
|
1339
|
+
* Generated factory for {@link ElementFrame} record objects.
|
|
1340
|
+
*/
|
|
1341
|
+
export const ElementFrame = (() => {
|
|
1342
|
+
const defaults = () => ({});
|
|
1343
|
+
const create = (() => {
|
|
1344
|
+
return uniffiCreateRecord(defaults);
|
|
1345
|
+
})();
|
|
1346
|
+
return Object.freeze({
|
|
1347
|
+
create,
|
|
1348
|
+
new: create,
|
|
1349
|
+
defaults: () => Object.freeze(defaults()),
|
|
1350
|
+
});
|
|
1351
|
+
})();
|
|
1352
|
+
const FfiConverterTypeElementFrame = (() => {
|
|
1353
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1354
|
+
read(from) {
|
|
1355
|
+
return {
|
|
1356
|
+
x: FfiConverterFloat64.read(from),
|
|
1357
|
+
y: FfiConverterFloat64.read(from),
|
|
1358
|
+
w: FfiConverterFloat64.read(from),
|
|
1359
|
+
h: FfiConverterFloat64.read(from)
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
write(value, into) {
|
|
1363
|
+
FfiConverterFloat64.write(value.x, into);
|
|
1364
|
+
FfiConverterFloat64.write(value.y, into);
|
|
1365
|
+
FfiConverterFloat64.write(value.w, into);
|
|
1366
|
+
FfiConverterFloat64.write(value.h, into);
|
|
1367
|
+
}
|
|
1368
|
+
allocationSize(value) {
|
|
1369
|
+
return FfiConverterFloat64.allocationSize(value.x) +
|
|
1370
|
+
FfiConverterFloat64.allocationSize(value.y) +
|
|
1371
|
+
FfiConverterFloat64.allocationSize(value.w) +
|
|
1372
|
+
FfiConverterFloat64.allocationSize(value.h);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
;
|
|
1376
|
+
return new FFIConverter();
|
|
1377
|
+
})();
|
|
1156
1378
|
/**
|
|
1157
1379
|
* Generated factory for {@link ElementSelector} record objects.
|
|
1158
1380
|
*/
|
|
@@ -1603,6 +1825,64 @@ const FfiConverterTypeGetSessionStateInput = (() => {
|
|
|
1603
1825
|
;
|
|
1604
1826
|
return new FFIConverter();
|
|
1605
1827
|
})();
|
|
1828
|
+
/**
|
|
1829
|
+
* Generated factory for {@link GetWindowStateInput} record objects.
|
|
1830
|
+
*/
|
|
1831
|
+
export const GetWindowStateInput = (() => {
|
|
1832
|
+
const defaults = () => ({});
|
|
1833
|
+
const create = (() => {
|
|
1834
|
+
return uniffiCreateRecord(defaults);
|
|
1835
|
+
})();
|
|
1836
|
+
return Object.freeze({
|
|
1837
|
+
create,
|
|
1838
|
+
new: create,
|
|
1839
|
+
defaults: () => Object.freeze(defaults()),
|
|
1840
|
+
});
|
|
1841
|
+
})();
|
|
1842
|
+
const FfiConverterTypeGetWindowStateInput = (() => {
|
|
1843
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1844
|
+
read(from) {
|
|
1845
|
+
return {
|
|
1846
|
+
pid: FfiConverterUInt32.read(from),
|
|
1847
|
+
windowId: FfiConverterUInt64.read(from),
|
|
1848
|
+
session: FfiConverterOptionalString.read(from),
|
|
1849
|
+
query: FfiConverterOptionalString.read(from),
|
|
1850
|
+
includeAccessibilityTree: FfiConverterOptionalBoolean.read(from),
|
|
1851
|
+
includeScreenshot: FfiConverterOptionalBoolean.read(from),
|
|
1852
|
+
screenshotOutFile: FfiConverterOptionalString.read(from),
|
|
1853
|
+
maxElements: FfiConverterOptionalUInt32.read(from),
|
|
1854
|
+
maxDepth: FfiConverterOptionalUInt32.read(from),
|
|
1855
|
+
maxDimension: FfiConverterOptionalUInt32.read(from)
|
|
1856
|
+
};
|
|
1857
|
+
}
|
|
1858
|
+
write(value, into) {
|
|
1859
|
+
FfiConverterUInt32.write(value.pid, into);
|
|
1860
|
+
FfiConverterUInt64.write(value.windowId, into);
|
|
1861
|
+
FfiConverterOptionalString.write(value.session, into);
|
|
1862
|
+
FfiConverterOptionalString.write(value.query, into);
|
|
1863
|
+
FfiConverterOptionalBoolean.write(value.includeAccessibilityTree, into);
|
|
1864
|
+
FfiConverterOptionalBoolean.write(value.includeScreenshot, into);
|
|
1865
|
+
FfiConverterOptionalString.write(value.screenshotOutFile, into);
|
|
1866
|
+
FfiConverterOptionalUInt32.write(value.maxElements, into);
|
|
1867
|
+
FfiConverterOptionalUInt32.write(value.maxDepth, into);
|
|
1868
|
+
FfiConverterOptionalUInt32.write(value.maxDimension, into);
|
|
1869
|
+
}
|
|
1870
|
+
allocationSize(value) {
|
|
1871
|
+
return FfiConverterUInt32.allocationSize(value.pid) +
|
|
1872
|
+
FfiConverterUInt64.allocationSize(value.windowId) +
|
|
1873
|
+
FfiConverterOptionalString.allocationSize(value.session) +
|
|
1874
|
+
FfiConverterOptionalString.allocationSize(value.query) +
|
|
1875
|
+
FfiConverterOptionalBoolean.allocationSize(value.includeAccessibilityTree) +
|
|
1876
|
+
FfiConverterOptionalBoolean.allocationSize(value.includeScreenshot) +
|
|
1877
|
+
FfiConverterOptionalString.allocationSize(value.screenshotOutFile) +
|
|
1878
|
+
FfiConverterOptionalUInt32.allocationSize(value.maxElements) +
|
|
1879
|
+
FfiConverterOptionalUInt32.allocationSize(value.maxDepth) +
|
|
1880
|
+
FfiConverterOptionalUInt32.allocationSize(value.maxDimension);
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
;
|
|
1884
|
+
return new FFIConverter();
|
|
1885
|
+
})();
|
|
1606
1886
|
/**
|
|
1607
1887
|
* Generated factory for {@link HotkeyInput} record objects.
|
|
1608
1888
|
*/
|
|
@@ -1683,6 +1963,65 @@ const FfiConverterTypeInvokeMenuInput = (() => {
|
|
|
1683
1963
|
;
|
|
1684
1964
|
return new FFIConverter();
|
|
1685
1965
|
})();
|
|
1966
|
+
/**
|
|
1967
|
+
* Generated factory for {@link ListAppsInput} record objects.
|
|
1968
|
+
*/
|
|
1969
|
+
export const ListAppsInput = (() => {
|
|
1970
|
+
const defaults = () => ({});
|
|
1971
|
+
const create = (() => {
|
|
1972
|
+
return uniffiCreateRecord(defaults);
|
|
1973
|
+
})();
|
|
1974
|
+
return Object.freeze({
|
|
1975
|
+
create,
|
|
1976
|
+
new: create,
|
|
1977
|
+
defaults: () => Object.freeze(defaults()),
|
|
1978
|
+
});
|
|
1979
|
+
})();
|
|
1980
|
+
const FfiConverterTypeListAppsInput = (() => {
|
|
1981
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1982
|
+
read(from) {
|
|
1983
|
+
return {};
|
|
1984
|
+
}
|
|
1985
|
+
write(value, into) {
|
|
1986
|
+
}
|
|
1987
|
+
allocationSize(value) {
|
|
1988
|
+
return 0;
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
;
|
|
1992
|
+
return new FFIConverter();
|
|
1993
|
+
})();
|
|
1994
|
+
/**
|
|
1995
|
+
* Generated factory for {@link ListAppsOutput} record objects.
|
|
1996
|
+
*/
|
|
1997
|
+
export const ListAppsOutput = (() => {
|
|
1998
|
+
const defaults = () => ({});
|
|
1999
|
+
const create = (() => {
|
|
2000
|
+
return uniffiCreateRecord(defaults);
|
|
2001
|
+
})();
|
|
2002
|
+
return Object.freeze({
|
|
2003
|
+
create,
|
|
2004
|
+
new: create,
|
|
2005
|
+
defaults: () => Object.freeze(defaults()),
|
|
2006
|
+
});
|
|
2007
|
+
})();
|
|
2008
|
+
const FfiConverterTypeListAppsOutput = (() => {
|
|
2009
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2010
|
+
read(from) {
|
|
2011
|
+
return {
|
|
2012
|
+
apps: FfiConverterSequenceTypeAppInfo.read(from)
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
write(value, into) {
|
|
2016
|
+
FfiConverterSequenceTypeAppInfo.write(value.apps, into);
|
|
2017
|
+
}
|
|
2018
|
+
allocationSize(value) {
|
|
2019
|
+
return FfiConverterSequenceTypeAppInfo.allocationSize(value.apps);
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
;
|
|
2023
|
+
return new FFIConverter();
|
|
2024
|
+
})();
|
|
1686
2025
|
/**
|
|
1687
2026
|
* Generated factory for {@link ListSessionsInput} record objects.
|
|
1688
2027
|
*/
|
|
@@ -1902,6 +2241,178 @@ const FfiConverterTypeListSessionsOutput = (() => {
|
|
|
1902
2241
|
;
|
|
1903
2242
|
return new FFIConverter();
|
|
1904
2243
|
})();
|
|
2244
|
+
/**
|
|
2245
|
+
* Generated factory for {@link ListWindowsInput} record objects.
|
|
2246
|
+
*/
|
|
2247
|
+
export const ListWindowsInput = (() => {
|
|
2248
|
+
const defaults = () => ({});
|
|
2249
|
+
const create = (() => {
|
|
2250
|
+
return uniffiCreateRecord(defaults);
|
|
2251
|
+
})();
|
|
2252
|
+
return Object.freeze({
|
|
2253
|
+
create,
|
|
2254
|
+
new: create,
|
|
2255
|
+
defaults: () => Object.freeze(defaults()),
|
|
2256
|
+
});
|
|
2257
|
+
})();
|
|
2258
|
+
const FfiConverterTypeListWindowsInput = (() => {
|
|
2259
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2260
|
+
read(from) {
|
|
2261
|
+
return {
|
|
2262
|
+
pid: FfiConverterOptionalUInt32.read(from),
|
|
2263
|
+
onScreenOnly: FfiConverterOptionalBoolean.read(from)
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2266
|
+
write(value, into) {
|
|
2267
|
+
FfiConverterOptionalUInt32.write(value.pid, into);
|
|
2268
|
+
FfiConverterOptionalBoolean.write(value.onScreenOnly, into);
|
|
2269
|
+
}
|
|
2270
|
+
allocationSize(value) {
|
|
2271
|
+
return FfiConverterOptionalUInt32.allocationSize(value.pid) +
|
|
2272
|
+
FfiConverterOptionalBoolean.allocationSize(value.onScreenOnly);
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
;
|
|
2276
|
+
return new FFIConverter();
|
|
2277
|
+
})();
|
|
2278
|
+
/**
|
|
2279
|
+
* Generated factory for {@link WindowBounds} record objects.
|
|
2280
|
+
*/
|
|
2281
|
+
export const WindowBounds = (() => {
|
|
2282
|
+
const defaults = () => ({});
|
|
2283
|
+
const create = (() => {
|
|
2284
|
+
return uniffiCreateRecord(defaults);
|
|
2285
|
+
})();
|
|
2286
|
+
return Object.freeze({
|
|
2287
|
+
create,
|
|
2288
|
+
new: create,
|
|
2289
|
+
defaults: () => Object.freeze(defaults()),
|
|
2290
|
+
});
|
|
2291
|
+
})();
|
|
2292
|
+
const FfiConverterTypeWindowBounds = (() => {
|
|
2293
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2294
|
+
read(from) {
|
|
2295
|
+
return {
|
|
2296
|
+
x: FfiConverterFloat64.read(from),
|
|
2297
|
+
y: FfiConverterFloat64.read(from),
|
|
2298
|
+
width: FfiConverterFloat64.read(from),
|
|
2299
|
+
height: FfiConverterFloat64.read(from)
|
|
2300
|
+
};
|
|
2301
|
+
}
|
|
2302
|
+
write(value, into) {
|
|
2303
|
+
FfiConverterFloat64.write(value.x, into);
|
|
2304
|
+
FfiConverterFloat64.write(value.y, into);
|
|
2305
|
+
FfiConverterFloat64.write(value.width, into);
|
|
2306
|
+
FfiConverterFloat64.write(value.height, into);
|
|
2307
|
+
}
|
|
2308
|
+
allocationSize(value) {
|
|
2309
|
+
return FfiConverterFloat64.allocationSize(value.x) +
|
|
2310
|
+
FfiConverterFloat64.allocationSize(value.y) +
|
|
2311
|
+
FfiConverterFloat64.allocationSize(value.width) +
|
|
2312
|
+
FfiConverterFloat64.allocationSize(value.height);
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
;
|
|
2316
|
+
return new FFIConverter();
|
|
2317
|
+
})();
|
|
2318
|
+
/**
|
|
2319
|
+
* Generated factory for {@link WindowInfo} record objects.
|
|
2320
|
+
*/
|
|
2321
|
+
export const WindowInfo = (() => {
|
|
2322
|
+
const defaults = () => ({});
|
|
2323
|
+
const create = (() => {
|
|
2324
|
+
return uniffiCreateRecord(defaults);
|
|
2325
|
+
})();
|
|
2326
|
+
return Object.freeze({
|
|
2327
|
+
create,
|
|
2328
|
+
new: create,
|
|
2329
|
+
defaults: () => Object.freeze(defaults()),
|
|
2330
|
+
});
|
|
2331
|
+
})();
|
|
2332
|
+
const FfiConverterTypeWindowInfo = (() => {
|
|
2333
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2334
|
+
read(from) {
|
|
2335
|
+
return {
|
|
2336
|
+
windowId: FfiConverterUInt64.read(from),
|
|
2337
|
+
pid: FfiConverterOptionalUInt32.read(from),
|
|
2338
|
+
appName: FfiConverterString.read(from),
|
|
2339
|
+
title: FfiConverterString.read(from),
|
|
2340
|
+
bounds: FfiConverterTypeWindowBounds.read(from),
|
|
2341
|
+
isOnScreen: FfiConverterBool.read(from),
|
|
2342
|
+
zIndex: FfiConverterOptionalInt64.read(from),
|
|
2343
|
+
layer: FfiConverterOptionalInt32.read(from),
|
|
2344
|
+
minimized: FfiConverterOptionalBoolean.read(from),
|
|
2345
|
+
currentSpaceId: FfiConverterOptionalUInt64.read(from),
|
|
2346
|
+
onCurrentSpace: FfiConverterOptionalBoolean.read(from),
|
|
2347
|
+
spaceIds: FfiConverterOptionalSequenceUInt64.read(from)
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2350
|
+
write(value, into) {
|
|
2351
|
+
FfiConverterUInt64.write(value.windowId, into);
|
|
2352
|
+
FfiConverterOptionalUInt32.write(value.pid, into);
|
|
2353
|
+
FfiConverterString.write(value.appName, into);
|
|
2354
|
+
FfiConverterString.write(value.title, into);
|
|
2355
|
+
FfiConverterTypeWindowBounds.write(value.bounds, into);
|
|
2356
|
+
FfiConverterBool.write(value.isOnScreen, into);
|
|
2357
|
+
FfiConverterOptionalInt64.write(value.zIndex, into);
|
|
2358
|
+
FfiConverterOptionalInt32.write(value.layer, into);
|
|
2359
|
+
FfiConverterOptionalBoolean.write(value.minimized, into);
|
|
2360
|
+
FfiConverterOptionalUInt64.write(value.currentSpaceId, into);
|
|
2361
|
+
FfiConverterOptionalBoolean.write(value.onCurrentSpace, into);
|
|
2362
|
+
FfiConverterOptionalSequenceUInt64.write(value.spaceIds, into);
|
|
2363
|
+
}
|
|
2364
|
+
allocationSize(value) {
|
|
2365
|
+
return FfiConverterUInt64.allocationSize(value.windowId) +
|
|
2366
|
+
FfiConverterOptionalUInt32.allocationSize(value.pid) +
|
|
2367
|
+
FfiConverterString.allocationSize(value.appName) +
|
|
2368
|
+
FfiConverterString.allocationSize(value.title) +
|
|
2369
|
+
FfiConverterTypeWindowBounds.allocationSize(value.bounds) +
|
|
2370
|
+
FfiConverterBool.allocationSize(value.isOnScreen) +
|
|
2371
|
+
FfiConverterOptionalInt64.allocationSize(value.zIndex) +
|
|
2372
|
+
FfiConverterOptionalInt32.allocationSize(value.layer) +
|
|
2373
|
+
FfiConverterOptionalBoolean.allocationSize(value.minimized) +
|
|
2374
|
+
FfiConverterOptionalUInt64.allocationSize(value.currentSpaceId) +
|
|
2375
|
+
FfiConverterOptionalBoolean.allocationSize(value.onCurrentSpace) +
|
|
2376
|
+
FfiConverterOptionalSequenceUInt64.allocationSize(value.spaceIds);
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
;
|
|
2380
|
+
return new FFIConverter();
|
|
2381
|
+
})();
|
|
2382
|
+
/**
|
|
2383
|
+
* Generated factory for {@link ListWindowsOutput} record objects.
|
|
2384
|
+
*/
|
|
2385
|
+
export const ListWindowsOutput = (() => {
|
|
2386
|
+
const defaults = () => ({});
|
|
2387
|
+
const create = (() => {
|
|
2388
|
+
return uniffiCreateRecord(defaults);
|
|
2389
|
+
})();
|
|
2390
|
+
return Object.freeze({
|
|
2391
|
+
create,
|
|
2392
|
+
new: create,
|
|
2393
|
+
defaults: () => Object.freeze(defaults()),
|
|
2394
|
+
});
|
|
2395
|
+
})();
|
|
2396
|
+
const FfiConverterTypeListWindowsOutput = (() => {
|
|
2397
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2398
|
+
read(from) {
|
|
2399
|
+
return {
|
|
2400
|
+
windows: FfiConverterSequenceTypeWindowInfo.read(from),
|
|
2401
|
+
currentSpaceId: FfiConverterOptionalUInt64.read(from)
|
|
2402
|
+
};
|
|
2403
|
+
}
|
|
2404
|
+
write(value, into) {
|
|
2405
|
+
FfiConverterSequenceTypeWindowInfo.write(value.windows, into);
|
|
2406
|
+
FfiConverterOptionalUInt64.write(value.currentSpaceId, into);
|
|
2407
|
+
}
|
|
2408
|
+
allocationSize(value) {
|
|
2409
|
+
return FfiConverterSequenceTypeWindowInfo.allocationSize(value.windows) +
|
|
2410
|
+
FfiConverterOptionalUInt64.allocationSize(value.currentSpaceId);
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
;
|
|
2414
|
+
return new FFIConverter();
|
|
2415
|
+
})();
|
|
1905
2416
|
/**
|
|
1906
2417
|
* Generated factory for {@link MoveCursorInput} record objects.
|
|
1907
2418
|
*/
|
|
@@ -2598,6 +3109,40 @@ const FfiConverterTypeSetWindowFrameInput = (() => {
|
|
|
2598
3109
|
;
|
|
2599
3110
|
return new FFIConverter();
|
|
2600
3111
|
})();
|
|
3112
|
+
/**
|
|
3113
|
+
* Generated factory for {@link SnapshotImage} record objects.
|
|
3114
|
+
*/
|
|
3115
|
+
export const SnapshotImage = (() => {
|
|
3116
|
+
const defaults = () => ({});
|
|
3117
|
+
const create = (() => {
|
|
3118
|
+
return uniffiCreateRecord(defaults);
|
|
3119
|
+
})();
|
|
3120
|
+
return Object.freeze({
|
|
3121
|
+
create,
|
|
3122
|
+
new: create,
|
|
3123
|
+
defaults: () => Object.freeze(defaults()),
|
|
3124
|
+
});
|
|
3125
|
+
})();
|
|
3126
|
+
const FfiConverterTypeSnapshotImage = (() => {
|
|
3127
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
3128
|
+
read(from) {
|
|
3129
|
+
return {
|
|
3130
|
+
mimeType: FfiConverterString.read(from),
|
|
3131
|
+
dataBase64: FfiConverterString.read(from)
|
|
3132
|
+
};
|
|
3133
|
+
}
|
|
3134
|
+
write(value, into) {
|
|
3135
|
+
FfiConverterString.write(value.mimeType, into);
|
|
3136
|
+
FfiConverterString.write(value.dataBase64, into);
|
|
3137
|
+
}
|
|
3138
|
+
allocationSize(value) {
|
|
3139
|
+
return FfiConverterString.allocationSize(value.mimeType) +
|
|
3140
|
+
FfiConverterString.allocationSize(value.dataBase64);
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3143
|
+
;
|
|
3144
|
+
return new FFIConverter();
|
|
3145
|
+
})();
|
|
2601
3146
|
/**
|
|
2602
3147
|
* Generated factory for {@link StartSessionInput} record objects.
|
|
2603
3148
|
*/
|
|
@@ -2872,6 +3417,179 @@ const FfiConverterTypeVerifyStateOutput = (() => {
|
|
|
2872
3417
|
;
|
|
2873
3418
|
return new FFIConverter();
|
|
2874
3419
|
})();
|
|
3420
|
+
/**
|
|
3421
|
+
* Generated factory for {@link WindowElement} record objects.
|
|
3422
|
+
*/
|
|
3423
|
+
export const WindowElement = (() => {
|
|
3424
|
+
const defaults = () => ({});
|
|
3425
|
+
const create = (() => {
|
|
3426
|
+
return uniffiCreateRecord(defaults);
|
|
3427
|
+
})();
|
|
3428
|
+
return Object.freeze({
|
|
3429
|
+
create,
|
|
3430
|
+
new: create,
|
|
3431
|
+
defaults: () => Object.freeze(defaults()),
|
|
3432
|
+
});
|
|
3433
|
+
})();
|
|
3434
|
+
const FfiConverterTypeWindowElement = (() => {
|
|
3435
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
3436
|
+
read(from) {
|
|
3437
|
+
return {
|
|
3438
|
+
elementIndex: FfiConverterUInt64.read(from),
|
|
3439
|
+
role: FfiConverterString.read(from),
|
|
3440
|
+
depth: FfiConverterUInt32.read(from),
|
|
3441
|
+
elementToken: FfiConverterOptionalString.read(from),
|
|
3442
|
+
label: FfiConverterOptionalString.read(from),
|
|
3443
|
+
value: FfiConverterOptionalString.read(from),
|
|
3444
|
+
valueDescription: FfiConverterOptionalString.read(from),
|
|
3445
|
+
enabled: FfiConverterOptionalBoolean.read(from),
|
|
3446
|
+
selected: FfiConverterOptionalBoolean.read(from),
|
|
3447
|
+
inWebContent: FfiConverterOptionalBoolean.read(from),
|
|
3448
|
+
actions: FfiConverterOptionalSequenceString.read(from),
|
|
3449
|
+
parentIndex: FfiConverterOptionalUInt64.read(from),
|
|
3450
|
+
frame: FfiConverterOptionalTypeElementFrame.read(from),
|
|
3451
|
+
min: FfiConverterOptionalFloat64.read(from),
|
|
3452
|
+
max: FfiConverterOptionalFloat64.read(from)
|
|
3453
|
+
};
|
|
3454
|
+
}
|
|
3455
|
+
write(value, into) {
|
|
3456
|
+
FfiConverterUInt64.write(value.elementIndex, into);
|
|
3457
|
+
FfiConverterString.write(value.role, into);
|
|
3458
|
+
FfiConverterUInt32.write(value.depth, into);
|
|
3459
|
+
FfiConverterOptionalString.write(value.elementToken, into);
|
|
3460
|
+
FfiConverterOptionalString.write(value.label, into);
|
|
3461
|
+
FfiConverterOptionalString.write(value.value, into);
|
|
3462
|
+
FfiConverterOptionalString.write(value.valueDescription, into);
|
|
3463
|
+
FfiConverterOptionalBoolean.write(value.enabled, into);
|
|
3464
|
+
FfiConverterOptionalBoolean.write(value.selected, into);
|
|
3465
|
+
FfiConverterOptionalBoolean.write(value.inWebContent, into);
|
|
3466
|
+
FfiConverterOptionalSequenceString.write(value.actions, into);
|
|
3467
|
+
FfiConverterOptionalUInt64.write(value.parentIndex, into);
|
|
3468
|
+
FfiConverterOptionalTypeElementFrame.write(value.frame, into);
|
|
3469
|
+
FfiConverterOptionalFloat64.write(value.min, into);
|
|
3470
|
+
FfiConverterOptionalFloat64.write(value.max, into);
|
|
3471
|
+
}
|
|
3472
|
+
allocationSize(value) {
|
|
3473
|
+
return FfiConverterUInt64.allocationSize(value.elementIndex) +
|
|
3474
|
+
FfiConverterString.allocationSize(value.role) +
|
|
3475
|
+
FfiConverterUInt32.allocationSize(value.depth) +
|
|
3476
|
+
FfiConverterOptionalString.allocationSize(value.elementToken) +
|
|
3477
|
+
FfiConverterOptionalString.allocationSize(value.label) +
|
|
3478
|
+
FfiConverterOptionalString.allocationSize(value.value) +
|
|
3479
|
+
FfiConverterOptionalString.allocationSize(value.valueDescription) +
|
|
3480
|
+
FfiConverterOptionalBoolean.allocationSize(value.enabled) +
|
|
3481
|
+
FfiConverterOptionalBoolean.allocationSize(value.selected) +
|
|
3482
|
+
FfiConverterOptionalBoolean.allocationSize(value.inWebContent) +
|
|
3483
|
+
FfiConverterOptionalSequenceString.allocationSize(value.actions) +
|
|
3484
|
+
FfiConverterOptionalUInt64.allocationSize(value.parentIndex) +
|
|
3485
|
+
FfiConverterOptionalTypeElementFrame.allocationSize(value.frame) +
|
|
3486
|
+
FfiConverterOptionalFloat64.allocationSize(value.min) +
|
|
3487
|
+
FfiConverterOptionalFloat64.allocationSize(value.max);
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
;
|
|
3491
|
+
return new FFIConverter();
|
|
3492
|
+
})();
|
|
3493
|
+
/**
|
|
3494
|
+
* Generated factory for {@link WindowStateOutput} record objects.
|
|
3495
|
+
*/
|
|
3496
|
+
export const WindowStateOutput = (() => {
|
|
3497
|
+
const defaults = () => ({});
|
|
3498
|
+
const create = (() => {
|
|
3499
|
+
return uniffiCreateRecord(defaults);
|
|
3500
|
+
})();
|
|
3501
|
+
return Object.freeze({
|
|
3502
|
+
create,
|
|
3503
|
+
new: create,
|
|
3504
|
+
defaults: () => Object.freeze(defaults()),
|
|
3505
|
+
});
|
|
3506
|
+
})();
|
|
3507
|
+
const FfiConverterTypeWindowStateOutput = (() => {
|
|
3508
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
3509
|
+
read(from) {
|
|
3510
|
+
return {
|
|
3511
|
+
pid: FfiConverterUInt32.read(from),
|
|
3512
|
+
windowId: FfiConverterUInt64.read(from),
|
|
3513
|
+
snapshotId: FfiConverterOptionalString.read(from),
|
|
3514
|
+
appName: FfiConverterOptionalString.read(from),
|
|
3515
|
+
windowTitle: FfiConverterOptionalString.read(from),
|
|
3516
|
+
treeMarkdown: FfiConverterOptionalString.read(from),
|
|
3517
|
+
elements: FfiConverterOptionalSequenceTypeWindowElement.read(from),
|
|
3518
|
+
elementCount: FfiConverterOptionalUInt64.read(from),
|
|
3519
|
+
totalElementCount: FfiConverterOptionalUInt64.read(from),
|
|
3520
|
+
returnedElementCount: FfiConverterOptionalUInt64.read(from),
|
|
3521
|
+
filteredElementCount: FfiConverterOptionalUInt64.read(from),
|
|
3522
|
+
elementsComplete: FfiConverterOptionalBoolean.read(from),
|
|
3523
|
+
degraded: FfiConverterOptionalBoolean.read(from),
|
|
3524
|
+
degradedReason: FfiConverterOptionalString.read(from),
|
|
3525
|
+
truncated: FfiConverterOptionalBoolean.read(from),
|
|
3526
|
+
truncationReason: FfiConverterOptionalString.read(from),
|
|
3527
|
+
screenshotWidth: FfiConverterOptionalUInt32.read(from),
|
|
3528
|
+
screenshotHeight: FfiConverterOptionalUInt32.read(from),
|
|
3529
|
+
screenshotScale: FfiConverterOptionalFloat64.read(from),
|
|
3530
|
+
screenshotMimeType: FfiConverterOptionalString.read(from),
|
|
3531
|
+
screenshotFilePath: FfiConverterOptionalString.read(from),
|
|
3532
|
+
screenshotFrameValid: FfiConverterOptionalBoolean.read(from),
|
|
3533
|
+
windowBounds: FfiConverterOptionalTypeWindowBounds.read(from),
|
|
3534
|
+
images: FfiConverterSequenceTypeSnapshotImage.read(from)
|
|
3535
|
+
};
|
|
3536
|
+
}
|
|
3537
|
+
write(value, into) {
|
|
3538
|
+
FfiConverterUInt32.write(value.pid, into);
|
|
3539
|
+
FfiConverterUInt64.write(value.windowId, into);
|
|
3540
|
+
FfiConverterOptionalString.write(value.snapshotId, into);
|
|
3541
|
+
FfiConverterOptionalString.write(value.appName, into);
|
|
3542
|
+
FfiConverterOptionalString.write(value.windowTitle, into);
|
|
3543
|
+
FfiConverterOptionalString.write(value.treeMarkdown, into);
|
|
3544
|
+
FfiConverterOptionalSequenceTypeWindowElement.write(value.elements, into);
|
|
3545
|
+
FfiConverterOptionalUInt64.write(value.elementCount, into);
|
|
3546
|
+
FfiConverterOptionalUInt64.write(value.totalElementCount, into);
|
|
3547
|
+
FfiConverterOptionalUInt64.write(value.returnedElementCount, into);
|
|
3548
|
+
FfiConverterOptionalUInt64.write(value.filteredElementCount, into);
|
|
3549
|
+
FfiConverterOptionalBoolean.write(value.elementsComplete, into);
|
|
3550
|
+
FfiConverterOptionalBoolean.write(value.degraded, into);
|
|
3551
|
+
FfiConverterOptionalString.write(value.degradedReason, into);
|
|
3552
|
+
FfiConverterOptionalBoolean.write(value.truncated, into);
|
|
3553
|
+
FfiConverterOptionalString.write(value.truncationReason, into);
|
|
3554
|
+
FfiConverterOptionalUInt32.write(value.screenshotWidth, into);
|
|
3555
|
+
FfiConverterOptionalUInt32.write(value.screenshotHeight, into);
|
|
3556
|
+
FfiConverterOptionalFloat64.write(value.screenshotScale, into);
|
|
3557
|
+
FfiConverterOptionalString.write(value.screenshotMimeType, into);
|
|
3558
|
+
FfiConverterOptionalString.write(value.screenshotFilePath, into);
|
|
3559
|
+
FfiConverterOptionalBoolean.write(value.screenshotFrameValid, into);
|
|
3560
|
+
FfiConverterOptionalTypeWindowBounds.write(value.windowBounds, into);
|
|
3561
|
+
FfiConverterSequenceTypeSnapshotImage.write(value.images, into);
|
|
3562
|
+
}
|
|
3563
|
+
allocationSize(value) {
|
|
3564
|
+
return FfiConverterUInt32.allocationSize(value.pid) +
|
|
3565
|
+
FfiConverterUInt64.allocationSize(value.windowId) +
|
|
3566
|
+
FfiConverterOptionalString.allocationSize(value.snapshotId) +
|
|
3567
|
+
FfiConverterOptionalString.allocationSize(value.appName) +
|
|
3568
|
+
FfiConverterOptionalString.allocationSize(value.windowTitle) +
|
|
3569
|
+
FfiConverterOptionalString.allocationSize(value.treeMarkdown) +
|
|
3570
|
+
FfiConverterOptionalSequenceTypeWindowElement.allocationSize(value.elements) +
|
|
3571
|
+
FfiConverterOptionalUInt64.allocationSize(value.elementCount) +
|
|
3572
|
+
FfiConverterOptionalUInt64.allocationSize(value.totalElementCount) +
|
|
3573
|
+
FfiConverterOptionalUInt64.allocationSize(value.returnedElementCount) +
|
|
3574
|
+
FfiConverterOptionalUInt64.allocationSize(value.filteredElementCount) +
|
|
3575
|
+
FfiConverterOptionalBoolean.allocationSize(value.elementsComplete) +
|
|
3576
|
+
FfiConverterOptionalBoolean.allocationSize(value.degraded) +
|
|
3577
|
+
FfiConverterOptionalString.allocationSize(value.degradedReason) +
|
|
3578
|
+
FfiConverterOptionalBoolean.allocationSize(value.truncated) +
|
|
3579
|
+
FfiConverterOptionalString.allocationSize(value.truncationReason) +
|
|
3580
|
+
FfiConverterOptionalUInt32.allocationSize(value.screenshotWidth) +
|
|
3581
|
+
FfiConverterOptionalUInt32.allocationSize(value.screenshotHeight) +
|
|
3582
|
+
FfiConverterOptionalFloat64.allocationSize(value.screenshotScale) +
|
|
3583
|
+
FfiConverterOptionalString.allocationSize(value.screenshotMimeType) +
|
|
3584
|
+
FfiConverterOptionalString.allocationSize(value.screenshotFilePath) +
|
|
3585
|
+
FfiConverterOptionalBoolean.allocationSize(value.screenshotFrameValid) +
|
|
3586
|
+
FfiConverterOptionalTypeWindowBounds.allocationSize(value.windowBounds) +
|
|
3587
|
+
FfiConverterSequenceTypeSnapshotImage.allocationSize(value.images);
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
;
|
|
3591
|
+
return new FFIConverter();
|
|
3592
|
+
})();
|
|
2875
3593
|
export var Platform;
|
|
2876
3594
|
(function (Platform) {
|
|
2877
3595
|
Platform[Platform["Macos"] = 0] = "Macos";
|
|
@@ -2912,18 +3630,18 @@ const FfiConverterSequenceTypeActionEvidence = new FfiConverterArray(FfiConverte
|
|
|
2912
3630
|
const FfiConverterOptionalSequenceTypeActionEvidence = new FfiConverterOptional(FfiConverterSequenceTypeActionEvidence);
|
|
2913
3631
|
// FfiConverter for ActionEscalation | undefined
|
|
2914
3632
|
const FfiConverterOptionalTypeActionEscalation = new FfiConverterOptional(FfiConverterTypeActionEscalation);
|
|
2915
|
-
// FfiConverter for number | undefined
|
|
2916
|
-
const FfiConverterOptionalFloat64 = new FfiConverterOptional(FfiConverterFloat64);
|
|
2917
|
-
// FfiConverter for ActionTarget | undefined
|
|
2918
|
-
const FfiConverterOptionalTypeActionTarget = new FfiConverterOptional(FfiConverterTypeActionTarget);
|
|
2919
|
-
// FfiConverter for DesktopScope | undefined
|
|
2920
|
-
const FfiConverterOptionalTypeDesktopScope = new FfiConverterOptional(FfiConverterTypeDesktopScope);
|
|
2921
3633
|
// FfiConverter for string | undefined
|
|
2922
3634
|
const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
3635
|
+
// FfiConverter for number | undefined
|
|
3636
|
+
const FfiConverterOptionalFloat64 = new FfiConverterOptional(FfiConverterFloat64);
|
|
2923
3637
|
// FfiConverter for ClickButton | undefined
|
|
2924
3638
|
const FfiConverterOptionalTypeClickButton = new FfiConverterOptional(FfiConverterTypeClickButton);
|
|
2925
3639
|
// FfiConverter for Array<string>
|
|
2926
3640
|
const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
3641
|
+
// FfiConverter for ActionTarget | undefined
|
|
3642
|
+
const FfiConverterOptionalTypeActionTarget = new FfiConverterOptional(FfiConverterTypeActionTarget);
|
|
3643
|
+
// FfiConverter for DesktopScope | undefined
|
|
3644
|
+
const FfiConverterOptionalTypeDesktopScope = new FfiConverterOptional(FfiConverterTypeDesktopScope);
|
|
2927
3645
|
// FfiConverter for bigint | undefined
|
|
2928
3646
|
const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
|
|
2929
3647
|
// FfiConverter for Array<string> | undefined
|
|
@@ -2932,8 +3650,20 @@ const FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverter
|
|
|
2932
3650
|
const FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
|
|
2933
3651
|
// FfiConverter for CursorPointOutput | undefined
|
|
2934
3652
|
const FfiConverterOptionalTypeCursorPointOutput = new FfiConverterOptional(FfiConverterTypeCursorPointOutput);
|
|
3653
|
+
// FfiConverter for Array<AppInfo>
|
|
3654
|
+
const FfiConverterSequenceTypeAppInfo = new FfiConverterArray(FfiConverterTypeAppInfo);
|
|
2935
3655
|
// FfiConverter for Array<SessionOutput>
|
|
2936
3656
|
const FfiConverterSequenceTypeSessionOutput = new FfiConverterArray(FfiConverterTypeSessionOutput);
|
|
3657
|
+
// FfiConverter for bigint | undefined
|
|
3658
|
+
const FfiConverterOptionalInt64 = new FfiConverterOptional(FfiConverterInt64);
|
|
3659
|
+
// FfiConverter for number | undefined
|
|
3660
|
+
const FfiConverterOptionalInt32 = new FfiConverterOptional(FfiConverterInt32);
|
|
3661
|
+
// FfiConverter for Array<bigint>
|
|
3662
|
+
const FfiConverterSequenceUInt64 = new FfiConverterArray(FfiConverterUInt64);
|
|
3663
|
+
// FfiConverter for Array<bigint> | undefined
|
|
3664
|
+
const FfiConverterOptionalSequenceUInt64 = new FfiConverterOptional(FfiConverterSequenceUInt64);
|
|
3665
|
+
// FfiConverter for Array<WindowInfo>
|
|
3666
|
+
const FfiConverterSequenceTypeWindowInfo = new FfiConverterArray(FfiConverterTypeWindowInfo);
|
|
2937
3667
|
// FfiConverter for UnknownReason | undefined
|
|
2938
3668
|
const FfiConverterOptionalTypeUnknownReason = new FfiConverterOptional(FfiConverterTypeUnknownReason);
|
|
2939
3669
|
// FfiConverter for ScrollBy | undefined
|
|
@@ -2954,6 +3684,16 @@ const FfiConverterOptionalTypeElementPredicate = new FfiConverterOptional(FfiCon
|
|
|
2954
3684
|
const FfiConverterSequenceTypeStatePredicate = new FfiConverterArray(FfiConverterTypeStatePredicate);
|
|
2955
3685
|
// FfiConverter for Array<PredicateOutcome>
|
|
2956
3686
|
const FfiConverterSequenceTypePredicateOutcome = new FfiConverterArray(FfiConverterTypePredicateOutcome);
|
|
3687
|
+
// FfiConverter for ElementFrame | undefined
|
|
3688
|
+
const FfiConverterOptionalTypeElementFrame = new FfiConverterOptional(FfiConverterTypeElementFrame);
|
|
3689
|
+
// FfiConverter for Array<WindowElement>
|
|
3690
|
+
const FfiConverterSequenceTypeWindowElement = new FfiConverterArray(FfiConverterTypeWindowElement);
|
|
3691
|
+
// FfiConverter for Array<WindowElement> | undefined
|
|
3692
|
+
const FfiConverterOptionalSequenceTypeWindowElement = new FfiConverterOptional(FfiConverterSequenceTypeWindowElement);
|
|
3693
|
+
// FfiConverter for WindowBounds | undefined
|
|
3694
|
+
const FfiConverterOptionalTypeWindowBounds = new FfiConverterOptional(FfiConverterTypeWindowBounds);
|
|
3695
|
+
// FfiConverter for Array<SnapshotImage>
|
|
3696
|
+
const FfiConverterSequenceTypeSnapshotImage = new FfiConverterArray(FfiConverterTypeSnapshotImage);
|
|
2957
3697
|
/**
|
|
2958
3698
|
* This should be called before anything else.
|
|
2959
3699
|
*
|
|
@@ -2987,10 +3727,12 @@ export default Object.freeze({
|
|
|
2987
3727
|
FfiConverterTypeActionResult,
|
|
2988
3728
|
FfiConverterTypeActionRoute,
|
|
2989
3729
|
FfiConverterTypeActionTarget,
|
|
3730
|
+
FfiConverterTypeAppInfo,
|
|
2990
3731
|
FfiConverterTypeBoundsExpectation,
|
|
2991
3732
|
FfiConverterTypeCaptureScope,
|
|
2992
3733
|
FfiConverterTypeClickButton,
|
|
2993
3734
|
FfiConverterTypeClickInput,
|
|
3735
|
+
FfiConverterTypeClickPosition,
|
|
2994
3736
|
FfiConverterTypeClipboardReadInput,
|
|
2995
3737
|
FfiConverterTypeClipboardReadOutput,
|
|
2996
3738
|
FfiConverterTypeClipboardWriteInput,
|
|
@@ -3005,6 +3747,7 @@ export default Object.freeze({
|
|
|
3005
3747
|
FfiConverterTypeDesktopScope,
|
|
3006
3748
|
FfiConverterTypeDragInput,
|
|
3007
3749
|
FfiConverterTypeEffectiveScope,
|
|
3750
|
+
FfiConverterTypeElementFrame,
|
|
3008
3751
|
FfiConverterTypeElementPredicate,
|
|
3009
3752
|
FfiConverterTypeElementSelector,
|
|
3010
3753
|
FfiConverterTypeEndSessionInput,
|
|
@@ -3018,10 +3761,16 @@ export default Object.freeze({
|
|
|
3018
3761
|
FfiConverterTypeGetScreenSizeInput,
|
|
3019
3762
|
FfiConverterTypeGetSessionInput,
|
|
3020
3763
|
FfiConverterTypeGetSessionStateInput,
|
|
3764
|
+
FfiConverterTypeGetWindowStateInput,
|
|
3021
3765
|
FfiConverterTypeHotkeyInput,
|
|
3766
|
+
FfiConverterTypeInputDeliveryMode,
|
|
3022
3767
|
FfiConverterTypeInvokeMenuInput,
|
|
3768
|
+
FfiConverterTypeListAppsInput,
|
|
3769
|
+
FfiConverterTypeListAppsOutput,
|
|
3023
3770
|
FfiConverterTypeListSessionsInput,
|
|
3024
3771
|
FfiConverterTypeListSessionsOutput,
|
|
3772
|
+
FfiConverterTypeListWindowsInput,
|
|
3773
|
+
FfiConverterTypeListWindowsOutput,
|
|
3025
3774
|
FfiConverterTypeMoveCursorInput,
|
|
3026
3775
|
FfiConverterTypePlatform,
|
|
3027
3776
|
FfiConverterTypePredicateOutcome,
|
|
@@ -3041,6 +3790,7 @@ export default Object.freeze({
|
|
|
3041
3790
|
FfiConverterTypeSetAgentCursorThemeInput,
|
|
3042
3791
|
FfiConverterTypeSetAgentCursorThemeOutput,
|
|
3043
3792
|
FfiConverterTypeSetWindowFrameInput,
|
|
3793
|
+
FfiConverterTypeSnapshotImage,
|
|
3044
3794
|
FfiConverterTypeStartSessionInput,
|
|
3045
3795
|
FfiConverterTypeStartSessionOutput,
|
|
3046
3796
|
FfiConverterTypeStatePredicate,
|
|
@@ -3049,6 +3799,10 @@ export default Object.freeze({
|
|
|
3049
3799
|
FfiConverterTypeVerificationStatus,
|
|
3050
3800
|
FfiConverterTypeVerifyStateInput,
|
|
3051
3801
|
FfiConverterTypeVerifyStateOutput,
|
|
3802
|
+
FfiConverterTypeWindowBounds,
|
|
3803
|
+
FfiConverterTypeWindowElement,
|
|
3804
|
+
FfiConverterTypeWindowInfo,
|
|
3052
3805
|
FfiConverterTypeWindowPredicate,
|
|
3806
|
+
FfiConverterTypeWindowStateOutput,
|
|
3053
3807
|
}
|
|
3054
3808
|
});
|