@metamask/snaps-rpc-methods 11.1.0 → 11.1.1

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/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [11.1.1]
10
+ ### Fixed
11
+ - Fix invalid types in type declaration in some cases ([#2714](https://github.com/MetaMask/snaps/pull/2714))
12
+
9
13
  ## [11.1.0]
10
14
  ### Changed
11
15
  - Improve error messaging ([#2696](https://github.com/MetaMask/snaps/pull/2696))
@@ -201,7 +205,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
201
205
  - The version of the package no longer needs to match the version of all other
202
206
  MetaMask Snaps packages.
203
207
 
204
- [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@11.1.0...HEAD
208
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@11.1.1...HEAD
209
+ [11.1.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@11.1.0...@metamask/snaps-rpc-methods@11.1.1
205
210
  [11.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@11.0.0...@metamask/snaps-rpc-methods@11.1.0
206
211
  [11.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@10.0.1...@metamask/snaps-rpc-methods@11.0.0
207
212
  [10.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@10.0.0...@metamask/snaps-rpc-methods@10.0.1
@@ -3,47 +3,47 @@ import { HandlerType } from "@metamask/snaps-utils";
3
3
  import type { Json } from "@metamask/utils";
4
4
  export declare const endowmentPermissionBuilders: {
5
5
  readonly "endowment:network-access": Readonly<{
6
- readonly targetName: import("./enum").SnapEndowments.NetworkAccess;
6
+ readonly targetName: import("./enum.cjs").SnapEndowments.NetworkAccess;
7
7
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
8
8
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
9
- targetName: import("./enum").SnapEndowments.NetworkAccess;
9
+ targetName: import("./enum.cjs").SnapEndowments.NetworkAccess;
10
10
  endowmentGetter: (_options?: any) => ["fetch", "Request", "Headers", "Response"];
11
11
  allowedCaveats: null;
12
12
  }>;
13
13
  }>;
14
14
  readonly "endowment:transaction-insight": Readonly<{
15
- readonly targetName: import("./enum").SnapEndowments.TransactionInsight;
15
+ readonly targetName: import("./enum.cjs").SnapEndowments.TransactionInsight;
16
16
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
17
17
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
18
- targetName: import("./enum").SnapEndowments.TransactionInsight;
18
+ targetName: import("./enum.cjs").SnapEndowments.TransactionInsight;
19
19
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
20
20
  allowedCaveats: readonly [string, ...string[]] | null;
21
21
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
22
22
  }>;
23
23
  }>;
24
24
  readonly "endowment:cronjob": Readonly<{
25
- readonly targetName: import("./enum").SnapEndowments.Cronjob;
25
+ readonly targetName: import("./enum.cjs").SnapEndowments.Cronjob;
26
26
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
27
27
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
28
- targetName: import("./enum").SnapEndowments.Cronjob;
28
+ targetName: import("./enum.cjs").SnapEndowments.Cronjob;
29
29
  endowmentGetter: (_options?: any) => null;
30
30
  allowedCaveats: readonly [string, ...string[]] | null;
31
31
  }>;
32
32
  }>;
33
33
  readonly "endowment:ethereum-provider": Readonly<{
34
- readonly targetName: import("./enum").SnapEndowments.EthereumProvider;
34
+ readonly targetName: import("./enum.cjs").SnapEndowments.EthereumProvider;
35
35
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
36
36
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
37
- targetName: import("./enum").SnapEndowments.EthereumProvider;
37
+ targetName: import("./enum.cjs").SnapEndowments.EthereumProvider;
38
38
  endowmentGetter: (_options?: any) => ["ethereum"];
39
39
  allowedCaveats: null;
40
40
  }>;
41
41
  }>;
42
42
  readonly "endowment:rpc": Readonly<{
43
- readonly targetName: import("./enum").SnapEndowments.Rpc;
43
+ readonly targetName: import("./enum.cjs").SnapEndowments.Rpc;
44
44
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, {}, {
45
45
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
46
- targetName: import("./enum").SnapEndowments.Rpc;
46
+ targetName: import("./enum.cjs").SnapEndowments.Rpc;
47
47
  endowmentGetter: (_options?: any) => null;
48
48
  allowedCaveats: readonly [string, ...string[]] | null;
49
49
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
@@ -51,38 +51,38 @@ export declare const endowmentPermissionBuilders: {
51
51
  }>;
52
52
  }>;
53
53
  readonly "endowment:webassembly": Readonly<{
54
- readonly targetName: import("./enum").SnapEndowments.WebAssemblyAccess;
54
+ readonly targetName: import("./enum.cjs").SnapEndowments.WebAssemblyAccess;
55
55
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
56
56
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
57
- targetName: import("./enum").SnapEndowments.WebAssemblyAccess;
57
+ targetName: import("./enum.cjs").SnapEndowments.WebAssemblyAccess;
58
58
  endowmentGetter: (_options?: any) => ["WebAssembly"];
59
59
  allowedCaveats: null;
60
60
  }>;
61
61
  }>;
62
62
  readonly "endowment:name-lookup": Readonly<{
63
- readonly targetName: import("./enum").SnapEndowments.NameLookup;
63
+ readonly targetName: import("./enum.cjs").SnapEndowments.NameLookup;
64
64
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
65
65
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
66
- targetName: import("./enum").SnapEndowments.NameLookup;
66
+ targetName: import("./enum.cjs").SnapEndowments.NameLookup;
67
67
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
68
68
  allowedCaveats: readonly [string, ...string[]] | null;
69
69
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
70
70
  }>;
71
71
  }>;
72
72
  readonly "endowment:lifecycle-hooks": Readonly<{
73
- readonly targetName: import("./enum").SnapEndowments.LifecycleHooks;
73
+ readonly targetName: import("./enum.cjs").SnapEndowments.LifecycleHooks;
74
74
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
75
75
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
76
- targetName: import("./enum").SnapEndowments.LifecycleHooks;
76
+ targetName: import("./enum.cjs").SnapEndowments.LifecycleHooks;
77
77
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
78
78
  allowedCaveats: readonly [string, ...string[]] | null;
79
79
  }>;
80
80
  }>;
81
81
  readonly "endowment:keyring": Readonly<{
82
- readonly targetName: import("./enum").SnapEndowments.Keyring;
82
+ readonly targetName: import("./enum.cjs").SnapEndowments.Keyring;
83
83
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
84
84
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
85
- targetName: import("./enum").SnapEndowments.Keyring;
85
+ targetName: import("./enum.cjs").SnapEndowments.Keyring;
86
86
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
87
87
  allowedCaveats: readonly [string, ...string[]] | null;
88
88
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
@@ -90,19 +90,19 @@ export declare const endowmentPermissionBuilders: {
90
90
  }>;
91
91
  }>;
92
92
  readonly "endowment:page-home": Readonly<{
93
- readonly targetName: import("./enum").SnapEndowments.HomePage;
93
+ readonly targetName: import("./enum.cjs").SnapEndowments.HomePage;
94
94
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
95
95
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
96
- targetName: import("./enum").SnapEndowments.HomePage;
96
+ targetName: import("./enum.cjs").SnapEndowments.HomePage;
97
97
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
98
98
  allowedCaveats: readonly [string, ...string[]] | null;
99
99
  }>;
100
100
  }>;
101
101
  readonly "endowment:signature-insight": Readonly<{
102
- readonly targetName: import("./enum").SnapEndowments.SignatureInsight;
102
+ readonly targetName: import("./enum.cjs").SnapEndowments.SignatureInsight;
103
103
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
104
104
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
105
- targetName: import("./enum").SnapEndowments.SignatureInsight;
105
+ targetName: import("./enum.cjs").SnapEndowments.SignatureInsight;
106
106
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
107
107
  allowedCaveats: readonly [string, ...string[]] | null;
108
108
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
@@ -3,47 +3,47 @@ import { HandlerType } from "@metamask/snaps-utils";
3
3
  import type { Json } from "@metamask/utils";
4
4
  export declare const endowmentPermissionBuilders: {
5
5
  readonly "endowment:network-access": Readonly<{
6
- readonly targetName: import("./enum").SnapEndowments.NetworkAccess;
6
+ readonly targetName: import("./enum.mjs").SnapEndowments.NetworkAccess;
7
7
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
8
8
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
9
- targetName: import("./enum").SnapEndowments.NetworkAccess;
9
+ targetName: import("./enum.mjs").SnapEndowments.NetworkAccess;
10
10
  endowmentGetter: (_options?: any) => ["fetch", "Request", "Headers", "Response"];
11
11
  allowedCaveats: null;
12
12
  }>;
13
13
  }>;
14
14
  readonly "endowment:transaction-insight": Readonly<{
15
- readonly targetName: import("./enum").SnapEndowments.TransactionInsight;
15
+ readonly targetName: import("./enum.mjs").SnapEndowments.TransactionInsight;
16
16
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
17
17
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
18
- targetName: import("./enum").SnapEndowments.TransactionInsight;
18
+ targetName: import("./enum.mjs").SnapEndowments.TransactionInsight;
19
19
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
20
20
  allowedCaveats: readonly [string, ...string[]] | null;
21
21
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
22
22
  }>;
23
23
  }>;
24
24
  readonly "endowment:cronjob": Readonly<{
25
- readonly targetName: import("./enum").SnapEndowments.Cronjob;
25
+ readonly targetName: import("./enum.mjs").SnapEndowments.Cronjob;
26
26
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
27
27
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
28
- targetName: import("./enum").SnapEndowments.Cronjob;
28
+ targetName: import("./enum.mjs").SnapEndowments.Cronjob;
29
29
  endowmentGetter: (_options?: any) => null;
30
30
  allowedCaveats: readonly [string, ...string[]] | null;
31
31
  }>;
32
32
  }>;
33
33
  readonly "endowment:ethereum-provider": Readonly<{
34
- readonly targetName: import("./enum").SnapEndowments.EthereumProvider;
34
+ readonly targetName: import("./enum.mjs").SnapEndowments.EthereumProvider;
35
35
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
36
36
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
37
- targetName: import("./enum").SnapEndowments.EthereumProvider;
37
+ targetName: import("./enum.mjs").SnapEndowments.EthereumProvider;
38
38
  endowmentGetter: (_options?: any) => ["ethereum"];
39
39
  allowedCaveats: null;
40
40
  }>;
41
41
  }>;
42
42
  readonly "endowment:rpc": Readonly<{
43
- readonly targetName: import("./enum").SnapEndowments.Rpc;
43
+ readonly targetName: import("./enum.mjs").SnapEndowments.Rpc;
44
44
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, {}, {
45
45
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
46
- targetName: import("./enum").SnapEndowments.Rpc;
46
+ targetName: import("./enum.mjs").SnapEndowments.Rpc;
47
47
  endowmentGetter: (_options?: any) => null;
48
48
  allowedCaveats: readonly [string, ...string[]] | null;
49
49
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
@@ -51,38 +51,38 @@ export declare const endowmentPermissionBuilders: {
51
51
  }>;
52
52
  }>;
53
53
  readonly "endowment:webassembly": Readonly<{
54
- readonly targetName: import("./enum").SnapEndowments.WebAssemblyAccess;
54
+ readonly targetName: import("./enum.mjs").SnapEndowments.WebAssemblyAccess;
55
55
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
56
56
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
57
- targetName: import("./enum").SnapEndowments.WebAssemblyAccess;
57
+ targetName: import("./enum.mjs").SnapEndowments.WebAssemblyAccess;
58
58
  endowmentGetter: (_options?: any) => ["WebAssembly"];
59
59
  allowedCaveats: null;
60
60
  }>;
61
61
  }>;
62
62
  readonly "endowment:name-lookup": Readonly<{
63
- readonly targetName: import("./enum").SnapEndowments.NameLookup;
63
+ readonly targetName: import("./enum.mjs").SnapEndowments.NameLookup;
64
64
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
65
65
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
66
- targetName: import("./enum").SnapEndowments.NameLookup;
66
+ targetName: import("./enum.mjs").SnapEndowments.NameLookup;
67
67
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
68
68
  allowedCaveats: readonly [string, ...string[]] | null;
69
69
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
70
70
  }>;
71
71
  }>;
72
72
  readonly "endowment:lifecycle-hooks": Readonly<{
73
- readonly targetName: import("./enum").SnapEndowments.LifecycleHooks;
73
+ readonly targetName: import("./enum.mjs").SnapEndowments.LifecycleHooks;
74
74
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
75
75
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
76
- targetName: import("./enum").SnapEndowments.LifecycleHooks;
76
+ targetName: import("./enum.mjs").SnapEndowments.LifecycleHooks;
77
77
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
78
78
  allowedCaveats: readonly [string, ...string[]] | null;
79
79
  }>;
80
80
  }>;
81
81
  readonly "endowment:keyring": Readonly<{
82
- readonly targetName: import("./enum").SnapEndowments.Keyring;
82
+ readonly targetName: import("./enum.mjs").SnapEndowments.Keyring;
83
83
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
84
84
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
85
- targetName: import("./enum").SnapEndowments.Keyring;
85
+ targetName: import("./enum.mjs").SnapEndowments.Keyring;
86
86
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
87
87
  allowedCaveats: readonly [string, ...string[]] | null;
88
88
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
@@ -90,19 +90,19 @@ export declare const endowmentPermissionBuilders: {
90
90
  }>;
91
91
  }>;
92
92
  readonly "endowment:page-home": Readonly<{
93
- readonly targetName: import("./enum").SnapEndowments.HomePage;
93
+ readonly targetName: import("./enum.mjs").SnapEndowments.HomePage;
94
94
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
95
95
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
96
- targetName: import("./enum").SnapEndowments.HomePage;
96
+ targetName: import("./enum.mjs").SnapEndowments.HomePage;
97
97
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
98
98
  allowedCaveats: readonly [string, ...string[]] | null;
99
99
  }>;
100
100
  }>;
101
101
  readonly "endowment:signature-insight": Readonly<{
102
- readonly targetName: import("./enum").SnapEndowments.SignatureInsight;
102
+ readonly targetName: import("./enum.mjs").SnapEndowments.SignatureInsight;
103
103
  readonly specificationBuilder: import("@metamask/permission-controller").PermissionSpecificationBuilder<import("@metamask/permission-controller").PermissionType.Endowment, any, {
104
104
  permissionType: import("@metamask/permission-controller").PermissionType.Endowment;
105
- targetName: import("./enum").SnapEndowments.SignatureInsight;
105
+ targetName: import("./enum.mjs").SnapEndowments.SignatureInsight;
106
106
  endowmentGetter: (_options?: import("@metamask/permission-controller").EndowmentGetterParams | undefined) => null;
107
107
  allowedCaveats: readonly [string, ...string[]] | null;
108
108
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
@@ -44,7 +44,13 @@ declare const CreateInterfaceParametersStruct: import("@metamask/superstruct").S
44
44
  type: import("@metamask/snaps-sdk").NodeType.Address;
45
45
  value: `0x${string}`;
46
46
  };
47
- label: string;
47
+ label: string; /**
48
+ * Validate the createInterface method `params` and returns them cast to the correct
49
+ * type. Throws if validation fails.
50
+ *
51
+ * @param params - The unvalidated params object from the method request.
52
+ * @returns The validated createInterface method parameter object.
53
+ */
48
54
  variant?: "default" | "warning" | "critical" | undefined;
49
55
  } | {
50
56
  type: import("@metamask/snaps-sdk").NodeType.Input;
@@ -127,7 +133,13 @@ declare const CreateInterfaceParametersStruct: import("@metamask/superstruct").S
127
133
  type: import("@metamask/snaps-sdk").NodeType.Address;
128
134
  value: `0x${string}`;
129
135
  };
130
- label: string;
136
+ label: string; /**
137
+ * Validate the createInterface method `params` and returns them cast to the correct
138
+ * type. Throws if validation fails.
139
+ *
140
+ * @param params - The unvalidated params object from the method request.
141
+ * @returns The validated createInterface method parameter object.
142
+ */
131
143
  variant?: "default" | "warning" | "critical" | undefined;
132
144
  } | {
133
145
  type: import("@metamask/snaps-sdk").NodeType.Input;
@@ -1 +1 @@
1
- {"version":3,"file":"createInterface.d.cts","sourceRoot":"","sources":["../../src/permitted/createInterface.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,wCAAwC;AAE9E,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EAErB,kBAAkB,EAClB,gBAAgB,EACjB,4BAA4B;AAK7B,OAAO,EAAE,KAAK,aAAa,EAAE,8BAA8B;AAU3D,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,eAAe,EAAE,CACf,EAAE,EAAE,kBAAkB,EACtB,OAAO,CAAC,EAAE,gBAAgB,KACvB,OAAO,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CACzD,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,CAKtB,CAAC;AAEF,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,aAAa,CACnD,OAAO,+BAA+B,EACtC,qBAAqB,CACtB,CAAC"}
1
+ {"version":3,"file":"createInterface.d.cts","sourceRoot":"","sources":["../../src/permitted/createInterface.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,wCAAwC;AAE9E,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EAErB,kBAAkB,EAClB,gBAAgB,EACjB,4BAA4B;AAK7B,OAAO,EAAE,KAAK,aAAa,EAAE,8BAA8B;AAU3D,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,eAAe,EAAE,CACf,EAAE,EAAE,kBAAkB,EACtB,OAAO,CAAC,EAAE,gBAAgB,KACvB,OAAO,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CACzD,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,CAKtB,CAAC;AAEF,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA4CrC;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBANH;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA/CD,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,aAAa,CACnD,OAAO,+BAA+B,EACtC,qBAAqB,CACtB,CAAC"}
@@ -44,7 +44,13 @@ declare const CreateInterfaceParametersStruct: import("@metamask/superstruct").S
44
44
  type: import("@metamask/snaps-sdk").NodeType.Address;
45
45
  value: `0x${string}`;
46
46
  };
47
- label: string;
47
+ label: string; /**
48
+ * Validate the createInterface method `params` and returns them cast to the correct
49
+ * type. Throws if validation fails.
50
+ *
51
+ * @param params - The unvalidated params object from the method request.
52
+ * @returns The validated createInterface method parameter object.
53
+ */
48
54
  variant?: "default" | "warning" | "critical" | undefined;
49
55
  } | {
50
56
  type: import("@metamask/snaps-sdk").NodeType.Input;
@@ -127,7 +133,13 @@ declare const CreateInterfaceParametersStruct: import("@metamask/superstruct").S
127
133
  type: import("@metamask/snaps-sdk").NodeType.Address;
128
134
  value: `0x${string}`;
129
135
  };
130
- label: string;
136
+ label: string; /**
137
+ * Validate the createInterface method `params` and returns them cast to the correct
138
+ * type. Throws if validation fails.
139
+ *
140
+ * @param params - The unvalidated params object from the method request.
141
+ * @returns The validated createInterface method parameter object.
142
+ */
131
143
  variant?: "default" | "warning" | "critical" | undefined;
132
144
  } | {
133
145
  type: import("@metamask/snaps-sdk").NodeType.Input;
@@ -1 +1 @@
1
- {"version":3,"file":"createInterface.d.mts","sourceRoot":"","sources":["../../src/permitted/createInterface.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,wCAAwC;AAE9E,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EAErB,kBAAkB,EAClB,gBAAgB,EACjB,4BAA4B;AAK7B,OAAO,EAAE,KAAK,aAAa,EAAE,8BAA8B;AAU3D,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,eAAe,EAAE,CACf,EAAE,EAAE,kBAAkB,EACtB,OAAO,CAAC,EAAE,gBAAgB,KACvB,OAAO,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CACzD,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,CAKtB,CAAC;AAEF,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,aAAa,CACnD,OAAO,+BAA+B,EACtC,qBAAqB,CACtB,CAAC"}
1
+ {"version":3,"file":"createInterface.d.mts","sourceRoot":"","sources":["../../src/permitted/createInterface.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,wCAAwC;AAE9E,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EAErB,kBAAkB,EAClB,gBAAgB,EACjB,4BAA4B;AAK7B,OAAO,EAAE,KAAK,aAAa,EAAE,8BAA8B;AAU3D,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,eAAe,EAAE,CACf,EAAE,EAAE,kBAAkB,EACtB,OAAO,CAAC,EAAE,gBAAgB,KACvB,OAAO,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,CACzD,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,CAKtB,CAAC;AAEF,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA4CrC;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBANH;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA/CD,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,aAAa,CACnD,OAAO,+BAA+B,EACtC,qBAAqB,CACtB,CAAC"}
@@ -1,14 +1,14 @@
1
1
  export declare const methodHandlers: {
2
- wallet_getAllSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult>;
3
- wallet_getSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult>;
4
- wallet_requestSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult>;
5
- wallet_invokeSnap: import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeSnapSugar").InvokeSnapSugarHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>;
6
- wallet_invokeKeyring: import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>;
7
- snap_getClientStatus: import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult>;
8
- snap_getFile: import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string>;
9
- snap_createInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string>;
10
- snap_updateInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null>;
11
- snap_getInterfaceState: import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | boolean | {
2
+ wallet_getAllSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps.cjs").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult>;
3
+ wallet_getSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps.cjs").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult>;
4
+ wallet_requestSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps.cjs").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult>;
5
+ wallet_invokeSnap: import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeSnapSugar.cjs").InvokeSnapSugarHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>;
6
+ wallet_invokeKeyring: import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring.cjs").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>;
7
+ snap_getClientStatus: import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus.cjs").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult>;
8
+ snap_getFile: import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile.cjs").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string>;
9
+ snap_createInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface.cjs").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string>;
10
+ snap_updateInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface.cjs").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null>;
11
+ snap_getInterfaceState: import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState.cjs").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | boolean | {
12
12
  name: string;
13
13
  size: number;
14
14
  contentType: string;
@@ -19,9 +19,9 @@ export declare const methodHandlers: {
19
19
  contentType: string;
20
20
  contents: string;
21
21
  } | null> | null>>;
22
- snap_resolveInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./resolveInterface").ResolveInterfaceMethodHooks, import("@metamask/snaps-sdk").ResolveInterfaceParams, null>;
22
+ snap_resolveInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./resolveInterface.cjs").ResolveInterfaceMethodHooks, import("@metamask/snaps-sdk").ResolveInterfaceParams, null>;
23
23
  };
24
- export declare const handlers: (import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | boolean | {
24
+ export declare const handlers: (import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface.cjs").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps.cjs").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus.cjs").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState.cjs").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | boolean | {
25
25
  name: string;
26
26
  size: number;
27
27
  contentType: string;
@@ -31,5 +31,5 @@ export declare const handlers: (import("@metamask/permission-controller").Permit
31
31
  size: number;
32
32
  contentType: string;
33
33
  contents: string;
34
- } | null> | null>> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./resolveInterface").ResolveInterfaceMethodHooks, import("@metamask/snaps-sdk").ResolveInterfaceParams, null> | import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeSnapSugar").InvokeSnapSugarHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>)[];
34
+ } | null> | null>> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps.cjs").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps.cjs").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./resolveInterface.cjs").ResolveInterfaceMethodHooks, import("@metamask/snaps-sdk").ResolveInterfaceParams, null> | import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface.cjs").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile.cjs").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeSnapSugar.cjs").InvokeSnapSugarHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring.cjs").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>)[];
35
35
  //# sourceMappingURL=handlers.d.cts.map
@@ -1,14 +1,14 @@
1
1
  export declare const methodHandlers: {
2
- wallet_getAllSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult>;
3
- wallet_getSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult>;
4
- wallet_requestSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult>;
5
- wallet_invokeSnap: import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeSnapSugar").InvokeSnapSugarHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>;
6
- wallet_invokeKeyring: import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>;
7
- snap_getClientStatus: import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult>;
8
- snap_getFile: import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string>;
9
- snap_createInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string>;
10
- snap_updateInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null>;
11
- snap_getInterfaceState: import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | boolean | {
2
+ wallet_getAllSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps.mjs").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult>;
3
+ wallet_getSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps.mjs").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult>;
4
+ wallet_requestSnaps: import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps.mjs").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult>;
5
+ wallet_invokeSnap: import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeSnapSugar.mjs").InvokeSnapSugarHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>;
6
+ wallet_invokeKeyring: import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring.mjs").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>;
7
+ snap_getClientStatus: import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus.mjs").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult>;
8
+ snap_getFile: import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile.mjs").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string>;
9
+ snap_createInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface.mjs").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string>;
10
+ snap_updateInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface.mjs").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null>;
11
+ snap_getInterfaceState: import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState.mjs").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | boolean | {
12
12
  name: string;
13
13
  size: number;
14
14
  contentType: string;
@@ -19,9 +19,9 @@ export declare const methodHandlers: {
19
19
  contentType: string;
20
20
  contents: string;
21
21
  } | null> | null>>;
22
- snap_resolveInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./resolveInterface").ResolveInterfaceMethodHooks, import("@metamask/snaps-sdk").ResolveInterfaceParams, null>;
22
+ snap_resolveInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./resolveInterface.mjs").ResolveInterfaceMethodHooks, import("@metamask/snaps-sdk").ResolveInterfaceParams, null>;
23
23
  };
24
- export declare const handlers: (import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | boolean | {
24
+ export declare const handlers: (import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface.mjs").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps.mjs").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus.mjs").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState.mjs").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | boolean | {
25
25
  name: string;
26
26
  size: number;
27
27
  contentType: string;
@@ -31,5 +31,5 @@ export declare const handlers: (import("@metamask/permission-controller").Permit
31
31
  size: number;
32
32
  contentType: string;
33
33
  contents: string;
34
- } | null> | null>> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./resolveInterface").ResolveInterfaceMethodHooks, import("@metamask/snaps-sdk").ResolveInterfaceParams, null> | import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeSnapSugar").InvokeSnapSugarHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>)[];
34
+ } | null> | null>> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps.mjs").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps.mjs").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./resolveInterface.mjs").ResolveInterfaceMethodHooks, import("@metamask/snaps-sdk").ResolveInterfaceParams, null> | import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface.mjs").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile.mjs").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeSnapSugar.mjs").InvokeSnapSugarHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring.mjs").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>)[];
35
35
  //# sourceMappingURL=handlers.d.mts.map
@@ -128,6 +128,20 @@ declare const DialogParametersStruct: import("@metamask/superstruct").Struct<{
128
128
  } | {
129
129
  type: import("@metamask/snaps-sdk").NodeType.Form;
130
130
  name: string;
131
+ /**
132
+ * The specification builder for the `snap_dialog` permission. `snap_dialog`
133
+ * lets the Snap display one of the following dialogs to the user:
134
+ * - An alert, for displaying information.
135
+ * - A confirmation, for accepting or rejecting some action.
136
+ * - A prompt, for inputting some information.
137
+ *
138
+ * @param options - The specification builder options.
139
+ * @param options.allowedCaveats - The optional allowed caveats for the
140
+ * permission.
141
+ * @param options.methodHooks - The RPC method hooks needed by the method
142
+ * implementation.
143
+ * @returns The specification for the `snap_dialog` permission.
144
+ */
131
145
  children: ({
132
146
  type: import("@metamask/snaps-sdk").NodeType.Input;
133
147
  name: string;
@@ -214,6 +228,20 @@ declare const DialogParametersStruct: import("@metamask/superstruct").Struct<{
214
228
  } | {
215
229
  type: import("@metamask/snaps-sdk").NodeType.Form;
216
230
  name: string;
231
+ /**
232
+ * The specification builder for the `snap_dialog` permission. `snap_dialog`
233
+ * lets the Snap display one of the following dialogs to the user:
234
+ * - An alert, for displaying information.
235
+ * - A confirmation, for accepting or rejecting some action.
236
+ * - A prompt, for inputting some information.
237
+ *
238
+ * @param options - The specification builder options.
239
+ * @param options.allowedCaveats - The optional allowed caveats for the
240
+ * permission.
241
+ * @param options.methodHooks - The RPC method hooks needed by the method
242
+ * implementation.
243
+ * @returns The specification for the `snap_dialog` permission.
244
+ */
217
245
  children: ({
218
246
  type: import("@metamask/snaps-sdk").NodeType.Input;
219
247
  name: string;
@@ -301,6 +329,20 @@ declare const DialogParametersStruct: import("@metamask/superstruct").Struct<{
301
329
  } | {
302
330
  type: import("@metamask/snaps-sdk").NodeType.Form;
303
331
  name: string;
332
+ /**
333
+ * The specification builder for the `snap_dialog` permission. `snap_dialog`
334
+ * lets the Snap display one of the following dialogs to the user:
335
+ * - An alert, for displaying information.
336
+ * - A confirmation, for accepting or rejecting some action.
337
+ * - A prompt, for inputting some information.
338
+ *
339
+ * @param options - The specification builder options.
340
+ * @param options.allowedCaveats - The optional allowed caveats for the
341
+ * permission.
342
+ * @param options.methodHooks - The RPC method hooks needed by the method
343
+ * implementation.
344
+ * @returns The specification for the `snap_dialog` permission.
345
+ */
304
346
  children: ({
305
347
  type: import("@metamask/snaps-sdk").NodeType.Input;
306
348
  name: string;
@@ -386,6 +428,20 @@ declare const DialogParametersStruct: import("@metamask/superstruct").Struct<{
386
428
  } | {
387
429
  type: import("@metamask/snaps-sdk").NodeType.Form;
388
430
  name: string;
431
+ /**
432
+ * The specification builder for the `snap_dialog` permission. `snap_dialog`
433
+ * lets the Snap display one of the following dialogs to the user:
434
+ * - An alert, for displaying information.
435
+ * - A confirmation, for accepting or rejecting some action.
436
+ * - A prompt, for inputting some information.
437
+ *
438
+ * @param options - The specification builder options.
439
+ * @param options.allowedCaveats - The optional allowed caveats for the
440
+ * permission.
441
+ * @param options.methodHooks - The RPC method hooks needed by the method
442
+ * implementation.
443
+ * @returns The specification for the `snap_dialog` permission.
444
+ */
389
445
  children: ({
390
446
  type: import("@metamask/snaps-sdk").NodeType.Input;
391
447
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.cts","sourceRoot":"","sources":["../../src/restricted/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,uBAAuB,EAExB,wCAAwC;AACzC,OAAO,EAAE,cAAc,EAAe,wCAAwC;AAE9E,OAAO,EACL,UAAU,EAIX,4BAA4B;AAC7B,OAAO,KAAK,EACV,YAAY,EAEZ,cAAc,EACd,MAAM,EAEN,kBAAkB,EACnB,4BAA4B;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,8BAA8B;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAEnD,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,wBAAwB;AAG3D,OAAO,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AAElD,QAAA,MAAM,UAAU,gBAAgB,CAAC;AAEjC,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG;IAC7D,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAC;AAEF,QAAA,MAAM,iBAAiB,kEAAkC,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE1D,KAAK,0BAA0B,GAAG;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,E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,IAAI;;;EA4C7C,CAAC;AAsEZ,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA/G5B;;;;;;;;;;;;;WAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAbH;;;;;;;;;;;;;WAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAbH;;;;;;;;;;;;;WAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAbH;;;;;;;;;;;;;WAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqHD,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAC1C,OAAO,sBAAsB,EAC7B,YAAY,CACb,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,mBAAmB,EACnB,eAAe,EACf,YAAY,GACb,EAAE,iBAAiB,UAEV,wBAAwB,gBAAgB,CAAC,KAC9C,QAAQ,OAAO,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC,CAoD3C"}
@@ -128,6 +128,20 @@ declare const DialogParametersStruct: import("@metamask/superstruct").Struct<{
128
128
  } | {
129
129
  type: import("@metamask/snaps-sdk").NodeType.Form;
130
130
  name: string;
131
+ /**
132
+ * The specification builder for the `snap_dialog` permission. `snap_dialog`
133
+ * lets the Snap display one of the following dialogs to the user:
134
+ * - An alert, for displaying information.
135
+ * - A confirmation, for accepting or rejecting some action.
136
+ * - A prompt, for inputting some information.
137
+ *
138
+ * @param options - The specification builder options.
139
+ * @param options.allowedCaveats - The optional allowed caveats for the
140
+ * permission.
141
+ * @param options.methodHooks - The RPC method hooks needed by the method
142
+ * implementation.
143
+ * @returns The specification for the `snap_dialog` permission.
144
+ */
131
145
  children: ({
132
146
  type: import("@metamask/snaps-sdk").NodeType.Input;
133
147
  name: string;
@@ -214,6 +228,20 @@ declare const DialogParametersStruct: import("@metamask/superstruct").Struct<{
214
228
  } | {
215
229
  type: import("@metamask/snaps-sdk").NodeType.Form;
216
230
  name: string;
231
+ /**
232
+ * The specification builder for the `snap_dialog` permission. `snap_dialog`
233
+ * lets the Snap display one of the following dialogs to the user:
234
+ * - An alert, for displaying information.
235
+ * - A confirmation, for accepting or rejecting some action.
236
+ * - A prompt, for inputting some information.
237
+ *
238
+ * @param options - The specification builder options.
239
+ * @param options.allowedCaveats - The optional allowed caveats for the
240
+ * permission.
241
+ * @param options.methodHooks - The RPC method hooks needed by the method
242
+ * implementation.
243
+ * @returns The specification for the `snap_dialog` permission.
244
+ */
217
245
  children: ({
218
246
  type: import("@metamask/snaps-sdk").NodeType.Input;
219
247
  name: string;
@@ -301,6 +329,20 @@ declare const DialogParametersStruct: import("@metamask/superstruct").Struct<{
301
329
  } | {
302
330
  type: import("@metamask/snaps-sdk").NodeType.Form;
303
331
  name: string;
332
+ /**
333
+ * The specification builder for the `snap_dialog` permission. `snap_dialog`
334
+ * lets the Snap display one of the following dialogs to the user:
335
+ * - An alert, for displaying information.
336
+ * - A confirmation, for accepting or rejecting some action.
337
+ * - A prompt, for inputting some information.
338
+ *
339
+ * @param options - The specification builder options.
340
+ * @param options.allowedCaveats - The optional allowed caveats for the
341
+ * permission.
342
+ * @param options.methodHooks - The RPC method hooks needed by the method
343
+ * implementation.
344
+ * @returns The specification for the `snap_dialog` permission.
345
+ */
304
346
  children: ({
305
347
  type: import("@metamask/snaps-sdk").NodeType.Input;
306
348
  name: string;
@@ -386,6 +428,20 @@ declare const DialogParametersStruct: import("@metamask/superstruct").Struct<{
386
428
  } | {
387
429
  type: import("@metamask/snaps-sdk").NodeType.Form;
388
430
  name: string;
431
+ /**
432
+ * The specification builder for the `snap_dialog` permission. `snap_dialog`
433
+ * lets the Snap display one of the following dialogs to the user:
434
+ * - An alert, for displaying information.
435
+ * - A confirmation, for accepting or rejecting some action.
436
+ * - A prompt, for inputting some information.
437
+ *
438
+ * @param options - The specification builder options.
439
+ * @param options.allowedCaveats - The optional allowed caveats for the
440
+ * permission.
441
+ * @param options.methodHooks - The RPC method hooks needed by the method
442
+ * implementation.
443
+ * @returns The specification for the `snap_dialog` permission.
444
+ */
389
445
  children: ({
390
446
  type: import("@metamask/snaps-sdk").NodeType.Input;
391
447
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.mts","sourceRoot":"","sources":["../../src/restricted/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,uBAAuB,EAExB,wCAAwC;AACzC,OAAO,EAAE,cAAc,EAAe,wCAAwC;AAE9E,OAAO,EACL,UAAU,EAIX,4BAA4B;AAC7B,OAAO,KAAK,EACV,YAAY,EAEZ,cAAc,EACd,MAAM,EAEN,kBAAkB,EACnB,4BAA4B;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,8BAA8B;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAEnD,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,wBAAwB;AAG3D,OAAO,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AAElD,QAAA,MAAM,UAAU,gBAAgB,CAAC;AAEjC,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG;IAC7D,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAC;AAEF,QAAA,MAAM,iBAAiB,kEAAkC,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE1D,KAAK,0BAA0B,GAAG;IAChC,EAAE,CAAC,EAAE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oBACnC,iBAAiB;8BACP,WAAW,8BAA8B,CAAC;wBAChD,SAAS,cAAc,MAAM,CAAC,CAAC,GAAG,IAAI;;;EA4C7C,CAAC;AAsEZ,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA/G5B;;;;;;;;;;;;;WAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAbH;;;;;;;;;;;;;WAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAbH;;;;;;;;;;;;;WAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAbH;;;;;;;;;;;;;WAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqHD,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAC1C,OAAO,sBAAsB,EAC7B,YAAY,CACb,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,mBAAmB,EACnB,eAAe,EACf,YAAY,GACb,EAAE,iBAAiB,UAEV,wBAAwB,gBAAgB,CAAC,KAC9C,QAAQ,OAAO,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC,CAoD3C"}
@@ -24,7 +24,7 @@ export declare const restrictedMethodPermissionBuilders: {
24
24
  methodImplementation: (args: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/snaps-sdk").DialogParams>) => Promise<import("@metamask/utils").Json>;
25
25
  allowedCaveats: readonly [string, ...string[]] | null;
26
26
  }>;
27
- readonly methodHooks: import("../utils").MethodHooksObject<DialogMethodHooks>;
27
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<DialogMethodHooks>;
28
28
  }>;
29
29
  readonly snap_getBip32Entropy: Readonly<{
30
30
  readonly targetName: "snap_getBip32Entropy";
@@ -37,7 +37,7 @@ export declare const restrictedMethodPermissionBuilders: {
37
37
  allowedCaveats: readonly [string, ...string[]] | null;
38
38
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
39
39
  }>;
40
- readonly methodHooks: import("../utils").MethodHooksObject<GetBip32EntropyMethodHooks>;
40
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<GetBip32EntropyMethodHooks>;
41
41
  }>;
42
42
  readonly snap_getBip32PublicKey: Readonly<{
43
43
  readonly targetName: "snap_getBip32PublicKey";
@@ -50,7 +50,7 @@ export declare const restrictedMethodPermissionBuilders: {
50
50
  allowedCaveats: readonly [string, ...string[]] | null;
51
51
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
52
52
  }>;
53
- readonly methodHooks: import("../utils").MethodHooksObject<GetBip32PublicKeyMethodHooks>;
53
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<GetBip32PublicKeyMethodHooks>;
54
54
  }>;
55
55
  readonly snap_getBip44Entropy: Readonly<{
56
56
  readonly targetName: "snap_getBip44Entropy";
@@ -63,7 +63,7 @@ export declare const restrictedMethodPermissionBuilders: {
63
63
  allowedCaveats: readonly [string, ...string[]] | null;
64
64
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
65
65
  }>;
66
- readonly methodHooks: import("../utils").MethodHooksObject<GetBip44EntropyMethodHooks>;
66
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<GetBip44EntropyMethodHooks>;
67
67
  }>;
68
68
  readonly snap_getEntropy: Readonly<{
69
69
  readonly targetName: "snap_getEntropy";
@@ -76,7 +76,7 @@ export declare const restrictedMethodPermissionBuilders: {
76
76
  methodImplementation: (options: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/snaps-sdk").GetEntropyParams>) => Promise<`0x${string}`>;
77
77
  allowedCaveats: readonly [string, ...string[]] | null;
78
78
  }>;
79
- readonly methodHooks: import("../utils").MethodHooksObject<GetEntropyHooks>;
79
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<GetEntropyHooks>;
80
80
  }>;
81
81
  readonly wallet_snap: Readonly<{
82
82
  readonly targetName: "wallet_snap";
@@ -86,14 +86,14 @@ export declare const restrictedMethodPermissionBuilders: {
86
86
  }, {
87
87
  permissionType: import("@metamask/permission-controller").PermissionType.RestrictedMethod;
88
88
  targetName: "wallet_snap";
89
- methodImplementation: (options: import("@metamask/permission-controller").RestrictedMethodOptions<import("./invokeSnap").InvokeSnapParams>) => Promise<import("@metamask/utils").Json>;
89
+ methodImplementation: (options: import("@metamask/permission-controller").RestrictedMethodOptions<import("./invokeSnap.cjs").InvokeSnapParams>) => Promise<import("@metamask/utils").Json>;
90
90
  allowedCaveats: readonly [string, ...string[]] | null;
91
91
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
92
92
  sideEffect: {
93
- onPermitted: import("@metamask/permission-controller").SideEffectHandler<import("./invokeSnap").InstallSnaps | import("./invokeSnap").GetPermittedSnaps, never>;
93
+ onPermitted: import("@metamask/permission-controller").SideEffectHandler<import("./invokeSnap.cjs").InstallSnaps | import("./invokeSnap.cjs").GetPermittedSnaps, never>;
94
94
  };
95
95
  }>;
96
- readonly methodHooks: import("../utils").MethodHooksObject<InvokeSnapMethodHooks>;
96
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<InvokeSnapMethodHooks>;
97
97
  }>;
98
98
  readonly snap_manageState: Readonly<{
99
99
  readonly targetName: "snap_manageState";
@@ -106,7 +106,7 @@ export declare const restrictedMethodPermissionBuilders: {
106
106
  methodImplementation: (options: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/snaps-sdk").ManageStateParams>) => Promise<import("@metamask/snaps-sdk").ManageStateResult>;
107
107
  allowedCaveats: readonly [string, ...string[]] | null;
108
108
  }>;
109
- readonly methodHooks: import("../utils").MethodHooksObject<ManageStateMethodHooks>;
109
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<ManageStateMethodHooks>;
110
110
  }>;
111
111
  readonly snap_notify: Readonly<{
112
112
  readonly targetName: "snap_notify";
@@ -119,7 +119,7 @@ export declare const restrictedMethodPermissionBuilders: {
119
119
  methodImplementation: (args: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/snaps-sdk").NotifyParams>) => Promise<null>;
120
120
  allowedCaveats: readonly [string, ...string[]] | null;
121
121
  }>;
122
- readonly methodHooks: import("../utils").MethodHooksObject<NotifyMethodHooks>;
122
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<NotifyMethodHooks>;
123
123
  }>;
124
124
  readonly snap_manageAccounts: Readonly<{
125
125
  readonly targetName: "snap_manageAccounts";
@@ -147,7 +147,7 @@ export declare const restrictedMethodPermissionBuilders: {
147
147
  methodImplementation: (_args: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/permission-controller").RestrictedMethodParameters>) => Promise<string>;
148
148
  allowedCaveats: readonly [string, ...string[]] | null;
149
149
  }>;
150
- readonly methodHooks: import("../utils").MethodHooksObject<GetLocaleMethodHooks>;
150
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<GetLocaleMethodHooks>;
151
151
  }>;
152
152
  readonly snap_getPreferences: Readonly<{
153
153
  readonly targetName: "snap_getPreferences";
@@ -160,7 +160,7 @@ export declare const restrictedMethodPermissionBuilders: {
160
160
  methodImplementation: (_args: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/permission-controller").RestrictedMethodParameters>) => Promise<import("@metamask/snaps-sdk").GetPreferencesResult>;
161
161
  allowedCaveats: readonly [string, ...string[]] | null;
162
162
  }>;
163
- readonly methodHooks: import("../utils").MethodHooksObject<GetPreferencesMethodHooks>;
163
+ readonly methodHooks: import("../utils.cjs").MethodHooksObject<GetPreferencesMethodHooks>;
164
164
  }>;
165
165
  };
166
166
  export * from "./caveats/index.cjs";
@@ -24,7 +24,7 @@ export declare const restrictedMethodPermissionBuilders: {
24
24
  methodImplementation: (args: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/snaps-sdk").DialogParams>) => Promise<import("@metamask/utils").Json>;
25
25
  allowedCaveats: readonly [string, ...string[]] | null;
26
26
  }>;
27
- readonly methodHooks: import("../utils").MethodHooksObject<DialogMethodHooks>;
27
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<DialogMethodHooks>;
28
28
  }>;
29
29
  readonly snap_getBip32Entropy: Readonly<{
30
30
  readonly targetName: "snap_getBip32Entropy";
@@ -37,7 +37,7 @@ export declare const restrictedMethodPermissionBuilders: {
37
37
  allowedCaveats: readonly [string, ...string[]] | null;
38
38
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
39
39
  }>;
40
- readonly methodHooks: import("../utils").MethodHooksObject<GetBip32EntropyMethodHooks>;
40
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<GetBip32EntropyMethodHooks>;
41
41
  }>;
42
42
  readonly snap_getBip32PublicKey: Readonly<{
43
43
  readonly targetName: "snap_getBip32PublicKey";
@@ -50,7 +50,7 @@ export declare const restrictedMethodPermissionBuilders: {
50
50
  allowedCaveats: readonly [string, ...string[]] | null;
51
51
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
52
52
  }>;
53
- readonly methodHooks: import("../utils").MethodHooksObject<GetBip32PublicKeyMethodHooks>;
53
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<GetBip32PublicKeyMethodHooks>;
54
54
  }>;
55
55
  readonly snap_getBip44Entropy: Readonly<{
56
56
  readonly targetName: "snap_getBip44Entropy";
@@ -63,7 +63,7 @@ export declare const restrictedMethodPermissionBuilders: {
63
63
  allowedCaveats: readonly [string, ...string[]] | null;
64
64
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
65
65
  }>;
66
- readonly methodHooks: import("../utils").MethodHooksObject<GetBip44EntropyMethodHooks>;
66
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<GetBip44EntropyMethodHooks>;
67
67
  }>;
68
68
  readonly snap_getEntropy: Readonly<{
69
69
  readonly targetName: "snap_getEntropy";
@@ -76,7 +76,7 @@ export declare const restrictedMethodPermissionBuilders: {
76
76
  methodImplementation: (options: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/snaps-sdk").GetEntropyParams>) => Promise<`0x${string}`>;
77
77
  allowedCaveats: readonly [string, ...string[]] | null;
78
78
  }>;
79
- readonly methodHooks: import("../utils").MethodHooksObject<GetEntropyHooks>;
79
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<GetEntropyHooks>;
80
80
  }>;
81
81
  readonly wallet_snap: Readonly<{
82
82
  readonly targetName: "wallet_snap";
@@ -86,14 +86,14 @@ export declare const restrictedMethodPermissionBuilders: {
86
86
  }, {
87
87
  permissionType: import("@metamask/permission-controller").PermissionType.RestrictedMethod;
88
88
  targetName: "wallet_snap";
89
- methodImplementation: (options: import("@metamask/permission-controller").RestrictedMethodOptions<import("./invokeSnap").InvokeSnapParams>) => Promise<import("@metamask/utils").Json>;
89
+ methodImplementation: (options: import("@metamask/permission-controller").RestrictedMethodOptions<import("./invokeSnap.mjs").InvokeSnapParams>) => Promise<import("@metamask/utils").Json>;
90
90
  allowedCaveats: readonly [string, ...string[]] | null;
91
91
  validator: import("@metamask/permission-controller").PermissionValidatorConstraint;
92
92
  sideEffect: {
93
- onPermitted: import("@metamask/permission-controller").SideEffectHandler<import("./invokeSnap").InstallSnaps | import("./invokeSnap").GetPermittedSnaps, never>;
93
+ onPermitted: import("@metamask/permission-controller").SideEffectHandler<import("./invokeSnap.mjs").InstallSnaps | import("./invokeSnap.mjs").GetPermittedSnaps, never>;
94
94
  };
95
95
  }>;
96
- readonly methodHooks: import("../utils").MethodHooksObject<InvokeSnapMethodHooks>;
96
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<InvokeSnapMethodHooks>;
97
97
  }>;
98
98
  readonly snap_manageState: Readonly<{
99
99
  readonly targetName: "snap_manageState";
@@ -106,7 +106,7 @@ export declare const restrictedMethodPermissionBuilders: {
106
106
  methodImplementation: (options: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/snaps-sdk").ManageStateParams>) => Promise<import("@metamask/snaps-sdk").ManageStateResult>;
107
107
  allowedCaveats: readonly [string, ...string[]] | null;
108
108
  }>;
109
- readonly methodHooks: import("../utils").MethodHooksObject<ManageStateMethodHooks>;
109
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<ManageStateMethodHooks>;
110
110
  }>;
111
111
  readonly snap_notify: Readonly<{
112
112
  readonly targetName: "snap_notify";
@@ -119,7 +119,7 @@ export declare const restrictedMethodPermissionBuilders: {
119
119
  methodImplementation: (args: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/snaps-sdk").NotifyParams>) => Promise<null>;
120
120
  allowedCaveats: readonly [string, ...string[]] | null;
121
121
  }>;
122
- readonly methodHooks: import("../utils").MethodHooksObject<NotifyMethodHooks>;
122
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<NotifyMethodHooks>;
123
123
  }>;
124
124
  readonly snap_manageAccounts: Readonly<{
125
125
  readonly targetName: "snap_manageAccounts";
@@ -147,7 +147,7 @@ export declare const restrictedMethodPermissionBuilders: {
147
147
  methodImplementation: (_args: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/permission-controller").RestrictedMethodParameters>) => Promise<string>;
148
148
  allowedCaveats: readonly [string, ...string[]] | null;
149
149
  }>;
150
- readonly methodHooks: import("../utils").MethodHooksObject<GetLocaleMethodHooks>;
150
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<GetLocaleMethodHooks>;
151
151
  }>;
152
152
  readonly snap_getPreferences: Readonly<{
153
153
  readonly targetName: "snap_getPreferences";
@@ -160,7 +160,7 @@ export declare const restrictedMethodPermissionBuilders: {
160
160
  methodImplementation: (_args: import("@metamask/permission-controller").RestrictedMethodOptions<import("@metamask/permission-controller").RestrictedMethodParameters>) => Promise<import("@metamask/snaps-sdk").GetPreferencesResult>;
161
161
  allowedCaveats: readonly [string, ...string[]] | null;
162
162
  }>;
163
- readonly methodHooks: import("../utils").MethodHooksObject<GetPreferencesMethodHooks>;
163
+ readonly methodHooks: import("../utils.mjs").MethodHooksObject<GetPreferencesMethodHooks>;
164
164
  }>;
165
165
  };
166
166
  export * from "./caveats/index.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/snaps-rpc-methods",
3
- "version": "11.1.0",
3
+ "version": "11.1.1",
4
4
  "description": "MetaMask Snaps JSON-RPC method implementations.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,8 +44,8 @@
44
44
  "@metamask/key-tree": "^9.1.2",
45
45
  "@metamask/permission-controller": "^11.0.0",
46
46
  "@metamask/rpc-errors": "^6.3.1",
47
- "@metamask/snaps-sdk": "^6.4.0",
48
- "@metamask/snaps-utils": "^8.1.0",
47
+ "@metamask/snaps-sdk": "^6.5.0",
48
+ "@metamask/snaps-utils": "^8.1.1",
49
49
  "@metamask/superstruct": "^3.1.0",
50
50
  "@metamask/utils": "^9.2.1",
51
51
  "@noble/hashes": "^1.3.1"
@@ -60,7 +60,7 @@
60
60
  "@metamask/json-rpc-engine": "^9.0.2",
61
61
  "@swc/core": "1.3.78",
62
62
  "@swc/jest": "^0.2.26",
63
- "@ts-bridge/cli": "^0.4.4",
63
+ "@ts-bridge/cli": "^0.5.1",
64
64
  "@types/node": "18.14.2",
65
65
  "@typescript-eslint/eslint-plugin": "^5.42.1",
66
66
  "@typescript-eslint/parser": "^6.21.0",