@breeztech/breez-sdk-spark 0.13.11-dev1 → 0.13.12-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.
- package/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +124 -0
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +369 -33
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +25 -7
- package/deno/breez_sdk_spark_wasm.d.ts +124 -0
- package/deno/breez_sdk_spark_wasm.js +369 -33
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +25 -7
- package/nodejs/breez_sdk_spark_wasm.d.ts +124 -0
- package/nodejs/breez_sdk_spark_wasm.js +377 -33
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +25 -7
- package/nodejs/index.js +22 -0
- package/nodejs/index.mjs +8 -0
- package/nodejs/mysql-session-manager/errors.cjs +13 -0
- package/nodejs/mysql-session-manager/index.cjs +144 -0
- package/nodejs/mysql-session-manager/migrations.cjs +102 -0
- package/nodejs/mysql-session-manager/package.json +9 -0
- package/nodejs/mysql-storage/index.cjs +1 -0
- package/nodejs/mysql-token-store/index.cjs +4 -12
- package/nodejs/mysql-tree-store/index.cjs +2 -0
- package/nodejs/package.json +2 -0
- package/nodejs/postgres-session-manager/errors.cjs +13 -0
- package/nodejs/postgres-session-manager/index.cjs +165 -0
- package/nodejs/postgres-session-manager/migrations.cjs +126 -0
- package/nodejs/postgres-session-manager/package.json +9 -0
- package/nodejs/postgres-token-store/index.cjs +2 -13
- package/package.json +1 -1
- package/ssr/index.js +48 -0
- package/web/breez_sdk_spark_wasm.d.ts +149 -7
- package/web/breez_sdk_spark_wasm.js +369 -33
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +25 -7
|
@@ -1,3 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rust-built implementation of the JS `BitcoinChainService` interface.
|
|
3
|
+
*
|
|
4
|
+
* Returned by factories like [`new_rest_chain_service`]; users see it as a
|
|
5
|
+
* `BitcoinChainService` and pass it to `withChainService`. Pass the same
|
|
6
|
+
* instance to multiple `SdkBuilder`s to share a single underlying HTTP
|
|
7
|
+
* client (and its connection pool) across SDK instances.
|
|
8
|
+
*/
|
|
9
|
+
export class BitcoinChainServiceHandle {
|
|
10
|
+
static __wrap(ptr) {
|
|
11
|
+
const obj = Object.create(BitcoinChainServiceHandle.prototype);
|
|
12
|
+
obj.__wbg_ptr = ptr;
|
|
13
|
+
BitcoinChainServiceHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
14
|
+
return obj;
|
|
15
|
+
}
|
|
16
|
+
__destroy_into_raw() {
|
|
17
|
+
const ptr = this.__wbg_ptr;
|
|
18
|
+
this.__wbg_ptr = 0;
|
|
19
|
+
BitcoinChainServiceHandleFinalization.unregister(this);
|
|
20
|
+
return ptr;
|
|
21
|
+
}
|
|
22
|
+
free() {
|
|
23
|
+
const ptr = this.__destroy_into_raw();
|
|
24
|
+
wasm.__wbg_bitcoinchainservicehandle_free(ptr, 0);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @param {string} tx
|
|
28
|
+
* @returns {Promise<void>}
|
|
29
|
+
*/
|
|
30
|
+
broadcastTransaction(tx) {
|
|
31
|
+
const ptr0 = passStringToWasm0(tx, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
32
|
+
const len0 = WASM_VECTOR_LEN;
|
|
33
|
+
const ret = wasm.bitcoinchainservicehandle_broadcastTransaction(this.__wbg_ptr, ptr0, len0);
|
|
34
|
+
return ret;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @param {string} address
|
|
38
|
+
* @returns {Promise<any>}
|
|
39
|
+
*/
|
|
40
|
+
getAddressUtxos(address) {
|
|
41
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
42
|
+
const len0 = WASM_VECTOR_LEN;
|
|
43
|
+
const ret = wasm.bitcoinchainservicehandle_getAddressUtxos(this.__wbg_ptr, ptr0, len0);
|
|
44
|
+
return ret;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @param {string} txid
|
|
48
|
+
* @returns {Promise<any>}
|
|
49
|
+
*/
|
|
50
|
+
getTransactionHex(txid) {
|
|
51
|
+
const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
52
|
+
const len0 = WASM_VECTOR_LEN;
|
|
53
|
+
const ret = wasm.bitcoinchainservicehandle_getTransactionHex(this.__wbg_ptr, ptr0, len0);
|
|
54
|
+
return ret;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @param {string} txid
|
|
58
|
+
* @returns {Promise<any>}
|
|
59
|
+
*/
|
|
60
|
+
getTransactionStatus(txid) {
|
|
61
|
+
const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
62
|
+
const len0 = WASM_VECTOR_LEN;
|
|
63
|
+
const ret = wasm.bitcoinchainservicehandle_getTransactionStatus(this.__wbg_ptr, ptr0, len0);
|
|
64
|
+
return ret;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @returns {Promise<any>}
|
|
68
|
+
*/
|
|
69
|
+
recommendedFees() {
|
|
70
|
+
const ret = wasm.bitcoinchainservicehandle_recommendedFees(this.__wbg_ptr);
|
|
71
|
+
return ret;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (Symbol.dispose) BitcoinChainServiceHandle.prototype[Symbol.dispose] = BitcoinChainServiceHandle.prototype.free;
|
|
75
|
+
|
|
1
76
|
export class BreezSdk {
|
|
2
77
|
static __wrap(ptr) {
|
|
3
78
|
const obj = Object.create(BreezSdk.prototype);
|
|
@@ -691,6 +766,30 @@ export class IntoUnderlyingSource {
|
|
|
691
766
|
}
|
|
692
767
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
693
768
|
|
|
769
|
+
/**
|
|
770
|
+
* A shareable MySQL connection pool. See [`PostgresConnectionPool`](super::postgres_pool::PostgresConnectionPool)
|
|
771
|
+
* for sharing semantics and lifecycle.
|
|
772
|
+
*/
|
|
773
|
+
export class MysqlConnectionPool {
|
|
774
|
+
static __wrap(ptr) {
|
|
775
|
+
const obj = Object.create(MysqlConnectionPool.prototype);
|
|
776
|
+
obj.__wbg_ptr = ptr;
|
|
777
|
+
MysqlConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
778
|
+
return obj;
|
|
779
|
+
}
|
|
780
|
+
__destroy_into_raw() {
|
|
781
|
+
const ptr = this.__wbg_ptr;
|
|
782
|
+
this.__wbg_ptr = 0;
|
|
783
|
+
MysqlConnectionPoolFinalization.unregister(this);
|
|
784
|
+
return ptr;
|
|
785
|
+
}
|
|
786
|
+
free() {
|
|
787
|
+
const ptr = this.__destroy_into_raw();
|
|
788
|
+
wasm.__wbg_mysqlconnectionpool_free(ptr, 0);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
if (Symbol.dispose) MysqlConnectionPool.prototype[Symbol.dispose] = MysqlConnectionPool.prototype.free;
|
|
792
|
+
|
|
694
793
|
/**
|
|
695
794
|
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
696
795
|
*
|
|
@@ -772,6 +871,36 @@ export class Passkey {
|
|
|
772
871
|
}
|
|
773
872
|
if (Symbol.dispose) Passkey.prototype[Symbol.dispose] = Passkey.prototype.free;
|
|
774
873
|
|
|
874
|
+
/**
|
|
875
|
+
* A shareable Postgres connection pool.
|
|
876
|
+
*
|
|
877
|
+
* Construct via [`create_postgres_connection_pool`] and pass the same handle to multiple
|
|
878
|
+
* `SdkBuilder`s via `withPostgresConnectionPool` to share connections across SDKs.
|
|
879
|
+
* Per-tenant scoping is derived from each SDK's seed.
|
|
880
|
+
*
|
|
881
|
+
* The pool's lifecycle is controlled by the integrator: it stays alive as
|
|
882
|
+
* long as any reference is held. `disconnect()` does **not** close the pool.
|
|
883
|
+
*/
|
|
884
|
+
export class PostgresConnectionPool {
|
|
885
|
+
static __wrap(ptr) {
|
|
886
|
+
const obj = Object.create(PostgresConnectionPool.prototype);
|
|
887
|
+
obj.__wbg_ptr = ptr;
|
|
888
|
+
PostgresConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
889
|
+
return obj;
|
|
890
|
+
}
|
|
891
|
+
__destroy_into_raw() {
|
|
892
|
+
const ptr = this.__wbg_ptr;
|
|
893
|
+
this.__wbg_ptr = 0;
|
|
894
|
+
PostgresConnectionPoolFinalization.unregister(this);
|
|
895
|
+
return ptr;
|
|
896
|
+
}
|
|
897
|
+
free() {
|
|
898
|
+
const ptr = this.__destroy_into_raw();
|
|
899
|
+
wasm.__wbg_postgresconnectionpool_free(ptr, 0);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
if (Symbol.dispose) PostgresConnectionPool.prototype[Symbol.dispose] = PostgresConnectionPool.prototype.free;
|
|
903
|
+
|
|
775
904
|
export class SdkBuilder {
|
|
776
905
|
static __wrap(ptr) {
|
|
777
906
|
const obj = Object.create(SdkBuilder.prototype);
|
|
@@ -863,12 +992,29 @@ export class SdkBuilder {
|
|
|
863
992
|
return SdkBuilder.__wrap(ret);
|
|
864
993
|
}
|
|
865
994
|
/**
|
|
995
|
+
* **Deprecated.** Call `withMysqlConnectionPool(config)` and `withMysqlConnectionPool(pool)` instead.
|
|
866
996
|
* @param {MysqlStorageConfig} config
|
|
867
997
|
* @returns {SdkBuilder}
|
|
868
998
|
*/
|
|
869
999
|
withMysqlBackend(config) {
|
|
870
1000
|
const ptr = this.__destroy_into_raw();
|
|
871
1001
|
const ret = wasm.sdkbuilder_withMysqlBackend(ptr, config);
|
|
1002
|
+
if (ret[2]) {
|
|
1003
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1004
|
+
}
|
|
1005
|
+
return SdkBuilder.__wrap(ret[0]);
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Sets a shared `MySQL` connection pool as the backend for all stores.
|
|
1009
|
+
* Construct via `createMysqlConnectionPool` and pass the same handle to multiple
|
|
1010
|
+
* `SdkBuilder`s to share connections across SDKs.
|
|
1011
|
+
* @param {MysqlConnectionPool} pool
|
|
1012
|
+
* @returns {SdkBuilder}
|
|
1013
|
+
*/
|
|
1014
|
+
withMysqlConnectionPool(pool) {
|
|
1015
|
+
const ptr = this.__destroy_into_raw();
|
|
1016
|
+
_assertClass(pool, MysqlConnectionPool);
|
|
1017
|
+
const ret = wasm.sdkbuilder_withMysqlConnectionPool(ptr, pool.__wbg_ptr);
|
|
872
1018
|
return SdkBuilder.__wrap(ret);
|
|
873
1019
|
}
|
|
874
1020
|
/**
|
|
@@ -881,12 +1027,29 @@ export class SdkBuilder {
|
|
|
881
1027
|
return SdkBuilder.__wrap(ret);
|
|
882
1028
|
}
|
|
883
1029
|
/**
|
|
1030
|
+
* **Deprecated.** Call `withPostgresConnectionPool(config)` and `withPostgresConnectionPool(pool)` instead.
|
|
884
1031
|
* @param {PostgresStorageConfig} config
|
|
885
1032
|
* @returns {SdkBuilder}
|
|
886
1033
|
*/
|
|
887
1034
|
withPostgresBackend(config) {
|
|
888
1035
|
const ptr = this.__destroy_into_raw();
|
|
889
1036
|
const ret = wasm.sdkbuilder_withPostgresBackend(ptr, config);
|
|
1037
|
+
if (ret[2]) {
|
|
1038
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1039
|
+
}
|
|
1040
|
+
return SdkBuilder.__wrap(ret[0]);
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Sets a shared `PostgreSQL` connection pool as the backend for all
|
|
1044
|
+
* stores. Construct via `createPostgresConnectionPool` and pass the same handle
|
|
1045
|
+
* to multiple `SdkBuilder`s to share connections across SDKs.
|
|
1046
|
+
* @param {PostgresConnectionPool} pool
|
|
1047
|
+
* @returns {SdkBuilder}
|
|
1048
|
+
*/
|
|
1049
|
+
withPostgresConnectionPool(pool) {
|
|
1050
|
+
const ptr = this.__destroy_into_raw();
|
|
1051
|
+
_assertClass(pool, PostgresConnectionPool);
|
|
1052
|
+
const ret = wasm.sdkbuilder_withPostgresConnectionPool(ptr, pool.__wbg_ptr);
|
|
890
1053
|
return SdkBuilder.__wrap(ret);
|
|
891
1054
|
}
|
|
892
1055
|
/**
|
|
@@ -902,6 +1065,33 @@ export class SdkBuilder {
|
|
|
902
1065
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
903
1066
|
return SdkBuilder.__wrap(ret);
|
|
904
1067
|
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Sets a custom session manager used to persist authentication sessions.
|
|
1070
|
+
*
|
|
1071
|
+
* Provide a shared, persistent implementation (e.g. backed by `PostgreSQL`
|
|
1072
|
+
* or Redis) to let multiple SDK instances share authentication state and
|
|
1073
|
+
* bootstrap quickly. If not set, an in-memory session manager is used.
|
|
1074
|
+
* @param {SessionManager} session_manager
|
|
1075
|
+
* @returns {SdkBuilder}
|
|
1076
|
+
*/
|
|
1077
|
+
withSessionManager(session_manager) {
|
|
1078
|
+
const ptr = this.__destroy_into_raw();
|
|
1079
|
+
const ret = wasm.sdkbuilder_withSessionManager(ptr, session_manager);
|
|
1080
|
+
return SdkBuilder.__wrap(ret);
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Reuses a shared SSP connection across SDK instances. Pass the same
|
|
1084
|
+
* manager to every `SdkBuilder` whose SSP traffic should share an
|
|
1085
|
+
* underlying HTTP client.
|
|
1086
|
+
* @param {SspConnectionManager} manager
|
|
1087
|
+
* @returns {SdkBuilder}
|
|
1088
|
+
*/
|
|
1089
|
+
withSspConnectionManager(manager) {
|
|
1090
|
+
const ptr = this.__destroy_into_raw();
|
|
1091
|
+
_assertClass(manager, SspConnectionManager);
|
|
1092
|
+
const ret = wasm.sdkbuilder_withSspConnectionManager(ptr, manager.__wbg_ptr);
|
|
1093
|
+
return SdkBuilder.__wrap(ret);
|
|
1094
|
+
}
|
|
905
1095
|
/**
|
|
906
1096
|
* @param {Storage} storage
|
|
907
1097
|
* @returns {SdkBuilder}
|
|
@@ -914,6 +1104,32 @@ export class SdkBuilder {
|
|
|
914
1104
|
}
|
|
915
1105
|
if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
|
|
916
1106
|
|
|
1107
|
+
/**
|
|
1108
|
+
* Shared transport for SSP GraphQL traffic across SDK instances.
|
|
1109
|
+
*
|
|
1110
|
+
* All SDK instances built with the same `SspConnectionManager` share a single
|
|
1111
|
+
* underlying HTTP client (and its h2 connection pool) for SSP requests.
|
|
1112
|
+
*/
|
|
1113
|
+
export class SspConnectionManager {
|
|
1114
|
+
static __wrap(ptr) {
|
|
1115
|
+
const obj = Object.create(SspConnectionManager.prototype);
|
|
1116
|
+
obj.__wbg_ptr = ptr;
|
|
1117
|
+
SspConnectionManagerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1118
|
+
return obj;
|
|
1119
|
+
}
|
|
1120
|
+
__destroy_into_raw() {
|
|
1121
|
+
const ptr = this.__wbg_ptr;
|
|
1122
|
+
this.__wbg_ptr = 0;
|
|
1123
|
+
SspConnectionManagerFinalization.unregister(this);
|
|
1124
|
+
return ptr;
|
|
1125
|
+
}
|
|
1126
|
+
free() {
|
|
1127
|
+
const ptr = this.__destroy_into_raw();
|
|
1128
|
+
wasm.__wbg_sspconnectionmanager_free(ptr, 0);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
if (Symbol.dispose) SspConnectionManager.prototype[Symbol.dispose] = SspConnectionManager.prototype.free;
|
|
1132
|
+
|
|
917
1133
|
export class TokenIssuer {
|
|
918
1134
|
static __wrap(ptr) {
|
|
919
1135
|
const obj = Object.create(TokenIssuer.prototype);
|
|
@@ -1010,6 +1226,32 @@ export function connectWithSigner(config, signer, storage_dir) {
|
|
|
1010
1226
|
return ret;
|
|
1011
1227
|
}
|
|
1012
1228
|
|
|
1229
|
+
/**
|
|
1230
|
+
* Creates a shareable MySQL connection pool from the given config.
|
|
1231
|
+
* @param {MysqlStorageConfig} config
|
|
1232
|
+
* @returns {MysqlConnectionPool}
|
|
1233
|
+
*/
|
|
1234
|
+
export function createMysqlConnectionPool(config) {
|
|
1235
|
+
const ret = wasm.createMysqlConnectionPool(config);
|
|
1236
|
+
if (ret[2]) {
|
|
1237
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1238
|
+
}
|
|
1239
|
+
return MysqlConnectionPool.__wrap(ret[0]);
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Creates a shareable Postgres connection pool from the given config.
|
|
1244
|
+
* @param {PostgresStorageConfig} config
|
|
1245
|
+
* @returns {PostgresConnectionPool}
|
|
1246
|
+
*/
|
|
1247
|
+
export function createPostgresConnectionPool(config) {
|
|
1248
|
+
const ret = wasm.createPostgresConnectionPool(config);
|
|
1249
|
+
if (ret[2]) {
|
|
1250
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1251
|
+
}
|
|
1252
|
+
return PostgresConnectionPool.__wrap(ret[0]);
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1013
1255
|
/**
|
|
1014
1256
|
* @param {Network} network
|
|
1015
1257
|
* @returns {Config}
|
|
@@ -1095,6 +1337,38 @@ export function initLogging(logger, filter) {
|
|
|
1095
1337
|
return ret;
|
|
1096
1338
|
}
|
|
1097
1339
|
|
|
1340
|
+
/**
|
|
1341
|
+
* Constructs a shareable REST-based Bitcoin chain service.
|
|
1342
|
+
*
|
|
1343
|
+
* Pass the returned chain service to multiple `SdkBuilder`s via
|
|
1344
|
+
* `withChainService` to reuse one HTTP client across SDK instances. All
|
|
1345
|
+
* SDKs sharing the chain service must use the same `network`.
|
|
1346
|
+
*
|
|
1347
|
+
* For one-off, non-shared use, prefer `withRestChainService`.
|
|
1348
|
+
* @param {string} url
|
|
1349
|
+
* @param {Network} network
|
|
1350
|
+
* @param {ChainApiType} api_type
|
|
1351
|
+
* @param {Credentials | null} [credentials]
|
|
1352
|
+
* @returns {BitcoinChainService}
|
|
1353
|
+
*/
|
|
1354
|
+
export function newRestChainService(url, network, api_type, credentials) {
|
|
1355
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1356
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1357
|
+
const ret = wasm.newRestChainService(ptr0, len0, network, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
1358
|
+
return BitcoinChainServiceHandle.__wrap(ret);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* @param {string | null} [user_agent]
|
|
1363
|
+
* @returns {SspConnectionManager}
|
|
1364
|
+
*/
|
|
1365
|
+
export function newSspConnectionManager(user_agent) {
|
|
1366
|
+
var ptr0 = isLikeNone(user_agent) ? 0 : passStringToWasm0(user_agent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1367
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1368
|
+
const ret = wasm.newSspConnectionManager(ptr0, len0);
|
|
1369
|
+
return SspConnectionManager.__wrap(ret);
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1098
1372
|
/**
|
|
1099
1373
|
* Entry point invoked by JavaScript in a worker.
|
|
1100
1374
|
* @param {number} ptr
|
|
@@ -1359,6 +1633,10 @@ export function __wbg_createMysqlPool_8927bff3a28fcef9() { return handleError(fu
|
|
|
1359
1633
|
const ret = createMysqlPool(arg0);
|
|
1360
1634
|
return ret;
|
|
1361
1635
|
}, arguments); }
|
|
1636
|
+
export function __wbg_createMysqlSessionManagerWithPool_e4a41fa210a1c161() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1637
|
+
const ret = createMysqlSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1638
|
+
return ret;
|
|
1639
|
+
}, arguments); }
|
|
1362
1640
|
export function __wbg_createMysqlStorageWithPool_c92d8cd5f2ca6ade() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1363
1641
|
const ret = createMysqlStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1364
1642
|
return ret;
|
|
@@ -1375,6 +1653,10 @@ export function __wbg_createPostgresPool_3c396c7ab2f0eab2() { return handleError
|
|
|
1375
1653
|
const ret = createPostgresPool(arg0);
|
|
1376
1654
|
return ret;
|
|
1377
1655
|
}, arguments); }
|
|
1656
|
+
export function __wbg_createPostgresSessionManagerWithPool_df33d3998bd54e5b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1657
|
+
const ret = createPostgresSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1658
|
+
return ret;
|
|
1659
|
+
}, arguments); }
|
|
1378
1660
|
export function __wbg_createPostgresStorageWithPool_3fe1b7ee3ca10589() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1379
1661
|
const ret = createPostgresStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1380
1662
|
return ret;
|
|
@@ -1678,6 +1960,18 @@ export function __wbg_getRequest_9153d27d6c51b5c7() { return handleError(functio
|
|
|
1678
1960
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1679
1961
|
}
|
|
1680
1962
|
}, arguments); }
|
|
1963
|
+
export function __wbg_getSession_05b1be4bb146adcf() { return handleError(function (arg0, arg1, arg2) {
|
|
1964
|
+
let deferred0_0;
|
|
1965
|
+
let deferred0_1;
|
|
1966
|
+
try {
|
|
1967
|
+
deferred0_0 = arg1;
|
|
1968
|
+
deferred0_1 = arg2;
|
|
1969
|
+
const ret = arg0.getSession(getStringFromWasm0(arg1, arg2));
|
|
1970
|
+
return ret;
|
|
1971
|
+
} finally {
|
|
1972
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1973
|
+
}
|
|
1974
|
+
}, arguments); }
|
|
1681
1975
|
export function __wbg_getStaticDepositPrivateKey_82943f7a0fe1208d() { return handleError(function (arg0, arg1) {
|
|
1682
1976
|
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1683
1977
|
return ret;
|
|
@@ -2192,6 +2486,18 @@ export function __wbg_setLnurlMetadata_084b50d8b878f93f() { return handleError(f
|
|
|
2192
2486
|
const ret = arg0.setLnurlMetadata(v0);
|
|
2193
2487
|
return ret;
|
|
2194
2488
|
}, arguments); }
|
|
2489
|
+
export function __wbg_setSession_35cb471ae7537391() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2490
|
+
let deferred0_0;
|
|
2491
|
+
let deferred0_1;
|
|
2492
|
+
try {
|
|
2493
|
+
deferred0_0 = arg1;
|
|
2494
|
+
deferred0_1 = arg2;
|
|
2495
|
+
const ret = arg0.setSession(getStringFromWasm0(arg1, arg2), arg3);
|
|
2496
|
+
return ret;
|
|
2497
|
+
} finally {
|
|
2498
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2499
|
+
}
|
|
2500
|
+
}, arguments); }
|
|
2195
2501
|
export function __wbg_setTimeout_631eb4eafbc308a9(arg0, arg1) {
|
|
2196
2502
|
globalThis.setTimeout(arg0, arg1);
|
|
2197
2503
|
}
|
|
@@ -2483,103 +2789,108 @@ export function __wbg_wasClean_92b4133f985dfae0(arg0) {
|
|
|
2483
2789
|
}
|
|
2484
2790
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2485
2791
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2486
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2792
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c);
|
|
2487
2793
|
return ret;
|
|
2488
2794
|
}
|
|
2489
2795
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
2490
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2796
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2491
2797
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57);
|
|
2492
2798
|
return ret;
|
|
2493
2799
|
}
|
|
2494
2800
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
2495
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2801
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2496
2802
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2);
|
|
2497
2803
|
return ret;
|
|
2498
2804
|
}
|
|
2499
2805
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
2500
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
2806
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2501
2807
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3);
|
|
2502
2808
|
return ret;
|
|
2503
2809
|
}
|
|
2504
2810
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
2505
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2506
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2811
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionManager")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2812
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4);
|
|
2507
2813
|
return ret;
|
|
2508
2814
|
}
|
|
2509
2815
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
2510
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2511
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2816
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2817
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5);
|
|
2512
2818
|
return ret;
|
|
2513
2819
|
}
|
|
2514
2820
|
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
2515
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2516
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2821
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2822
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6);
|
|
2517
2823
|
return ret;
|
|
2518
2824
|
}
|
|
2519
2825
|
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
2520
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2521
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2826
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2827
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7);
|
|
2828
|
+
return ret;
|
|
2829
|
+
}
|
|
2830
|
+
export function __wbindgen_cast_0000000000000009(arg0, arg1) {
|
|
2831
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 404, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2832
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h124479769cd429fd);
|
|
2522
2833
|
return ret;
|
|
2523
2834
|
}
|
|
2524
|
-
export function
|
|
2835
|
+
export function __wbindgen_cast_000000000000000a(arg0) {
|
|
2525
2836
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2526
2837
|
const ret = arg0;
|
|
2527
2838
|
return ret;
|
|
2528
2839
|
}
|
|
2529
|
-
export function
|
|
2840
|
+
export function __wbindgen_cast_000000000000000b(arg0) {
|
|
2530
2841
|
// Cast intrinsic for `I64 -> Externref`.
|
|
2531
2842
|
const ret = arg0;
|
|
2532
2843
|
return ret;
|
|
2533
2844
|
}
|
|
2534
|
-
export function
|
|
2845
|
+
export function __wbindgen_cast_000000000000000c(arg0, arg1) {
|
|
2535
2846
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2536
2847
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2537
2848
|
return ret;
|
|
2538
2849
|
}
|
|
2539
|
-
export function
|
|
2850
|
+
export function __wbindgen_cast_000000000000000d(arg0, arg1) {
|
|
2540
2851
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2541
2852
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2542
2853
|
return ret;
|
|
2543
2854
|
}
|
|
2544
|
-
export function
|
|
2855
|
+
export function __wbindgen_cast_000000000000000e(arg0, arg1) {
|
|
2545
2856
|
// Cast intrinsic for `U128 -> Externref`.
|
|
2546
2857
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
2547
2858
|
return ret;
|
|
2548
2859
|
}
|
|
2549
|
-
export function
|
|
2860
|
+
export function __wbindgen_cast_000000000000000f(arg0) {
|
|
2550
2861
|
// Cast intrinsic for `U64 -> Externref`.
|
|
2551
2862
|
const ret = BigInt.asUintN(64, arg0);
|
|
2552
2863
|
return ret;
|
|
2553
2864
|
}
|
|
2554
|
-
export function
|
|
2865
|
+
export function __wbindgen_cast_0000000000000010(arg0, arg1) {
|
|
2555
2866
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2556
2867
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2557
2868
|
// Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
|
|
2558
2869
|
const ret = v0;
|
|
2559
2870
|
return ret;
|
|
2560
2871
|
}
|
|
2561
|
-
export function
|
|
2872
|
+
export function __wbindgen_cast_0000000000000011(arg0, arg1) {
|
|
2562
2873
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2563
2874
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2564
2875
|
// Cast intrinsic for `Vector(NamedExternref("ExternalVerifiableSecretShare")) -> Externref`.
|
|
2565
2876
|
const ret = v0;
|
|
2566
2877
|
return ret;
|
|
2567
2878
|
}
|
|
2568
|
-
export function
|
|
2879
|
+
export function __wbindgen_cast_0000000000000012(arg0, arg1) {
|
|
2569
2880
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2570
2881
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2571
2882
|
// Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
|
|
2572
2883
|
const ret = v0;
|
|
2573
2884
|
return ret;
|
|
2574
2885
|
}
|
|
2575
|
-
export function
|
|
2886
|
+
export function __wbindgen_cast_0000000000000013(arg0, arg1) {
|
|
2576
2887
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2577
2888
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2578
2889
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
2579
2890
|
const ret = v0;
|
|
2580
2891
|
return ret;
|
|
2581
2892
|
}
|
|
2582
|
-
export function
|
|
2893
|
+
export function __wbindgen_cast_0000000000000014(arg0, arg1) {
|
|
2583
2894
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2584
2895
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
2585
2896
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -2595,8 +2906,8 @@ export function __wbindgen_init_externref_table() {
|
|
|
2595
2906
|
table.set(offset + 2, true);
|
|
2596
2907
|
table.set(offset + 3, false);
|
|
2597
2908
|
}
|
|
2598
|
-
function
|
|
2599
|
-
wasm.
|
|
2909
|
+
function wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1) {
|
|
2910
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1);
|
|
2600
2911
|
}
|
|
2601
2912
|
|
|
2602
2913
|
function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57(arg0, arg1, arg2) {
|
|
@@ -2611,29 +2922,36 @@ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, a
|
|
|
2611
2922
|
wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2);
|
|
2612
2923
|
}
|
|
2613
2924
|
|
|
2614
|
-
function
|
|
2615
|
-
const ret = wasm.
|
|
2925
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c(arg0, arg1, arg2) {
|
|
2926
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c(arg0, arg1, arg2);
|
|
2616
2927
|
if (ret[1]) {
|
|
2617
2928
|
throw takeFromExternrefTable0(ret[0]);
|
|
2618
2929
|
}
|
|
2619
2930
|
}
|
|
2620
2931
|
|
|
2621
|
-
function
|
|
2622
|
-
const ret = wasm.
|
|
2932
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4(arg0, arg1, arg2) {
|
|
2933
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4(arg0, arg1, arg2);
|
|
2623
2934
|
if (ret[1]) {
|
|
2624
2935
|
throw takeFromExternrefTable0(ret[0]);
|
|
2625
2936
|
}
|
|
2626
2937
|
}
|
|
2627
2938
|
|
|
2628
|
-
function
|
|
2629
|
-
const ret = wasm.
|
|
2939
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5(arg0, arg1, arg2) {
|
|
2940
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5(arg0, arg1, arg2);
|
|
2630
2941
|
if (ret[1]) {
|
|
2631
2942
|
throw takeFromExternrefTable0(ret[0]);
|
|
2632
2943
|
}
|
|
2633
2944
|
}
|
|
2634
2945
|
|
|
2635
|
-
function
|
|
2636
|
-
const ret = wasm.
|
|
2946
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6(arg0, arg1, arg2) {
|
|
2947
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6(arg0, arg1, arg2);
|
|
2948
|
+
if (ret[1]) {
|
|
2949
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7(arg0, arg1, arg2) {
|
|
2954
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7(arg0, arg1, arg2);
|
|
2637
2955
|
if (ret[1]) {
|
|
2638
2956
|
throw takeFromExternrefTable0(ret[0]);
|
|
2639
2957
|
}
|
|
@@ -2663,6 +2981,9 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
2663
2981
|
|
|
2664
2982
|
|
|
2665
2983
|
const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
2984
|
+
const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2985
|
+
? { register: () => {}, unregister: () => {} }
|
|
2986
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bitcoinchainservicehandle_free(ptr, 1));
|
|
2666
2987
|
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2667
2988
|
? { register: () => {}, unregister: () => {} }
|
|
2668
2989
|
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
|
|
@@ -2678,12 +2999,21 @@ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
2678
2999
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2679
3000
|
? { register: () => {}, unregister: () => {} }
|
|
2680
3001
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
3002
|
+
const MysqlConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3003
|
+
? { register: () => {}, unregister: () => {} }
|
|
3004
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_mysqlconnectionpool_free(ptr, 1));
|
|
2681
3005
|
const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2682
3006
|
? { register: () => {}, unregister: () => {} }
|
|
2683
3007
|
: new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr, 1));
|
|
3008
|
+
const PostgresConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3009
|
+
? { register: () => {}, unregister: () => {} }
|
|
3010
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_postgresconnectionpool_free(ptr, 1));
|
|
2684
3011
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2685
3012
|
? { register: () => {}, unregister: () => {} }
|
|
2686
3013
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
|
|
3014
|
+
const SspConnectionManagerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3015
|
+
? { register: () => {}, unregister: () => {} }
|
|
3016
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sspconnectionmanager_free(ptr, 1));
|
|
2687
3017
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2688
3018
|
? { register: () => {}, unregister: () => {} }
|
|
2689
3019
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
|
|
@@ -2694,6 +3024,12 @@ function addToExternrefTable0(obj) {
|
|
|
2694
3024
|
return idx;
|
|
2695
3025
|
}
|
|
2696
3026
|
|
|
3027
|
+
function _assertClass(instance, klass) {
|
|
3028
|
+
if (!(instance instanceof klass)) {
|
|
3029
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
|
|
2697
3033
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2698
3034
|
? { register: () => {}, unregister: () => {} }
|
|
2699
3035
|
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
Binary file
|