@sats-connect/core 0.5.1 → 0.5.2-e271c36
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/LICENSE +21 -0
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Secret Key Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.mts
CHANGED
|
@@ -558,7 +558,7 @@ declare const getAccountsParamsSchema: v.ObjectSchema<{
|
|
|
558
558
|
}, undefined>;
|
|
559
559
|
type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
|
|
560
560
|
declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
561
|
-
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
561
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
562
562
|
readonly address: v.StringSchema<undefined>;
|
|
563
563
|
readonly publicKey: v.StringSchema<undefined>;
|
|
564
564
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>; /**
|
|
@@ -1543,7 +1543,7 @@ type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
|
|
|
1543
1543
|
declare const getWalletTypeMethodName = "wallet_getWalletType";
|
|
1544
1544
|
declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1545
1545
|
type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
|
|
1546
|
-
declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1546
|
+
declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1547
1547
|
type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
|
|
1548
1548
|
declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
|
|
1549
1549
|
readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
|
|
@@ -1589,7 +1589,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1589
1589
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1590
1590
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1591
1591
|
}, undefined>, undefined>;
|
|
1592
|
-
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1592
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1593
1593
|
}, undefined>;
|
|
1594
1594
|
type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
|
|
1595
1595
|
declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1625,7 +1625,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1625
1625
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1626
1626
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1627
1627
|
}, undefined>, undefined>;
|
|
1628
|
-
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1628
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1629
1629
|
}, undefined>;
|
|
1630
1630
|
type ConnectResult = v.InferOutput<typeof connectResultSchema>;
|
|
1631
1631
|
declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1651,8 +1651,8 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
|
1651
1651
|
type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
|
|
1652
1652
|
type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
|
|
1653
1653
|
|
|
1654
|
-
declare const walletTypes: readonly ["software", "ledger"];
|
|
1655
|
-
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1654
|
+
declare const walletTypes: readonly ["software", "ledger", "keystone"];
|
|
1655
|
+
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1656
1656
|
type WalletType = v.InferOutput<typeof walletTypeSchema>;
|
|
1657
1657
|
|
|
1658
1658
|
interface StxRequests {
|
package/dist/index.d.ts
CHANGED
|
@@ -558,7 +558,7 @@ declare const getAccountsParamsSchema: v.ObjectSchema<{
|
|
|
558
558
|
}, undefined>;
|
|
559
559
|
type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
|
|
560
560
|
declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
561
|
-
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
561
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
562
562
|
readonly address: v.StringSchema<undefined>;
|
|
563
563
|
readonly publicKey: v.StringSchema<undefined>;
|
|
564
564
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>; /**
|
|
@@ -1543,7 +1543,7 @@ type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
|
|
|
1543
1543
|
declare const getWalletTypeMethodName = "wallet_getWalletType";
|
|
1544
1544
|
declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1545
1545
|
type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
|
|
1546
|
-
declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1546
|
+
declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1547
1547
|
type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
|
|
1548
1548
|
declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
|
|
1549
1549
|
readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
|
|
@@ -1589,7 +1589,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1589
1589
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1590
1590
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1591
1591
|
}, undefined>, undefined>;
|
|
1592
|
-
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1592
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1593
1593
|
}, undefined>;
|
|
1594
1594
|
type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
|
|
1595
1595
|
declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1625,7 +1625,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1625
1625
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1626
1626
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1627
1627
|
}, undefined>, undefined>;
|
|
1628
|
-
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1628
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1629
1629
|
}, undefined>;
|
|
1630
1630
|
type ConnectResult = v.InferOutput<typeof connectResultSchema>;
|
|
1631
1631
|
declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1651,8 +1651,8 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
|
1651
1651
|
type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
|
|
1652
1652
|
type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
|
|
1653
1653
|
|
|
1654
|
-
declare const walletTypes: readonly ["software", "ledger"];
|
|
1655
|
-
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
1654
|
+
declare const walletTypes: readonly ["software", "ledger", "keystone"];
|
|
1655
|
+
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1656
1656
|
type WalletType = v.InferOutput<typeof walletTypeSchema>;
|
|
1657
1657
|
|
|
1658
1658
|
interface StxRequests {
|
package/dist/index.js
CHANGED
|
@@ -721,7 +721,7 @@ var v14 = __toESM(require("valibot"));
|
|
|
721
721
|
|
|
722
722
|
// src/request/types/common.ts
|
|
723
723
|
var v13 = __toESM(require("valibot"));
|
|
724
|
-
var walletTypes = ["software", "ledger"];
|
|
724
|
+
var walletTypes = ["software", "ledger", "keystone"];
|
|
725
725
|
var walletTypeSchema = v13.picklist(walletTypes);
|
|
726
726
|
|
|
727
727
|
// src/request/types/btcMethods.ts
|
package/dist/index.mjs
CHANGED
|
@@ -522,7 +522,7 @@ import * as v14 from "valibot";
|
|
|
522
522
|
|
|
523
523
|
// src/request/types/common.ts
|
|
524
524
|
import * as v13 from "valibot";
|
|
525
|
-
var walletTypes = ["software", "ledger"];
|
|
525
|
+
var walletTypes = ["software", "ledger", "keystone"];
|
|
526
526
|
var walletTypeSchema = v13.picklist(walletTypes);
|
|
527
527
|
|
|
528
528
|
// src/request/types/btcMethods.ts
|