Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sats-connect/core",
"version": "0.17.5",
"version": "0.17.6",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ import { walletMethods } from 'src/request/methods';
import * as v from 'valibot';
import { permissionRequestParamsSchema } from '../../shared/permissions';

export const walletRequestPermissionsParamsSchema = v.array(permissionRequestParamsSchema);
/**
* This method was previously used to connect to the wallet similarly to how
* `wallet_connect` is used now: when no permissions are explicitly requested,
* account read permissions are implied. The `nullish` schema allows maintaining
* backwards compatibility with this behavior while still allowing for explicit
* permission requests.
*/
export const walletRequestPermissionsParamsSchema = v.nullish(
v.array(permissionRequestParamsSchema)
);

export type WalletRequestPermissionsParams = v.InferOutput<
typeof walletRequestPermissionsParamsSchema
Expand Down
Loading