@metamask-previews/keyring-internal-api 6.2.0-e4f6caa → 6.2.0-e86c8ec

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.cts CHANGED
@@ -54,7 +54,17 @@ export declare const InternalAccountMetadataStruct: Struct<{
54
54
  export declare const InternalEthEoaAccountStruct: Struct<{
55
55
  type: "eip155:eoa";
56
56
  id: string;
57
- options: Record<string, import("@metamask/utils").Json>;
57
+ options: Record<string, import("@metamask/utils").Json> & {
58
+ entropy?: {
59
+ type: "mnemonic";
60
+ id: string;
61
+ derivationPath: string;
62
+ groupIndex: number;
63
+ } | {
64
+ type: "private-key";
65
+ };
66
+ exportable?: boolean;
67
+ };
58
68
  metadata: {
59
69
  name: string;
60
70
  importTime: number;
@@ -118,12 +128,32 @@ export declare const InternalEthEoaAccountStruct: Struct<{
118
128
  eth_signTypedData_v4: "eth_signTypedData_v4";
119
129
  }>>;
120
130
  id: import("@metamask/superstruct").Struct<string, null>;
121
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
131
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
132
+ entropy?: {
133
+ type: "mnemonic";
134
+ id: string;
135
+ derivationPath: string;
136
+ groupIndex: number;
137
+ } | {
138
+ type: "private-key";
139
+ };
140
+ exportable?: boolean;
141
+ }, null>;
122
142
  }>;
123
143
  export declare const InternalEthErc4337AccountStruct: Struct<{
124
144
  type: "eip155:erc4337";
125
145
  id: string;
126
- options: Record<string, import("@metamask/utils").Json>;
146
+ options: Record<string, import("@metamask/utils").Json> & {
147
+ entropy?: {
148
+ type: "mnemonic";
149
+ id: string;
150
+ derivationPath: string;
151
+ groupIndex: number;
152
+ } | {
153
+ type: "private-key";
154
+ };
155
+ exportable?: boolean;
156
+ };
127
157
  metadata: {
128
158
  name: string;
129
159
  importTime: number;
@@ -189,12 +219,32 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
189
219
  eth_signUserOperation: "eth_signUserOperation";
190
220
  }>>;
191
221
  id: import("@metamask/superstruct").Struct<string, null>;
192
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
222
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
223
+ entropy?: {
224
+ type: "mnemonic";
225
+ id: string;
226
+ derivationPath: string;
227
+ groupIndex: number;
228
+ } | {
229
+ type: "private-key";
230
+ };
231
+ exportable?: boolean;
232
+ }, null>;
193
233
  }>;
194
234
  export declare const InternalBtcP2pkhAccountStruct: Struct<{
195
235
  type: "bip122:p2pkh";
196
236
  id: string;
197
- options: Record<string, import("@metamask/utils").Json>;
237
+ options: Record<string, import("@metamask/utils").Json> & {
238
+ entropy?: {
239
+ type: "mnemonic";
240
+ id: string;
241
+ derivationPath: string;
242
+ groupIndex: number;
243
+ } | {
244
+ type: "private-key";
245
+ };
246
+ exportable?: boolean;
247
+ };
198
248
  metadata: {
199
249
  name: string;
200
250
  importTime: number;
@@ -253,12 +303,32 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
253
303
  sendBitcoin: "sendBitcoin";
254
304
  }>>;
255
305
  id: import("@metamask/superstruct").Struct<string, null>;
256
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
306
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
307
+ entropy?: {
308
+ type: "mnemonic";
309
+ id: string;
310
+ derivationPath: string;
311
+ groupIndex: number;
312
+ } | {
313
+ type: "private-key";
314
+ };
315
+ exportable?: boolean;
316
+ }, null>;
257
317
  }>;
258
318
  export declare const InternalBtcP2shAccountStruct: Struct<{
259
319
  type: "bip122:p2sh";
260
320
  id: string;
261
- options: Record<string, import("@metamask/utils").Json>;
321
+ options: Record<string, import("@metamask/utils").Json> & {
322
+ entropy?: {
323
+ type: "mnemonic";
324
+ id: string;
325
+ derivationPath: string;
326
+ groupIndex: number;
327
+ } | {
328
+ type: "private-key";
329
+ };
330
+ exportable?: boolean;
331
+ };
262
332
  metadata: {
263
333
  name: string;
264
334
  importTime: number;
@@ -317,12 +387,32 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
317
387
  sendBitcoin: "sendBitcoin";
318
388
  }>>;
319
389
  id: import("@metamask/superstruct").Struct<string, null>;
320
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
390
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
391
+ entropy?: {
392
+ type: "mnemonic";
393
+ id: string;
394
+ derivationPath: string;
395
+ groupIndex: number;
396
+ } | {
397
+ type: "private-key";
398
+ };
399
+ exportable?: boolean;
400
+ }, null>;
321
401
  }>;
322
402
  export declare const InternalBtcP2wpkhAccountStruct: Struct<{
323
403
  type: "bip122:p2wpkh";
324
404
  id: string;
325
- options: Record<string, import("@metamask/utils").Json>;
405
+ options: Record<string, import("@metamask/utils").Json> & {
406
+ entropy?: {
407
+ type: "mnemonic";
408
+ id: string;
409
+ derivationPath: string;
410
+ groupIndex: number;
411
+ } | {
412
+ type: "private-key";
413
+ };
414
+ exportable?: boolean;
415
+ };
326
416
  metadata: {
327
417
  name: string;
328
418
  importTime: number;
@@ -381,12 +471,32 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
381
471
  sendBitcoin: "sendBitcoin";
382
472
  }>>;
383
473
  id: import("@metamask/superstruct").Struct<string, null>;
384
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
474
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
475
+ entropy?: {
476
+ type: "mnemonic";
477
+ id: string;
478
+ derivationPath: string;
479
+ groupIndex: number;
480
+ } | {
481
+ type: "private-key";
482
+ };
483
+ exportable?: boolean;
484
+ }, null>;
385
485
  }>;
386
486
  export declare const InternalBtcP2trAccountStruct: Struct<{
387
487
  type: "bip122:p2tr";
388
488
  id: string;
389
- options: Record<string, import("@metamask/utils").Json>;
489
+ options: Record<string, import("@metamask/utils").Json> & {
490
+ entropy?: {
491
+ type: "mnemonic";
492
+ id: string;
493
+ derivationPath: string;
494
+ groupIndex: number;
495
+ } | {
496
+ type: "private-key";
497
+ };
498
+ exportable?: boolean;
499
+ };
390
500
  metadata: {
391
501
  name: string;
392
502
  importTime: number;
@@ -445,12 +555,32 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
445
555
  sendBitcoin: "sendBitcoin";
446
556
  }>>;
447
557
  id: import("@metamask/superstruct").Struct<string, null>;
448
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
558
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
559
+ entropy?: {
560
+ type: "mnemonic";
561
+ id: string;
562
+ derivationPath: string;
563
+ groupIndex: number;
564
+ } | {
565
+ type: "private-key";
566
+ };
567
+ exportable?: boolean;
568
+ }, null>;
449
569
  }>;
450
570
  export declare const InternalSolDataAccountStruct: Struct<{
451
571
  type: "solana:data-account";
452
572
  id: string;
453
- options: Record<string, import("@metamask/utils").Json>;
573
+ options: Record<string, import("@metamask/utils").Json> & {
574
+ entropy?: {
575
+ type: "mnemonic";
576
+ id: string;
577
+ derivationPath: string;
578
+ groupIndex: number;
579
+ } | {
580
+ type: "private-key";
581
+ };
582
+ exportable?: boolean;
583
+ };
454
584
  metadata: {
455
585
  name: string;
456
586
  importTime: number;
@@ -513,7 +643,17 @@ export declare const InternalSolDataAccountStruct: Struct<{
513
643
  signIn: import("@metamask/keyring-api").SolMethod.SignIn;
514
644
  }>>;
515
645
  id: import("@metamask/superstruct").Struct<string, null>;
516
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
646
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
647
+ entropy?: {
648
+ type: "mnemonic";
649
+ id: string;
650
+ derivationPath: string;
651
+ groupIndex: number;
652
+ } | {
653
+ type: "private-key";
654
+ };
655
+ exportable?: boolean;
656
+ }, null>;
517
657
  }>;
518
658
  export type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;
519
659
  export type InternalEthErc4337Account = Infer<typeof InternalEthErc4337AccountStruct>;
@@ -527,7 +667,17 @@ export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Acc
527
667
  export declare const InternalAccountStruct: Struct<{
528
668
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
529
669
  id: string;
530
- options: Record<string, import("@metamask/utils").Json>;
670
+ options: Record<string, import("@metamask/utils").Json> & {
671
+ entropy?: {
672
+ type: "mnemonic";
673
+ id: string;
674
+ derivationPath: string;
675
+ groupIndex: number;
676
+ } | {
677
+ type: "private-key";
678
+ };
679
+ exportable?: boolean;
680
+ };
531
681
  metadata: {
532
682
  name: string;
533
683
  importTime: number;
@@ -591,7 +741,17 @@ export declare const InternalAccountStruct: Struct<{
591
741
  }>;
592
742
  address: import("@metamask/superstruct").Struct<string, null>;
593
743
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
594
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
744
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
745
+ entropy?: {
746
+ type: "mnemonic";
747
+ id: string;
748
+ derivationPath: string;
749
+ groupIndex: number;
750
+ } | {
751
+ type: "private-key";
752
+ };
753
+ exportable?: boolean;
754
+ }, null>;
595
755
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
596
756
  }>;
597
757
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MA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ruct: Struct<{
54
54
  export declare const InternalEthEoaAccountStruct: Struct<{
55
55
  type: "eip155:eoa";
56
56
  id: string;
57
- options: Record<string, import("@metamask/utils").Json>;
57
+ options: Record<string, import("@metamask/utils").Json> & {
58
+ entropy?: {
59
+ type: "mnemonic";
60
+ id: string;
61
+ derivationPath: string;
62
+ groupIndex: number;
63
+ } | {
64
+ type: "private-key";
65
+ };
66
+ exportable?: boolean;
67
+ };
58
68
  metadata: {
59
69
  name: string;
60
70
  importTime: number;
@@ -118,12 +128,32 @@ export declare const InternalEthEoaAccountStruct: Struct<{
118
128
  eth_signTypedData_v4: "eth_signTypedData_v4";
119
129
  }>>;
120
130
  id: import("@metamask/superstruct").Struct<string, null>;
121
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
131
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
132
+ entropy?: {
133
+ type: "mnemonic";
134
+ id: string;
135
+ derivationPath: string;
136
+ groupIndex: number;
137
+ } | {
138
+ type: "private-key";
139
+ };
140
+ exportable?: boolean;
141
+ }, null>;
122
142
  }>;
123
143
  export declare const InternalEthErc4337AccountStruct: Struct<{
124
144
  type: "eip155:erc4337";
125
145
  id: string;
126
- options: Record<string, import("@metamask/utils").Json>;
146
+ options: Record<string, import("@metamask/utils").Json> & {
147
+ entropy?: {
148
+ type: "mnemonic";
149
+ id: string;
150
+ derivationPath: string;
151
+ groupIndex: number;
152
+ } | {
153
+ type: "private-key";
154
+ };
155
+ exportable?: boolean;
156
+ };
127
157
  metadata: {
128
158
  name: string;
129
159
  importTime: number;
@@ -189,12 +219,32 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
189
219
  eth_signUserOperation: "eth_signUserOperation";
190
220
  }>>;
191
221
  id: import("@metamask/superstruct").Struct<string, null>;
192
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
222
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
223
+ entropy?: {
224
+ type: "mnemonic";
225
+ id: string;
226
+ derivationPath: string;
227
+ groupIndex: number;
228
+ } | {
229
+ type: "private-key";
230
+ };
231
+ exportable?: boolean;
232
+ }, null>;
193
233
  }>;
194
234
  export declare const InternalBtcP2pkhAccountStruct: Struct<{
195
235
  type: "bip122:p2pkh";
196
236
  id: string;
197
- options: Record<string, import("@metamask/utils").Json>;
237
+ options: Record<string, import("@metamask/utils").Json> & {
238
+ entropy?: {
239
+ type: "mnemonic";
240
+ id: string;
241
+ derivationPath: string;
242
+ groupIndex: number;
243
+ } | {
244
+ type: "private-key";
245
+ };
246
+ exportable?: boolean;
247
+ };
198
248
  metadata: {
199
249
  name: string;
200
250
  importTime: number;
@@ -253,12 +303,32 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
253
303
  sendBitcoin: "sendBitcoin";
254
304
  }>>;
255
305
  id: import("@metamask/superstruct").Struct<string, null>;
256
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
306
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
307
+ entropy?: {
308
+ type: "mnemonic";
309
+ id: string;
310
+ derivationPath: string;
311
+ groupIndex: number;
312
+ } | {
313
+ type: "private-key";
314
+ };
315
+ exportable?: boolean;
316
+ }, null>;
257
317
  }>;
258
318
  export declare const InternalBtcP2shAccountStruct: Struct<{
259
319
  type: "bip122:p2sh";
260
320
  id: string;
261
- options: Record<string, import("@metamask/utils").Json>;
321
+ options: Record<string, import("@metamask/utils").Json> & {
322
+ entropy?: {
323
+ type: "mnemonic";
324
+ id: string;
325
+ derivationPath: string;
326
+ groupIndex: number;
327
+ } | {
328
+ type: "private-key";
329
+ };
330
+ exportable?: boolean;
331
+ };
262
332
  metadata: {
263
333
  name: string;
264
334
  importTime: number;
@@ -317,12 +387,32 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
317
387
  sendBitcoin: "sendBitcoin";
318
388
  }>>;
319
389
  id: import("@metamask/superstruct").Struct<string, null>;
320
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
390
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
391
+ entropy?: {
392
+ type: "mnemonic";
393
+ id: string;
394
+ derivationPath: string;
395
+ groupIndex: number;
396
+ } | {
397
+ type: "private-key";
398
+ };
399
+ exportable?: boolean;
400
+ }, null>;
321
401
  }>;
322
402
  export declare const InternalBtcP2wpkhAccountStruct: Struct<{
323
403
  type: "bip122:p2wpkh";
324
404
  id: string;
325
- options: Record<string, import("@metamask/utils").Json>;
405
+ options: Record<string, import("@metamask/utils").Json> & {
406
+ entropy?: {
407
+ type: "mnemonic";
408
+ id: string;
409
+ derivationPath: string;
410
+ groupIndex: number;
411
+ } | {
412
+ type: "private-key";
413
+ };
414
+ exportable?: boolean;
415
+ };
326
416
  metadata: {
327
417
  name: string;
328
418
  importTime: number;
@@ -381,12 +471,32 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
381
471
  sendBitcoin: "sendBitcoin";
382
472
  }>>;
383
473
  id: import("@metamask/superstruct").Struct<string, null>;
384
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
474
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
475
+ entropy?: {
476
+ type: "mnemonic";
477
+ id: string;
478
+ derivationPath: string;
479
+ groupIndex: number;
480
+ } | {
481
+ type: "private-key";
482
+ };
483
+ exportable?: boolean;
484
+ }, null>;
385
485
  }>;
386
486
  export declare const InternalBtcP2trAccountStruct: Struct<{
387
487
  type: "bip122:p2tr";
388
488
  id: string;
389
- options: Record<string, import("@metamask/utils").Json>;
489
+ options: Record<string, import("@metamask/utils").Json> & {
490
+ entropy?: {
491
+ type: "mnemonic";
492
+ id: string;
493
+ derivationPath: string;
494
+ groupIndex: number;
495
+ } | {
496
+ type: "private-key";
497
+ };
498
+ exportable?: boolean;
499
+ };
390
500
  metadata: {
391
501
  name: string;
392
502
  importTime: number;
@@ -445,12 +555,32 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
445
555
  sendBitcoin: "sendBitcoin";
446
556
  }>>;
447
557
  id: import("@metamask/superstruct").Struct<string, null>;
448
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
558
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
559
+ entropy?: {
560
+ type: "mnemonic";
561
+ id: string;
562
+ derivationPath: string;
563
+ groupIndex: number;
564
+ } | {
565
+ type: "private-key";
566
+ };
567
+ exportable?: boolean;
568
+ }, null>;
449
569
  }>;
450
570
  export declare const InternalSolDataAccountStruct: Struct<{
451
571
  type: "solana:data-account";
452
572
  id: string;
453
- options: Record<string, import("@metamask/utils").Json>;
573
+ options: Record<string, import("@metamask/utils").Json> & {
574
+ entropy?: {
575
+ type: "mnemonic";
576
+ id: string;
577
+ derivationPath: string;
578
+ groupIndex: number;
579
+ } | {
580
+ type: "private-key";
581
+ };
582
+ exportable?: boolean;
583
+ };
454
584
  metadata: {
455
585
  name: string;
456
586
  importTime: number;
@@ -513,7 +643,17 @@ export declare const InternalSolDataAccountStruct: Struct<{
513
643
  signIn: import("@metamask/keyring-api").SolMethod.SignIn;
514
644
  }>>;
515
645
  id: import("@metamask/superstruct").Struct<string, null>;
516
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
646
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
647
+ entropy?: {
648
+ type: "mnemonic";
649
+ id: string;
650
+ derivationPath: string;
651
+ groupIndex: number;
652
+ } | {
653
+ type: "private-key";
654
+ };
655
+ exportable?: boolean;
656
+ }, null>;
517
657
  }>;
518
658
  export type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;
519
659
  export type InternalEthErc4337Account = Infer<typeof InternalEthErc4337AccountStruct>;
@@ -527,7 +667,17 @@ export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Acc
527
667
  export declare const InternalAccountStruct: Struct<{
528
668
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
529
669
  id: string;
530
- options: Record<string, import("@metamask/utils").Json>;
670
+ options: Record<string, import("@metamask/utils").Json> & {
671
+ entropy?: {
672
+ type: "mnemonic";
673
+ id: string;
674
+ derivationPath: string;
675
+ groupIndex: number;
676
+ } | {
677
+ type: "private-key";
678
+ };
679
+ exportable?: boolean;
680
+ };
531
681
  metadata: {
532
682
  name: string;
533
683
  importTime: number;
@@ -591,7 +741,17 @@ export declare const InternalAccountStruct: Struct<{
591
741
  }>;
592
742
  address: import("@metamask/superstruct").Struct<string, null>;
593
743
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
594
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
744
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
745
+ entropy?: {
746
+ type: "mnemonic";
747
+ id: string;
748
+ derivationPath: string;
749
+ groupIndex: number;
750
+ } | {
751
+ type: "private-key";
752
+ };
753
+ exportable?: boolean;
754
+ }, null>;
595
755
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
596
756
  }>;
597
757
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxC,CAAC;AAEH,e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;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAC1C,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,MAAM,EACJ,MAAM,CAAC,qBAAqB,CAAC,GAC7B,MAAM,CAAC,yBAAyB,CAAC,GACjC,MAAM,CAAC,uBAAuB,CAAC,GAC/B,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,wBAAwB,CAAC,GAChC,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,sBAAsB,CAAC,CASjC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,qBAAqB,GACrB,yBAAyB,GACzB,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,sBAAsB,CAAC;AAE3B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAhC6C,CAAC;;;;;;;;kBAOnD,CAAC;;;EA4B5B,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-internal-api",
3
- "version": "6.2.0-e4f6caa",
3
+ "version": "6.2.0-e86c8ec",
4
4
  "description": "MetaMask Keyring Internal API",
5
5
  "keywords": [
6
6
  "metamask",