@sats-connect/core 0.4.0-1187a26 → 0.4.0-2e214e5

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,50 +1049,674 @@ 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. Used for permission requests,
1054
+ * since the wallet performs authentication based on the client's tab origin and
1055
+ * should not rely on the client authenticating themselves.
1056
+ */
1057
+ declare const permissionsWithoutClientId: v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1058
+ readonly type: v.LiteralSchema<"account", undefined>;
1059
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1060
+ readonly clientId: v.StringSchema<undefined>;
1061
+ readonly actions: v.ObjectSchema<{
1062
+ readonly read: v.BooleanSchema<undefined>;
1063
+ readonly autoSign: v.BooleanSchema<undefined>;
1064
+ readonly rename: v.BooleanSchema<undefined>;
1065
+ }, undefined>;
1066
+ }, undefined>, "_types" | "_run" | "entries"> & {
1067
+ readonly entries: Omit<{
1068
+ readonly type: v.LiteralSchema<"account", undefined>;
1069
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1070
+ readonly clientId: v.StringSchema<undefined>;
1071
+ readonly actions: v.ObjectSchema<{
1072
+ readonly read: v.BooleanSchema<undefined>;
1073
+ readonly autoSign: v.BooleanSchema<undefined>;
1074
+ readonly rename: v.BooleanSchema<undefined>;
1075
+ }, undefined>;
1076
+ }, "clientId">;
1077
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1078
+ type: "account";
1079
+ resourceId: string & v.Brand<"AccountResourceId">;
1080
+ actions: {
1081
+ read: boolean;
1082
+ autoSign: boolean;
1083
+ rename: boolean;
1084
+ };
1085
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1086
+ readonly _types?: {
1087
+ readonly input: {
1088
+ type: "account";
1089
+ resourceId: string;
1090
+ actions: {
1091
+ read: boolean;
1092
+ autoSign: boolean;
1093
+ rename: boolean;
1094
+ };
1095
+ };
1096
+ readonly output: {
1097
+ type: "account";
1098
+ resourceId: string & v.Brand<"AccountResourceId">;
1099
+ actions: {
1100
+ read: boolean;
1101
+ autoSign: boolean;
1102
+ rename: boolean;
1103
+ };
1104
+ };
1105
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1106
+ } | undefined;
1107
+ }, Omit<v.ObjectSchema<{
1108
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1109
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1110
+ readonly clientId: v.StringSchema<undefined>;
1111
+ readonly actions: v.ObjectSchema<{
1112
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1113
+ readonly openPopup: v.BooleanSchema<undefined>;
1114
+ readonly openFullPage: v.BooleanSchema<undefined>;
1115
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1116
+ }, undefined>;
1117
+ }, undefined>, "_types" | "_run" | "entries"> & {
1118
+ readonly entries: Omit<{
1119
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1120
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1121
+ readonly clientId: v.StringSchema<undefined>;
1122
+ readonly actions: v.ObjectSchema<{
1123
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1124
+ readonly openPopup: v.BooleanSchema<undefined>;
1125
+ readonly openFullPage: v.BooleanSchema<undefined>;
1126
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1127
+ }, undefined>;
1128
+ }, "clientId">;
1129
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1130
+ type: "wallet";
1131
+ resourceId: "wallet";
1132
+ actions: {
1133
+ addPrivateKey: boolean;
1134
+ openPopup: boolean;
1135
+ openFullPage: boolean;
1136
+ readAllAccounts: boolean;
1137
+ };
1138
+ }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1139
+ readonly _types?: {
1140
+ readonly input: {
1141
+ type: "wallet";
1142
+ resourceId: "wallet";
1143
+ actions: {
1144
+ addPrivateKey: boolean;
1145
+ openPopup: boolean;
1146
+ openFullPage: boolean;
1147
+ readAllAccounts: boolean;
1148
+ };
1149
+ };
1150
+ readonly output: {
1151
+ type: "wallet";
1152
+ resourceId: "wallet";
1153
+ actions: {
1154
+ addPrivateKey: boolean;
1155
+ openPopup: boolean;
1156
+ openFullPage: boolean;
1157
+ readAllAccounts: boolean;
1158
+ };
1159
+ };
1160
+ readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1161
+ } | undefined;
1162
+ }], undefined>, undefined>;
1052
1163
  declare const requestPermissionsMethodName = "wallet_requestPermissions";
1053
- declare const requestPermissionsParamsSchema: v.UndefinedSchema<undefined>;
1164
+ declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1165
+ readonly type: v.LiteralSchema<"account", undefined>;
1166
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1167
+ readonly clientId: v.StringSchema<undefined>;
1168
+ readonly actions: v.ObjectSchema<{
1169
+ readonly read: v.BooleanSchema<undefined>;
1170
+ readonly autoSign: v.BooleanSchema<undefined>;
1171
+ readonly rename: v.BooleanSchema<undefined>;
1172
+ }, undefined>;
1173
+ }, undefined>, "_types" | "_run" | "entries"> & {
1174
+ readonly entries: Omit<{
1175
+ readonly type: v.LiteralSchema<"account", undefined>;
1176
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1177
+ readonly clientId: v.StringSchema<undefined>;
1178
+ readonly actions: v.ObjectSchema<{
1179
+ readonly read: v.BooleanSchema<undefined>;
1180
+ readonly autoSign: v.BooleanSchema<undefined>;
1181
+ readonly rename: v.BooleanSchema<undefined>;
1182
+ }, undefined>;
1183
+ }, "clientId">;
1184
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1185
+ type: "account";
1186
+ resourceId: string & v.Brand<"AccountResourceId">;
1187
+ actions: {
1188
+ read: boolean;
1189
+ autoSign: boolean;
1190
+ rename: boolean;
1191
+ };
1192
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1193
+ readonly _types?: {
1194
+ readonly input: {
1195
+ type: "account";
1196
+ resourceId: string;
1197
+ actions: {
1198
+ read: boolean;
1199
+ autoSign: boolean;
1200
+ rename: boolean;
1201
+ };
1202
+ };
1203
+ readonly output: {
1204
+ type: "account";
1205
+ resourceId: string & v.Brand<"AccountResourceId">;
1206
+ actions: {
1207
+ read: boolean;
1208
+ autoSign: boolean;
1209
+ rename: boolean;
1210
+ };
1211
+ };
1212
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1213
+ } | undefined;
1214
+ }, Omit<v.ObjectSchema<{
1215
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1216
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1217
+ readonly clientId: v.StringSchema<undefined>;
1218
+ readonly actions: v.ObjectSchema<{
1219
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1220
+ readonly openPopup: v.BooleanSchema<undefined>;
1221
+ readonly openFullPage: v.BooleanSchema<undefined>;
1222
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1223
+ }, undefined>;
1224
+ }, undefined>, "_types" | "_run" | "entries"> & {
1225
+ readonly entries: Omit<{
1226
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1227
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1228
+ readonly clientId: v.StringSchema<undefined>;
1229
+ readonly actions: v.ObjectSchema<{
1230
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1231
+ readonly openPopup: v.BooleanSchema<undefined>;
1232
+ readonly openFullPage: v.BooleanSchema<undefined>;
1233
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1234
+ }, undefined>;
1235
+ }, "clientId">;
1236
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1237
+ type: "wallet";
1238
+ resourceId: "wallet";
1239
+ actions: {
1240
+ addPrivateKey: boolean;
1241
+ openPopup: boolean;
1242
+ openFullPage: boolean;
1243
+ readAllAccounts: boolean;
1244
+ };
1245
+ }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1246
+ readonly _types?: {
1247
+ readonly input: {
1248
+ type: "wallet";
1249
+ resourceId: "wallet";
1250
+ actions: {
1251
+ addPrivateKey: boolean;
1252
+ openPopup: boolean;
1253
+ openFullPage: boolean;
1254
+ readAllAccounts: boolean;
1255
+ };
1256
+ };
1257
+ readonly output: {
1258
+ type: "wallet";
1259
+ resourceId: "wallet";
1260
+ actions: {
1261
+ addPrivateKey: boolean;
1262
+ openPopup: boolean;
1263
+ openFullPage: boolean;
1264
+ readAllAccounts: boolean;
1265
+ };
1266
+ };
1267
+ readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1268
+ } | undefined;
1269
+ }], undefined>, undefined>, never>;
1054
1270
  declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
1055
1271
  declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
1056
1272
  readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
1057
- readonly params: v.UndefinedSchema<undefined>;
1273
+ readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1274
+ readonly type: v.LiteralSchema<"account", undefined>;
1275
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1276
+ readonly clientId: v.StringSchema<undefined>;
1277
+ readonly actions: v.ObjectSchema<{
1278
+ readonly read: v.BooleanSchema<undefined>;
1279
+ readonly autoSign: v.BooleanSchema<undefined>;
1280
+ readonly rename: v.BooleanSchema<undefined>;
1281
+ }, undefined>;
1282
+ }, undefined>, "_types" | "_run" | "entries"> & {
1283
+ readonly entries: Omit<{
1284
+ readonly type: v.LiteralSchema<"account", undefined>;
1285
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1286
+ readonly clientId: v.StringSchema<undefined>;
1287
+ readonly actions: v.ObjectSchema<{
1288
+ readonly read: v.BooleanSchema<undefined>;
1289
+ readonly autoSign: v.BooleanSchema<undefined>;
1290
+ readonly rename: v.BooleanSchema<undefined>;
1291
+ }, undefined>;
1292
+ }, "clientId">;
1293
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1294
+ type: "account";
1295
+ resourceId: string & v.Brand<"AccountResourceId">;
1296
+ actions: {
1297
+ read: boolean;
1298
+ autoSign: boolean;
1299
+ rename: boolean;
1300
+ };
1301
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1302
+ readonly _types?: {
1303
+ readonly input: {
1304
+ type: "account";
1305
+ resourceId: string;
1306
+ actions: {
1307
+ read: boolean;
1308
+ autoSign: boolean;
1309
+ rename: boolean;
1310
+ };
1311
+ };
1312
+ readonly output: {
1313
+ type: "account";
1314
+ resourceId: string & v.Brand<"AccountResourceId">;
1315
+ actions: {
1316
+ read: boolean;
1317
+ autoSign: boolean;
1318
+ rename: boolean;
1319
+ };
1320
+ };
1321
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1322
+ } | undefined;
1323
+ }, Omit<v.ObjectSchema<{
1324
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1325
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1326
+ readonly clientId: v.StringSchema<undefined>;
1327
+ readonly actions: v.ObjectSchema<{
1328
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1329
+ readonly openPopup: v.BooleanSchema<undefined>;
1330
+ readonly openFullPage: v.BooleanSchema<undefined>;
1331
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1332
+ }, undefined>;
1333
+ }, undefined>, "_types" | "_run" | "entries"> & {
1334
+ readonly entries: Omit<{
1335
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1336
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1337
+ readonly clientId: v.StringSchema<undefined>;
1338
+ readonly actions: v.ObjectSchema<{
1339
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1340
+ readonly openPopup: v.BooleanSchema<undefined>;
1341
+ readonly openFullPage: v.BooleanSchema<undefined>;
1342
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1343
+ }, undefined>;
1344
+ }, "clientId">;
1345
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1346
+ type: "wallet";
1347
+ resourceId: "wallet";
1348
+ actions: {
1349
+ addPrivateKey: boolean;
1350
+ openPopup: boolean;
1351
+ openFullPage: boolean;
1352
+ readAllAccounts: boolean;
1353
+ };
1354
+ }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1355
+ readonly _types?: {
1356
+ readonly input: {
1357
+ type: "wallet";
1358
+ resourceId: "wallet";
1359
+ actions: {
1360
+ addPrivateKey: boolean;
1361
+ openPopup: boolean;
1362
+ openFullPage: boolean;
1363
+ readAllAccounts: boolean;
1364
+ };
1365
+ };
1366
+ readonly output: {
1367
+ type: "wallet";
1368
+ resourceId: "wallet";
1369
+ actions: {
1370
+ addPrivateKey: boolean;
1371
+ openPopup: boolean;
1372
+ openFullPage: boolean;
1373
+ readAllAccounts: boolean;
1374
+ };
1375
+ };
1376
+ readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1377
+ } | undefined;
1378
+ }], undefined>, undefined>, never>;
1058
1379
  readonly id: v.StringSchema<undefined>;
1059
1380
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1060
1381
  }, undefined>;
1061
1382
  type RequestPermissions = MethodParamsAndResult<v.InferOutput<typeof requestPermissionsParamsSchema>, v.InferOutput<typeof requestPermissionsResultSchema>>;
1062
1383
  declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
1063
- declare const renouncePermissionsParamsSchema: v.UndefinedSchema<undefined>;
1064
- declare const renouncePermissionsResultSchema: v.LiteralSchema<true, undefined>;
1384
+ declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1385
+ declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1065
1386
  declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
1066
1387
  readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
1067
- readonly params: v.UndefinedSchema<undefined>;
1388
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1068
1389
  readonly id: v.StringSchema<undefined>;
1069
1390
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1070
1391
  }, undefined>;
1071
1392
  type RenouncePermissions = MethodParamsAndResult<v.InferOutput<typeof renouncePermissionsParamsSchema>, v.InferOutput<typeof renouncePermissionsResultSchema>>;
1393
+ declare const disconnectMethodName = "wallet_disconnect";
1394
+ declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1395
+ declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1396
+ declare const disconnectRequestMessageSchema: v.ObjectSchema<{
1397
+ readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
1398
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1399
+ readonly id: v.StringSchema<undefined>;
1400
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1401
+ }, undefined>;
1402
+ type Disconnect = MethodParamsAndResult<v.InferOutput<typeof disconnectParamsSchema>, v.InferOutput<typeof disconnectResultSchema>>;
1072
1403
  declare const getWalletTypeMethodName = "wallet_getWalletType";
1073
1404
  declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1074
1405
  declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1075
1406
  declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
1076
1407
  readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
1408
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1077
1409
  readonly id: v.StringSchema<undefined>;
1078
1410
  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
1411
  }, undefined>;
1081
1412
  type GetWalletType = MethodParamsAndResult<v.InferOutput<typeof getWalletTypeParamsSchema>, v.InferOutput<typeof getWalletTypeResultSchema>>;
1082
1413
  declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
1083
1414
  declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1084
- declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.ObjectSchema<{
1085
- readonly clientId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.UrlAction<string, undefined>, v.BrandAction<string, "ClientId">]>;
1086
- readonly resourceId: v.UnionSchema<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountResourceId">]>], undefined>;
1087
- readonly actions: v.SetSchema<v.PicklistSchema<["create", "read", "update", "delete"], undefined>, undefined>;
1088
- }, undefined>, undefined>;
1415
+ declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1416
+ readonly type: v.LiteralSchema<"account", undefined>;
1417
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1418
+ readonly clientId: v.StringSchema<undefined>;
1419
+ readonly actions: v.ObjectSchema<{
1420
+ readonly read: v.BooleanSchema<undefined>;
1421
+ readonly autoSign: v.BooleanSchema<undefined>;
1422
+ readonly rename: v.BooleanSchema<undefined>;
1423
+ }, undefined>;
1424
+ }, undefined>, v.ObjectSchema<{
1425
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1426
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1427
+ readonly clientId: v.StringSchema<undefined>;
1428
+ readonly actions: v.ObjectSchema<{
1429
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1430
+ readonly openPopup: v.BooleanSchema<undefined>;
1431
+ readonly openFullPage: v.BooleanSchema<undefined>;
1432
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1433
+ }, undefined>;
1434
+ }, undefined>], undefined>, undefined>;
1089
1435
  declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
1090
1436
  readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
1437
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1091
1438
  readonly id: v.StringSchema<undefined>;
1092
1439
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1093
- readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
1094
1440
  }, undefined>;
1095
1441
  type GetCurrentPermissions = MethodParamsAndResult<v.InferOutput<typeof getCurrentPermissionsParamsSchema>, v.InferOutput<typeof getCurrentPermissionsResultSchema>>;
1442
+ declare const getAccountMethodName = "wallet_getAccount";
1443
+ declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1444
+ declare const getAccountResultSchema: v.ObjectSchema<{
1445
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1446
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1447
+ readonly address: v.StringSchema<undefined>;
1448
+ readonly publicKey: v.StringSchema<undefined>;
1449
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1450
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1451
+ }, undefined>, undefined>;
1452
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1453
+ }, undefined>;
1454
+ declare const getAccountRequestMessageSchema: v.ObjectSchema<{
1455
+ readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
1456
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1457
+ readonly id: v.StringSchema<undefined>;
1458
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1459
+ }, undefined>;
1460
+ type GetAccount = MethodParamsAndResult<v.InferOutput<typeof getAccountParamsSchema>, v.InferOutput<typeof getAccountResultSchema>>;
1461
+ declare const registerClientMethodName = "wallet_registerClient";
1462
+ declare const registerClientParamsSchema: v.ObjectSchema<{
1463
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1464
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1465
+ }, undefined>;
1466
+ declare const registerClientResultSchema: v.ObjectSchema<{
1467
+ readonly id: v.StringSchema<undefined>;
1468
+ }, undefined>;
1469
+ declare const registerClientRequestMessageSchema: v.ObjectSchema<{
1470
+ readonly method: v.LiteralSchema<"wallet_registerClient", undefined>;
1471
+ readonly params: v.ObjectSchema<{
1472
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1473
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1474
+ }, undefined>;
1475
+ readonly id: v.StringSchema<undefined>;
1476
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1477
+ }, undefined>;
1478
+ type RegisterClient = MethodParamsAndResult<v.InferOutput<typeof registerClientParamsSchema>, v.InferOutput<typeof registerClientResultSchema>>;
1479
+ declare const connectMethodName = "wallet_connect";
1480
+ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
1481
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1482
+ readonly type: v.LiteralSchema<"account", undefined>;
1483
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1484
+ readonly clientId: v.StringSchema<undefined>;
1485
+ readonly actions: v.ObjectSchema<{
1486
+ readonly read: v.BooleanSchema<undefined>;
1487
+ readonly autoSign: v.BooleanSchema<undefined>;
1488
+ readonly rename: v.BooleanSchema<undefined>;
1489
+ }, undefined>;
1490
+ }, undefined>, "_types" | "_run" | "entries"> & {
1491
+ readonly entries: Omit<{
1492
+ readonly type: v.LiteralSchema<"account", undefined>;
1493
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1494
+ readonly clientId: v.StringSchema<undefined>;
1495
+ readonly actions: v.ObjectSchema<{
1496
+ readonly read: v.BooleanSchema<undefined>;
1497
+ readonly autoSign: v.BooleanSchema<undefined>;
1498
+ readonly rename: v.BooleanSchema<undefined>;
1499
+ }, undefined>;
1500
+ }, "clientId">;
1501
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1502
+ type: "account";
1503
+ resourceId: string & v.Brand<"AccountResourceId">;
1504
+ actions: {
1505
+ read: boolean;
1506
+ autoSign: boolean;
1507
+ rename: boolean;
1508
+ };
1509
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1510
+ readonly _types?: {
1511
+ readonly input: {
1512
+ type: "account";
1513
+ resourceId: string;
1514
+ actions: {
1515
+ read: boolean;
1516
+ autoSign: boolean;
1517
+ rename: boolean;
1518
+ };
1519
+ };
1520
+ readonly output: {
1521
+ type: "account";
1522
+ resourceId: string & v.Brand<"AccountResourceId">;
1523
+ actions: {
1524
+ read: boolean;
1525
+ autoSign: boolean;
1526
+ rename: boolean;
1527
+ };
1528
+ };
1529
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1530
+ } | undefined;
1531
+ }, Omit<v.ObjectSchema<{
1532
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1533
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1534
+ readonly clientId: v.StringSchema<undefined>;
1535
+ readonly actions: v.ObjectSchema<{
1536
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1537
+ readonly openPopup: v.BooleanSchema<undefined>;
1538
+ readonly openFullPage: v.BooleanSchema<undefined>;
1539
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1540
+ }, undefined>;
1541
+ }, undefined>, "_types" | "_run" | "entries"> & {
1542
+ readonly entries: Omit<{
1543
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1544
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1545
+ readonly clientId: v.StringSchema<undefined>;
1546
+ readonly actions: v.ObjectSchema<{
1547
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1548
+ readonly openPopup: v.BooleanSchema<undefined>;
1549
+ readonly openFullPage: v.BooleanSchema<undefined>;
1550
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1551
+ }, undefined>;
1552
+ }, "clientId">;
1553
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1554
+ type: "wallet";
1555
+ resourceId: "wallet";
1556
+ actions: {
1557
+ addPrivateKey: boolean;
1558
+ openPopup: boolean;
1559
+ openFullPage: boolean;
1560
+ readAllAccounts: boolean;
1561
+ };
1562
+ }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1563
+ readonly _types?: {
1564
+ readonly input: {
1565
+ type: "wallet";
1566
+ resourceId: "wallet";
1567
+ actions: {
1568
+ addPrivateKey: boolean;
1569
+ openPopup: boolean;
1570
+ openFullPage: boolean;
1571
+ readAllAccounts: boolean;
1572
+ };
1573
+ };
1574
+ readonly output: {
1575
+ type: "wallet";
1576
+ resourceId: "wallet";
1577
+ actions: {
1578
+ addPrivateKey: boolean;
1579
+ openPopup: boolean;
1580
+ openFullPage: boolean;
1581
+ readAllAccounts: boolean;
1582
+ };
1583
+ };
1584
+ readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1585
+ } | undefined;
1586
+ }], undefined>, undefined>, never>;
1587
+ readonly clientInfo: v.ObjectSchema<{
1588
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1589
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1590
+ }, undefined>;
1591
+ }, undefined>, never>;
1592
+ declare const connectResultSchema: v.ObjectSchema<{
1593
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1594
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1595
+ readonly address: v.StringSchema<undefined>;
1596
+ readonly publicKey: v.StringSchema<undefined>;
1597
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1598
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1599
+ }, undefined>, undefined>;
1600
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1601
+ }, undefined>;
1602
+ declare const connectRequestMessageSchema: v.ObjectSchema<{
1603
+ readonly method: v.LiteralSchema<"wallet_connect", undefined>;
1604
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1605
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1606
+ readonly type: v.LiteralSchema<"account", undefined>;
1607
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1608
+ readonly clientId: v.StringSchema<undefined>;
1609
+ readonly actions: v.ObjectSchema<{
1610
+ readonly read: v.BooleanSchema<undefined>;
1611
+ readonly autoSign: v.BooleanSchema<undefined>;
1612
+ readonly rename: v.BooleanSchema<undefined>;
1613
+ }, undefined>;
1614
+ }, undefined>, "_types" | "_run" | "entries"> & {
1615
+ readonly entries: Omit<{
1616
+ readonly type: v.LiteralSchema<"account", undefined>;
1617
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1618
+ readonly clientId: v.StringSchema<undefined>;
1619
+ readonly actions: v.ObjectSchema<{
1620
+ readonly read: v.BooleanSchema<undefined>;
1621
+ readonly autoSign: v.BooleanSchema<undefined>;
1622
+ readonly rename: v.BooleanSchema<undefined>;
1623
+ }, undefined>;
1624
+ }, "clientId">;
1625
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1626
+ type: "account";
1627
+ resourceId: string & v.Brand<"AccountResourceId">;
1628
+ actions: {
1629
+ read: boolean;
1630
+ autoSign: boolean;
1631
+ rename: boolean;
1632
+ };
1633
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1634
+ readonly _types?: {
1635
+ readonly input: {
1636
+ type: "account";
1637
+ resourceId: string;
1638
+ actions: {
1639
+ read: boolean;
1640
+ autoSign: boolean;
1641
+ rename: boolean;
1642
+ };
1643
+ };
1644
+ readonly output: {
1645
+ type: "account";
1646
+ resourceId: string & v.Brand<"AccountResourceId">;
1647
+ actions: {
1648
+ read: boolean;
1649
+ autoSign: boolean;
1650
+ rename: boolean;
1651
+ };
1652
+ };
1653
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1654
+ } | undefined;
1655
+ }, Omit<v.ObjectSchema<{
1656
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1657
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1658
+ readonly clientId: v.StringSchema<undefined>;
1659
+ readonly actions: v.ObjectSchema<{
1660
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1661
+ readonly openPopup: v.BooleanSchema<undefined>;
1662
+ readonly openFullPage: v.BooleanSchema<undefined>;
1663
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1664
+ }, undefined>;
1665
+ }, undefined>, "_types" | "_run" | "entries"> & {
1666
+ readonly entries: Omit<{
1667
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1668
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1669
+ readonly clientId: v.StringSchema<undefined>;
1670
+ readonly actions: v.ObjectSchema<{
1671
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1672
+ readonly openPopup: v.BooleanSchema<undefined>;
1673
+ readonly openFullPage: v.BooleanSchema<undefined>;
1674
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1675
+ }, undefined>;
1676
+ }, "clientId">;
1677
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1678
+ type: "wallet";
1679
+ resourceId: "wallet";
1680
+ actions: {
1681
+ addPrivateKey: boolean;
1682
+ openPopup: boolean;
1683
+ openFullPage: boolean;
1684
+ readAllAccounts: boolean;
1685
+ };
1686
+ }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1687
+ readonly _types?: {
1688
+ readonly input: {
1689
+ type: "wallet";
1690
+ resourceId: "wallet";
1691
+ actions: {
1692
+ addPrivateKey: boolean;
1693
+ openPopup: boolean;
1694
+ openFullPage: boolean;
1695
+ readAllAccounts: boolean;
1696
+ };
1697
+ };
1698
+ readonly output: {
1699
+ type: "wallet";
1700
+ resourceId: "wallet";
1701
+ actions: {
1702
+ addPrivateKey: boolean;
1703
+ openPopup: boolean;
1704
+ openFullPage: boolean;
1705
+ readAllAccounts: boolean;
1706
+ };
1707
+ };
1708
+ readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1709
+ } | undefined;
1710
+ }], undefined>, undefined>, never>;
1711
+ readonly clientInfo: v.ObjectSchema<{
1712
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1713
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1714
+ }, undefined>;
1715
+ }, undefined>, never>;
1716
+ readonly id: v.StringSchema<undefined>;
1717
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1718
+ }, undefined>;
1719
+ type Connect = MethodParamsAndResult<v.InferOutput<typeof connectParamsSchema>, v.InferOutput<typeof connectResultSchema>>;
1096
1720
 
1097
1721
  declare const walletTypes: readonly ["software", "ledger"];
1098
1722
  declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
@@ -1173,4 +1797,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
1173
1797
  declare const DefaultAdaptersInfo: Record<string, Provider>;
1174
1798
  declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
1175
1799
 
1176
- 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 };
1800
+ 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 CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type Disconnect, type DisconnectEvent, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccount, 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 RegisterClient, 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, 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, permissionsWithoutClientId, 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,14 @@ 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 permissionsWithoutClientId = v7.array(
390
+ v7.variant("type", [
391
+ v7.omit(permissions.resources.account.accountPermissionSchema, ["clientId"]),
392
+ v7.omit(permissions.resources.wallet.walletPermissionSchema, ["clientId"])
393
+ ])
394
+ );
389
395
  var requestPermissionsMethodName = "wallet_requestPermissions";
390
- var requestPermissionsParamsSchema = v7.undefined();
396
+ var requestPermissionsParamsSchema = v7.nullish(permissionsWithoutClientId);
391
397
  var requestPermissionsResultSchema = v7.literal(true);
392
398
  var requestPermissionsRequestMessageSchema = v7.object({
393
399
  ...rpcRequestMessageSchema.entries,
@@ -398,8 +404,8 @@ var requestPermissionsRequestMessageSchema = v7.object({
398
404
  }).entries
399
405
  });
400
406
  var renouncePermissionsMethodName = "wallet_renouncePermissions";
401
- var renouncePermissionsParamsSchema = v7.undefined();
402
- var renouncePermissionsResultSchema = v7.literal(true);
407
+ var renouncePermissionsParamsSchema = v7.nullish(v7.null());
408
+ var renouncePermissionsResultSchema = v7.nullish(v7.null());
403
409
  var renouncePermissionsRequestMessageSchema = v7.object({
404
410
  ...rpcRequestMessageSchema.entries,
405
411
  ...v7.object({
@@ -408,6 +414,17 @@ var renouncePermissionsRequestMessageSchema = v7.object({
408
414
  id: v7.string()
409
415
  }).entries
410
416
  });
417
+ var disconnectMethodName = "wallet_disconnect";
418
+ var disconnectParamsSchema = v7.nullish(v7.null());
419
+ var disconnectResultSchema = v7.nullish(v7.null());
420
+ var disconnectRequestMessageSchema = v7.object({
421
+ ...rpcRequestMessageSchema.entries,
422
+ ...v7.object({
423
+ method: v7.literal(disconnectMethodName),
424
+ params: disconnectParamsSchema,
425
+ id: v7.string()
426
+ }).entries
427
+ });
411
428
  var getWalletTypeMethodName = "wallet_getWalletType";
412
429
  var getWalletTypeParamsSchema = v7.nullish(v7.null());
413
430
  var getWalletTypeResultSchema = walletTypeSchema;
@@ -415,16 +432,65 @@ var getWalletTypeRequestMessageSchema = v7.object({
415
432
  ...rpcRequestMessageSchema.entries,
416
433
  ...v7.object({
417
434
  method: v7.literal(getWalletTypeMethodName),
435
+ params: getWalletTypeParamsSchema,
418
436
  id: v7.string()
419
437
  }).entries
420
438
  });
421
439
  var getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
422
440
  var getCurrentPermissionsParamsSchema = v7.nullish(v7.null());
423
- var getCurrentPermissionsResultSchema = v7.array(permissions.schemas.permission);
441
+ var getCurrentPermissionsResultSchema = v7.array(permissions.store.permission);
424
442
  var getCurrentPermissionsRequestMessageSchema = v7.object({
425
443
  ...rpcRequestMessageSchema.entries,
426
444
  ...v7.object({
427
445
  method: v7.literal(getCurrentPermissionsMethodName),
446
+ params: getCurrentPermissionsParamsSchema,
447
+ id: v7.string()
448
+ }).entries
449
+ });
450
+ var getAccountMethodName = "wallet_getAccount";
451
+ var getAccountParamsSchema = v7.nullish(v7.null());
452
+ var getAccountResultSchema = v7.object({
453
+ id: permissions.utils.account.accountIdSchema,
454
+ addresses: v7.array(addressSchema),
455
+ walletType: walletTypeSchema
456
+ });
457
+ var getAccountRequestMessageSchema = v7.object({
458
+ ...rpcRequestMessageSchema.entries,
459
+ ...v7.object({
460
+ method: v7.literal(getAccountMethodName),
461
+ params: getAccountParamsSchema,
462
+ id: v7.string()
463
+ }).entries
464
+ });
465
+ var registerClientMethodName = "wallet_registerClient";
466
+ var registerClientParamsSchema = v7.object({
467
+ name: v7.optional(v7.string()),
468
+ description: v7.optional(v7.string())
469
+ });
470
+ var registerClientResultSchema = v7.object({
471
+ id: v7.string()
472
+ });
473
+ var registerClientRequestMessageSchema = v7.object({
474
+ ...rpcRequestMessageSchema.entries,
475
+ ...v7.object({
476
+ method: v7.literal(registerClientMethodName),
477
+ params: registerClientParamsSchema,
478
+ id: v7.string()
479
+ }).entries
480
+ });
481
+ var connectMethodName = "wallet_connect";
482
+ var connectParamsSchema = v7.nullish(
483
+ v7.object({
484
+ permissions: v7.optional(permissionsWithoutClientId),
485
+ clientInfo: registerClientParamsSchema
486
+ })
487
+ );
488
+ var connectResultSchema = getAccountResultSchema;
489
+ var connectRequestMessageSchema = v7.object({
490
+ ...rpcRequestMessageSchema.entries,
491
+ ...v7.object({
492
+ method: v7.literal(connectMethodName),
493
+ params: connectParamsSchema,
428
494
  id: v7.string()
429
495
  }).entries
430
496
  });
@@ -1477,11 +1543,23 @@ export {
1477
1543
  accountChangeSchema,
1478
1544
  addListener,
1479
1545
  addressSchema,
1546
+ connectMethodName,
1547
+ connectParamsSchema,
1548
+ connectRequestMessageSchema,
1549
+ connectResultSchema,
1480
1550
  createInscription,
1481
1551
  createRepeatInscriptions,
1482
1552
  defaultAdapters,
1483
1553
  disconnectEventName,
1554
+ disconnectMethodName,
1555
+ disconnectParamsSchema,
1556
+ disconnectRequestMessageSchema,
1557
+ disconnectResultSchema,
1484
1558
  disconnectSchema,
1559
+ getAccountMethodName,
1560
+ getAccountParamsSchema,
1561
+ getAccountRequestMessageSchema,
1562
+ getAccountResultSchema,
1485
1563
  getAccountsMethodName,
1486
1564
  getAccountsParamsSchema,
1487
1565
  getAccountsRequestMessageSchema,
@@ -1524,6 +1602,11 @@ export {
1524
1602
  isProviderInstalled,
1525
1603
  networkChangeEventName,
1526
1604
  networkChangeSchema,
1605
+ permissionsWithoutClientId,
1606
+ registerClientMethodName,
1607
+ registerClientParamsSchema,
1608
+ registerClientRequestMessageSchema,
1609
+ registerClientResultSchema,
1527
1610
  removeDefaultProvider,
1528
1611
  renouncePermissionsMethodName,
1529
1612
  renouncePermissionsParamsSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.4.0-1187a26",
3
+ "version": "0.4.0-2e214e5",
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": "23.0.1-d378146",
29
29
  "axios": "1.7.4",
30
30
  "bitcoin-address-validation": "2.2.3",
31
31
  "buffer": "6.0.3",