@breeztech/breez-sdk-spark 0.19.0 → 0.20.0-dev1

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.
@@ -33,6 +33,16 @@ export class BitcoinChainServiceHandle {
33
33
  const ret = wasm.bitcoinchainservicehandle_broadcastTransaction(this.__wbg_ptr, ptr0, len0);
34
34
  return ret;
35
35
  }
36
+ /**
37
+ * @param {string} address
38
+ * @returns {Promise<any>}
39
+ */
40
+ getAddressTxos(address) {
41
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
42
+ const len0 = WASM_VECTOR_LEN;
43
+ const ret = wasm.bitcoinchainservicehandle_getAddressTxos(this.__wbg_ptr, ptr0, len0);
44
+ return ret;
45
+ }
36
46
  /**
37
47
  * @param {string} address
38
48
  * @returns {Promise<any>}
@@ -43,6 +53,17 @@ export class BitcoinChainServiceHandle {
43
53
  const ret = wasm.bitcoinchainservicehandle_getAddressUtxos(this.__wbg_ptr, ptr0, len0);
44
54
  return ret;
45
55
  }
56
+ /**
57
+ * @param {string} txid
58
+ * @param {number} vout
59
+ * @returns {Promise<any>}
60
+ */
61
+ getOutspend(txid, vout) {
62
+ const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
63
+ const len0 = WASM_VECTOR_LEN;
64
+ const ret = wasm.bitcoinchainservicehandle_getOutspend(this.__wbg_ptr, ptr0, len0, vout);
65
+ return ret;
66
+ }
46
67
  /**
47
68
  * @param {string} txid
48
69
  * @returns {Promise<any>}
@@ -366,6 +387,14 @@ export class BreezSdk {
366
387
  const ret = wasm.breezsdk_prepareSendPayment(this.__wbg_ptr, request);
367
388
  return ret;
368
389
  }
390
+ /**
391
+ * @param {PrepareUnilateralExitRequest} request
392
+ * @returns {Promise<PrepareUnilateralExitResponse>}
393
+ */
394
+ prepareUnilateralExit(request) {
395
+ const ret = wasm.breezsdk_prepareUnilateralExit(this.__wbg_ptr, request);
396
+ return ret;
397
+ }
369
398
  /**
370
399
  * @param {PublishSignedLnurlPayPackageRequest} request
371
400
  * @returns {Promise<PublishSignedLnurlPayResponse>}
@@ -406,7 +435,7 @@ export class BreezSdk {
406
435
  return ret;
407
436
  }
408
437
  /**
409
- * @returns {Promise<void>}
438
+ * @returns {Promise<RefundPendingConversionsResponse>}
410
439
  */
411
440
  refundPendingConversions() {
412
441
  const ret = wasm.breezsdk_refundPendingConversions(this.__wbg_ptr);
@@ -462,6 +491,15 @@ export class BreezSdk {
462
491
  const ret = wasm.breezsdk_syncWallet(this.__wbg_ptr, request);
463
492
  return ret;
464
493
  }
494
+ /**
495
+ * @param {UnilateralExitRequest} request
496
+ * @param {CpfpSigner} signer
497
+ * @returns {Promise<UnilateralExitResponse>}
498
+ */
499
+ unilateralExit(request, signer) {
500
+ const ret = wasm.breezsdk_unilateralExit(this.__wbg_ptr, request, signer);
501
+ return ret;
502
+ }
465
503
  /**
466
504
  * @param {UnregisterWebhookRequest} request
467
505
  * @returns {Promise<void>}
@@ -489,6 +527,39 @@ export class BreezSdk {
489
527
  }
490
528
  if (Symbol.dispose) BreezSdk.prototype[Symbol.dispose] = BreezSdk.prototype.free;
491
529
 
530
+ /**
531
+ * A CPFP signer matching the `CpfpSigner` TypeScript interface.
532
+ */
533
+ export class DefaultCpfpSigner {
534
+ static __wrap(ptr) {
535
+ const obj = Object.create(DefaultCpfpSigner.prototype);
536
+ obj.__wbg_ptr = ptr;
537
+ DefaultCpfpSignerFinalization.register(obj, obj.__wbg_ptr, obj);
538
+ return obj;
539
+ }
540
+ __destroy_into_raw() {
541
+ const ptr = this.__wbg_ptr;
542
+ this.__wbg_ptr = 0;
543
+ DefaultCpfpSignerFinalization.unregister(this);
544
+ return ptr;
545
+ }
546
+ free() {
547
+ const ptr = this.__destroy_into_raw();
548
+ wasm.__wbg_defaultcpfpsigner_free(ptr, 0);
549
+ }
550
+ /**
551
+ * @param {Uint8Array} psbt_bytes
552
+ * @returns {Promise<Uint8Array>}
553
+ */
554
+ signPsbt(psbt_bytes) {
555
+ const ptr0 = passArray8ToWasm0(psbt_bytes, wasm.__wbindgen_malloc);
556
+ const len0 = WASM_VECTOR_LEN;
557
+ const ret = wasm.defaultcpfpsigner_signPsbt(this.__wbg_ptr, ptr0, len0);
558
+ return ret;
559
+ }
560
+ }
561
+ if (Symbol.dispose) DefaultCpfpSigner.prototype[Symbol.dispose] = DefaultCpfpSigner.prototype.free;
562
+
492
563
  /**
493
564
  * A JS handle to a backend's own session store (from `defaultSessionStore`),
494
565
  * exposing the same `getSession` / `setSession` interface. Wrap it in a JS
@@ -878,6 +949,17 @@ export class ExternalSparkSignerHandle {
878
949
  const ret = wasm.externalsparksignerhandle_signFrost(this.__wbg_ptr, ptr0, len0);
879
950
  return ret;
880
951
  }
952
+ /**
953
+ * @param {ExternalTreeNodeId} leaf_id
954
+ * @param {Uint8Array} sighash
955
+ * @returns {Promise<SchnorrSignatureBytes>}
956
+ */
957
+ signLeafRefundSpend(leaf_id, sighash) {
958
+ const ptr0 = passArray8ToWasm0(sighash, wasm.__wbindgen_malloc);
959
+ const len0 = WASM_VECTOR_LEN;
960
+ const ret = wasm.externalsparksignerhandle_signLeafRefundSpend(this.__wbg_ptr, leaf_id, ptr0, len0);
961
+ return ret;
962
+ }
881
963
  /**
882
964
  * @param {Uint8Array} message
883
965
  * @returns {Promise<EcdsaSignatureBytes>}
@@ -1051,6 +1133,23 @@ export class PasskeyClient {
1051
1133
  const ret = wasm.passkeyclient_checkAvailability(this.__wbg_ptr);
1052
1134
  return ret;
1053
1135
  }
1136
+ /**
1137
+ * Single-CTA onboarding: silent sign-in that falls through to
1138
+ * registration when no credential exists on the device. Pins
1139
+ * immediate mediation, so on web only use it where the browser
1140
+ * advertises it (`supportsImmediateMediation`); otherwise the silent
1141
+ * probe degrades to the standard picker and a dismiss does not fall
1142
+ * through to register, so
1143
+ * present an explicit create / sign-in choice instead. Called without
1144
+ * a `label`, the response `labels` lists a returning user's wallets
1145
+ * for a picker.
1146
+ * @param {ConnectWithPasskeyRequest} request
1147
+ * @returns {Promise<ConnectWithPasskeyResponse>}
1148
+ */
1149
+ connectWithPasskey(request) {
1150
+ const ret = wasm.passkeyclient_connectWithPasskey(this.__wbg_ptr, request);
1151
+ return ret;
1152
+ }
1054
1153
  /**
1055
1154
  * Label sub-object. List / publish labels for this passkey's identity.
1056
1155
  * @returns {PasskeyLabels}
@@ -1099,6 +1198,18 @@ export class PasskeyClient {
1099
1198
  const ret = wasm.passkeyclient_signIn(this.__wbg_ptr, request);
1100
1199
  return ret;
1101
1200
  }
1201
+ /**
1202
+ * Whether this browser advertises WebAuthn immediate mediation: the
1203
+ * silent single-CTA probe (a no-credential sign-in fast-fails with no
1204
+ * UI) works here, so a web host can pick single- vs two-button
1205
+ * onboarding. Web-only and WASM-only: native does the silent probe
1206
+ * inherently, so there is nothing to query off-web.
1207
+ * @returns {Promise<boolean>}
1208
+ */
1209
+ supportsImmediateMediation() {
1210
+ const ret = wasm.passkeyclient_supportsImmediateMediation(this.__wbg_ptr);
1211
+ return ret;
1212
+ }
1102
1213
  }
1103
1214
  if (Symbol.dispose) PasskeyClient.prototype[Symbol.dispose] = PasskeyClient.prototype.free;
1104
1215
 
@@ -1763,6 +1874,21 @@ export function postgresStorage(config) {
1763
1874
  return WasmStorageConfig.__wrap(ret);
1764
1875
  }
1765
1876
 
1877
+ /**
1878
+ * Creates a default CPFP signer backed by a single private key.
1879
+ * @param {Uint8Array} secret_key_bytes
1880
+ * @returns {DefaultCpfpSigner}
1881
+ */
1882
+ export function singleKeyCpfpSigner(secret_key_bytes) {
1883
+ const ptr0 = passArray8ToWasm0(secret_key_bytes, wasm.__wbindgen_malloc);
1884
+ const len0 = WASM_VECTOR_LEN;
1885
+ const ret = wasm.singleKeyCpfpSigner(ptr0, len0);
1886
+ if (ret[2]) {
1887
+ throw takeFromExternrefTable0(ret[1]);
1888
+ }
1889
+ return DefaultCpfpSigner.__wrap(ret[0]);
1890
+ }
1891
+
1766
1892
  /**
1767
1893
  * Runs automatically when the wasm module is instantiated. Installs the
1768
1894
  * panic hook so Rust panics surface as readable `console.error` output
@@ -2295,6 +2421,18 @@ export function __wbg_from_ff141b1e4c69b979(arg0) {
2295
2421
  const ret = Array.from(arg0);
2296
2422
  return ret;
2297
2423
  }
2424
+ export function __wbg_getAddressTxos_3ca1c4b39dd84911() { return handleError(function (arg0, arg1, arg2) {
2425
+ let deferred0_0;
2426
+ let deferred0_1;
2427
+ try {
2428
+ deferred0_0 = arg1;
2429
+ deferred0_1 = arg2;
2430
+ const ret = arg0.getAddressTxos(getStringFromWasm0(arg1, arg2));
2431
+ return ret;
2432
+ } finally {
2433
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2434
+ }
2435
+ }, arguments); }
2298
2436
  export function __wbg_getAddressUtxos_9526b6d8078b867e() { return handleError(function (arg0, arg1, arg2) {
2299
2437
  let deferred0_0;
2300
2438
  let deferred0_1;
@@ -2360,6 +2498,18 @@ export function __wbg_getLeaves_5259dc2b9de80ff0() { return handleError(function
2360
2498
  const ret = arg0.getLeaves();
2361
2499
  return ret;
2362
2500
  }, arguments); }
2501
+ export function __wbg_getOutspend_4b3c117972515790() { return handleError(function (arg0, arg1, arg2, arg3) {
2502
+ let deferred0_0;
2503
+ let deferred0_1;
2504
+ try {
2505
+ deferred0_0 = arg1;
2506
+ deferred0_1 = arg2;
2507
+ const ret = arg0.getOutspend(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
2508
+ return ret;
2509
+ } finally {
2510
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2511
+ }
2512
+ }, arguments); }
2363
2513
  export function __wbg_getPaymentById_6d677ada5879df99() { return handleError(function (arg0, arg1, arg2) {
2364
2514
  let deferred0_0;
2365
2515
  let deferred0_1;
@@ -3189,12 +3339,24 @@ export function __wbg_signHashSchnorr_fc8afda9a7ee021a() { return handleError(fu
3189
3339
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3190
3340
  }
3191
3341
  }, arguments); }
3342
+ export function __wbg_signLeafRefundSpend_dc0eea305a0dde9c() { return handleError(function (arg0, arg1, arg2, arg3) {
3343
+ var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
3344
+ wasm.__wbindgen_free(arg2, arg3 * 1, 1);
3345
+ const ret = arg0.signLeafRefundSpend(arg1, v0);
3346
+ return ret;
3347
+ }, arguments); }
3192
3348
  export function __wbg_signMessage_80ec0b0dfc7f00ee() { return handleError(function (arg0, arg1, arg2) {
3193
3349
  var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
3194
3350
  wasm.__wbindgen_free(arg1, arg2 * 1, 1);
3195
3351
  const ret = arg0.signMessage(v0);
3196
3352
  return ret;
3197
3353
  }, arguments); }
3354
+ export function __wbg_signPsbt_625c8cbdec488cc6() { return handleError(function (arg0, arg1, arg2) {
3355
+ var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
3356
+ wasm.__wbindgen_free(arg1, arg2 * 1, 1);
3357
+ const ret = arg0.signPsbt(v0);
3358
+ return ret;
3359
+ }, arguments); }
3198
3360
  export function __wbg_signSparkInvoice_cca6c7f35b5e85d2() { return handleError(function (arg0, arg1) {
3199
3361
  const ret = arg0.signSparkInvoice(arg1);
3200
3362
  return ret;
@@ -3250,6 +3412,10 @@ export function __wbg_subarray_fbe3cef290e1fa43(arg0, arg1, arg2) {
3250
3412
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3251
3413
  return ret;
3252
3414
  }
3415
+ export function __wbg_supportsImmediateMediation_a50b46b1cdfacd3d() { return handleError(function (arg0) {
3416
+ const ret = arg0.supportsImmediateMediation();
3417
+ return ret;
3418
+ }, arguments); }
3253
3419
  export function __wbg_syncAddOutgoingChange_69db2a1430cbd55a() { return handleError(function (arg0, arg1) {
3254
3420
  const ret = arg0.syncAddOutgoingChange(arg1);
3255
3421
  return ret;
@@ -3402,62 +3568,62 @@ export function __wbg_wasmsdkcontext_new(arg0) {
3402
3568
  return ret;
3403
3569
  }
3404
3570
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
3405
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3571
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3406
3572
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575);
3407
3573
  return ret;
3408
3574
  }
3409
3575
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
3410
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3576
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3411
3577
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
3412
3578
  return ret;
3413
3579
  }
3414
3580
  export function __wbindgen_cast_0000000000000003(arg0, arg1) {
3415
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3581
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3416
3582
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
3417
3583
  return ret;
3418
3584
  }
3419
3585
  export function __wbindgen_cast_0000000000000004(arg0, arg1) {
3420
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3586
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3421
3587
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
3422
3588
  return ret;
3423
3589
  }
3424
3590
  export function __wbindgen_cast_0000000000000005(arg0, arg1) {
3425
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3591
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3426
3592
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
3427
3593
  return ret;
3428
3594
  }
3429
3595
  export function __wbindgen_cast_0000000000000006(arg0, arg1) {
3430
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3596
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3431
3597
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
3432
3598
  return ret;
3433
3599
  }
3434
3600
  export function __wbindgen_cast_0000000000000007(arg0, arg1) {
3435
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3601
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3436
3602
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6);
3437
3603
  return ret;
3438
3604
  }
3439
3605
  export function __wbindgen_cast_0000000000000008(arg0, arg1) {
3440
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3606
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3441
3607
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7);
3442
3608
  return ret;
3443
3609
  }
3444
3610
  export function __wbindgen_cast_0000000000000009(arg0, arg1) {
3445
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3611
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3446
3612
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8);
3447
3613
  return ret;
3448
3614
  }
3449
3615
  export function __wbindgen_cast_000000000000000a(arg0, arg1) {
3450
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3616
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3451
3617
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9);
3452
3618
  return ret;
3453
3619
  }
3454
3620
  export function __wbindgen_cast_000000000000000b(arg0, arg1) {
3455
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 392, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3621
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 394, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3456
3622
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
3457
3623
  return ret;
3458
3624
  }
3459
3625
  export function __wbindgen_cast_000000000000000c(arg0, arg1) {
3460
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 421, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3626
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 425, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3461
3627
  const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
3462
3628
  return ret;
3463
3629
  }
@@ -3635,6 +3801,9 @@ const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === '
3635
3801
  const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
3636
3802
  ? { register: () => {}, unregister: () => {} }
3637
3803
  : new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
3804
+ const DefaultCpfpSignerFinalization = (typeof FinalizationRegistry === 'undefined')
3805
+ ? { register: () => {}, unregister: () => {} }
3806
+ : new FinalizationRegistry(ptr => wasm.__wbg_defaultcpfpsigner_free(ptr, 1));
3638
3807
  const DefaultSessionStoreFinalization = (typeof FinalizationRegistry === 'undefined')
3639
3808
  ? { register: () => {}, unregister: () => {} }
3640
3809
  : new FinalizationRegistry(ptr => wasm.__wbg_defaultsessionstore_free(ptr, 1));
@@ -3,6 +3,7 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_bitcoinchainservicehandle_free: (a: number, b: number) => void;
5
5
  export const __wbg_breezsdk_free: (a: number, b: number) => void;
6
+ export const __wbg_defaultcpfpsigner_free: (a: number, b: number) => void;
6
7
  export const __wbg_externalsigners_free: (a: number, b: number) => void;
7
8
  export const __wbg_passkeyclient_free: (a: number, b: number) => void;
8
9
  export const __wbg_passkeylabels_free: (a: number, b: number) => void;
@@ -11,7 +12,9 @@ export const __wbg_tokenissuer_free: (a: number, b: number) => void;
11
12
  export const __wbg_wasmsdkcontext_free: (a: number, b: number) => void;
12
13
  export const __wbg_wasmstorageconfig_free: (a: number, b: number) => void;
13
14
  export const bitcoinchainservicehandle_broadcastTransaction: (a: number, b: number, c: number) => any;
15
+ export const bitcoinchainservicehandle_getAddressTxos: (a: number, b: number, c: number) => any;
14
16
  export const bitcoinchainservicehandle_getAddressUtxos: (a: number, b: number, c: number) => any;
17
+ export const bitcoinchainservicehandle_getOutspend: (a: number, b: number, c: number, d: number) => any;
15
18
  export const bitcoinchainservicehandle_getTransactionHex: (a: number, b: number, c: number) => any;
16
19
  export const bitcoinchainservicehandle_getTransactionStatus: (a: number, b: number, c: number) => any;
17
20
  export const bitcoinchainservicehandle_recommendedFees: (a: number) => any;
@@ -50,6 +53,7 @@ export const breezsdk_optimizeLeaves: (a: number, b: any) => any;
50
53
  export const breezsdk_parse: (a: number, b: number, c: number) => any;
51
54
  export const breezsdk_prepareLnurlPay: (a: number, b: any) => any;
52
55
  export const breezsdk_prepareSendPayment: (a: number, b: any) => any;
56
+ export const breezsdk_prepareUnilateralExit: (a: number, b: any) => any;
53
57
  export const breezsdk_publishSignedLnurlPayPackage: (a: number, b: any) => any;
54
58
  export const breezsdk_publishSignedTransferPackage: (a: number, b: any) => any;
55
59
  export const breezsdk_receivePayment: (a: number, b: any) => any;
@@ -62,6 +66,7 @@ export const breezsdk_removeEventListener: (a: number, b: number, c: number) =>
62
66
  export const breezsdk_sendPayment: (a: number, b: any) => any;
63
67
  export const breezsdk_signMessage: (a: number, b: any) => any;
64
68
  export const breezsdk_syncWallet: (a: number, b: any) => any;
69
+ export const breezsdk_unilateralExit: (a: number, b: any, c: any) => any;
65
70
  export const breezsdk_unregisterWebhook: (a: number, b: any) => any;
66
71
  export const breezsdk_updateContact: (a: number, b: any) => any;
67
72
  export const breezsdk_updateUserSettings: (a: number, b: any) => any;
@@ -77,6 +82,7 @@ export const defaultPostgresStorageConfig: (a: number, b: number) => any;
77
82
  export const defaultServerConfig: (a: any) => any;
78
83
  export const defaultSessionStore: (a: number, b: any, c: number, d: number) => any;
79
84
  export const defaultStorage: (a: number, b: number) => number;
85
+ export const defaultcpfpsigner_signPsbt: (a: number, b: number, c: number) => any;
80
86
  export const defaultsessionstore_getSession: (a: number, b: number, c: number) => any;
81
87
  export const defaultsessionstore_setSession: (a: number, b: number, c: number, d: any) => any;
82
88
  export const externalbreezsignerhandle_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
@@ -103,6 +109,7 @@ export const externalsparksignerhandle_prepareTokenTransaction: (a: number, b: a
103
109
  export const externalsparksignerhandle_prepareTransfer: (a: number, b: any) => any;
104
110
  export const externalsparksignerhandle_signAuthenticationChallenge: (a: number, b: number, c: number) => any;
105
111
  export const externalsparksignerhandle_signFrost: (a: number, b: number, c: number) => any;
112
+ export const externalsparksignerhandle_signLeafRefundSpend: (a: number, b: any, c: number, d: number) => any;
106
113
  export const externalsparksignerhandle_signMessage: (a: number, b: number, c: number) => any;
107
114
  export const externalsparksignerhandle_signSparkInvoice: (a: number, b: any) => any;
108
115
  export const externalsparksignerhandle_signStaticDepositRefund: (a: number, b: any) => any;
@@ -113,10 +120,12 @@ export const mysqlStorage: (a: any) => number;
113
120
  export const newRestChainService: (a: number, b: number, c: any, d: any, e: number) => any;
114
121
  export const newSharedSdkContext: (a: any) => any;
115
122
  export const passkeyclient_checkAvailability: (a: number) => any;
123
+ export const passkeyclient_connectWithPasskey: (a: number, b: any) => any;
116
124
  export const passkeyclient_labels: (a: number) => number;
117
125
  export const passkeyclient_new: (a: any, b: number, c: number, d: number) => number;
118
126
  export const passkeyclient_register: (a: number, b: any) => any;
119
127
  export const passkeyclient_signIn: (a: number, b: any) => any;
128
+ export const passkeyclient_supportsImmediateMediation: (a: number) => any;
120
129
  export const passkeylabels_list: (a: number) => any;
121
130
  export const passkeylabels_store: (a: number, b: number, c: number) => any;
122
131
  export const postgresStorage: (a: any) => number;
@@ -137,6 +146,7 @@ export const sdkbuilder_withSessionStore: (a: number, b: any) => number;
137
146
  export const sdkbuilder_withSharedContext: (a: number, b: number) => number;
138
147
  export const sdkbuilder_withStorage: (a: number, b: any) => number;
139
148
  export const sdkbuilder_withStorageBackend: (a: number, b: number) => number;
149
+ export const singleKeyCpfpSigner: (a: number, b: number) => [number, number, number];
140
150
  export const start: () => void;
141
151
  export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
142
152
  export const tokenissuer_createIssuerToken: (a: number, b: any) => any;