@metamask/snaps-rpc-methods 7.0.2 → 8.0.0
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/CHANGELOG.md +7 -1
- package/dist/{chunk-AKRFLGOS.mjs → chunk-AMBEX4N4.mjs} +2 -2
- package/dist/{chunk-FBOZCV3C.js → chunk-EGKFC56F.js} +3 -3
- package/dist/{chunk-7NBRKDKJ.mjs → chunk-NESDQ4PF.mjs} +9 -54
- package/dist/chunk-NESDQ4PF.mjs.map +1 -0
- package/dist/{chunk-KO4MKRYZ.js → chunk-R2M4YLJ7.js} +7 -52
- package/dist/chunk-R2M4YLJ7.js.map +1 -0
- package/dist/{chunk-LVTN25J2.js → chunk-RZXF4KSR.js} +3 -3
- package/dist/{chunk-LVTN25J2.js.map → chunk-RZXF4KSR.js.map} +1 -1
- package/dist/{chunk-3S7DJI4I.mjs → chunk-SU6KOIVB.mjs} +2 -2
- package/dist/chunk-SU6KOIVB.mjs.map +1 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +5 -5
- package/dist/permissions.js +4 -4
- package/dist/permissions.mjs +3 -3
- package/dist/restricted/index.js +3 -3
- package/dist/restricted/index.mjs +4 -4
- package/dist/restricted/manageState.js +2 -2
- package/dist/restricted/manageState.mjs +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/permitted/createInterface.d.ts +38 -38
- package/dist/types/permitted/updateInterface.d.ts +39 -39
- package/dist/types/restricted/dialog.d.ts +144 -144
- package/dist/types/restricted/index.d.ts +1 -1
- package/dist/types/restricted/manageState.d.ts +5 -31
- package/package.json +3 -4
- package/dist/chunk-3S7DJI4I.mjs.map +0 -1
- package/dist/chunk-7NBRKDKJ.mjs.map +0 -1
- package/dist/chunk-KO4MKRYZ.js.map +0 -1
- /package/dist/{chunk-AKRFLGOS.mjs.map → chunk-AMBEX4N4.mjs.map} +0 -0
- /package/dist/{chunk-FBOZCV3C.js.map → chunk-EGKFC56F.js.map} +0 -0
|
@@ -52,6 +52,38 @@ export declare const dialogBuilder: Readonly<{
|
|
|
52
52
|
declare const DialogParametersStruct: Struct<{
|
|
53
53
|
type: "alert";
|
|
54
54
|
content: import("@metamask/snaps-sdk").Panel | {
|
|
55
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
56
|
+
name: string;
|
|
57
|
+
value?: string | undefined;
|
|
58
|
+
error?: string | undefined;
|
|
59
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
60
|
+
placeholder?: string | undefined;
|
|
61
|
+
label?: string | undefined;
|
|
62
|
+
} | {
|
|
63
|
+
value: string;
|
|
64
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
variant?: "primary" | "secondary" | undefined;
|
|
67
|
+
buttonType?: "button" | "submit" | undefined;
|
|
68
|
+
} | {
|
|
69
|
+
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
70
|
+
name: string;
|
|
71
|
+
children: ({
|
|
72
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
73
|
+
name: string;
|
|
74
|
+
value?: string | undefined;
|
|
75
|
+
error?: string | undefined;
|
|
76
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
77
|
+
placeholder?: string | undefined;
|
|
78
|
+
label?: string | undefined;
|
|
79
|
+
} | {
|
|
80
|
+
value: string;
|
|
81
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
82
|
+
name?: string | undefined;
|
|
83
|
+
variant?: "primary" | "secondary" | undefined;
|
|
84
|
+
buttonType?: "button" | "submit" | undefined;
|
|
85
|
+
})[];
|
|
86
|
+
} | {
|
|
55
87
|
value: string;
|
|
56
88
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
57
89
|
sensitive?: boolean | undefined;
|
|
@@ -87,14 +119,20 @@ declare const DialogParametersStruct: Struct<{
|
|
|
87
119
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
88
120
|
label: string;
|
|
89
121
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
90
|
-
}
|
|
122
|
+
};
|
|
123
|
+
} | {
|
|
124
|
+
type: "alert";
|
|
125
|
+
id: string;
|
|
126
|
+
} | {
|
|
127
|
+
type: "confirmation";
|
|
128
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
91
129
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
92
130
|
name: string;
|
|
93
131
|
value?: string | undefined;
|
|
94
132
|
error?: string | undefined;
|
|
95
|
-
label?: string | undefined;
|
|
96
133
|
inputType?: "number" | "text" | "password" | undefined;
|
|
97
134
|
placeholder?: string | undefined;
|
|
135
|
+
label?: string | undefined;
|
|
98
136
|
} | {
|
|
99
137
|
value: string;
|
|
100
138
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -109,9 +147,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
109
147
|
name: string;
|
|
110
148
|
value?: string | undefined;
|
|
111
149
|
error?: string | undefined;
|
|
112
|
-
label?: string | undefined;
|
|
113
150
|
inputType?: "number" | "text" | "password" | undefined;
|
|
114
151
|
placeholder?: string | undefined;
|
|
152
|
+
label?: string | undefined;
|
|
115
153
|
} | {
|
|
116
154
|
value: string;
|
|
117
155
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -119,13 +157,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
119
157
|
variant?: "primary" | "secondary" | undefined;
|
|
120
158
|
buttonType?: "button" | "submit" | undefined;
|
|
121
159
|
})[];
|
|
122
|
-
}
|
|
123
|
-
} | {
|
|
124
|
-
type: "alert";
|
|
125
|
-
id: string;
|
|
126
|
-
} | {
|
|
127
|
-
type: "confirmation";
|
|
128
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
160
|
+
} | {
|
|
129
161
|
value: string;
|
|
130
162
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
131
163
|
sensitive?: boolean | undefined;
|
|
@@ -161,14 +193,20 @@ declare const DialogParametersStruct: Struct<{
|
|
|
161
193
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
162
194
|
label: string;
|
|
163
195
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
164
|
-
}
|
|
196
|
+
};
|
|
197
|
+
} | {
|
|
198
|
+
type: "confirmation";
|
|
199
|
+
id: string;
|
|
200
|
+
} | {
|
|
201
|
+
type: "prompt";
|
|
202
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
165
203
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
166
204
|
name: string;
|
|
167
205
|
value?: string | undefined;
|
|
168
206
|
error?: string | undefined;
|
|
169
|
-
label?: string | undefined;
|
|
170
207
|
inputType?: "number" | "text" | "password" | undefined;
|
|
171
208
|
placeholder?: string | undefined;
|
|
209
|
+
label?: string | undefined;
|
|
172
210
|
} | {
|
|
173
211
|
value: string;
|
|
174
212
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -183,9 +221,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
183
221
|
name: string;
|
|
184
222
|
value?: string | undefined;
|
|
185
223
|
error?: string | undefined;
|
|
186
|
-
label?: string | undefined;
|
|
187
224
|
inputType?: "number" | "text" | "password" | undefined;
|
|
188
225
|
placeholder?: string | undefined;
|
|
226
|
+
label?: string | undefined;
|
|
189
227
|
} | {
|
|
190
228
|
value: string;
|
|
191
229
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -193,13 +231,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
193
231
|
variant?: "primary" | "secondary" | undefined;
|
|
194
232
|
buttonType?: "button" | "submit" | undefined;
|
|
195
233
|
})[];
|
|
196
|
-
}
|
|
197
|
-
} | {
|
|
198
|
-
type: "confirmation";
|
|
199
|
-
id: string;
|
|
200
|
-
} | {
|
|
201
|
-
type: "prompt";
|
|
202
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
234
|
+
} | {
|
|
203
235
|
value: string;
|
|
204
236
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
205
237
|
sensitive?: boolean | undefined;
|
|
@@ -235,14 +267,22 @@ declare const DialogParametersStruct: Struct<{
|
|
|
235
267
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
236
268
|
label: string;
|
|
237
269
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
238
|
-
}
|
|
270
|
+
};
|
|
271
|
+
placeholder?: string | undefined;
|
|
272
|
+
} | {
|
|
273
|
+
type: "prompt";
|
|
274
|
+
id: string;
|
|
275
|
+
placeholder?: string | undefined;
|
|
276
|
+
}, [Struct<{
|
|
277
|
+
type: "alert";
|
|
278
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
239
279
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
240
280
|
name: string;
|
|
241
281
|
value?: string | undefined;
|
|
242
282
|
error?: string | undefined;
|
|
243
|
-
label?: string | undefined;
|
|
244
283
|
inputType?: "number" | "text" | "password" | undefined;
|
|
245
284
|
placeholder?: string | undefined;
|
|
285
|
+
label?: string | undefined;
|
|
246
286
|
} | {
|
|
247
287
|
value: string;
|
|
248
288
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -257,9 +297,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
257
297
|
name: string;
|
|
258
298
|
value?: string | undefined;
|
|
259
299
|
error?: string | undefined;
|
|
260
|
-
label?: string | undefined;
|
|
261
300
|
inputType?: "number" | "text" | "password" | undefined;
|
|
262
301
|
placeholder?: string | undefined;
|
|
302
|
+
label?: string | undefined;
|
|
263
303
|
} | {
|
|
264
304
|
value: string;
|
|
265
305
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -267,15 +307,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
267
307
|
variant?: "primary" | "secondary" | undefined;
|
|
268
308
|
buttonType?: "button" | "submit" | undefined;
|
|
269
309
|
})[];
|
|
270
|
-
}
|
|
271
|
-
placeholder?: string | undefined;
|
|
272
|
-
} | {
|
|
273
|
-
type: "prompt";
|
|
274
|
-
id: string;
|
|
275
|
-
placeholder?: string | undefined;
|
|
276
|
-
}, [Struct<{
|
|
277
|
-
type: "alert";
|
|
278
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
310
|
+
} | {
|
|
279
311
|
value: string;
|
|
280
312
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
281
313
|
sensitive?: boolean | undefined;
|
|
@@ -311,14 +343,20 @@ declare const DialogParametersStruct: Struct<{
|
|
|
311
343
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
312
344
|
label: string;
|
|
313
345
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
314
|
-
}
|
|
346
|
+
};
|
|
347
|
+
} | {
|
|
348
|
+
type: "alert";
|
|
349
|
+
id: string;
|
|
350
|
+
}, [Struct<{
|
|
351
|
+
type: "alert";
|
|
352
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
315
353
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
316
354
|
name: string;
|
|
317
355
|
value?: string | undefined;
|
|
318
356
|
error?: string | undefined;
|
|
319
|
-
label?: string | undefined;
|
|
320
357
|
inputType?: "number" | "text" | "password" | undefined;
|
|
321
358
|
placeholder?: string | undefined;
|
|
359
|
+
label?: string | undefined;
|
|
322
360
|
} | {
|
|
323
361
|
value: string;
|
|
324
362
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -333,9 +371,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
333
371
|
name: string;
|
|
334
372
|
value?: string | undefined;
|
|
335
373
|
error?: string | undefined;
|
|
336
|
-
label?: string | undefined;
|
|
337
374
|
inputType?: "number" | "text" | "password" | undefined;
|
|
338
375
|
placeholder?: string | undefined;
|
|
376
|
+
label?: string | undefined;
|
|
339
377
|
} | {
|
|
340
378
|
value: string;
|
|
341
379
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -343,13 +381,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
343
381
|
variant?: "primary" | "secondary" | undefined;
|
|
344
382
|
buttonType?: "button" | "submit" | undefined;
|
|
345
383
|
})[];
|
|
346
|
-
}
|
|
347
|
-
} | {
|
|
348
|
-
type: "alert";
|
|
349
|
-
id: string;
|
|
350
|
-
}, [Struct<{
|
|
351
|
-
type: "alert";
|
|
352
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
384
|
+
} | {
|
|
353
385
|
value: string;
|
|
354
386
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
355
387
|
sensitive?: boolean | undefined;
|
|
@@ -385,14 +417,17 @@ declare const DialogParametersStruct: Struct<{
|
|
|
385
417
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
386
418
|
label: string;
|
|
387
419
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
388
|
-
}
|
|
420
|
+
};
|
|
421
|
+
}, {
|
|
422
|
+
type: Struct<"alert", null>;
|
|
423
|
+
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
389
424
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
390
425
|
name: string;
|
|
391
426
|
value?: string | undefined;
|
|
392
427
|
error?: string | undefined;
|
|
393
|
-
label?: string | undefined;
|
|
394
428
|
inputType?: "number" | "text" | "password" | undefined;
|
|
395
429
|
placeholder?: string | undefined;
|
|
430
|
+
label?: string | undefined;
|
|
396
431
|
} | {
|
|
397
432
|
value: string;
|
|
398
433
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -407,9 +442,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
407
442
|
name: string;
|
|
408
443
|
value?: string | undefined;
|
|
409
444
|
error?: string | undefined;
|
|
410
|
-
label?: string | undefined;
|
|
411
445
|
inputType?: "number" | "text" | "password" | undefined;
|
|
412
446
|
placeholder?: string | undefined;
|
|
447
|
+
label?: string | undefined;
|
|
413
448
|
} | {
|
|
414
449
|
value: string;
|
|
415
450
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -417,10 +452,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
417
452
|
variant?: "primary" | "secondary" | undefined;
|
|
418
453
|
buttonType?: "button" | "submit" | undefined;
|
|
419
454
|
})[];
|
|
420
|
-
}
|
|
421
|
-
}, {
|
|
422
|
-
type: Struct<"alert", null>;
|
|
423
|
-
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
455
|
+
} | {
|
|
424
456
|
value: string;
|
|
425
457
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
426
458
|
sensitive?: boolean | undefined;
|
|
@@ -456,14 +488,23 @@ declare const DialogParametersStruct: Struct<{
|
|
|
456
488
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
457
489
|
label: string;
|
|
458
490
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
459
|
-
}
|
|
491
|
+
}, null>;
|
|
492
|
+
}>, Struct<{
|
|
493
|
+
type: "alert";
|
|
494
|
+
id: string;
|
|
495
|
+
}, {
|
|
496
|
+
type: Struct<"alert", null>;
|
|
497
|
+
id: Struct<string, null>;
|
|
498
|
+
}>]>, Struct<{
|
|
499
|
+
type: "confirmation";
|
|
500
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
460
501
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
461
502
|
name: string;
|
|
462
503
|
value?: string | undefined;
|
|
463
504
|
error?: string | undefined;
|
|
464
|
-
label?: string | undefined;
|
|
465
505
|
inputType?: "number" | "text" | "password" | undefined;
|
|
466
506
|
placeholder?: string | undefined;
|
|
507
|
+
label?: string | undefined;
|
|
467
508
|
} | {
|
|
468
509
|
value: string;
|
|
469
510
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -478,9 +519,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
478
519
|
name: string;
|
|
479
520
|
value?: string | undefined;
|
|
480
521
|
error?: string | undefined;
|
|
481
|
-
label?: string | undefined;
|
|
482
522
|
inputType?: "number" | "text" | "password" | undefined;
|
|
483
523
|
placeholder?: string | undefined;
|
|
524
|
+
label?: string | undefined;
|
|
484
525
|
} | {
|
|
485
526
|
value: string;
|
|
486
527
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -488,16 +529,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
488
529
|
variant?: "primary" | "secondary" | undefined;
|
|
489
530
|
buttonType?: "button" | "submit" | undefined;
|
|
490
531
|
})[];
|
|
491
|
-
}
|
|
492
|
-
}>, Struct<{
|
|
493
|
-
type: "alert";
|
|
494
|
-
id: string;
|
|
495
|
-
}, {
|
|
496
|
-
type: Struct<"alert", null>;
|
|
497
|
-
id: Struct<string, null>;
|
|
498
|
-
}>]>, Struct<{
|
|
499
|
-
type: "confirmation";
|
|
500
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
532
|
+
} | {
|
|
501
533
|
value: string;
|
|
502
534
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
503
535
|
sensitive?: boolean | undefined;
|
|
@@ -533,14 +565,20 @@ declare const DialogParametersStruct: Struct<{
|
|
|
533
565
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
534
566
|
label: string;
|
|
535
567
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
536
|
-
}
|
|
568
|
+
};
|
|
569
|
+
} | {
|
|
570
|
+
type: "confirmation";
|
|
571
|
+
id: string;
|
|
572
|
+
}, [Struct<{
|
|
573
|
+
type: "confirmation";
|
|
574
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
537
575
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
538
576
|
name: string;
|
|
539
577
|
value?: string | undefined;
|
|
540
578
|
error?: string | undefined;
|
|
541
|
-
label?: string | undefined;
|
|
542
579
|
inputType?: "number" | "text" | "password" | undefined;
|
|
543
580
|
placeholder?: string | undefined;
|
|
581
|
+
label?: string | undefined;
|
|
544
582
|
} | {
|
|
545
583
|
value: string;
|
|
546
584
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -555,9 +593,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
555
593
|
name: string;
|
|
556
594
|
value?: string | undefined;
|
|
557
595
|
error?: string | undefined;
|
|
558
|
-
label?: string | undefined;
|
|
559
596
|
inputType?: "number" | "text" | "password" | undefined;
|
|
560
597
|
placeholder?: string | undefined;
|
|
598
|
+
label?: string | undefined;
|
|
561
599
|
} | {
|
|
562
600
|
value: string;
|
|
563
601
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -565,13 +603,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
565
603
|
variant?: "primary" | "secondary" | undefined;
|
|
566
604
|
buttonType?: "button" | "submit" | undefined;
|
|
567
605
|
})[];
|
|
568
|
-
}
|
|
569
|
-
} | {
|
|
570
|
-
type: "confirmation";
|
|
571
|
-
id: string;
|
|
572
|
-
}, [Struct<{
|
|
573
|
-
type: "confirmation";
|
|
574
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
606
|
+
} | {
|
|
575
607
|
value: string;
|
|
576
608
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
577
609
|
sensitive?: boolean | undefined;
|
|
@@ -607,14 +639,17 @@ declare const DialogParametersStruct: Struct<{
|
|
|
607
639
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
608
640
|
label: string;
|
|
609
641
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
610
|
-
}
|
|
642
|
+
};
|
|
643
|
+
}, {
|
|
644
|
+
type: Struct<"confirmation", null>;
|
|
645
|
+
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
611
646
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
612
647
|
name: string;
|
|
613
648
|
value?: string | undefined;
|
|
614
649
|
error?: string | undefined;
|
|
615
|
-
label?: string | undefined;
|
|
616
650
|
inputType?: "number" | "text" | "password" | undefined;
|
|
617
651
|
placeholder?: string | undefined;
|
|
652
|
+
label?: string | undefined;
|
|
618
653
|
} | {
|
|
619
654
|
value: string;
|
|
620
655
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -629,9 +664,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
629
664
|
name: string;
|
|
630
665
|
value?: string | undefined;
|
|
631
666
|
error?: string | undefined;
|
|
632
|
-
label?: string | undefined;
|
|
633
667
|
inputType?: "number" | "text" | "password" | undefined;
|
|
634
668
|
placeholder?: string | undefined;
|
|
669
|
+
label?: string | undefined;
|
|
635
670
|
} | {
|
|
636
671
|
value: string;
|
|
637
672
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -639,10 +674,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
639
674
|
variant?: "primary" | "secondary" | undefined;
|
|
640
675
|
buttonType?: "button" | "submit" | undefined;
|
|
641
676
|
})[];
|
|
642
|
-
}
|
|
643
|
-
}, {
|
|
644
|
-
type: Struct<"confirmation", null>;
|
|
645
|
-
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
677
|
+
} | {
|
|
646
678
|
value: string;
|
|
647
679
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
648
680
|
sensitive?: boolean | undefined;
|
|
@@ -678,14 +710,23 @@ declare const DialogParametersStruct: Struct<{
|
|
|
678
710
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
679
711
|
label: string;
|
|
680
712
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
681
|
-
}
|
|
713
|
+
}, null>;
|
|
714
|
+
}>, Struct<{
|
|
715
|
+
type: "confirmation";
|
|
716
|
+
id: string;
|
|
717
|
+
}, {
|
|
718
|
+
type: Struct<"confirmation", null>;
|
|
719
|
+
id: Struct<string, null>;
|
|
720
|
+
}>]>, Struct<{
|
|
721
|
+
type: "prompt";
|
|
722
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
682
723
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
683
724
|
name: string;
|
|
684
725
|
value?: string | undefined;
|
|
685
726
|
error?: string | undefined;
|
|
686
|
-
label?: string | undefined;
|
|
687
727
|
inputType?: "number" | "text" | "password" | undefined;
|
|
688
728
|
placeholder?: string | undefined;
|
|
729
|
+
label?: string | undefined;
|
|
689
730
|
} | {
|
|
690
731
|
value: string;
|
|
691
732
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -700,9 +741,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
700
741
|
name: string;
|
|
701
742
|
value?: string | undefined;
|
|
702
743
|
error?: string | undefined;
|
|
703
|
-
label?: string | undefined;
|
|
704
744
|
inputType?: "number" | "text" | "password" | undefined;
|
|
705
745
|
placeholder?: string | undefined;
|
|
746
|
+
label?: string | undefined;
|
|
706
747
|
} | {
|
|
707
748
|
value: string;
|
|
708
749
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -710,16 +751,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
710
751
|
variant?: "primary" | "secondary" | undefined;
|
|
711
752
|
buttonType?: "button" | "submit" | undefined;
|
|
712
753
|
})[];
|
|
713
|
-
}
|
|
714
|
-
}>, Struct<{
|
|
715
|
-
type: "confirmation";
|
|
716
|
-
id: string;
|
|
717
|
-
}, {
|
|
718
|
-
type: Struct<"confirmation", null>;
|
|
719
|
-
id: Struct<string, null>;
|
|
720
|
-
}>]>, Struct<{
|
|
721
|
-
type: "prompt";
|
|
722
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
754
|
+
} | {
|
|
723
755
|
value: string;
|
|
724
756
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
725
757
|
sensitive?: boolean | undefined;
|
|
@@ -755,14 +787,22 @@ declare const DialogParametersStruct: Struct<{
|
|
|
755
787
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
756
788
|
label: string;
|
|
757
789
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
758
|
-
}
|
|
790
|
+
};
|
|
791
|
+
placeholder?: string | undefined;
|
|
792
|
+
} | {
|
|
793
|
+
type: "prompt";
|
|
794
|
+
id: string;
|
|
795
|
+
placeholder?: string | undefined;
|
|
796
|
+
}, [Struct<{
|
|
797
|
+
type: "prompt";
|
|
798
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
759
799
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
760
800
|
name: string;
|
|
761
801
|
value?: string | undefined;
|
|
762
802
|
error?: string | undefined;
|
|
763
|
-
label?: string | undefined;
|
|
764
803
|
inputType?: "number" | "text" | "password" | undefined;
|
|
765
804
|
placeholder?: string | undefined;
|
|
805
|
+
label?: string | undefined;
|
|
766
806
|
} | {
|
|
767
807
|
value: string;
|
|
768
808
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -777,9 +817,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
777
817
|
name: string;
|
|
778
818
|
value?: string | undefined;
|
|
779
819
|
error?: string | undefined;
|
|
780
|
-
label?: string | undefined;
|
|
781
820
|
inputType?: "number" | "text" | "password" | undefined;
|
|
782
821
|
placeholder?: string | undefined;
|
|
822
|
+
label?: string | undefined;
|
|
783
823
|
} | {
|
|
784
824
|
value: string;
|
|
785
825
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -787,15 +827,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
787
827
|
variant?: "primary" | "secondary" | undefined;
|
|
788
828
|
buttonType?: "button" | "submit" | undefined;
|
|
789
829
|
})[];
|
|
790
|
-
}
|
|
791
|
-
placeholder?: string | undefined;
|
|
792
|
-
} | {
|
|
793
|
-
type: "prompt";
|
|
794
|
-
id: string;
|
|
795
|
-
placeholder?: string | undefined;
|
|
796
|
-
}, [Struct<{
|
|
797
|
-
type: "prompt";
|
|
798
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
830
|
+
} | {
|
|
799
831
|
value: string;
|
|
800
832
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
801
833
|
sensitive?: boolean | undefined;
|
|
@@ -831,14 +863,18 @@ declare const DialogParametersStruct: Struct<{
|
|
|
831
863
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
832
864
|
label: string;
|
|
833
865
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
834
|
-
}
|
|
866
|
+
};
|
|
867
|
+
placeholder?: string | undefined;
|
|
868
|
+
}, {
|
|
869
|
+
type: Struct<"prompt", null>;
|
|
870
|
+
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
835
871
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
836
872
|
name: string;
|
|
837
873
|
value?: string | undefined;
|
|
838
874
|
error?: string | undefined;
|
|
839
|
-
label?: string | undefined;
|
|
840
875
|
inputType?: "number" | "text" | "password" | undefined;
|
|
841
876
|
placeholder?: string | undefined;
|
|
877
|
+
label?: string | undefined;
|
|
842
878
|
} | {
|
|
843
879
|
value: string;
|
|
844
880
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -853,9 +889,9 @@ declare const DialogParametersStruct: Struct<{
|
|
|
853
889
|
name: string;
|
|
854
890
|
value?: string | undefined;
|
|
855
891
|
error?: string | undefined;
|
|
856
|
-
label?: string | undefined;
|
|
857
892
|
inputType?: "number" | "text" | "password" | undefined;
|
|
858
893
|
placeholder?: string | undefined;
|
|
894
|
+
label?: string | undefined;
|
|
859
895
|
} | {
|
|
860
896
|
value: string;
|
|
861
897
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -863,11 +899,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
863
899
|
variant?: "primary" | "secondary" | undefined;
|
|
864
900
|
buttonType?: "button" | "submit" | undefined;
|
|
865
901
|
})[];
|
|
866
|
-
}
|
|
867
|
-
placeholder?: string | undefined;
|
|
868
|
-
}, {
|
|
869
|
-
type: Struct<"prompt", null>;
|
|
870
|
-
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
902
|
+
} | {
|
|
871
903
|
value: string;
|
|
872
904
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
873
905
|
sensitive?: boolean | undefined;
|
|
@@ -903,38 +935,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
903
935
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
904
936
|
label: string;
|
|
905
937
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
906
|
-
} | {
|
|
907
|
-
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
908
|
-
name: string;
|
|
909
|
-
value?: string | undefined;
|
|
910
|
-
error?: string | undefined;
|
|
911
|
-
label?: string | undefined;
|
|
912
|
-
inputType?: "number" | "text" | "password" | undefined;
|
|
913
|
-
placeholder?: string | undefined;
|
|
914
|
-
} | {
|
|
915
|
-
value: string;
|
|
916
|
-
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
917
|
-
name?: string | undefined;
|
|
918
|
-
variant?: "primary" | "secondary" | undefined;
|
|
919
|
-
buttonType?: "button" | "submit" | undefined;
|
|
920
|
-
} | {
|
|
921
|
-
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
922
|
-
name: string;
|
|
923
|
-
children: ({
|
|
924
|
-
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
925
|
-
name: string;
|
|
926
|
-
value?: string | undefined;
|
|
927
|
-
error?: string | undefined;
|
|
928
|
-
label?: string | undefined;
|
|
929
|
-
inputType?: "number" | "text" | "password" | undefined;
|
|
930
|
-
placeholder?: string | undefined;
|
|
931
|
-
} | {
|
|
932
|
-
value: string;
|
|
933
|
-
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
934
|
-
name?: string | undefined;
|
|
935
|
-
variant?: "primary" | "secondary" | undefined;
|
|
936
|
-
buttonType?: "button" | "submit" | undefined;
|
|
937
|
-
})[];
|
|
938
938
|
}, null>;
|
|
939
939
|
placeholder: Struct<string | undefined, null>;
|
|
940
940
|
}>, Struct<{
|
|
@@ -9,7 +9,7 @@ import type { ManageAccountsMethodHooks } from './manageAccounts';
|
|
|
9
9
|
import type { ManageStateMethodHooks } from './manageState';
|
|
10
10
|
import type { NotifyMethodHooks } from './notify';
|
|
11
11
|
export { WALLET_SNAP_PERMISSION_KEY } from './invokeSnap';
|
|
12
|
-
export {
|
|
12
|
+
export { getEncryptionEntropy } from './manageState';
|
|
13
13
|
export declare type RestrictedMethodHooks = DialogMethodHooks & GetBip32EntropyMethodHooks & GetBip32PublicKeyMethodHooks & GetBip44EntropyMethodHooks & GetEntropyHooks & InvokeSnapMethodHooks & ManageStateMethodHooks & NotifyMethodHooks & ManageAccountsMethodHooks & GetLocaleMethodHooks;
|
|
14
14
|
export declare const restrictedMethodPermissionBuilders: {
|
|
15
15
|
readonly snap_dialog: Readonly<{
|