@sats-connect/core 0.6.2-06f98ff → 0.6.2-fbaf170

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 CHANGED
@@ -1729,6 +1729,7 @@ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
1729
1729
  }, undefined>], undefined>, undefined>, never>;
1730
1730
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
1731
1731
  readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
1732
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
1732
1733
  }, undefined>, never>;
1733
1734
  type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
1734
1735
  declare const connectResultSchema: v.ObjectSchema<{
@@ -1769,6 +1770,7 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
1769
1770
  }, undefined>], undefined>, undefined>, never>;
1770
1771
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
1771
1772
  readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
1773
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
1772
1774
  }, undefined>, never>;
1773
1775
  readonly id: v.StringSchema<undefined>;
1774
1776
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
package/dist/index.d.ts CHANGED
@@ -1729,6 +1729,7 @@ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
1729
1729
  }, undefined>], undefined>, undefined>, never>;
1730
1730
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
1731
1731
  readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
1732
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
1732
1733
  }, undefined>, never>;
1733
1734
  type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
1734
1735
  declare const connectResultSchema: v.ObjectSchema<{
@@ -1769,6 +1770,7 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
1769
1770
  }, undefined>], undefined>, undefined>, never>;
1770
1771
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
1771
1772
  readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
1773
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
1772
1774
  }, undefined>, never>;
1773
1775
  readonly id: v.StringSchema<undefined>;
1774
1776
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
package/dist/index.js CHANGED
@@ -440,16 +440,11 @@ var v8 = __toESM(require("valibot"));
440
440
  // src/request/types/walletMethods.ts
441
441
  var v7 = __toESM(require("valibot"));
442
442
 
443
- // src/request/types/common.ts
444
- var v5 = __toESM(require("valibot"));
445
- var walletTypes = ["software", "ledger", "keystone"];
446
- var walletTypeSchema = v5.picklist(walletTypes);
447
-
448
443
  // src/addresses/index.ts
449
444
  var import_jsontokens = require("jsontokens");
450
445
 
451
446
  // src/addresses/types.ts
452
- var v6 = __toESM(require("valibot"));
447
+ var v5 = __toESM(require("valibot"));
453
448
  var AddressPurpose = /* @__PURE__ */ ((AddressPurpose2) => {
454
449
  AddressPurpose2["Ordinals"] = "ordinals";
455
450
  AddressPurpose2["Payment"] = "payment";
@@ -465,11 +460,11 @@ var AddressType = /* @__PURE__ */ ((AddressType3) => {
465
460
  AddressType3["stacks"] = "stacks";
466
461
  return AddressType3;
467
462
  })(AddressType || {});
468
- var addressSchema = v6.object({
469
- address: v6.string(),
470
- publicKey: v6.string(),
471
- purpose: v6.enum(AddressPurpose),
472
- addressType: v6.enum(AddressType),
463
+ var addressSchema = v5.object({
464
+ address: v5.string(),
465
+ publicKey: v5.string(),
466
+ purpose: v5.enum(AddressPurpose),
467
+ addressType: v5.enum(AddressType),
473
468
  walletType: walletTypeSchema
474
469
  });
475
470
 
@@ -490,6 +485,11 @@ var getAddress = async (options) => {
490
485
  }
491
486
  };
492
487
 
488
+ // src/request/types/common.ts
489
+ var v6 = __toESM(require("valibot"));
490
+ var walletTypes = ["software", "ledger", "keystone"];
491
+ var walletTypeSchema = v6.picklist(walletTypes);
492
+
493
493
  // src/request/types/walletMethods.ts
494
494
  var accountActionsSchema = v7.object({
495
495
  read: v7.optional(v7.boolean())
@@ -627,7 +627,8 @@ var connectParamsSchema = v7.nullish(
627
627
  addresses: v7.optional(v7.array(v7.enum(AddressPurpose))),
628
628
  message: v7.optional(
629
629
  v7.pipe(v7.string(), v7.maxLength(80, "The message must not exceed 80 characters."))
630
- )
630
+ ),
631
+ network: v7.optional(v7.enum(BitcoinNetworkType))
631
632
  })
632
633
  );
633
634
  var connectResultSchema = v7.object({
package/dist/index.mjs CHANGED
@@ -233,16 +233,11 @@ import * as v8 from "valibot";
233
233
  // src/request/types/walletMethods.ts
234
234
  import * as v7 from "valibot";
235
235
 
236
- // src/request/types/common.ts
237
- import * as v5 from "valibot";
238
- var walletTypes = ["software", "ledger", "keystone"];
239
- var walletTypeSchema = v5.picklist(walletTypes);
240
-
241
236
  // src/addresses/index.ts
242
237
  import { createUnsecuredToken } from "jsontokens";
243
238
 
244
239
  // src/addresses/types.ts
245
- import * as v6 from "valibot";
240
+ import * as v5 from "valibot";
246
241
  var AddressPurpose = /* @__PURE__ */ ((AddressPurpose2) => {
247
242
  AddressPurpose2["Ordinals"] = "ordinals";
248
243
  AddressPurpose2["Payment"] = "payment";
@@ -258,11 +253,11 @@ var AddressType = /* @__PURE__ */ ((AddressType3) => {
258
253
  AddressType3["stacks"] = "stacks";
259
254
  return AddressType3;
260
255
  })(AddressType || {});
261
- var addressSchema = v6.object({
262
- address: v6.string(),
263
- publicKey: v6.string(),
264
- purpose: v6.enum(AddressPurpose),
265
- addressType: v6.enum(AddressType),
256
+ var addressSchema = v5.object({
257
+ address: v5.string(),
258
+ publicKey: v5.string(),
259
+ purpose: v5.enum(AddressPurpose),
260
+ addressType: v5.enum(AddressType),
266
261
  walletType: walletTypeSchema
267
262
  });
268
263
 
@@ -283,6 +278,11 @@ var getAddress = async (options) => {
283
278
  }
284
279
  };
285
280
 
281
+ // src/request/types/common.ts
282
+ import * as v6 from "valibot";
283
+ var walletTypes = ["software", "ledger", "keystone"];
284
+ var walletTypeSchema = v6.picklist(walletTypes);
285
+
286
286
  // src/request/types/walletMethods.ts
287
287
  var accountActionsSchema = v7.object({
288
288
  read: v7.optional(v7.boolean())
@@ -420,7 +420,8 @@ var connectParamsSchema = v7.nullish(
420
420
  addresses: v7.optional(v7.array(v7.enum(AddressPurpose))),
421
421
  message: v7.optional(
422
422
  v7.pipe(v7.string(), v7.maxLength(80, "The message must not exceed 80 characters."))
423
- )
423
+ ),
424
+ network: v7.optional(v7.enum(BitcoinNetworkType))
424
425
  })
425
426
  );
426
427
  var connectResultSchema = v7.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.6.2-06f98ff",
3
+ "version": "0.6.2-fbaf170",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",