@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.
@@ -230,15 +230,28 @@ export function defaultPostgresStorageConfig(connection_string) {
230
230
  return ret;
231
231
  }
232
232
 
233
+ function takeFromExternrefTable0(idx) {
234
+ const value = wasm.__wbindgen_export_5.get(idx);
235
+ wasm.__externref_table_dealloc(idx);
236
+ return value;
237
+ }
233
238
  /**
234
- * Creates a default external signer from a mnemonic phrase.
235
- *
236
- * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
237
- * @returns {Promise<SparkStatus>}
239
+ * @param {string} mnemonic
240
+ * @param {string | null | undefined} passphrase
241
+ * @param {Network} network
242
+ * @param {KeySetConfig | null} [key_set_config]
243
+ * @returns {DefaultSigner}
238
244
  */
239
- export function getSparkStatus() {
240
- const ret = wasm.getSparkStatus();
241
- return ret;
245
+ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
246
+ const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
247
+ const len0 = WASM_VECTOR_LEN;
248
+ var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
249
+ var len1 = WASM_VECTOR_LEN;
250
+ const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
251
+ if (ret[2]) {
252
+ throw takeFromExternrefTable0(ret[1]);
253
+ }
254
+ return DefaultSigner.__wrap(ret[0]);
242
255
  }
243
256
 
244
257
  /**
@@ -262,30 +275,6 @@ export function initLogging(logger, filter) {
262
275
  return ret;
263
276
  }
264
277
 
265
- function takeFromExternrefTable0(idx) {
266
- const value = wasm.__wbindgen_export_5.get(idx);
267
- wasm.__externref_table_dealloc(idx);
268
- return value;
269
- }
270
- /**
271
- * @param {string} mnemonic
272
- * @param {string | null | undefined} passphrase
273
- * @param {Network} network
274
- * @param {KeySetConfig | null} [key_set_config]
275
- * @returns {DefaultSigner}
276
- */
277
- export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
278
- const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
279
- const len0 = WASM_VECTOR_LEN;
280
- var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
281
- var len1 = WASM_VECTOR_LEN;
282
- const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
283
- if (ret[2]) {
284
- throw takeFromExternrefTable0(ret[1]);
285
- }
286
- return DefaultSigner.__wrap(ret[0]);
287
- }
288
-
289
278
  /**
290
279
  * @param {ConnectRequest} request
291
280
  * @returns {Promise<BreezSdk>}
@@ -295,6 +284,17 @@ export function connect(request) {
295
284
  return ret;
296
285
  }
297
286
 
287
+ /**
288
+ * Creates a default external signer from a mnemonic phrase.
289
+ *
290
+ * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
291
+ * @returns {Promise<SparkStatus>}
292
+ */
293
+ export function getSparkStatus() {
294
+ const ret = wasm.getSparkStatus();
295
+ return ret;
296
+ }
297
+
298
298
  /**
299
299
  * @param {Config} config
300
300
  * @param {ExternalSigner} signer
@@ -325,18 +325,20 @@ export function task_worker_entry_point(ptr) {
325
325
  }
326
326
  }
327
327
 
328
- function __wbg_adapter_64(arg0, arg1) {
329
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2ac8515d28de5817(arg0, arg1);
328
+ function __wbg_adapter_64(arg0, arg1, arg2) {
329
+ wasm.closure440_externref_shim(arg0, arg1, arg2);
330
330
  }
331
331
 
332
- function __wbg_adapter_67(arg0, arg1, arg2) {
333
- wasm.closure1068_externref_shim(arg0, arg1, arg2);
332
+ function __wbg_adapter_69(arg0, arg1) {
333
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29e986a86553656d(arg0, arg1);
334
334
  }
335
335
 
336
- function __wbg_adapter_301(arg0, arg1, arg2, arg3) {
337
- wasm.closure651_externref_shim(arg0, arg1, arg2, arg3);
336
+ function __wbg_adapter_339(arg0, arg1, arg2, arg3) {
337
+ wasm.closure720_externref_shim(arg0, arg1, arg2, arg3);
338
338
  }
339
339
 
340
+ const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
341
+
340
342
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
341
343
 
342
344
  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"];
@@ -1043,6 +1045,91 @@ export class IntoUnderlyingSource {
1043
1045
  }
1044
1046
  }
1045
1047
 
1048
+ const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
1049
+ ? { register: () => {}, unregister: () => {} }
1050
+ : new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr >>> 0, 1));
1051
+ /**
1052
+ * Passkey-based wallet operations using WebAuthn PRF extension.
1053
+ *
1054
+ * Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
1055
+ * wallet derivation and name management via Nostr relays.
1056
+ */
1057
+ export class Passkey {
1058
+
1059
+ __destroy_into_raw() {
1060
+ const ptr = this.__wbg_ptr;
1061
+ this.__wbg_ptr = 0;
1062
+ PasskeyFinalization.unregister(this);
1063
+ return ptr;
1064
+ }
1065
+
1066
+ free() {
1067
+ const ptr = this.__destroy_into_raw();
1068
+ wasm.__wbg_passkey_free(ptr, 0);
1069
+ }
1070
+ /**
1071
+ * Derive a wallet for a given label.
1072
+ *
1073
+ * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
1074
+ *
1075
+ * @param label - Optional label string (defaults to "Default")
1076
+ * @param {string | null} [label]
1077
+ * @returns {Promise<Wallet>}
1078
+ */
1079
+ getWallet(label) {
1080
+ var ptr0 = isLikeNone(label) ? 0 : passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1081
+ var len0 = WASM_VECTOR_LEN;
1082
+ const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
1083
+ return ret;
1084
+ }
1085
+ /**
1086
+ * List all labels published to Nostr for this passkey's identity.
1087
+ *
1088
+ * Requires 1 PRF call (for Nostr identity derivation).
1089
+ * @returns {Promise<string[]>}
1090
+ */
1091
+ listLabels() {
1092
+ const ret = wasm.passkey_listLabels(this.__wbg_ptr);
1093
+ return ret;
1094
+ }
1095
+ /**
1096
+ * Publish a label to Nostr relays for this passkey's identity.
1097
+ *
1098
+ * Idempotent: if the label already exists, it is not published again.
1099
+ * Requires 1 PRF call.
1100
+ * @param {string} label
1101
+ * @returns {Promise<void>}
1102
+ */
1103
+ storeLabel(label) {
1104
+ const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1105
+ const len0 = WASM_VECTOR_LEN;
1106
+ const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
1107
+ return ret;
1108
+ }
1109
+ /**
1110
+ * Check if passkey PRF is available on this device.
1111
+ * @returns {Promise<boolean>}
1112
+ */
1113
+ isAvailable() {
1114
+ const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1115
+ return ret;
1116
+ }
1117
+ /**
1118
+ * Create a new `Passkey` instance.
1119
+ *
1120
+ * @param prfProvider - Platform implementation of passkey PRF operations
1121
+ * @param relayConfig - Optional configuration for Nostr relay connections
1122
+ * @param {PasskeyPrfProvider} prf_provider
1123
+ * @param {NostrRelayConfig | null} [relay_config]
1124
+ */
1125
+ constructor(prf_provider, relay_config) {
1126
+ const ret = wasm.passkey_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
1127
+ this.__wbg_ptr = ret >>> 0;
1128
+ PasskeyFinalization.register(this, this.__wbg_ptr, this);
1129
+ return this;
1130
+ }
1131
+ }
1132
+
1046
1133
  const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
1047
1134
  ? { register: () => {}, unregister: () => {} }
1048
1135
  : new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr >>> 0, 1));
@@ -1164,6 +1251,15 @@ export class SdkBuilder {
1164
1251
  const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
1165
1252
  return SdkBuilder.__wrap(ret);
1166
1253
  }
1254
+ /**
1255
+ * @param {PostgresStorageConfig} config
1256
+ * @returns {SdkBuilder}
1257
+ */
1258
+ withPostgresTreeStore(config) {
1259
+ const ptr = this.__destroy_into_raw();
1260
+ const ret = wasm.sdkbuilder_withPostgresTreeStore(ptr, config);
1261
+ return SdkBuilder.__wrap(ret);
1262
+ }
1167
1263
  /**
1168
1264
  * @param {Config} config
1169
1265
  * @param {Seed} seed
@@ -1323,6 +1419,10 @@ function __wbg_get_imports() {
1323
1419
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1324
1420
  }
1325
1421
  }, arguments) };
1422
+ imports.wbg.__wbg_addLeaves_226f98499cdaa66d = function() { return handleError(function (arg0, arg1) {
1423
+ const ret = arg0.addLeaves(arg1);
1424
+ return ret;
1425
+ }, arguments) };
1326
1426
  imports.wbg.__wbg_aggregateFrost_053f2d54394422d5 = function() { return handleError(function (arg0, arg1) {
1327
1427
  const ret = arg0.aggregateFrost(arg1);
1328
1428
  return ret;
@@ -1388,6 +1488,18 @@ function __wbg_get_imports() {
1388
1488
  const ret = arg0.call(arg1, arg2);
1389
1489
  return ret;
1390
1490
  }, arguments) };
1491
+ imports.wbg.__wbg_cancelReservation_d85a13db3e8e3c7b = function() { return handleError(function (arg0, arg1, arg2) {
1492
+ let deferred0_0;
1493
+ let deferred0_1;
1494
+ try {
1495
+ deferred0_0 = arg1;
1496
+ deferred0_1 = arg2;
1497
+ const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
1498
+ return ret;
1499
+ } finally {
1500
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1501
+ }
1502
+ }, arguments) };
1391
1503
  imports.wbg.__wbg_cancel_8a308660caa6cadf = function(arg0) {
1392
1504
  const ret = arg0.cancel();
1393
1505
  return ret;
@@ -1396,10 +1508,17 @@ function __wbg_get_imports() {
1396
1508
  const ret = arg0.catch(arg1);
1397
1509
  return ret;
1398
1510
  };
1511
+ imports.wbg.__wbg_clearTimeout_5a54f8841c30079a = function(arg0) {
1512
+ const ret = clearTimeout(arg0);
1513
+ return ret;
1514
+ };
1399
1515
  imports.wbg.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
1400
1516
  const ret = clearTimeout(arg0);
1401
1517
  return ret;
1402
1518
  };
1519
+ imports.wbg.__wbg_close_2893b7d056a0627d = function() { return handleError(function (arg0) {
1520
+ arg0.close();
1521
+ }, arguments) };
1403
1522
  imports.wbg.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) {
1404
1523
  arg0.close();
1405
1524
  }, arguments) };
@@ -1410,6 +1529,10 @@ function __wbg_get_imports() {
1410
1529
  const ret = arg0.code;
1411
1530
  return ret;
1412
1531
  };
1532
+ imports.wbg.__wbg_code_f4ec1e6e2e1b0417 = function(arg0) {
1533
+ const ret = arg0.code;
1534
+ return ret;
1535
+ };
1413
1536
  imports.wbg.__wbg_createDefaultStorage_458aa01b5eaead27 = function() { return handleError(function (arg0, arg1, arg2) {
1414
1537
  const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
1415
1538
  return ret;
@@ -1418,10 +1541,18 @@ function __wbg_get_imports() {
1418
1541
  const ret = createPostgresStorage(arg0, arg1);
1419
1542
  return ret;
1420
1543
  }, arguments) };
1544
+ imports.wbg.__wbg_createPostgresTreeStore_7887b0b703c72f83 = function() { return handleError(function (arg0, arg1) {
1545
+ const ret = createPostgresTreeStore(arg0, arg1);
1546
+ return ret;
1547
+ }, arguments) };
1421
1548
  imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
1422
1549
  const ret = arg0.crypto;
1423
1550
  return ret;
1424
1551
  };
1552
+ imports.wbg.__wbg_data_432d9c3df2630942 = function(arg0) {
1553
+ const ret = arg0.data;
1554
+ return ret;
1555
+ };
1425
1556
  imports.wbg.__wbg_deleteCachedItem_ff3c84380e94360b = function() { return handleError(function (arg0, arg1, arg2) {
1426
1557
  let deferred0_0;
1427
1558
  let deferred0_1;
@@ -1475,6 +1606,18 @@ function __wbg_get_imports() {
1475
1606
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1476
1607
  }
1477
1608
  }, arguments) };
1609
+ imports.wbg.__wbg_derivePrfSeed_8584c0fcf554b593 = function() { return handleError(function (arg0, arg1, arg2) {
1610
+ let deferred0_0;
1611
+ let deferred0_1;
1612
+ try {
1613
+ deferred0_0 = arg1;
1614
+ deferred0_1 = arg2;
1615
+ const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
1616
+ return ret;
1617
+ } finally {
1618
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1619
+ }
1620
+ }, arguments) };
1478
1621
  imports.wbg.__wbg_derivePublicKey_736fb57b6852f201 = function() { return handleError(function (arg0, arg1, arg2) {
1479
1622
  let deferred0_0;
1480
1623
  let deferred0_1;
@@ -1557,6 +1700,18 @@ function __wbg_get_imports() {
1557
1700
  const ret = fetch(arg0);
1558
1701
  return ret;
1559
1702
  };
1703
+ imports.wbg.__wbg_finalizeReservation_a8fad570b7fe5185 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1704
+ let deferred0_0;
1705
+ let deferred0_1;
1706
+ try {
1707
+ deferred0_0 = arg1;
1708
+ deferred0_1 = arg2;
1709
+ const ret = arg0.finalizeReservation(getStringFromWasm0(arg1, arg2), arg3);
1710
+ return ret;
1711
+ } finally {
1712
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1713
+ }
1714
+ }, arguments) };
1560
1715
  imports.wbg.__wbg_generateFrostSigningCommitments_0630bbabc5b72b42 = function() { return handleError(function (arg0) {
1561
1716
  const ret = arg0.generateFrostSigningCommitments();
1562
1717
  return ret;
@@ -1601,6 +1756,10 @@ function __wbg_get_imports() {
1601
1756
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1602
1757
  }
1603
1758
  }, arguments) };
1759
+ imports.wbg.__wbg_getLeaves_c94a1c927d239738 = function() { return handleError(function (arg0) {
1760
+ const ret = arg0.getLeaves();
1761
+ return ret;
1762
+ }, arguments) };
1604
1763
  imports.wbg.__wbg_getPaymentById_c23144bfc404b2fc = function() { return handleError(function (arg0, arg1, arg2) {
1605
1764
  let deferred0_0;
1606
1765
  let deferred0_1;
@@ -1773,6 +1932,16 @@ function __wbg_get_imports() {
1773
1932
  const ret = result;
1774
1933
  return ret;
1775
1934
  };
1935
+ imports.wbg.__wbg_instanceof_Blob_ca721ef3bdab15d1 = function(arg0) {
1936
+ let result;
1937
+ try {
1938
+ result = arg0 instanceof Blob;
1939
+ } catch (_) {
1940
+ result = false;
1941
+ }
1942
+ const ret = result;
1943
+ return ret;
1944
+ };
1776
1945
  imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
1777
1946
  let result;
1778
1947
  try {
@@ -1837,6 +2006,10 @@ function __wbg_get_imports() {
1837
2006
  const ret = Array.isArray(arg0);
1838
2007
  return ret;
1839
2008
  };
2009
+ imports.wbg.__wbg_isPrfAvailable_c13e727932109c6e = function() { return handleError(function (arg0) {
2010
+ const ret = arg0.isPrfAvailable();
2011
+ return ret;
2012
+ }, arguments) };
1840
2013
  imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
1841
2014
  const ret = Number.isSafeInteger(arg0);
1842
2015
  return ret;
@@ -1905,7 +2078,7 @@ function __wbg_get_imports() {
1905
2078
  const a = state0.a;
1906
2079
  state0.a = 0;
1907
2080
  try {
1908
- return __wbg_adapter_301(a, state0.b, arg0, arg1);
2081
+ return __wbg_adapter_339(a, state0.b, arg0, arg1);
1909
2082
  } finally {
1910
2083
  state0.a = a;
1911
2084
  }
@@ -1928,6 +2101,10 @@ function __wbg_get_imports() {
1928
2101
  const ret = new Array();
1929
2102
  return ret;
1930
2103
  };
2104
+ imports.wbg.__wbg_new_92c54fc74574ef55 = function() { return handleError(function (arg0, arg1) {
2105
+ const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
2106
+ return ret;
2107
+ }, arguments) };
1931
2108
  imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
1932
2109
  const ret = new Uint8Array(arg0);
1933
2110
  return ret;
@@ -1968,6 +2145,10 @@ function __wbg_get_imports() {
1968
2145
  const ret = arg0.node;
1969
2146
  return ret;
1970
2147
  };
2148
+ imports.wbg.__wbg_now_063c1184182e178a = function() { return handleError(function (arg0) {
2149
+ const ret = arg0.now();
2150
+ return ret;
2151
+ }, arguments) };
1971
2152
  imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
1972
2153
  const ret = arg0.now();
1973
2154
  return ret;
@@ -2025,6 +2206,17 @@ function __wbg_get_imports() {
2025
2206
  const ret = arg0.read();
2026
2207
  return ret;
2027
2208
  };
2209
+ imports.wbg.__wbg_readyState_7ef6e63c349899ed = function(arg0) {
2210
+ const ret = arg0.readyState;
2211
+ return ret;
2212
+ };
2213
+ imports.wbg.__wbg_reason_49f1cede8bcf23dd = function(arg0, arg1) {
2214
+ const ret = arg1.reason;
2215
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2216
+ const len1 = WASM_VECTOR_LEN;
2217
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2218
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2219
+ };
2028
2220
  imports.wbg.__wbg_recommendedFees_a61f331fce46523e = function() { return handleError(function (arg0) {
2029
2221
  const ret = arg0.recommendedFees();
2030
2222
  return ret;
@@ -2047,6 +2239,12 @@ function __wbg_get_imports() {
2047
2239
  const ret = SdkBuilder.__wrap(arg0);
2048
2240
  return ret;
2049
2241
  };
2242
+ imports.wbg.__wbg_send_0293179ba074ffb4 = function() { return handleError(function (arg0, arg1, arg2) {
2243
+ arg0.send(getStringFromWasm0(arg1, arg2));
2244
+ }, arguments) };
2245
+ imports.wbg.__wbg_send_fc0c204e8a1757f4 = function() { return handleError(function (arg0, arg1, arg2) {
2246
+ arg0.send(getArrayU8FromWasm0(arg1, arg2));
2247
+ }, arguments) };
2050
2248
  imports.wbg.__wbg_setCachedItem_91b03741dfb0b4c2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2051
2249
  let deferred0_0;
2052
2250
  let deferred0_1;
@@ -2064,6 +2262,10 @@ function __wbg_get_imports() {
2064
2262
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2065
2263
  }
2066
2264
  }, arguments) };
2265
+ imports.wbg.__wbg_setLeaves_d1c338c6d7d2ef28 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2266
+ const ret = arg0.setLeaves(arg1, arg2, arg3);
2267
+ return ret;
2268
+ }, arguments) };
2067
2269
  imports.wbg.__wbg_setLnurlMetadata_0bf15cc7efb6cc11 = function() { return handleError(function (arg0, arg1, arg2) {
2068
2270
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
2069
2271
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
@@ -2077,6 +2279,10 @@ function __wbg_get_imports() {
2077
2279
  imports.wbg.__wbg_setTimeout_8f06012fba12034e = function(arg0, arg1) {
2078
2280
  globalThis.setTimeout(arg0, arg1);
2079
2281
  };
2282
+ imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
2283
+ const ret = setTimeout(arg0, arg1);
2284
+ return ret;
2285
+ }, arguments) };
2080
2286
  imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
2081
2287
  arg0[arg1 >>> 0] = arg2;
2082
2288
  };
@@ -2094,6 +2300,9 @@ function __wbg_get_imports() {
2094
2300
  const ret = Reflect.set(arg0, arg1, arg2);
2095
2301
  return ret;
2096
2302
  }, arguments) };
2303
+ imports.wbg.__wbg_setbinaryType_92fa1ffd873b327c = function(arg0, arg1) {
2304
+ arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
2305
+ };
2097
2306
  imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
2098
2307
  arg0.body = arg1;
2099
2308
  };
@@ -2115,6 +2324,18 @@ function __wbg_get_imports() {
2115
2324
  imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
2116
2325
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
2117
2326
  };
2327
+ imports.wbg.__wbg_setonclose_14fc475a49d488fc = function(arg0, arg1) {
2328
+ arg0.onclose = arg1;
2329
+ };
2330
+ imports.wbg.__wbg_setonerror_8639efe354b947cd = function(arg0, arg1) {
2331
+ arg0.onerror = arg1;
2332
+ };
2333
+ imports.wbg.__wbg_setonmessage_6eccab530a8fb4c7 = function(arg0, arg1) {
2334
+ arg0.onmessage = arg1;
2335
+ };
2336
+ imports.wbg.__wbg_setonopen_2da654e1f39745d5 = function(arg0, arg1) {
2337
+ arg0.onopen = arg1;
2338
+ };
2118
2339
  imports.wbg.__wbg_setredirect_40e6a7f717a2f86a = function(arg0, arg1) {
2119
2340
  arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
2120
2341
  };
@@ -2263,6 +2484,18 @@ function __wbg_get_imports() {
2263
2484
  const ret = arg0.toString();
2264
2485
  return ret;
2265
2486
  };
2487
+ imports.wbg.__wbg_tryReserveLeaves_9aacd30c9750a9df = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2488
+ let deferred0_0;
2489
+ let deferred0_1;
2490
+ try {
2491
+ deferred0_0 = arg3;
2492
+ deferred0_1 = arg4;
2493
+ const ret = arg0.tryReserveLeaves(arg1, arg2 !== 0, getStringFromWasm0(arg3, arg4));
2494
+ return ret;
2495
+ } finally {
2496
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2497
+ }
2498
+ }, arguments) };
2266
2499
  imports.wbg.__wbg_updateDeposit_87746090235ed235 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2267
2500
  let deferred0_0;
2268
2501
  let deferred0_1;
@@ -2275,6 +2508,18 @@ function __wbg_get_imports() {
2275
2508
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2276
2509
  }
2277
2510
  }, arguments) };
2511
+ imports.wbg.__wbg_updateReservation_7641cd63d1a894b8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2512
+ let deferred0_0;
2513
+ let deferred0_1;
2514
+ try {
2515
+ deferred0_0 = arg1;
2516
+ deferred0_1 = arg2;
2517
+ const ret = arg0.updateReservation(getStringFromWasm0(arg1, arg2), arg3, arg4);
2518
+ return ret;
2519
+ } finally {
2520
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2521
+ }
2522
+ }, arguments) };
2278
2523
  imports.wbg.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
2279
2524
  const ret = arg1.url;
2280
2525
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -2282,6 +2527,13 @@ function __wbg_get_imports() {
2282
2527
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2283
2528
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2284
2529
  };
2530
+ imports.wbg.__wbg_url_ce9ab75bf9627ae4 = function(arg0, arg1) {
2531
+ const ret = arg1.url;
2532
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2533
+ const len1 = WASM_VECTOR_LEN;
2534
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2535
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2536
+ };
2285
2537
  imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
2286
2538
  const ret = arg0.value;
2287
2539
  return ret;
@@ -2294,6 +2546,10 @@ function __wbg_get_imports() {
2294
2546
  const ret = arg0.view;
2295
2547
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2296
2548
  };
2549
+ imports.wbg.__wbg_wasClean_605b4fd66d44354a = function(arg0) {
2550
+ const ret = arg0.wasClean;
2551
+ return ret;
2552
+ };
2297
2553
  imports.wbg.__wbindgen_array_new = function() {
2298
2554
  const ret = [];
2299
2555
  return ret;
@@ -2337,12 +2593,24 @@ function __wbg_get_imports() {
2337
2593
  const ret = false;
2338
2594
  return ret;
2339
2595
  };
2340
- imports.wbg.__wbindgen_closure_wrapper11838 = function(arg0, arg1, arg2) {
2341
- const ret = makeMutClosure(arg0, arg1, 828, __wbg_adapter_64);
2596
+ imports.wbg.__wbindgen_closure_wrapper10357 = function(arg0, arg1, arg2) {
2597
+ const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_69);
2598
+ return ret;
2599
+ };
2600
+ imports.wbg.__wbindgen_closure_wrapper15769 = function(arg0, arg1, arg2) {
2601
+ const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2602
+ return ret;
2603
+ };
2604
+ imports.wbg.__wbindgen_closure_wrapper5872 = function(arg0, arg1, arg2) {
2605
+ const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2606
+ return ret;
2607
+ };
2608
+ imports.wbg.__wbindgen_closure_wrapper5878 = function(arg0, arg1, arg2) {
2609
+ const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2342
2610
  return ret;
2343
2611
  };
2344
- imports.wbg.__wbindgen_closure_wrapper13801 = function(arg0, arg1, arg2) {
2345
- const ret = makeMutClosure(arg0, arg1, 1069, __wbg_adapter_67);
2612
+ imports.wbg.__wbindgen_closure_wrapper7556 = function(arg0, arg1, arg2) {
2613
+ const ret = makeMutClosure(arg0, arg1, 964, __wbg_adapter_69);
2346
2614
  return ret;
2347
2615
  };
2348
2616
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -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;