@metamask/snaps-utils 7.0.3 → 7.0.4

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 (35) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/{chunk-LCWDLIK5.mjs → chunk-6F2DZTGM.mjs} +13 -11
  3. package/dist/chunk-6F2DZTGM.mjs.map +1 -0
  4. package/dist/{chunk-AWRMYDIN.js → chunk-HKJDVWVO.js} +3 -3
  5. package/dist/{chunk-ENKAY3PI.js → chunk-LTWLSRSR.js} +14 -12
  6. package/dist/chunk-LTWLSRSR.js.map +1 -0
  7. package/dist/{chunk-YMUOYQFU.js → chunk-OK2Q2GT7.js} +3 -3
  8. package/dist/{chunk-LGT3PBPZ.mjs → chunk-RQVVWCOW.mjs} +2 -2
  9. package/dist/{chunk-PIG67G67.mjs → chunk-ZO24JBZA.mjs} +2 -2
  10. package/dist/index.js +5 -3
  11. package/dist/index.mjs +4 -2
  12. package/dist/manifest/index.js +4 -2
  13. package/dist/manifest/index.mjs +3 -1
  14. package/dist/manifest/manifest.js +3 -3
  15. package/dist/manifest/manifest.mjs +2 -2
  16. package/dist/manifest/node.js +5 -3
  17. package/dist/manifest/node.mjs +4 -2
  18. package/dist/manifest/validation.js +4 -2
  19. package/dist/manifest/validation.mjs +3 -1
  20. package/dist/node.js +6 -4
  21. package/dist/node.mjs +5 -3
  22. package/dist/npm.js +3 -3
  23. package/dist/npm.mjs +2 -2
  24. package/dist/tsconfig.build.tsbuildinfo +1 -1
  25. package/dist/types/localization.d.ts +31 -55
  26. package/dist/types/manifest/validation.d.ts +65 -489
  27. package/dist/validation.js +3 -3
  28. package/dist/validation.mjs +2 -2
  29. package/package.json +4 -4
  30. package/dist/chunk-ENKAY3PI.js.map +0 -1
  31. package/dist/chunk-LCWDLIK5.mjs.map +0 -1
  32. /package/dist/{chunk-AWRMYDIN.js.map → chunk-HKJDVWVO.js.map} +0 -0
  33. /package/dist/{chunk-YMUOYQFU.js.map → chunk-OK2Q2GT7.js.map} +0 -0
  34. /package/dist/{chunk-LGT3PBPZ.mjs.map → chunk-RQVVWCOW.mjs.map} +0 -0
  35. /package/dist/{chunk-PIG67G67.mjs.map → chunk-ZO24JBZA.mjs.map} +0 -0
@@ -79,78 +79,54 @@ export declare function getLocalizedSnapManifest(snapManifest: SnapManifest, loc
79
79
  locales?: string[] | undefined;
80
80
  };
81
81
  proposedName: string;
82
- initialPermissions: {
83
- snap_dialog?: {} | undefined;
84
- snap_getBip32Entropy?: {
85
- path: string[];
86
- curve: "ed25519" | "secp256k1";
87
- }[] | undefined;
88
- snap_getBip32PublicKey?: {
89
- path: string[];
90
- curve: "ed25519" | "secp256k1";
91
- }[] | undefined;
92
- snap_getBip44Entropy?: {
93
- coinType: number;
94
- }[] | undefined;
95
- snap_getEntropy?: {} | undefined;
96
- snap_getLocale?: {} | undefined;
97
- snap_manageAccounts?: {} | undefined;
98
- snap_manageState?: {} | undefined;
99
- snap_notify?: {} | undefined;
100
- wallet_snap?: Record<string, {
101
- version?: string | undefined;
102
- }> | undefined;
103
- 'endowment:cronjob'?: {
104
- jobs: {
105
- request: {
106
- method: string;
107
- id?: string | number | null | undefined;
108
- jsonrpc?: "2.0" | undefined;
109
- params?: Record<string, import("@metamask/snaps-sdk").Json> | import("@metamask/snaps-sdk").Json[] | undefined;
110
- };
111
- expression: string;
112
- }[];
82
+ initialPermissions: Partial<{
83
+ 'endowment:cronjob': {
84
+ jobs: import("@metamask/snaps-sdk").Cronjob[];
113
85
  maxRequestTime?: number | undefined;
114
- } | undefined;
115
- 'endowment:ethereum-provider'?: {} | undefined;
116
- 'endowment:keyring'?: {
86
+ };
87
+ 'endowment:ethereum-provider': import("@metamask/snaps-sdk").EmptyObject;
88
+ 'endowment:keyring': {
117
89
  allowedOrigins?: string[] | undefined;
118
90
  maxRequestTime?: number | undefined;
119
- } | undefined;
91
+ };
120
92
  'endowment:lifecycle-hooks'?: {
121
93
  maxRequestTime?: number | undefined;
122
94
  } | undefined;
123
- 'endowment:name-lookup'?: {
95
+ 'endowment:name-lookup': {
124
96
  chains?: `${string}:${string}`[] | undefined;
97
+ matchers?: import("@metamask/snaps-sdk").NameLookupMatchers | undefined;
125
98
  maxRequestTime?: number | undefined;
126
- matchers?: {
127
- tlds: string[];
128
- } | {
129
- schemes: string[];
130
- } | {
131
- tlds: string[];
132
- schemes: string[];
133
- } | undefined;
134
- } | undefined;
135
- 'endowment:network-access'?: {} | undefined;
99
+ };
100
+ 'endowment:network-access': import("@metamask/snaps-sdk").EmptyObject;
136
101
  'endowment:page-home'?: {
137
102
  maxRequestTime?: number | undefined;
138
103
  } | undefined;
139
- 'endowment:rpc'?: {
140
- snaps?: boolean | undefined;
104
+ 'endowment:rpc': {
141
105
  dapps?: boolean | undefined;
106
+ snaps?: boolean | undefined;
142
107
  allowedOrigins?: string[] | undefined;
143
- } | undefined;
144
- 'endowment:signature-insight'?: {
145
108
  maxRequestTime?: number | undefined;
109
+ };
110
+ 'endowment:signature-insight': {
146
111
  allowSignatureOrigin?: boolean | undefined;
147
- } | undefined;
148
- 'endowment:transaction-insight'?: {
149
112
  maxRequestTime?: number | undefined;
113
+ };
114
+ 'endowment:transaction-insight': {
150
115
  allowTransactionOrigin?: boolean | undefined;
151
- } | undefined;
152
- 'endowment:webassembly'?: {} | undefined;
153
- };
116
+ maxRequestTime?: number | undefined;
117
+ };
118
+ 'endowment:webassembly': import("@metamask/snaps-sdk").EmptyObject;
119
+ snap_dialog: import("@metamask/snaps-sdk").EmptyObject;
120
+ snap_getBip32Entropy: import("@metamask/snaps-sdk").Bip32Entropy[];
121
+ snap_getBip32PublicKey: import("@metamask/snaps-sdk").Bip32Entropy[];
122
+ snap_getBip44Entropy: import("@metamask/snaps-sdk").Bip44Entropy[];
123
+ snap_getEntropy: import("@metamask/snaps-sdk").EmptyObject;
124
+ snap_getLocale: import("@metamask/snaps-sdk").EmptyObject;
125
+ snap_manageAccounts: import("@metamask/snaps-sdk").EmptyObject;
126
+ snap_manageState: import("@metamask/snaps-sdk").EmptyObject;
127
+ snap_notify: import("@metamask/snaps-sdk").EmptyObject;
128
+ wallet_snap: Record<string, import("@metamask/snaps-sdk").RequestedSnap>;
129
+ }>;
154
130
  manifestVersion: "0.1";
155
131
  repository?: {
156
132
  type: string;