@sats-connect/core 0.4.0-b520920 → 0.4.0-e7d3e8d
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 +8 -8
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1079,16 +1079,16 @@ declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
|
|
|
1079
1079
|
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
|
|
1080
1080
|
}, undefined>;
|
|
1081
1081
|
type GetWalletType = MethodParamsAndResult<v.InferOutput<typeof getWalletTypeParamsSchema>, v.InferOutput<typeof getWalletTypeResultSchema>>;
|
|
1082
|
-
declare const
|
|
1083
|
-
declare const
|
|
1084
|
-
declare const
|
|
1085
|
-
declare const
|
|
1086
|
-
readonly method: v.LiteralSchema<"
|
|
1082
|
+
declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
|
|
1083
|
+
declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1084
|
+
declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1085
|
+
declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
1086
|
+
readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
|
|
1087
1087
|
readonly id: v.StringSchema<undefined>;
|
|
1088
1088
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1089
1089
|
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
|
|
1090
1090
|
}, undefined>;
|
|
1091
|
-
type
|
|
1091
|
+
type GetCurrentPermissions = MethodParamsAndResult<v.InferOutput<typeof getCurrentPermissionsParamsSchema>, v.InferOutput<typeof getCurrentPermissionsResultSchema>>;
|
|
1092
1092
|
|
|
1093
1093
|
declare const walletTypes: readonly ["software", "ledger"];
|
|
1094
1094
|
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
@@ -1136,7 +1136,7 @@ interface WalletRequests {
|
|
|
1136
1136
|
wallet_requestPermissions: RequestPermissions;
|
|
1137
1137
|
wallet_renouncePermissions: RenouncePermissions;
|
|
1138
1138
|
wallet_getWalletType: GetWalletType;
|
|
1139
|
-
|
|
1139
|
+
wallet_getCurrentPermissions: GetCurrentPermissions;
|
|
1140
1140
|
}
|
|
1141
1141
|
type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
1142
1142
|
type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
|
|
@@ -1169,4 +1169,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
|
|
|
1169
1169
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1170
1170
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1171
1171
|
|
|
1172
|
-
export { type AccountChangeEvent, type AddListener, type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type DisconnectEvent, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type
|
|
1172
|
+
export { type AccountChangeEvent, type AddListener, type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type DisconnectEvent, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type Provider, type PsbtPayload, type RbfOrder, type Recipient$2 as Recipient, type RenouncePermissions, type RequestOptions, type RequestPayload, type RequestPermissions, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendTransfer, type SendTransferParams, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type SupportedWallet, type TransferRunes, type TransferRunesParams, type TransferRunesRequest, type TransferRunesResult, TransferRunesResultSchema, type TransferStxParams, type TransferStxResult, type WalletEvent, type WalletRequests, type WalletType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };
|
package/dist/index.mjs
CHANGED
|
@@ -417,13 +417,13 @@ var getWalletTypeRequestMessageSchema = v7.object({
|
|
|
417
417
|
id: v7.string()
|
|
418
418
|
}).entries
|
|
419
419
|
});
|
|
420
|
-
var
|
|
421
|
-
var
|
|
422
|
-
var
|
|
423
|
-
var
|
|
420
|
+
var getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
|
|
421
|
+
var getCurrentPermissionsParamsSchema = v7.nullish(v7.null());
|
|
422
|
+
var getCurrentPermissionsResultSchema = v7.array(v7.string());
|
|
423
|
+
var getCurrentPermissionsRequestMessageSchema = v7.object({
|
|
424
424
|
...rpcRequestMessageSchema.entries,
|
|
425
425
|
...v7.object({
|
|
426
|
-
method: v7.literal(
|
|
426
|
+
method: v7.literal(getCurrentPermissionsMethodName),
|
|
427
427
|
id: v7.string()
|
|
428
428
|
}).entries
|
|
429
429
|
});
|
|
@@ -1495,6 +1495,10 @@ export {
|
|
|
1495
1495
|
getBalanceRequestMessageSchema,
|
|
1496
1496
|
getBalanceResultSchema,
|
|
1497
1497
|
getCapabilities,
|
|
1498
|
+
getCurrentPermissionsMethodName,
|
|
1499
|
+
getCurrentPermissionsParamsSchema,
|
|
1500
|
+
getCurrentPermissionsRequestMessageSchema,
|
|
1501
|
+
getCurrentPermissionsResultSchema,
|
|
1498
1502
|
getDefaultProvider,
|
|
1499
1503
|
getInfoMethodName,
|
|
1500
1504
|
getInfoParamsSchema,
|
|
@@ -1504,10 +1508,6 @@ export {
|
|
|
1504
1508
|
getInscriptionsParamsSchema,
|
|
1505
1509
|
getInscriptionsResultSchema,
|
|
1506
1510
|
getInscriptionsSchema,
|
|
1507
|
-
getPermissionsMethodName,
|
|
1508
|
-
getPermissionsParamsSchema,
|
|
1509
|
-
getPermissionsRequestMessageSchema,
|
|
1510
|
-
getPermissionsResultSchema,
|
|
1511
1511
|
getProviderById,
|
|
1512
1512
|
getProviderOrThrow,
|
|
1513
1513
|
getProviders,
|