@sats-connect/core 0.20.0-e807f08 → 0.20.0

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
@@ -6976,7 +6976,17 @@ declare const stacksSignMessageParamsSchema: v.ObjectSchema<{
6976
6976
  * The message to sign.
6977
6977
  */
6978
6978
  readonly message: v.StringSchema<undefined>;
6979
- readonly signer: v.OptionalSchema<v.PicklistSchema<readonly ["account", "member"], undefined>, "account">;
6979
+ /**
6980
+ * Which key signs. Wallets treat a missing value as `account`, so callers written before
6981
+ * vaults existed keep compiling and this stays an additive option.
6982
+ *
6983
+ * A wallet built before this field existed drops it as an unknown key and signs with the
6984
+ * account key; the response shape cannot distinguish the two. Callers that require a member
6985
+ * signature must therefore verify the returned `publicKey` against the account's member keys
6986
+ * and treat anything else as unsupported, rather than trusting that `signer: 'member'` was
6987
+ * honoured.
6988
+ */
6989
+ readonly signer: v.OptionalSchema<v.PicklistSchema<readonly ["account", "member"], undefined>, undefined>;
6980
6990
  }, undefined>;
6981
6991
  type StacksSignMessageParams = v.InferOutput<typeof stacksSignMessageParamsSchema>;
6982
6992
  declare const stacksSignMessageRequestSchema: v.ObjectSchema<{
@@ -6987,7 +6997,17 @@ declare const stacksSignMessageRequestSchema: v.ObjectSchema<{
6987
6997
  * The message to sign.
6988
6998
  */
6989
6999
  readonly message: v.StringSchema<undefined>;
6990
- readonly signer: v.OptionalSchema<v.PicklistSchema<readonly ["account", "member"], undefined>, "account">;
7000
+ /**
7001
+ * Which key signs. Wallets treat a missing value as `account`, so callers written before
7002
+ * vaults existed keep compiling and this stays an additive option.
7003
+ *
7004
+ * A wallet built before this field existed drops it as an unknown key and signs with the
7005
+ * account key; the response shape cannot distinguish the two. Callers that require a member
7006
+ * signature must therefore verify the returned `publicKey` against the account's member keys
7007
+ * and treat anything else as unsupported, rather than trusting that `signer: 'member'` was
7008
+ * honoured.
7009
+ */
7010
+ readonly signer: v.OptionalSchema<v.PicklistSchema<readonly ["account", "member"], undefined>, undefined>;
6991
7011
  }, undefined>;
6992
7012
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
6993
7013
  }, undefined>;
@@ -7453,7 +7473,7 @@ declare const stacksRequestSchema: v.VariantSchema<"method", [v.ObjectSchema<{
7453
7473
  readonly method: v.LiteralSchema<"stx_signMessage", undefined>;
7454
7474
  readonly params: v.ObjectSchema<{
7455
7475
  readonly message: v.StringSchema<undefined>;
7456
- readonly signer: v.OptionalSchema<v.PicklistSchema<readonly ["account", "member"], undefined>, "account">;
7476
+ readonly signer: v.OptionalSchema<v.PicklistSchema<readonly ["account", "member"], undefined>, undefined>;
7457
7477
  }, undefined>;
7458
7478
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
7459
7479
  }, undefined>, v.ObjectSchema<{
@@ -15012,7 +15032,7 @@ declare const rpcRequestSchema: v.VariantSchema<"method", [v.VariantSchema<"meth
15012
15032
  readonly method: v.LiteralSchema<"stx_signMessage", undefined>;
15013
15033
  readonly params: v.ObjectSchema<{
15014
15034
  readonly message: v.StringSchema<undefined>;
15015
- readonly signer: v.OptionalSchema<v.PicklistSchema<readonly ["account", "member"], undefined>, "account">;
15035
+ readonly signer: v.OptionalSchema<v.PicklistSchema<readonly ["account", "member"], undefined>, undefined>;
15016
15036
  }, undefined>;
15017
15037
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
15018
15038
  }, undefined>, v.ObjectSchema<{
package/dist/index.mjs CHANGED
@@ -2868,7 +2868,7 @@ const stacksGetAddressesSuccessResponseSchema = createSuccessResponseSchema({
2868
2868
  const stacksSignMessageSigners = ["account", "member"];
2869
2869
  const stacksSignMessageParamsSchema = v.object({
2870
2870
  message: v.string(),
2871
- signer: v.optional(v.picklist(stacksSignMessageSigners), "account")
2871
+ signer: v.optional(v.picklist(stacksSignMessageSigners))
2872
2872
  });
2873
2873
  const stacksSignMessageRequestSchema = createRequestSchema({
2874
2874
  paramsSchema: stacksSignMessageParamsSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.20.0-e807f08",
3
+ "version": "0.20.0",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",