@sats-connect/core 0.4.0-791813d → 0.4.0-8f3e1e5

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
@@ -1049,57 +1049,520 @@ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
1049
1049
  type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionRequestMessageSchema>;
1050
1050
  type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
1051
1051
 
1052
+ /**
1053
+ * Permissions with the clientId field omitted and optional actions. Used for
1054
+ * permission requests, since the wallet performs authentication based on the
1055
+ * client's tab origin and should not rely on the client authenticating
1056
+ * themselves.
1057
+ */
1058
+ declare const permissionTemplate: v.VariantSchema<"type", [v.ObjectSchema<{
1059
+ readonly actions: Omit<v.ObjectSchema<{
1060
+ readonly read: v.BooleanSchema<undefined>;
1061
+ readonly autoSign: v.BooleanSchema<undefined>;
1062
+ readonly rename: v.BooleanSchema<undefined>;
1063
+ }, undefined>, "_types" | "_run" | "entries"> & {
1064
+ readonly entries: {
1065
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1066
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1067
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1068
+ };
1069
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1070
+ read?: boolean | undefined;
1071
+ autoSign?: boolean | undefined;
1072
+ rename?: boolean | undefined;
1073
+ }, v.ObjectIssue | v.BooleanIssue>;
1074
+ readonly _types?: {
1075
+ readonly input: {
1076
+ read?: boolean | undefined;
1077
+ autoSign?: boolean | undefined;
1078
+ rename?: boolean | undefined;
1079
+ };
1080
+ readonly output: {
1081
+ read?: boolean | undefined;
1082
+ autoSign?: boolean | undefined;
1083
+ rename?: boolean | undefined;
1084
+ };
1085
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1086
+ } | undefined;
1087
+ };
1088
+ readonly type: v.LiteralSchema<"account", undefined>;
1089
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1090
+ }, undefined>, v.ObjectSchema<{
1091
+ readonly actions: Omit<v.ObjectSchema<{
1092
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1093
+ readonly openPopup: v.BooleanSchema<undefined>;
1094
+ readonly openFullPage: v.BooleanSchema<undefined>;
1095
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1096
+ }, undefined>, "_types" | "_run" | "entries"> & {
1097
+ readonly entries: {
1098
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1099
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1100
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1101
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1102
+ };
1103
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1104
+ addPrivateKey?: boolean | undefined;
1105
+ openPopup?: boolean | undefined;
1106
+ openFullPage?: boolean | undefined;
1107
+ readAllAccounts?: boolean | undefined;
1108
+ }, v.ObjectIssue | v.BooleanIssue>;
1109
+ readonly _types?: {
1110
+ readonly input: {
1111
+ addPrivateKey?: boolean | undefined;
1112
+ openPopup?: boolean | undefined;
1113
+ openFullPage?: boolean | undefined;
1114
+ readAllAccounts?: boolean | undefined;
1115
+ };
1116
+ readonly output: {
1117
+ addPrivateKey?: boolean | undefined;
1118
+ openPopup?: boolean | undefined;
1119
+ openFullPage?: boolean | undefined;
1120
+ readAllAccounts?: boolean | undefined;
1121
+ };
1122
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1123
+ } | undefined;
1124
+ };
1125
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1126
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1127
+ }, undefined>], undefined>;
1128
+ type PermissionWithoutClientId = v.InferOutput<typeof permissionTemplate>;
1052
1129
  declare const requestPermissionsMethodName = "wallet_requestPermissions";
1053
- declare const requestPermissionsParamsSchema: v.UndefinedSchema<undefined>;
1130
+ declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1131
+ readonly actions: Omit<v.ObjectSchema<{
1132
+ readonly read: v.BooleanSchema<undefined>;
1133
+ readonly autoSign: v.BooleanSchema<undefined>;
1134
+ readonly rename: v.BooleanSchema<undefined>;
1135
+ }, undefined>, "_types" | "_run" | "entries"> & {
1136
+ readonly entries: {
1137
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1138
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1139
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1140
+ };
1141
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1142
+ read?: boolean | undefined;
1143
+ autoSign?: boolean | undefined;
1144
+ rename?: boolean | undefined;
1145
+ }, v.ObjectIssue | v.BooleanIssue>;
1146
+ readonly _types?: {
1147
+ readonly input: {
1148
+ read?: boolean | undefined;
1149
+ autoSign?: boolean | undefined;
1150
+ rename?: boolean | undefined;
1151
+ };
1152
+ readonly output: {
1153
+ read?: boolean | undefined;
1154
+ autoSign?: boolean | undefined;
1155
+ rename?: boolean | undefined;
1156
+ };
1157
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1158
+ } | undefined;
1159
+ };
1160
+ readonly type: v.LiteralSchema<"account", undefined>;
1161
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1162
+ }, undefined>, v.ObjectSchema<{
1163
+ readonly actions: Omit<v.ObjectSchema<{
1164
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1165
+ readonly openPopup: v.BooleanSchema<undefined>;
1166
+ readonly openFullPage: v.BooleanSchema<undefined>;
1167
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1168
+ }, undefined>, "_types" | "_run" | "entries"> & {
1169
+ readonly entries: {
1170
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1171
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1172
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1173
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1174
+ };
1175
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1176
+ addPrivateKey?: boolean | undefined;
1177
+ openPopup?: boolean | undefined;
1178
+ openFullPage?: boolean | undefined;
1179
+ readAllAccounts?: boolean | undefined;
1180
+ }, v.ObjectIssue | v.BooleanIssue>;
1181
+ readonly _types?: {
1182
+ readonly input: {
1183
+ addPrivateKey?: boolean | undefined;
1184
+ openPopup?: boolean | undefined;
1185
+ openFullPage?: boolean | undefined;
1186
+ readAllAccounts?: boolean | undefined;
1187
+ };
1188
+ readonly output: {
1189
+ addPrivateKey?: boolean | undefined;
1190
+ openPopup?: boolean | undefined;
1191
+ openFullPage?: boolean | undefined;
1192
+ readAllAccounts?: boolean | undefined;
1193
+ };
1194
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1195
+ } | undefined;
1196
+ };
1197
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1198
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1199
+ }, undefined>], undefined>, undefined>, never>;
1200
+ type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
1054
1201
  declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
1202
+ type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSchema>;
1055
1203
  declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
1056
1204
  readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
1057
- readonly params: v.UndefinedSchema<undefined>;
1205
+ readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1206
+ readonly actions: Omit<v.ObjectSchema<{
1207
+ readonly read: v.BooleanSchema<undefined>;
1208
+ readonly autoSign: v.BooleanSchema<undefined>;
1209
+ readonly rename: v.BooleanSchema<undefined>;
1210
+ }, undefined>, "_types" | "_run" | "entries"> & {
1211
+ readonly entries: {
1212
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1213
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1214
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1215
+ };
1216
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1217
+ read?: boolean | undefined;
1218
+ autoSign?: boolean | undefined;
1219
+ rename?: boolean | undefined;
1220
+ }, v.ObjectIssue | v.BooleanIssue>;
1221
+ readonly _types?: {
1222
+ readonly input: {
1223
+ read?: boolean | undefined;
1224
+ autoSign?: boolean | undefined;
1225
+ rename?: boolean | undefined;
1226
+ };
1227
+ readonly output: {
1228
+ read?: boolean | undefined;
1229
+ autoSign?: boolean | undefined;
1230
+ rename?: boolean | undefined;
1231
+ };
1232
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1233
+ } | undefined;
1234
+ };
1235
+ readonly type: v.LiteralSchema<"account", undefined>;
1236
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1237
+ }, undefined>, v.ObjectSchema<{
1238
+ readonly actions: Omit<v.ObjectSchema<{
1239
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1240
+ readonly openPopup: v.BooleanSchema<undefined>;
1241
+ readonly openFullPage: v.BooleanSchema<undefined>;
1242
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1243
+ }, undefined>, "_types" | "_run" | "entries"> & {
1244
+ readonly entries: {
1245
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1246
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1247
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1248
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1249
+ };
1250
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1251
+ addPrivateKey?: boolean | undefined;
1252
+ openPopup?: boolean | undefined;
1253
+ openFullPage?: boolean | undefined;
1254
+ readAllAccounts?: boolean | undefined;
1255
+ }, v.ObjectIssue | v.BooleanIssue>;
1256
+ readonly _types?: {
1257
+ readonly input: {
1258
+ addPrivateKey?: boolean | undefined;
1259
+ openPopup?: boolean | undefined;
1260
+ openFullPage?: boolean | undefined;
1261
+ readAllAccounts?: boolean | undefined;
1262
+ };
1263
+ readonly output: {
1264
+ addPrivateKey?: boolean | undefined;
1265
+ openPopup?: boolean | undefined;
1266
+ openFullPage?: boolean | undefined;
1267
+ readAllAccounts?: boolean | undefined;
1268
+ };
1269
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1270
+ } | undefined;
1271
+ };
1272
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1273
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1274
+ }, undefined>], undefined>, undefined>, never>;
1058
1275
  readonly id: v.StringSchema<undefined>;
1059
1276
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1060
1277
  }, undefined>;
1061
- type RequestPermissions = MethodParamsAndResult<v.InferOutput<typeof requestPermissionsParamsSchema>, v.InferOutput<typeof requestPermissionsResultSchema>>;
1278
+ type RequestPermissionsRequestMessage = v.InferOutput<typeof requestPermissionsRequestMessageSchema>;
1279
+ type RequestPermissions = MethodParamsAndResult<RequestPermissionsParams, RequestPermissionsResult>;
1062
1280
  declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
1063
- declare const renouncePermissionsParamsSchema: v.UndefinedSchema<undefined>;
1064
- declare const renouncePermissionsResultSchema: v.LiteralSchema<true, undefined>;
1281
+ declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1282
+ type RenouncePermissionsParams = v.InferOutput<typeof renouncePermissionsParamsSchema>;
1283
+ declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1284
+ type RenouncePermissionsResult = v.InferOutput<typeof renouncePermissionsResultSchema>;
1065
1285
  declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
1066
1286
  readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
1067
- readonly params: v.UndefinedSchema<undefined>;
1287
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1288
+ readonly id: v.StringSchema<undefined>;
1289
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1290
+ }, undefined>;
1291
+ type RenouncePermissionsRequestMessage = v.InferOutput<typeof renouncePermissionsRequestMessageSchema>;
1292
+ type RenouncePermissions = MethodParamsAndResult<RenouncePermissionsParams, RenouncePermissionsResult>;
1293
+ declare const disconnectMethodName = "wallet_disconnect";
1294
+ declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1295
+ type DisconnectParams = v.InferOutput<typeof disconnectParamsSchema>;
1296
+ declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1297
+ type DisconnectResult = v.InferOutput<typeof disconnectResultSchema>;
1298
+ declare const disconnectRequestMessageSchema: v.ObjectSchema<{
1299
+ readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
1300
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1068
1301
  readonly id: v.StringSchema<undefined>;
1069
1302
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1070
1303
  }, undefined>;
1071
- type RenouncePermissions = MethodParamsAndResult<v.InferOutput<typeof renouncePermissionsParamsSchema>, v.InferOutput<typeof renouncePermissionsResultSchema>>;
1304
+ type DisconnectRequestMessage = v.InferOutput<typeof disconnectRequestMessageSchema>;
1305
+ type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
1072
1306
  declare const getWalletTypeMethodName = "wallet_getWalletType";
1073
1307
  declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1308
+ type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
1074
1309
  declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1310
+ type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
1075
1311
  declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
1076
1312
  readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
1313
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1077
1314
  readonly id: v.StringSchema<undefined>;
1078
1315
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1079
- readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
1080
1316
  }, undefined>;
1081
- type GetWalletType = MethodParamsAndResult<v.InferOutput<typeof getWalletTypeParamsSchema>, v.InferOutput<typeof getWalletTypeResultSchema>>;
1317
+ type GetWalletTypeRequestMessage = v.InferOutput<typeof getWalletTypeRequestMessageSchema>;
1318
+ type GetWalletType = MethodParamsAndResult<GetWalletTypeParams, GetWalletTypeResult>;
1082
1319
  declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
1083
1320
  declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1084
- declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.ObjectSchema<{
1085
- readonly resource: v.VariantSchema<"type", [v.ObjectSchema<{
1086
- readonly type: v.LiteralSchema<"account", undefined>;
1087
- readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1088
- readonly accountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1089
- readonly name: v.StringSchema<undefined>;
1090
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1091
- }, undefined>], undefined>;
1092
- readonly clientId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.UrlAction<string, undefined>, v.BrandAction<string, "ClientId">]>;
1093
- readonly resourceId: v.UnionSchema<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountResourceId">]>], undefined>;
1094
- readonly actions: v.SetSchema<v.PicklistSchema<["create", "read", "update", "delete"], undefined>, undefined>;
1095
- }, undefined>, undefined>;
1321
+ type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
1322
+ declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1323
+ readonly type: v.LiteralSchema<"account", undefined>;
1324
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1325
+ readonly clientId: v.StringSchema<undefined>;
1326
+ readonly actions: v.ObjectSchema<{
1327
+ readonly read: v.BooleanSchema<undefined>;
1328
+ readonly autoSign: v.BooleanSchema<undefined>;
1329
+ readonly rename: v.BooleanSchema<undefined>;
1330
+ }, undefined>;
1331
+ }, undefined>, v.ObjectSchema<{
1332
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1333
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1334
+ readonly clientId: v.StringSchema<undefined>;
1335
+ readonly actions: v.ObjectSchema<{
1336
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1337
+ readonly openPopup: v.BooleanSchema<undefined>;
1338
+ readonly openFullPage: v.BooleanSchema<undefined>;
1339
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1340
+ }, undefined>;
1341
+ }, undefined>], undefined>, undefined>;
1342
+ type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
1096
1343
  declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
1097
1344
  readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
1345
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1346
+ readonly id: v.StringSchema<undefined>;
1347
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1348
+ }, undefined>;
1349
+ type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
1350
+ type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
1351
+ declare const getAccountMethodName = "wallet_getAccount";
1352
+ declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1353
+ type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
1354
+ declare const getAccountResultSchema: v.ObjectSchema<{
1355
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1356
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1357
+ readonly address: v.StringSchema<undefined>;
1358
+ readonly publicKey: v.StringSchema<undefined>;
1359
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1360
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1361
+ }, undefined>, undefined>;
1362
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1363
+ }, undefined>;
1364
+ type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
1365
+ declare const getAccountRequestMessageSchema: v.ObjectSchema<{
1366
+ readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
1367
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1368
+ readonly id: v.StringSchema<undefined>;
1369
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1370
+ }, undefined>;
1371
+ type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
1372
+ type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
1373
+ declare const registerClientMethodName = "wallet_registerClient";
1374
+ declare const registerClientParamsSchema: v.ObjectSchema<{
1375
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1376
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1377
+ }, undefined>;
1378
+ type RegisterClientParams = v.InferOutput<typeof registerClientParamsSchema>;
1379
+ declare const registerClientResultSchema: v.ObjectSchema<{
1380
+ readonly id: v.StringSchema<undefined>;
1381
+ }, undefined>;
1382
+ type RegisterClientResult = v.InferOutput<typeof registerClientResultSchema>;
1383
+ declare const registerClientRequestMessageSchema: v.ObjectSchema<{
1384
+ readonly method: v.LiteralSchema<"wallet_registerClient", undefined>;
1385
+ readonly params: v.ObjectSchema<{
1386
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1387
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1388
+ }, undefined>;
1389
+ readonly id: v.StringSchema<undefined>;
1390
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1391
+ }, undefined>;
1392
+ type RegisterClientRequestMessage = v.InferOutput<typeof registerClientRequestMessageSchema>;
1393
+ type RegisterClient = MethodParamsAndResult<RegisterClientParams, RegisterClientResult>;
1394
+ declare const connectMethodName = "wallet_connect";
1395
+ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
1396
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1397
+ readonly actions: Omit<v.ObjectSchema<{
1398
+ readonly read: v.BooleanSchema<undefined>;
1399
+ readonly autoSign: v.BooleanSchema<undefined>;
1400
+ readonly rename: v.BooleanSchema<undefined>;
1401
+ }, undefined>, "_types" | "_run" | "entries"> & {
1402
+ readonly entries: {
1403
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1404
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1405
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1406
+ };
1407
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1408
+ read?: boolean | undefined;
1409
+ autoSign?: boolean | undefined;
1410
+ rename?: boolean | undefined;
1411
+ }, v.ObjectIssue | v.BooleanIssue>;
1412
+ readonly _types?: {
1413
+ readonly input: {
1414
+ read?: boolean | undefined;
1415
+ autoSign?: boolean | undefined;
1416
+ rename?: boolean | undefined;
1417
+ };
1418
+ readonly output: {
1419
+ read?: boolean | undefined;
1420
+ autoSign?: boolean | undefined;
1421
+ rename?: boolean | undefined;
1422
+ };
1423
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1424
+ } | undefined;
1425
+ };
1426
+ readonly type: v.LiteralSchema<"account", undefined>;
1427
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1428
+ }, undefined>, v.ObjectSchema<{
1429
+ readonly actions: Omit<v.ObjectSchema<{
1430
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1431
+ readonly openPopup: v.BooleanSchema<undefined>;
1432
+ readonly openFullPage: v.BooleanSchema<undefined>;
1433
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1434
+ }, undefined>, "_types" | "_run" | "entries"> & {
1435
+ readonly entries: {
1436
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1437
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1438
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1439
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1440
+ };
1441
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1442
+ addPrivateKey?: boolean | undefined;
1443
+ openPopup?: boolean | undefined;
1444
+ openFullPage?: boolean | undefined;
1445
+ readAllAccounts?: boolean | undefined;
1446
+ }, v.ObjectIssue | v.BooleanIssue>;
1447
+ readonly _types?: {
1448
+ readonly input: {
1449
+ addPrivateKey?: boolean | undefined;
1450
+ openPopup?: boolean | undefined;
1451
+ openFullPage?: boolean | undefined;
1452
+ readAllAccounts?: boolean | undefined;
1453
+ };
1454
+ readonly output: {
1455
+ addPrivateKey?: boolean | undefined;
1456
+ openPopup?: boolean | undefined;
1457
+ openFullPage?: boolean | undefined;
1458
+ readAllAccounts?: boolean | undefined;
1459
+ };
1460
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1461
+ } | undefined;
1462
+ };
1463
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1464
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1465
+ }, undefined>], undefined>, undefined>, never>;
1466
+ readonly clientInfo: v.ObjectSchema<{
1467
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1468
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1469
+ }, undefined>;
1470
+ }, undefined>, never>;
1471
+ type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
1472
+ declare const connectResultSchema: v.ObjectSchema<{
1473
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1474
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1475
+ readonly address: v.StringSchema<undefined>;
1476
+ readonly publicKey: v.StringSchema<undefined>;
1477
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1478
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1479
+ }, undefined>, undefined>;
1480
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1481
+ }, undefined>;
1482
+ type ConnectResult = v.InferOutput<typeof connectResultSchema>;
1483
+ declare const connectRequestMessageSchema: v.ObjectSchema<{
1484
+ readonly method: v.LiteralSchema<"wallet_connect", undefined>;
1485
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1486
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1487
+ readonly actions: Omit<v.ObjectSchema<{
1488
+ readonly read: v.BooleanSchema<undefined>;
1489
+ readonly autoSign: v.BooleanSchema<undefined>;
1490
+ readonly rename: v.BooleanSchema<undefined>;
1491
+ }, undefined>, "_types" | "_run" | "entries"> & {
1492
+ readonly entries: {
1493
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1494
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1495
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1496
+ };
1497
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1498
+ read?: boolean | undefined;
1499
+ autoSign?: boolean | undefined;
1500
+ rename?: boolean | undefined;
1501
+ }, v.ObjectIssue | v.BooleanIssue>;
1502
+ readonly _types?: {
1503
+ readonly input: {
1504
+ read?: boolean | undefined;
1505
+ autoSign?: boolean | undefined;
1506
+ rename?: boolean | undefined;
1507
+ };
1508
+ readonly output: {
1509
+ read?: boolean | undefined;
1510
+ autoSign?: boolean | undefined;
1511
+ rename?: boolean | undefined;
1512
+ };
1513
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1514
+ } | undefined;
1515
+ };
1516
+ readonly type: v.LiteralSchema<"account", undefined>;
1517
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1518
+ }, undefined>, v.ObjectSchema<{
1519
+ readonly actions: Omit<v.ObjectSchema<{
1520
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1521
+ readonly openPopup: v.BooleanSchema<undefined>;
1522
+ readonly openFullPage: v.BooleanSchema<undefined>;
1523
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1524
+ }, undefined>, "_types" | "_run" | "entries"> & {
1525
+ readonly entries: {
1526
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1527
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1528
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1529
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1530
+ };
1531
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1532
+ addPrivateKey?: boolean | undefined;
1533
+ openPopup?: boolean | undefined;
1534
+ openFullPage?: boolean | undefined;
1535
+ readAllAccounts?: boolean | undefined;
1536
+ }, v.ObjectIssue | v.BooleanIssue>;
1537
+ readonly _types?: {
1538
+ readonly input: {
1539
+ addPrivateKey?: boolean | undefined;
1540
+ openPopup?: boolean | undefined;
1541
+ openFullPage?: boolean | undefined;
1542
+ readAllAccounts?: boolean | undefined;
1543
+ };
1544
+ readonly output: {
1545
+ addPrivateKey?: boolean | undefined;
1546
+ openPopup?: boolean | undefined;
1547
+ openFullPage?: boolean | undefined;
1548
+ readAllAccounts?: boolean | undefined;
1549
+ };
1550
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1551
+ } | undefined;
1552
+ };
1553
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1554
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1555
+ }, undefined>], undefined>, undefined>, never>;
1556
+ readonly clientInfo: v.ObjectSchema<{
1557
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1558
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1559
+ }, undefined>;
1560
+ }, undefined>, never>;
1098
1561
  readonly id: v.StringSchema<undefined>;
1099
1562
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1100
- readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
1101
1563
  }, undefined>;
1102
- type GetCurrentPermissions = MethodParamsAndResult<v.InferOutput<typeof getCurrentPermissionsParamsSchema>, v.InferOutput<typeof getCurrentPermissionsResultSchema>>;
1564
+ type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
1565
+ type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
1103
1566
 
1104
1567
  declare const walletTypes: readonly ["software", "ledger"];
1105
1568
  declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
@@ -1180,4 +1643,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
1180
1643
  declare const DefaultAdaptersInfo: Record<string, Provider>;
1181
1644
  declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
1182
1645
 
1183
- 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 };
1646
+ 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 Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, 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 GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type RbfOrder, type Recipient$2 as Recipient, type RegisterClient, type RegisterClientParams, type RegisterClientRequestMessage, type RegisterClientResult, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, 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, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, 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, permissionTemplate, registerClientMethodName, registerClientParamsSchema, registerClientRequestMessageSchema, registerClientResultSchema, 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
@@ -386,8 +386,18 @@ var getBalanceRequestMessageSchema = v6.object({
386
386
  // src/request/types/walletMethods.ts
387
387
  import * as v7 from "valibot";
388
388
  import { permissions } from "@secretkeylabs/xverse-core";
389
+ var permissionTemplate = v7.variant("type", [
390
+ v7.object({
391
+ ...v7.omit(permissions.resources.account.accountPermissionSchema, ["clientId", "actions"]).entries,
392
+ actions: v7.partial(permissions.resources.account.accountActionsSchema)
393
+ }),
394
+ v7.object({
395
+ ...v7.omit(permissions.resources.wallet.walletPermissionSchema, ["clientId"]).entries,
396
+ actions: v7.partial(permissions.resources.wallet.walletActionsSchema)
397
+ })
398
+ ]);
389
399
  var requestPermissionsMethodName = "wallet_requestPermissions";
390
- var requestPermissionsParamsSchema = v7.undefined();
400
+ var requestPermissionsParamsSchema = v7.nullish(v7.array(permissionTemplate));
391
401
  var requestPermissionsResultSchema = v7.literal(true);
392
402
  var requestPermissionsRequestMessageSchema = v7.object({
393
403
  ...rpcRequestMessageSchema.entries,
@@ -398,8 +408,8 @@ var requestPermissionsRequestMessageSchema = v7.object({
398
408
  }).entries
399
409
  });
400
410
  var renouncePermissionsMethodName = "wallet_renouncePermissions";
401
- var renouncePermissionsParamsSchema = v7.undefined();
402
- var renouncePermissionsResultSchema = v7.literal(true);
411
+ var renouncePermissionsParamsSchema = v7.nullish(v7.null());
412
+ var renouncePermissionsResultSchema = v7.nullish(v7.null());
403
413
  var renouncePermissionsRequestMessageSchema = v7.object({
404
414
  ...rpcRequestMessageSchema.entries,
405
415
  ...v7.object({
@@ -408,6 +418,17 @@ var renouncePermissionsRequestMessageSchema = v7.object({
408
418
  id: v7.string()
409
419
  }).entries
410
420
  });
421
+ var disconnectMethodName = "wallet_disconnect";
422
+ var disconnectParamsSchema = v7.nullish(v7.null());
423
+ var disconnectResultSchema = v7.nullish(v7.null());
424
+ var disconnectRequestMessageSchema = v7.object({
425
+ ...rpcRequestMessageSchema.entries,
426
+ ...v7.object({
427
+ method: v7.literal(disconnectMethodName),
428
+ params: disconnectParamsSchema,
429
+ id: v7.string()
430
+ }).entries
431
+ });
411
432
  var getWalletTypeMethodName = "wallet_getWalletType";
412
433
  var getWalletTypeParamsSchema = v7.nullish(v7.null());
413
434
  var getWalletTypeResultSchema = walletTypeSchema;
@@ -415,18 +436,65 @@ var getWalletTypeRequestMessageSchema = v7.object({
415
436
  ...rpcRequestMessageSchema.entries,
416
437
  ...v7.object({
417
438
  method: v7.literal(getWalletTypeMethodName),
439
+ params: getWalletTypeParamsSchema,
418
440
  id: v7.string()
419
441
  }).entries
420
442
  });
421
443
  var getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
422
444
  var getCurrentPermissionsParamsSchema = v7.nullish(v7.null());
423
- var getCurrentPermissionsResultSchema = v7.array(
424
- v7.object({ ...permissions.schemas.permission.entries, resource: permissions.schemas.resource })
425
- );
445
+ var getCurrentPermissionsResultSchema = v7.array(permissions.store.permission);
426
446
  var getCurrentPermissionsRequestMessageSchema = v7.object({
427
447
  ...rpcRequestMessageSchema.entries,
428
448
  ...v7.object({
429
449
  method: v7.literal(getCurrentPermissionsMethodName),
450
+ params: getCurrentPermissionsParamsSchema,
451
+ id: v7.string()
452
+ }).entries
453
+ });
454
+ var getAccountMethodName = "wallet_getAccount";
455
+ var getAccountParamsSchema = v7.nullish(v7.null());
456
+ var getAccountResultSchema = v7.object({
457
+ id: permissions.utils.account.accountIdSchema,
458
+ addresses: v7.array(addressSchema),
459
+ walletType: walletTypeSchema
460
+ });
461
+ var getAccountRequestMessageSchema = v7.object({
462
+ ...rpcRequestMessageSchema.entries,
463
+ ...v7.object({
464
+ method: v7.literal(getAccountMethodName),
465
+ params: getAccountParamsSchema,
466
+ id: v7.string()
467
+ }).entries
468
+ });
469
+ var registerClientMethodName = "wallet_registerClient";
470
+ var registerClientParamsSchema = v7.object({
471
+ name: v7.optional(v7.string()),
472
+ description: v7.optional(v7.string())
473
+ });
474
+ var registerClientResultSchema = v7.object({
475
+ id: v7.string()
476
+ });
477
+ var registerClientRequestMessageSchema = v7.object({
478
+ ...rpcRequestMessageSchema.entries,
479
+ ...v7.object({
480
+ method: v7.literal(registerClientMethodName),
481
+ params: registerClientParamsSchema,
482
+ id: v7.string()
483
+ }).entries
484
+ });
485
+ var connectMethodName = "wallet_connect";
486
+ var connectParamsSchema = v7.nullish(
487
+ v7.object({
488
+ permissions: v7.optional(v7.array(permissionTemplate)),
489
+ clientInfo: registerClientParamsSchema
490
+ })
491
+ );
492
+ var connectResultSchema = getAccountResultSchema;
493
+ var connectRequestMessageSchema = v7.object({
494
+ ...rpcRequestMessageSchema.entries,
495
+ ...v7.object({
496
+ method: v7.literal(connectMethodName),
497
+ params: connectParamsSchema,
430
498
  id: v7.string()
431
499
  }).entries
432
500
  });
@@ -1479,11 +1547,23 @@ export {
1479
1547
  accountChangeSchema,
1480
1548
  addListener,
1481
1549
  addressSchema,
1550
+ connectMethodName,
1551
+ connectParamsSchema,
1552
+ connectRequestMessageSchema,
1553
+ connectResultSchema,
1482
1554
  createInscription,
1483
1555
  createRepeatInscriptions,
1484
1556
  defaultAdapters,
1485
1557
  disconnectEventName,
1558
+ disconnectMethodName,
1559
+ disconnectParamsSchema,
1560
+ disconnectRequestMessageSchema,
1561
+ disconnectResultSchema,
1486
1562
  disconnectSchema,
1563
+ getAccountMethodName,
1564
+ getAccountParamsSchema,
1565
+ getAccountRequestMessageSchema,
1566
+ getAccountResultSchema,
1487
1567
  getAccountsMethodName,
1488
1568
  getAccountsParamsSchema,
1489
1569
  getAccountsRequestMessageSchema,
@@ -1526,6 +1606,11 @@ export {
1526
1606
  isProviderInstalled,
1527
1607
  networkChangeEventName,
1528
1608
  networkChangeSchema,
1609
+ permissionTemplate,
1610
+ registerClientMethodName,
1611
+ registerClientParamsSchema,
1612
+ registerClientRequestMessageSchema,
1613
+ registerClientResultSchema,
1529
1614
  removeDefaultProvider,
1530
1615
  renouncePermissionsMethodName,
1531
1616
  renouncePermissionsParamsSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.4.0-791813d",
3
+ "version": "0.4.0-8f3e1e5",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
@@ -25,7 +25,7 @@
25
25
  ]
26
26
  },
27
27
  "dependencies": {
28
- "@secretkeylabs/xverse-core": "21.1.0-7e6ee40",
28
+ "@secretkeylabs/xverse-core": "24.0.0-30944ea",
29
29
  "axios": "1.7.4",
30
30
  "bitcoin-address-validation": "2.2.3",
31
31
  "buffer": "6.0.3",