@metamask/snaps-rpc-methods 9.1.1 → 9.1.2
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 +6 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/permitted/createInterface.d.ts +42 -42
- package/dist/types/permitted/updateInterface.d.ts +42 -42
- package/dist/types/restricted/dialog.d.ts +257 -257
- package/dist/types/restricted/manageAccounts.d.ts +1 -1
- package/package.json +3 -3
|
@@ -10,27 +10,7 @@ export declare type CreateInterfaceMethodHooks = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare const createInterfaceHandler: PermittedHandlerExport<CreateInterfaceMethodHooks, CreateInterfaceParameters, CreateInterfaceResult>;
|
|
12
12
|
declare const CreateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
13
|
-
ui: import("@metamask/snaps-sdk
|
|
14
|
-
name: string;
|
|
15
|
-
value?: string | undefined;
|
|
16
|
-
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
17
|
-
value: string;
|
|
18
|
-
children: string;
|
|
19
|
-
}, "Option">>;
|
|
20
|
-
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
21
|
-
name: string;
|
|
22
|
-
type?: "number" | "text" | "password" | undefined;
|
|
23
|
-
value?: string | undefined;
|
|
24
|
-
placeholder?: string | undefined;
|
|
25
|
-
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
26
|
-
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">>;
|
|
27
|
-
name: string;
|
|
28
|
-
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
29
|
-
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
30
|
-
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
31
|
-
src: string;
|
|
32
|
-
alt?: string | undefined;
|
|
33
|
-
}, "Image"> | {
|
|
13
|
+
ui: import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").TextProps, "Text"> | {
|
|
34
14
|
value: string;
|
|
35
15
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
36
16
|
sensitive?: boolean | undefined;
|
|
@@ -71,9 +51,9 @@ declare const CreateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
71
51
|
name: string;
|
|
72
52
|
value?: string | undefined;
|
|
73
53
|
error?: string | undefined;
|
|
74
|
-
placeholder?: string | undefined;
|
|
75
54
|
label?: string | undefined;
|
|
76
55
|
inputType?: "number" | "text" | "password" | undefined;
|
|
56
|
+
placeholder?: string | undefined;
|
|
77
57
|
} | {
|
|
78
58
|
value: string;
|
|
79
59
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -88,9 +68,9 @@ declare const CreateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
88
68
|
name: string;
|
|
89
69
|
value?: string | undefined;
|
|
90
70
|
error?: string | undefined;
|
|
91
|
-
placeholder?: string | undefined;
|
|
92
71
|
label?: string | undefined;
|
|
93
72
|
inputType?: "number" | "text" | "password" | undefined;
|
|
73
|
+
placeholder?: string | undefined;
|
|
94
74
|
} | {
|
|
95
75
|
value: string;
|
|
96
76
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -98,30 +78,30 @@ declare const CreateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
98
78
|
variant?: "primary" | "secondary" | undefined;
|
|
99
79
|
buttonType?: "button" | "submit" | undefined;
|
|
100
80
|
})[];
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
81
|
+
} | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
82
|
+
name: string;
|
|
83
|
+
type?: "number" | "text" | "password" | undefined;
|
|
84
|
+
value?: string | undefined;
|
|
85
|
+
placeholder?: string | undefined;
|
|
86
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
105
87
|
name: string;
|
|
106
88
|
value?: string | undefined;
|
|
107
|
-
children: import("@metamask/snaps-sdk/jsx
|
|
89
|
+
children: import("@metamask/snaps-sdk/jsx").MaybeArray<import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
108
90
|
value: string;
|
|
109
91
|
children: string;
|
|
110
92
|
}, "Option">>;
|
|
111
|
-
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx
|
|
93
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
94
|
+
children: import("@metamask/snaps-sdk/jsx").MaybeArray<import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").FieldProps, "Field">>;
|
|
112
95
|
name: string;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
117
|
-
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">>;
|
|
118
|
-
name: string;
|
|
119
|
-
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
120
|
-
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
121
|
-
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
96
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
97
|
+
children: import("@metamask/snaps-sdk/jsx").StringElement;
|
|
98
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
122
99
|
src: string;
|
|
123
100
|
alt?: string | undefined;
|
|
124
|
-
}, "Image"
|
|
101
|
+
}, "Image">;
|
|
102
|
+
context?: Record<string, import("@metamask/snaps-sdk").Json> | undefined;
|
|
103
|
+
}, {
|
|
104
|
+
ui: import("superstruct").Struct<import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").TextProps, "Text"> | {
|
|
125
105
|
value: string;
|
|
126
106
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
127
107
|
sensitive?: boolean | undefined;
|
|
@@ -162,9 +142,9 @@ declare const CreateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
162
142
|
name: string;
|
|
163
143
|
value?: string | undefined;
|
|
164
144
|
error?: string | undefined;
|
|
165
|
-
placeholder?: string | undefined;
|
|
166
145
|
label?: string | undefined;
|
|
167
146
|
inputType?: "number" | "text" | "password" | undefined;
|
|
147
|
+
placeholder?: string | undefined;
|
|
168
148
|
} | {
|
|
169
149
|
value: string;
|
|
170
150
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -179,9 +159,9 @@ declare const CreateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
179
159
|
name: string;
|
|
180
160
|
value?: string | undefined;
|
|
181
161
|
error?: string | undefined;
|
|
182
|
-
placeholder?: string | undefined;
|
|
183
162
|
label?: string | undefined;
|
|
184
163
|
inputType?: "number" | "text" | "password" | undefined;
|
|
164
|
+
placeholder?: string | undefined;
|
|
185
165
|
} | {
|
|
186
166
|
value: string;
|
|
187
167
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -189,7 +169,27 @@ declare const CreateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
189
169
|
variant?: "primary" | "secondary" | undefined;
|
|
190
170
|
buttonType?: "button" | "submit" | undefined;
|
|
191
171
|
})[];
|
|
192
|
-
}
|
|
172
|
+
} | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
173
|
+
name: string;
|
|
174
|
+
type?: "number" | "text" | "password" | undefined;
|
|
175
|
+
value?: string | undefined;
|
|
176
|
+
placeholder?: string | undefined;
|
|
177
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
178
|
+
name: string;
|
|
179
|
+
value?: string | undefined;
|
|
180
|
+
children: import("@metamask/snaps-sdk/jsx").MaybeArray<import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
181
|
+
value: string;
|
|
182
|
+
children: string;
|
|
183
|
+
}, "Option">>;
|
|
184
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
185
|
+
children: import("@metamask/snaps-sdk/jsx").MaybeArray<import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").FieldProps, "Field">>;
|
|
186
|
+
name: string;
|
|
187
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
188
|
+
children: import("@metamask/snaps-sdk/jsx").StringElement;
|
|
189
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
190
|
+
src: string;
|
|
191
|
+
alt?: string | undefined;
|
|
192
|
+
}, "Image">, null>;
|
|
193
193
|
context: import("superstruct").Struct<Record<string, import("@metamask/snaps-sdk").Json> | undefined, null>;
|
|
194
194
|
}>;
|
|
195
195
|
export declare type CreateInterfaceParameters = InferMatching<typeof CreateInterfaceParametersStruct, CreateInterfaceParams>;
|
|
@@ -11,27 +11,7 @@ export declare type UpdateInterfaceMethodHooks = {
|
|
|
11
11
|
export declare const updateInterfaceHandler: PermittedHandlerExport<UpdateInterfaceMethodHooks, UpdateInterfaceParameters, UpdateInterfaceResult>;
|
|
12
12
|
declare const UpdateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
13
13
|
id: string;
|
|
14
|
-
ui: import("@metamask/snaps-sdk
|
|
15
|
-
name: string;
|
|
16
|
-
value?: string | undefined;
|
|
17
|
-
children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
18
|
-
value: string;
|
|
19
|
-
children: string;
|
|
20
|
-
}, "Option">>;
|
|
21
|
-
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
22
|
-
name: string;
|
|
23
|
-
type?: "number" | "text" | "password" | undefined;
|
|
24
|
-
value?: string | undefined;
|
|
25
|
-
placeholder?: string | undefined;
|
|
26
|
-
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
27
|
-
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">>;
|
|
28
|
-
name: string;
|
|
29
|
-
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
30
|
-
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
31
|
-
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
32
|
-
src: string;
|
|
33
|
-
alt?: string | undefined;
|
|
34
|
-
}, "Image"> | {
|
|
14
|
+
ui: import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").TextProps, "Text"> | {
|
|
35
15
|
value: string;
|
|
36
16
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
37
17
|
sensitive?: boolean | undefined;
|
|
@@ -72,9 +52,9 @@ declare const UpdateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
72
52
|
name: string;
|
|
73
53
|
value?: string | undefined;
|
|
74
54
|
error?: string | undefined;
|
|
75
|
-
placeholder?: string | undefined;
|
|
76
55
|
label?: string | undefined;
|
|
77
56
|
inputType?: "number" | "text" | "password" | undefined;
|
|
57
|
+
placeholder?: string | undefined;
|
|
78
58
|
} | {
|
|
79
59
|
value: string;
|
|
80
60
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -89,9 +69,9 @@ declare const UpdateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
89
69
|
name: string;
|
|
90
70
|
value?: string | undefined;
|
|
91
71
|
error?: string | undefined;
|
|
92
|
-
placeholder?: string | undefined;
|
|
93
72
|
label?: string | undefined;
|
|
94
73
|
inputType?: "number" | "text" | "password" | undefined;
|
|
74
|
+
placeholder?: string | undefined;
|
|
95
75
|
} | {
|
|
96
76
|
value: string;
|
|
97
77
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -99,30 +79,30 @@ declare const UpdateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
99
79
|
variant?: "primary" | "secondary" | undefined;
|
|
100
80
|
buttonType?: "button" | "submit" | undefined;
|
|
101
81
|
})[];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
82
|
+
} | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
83
|
+
name: string;
|
|
84
|
+
type?: "number" | "text" | "password" | undefined;
|
|
85
|
+
value?: string | undefined;
|
|
86
|
+
placeholder?: string | undefined;
|
|
87
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
106
88
|
name: string;
|
|
107
89
|
value?: string | undefined;
|
|
108
|
-
children: import("@metamask/snaps-sdk/jsx
|
|
90
|
+
children: import("@metamask/snaps-sdk/jsx").MaybeArray<import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
109
91
|
value: string;
|
|
110
92
|
children: string;
|
|
111
93
|
}, "Option">>;
|
|
112
|
-
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx
|
|
94
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
95
|
+
children: import("@metamask/snaps-sdk/jsx").MaybeArray<import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").FieldProps, "Field">>;
|
|
113
96
|
name: string;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}, "Input"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
118
|
-
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">>;
|
|
119
|
-
name: string;
|
|
120
|
-
}, "Form"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
121
|
-
children: import("@metamask/snaps-sdk/jsx-runtime").StringElement;
|
|
122
|
-
}, "Heading"> | import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
|
|
97
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
98
|
+
children: import("@metamask/snaps-sdk/jsx").StringElement;
|
|
99
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
123
100
|
src: string;
|
|
124
101
|
alt?: string | undefined;
|
|
125
|
-
}, "Image"
|
|
102
|
+
}, "Image">;
|
|
103
|
+
}, {
|
|
104
|
+
id: import("superstruct").Struct<string, null>;
|
|
105
|
+
ui: import("superstruct").Struct<import("@metamask/snaps-sdk").Panel | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").BoldProps, "Bold"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ItalicProps, "Italic"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").AddressProps, "Address"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").BoxProps, "Box"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").CopyableProps, "Copyable"> | import("@metamask/snaps-sdk/jsx").SnapElement<Record<string, never>, "Divider"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").LinkProps, "Link"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").RowProps, "Row"> | import("@metamask/snaps-sdk/jsx").SnapElement<Record<string, never>, "Spinner"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").TextProps, "Text"> | {
|
|
126
106
|
value: string;
|
|
127
107
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
128
108
|
sensitive?: boolean | undefined;
|
|
@@ -163,9 +143,9 @@ declare const UpdateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
163
143
|
name: string;
|
|
164
144
|
value?: string | undefined;
|
|
165
145
|
error?: string | undefined;
|
|
166
|
-
placeholder?: string | undefined;
|
|
167
146
|
label?: string | undefined;
|
|
168
147
|
inputType?: "number" | "text" | "password" | undefined;
|
|
148
|
+
placeholder?: string | undefined;
|
|
169
149
|
} | {
|
|
170
150
|
value: string;
|
|
171
151
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -180,9 +160,9 @@ declare const UpdateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
180
160
|
name: string;
|
|
181
161
|
value?: string | undefined;
|
|
182
162
|
error?: string | undefined;
|
|
183
|
-
placeholder?: string | undefined;
|
|
184
163
|
label?: string | undefined;
|
|
185
164
|
inputType?: "number" | "text" | "password" | undefined;
|
|
165
|
+
placeholder?: string | undefined;
|
|
186
166
|
} | {
|
|
187
167
|
value: string;
|
|
188
168
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -190,7 +170,27 @@ declare const UpdateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
|
190
170
|
variant?: "primary" | "secondary" | undefined;
|
|
191
171
|
buttonType?: "button" | "submit" | undefined;
|
|
192
172
|
})[];
|
|
193
|
-
}
|
|
173
|
+
} | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
174
|
+
name: string;
|
|
175
|
+
type?: "number" | "text" | "password" | undefined;
|
|
176
|
+
value?: string | undefined;
|
|
177
|
+
placeholder?: string | undefined;
|
|
178
|
+
}, "Input"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
179
|
+
name: string;
|
|
180
|
+
value?: string | undefined;
|
|
181
|
+
children: import("@metamask/snaps-sdk/jsx").MaybeArray<import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
182
|
+
value: string;
|
|
183
|
+
children: string;
|
|
184
|
+
}, "Option">>;
|
|
185
|
+
}, "Dropdown"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
186
|
+
children: import("@metamask/snaps-sdk/jsx").MaybeArray<import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").ButtonProps, "Button"> | import("@metamask/snaps-sdk/jsx").SnapElement<import("@metamask/snaps-sdk/jsx").FieldProps, "Field">>;
|
|
187
|
+
name: string;
|
|
188
|
+
}, "Form"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
189
|
+
children: import("@metamask/snaps-sdk/jsx").StringElement;
|
|
190
|
+
}, "Heading"> | import("@metamask/snaps-sdk/jsx").SnapElement<{
|
|
191
|
+
src: string;
|
|
192
|
+
alt?: string | undefined;
|
|
193
|
+
}, "Image">, null>;
|
|
194
194
|
}>;
|
|
195
195
|
export declare type UpdateInterfaceParameters = InferMatching<typeof UpdateInterfaceParametersStruct, UpdateInterfaceParams>;
|
|
196
196
|
export {};
|