@breeztech/breez-sdk-spark 0.11.0-dev2 → 0.11.0-dev4

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.
@@ -238,15 +238,28 @@ export function defaultPostgresStorageConfig(connection_string) {
238
238
  return ret;
239
239
  }
240
240
 
241
+ function takeFromExternrefTable0(idx) {
242
+ const value = wasm.__wbindgen_export_5.get(idx);
243
+ wasm.__externref_table_dealloc(idx);
244
+ return value;
245
+ }
241
246
  /**
242
- * Creates a default external signer from a mnemonic phrase.
243
- *
244
- * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
245
- * @returns {Promise<SparkStatus>}
247
+ * @param {string} mnemonic
248
+ * @param {string | null | undefined} passphrase
249
+ * @param {Network} network
250
+ * @param {KeySetConfig | null} [key_set_config]
251
+ * @returns {DefaultSigner}
246
252
  */
247
- export function getSparkStatus() {
248
- const ret = wasm.getSparkStatus();
249
- return ret;
253
+ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
254
+ const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
255
+ const len0 = WASM_VECTOR_LEN;
256
+ var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
257
+ var len1 = WASM_VECTOR_LEN;
258
+ const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
259
+ if (ret[2]) {
260
+ throw takeFromExternrefTable0(ret[1]);
261
+ }
262
+ return DefaultSigner.__wrap(ret[0]);
250
263
  }
251
264
 
252
265
  /**
@@ -270,30 +283,6 @@ export function initLogging(logger, filter) {
270
283
  return ret;
271
284
  }
272
285
 
273
- function takeFromExternrefTable0(idx) {
274
- const value = wasm.__wbindgen_export_5.get(idx);
275
- wasm.__externref_table_dealloc(idx);
276
- return value;
277
- }
278
- /**
279
- * @param {string} mnemonic
280
- * @param {string | null | undefined} passphrase
281
- * @param {Network} network
282
- * @param {KeySetConfig | null} [key_set_config]
283
- * @returns {DefaultSigner}
284
- */
285
- export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
286
- const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
287
- const len0 = WASM_VECTOR_LEN;
288
- var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
289
- var len1 = WASM_VECTOR_LEN;
290
- const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
291
- if (ret[2]) {
292
- throw takeFromExternrefTable0(ret[1]);
293
- }
294
- return DefaultSigner.__wrap(ret[0]);
295
- }
296
-
297
286
  /**
298
287
  * @param {ConnectRequest} request
299
288
  * @returns {Promise<BreezSdk>}
@@ -303,6 +292,17 @@ export function connect(request) {
303
292
  return ret;
304
293
  }
305
294
 
295
+ /**
296
+ * Creates a default external signer from a mnemonic phrase.
297
+ *
298
+ * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
299
+ * @returns {Promise<SparkStatus>}
300
+ */
301
+ export function getSparkStatus() {
302
+ const ret = wasm.getSparkStatus();
303
+ return ret;
304
+ }
305
+
306
306
  /**
307
307
  * @param {Config} config
308
308
  * @param {ExternalSigner} signer
@@ -333,18 +333,20 @@ export function task_worker_entry_point(ptr) {
333
333
  }
334
334
  }
335
335
 
336
- function __wbg_adapter_64(arg0, arg1) {
337
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2ac8515d28de5817(arg0, arg1);
336
+ function __wbg_adapter_64(arg0, arg1, arg2) {
337
+ wasm.closure440_externref_shim(arg0, arg1, arg2);
338
338
  }
339
339
 
340
- function __wbg_adapter_67(arg0, arg1, arg2) {
341
- wasm.closure1068_externref_shim(arg0, arg1, arg2);
340
+ function __wbg_adapter_69(arg0, arg1) {
341
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29e986a86553656d(arg0, arg1);
342
342
  }
343
343
 
344
- function __wbg_adapter_301(arg0, arg1, arg2, arg3) {
345
- wasm.closure651_externref_shim(arg0, arg1, arg2, arg3);
344
+ function __wbg_adapter_339(arg0, arg1, arg2, arg3) {
345
+ wasm.closure720_externref_shim(arg0, arg1, arg2, arg3);
346
346
  }
347
347
 
348
+ const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
349
+
348
350
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
349
351
 
350
352
  const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
@@ -1051,6 +1053,91 @@ export class IntoUnderlyingSource {
1051
1053
  }
1052
1054
  }
1053
1055
 
1056
+ const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
1057
+ ? { register: () => {}, unregister: () => {} }
1058
+ : new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr >>> 0, 1));
1059
+ /**
1060
+ * Passkey-based wallet operations using WebAuthn PRF extension.
1061
+ *
1062
+ * Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
1063
+ * wallet derivation and name management via Nostr relays.
1064
+ */
1065
+ export class Passkey {
1066
+
1067
+ __destroy_into_raw() {
1068
+ const ptr = this.__wbg_ptr;
1069
+ this.__wbg_ptr = 0;
1070
+ PasskeyFinalization.unregister(this);
1071
+ return ptr;
1072
+ }
1073
+
1074
+ free() {
1075
+ const ptr = this.__destroy_into_raw();
1076
+ wasm.__wbg_passkey_free(ptr, 0);
1077
+ }
1078
+ /**
1079
+ * Derive a wallet for a given label.
1080
+ *
1081
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1082
+ *
1083
+ * @param label - Optional label string (defaults to "Default")
1084
+ * @param {string | null} [label]
1085
+ * @returns {Promise<Wallet>}
1086
+ */
1087
+ getWallet(label) {
1088
+ var ptr0 = isLikeNone(label) ? 0 : passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1089
+ var len0 = WASM_VECTOR_LEN;
1090
+ const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
1091
+ return ret;
1092
+ }
1093
+ /**
1094
+ * List all labels published to Nostr for this passkey's identity.
1095
+ *
1096
+ * Requires 1 PRF call (for Nostr identity derivation).
1097
+ * @returns {Promise<string[]>}
1098
+ */
1099
+ listLabels() {
1100
+ const ret = wasm.passkey_listLabels(this.__wbg_ptr);
1101
+ return ret;
1102
+ }
1103
+ /**
1104
+ * Publish a label to Nostr relays for this passkey's identity.
1105
+ *
1106
+ * Idempotent: if the label already exists, it is not published again.
1107
+ * Requires 1 PRF call.
1108
+ * @param {string} label
1109
+ * @returns {Promise<void>}
1110
+ */
1111
+ storeLabel(label) {
1112
+ const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1113
+ const len0 = WASM_VECTOR_LEN;
1114
+ const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
1115
+ return ret;
1116
+ }
1117
+ /**
1118
+ * Check if passkey PRF is available on this device.
1119
+ * @returns {Promise<boolean>}
1120
+ */
1121
+ isAvailable() {
1122
+ const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1123
+ return ret;
1124
+ }
1125
+ /**
1126
+ * Create a new `Passkey` instance.
1127
+ *
1128
+ * @param prfProvider - Platform implementation of passkey PRF operations
1129
+ * @param relayConfig - Optional configuration for Nostr relay connections
1130
+ * @param {PasskeyPrfProvider} prf_provider
1131
+ * @param {NostrRelayConfig | null} [relay_config]
1132
+ */
1133
+ constructor(prf_provider, relay_config) {
1134
+ const ret = wasm.passkey_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
1135
+ this.__wbg_ptr = ret >>> 0;
1136
+ PasskeyFinalization.register(this, this.__wbg_ptr, this);
1137
+ return this;
1138
+ }
1139
+ }
1140
+
1054
1141
  const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
1055
1142
  ? { register: () => {}, unregister: () => {} }
1056
1143
  : new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr >>> 0, 1));
@@ -1172,6 +1259,15 @@ export class SdkBuilder {
1172
1259
  const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
1173
1260
  return SdkBuilder.__wrap(ret);
1174
1261
  }
1262
+ /**
1263
+ * @param {PostgresStorageConfig} config
1264
+ * @returns {SdkBuilder}
1265
+ */
1266
+ withPostgresTreeStore(config) {
1267
+ const ptr = this.__destroy_into_raw();
1268
+ const ret = wasm.sdkbuilder_withPostgresTreeStore(ptr, config);
1269
+ return SdkBuilder.__wrap(ret);
1270
+ }
1175
1271
  /**
1176
1272
  * @param {Config} config
1177
1273
  * @param {Seed} seed
@@ -1301,6 +1397,11 @@ export function __wbg_addDeposit_5b1f93e7014f1e18() { return handleError(functio
1301
1397
  }
1302
1398
  }, arguments) };
1303
1399
 
1400
+ export function __wbg_addLeaves_226f98499cdaa66d() { return handleError(function (arg0, arg1) {
1401
+ const ret = arg0.addLeaves(arg1);
1402
+ return ret;
1403
+ }, arguments) };
1404
+
1304
1405
  export function __wbg_aggregateFrost_053f2d54394422d5() { return handleError(function (arg0, arg1) {
1305
1406
  const ret = arg0.aggregateFrost(arg1);
1306
1407
  return ret;
@@ -1380,6 +1481,19 @@ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg
1380
1481
  return ret;
1381
1482
  }, arguments) };
1382
1483
 
1484
+ export function __wbg_cancelReservation_d85a13db3e8e3c7b() { return handleError(function (arg0, arg1, arg2) {
1485
+ let deferred0_0;
1486
+ let deferred0_1;
1487
+ try {
1488
+ deferred0_0 = arg1;
1489
+ deferred0_1 = arg2;
1490
+ const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
1491
+ return ret;
1492
+ } finally {
1493
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1494
+ }
1495
+ }, arguments) };
1496
+
1383
1497
  export function __wbg_cancel_8a308660caa6cadf(arg0) {
1384
1498
  const ret = arg0.cancel();
1385
1499
  return ret;
@@ -1390,11 +1504,20 @@ export function __wbg_catch_a6e601879b2610e9(arg0, arg1) {
1390
1504
  return ret;
1391
1505
  };
1392
1506
 
1507
+ export function __wbg_clearTimeout_5a54f8841c30079a(arg0) {
1508
+ const ret = clearTimeout(arg0);
1509
+ return ret;
1510
+ };
1511
+
1393
1512
  export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
1394
1513
  const ret = clearTimeout(arg0);
1395
1514
  return ret;
1396
1515
  };
1397
1516
 
1517
+ export function __wbg_close_2893b7d056a0627d() { return handleError(function (arg0) {
1518
+ arg0.close();
1519
+ }, arguments) };
1520
+
1398
1521
  export function __wbg_close_304cc1fef3466669() { return handleError(function (arg0) {
1399
1522
  arg0.close();
1400
1523
  }, arguments) };
@@ -1408,6 +1531,11 @@ export function __wbg_code_cfd8f6868bdaed9b(arg0) {
1408
1531
  return ret;
1409
1532
  };
1410
1533
 
1534
+ export function __wbg_code_f4ec1e6e2e1b0417(arg0) {
1535
+ const ret = arg0.code;
1536
+ return ret;
1537
+ };
1538
+
1411
1539
  export function __wbg_createDefaultStorage_458aa01b5eaead27() { return handleError(function (arg0, arg1, arg2) {
1412
1540
  const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
1413
1541
  return ret;
@@ -1418,11 +1546,21 @@ export function __wbg_createPostgresStorage_46770cbf8e947f9e() { return handleEr
1418
1546
  return ret;
1419
1547
  }, arguments) };
1420
1548
 
1549
+ export function __wbg_createPostgresTreeStore_7887b0b703c72f83() { return handleError(function (arg0, arg1) {
1550
+ const ret = createPostgresTreeStore(arg0, arg1);
1551
+ return ret;
1552
+ }, arguments) };
1553
+
1421
1554
  export function __wbg_crypto_574e78ad8b13b65f(arg0) {
1422
1555
  const ret = arg0.crypto;
1423
1556
  return ret;
1424
1557
  };
1425
1558
 
1559
+ export function __wbg_data_432d9c3df2630942(arg0) {
1560
+ const ret = arg0.data;
1561
+ return ret;
1562
+ };
1563
+
1426
1564
  export function __wbg_deleteCachedItem_ff3c84380e94360b() { return handleError(function (arg0, arg1, arg2) {
1427
1565
  let deferred0_0;
1428
1566
  let deferred0_1;
@@ -1480,6 +1618,19 @@ export function __wbg_deleteRequest_7be0a74a10deac70() { return handleError(func
1480
1618
  }
1481
1619
  }, arguments) };
1482
1620
 
1621
+ export function __wbg_derivePrfSeed_8584c0fcf554b593() { return handleError(function (arg0, arg1, arg2) {
1622
+ let deferred0_0;
1623
+ let deferred0_1;
1624
+ try {
1625
+ deferred0_0 = arg1;
1626
+ deferred0_1 = arg2;
1627
+ const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
1628
+ return ret;
1629
+ } finally {
1630
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1631
+ }
1632
+ }, arguments) };
1633
+
1483
1634
  export function __wbg_derivePublicKey_736fb57b6852f201() { return handleError(function (arg0, arg1, arg2) {
1484
1635
  let deferred0_0;
1485
1636
  let deferred0_1;
@@ -1576,6 +1727,19 @@ export function __wbg_fetch_f156d10be9a5c88a(arg0) {
1576
1727
  return ret;
1577
1728
  };
1578
1729
 
1730
+ export function __wbg_finalizeReservation_a8fad570b7fe5185() { return handleError(function (arg0, arg1, arg2, arg3) {
1731
+ let deferred0_0;
1732
+ let deferred0_1;
1733
+ try {
1734
+ deferred0_0 = arg1;
1735
+ deferred0_1 = arg2;
1736
+ const ret = arg0.finalizeReservation(getStringFromWasm0(arg1, arg2), arg3);
1737
+ return ret;
1738
+ } finally {
1739
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1740
+ }
1741
+ }, arguments) };
1742
+
1579
1743
  export function __wbg_generateFrostSigningCommitments_0630bbabc5b72b42() { return handleError(function (arg0) {
1580
1744
  const ret = arg0.generateFrostSigningCommitments();
1581
1745
  return ret;
@@ -1625,6 +1789,11 @@ export function __wbg_getContact_b7300737e5dee01b() { return handleError(functio
1625
1789
  }
1626
1790
  }, arguments) };
1627
1791
 
1792
+ export function __wbg_getLeaves_c94a1c927d239738() { return handleError(function (arg0) {
1793
+ const ret = arg0.getLeaves();
1794
+ return ret;
1795
+ }, arguments) };
1796
+
1628
1797
  export function __wbg_getPaymentById_c23144bfc404b2fc() { return handleError(function (arg0, arg1, arg2) {
1629
1798
  let deferred0_0;
1630
1799
  let deferred0_1;
@@ -1824,6 +1993,17 @@ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
1824
1993
  return ret;
1825
1994
  };
1826
1995
 
1996
+ export function __wbg_instanceof_Blob_ca721ef3bdab15d1(arg0) {
1997
+ let result;
1998
+ try {
1999
+ result = arg0 instanceof Blob;
2000
+ } catch (_) {
2001
+ result = false;
2002
+ }
2003
+ const ret = result;
2004
+ return ret;
2005
+ };
2006
+
1827
2007
  export function __wbg_instanceof_DomException_ed1ccb7aaf39034c(arg0) {
1828
2008
  let result;
1829
2009
  try {
@@ -1895,6 +2075,11 @@ export function __wbg_isArray_a1eab7e0d067391b(arg0) {
1895
2075
  return ret;
1896
2076
  };
1897
2077
 
2078
+ export function __wbg_isPrfAvailable_c13e727932109c6e() { return handleError(function (arg0) {
2079
+ const ret = arg0.isPrfAvailable();
2080
+ return ret;
2081
+ }, arguments) };
2082
+
1898
2083
  export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
1899
2084
  const ret = Number.isSafeInteger(arg0);
1900
2085
  return ret;
@@ -1977,7 +2162,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1977
2162
  const a = state0.a;
1978
2163
  state0.a = 0;
1979
2164
  try {
1980
- return __wbg_adapter_301(a, state0.b, arg0, arg1);
2165
+ return __wbg_adapter_339(a, state0.b, arg0, arg1);
1981
2166
  } finally {
1982
2167
  state0.a = a;
1983
2168
  }
@@ -2004,6 +2189,11 @@ export function __wbg_new_78feb108b6472713() {
2004
2189
  return ret;
2005
2190
  };
2006
2191
 
2192
+ export function __wbg_new_92c54fc74574ef55() { return handleError(function (arg0, arg1) {
2193
+ const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
2194
+ return ret;
2195
+ }, arguments) };
2196
+
2007
2197
  export function __wbg_new_a12002a7f91c75be(arg0) {
2008
2198
  const ret = new Uint8Array(arg0);
2009
2199
  return ret;
@@ -2054,6 +2244,11 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
2054
2244
  return ret;
2055
2245
  };
2056
2246
 
2247
+ export function __wbg_now_063c1184182e178a() { return handleError(function (arg0) {
2248
+ const ret = arg0.now();
2249
+ return ret;
2250
+ }, arguments) };
2251
+
2057
2252
  export function __wbg_now_2c95c9de01293173(arg0) {
2058
2253
  const ret = arg0.now();
2059
2254
  return ret;
@@ -2123,6 +2318,19 @@ export function __wbg_read_a2434af1186cb56c(arg0) {
2123
2318
  return ret;
2124
2319
  };
2125
2320
 
2321
+ export function __wbg_readyState_7ef6e63c349899ed(arg0) {
2322
+ const ret = arg0.readyState;
2323
+ return ret;
2324
+ };
2325
+
2326
+ export function __wbg_reason_49f1cede8bcf23dd(arg0, arg1) {
2327
+ const ret = arg1.reason;
2328
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2329
+ const len1 = WASM_VECTOR_LEN;
2330
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2331
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2332
+ };
2333
+
2126
2334
  export function __wbg_recommendedFees_a61f331fce46523e() { return handleError(function (arg0) {
2127
2335
  const ret = arg0.recommendedFees();
2128
2336
  return ret;
@@ -2151,6 +2359,14 @@ export function __wbg_sdkbuilder_new(arg0) {
2151
2359
  return ret;
2152
2360
  };
2153
2361
 
2362
+ export function __wbg_send_0293179ba074ffb4() { return handleError(function (arg0, arg1, arg2) {
2363
+ arg0.send(getStringFromWasm0(arg1, arg2));
2364
+ }, arguments) };
2365
+
2366
+ export function __wbg_send_fc0c204e8a1757f4() { return handleError(function (arg0, arg1, arg2) {
2367
+ arg0.send(getArrayU8FromWasm0(arg1, arg2));
2368
+ }, arguments) };
2369
+
2154
2370
  export function __wbg_setCachedItem_91b03741dfb0b4c2() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2155
2371
  let deferred0_0;
2156
2372
  let deferred0_1;
@@ -2169,6 +2385,11 @@ export function __wbg_setCachedItem_91b03741dfb0b4c2() { return handleError(func
2169
2385
  }
2170
2386
  }, arguments) };
2171
2387
 
2388
+ export function __wbg_setLeaves_d1c338c6d7d2ef28() { return handleError(function (arg0, arg1, arg2, arg3) {
2389
+ const ret = arg0.setLeaves(arg1, arg2, arg3);
2390
+ return ret;
2391
+ }, arguments) };
2392
+
2172
2393
  export function __wbg_setLnurlMetadata_0bf15cc7efb6cc11() { return handleError(function (arg0, arg1, arg2) {
2173
2394
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
2174
2395
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
@@ -2185,6 +2406,11 @@ export function __wbg_setTimeout_8f06012fba12034e(arg0, arg1) {
2185
2406
  globalThis.setTimeout(arg0, arg1);
2186
2407
  };
2187
2408
 
2409
+ export function __wbg_setTimeout_db2dbaeefb6f39c7() { return handleError(function (arg0, arg1) {
2410
+ const ret = setTimeout(arg0, arg1);
2411
+ return ret;
2412
+ }, arguments) };
2413
+
2188
2414
  export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
2189
2415
  arg0[arg1 >>> 0] = arg2;
2190
2416
  };
@@ -2207,6 +2433,10 @@ export function __wbg_set_bb8cecf6a62b9f46() { return handleError(function (arg0
2207
2433
  return ret;
2208
2434
  }, arguments) };
2209
2435
 
2436
+ export function __wbg_setbinaryType_92fa1ffd873b327c(arg0, arg1) {
2437
+ arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
2438
+ };
2439
+
2210
2440
  export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
2211
2441
  arg0.body = arg1;
2212
2442
  };
@@ -2235,6 +2465,22 @@ export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
2235
2465
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
2236
2466
  };
2237
2467
 
2468
+ export function __wbg_setonclose_14fc475a49d488fc(arg0, arg1) {
2469
+ arg0.onclose = arg1;
2470
+ };
2471
+
2472
+ export function __wbg_setonerror_8639efe354b947cd(arg0, arg1) {
2473
+ arg0.onerror = arg1;
2474
+ };
2475
+
2476
+ export function __wbg_setonmessage_6eccab530a8fb4c7(arg0, arg1) {
2477
+ arg0.onmessage = arg1;
2478
+ };
2479
+
2480
+ export function __wbg_setonopen_2da654e1f39745d5(arg0, arg1) {
2481
+ arg0.onopen = arg1;
2482
+ };
2483
+
2238
2484
  export function __wbg_setredirect_40e6a7f717a2f86a(arg0, arg1) {
2239
2485
  arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
2240
2486
  };
@@ -2414,6 +2660,19 @@ export function __wbg_toString_5285597960676b7b(arg0) {
2414
2660
  return ret;
2415
2661
  };
2416
2662
 
2663
+ export function __wbg_tryReserveLeaves_9aacd30c9750a9df() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2664
+ let deferred0_0;
2665
+ let deferred0_1;
2666
+ try {
2667
+ deferred0_0 = arg3;
2668
+ deferred0_1 = arg4;
2669
+ const ret = arg0.tryReserveLeaves(arg1, arg2 !== 0, getStringFromWasm0(arg3, arg4));
2670
+ return ret;
2671
+ } finally {
2672
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2673
+ }
2674
+ }, arguments) };
2675
+
2417
2676
  export function __wbg_updateDeposit_87746090235ed235() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2418
2677
  let deferred0_0;
2419
2678
  let deferred0_1;
@@ -2427,6 +2686,19 @@ export function __wbg_updateDeposit_87746090235ed235() { return handleError(func
2427
2686
  }
2428
2687
  }, arguments) };
2429
2688
 
2689
+ export function __wbg_updateReservation_7641cd63d1a894b8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2690
+ let deferred0_0;
2691
+ let deferred0_1;
2692
+ try {
2693
+ deferred0_0 = arg1;
2694
+ deferred0_1 = arg2;
2695
+ const ret = arg0.updateReservation(getStringFromWasm0(arg1, arg2), arg3, arg4);
2696
+ return ret;
2697
+ } finally {
2698
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2699
+ }
2700
+ }, arguments) };
2701
+
2430
2702
  export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
2431
2703
  const ret = arg1.url;
2432
2704
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -2435,6 +2707,14 @@ export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
2435
2707
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2436
2708
  };
2437
2709
 
2710
+ export function __wbg_url_ce9ab75bf9627ae4(arg0, arg1) {
2711
+ const ret = arg1.url;
2712
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2713
+ const len1 = WASM_VECTOR_LEN;
2714
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2715
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2716
+ };
2717
+
2438
2718
  export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
2439
2719
  const ret = arg0.value;
2440
2720
  return ret;
@@ -2450,6 +2730,11 @@ export function __wbg_view_fd8a56e8983f448d(arg0) {
2450
2730
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2451
2731
  };
2452
2732
 
2733
+ export function __wbg_wasClean_605b4fd66d44354a(arg0) {
2734
+ const ret = arg0.wasClean;
2735
+ return ret;
2736
+ };
2737
+
2453
2738
  export function __wbindgen_array_new() {
2454
2739
  const ret = [];
2455
2740
  return ret;
@@ -2502,13 +2787,28 @@ export function __wbindgen_cb_drop(arg0) {
2502
2787
  return ret;
2503
2788
  };
2504
2789
 
2505
- export function __wbindgen_closure_wrapper11838(arg0, arg1, arg2) {
2506
- const ret = makeMutClosure(arg0, arg1, 828, __wbg_adapter_64);
2790
+ export function __wbindgen_closure_wrapper10357(arg0, arg1, arg2) {
2791
+ const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_69);
2792
+ return ret;
2793
+ };
2794
+
2795
+ export function __wbindgen_closure_wrapper15769(arg0, arg1, arg2) {
2796
+ const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2797
+ return ret;
2798
+ };
2799
+
2800
+ export function __wbindgen_closure_wrapper5872(arg0, arg1, arg2) {
2801
+ const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2802
+ return ret;
2803
+ };
2804
+
2805
+ export function __wbindgen_closure_wrapper5878(arg0, arg1, arg2) {
2806
+ const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2507
2807
  return ret;
2508
2808
  };
2509
2809
 
2510
- export function __wbindgen_closure_wrapper13801(arg0, arg1, arg2) {
2511
- const ret = makeMutClosure(arg0, arg1, 1069, __wbg_adapter_67);
2810
+ export function __wbindgen_closure_wrapper7556(arg0, arg1, arg2) {
2811
+ const ret = makeMutClosure(arg0, arg1, 964, __wbg_adapter_69);
2512
2812
  return ret;
2513
2813
  };
2514
2814
 
@@ -3,6 +3,7 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_breezsdk_free: (a: number, b: number) => void;
5
5
  export const __wbg_defaultsigner_free: (a: number, b: number) => void;
6
+ export const __wbg_passkey_free: (a: number, b: number) => void;
6
7
  export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
7
8
  export const __wbg_tokenissuer_free: (a: number, b: number) => void;
8
9
  export const breezsdk_addContact: (a: number, b: any) => any;
@@ -73,6 +74,11 @@ export const defaultsigner_staticDepositSigningKey: (a: number, b: number) => an
73
74
  export const defaultsigner_subtractSecrets: (a: number, b: any, c: any) => any;
74
75
  export const getSparkStatus: () => any;
75
76
  export const initLogging: (a: any, b: number, c: number) => any;
77
+ export const passkey_getWallet: (a: number, b: number, c: number) => any;
78
+ export const passkey_isAvailable: (a: number) => any;
79
+ export const passkey_listLabels: (a: number) => any;
80
+ export const passkey_new: (a: any, b: number) => number;
81
+ export const passkey_storeLabel: (a: number, b: number, c: number) => any;
76
82
  export const sdkbuilder_build: (a: number) => any;
77
83
  export const sdkbuilder_new: (a: any, b: any) => number;
78
84
  export const sdkbuilder_newWithSigner: (a: any, b: any) => number;
@@ -83,6 +89,7 @@ export const sdkbuilder_withKeySet: (a: number, b: any) => number;
83
89
  export const sdkbuilder_withLnurlClient: (a: number, b: any) => number;
84
90
  export const sdkbuilder_withPaymentObserver: (a: number, b: any) => number;
85
91
  export const sdkbuilder_withPostgresStorage: (a: number, b: any) => number;
92
+ export const sdkbuilder_withPostgresTreeStore: (a: number, b: any) => number;
86
93
  export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: any, e: number) => number;
87
94
  export const sdkbuilder_withStorage: (a: number, b: any) => number;
88
95
  export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
@@ -119,7 +126,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
119
126
  export const __externref_drop_slice: (a: number, b: number) => void;
120
127
  export const __wbindgen_export_7: WebAssembly.Table;
121
128
  export const __externref_table_dealloc: (a: number) => void;
122
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2ac8515d28de5817: (a: number, b: number) => void;
123
- export const closure1068_externref_shim: (a: number, b: number, c: any) => void;
124
- export const closure651_externref_shim: (a: number, b: number, c: any, d: any) => void;
129
+ export const closure440_externref_shim: (a: number, b: number, c: any) => void;
130
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29e986a86553656d: (a: number, b: number) => void;
131
+ export const closure720_externref_shim: (a: number, b: number, c: any, d: any) => void;
125
132
  export const __wbindgen_start: () => void;