@trycua/cua 0.3.0 → 0.4.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/browser/wasm-bindgen/index.d.ts +13 -13
- package/browser/wasm-bindgen/index.js +41 -41
- package/browser/wasm-bindgen/index_bg.wasm +0 -0
- package/browser/wasm-bindgen/index_bg.wasm.d.ts +13 -13
- 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 +55 -2
- package/dist/native/cua_sdk.js +103 -3
- package/package.json +7 -7
|
@@ -2204,30 +2204,30 @@ export interface InitOutput {
|
|
|
2204
2204
|
readonly uniffi_cua_sdk_fn_method_spacesdclient_sh: (a: bigint, b: number, c: number) => bigint;
|
|
2205
2205
|
readonly ubrn_uniffi_cua_sdk_fn_method_spacesdclient_type_text: (a: bigint, b: number, c: number) => bigint;
|
|
2206
2206
|
readonly uniffi_cua_sdk_fn_method_spacesdclient_type_text: (a: bigint, b: number) => bigint;
|
|
2207
|
-
readonly
|
|
2208
|
-
readonly
|
|
2209
|
-
readonly __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
2210
|
-
readonly foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2207
|
+
readonly __wbg_foreignfuturecompleteu8_free: (a: number, b: number) => void;
|
|
2208
|
+
readonly foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2211
2209
|
readonly __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
|
|
2210
|
+
readonly foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2211
|
+
readonly __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
|
|
2212
2212
|
readonly __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
|
|
2213
2213
|
readonly __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
|
|
2214
|
-
readonly
|
|
2214
|
+
readonly foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2215
2215
|
readonly foreignfuturecompletei32_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 __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
|
|
2218
|
-
readonly __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
|
|
2219
2217
|
readonly __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
|
|
2218
|
+
readonly __wbg_foreignfuturecompletei8_free: (a: number, b: number) => void;
|
|
2220
2219
|
readonly __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
|
|
2221
|
-
readonly
|
|
2222
|
-
readonly
|
|
2223
|
-
readonly foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2220
|
+
readonly __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
2221
|
+
readonly __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
|
|
2224
2222
|
readonly foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2223
|
+
readonly foreignfuturecompletei8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2225
2224
|
readonly foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2226
|
-
readonly
|
|
2225
|
+
readonly foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2226
|
+
readonly foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2227
|
+
readonly __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
|
|
2227
2228
|
readonly __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
|
|
2228
|
-
readonly
|
|
2229
|
+
readonly foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2229
2230
|
readonly foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
2230
|
-
readonly foreignfuturecompleteu64_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
|
-
|
|
5692
|
-
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2), arg3, ForeignFutureCompleteRustBuffer.__wrap(arg4), BigInt.asUintN(64, arg5));
|
|
5693
|
-
return ret;
|
|
5694
|
-
},
|
|
5695
|
-
__wbg_call_2c494b60fdb795ed: function(arg0, arg1, arg2) {
|
|
5696
|
-
arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5697
|
-
},
|
|
5698
|
-
__wbg_call_7a9698cedbef9313: function(arg0, arg1, arg2) {
|
|
5691
|
+
__wbg_call_25b19cce90ca4bcb: function(arg0, arg1, arg2) {
|
|
5699
5692
|
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5700
5693
|
return ret;
|
|
5701
5694
|
},
|
|
5702
|
-
|
|
5695
|
+
__wbg_call_4a2180b3e2982945: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
5703
5696
|
var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
|
|
5704
5697
|
wasm.__wbindgen_free(arg3, arg4 * 1, 1);
|
|
5705
5698
|
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2), v0, ForeignFutureCompleteRustBuffer.__wrap(arg5), BigInt.asUintN(64, arg6));
|
|
5706
5699
|
return ret;
|
|
5707
5700
|
},
|
|
5701
|
+
__wbg_call_75cdc8fb670c3a35: function(arg0, arg1, arg2) {
|
|
5702
|
+
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5703
|
+
return ret;
|
|
5704
|
+
},
|
|
5705
|
+
__wbg_call_85dadacd8cbd69c7: function(arg0, arg1, arg2, arg3) {
|
|
5706
|
+
arg0.call(arg1, BigInt.asUintN(64, arg2), arg3);
|
|
5707
|
+
},
|
|
5708
5708
|
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
5709
5709
|
const ret = arg0.call(arg1);
|
|
5710
5710
|
return ret;
|
|
5711
5711
|
}, arguments); },
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5712
|
+
__wbg_call_934de98b4583b855: function(arg0, arg1, arg2) {
|
|
5713
|
+
arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5714
|
+
},
|
|
5715
|
+
__wbg_call_98cb130207a487a9: function(arg0, arg1, arg2) {
|
|
5716
|
+
arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5715
5717
|
},
|
|
5716
5718
|
__wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
|
|
5717
5719
|
const ret = arg0.call(arg1, arg2);
|
|
5718
5720
|
return ret;
|
|
5719
5721
|
}, arguments); },
|
|
5720
|
-
|
|
5721
|
-
arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5722
|
-
|
|
5723
|
-
__wbg_call_f57c1e6ad55537cc: function(arg0, arg1, arg2, arg3) {
|
|
5724
|
-
arg0.call(arg1, BigInt.asUintN(64, arg2), arg3);
|
|
5722
|
+
__wbg_call_d83f0e22a9f7b98c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
5723
|
+
const ret = arg0.call(arg1, BigInt.asUintN(64, arg2), arg3, ForeignFutureCompleteRustBuffer.__wrap(arg4), BigInt.asUintN(64, arg5));
|
|
5724
|
+
return ret;
|
|
5725
5725
|
},
|
|
5726
|
-
|
|
5726
|
+
__wbg_call_e92b2a7dc4a88007: function(arg0, arg1, arg2) {
|
|
5727
5727
|
arg0.call(arg1, BigInt.asUintN(64, arg2));
|
|
5728
5728
|
},
|
|
5729
|
-
|
|
5729
|
+
__wbg_call_status_3536d791f2917611: 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_4b9c20f86eba6fe8: 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_9165657b13492168: 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_8fdfd92c14ad81c8: 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_e29fcb086c28e278: 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_04cfacacdf70b9fc: function(arg0) {
|
|
6025
6025
|
const ret = arg0.return_value;
|
|
6026
6026
|
return ret;
|
|
6027
6027
|
},
|
|
6028
|
-
|
|
6028
|
+
__wbg_return_value_273e4e9f8ae319e7: function(arg0) {
|
|
6029
6029
|
const ret = arg0.return_value;
|
|
6030
6030
|
return ret;
|
|
6031
6031
|
},
|
|
6032
|
-
|
|
6032
|
+
__wbg_return_value_42bcca51e2c5675e: function(arg0) {
|
|
6033
6033
|
const ret = arg0.return_value;
|
|
6034
6034
|
return ret;
|
|
6035
6035
|
},
|
|
6036
|
-
|
|
6036
|
+
__wbg_return_value_7021c7ff807b9e02: function(arg0) {
|
|
6037
|
+
const ret = arg0.return_value;
|
|
6038
|
+
return ret;
|
|
6039
|
+
},
|
|
6040
|
+
__wbg_return_value_7d2db47c9d087004: function(arg0, arg1) {
|
|
6037
6041
|
const ret = arg1.return_value;
|
|
6038
6042
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
6039
6043
|
const len1 = WASM_VECTOR_LEN;
|
|
6040
6044
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
6041
6045
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
6042
6046
|
},
|
|
6043
|
-
|
|
6044
|
-
const ret = arg0.return_value;
|
|
6045
|
-
return ret;
|
|
6046
|
-
},
|
|
6047
|
-
__wbg_return_value_96f8ab1ccde345bc: function(arg0) {
|
|
6047
|
+
__wbg_return_value_9ea8d497124fb974: function(arg0) {
|
|
6048
6048
|
const ret = arg0.return_value;
|
|
6049
6049
|
return ret;
|
|
6050
6050
|
},
|
|
6051
|
-
|
|
6051
|
+
__wbg_return_value_b375cd39d894a22f: function(arg0) {
|
|
6052
6052
|
const ret = arg0.return_value;
|
|
6053
6053
|
return ret;
|
|
6054
6054
|
},
|
|
6055
|
-
|
|
6055
|
+
__wbg_return_value_b647e51ba60789de: function(arg0) {
|
|
6056
6056
|
const ret = arg0.return_value;
|
|
6057
6057
|
return ret;
|
|
6058
6058
|
},
|
|
6059
|
-
|
|
6059
|
+
__wbg_return_value_efcf117bb1729fa5: function(arg0) {
|
|
6060
6060
|
const ret = arg0.return_value;
|
|
6061
6061
|
return ret;
|
|
6062
6062
|
},
|
|
6063
|
-
|
|
6063
|
+
__wbg_return_value_f334cba170b77a7e: function(arg0) {
|
|
6064
6064
|
const ret = arg0.return_value;
|
|
6065
6065
|
return ret;
|
|
6066
6066
|
},
|
|
6067
|
-
|
|
6067
|
+
__wbg_return_value_f9b4731793cdec57: 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_d0a3b307c02f236d: function(arg0) {
|
|
6159
6159
|
const ret = arg0.uniffi_clone;
|
|
6160
6160
|
return ret;
|
|
6161
6161
|
},
|
|
6162
|
-
|
|
6162
|
+
__wbg_uniffi_clone_fcba036a6e55cabc: function(arg0) {
|
|
6163
6163
|
const ret = arg0.uniffi_clone;
|
|
6164
6164
|
return ret;
|
|
6165
6165
|
},
|
|
6166
|
-
|
|
6166
|
+
__wbg_uniffi_free_8794ee8f0bdfe91e: function(arg0) {
|
|
6167
6167
|
const ret = arg0.uniffi_free;
|
|
6168
6168
|
return ret;
|
|
6169
6169
|
},
|
|
6170
|
-
|
|
6170
|
+
__wbg_uniffi_free_be9ddfe16480bd0b: function(arg0) {
|
|
6171
6171
|
const ret = arg0.uniffi_free;
|
|
6172
6172
|
return ret;
|
|
6173
6173
|
},
|
|
Binary file
|
|
@@ -1035,30 +1035,30 @@ export const ubrn_uniffi_cua_sdk_fn_method_spacesdclient_sh: (a: bigint, b: numb
|
|
|
1035
1035
|
export const uniffi_cua_sdk_fn_method_spacesdclient_sh: (a: bigint, b: number, c: number) => bigint;
|
|
1036
1036
|
export const ubrn_uniffi_cua_sdk_fn_method_spacesdclient_type_text: (a: bigint, b: number, c: number) => bigint;
|
|
1037
1037
|
export const uniffi_cua_sdk_fn_method_spacesdclient_type_text: (a: bigint, b: number) => bigint;
|
|
1038
|
-
export const
|
|
1039
|
-
export const
|
|
1040
|
-
export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
1041
|
-
export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1038
|
+
export const __wbg_foreignfuturecompleteu8_free: (a: number, b: number) => void;
|
|
1039
|
+
export const foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1042
1040
|
export const __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
|
|
1041
|
+
export const foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1042
|
+
export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
|
|
1043
1043
|
export const __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
|
|
1044
1044
|
export const __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
|
|
1045
|
-
export const
|
|
1045
|
+
export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1046
1046
|
export const foreignfuturecompletei32_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 __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
|
|
1049
|
-
export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
|
|
1050
1048
|
export const __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
|
|
1049
|
+
export const __wbg_foreignfuturecompletei8_free: (a: number, b: number) => void;
|
|
1051
1050
|
export const __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
|
|
1052
|
-
export const
|
|
1053
|
-
export const
|
|
1054
|
-
export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1051
|
+
export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
|
|
1052
|
+
export const __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
|
|
1055
1053
|
export const foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1054
|
+
export const foreignfuturecompletei8_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1056
1055
|
export const foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1057
|
-
export const
|
|
1056
|
+
export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1057
|
+
export const foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1058
|
+
export const __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
|
|
1058
1059
|
export const __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
|
|
1059
|
-
export const
|
|
1060
|
+
export const foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1060
1061
|
export const foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
|
|
1061
|
-
export const foreignfuturecompleteu64_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;
|
|
@@ -404,6 +406,7 @@ interface NativeModuleInterface {
|
|
|
404
406
|
uniffi_cua_sdk_fn_method_space_set_presence_settings(uniffiSelf: bigint, cursorProbe: Uint8Array): bigint;
|
|
405
407
|
uniffi_cua_sdk_fn_method_space_share(uniffiSelf: bigint, who: Uint8Array, role: Uint8Array): bigint;
|
|
406
408
|
uniffi_cua_sdk_fn_method_space_shares(uniffiSelf: bigint): bigint;
|
|
409
|
+
uniffi_cua_sdk_fn_method_space_spacesd(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
407
410
|
uniffi_cua_sdk_fn_method_space_start_hotspot(uniffiSelf: bigint, setSystemProxy: Uint8Array, bypass: Uint8Array): bigint;
|
|
408
411
|
uniffi_cua_sdk_fn_method_space_stop_hotspot(uniffiSelf: bigint): bigint;
|
|
409
412
|
uniffi_cua_sdk_fn_method_space_stream_session(uniffiSelf: bigint, options: Uint8Array, frames: bigint, audio: Uint8Array): bigint;
|
|
@@ -710,7 +713,9 @@ interface NativeModuleInterface {
|
|
|
710
713
|
uniffi_cua_sdk_checksum_method_guestdisplay_via(): number;
|
|
711
714
|
uniffi_cua_sdk_checksum_constructor_host_new(): number;
|
|
712
715
|
uniffi_cua_sdk_checksum_method_host_configure(): number;
|
|
716
|
+
uniffi_cua_sdk_checksum_method_host_pause_signed_out(): number;
|
|
713
717
|
uniffi_cua_sdk_checksum_method_host_remove(): number;
|
|
718
|
+
uniffi_cua_sdk_checksum_method_host_resume_signed_in(): number;
|
|
714
719
|
uniffi_cua_sdk_checksum_method_host_setup(): number;
|
|
715
720
|
uniffi_cua_sdk_checksum_method_host_start_sharing(): number;
|
|
716
721
|
uniffi_cua_sdk_checksum_method_host_status(): number;
|
|
@@ -844,6 +849,7 @@ interface NativeModuleInterface {
|
|
|
844
849
|
uniffi_cua_sdk_checksum_method_space_set_presence_settings(): number;
|
|
845
850
|
uniffi_cua_sdk_checksum_method_space_share(): number;
|
|
846
851
|
uniffi_cua_sdk_checksum_method_space_shares(): number;
|
|
852
|
+
uniffi_cua_sdk_checksum_method_space_spacesd(): number;
|
|
847
853
|
uniffi_cua_sdk_checksum_method_space_start_hotspot(): number;
|
|
848
854
|
uniffi_cua_sdk_checksum_method_space_stop_hotspot(): number;
|
|
849
855
|
uniffi_cua_sdk_checksum_method_space_stream_session(): 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,
|
|
@@ -2032,6 +2042,11 @@ const DEFINITIONS = {
|
|
|
2032
2042
|
ret: FfiType.Handle,
|
|
2033
2043
|
hasRustCallStatus: false,
|
|
2034
2044
|
},
|
|
2045
|
+
"uniffi_cua_sdk_fn_method_space_spacesd": {
|
|
2046
|
+
args: [FfiType.Handle],
|
|
2047
|
+
ret: FfiType.Handle,
|
|
2048
|
+
hasRustCallStatus: true,
|
|
2049
|
+
},
|
|
2035
2050
|
"uniffi_cua_sdk_fn_method_space_start_hotspot": {
|
|
2036
2051
|
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
2037
2052
|
ret: FfiType.Handle,
|
|
@@ -3562,11 +3577,21 @@ const DEFINITIONS = {
|
|
|
3562
3577
|
ret: FfiType.UInt16,
|
|
3563
3578
|
hasRustCallStatus: false,
|
|
3564
3579
|
},
|
|
3580
|
+
"uniffi_cua_sdk_checksum_method_host_pause_signed_out": {
|
|
3581
|
+
args: [],
|
|
3582
|
+
ret: FfiType.UInt16,
|
|
3583
|
+
hasRustCallStatus: false,
|
|
3584
|
+
},
|
|
3565
3585
|
"uniffi_cua_sdk_checksum_method_host_remove": {
|
|
3566
3586
|
args: [],
|
|
3567
3587
|
ret: FfiType.UInt16,
|
|
3568
3588
|
hasRustCallStatus: false,
|
|
3569
3589
|
},
|
|
3590
|
+
"uniffi_cua_sdk_checksum_method_host_resume_signed_in": {
|
|
3591
|
+
args: [],
|
|
3592
|
+
ret: FfiType.UInt16,
|
|
3593
|
+
hasRustCallStatus: false,
|
|
3594
|
+
},
|
|
3570
3595
|
"uniffi_cua_sdk_checksum_method_host_setup": {
|
|
3571
3596
|
args: [],
|
|
3572
3597
|
ret: FfiType.UInt16,
|
|
@@ -4232,6 +4257,11 @@ const DEFINITIONS = {
|
|
|
4232
4257
|
ret: FfiType.UInt16,
|
|
4233
4258
|
hasRustCallStatus: false,
|
|
4234
4259
|
},
|
|
4260
|
+
"uniffi_cua_sdk_checksum_method_space_spacesd": {
|
|
4261
|
+
args: [],
|
|
4262
|
+
ret: FfiType.UInt16,
|
|
4263
|
+
hasRustCallStatus: false,
|
|
4264
|
+
},
|
|
4235
4265
|
"uniffi_cua_sdk_checksum_method_space_start_hotspot": {
|
|
4236
4266
|
args: [],
|
|
4237
4267
|
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
|
/**
|
|
@@ -12748,6 +12761,10 @@ export interface SpaceLike {
|
|
|
12748
12761
|
shares(asyncOpts_?: {
|
|
12749
12762
|
signal: AbortSignal;
|
|
12750
12763
|
}): Promise<SpaceShares>;
|
|
12764
|
+
/**
|
|
12765
|
+
* The cua-spacesd client over the connection this Space authenticated.
|
|
12766
|
+
*/
|
|
12767
|
+
spacesd(): SpacesdClientLike;
|
|
12751
12768
|
/**
|
|
12752
12769
|
* Starts the reverse-SOCKS hotspot: this host serves the Space's
|
|
12753
12770
|
* egress. `set_system_proxy` points the guest's proxy settings at it
|
|
@@ -13082,6 +13099,10 @@ export declare class Space extends UniffiAbstractObject implements SpaceLike {
|
|
|
13082
13099
|
shares(asyncOpts_?: {
|
|
13083
13100
|
signal: AbortSignal;
|
|
13084
13101
|
}): Promise<SpaceShares>;
|
|
13102
|
+
/**
|
|
13103
|
+
* The cua-spacesd client over the connection this Space authenticated.
|
|
13104
|
+
*/
|
|
13105
|
+
spacesd(): SpacesdClientLike;
|
|
13085
13106
|
/**
|
|
13086
13107
|
* Starts the reverse-SOCKS hotspot: this host serves the Space's
|
|
13087
13108
|
* egress. `set_system_proxy` points the guest's proxy settings at it
|
|
@@ -14293,12 +14314,28 @@ export interface HostLike {
|
|
|
14293
14314
|
configure(change: HostSettingsChange, asyncOpts_?: {
|
|
14294
14315
|
signal: AbortSignal;
|
|
14295
14316
|
}): Promise<HostStatus>;
|
|
14317
|
+
/**
|
|
14318
|
+
* Pause relay sharing while nobody is signed in to the owner's
|
|
14319
|
+
* account: the host leaves the relay and stays off it (also across a
|
|
14320
|
+
* restart) with its setup kept. Direct mode is left alone.
|
|
14321
|
+
*/
|
|
14322
|
+
pauseSignedOut(asyncOpts_?: {
|
|
14323
|
+
signal: AbortSignal;
|
|
14324
|
+
}): Promise<HostStatus>;
|
|
14296
14325
|
/**
|
|
14297
14326
|
* Unregister, uninstall the service and delete the host state.
|
|
14298
14327
|
*/
|
|
14299
14328
|
remove(asyncOpts_?: {
|
|
14300
14329
|
signal: AbortSignal;
|
|
14301
14330
|
}): Promise<void>;
|
|
14331
|
+
/**
|
|
14332
|
+
* Resume relay sharing paused by [`Host::pause_signed_out`] once
|
|
14333
|
+
* `account` (the signed-in account's id or email) is signed in; refused
|
|
14334
|
+
* when it is not the machine's owner.
|
|
14335
|
+
*/
|
|
14336
|
+
resumeSignedIn(account: string, asyncOpts_?: {
|
|
14337
|
+
signal: AbortSignal;
|
|
14338
|
+
}): Promise<HostStatus>;
|
|
14302
14339
|
/**
|
|
14303
14340
|
* Installs and starts the host service (relay mode needs
|
|
14304
14341
|
* `account_token`).
|
|
@@ -14348,12 +14385,28 @@ export declare class Host extends UniffiAbstractObject implements HostLike {
|
|
|
14348
14385
|
configure(change: HostSettingsChange, asyncOpts_?: {
|
|
14349
14386
|
signal: AbortSignal;
|
|
14350
14387
|
}): Promise<HostStatus>;
|
|
14388
|
+
/**
|
|
14389
|
+
* Pause relay sharing while nobody is signed in to the owner's
|
|
14390
|
+
* account: the host leaves the relay and stays off it (also across a
|
|
14391
|
+
* restart) with its setup kept. Direct mode is left alone.
|
|
14392
|
+
*/
|
|
14393
|
+
pauseSignedOut(asyncOpts_?: {
|
|
14394
|
+
signal: AbortSignal;
|
|
14395
|
+
}): Promise<HostStatus>;
|
|
14351
14396
|
/**
|
|
14352
14397
|
* Unregister, uninstall the service and delete the host state.
|
|
14353
14398
|
*/
|
|
14354
14399
|
remove(asyncOpts_?: {
|
|
14355
14400
|
signal: AbortSignal;
|
|
14356
14401
|
}): Promise<void>;
|
|
14402
|
+
/**
|
|
14403
|
+
* Resume relay sharing paused by [`Host::pause_signed_out`] once
|
|
14404
|
+
* `account` (the signed-in account's id or email) is signed in; refused
|
|
14405
|
+
* when it is not the machine's owner.
|
|
14406
|
+
*/
|
|
14407
|
+
resumeSignedIn(account: string, asyncOpts_?: {
|
|
14408
|
+
signal: AbortSignal;
|
|
14409
|
+
}): Promise<HostStatus>;
|
|
14357
14410
|
/**
|
|
14358
14411
|
* Installs and starts the host service (relay mode needs
|
|
14359
14412
|
* `account_token`).
|
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
|
;
|
|
@@ -21725,6 +21737,17 @@ export class Space extends UniffiAbstractObject {
|
|
|
21725
21737
|
throw __error;
|
|
21726
21738
|
}
|
|
21727
21739
|
}
|
|
21740
|
+
/**
|
|
21741
|
+
* The cua-spacesd client over the connection this Space authenticated.
|
|
21742
|
+
*/
|
|
21743
|
+
spacesd() {
|
|
21744
|
+
return FfiConverterTypeSpacesdClient.lift(uniffiCaller.rustCallWithError(
|
|
21745
|
+
/*liftError:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError),
|
|
21746
|
+
/*caller:*/ (callStatus) => {
|
|
21747
|
+
return nativeModule().uniffi_cua_sdk_fn_method_space_spacesd(uniffiTypeSpaceObjectFactory.clonePointer(this), callStatus);
|
|
21748
|
+
},
|
|
21749
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
21750
|
+
}
|
|
21728
21751
|
/**
|
|
21729
21752
|
* Starts the reverse-SOCKS hotspot: this host serves the Space's
|
|
21730
21753
|
* egress. `set_system_proxy` points the guest's proxy settings at it
|
|
@@ -24825,6 +24848,40 @@ export class Host extends UniffiAbstractObject {
|
|
|
24825
24848
|
throw __error;
|
|
24826
24849
|
}
|
|
24827
24850
|
}
|
|
24851
|
+
/**
|
|
24852
|
+
* Pause relay sharing while nobody is signed in to the owner's
|
|
24853
|
+
* account: the host leaves the relay and stays off it (also across a
|
|
24854
|
+
* restart) with its setup kept. Direct mode is left alone.
|
|
24855
|
+
*/
|
|
24856
|
+
async pauseSignedOut(asyncOpts_) {
|
|
24857
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
24858
|
+
try {
|
|
24859
|
+
return await uniffiRustCallAsync(
|
|
24860
|
+
/*rustCaller:*/ uniffiCaller,
|
|
24861
|
+
/*rustFutureFunc:*/ () => {
|
|
24862
|
+
return nativeModule().uniffi_cua_sdk_fn_method_host_pause_signed_out(uniffiTypeHostObjectFactory.clonePointer(this));
|
|
24863
|
+
},
|
|
24864
|
+
/*pollFunc:*/ nativeModule().ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
24865
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
24866
|
+
/*completeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
24867
|
+
/*freeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
24868
|
+
// Async returns always go through the JS-side converter: the
|
|
24869
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
24870
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
24871
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
24872
|
+
// here using the per-callable return-type converter.
|
|
24873
|
+
/*liftFunc:*/ FfiConverterTypeHostStatus.lift.bind(FfiConverterTypeHostStatus),
|
|
24874
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
24875
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
24876
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
24877
|
+
}
|
|
24878
|
+
catch (__error) {
|
|
24879
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
24880
|
+
__error.stack = __stack;
|
|
24881
|
+
}
|
|
24882
|
+
throw __error;
|
|
24883
|
+
}
|
|
24884
|
+
}
|
|
24828
24885
|
/**
|
|
24829
24886
|
* Unregister, uninstall the service and delete the host state.
|
|
24830
24887
|
*/
|
|
@@ -24852,6 +24909,40 @@ export class Host extends UniffiAbstractObject {
|
|
|
24852
24909
|
throw __error;
|
|
24853
24910
|
}
|
|
24854
24911
|
}
|
|
24912
|
+
/**
|
|
24913
|
+
* Resume relay sharing paused by [`Host::pause_signed_out`] once
|
|
24914
|
+
* `account` (the signed-in account's id or email) is signed in; refused
|
|
24915
|
+
* when it is not the machine's owner.
|
|
24916
|
+
*/
|
|
24917
|
+
async resumeSignedIn(account, asyncOpts_) {
|
|
24918
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
24919
|
+
try {
|
|
24920
|
+
return await uniffiRustCallAsync(
|
|
24921
|
+
/*rustCaller:*/ uniffiCaller,
|
|
24922
|
+
/*rustFutureFunc:*/ () => {
|
|
24923
|
+
return nativeModule().uniffi_cua_sdk_fn_method_host_resume_signed_in(uniffiTypeHostObjectFactory.clonePointer(this), FfiConverterString.lower(account, nativeModule().rustbuffer_alloc));
|
|
24924
|
+
},
|
|
24925
|
+
/*pollFunc:*/ nativeModule().ffi_cua_sdk_rust_future_poll_rust_buffer,
|
|
24926
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_sdk_rust_future_cancel_rust_buffer,
|
|
24927
|
+
/*completeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_complete_rust_buffer,
|
|
24928
|
+
/*freeFunc:*/ nativeModule().ffi_cua_sdk_rust_future_free_rust_buffer,
|
|
24929
|
+
// Async returns always go through the JS-side converter: the
|
|
24930
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
24931
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
24932
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
24933
|
+
// here using the per-callable return-type converter.
|
|
24934
|
+
/*liftFunc:*/ FfiConverterTypeHostStatus.lift.bind(FfiConverterTypeHostStatus),
|
|
24935
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
24936
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
24937
|
+
/*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError));
|
|
24938
|
+
}
|
|
24939
|
+
catch (__error) {
|
|
24940
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
24941
|
+
__error.stack = __stack;
|
|
24942
|
+
}
|
|
24943
|
+
throw __error;
|
|
24944
|
+
}
|
|
24945
|
+
}
|
|
24855
24946
|
/**
|
|
24856
24947
|
* Installs and starts the host service (relay mode needs
|
|
24857
24948
|
* `account_token`).
|
|
@@ -26050,9 +26141,15 @@ function uniffiEnsureInitialized() {
|
|
|
26050
26141
|
if (nativeModule().uniffi_cua_sdk_checksum_method_host_configure() !== 36828) {
|
|
26051
26142
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_configure");
|
|
26052
26143
|
}
|
|
26144
|
+
if (nativeModule().uniffi_cua_sdk_checksum_method_host_pause_signed_out() !== 3338) {
|
|
26145
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_pause_signed_out");
|
|
26146
|
+
}
|
|
26053
26147
|
if (nativeModule().uniffi_cua_sdk_checksum_method_host_remove() !== 63746) {
|
|
26054
26148
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_remove");
|
|
26055
26149
|
}
|
|
26150
|
+
if (nativeModule().uniffi_cua_sdk_checksum_method_host_resume_signed_in() !== 8436) {
|
|
26151
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_resume_signed_in");
|
|
26152
|
+
}
|
|
26056
26153
|
if (nativeModule().uniffi_cua_sdk_checksum_method_host_setup() !== 765) {
|
|
26057
26154
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_setup");
|
|
26058
26155
|
}
|
|
@@ -26452,6 +26549,9 @@ function uniffiEnsureInitialized() {
|
|
|
26452
26549
|
if (nativeModule().uniffi_cua_sdk_checksum_method_space_shares() !== 19234) {
|
|
26453
26550
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_space_shares");
|
|
26454
26551
|
}
|
|
26552
|
+
if (nativeModule().uniffi_cua_sdk_checksum_method_space_spacesd() !== 47873) {
|
|
26553
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_space_spacesd");
|
|
26554
|
+
}
|
|
26455
26555
|
if (nativeModule().uniffi_cua_sdk_checksum_method_space_start_hotspot() !== 44744) {
|
|
26456
26556
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_space_start_hotspot");
|
|
26457
26557
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trycua/cua",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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.4.0",
|
|
87
|
+
"@trycua/cua-darwin-x64": "0.4.0",
|
|
88
|
+
"@trycua/cua-linux-arm64-gnu": "0.4.0",
|
|
89
|
+
"@trycua/cua-linux-x64-gnu": "0.4.0",
|
|
90
|
+
"@trycua/cua-win32-arm64-msvc": "0.4.0",
|
|
91
|
+
"@trycua/cua-win32-x64-msvc": "0.4.0"
|
|
92
92
|
}
|
|
93
93
|
}
|