@breeztech/breez-sdk-spark 0.18.0 → 0.19.2

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.
@@ -114,6 +114,22 @@ export class BreezSdk {
114
114
  const ret = wasm.breezsdk_authorizeLightningAddressTransfer(this.__wbg_ptr, request);
115
115
  return ret;
116
116
  }
117
+ /**
118
+ * @param {BuildUnsignedLnurlPayPackageRequest} request
119
+ * @returns {Promise<UnsignedTransferPackage>}
120
+ */
121
+ buildUnsignedLnurlPayPackage(request) {
122
+ const ret = wasm.breezsdk_buildUnsignedLnurlPayPackage(this.__wbg_ptr, request);
123
+ return ret;
124
+ }
125
+ /**
126
+ * @param {BuildUnsignedTransferPackageRequest} request
127
+ * @returns {Promise<UnsignedTransferPackage>}
128
+ */
129
+ buildUnsignedTransferPackage(request) {
130
+ const ret = wasm.breezsdk_buildUnsignedTransferPackage(this.__wbg_ptr, request);
131
+ return ret;
132
+ }
117
133
  /**
118
134
  * @param {BuyBitcoinRequest} request
119
135
  * @returns {Promise<BuyBitcoinResponse>}
@@ -350,6 +366,22 @@ export class BreezSdk {
350
366
  const ret = wasm.breezsdk_prepareSendPayment(this.__wbg_ptr, request);
351
367
  return ret;
352
368
  }
369
+ /**
370
+ * @param {PublishSignedLnurlPayPackageRequest} request
371
+ * @returns {Promise<PublishSignedLnurlPayResponse>}
372
+ */
373
+ publishSignedLnurlPayPackage(request) {
374
+ const ret = wasm.breezsdk_publishSignedLnurlPayPackage(this.__wbg_ptr, request);
375
+ return ret;
376
+ }
377
+ /**
378
+ * @param {PublishSignedTransferPackageRequest} request
379
+ * @returns {Promise<PublishSignedTransferPackageResponse>}
380
+ */
381
+ publishSignedTransferPackage(request) {
382
+ const ret = wasm.breezsdk_publishSignedTransferPackage(this.__wbg_ptr, request);
383
+ return ret;
384
+ }
353
385
  /**
354
386
  * @param {ReceivePaymentRequest} request
355
387
  * @returns {Promise<ReceivePaymentResponse>}
@@ -457,6 +489,54 @@ export class BreezSdk {
457
489
  }
458
490
  if (Symbol.dispose) BreezSdk.prototype[Symbol.dispose] = BreezSdk.prototype.free;
459
491
 
492
+ /**
493
+ * A JS handle to a backend's own session store (from `defaultSessionStore`),
494
+ * exposing the same `getSession` / `setSession` interface. Wrap it in a JS
495
+ * `SessionStore` decorator and pass that to `SdkBuilder.withSessionStore` to
496
+ * transform tokens while keeping the backend's persistence: for example
497
+ * at-rest encryption, which the SDK does not apply itself.
498
+ */
499
+ export class DefaultSessionStore {
500
+ static __wrap(ptr) {
501
+ const obj = Object.create(DefaultSessionStore.prototype);
502
+ obj.__wbg_ptr = ptr;
503
+ DefaultSessionStoreFinalization.register(obj, obj.__wbg_ptr, obj);
504
+ return obj;
505
+ }
506
+ __destroy_into_raw() {
507
+ const ptr = this.__wbg_ptr;
508
+ this.__wbg_ptr = 0;
509
+ DefaultSessionStoreFinalization.unregister(this);
510
+ return ptr;
511
+ }
512
+ free() {
513
+ const ptr = this.__destroy_into_raw();
514
+ wasm.__wbg_defaultsessionstore_free(ptr, 0);
515
+ }
516
+ /**
517
+ * @param {string} service_identity_key
518
+ * @returns {Promise<Session>}
519
+ */
520
+ getSession(service_identity_key) {
521
+ const ptr0 = passStringToWasm0(service_identity_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
522
+ const len0 = WASM_VECTOR_LEN;
523
+ const ret = wasm.defaultsessionstore_getSession(this.__wbg_ptr, ptr0, len0);
524
+ return ret;
525
+ }
526
+ /**
527
+ * @param {string} service_identity_key
528
+ * @param {Session} session
529
+ * @returns {Promise<void>}
530
+ */
531
+ setSession(service_identity_key, session) {
532
+ const ptr0 = passStringToWasm0(service_identity_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
533
+ const len0 = WASM_VECTOR_LEN;
534
+ const ret = wasm.defaultsessionstore_setSession(this.__wbg_ptr, ptr0, len0, session);
535
+ return ret;
536
+ }
537
+ }
538
+ if (Symbol.dispose) DefaultSessionStore.prototype[Symbol.dispose] = DefaultSessionStore.prototype.free;
539
+
460
540
  /**
461
541
  * A Rust-backed [`ExternalBreezSigner`] surfaced to JS as a signer object that
462
542
  * can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
@@ -971,6 +1051,23 @@ export class PasskeyClient {
971
1051
  const ret = wasm.passkeyclient_checkAvailability(this.__wbg_ptr);
972
1052
  return ret;
973
1053
  }
1054
+ /**
1055
+ * Single-CTA onboarding: silent sign-in that falls through to
1056
+ * registration when no credential exists on the device. Pins
1057
+ * immediate mediation, so on web only use it where the browser
1058
+ * advertises it (`supportsImmediateMediation`); otherwise the silent
1059
+ * probe degrades to the standard picker and a dismiss does not fall
1060
+ * through to register, so
1061
+ * present an explicit create / sign-in choice instead. Called without
1062
+ * a `label`, the response `labels` lists a returning user's wallets
1063
+ * for a picker.
1064
+ * @param {ConnectWithPasskeyRequest} request
1065
+ * @returns {Promise<ConnectWithPasskeyResponse>}
1066
+ */
1067
+ connectWithPasskey(request) {
1068
+ const ret = wasm.passkeyclient_connectWithPasskey(this.__wbg_ptr, request);
1069
+ return ret;
1070
+ }
974
1071
  /**
975
1072
  * Label sub-object. List / publish labels for this passkey's identity.
976
1073
  * @returns {PasskeyLabels}
@@ -1019,6 +1116,18 @@ export class PasskeyClient {
1019
1116
  const ret = wasm.passkeyclient_signIn(this.__wbg_ptr, request);
1020
1117
  return ret;
1021
1118
  }
1119
+ /**
1120
+ * Whether this browser advertises WebAuthn immediate mediation: the
1121
+ * silent single-CTA probe (a no-credential sign-in fast-fails with no
1122
+ * UI) works here, so a web host can pick single- vs two-button
1123
+ * onboarding. Web-only and WASM-only: native does the silent probe
1124
+ * inherently, so there is nothing to query off-web.
1125
+ * @returns {Promise<boolean>}
1126
+ */
1127
+ supportsImmediateMediation() {
1128
+ const ret = wasm.passkeyclient_supportsImmediateMediation(this.__wbg_ptr);
1129
+ return ret;
1130
+ }
1022
1131
  }
1023
1132
  if (Symbol.dispose) PasskeyClient.prototype[Symbol.dispose] = PasskeyClient.prototype.free;
1024
1133
 
@@ -1217,6 +1326,19 @@ export class SdkBuilder {
1217
1326
  const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
1218
1327
  return SdkBuilder.__wrap(ret);
1219
1328
  }
1329
+ /**
1330
+ * Overrides the session store used to cache auth tokens, replacing the one
1331
+ * the backend provides. Pass any `SessionStore`: for example one that wraps
1332
+ * the backend's own store from `defaultSessionStore` to add at-rest
1333
+ * encryption, which the SDK does not apply itself.
1334
+ * @param {SessionStore} session_store
1335
+ * @returns {SdkBuilder}
1336
+ */
1337
+ withSessionStore(session_store) {
1338
+ const ptr = this.__destroy_into_raw();
1339
+ const ret = wasm.sdkbuilder_withSessionStore(ptr, session_store);
1340
+ return SdkBuilder.__wrap(ret);
1341
+ }
1220
1342
  /**
1221
1343
  * Threads a shared [`WasmSdkContext`] into the builder.
1222
1344
  *
@@ -1568,6 +1690,24 @@ export function defaultServerConfig(network) {
1568
1690
  return ret;
1569
1691
  }
1570
1692
 
1693
+ /**
1694
+ * The session store the `config`'s backend provides for `identity` (the wallet
1695
+ * identity public key, hex), as a handle to wrap in a `SessionStore` decorator
1696
+ * and pass to `SdkBuilder.withSessionStore`, keeping the backend's persistence.
1697
+ * A typical use is at-rest encryption, which the SDK does not apply itself.
1698
+ * @param {WasmStorageConfig} config
1699
+ * @param {Network} network
1700
+ * @param {string} identity
1701
+ * @returns {Promise<DefaultSessionStore>}
1702
+ */
1703
+ export function defaultSessionStore(config, network, identity) {
1704
+ _assertClass(config, WasmStorageConfig);
1705
+ const ptr0 = passStringToWasm0(identity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1706
+ const len0 = WASM_VECTOR_LEN;
1707
+ const ret = wasm.defaultSessionStore(config.__wbg_ptr, network, ptr0, len0);
1708
+ return ret;
1709
+ }
1710
+
1571
1711
  /**
1572
1712
  * File-based storage rooted at `storageDir` — IndexedDB in the browser,
1573
1713
  * SQLite under Node.js.
@@ -2004,6 +2144,10 @@ export function __wbg_decryptEcies_ebe426814020926b() { return handleError(funct
2004
2144
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2005
2145
  }
2006
2146
  }, arguments); }
2147
+ export function __wbg_defaultsessionstore_new(arg0) {
2148
+ const ret = DefaultSessionStore.__wrap(arg0);
2149
+ return ret;
2150
+ }
2007
2151
  export function __wbg_deleteCachedItem_b8fbe3ebea21ed7e() { return handleError(function (arg0, arg1, arg2) {
2008
2152
  let deferred0_0;
2009
2153
  let deferred0_1;
@@ -2349,6 +2493,10 @@ export function __wbg_getTransactionStatus_32c49e1985e35d63() { return handleErr
2349
2493
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2350
2494
  }
2351
2495
  }, arguments); }
2496
+ export function __wbg_getVerifiedLeafKeys_12405bb5f39ffb61() { return handleError(function (arg0) {
2497
+ const ret = arg0.getVerifiedLeafKeys();
2498
+ return ret;
2499
+ }, arguments); }
2352
2500
  export function __wbg_get_41476db20fef99a8() { return handleError(function (arg0, arg1) {
2353
2501
  const ret = Reflect.get(arg0, arg1);
2354
2502
  return ret;
@@ -2794,6 +2942,23 @@ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function (
2794
2942
  const ret = module.require;
2795
2943
  return ret;
2796
2944
  }, arguments); }
2945
+ export function __wbg_reserveTokenOutputsByOutpoints_a18be5f9fb4ab30a() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2946
+ let deferred0_0;
2947
+ let deferred0_1;
2948
+ let deferred1_0;
2949
+ let deferred1_1;
2950
+ try {
2951
+ deferred0_0 = arg1;
2952
+ deferred0_1 = arg2;
2953
+ deferred1_0 = arg4;
2954
+ deferred1_1 = arg5;
2955
+ const ret = arg0.reserveTokenOutputsByOutpoints(getStringFromWasm0(arg1, arg2), arg3, getStringFromWasm0(arg4, arg5));
2956
+ return ret;
2957
+ } finally {
2958
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2959
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2960
+ }
2961
+ }, arguments); }
2797
2962
  export function __wbg_reserveTokenOutputs_233990fbd0ce963a() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2798
2963
  let deferred0_0;
2799
2964
  let deferred0_1;
@@ -2822,6 +2987,18 @@ export function __wbg_sdkbuilder_new(arg0) {
2822
2987
  const ret = SdkBuilder.__wrap(arg0);
2823
2988
  return ret;
2824
2989
  }
2990
+ export function __wbg_selectTokenOutputs_450f20621013b14d() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2991
+ let deferred0_0;
2992
+ let deferred0_1;
2993
+ try {
2994
+ deferred0_0 = arg1;
2995
+ deferred0_1 = arg2;
2996
+ const ret = arg0.selectTokenOutputs(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5);
2997
+ return ret;
2998
+ } finally {
2999
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3000
+ }
3001
+ }, arguments); }
2825
3002
  export function __wbg_send_0edb796d05cd3239() { return handleError(function (arg0, arg1, arg2) {
2826
3003
  arg0.send(getStringFromWasm0(arg1, arg2));
2827
3004
  }, arguments); }
@@ -3102,6 +3279,10 @@ export function __wbg_subarray_fbe3cef290e1fa43(arg0, arg1, arg2) {
3102
3279
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3103
3280
  return ret;
3104
3281
  }
3282
+ export function __wbg_supportsImmediateMediation_a50b46b1cdfacd3d() { return handleError(function (arg0) {
3283
+ const ret = arg0.supportsImmediateMediation();
3284
+ return ret;
3285
+ }, arguments); }
3105
3286
  export function __wbg_syncAddOutgoingChange_69db2a1430cbd55a() { return handleError(function (arg0, arg1) {
3106
3287
  const ret = arg0.syncAddOutgoingChange(arg1);
3107
3288
  return ret;
@@ -3163,6 +3344,18 @@ export function __wbg_toString_9ae74d2321992740(arg0) {
3163
3344
  const ret = arg0.toString();
3164
3345
  return ret;
3165
3346
  }
3347
+ export function __wbg_tryReserveLeavesByIds_a6433e824993a82f() { return handleError(function (arg0, arg1, arg2, arg3) {
3348
+ let deferred0_0;
3349
+ let deferred0_1;
3350
+ try {
3351
+ deferred0_0 = arg2;
3352
+ deferred0_1 = arg3;
3353
+ const ret = arg0.tryReserveLeavesByIds(arg1, getStringFromWasm0(arg2, arg3));
3354
+ return ret;
3355
+ } finally {
3356
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3357
+ }
3358
+ }, arguments); }
3166
3359
  export function __wbg_tryReserveLeaves_d2cd87cbc2a886d2() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3167
3360
  let deferred0_0;
3168
3361
  let deferred0_1;
@@ -3175,6 +3368,10 @@ export function __wbg_tryReserveLeaves_d2cd87cbc2a886d2() { return handleError(f
3175
3368
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3176
3369
  }
3177
3370
  }, arguments); }
3371
+ export function __wbg_trySelectLeaves_ff1aeb7ffc5e4e57() { return handleError(function (arg0, arg1) {
3372
+ const ret = arg0.trySelectLeaves(arg1);
3373
+ return ret;
3374
+ }, arguments); }
3178
3375
  export function __wbg_updateDeposit_efb96cf6e6fbe7b7() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3179
3376
  let deferred0_0;
3180
3377
  let deferred0_1;
@@ -3239,61 +3436,61 @@ export function __wbg_wasmsdkcontext_new(arg0) {
3239
3436
  }
3240
3437
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
3241
3438
  // 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`.
3242
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492);
3439
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575);
3243
3440
  return ret;
3244
3441
  }
3245
3442
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
3246
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3443
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3247
3444
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
3248
3445
  return ret;
3249
3446
  }
3250
3447
  export function __wbindgen_cast_0000000000000003(arg0, arg1) {
3251
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3448
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3252
3449
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
3253
3450
  return ret;
3254
3451
  }
3255
3452
  export function __wbindgen_cast_0000000000000004(arg0, arg1) {
3256
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3453
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3257
3454
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
3258
3455
  return ret;
3259
3456
  }
3260
3457
  export function __wbindgen_cast_0000000000000005(arg0, arg1) {
3261
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3458
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3262
3459
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
3263
3460
  return ret;
3264
3461
  }
3265
3462
  export function __wbindgen_cast_0000000000000006(arg0, arg1) {
3266
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3463
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3267
3464
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
3268
3465
  return ret;
3269
3466
  }
3270
3467
  export function __wbindgen_cast_0000000000000007(arg0, arg1) {
3271
3468
  // 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`.
3272
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6);
3469
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6);
3273
3470
  return ret;
3274
3471
  }
3275
3472
  export function __wbindgen_cast_0000000000000008(arg0, arg1) {
3276
3473
  // 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`.
3277
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7);
3474
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7);
3278
3475
  return ret;
3279
3476
  }
3280
3477
  export function __wbindgen_cast_0000000000000009(arg0, arg1) {
3281
3478
  // 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`.
3282
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8);
3479
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8);
3283
3480
  return ret;
3284
3481
  }
3285
3482
  export function __wbindgen_cast_000000000000000a(arg0, arg1) {
3286
3483
  // 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`.
3287
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9);
3484
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9);
3288
3485
  return ret;
3289
3486
  }
3290
3487
  export function __wbindgen_cast_000000000000000b(arg0, arg1) {
3291
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 393, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3488
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 371, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3292
3489
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
3293
3490
  return ret;
3294
3491
  }
3295
3492
  export function __wbindgen_cast_000000000000000c(arg0, arg1) {
3296
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3493
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3297
3494
  const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
3298
3495
  return ret;
3299
3496
  }
@@ -3406,36 +3603,36 @@ function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, a
3406
3603
  wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2);
3407
3604
  }
3408
3605
 
3409
- function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492(arg0, arg1, arg2) {
3410
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492(arg0, arg1, arg2);
3606
+ function wasm_bindgen__convert__closures_____invoke__h21f6855640435575(arg0, arg1, arg2) {
3607
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575(arg0, arg1, arg2);
3411
3608
  if (ret[1]) {
3412
3609
  throw takeFromExternrefTable0(ret[0]);
3413
3610
  }
3414
3611
  }
3415
3612
 
3416
- function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6(arg0, arg1, arg2) {
3417
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6(arg0, arg1, arg2);
3613
+ function wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6(arg0, arg1, arg2) {
3614
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6(arg0, arg1, arg2);
3418
3615
  if (ret[1]) {
3419
3616
  throw takeFromExternrefTable0(ret[0]);
3420
3617
  }
3421
3618
  }
3422
3619
 
3423
- function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7(arg0, arg1, arg2) {
3424
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7(arg0, arg1, arg2);
3620
+ function wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7(arg0, arg1, arg2) {
3621
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7(arg0, arg1, arg2);
3425
3622
  if (ret[1]) {
3426
3623
  throw takeFromExternrefTable0(ret[0]);
3427
3624
  }
3428
3625
  }
3429
3626
 
3430
- function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8(arg0, arg1, arg2) {
3431
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8(arg0, arg1, arg2);
3627
+ function wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8(arg0, arg1, arg2) {
3628
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8(arg0, arg1, arg2);
3432
3629
  if (ret[1]) {
3433
3630
  throw takeFromExternrefTable0(ret[0]);
3434
3631
  }
3435
3632
  }
3436
3633
 
3437
- function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9(arg0, arg1, arg2) {
3438
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9(arg0, arg1, arg2);
3634
+ function wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9(arg0, arg1, arg2) {
3635
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9(arg0, arg1, arg2);
3439
3636
  if (ret[1]) {
3440
3637
  throw takeFromExternrefTable0(ret[0]);
3441
3638
  }
@@ -3471,6 +3668,9 @@ const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === '
3471
3668
  const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
3472
3669
  ? { register: () => {}, unregister: () => {} }
3473
3670
  : new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
3671
+ const DefaultSessionStoreFinalization = (typeof FinalizationRegistry === 'undefined')
3672
+ ? { register: () => {}, unregister: () => {} }
3673
+ : new FinalizationRegistry(ptr => wasm.__wbg_defaultsessionstore_free(ptr, 1));
3474
3674
  const ExternalBreezSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
3475
3675
  ? { register: () => {}, unregister: () => {} }
3476
3676
  : new FinalizationRegistry(ptr => wasm.__wbg_externalbreezsignerhandle_free(ptr, 1));
@@ -18,6 +18,8 @@ export const bitcoinchainservicehandle_recommendedFees: (a: number) => any;
18
18
  export const breezsdk_addContact: (a: number, b: any) => any;
19
19
  export const breezsdk_addEventListener: (a: number, b: any) => any;
20
20
  export const breezsdk_authorizeLightningAddressTransfer: (a: number, b: any) => any;
21
+ export const breezsdk_buildUnsignedLnurlPayPackage: (a: number, b: any) => any;
22
+ export const breezsdk_buildUnsignedTransferPackage: (a: number, b: any) => any;
21
23
  export const breezsdk_buyBitcoin: (a: number, b: any) => any;
22
24
  export const breezsdk_checkLightningAddressAvailable: (a: number, b: any) => any;
23
25
  export const breezsdk_checkMessage: (a: number, b: any) => any;
@@ -48,6 +50,8 @@ export const breezsdk_optimizeLeaves: (a: number, b: any) => any;
48
50
  export const breezsdk_parse: (a: number, b: number, c: number) => any;
49
51
  export const breezsdk_prepareLnurlPay: (a: number, b: any) => any;
50
52
  export const breezsdk_prepareSendPayment: (a: number, b: any) => any;
53
+ export const breezsdk_publishSignedLnurlPayPackage: (a: number, b: any) => any;
54
+ export const breezsdk_publishSignedTransferPackage: (a: number, b: any) => any;
51
55
  export const breezsdk_receivePayment: (a: number, b: any) => any;
52
56
  export const breezsdk_recommendedFees: (a: number) => any;
53
57
  export const breezsdk_refundDeposit: (a: number, b: any) => any;
@@ -71,7 +75,10 @@ export const defaultExternalSigners: (a: number, b: number, c: number, d: number
71
75
  export const defaultMysqlStorageConfig: (a: number, b: number) => any;
72
76
  export const defaultPostgresStorageConfig: (a: number, b: number) => any;
73
77
  export const defaultServerConfig: (a: any) => any;
78
+ export const defaultSessionStore: (a: number, b: any, c: number, d: number) => any;
74
79
  export const defaultStorage: (a: number, b: number) => number;
80
+ export const defaultsessionstore_getSession: (a: number, b: number, c: number) => any;
81
+ export const defaultsessionstore_setSession: (a: number, b: number, c: number, d: any) => any;
75
82
  export const externalbreezsignerhandle_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
76
83
  export const externalbreezsignerhandle_derivePublicKey: (a: number, b: number, c: number) => any;
77
84
  export const externalbreezsignerhandle_encryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
@@ -106,10 +113,12 @@ export const mysqlStorage: (a: any) => number;
106
113
  export const newRestChainService: (a: number, b: number, c: any, d: any, e: number) => any;
107
114
  export const newSharedSdkContext: (a: any) => any;
108
115
  export const passkeyclient_checkAvailability: (a: number) => any;
116
+ export const passkeyclient_connectWithPasskey: (a: number, b: any) => any;
109
117
  export const passkeyclient_labels: (a: number) => number;
110
118
  export const passkeyclient_new: (a: any, b: number, c: number, d: number) => number;
111
119
  export const passkeyclient_register: (a: number, b: any) => any;
112
120
  export const passkeyclient_signIn: (a: number, b: any) => any;
121
+ export const passkeyclient_supportsImmediateMediation: (a: number) => any;
113
122
  export const passkeylabels_list: (a: number) => any;
114
123
  export const passkeylabels_store: (a: number, b: number, c: number) => any;
115
124
  export const postgresStorage: (a: any) => number;
@@ -126,6 +135,7 @@ export const sdkbuilder_withMysqlBackend: (a: number, b: any) => [number, number
126
135
  export const sdkbuilder_withPaymentObserver: (a: number, b: any) => number;
127
136
  export const sdkbuilder_withPostgresBackend: (a: number, b: any) => [number, number, number];
128
137
  export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: any, e: number) => number;
138
+ export const sdkbuilder_withSessionStore: (a: number, b: any) => number;
129
139
  export const sdkbuilder_withSharedContext: (a: number, b: number) => number;
130
140
  export const sdkbuilder_withStorage: (a: number, b: any) => number;
131
141
  export const sdkbuilder_withStorageBackend: (a: number, b: number) => number;
@@ -156,16 +166,17 @@ export const intounderlyingsink_write: (a: number, b: any) => any;
156
166
  export const intounderlyingsource_cancel: (a: number) => void;
157
167
  export const intounderlyingsource_pull: (a: number, b: any) => any;
158
168
  export const __wbg_externalbreezsignerhandle_free: (a: number, b: number) => void;
159
- export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => void;
169
+ export const __wbg_defaultsessionstore_free: (a: number, b: number) => void;
160
170
  export const __wbg_externalsigningsignerhandle_free: (a: number, b: number) => void;
171
+ export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => void;
161
172
  export const __wbg_signingonlyexternalsigners_free: (a: number, b: number) => void;
162
173
  export const signingonlyexternalsigners_breezSigner: (a: number) => number;
163
174
  export const signingonlyexternalsigners_sparkSigner: (a: number) => number;
164
- export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492: (a: number, b: number, c: any) => [number, number];
165
- export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6: (a: number, b: number, c: any) => [number, number];
166
- export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7: (a: number, b: number, c: any) => [number, number];
167
- export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8: (a: number, b: number, c: any) => [number, number];
168
- export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9: (a: number, b: number, c: any) => [number, number];
175
+ export const wasm_bindgen__convert__closures_____invoke__h21f6855640435575: (a: number, b: number, c: any) => [number, number];
176
+ export const wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6: (a: number, b: number, c: any) => [number, number];
177
+ export const wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7: (a: number, b: number, c: any) => [number, number];
178
+ export const wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8: (a: number, b: number, c: any) => [number, number];
179
+ export const wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9: (a: number, b: number, c: any) => [number, number];
169
180
  export const wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
170
181
  export const wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2: (a: number, b: number, c: any) => void;
171
182
  export const wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2: (a: number, b: number, c: any) => void;