@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 +291 -469
- package/dist/index.mjs +13 -9
- package/package.json +2 -2
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
|
|
1054
|
-
* since the wallet performs authentication based on the
|
|
1055
|
-
* should not rely on the client authenticating
|
|
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
|
|
1058
|
-
readonly
|
|
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
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
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
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
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
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
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
|
-
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
readonly
|
|
1109
|
-
|
|
1110
|
-
readonly
|
|
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
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
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
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
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
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
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
|
-
|
|
1161
|
-
}
|
|
1162
|
-
|
|
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", [
|
|
1165
|
-
readonly
|
|
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
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
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
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
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
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
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
|
-
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
readonly
|
|
1216
|
-
|
|
1217
|
-
readonly
|
|
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
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
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
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
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
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
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
|
-
|
|
1268
|
-
}
|
|
1269
|
-
|
|
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", [
|
|
1274
|
-
readonly
|
|
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
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
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
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
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
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
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
|
-
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
readonly
|
|
1325
|
-
|
|
1326
|
-
readonly
|
|
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
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
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
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
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
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
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
|
-
|
|
1377
|
-
}
|
|
1378
|
-
|
|
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", [
|
|
1482
|
-
readonly
|
|
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
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
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
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
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
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
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
|
-
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
readonly
|
|
1533
|
-
|
|
1534
|
-
readonly
|
|
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
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
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
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
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
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
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
|
-
|
|
1585
|
-
}
|
|
1586
|
-
|
|
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", [
|
|
1606
|
-
readonly
|
|
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
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
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
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
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
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
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
|
-
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
readonly
|
|
1657
|
-
|
|
1658
|
-
readonly
|
|
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
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
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
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
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
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
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
|
-
|
|
1709
|
-
}
|
|
1710
|
-
|
|
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,
|
|
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
|
|
390
|
-
v7.
|
|
391
|
-
v7.omit(permissions.resources.account.accountPermissionSchema, ["clientId"]),
|
|
392
|
-
v7.
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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",
|