@sats-connect/core 0.4.0-97f6fb5 → 0.4.0-a7186b1

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
@@ -193,7 +193,7 @@ declare const rpcRequestMessageSchema: v.ObjectSchema<{
193
193
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
194
194
  readonly method: v.StringSchema<undefined>;
195
195
  readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
196
- readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, never>;
196
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
197
197
  }, undefined>;
198
198
  type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
199
199
  interface RpcBase {
@@ -1665,6 +1665,8 @@ interface WalletRequests {
1665
1665
  wallet_renouncePermissions: RenouncePermissions;
1666
1666
  wallet_getWalletType: GetWalletType;
1667
1667
  wallet_getCurrentPermissions: GetCurrentPermissions;
1668
+ wallet_connect: Connect;
1669
+ wallet_disconnect: Disconnect;
1668
1670
  }
1669
1671
  type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
1670
1672
  type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
package/dist/index.d.ts CHANGED
@@ -193,7 +193,7 @@ declare const rpcRequestMessageSchema: v.ObjectSchema<{
193
193
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
194
194
  readonly method: v.StringSchema<undefined>;
195
195
  readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
196
- readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, never>;
196
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
197
197
  }, undefined>;
198
198
  type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
199
199
  interface RpcBase {
@@ -1665,6 +1665,8 @@ interface WalletRequests {
1665
1665
  wallet_renouncePermissions: RenouncePermissions;
1666
1666
  wallet_getWalletType: GetWalletType;
1667
1667
  wallet_getCurrentPermissions: GetCurrentPermissions;
1668
+ wallet_connect: Connect;
1669
+ wallet_disconnect: Disconnect;
1668
1670
  }
1669
1671
  type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
1670
1672
  type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
package/dist/index.js CHANGED
@@ -271,7 +271,7 @@ var rpcRequestMessageSchema = v2.object({
271
271
  v2.null()
272
272
  ])
273
273
  ),
274
- id: RpcIdSchema
274
+ id: v2.unwrap(RpcIdSchema)
275
275
  });
276
276
  var RpcErrorCode = /* @__PURE__ */ ((RpcErrorCode2) => {
277
277
  RpcErrorCode2[RpcErrorCode2["PARSE_ERROR"] = -32700] = "PARSE_ERROR";
package/dist/index.mjs CHANGED
@@ -81,7 +81,7 @@ var rpcRequestMessageSchema = v2.object({
81
81
  v2.null()
82
82
  ])
83
83
  ),
84
- id: RpcIdSchema
84
+ id: v2.unwrap(RpcIdSchema)
85
85
  });
86
86
  var RpcErrorCode = /* @__PURE__ */ ((RpcErrorCode2) => {
87
87
  RpcErrorCode2[RpcErrorCode2["PARSE_ERROR"] = -32700] = "PARSE_ERROR";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.4.0-97f6fb5",
3
+ "version": "0.4.0-a7186b1",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
@@ -26,7 +26,7 @@
26
26
  ]
27
27
  },
28
28
  "dependencies": {
29
- "@secretkeylabs/xverse-core": "24.2.0-55ca742",
29
+ "@secretkeylabs/xverse-core": "26.0.0-216d0dd",
30
30
  "axios": "1.7.4",
31
31
  "bitcoin-address-validation": "2.2.3",
32
32
  "buffer": "6.0.3",