@sats-connect/core 0.17.5 → 0.17.6-38a22ae
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 +15 -8
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -7818,7 +7818,14 @@ declare const walletRenouncePermissionsSuccessResponseSchema: v.ObjectSchema<{
|
|
|
7818
7818
|
type WalletRenouncePermissionsSuccessResponse = v.InferOutput<typeof walletRenouncePermissionsSuccessResponseSchema>;
|
|
7819
7819
|
//#endregion
|
|
7820
7820
|
//#region src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.d.ts
|
|
7821
|
-
|
|
7821
|
+
/**
|
|
7822
|
+
* This method waas previously used to connect to the wallet similarly to how
|
|
7823
|
+
* `wallet_connect` is used now: when no permissions are explicitly requested,
|
|
7824
|
+
* account read permissions are implied. The `nullish` schema allows maintaining
|
|
7825
|
+
* backwards compatibility with this behavior while still allowing for explicit
|
|
7826
|
+
* permission requests.
|
|
7827
|
+
*/
|
|
7828
|
+
declare const walletRequestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
7822
7829
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
7823
7830
|
readonly resourceId: v.StringSchema<undefined>;
|
|
7824
7831
|
readonly actions: v.ObjectSchema<{
|
|
@@ -7830,12 +7837,12 @@ declare const walletRequestPermissionsParamsSchema: v.ArraySchema<v.VariantSchem
|
|
|
7830
7837
|
readonly actions: v.ObjectSchema<{
|
|
7831
7838
|
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
7832
7839
|
}, undefined>;
|
|
7833
|
-
}, undefined>], undefined>, undefined>;
|
|
7840
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
7834
7841
|
type WalletRequestPermissionsParams = v.InferOutput<typeof walletRequestPermissionsParamsSchema>;
|
|
7835
7842
|
declare const walletRequestPermissionsRequestSchema: v.ObjectSchema<{
|
|
7836
7843
|
readonly id: v.StringSchema<undefined>;
|
|
7837
7844
|
readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
|
|
7838
|
-
readonly params: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
7845
|
+
readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
7839
7846
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
7840
7847
|
readonly resourceId: v.StringSchema<undefined>;
|
|
7841
7848
|
readonly actions: v.ObjectSchema<{
|
|
@@ -7847,7 +7854,7 @@ declare const walletRequestPermissionsRequestSchema: v.ObjectSchema<{
|
|
|
7847
7854
|
readonly actions: v.ObjectSchema<{
|
|
7848
7855
|
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
7849
7856
|
}, undefined>;
|
|
7850
|
-
}, undefined>], undefined>, undefined>;
|
|
7857
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
7851
7858
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
7852
7859
|
}, undefined>;
|
|
7853
7860
|
type WalletRequestPermissionsRequest = v.InferOutput<typeof walletRequestPermissionsRequestSchema>;
|
|
@@ -9718,7 +9725,7 @@ declare const walletRequestSchema: v.VariantSchema<"method", [v.ObjectSchema<{
|
|
|
9718
9725
|
}, undefined>, v.ObjectSchema<{
|
|
9719
9726
|
readonly id: v.StringSchema<undefined>;
|
|
9720
9727
|
readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
|
|
9721
|
-
readonly params: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
9728
|
+
readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
9722
9729
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
9723
9730
|
readonly resourceId: v.StringSchema<undefined>;
|
|
9724
9731
|
readonly actions: v.ObjectSchema<{
|
|
@@ -9730,7 +9737,7 @@ declare const walletRequestSchema: v.VariantSchema<"method", [v.ObjectSchema<{
|
|
|
9730
9737
|
readonly actions: v.ObjectSchema<{
|
|
9731
9738
|
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
9732
9739
|
}, undefined>;
|
|
9733
|
-
}, undefined>], undefined>, undefined>;
|
|
9740
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
9734
9741
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
9735
9742
|
}, undefined>, v.ObjectSchema<{
|
|
9736
9743
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -11619,7 +11626,7 @@ declare const rpcRequestSchema: v.VariantSchema<"method", [v.VariantSchema<"meth
|
|
|
11619
11626
|
}, undefined>, v.ObjectSchema<{
|
|
11620
11627
|
readonly id: v.StringSchema<undefined>;
|
|
11621
11628
|
readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
|
|
11622
|
-
readonly params: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
11629
|
+
readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
11623
11630
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
11624
11631
|
readonly resourceId: v.StringSchema<undefined>;
|
|
11625
11632
|
readonly actions: v.ObjectSchema<{
|
|
@@ -11631,7 +11638,7 @@ declare const rpcRequestSchema: v.VariantSchema<"method", [v.VariantSchema<"meth
|
|
|
11631
11638
|
readonly actions: v.ObjectSchema<{
|
|
11632
11639
|
readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
11633
11640
|
}, undefined>;
|
|
11634
|
-
}, undefined>], undefined>, undefined>;
|
|
11641
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
11635
11642
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
11636
11643
|
}, undefined>, v.ObjectSchema<{
|
|
11637
11644
|
readonly id: v.StringSchema<undefined>;
|
package/dist/index.mjs
CHANGED
|
@@ -1513,7 +1513,14 @@ const walletRenouncePermissionsSuccessResponseSchema = createSuccessResponseSche
|
|
|
1513
1513
|
|
|
1514
1514
|
//#endregion
|
|
1515
1515
|
//#region src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts
|
|
1516
|
-
|
|
1516
|
+
/**
|
|
1517
|
+
* This method waas previously used to connect to the wallet similarly to how
|
|
1518
|
+
* `wallet_connect` is used now: when no permissions are explicitly requested,
|
|
1519
|
+
* account read permissions are implied. The `nullish` schema allows maintaining
|
|
1520
|
+
* backwards compatibility with this behavior while still allowing for explicit
|
|
1521
|
+
* permission requests.
|
|
1522
|
+
*/
|
|
1523
|
+
const walletRequestPermissionsParamsSchema = v.nullish(v.array(permissionRequestParamsSchema));
|
|
1517
1524
|
const walletRequestPermissionsRequestSchema = createRequestSchema({
|
|
1518
1525
|
paramsSchema: walletRequestPermissionsParamsSchema,
|
|
1519
1526
|
method: walletMethods.wallet_requestPermissions
|