@metamask/snaps-rpc-methods 9.0.0 → 9.1.1
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 +11 -1
- package/dist/{chunk-S46RTIDR.mjs → chunk-3XL562LA.mjs} +2 -2
- package/dist/{chunk-XXSAESE7.js → chunk-F3VP6B2X.js} +3 -3
- package/dist/{chunk-UDB4MUXI.js → chunk-PPR53SPJ.js} +8 -4
- package/dist/chunk-PPR53SPJ.js.map +1 -0
- package/dist/{chunk-VBCE6VHM.js → chunk-QSVAU6X4.js} +3 -3
- package/dist/{chunk-CJPFADO7.mjs → chunk-T3O2PFSR.mjs} +2 -2
- package/dist/{chunk-634BK2VP.mjs → chunk-WEUKWKAQ.mjs} +10 -6
- package/dist/chunk-WEUKWKAQ.mjs.map +1 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/permitted/createInterface.js +2 -2
- package/dist/permitted/createInterface.mjs +1 -1
- package/dist/permitted/handlers.js +3 -3
- package/dist/permitted/handlers.mjs +2 -2
- package/dist/permitted/index.js +4 -4
- package/dist/permitted/index.mjs +3 -3
- package/dist/permitted/middleware.js +4 -4
- package/dist/permitted/middleware.mjs +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/permitted/createInterface.d.ts +46 -4
- package/dist/types/permitted/updateInterface.d.ts +42 -2
- package/dist/types/restricted/dialog.d.ts +252 -180
- package/package.json +4 -4
- package/dist/chunk-634BK2VP.mjs.map +0 -1
- package/dist/chunk-UDB4MUXI.js.map +0 -1
- /package/dist/{chunk-S46RTIDR.mjs.map → chunk-3XL562LA.mjs.map} +0 -0
- /package/dist/{chunk-XXSAESE7.js.map → chunk-F3VP6B2X.js.map} +0 -0
- /package/dist/{chunk-VBCE6VHM.js.map → chunk-QSVAU6X4.js.map} +0 -0
- /package/dist/{chunk-CJPFADO7.mjs.map → chunk-T3O2PFSR.mjs.map} +0 -0
|
@@ -51,7 +51,27 @@ export declare const dialogBuilder: Readonly<{
|
|
|
51
51
|
}>;
|
|
52
52
|
declare const DialogParametersStruct: Struct<{
|
|
53
53
|
type: "alert";
|
|
54
|
-
content: import("@metamask/snaps-sdk/jsx-runtime").
|
|
54
|
+
content: import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
55
|
+
name: string;
|
|
56
|
+
value?: string | undefined;
|
|
57
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
58
|
+
value: string;
|
|
59
|
+
children: string;
|
|
60
|
+
}, "Option">>;
|
|
61
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
62
|
+
name: string;
|
|
63
|
+
type?: "number" | "text" | "password" | undefined;
|
|
64
|
+
value?: string | undefined;
|
|
65
|
+
placeholder?: string | undefined;
|
|
66
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
67
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
68
|
+
name: string;
|
|
69
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
70
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
71
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
72
|
+
src: string;
|
|
73
|
+
alt?: string | undefined;
|
|
74
|
+
}, "Image"> | {
|
|
55
75
|
value: string;
|
|
56
76
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
57
77
|
sensitive?: boolean | undefined;
|
|
@@ -103,20 +123,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
103
123
|
buttonType?: "button" | "submit" | undefined;
|
|
104
124
|
} | {
|
|
105
125
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
106
|
-
/**
|
|
107
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
108
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
109
|
-
* - An alert, for displaying information.
|
|
110
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
111
|
-
* - A prompt, for inputting some information.
|
|
112
|
-
*
|
|
113
|
-
* @param options - The specification builder options.
|
|
114
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
115
|
-
* permission.
|
|
116
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
117
|
-
* implementation.
|
|
118
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
119
|
-
*/
|
|
120
126
|
name: string;
|
|
121
127
|
children: ({
|
|
122
128
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -139,7 +145,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
139
145
|
id: string;
|
|
140
146
|
} | {
|
|
141
147
|
type: "confirmation";
|
|
142
|
-
content: import("@metamask/snaps-sdk/jsx-runtime").
|
|
148
|
+
content: import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
149
|
+
name: string;
|
|
150
|
+
value?: string | undefined;
|
|
151
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
152
|
+
value: string;
|
|
153
|
+
children: string;
|
|
154
|
+
}, "Option">>;
|
|
155
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
156
|
+
name: string;
|
|
157
|
+
type?: "number" | "text" | "password" | undefined;
|
|
158
|
+
value?: string | undefined;
|
|
159
|
+
placeholder?: string | undefined;
|
|
160
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
161
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
162
|
+
name: string;
|
|
163
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
164
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
165
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
166
|
+
src: string;
|
|
167
|
+
alt?: string | undefined;
|
|
168
|
+
}, "Image"> | {
|
|
143
169
|
value: string;
|
|
144
170
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
145
171
|
sensitive?: boolean | undefined;
|
|
@@ -191,20 +217,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
191
217
|
buttonType?: "button" | "submit" | undefined;
|
|
192
218
|
} | {
|
|
193
219
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
194
|
-
/**
|
|
195
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
196
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
197
|
-
* - An alert, for displaying information.
|
|
198
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
199
|
-
* - A prompt, for inputting some information.
|
|
200
|
-
*
|
|
201
|
-
* @param options - The specification builder options.
|
|
202
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
203
|
-
* permission.
|
|
204
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
205
|
-
* implementation.
|
|
206
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
207
|
-
*/
|
|
208
220
|
name: string;
|
|
209
221
|
children: ({
|
|
210
222
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -227,7 +239,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
227
239
|
id: string;
|
|
228
240
|
} | {
|
|
229
241
|
type: "prompt";
|
|
230
|
-
content: import("@metamask/snaps-sdk/jsx-runtime").
|
|
242
|
+
content: import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
243
|
+
name: string;
|
|
244
|
+
value?: string | undefined;
|
|
245
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
246
|
+
value: string;
|
|
247
|
+
children: string;
|
|
248
|
+
}, "Option">>;
|
|
249
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
250
|
+
name: string;
|
|
251
|
+
type?: "number" | "text" | "password" | undefined;
|
|
252
|
+
value?: string | undefined;
|
|
253
|
+
placeholder?: string | undefined;
|
|
254
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
255
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
256
|
+
name: string;
|
|
257
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
258
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
259
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
260
|
+
src: string;
|
|
261
|
+
alt?: string | undefined;
|
|
262
|
+
}, "Image"> | {
|
|
231
263
|
value: string;
|
|
232
264
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
233
265
|
sensitive?: boolean | undefined;
|
|
@@ -279,20 +311,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
279
311
|
buttonType?: "button" | "submit" | undefined;
|
|
280
312
|
} | {
|
|
281
313
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
282
|
-
/**
|
|
283
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
284
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
285
|
-
* - An alert, for displaying information.
|
|
286
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
287
|
-
* - A prompt, for inputting some information.
|
|
288
|
-
*
|
|
289
|
-
* @param options - The specification builder options.
|
|
290
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
291
|
-
* permission.
|
|
292
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
293
|
-
* implementation.
|
|
294
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
295
|
-
*/
|
|
296
314
|
name: string;
|
|
297
315
|
children: ({
|
|
298
316
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -317,7 +335,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
317
335
|
placeholder?: string | undefined;
|
|
318
336
|
}, [Struct<{
|
|
319
337
|
type: "alert";
|
|
320
|
-
content: import("@metamask/snaps-sdk/jsx-runtime").
|
|
338
|
+
content: import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
339
|
+
name: string;
|
|
340
|
+
value?: string | undefined;
|
|
341
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
342
|
+
value: string;
|
|
343
|
+
children: string;
|
|
344
|
+
}, "Option">>;
|
|
345
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
346
|
+
name: string;
|
|
347
|
+
type?: "number" | "text" | "password" | undefined;
|
|
348
|
+
value?: string | undefined;
|
|
349
|
+
placeholder?: string | undefined;
|
|
350
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
351
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
352
|
+
name: string;
|
|
353
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
354
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
355
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
356
|
+
src: string;
|
|
357
|
+
alt?: string | undefined;
|
|
358
|
+
}, "Image"> | {
|
|
321
359
|
value: string;
|
|
322
360
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
323
361
|
sensitive?: boolean | undefined;
|
|
@@ -369,20 +407,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
369
407
|
buttonType?: "button" | "submit" | undefined;
|
|
370
408
|
} | {
|
|
371
409
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
372
|
-
/**
|
|
373
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
374
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
375
|
-
* - An alert, for displaying information.
|
|
376
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
377
|
-
* - A prompt, for inputting some information.
|
|
378
|
-
*
|
|
379
|
-
* @param options - The specification builder options.
|
|
380
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
381
|
-
* permission.
|
|
382
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
383
|
-
* implementation.
|
|
384
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
385
|
-
*/
|
|
386
410
|
name: string;
|
|
387
411
|
children: ({
|
|
388
412
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -405,7 +429,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
405
429
|
id: string;
|
|
406
430
|
}, [Struct<{
|
|
407
431
|
type: "alert";
|
|
408
|
-
content: import("@metamask/snaps-sdk/jsx-runtime").
|
|
432
|
+
content: import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
433
|
+
name: string;
|
|
434
|
+
value?: string | undefined;
|
|
435
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
436
|
+
value: string;
|
|
437
|
+
children: string;
|
|
438
|
+
}, "Option">>;
|
|
439
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
440
|
+
name: string;
|
|
441
|
+
type?: "number" | "text" | "password" | undefined;
|
|
442
|
+
value?: string | undefined;
|
|
443
|
+
placeholder?: string | undefined;
|
|
444
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
445
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
446
|
+
name: string;
|
|
447
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
448
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
449
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
450
|
+
src: string;
|
|
451
|
+
alt?: string | undefined;
|
|
452
|
+
}, "Image"> | {
|
|
409
453
|
value: string;
|
|
410
454
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
411
455
|
sensitive?: boolean | undefined;
|
|
@@ -457,20 +501,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
457
501
|
buttonType?: "button" | "submit" | undefined;
|
|
458
502
|
} | {
|
|
459
503
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
460
|
-
/**
|
|
461
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
462
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
463
|
-
* - An alert, for displaying information.
|
|
464
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
465
|
-
* - A prompt, for inputting some information.
|
|
466
|
-
*
|
|
467
|
-
* @param options - The specification builder options.
|
|
468
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
469
|
-
* permission.
|
|
470
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
471
|
-
* implementation.
|
|
472
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
473
|
-
*/
|
|
474
504
|
name: string;
|
|
475
505
|
children: ({
|
|
476
506
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -490,7 +520,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
490
520
|
};
|
|
491
521
|
}, {
|
|
492
522
|
type: Struct<"alert", null>;
|
|
493
|
-
content: Struct<import("@metamask/snaps-sdk/jsx-runtime").
|
|
523
|
+
content: Struct<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
524
|
+
name: string;
|
|
525
|
+
value?: string | undefined;
|
|
526
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
527
|
+
value: string;
|
|
528
|
+
children: string;
|
|
529
|
+
}, "Option">>;
|
|
530
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
531
|
+
name: string;
|
|
532
|
+
type?: "number" | "text" | "password" | undefined;
|
|
533
|
+
value?: string | undefined;
|
|
534
|
+
placeholder?: string | undefined;
|
|
535
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
536
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
537
|
+
name: string;
|
|
538
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
539
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
540
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
541
|
+
src: string;
|
|
542
|
+
alt?: string | undefined;
|
|
543
|
+
}, "Image"> | {
|
|
494
544
|
value: string;
|
|
495
545
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
496
546
|
sensitive?: boolean | undefined;
|
|
@@ -542,20 +592,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
542
592
|
buttonType?: "button" | "submit" | undefined;
|
|
543
593
|
} | {
|
|
544
594
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
545
|
-
/**
|
|
546
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
547
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
548
|
-
* - An alert, for displaying information.
|
|
549
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
550
|
-
* - A prompt, for inputting some information.
|
|
551
|
-
*
|
|
552
|
-
* @param options - The specification builder options.
|
|
553
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
554
|
-
* permission.
|
|
555
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
556
|
-
* implementation.
|
|
557
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
558
|
-
*/
|
|
559
595
|
name: string;
|
|
560
596
|
children: ({
|
|
561
597
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -581,7 +617,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
581
617
|
id: Struct<string, null>;
|
|
582
618
|
}>]>, Struct<{
|
|
583
619
|
type: "confirmation";
|
|
584
|
-
content: import("@metamask/snaps-sdk/jsx-runtime").
|
|
620
|
+
content: import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
621
|
+
name: string;
|
|
622
|
+
value?: string | undefined;
|
|
623
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
624
|
+
value: string;
|
|
625
|
+
children: string;
|
|
626
|
+
}, "Option">>;
|
|
627
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
628
|
+
name: string;
|
|
629
|
+
type?: "number" | "text" | "password" | undefined;
|
|
630
|
+
value?: string | undefined;
|
|
631
|
+
placeholder?: string | undefined;
|
|
632
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
633
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
634
|
+
name: string;
|
|
635
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
636
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
637
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
638
|
+
src: string;
|
|
639
|
+
alt?: string | undefined;
|
|
640
|
+
}, "Image"> | {
|
|
585
641
|
value: string;
|
|
586
642
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
587
643
|
sensitive?: boolean | undefined;
|
|
@@ -633,20 +689,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
633
689
|
buttonType?: "button" | "submit" | undefined;
|
|
634
690
|
} | {
|
|
635
691
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
636
|
-
/**
|
|
637
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
638
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
639
|
-
* - An alert, for displaying information.
|
|
640
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
641
|
-
* - A prompt, for inputting some information.
|
|
642
|
-
*
|
|
643
|
-
* @param options - The specification builder options.
|
|
644
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
645
|
-
* permission.
|
|
646
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
647
|
-
* implementation.
|
|
648
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
649
|
-
*/
|
|
650
692
|
name: string;
|
|
651
693
|
children: ({
|
|
652
694
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -669,7 +711,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
669
711
|
id: string;
|
|
670
712
|
}, [Struct<{
|
|
671
713
|
type: "confirmation";
|
|
672
|
-
content: import("@metamask/snaps-sdk/jsx-runtime").
|
|
714
|
+
content: import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
715
|
+
name: string;
|
|
716
|
+
value?: string | undefined;
|
|
717
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
718
|
+
value: string;
|
|
719
|
+
children: string;
|
|
720
|
+
}, "Option">>;
|
|
721
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
722
|
+
name: string;
|
|
723
|
+
type?: "number" | "text" | "password" | undefined;
|
|
724
|
+
value?: string | undefined;
|
|
725
|
+
placeholder?: string | undefined;
|
|
726
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
727
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
728
|
+
name: string;
|
|
729
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
730
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
731
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
732
|
+
src: string;
|
|
733
|
+
alt?: string | undefined;
|
|
734
|
+
}, "Image"> | {
|
|
673
735
|
value: string;
|
|
674
736
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
675
737
|
sensitive?: boolean | undefined;
|
|
@@ -721,20 +783,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
721
783
|
buttonType?: "button" | "submit" | undefined;
|
|
722
784
|
} | {
|
|
723
785
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
724
|
-
/**
|
|
725
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
726
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
727
|
-
* - An alert, for displaying information.
|
|
728
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
729
|
-
* - A prompt, for inputting some information.
|
|
730
|
-
*
|
|
731
|
-
* @param options - The specification builder options.
|
|
732
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
733
|
-
* permission.
|
|
734
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
735
|
-
* implementation.
|
|
736
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
737
|
-
*/
|
|
738
786
|
name: string;
|
|
739
787
|
children: ({
|
|
740
788
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -754,7 +802,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
754
802
|
};
|
|
755
803
|
}, {
|
|
756
804
|
type: Struct<"confirmation", null>;
|
|
757
|
-
content: Struct<import("@metamask/snaps-sdk/jsx-runtime").
|
|
805
|
+
content: Struct<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
806
|
+
name: string;
|
|
807
|
+
value?: string | undefined;
|
|
808
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
809
|
+
value: string;
|
|
810
|
+
children: string;
|
|
811
|
+
}, "Option">>;
|
|
812
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
813
|
+
name: string;
|
|
814
|
+
type?: "number" | "text" | "password" | undefined;
|
|
815
|
+
value?: string | undefined;
|
|
816
|
+
placeholder?: string | undefined;
|
|
817
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
818
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
819
|
+
name: string;
|
|
820
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
821
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
822
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
823
|
+
src: string;
|
|
824
|
+
alt?: string | undefined;
|
|
825
|
+
}, "Image"> | {
|
|
758
826
|
value: string;
|
|
759
827
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
760
828
|
sensitive?: boolean | undefined;
|
|
@@ -806,20 +874,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
806
874
|
buttonType?: "button" | "submit" | undefined;
|
|
807
875
|
} | {
|
|
808
876
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
809
|
-
/**
|
|
810
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
811
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
812
|
-
* - An alert, for displaying information.
|
|
813
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
814
|
-
* - A prompt, for inputting some information.
|
|
815
|
-
*
|
|
816
|
-
* @param options - The specification builder options.
|
|
817
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
818
|
-
* permission.
|
|
819
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
820
|
-
* implementation.
|
|
821
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
822
|
-
*/
|
|
823
877
|
name: string;
|
|
824
878
|
children: ({
|
|
825
879
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -845,7 +899,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
845
899
|
id: Struct<string, null>;
|
|
846
900
|
}>]>, Struct<{
|
|
847
901
|
type: "prompt";
|
|
848
|
-
content: import("@metamask/snaps-sdk/jsx-runtime").
|
|
902
|
+
content: import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
903
|
+
name: string;
|
|
904
|
+
value?: string | undefined;
|
|
905
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
906
|
+
value: string;
|
|
907
|
+
children: string;
|
|
908
|
+
}, "Option">>;
|
|
909
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
910
|
+
name: string;
|
|
911
|
+
type?: "number" | "text" | "password" | undefined;
|
|
912
|
+
value?: string | undefined;
|
|
913
|
+
placeholder?: string | undefined;
|
|
914
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
915
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
916
|
+
name: string;
|
|
917
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
918
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
919
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
920
|
+
src: string;
|
|
921
|
+
alt?: string | undefined;
|
|
922
|
+
}, "Image"> | {
|
|
849
923
|
value: string;
|
|
850
924
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
851
925
|
sensitive?: boolean | undefined;
|
|
@@ -897,20 +971,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
897
971
|
buttonType?: "button" | "submit" | undefined;
|
|
898
972
|
} | {
|
|
899
973
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
900
|
-
/**
|
|
901
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
902
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
903
|
-
* - An alert, for displaying information.
|
|
904
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
905
|
-
* - A prompt, for inputting some information.
|
|
906
|
-
*
|
|
907
|
-
* @param options - The specification builder options.
|
|
908
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
909
|
-
* permission.
|
|
910
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
911
|
-
* implementation.
|
|
912
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
913
|
-
*/
|
|
914
974
|
name: string;
|
|
915
975
|
children: ({
|
|
916
976
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -935,7 +995,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
935
995
|
placeholder?: string | undefined;
|
|
936
996
|
}, [Struct<{
|
|
937
997
|
type: "prompt";
|
|
938
|
-
content: import("@metamask/snaps-sdk/jsx-runtime").
|
|
998
|
+
content: import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
999
|
+
name: string;
|
|
1000
|
+
value?: string | undefined;
|
|
1001
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1002
|
+
value: string;
|
|
1003
|
+
children: string;
|
|
1004
|
+
}, "Option">>;
|
|
1005
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1006
|
+
name: string;
|
|
1007
|
+
type?: "number" | "text" | "password" | undefined;
|
|
1008
|
+
value?: string | undefined;
|
|
1009
|
+
placeholder?: string | undefined;
|
|
1010
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1011
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
1012
|
+
name: string;
|
|
1013
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1014
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
1015
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1016
|
+
src: string;
|
|
1017
|
+
alt?: string | undefined;
|
|
1018
|
+
}, "Image"> | {
|
|
939
1019
|
value: string;
|
|
940
1020
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
941
1021
|
sensitive?: boolean | undefined;
|
|
@@ -987,20 +1067,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
987
1067
|
buttonType?: "button" | "submit" | undefined;
|
|
988
1068
|
} | {
|
|
989
1069
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
990
|
-
/**
|
|
991
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
992
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
993
|
-
* - An alert, for displaying information.
|
|
994
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
995
|
-
* - A prompt, for inputting some information.
|
|
996
|
-
*
|
|
997
|
-
* @param options - The specification builder options.
|
|
998
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
999
|
-
* permission.
|
|
1000
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
1001
|
-
* implementation.
|
|
1002
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
1003
|
-
*/
|
|
1004
1070
|
name: string;
|
|
1005
1071
|
children: ({
|
|
1006
1072
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
@@ -1021,7 +1087,27 @@ declare const DialogParametersStruct: Struct<{
|
|
|
1021
1087
|
placeholder?: string | undefined;
|
|
1022
1088
|
}, {
|
|
1023
1089
|
type: Struct<"prompt", null>;
|
|
1024
|
-
content: Struct<import("@metamask/snaps-sdk/jsx-runtime").
|
|
1090
|
+
content: Struct<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").TextProps, "Text"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1091
|
+
name: string;
|
|
1092
|
+
value?: string | undefined;
|
|
1093
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1094
|
+
value: string;
|
|
1095
|
+
children: string;
|
|
1096
|
+
}, "Option">>;
|
|
1097
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1098
|
+
name: string;
|
|
1099
|
+
type?: "number" | "text" | "password" | undefined;
|
|
1100
|
+
value?: string | undefined;
|
|
1101
|
+
placeholder?: string | undefined;
|
|
1102
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1103
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<import("@metamask/snaps-sdk/jsx-runtime").FieldProps, "Field">>;
|
|
1104
|
+
name: string;
|
|
1105
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1106
|
+
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
1107
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
1108
|
+
src: string;
|
|
1109
|
+
alt?: string | undefined;
|
|
1110
|
+
}, "Image"> | {
|
|
1025
1111
|
value: string;
|
|
1026
1112
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
1027
1113
|
sensitive?: boolean | undefined;
|
|
@@ -1073,20 +1159,6 @@ declare const DialogParametersStruct: Struct<{
|
|
|
1073
1159
|
buttonType?: "button" | "submit" | undefined;
|
|
1074
1160
|
} | {
|
|
1075
1161
|
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
1076
|
-
/**
|
|
1077
|
-
* The specification builder for the `snap_dialog` permission. `snap_dialog`
|
|
1078
|
-
* lets the Snap display one of the following dialogs to the user:
|
|
1079
|
-
* - An alert, for displaying information.
|
|
1080
|
-
* - A confirmation, for accepting or rejecting some action.
|
|
1081
|
-
* - A prompt, for inputting some information.
|
|
1082
|
-
*
|
|
1083
|
-
* @param options - The specification builder options.
|
|
1084
|
-
* @param options.allowedCaveats - The optional allowed caveats for the
|
|
1085
|
-
* permission.
|
|
1086
|
-
* @param options.methodHooks - The RPC method hooks needed by the method
|
|
1087
|
-
* implementation.
|
|
1088
|
-
* @returns The specification for the `snap_dialog` permission.
|
|
1089
|
-
*/
|
|
1090
1162
|
name: string;
|
|
1091
1163
|
children: ({
|
|
1092
1164
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|