@sats-connect/core 0.6.5 → 0.6.6-c20e83a
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 +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -150,6 +150,13 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
150
150
|
readonly stacks: v.ObjectSchema<{
|
|
151
151
|
readonly name: v.StringSchema<undefined>;
|
|
152
152
|
}, undefined>;
|
|
153
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
154
|
+
readonly address: v.StringSchema<undefined>;
|
|
155
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
156
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
157
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
158
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
159
|
+
}, undefined>, undefined>, never>;
|
|
153
160
|
}, undefined>;
|
|
154
161
|
type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
|
|
155
162
|
declare const disconnectEventName = "disconnect";
|
|
@@ -174,6 +181,13 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
174
181
|
readonly stacks: v.ObjectSchema<{
|
|
175
182
|
readonly name: v.StringSchema<undefined>;
|
|
176
183
|
}, undefined>;
|
|
184
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
185
|
+
readonly address: v.StringSchema<undefined>;
|
|
186
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
187
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
188
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
189
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
190
|
+
}, undefined>, undefined>, never>;
|
|
177
191
|
}, undefined>, v.ObjectSchema<{
|
|
178
192
|
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
179
193
|
}, undefined>], undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -150,6 +150,13 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
150
150
|
readonly stacks: v.ObjectSchema<{
|
|
151
151
|
readonly name: v.StringSchema<undefined>;
|
|
152
152
|
}, undefined>;
|
|
153
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
154
|
+
readonly address: v.StringSchema<undefined>;
|
|
155
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
156
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
157
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
158
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
159
|
+
}, undefined>, undefined>, never>;
|
|
153
160
|
}, undefined>;
|
|
154
161
|
type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
|
|
155
162
|
declare const disconnectEventName = "disconnect";
|
|
@@ -174,6 +181,13 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
174
181
|
readonly stacks: v.ObjectSchema<{
|
|
175
182
|
readonly name: v.StringSchema<undefined>;
|
|
176
183
|
}, undefined>;
|
|
184
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
185
|
+
readonly address: v.StringSchema<undefined>;
|
|
186
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
187
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
188
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
189
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
190
|
+
}, undefined>, undefined>, never>;
|
|
177
191
|
}, undefined>, v.ObjectSchema<{
|
|
178
192
|
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
179
193
|
}, undefined>], undefined>;
|
package/dist/index.js
CHANGED
|
@@ -205,6 +205,9 @@ __export(src_exports, {
|
|
|
205
205
|
});
|
|
206
206
|
module.exports = __toCommonJS(src_exports);
|
|
207
207
|
|
|
208
|
+
// src/provider/types.ts
|
|
209
|
+
var v4 = __toESM(require("valibot"));
|
|
210
|
+
|
|
208
211
|
// src/addresses/index.ts
|
|
209
212
|
var import_jsontokens = require("jsontokens");
|
|
210
213
|
|
|
@@ -311,7 +314,6 @@ var rpcResponseMessageSchema = v3.union([
|
|
|
311
314
|
]);
|
|
312
315
|
|
|
313
316
|
// src/provider/types.ts
|
|
314
|
-
var v4 = __toESM(require("valibot"));
|
|
315
317
|
var accountChangeEventName = "accountChange";
|
|
316
318
|
var accountChangeSchema = v4.object({
|
|
317
319
|
type: v4.literal(accountChangeEventName),
|
|
@@ -325,7 +327,8 @@ var networkChangeSchema = v4.object({
|
|
|
325
327
|
}),
|
|
326
328
|
stacks: v4.object({
|
|
327
329
|
name: v4.string()
|
|
328
|
-
})
|
|
330
|
+
}),
|
|
331
|
+
addresses: v4.optional(v4.array(addressSchema))
|
|
329
332
|
});
|
|
330
333
|
var disconnectEventName = "disconnect";
|
|
331
334
|
var disconnectSchema = v4.object({
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/provider/types.ts
|
|
2
|
+
import * as v4 from "valibot";
|
|
3
|
+
|
|
1
4
|
// src/addresses/index.ts
|
|
2
5
|
import { createUnsecuredToken } from "jsontokens";
|
|
3
6
|
|
|
@@ -104,7 +107,6 @@ var rpcResponseMessageSchema = v3.union([
|
|
|
104
107
|
]);
|
|
105
108
|
|
|
106
109
|
// src/provider/types.ts
|
|
107
|
-
import * as v4 from "valibot";
|
|
108
110
|
var accountChangeEventName = "accountChange";
|
|
109
111
|
var accountChangeSchema = v4.object({
|
|
110
112
|
type: v4.literal(accountChangeEventName),
|
|
@@ -118,7 +120,8 @@ var networkChangeSchema = v4.object({
|
|
|
118
120
|
}),
|
|
119
121
|
stacks: v4.object({
|
|
120
122
|
name: v4.string()
|
|
121
|
-
})
|
|
123
|
+
}),
|
|
124
|
+
addresses: v4.optional(v4.array(addressSchema))
|
|
122
125
|
});
|
|
123
126
|
var disconnectEventName = "disconnect";
|
|
124
127
|
var disconnectSchema = v4.object({
|