@trycua/cua 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cua_sdk.d.ts +41 -0
- package/browser/cua_sdk.js +44 -0
- package/browser/cua_sdk.ts +75 -0
- package/browser/wasm-bindgen/index.d.ts +14 -14
- package/browser/wasm-bindgen/index.js +45 -45
- package/browser/wasm-bindgen/index_bg.wasm +0 -0
- package/browser/wasm-bindgen/index_bg.wasm.d.ts +14 -14
- package/dist/native/cua_sdk-ffi.d.ts +6 -0
- package/dist/native/cua_sdk-ffi.js +30 -0
- package/dist/native/cua_sdk.d.ts +139 -24
- package/dist/native/cua_sdk.js +193 -19
- package/package.json +7 -7
package/browser/cua_sdk.d.ts
CHANGED
|
@@ -400,6 +400,40 @@ export declare const ScreenshotOptions: Readonly<{
|
|
|
400
400
|
new: (partial: Partial<ScreenshotOptions> & Required<Omit<ScreenshotOptions, "display" | "maxDimension" | "format" | "quality" | "includeCursor">>) => ScreenshotOptions;
|
|
401
401
|
defaults: () => Partial<ScreenshotOptions>;
|
|
402
402
|
}>;
|
|
403
|
+
/**
|
|
404
|
+
* A Space's latest thumbnail, from the cache every client on this machine
|
|
405
|
+
* shares ([`crate::native::spaces::Space::thumbnail`]).
|
|
406
|
+
*/
|
|
407
|
+
export type SpaceThumbnail = {
|
|
408
|
+
/**
|
|
409
|
+
* Encoded image (a small JPEG of the primary display).
|
|
410
|
+
*/
|
|
411
|
+
image: ArrayBuffer;
|
|
412
|
+
/**
|
|
413
|
+
* Encoding.
|
|
414
|
+
*/
|
|
415
|
+
format: ImageFormat;
|
|
416
|
+
/**
|
|
417
|
+
* Pixel width.
|
|
418
|
+
*/
|
|
419
|
+
width: number;
|
|
420
|
+
/**
|
|
421
|
+
* Pixel height.
|
|
422
|
+
*/
|
|
423
|
+
height: number;
|
|
424
|
+
/**
|
|
425
|
+
* When it was captured, Unix milliseconds.
|
|
426
|
+
*/
|
|
427
|
+
capturedAtMs: bigint;
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* Generated factory for {@link SpaceThumbnail} record objects.
|
|
431
|
+
*/
|
|
432
|
+
export declare const SpaceThumbnail: Readonly<{
|
|
433
|
+
create: (partial: Partial<SpaceThumbnail> & Required<Omit<SpaceThumbnail, "image" | "format" | "width" | "height" | "capturedAtMs">>) => SpaceThumbnail;
|
|
434
|
+
new: (partial: Partial<SpaceThumbnail> & Required<Omit<SpaceThumbnail, "image" | "format" | "width" | "height" | "capturedAtMs">>) => SpaceThumbnail;
|
|
435
|
+
defaults: () => Partial<SpaceThumbnail>;
|
|
436
|
+
}>;
|
|
403
437
|
/**
|
|
404
438
|
* One capability flag.
|
|
405
439
|
*/
|
|
@@ -2196,6 +2230,13 @@ declare const _default: Readonly<{
|
|
|
2196
2230
|
lift(value: UniffiByteArray): ScreenshotOptions;
|
|
2197
2231
|
lower(value: ScreenshotOptions, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2198
2232
|
};
|
|
2233
|
+
FfiConverterTypeSpaceThumbnail: {
|
|
2234
|
+
read(from: RustBuffer): SpaceThumbnail;
|
|
2235
|
+
write(value: SpaceThumbnail, into: RustBuffer): void;
|
|
2236
|
+
allocationSize(value: SpaceThumbnail): number;
|
|
2237
|
+
lift(value: UniffiByteArray): SpaceThumbnail;
|
|
2238
|
+
lower(value: SpaceThumbnail, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2239
|
+
};
|
|
2199
2240
|
FfiConverterTypeSpacesdCapabilities: {
|
|
2200
2241
|
read(from: RustBuffer): SpacesdCapabilities;
|
|
2201
2242
|
write(value: SpacesdCapabilities, into: RustBuffer): void;
|
package/browser/cua_sdk.js
CHANGED
|
@@ -665,6 +665,49 @@ const FfiConverterTypeScreenshotOptions = (() => {
|
|
|
665
665
|
;
|
|
666
666
|
return new FFIConverter();
|
|
667
667
|
})();
|
|
668
|
+
/**
|
|
669
|
+
* Generated factory for {@link SpaceThumbnail} record objects.
|
|
670
|
+
*/
|
|
671
|
+
export const SpaceThumbnail = (() => {
|
|
672
|
+
const defaults = () => ({});
|
|
673
|
+
const create = (() => {
|
|
674
|
+
return uniffiCreateRecord(defaults);
|
|
675
|
+
})();
|
|
676
|
+
return Object.freeze({
|
|
677
|
+
create,
|
|
678
|
+
new: create,
|
|
679
|
+
defaults: () => Object.freeze(defaults()),
|
|
680
|
+
});
|
|
681
|
+
})();
|
|
682
|
+
const FfiConverterTypeSpaceThumbnail = (() => {
|
|
683
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
684
|
+
read(from) {
|
|
685
|
+
return {
|
|
686
|
+
image: FfiConverterArrayBuffer.read(from),
|
|
687
|
+
format: FfiConverterTypeImageFormat.read(from),
|
|
688
|
+
width: FfiConverterUInt32.read(from),
|
|
689
|
+
height: FfiConverterUInt32.read(from),
|
|
690
|
+
capturedAtMs: FfiConverterUInt64.read(from)
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
write(value, into) {
|
|
694
|
+
FfiConverterArrayBuffer.write(value.image, into);
|
|
695
|
+
FfiConverterTypeImageFormat.write(value.format, into);
|
|
696
|
+
FfiConverterUInt32.write(value.width, into);
|
|
697
|
+
FfiConverterUInt32.write(value.height, into);
|
|
698
|
+
FfiConverterUInt64.write(value.capturedAtMs, into);
|
|
699
|
+
}
|
|
700
|
+
allocationSize(value) {
|
|
701
|
+
return FfiConverterArrayBuffer.allocationSize(value.image) +
|
|
702
|
+
FfiConverterTypeImageFormat.allocationSize(value.format) +
|
|
703
|
+
FfiConverterUInt32.allocationSize(value.width) +
|
|
704
|
+
FfiConverterUInt32.allocationSize(value.height) +
|
|
705
|
+
FfiConverterUInt64.allocationSize(value.capturedAtMs);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
;
|
|
709
|
+
return new FFIConverter();
|
|
710
|
+
})();
|
|
668
711
|
/**
|
|
669
712
|
* Generated factory for {@link SpacesdFeature} record objects.
|
|
670
713
|
*/
|
|
@@ -2597,6 +2640,7 @@ export default Object.freeze({
|
|
|
2597
2640
|
FfiConverterTypePtySize,
|
|
2598
2641
|
FfiConverterTypeScreenshot,
|
|
2599
2642
|
FfiConverterTypeScreenshotOptions,
|
|
2643
|
+
FfiConverterTypeSpaceThumbnail,
|
|
2600
2644
|
FfiConverterTypeSpacesdCapabilities,
|
|
2601
2645
|
FfiConverterTypeSpacesdClient,
|
|
2602
2646
|
FfiConverterTypeSpacesdCommand,
|
package/browser/cua_sdk.ts
CHANGED
|
@@ -999,6 +999,80 @@ const FfiConverterTypeScreenshotOptions = (() => {
|
|
|
999
999
|
return new FFIConverter();
|
|
1000
1000
|
})();
|
|
1001
1001
|
|
|
1002
|
+
/**
|
|
1003
|
+
* A Space's latest thumbnail, from the cache every client on this machine
|
|
1004
|
+
* shares ([`crate::native::spaces::Space::thumbnail`]).
|
|
1005
|
+
*/
|
|
1006
|
+
export type SpaceThumbnail = {
|
|
1007
|
+
/**
|
|
1008
|
+
* Encoded image (a small JPEG of the primary display).
|
|
1009
|
+
*/
|
|
1010
|
+
image: ArrayBuffer,
|
|
1011
|
+
/**
|
|
1012
|
+
* Encoding.
|
|
1013
|
+
*/
|
|
1014
|
+
format: ImageFormat,
|
|
1015
|
+
/**
|
|
1016
|
+
* Pixel width.
|
|
1017
|
+
*/
|
|
1018
|
+
width: number,
|
|
1019
|
+
/**
|
|
1020
|
+
* Pixel height.
|
|
1021
|
+
*/
|
|
1022
|
+
height: number,
|
|
1023
|
+
/**
|
|
1024
|
+
* When it was captured, Unix milliseconds.
|
|
1025
|
+
*/
|
|
1026
|
+
capturedAtMs: bigint
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Generated factory for {@link SpaceThumbnail} record objects.
|
|
1031
|
+
*/
|
|
1032
|
+
export const SpaceThumbnail = (() => {
|
|
1033
|
+
const defaults = () => ({
|
|
1034
|
+
});
|
|
1035
|
+
const create = (() => {
|
|
1036
|
+
return uniffiCreateRecord<SpaceThumbnail, ReturnType<typeof defaults>>(defaults);
|
|
1037
|
+
})();
|
|
1038
|
+
return Object.freeze({
|
|
1039
|
+
create,
|
|
1040
|
+
new: create,
|
|
1041
|
+
defaults: () => Object.freeze(defaults()) as Partial<SpaceThumbnail>,
|
|
1042
|
+
});
|
|
1043
|
+
})();
|
|
1044
|
+
|
|
1045
|
+
const FfiConverterTypeSpaceThumbnail = (() => {
|
|
1046
|
+
type TypeName = SpaceThumbnail;
|
|
1047
|
+
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
1048
|
+
read(from: RustBuffer): TypeName {
|
|
1049
|
+
return {
|
|
1050
|
+
image: FfiConverterArrayBuffer.read(from),
|
|
1051
|
+
format: FfiConverterTypeImageFormat.read(from),
|
|
1052
|
+
width: FfiConverterUInt32.read(from),
|
|
1053
|
+
height: FfiConverterUInt32.read(from),
|
|
1054
|
+
capturedAtMs: FfiConverterUInt64.read(from)
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
write(value: TypeName, into: RustBuffer): void {
|
|
1058
|
+
FfiConverterArrayBuffer.write(value.image, into);
|
|
1059
|
+
FfiConverterTypeImageFormat.write(value.format, into);
|
|
1060
|
+
FfiConverterUInt32.write(value.width, into);
|
|
1061
|
+
FfiConverterUInt32.write(value.height, into);
|
|
1062
|
+
FfiConverterUInt64.write(value.capturedAtMs, into);
|
|
1063
|
+
}
|
|
1064
|
+
allocationSize(value: TypeName): number {
|
|
1065
|
+
return FfiConverterArrayBuffer.allocationSize(value.image) +
|
|
1066
|
+
FfiConverterTypeImageFormat.allocationSize(value.format) +
|
|
1067
|
+
FfiConverterUInt32.allocationSize(value.width) +
|
|
1068
|
+
FfiConverterUInt32.allocationSize(value.height) +
|
|
1069
|
+
FfiConverterUInt64.allocationSize(value.capturedAtMs);
|
|
1070
|
+
|
|
1071
|
+
}
|
|
1072
|
+
};
|
|
1073
|
+
return new FFIConverter();
|
|
1074
|
+
})();
|
|
1075
|
+
|
|
1002
1076
|
/**
|
|
1003
1077
|
* One capability flag.
|
|
1004
1078
|
*/
|
|
@@ -3634,6 +3708,7 @@ export default Object.freeze({
|
|
|
3634
3708
|
FfiConverterTypePtySize,
|
|
3635
3709
|
FfiConverterTypeScreenshot,
|
|
3636
3710
|
FfiConverterTypeScreenshotOptions,
|
|
3711
|
+
FfiConverterTypeSpaceThumbnail,
|
|
3637
3712
|
FfiConverterTypeSpacesdCapabilities,
|
|
3638
3713
|
FfiConverterTypeSpacesdClient,
|
|
3639
3714
|
FfiConverterTypeSpacesdCommand,
|
|
@@ -2206,28 +2206,28 @@ export interface InitOutput {
|
|
|
2206
2206
|
readonly uniffi_cua_sdk_fn_method_spacesdclient_type_text: (a: bigint, b: number) => bigint;
|
|
2207
2207
|
readonly __wbg_foreignfuturecompletei8_free: (a: number, b: number) => void;
|
|
2208
2208
|
readonly foreignfuturecompletei8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2209
|
-
readonly
|
|
2210
|
-
readonly
|
|
2211
|
-
readonly
|
|
2212
|
-
readonly
|
|
2209
|
+
readonly __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
|
|
2210
|
+
readonly foreignfuturecompletei32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2211
|
+
readonly __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
|
|
2212
|
+
readonly __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
2213
2213
|
readonly __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
|
|
2214
|
-
readonly
|
|
2215
|
-
readonly
|
|
2214
|
+
readonly foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2215
|
+
readonly foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2216
2216
|
readonly foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2217
|
-
readonly
|
|
2217
|
+
readonly __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
|
|
2218
2218
|
readonly __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
|
|
2219
|
-
readonly __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
2220
2219
|
readonly __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
|
|
2220
|
+
readonly __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
|
|
2221
2221
|
readonly __wbg_foreignfuturecompleteu8_free: (a: number, b: number) => void;
|
|
2222
|
-
readonly
|
|
2222
|
+
readonly foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2223
2223
|
readonly foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2224
|
-
readonly foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2225
2224
|
readonly foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2225
|
+
readonly foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2226
2226
|
readonly foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2227
|
-
readonly
|
|
2228
|
-
readonly
|
|
2229
|
-
readonly
|
|
2230
|
-
readonly
|
|
2227
|
+
readonly __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
|
|
2228
|
+
readonly __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
|
|
2229
|
+
readonly foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2230
|
+
readonly foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2231
2231
|
readonly __wbg_get_rustcallstatus_code: (a: number) => number;
|
|
2232
2232
|
readonly __wbg_rustcallstatus_free: (a: number, b: number) => void;
|
|
2233
2233
|
readonly __wbg_set_rustcallstatus_code: (a: number, b: number) => void;
|
|
@@ -5688,45 +5688,45 @@ function __wbg_get_imports() {
|
|
|
5688
5688
|
const ret = arg0.byteOffset;
|
|
5689
5689
|
return ret;
|
|
5690
5690
|
},
|
|
5691
|
-
|
|
5691
|
+
__wbg_call_00ddac3febb8935f: function(arg0, arg1, arg2) {
|
|
5692
5692
|
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5693
5693
|
return ret;
|
|
5694
5694
|
},
|
|
5695
|
-
|
|
5695
|
+
__wbg_call_0aacd5fb8327fd44: function(arg0, arg1, arg2) {
|
|
5696
5696
|
arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5697
5697
|
},
|
|
5698
|
-
|
|
5698
|
+
__wbg_call_134815481dd0ec22: function(arg0, arg1, arg2, arg3) {
|
|
5699
5699
|
arg0.call(arg1, BigInt.asUintN(64, arg2), arg3);
|
|
5700
5700
|
},
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
return ret;
|
|
5704
|
-
}, arguments); },
|
|
5705
|
-
__wbg_call_a68b3163beac47b6: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
5706
|
-
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2), arg3, ForeignFutureCompleteRustBuffer.__wrap(arg4), BigInt.asUintN(64, arg5));
|
|
5707
|
-
return ret;
|
|
5701
|
+
__wbg_call_1de67cb6c8957e35: function(arg0, arg1, arg2) {
|
|
5702
|
+
arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5708
5703
|
},
|
|
5709
|
-
|
|
5710
|
-
const ret = arg0.call(arg1, arg2);
|
|
5711
|
-
return ret;
|
|
5712
|
-
}, arguments); },
|
|
5713
|
-
__wbg_call_cab4b2e257d0fd21: function(arg0, arg1, arg2) {
|
|
5704
|
+
__wbg_call_6d875d7c72913330: function(arg0, arg1, arg2) {
|
|
5714
5705
|
arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5715
5706
|
},
|
|
5716
|
-
|
|
5707
|
+
__wbg_call_899b9b70e353349f: function(arg0, arg1, arg2) {
|
|
5717
5708
|
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5718
5709
|
return ret;
|
|
5719
5710
|
},
|
|
5720
|
-
|
|
5711
|
+
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
5712
|
+
const ret = arg0.call(arg1);
|
|
5713
|
+
return ret;
|
|
5714
|
+
}, arguments); },
|
|
5715
|
+
__wbg_call_96ea47e3dbf1f018: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
5721
5716
|
var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
|
|
5722
5717
|
wasm.__wbindgen_free(arg3, arg4 * 1, 1);
|
|
5723
5718
|
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2), v0, ForeignFutureCompleteRustBuffer.__wrap(arg5), BigInt.asUintN(64, arg6));
|
|
5724
5719
|
return ret;
|
|
5725
5720
|
},
|
|
5726
|
-
|
|
5727
|
-
arg0.call(arg1,
|
|
5721
|
+
__wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
|
|
5722
|
+
const ret = arg0.call(arg1, arg2);
|
|
5723
|
+
return ret;
|
|
5724
|
+
}, arguments); },
|
|
5725
|
+
__wbg_call_e4ab523d7cd58d4f: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
5726
|
+
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2), arg3, ForeignFutureCompleteRustBuffer.__wrap(arg4), BigInt.asUintN(64, arg5));
|
|
5727
|
+
return ret;
|
|
5728
5728
|
},
|
|
5729
|
-
|
|
5729
|
+
__wbg_call_status_7e9dc0d6ee93540a: function(arg0) {
|
|
5730
5730
|
const ret = arg0.call_status;
|
|
5731
5731
|
_assertClass(ret, RustCallStatus);
|
|
5732
5732
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -5765,7 +5765,7 @@ function __wbg_get_imports() {
|
|
|
5765
5765
|
__wbg_enqueue_6d83b4c6281bafd6: function() { return handleError(function (arg0, arg1) {
|
|
5766
5766
|
arg0.enqueue(arg1);
|
|
5767
5767
|
}, arguments); },
|
|
5768
|
-
|
|
5768
|
+
__wbg_execute_41f76aad3fdf8999: function(arg0) {
|
|
5769
5769
|
const ret = arg0.execute;
|
|
5770
5770
|
return ret;
|
|
5771
5771
|
},
|
|
@@ -5781,7 +5781,7 @@ function __wbg_get_imports() {
|
|
|
5781
5781
|
const ret = arg0.fetch(arg1, arg2);
|
|
5782
5782
|
return ret;
|
|
5783
5783
|
},
|
|
5784
|
-
|
|
5784
|
+
__wbg_free_4979183f6934cd67: function(arg0) {
|
|
5785
5785
|
const ret = arg0.free;
|
|
5786
5786
|
return ret;
|
|
5787
5787
|
},
|
|
@@ -5804,7 +5804,7 @@ function __wbg_get_imports() {
|
|
|
5804
5804
|
const ret = Reflect.get(arg0, arg1);
|
|
5805
5805
|
return ret;
|
|
5806
5806
|
}, arguments); },
|
|
5807
|
-
|
|
5807
|
+
__wbg_get_access_token_ec52e05dfdfcc413: function(arg0) {
|
|
5808
5808
|
const ret = arg0.get_access_token;
|
|
5809
5809
|
return ret;
|
|
5810
5810
|
},
|
|
@@ -5820,7 +5820,7 @@ function __wbg_get_imports() {
|
|
|
5820
5820
|
const ret = arg0.value;
|
|
5821
5821
|
return ret;
|
|
5822
5822
|
},
|
|
5823
|
-
|
|
5823
|
+
__wbg_handle_bdd4844c7368045a: function(arg0) {
|
|
5824
5824
|
const ret = arg0.handle;
|
|
5825
5825
|
return ret;
|
|
5826
5826
|
},
|
|
@@ -6021,50 +6021,50 @@ function __wbg_get_imports() {
|
|
|
6021
6021
|
__wbg_respond_510e32df8aeb6817: function() { return handleError(function (arg0, arg1) {
|
|
6022
6022
|
arg0.respond(arg1 >>> 0);
|
|
6023
6023
|
}, arguments); },
|
|
6024
|
-
|
|
6024
|
+
__wbg_return_value_10b63b9f9ca7e7a6: function(arg0) {
|
|
6025
6025
|
const ret = arg0.return_value;
|
|
6026
6026
|
return ret;
|
|
6027
6027
|
},
|
|
6028
|
-
|
|
6028
|
+
__wbg_return_value_2a423af819e336ee: function(arg0) {
|
|
6029
6029
|
const ret = arg0.return_value;
|
|
6030
6030
|
return ret;
|
|
6031
6031
|
},
|
|
6032
|
-
|
|
6032
|
+
__wbg_return_value_33a295b2d9308435: function(arg0) {
|
|
6033
6033
|
const ret = arg0.return_value;
|
|
6034
6034
|
return ret;
|
|
6035
6035
|
},
|
|
6036
|
-
|
|
6036
|
+
__wbg_return_value_5a76ecbc9f8c25cc: function(arg0) {
|
|
6037
6037
|
const ret = arg0.return_value;
|
|
6038
6038
|
return ret;
|
|
6039
6039
|
},
|
|
6040
|
-
|
|
6040
|
+
__wbg_return_value_7f3ff7f018d1ff02: function(arg0) {
|
|
6041
6041
|
const ret = arg0.return_value;
|
|
6042
6042
|
return ret;
|
|
6043
6043
|
},
|
|
6044
|
-
|
|
6045
|
-
const ret = arg1.return_value;
|
|
6046
|
-
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
6047
|
-
const len1 = WASM_VECTOR_LEN;
|
|
6048
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
6049
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
6050
|
-
},
|
|
6051
|
-
__wbg_return_value_b297d6062c82d5e0: function(arg0) {
|
|
6044
|
+
__wbg_return_value_93c650895261cca2: function(arg0) {
|
|
6052
6045
|
const ret = arg0.return_value;
|
|
6053
6046
|
return ret;
|
|
6054
6047
|
},
|
|
6055
|
-
|
|
6048
|
+
__wbg_return_value_af2df9f09becd379: function(arg0) {
|
|
6056
6049
|
const ret = arg0.return_value;
|
|
6057
6050
|
return ret;
|
|
6058
6051
|
},
|
|
6059
|
-
|
|
6052
|
+
__wbg_return_value_b8f309c3156c3c7a: function(arg0) {
|
|
6060
6053
|
const ret = arg0.return_value;
|
|
6061
6054
|
return ret;
|
|
6062
6055
|
},
|
|
6063
|
-
|
|
6056
|
+
__wbg_return_value_cf1dcdbf16437c65: function(arg0, arg1) {
|
|
6057
|
+
const ret = arg1.return_value;
|
|
6058
|
+
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
6059
|
+
const len1 = WASM_VECTOR_LEN;
|
|
6060
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
6061
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
6062
|
+
},
|
|
6063
|
+
__wbg_return_value_d16d2fc5ff9480ac: function(arg0) {
|
|
6064
6064
|
const ret = arg0.return_value;
|
|
6065
6065
|
return ret;
|
|
6066
6066
|
},
|
|
6067
|
-
|
|
6067
|
+
__wbg_return_value_d972d7bfc0cccbbb: function(arg0) {
|
|
6068
6068
|
const ret = arg0.return_value;
|
|
6069
6069
|
return ret;
|
|
6070
6070
|
},
|
|
@@ -6155,19 +6155,19 @@ function __wbg_get_imports() {
|
|
|
6155
6155
|
const ret = arg0.toString();
|
|
6156
6156
|
return ret;
|
|
6157
6157
|
},
|
|
6158
|
-
|
|
6158
|
+
__wbg_uniffi_clone_310ccaa9ff29cb3e: function(arg0) {
|
|
6159
6159
|
const ret = arg0.uniffi_clone;
|
|
6160
6160
|
return ret;
|
|
6161
6161
|
},
|
|
6162
|
-
|
|
6162
|
+
__wbg_uniffi_clone_5d7dc130963c02b7: function(arg0) {
|
|
6163
6163
|
const ret = arg0.uniffi_clone;
|
|
6164
6164
|
return ret;
|
|
6165
6165
|
},
|
|
6166
|
-
|
|
6166
|
+
__wbg_uniffi_free_2e764ef7d5fd5ba8: function(arg0) {
|
|
6167
6167
|
const ret = arg0.uniffi_free;
|
|
6168
6168
|
return ret;
|
|
6169
6169
|
},
|
|
6170
|
-
|
|
6170
|
+
__wbg_uniffi_free_6b9a9b565bc4b6ed: function(arg0) {
|
|
6171
6171
|
const ret = arg0.uniffi_free;
|
|
6172
6172
|
return ret;
|
|
6173
6173
|
},
|
|
Binary file
|
|
@@ -1037,28 +1037,28 @@ export const ubrn_uniffi_cua_sdk_fn_method_spacesdclient_type_text: (a: bigint,
|
|
|
1037
1037
|
export const uniffi_cua_sdk_fn_method_spacesdclient_type_text: (a: bigint, b: number) => bigint;
|
|
1038
1038
|
export const __wbg_foreignfuturecompletei8_free: (a: number, b: number) => void;
|
|
1039
1039
|
export const foreignfuturecompletei8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1040
|
-
export const
|
|
1041
|
-
export const
|
|
1042
|
-
export const
|
|
1043
|
-
export const
|
|
1040
|
+
export const __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
|
|
1041
|
+
export const foreignfuturecompletei32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1042
|
+
export const __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
|
|
1043
|
+
export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
1044
1044
|
export const __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
|
|
1045
|
-
export const
|
|
1046
|
-
export const
|
|
1045
|
+
export const foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1046
|
+
export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1047
1047
|
export const foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1048
|
-
export const
|
|
1048
|
+
export const __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
|
|
1049
1049
|
export const __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
|
|
1050
|
-
export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
1051
1050
|
export const __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
|
|
1051
|
+
export const __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
|
|
1052
1052
|
export const __wbg_foreignfuturecompleteu8_free: (a: number, b: number) => void;
|
|
1053
|
-
export const
|
|
1053
|
+
export const foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1054
1054
|
export const foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1055
|
-
export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1056
1055
|
export const foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1056
|
+
export const foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1057
1057
|
export const foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1058
|
-
export const
|
|
1059
|
-
export const
|
|
1060
|
-
export const
|
|
1061
|
-
export const
|
|
1058
|
+
export const __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
|
|
1059
|
+
export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
|
|
1060
|
+
export const foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1061
|
+
export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1062
1062
|
export const __wbg_get_rustcallstatus_code: (a: number) => number;
|
|
1063
1063
|
export const __wbg_rustcallstatus_free: (a: number, b: number) => void;
|
|
1064
1064
|
export const __wbg_set_rustcallstatus_code: (a: number, b: number) => void;
|
|
@@ -270,7 +270,9 @@ interface NativeModuleInterface {
|
|
|
270
270
|
uniffi_cua_sdk_fn_method_guestdisplay_via(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
271
271
|
uniffi_cua_sdk_fn_constructor_host_new(cuaHome: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
272
272
|
uniffi_cua_sdk_fn_method_host_configure(uniffiSelf: bigint, change: Uint8Array): bigint;
|
|
273
|
+
uniffi_cua_sdk_fn_method_host_pause_signed_out(uniffiSelf: bigint): bigint;
|
|
273
274
|
uniffi_cua_sdk_fn_method_host_remove(uniffiSelf: bigint): bigint;
|
|
275
|
+
uniffi_cua_sdk_fn_method_host_resume_signed_in(uniffiSelf: bigint, account: Uint8Array): bigint;
|
|
274
276
|
uniffi_cua_sdk_fn_method_host_setup(uniffiSelf: bigint, options: Uint8Array, accountToken: Uint8Array): bigint;
|
|
275
277
|
uniffi_cua_sdk_fn_method_host_start_sharing(uniffiSelf: bigint): bigint;
|
|
276
278
|
uniffi_cua_sdk_fn_method_host_status(uniffiSelf: bigint): bigint;
|
|
@@ -410,6 +412,7 @@ interface NativeModuleInterface {
|
|
|
410
412
|
uniffi_cua_sdk_fn_method_space_supports(uniffiSelf: bigint, feature: Uint8Array, uniffi_out_err: UniffiRustCallStatus): number;
|
|
411
413
|
uniffi_cua_sdk_fn_method_space_teleport(uniffiSelf: bigint, app: Uint8Array, scope: Uint8Array, approver: bigint, requestId: Uint8Array): bigint;
|
|
412
414
|
uniffi_cua_sdk_fn_method_space_teleport_manifest(uniffiSelf: bigint, app: Uint8Array, scope: Uint8Array): bigint;
|
|
415
|
+
uniffi_cua_sdk_fn_method_space_thumbnail(uniffiSelf: bigint, maxAgeMs: Uint8Array): bigint;
|
|
413
416
|
uniffi_cua_sdk_fn_method_space_unshare(uniffiSelf: bigint, who: Uint8Array): bigint;
|
|
414
417
|
uniffi_cua_sdk_fn_method_space_upload(uniffiSelf: bigint, localPath: Uint8Array, dest: Uint8Array): bigint;
|
|
415
418
|
uniffi_cua_sdk_fn_method_space_usage(uniffiSelf: bigint): bigint;
|
|
@@ -709,7 +712,9 @@ interface NativeModuleInterface {
|
|
|
709
712
|
uniffi_cua_sdk_checksum_method_guestdisplay_via(): number;
|
|
710
713
|
uniffi_cua_sdk_checksum_constructor_host_new(): number;
|
|
711
714
|
uniffi_cua_sdk_checksum_method_host_configure(): number;
|
|
715
|
+
uniffi_cua_sdk_checksum_method_host_pause_signed_out(): number;
|
|
712
716
|
uniffi_cua_sdk_checksum_method_host_remove(): number;
|
|
717
|
+
uniffi_cua_sdk_checksum_method_host_resume_signed_in(): number;
|
|
713
718
|
uniffi_cua_sdk_checksum_method_host_setup(): number;
|
|
714
719
|
uniffi_cua_sdk_checksum_method_host_start_sharing(): number;
|
|
715
720
|
uniffi_cua_sdk_checksum_method_host_status(): number;
|
|
@@ -849,6 +854,7 @@ interface NativeModuleInterface {
|
|
|
849
854
|
uniffi_cua_sdk_checksum_method_space_supports(): number;
|
|
850
855
|
uniffi_cua_sdk_checksum_method_space_teleport(): number;
|
|
851
856
|
uniffi_cua_sdk_checksum_method_space_teleport_manifest(): number;
|
|
857
|
+
uniffi_cua_sdk_checksum_method_space_thumbnail(): number;
|
|
852
858
|
uniffi_cua_sdk_checksum_method_space_unshare(): number;
|
|
853
859
|
uniffi_cua_sdk_checksum_method_space_upload(): number;
|
|
854
860
|
uniffi_cua_sdk_checksum_method_space_usage(): number;
|
|
@@ -1362,11 +1362,21 @@ const DEFINITIONS = {
|
|
|
1362
1362
|
ret: FfiType.Handle,
|
|
1363
1363
|
hasRustCallStatus: false,
|
|
1364
1364
|
},
|
|
1365
|
+
"uniffi_cua_sdk_fn_method_host_pause_signed_out": {
|
|
1366
|
+
args: [FfiType.Handle],
|
|
1367
|
+
ret: FfiType.Handle,
|
|
1368
|
+
hasRustCallStatus: false,
|
|
1369
|
+
},
|
|
1365
1370
|
"uniffi_cua_sdk_fn_method_host_remove": {
|
|
1366
1371
|
args: [FfiType.Handle],
|
|
1367
1372
|
ret: FfiType.Handle,
|
|
1368
1373
|
hasRustCallStatus: false,
|
|
1369
1374
|
},
|
|
1375
|
+
"uniffi_cua_sdk_fn_method_host_resume_signed_in": {
|
|
1376
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
1377
|
+
ret: FfiType.Handle,
|
|
1378
|
+
hasRustCallStatus: false,
|
|
1379
|
+
},
|
|
1370
1380
|
"uniffi_cua_sdk_fn_method_host_setup": {
|
|
1371
1381
|
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
1372
1382
|
ret: FfiType.Handle,
|
|
@@ -2062,6 +2072,11 @@ const DEFINITIONS = {
|
|
|
2062
2072
|
ret: FfiType.Handle,
|
|
2063
2073
|
hasRustCallStatus: false,
|
|
2064
2074
|
},
|
|
2075
|
+
"uniffi_cua_sdk_fn_method_space_thumbnail": {
|
|
2076
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
2077
|
+
ret: FfiType.Handle,
|
|
2078
|
+
hasRustCallStatus: false,
|
|
2079
|
+
},
|
|
2065
2080
|
"uniffi_cua_sdk_fn_method_space_unshare": {
|
|
2066
2081
|
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
2067
2082
|
ret: FfiType.Handle,
|
|
@@ -3557,11 +3572,21 @@ const DEFINITIONS = {
|
|
|
3557
3572
|
ret: FfiType.UInt16,
|
|
3558
3573
|
hasRustCallStatus: false,
|
|
3559
3574
|
},
|
|
3575
|
+
"uniffi_cua_sdk_checksum_method_host_pause_signed_out": {
|
|
3576
|
+
args: [],
|
|
3577
|
+
ret: FfiType.UInt16,
|
|
3578
|
+
hasRustCallStatus: false,
|
|
3579
|
+
},
|
|
3560
3580
|
"uniffi_cua_sdk_checksum_method_host_remove": {
|
|
3561
3581
|
args: [],
|
|
3562
3582
|
ret: FfiType.UInt16,
|
|
3563
3583
|
hasRustCallStatus: false,
|
|
3564
3584
|
},
|
|
3585
|
+
"uniffi_cua_sdk_checksum_method_host_resume_signed_in": {
|
|
3586
|
+
args: [],
|
|
3587
|
+
ret: FfiType.UInt16,
|
|
3588
|
+
hasRustCallStatus: false,
|
|
3589
|
+
},
|
|
3565
3590
|
"uniffi_cua_sdk_checksum_method_host_setup": {
|
|
3566
3591
|
args: [],
|
|
3567
3592
|
ret: FfiType.UInt16,
|
|
@@ -4257,6 +4282,11 @@ const DEFINITIONS = {
|
|
|
4257
4282
|
ret: FfiType.UInt16,
|
|
4258
4283
|
hasRustCallStatus: false,
|
|
4259
4284
|
},
|
|
4285
|
+
"uniffi_cua_sdk_checksum_method_space_thumbnail": {
|
|
4286
|
+
args: [],
|
|
4287
|
+
ret: FfiType.UInt16,
|
|
4288
|
+
hasRustCallStatus: false,
|
|
4289
|
+
},
|
|
4260
4290
|
"uniffi_cua_sdk_checksum_method_space_unshare": {
|
|
4261
4291
|
args: [],
|
|
4262
4292
|
ret: FfiType.UInt16,
|
package/dist/native/cua_sdk.d.ts
CHANGED
|
@@ -3915,13 +3915,26 @@ export type HostStatus = {
|
|
|
3915
3915
|
* Set when the Spaces audit does not verify.
|
|
3916
3916
|
*/
|
|
3917
3917
|
spacesAuditError?: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* Relay sharing is paused until the owner signs in again
|
|
3920
|
+
* ([`Host::pause_signed_out`]).
|
|
3921
|
+
*/
|
|
3922
|
+
pausedSignedOut: boolean;
|
|
3923
|
+
/**
|
|
3924
|
+
* The account this machine is registered to (relay mode): its id.
|
|
3925
|
+
*/
|
|
3926
|
+
owner?: string;
|
|
3927
|
+
/**
|
|
3928
|
+
* The owner's email, when the relay gave one.
|
|
3929
|
+
*/
|
|
3930
|
+
ownerEmail?: string;
|
|
3918
3931
|
};
|
|
3919
3932
|
/**
|
|
3920
3933
|
* Generated factory for {@link HostStatus} record objects.
|
|
3921
3934
|
*/
|
|
3922
3935
|
export declare const HostStatus: Readonly<{
|
|
3923
|
-
create: (partial: Partial<HostStatus> & Required<Omit<HostStatus, "name" | "error" | "online" | "mode" | "shareDesktop" | "provideSpaces" | "maxSpaces" | "maxMacosVms" | "relayUrl" | "directUrl" | "envTokenPath" | "machineId" | "recentAccess" | "accessLogError" | "providedSpaces" | "spacesAudit" | "spacesAuditError">>) => HostStatus;
|
|
3924
|
-
new: (partial: Partial<HostStatus> & Required<Omit<HostStatus, "name" | "error" | "online" | "mode" | "shareDesktop" | "provideSpaces" | "maxSpaces" | "maxMacosVms" | "relayUrl" | "directUrl" | "envTokenPath" | "machineId" | "recentAccess" | "accessLogError" | "providedSpaces" | "spacesAudit" | "spacesAuditError">>) => HostStatus;
|
|
3936
|
+
create: (partial: Partial<HostStatus> & Required<Omit<HostStatus, "name" | "error" | "online" | "mode" | "ownerEmail" | "shareDesktop" | "provideSpaces" | "maxSpaces" | "maxMacosVms" | "relayUrl" | "directUrl" | "envTokenPath" | "machineId" | "recentAccess" | "accessLogError" | "providedSpaces" | "spacesAudit" | "spacesAuditError" | "pausedSignedOut" | "owner">>) => HostStatus;
|
|
3937
|
+
new: (partial: Partial<HostStatus> & Required<Omit<HostStatus, "name" | "error" | "online" | "mode" | "ownerEmail" | "shareDesktop" | "provideSpaces" | "maxSpaces" | "maxMacosVms" | "relayUrl" | "directUrl" | "envTokenPath" | "machineId" | "recentAccess" | "accessLogError" | "providedSpaces" | "spacesAudit" | "spacesAuditError" | "pausedSignedOut" | "owner">>) => HostStatus;
|
|
3925
3938
|
defaults: () => Partial<HostStatus>;
|
|
3926
3939
|
}>;
|
|
3927
3940
|
/**
|
|
@@ -6677,6 +6690,40 @@ export declare const SpaceStreamTicket: Readonly<{
|
|
|
6677
6690
|
new: (partial: Partial<SpaceStreamTicket> & Required<Omit<SpaceStreamTicket, "ticketExpiresAt">>) => SpaceStreamTicket;
|
|
6678
6691
|
defaults: () => Partial<SpaceStreamTicket>;
|
|
6679
6692
|
}>;
|
|
6693
|
+
/**
|
|
6694
|
+
* A Space's latest thumbnail, from the cache every client on this machine
|
|
6695
|
+
* shares ([`crate::native::spaces::Space::thumbnail`]).
|
|
6696
|
+
*/
|
|
6697
|
+
export type SpaceThumbnail = {
|
|
6698
|
+
/**
|
|
6699
|
+
* Encoded image (a small JPEG of the primary display).
|
|
6700
|
+
*/
|
|
6701
|
+
image: ArrayBuffer;
|
|
6702
|
+
/**
|
|
6703
|
+
* Encoding.
|
|
6704
|
+
*/
|
|
6705
|
+
format: ImageFormat;
|
|
6706
|
+
/**
|
|
6707
|
+
* Pixel width.
|
|
6708
|
+
*/
|
|
6709
|
+
width: number;
|
|
6710
|
+
/**
|
|
6711
|
+
* Pixel height.
|
|
6712
|
+
*/
|
|
6713
|
+
height: number;
|
|
6714
|
+
/**
|
|
6715
|
+
* When it was captured, Unix milliseconds.
|
|
6716
|
+
*/
|
|
6717
|
+
capturedAtMs: bigint;
|
|
6718
|
+
};
|
|
6719
|
+
/**
|
|
6720
|
+
* Generated factory for {@link SpaceThumbnail} record objects.
|
|
6721
|
+
*/
|
|
6722
|
+
export declare const SpaceThumbnail: Readonly<{
|
|
6723
|
+
create: (partial: Partial<SpaceThumbnail> & Required<Omit<SpaceThumbnail, never>>) => SpaceThumbnail;
|
|
6724
|
+
new: (partial: Partial<SpaceThumbnail> & Required<Omit<SpaceThumbnail, never>>) => SpaceThumbnail;
|
|
6725
|
+
defaults: () => Partial<SpaceThumbnail>;
|
|
6726
|
+
}>;
|
|
6680
6727
|
/**
|
|
6681
6728
|
* A tool of a Space's MCP service.
|
|
6682
6729
|
*/
|
|
@@ -9447,10 +9494,11 @@ export interface LoginAttemptLike {
|
|
|
9447
9494
|
* Waits for the user, stores the session and returns who signed in.
|
|
9448
9495
|
* Only the first call waits; later calls fail.
|
|
9449
9496
|
*
|
|
9450
|
-
*
|
|
9451
|
-
*
|
|
9452
|
-
* the fresh sign-in enrolls
|
|
9453
|
-
* That step is best effort and
|
|
9497
|
+
* This device then registers with the relay (the one `cua` uses:
|
|
9498
|
+
* `CUA_RELAY_URL`, else this machine's host setup, else relay.cua.ai),
|
|
9499
|
+
* creating its device key on first use, so the fresh sign-in enrolls
|
|
9500
|
+
* or re-verifies it without an approval. That step is best effort and
|
|
9501
|
+
* never fails the sign-in.
|
|
9454
9502
|
*/
|
|
9455
9503
|
wait(asyncOpts_?: {
|
|
9456
9504
|
signal: AbortSignal;
|
|
@@ -9488,10 +9536,11 @@ export declare class LoginAttempt extends UniffiAbstractObject implements LoginA
|
|
|
9488
9536
|
* Waits for the user, stores the session and returns who signed in.
|
|
9489
9537
|
* Only the first call waits; later calls fail.
|
|
9490
9538
|
*
|
|
9491
|
-
*
|
|
9492
|
-
*
|
|
9493
|
-
* the fresh sign-in enrolls
|
|
9494
|
-
* That step is best effort and
|
|
9539
|
+
* This device then registers with the relay (the one `cua` uses:
|
|
9540
|
+
* `CUA_RELAY_URL`, else this machine's host setup, else relay.cua.ai),
|
|
9541
|
+
* creating its device key on first use, so the fresh sign-in enrolls
|
|
9542
|
+
* or re-verifies it without an approval. That step is best effort and
|
|
9543
|
+
* never fails the sign-in.
|
|
9495
9544
|
*/
|
|
9496
9545
|
wait(asyncOpts_?: {
|
|
9497
9546
|
signal: AbortSignal;
|
|
@@ -9666,9 +9715,10 @@ export interface AuthLike {
|
|
|
9666
9715
|
signal: AbortSignal;
|
|
9667
9716
|
}): Promise<LoginAttemptLike>;
|
|
9668
9717
|
/**
|
|
9669
|
-
* This device on `relay_url` (`None` = `
|
|
9718
|
+
* This device on `relay_url` (`None` = the relay `cua` uses:
|
|
9719
|
+
* `CUA_RELAY_URL`, else this machine's host setup, else
|
|
9670
9720
|
* `https://relay.cua.ai`) as the signed-in account, shown as `name`
|
|
9671
|
-
* (default:
|
|
9721
|
+
* (default: this computer's name).
|
|
9672
9722
|
*/
|
|
9673
9723
|
devices(relayUrl: string | undefined, name: string | undefined): DevicesLike;
|
|
9674
9724
|
/**
|
|
@@ -9710,9 +9760,10 @@ export declare class Auth extends UniffiAbstractObject implements AuthLike {
|
|
|
9710
9760
|
signal: AbortSignal;
|
|
9711
9761
|
}): Promise<LoginAttemptLike>;
|
|
9712
9762
|
/**
|
|
9713
|
-
* This device on `relay_url` (`None` = `
|
|
9763
|
+
* This device on `relay_url` (`None` = the relay `cua` uses:
|
|
9764
|
+
* `CUA_RELAY_URL`, else this machine's host setup, else
|
|
9714
9765
|
* `https://relay.cua.ai`) as the signed-in account, shown as `name`
|
|
9715
|
-
* (default:
|
|
9766
|
+
* (default: this computer's name).
|
|
9716
9767
|
*/
|
|
9717
9768
|
devices(relayUrl: string | undefined, name: string | undefined): DevicesLike;
|
|
9718
9769
|
/**
|
|
@@ -12666,10 +12717,10 @@ export interface SpaceLike {
|
|
|
12666
12717
|
signal: AbortSignal;
|
|
12667
12718
|
}): Promise<SiteLoginReport>;
|
|
12668
12719
|
/**
|
|
12669
|
-
* Captures the Space's display
|
|
12670
|
-
*
|
|
12671
|
-
*
|
|
12672
|
-
* cua-spacesd.
|
|
12720
|
+
* Captures the Space's display: PNG at full size on the primary
|
|
12721
|
+
* display unless `options` say otherwise (for a small preview,
|
|
12722
|
+
* [`Space::thumbnail`] reads the shared cache instead). Fails with
|
|
12723
|
+
* `CapabilityMissing` (`spacesd`) when the image runs no cua-spacesd.
|
|
12673
12724
|
*/
|
|
12674
12725
|
screenshot(options: ScreenshotOptions | undefined, asyncOpts_?: {
|
|
12675
12726
|
signal: AbortSignal;
|
|
@@ -12760,6 +12811,18 @@ export interface SpaceLike {
|
|
|
12760
12811
|
teleportManifest(app: string, scope: string | undefined, asyncOpts_?: {
|
|
12761
12812
|
signal: AbortSignal;
|
|
12762
12813
|
}): Promise<TeleportManifest>;
|
|
12814
|
+
/**
|
|
12815
|
+
* The Space's latest thumbnail (a small JPEG of its primary display)
|
|
12816
|
+
* from the cache every client on this machine shares: returned at
|
|
12817
|
+
* once when it is younger than `max_age_ms` (unset: any age), else
|
|
12818
|
+
* captured fresh through cua-spacesd and kept for the next caller.
|
|
12819
|
+
* When that capture fails, the older one comes back (`captured_at_ms`
|
|
12820
|
+
* says how old). Asking keeps the daemon refreshing running Spaces'
|
|
12821
|
+
* thumbnails in the background for a while (about every 90 s).
|
|
12822
|
+
*/
|
|
12823
|
+
thumbnail(maxAgeMs: bigint | undefined, asyncOpts_?: {
|
|
12824
|
+
signal: AbortSignal;
|
|
12825
|
+
}): Promise<SpaceThumbnail>;
|
|
12763
12826
|
/**
|
|
12764
12827
|
* Stops sharing this Space with `who` at once, or with everyone when
|
|
12765
12828
|
* `who` is `None`.
|
|
@@ -12988,10 +13051,10 @@ export declare class Space extends UniffiAbstractObject implements SpaceLike {
|
|
|
12988
13051
|
signal: AbortSignal;
|
|
12989
13052
|
}): Promise<SiteLoginReport>;
|
|
12990
13053
|
/**
|
|
12991
|
-
* Captures the Space's display
|
|
12992
|
-
*
|
|
12993
|
-
*
|
|
12994
|
-
* cua-spacesd.
|
|
13054
|
+
* Captures the Space's display: PNG at full size on the primary
|
|
13055
|
+
* display unless `options` say otherwise (for a small preview,
|
|
13056
|
+
* [`Space::thumbnail`] reads the shared cache instead). Fails with
|
|
13057
|
+
* `CapabilityMissing` (`spacesd`) when the image runs no cua-spacesd.
|
|
12995
13058
|
*/
|
|
12996
13059
|
screenshot(options: ScreenshotOptions | undefined, asyncOpts_?: {
|
|
12997
13060
|
signal: AbortSignal;
|
|
@@ -13082,6 +13145,18 @@ export declare class Space extends UniffiAbstractObject implements SpaceLike {
|
|
|
13082
13145
|
teleportManifest(app: string, scope: string | undefined, asyncOpts_?: {
|
|
13083
13146
|
signal: AbortSignal;
|
|
13084
13147
|
}): Promise<TeleportManifest>;
|
|
13148
|
+
/**
|
|
13149
|
+
* The Space's latest thumbnail (a small JPEG of its primary display)
|
|
13150
|
+
* from the cache every client on this machine shares: returned at
|
|
13151
|
+
* once when it is younger than `max_age_ms` (unset: any age), else
|
|
13152
|
+
* captured fresh through cua-spacesd and kept for the next caller.
|
|
13153
|
+
* When that capture fails, the older one comes back (`captured_at_ms`
|
|
13154
|
+
* says how old). Asking keeps the daemon refreshing running Spaces'
|
|
13155
|
+
* thumbnails in the background for a while (about every 90 s).
|
|
13156
|
+
*/
|
|
13157
|
+
thumbnail(maxAgeMs: bigint | undefined, asyncOpts_?: {
|
|
13158
|
+
signal: AbortSignal;
|
|
13159
|
+
}): Promise<SpaceThumbnail>;
|
|
13085
13160
|
/**
|
|
13086
13161
|
* Stops sharing this Space with `who` at once, or with everyone when
|
|
13087
13162
|
* `who` is `None`.
|
|
@@ -14231,12 +14306,28 @@ export interface HostLike {
|
|
|
14231
14306
|
configure(change: HostSettingsChange, asyncOpts_?: {
|
|
14232
14307
|
signal: AbortSignal;
|
|
14233
14308
|
}): Promise<HostStatus>;
|
|
14309
|
+
/**
|
|
14310
|
+
* Pause relay sharing while nobody is signed in to the owner's
|
|
14311
|
+
* account: the host leaves the relay and stays off it (also across a
|
|
14312
|
+
* restart) with its setup kept. Direct mode is left alone.
|
|
14313
|
+
*/
|
|
14314
|
+
pauseSignedOut(asyncOpts_?: {
|
|
14315
|
+
signal: AbortSignal;
|
|
14316
|
+
}): Promise<HostStatus>;
|
|
14234
14317
|
/**
|
|
14235
14318
|
* Unregister, uninstall the service and delete the host state.
|
|
14236
14319
|
*/
|
|
14237
14320
|
remove(asyncOpts_?: {
|
|
14238
14321
|
signal: AbortSignal;
|
|
14239
14322
|
}): Promise<void>;
|
|
14323
|
+
/**
|
|
14324
|
+
* Resume relay sharing paused by [`Host::pause_signed_out`] once
|
|
14325
|
+
* `account` (the signed-in account's id or email) is signed in; refused
|
|
14326
|
+
* when it is not the machine's owner.
|
|
14327
|
+
*/
|
|
14328
|
+
resumeSignedIn(account: string, asyncOpts_?: {
|
|
14329
|
+
signal: AbortSignal;
|
|
14330
|
+
}): Promise<HostStatus>;
|
|
14240
14331
|
/**
|
|
14241
14332
|
* Installs and starts the host service (relay mode needs
|
|
14242
14333
|
* `account_token`).
|
|
@@ -14286,12 +14377,28 @@ export declare class Host extends UniffiAbstractObject implements HostLike {
|
|
|
14286
14377
|
configure(change: HostSettingsChange, asyncOpts_?: {
|
|
14287
14378
|
signal: AbortSignal;
|
|
14288
14379
|
}): Promise<HostStatus>;
|
|
14380
|
+
/**
|
|
14381
|
+
* Pause relay sharing while nobody is signed in to the owner's
|
|
14382
|
+
* account: the host leaves the relay and stays off it (also across a
|
|
14383
|
+
* restart) with its setup kept. Direct mode is left alone.
|
|
14384
|
+
*/
|
|
14385
|
+
pauseSignedOut(asyncOpts_?: {
|
|
14386
|
+
signal: AbortSignal;
|
|
14387
|
+
}): Promise<HostStatus>;
|
|
14289
14388
|
/**
|
|
14290
14389
|
* Unregister, uninstall the service and delete the host state.
|
|
14291
14390
|
*/
|
|
14292
14391
|
remove(asyncOpts_?: {
|
|
14293
14392
|
signal: AbortSignal;
|
|
14294
14393
|
}): Promise<void>;
|
|
14394
|
+
/**
|
|
14395
|
+
* Resume relay sharing paused by [`Host::pause_signed_out`] once
|
|
14396
|
+
* `account` (the signed-in account's id or email) is signed in; refused
|
|
14397
|
+
* when it is not the machine's owner.
|
|
14398
|
+
*/
|
|
14399
|
+
resumeSignedIn(account: string, asyncOpts_?: {
|
|
14400
|
+
signal: AbortSignal;
|
|
14401
|
+
}): Promise<HostStatus>;
|
|
14295
14402
|
/**
|
|
14296
14403
|
* Installs and starts the host service (relay mode needs
|
|
14297
14404
|
* `account_token`).
|
|
@@ -14372,8 +14479,9 @@ export declare class Relay extends UniffiAbstractObject implements RelayLike {
|
|
|
14372
14479
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
14373
14480
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
14374
14481
|
/**
|
|
14375
|
-
* A relay (`None` = `CUA_RELAY_URL`, else
|
|
14376
|
-
*
|
|
14482
|
+
* A relay (`None` = the relay `cua` uses: `CUA_RELAY_URL`, else this
|
|
14483
|
+
* machine's host setup, else `https://relay.cua.ai`) seen as the
|
|
14484
|
+
* account behind `account_token` (a cua.ai access token).
|
|
14377
14485
|
*/
|
|
14378
14486
|
constructor(relayUrl: string | undefined, accountToken: string);
|
|
14379
14487
|
/**
|
|
@@ -15708,6 +15816,13 @@ declare const _default: Readonly<{
|
|
|
15708
15816
|
lift(value: UniffiByteArray): SpaceStreamTicket;
|
|
15709
15817
|
lower(value: SpaceStreamTicket, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
15710
15818
|
};
|
|
15819
|
+
FfiConverterTypeSpaceThumbnail: {
|
|
15820
|
+
read(from: RustBuffer): SpaceThumbnail;
|
|
15821
|
+
write(value: SpaceThumbnail, into: RustBuffer): void;
|
|
15822
|
+
allocationSize(value: SpaceThumbnail): number;
|
|
15823
|
+
lift(value: UniffiByteArray): SpaceThumbnail;
|
|
15824
|
+
lower(value: SpaceThumbnail, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
15825
|
+
};
|
|
15711
15826
|
FfiConverterTypeSpaceToolInfo: {
|
|
15712
15827
|
read(from: RustBuffer): SpaceToolInfo;
|
|
15713
15828
|
write(value: SpaceToolInfo, into: RustBuffer): void;
|
package/dist/native/cua_sdk.js
CHANGED
|
@@ -6151,7 +6151,10 @@ export const HostStatus = (() => {
|
|
|
6151
6151
|
maxMacosVms: 0,
|
|
6152
6152
|
providedSpaces: [],
|
|
6153
6153
|
spacesAudit: [],
|
|
6154
|
-
spacesAuditError: undefined
|
|
6154
|
+
spacesAuditError: undefined,
|
|
6155
|
+
pausedSignedOut: false,
|
|
6156
|
+
owner: undefined,
|
|
6157
|
+
ownerEmail: undefined
|
|
6155
6158
|
});
|
|
6156
6159
|
const create = (() => {
|
|
6157
6160
|
return uniffiCreateRecord(defaults);
|
|
@@ -6190,7 +6193,10 @@ const FfiConverterTypeHostStatus = (() => {
|
|
|
6190
6193
|
maxMacosVms: FfiConverterUInt32.read(from),
|
|
6191
6194
|
providedSpaces: FfiConverterSequenceTypeHostProvidedSpace.read(from),
|
|
6192
6195
|
spacesAudit: FfiConverterSequenceTypeHostSpacesAuditRecord.read(from),
|
|
6193
|
-
spacesAuditError: FfiConverterOptionalString.read(from)
|
|
6196
|
+
spacesAuditError: FfiConverterOptionalString.read(from),
|
|
6197
|
+
pausedSignedOut: FfiConverterBool.read(from),
|
|
6198
|
+
owner: FfiConverterOptionalString.read(from),
|
|
6199
|
+
ownerEmail: FfiConverterOptionalString.read(from)
|
|
6194
6200
|
};
|
|
6195
6201
|
}
|
|
6196
6202
|
write(value, into) {
|
|
@@ -6219,6 +6225,9 @@ const FfiConverterTypeHostStatus = (() => {
|
|
|
6219
6225
|
FfiConverterSequenceTypeHostProvidedSpace.write(value.providedSpaces, into);
|
|
6220
6226
|
FfiConverterSequenceTypeHostSpacesAuditRecord.write(value.spacesAudit, into);
|
|
6221
6227
|
FfiConverterOptionalString.write(value.spacesAuditError, into);
|
|
6228
|
+
FfiConverterBool.write(value.pausedSignedOut, into);
|
|
6229
|
+
FfiConverterOptionalString.write(value.owner, into);
|
|
6230
|
+
FfiConverterOptionalString.write(value.ownerEmail, into);
|
|
6222
6231
|
}
|
|
6223
6232
|
allocationSize(value) {
|
|
6224
6233
|
return FfiConverterBool.allocationSize(value.configured) +
|
|
@@ -6245,7 +6254,10 @@ const FfiConverterTypeHostStatus = (() => {
|
|
|
6245
6254
|
FfiConverterUInt32.allocationSize(value.maxMacosVms) +
|
|
6246
6255
|
FfiConverterSequenceTypeHostProvidedSpace.allocationSize(value.providedSpaces) +
|
|
6247
6256
|
FfiConverterSequenceTypeHostSpacesAuditRecord.allocationSize(value.spacesAudit) +
|
|
6248
|
-
FfiConverterOptionalString.allocationSize(value.spacesAuditError)
|
|
6257
|
+
FfiConverterOptionalString.allocationSize(value.spacesAuditError) +
|
|
6258
|
+
FfiConverterBool.allocationSize(value.pausedSignedOut) +
|
|
6259
|
+
FfiConverterOptionalString.allocationSize(value.owner) +
|
|
6260
|
+
FfiConverterOptionalString.allocationSize(value.ownerEmail);
|
|
6249
6261
|
}
|
|
6250
6262
|
}
|
|
6251
6263
|
;
|
|
@@ -9764,6 +9776,49 @@ const FfiConverterTypeSpaceStreamTicket = (() => {
|
|
|
9764
9776
|
;
|
|
9765
9777
|
return new FFIConverter();
|
|
9766
9778
|
})();
|
|
9779
|
+
/**
|
|
9780
|
+
* Generated factory for {@link SpaceThumbnail} record objects.
|
|
9781
|
+
*/
|
|
9782
|
+
export const SpaceThumbnail = (() => {
|
|
9783
|
+
const defaults = () => ({});
|
|
9784
|
+
const create = (() => {
|
|
9785
|
+
return uniffiCreateRecord(defaults);
|
|
9786
|
+
})();
|
|
9787
|
+
return Object.freeze({
|
|
9788
|
+
create,
|
|
9789
|
+
new: create,
|
|
9790
|
+
defaults: () => Object.freeze(defaults()),
|
|
9791
|
+
});
|
|
9792
|
+
})();
|
|
9793
|
+
const FfiConverterTypeSpaceThumbnail = (() => {
|
|
9794
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
9795
|
+
read(from) {
|
|
9796
|
+
return {
|
|
9797
|
+
image: FfiConverterArrayBuffer.read(from),
|
|
9798
|
+
format: FfiConverterTypeImageFormat.read(from),
|
|
9799
|
+
width: FfiConverterUInt32.read(from),
|
|
9800
|
+
height: FfiConverterUInt32.read(from),
|
|
9801
|
+
capturedAtMs: FfiConverterUInt64.read(from)
|
|
9802
|
+
};
|
|
9803
|
+
}
|
|
9804
|
+
write(value, into) {
|
|
9805
|
+
FfiConverterArrayBuffer.write(value.image, into);
|
|
9806
|
+
FfiConverterTypeImageFormat.write(value.format, into);
|
|
9807
|
+
FfiConverterUInt32.write(value.width, into);
|
|
9808
|
+
FfiConverterUInt32.write(value.height, into);
|
|
9809
|
+
FfiConverterUInt64.write(value.capturedAtMs, into);
|
|
9810
|
+
}
|
|
9811
|
+
allocationSize(value) {
|
|
9812
|
+
return FfiConverterArrayBuffer.allocationSize(value.image) +
|
|
9813
|
+
FfiConverterTypeImageFormat.allocationSize(value.format) +
|
|
9814
|
+
FfiConverterUInt32.allocationSize(value.width) +
|
|
9815
|
+
FfiConverterUInt32.allocationSize(value.height) +
|
|
9816
|
+
FfiConverterUInt64.allocationSize(value.capturedAtMs);
|
|
9817
|
+
}
|
|
9818
|
+
}
|
|
9819
|
+
;
|
|
9820
|
+
return new FFIConverter();
|
|
9821
|
+
})();
|
|
9767
9822
|
/**
|
|
9768
9823
|
* Generated factory for {@link SpaceToolInfo} record objects.
|
|
9769
9824
|
*/
|
|
@@ -13371,10 +13426,11 @@ export class LoginAttempt extends UniffiAbstractObject {
|
|
|
13371
13426
|
* Waits for the user, stores the session and returns who signed in.
|
|
13372
13427
|
* Only the first call waits; later calls fail.
|
|
13373
13428
|
*
|
|
13374
|
-
*
|
|
13375
|
-
*
|
|
13376
|
-
* the fresh sign-in enrolls
|
|
13377
|
-
* That step is best effort and
|
|
13429
|
+
* This device then registers with the relay (the one `cua` uses:
|
|
13430
|
+
* `CUA_RELAY_URL`, else this machine's host setup, else relay.cua.ai),
|
|
13431
|
+
* creating its device key on first use, so the fresh sign-in enrolls
|
|
13432
|
+
* or re-verifies it without an approval. That step is best effort and
|
|
13433
|
+
* never fails the sign-in.
|
|
13378
13434
|
*/
|
|
13379
13435
|
async wait(asyncOpts_) {
|
|
13380
13436
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -13898,9 +13954,10 @@ export class Auth extends UniffiAbstractObject {
|
|
|
13898
13954
|
}
|
|
13899
13955
|
}
|
|
13900
13956
|
/**
|
|
13901
|
-
* This device on `relay_url` (`None` = `
|
|
13957
|
+
* This device on `relay_url` (`None` = the relay `cua` uses:
|
|
13958
|
+
* `CUA_RELAY_URL`, else this machine's host setup, else
|
|
13902
13959
|
* `https://relay.cua.ai`) as the signed-in account, shown as `name`
|
|
13903
|
-
* (default:
|
|
13960
|
+
* (default: this computer's name).
|
|
13904
13961
|
*/
|
|
13905
13962
|
devices(relayUrl, name) {
|
|
13906
13963
|
return FfiConverterTypeDevices.lift(uniffiCaller.rustCallWithError(
|
|
@@ -21498,10 +21555,10 @@ export class Space extends UniffiAbstractObject {
|
|
|
21498
21555
|
}
|
|
21499
21556
|
}
|
|
21500
21557
|
/**
|
|
21501
|
-
* Captures the Space's display
|
|
21502
|
-
*
|
|
21503
|
-
*
|
|
21504
|
-
* cua-spacesd.
|
|
21558
|
+
* Captures the Space's display: PNG at full size on the primary
|
|
21559
|
+
* display unless `options` say otherwise (for a small preview,
|
|
21560
|
+
* [`Space::thumbnail`] reads the shared cache instead). Fails with
|
|
21561
|
+
* `CapabilityMissing` (`spacesd`) when the image runs no cua-spacesd.
|
|
21505
21562
|
*/
|
|
21506
21563
|
async screenshot(options, asyncOpts_) {
|
|
21507
21564
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -21866,6 +21923,44 @@ export class Space extends UniffiAbstractObject {
|
|
|
21866
21923
|
throw __error;
|
|
21867
21924
|
}
|
|
21868
21925
|
}
|
|
21926
|
+
/**
|
|
21927
|
+
* The Space's latest thumbnail (a small JPEG of its primary display)
|
|
21928
|
+
* from the cache every client on this machine shares: returned at
|
|
21929
|
+
* once when it is younger than `max_age_ms` (unset: any age), else
|
|
21930
|
+
* captured fresh through cua-spacesd and kept for the next caller.
|
|
21931
|
+
* When that capture fails, the older one comes back (`captured_at_ms`
|
|
21932
|
+
* says how old). Asking keeps the daemon refreshing running Spaces'
|
|
21933
|
+
* thumbnails in the background for a while (about every 90 s).
|
|
21934
|
+
*/
|
|
21935
|
+
async thumbnail(maxAgeMs, asyncOpts_) {
|
|
21936
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
21937
|
+
try {
|
|
21938
|
+
return await uniffiRustCallAsync(
|
|
21939
|
+
/*rustCaller:*/ uniffiCaller,
|
|
21940
|
+
/*rustFutureFunc:*/ () => {
|
|
21941
|
+
return nativeModule().uniffi_cua_sdk_fn_method_space_thumbnail(uniffiTypeSpaceObjectFactory.clonePointer(this), FfiConverterOptionalUInt64.lower(maxAgeMs, nativeModule().rustbuffer_alloc));
|
|
21942
|
+
},
|
|
21943
|
+
/*pollFunc:*/ nativeModule().ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
21944
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
21945
|
+
/*completeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
21946
|
+
/*freeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
21947
|
+
// Async returns always go through the JS-side converter: the
|
|
21948
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
21949
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
21950
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
21951
|
+
// here using the per-callable return-type converter.
|
|
21952
|
+
/*liftFunc:*/ FfiConverterTypeSpaceThumbnail.lift.bind(FfiConverterTypeSpaceThumbnail),
|
|
21953
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
21954
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
21955
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
21956
|
+
}
|
|
21957
|
+
catch (__error) {
|
|
21958
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
21959
|
+
__error.stack = __stack;
|
|
21960
|
+
}
|
|
21961
|
+
throw __error;
|
|
21962
|
+
}
|
|
21963
|
+
}
|
|
21869
21964
|
/**
|
|
21870
21965
|
* Stops sharing this Space with `who` at once, or with everyone when
|
|
21871
21966
|
* `who` is `None`.
|
|
@@ -24742,6 +24837,40 @@ export class Host extends UniffiAbstractObject {
|
|
|
24742
24837
|
throw __error;
|
|
24743
24838
|
}
|
|
24744
24839
|
}
|
|
24840
|
+
/**
|
|
24841
|
+
* Pause relay sharing while nobody is signed in to the owner's
|
|
24842
|
+
* account: the host leaves the relay and stays off it (also across a
|
|
24843
|
+
* restart) with its setup kept. Direct mode is left alone.
|
|
24844
|
+
*/
|
|
24845
|
+
async pauseSignedOut(asyncOpts_) {
|
|
24846
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
24847
|
+
try {
|
|
24848
|
+
return await uniffiRustCallAsync(
|
|
24849
|
+
/*rustCaller:*/ uniffiCaller,
|
|
24850
|
+
/*rustFutureFunc:*/ () => {
|
|
24851
|
+
return nativeModule().uniffi_cua_sdk_fn_method_host_pause_signed_out(uniffiTypeHostObjectFactory.clonePointer(this));
|
|
24852
|
+
},
|
|
24853
|
+
/*pollFunc:*/ nativeModule().ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
24854
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
24855
|
+
/*completeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
24856
|
+
/*freeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
24857
|
+
// Async returns always go through the JS-side converter: the
|
|
24858
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
24859
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
24860
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
24861
|
+
// here using the per-callable return-type converter.
|
|
24862
|
+
/*liftFunc:*/ FfiConverterTypeHostStatus.lift.bind(FfiConverterTypeHostStatus),
|
|
24863
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
24864
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
24865
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
24866
|
+
}
|
|
24867
|
+
catch (__error) {
|
|
24868
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
24869
|
+
__error.stack = __stack;
|
|
24870
|
+
}
|
|
24871
|
+
throw __error;
|
|
24872
|
+
}
|
|
24873
|
+
}
|
|
24745
24874
|
/**
|
|
24746
24875
|
* Unregister, uninstall the service and delete the host state.
|
|
24747
24876
|
*/
|
|
@@ -24769,6 +24898,40 @@ export class Host extends UniffiAbstractObject {
|
|
|
24769
24898
|
throw __error;
|
|
24770
24899
|
}
|
|
24771
24900
|
}
|
|
24901
|
+
/**
|
|
24902
|
+
* Resume relay sharing paused by [`Host::pause_signed_out`] once
|
|
24903
|
+
* `account` (the signed-in account's id or email) is signed in; refused
|
|
24904
|
+
* when it is not the machine's owner.
|
|
24905
|
+
*/
|
|
24906
|
+
async resumeSignedIn(account, asyncOpts_) {
|
|
24907
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
24908
|
+
try {
|
|
24909
|
+
return await uniffiRustCallAsync(
|
|
24910
|
+
/*rustCaller:*/ uniffiCaller,
|
|
24911
|
+
/*rustFutureFunc:*/ () => {
|
|
24912
|
+
return nativeModule().uniffi_cua_sdk_fn_method_host_resume_signed_in(uniffiTypeHostObjectFactory.clonePointer(this), FfiConverterString.lower(account, nativeModule().rustbuffer_alloc));
|
|
24913
|
+
},
|
|
24914
|
+
/*pollFunc:*/ nativeModule().ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
24915
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
24916
|
+
/*completeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
24917
|
+
/*freeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
24918
|
+
// Async returns always go through the JS-side converter: the
|
|
24919
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
24920
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
24921
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
24922
|
+
// here using the per-callable return-type converter.
|
|
24923
|
+
/*liftFunc:*/ FfiConverterTypeHostStatus.lift.bind(FfiConverterTypeHostStatus),
|
|
24924
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
24925
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
24926
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
24927
|
+
}
|
|
24928
|
+
catch (__error) {
|
|
24929
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
24930
|
+
__error.stack = __stack;
|
|
24931
|
+
}
|
|
24932
|
+
throw __error;
|
|
24933
|
+
}
|
|
24934
|
+
}
|
|
24772
24935
|
/**
|
|
24773
24936
|
* Installs and starts the host service (relay mode needs
|
|
24774
24937
|
* `account_token`).
|
|
@@ -24970,8 +25133,9 @@ export class Relay extends UniffiAbstractObject {
|
|
|
24970
25133
|
[destructorGuardSymbol];
|
|
24971
25134
|
[pointerLiteralSymbol];
|
|
24972
25135
|
/**
|
|
24973
|
-
* A relay (`None` = `CUA_RELAY_URL`, else
|
|
24974
|
-
*
|
|
25136
|
+
* A relay (`None` = the relay `cua` uses: `CUA_RELAY_URL`, else this
|
|
25137
|
+
* machine's host setup, else `https://relay.cua.ai`) seen as the
|
|
25138
|
+
* account behind `account_token` (a cua.ai access token).
|
|
24975
25139
|
*/
|
|
24976
25140
|
constructor(relayUrl, accountToken) {
|
|
24977
25141
|
super();
|
|
@@ -25768,7 +25932,7 @@ function uniffiEnsureInitialized() {
|
|
|
25768
25932
|
if (nativeModule().uniffi_cua_sdk_checksum_method_auth_begin_login() !== 55109) {
|
|
25769
25933
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_auth_begin_login");
|
|
25770
25934
|
}
|
|
25771
|
-
if (nativeModule().uniffi_cua_sdk_checksum_method_auth_devices() !==
|
|
25935
|
+
if (nativeModule().uniffi_cua_sdk_checksum_method_auth_devices() !== 36673) {
|
|
25772
25936
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_auth_devices");
|
|
25773
25937
|
}
|
|
25774
25938
|
if (nativeModule().uniffi_cua_sdk_checksum_method_auth_logout() !== 38806) {
|
|
@@ -25966,9 +26130,15 @@ function uniffiEnsureInitialized() {
|
|
|
25966
26130
|
if (nativeModule().uniffi_cua_sdk_checksum_method_host_configure() !== 36828) {
|
|
25967
26131
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_configure");
|
|
25968
26132
|
}
|
|
26133
|
+
if (nativeModule().uniffi_cua_sdk_checksum_method_host_pause_signed_out() !== 3338) {
|
|
26134
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_pause_signed_out");
|
|
26135
|
+
}
|
|
25969
26136
|
if (nativeModule().uniffi_cua_sdk_checksum_method_host_remove() !== 63746) {
|
|
25970
26137
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_remove");
|
|
25971
26138
|
}
|
|
26139
|
+
if (nativeModule().uniffi_cua_sdk_checksum_method_host_resume_signed_in() !== 8436) {
|
|
26140
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_resume_signed_in");
|
|
26141
|
+
}
|
|
25972
26142
|
if (nativeModule().uniffi_cua_sdk_checksum_method_host_setup() !== 765) {
|
|
25973
26143
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_setup");
|
|
25974
26144
|
}
|
|
@@ -26011,7 +26181,7 @@ function uniffiEnsureInitialized() {
|
|
|
26011
26181
|
if (nativeModule().uniffi_cua_sdk_checksum_method_loginattempt_user_code() !== 37591) {
|
|
26012
26182
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_loginattempt_user_code");
|
|
26013
26183
|
}
|
|
26014
|
-
if (nativeModule().uniffi_cua_sdk_checksum_method_loginattempt_wait() !==
|
|
26184
|
+
if (nativeModule().uniffi_cua_sdk_checksum_method_loginattempt_wait() !== 16950) {
|
|
26015
26185
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_loginattempt_wait");
|
|
26016
26186
|
}
|
|
26017
26187
|
if (nativeModule().uniffi_cua_sdk_checksum_method_mcpclient_call_tool() !== 44958) {
|
|
@@ -26110,7 +26280,7 @@ function uniffiEnsureInitialized() {
|
|
|
26110
26280
|
if (nativeModule().uniffi_cua_sdk_checksum_method_presenceview_upsert() !== 29196) {
|
|
26111
26281
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_presenceview_upsert");
|
|
26112
26282
|
}
|
|
26113
|
-
if (nativeModule().uniffi_cua_sdk_checksum_constructor_relay_new() !==
|
|
26283
|
+
if (nativeModule().uniffi_cua_sdk_checksum_constructor_relay_new() !== 19970) {
|
|
26114
26284
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_constructor_relay_new");
|
|
26115
26285
|
}
|
|
26116
26286
|
if (nativeModule().uniffi_cua_sdk_checksum_method_relay_connect() !== 37946) {
|
|
@@ -26350,7 +26520,7 @@ function uniffiEnsureInitialized() {
|
|
|
26350
26520
|
if (nativeModule().uniffi_cua_sdk_checksum_method_space_request_site_login() !== 2223) {
|
|
26351
26521
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_space_request_site_login");
|
|
26352
26522
|
}
|
|
26353
|
-
if (nativeModule().uniffi_cua_sdk_checksum_method_space_screenshot() !==
|
|
26523
|
+
if (nativeModule().uniffi_cua_sdk_checksum_method_space_screenshot() !== 41142) {
|
|
26354
26524
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_space_screenshot");
|
|
26355
26525
|
}
|
|
26356
26526
|
if (nativeModule().uniffi_cua_sdk_checksum_method_space_send_file() !== 29056) {
|
|
@@ -26386,6 +26556,9 @@ function uniffiEnsureInitialized() {
|
|
|
26386
26556
|
if (nativeModule().uniffi_cua_sdk_checksum_method_space_teleport_manifest() !== 31596) {
|
|
26387
26557
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_space_teleport_manifest");
|
|
26388
26558
|
}
|
|
26559
|
+
if (nativeModule().uniffi_cua_sdk_checksum_method_space_thumbnail() !== 10979) {
|
|
26560
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_space_thumbnail");
|
|
26561
|
+
}
|
|
26389
26562
|
if (nativeModule().uniffi_cua_sdk_checksum_method_space_unshare() !== 58172) {
|
|
26390
26563
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_space_unshare");
|
|
26391
26564
|
}
|
|
@@ -27026,6 +27199,7 @@ export default Object.freeze({
|
|
|
27026
27199
|
FfiConverterTypeSpaceStreamSession,
|
|
27027
27200
|
FfiConverterTypeSpaceStreamStats,
|
|
27028
27201
|
FfiConverterTypeSpaceStreamTicket,
|
|
27202
|
+
FfiConverterTypeSpaceThumbnail,
|
|
27029
27203
|
FfiConverterTypeSpaceToolInfo,
|
|
27030
27204
|
FfiConverterTypeSpaceToolResult,
|
|
27031
27205
|
FfiConverterTypeSpaceTransferReport,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trycua/cua",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "The cua SDK for Node and the browser: sandboxes, cua-spacesd, media streaming, Spaces and the cua daemon, on a Rust core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
"cua": "bin/cua.js"
|
|
84
84
|
},
|
|
85
85
|
"optionalDependencies": {
|
|
86
|
-
"@trycua/cua-darwin-arm64": "0.
|
|
87
|
-
"@trycua/cua-darwin-x64": "0.
|
|
88
|
-
"@trycua/cua-linux-arm64-gnu": "0.
|
|
89
|
-
"@trycua/cua-linux-x64-gnu": "0.
|
|
90
|
-
"@trycua/cua-win32-arm64-msvc": "0.
|
|
91
|
-
"@trycua/cua-win32-x64-msvc": "0.
|
|
86
|
+
"@trycua/cua-darwin-arm64": "0.3.1",
|
|
87
|
+
"@trycua/cua-darwin-x64": "0.3.1",
|
|
88
|
+
"@trycua/cua-linux-arm64-gnu": "0.3.1",
|
|
89
|
+
"@trycua/cua-linux-x64-gnu": "0.3.1",
|
|
90
|
+
"@trycua/cua-win32-arm64-msvc": "0.3.1",
|
|
91
|
+
"@trycua/cua-win32-x64-msvc": "0.3.1"
|
|
92
92
|
}
|
|
93
93
|
}
|