@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,5 +1,80 @@
|
|
|
1
1
|
/* @ts-self-types="./breez_sdk_spark_wasm.d.ts" */
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Rust-built implementation of the JS `BitcoinChainService` interface.
|
|
5
|
+
*
|
|
6
|
+
* Returned by factories like [`new_rest_chain_service`]; users see it as a
|
|
7
|
+
* `BitcoinChainService` and pass it to `withChainService`. Pass the same
|
|
8
|
+
* instance to multiple `SdkBuilder`s to share a single underlying HTTP
|
|
9
|
+
* client (and its connection pool) across SDK instances.
|
|
10
|
+
*/
|
|
11
|
+
export class BitcoinChainServiceHandle {
|
|
12
|
+
static __wrap(ptr) {
|
|
13
|
+
const obj = Object.create(BitcoinChainServiceHandle.prototype);
|
|
14
|
+
obj.__wbg_ptr = ptr;
|
|
15
|
+
BitcoinChainServiceHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
16
|
+
return obj;
|
|
17
|
+
}
|
|
18
|
+
__destroy_into_raw() {
|
|
19
|
+
const ptr = this.__wbg_ptr;
|
|
20
|
+
this.__wbg_ptr = 0;
|
|
21
|
+
BitcoinChainServiceHandleFinalization.unregister(this);
|
|
22
|
+
return ptr;
|
|
23
|
+
}
|
|
24
|
+
free() {
|
|
25
|
+
const ptr = this.__destroy_into_raw();
|
|
26
|
+
wasm.__wbg_bitcoinchainservicehandle_free(ptr, 0);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} tx
|
|
30
|
+
* @returns {Promise<void>}
|
|
31
|
+
*/
|
|
32
|
+
broadcastTransaction(tx) {
|
|
33
|
+
const ptr0 = passStringToWasm0(tx, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
34
|
+
const len0 = WASM_VECTOR_LEN;
|
|
35
|
+
const ret = wasm.bitcoinchainservicehandle_broadcastTransaction(this.__wbg_ptr, ptr0, len0);
|
|
36
|
+
return ret;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @param {string} address
|
|
40
|
+
* @returns {Promise<any>}
|
|
41
|
+
*/
|
|
42
|
+
getAddressUtxos(address) {
|
|
43
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
44
|
+
const len0 = WASM_VECTOR_LEN;
|
|
45
|
+
const ret = wasm.bitcoinchainservicehandle_getAddressUtxos(this.__wbg_ptr, ptr0, len0);
|
|
46
|
+
return ret;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @param {string} txid
|
|
50
|
+
* @returns {Promise<any>}
|
|
51
|
+
*/
|
|
52
|
+
getTransactionHex(txid) {
|
|
53
|
+
const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
54
|
+
const len0 = WASM_VECTOR_LEN;
|
|
55
|
+
const ret = wasm.bitcoinchainservicehandle_getTransactionHex(this.__wbg_ptr, ptr0, len0);
|
|
56
|
+
return ret;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param {string} txid
|
|
60
|
+
* @returns {Promise<any>}
|
|
61
|
+
*/
|
|
62
|
+
getTransactionStatus(txid) {
|
|
63
|
+
const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
64
|
+
const len0 = WASM_VECTOR_LEN;
|
|
65
|
+
const ret = wasm.bitcoinchainservicehandle_getTransactionStatus(this.__wbg_ptr, ptr0, len0);
|
|
66
|
+
return ret;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @returns {Promise<any>}
|
|
70
|
+
*/
|
|
71
|
+
recommendedFees() {
|
|
72
|
+
const ret = wasm.bitcoinchainservicehandle_recommendedFees(this.__wbg_ptr);
|
|
73
|
+
return ret;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (Symbol.dispose) BitcoinChainServiceHandle.prototype[Symbol.dispose] = BitcoinChainServiceHandle.prototype.free;
|
|
77
|
+
|
|
3
78
|
export class BreezSdk {
|
|
4
79
|
static __wrap(ptr) {
|
|
5
80
|
const obj = Object.create(BreezSdk.prototype);
|
|
@@ -693,6 +768,30 @@ export class IntoUnderlyingSource {
|
|
|
693
768
|
}
|
|
694
769
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
695
770
|
|
|
771
|
+
/**
|
|
772
|
+
* A shareable MySQL connection pool. See [`PostgresConnectionPool`](super::postgres_pool::PostgresConnectionPool)
|
|
773
|
+
* for sharing semantics and lifecycle.
|
|
774
|
+
*/
|
|
775
|
+
export class MysqlConnectionPool {
|
|
776
|
+
static __wrap(ptr) {
|
|
777
|
+
const obj = Object.create(MysqlConnectionPool.prototype);
|
|
778
|
+
obj.__wbg_ptr = ptr;
|
|
779
|
+
MysqlConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
780
|
+
return obj;
|
|
781
|
+
}
|
|
782
|
+
__destroy_into_raw() {
|
|
783
|
+
const ptr = this.__wbg_ptr;
|
|
784
|
+
this.__wbg_ptr = 0;
|
|
785
|
+
MysqlConnectionPoolFinalization.unregister(this);
|
|
786
|
+
return ptr;
|
|
787
|
+
}
|
|
788
|
+
free() {
|
|
789
|
+
const ptr = this.__destroy_into_raw();
|
|
790
|
+
wasm.__wbg_mysqlconnectionpool_free(ptr, 0);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
if (Symbol.dispose) MysqlConnectionPool.prototype[Symbol.dispose] = MysqlConnectionPool.prototype.free;
|
|
794
|
+
|
|
696
795
|
/**
|
|
697
796
|
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
698
797
|
*
|
|
@@ -774,6 +873,36 @@ export class Passkey {
|
|
|
774
873
|
}
|
|
775
874
|
if (Symbol.dispose) Passkey.prototype[Symbol.dispose] = Passkey.prototype.free;
|
|
776
875
|
|
|
876
|
+
/**
|
|
877
|
+
* A shareable Postgres connection pool.
|
|
878
|
+
*
|
|
879
|
+
* Construct via [`create_postgres_connection_pool`] and pass the same handle to multiple
|
|
880
|
+
* `SdkBuilder`s via `withPostgresConnectionPool` to share connections across SDKs.
|
|
881
|
+
* Per-tenant scoping is derived from each SDK's seed.
|
|
882
|
+
*
|
|
883
|
+
* The pool's lifecycle is controlled by the integrator: it stays alive as
|
|
884
|
+
* long as any reference is held. `disconnect()` does **not** close the pool.
|
|
885
|
+
*/
|
|
886
|
+
export class PostgresConnectionPool {
|
|
887
|
+
static __wrap(ptr) {
|
|
888
|
+
const obj = Object.create(PostgresConnectionPool.prototype);
|
|
889
|
+
obj.__wbg_ptr = ptr;
|
|
890
|
+
PostgresConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
891
|
+
return obj;
|
|
892
|
+
}
|
|
893
|
+
__destroy_into_raw() {
|
|
894
|
+
const ptr = this.__wbg_ptr;
|
|
895
|
+
this.__wbg_ptr = 0;
|
|
896
|
+
PostgresConnectionPoolFinalization.unregister(this);
|
|
897
|
+
return ptr;
|
|
898
|
+
}
|
|
899
|
+
free() {
|
|
900
|
+
const ptr = this.__destroy_into_raw();
|
|
901
|
+
wasm.__wbg_postgresconnectionpool_free(ptr, 0);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
if (Symbol.dispose) PostgresConnectionPool.prototype[Symbol.dispose] = PostgresConnectionPool.prototype.free;
|
|
905
|
+
|
|
777
906
|
export class SdkBuilder {
|
|
778
907
|
static __wrap(ptr) {
|
|
779
908
|
const obj = Object.create(SdkBuilder.prototype);
|
|
@@ -865,12 +994,29 @@ export class SdkBuilder {
|
|
|
865
994
|
return SdkBuilder.__wrap(ret);
|
|
866
995
|
}
|
|
867
996
|
/**
|
|
997
|
+
* **Deprecated.** Call `withMysqlConnectionPool(config)` and `withMysqlConnectionPool(pool)` instead.
|
|
868
998
|
* @param {MysqlStorageConfig} config
|
|
869
999
|
* @returns {SdkBuilder}
|
|
870
1000
|
*/
|
|
871
1001
|
withMysqlBackend(config) {
|
|
872
1002
|
const ptr = this.__destroy_into_raw();
|
|
873
1003
|
const ret = wasm.sdkbuilder_withMysqlBackend(ptr, config);
|
|
1004
|
+
if (ret[2]) {
|
|
1005
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1006
|
+
}
|
|
1007
|
+
return SdkBuilder.__wrap(ret[0]);
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Sets a shared `MySQL` connection pool as the backend for all stores.
|
|
1011
|
+
* Construct via `createMysqlConnectionPool` and pass the same handle to multiple
|
|
1012
|
+
* `SdkBuilder`s to share connections across SDKs.
|
|
1013
|
+
* @param {MysqlConnectionPool} pool
|
|
1014
|
+
* @returns {SdkBuilder}
|
|
1015
|
+
*/
|
|
1016
|
+
withMysqlConnectionPool(pool) {
|
|
1017
|
+
const ptr = this.__destroy_into_raw();
|
|
1018
|
+
_assertClass(pool, MysqlConnectionPool);
|
|
1019
|
+
const ret = wasm.sdkbuilder_withMysqlConnectionPool(ptr, pool.__wbg_ptr);
|
|
874
1020
|
return SdkBuilder.__wrap(ret);
|
|
875
1021
|
}
|
|
876
1022
|
/**
|
|
@@ -883,12 +1029,29 @@ export class SdkBuilder {
|
|
|
883
1029
|
return SdkBuilder.__wrap(ret);
|
|
884
1030
|
}
|
|
885
1031
|
/**
|
|
1032
|
+
* **Deprecated.** Call `withPostgresConnectionPool(config)` and `withPostgresConnectionPool(pool)` instead.
|
|
886
1033
|
* @param {PostgresStorageConfig} config
|
|
887
1034
|
* @returns {SdkBuilder}
|
|
888
1035
|
*/
|
|
889
1036
|
withPostgresBackend(config) {
|
|
890
1037
|
const ptr = this.__destroy_into_raw();
|
|
891
1038
|
const ret = wasm.sdkbuilder_withPostgresBackend(ptr, config);
|
|
1039
|
+
if (ret[2]) {
|
|
1040
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1041
|
+
}
|
|
1042
|
+
return SdkBuilder.__wrap(ret[0]);
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Sets a shared `PostgreSQL` connection pool as the backend for all
|
|
1046
|
+
* stores. Construct via `createPostgresConnectionPool` and pass the same handle
|
|
1047
|
+
* to multiple `SdkBuilder`s to share connections across SDKs.
|
|
1048
|
+
* @param {PostgresConnectionPool} pool
|
|
1049
|
+
* @returns {SdkBuilder}
|
|
1050
|
+
*/
|
|
1051
|
+
withPostgresConnectionPool(pool) {
|
|
1052
|
+
const ptr = this.__destroy_into_raw();
|
|
1053
|
+
_assertClass(pool, PostgresConnectionPool);
|
|
1054
|
+
const ret = wasm.sdkbuilder_withPostgresConnectionPool(ptr, pool.__wbg_ptr);
|
|
892
1055
|
return SdkBuilder.__wrap(ret);
|
|
893
1056
|
}
|
|
894
1057
|
/**
|
|
@@ -904,6 +1067,33 @@ export class SdkBuilder {
|
|
|
904
1067
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
905
1068
|
return SdkBuilder.__wrap(ret);
|
|
906
1069
|
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Sets a custom session manager used to persist authentication sessions.
|
|
1072
|
+
*
|
|
1073
|
+
* Provide a shared, persistent implementation (e.g. backed by `PostgreSQL`
|
|
1074
|
+
* or Redis) to let multiple SDK instances share authentication state and
|
|
1075
|
+
* bootstrap quickly. If not set, an in-memory session manager is used.
|
|
1076
|
+
* @param {SessionManager} session_manager
|
|
1077
|
+
* @returns {SdkBuilder}
|
|
1078
|
+
*/
|
|
1079
|
+
withSessionManager(session_manager) {
|
|
1080
|
+
const ptr = this.__destroy_into_raw();
|
|
1081
|
+
const ret = wasm.sdkbuilder_withSessionManager(ptr, session_manager);
|
|
1082
|
+
return SdkBuilder.__wrap(ret);
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Reuses a shared SSP connection across SDK instances. Pass the same
|
|
1086
|
+
* manager to every `SdkBuilder` whose SSP traffic should share an
|
|
1087
|
+
* underlying HTTP client.
|
|
1088
|
+
* @param {SspConnectionManager} manager
|
|
1089
|
+
* @returns {SdkBuilder}
|
|
1090
|
+
*/
|
|
1091
|
+
withSspConnectionManager(manager) {
|
|
1092
|
+
const ptr = this.__destroy_into_raw();
|
|
1093
|
+
_assertClass(manager, SspConnectionManager);
|
|
1094
|
+
const ret = wasm.sdkbuilder_withSspConnectionManager(ptr, manager.__wbg_ptr);
|
|
1095
|
+
return SdkBuilder.__wrap(ret);
|
|
1096
|
+
}
|
|
907
1097
|
/**
|
|
908
1098
|
* @param {Storage} storage
|
|
909
1099
|
* @returns {SdkBuilder}
|
|
@@ -916,6 +1106,32 @@ export class SdkBuilder {
|
|
|
916
1106
|
}
|
|
917
1107
|
if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
|
|
918
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* Shared transport for SSP GraphQL traffic across SDK instances.
|
|
1111
|
+
*
|
|
1112
|
+
* All SDK instances built with the same `SspConnectionManager` share a single
|
|
1113
|
+
* underlying HTTP client (and its h2 connection pool) for SSP requests.
|
|
1114
|
+
*/
|
|
1115
|
+
export class SspConnectionManager {
|
|
1116
|
+
static __wrap(ptr) {
|
|
1117
|
+
const obj = Object.create(SspConnectionManager.prototype);
|
|
1118
|
+
obj.__wbg_ptr = ptr;
|
|
1119
|
+
SspConnectionManagerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1120
|
+
return obj;
|
|
1121
|
+
}
|
|
1122
|
+
__destroy_into_raw() {
|
|
1123
|
+
const ptr = this.__wbg_ptr;
|
|
1124
|
+
this.__wbg_ptr = 0;
|
|
1125
|
+
SspConnectionManagerFinalization.unregister(this);
|
|
1126
|
+
return ptr;
|
|
1127
|
+
}
|
|
1128
|
+
free() {
|
|
1129
|
+
const ptr = this.__destroy_into_raw();
|
|
1130
|
+
wasm.__wbg_sspconnectionmanager_free(ptr, 0);
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
if (Symbol.dispose) SspConnectionManager.prototype[Symbol.dispose] = SspConnectionManager.prototype.free;
|
|
1134
|
+
|
|
919
1135
|
export class TokenIssuer {
|
|
920
1136
|
static __wrap(ptr) {
|
|
921
1137
|
const obj = Object.create(TokenIssuer.prototype);
|
|
@@ -1012,6 +1228,32 @@ export function connectWithSigner(config, signer, storage_dir) {
|
|
|
1012
1228
|
return ret;
|
|
1013
1229
|
}
|
|
1014
1230
|
|
|
1231
|
+
/**
|
|
1232
|
+
* Creates a shareable MySQL connection pool from the given config.
|
|
1233
|
+
* @param {MysqlStorageConfig} config
|
|
1234
|
+
* @returns {MysqlConnectionPool}
|
|
1235
|
+
*/
|
|
1236
|
+
export function createMysqlConnectionPool(config) {
|
|
1237
|
+
const ret = wasm.createMysqlConnectionPool(config);
|
|
1238
|
+
if (ret[2]) {
|
|
1239
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1240
|
+
}
|
|
1241
|
+
return MysqlConnectionPool.__wrap(ret[0]);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Creates a shareable Postgres connection pool from the given config.
|
|
1246
|
+
* @param {PostgresStorageConfig} config
|
|
1247
|
+
* @returns {PostgresConnectionPool}
|
|
1248
|
+
*/
|
|
1249
|
+
export function createPostgresConnectionPool(config) {
|
|
1250
|
+
const ret = wasm.createPostgresConnectionPool(config);
|
|
1251
|
+
if (ret[2]) {
|
|
1252
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1253
|
+
}
|
|
1254
|
+
return PostgresConnectionPool.__wrap(ret[0]);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1015
1257
|
/**
|
|
1016
1258
|
* @param {Network} network
|
|
1017
1259
|
* @returns {Config}
|
|
@@ -1097,6 +1339,38 @@ export function initLogging(logger, filter) {
|
|
|
1097
1339
|
return ret;
|
|
1098
1340
|
}
|
|
1099
1341
|
|
|
1342
|
+
/**
|
|
1343
|
+
* Constructs a shareable REST-based Bitcoin chain service.
|
|
1344
|
+
*
|
|
1345
|
+
* Pass the returned chain service to multiple `SdkBuilder`s via
|
|
1346
|
+
* `withChainService` to reuse one HTTP client across SDK instances. All
|
|
1347
|
+
* SDKs sharing the chain service must use the same `network`.
|
|
1348
|
+
*
|
|
1349
|
+
* For one-off, non-shared use, prefer `withRestChainService`.
|
|
1350
|
+
* @param {string} url
|
|
1351
|
+
* @param {Network} network
|
|
1352
|
+
* @param {ChainApiType} api_type
|
|
1353
|
+
* @param {Credentials | null} [credentials]
|
|
1354
|
+
* @returns {BitcoinChainService}
|
|
1355
|
+
*/
|
|
1356
|
+
export function newRestChainService(url, network, api_type, credentials) {
|
|
1357
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1358
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1359
|
+
const ret = wasm.newRestChainService(ptr0, len0, network, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
1360
|
+
return BitcoinChainServiceHandle.__wrap(ret);
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* @param {string | null} [user_agent]
|
|
1365
|
+
* @returns {SspConnectionManager}
|
|
1366
|
+
*/
|
|
1367
|
+
export function newSspConnectionManager(user_agent) {
|
|
1368
|
+
var ptr0 = isLikeNone(user_agent) ? 0 : passStringToWasm0(user_agent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1369
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1370
|
+
const ret = wasm.newSspConnectionManager(ptr0, len0);
|
|
1371
|
+
return SspConnectionManager.__wrap(ret);
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1100
1374
|
/**
|
|
1101
1375
|
* Entry point invoked by JavaScript in a worker.
|
|
1102
1376
|
* @param {number} ptr
|
|
@@ -1364,6 +1638,10 @@ function __wbg_get_imports() {
|
|
|
1364
1638
|
const ret = createMysqlPool(arg0);
|
|
1365
1639
|
return ret;
|
|
1366
1640
|
}, arguments); },
|
|
1641
|
+
__wbg_createMysqlSessionManagerWithPool_e4a41fa210a1c161: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1642
|
+
const ret = createMysqlSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1643
|
+
return ret;
|
|
1644
|
+
}, arguments); },
|
|
1367
1645
|
__wbg_createMysqlStorageWithPool_c92d8cd5f2ca6ade: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1368
1646
|
const ret = createMysqlStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1369
1647
|
return ret;
|
|
@@ -1380,6 +1658,10 @@ function __wbg_get_imports() {
|
|
|
1380
1658
|
const ret = createPostgresPool(arg0);
|
|
1381
1659
|
return ret;
|
|
1382
1660
|
}, arguments); },
|
|
1661
|
+
__wbg_createPostgresSessionManagerWithPool_df33d3998bd54e5b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1662
|
+
const ret = createPostgresSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1663
|
+
return ret;
|
|
1664
|
+
}, arguments); },
|
|
1383
1665
|
__wbg_createPostgresStorageWithPool_3fe1b7ee3ca10589: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1384
1666
|
const ret = createPostgresStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1385
1667
|
return ret;
|
|
@@ -1683,6 +1965,18 @@ function __wbg_get_imports() {
|
|
|
1683
1965
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1684
1966
|
}
|
|
1685
1967
|
}, arguments); },
|
|
1968
|
+
__wbg_getSession_05b1be4bb146adcf: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1969
|
+
let deferred0_0;
|
|
1970
|
+
let deferred0_1;
|
|
1971
|
+
try {
|
|
1972
|
+
deferred0_0 = arg1;
|
|
1973
|
+
deferred0_1 = arg2;
|
|
1974
|
+
const ret = arg0.getSession(getStringFromWasm0(arg1, arg2));
|
|
1975
|
+
return ret;
|
|
1976
|
+
} finally {
|
|
1977
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1978
|
+
}
|
|
1979
|
+
}, arguments); },
|
|
1686
1980
|
__wbg_getStaticDepositPrivateKey_82943f7a0fe1208d: function() { return handleError(function (arg0, arg1) {
|
|
1687
1981
|
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1688
1982
|
return ret;
|
|
@@ -2197,6 +2491,18 @@ function __wbg_get_imports() {
|
|
|
2197
2491
|
const ret = arg0.setLnurlMetadata(v0);
|
|
2198
2492
|
return ret;
|
|
2199
2493
|
}, arguments); },
|
|
2494
|
+
__wbg_setSession_35cb471ae7537391: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2495
|
+
let deferred0_0;
|
|
2496
|
+
let deferred0_1;
|
|
2497
|
+
try {
|
|
2498
|
+
deferred0_0 = arg1;
|
|
2499
|
+
deferred0_1 = arg2;
|
|
2500
|
+
const ret = arg0.setSession(getStringFromWasm0(arg1, arg2), arg3);
|
|
2501
|
+
return ret;
|
|
2502
|
+
} finally {
|
|
2503
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2504
|
+
}
|
|
2505
|
+
}, arguments); },
|
|
2200
2506
|
__wbg_setTimeout_631eb4eafbc308a9: function(arg0, arg1) {
|
|
2201
2507
|
globalThis.setTimeout(arg0, arg1);
|
|
2202
2508
|
},
|
|
@@ -2488,103 +2794,108 @@ function __wbg_get_imports() {
|
|
|
2488
2794
|
},
|
|
2489
2795
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2490
2796
|
// 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`.
|
|
2491
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2797
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c);
|
|
2492
2798
|
return ret;
|
|
2493
2799
|
},
|
|
2494
2800
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2495
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2801
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], 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);
|
|
2497
2803
|
return ret;
|
|
2498
2804
|
},
|
|
2499
2805
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2500
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2806
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], 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_2);
|
|
2502
2808
|
return ret;
|
|
2503
2809
|
},
|
|
2504
2810
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
2505
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
2811
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2506
2812
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3);
|
|
2507
2813
|
return ret;
|
|
2508
2814
|
},
|
|
2509
2815
|
__wbindgen_cast_0000000000000005: function(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("SessionManager")], 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_4);
|
|
2512
2818
|
return ret;
|
|
2513
2819
|
},
|
|
2514
2820
|
__wbindgen_cast_0000000000000006: function(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("Storage")], 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_5);
|
|
2517
2823
|
return ret;
|
|
2518
2824
|
},
|
|
2519
2825
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
2520
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2521
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2826
|
+
// 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`.
|
|
2827
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6);
|
|
2522
2828
|
return ret;
|
|
2523
2829
|
},
|
|
2524
2830
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
2525
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2526
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2831
|
+
// 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`.
|
|
2832
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7);
|
|
2833
|
+
return ret;
|
|
2834
|
+
},
|
|
2835
|
+
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
2836
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 404, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2837
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h124479769cd429fd);
|
|
2527
2838
|
return ret;
|
|
2528
2839
|
},
|
|
2529
|
-
|
|
2840
|
+
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
2530
2841
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2531
2842
|
const ret = arg0;
|
|
2532
2843
|
return ret;
|
|
2533
2844
|
},
|
|
2534
|
-
|
|
2845
|
+
__wbindgen_cast_000000000000000b: function(arg0) {
|
|
2535
2846
|
// Cast intrinsic for `I64 -> Externref`.
|
|
2536
2847
|
const ret = arg0;
|
|
2537
2848
|
return ret;
|
|
2538
2849
|
},
|
|
2539
|
-
|
|
2850
|
+
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
2540
2851
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2541
2852
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2542
2853
|
return ret;
|
|
2543
2854
|
},
|
|
2544
|
-
|
|
2855
|
+
__wbindgen_cast_000000000000000d: function(arg0, arg1) {
|
|
2545
2856
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2546
2857
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2547
2858
|
return ret;
|
|
2548
2859
|
},
|
|
2549
|
-
|
|
2860
|
+
__wbindgen_cast_000000000000000e: function(arg0, arg1) {
|
|
2550
2861
|
// Cast intrinsic for `U128 -> Externref`.
|
|
2551
2862
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
2552
2863
|
return ret;
|
|
2553
2864
|
},
|
|
2554
|
-
|
|
2865
|
+
__wbindgen_cast_000000000000000f: function(arg0) {
|
|
2555
2866
|
// Cast intrinsic for `U64 -> Externref`.
|
|
2556
2867
|
const ret = BigInt.asUintN(64, arg0);
|
|
2557
2868
|
return ret;
|
|
2558
2869
|
},
|
|
2559
|
-
|
|
2870
|
+
__wbindgen_cast_0000000000000010: function(arg0, arg1) {
|
|
2560
2871
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2561
2872
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2562
2873
|
// Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
|
|
2563
2874
|
const ret = v0;
|
|
2564
2875
|
return ret;
|
|
2565
2876
|
},
|
|
2566
|
-
|
|
2877
|
+
__wbindgen_cast_0000000000000011: function(arg0, arg1) {
|
|
2567
2878
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2568
2879
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2569
2880
|
// Cast intrinsic for `Vector(NamedExternref("ExternalVerifiableSecretShare")) -> Externref`.
|
|
2570
2881
|
const ret = v0;
|
|
2571
2882
|
return ret;
|
|
2572
2883
|
},
|
|
2573
|
-
|
|
2884
|
+
__wbindgen_cast_0000000000000012: function(arg0, arg1) {
|
|
2574
2885
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2575
2886
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2576
2887
|
// Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
|
|
2577
2888
|
const ret = v0;
|
|
2578
2889
|
return ret;
|
|
2579
2890
|
},
|
|
2580
|
-
|
|
2891
|
+
__wbindgen_cast_0000000000000013: function(arg0, arg1) {
|
|
2581
2892
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2582
2893
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2583
2894
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
2584
2895
|
const ret = v0;
|
|
2585
2896
|
return ret;
|
|
2586
2897
|
},
|
|
2587
|
-
|
|
2898
|
+
__wbindgen_cast_0000000000000014: function(arg0, arg1) {
|
|
2588
2899
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2589
2900
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
2590
2901
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -2607,8 +2918,8 @@ function __wbg_get_imports() {
|
|
|
2607
2918
|
};
|
|
2608
2919
|
}
|
|
2609
2920
|
|
|
2610
|
-
function
|
|
2611
|
-
wasm.
|
|
2921
|
+
function wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1) {
|
|
2922
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1);
|
|
2612
2923
|
}
|
|
2613
2924
|
|
|
2614
2925
|
function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57(arg0, arg1, arg2) {
|
|
@@ -2623,29 +2934,36 @@ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, a
|
|
|
2623
2934
|
wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2);
|
|
2624
2935
|
}
|
|
2625
2936
|
|
|
2626
|
-
function
|
|
2627
|
-
const ret = wasm.
|
|
2937
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c(arg0, arg1, arg2) {
|
|
2938
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c(arg0, arg1, arg2);
|
|
2628
2939
|
if (ret[1]) {
|
|
2629
2940
|
throw takeFromExternrefTable0(ret[0]);
|
|
2630
2941
|
}
|
|
2631
2942
|
}
|
|
2632
2943
|
|
|
2633
|
-
function
|
|
2634
|
-
const ret = wasm.
|
|
2944
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4(arg0, arg1, arg2) {
|
|
2945
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4(arg0, arg1, arg2);
|
|
2635
2946
|
if (ret[1]) {
|
|
2636
2947
|
throw takeFromExternrefTable0(ret[0]);
|
|
2637
2948
|
}
|
|
2638
2949
|
}
|
|
2639
2950
|
|
|
2640
|
-
function
|
|
2641
|
-
const ret = wasm.
|
|
2951
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5(arg0, arg1, arg2) {
|
|
2952
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5(arg0, arg1, arg2);
|
|
2642
2953
|
if (ret[1]) {
|
|
2643
2954
|
throw takeFromExternrefTable0(ret[0]);
|
|
2644
2955
|
}
|
|
2645
2956
|
}
|
|
2646
2957
|
|
|
2647
|
-
function
|
|
2648
|
-
const ret = wasm.
|
|
2958
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6(arg0, arg1, arg2) {
|
|
2959
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6(arg0, arg1, arg2);
|
|
2960
|
+
if (ret[1]) {
|
|
2961
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7(arg0, arg1, arg2) {
|
|
2966
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7(arg0, arg1, arg2);
|
|
2649
2967
|
if (ret[1]) {
|
|
2650
2968
|
throw takeFromExternrefTable0(ret[0]);
|
|
2651
2969
|
}
|
|
@@ -2675,6 +2993,9 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
2675
2993
|
|
|
2676
2994
|
|
|
2677
2995
|
const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
2996
|
+
const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2997
|
+
? { register: () => {}, unregister: () => {} }
|
|
2998
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bitcoinchainservicehandle_free(ptr, 1));
|
|
2678
2999
|
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2679
3000
|
? { register: () => {}, unregister: () => {} }
|
|
2680
3001
|
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
|
|
@@ -2690,12 +3011,21 @@ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
2690
3011
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2691
3012
|
? { register: () => {}, unregister: () => {} }
|
|
2692
3013
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
3014
|
+
const MysqlConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3015
|
+
? { register: () => {}, unregister: () => {} }
|
|
3016
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_mysqlconnectionpool_free(ptr, 1));
|
|
2693
3017
|
const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2694
3018
|
? { register: () => {}, unregister: () => {} }
|
|
2695
3019
|
: new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr, 1));
|
|
3020
|
+
const PostgresConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3021
|
+
? { register: () => {}, unregister: () => {} }
|
|
3022
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_postgresconnectionpool_free(ptr, 1));
|
|
2696
3023
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2697
3024
|
? { register: () => {}, unregister: () => {} }
|
|
2698
3025
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
|
|
3026
|
+
const SspConnectionManagerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3027
|
+
? { register: () => {}, unregister: () => {} }
|
|
3028
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sspconnectionmanager_free(ptr, 1));
|
|
2699
3029
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2700
3030
|
? { register: () => {}, unregister: () => {} }
|
|
2701
3031
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
|
|
@@ -2706,6 +3036,12 @@ function addToExternrefTable0(obj) {
|
|
|
2706
3036
|
return idx;
|
|
2707
3037
|
}
|
|
2708
3038
|
|
|
3039
|
+
function _assertClass(instance, klass) {
|
|
3040
|
+
if (!(instance instanceof klass)) {
|
|
3041
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
|
|
2709
3045
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2710
3046
|
? { register: () => {}, unregister: () => {} }
|
|
2711
3047
|
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
Binary file
|