@trycua/cua 0.3.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.
@@ -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 __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
2210
- readonly foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
2211
- readonly __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
2212
2209
  readonly __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
2213
- readonly __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
2214
- readonly foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
2215
2210
  readonly foreignfuturecompletei32_call: (a: number, b: number, c: bigint, d: any) => void;
2216
- readonly foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
2217
2211
  readonly __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
2218
- readonly __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
2212
+ readonly __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
2213
+ readonly __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
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
+ readonly foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
2219
2217
  readonly __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
2220
2218
  readonly __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
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 foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
2223
- readonly foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
2224
2222
  readonly foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
2225
2223
  readonly foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
2226
- readonly foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
2227
- readonly __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
2228
- readonly __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
2229
2224
  readonly foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
2230
2225
  readonly foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
2226
+ readonly foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
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
- __wbg_call_2325e8aee238fb5e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
5692
- const ret = arg0.call(arg1, BigInt.asUintN(64, arg2), arg3, ForeignFutureCompleteRustBuffer.__wrap(arg4), BigInt.asUintN(64, arg5));
5691
+ __wbg_call_00ddac3febb8935f: function(arg0, arg1, arg2) {
5692
+ const ret = arg0.call(arg1, BigInt.asUintN(64, arg2));
5693
5693
  return ret;
5694
5694
  },
5695
- __wbg_call_2c494b60fdb795ed: function(arg0, arg1, arg2) {
5695
+ __wbg_call_0aacd5fb8327fd44: function(arg0, arg1, arg2) {
5696
5696
  arg0.call(arg1, BigInt.asUintN(64, arg2));
5697
5697
  },
5698
- __wbg_call_7a9698cedbef9313: function(arg0, arg1, arg2) {
5699
- const ret = arg0.call(arg1, BigInt.asUintN(64, arg2));
5700
- return ret;
5698
+ __wbg_call_134815481dd0ec22: function(arg0, arg1, arg2, arg3) {
5699
+ arg0.call(arg1, BigInt.asUintN(64, arg2), arg3);
5701
5700
  },
5702
- __wbg_call_89c084c852bcf581: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
5703
- var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
5704
- wasm.__wbindgen_free(arg3, arg4 * 1, 1);
5705
- const ret = arg0.call(arg1, BigInt.asUintN(64, arg2), v0, ForeignFutureCompleteRustBuffer.__wrap(arg5), BigInt.asUintN(64, arg6));
5701
+ __wbg_call_1de67cb6c8957e35: function(arg0, arg1, arg2) {
5702
+ arg0.call(arg1, BigInt.asUintN(64, arg2));
5703
+ },
5704
+ __wbg_call_6d875d7c72913330: function(arg0, arg1, arg2) {
5705
+ arg0.call(arg1, BigInt.asUintN(64, arg2));
5706
+ },
5707
+ __wbg_call_899b9b70e353349f: function(arg0, arg1, arg2) {
5708
+ const ret = arg0.call(arg1, BigInt.asUintN(64, arg2));
5706
5709
  return ret;
5707
5710
  },
5708
5711
  __wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
5709
5712
  const ret = arg0.call(arg1);
5710
5713
  return ret;
5711
5714
  }, arguments); },
5712
- __wbg_call_90c145fb2f1956aa: function(arg0, arg1, arg2) {
5713
- const ret = arg0.call(arg1, BigInt.asUintN(64, arg2));
5715
+ __wbg_call_96ea47e3dbf1f018: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
5716
+ var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
5717
+ wasm.__wbindgen_free(arg3, arg4 * 1, 1);
5718
+ const ret = arg0.call(arg1, BigInt.asUintN(64, arg2), v0, ForeignFutureCompleteRustBuffer.__wrap(arg5), BigInt.asUintN(64, arg6));
5714
5719
  return ret;
5715
5720
  },
5716
5721
  __wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
5717
5722
  const ret = arg0.call(arg1, arg2);
5718
5723
  return ret;
5719
5724
  }, arguments); },
5720
- __wbg_call_bb55f3fa9553b590: function(arg0, arg1, arg2) {
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);
5725
- },
5726
- __wbg_call_feb9c7a34e4131ab: function(arg0, arg1, arg2) {
5727
- arg0.call(arg1, BigInt.asUintN(64, arg2));
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
- __wbg_call_status_1f63f490cf21c21d: function(arg0) {
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
- __wbg_execute_032510998c86ada3: function(arg0) {
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
- __wbg_free_6ff472af429983e8: function(arg0) {
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
- __wbg_get_access_token_d07bff1ca94eefd2: function(arg0) {
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
- __wbg_handle_2b1470162d02da94: function(arg0) {
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
- __wbg_return_value_11a2e88504324753: function(arg0) {
6024
+ __wbg_return_value_10b63b9f9ca7e7a6: function(arg0) {
6025
6025
  const ret = arg0.return_value;
6026
6026
  return ret;
6027
6027
  },
6028
- __wbg_return_value_4a94e5b194877436: function(arg0) {
6028
+ __wbg_return_value_2a423af819e336ee: function(arg0) {
6029
6029
  const ret = arg0.return_value;
6030
6030
  return ret;
6031
6031
  },
6032
- __wbg_return_value_58d5123eaeac2067: function(arg0) {
6032
+ __wbg_return_value_33a295b2d9308435: function(arg0) {
6033
6033
  const ret = arg0.return_value;
6034
6034
  return ret;
6035
6035
  },
6036
- __wbg_return_value_74c80e677fc4f7d4: function(arg0, arg1) {
6037
- const ret = arg1.return_value;
6038
- const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
6039
- const len1 = WASM_VECTOR_LEN;
6040
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
6041
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
6042
- },
6043
- __wbg_return_value_956f00ed925c4818: function(arg0) {
6036
+ __wbg_return_value_5a76ecbc9f8c25cc: function(arg0) {
6044
6037
  const ret = arg0.return_value;
6045
6038
  return ret;
6046
6039
  },
6047
- __wbg_return_value_96f8ab1ccde345bc: function(arg0) {
6040
+ __wbg_return_value_7f3ff7f018d1ff02: function(arg0) {
6048
6041
  const ret = arg0.return_value;
6049
6042
  return ret;
6050
6043
  },
6051
- __wbg_return_value_b180d62db8952018: function(arg0) {
6044
+ __wbg_return_value_93c650895261cca2: function(arg0) {
6052
6045
  const ret = arg0.return_value;
6053
6046
  return ret;
6054
6047
  },
6055
- __wbg_return_value_b3ef039f4aae8f41: function(arg0) {
6048
+ __wbg_return_value_af2df9f09becd379: function(arg0) {
6056
6049
  const ret = arg0.return_value;
6057
6050
  return ret;
6058
6051
  },
6059
- __wbg_return_value_d7223ad80370e50b: function(arg0) {
6052
+ __wbg_return_value_b8f309c3156c3c7a: function(arg0) {
6060
6053
  const ret = arg0.return_value;
6061
6054
  return ret;
6062
6055
  },
6063
- __wbg_return_value_dc912d477b81f807: function(arg0) {
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
- __wbg_return_value_ed51e08cb18afada: function(arg0) {
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
- __wbg_uniffi_clone_92a912a27badfc9c: function(arg0) {
6158
+ __wbg_uniffi_clone_310ccaa9ff29cb3e: function(arg0) {
6159
6159
  const ret = arg0.uniffi_clone;
6160
6160
  return ret;
6161
6161
  },
6162
- __wbg_uniffi_clone_c961449ce1f36c1a: function(arg0) {
6162
+ __wbg_uniffi_clone_5d7dc130963c02b7: function(arg0) {
6163
6163
  const ret = arg0.uniffi_clone;
6164
6164
  return ret;
6165
6165
  },
6166
- __wbg_uniffi_free_1b5d0da25d4d8e5e: function(arg0) {
6166
+ __wbg_uniffi_free_2e764ef7d5fd5ba8: function(arg0) {
6167
6167
  const ret = arg0.uniffi_free;
6168
6168
  return ret;
6169
6169
  },
6170
- __wbg_uniffi_free_c71028223a500c14: function(arg0) {
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 __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
1041
- export const foreignfuturecompleteu16_call: (a: number, b: number, c: bigint, d: any) => void;
1042
- export const __wbg_foreignfuturecompletef32_free: (a: number, b: number) => void;
1043
1040
  export const __wbg_foreignfuturecompletei32_free: (a: number, b: number) => void;
1044
- export const __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
1045
- export const foreignfuturecompletef32_call: (a: number, b: number, c: bigint, d: any) => void;
1046
1041
  export const foreignfuturecompletei32_call: (a: number, b: number, c: bigint, d: any) => void;
1047
- export const foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
1048
1042
  export const __wbg_foreignfuturecompletef64_free: (a: number, b: number) => void;
1049
- export const __wbg_foreignfuturecompletei16_free: (a: number, b: number) => void;
1043
+ export const __wbg_foreignfuturecompleteu16_free: (a: number, b: number) => void;
1044
+ export const __wbg_foreignfuturecompletevoid_free: (a: number, b: number) => void;
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
+ export const foreignfuturecompletevoid_call: (a: number, b: number, c: bigint, d: any) => void;
1050
1048
  export const __wbg_foreignfuturecompletei64_free: (a: number, b: number) => void;
1051
1049
  export const __wbg_foreignfuturecompleterustbuffer_free: (a: number, b: number) => void;
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 foreignfuturecompletef64_call: (a: number, b: number, c: bigint, d: any) => void;
1054
- export const foreignfuturecompletei16_call: (a: number, b: number, c: bigint, d: any) => void;
1055
1053
  export const foreignfuturecompletei64_call: (a: number, b: number, c: bigint, d: any) => void;
1056
1054
  export const foreignfuturecompleterustbuffer_call: (a: number, b: number, c: bigint, d: any) => void;
1057
- export const foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
1058
- export const __wbg_foreignfuturecompleteu32_free: (a: number, b: number) => void;
1059
- export const __wbg_foreignfuturecompleteu64_free: (a: number, b: number) => void;
1060
1055
  export const foreignfuturecompleteu32_call: (a: number, b: number, c: bigint, d: any) => void;
1061
1056
  export const foreignfuturecompleteu64_call: (a: number, b: number, c: bigint, d: any) => void;
1057
+ export const foreignfuturecompleteu8_call: (a: number, b: number, c: bigint, d: any) => void;
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;
@@ -710,7 +712,9 @@ interface NativeModuleInterface {
710
712
  uniffi_cua_sdk_checksum_method_guestdisplay_via(): number;
711
713
  uniffi_cua_sdk_checksum_constructor_host_new(): number;
712
714
  uniffi_cua_sdk_checksum_method_host_configure(): number;
715
+ uniffi_cua_sdk_checksum_method_host_pause_signed_out(): number;
713
716
  uniffi_cua_sdk_checksum_method_host_remove(): number;
717
+ uniffi_cua_sdk_checksum_method_host_resume_signed_in(): number;
714
718
  uniffi_cua_sdk_checksum_method_host_setup(): number;
715
719
  uniffi_cua_sdk_checksum_method_host_start_sharing(): number;
716
720
  uniffi_cua_sdk_checksum_method_host_status(): 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,
@@ -3562,11 +3572,21 @@ const DEFINITIONS = {
3562
3572
  ret: FfiType.UInt16,
3563
3573
  hasRustCallStatus: false,
3564
3574
  },
3575
+ "uniffi_cua_sdk_checksum_method_host_pause_signed_out": {
3576
+ args: [],
3577
+ ret: FfiType.UInt16,
3578
+ hasRustCallStatus: false,
3579
+ },
3565
3580
  "uniffi_cua_sdk_checksum_method_host_remove": {
3566
3581
  args: [],
3567
3582
  ret: FfiType.UInt16,
3568
3583
  hasRustCallStatus: false,
3569
3584
  },
3585
+ "uniffi_cua_sdk_checksum_method_host_resume_signed_in": {
3586
+ args: [],
3587
+ ret: FfiType.UInt16,
3588
+ hasRustCallStatus: false,
3589
+ },
3570
3590
  "uniffi_cua_sdk_checksum_method_host_setup": {
3571
3591
  args: [],
3572
3592
  ret: FfiType.UInt16,
@@ -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
  /**
@@ -14293,12 +14306,28 @@ export interface HostLike {
14293
14306
  configure(change: HostSettingsChange, asyncOpts_?: {
14294
14307
  signal: AbortSignal;
14295
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>;
14296
14317
  /**
14297
14318
  * Unregister, uninstall the service and delete the host state.
14298
14319
  */
14299
14320
  remove(asyncOpts_?: {
14300
14321
  signal: AbortSignal;
14301
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>;
14302
14331
  /**
14303
14332
  * Installs and starts the host service (relay mode needs
14304
14333
  * `account_token`).
@@ -14348,12 +14377,28 @@ export declare class Host extends UniffiAbstractObject implements HostLike {
14348
14377
  configure(change: HostSettingsChange, asyncOpts_?: {
14349
14378
  signal: AbortSignal;
14350
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>;
14351
14388
  /**
14352
14389
  * Unregister, uninstall the service and delete the host state.
14353
14390
  */
14354
14391
  remove(asyncOpts_?: {
14355
14392
  signal: AbortSignal;
14356
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>;
14357
14402
  /**
14358
14403
  * Installs and starts the host service (relay mode needs
14359
14404
  * `account_token`).
@@ -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
  ;
@@ -24825,6 +24837,40 @@ export class Host extends UniffiAbstractObject {
24825
24837
  throw __error;
24826
24838
  }
24827
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
+ }
24828
24874
  /**
24829
24875
  * Unregister, uninstall the service and delete the host state.
24830
24876
  */
@@ -24852,6 +24898,40 @@ export class Host extends UniffiAbstractObject {
24852
24898
  throw __error;
24853
24899
  }
24854
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
+ }
24855
24935
  /**
24856
24936
  * Installs and starts the host service (relay mode needs
24857
24937
  * `account_token`).
@@ -26050,9 +26130,15 @@ function uniffiEnsureInitialized() {
26050
26130
  if (nativeModule().uniffi_cua_sdk_checksum_method_host_configure() !== 36828) {
26051
26131
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_configure");
26052
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
+ }
26053
26136
  if (nativeModule().uniffi_cua_sdk_checksum_method_host_remove() !== 63746) {
26054
26137
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_remove");
26055
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
+ }
26056
26142
  if (nativeModule().uniffi_cua_sdk_checksum_method_host_setup() !== 765) {
26057
26143
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_sdk_checksum_method_host_setup");
26058
26144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycua/cua",
3
- "version": "0.3.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.3.0",
87
- "@trycua/cua-darwin-x64": "0.3.0",
88
- "@trycua/cua-linux-arm64-gnu": "0.3.0",
89
- "@trycua/cua-linux-x64-gnu": "0.3.0",
90
- "@trycua/cua-win32-arm64-msvc": "0.3.0",
91
- "@trycua/cua-win32-x64-msvc": "0.3.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
  }