@trycua/cua-driver 0.24.0 → 0.25.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.
@@ -58,8 +58,13 @@ interface NativeModuleInterface {
58
58
  uniffi_cua_driver_sdk_fn_free_driverauthorizationhost(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
59
59
  uniffi_cua_driver_sdk_fn_clone_embeddedcuadriverhost(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
60
60
  uniffi_cua_driver_sdk_fn_free_embeddedcuadriverhost(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
61
+ uniffi_cua_driver_sdk_fn_clone_foreigndriverenvelopechannel(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
62
+ uniffi_cua_driver_sdk_fn_free_foreigndriverenvelopechannel(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
61
63
  uniffi_cua_driver_sdk_fn_init_callback_vtable_driveractivityobserver(vtable: UniffiVTableCallbackInterfaceCuaDriverSdkDriverActivityObserver): void;
62
64
  uniffi_cua_driver_sdk_fn_init_callback_vtable_driverauthorizationhost(vtable: UniffiVTableCallbackInterfaceCuaDriverSdkDriverAuthorizationHost): void;
65
+ uniffi_cua_driver_sdk_fn_init_callback_vtable_foreigndriverenvelopechannel(vtable: UniffiVTableCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannel): void;
66
+ uniffi_cua_driver_sdk_fn_func_connect_remote_channel(channel: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
67
+ uniffi_cua_driver_sdk_fn_func_create_remote_trusted_session(driver: bigint, options: Uint8Array): bigint;
63
68
  uniffi_cua_driver_sdk_fn_func_create_trusted_session(driver: bigint, options: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
64
69
  uniffi_cua_driver_sdk_fn_func_current_mac_os_permission_status(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
65
70
  uniffi_cua_driver_sdk_fn_func_open_mac_os_screen_recording_settings(uniffi_out_err: UniffiRustCallStatus): void;
@@ -149,7 +154,15 @@ interface NativeModuleInterface {
149
154
  uniffi_cua_driver_sdk_fn_method_embeddedcuadriverhost_state(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
150
155
  uniffi_cua_driver_sdk_fn_method_embeddedcuadriverhost_stop(uniffiSelf: bigint): bigint;
151
156
  uniffi_cua_driver_sdk_fn_method_embeddedcuadriverhost_wait_for_exit(uniffiSelf: bigint, generation: Uint8Array): bigint;
157
+ uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_identity(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
158
+ uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_negotiate(uniffiSelf: bigint): bigint;
159
+ uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_exchange(uniffiSelf: bigint, request: Uint8Array): bigint;
160
+ uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_bind_session(uniffiSelf: bigint, options: Uint8Array): bigint;
161
+ uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_cancel(uniffiSelf: bigint, requestId: Uint8Array): bigint;
162
+ uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_close(uniffiSelf: bigint): bigint;
152
163
  ffi_cua_driver_sdk_uniffi_contract_version(): number;
164
+ uniffi_cua_driver_sdk_checksum_func_connect_remote_channel(): number;
165
+ uniffi_cua_driver_sdk_checksum_func_create_remote_trusted_session(): number;
153
166
  uniffi_cua_driver_sdk_checksum_func_create_trusted_session(): number;
154
167
  uniffi_cua_driver_sdk_checksum_func_current_mac_os_permission_status(): number;
155
168
  uniffi_cua_driver_sdk_checksum_func_open_mac_os_screen_recording_settings(): number;
@@ -239,6 +252,12 @@ interface NativeModuleInterface {
239
252
  uniffi_cua_driver_sdk_checksum_method_embeddedcuadriverhost_state(): number;
240
253
  uniffi_cua_driver_sdk_checksum_method_embeddedcuadriverhost_stop(): number;
241
254
  uniffi_cua_driver_sdk_checksum_method_embeddedcuadriverhost_wait_for_exit(): number;
255
+ uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_identity(): number;
256
+ uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_negotiate(): number;
257
+ uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_exchange(): number;
258
+ uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_bind_session(): number;
259
+ uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_cancel(): number;
260
+ uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_close(): number;
242
261
  rustbuffer_alloc(n: number): Uint8Array;
243
262
  rustbuffer_free(view: Uint8Array): void;
244
263
  }
@@ -271,3 +290,25 @@ export type UniffiVTableCallbackInterfaceCuaDriverSdkDriverAuthorizationHost = {
271
290
  uniffi_clone: UniffiCallbackInterfaceCloneCuaDriverSdkDriverAuthorizationHost;
272
291
  authorize: UniffiCallbackInterfaceCuaDriverSdkDriverAuthorizationHostMethod0;
273
292
  };
293
+ type UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod0 = (uniffiHandle: bigint) => Uint8Array;
294
+ type UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod1 = (uniffiHandle: bigint, uniffiFutureCallback: UniffiForeignFutureCompleterustBuffer, uniffiCallbackData: bigint) => UniffiForeignFutureDroppedCallbackStruct;
295
+ type UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod2 = (uniffiHandle: bigint, request: Uint8Array, uniffiFutureCallback: UniffiForeignFutureCompleterustBuffer, uniffiCallbackData: bigint) => UniffiForeignFutureDroppedCallbackStruct;
296
+ type UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod3 = (uniffiHandle: bigint, options: Uint8Array, uniffiFutureCallback: UniffiForeignFutureCompleterustBuffer, uniffiCallbackData: bigint) => UniffiForeignFutureDroppedCallbackStruct;
297
+ export type UniffiForeignFutureResultVoid = {
298
+ call_status: UniffiRustCallStatus;
299
+ };
300
+ export type UniffiForeignFutureCompletevoid = (callbackData: bigint, result: UniffiForeignFutureResultVoid) => void;
301
+ type UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod4 = (uniffiHandle: bigint, requestId: Uint8Array, uniffiFutureCallback: UniffiForeignFutureCompletevoid, uniffiCallbackData: bigint) => UniffiForeignFutureDroppedCallbackStruct;
302
+ type UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod5 = (uniffiHandle: bigint, uniffiFutureCallback: UniffiForeignFutureCompletevoid, uniffiCallbackData: bigint) => UniffiForeignFutureDroppedCallbackStruct;
303
+ type UniffiCallbackInterfaceCloneCuaDriverSdkForeignDriverEnvelopeChannel = (handle: bigint) => UniffiResult<void>;
304
+ type UniffiCallbackInterfaceFreeCuaDriverSdkForeignDriverEnvelopeChannel = (handle: bigint) => void;
305
+ export type UniffiVTableCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannel = {
306
+ uniffi_free: UniffiCallbackInterfaceFreeCuaDriverSdkForeignDriverEnvelopeChannel;
307
+ uniffi_clone: UniffiCallbackInterfaceCloneCuaDriverSdkForeignDriverEnvelopeChannel;
308
+ identity: UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod0;
309
+ negotiate: UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod1;
310
+ exchange: UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod2;
311
+ bind_session: UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod3;
312
+ cancel: UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod4;
313
+ close: UniffiCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod5;
314
+ };
@@ -302,6 +302,16 @@ const DEFINITIONS = {
302
302
  ret: FfiType.Void,
303
303
  hasRustCallStatus: true,
304
304
  },
305
+ "uniffi_cua_driver_sdk_fn_clone_foreigndriverenvelopechannel": {
306
+ args: [FfiType.Handle],
307
+ ret: FfiType.Handle,
308
+ hasRustCallStatus: true,
309
+ },
310
+ "uniffi_cua_driver_sdk_fn_free_foreigndriverenvelopechannel": {
311
+ args: [FfiType.Handle],
312
+ ret: FfiType.Void,
313
+ hasRustCallStatus: true,
314
+ },
305
315
  "uniffi_cua_driver_sdk_fn_init_callback_vtable_driveractivityobserver": {
306
316
  args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCuaDriverSdkDriverActivityObserver"))],
307
317
  ret: FfiType.Void,
@@ -312,6 +322,21 @@ const DEFINITIONS = {
312
322
  ret: FfiType.Void,
313
323
  hasRustCallStatus: false,
314
324
  },
325
+ "uniffi_cua_driver_sdk_fn_init_callback_vtable_foreigndriverenvelopechannel": {
326
+ args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannel"))],
327
+ ret: FfiType.Void,
328
+ hasRustCallStatus: false,
329
+ },
330
+ "uniffi_cua_driver_sdk_fn_func_connect_remote_channel": {
331
+ args: [FfiType.Handle],
332
+ ret: FfiType.Handle,
333
+ hasRustCallStatus: true,
334
+ },
335
+ "uniffi_cua_driver_sdk_fn_func_create_remote_trusted_session": {
336
+ args: [FfiType.Handle, FfiType.RustBuffer],
337
+ ret: FfiType.Handle,
338
+ hasRustCallStatus: false,
339
+ },
315
340
  "uniffi_cua_driver_sdk_fn_func_create_trusted_session": {
316
341
  args: [FfiType.Handle, FfiType.RustBuffer],
317
342
  ret: FfiType.Handle,
@@ -757,11 +782,51 @@ const DEFINITIONS = {
757
782
  ret: FfiType.Handle,
758
783
  hasRustCallStatus: false,
759
784
  },
785
+ "uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_identity": {
786
+ args: [FfiType.Handle],
787
+ ret: FfiType.RustBuffer,
788
+ hasRustCallStatus: true,
789
+ },
790
+ "uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_negotiate": {
791
+ args: [FfiType.Handle],
792
+ ret: FfiType.Handle,
793
+ hasRustCallStatus: false,
794
+ },
795
+ "uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_exchange": {
796
+ args: [FfiType.Handle, FfiType.RustBuffer],
797
+ ret: FfiType.Handle,
798
+ hasRustCallStatus: false,
799
+ },
800
+ "uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_bind_session": {
801
+ args: [FfiType.Handle, FfiType.RustBuffer],
802
+ ret: FfiType.Handle,
803
+ hasRustCallStatus: false,
804
+ },
805
+ "uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_cancel": {
806
+ args: [FfiType.Handle, FfiType.RustBuffer],
807
+ ret: FfiType.Handle,
808
+ hasRustCallStatus: false,
809
+ },
810
+ "uniffi_cua_driver_sdk_fn_method_foreigndriverenvelopechannel_close": {
811
+ args: [FfiType.Handle],
812
+ ret: FfiType.Handle,
813
+ hasRustCallStatus: false,
814
+ },
760
815
  "ffi_cua_driver_sdk_uniffi_contract_version": {
761
816
  args: [],
762
817
  ret: FfiType.UInt32,
763
818
  hasRustCallStatus: false,
764
819
  },
820
+ "uniffi_cua_driver_sdk_checksum_func_connect_remote_channel": {
821
+ args: [],
822
+ ret: FfiType.UInt16,
823
+ hasRustCallStatus: false,
824
+ },
825
+ "uniffi_cua_driver_sdk_checksum_func_create_remote_trusted_session": {
826
+ args: [],
827
+ ret: FfiType.UInt16,
828
+ hasRustCallStatus: false,
829
+ },
765
830
  "uniffi_cua_driver_sdk_checksum_func_create_trusted_session": {
766
831
  args: [],
767
832
  ret: FfiType.UInt16,
@@ -1207,6 +1272,36 @@ const DEFINITIONS = {
1207
1272
  ret: FfiType.UInt16,
1208
1273
  hasRustCallStatus: false,
1209
1274
  },
1275
+ "uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_identity": {
1276
+ args: [],
1277
+ ret: FfiType.UInt16,
1278
+ hasRustCallStatus: false,
1279
+ },
1280
+ "uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_negotiate": {
1281
+ args: [],
1282
+ ret: FfiType.UInt16,
1283
+ hasRustCallStatus: false,
1284
+ },
1285
+ "uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_exchange": {
1286
+ args: [],
1287
+ ret: FfiType.UInt16,
1288
+ hasRustCallStatus: false,
1289
+ },
1290
+ "uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_bind_session": {
1291
+ args: [],
1292
+ ret: FfiType.UInt16,
1293
+ hasRustCallStatus: false,
1294
+ },
1295
+ "uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_cancel": {
1296
+ args: [],
1297
+ ret: FfiType.UInt16,
1298
+ hasRustCallStatus: false,
1299
+ },
1300
+ "uniffi_cua_driver_sdk_checksum_method_foreigndriverenvelopechannel_close": {
1301
+ args: [],
1302
+ ret: FfiType.UInt16,
1303
+ hasRustCallStatus: false,
1304
+ },
1210
1305
  },
1211
1306
  callbacks: {
1212
1307
  "RustFutureContinuationCallback": {
@@ -1256,6 +1351,57 @@ const DEFINITIONS = {
1256
1351
  ret: FfiType.Void,
1257
1352
  hasRustCallStatus: false,
1258
1353
  },
1354
+ "CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod0": {
1355
+ args: [FfiType.Handle],
1356
+ ret: FfiType.RustBuffer,
1357
+ hasRustCallStatus: true,
1358
+ outReturn: true,
1359
+ },
1360
+ "CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod1": {
1361
+ args: [FfiType.Handle, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
1362
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
1363
+ hasRustCallStatus: false,
1364
+ outReturn: true,
1365
+ },
1366
+ "CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod2": {
1367
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
1368
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
1369
+ hasRustCallStatus: false,
1370
+ outReturn: true,
1371
+ },
1372
+ "CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod3": {
1373
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
1374
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
1375
+ hasRustCallStatus: false,
1376
+ outReturn: true,
1377
+ },
1378
+ "ForeignFutureCompletevoid": {
1379
+ args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultVoid")],
1380
+ ret: FfiType.Void,
1381
+ hasRustCallStatus: false,
1382
+ },
1383
+ "CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod4": {
1384
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
1385
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
1386
+ hasRustCallStatus: false,
1387
+ outReturn: true,
1388
+ },
1389
+ "CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod5": {
1390
+ args: [FfiType.Handle, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
1391
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
1392
+ hasRustCallStatus: false,
1393
+ outReturn: true,
1394
+ },
1395
+ "CallbackInterfaceCloneCuaDriverSdk_ForeignDriverEnvelopeChannel": {
1396
+ args: [FfiType.Handle],
1397
+ ret: FfiType.Handle,
1398
+ hasRustCallStatus: false,
1399
+ },
1400
+ "CallbackInterfaceFreeCuaDriverSdk_ForeignDriverEnvelopeChannel": {
1401
+ args: [FfiType.Handle],
1402
+ ret: FfiType.Void,
1403
+ hasRustCallStatus: false,
1404
+ },
1259
1405
  },
1260
1406
  structs: {
1261
1407
  "ForeignFutureDroppedCallbackStruct": [
@@ -1276,6 +1422,19 @@ const DEFINITIONS = {
1276
1422
  { name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCuaDriverSdk_DriverAuthorizationHost") },
1277
1423
  { name: "authorize", type: FfiType.Callback("CallbackInterfaceCuaDriverSdkDriverAuthorizationHostMethod0") },
1278
1424
  ],
1425
+ "ForeignFutureResultVoid": [
1426
+ { name: "call_status", type: FfiType.RustCallStatus },
1427
+ ],
1428
+ "VTableCallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannel": [
1429
+ { name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeCuaDriverSdk_ForeignDriverEnvelopeChannel") },
1430
+ { name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCuaDriverSdk_ForeignDriverEnvelopeChannel") },
1431
+ { name: "identity", type: FfiType.Callback("CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod0") },
1432
+ { name: "negotiate", type: FfiType.Callback("CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod1") },
1433
+ { name: "exchange", type: FfiType.Callback("CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod2") },
1434
+ { name: "bind_session", type: FfiType.Callback("CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod3") },
1435
+ { name: "cancel", type: FfiType.Callback("CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod4") },
1436
+ { name: "close", type: FfiType.Callback("CallbackInterfaceCuaDriverSdkForeignDriverEnvelopeChannelMethod5") },
1437
+ ],
1279
1438
  },
1280
1439
  };
1281
1440
  let _nativeModule;