@metamask/snaps-utils 7.0.3 → 7.1.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/dist/{chunk-2IWSQJKQ.mjs → chunk-2M6G46W6.mjs} +1 -1
  3. package/dist/chunk-2M6G46W6.mjs.map +1 -0
  4. package/dist/{chunk-AWRMYDIN.js → chunk-7EDRFEUH.js} +11 -11
  5. package/dist/{chunk-ENKAY3PI.js → chunk-E5WSD47S.js} +16 -14
  6. package/dist/chunk-E5WSD47S.js.map +1 -0
  7. package/dist/{chunk-LGT3PBPZ.mjs → chunk-E6U344HR.mjs} +3 -3
  8. package/dist/{chunk-LCWDLIK5.mjs → chunk-HTS6HGUU.mjs} +14 -12
  9. package/dist/chunk-HTS6HGUU.mjs.map +1 -0
  10. package/dist/{chunk-TG4BDSYJ.js → chunk-HVTYDKBO.js} +1 -1
  11. package/dist/chunk-HVTYDKBO.js.map +1 -0
  12. package/dist/{chunk-HDZ3BJBL.mjs → chunk-KP4ZAWMP.mjs} +8 -4
  13. package/dist/chunk-KP4ZAWMP.mjs.map +1 -0
  14. package/dist/{chunk-YMUOYQFU.js → chunk-MKTAIEG7.js} +5 -5
  15. package/dist/{chunk-EX4PPLND.js → chunk-NDIITWO4.js} +7 -3
  16. package/dist/chunk-NDIITWO4.js.map +1 -0
  17. package/dist/{chunk-QX6MAFJU.mjs → chunk-PBXAWRWW.mjs} +6 -1
  18. package/dist/chunk-PBXAWRWW.mjs.map +1 -0
  19. package/dist/{chunk-2PCPD5XY.js → chunk-XNUUUOKX.js} +6 -1
  20. package/dist/chunk-XNUUUOKX.js.map +1 -0
  21. package/dist/{chunk-PIG67G67.mjs → chunk-YP3ZXUME.mjs} +3 -3
  22. package/dist/derivation-paths.js +2 -2
  23. package/dist/derivation-paths.mjs +1 -1
  24. package/dist/index.js +10 -6
  25. package/dist/index.mjs +9 -5
  26. package/dist/manifest/index.js +5 -3
  27. package/dist/manifest/index.mjs +4 -2
  28. package/dist/manifest/manifest.js +4 -4
  29. package/dist/manifest/manifest.mjs +3 -3
  30. package/dist/manifest/node.js +6 -4
  31. package/dist/manifest/node.mjs +5 -3
  32. package/dist/manifest/validation.js +5 -3
  33. package/dist/manifest/validation.mjs +4 -2
  34. package/dist/node.js +11 -7
  35. package/dist/node.mjs +10 -6
  36. package/dist/npm.js +4 -4
  37. package/dist/npm.mjs +3 -3
  38. package/dist/snaps.js +2 -2
  39. package/dist/snaps.mjs +1 -1
  40. package/dist/tsconfig.build.tsbuildinfo +1 -1
  41. package/dist/types/handlers.d.ts +87 -87
  42. package/dist/types/localization.d.ts +31 -55
  43. package/dist/types/manifest/validation.d.ts +65 -489
  44. package/dist/types/snaps.d.ts +5 -1
  45. package/dist/types/ui.d.ts +8 -1
  46. package/dist/ui.js +4 -2
  47. package/dist/ui.mjs +3 -1
  48. package/dist/validation.js +4 -4
  49. package/dist/validation.mjs +3 -3
  50. package/package.json +5 -5
  51. package/dist/chunk-2IWSQJKQ.mjs.map +0 -1
  52. package/dist/chunk-2PCPD5XY.js.map +0 -1
  53. package/dist/chunk-ENKAY3PI.js.map +0 -1
  54. package/dist/chunk-EX4PPLND.js.map +0 -1
  55. package/dist/chunk-HDZ3BJBL.mjs.map +0 -1
  56. package/dist/chunk-LCWDLIK5.mjs.map +0 -1
  57. package/dist/chunk-QX6MAFJU.mjs.map +0 -1
  58. package/dist/chunk-TG4BDSYJ.js.map +0 -1
  59. /package/dist/{chunk-AWRMYDIN.js.map → chunk-7EDRFEUH.js.map} +0 -0
  60. /package/dist/{chunk-LGT3PBPZ.mjs.map → chunk-E6U344HR.mjs.map} +0 -0
  61. /package/dist/{chunk-YMUOYQFU.js.map → chunk-MKTAIEG7.js.map} +0 -0
  62. /package/dist/{chunk-PIG67G67.mjs.map → chunk-YP3ZXUME.mjs.map} +0 -0
@@ -73,6 +73,38 @@ export declare const OnTransactionResponseWithIdStruct: import("superstruct").St
73
73
  }>;
74
74
  export declare const OnTransactionResponseWithContentStruct: import("superstruct").Struct<{
75
75
  content: import("@metamask/snaps-sdk").Panel | {
76
+ type: import("@metamask/snaps-sdk").NodeType.Input;
77
+ name: string;
78
+ value?: string | undefined;
79
+ error?: string | undefined;
80
+ inputType?: "number" | "text" | "password" | undefined;
81
+ placeholder?: string | undefined;
82
+ label?: string | undefined;
83
+ } | {
84
+ value: string;
85
+ type: import("@metamask/snaps-sdk").NodeType.Button;
86
+ name?: string | undefined;
87
+ variant?: "primary" | "secondary" | undefined;
88
+ buttonType?: "button" | "submit" | undefined;
89
+ } | {
90
+ type: import("@metamask/snaps-sdk").NodeType.Form;
91
+ name: string;
92
+ children: ({
93
+ type: import("@metamask/snaps-sdk").NodeType.Input;
94
+ name: string;
95
+ value?: string | undefined;
96
+ error?: string | undefined;
97
+ inputType?: "number" | "text" | "password" | undefined;
98
+ placeholder?: string | undefined;
99
+ label?: string | undefined;
100
+ } | {
101
+ value: string;
102
+ type: import("@metamask/snaps-sdk").NodeType.Button;
103
+ name?: string | undefined;
104
+ variant?: "primary" | "secondary" | undefined;
105
+ buttonType?: "button" | "submit" | undefined;
106
+ })[];
107
+ } | {
76
108
  value: string;
77
109
  type: import("@metamask/snaps-sdk").NodeType.Copyable;
78
110
  sensitive?: boolean | undefined;
@@ -108,14 +140,17 @@ export declare const OnTransactionResponseWithContentStruct: import("superstruct
108
140
  type: import("@metamask/snaps-sdk").NodeType.Row;
109
141
  label: string;
110
142
  variant?: "default" | "warning" | "critical" | undefined;
111
- } | {
143
+ };
144
+ severity?: SeverityLevel | undefined;
145
+ }, {
146
+ content: import("superstruct").Struct<import("@metamask/snaps-sdk").Panel | {
112
147
  type: import("@metamask/snaps-sdk").NodeType.Input;
113
148
  name: string;
114
149
  value?: string | undefined;
115
150
  error?: string | undefined;
116
- label?: string | undefined;
117
151
  inputType?: "number" | "text" | "password" | undefined;
118
152
  placeholder?: string | undefined;
153
+ label?: string | undefined;
119
154
  } | {
120
155
  value: string;
121
156
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -130,9 +165,9 @@ export declare const OnTransactionResponseWithContentStruct: import("superstruct
130
165
  name: string;
131
166
  value?: string | undefined;
132
167
  error?: string | undefined;
133
- label?: string | undefined;
134
168
  inputType?: "number" | "text" | "password" | undefined;
135
169
  placeholder?: string | undefined;
170
+ label?: string | undefined;
136
171
  } | {
137
172
  value: string;
138
173
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -140,10 +175,7 @@ export declare const OnTransactionResponseWithContentStruct: import("superstruct
140
175
  variant?: "primary" | "secondary" | undefined;
141
176
  buttonType?: "button" | "submit" | undefined;
142
177
  })[];
143
- };
144
- severity?: SeverityLevel | undefined;
145
- }, {
146
- content: import("superstruct").Struct<import("@metamask/snaps-sdk").Panel | {
178
+ } | {
147
179
  value: string;
148
180
  type: import("@metamask/snaps-sdk").NodeType.Copyable;
149
181
  sensitive?: boolean | undefined;
@@ -179,14 +211,21 @@ export declare const OnTransactionResponseWithContentStruct: import("superstruct
179
211
  type: import("@metamask/snaps-sdk").NodeType.Row;
180
212
  label: string;
181
213
  variant?: "default" | "warning" | "critical" | undefined;
182
- } | {
214
+ }, null>;
215
+ severity: import("superstruct").Struct<SeverityLevel | undefined, SeverityLevel>;
216
+ }>;
217
+ export declare const OnTransactionResponseStruct: import("superstruct").Struct<{
218
+ id: string;
219
+ severity?: SeverityLevel | undefined;
220
+ } | {
221
+ content: import("@metamask/snaps-sdk").Panel | {
183
222
  type: import("@metamask/snaps-sdk").NodeType.Input;
184
223
  name: string;
185
224
  value?: string | undefined;
186
225
  error?: string | undefined;
187
- label?: string | undefined;
188
226
  inputType?: "number" | "text" | "password" | undefined;
189
227
  placeholder?: string | undefined;
228
+ label?: string | undefined;
190
229
  } | {
191
230
  value: string;
192
231
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -201,9 +240,9 @@ export declare const OnTransactionResponseWithContentStruct: import("superstruct
201
240
  name: string;
202
241
  value?: string | undefined;
203
242
  error?: string | undefined;
204
- label?: string | undefined;
205
243
  inputType?: "number" | "text" | "password" | undefined;
206
244
  placeholder?: string | undefined;
245
+ label?: string | undefined;
207
246
  } | {
208
247
  value: string;
209
248
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -211,14 +250,7 @@ export declare const OnTransactionResponseWithContentStruct: import("superstruct
211
250
  variant?: "primary" | "secondary" | undefined;
212
251
  buttonType?: "button" | "submit" | undefined;
213
252
  })[];
214
- }, null>;
215
- severity: import("superstruct").Struct<SeverityLevel | undefined, SeverityLevel>;
216
- }>;
217
- export declare const OnTransactionResponseStruct: import("superstruct").Struct<{
218
- id: string;
219
- severity?: SeverityLevel | undefined;
220
- } | {
221
- content: import("@metamask/snaps-sdk").Panel | {
253
+ } | {
222
254
  value: string;
223
255
  type: import("@metamask/snaps-sdk").NodeType.Copyable;
224
256
  sensitive?: boolean | undefined;
@@ -254,14 +286,21 @@ export declare const OnTransactionResponseStruct: import("superstruct").Struct<{
254
286
  type: import("@metamask/snaps-sdk").NodeType.Row;
255
287
  label: string;
256
288
  variant?: "default" | "warning" | "critical" | undefined;
257
- } | {
289
+ };
290
+ severity?: SeverityLevel | undefined;
291
+ } | null, null>;
292
+ export declare const OnSignatureResponseStruct: import("superstruct").Struct<{
293
+ id: string;
294
+ severity?: SeverityLevel | undefined;
295
+ } | {
296
+ content: import("@metamask/snaps-sdk").Panel | {
258
297
  type: import("@metamask/snaps-sdk").NodeType.Input;
259
298
  name: string;
260
299
  value?: string | undefined;
261
300
  error?: string | undefined;
262
- label?: string | undefined;
263
301
  inputType?: "number" | "text" | "password" | undefined;
264
302
  placeholder?: string | undefined;
303
+ label?: string | undefined;
265
304
  } | {
266
305
  value: string;
267
306
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -276,9 +315,9 @@ export declare const OnTransactionResponseStruct: import("superstruct").Struct<{
276
315
  name: string;
277
316
  value?: string | undefined;
278
317
  error?: string | undefined;
279
- label?: string | undefined;
280
318
  inputType?: "number" | "text" | "password" | undefined;
281
319
  placeholder?: string | undefined;
320
+ label?: string | undefined;
282
321
  } | {
283
322
  value: string;
284
323
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -286,14 +325,7 @@ export declare const OnTransactionResponseStruct: import("superstruct").Struct<{
286
325
  variant?: "primary" | "secondary" | undefined;
287
326
  buttonType?: "button" | "submit" | undefined;
288
327
  })[];
289
- };
290
- severity?: SeverityLevel | undefined;
291
- } | null, null>;
292
- export declare const OnSignatureResponseStruct: import("superstruct").Struct<{
293
- id: string;
294
- severity?: SeverityLevel | undefined;
295
- } | {
296
- content: import("@metamask/snaps-sdk").Panel | {
328
+ } | {
297
329
  value: string;
298
330
  type: import("@metamask/snaps-sdk").NodeType.Copyable;
299
331
  sensitive?: boolean | undefined;
@@ -329,14 +361,18 @@ export declare const OnSignatureResponseStruct: import("superstruct").Struct<{
329
361
  type: import("@metamask/snaps-sdk").NodeType.Row;
330
362
  label: string;
331
363
  variant?: "default" | "warning" | "critical" | undefined;
332
- } | {
364
+ };
365
+ severity?: SeverityLevel | undefined;
366
+ } | null, null>;
367
+ export declare const OnHomePageResponseWithContentStruct: import("superstruct").Struct<{
368
+ content: import("@metamask/snaps-sdk").Panel | {
333
369
  type: import("@metamask/snaps-sdk").NodeType.Input;
334
370
  name: string;
335
371
  value?: string | undefined;
336
372
  error?: string | undefined;
337
- label?: string | undefined;
338
373
  inputType?: "number" | "text" | "password" | undefined;
339
374
  placeholder?: string | undefined;
375
+ label?: string | undefined;
340
376
  } | {
341
377
  value: string;
342
378
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -351,9 +387,9 @@ export declare const OnSignatureResponseStruct: import("superstruct").Struct<{
351
387
  name: string;
352
388
  value?: string | undefined;
353
389
  error?: string | undefined;
354
- label?: string | undefined;
355
390
  inputType?: "number" | "text" | "password" | undefined;
356
391
  placeholder?: string | undefined;
392
+ label?: string | undefined;
357
393
  } | {
358
394
  value: string;
359
395
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -361,11 +397,7 @@ export declare const OnSignatureResponseStruct: import("superstruct").Struct<{
361
397
  variant?: "primary" | "secondary" | undefined;
362
398
  buttonType?: "button" | "submit" | undefined;
363
399
  })[];
364
- };
365
- severity?: SeverityLevel | undefined;
366
- } | null, null>;
367
- export declare const OnHomePageResponseWithContentStruct: import("superstruct").Struct<{
368
- content: import("@metamask/snaps-sdk").Panel | {
400
+ } | {
369
401
  value: string;
370
402
  type: import("@metamask/snaps-sdk").NodeType.Copyable;
371
403
  sensitive?: boolean | undefined;
@@ -401,14 +433,16 @@ export declare const OnHomePageResponseWithContentStruct: import("superstruct").
401
433
  type: import("@metamask/snaps-sdk").NodeType.Row;
402
434
  label: string;
403
435
  variant?: "default" | "warning" | "critical" | undefined;
404
- } | {
436
+ };
437
+ }, {
438
+ content: import("superstruct").Struct<import("@metamask/snaps-sdk").Panel | {
405
439
  type: import("@metamask/snaps-sdk").NodeType.Input;
406
440
  name: string;
407
441
  value?: string | undefined;
408
442
  error?: string | undefined;
409
- label?: string | undefined;
410
443
  inputType?: "number" | "text" | "password" | undefined;
411
444
  placeholder?: string | undefined;
445
+ label?: string | undefined;
412
446
  } | {
413
447
  value: string;
414
448
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -423,9 +457,9 @@ export declare const OnHomePageResponseWithContentStruct: import("superstruct").
423
457
  name: string;
424
458
  value?: string | undefined;
425
459
  error?: string | undefined;
426
- label?: string | undefined;
427
460
  inputType?: "number" | "text" | "password" | undefined;
428
461
  placeholder?: string | undefined;
462
+ label?: string | undefined;
429
463
  } | {
430
464
  value: string;
431
465
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -433,9 +467,7 @@ export declare const OnHomePageResponseWithContentStruct: import("superstruct").
433
467
  variant?: "primary" | "secondary" | undefined;
434
468
  buttonType?: "button" | "submit" | undefined;
435
469
  })[];
436
- };
437
- }, {
438
- content: import("superstruct").Struct<import("@metamask/snaps-sdk").Panel | {
470
+ } | {
439
471
  value: string;
440
472
  type: import("@metamask/snaps-sdk").NodeType.Copyable;
441
473
  sensitive?: boolean | undefined;
@@ -471,14 +503,22 @@ export declare const OnHomePageResponseWithContentStruct: import("superstruct").
471
503
  type: import("@metamask/snaps-sdk").NodeType.Row;
472
504
  label: string;
473
505
  variant?: "default" | "warning" | "critical" | undefined;
474
- } | {
506
+ }, null>;
507
+ }>;
508
+ export declare const OnHomePageResponseWithIdStruct: import("superstruct").Struct<{
509
+ id: string;
510
+ }, {
511
+ id: import("superstruct").Struct<string, null>;
512
+ }>;
513
+ export declare const OnHomePageResponseStruct: import("superstruct").Struct<{
514
+ content: import("@metamask/snaps-sdk").Panel | {
475
515
  type: import("@metamask/snaps-sdk").NodeType.Input;
476
516
  name: string;
477
517
  value?: string | undefined;
478
518
  error?: string | undefined;
479
- label?: string | undefined;
480
519
  inputType?: "number" | "text" | "password" | undefined;
481
520
  placeholder?: string | undefined;
521
+ label?: string | undefined;
482
522
  } | {
483
523
  value: string;
484
524
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -493,9 +533,9 @@ export declare const OnHomePageResponseWithContentStruct: import("superstruct").
493
533
  name: string;
494
534
  value?: string | undefined;
495
535
  error?: string | undefined;
496
- label?: string | undefined;
497
536
  inputType?: "number" | "text" | "password" | undefined;
498
537
  placeholder?: string | undefined;
538
+ label?: string | undefined;
499
539
  } | {
500
540
  value: string;
501
541
  type: import("@metamask/snaps-sdk").NodeType.Button;
@@ -503,15 +543,7 @@ export declare const OnHomePageResponseWithContentStruct: import("superstruct").
503
543
  variant?: "primary" | "secondary" | undefined;
504
544
  buttonType?: "button" | "submit" | undefined;
505
545
  })[];
506
- }, null>;
507
- }>;
508
- export declare const OnHomePageResponseWithIdStruct: import("superstruct").Struct<{
509
- id: string;
510
- }, {
511
- id: import("superstruct").Struct<string, null>;
512
- }>;
513
- export declare const OnHomePageResponseStruct: import("superstruct").Struct<{
514
- content: import("@metamask/snaps-sdk").Panel | {
546
+ } | {
515
547
  value: string;
516
548
  type: import("@metamask/snaps-sdk").NodeType.Copyable;
517
549
  sensitive?: boolean | undefined;
@@ -547,38 +579,6 @@ export declare const OnHomePageResponseStruct: import("superstruct").Struct<{
547
579
  type: import("@metamask/snaps-sdk").NodeType.Row;
548
580
  label: string;
549
581
  variant?: "default" | "warning" | "critical" | undefined;
550
- } | {
551
- type: import("@metamask/snaps-sdk").NodeType.Input;
552
- name: string;
553
- value?: string | undefined;
554
- error?: string | undefined;
555
- label?: string | undefined;
556
- inputType?: "number" | "text" | "password" | undefined;
557
- placeholder?: string | undefined;
558
- } | {
559
- value: string;
560
- type: import("@metamask/snaps-sdk").NodeType.Button;
561
- name?: string | undefined;
562
- variant?: "primary" | "secondary" | undefined;
563
- buttonType?: "button" | "submit" | undefined;
564
- } | {
565
- type: import("@metamask/snaps-sdk").NodeType.Form;
566
- name: string;
567
- children: ({
568
- type: import("@metamask/snaps-sdk").NodeType.Input;
569
- name: string;
570
- value?: string | undefined;
571
- error?: string | undefined;
572
- label?: string | undefined;
573
- inputType?: "number" | "text" | "password" | undefined;
574
- placeholder?: string | undefined;
575
- } | {
576
- value: string;
577
- type: import("@metamask/snaps-sdk").NodeType.Button;
578
- name?: string | undefined;
579
- variant?: "primary" | "secondary" | undefined;
580
- buttonType?: "button" | "submit" | undefined;
581
- })[];
582
582
  };
583
583
  } | {
584
584
  id: string;
@@ -79,78 +79,54 @@ export declare function getLocalizedSnapManifest(snapManifest: SnapManifest, loc
79
79
  locales?: string[] | undefined;
80
80
  };
81
81
  proposedName: string;
82
- initialPermissions: {
83
- snap_dialog?: {} | undefined;
84
- snap_getBip32Entropy?: {
85
- path: string[];
86
- curve: "ed25519" | "secp256k1";
87
- }[] | undefined;
88
- snap_getBip32PublicKey?: {
89
- path: string[];
90
- curve: "ed25519" | "secp256k1";
91
- }[] | undefined;
92
- snap_getBip44Entropy?: {
93
- coinType: number;
94
- }[] | undefined;
95
- snap_getEntropy?: {} | undefined;
96
- snap_getLocale?: {} | undefined;
97
- snap_manageAccounts?: {} | undefined;
98
- snap_manageState?: {} | undefined;
99
- snap_notify?: {} | undefined;
100
- wallet_snap?: Record<string, {
101
- version?: string | undefined;
102
- }> | undefined;
103
- 'endowment:cronjob'?: {
104
- jobs: {
105
- request: {
106
- method: string;
107
- id?: string | number | null | undefined;
108
- jsonrpc?: "2.0" | undefined;
109
- params?: Record<string, import("@metamask/snaps-sdk").Json> | import("@metamask/snaps-sdk").Json[] | undefined;
110
- };
111
- expression: string;
112
- }[];
82
+ initialPermissions: Partial<{
83
+ 'endowment:cronjob': {
84
+ jobs: import("@metamask/snaps-sdk").Cronjob[];
113
85
  maxRequestTime?: number | undefined;
114
- } | undefined;
115
- 'endowment:ethereum-provider'?: {} | undefined;
116
- 'endowment:keyring'?: {
86
+ };
87
+ 'endowment:ethereum-provider': import("@metamask/snaps-sdk").EmptyObject;
88
+ 'endowment:keyring': {
117
89
  allowedOrigins?: string[] | undefined;
118
90
  maxRequestTime?: number | undefined;
119
- } | undefined;
91
+ };
120
92
  'endowment:lifecycle-hooks'?: {
121
93
  maxRequestTime?: number | undefined;
122
94
  } | undefined;
123
- 'endowment:name-lookup'?: {
95
+ 'endowment:name-lookup': {
124
96
  chains?: `${string}:${string}`[] | undefined;
97
+ matchers?: import("@metamask/snaps-sdk").NameLookupMatchers | undefined;
125
98
  maxRequestTime?: number | undefined;
126
- matchers?: {
127
- tlds: string[];
128
- } | {
129
- schemes: string[];
130
- } | {
131
- tlds: string[];
132
- schemes: string[];
133
- } | undefined;
134
- } | undefined;
135
- 'endowment:network-access'?: {} | undefined;
99
+ };
100
+ 'endowment:network-access': import("@metamask/snaps-sdk").EmptyObject;
136
101
  'endowment:page-home'?: {
137
102
  maxRequestTime?: number | undefined;
138
103
  } | undefined;
139
- 'endowment:rpc'?: {
140
- snaps?: boolean | undefined;
104
+ 'endowment:rpc': {
141
105
  dapps?: boolean | undefined;
106
+ snaps?: boolean | undefined;
142
107
  allowedOrigins?: string[] | undefined;
143
- } | undefined;
144
- 'endowment:signature-insight'?: {
145
108
  maxRequestTime?: number | undefined;
109
+ };
110
+ 'endowment:signature-insight': {
146
111
  allowSignatureOrigin?: boolean | undefined;
147
- } | undefined;
148
- 'endowment:transaction-insight'?: {
149
112
  maxRequestTime?: number | undefined;
113
+ };
114
+ 'endowment:transaction-insight': {
150
115
  allowTransactionOrigin?: boolean | undefined;
151
- } | undefined;
152
- 'endowment:webassembly'?: {} | undefined;
153
- };
116
+ maxRequestTime?: number | undefined;
117
+ };
118
+ 'endowment:webassembly': import("@metamask/snaps-sdk").EmptyObject;
119
+ snap_dialog: import("@metamask/snaps-sdk").EmptyObject;
120
+ snap_getBip32Entropy: import("@metamask/snaps-sdk").Bip32Entropy[];
121
+ snap_getBip32PublicKey: import("@metamask/snaps-sdk").Bip32Entropy[];
122
+ snap_getBip44Entropy: import("@metamask/snaps-sdk").Bip44Entropy[];
123
+ snap_getEntropy: import("@metamask/snaps-sdk").EmptyObject;
124
+ snap_getLocale: import("@metamask/snaps-sdk").EmptyObject;
125
+ snap_manageAccounts: import("@metamask/snaps-sdk").EmptyObject;
126
+ snap_manageState: import("@metamask/snaps-sdk").EmptyObject;
127
+ snap_notify: import("@metamask/snaps-sdk").EmptyObject;
128
+ wallet_snap: Record<string, import("@metamask/snaps-sdk").RequestedSnap>;
129
+ }>;
154
130
  manifestVersion: "0.1";
155
131
  repository?: {
156
132
  type: string;