@sats-connect/core 0.4.0-791813d → 0.4.0-9b65d1d

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