@sats-connect/core 0.7.1-b0a037d → 0.7.1-f6b4265
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.d.mts +12 -20
- package/dist/index.d.ts +12 -20
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -156,22 +156,14 @@ declare enum AddressType {
|
|
|
156
156
|
starknet = "starknet",
|
|
157
157
|
spark = "spark"
|
|
158
158
|
}
|
|
159
|
-
type AddressWithPublicKey = AddressPurpose.Payment | AddressPurpose.Ordinals | AddressPurpose.Stacks;
|
|
160
|
-
type AddressWithoutPublicKey = Exclude<AddressPurpose, AddressWithPublicKey>;
|
|
161
159
|
declare const addressSchema: v.ObjectSchema<{
|
|
162
160
|
readonly address: v.StringSchema<undefined>;
|
|
163
|
-
readonly publicKey: v.
|
|
161
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
164
162
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
165
163
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
166
164
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
167
165
|
}, undefined>;
|
|
168
|
-
type Address =
|
|
169
|
-
purpose: AddressWithPublicKey;
|
|
170
|
-
publicKey: string;
|
|
171
|
-
} | {
|
|
172
|
-
purpose: AddressWithoutPublicKey;
|
|
173
|
-
publicKey?: undefined;
|
|
174
|
-
});
|
|
166
|
+
type Address = v.InferOutput<typeof addressSchema>;
|
|
175
167
|
interface GetAddressResponse {
|
|
176
168
|
addresses: Address[];
|
|
177
169
|
}
|
|
@@ -281,7 +273,7 @@ declare const accountChangeSchema: v.ObjectSchema<{
|
|
|
281
273
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
282
274
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
283
275
|
readonly address: v.StringSchema<undefined>;
|
|
284
|
-
readonly publicKey: v.
|
|
276
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
285
277
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
286
278
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
287
279
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -299,7 +291,7 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
299
291
|
}, undefined>;
|
|
300
292
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
301
293
|
readonly address: v.StringSchema<undefined>;
|
|
302
|
-
readonly publicKey: v.
|
|
294
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
303
295
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
304
296
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
305
297
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -315,7 +307,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
315
307
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
316
308
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
317
309
|
readonly address: v.StringSchema<undefined>;
|
|
318
|
-
readonly publicKey: v.
|
|
310
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
319
311
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
320
312
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
321
313
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -330,7 +322,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
330
322
|
}, undefined>;
|
|
331
323
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
332
324
|
readonly address: v.StringSchema<undefined>;
|
|
333
|
-
readonly publicKey: v.
|
|
325
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
334
326
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
335
327
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
336
328
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -447,7 +439,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
447
439
|
*/
|
|
448
440
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
449
441
|
readonly address: v.StringSchema<undefined>;
|
|
450
|
-
readonly publicKey: v.
|
|
442
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
451
443
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
452
444
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
453
445
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -646,7 +638,7 @@ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
|
|
|
646
638
|
declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
647
639
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
648
640
|
readonly address: v.StringSchema<undefined>;
|
|
649
|
-
readonly publicKey: v.
|
|
641
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
650
642
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
651
643
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
652
644
|
}, undefined>, undefined>;
|
|
@@ -1031,7 +1023,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1031
1023
|
*/
|
|
1032
1024
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1033
1025
|
readonly address: v.StringSchema<undefined>;
|
|
1034
|
-
readonly publicKey: v.
|
|
1026
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1035
1027
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1036
1028
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1037
1029
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1394,7 +1386,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1394
1386
|
*/
|
|
1395
1387
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1396
1388
|
readonly address: v.StringSchema<undefined>;
|
|
1397
|
-
readonly publicKey: v.
|
|
1389
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1398
1390
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1399
1391
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1400
1392
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1938,7 +1930,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1938
1930
|
readonly id: v.StringSchema<undefined>;
|
|
1939
1931
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1940
1932
|
readonly address: v.StringSchema<undefined>;
|
|
1941
|
-
readonly publicKey: v.
|
|
1933
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1942
1934
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1943
1935
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1944
1936
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1989,7 +1981,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1989
1981
|
readonly id: v.StringSchema<undefined>;
|
|
1990
1982
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1991
1983
|
readonly address: v.StringSchema<undefined>;
|
|
1992
|
-
readonly publicKey: v.
|
|
1984
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1993
1985
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1994
1986
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1995
1987
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -156,22 +156,14 @@ declare enum AddressType {
|
|
|
156
156
|
starknet = "starknet",
|
|
157
157
|
spark = "spark"
|
|
158
158
|
}
|
|
159
|
-
type AddressWithPublicKey = AddressPurpose.Payment | AddressPurpose.Ordinals | AddressPurpose.Stacks;
|
|
160
|
-
type AddressWithoutPublicKey = Exclude<AddressPurpose, AddressWithPublicKey>;
|
|
161
159
|
declare const addressSchema: v.ObjectSchema<{
|
|
162
160
|
readonly address: v.StringSchema<undefined>;
|
|
163
|
-
readonly publicKey: v.
|
|
161
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
164
162
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
165
163
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
166
164
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
167
165
|
}, undefined>;
|
|
168
|
-
type Address =
|
|
169
|
-
purpose: AddressWithPublicKey;
|
|
170
|
-
publicKey: string;
|
|
171
|
-
} | {
|
|
172
|
-
purpose: AddressWithoutPublicKey;
|
|
173
|
-
publicKey?: undefined;
|
|
174
|
-
});
|
|
166
|
+
type Address = v.InferOutput<typeof addressSchema>;
|
|
175
167
|
interface GetAddressResponse {
|
|
176
168
|
addresses: Address[];
|
|
177
169
|
}
|
|
@@ -281,7 +273,7 @@ declare const accountChangeSchema: v.ObjectSchema<{
|
|
|
281
273
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
282
274
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
283
275
|
readonly address: v.StringSchema<undefined>;
|
|
284
|
-
readonly publicKey: v.
|
|
276
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
285
277
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
286
278
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
287
279
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -299,7 +291,7 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
299
291
|
}, undefined>;
|
|
300
292
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
301
293
|
readonly address: v.StringSchema<undefined>;
|
|
302
|
-
readonly publicKey: v.
|
|
294
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
303
295
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
304
296
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
305
297
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -315,7 +307,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
315
307
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
316
308
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
317
309
|
readonly address: v.StringSchema<undefined>;
|
|
318
|
-
readonly publicKey: v.
|
|
310
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
319
311
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
320
312
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
321
313
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -330,7 +322,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
330
322
|
}, undefined>;
|
|
331
323
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
332
324
|
readonly address: v.StringSchema<undefined>;
|
|
333
|
-
readonly publicKey: v.
|
|
325
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
334
326
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
335
327
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
336
328
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -447,7 +439,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
447
439
|
*/
|
|
448
440
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
449
441
|
readonly address: v.StringSchema<undefined>;
|
|
450
|
-
readonly publicKey: v.
|
|
442
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
451
443
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
452
444
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
453
445
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -646,7 +638,7 @@ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
|
|
|
646
638
|
declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
647
639
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
648
640
|
readonly address: v.StringSchema<undefined>;
|
|
649
|
-
readonly publicKey: v.
|
|
641
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
650
642
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
651
643
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
652
644
|
}, undefined>, undefined>;
|
|
@@ -1031,7 +1023,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1031
1023
|
*/
|
|
1032
1024
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1033
1025
|
readonly address: v.StringSchema<undefined>;
|
|
1034
|
-
readonly publicKey: v.
|
|
1026
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1035
1027
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1036
1028
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1037
1029
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1394,7 +1386,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1394
1386
|
*/
|
|
1395
1387
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1396
1388
|
readonly address: v.StringSchema<undefined>;
|
|
1397
|
-
readonly publicKey: v.
|
|
1389
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1398
1390
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1399
1391
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1400
1392
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1938,7 +1930,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1938
1930
|
readonly id: v.StringSchema<undefined>;
|
|
1939
1931
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1940
1932
|
readonly address: v.StringSchema<undefined>;
|
|
1941
|
-
readonly publicKey: v.
|
|
1933
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1942
1934
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1943
1935
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1944
1936
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1989,7 +1981,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1989
1981
|
readonly id: v.StringSchema<undefined>;
|
|
1990
1982
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1991
1983
|
readonly address: v.StringSchema<undefined>;
|
|
1992
|
-
readonly publicKey: v.
|
|
1984
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1993
1985
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1994
1986
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1995
1987
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
package/dist/index.js
CHANGED
|
@@ -268,7 +268,7 @@ var AddressType = /* @__PURE__ */ ((AddressType3) => {
|
|
|
268
268
|
})(AddressType || {});
|
|
269
269
|
var addressSchema = v2.object({
|
|
270
270
|
address: v2.string(),
|
|
271
|
-
publicKey: v2.
|
|
271
|
+
publicKey: v2.string(),
|
|
272
272
|
purpose: v2.enum(AddressPurpose),
|
|
273
273
|
addressType: v2.enum(AddressType),
|
|
274
274
|
walletType: walletTypeSchema
|
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ var AddressType = /* @__PURE__ */ ((AddressType3) => {
|
|
|
34
34
|
})(AddressType || {});
|
|
35
35
|
var addressSchema = v2.object({
|
|
36
36
|
address: v2.string(),
|
|
37
|
-
publicKey: v2.
|
|
37
|
+
publicKey: v2.string(),
|
|
38
38
|
purpose: v2.enum(AddressPurpose),
|
|
39
39
|
addressType: v2.enum(AddressType),
|
|
40
40
|
walletType: walletTypeSchema
|