@metamask-previews/keyring-api 18.0.0-e86c8ec → 18.0.0-f024bb4

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 (47) hide show
  1. package/dist/api/account.cjs +2 -2
  2. package/dist/api/account.cjs.map +1 -1
  3. package/dist/api/account.d.cts +2 -22
  4. package/dist/api/account.d.cts.map +1 -1
  5. package/dist/api/account.d.mts +2 -22
  6. package/dist/api/account.d.mts.map +1 -1
  7. package/dist/api/account.mjs +3 -3
  8. package/dist/api/account.mjs.map +1 -1
  9. package/dist/api/discovery.d.cts +2 -2
  10. package/dist/api/discovery.d.mts +2 -2
  11. package/dist/api/index.cjs +0 -1
  12. package/dist/api/index.cjs.map +1 -1
  13. package/dist/api/index.d.cts +0 -1
  14. package/dist/api/index.d.cts.map +1 -1
  15. package/dist/api/index.d.mts +0 -1
  16. package/dist/api/index.d.mts.map +1 -1
  17. package/dist/api/index.mjs +0 -1
  18. package/dist/api/index.mjs.map +1 -1
  19. package/dist/btc/types.d.cts +8 -88
  20. package/dist/btc/types.d.cts.map +1 -1
  21. package/dist/btc/types.d.mts +8 -88
  22. package/dist/btc/types.d.mts.map +1 -1
  23. package/dist/eth/types.d.cts +4 -44
  24. package/dist/eth/types.d.cts.map +1 -1
  25. package/dist/eth/types.d.mts +4 -44
  26. package/dist/eth/types.d.mts.map +1 -1
  27. package/dist/events.d.cts +8 -88
  28. package/dist/events.d.cts.map +1 -1
  29. package/dist/events.d.mts +8 -88
  30. package/dist/events.d.mts.map +1 -1
  31. package/dist/rpc.d.cts +15 -125
  32. package/dist/rpc.d.cts.map +1 -1
  33. package/dist/rpc.d.mts +15 -125
  34. package/dist/rpc.d.mts.map +1 -1
  35. package/dist/sol/types.d.cts +2 -22
  36. package/dist/sol/types.d.cts.map +1 -1
  37. package/dist/sol/types.d.mts +2 -22
  38. package/dist/sol/types.d.mts.map +1 -1
  39. package/package.json +1 -1
  40. package/dist/api/account-options.cjs +0 -122
  41. package/dist/api/account-options.cjs.map +0 -1
  42. package/dist/api/account-options.d.cts +0 -131
  43. package/dist/api/account-options.d.cts.map +0 -1
  44. package/dist/api/account-options.d.mts +0 -131
  45. package/dist/api/account-options.d.mts.map +0 -1
  46. package/dist/api/account-options.mjs +0 -119
  47. package/dist/api/account-options.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.cts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AA2BnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,gBAAgB,6BAA6B;IAC7C,iBAAiB,8BAA8B;IAC/C,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;IACzC,aAAa,0BAA0B;CACxC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1D;AAYD,eAAO,MAAM,yBAAyB;;;;;;;;EAGpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE1E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA8B,CAAC;AAEtE,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAK5E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;EAMlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,C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2BAA2B,CAAC,CAAC"}
package/dist/rpc.d.mts CHANGED
@@ -41,34 +41,14 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
41
41
  export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
42
42
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
43
43
  id: string;
44
- options: Record<string, import("@metamask/utils").Json> & {
45
- entropy?: {
46
- type: "mnemonic";
47
- id: string;
48
- derivationPath: string;
49
- groupIndex: number;
50
- } | {
51
- type: "private-key";
52
- };
53
- exportable?: boolean;
54
- };
44
+ options: Record<string, import("@metamask/utils").Json>;
55
45
  address: string;
56
46
  scopes: `${string}:${string}`[];
57
47
  methods: string[];
58
48
  }[], import("@metamask/superstruct").Struct<{
59
49
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
60
50
  id: string;
61
- options: Record<string, import("@metamask/utils").Json> & {
62
- entropy?: {
63
- type: "mnemonic";
64
- id: string;
65
- derivationPath: string;
66
- groupIndex: number;
67
- } | {
68
- type: "private-key";
69
- };
70
- exportable?: boolean;
71
- };
51
+ options: Record<string, import("@metamask/utils").Json>;
72
52
  address: string;
73
53
  scopes: `${string}:${string}`[];
74
54
  methods: string[];
@@ -85,17 +65,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
85
65
  }>;
86
66
  address: import("@metamask/superstruct").Struct<string, null>;
87
67
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
88
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
89
- entropy?: {
90
- type: "mnemonic";
91
- id: string;
92
- derivationPath: string;
93
- groupIndex: number;
94
- } | {
95
- type: "private-key";
96
- };
97
- exportable?: boolean;
98
- }, null>;
68
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
99
69
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
100
70
  }>>;
101
71
  export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
@@ -120,17 +90,7 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
120
90
  export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
121
91
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
122
92
  id: string;
123
- options: Record<string, import("@metamask/utils").Json> & {
124
- entropy?: {
125
- type: "mnemonic";
126
- id: string;
127
- derivationPath: string;
128
- groupIndex: number;
129
- } | {
130
- type: "private-key";
131
- };
132
- exportable?: boolean;
133
- };
93
+ options: Record<string, import("@metamask/utils").Json>;
134
94
  address: string;
135
95
  scopes: `${string}:${string}`[];
136
96
  methods: string[];
@@ -147,17 +107,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
147
107
  }>;
148
108
  address: import("@metamask/superstruct").Struct<string, null>;
149
109
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
150
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
151
- entropy?: {
152
- type: "mnemonic";
153
- id: string;
154
- derivationPath: string;
155
- groupIndex: number;
156
- } | {
157
- type: "private-key";
158
- };
159
- exportable?: boolean;
160
- }, null>;
110
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
161
111
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
162
112
  }>;
163
113
  export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
@@ -182,17 +132,7 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
182
132
  export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
183
133
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
184
134
  id: string;
185
- options: Record<string, import("@metamask/utils").Json> & {
186
- entropy?: {
187
- type: "mnemonic";
188
- id: string;
189
- derivationPath: string;
190
- groupIndex: number;
191
- } | {
192
- type: "private-key";
193
- };
194
- exportable?: boolean;
195
- };
135
+ options: Record<string, import("@metamask/utils").Json>;
196
136
  address: string;
197
137
  scopes: `${string}:${string}`[];
198
138
  methods: string[];
@@ -209,17 +149,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
209
149
  }>;
210
150
  address: import("@metamask/superstruct").Struct<string, null>;
211
151
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
212
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
213
- entropy?: {
214
- type: "mnemonic";
215
- id: string;
216
- derivationPath: string;
217
- groupIndex: number;
218
- } | {
219
- type: "private-key";
220
- };
221
- exportable?: boolean;
222
- }, null>;
152
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
223
153
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
224
154
  }>;
225
155
  export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
@@ -228,16 +158,16 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
228
158
  id: string | number | null;
229
159
  jsonrpc: "2.0";
230
160
  params: {
231
- groupIndex: number;
232
161
  scopes: `${string}:${string}`[];
233
162
  entropySource: string;
163
+ groupIndex: number;
234
164
  };
235
165
  }, {
236
166
  method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
237
167
  params: import("@metamask/superstruct").Struct<{
238
- groupIndex: number;
239
168
  scopes: `${string}:${string}`[];
240
169
  entropySource: string;
170
+ groupIndex: number;
241
171
  }, {
242
172
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
243
173
  entropySource: import("@metamask/superstruct").Struct<string, null>;
@@ -249,12 +179,12 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
249
179
  export type DiscoverAccountsRequest = Infer<typeof DiscoverAccountsRequestStruct>;
250
180
  export declare const DiscoverAccountsResponseStruct: import("@metamask/superstruct").Struct<{
251
181
  type: "bip44";
252
- derivationPath: `m/${string}`;
253
182
  scopes: `${string}:${string}`[];
183
+ derivationPath: `m/${string}`;
254
184
  }[], import("@metamask/superstruct").Struct<{
255
185
  type: "bip44";
256
- derivationPath: `m/${string}`;
257
186
  scopes: `${string}:${string}`[];
187
+ derivationPath: `m/${string}`;
258
188
  }, {
259
189
  type: import("@metamask/superstruct").Struct<"bip44", "bip44">;
260
190
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
@@ -706,17 +636,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
706
636
  account: {
707
637
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
708
638
  id: string;
709
- options: Record<string, import("@metamask/utils").Json> & {
710
- entropy?: {
711
- type: "mnemonic";
712
- id: string;
713
- derivationPath: string;
714
- groupIndex: number;
715
- } | {
716
- type: "private-key";
717
- };
718
- exportable?: boolean;
719
- };
639
+ options: Record<string, import("@metamask/utils").Json>;
720
640
  address: string;
721
641
  scopes: `${string}:${string}`[];
722
642
  methods: string[];
@@ -728,17 +648,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
728
648
  account: {
729
649
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
730
650
  id: string;
731
- options: Record<string, import("@metamask/utils").Json> & {
732
- entropy?: {
733
- type: "mnemonic";
734
- id: string;
735
- derivationPath: string;
736
- groupIndex: number;
737
- } | {
738
- type: "private-key";
739
- };
740
- exportable?: boolean;
741
- };
651
+ options: Record<string, import("@metamask/utils").Json>;
742
652
  address: string;
743
653
  scopes: `${string}:${string}`[];
744
654
  methods: string[];
@@ -747,17 +657,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
747
657
  account: import("@metamask/superstruct").Struct<{
748
658
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
749
659
  id: string;
750
- options: Record<string, import("@metamask/utils").Json> & {
751
- entropy?: {
752
- type: "mnemonic";
753
- id: string;
754
- derivationPath: string;
755
- groupIndex: number;
756
- } | {
757
- type: "private-key";
758
- };
759
- exportable?: boolean;
760
- };
660
+ options: Record<string, import("@metamask/utils").Json>;
761
661
  address: string;
762
662
  scopes: `${string}:${string}`[];
763
663
  methods: string[];
@@ -774,17 +674,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
774
674
  }>;
775
675
  address: import("@metamask/superstruct").Struct<string, null>;
776
676
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
777
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
778
- entropy?: {
779
- type: "mnemonic";
780
- id: string;
781
- derivationPath: string;
782
- groupIndex: number;
783
- } | {
784
- type: "private-key";
785
- };
786
- exportable?: boolean;
787
- }, null>;
677
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
788
678
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
789
679
  }>;
790
680
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.mts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,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KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEtE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAAuB,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAKxE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;QAAwB,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAK9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;EAOtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B,oDAAgB,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAKhF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;EAMrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B,oDAAgB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -18,17 +18,7 @@ export declare enum SolMethod {
18
18
  export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
19
19
  type: "solana:data-account";
20
20
  id: string;
21
- options: Record<string, import("@metamask/utils").Json> & {
22
- entropy?: {
23
- type: "mnemonic";
24
- id: string;
25
- derivationPath: string;
26
- groupIndex: number;
27
- } | {
28
- type: "private-key";
29
- };
30
- exportable?: boolean;
31
- };
21
+ options: Record<string, import("@metamask/utils").Json>;
32
22
  address: string;
33
23
  scopes: `${string}:${string}`[];
34
24
  methods: SolMethod[];
@@ -56,17 +46,7 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
56
46
  signIn: SolMethod.SignIn;
57
47
  }>>;
58
48
  id: import("@metamask/superstruct").Struct<string, null>;
59
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
60
- entropy?: {
61
- type: "mnemonic";
62
- id: string;
63
- derivationPath: string;
64
- groupIndex: number;
65
- } | {
66
- type: "private-key";
67
- };
68
- exportable?: boolean;
69
- }, null>;
49
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
70
50
  }>;
71
51
  export type SolDataAccount = Infer<typeof SolDataAccountStruct>;
72
52
  //# sourceMappingURL=types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -18,17 +18,7 @@ export declare enum SolMethod {
18
18
  export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
19
19
  type: "solana:data-account";
20
20
  id: string;
21
- options: Record<string, import("@metamask/utils").Json> & {
22
- entropy?: {
23
- type: "mnemonic";
24
- id: string;
25
- derivationPath: string;
26
- groupIndex: number;
27
- } | {
28
- type: "private-key";
29
- };
30
- exportable?: boolean;
31
- };
21
+ options: Record<string, import("@metamask/utils").Json>;
32
22
  address: string;
33
23
  scopes: `${string}:${string}`[];
34
24
  methods: SolMethod[];
@@ -56,17 +46,7 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
56
46
  signIn: SolMethod.SignIn;
57
47
  }>>;
58
48
  id: import("@metamask/superstruct").Struct<string, null>;
59
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
60
- entropy?: {
61
- type: "mnemonic";
62
- id: string;
63
- derivationPath: string;
64
- groupIndex: number;
65
- } | {
66
- type: "private-key";
67
- };
68
- exportable?: boolean;
69
- }, null>;
49
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
70
50
  }>;
71
51
  export type SolDataAccount = Infer<typeof SolDataAccountStruct>;
72
52
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-api",
3
- "version": "18.0.0-e86c8ec",
3
+ "version": "18.0.0-f024bb4",
4
4
  "description": "MetaMask Keyring API",
5
5
  "keywords": [
6
6
  "metamask",
@@ -1,122 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KeyringAccountOptionsStruct = exports.KeyringAccountEntropyOptionsStruct = exports.KeyringAccountEntropyPrivateKeyOptionsStruct = exports.KeyringAccountEntropyMnemonicOptionsStruct = exports.KeyringAccountEntropyTypeOption = void 0;
4
- const keyring_utils_1 = require("@metamask/keyring-utils");
5
- const superstruct_1 = require("@metamask/superstruct");
6
- const utils_1 = require("@metamask/utils");
7
- /**
8
- * Keyring account entropy valid types.
9
- */
10
- var KeyringAccountEntropyTypeOption;
11
- (function (KeyringAccountEntropyTypeOption) {
12
- /**
13
- * Indicates that the account was created from a mnemonic phrase.
14
- */
15
- KeyringAccountEntropyTypeOption["Mnemonic"] = "mnemonic";
16
- /**
17
- * Indicates that the account was imported from a private key.
18
- */
19
- KeyringAccountEntropyTypeOption["PrivateKey"] = "private-key";
20
- })(KeyringAccountEntropyTypeOption || (exports.KeyringAccountEntropyTypeOption = KeyringAccountEntropyTypeOption = {}));
21
- /**
22
- * Keyring account options struct for mnemonics (BIP-44).
23
- */
24
- exports.KeyringAccountEntropyMnemonicOptionsStruct = (0, superstruct_1.object)({
25
- /**
26
- * Indicates that the account was created from a mnemonic phrase.
27
- */
28
- type: (0, superstruct_1.literal)(`${KeyringAccountEntropyTypeOption.Mnemonic}`),
29
- /**
30
- * The ID of the entropy source.
31
- */
32
- id: (0, superstruct_1.string)(), // TODO: Define a struct for entropy source.
33
- /**
34
- * The BIP-44 derivation path used to derive the account.
35
- */
36
- derivationPath: (0, superstruct_1.string)(),
37
- /**
38
- * Index used to group accounts in the UI.
39
- *
40
- * Accounts sharing the same `groupIndex` are displayed together as a
41
- * multichain account group.
42
- */
43
- groupIndex: (0, superstruct_1.number)(),
44
- });
45
- /**
46
- * Keyring account options struct for private keys.
47
- */
48
- exports.KeyringAccountEntropyPrivateKeyOptionsStruct = (0, superstruct_1.object)({
49
- /**
50
- * Indicates that the account was imported from a private key.
51
- */
52
- type: (0, superstruct_1.literal)(`${KeyringAccountEntropyTypeOption.PrivateKey}`),
53
- });
54
- /**
55
- * Keyring account entropy options struct.
56
- */
57
- exports.KeyringAccountEntropyOptionsStruct = (0, keyring_utils_1.selectiveUnion)((value) => {
58
- return (0, utils_1.isPlainObject)(value) &&
59
- value.type === KeyringAccountEntropyTypeOption.PrivateKey
60
- ? exports.KeyringAccountEntropyPrivateKeyOptionsStruct
61
- : exports.KeyringAccountEntropyMnemonicOptionsStruct;
62
- });
63
- /**
64
- * Keyring options struct. This represents various options for a Keyring account object.
65
- *
66
- * See {@link KeyringAccountEntropyMnemonicOptionsStruct} and
67
- * {@link KeyringAccountEntropyPrivateKeyOptionsStruct}.
68
- *
69
- * @example
70
- * ```ts
71
- * {
72
- * entropy: {
73
- * type: 'mnemonic',
74
- * id: '01K0BX6VDR5DPDPGGNA8PZVBVB',
75
- * derivationPath: "m/44'/60'/0'/0/0",
76
- * groupIndex: 0,
77
- * },
78
- * }
79
- * ```
80
- *
81
- * @example
82
- * ```ts
83
- * {
84
- * entropy: {
85
- * type: 'private-key',
86
- * },
87
- * exportable: true,
88
- * }
89
- * ```
90
- *
91
- * @example
92
- * ```ts
93
- * {
94
- * some: {
95
- * untyped: 'options',
96
- * something: true,
97
- * },
98
- * }
99
- * ```
100
- */
101
- exports.KeyringAccountOptionsStruct = (0, superstruct_1.intersection)([
102
- // Non-Typed options (retro-compatibility):
103
- (0, superstruct_1.record)((0, superstruct_1.string)(), utils_1.JsonStruct),
104
- // Typed options. We use `type` instead of `object` here, to allow
105
- // extra properties. Also, since we use `record` + `intersection` we
106
- // are guaranteed that all field values will match the `JsonStruct`.
107
- //
108
- // READ THIS CAREFULLY:
109
- // Previous options that can be matched by this struct will be breaking
110
- // existing keyring account options.
111
- (0, keyring_utils_1.type)({
112
- /**
113
- * Entropy options.
114
- */
115
- entropy: (0, keyring_utils_1.exactOptional)(exports.KeyringAccountEntropyOptionsStruct),
116
- /**
117
- * Indicates whether the account can be exported.
118
- */
119
- exportable: (0, keyring_utils_1.exactOptional)((0, superstruct_1.boolean)()),
120
- }),
121
- ]);
122
- //# sourceMappingURL=account-options.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-options.cjs","sourceRoot":"","sources":["../../src/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E;IACF,uBAAuB;IACvB,uEAAuE;IACvE,oCAAoC;IACpC,IAAA,oBAAI,EAAC;QACH;;WAEG;QACH,OAAO,EAAE,IAAA,6BAAa,EAAC,0CAAkC,CAAC;QAE1D;;WAEG;QACH,UAAU,EAAE,IAAA,6BAAa,EAAC,IAAA,qBAAO,GAAE,CAAC;KACrC,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { exactOptional, selectiveUnion, type } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport {\n boolean,\n intersection,\n literal,\n number,\n object,\n record,\n string,\n} from '@metamask/superstruct';\nimport { isPlainObject, JsonStruct } from '@metamask/utils';\n\n/**\n * Keyring account entropy valid types.\n */\nexport enum KeyringAccountEntropyTypeOption {\n /**\n * Indicates that the account was created from a mnemonic phrase.\n */\n Mnemonic = 'mnemonic',\n\n /**\n * Indicates that the account was imported from a private key.\n */\n PrivateKey = 'private-key',\n}\n\n/**\n * Keyring account options struct for mnemonics (BIP-44).\n */\nexport const KeyringAccountEntropyMnemonicOptionsStruct = object({\n /**\n * Indicates that the account was created from a mnemonic phrase.\n */\n type: literal(`${KeyringAccountEntropyTypeOption.Mnemonic}`),\n\n /**\n * The ID of the entropy source.\n */\n id: string(), // TODO: Define a struct for entropy source.\n\n /**\n * The BIP-44 derivation path used to derive the account.\n */\n derivationPath: string(),\n\n /**\n * Index used to group accounts in the UI.\n *\n * Accounts sharing the same `groupIndex` are displayed together as a\n * multichain account group.\n */\n groupIndex: number(),\n});\n\n/**\n * Keyring account options for mnemonics (BIP-44) {@link KeyringAccountEntropyMnemonicOptionsStruct}.\n */\nexport type KeyringAccountEntropyMnemonicOptions = Infer<\n typeof KeyringAccountEntropyMnemonicOptionsStruct\n>;\n\n/**\n * Keyring account options struct for private keys.\n */\nexport const KeyringAccountEntropyPrivateKeyOptionsStruct = object({\n /**\n * Indicates that the account was imported from a private key.\n */\n type: literal(`${KeyringAccountEntropyTypeOption.PrivateKey}`),\n});\n\n/**\n * Keyring account options for private keys {@link KeyringAccountEntropyPrivateKeyOptionsStruct}.\n */\nexport type KeyringAccountEntropyPrivateKeyOptions = Infer<\n typeof KeyringAccountEntropyPrivateKeyOptionsStruct\n>;\n\n/**\n * Keyring account entropy options struct.\n */\nexport const KeyringAccountEntropyOptionsStruct = selectiveUnion(\n (value: any) => {\n return isPlainObject(value) &&\n value.type === KeyringAccountEntropyTypeOption.PrivateKey\n ? KeyringAccountEntropyPrivateKeyOptionsStruct\n : KeyringAccountEntropyMnemonicOptionsStruct;\n },\n);\n\n/**\n * Keyring account entropy options {@link KeyringAccountEntropyOptionsStruct}.\n */\nexport type KeyringAccountEntropyOptions = Infer<\n typeof KeyringAccountEntropyOptionsStruct\n>;\n\n/**\n * Keyring options struct. This represents various options for a Keyring account object.\n *\n * See {@link KeyringAccountEntropyMnemonicOptionsStruct} and\n * {@link KeyringAccountEntropyPrivateKeyOptionsStruct}.\n *\n * @example\n * ```ts\n * {\n * entropy: {\n * type: 'mnemonic',\n * id: '01K0BX6VDR5DPDPGGNA8PZVBVB',\n * derivationPath: \"m/44'/60'/0'/0/0\",\n * groupIndex: 0,\n * },\n * }\n * ```\n *\n * @example\n * ```ts\n * {\n * entropy: {\n * type: 'private-key',\n * },\n * exportable: true,\n * }\n * ```\n *\n * @example\n * ```ts\n * {\n * some: {\n * untyped: 'options',\n * something: true,\n * },\n * }\n * ```\n */\nexport const KeyringAccountOptionsStruct = intersection([\n // Non-Typed options (retro-compatibility):\n record(string(), JsonStruct),\n\n // Typed options. We use `type` instead of `object` here, to allow\n // extra properties. Also, since we use `record` + `intersection` we\n // are guaranteed that all field values will match the `JsonStruct`.\n //\n // READ THIS CAREFULLY:\n // Previous options that can be matched by this struct will be breaking\n // existing keyring account options.\n type({\n /**\n * Entropy options.\n */\n entropy: exactOptional(KeyringAccountEntropyOptionsStruct),\n\n /**\n * Indicates whether the account can be exported.\n */\n exportable: exactOptional(boolean()),\n }),\n]);\n\n/**\n * Keyring account options {@link KeyringAccountOptionsStruct}.\n */\nexport type KeyringAccountOptions = Infer<typeof KeyringAccountOptionsStruct>;\n"]}
@@ -1,131 +0,0 @@
1
- import type { Infer } from "@metamask/superstruct";
2
- /**
3
- * Keyring account entropy valid types.
4
- */
5
- export declare enum KeyringAccountEntropyTypeOption {
6
- /**
7
- * Indicates that the account was created from a mnemonic phrase.
8
- */
9
- Mnemonic = "mnemonic",
10
- /**
11
- * Indicates that the account was imported from a private key.
12
- */
13
- PrivateKey = "private-key"
14
- }
15
- /**
16
- * Keyring account options struct for mnemonics (BIP-44).
17
- */
18
- export declare const KeyringAccountEntropyMnemonicOptionsStruct: import("@metamask/superstruct").Struct<{
19
- type: "mnemonic";
20
- id: string;
21
- derivationPath: string;
22
- groupIndex: number;
23
- }, {
24
- /**
25
- * Indicates that the account was created from a mnemonic phrase.
26
- */
27
- type: import("@metamask/superstruct").Struct<"mnemonic", "mnemonic">;
28
- /**
29
- * The ID of the entropy source.
30
- */
31
- id: import("@metamask/superstruct").Struct<string, null>;
32
- /**
33
- * The BIP-44 derivation path used to derive the account.
34
- */
35
- derivationPath: import("@metamask/superstruct").Struct<string, null>;
36
- /**
37
- * Index used to group accounts in the UI.
38
- *
39
- * Accounts sharing the same `groupIndex` are displayed together as a
40
- * multichain account group.
41
- */
42
- groupIndex: import("@metamask/superstruct").Struct<number, null>;
43
- }>;
44
- /**
45
- * Keyring account options for mnemonics (BIP-44) {@link KeyringAccountEntropyMnemonicOptionsStruct}.
46
- */
47
- export type KeyringAccountEntropyMnemonicOptions = Infer<typeof KeyringAccountEntropyMnemonicOptionsStruct>;
48
- /**
49
- * Keyring account options struct for private keys.
50
- */
51
- export declare const KeyringAccountEntropyPrivateKeyOptionsStruct: import("@metamask/superstruct").Struct<{
52
- type: "private-key";
53
- }, {
54
- /**
55
- * Indicates that the account was imported from a private key.
56
- */
57
- type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
58
- }>;
59
- /**
60
- * Keyring account options for private keys {@link KeyringAccountEntropyPrivateKeyOptionsStruct}.
61
- */
62
- export type KeyringAccountEntropyPrivateKeyOptions = Infer<typeof KeyringAccountEntropyPrivateKeyOptionsStruct>;
63
- /**
64
- * Keyring account entropy options struct.
65
- */
66
- export declare const KeyringAccountEntropyOptionsStruct: import("@metamask/superstruct").Struct<{
67
- type: "mnemonic";
68
- id: string;
69
- derivationPath: string;
70
- groupIndex: number;
71
- } | {
72
- type: "private-key";
73
- }, null>;
74
- /**
75
- * Keyring account entropy options {@link KeyringAccountEntropyOptionsStruct}.
76
- */
77
- export type KeyringAccountEntropyOptions = Infer<typeof KeyringAccountEntropyOptionsStruct>;
78
- /**
79
- * Keyring options struct. This represents various options for a Keyring account object.
80
- *
81
- * See {@link KeyringAccountEntropyMnemonicOptionsStruct} and
82
- * {@link KeyringAccountEntropyPrivateKeyOptionsStruct}.
83
- *
84
- * @example
85
- * ```ts
86
- * {
87
- * entropy: {
88
- * type: 'mnemonic',
89
- * id: '01K0BX6VDR5DPDPGGNA8PZVBVB',
90
- * derivationPath: "m/44'/60'/0'/0/0",
91
- * groupIndex: 0,
92
- * },
93
- * }
94
- * ```
95
- *
96
- * @example
97
- * ```ts
98
- * {
99
- * entropy: {
100
- * type: 'private-key',
101
- * },
102
- * exportable: true,
103
- * }
104
- * ```
105
- *
106
- * @example
107
- * ```ts
108
- * {
109
- * some: {
110
- * untyped: 'options',
111
- * something: true,
112
- * },
113
- * }
114
- * ```
115
- */
116
- export declare const KeyringAccountOptionsStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
117
- entropy?: {
118
- type: "mnemonic";
119
- id: string;
120
- derivationPath: string;
121
- groupIndex: number;
122
- } | {
123
- type: "private-key";
124
- };
125
- exportable?: boolean;
126
- }, null>;
127
- /**
128
- * Keyring account options {@link KeyringAccountOptionsStruct}.
129
- */
130
- export type KeyringAccountOptions = Infer<typeof KeyringAccountOptionsStruct>;
131
- //# sourceMappingURL=account-options.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-options.d.cts","sourceRoot":"","sources":["../../src/api/account-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAYnD;;GAEG;AACH,oBAAY,+BAA+B;IACzC;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,UAAU,gBAAgB;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,0CAA0C;;;;;;IACrD;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;;;OAKG;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,KAAK,CACtD,OAAO,0CAA0C,CAClD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4CAA4C;;;IACvD;;OAEG;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAAG,KAAK,CACxD,OAAO,4CAA4C,CACpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;QAO9C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAC9C,OAAO,kCAAkC,CAC1C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;QAsBtC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}