@metamask-previews/keyring-internal-api 9.1.0-7d43e97 → 9.1.0-8202c83

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.cjs CHANGED
@@ -12,6 +12,10 @@ exports.InternalAccountMetadataStruct = (0, keyring_utils_1.object)({
12
12
  metadata: (0, keyring_utils_1.object)({
13
13
  name: (0, superstruct_1.string)(),
14
14
  nameLastUpdatedAt: (0, keyring_utils_1.exactOptional)((0, superstruct_1.number)()),
15
+ // We use `disabled` here instead of `enabled` since this can be optional
16
+ // and better match this kind of expression: !disabled (which covers both
17
+ // the `false` and `undefined` values.
18
+ disabled: (0, keyring_utils_1.exactOptional)((0, superstruct_1.boolean)()),
15
19
  snap: (0, keyring_utils_1.exactOptional)((0, keyring_utils_1.object)({
16
20
  id: (0, superstruct_1.string)(),
17
21
  enabled: (0, superstruct_1.boolean)(),
@@ -1 +1 @@
1
- {"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4FAA4F;AAC5F,8BAA8B;;;AAE9B,uDAc+B;AAC/B,2DAAgE;AAEhE,uDAAgE;AAQnD,QAAA,6BAA6B,GAAG,IAAA,sBAAM,EAAC;IAClD,QAAQ,EAAE,IAAA,sBAAM,EAAC;QACf,IAAI,EAAE,IAAA,oBAAM,GAAE;QACd,iBAAiB,EAAE,IAAA,6BAAa,EAAC,IAAA,oBAAM,GAAE,CAAC;QAC1C,IAAI,EAAE,IAAA,6BAAa,EACjB,IAAA,sBAAM,EAAC;YACL,EAAE,EAAE,IAAA,oBAAM,GAAE;YACZ,OAAO,EAAE,IAAA,qBAAO,GAAE;YAClB,IAAI,EAAE,IAAA,oBAAM,GAAE;SACf,CAAC,CACH;QACD,YAAY,EAAE,IAAA,6BAAa,EAAC,IAAA,oBAAM,GAAE,CAAC;QACrC,UAAU,EAAE,IAAA,oBAAM,GAAE;QACpB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2B;IACtD,CAAC,GAAG,4BAAc,CAAC,OAAO,EAAE,CAAC,EAAE,uCAA+B;IAC9D,CAAC,GAAG,4BAAc,CAAC,KAAK,EAAE,CAAC,EAAE,qCAA6B;IAC1D,CAAC,GAAG,4BAAc,CAAC,IAAI,EAAE,CAAC,EAAE,oCAA4B;IACxD,CAAC,GAAG,4BAAc,CAAC,MAAM,EAAE,CAAC,EAAE,sCAA8B;IAC5D,CAAC,GAAG,4BAAc,CAAC,IAAI,EAAE,CAAC,EAAE,oCAA4B;IACxD,CAAC,GAAG,4BAAc,CAAC,WAAW,EAAE,CAAC,EAAE,oCAA4B;IAC/D,CAAC,GAAG,4BAAc,CAAC,GAAG,EAAE,CAAC,EAAE,mCAA2B;CACvD,CAAC;AAYW,QAAA,qBAAqB,GAAG,IAAA,sBAAM,EAAC;IAC1C,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n// FIXME: Those rules seem to be triggering a false positive on the `InternalAccountStructs`\n// and `InternalAccountTypes`.\n\nimport {\n BtcAccountType,\n EthAccountType,\n KeyringAccountStruct,\n SolAccountType,\n BtcP2pkhAccountStruct,\n BtcP2shAccountStruct,\n BtcP2wpkhAccountStruct,\n BtcP2trAccountStruct,\n EthEoaAccountStruct,\n EthErc4337AccountStruct,\n SolDataAccountStruct,\n TrxAccountType,\n TrxEoaAccountStruct,\n} from '@metamask/keyring-api';\nimport { exactOptional, object } from '@metamask/keyring-utils';\nimport type { Infer, Struct } from '@metamask/superstruct';\nimport { boolean, string, number } from '@metamask/superstruct';\n\nexport type InternalAccountType =\n | EthAccountType\n | BtcAccountType\n | SolAccountType\n | TrxAccountType;\n\nexport const InternalAccountMetadataStruct = object({\n metadata: object({\n name: string(),\n nameLastUpdatedAt: exactOptional(number()),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n importTime: number(),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\nexport const InternalEthEoaAccountStruct = object({\n ...EthEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalEthErc4337AccountStruct = object({\n ...EthErc4337AccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2pkhAccountStruct = object({\n ...BtcP2pkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2shAccountStruct = object({\n ...BtcP2shAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2wpkhAccountStruct = object({\n ...BtcP2wpkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2trAccountStruct = object({\n ...BtcP2trAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalSolDataAccountStruct = object({\n ...SolDataAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalTrxEoaAccountStruct = object({\n ...TrxEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;\n\nexport type InternalEthErc4337Account = Infer<\n typeof InternalEthErc4337AccountStruct\n>;\n\nexport type InternalBtcP2pkhAccount = Infer<\n typeof InternalBtcP2pkhAccountStruct\n>;\n\nexport type InternalBtcP2shAccount = Infer<typeof InternalBtcP2shAccountStruct>;\n\nexport type InternalBtcP2wpkhAccount = Infer<\n typeof InternalBtcP2wpkhAccountStruct\n>;\n\nexport type InternalBtcP2trAccount = Infer<typeof InternalBtcP2trAccountStruct>;\n\nexport type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;\n\nexport type InternalTrxEoaAccount = Infer<typeof InternalTrxEoaAccountStruct>;\n\nexport const InternalAccountStructs: Record<\n string,\n | Struct<InternalEthEoaAccount>\n | Struct<InternalEthErc4337Account>\n | Struct<InternalBtcP2pkhAccount>\n | Struct<InternalBtcP2shAccount>\n | Struct<InternalBtcP2wpkhAccount>\n | Struct<InternalBtcP2trAccount>\n | Struct<InternalSolDataAccount>\n | Struct<InternalTrxEoaAccount>\n> = {\n [`${EthAccountType.Eoa}`]: InternalEthEoaAccountStruct,\n [`${EthAccountType.Erc4337}`]: InternalEthErc4337AccountStruct,\n [`${BtcAccountType.P2pkh}`]: InternalBtcP2pkhAccountStruct,\n [`${BtcAccountType.P2sh}`]: InternalBtcP2shAccountStruct,\n [`${BtcAccountType.P2wpkh}`]: InternalBtcP2wpkhAccountStruct,\n [`${BtcAccountType.P2tr}`]: InternalBtcP2trAccountStruct,\n [`${SolAccountType.DataAccount}`]: InternalSolDataAccountStruct,\n [`${TrxAccountType.Eoa}`]: InternalTrxEoaAccountStruct,\n};\n\nexport type InternalAccountTypes =\n | InternalEthEoaAccount\n | InternalEthErc4337Account\n | InternalBtcP2pkhAccount\n | InternalBtcP2shAccount\n | InternalBtcP2wpkhAccount\n | InternalBtcP2trAccount\n | InternalSolDataAccount\n | InternalTrxEoaAccount;\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
1
+ {"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4FAA4F;AAC5F,8BAA8B;;;AAE9B,uDAc+B;AAC/B,2DAAgE;AAEhE,uDAAgE;AAQnD,QAAA,6BAA6B,GAAG,IAAA,sBAAM,EAAC;IAClD,QAAQ,EAAE,IAAA,sBAAM,EAAC;QACf,IAAI,EAAE,IAAA,oBAAM,GAAE;QACd,iB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IAAA,sBAAM,EAAC;IACjD,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,IAAA,sBAAM,EAAC;IACjD,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,IAAA,sBAAM,EAAC;IAChD,GAAG,iCAAmB,CAAC,MAAM;IAC7B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAwBU,QAAA,sBAAsB,GAU/B;IACF,CAAC,GAAG,4BAAc,CAAC,GAAG,EAAE,CAAC,EAAE,mCAA2B;IACtD,CAAC,GAAG,4BAAc,CAAC,OAAO,EAAE,CAAC,EAAE,uCAA+B;IAC9D,CAAC,GAAG,4BAAc,CAAC,KAAK,EAAE,CAAC,EAAE,qCAA6B;IAC1D,CAAC,GAAG,4BAAc,CAAC,IAAI,EAAE,CAAC,EAAE,oCAA4B;IACxD,CAAC,GAAG,4BAAc,CAAC,MAAM,EAAE,CAAC,EAAE,sCAA8B;IAC5D,CAAC,GAAG,4BAAc,CAAC,IAAI,EAAE,CAAC,EAAE,oCAA4B;IACxD,CAAC,GAAG,4BAAc,CAAC,WAAW,EAAE,CAAC,EAAE,oCAA4B;IAC/D,CAAC,GAAG,4BAAc,CAAC,GAAG,EAAE,CAAC,EAAE,mCAA2B;CACvD,CAAC;AAYW,QAAA,qBAAqB,GAAG,IAAA,sBAAM,EAAC;IAC1C,GAAG,kCAAoB,CAAC,MAAM;IAC9B,GAAG,qCAA6B,CAAC,MAAM;CACxC,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n// FIXME: Those rules seem to be triggering a false positive on the `InternalAccountStructs`\n// and `InternalAccountTypes`.\n\nimport {\n BtcAccountType,\n EthAccountType,\n KeyringAccountStruct,\n SolAccountType,\n BtcP2pkhAccountStruct,\n BtcP2shAccountStruct,\n BtcP2wpkhAccountStruct,\n BtcP2trAccountStruct,\n EthEoaAccountStruct,\n EthErc4337AccountStruct,\n SolDataAccountStruct,\n TrxAccountType,\n TrxEoaAccountStruct,\n} from '@metamask/keyring-api';\nimport { exactOptional, object } from '@metamask/keyring-utils';\nimport type { Infer, Struct } from '@metamask/superstruct';\nimport { boolean, string, number } from '@metamask/superstruct';\n\nexport type InternalAccountType =\n | EthAccountType\n | BtcAccountType\n | SolAccountType\n | TrxAccountType;\n\nexport const InternalAccountMetadataStruct = object({\n metadata: object({\n name: string(),\n nameLastUpdatedAt: exactOptional(number()),\n // We use `disabled` here instead of `enabled` since this can be optional\n // and better match this kind of expression: !disabled (which covers both\n // the `false` and `undefined` values.\n disabled: exactOptional(boolean()),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n importTime: number(),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\nexport const InternalEthEoaAccountStruct = object({\n ...EthEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalEthErc4337AccountStruct = object({\n ...EthErc4337AccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2pkhAccountStruct = object({\n ...BtcP2pkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2shAccountStruct = object({\n ...BtcP2shAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2wpkhAccountStruct = object({\n ...BtcP2wpkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2trAccountStruct = object({\n ...BtcP2trAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalSolDataAccountStruct = object({\n ...SolDataAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalTrxEoaAccountStruct = object({\n ...TrxEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;\n\nexport type InternalEthErc4337Account = Infer<\n typeof InternalEthErc4337AccountStruct\n>;\n\nexport type InternalBtcP2pkhAccount = Infer<\n typeof InternalBtcP2pkhAccountStruct\n>;\n\nexport type InternalBtcP2shAccount = Infer<typeof InternalBtcP2shAccountStruct>;\n\nexport type InternalBtcP2wpkhAccount = Infer<\n typeof InternalBtcP2wpkhAccountStruct\n>;\n\nexport type InternalBtcP2trAccount = Infer<typeof InternalBtcP2trAccountStruct>;\n\nexport type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;\n\nexport type InternalTrxEoaAccount = Infer<typeof InternalTrxEoaAccountStruct>;\n\nexport const InternalAccountStructs: Record<\n string,\n | Struct<InternalEthEoaAccount>\n | Struct<InternalEthErc4337Account>\n | Struct<InternalBtcP2pkhAccount>\n | Struct<InternalBtcP2shAccount>\n | Struct<InternalBtcP2wpkhAccount>\n | Struct<InternalBtcP2trAccount>\n | Struct<InternalSolDataAccount>\n | Struct<InternalTrxEoaAccount>\n> = {\n [`${EthAccountType.Eoa}`]: InternalEthEoaAccountStruct,\n [`${EthAccountType.Erc4337}`]: InternalEthErc4337AccountStruct,\n [`${BtcAccountType.P2pkh}`]: InternalBtcP2pkhAccountStruct,\n [`${BtcAccountType.P2sh}`]: InternalBtcP2shAccountStruct,\n [`${BtcAccountType.P2wpkh}`]: InternalBtcP2wpkhAccountStruct,\n [`${BtcAccountType.P2tr}`]: InternalBtcP2trAccountStruct,\n [`${SolAccountType.DataAccount}`]: InternalSolDataAccountStruct,\n [`${TrxAccountType.Eoa}`]: InternalTrxEoaAccountStruct,\n};\n\nexport type InternalAccountTypes =\n | InternalEthEoaAccount\n | InternalEthErc4337Account\n | InternalBtcP2pkhAccount\n | InternalBtcP2shAccount\n | InternalBtcP2wpkhAccount\n | InternalBtcP2trAccount\n | InternalSolDataAccount\n | InternalTrxEoaAccount;\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
package/dist/types.d.cts CHANGED
@@ -9,6 +9,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
9
9
  type: string;
10
10
  };
11
11
  nameLastUpdatedAt?: number;
12
+ disabled?: boolean;
12
13
  snap?: {
13
14
  name: string;
14
15
  id: string;
@@ -24,6 +25,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
24
25
  type: string;
25
26
  };
26
27
  nameLastUpdatedAt?: number;
28
+ disabled?: boolean;
27
29
  snap?: {
28
30
  name: string;
29
31
  id: string;
@@ -33,6 +35,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
33
35
  }, {
34
36
  name: Struct<string, null>;
35
37
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
38
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
36
39
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
37
40
  name: string;
38
41
  id: string;
@@ -72,6 +75,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
72
75
  type: string;
73
76
  };
74
77
  nameLastUpdatedAt?: number;
78
+ disabled?: boolean;
75
79
  snap?: {
76
80
  name: string;
77
81
  id: string;
@@ -90,6 +94,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
90
94
  type: string;
91
95
  };
92
96
  nameLastUpdatedAt?: number;
97
+ disabled?: boolean;
93
98
  snap?: {
94
99
  name: string;
95
100
  id: string;
@@ -99,6 +104,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
99
104
  }, {
100
105
  name: Struct<string, null>;
101
106
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
107
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
102
108
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
103
109
  name: string;
104
110
  id: string;
@@ -161,6 +167,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
161
167
  type: string;
162
168
  };
163
169
  nameLastUpdatedAt?: number;
170
+ disabled?: boolean;
164
171
  snap?: {
165
172
  name: string;
166
173
  id: string;
@@ -179,6 +186,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
179
186
  type: string;
180
187
  };
181
188
  nameLastUpdatedAt?: number;
189
+ disabled?: boolean;
182
190
  snap?: {
183
191
  name: string;
184
192
  id: string;
@@ -188,6 +196,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
188
196
  }, {
189
197
  name: Struct<string, null>;
190
198
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
199
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
191
200
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
192
201
  name: string;
193
202
  id: string;
@@ -252,6 +261,7 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
252
261
  type: string;
253
262
  };
254
263
  nameLastUpdatedAt?: number;
264
+ disabled?: boolean;
255
265
  snap?: {
256
266
  name: string;
257
267
  id: string;
@@ -270,6 +280,7 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
270
280
  type: string;
271
281
  };
272
282
  nameLastUpdatedAt?: number;
283
+ disabled?: boolean;
273
284
  snap?: {
274
285
  name: string;
275
286
  id: string;
@@ -279,6 +290,7 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
279
290
  }, {
280
291
  name: Struct<string, null>;
281
292
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
293
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
282
294
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
283
295
  name: string;
284
296
  id: string;
@@ -344,6 +356,7 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
344
356
  type: string;
345
357
  };
346
358
  nameLastUpdatedAt?: number;
359
+ disabled?: boolean;
347
360
  snap?: {
348
361
  name: string;
349
362
  id: string;
@@ -362,6 +375,7 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
362
375
  type: string;
363
376
  };
364
377
  nameLastUpdatedAt?: number;
378
+ disabled?: boolean;
365
379
  snap?: {
366
380
  name: string;
367
381
  id: string;
@@ -371,6 +385,7 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
371
385
  }, {
372
386
  name: Struct<string, null>;
373
387
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
388
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
374
389
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
375
390
  name: string;
376
391
  id: string;
@@ -436,6 +451,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
436
451
  type: string;
437
452
  };
438
453
  nameLastUpdatedAt?: number;
454
+ disabled?: boolean;
439
455
  snap?: {
440
456
  name: string;
441
457
  id: string;
@@ -454,6 +470,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
454
470
  type: string;
455
471
  };
456
472
  nameLastUpdatedAt?: number;
473
+ disabled?: boolean;
457
474
  snap?: {
458
475
  name: string;
459
476
  id: string;
@@ -463,6 +480,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
463
480
  }, {
464
481
  name: Struct<string, null>;
465
482
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
483
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
466
484
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
467
485
  name: string;
468
486
  id: string;
@@ -528,6 +546,7 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
528
546
  type: string;
529
547
  };
530
548
  nameLastUpdatedAt?: number;
549
+ disabled?: boolean;
531
550
  snap?: {
532
551
  name: string;
533
552
  id: string;
@@ -546,6 +565,7 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
546
565
  type: string;
547
566
  };
548
567
  nameLastUpdatedAt?: number;
568
+ disabled?: boolean;
549
569
  snap?: {
550
570
  name: string;
551
571
  id: string;
@@ -555,6 +575,7 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
555
575
  }, {
556
576
  name: Struct<string, null>;
557
577
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
578
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
558
579
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
559
580
  name: string;
560
581
  id: string;
@@ -620,6 +641,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
620
641
  type: string;
621
642
  };
622
643
  nameLastUpdatedAt?: number;
644
+ disabled?: boolean;
623
645
  snap?: {
624
646
  name: string;
625
647
  id: string;
@@ -638,6 +660,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
638
660
  type: string;
639
661
  };
640
662
  nameLastUpdatedAt?: number;
663
+ disabled?: boolean;
641
664
  snap?: {
642
665
  name: string;
643
666
  id: string;
@@ -647,6 +670,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
647
670
  }, {
648
671
  name: Struct<string, null>;
649
672
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
673
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
650
674
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
651
675
  name: string;
652
676
  id: string;
@@ -708,6 +732,7 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
708
732
  type: string;
709
733
  };
710
734
  nameLastUpdatedAt?: number;
735
+ disabled?: boolean;
711
736
  snap?: {
712
737
  name: string;
713
738
  id: string;
@@ -726,6 +751,7 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
726
751
  type: string;
727
752
  };
728
753
  nameLastUpdatedAt?: number;
754
+ disabled?: boolean;
729
755
  snap?: {
730
756
  name: string;
731
757
  id: string;
@@ -735,6 +761,7 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
735
761
  }, {
736
762
  name: Struct<string, null>;
737
763
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
764
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
738
765
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
739
766
  name: string;
740
767
  id: string;
@@ -803,6 +830,7 @@ export declare const InternalAccountStruct: Struct<{
803
830
  type: string;
804
831
  };
805
832
  nameLastUpdatedAt?: number;
833
+ disabled?: boolean;
806
834
  snap?: {
807
835
  name: string;
808
836
  id: string;
@@ -821,6 +849,7 @@ export declare const InternalAccountStruct: Struct<{
821
849
  type: string;
822
850
  };
823
851
  nameLastUpdatedAt?: number;
852
+ disabled?: boolean;
824
853
  snap?: {
825
854
  name: string;
826
855
  id: string;
@@ -830,6 +859,7 @@ export declare const InternalAccountStruct: Struct<{
830
859
  }, {
831
860
  name: Struct<string, null>;
832
861
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
862
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
833
863
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
834
864
  name: string;
835
865
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQd,cAAc,EAEf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,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,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,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE9E,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,GAC9B,MAAM,CAAC,qBAAqB,CAAC,CAUhC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,qBAAqB,GACrB,yBAAyB,GACzB,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,CAAC;AAE1B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAjCjC,CAAC;;;;;;;;kBAKiC,CAAC;;;EA+BlC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
package/dist/types.d.mts CHANGED
@@ -9,6 +9,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
9
9
  type: string;
10
10
  };
11
11
  nameLastUpdatedAt?: number;
12
+ disabled?: boolean;
12
13
  snap?: {
13
14
  name: string;
14
15
  id: string;
@@ -24,6 +25,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
24
25
  type: string;
25
26
  };
26
27
  nameLastUpdatedAt?: number;
28
+ disabled?: boolean;
27
29
  snap?: {
28
30
  name: string;
29
31
  id: string;
@@ -33,6 +35,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
33
35
  }, {
34
36
  name: Struct<string, null>;
35
37
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
38
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
36
39
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
37
40
  name: string;
38
41
  id: string;
@@ -72,6 +75,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
72
75
  type: string;
73
76
  };
74
77
  nameLastUpdatedAt?: number;
78
+ disabled?: boolean;
75
79
  snap?: {
76
80
  name: string;
77
81
  id: string;
@@ -90,6 +94,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
90
94
  type: string;
91
95
  };
92
96
  nameLastUpdatedAt?: number;
97
+ disabled?: boolean;
93
98
  snap?: {
94
99
  name: string;
95
100
  id: string;
@@ -99,6 +104,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
99
104
  }, {
100
105
  name: Struct<string, null>;
101
106
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
107
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
102
108
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
103
109
  name: string;
104
110
  id: string;
@@ -161,6 +167,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
161
167
  type: string;
162
168
  };
163
169
  nameLastUpdatedAt?: number;
170
+ disabled?: boolean;
164
171
  snap?: {
165
172
  name: string;
166
173
  id: string;
@@ -179,6 +186,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
179
186
  type: string;
180
187
  };
181
188
  nameLastUpdatedAt?: number;
189
+ disabled?: boolean;
182
190
  snap?: {
183
191
  name: string;
184
192
  id: string;
@@ -188,6 +196,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
188
196
  }, {
189
197
  name: Struct<string, null>;
190
198
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
199
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
191
200
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
192
201
  name: string;
193
202
  id: string;
@@ -252,6 +261,7 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
252
261
  type: string;
253
262
  };
254
263
  nameLastUpdatedAt?: number;
264
+ disabled?: boolean;
255
265
  snap?: {
256
266
  name: string;
257
267
  id: string;
@@ -270,6 +280,7 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
270
280
  type: string;
271
281
  };
272
282
  nameLastUpdatedAt?: number;
283
+ disabled?: boolean;
273
284
  snap?: {
274
285
  name: string;
275
286
  id: string;
@@ -279,6 +290,7 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
279
290
  }, {
280
291
  name: Struct<string, null>;
281
292
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
293
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
282
294
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
283
295
  name: string;
284
296
  id: string;
@@ -344,6 +356,7 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
344
356
  type: string;
345
357
  };
346
358
  nameLastUpdatedAt?: number;
359
+ disabled?: boolean;
347
360
  snap?: {
348
361
  name: string;
349
362
  id: string;
@@ -362,6 +375,7 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
362
375
  type: string;
363
376
  };
364
377
  nameLastUpdatedAt?: number;
378
+ disabled?: boolean;
365
379
  snap?: {
366
380
  name: string;
367
381
  id: string;
@@ -371,6 +385,7 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
371
385
  }, {
372
386
  name: Struct<string, null>;
373
387
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
388
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
374
389
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
375
390
  name: string;
376
391
  id: string;
@@ -436,6 +451,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
436
451
  type: string;
437
452
  };
438
453
  nameLastUpdatedAt?: number;
454
+ disabled?: boolean;
439
455
  snap?: {
440
456
  name: string;
441
457
  id: string;
@@ -454,6 +470,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
454
470
  type: string;
455
471
  };
456
472
  nameLastUpdatedAt?: number;
473
+ disabled?: boolean;
457
474
  snap?: {
458
475
  name: string;
459
476
  id: string;
@@ -463,6 +480,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
463
480
  }, {
464
481
  name: Struct<string, null>;
465
482
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
483
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
466
484
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
467
485
  name: string;
468
486
  id: string;
@@ -528,6 +546,7 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
528
546
  type: string;
529
547
  };
530
548
  nameLastUpdatedAt?: number;
549
+ disabled?: boolean;
531
550
  snap?: {
532
551
  name: string;
533
552
  id: string;
@@ -546,6 +565,7 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
546
565
  type: string;
547
566
  };
548
567
  nameLastUpdatedAt?: number;
568
+ disabled?: boolean;
549
569
  snap?: {
550
570
  name: string;
551
571
  id: string;
@@ -555,6 +575,7 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
555
575
  }, {
556
576
  name: Struct<string, null>;
557
577
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
578
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
558
579
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
559
580
  name: string;
560
581
  id: string;
@@ -620,6 +641,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
620
641
  type: string;
621
642
  };
622
643
  nameLastUpdatedAt?: number;
644
+ disabled?: boolean;
623
645
  snap?: {
624
646
  name: string;
625
647
  id: string;
@@ -638,6 +660,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
638
660
  type: string;
639
661
  };
640
662
  nameLastUpdatedAt?: number;
663
+ disabled?: boolean;
641
664
  snap?: {
642
665
  name: string;
643
666
  id: string;
@@ -647,6 +670,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
647
670
  }, {
648
671
  name: Struct<string, null>;
649
672
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
673
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
650
674
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
651
675
  name: string;
652
676
  id: string;
@@ -708,6 +732,7 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
708
732
  type: string;
709
733
  };
710
734
  nameLastUpdatedAt?: number;
735
+ disabled?: boolean;
711
736
  snap?: {
712
737
  name: string;
713
738
  id: string;
@@ -726,6 +751,7 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
726
751
  type: string;
727
752
  };
728
753
  nameLastUpdatedAt?: number;
754
+ disabled?: boolean;
729
755
  snap?: {
730
756
  name: string;
731
757
  id: string;
@@ -735,6 +761,7 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
735
761
  }, {
736
762
  name: Struct<string, null>;
737
763
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
764
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
738
765
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
739
766
  name: string;
740
767
  id: string;
@@ -803,6 +830,7 @@ export declare const InternalAccountStruct: Struct<{
803
830
  type: string;
804
831
  };
805
832
  nameLastUpdatedAt?: number;
833
+ disabled?: boolean;
806
834
  snap?: {
807
835
  name: string;
808
836
  id: string;
@@ -821,6 +849,7 @@ export declare const InternalAccountStruct: Struct<{
821
849
  type: string;
822
850
  };
823
851
  nameLastUpdatedAt?: number;
852
+ disabled?: boolean;
824
853
  snap?: {
825
854
  name: string;
826
855
  id: string;
@@ -830,6 +859,7 @@ export declare const InternalAccountStruct: Struct<{
830
859
  }, {
831
860
  name: Struct<string, null>;
832
861
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
862
+ disabled: Struct<boolean | import("@metamask/keyring-utils").ExactOptionalTag, null>;
833
863
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
834
864
  name: string;
835
865
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQd,cAAc,EAEf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoDnB,CAAC;;;;;;;;kBAM8B,CAAC;;EAvDnD,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoGssB,CAAC;;;;;;;;kBAA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B,MAAM,CAAC,wBAAwB,CAAC,GAChC,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,qBAAqB,CAAC,CAUhC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,qBAAqB,GACrB,yBAAyB,GACzB,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,CAAC;AAE1B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAjCjC,CAAC;;;;;;;;kBAKiC,CAAC;;;EA+BlC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
package/dist/types.mjs CHANGED
@@ -9,6 +9,10 @@ export const InternalAccountMetadataStruct = object({
9
9
  metadata: object({
10
10
  name: string(),
11
11
  nameLastUpdatedAt: exactOptional(number()),
12
+ // We use `disabled` here instead of `enabled` since this can be optional
13
+ // and better match this kind of expression: !disabled (which covers both
14
+ // the `false` and `undefined` values.
15
+ disabled: exactOptional(boolean()),
12
16
  snap: exactOptional(object({
13
17
  id: string(),
14
18
  enabled: boolean(),
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4FAA4F;AAC5F,8BAA8B;AAE9B,OAAO,EACL,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACpB,8BAA8B;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,gCAAgC;AAE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,MAAM,4BAA4B,GAAG,MAAM,CAAC;IACjD,GAAG,oBAAoB,CAAC,MAAM;IAC9B,GAAG,6BAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;IACjD,GAAG,oBAAoB,CAAC,MAAM;IAC9B,GAAG,6BAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;IAChD,GAAG,mBAAmB,CAAC,MAAM;IAC7B,GAAG,6BAA6B,CAAC,MAAM;CACxC,CAAC,CAAC;AAwBH,MAAM,CAAC,MAAM,sBAAsB,GAU/B;IACF,CAAC,GAAG,cAAc,CAAC,GAAG,EAAE,CAAC,EAAE,2BAA2B;IACtD,CAAC,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,EAAE,+BAA+B;IAC9D,CAAC,GAAG,cAAc,CAAC,KAAK,EAAE,CAAC,EAAE,6BAA6B;IAC1D,CAAC,GAAG,cAAc,CAAC,IAAI,EAAE,CAAC,EAAE,4BAA4B;IACxD,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,8BAA8B;IAC5D,CAAC,GAAG,cAAc,CAAC,IAAI,EAAE,CAAC,EAAE,4BAA4B;IACxD,CAAC,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,EAAE,4BAA4B;IAC/D,CAAC,GAAG,cAAc,CAAC,GAAG,EAAE,CAAC,EAAE,2BAA2B;CACvD,CAAC;AAYF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;IAC1C,GAAG,oBAAoB,CAAC,MAAM;IAC9B,GAAG,6BAA6B,CAAC,MAAM;CACxC,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n// FIXME: Those rules seem to be triggering a false positive on the `InternalAccountStructs`\n// and `InternalAccountTypes`.\n\nimport {\n BtcAccountType,\n EthAccountType,\n KeyringAccountStruct,\n SolAccountType,\n BtcP2pkhAccountStruct,\n BtcP2shAccountStruct,\n BtcP2wpkhAccountStruct,\n BtcP2trAccountStruct,\n EthEoaAccountStruct,\n EthErc4337AccountStruct,\n SolDataAccountStruct,\n TrxAccountType,\n TrxEoaAccountStruct,\n} from '@metamask/keyring-api';\nimport { exactOptional, object } from '@metamask/keyring-utils';\nimport type { Infer, Struct } from '@metamask/superstruct';\nimport { boolean, string, number } from '@metamask/superstruct';\n\nexport type InternalAccountType =\n | EthAccountType\n | BtcAccountType\n | SolAccountType\n | TrxAccountType;\n\nexport const InternalAccountMetadataStruct = object({\n metadata: object({\n name: string(),\n nameLastUpdatedAt: exactOptional(number()),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n importTime: number(),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\nexport const InternalEthEoaAccountStruct = object({\n ...EthEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalEthErc4337AccountStruct = object({\n ...EthErc4337AccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2pkhAccountStruct = object({\n ...BtcP2pkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2shAccountStruct = object({\n ...BtcP2shAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2wpkhAccountStruct = object({\n ...BtcP2wpkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2trAccountStruct = object({\n ...BtcP2trAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalSolDataAccountStruct = object({\n ...SolDataAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalTrxEoaAccountStruct = object({\n ...TrxEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;\n\nexport type InternalEthErc4337Account = Infer<\n typeof InternalEthErc4337AccountStruct\n>;\n\nexport type InternalBtcP2pkhAccount = Infer<\n typeof InternalBtcP2pkhAccountStruct\n>;\n\nexport type InternalBtcP2shAccount = Infer<typeof InternalBtcP2shAccountStruct>;\n\nexport type InternalBtcP2wpkhAccount = Infer<\n typeof InternalBtcP2wpkhAccountStruct\n>;\n\nexport type InternalBtcP2trAccount = Infer<typeof InternalBtcP2trAccountStruct>;\n\nexport type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;\n\nexport type InternalTrxEoaAccount = Infer<typeof InternalTrxEoaAccountStruct>;\n\nexport const InternalAccountStructs: Record<\n string,\n | Struct<InternalEthEoaAccount>\n | Struct<InternalEthErc4337Account>\n | Struct<InternalBtcP2pkhAccount>\n | Struct<InternalBtcP2shAccount>\n | Struct<InternalBtcP2wpkhAccount>\n | Struct<InternalBtcP2trAccount>\n | Struct<InternalSolDataAccount>\n | Struct<InternalTrxEoaAccount>\n> = {\n [`${EthAccountType.Eoa}`]: InternalEthEoaAccountStruct,\n [`${EthAccountType.Erc4337}`]: InternalEthErc4337AccountStruct,\n [`${BtcAccountType.P2pkh}`]: InternalBtcP2pkhAccountStruct,\n [`${BtcAccountType.P2sh}`]: InternalBtcP2shAccountStruct,\n [`${BtcAccountType.P2wpkh}`]: InternalBtcP2wpkhAccountStruct,\n [`${BtcAccountType.P2tr}`]: InternalBtcP2trAccountStruct,\n [`${SolAccountType.DataAccount}`]: InternalSolDataAccountStruct,\n [`${TrxAccountType.Eoa}`]: InternalTrxEoaAccountStruct,\n};\n\nexport type InternalAccountTypes =\n | InternalEthEoaAccount\n | InternalEthErc4337Account\n | InternalBtcP2pkhAccount\n | InternalBtcP2shAccount\n | InternalBtcP2wpkhAccount\n | InternalBtcP2trAccount\n | InternalSolDataAccount\n | InternalTrxEoaAccount;\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
1
+ {"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4FAA4F;AAC5F,8BAA8B;AAE9B,OAAO,EACL,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACpB,8BAA8B;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,gCAAgC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,8BAA8B;AAQhE,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC;IAClD,QAAQ,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,EAAE;QACd,iBAAiB,EAAE,aAAa,CAAC,MAAM,EAAE,CAAC;QAC1C,yEAAyE;QACzE,yEAAyE;QACzE,sCAAsC;QACtC,QAAQ,EAAE,aAAa,CAAC,OAAO,EAAE,CAAC;QAClC,IAAI,EAAE,aAAa,CACjB,MAAM,CAAC;YACL,EAAE,EAAE,MAAM,EAAE;YACZ,OAAO,EAAE,OAAO,EAAE;YAClB,IAAI,EAAE,MAAM,EAAE;SACf,CAAC,CACH;QACD,YAAY,EAAE,aAAa,CAAC,MAAM,EAAE,CAAC;QACrC,UAAU,EAAE,MAAM,EAAE;QACpB,OAAO,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,EAAE;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAA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AC,KAAK,EAAE,CAAC,EAAE,6BAA6B;IAC1D,CAAC,GAAG,cAAc,CAAC,IAAI,EAAE,CAAC,EAAE,4BAA4B;IACxD,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,8BAA8B;IAC5D,CAAC,GAAG,cAAc,CAAC,IAAI,EAAE,CAAC,EAAE,4BAA4B;IACxD,CAAC,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,EAAE,4BAA4B;IAC/D,CAAC,GAAG,cAAc,CAAC,GAAG,EAAE,CAAC,EAAE,2BAA2B;CACvD,CAAC;AAYF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;IAC1C,GAAG,oBAAoB,CAAC,MAAM;IAC9B,GAAG,6BAA6B,CAAC,MAAM;CACxC,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n// FIXME: Those rules seem to be triggering a false positive on the `InternalAccountStructs`\n// and `InternalAccountTypes`.\n\nimport {\n BtcAccountType,\n EthAccountType,\n KeyringAccountStruct,\n SolAccountType,\n BtcP2pkhAccountStruct,\n BtcP2shAccountStruct,\n BtcP2wpkhAccountStruct,\n BtcP2trAccountStruct,\n EthEoaAccountStruct,\n EthErc4337AccountStruct,\n SolDataAccountStruct,\n TrxAccountType,\n TrxEoaAccountStruct,\n} from '@metamask/keyring-api';\nimport { exactOptional, object } from '@metamask/keyring-utils';\nimport type { Infer, Struct } from '@metamask/superstruct';\nimport { boolean, string, number } from '@metamask/superstruct';\n\nexport type InternalAccountType =\n | EthAccountType\n | BtcAccountType\n | SolAccountType\n | TrxAccountType;\n\nexport const InternalAccountMetadataStruct = object({\n metadata: object({\n name: string(),\n nameLastUpdatedAt: exactOptional(number()),\n // We use `disabled` here instead of `enabled` since this can be optional\n // and better match this kind of expression: !disabled (which covers both\n // the `false` and `undefined` values.\n disabled: exactOptional(boolean()),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n importTime: number(),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\nexport const InternalEthEoaAccountStruct = object({\n ...EthEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalEthErc4337AccountStruct = object({\n ...EthErc4337AccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2pkhAccountStruct = object({\n ...BtcP2pkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2shAccountStruct = object({\n ...BtcP2shAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2wpkhAccountStruct = object({\n ...BtcP2wpkhAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalBtcP2trAccountStruct = object({\n ...BtcP2trAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalSolDataAccountStruct = object({\n ...SolDataAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport const InternalTrxEoaAccountStruct = object({\n ...TrxEoaAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\nexport type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;\n\nexport type InternalEthErc4337Account = Infer<\n typeof InternalEthErc4337AccountStruct\n>;\n\nexport type InternalBtcP2pkhAccount = Infer<\n typeof InternalBtcP2pkhAccountStruct\n>;\n\nexport type InternalBtcP2shAccount = Infer<typeof InternalBtcP2shAccountStruct>;\n\nexport type InternalBtcP2wpkhAccount = Infer<\n typeof InternalBtcP2wpkhAccountStruct\n>;\n\nexport type InternalBtcP2trAccount = Infer<typeof InternalBtcP2trAccountStruct>;\n\nexport type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;\n\nexport type InternalTrxEoaAccount = Infer<typeof InternalTrxEoaAccountStruct>;\n\nexport const InternalAccountStructs: Record<\n string,\n | Struct<InternalEthEoaAccount>\n | Struct<InternalEthErc4337Account>\n | Struct<InternalBtcP2pkhAccount>\n | Struct<InternalBtcP2shAccount>\n | Struct<InternalBtcP2wpkhAccount>\n | Struct<InternalBtcP2trAccount>\n | Struct<InternalSolDataAccount>\n | Struct<InternalTrxEoaAccount>\n> = {\n [`${EthAccountType.Eoa}`]: InternalEthEoaAccountStruct,\n [`${EthAccountType.Erc4337}`]: InternalEthErc4337AccountStruct,\n [`${BtcAccountType.P2pkh}`]: InternalBtcP2pkhAccountStruct,\n [`${BtcAccountType.P2sh}`]: InternalBtcP2shAccountStruct,\n [`${BtcAccountType.P2wpkh}`]: InternalBtcP2wpkhAccountStruct,\n [`${BtcAccountType.P2tr}`]: InternalBtcP2trAccountStruct,\n [`${SolAccountType.DataAccount}`]: InternalSolDataAccountStruct,\n [`${TrxAccountType.Eoa}`]: InternalTrxEoaAccountStruct,\n};\n\nexport type InternalAccountTypes =\n | InternalEthEoaAccount\n | InternalEthErc4337Account\n | InternalBtcP2pkhAccount\n | InternalBtcP2shAccount\n | InternalBtcP2wpkhAccount\n | InternalBtcP2trAccount\n | InternalSolDataAccount\n | InternalTrxEoaAccount;\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n ...InternalAccountMetadataStruct.schema,\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-internal-api",
3
- "version": "9.1.0-7d43e97",
3
+ "version": "9.1.0-8202c83",
4
4
  "description": "MetaMask Keyring Internal API",
5
5
  "keywords": [
6
6
  "metamask",