@sats-connect/core 0.17.2-ed6c4df → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +23 -0
- package/dist/index.d.cts +317 -242
- package/dist/index.d.mts +317 -242
- package/dist/index.mjs +20 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1034,6 +1034,7 @@ const ordinalsMethods = {
|
|
|
1034
1034
|
};
|
|
1035
1035
|
const walletMethods = {
|
|
1036
1036
|
wallet_addNetwork: "wallet_addNetwork",
|
|
1037
|
+
wallet_open: "wallet_open",
|
|
1037
1038
|
wallet_addNetworkV2: "wallet_addNetworkV2",
|
|
1038
1039
|
wallet_changeNetwork: "wallet_changeNetwork",
|
|
1039
1040
|
wallet_connect: "wallet_connect",
|
|
@@ -1456,6 +1457,22 @@ const walletGetWalletTypeSuccessResponseSchema = createSuccessResponseSchema({
|
|
|
1456
1457
|
method: walletMethods.wallet_getWalletType
|
|
1457
1458
|
});
|
|
1458
1459
|
|
|
1460
|
+
//#endregion
|
|
1461
|
+
//#region src/request/rpc/objects/namespaces/wallet/methods/open/request.ts
|
|
1462
|
+
const walletOpenParamsSchema = valibot.object({ path: valibot.optional(valibot.string()) });
|
|
1463
|
+
const walletOpenRequestSchema = createRequestSchema({
|
|
1464
|
+
paramsSchema: walletOpenParamsSchema,
|
|
1465
|
+
method: walletMethods.wallet_open
|
|
1466
|
+
});
|
|
1467
|
+
|
|
1468
|
+
//#endregion
|
|
1469
|
+
//#region src/request/rpc/objects/namespaces/wallet/methods/open/response.ts
|
|
1470
|
+
const walletOpenResultSchema = valibot.nullish(valibot.null());
|
|
1471
|
+
const walletOpenSuccessResponseSchema = createSuccessResponseSchema({
|
|
1472
|
+
resultSchema: walletOpenResultSchema,
|
|
1473
|
+
method: walletMethods.wallet_open
|
|
1474
|
+
});
|
|
1475
|
+
|
|
1459
1476
|
//#endregion
|
|
1460
1477
|
//#region src/request/rpc/objects/namespaces/wallet/methods/openBridge/request.ts
|
|
1461
1478
|
const walletOpenBridgeParamsSchema = valibot.object({
|
|
@@ -1573,6 +1590,7 @@ const walletRequestSchema = valibot.variant("method", [
|
|
|
1573
1590
|
walletGetNetworkRequestSchema,
|
|
1574
1591
|
walletGetNetworksRequestSchema,
|
|
1575
1592
|
walletGetWalletTypeRequestSchema,
|
|
1593
|
+
walletOpenRequestSchema,
|
|
1576
1594
|
walletOpenBridgeRequestSchema,
|
|
1577
1595
|
walletOpenBuyRequestSchema,
|
|
1578
1596
|
walletOpenReceiveRequestSchema,
|
|
@@ -1593,6 +1611,7 @@ const walletSuccessResponseSchema = valibot.variant("~sats-connect-method", [
|
|
|
1593
1611
|
walletGetNetworksSuccessResponseSchema,
|
|
1594
1612
|
walletGetNetworkSuccessResponseSchema,
|
|
1595
1613
|
walletGetWalletTypeSuccessResponseSchema,
|
|
1614
|
+
walletOpenSuccessResponseSchema,
|
|
1596
1615
|
walletOpenBridgeSuccessResponseSchema,
|
|
1597
1616
|
walletOpenBuySuccessResponseSchema,
|
|
1598
1617
|
walletOpenReceiveSuccessResponseSchema,
|
|
@@ -3605,10 +3624,14 @@ exports.walletOpenBuyParamsSchema = walletOpenBuyParamsSchema;
|
|
|
3605
3624
|
exports.walletOpenBuyRequestSchema = walletOpenBuyRequestSchema;
|
|
3606
3625
|
exports.walletOpenBuyResultSchema = walletOpenBuyResultSchema;
|
|
3607
3626
|
exports.walletOpenBuySuccessResponseSchema = walletOpenBuySuccessResponseSchema;
|
|
3627
|
+
exports.walletOpenParamsSchema = walletOpenParamsSchema;
|
|
3608
3628
|
exports.walletOpenReceiveParamsSchema = walletOpenReceiveParamsSchema;
|
|
3609
3629
|
exports.walletOpenReceiveRequestSchema = walletOpenReceiveRequestSchema;
|
|
3610
3630
|
exports.walletOpenReceiveResultSchema = walletOpenReceiveResultSchema;
|
|
3611
3631
|
exports.walletOpenReceiveSuccessResponseSchema = walletOpenReceiveSuccessResponseSchema;
|
|
3632
|
+
exports.walletOpenRequestSchema = walletOpenRequestSchema;
|
|
3633
|
+
exports.walletOpenResultSchema = walletOpenResultSchema;
|
|
3634
|
+
exports.walletOpenSuccessResponseSchema = walletOpenSuccessResponseSchema;
|
|
3612
3635
|
exports.walletRenouncePermissionsParamsSchema = walletRenouncePermissionsParamsSchema;
|
|
3613
3636
|
exports.walletRenouncePermissionsRequestSchema = walletRenouncePermissionsRequestSchema;
|
|
3614
3637
|
exports.walletRenouncePermissionsResultSchema = walletRenouncePermissionsResultSchema;
|