@sats-connect/core 0.4.0-2e214e5 → 0.4.0-3185748

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
@@ -1050,332 +1050,226 @@ type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionR
1050
1050
  type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
1051
1051
 
1052
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.
1053
+ * Permissions with the clientId field omitted and optional actions. Used for
1054
+ * permission requests, since the wallet performs authentication based on the
1055
+ * client's tab origin and should not rely on the client authenticating
1056
+ * themselves.
1056
1057
  */
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<{
1058
+ declare const permissionTemplate: v.VariantSchema<"type", [v.ObjectSchema<{
1059
+ readonly actions: Omit<v.ObjectSchema<{
1062
1060
  readonly read: v.BooleanSchema<undefined>;
1063
1061
  readonly autoSign: v.BooleanSchema<undefined>;
1064
1062
  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;
1063
+ }, undefined>, "_types" | "_run" | "entries"> & {
1064
+ readonly entries: {
1065
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1066
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1067
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1084
1068
  };
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;
1069
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1070
+ read?: boolean | undefined;
1071
+ autoSign?: boolean | undefined;
1072
+ rename?: boolean | undefined;
1073
+ }, v.ObjectIssue | v.BooleanIssue>;
1074
+ readonly _types?: {
1075
+ readonly input: {
1076
+ read?: boolean | undefined;
1077
+ autoSign?: boolean | undefined;
1078
+ rename?: boolean | undefined;
1094
1079
  };
1095
- };
1096
- readonly output: {
1097
- type: "account";
1098
- resourceId: string & v.Brand<"AccountResourceId">;
1099
- actions: {
1100
- read: boolean;
1101
- autoSign: boolean;
1102
- rename: boolean;
1080
+ readonly output: {
1081
+ read?: boolean | undefined;
1082
+ autoSign?: boolean | undefined;
1083
+ rename?: boolean | undefined;
1103
1084
  };
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<{
1085
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1086
+ } | undefined;
1087
+ };
1088
+ readonly type: v.LiteralSchema<"account", undefined>;
1089
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1090
+ }, undefined>, v.ObjectSchema<{
1091
+ readonly actions: Omit<v.ObjectSchema<{
1112
1092
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1113
1093
  readonly openPopup: v.BooleanSchema<undefined>;
1114
1094
  readonly openFullPage: v.BooleanSchema<undefined>;
1115
1095
  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;
1096
+ }, undefined>, "_types" | "_run" | "entries"> & {
1097
+ readonly entries: {
1098
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1099
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1100
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1101
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1137
1102
  };
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;
1103
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1104
+ addPrivateKey?: boolean | undefined;
1105
+ openPopup?: boolean | undefined;
1106
+ openFullPage?: boolean | undefined;
1107
+ readAllAccounts?: boolean | undefined;
1108
+ }, v.ObjectIssue | v.BooleanIssue>;
1109
+ readonly _types?: {
1110
+ readonly input: {
1111
+ addPrivateKey?: boolean | undefined;
1112
+ openPopup?: boolean | undefined;
1113
+ openFullPage?: boolean | undefined;
1114
+ readAllAccounts?: boolean | undefined;
1148
1115
  };
1149
- };
1150
- readonly output: {
1151
- type: "wallet";
1152
- resourceId: "wallet";
1153
- actions: {
1154
- addPrivateKey: boolean;
1155
- openPopup: boolean;
1156
- openFullPage: boolean;
1157
- readAllAccounts: boolean;
1116
+ readonly output: {
1117
+ addPrivateKey?: boolean | undefined;
1118
+ openPopup?: boolean | undefined;
1119
+ openFullPage?: boolean | undefined;
1120
+ readAllAccounts?: boolean | undefined;
1158
1121
  };
1159
- };
1160
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1161
- } | undefined;
1162
- }], undefined>, undefined>;
1122
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1123
+ } | undefined;
1124
+ };
1125
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1126
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1127
+ }, undefined>], undefined>;
1128
+ type PermissionWithoutClientId = v.InferOutput<typeof permissionTemplate>;
1163
1129
  declare const requestPermissionsMethodName = "wallet_requestPermissions";
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<{
1130
+ declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1131
+ readonly actions: Omit<v.ObjectSchema<{
1169
1132
  readonly read: v.BooleanSchema<undefined>;
1170
1133
  readonly autoSign: v.BooleanSchema<undefined>;
1171
1134
  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;
1135
+ }, undefined>, "_types" | "_run" | "entries"> & {
1136
+ readonly entries: {
1137
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1138
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1139
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1191
1140
  };
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;
1141
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1142
+ read?: boolean | undefined;
1143
+ autoSign?: boolean | undefined;
1144
+ rename?: boolean | undefined;
1145
+ }, v.ObjectIssue | v.BooleanIssue>;
1146
+ readonly _types?: {
1147
+ readonly input: {
1148
+ read?: boolean | undefined;
1149
+ autoSign?: boolean | undefined;
1150
+ rename?: boolean | undefined;
1201
1151
  };
1202
- };
1203
- readonly output: {
1204
- type: "account";
1205
- resourceId: string & v.Brand<"AccountResourceId">;
1206
- actions: {
1207
- read: boolean;
1208
- autoSign: boolean;
1209
- rename: boolean;
1152
+ readonly output: {
1153
+ read?: boolean | undefined;
1154
+ autoSign?: boolean | undefined;
1155
+ rename?: boolean | undefined;
1210
1156
  };
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<{
1157
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1158
+ } | undefined;
1159
+ };
1160
+ readonly type: v.LiteralSchema<"account", undefined>;
1161
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1162
+ }, undefined>, v.ObjectSchema<{
1163
+ readonly actions: Omit<v.ObjectSchema<{
1219
1164
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1220
1165
  readonly openPopup: v.BooleanSchema<undefined>;
1221
1166
  readonly openFullPage: v.BooleanSchema<undefined>;
1222
1167
  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;
1168
+ }, undefined>, "_types" | "_run" | "entries"> & {
1169
+ readonly entries: {
1170
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1171
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1172
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1173
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1244
1174
  };
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;
1175
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1176
+ addPrivateKey?: boolean | undefined;
1177
+ openPopup?: boolean | undefined;
1178
+ openFullPage?: boolean | undefined;
1179
+ readAllAccounts?: boolean | undefined;
1180
+ }, v.ObjectIssue | v.BooleanIssue>;
1181
+ readonly _types?: {
1182
+ readonly input: {
1183
+ addPrivateKey?: boolean | undefined;
1184
+ openPopup?: boolean | undefined;
1185
+ openFullPage?: boolean | undefined;
1186
+ readAllAccounts?: boolean | undefined;
1255
1187
  };
1256
- };
1257
- readonly output: {
1258
- type: "wallet";
1259
- resourceId: "wallet";
1260
- actions: {
1261
- addPrivateKey: boolean;
1262
- openPopup: boolean;
1263
- openFullPage: boolean;
1264
- readAllAccounts: boolean;
1188
+ readonly output: {
1189
+ addPrivateKey?: boolean | undefined;
1190
+ openPopup?: boolean | undefined;
1191
+ openFullPage?: boolean | undefined;
1192
+ readAllAccounts?: boolean | undefined;
1265
1193
  };
1266
- };
1267
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1268
- } | undefined;
1269
- }], undefined>, undefined>, never>;
1194
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1195
+ } | undefined;
1196
+ };
1197
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1198
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1199
+ }, undefined>], undefined>, undefined>, never>;
1270
1200
  declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
1271
1201
  declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
1272
1202
  readonly method: v.LiteralSchema<"wallet_requestPermissions", 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<{
1203
+ readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1204
+ readonly actions: Omit<v.ObjectSchema<{
1278
1205
  readonly read: v.BooleanSchema<undefined>;
1279
1206
  readonly autoSign: v.BooleanSchema<undefined>;
1280
1207
  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;
1208
+ }, undefined>, "_types" | "_run" | "entries"> & {
1209
+ readonly entries: {
1210
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1211
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1212
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1300
1213
  };
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;
1214
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1215
+ read?: boolean | undefined;
1216
+ autoSign?: boolean | undefined;
1217
+ rename?: boolean | undefined;
1218
+ }, v.ObjectIssue | v.BooleanIssue>;
1219
+ readonly _types?: {
1220
+ readonly input: {
1221
+ read?: boolean | undefined;
1222
+ autoSign?: boolean | undefined;
1223
+ rename?: boolean | undefined;
1310
1224
  };
1311
- };
1312
- readonly output: {
1313
- type: "account";
1314
- resourceId: string & v.Brand<"AccountResourceId">;
1315
- actions: {
1316
- read: boolean;
1317
- autoSign: boolean;
1318
- rename: boolean;
1225
+ readonly output: {
1226
+ read?: boolean | undefined;
1227
+ autoSign?: boolean | undefined;
1228
+ rename?: boolean | undefined;
1319
1229
  };
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<{
1230
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1231
+ } | undefined;
1232
+ };
1233
+ readonly type: v.LiteralSchema<"account", undefined>;
1234
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1235
+ }, undefined>, v.ObjectSchema<{
1236
+ readonly actions: Omit<v.ObjectSchema<{
1328
1237
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1329
1238
  readonly openPopup: v.BooleanSchema<undefined>;
1330
1239
  readonly openFullPage: v.BooleanSchema<undefined>;
1331
1240
  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;
1241
+ }, undefined>, "_types" | "_run" | "entries"> & {
1242
+ readonly entries: {
1243
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1244
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1245
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1246
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1353
1247
  };
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;
1248
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1249
+ addPrivateKey?: boolean | undefined;
1250
+ openPopup?: boolean | undefined;
1251
+ openFullPage?: boolean | undefined;
1252
+ readAllAccounts?: boolean | undefined;
1253
+ }, v.ObjectIssue | v.BooleanIssue>;
1254
+ readonly _types?: {
1255
+ readonly input: {
1256
+ addPrivateKey?: boolean | undefined;
1257
+ openPopup?: boolean | undefined;
1258
+ openFullPage?: boolean | undefined;
1259
+ readAllAccounts?: boolean | undefined;
1364
1260
  };
1365
- };
1366
- readonly output: {
1367
- type: "wallet";
1368
- resourceId: "wallet";
1369
- actions: {
1370
- addPrivateKey: boolean;
1371
- openPopup: boolean;
1372
- openFullPage: boolean;
1373
- readAllAccounts: boolean;
1261
+ readonly output: {
1262
+ addPrivateKey?: boolean | undefined;
1263
+ openPopup?: boolean | undefined;
1264
+ openFullPage?: boolean | undefined;
1265
+ readAllAccounts?: boolean | undefined;
1374
1266
  };
1375
- };
1376
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1377
- } | undefined;
1378
- }], undefined>, undefined>, never>;
1267
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1268
+ } | undefined;
1269
+ };
1270
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1271
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1272
+ }, undefined>], undefined>, undefined>, never>;
1379
1273
  readonly id: v.StringSchema<undefined>;
1380
1274
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1381
1275
  }, undefined>;
@@ -1478,112 +1372,76 @@ declare const registerClientRequestMessageSchema: v.ObjectSchema<{
1478
1372
  type RegisterClient = MethodParamsAndResult<v.InferOutput<typeof registerClientParamsSchema>, v.InferOutput<typeof registerClientResultSchema>>;
1479
1373
  declare const connectMethodName = "wallet_connect";
1480
1374
  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<{
1375
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1376
+ readonly actions: Omit<v.ObjectSchema<{
1486
1377
  readonly read: v.BooleanSchema<undefined>;
1487
1378
  readonly autoSign: v.BooleanSchema<undefined>;
1488
1379
  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;
1380
+ }, undefined>, "_types" | "_run" | "entries"> & {
1381
+ readonly entries: {
1382
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1383
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1384
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1508
1385
  };
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;
1386
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1387
+ read?: boolean | undefined;
1388
+ autoSign?: boolean | undefined;
1389
+ rename?: boolean | undefined;
1390
+ }, v.ObjectIssue | v.BooleanIssue>;
1391
+ readonly _types?: {
1392
+ readonly input: {
1393
+ read?: boolean | undefined;
1394
+ autoSign?: boolean | undefined;
1395
+ rename?: boolean | undefined;
1518
1396
  };
1519
- };
1520
- readonly output: {
1521
- type: "account";
1522
- resourceId: string & v.Brand<"AccountResourceId">;
1523
- actions: {
1524
- read: boolean;
1525
- autoSign: boolean;
1526
- rename: boolean;
1397
+ readonly output: {
1398
+ read?: boolean | undefined;
1399
+ autoSign?: boolean | undefined;
1400
+ rename?: boolean | undefined;
1527
1401
  };
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<{
1402
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1403
+ } | undefined;
1404
+ };
1405
+ readonly type: v.LiteralSchema<"account", undefined>;
1406
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1407
+ }, undefined>, v.ObjectSchema<{
1408
+ readonly actions: Omit<v.ObjectSchema<{
1536
1409
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1537
1410
  readonly openPopup: v.BooleanSchema<undefined>;
1538
1411
  readonly openFullPage: v.BooleanSchema<undefined>;
1539
1412
  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;
1413
+ }, undefined>, "_types" | "_run" | "entries"> & {
1414
+ readonly entries: {
1415
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1416
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1417
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1418
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1561
1419
  };
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;
1420
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1421
+ addPrivateKey?: boolean | undefined;
1422
+ openPopup?: boolean | undefined;
1423
+ openFullPage?: boolean | undefined;
1424
+ readAllAccounts?: boolean | undefined;
1425
+ }, v.ObjectIssue | v.BooleanIssue>;
1426
+ readonly _types?: {
1427
+ readonly input: {
1428
+ addPrivateKey?: boolean | undefined;
1429
+ openPopup?: boolean | undefined;
1430
+ openFullPage?: boolean | undefined;
1431
+ readAllAccounts?: boolean | undefined;
1572
1432
  };
1573
- };
1574
- readonly output: {
1575
- type: "wallet";
1576
- resourceId: "wallet";
1577
- actions: {
1578
- addPrivateKey: boolean;
1579
- openPopup: boolean;
1580
- openFullPage: boolean;
1581
- readAllAccounts: boolean;
1433
+ readonly output: {
1434
+ addPrivateKey?: boolean | undefined;
1435
+ openPopup?: boolean | undefined;
1436
+ openFullPage?: boolean | undefined;
1437
+ readAllAccounts?: boolean | undefined;
1582
1438
  };
1583
- };
1584
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1585
- } | undefined;
1586
- }], undefined>, undefined>, never>;
1439
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1440
+ } | undefined;
1441
+ };
1442
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1443
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1444
+ }, undefined>], undefined>, undefined>, never>;
1587
1445
  readonly clientInfo: v.ObjectSchema<{
1588
1446
  readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1589
1447
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
@@ -1602,112 +1460,76 @@ declare const connectResultSchema: v.ObjectSchema<{
1602
1460
  declare const connectRequestMessageSchema: v.ObjectSchema<{
1603
1461
  readonly method: v.LiteralSchema<"wallet_connect", undefined>;
1604
1462
  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<{
1463
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1464
+ readonly actions: Omit<v.ObjectSchema<{
1610
1465
  readonly read: v.BooleanSchema<undefined>;
1611
1466
  readonly autoSign: v.BooleanSchema<undefined>;
1612
1467
  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;
1468
+ }, undefined>, "_types" | "_run" | "entries"> & {
1469
+ readonly entries: {
1470
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1471
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1472
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1632
1473
  };
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;
1474
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1475
+ read?: boolean | undefined;
1476
+ autoSign?: boolean | undefined;
1477
+ rename?: boolean | undefined;
1478
+ }, v.ObjectIssue | v.BooleanIssue>;
1479
+ readonly _types?: {
1480
+ readonly input: {
1481
+ read?: boolean | undefined;
1482
+ autoSign?: boolean | undefined;
1483
+ rename?: boolean | undefined;
1642
1484
  };
1643
- };
1644
- readonly output: {
1645
- type: "account";
1646
- resourceId: string & v.Brand<"AccountResourceId">;
1647
- actions: {
1648
- read: boolean;
1649
- autoSign: boolean;
1650
- rename: boolean;
1485
+ readonly output: {
1486
+ read?: boolean | undefined;
1487
+ autoSign?: boolean | undefined;
1488
+ rename?: boolean | undefined;
1651
1489
  };
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<{
1490
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1491
+ } | undefined;
1492
+ };
1493
+ readonly type: v.LiteralSchema<"account", undefined>;
1494
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1495
+ }, undefined>, v.ObjectSchema<{
1496
+ readonly actions: Omit<v.ObjectSchema<{
1660
1497
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1661
1498
  readonly openPopup: v.BooleanSchema<undefined>;
1662
1499
  readonly openFullPage: v.BooleanSchema<undefined>;
1663
1500
  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;
1501
+ }, undefined>, "_types" | "_run" | "entries"> & {
1502
+ readonly entries: {
1503
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1504
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1505
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1506
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1685
1507
  };
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;
1508
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1509
+ addPrivateKey?: boolean | undefined;
1510
+ openPopup?: boolean | undefined;
1511
+ openFullPage?: boolean | undefined;
1512
+ readAllAccounts?: boolean | undefined;
1513
+ }, v.ObjectIssue | v.BooleanIssue>;
1514
+ readonly _types?: {
1515
+ readonly input: {
1516
+ addPrivateKey?: boolean | undefined;
1517
+ openPopup?: boolean | undefined;
1518
+ openFullPage?: boolean | undefined;
1519
+ readAllAccounts?: boolean | undefined;
1696
1520
  };
1697
- };
1698
- readonly output: {
1699
- type: "wallet";
1700
- resourceId: "wallet";
1701
- actions: {
1702
- addPrivateKey: boolean;
1703
- openPopup: boolean;
1704
- openFullPage: boolean;
1705
- readAllAccounts: boolean;
1521
+ readonly output: {
1522
+ addPrivateKey?: boolean | undefined;
1523
+ openPopup?: boolean | undefined;
1524
+ openFullPage?: boolean | undefined;
1525
+ readAllAccounts?: boolean | undefined;
1706
1526
  };
1707
- };
1708
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1709
- } | undefined;
1710
- }], undefined>, undefined>, never>;
1527
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1528
+ } | undefined;
1529
+ };
1530
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1531
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1532
+ }, undefined>], undefined>, undefined>, never>;
1711
1533
  readonly clientInfo: v.ObjectSchema<{
1712
1534
  readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1713
1535
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
@@ -1797,4 +1619,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
1797
1619
  declare const DefaultAdaptersInfo: Record<string, Provider>;
1798
1620
  declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
1799
1621
 
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 };
1622
+ 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, permissionTemplate, registerClientMethodName, registerClientParamsSchema, registerClientRequestMessageSchema, registerClientResultSchema, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };
package/dist/index.mjs CHANGED
@@ -386,14 +386,18 @@ var getBalanceRequestMessageSchema = v6.object({
386
386
  // src/request/types/walletMethods.ts
387
387
  import * as v7 from "valibot";
388
388
  import { permissions } from "@secretkeylabs/xverse-core";
389
- var 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
+ var permissionTemplate = v7.variant("type", [
390
+ v7.object({
391
+ ...v7.omit(permissions.resources.account.accountPermissionSchema, ["clientId", "actions"]).entries,
392
+ actions: v7.partial(permissions.resources.account.accountActionsSchema)
393
+ }),
394
+ v7.object({
395
+ ...v7.omit(permissions.resources.wallet.walletPermissionSchema, ["clientId"]).entries,
396
+ actions: v7.partial(permissions.resources.wallet.walletActionSchema)
397
+ })
398
+ ]);
395
399
  var requestPermissionsMethodName = "wallet_requestPermissions";
396
- var requestPermissionsParamsSchema = v7.nullish(permissionsWithoutClientId);
400
+ var requestPermissionsParamsSchema = v7.nullish(v7.array(permissionTemplate));
397
401
  var requestPermissionsResultSchema = v7.literal(true);
398
402
  var requestPermissionsRequestMessageSchema = v7.object({
399
403
  ...rpcRequestMessageSchema.entries,
@@ -481,7 +485,7 @@ var registerClientRequestMessageSchema = v7.object({
481
485
  var connectMethodName = "wallet_connect";
482
486
  var connectParamsSchema = v7.nullish(
483
487
  v7.object({
484
- permissions: v7.optional(permissionsWithoutClientId),
488
+ permissions: v7.optional(v7.array(permissionTemplate)),
485
489
  clientInfo: registerClientParamsSchema
486
490
  })
487
491
  );
@@ -1602,7 +1606,7 @@ export {
1602
1606
  isProviderInstalled,
1603
1607
  networkChangeEventName,
1604
1608
  networkChangeSchema,
1605
- permissionsWithoutClientId,
1609
+ permissionTemplate,
1606
1610
  registerClientMethodName,
1607
1611
  registerClientParamsSchema,
1608
1612
  registerClientRequestMessageSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.4.0-2e214e5",
3
+ "version": "0.4.0-3185748",
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": "23.0.1-d378146",
28
+ "@secretkeylabs/xverse-core": "23.0.1-c146845",
29
29
  "axios": "1.7.4",
30
30
  "bitcoin-address-validation": "2.2.3",
31
31
  "buffer": "6.0.3",