@metamask/permission-controller 12.2.1 → 12.3.0

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 (40) hide show
  1. package/CHANGELOG.md +52 -1
  2. package/dist/PermissionController-method-action-types.cjs +7 -0
  3. package/dist/PermissionController-method-action-types.cjs.map +1 -0
  4. package/dist/PermissionController-method-action-types.d.cts +259 -0
  5. package/dist/PermissionController-method-action-types.d.cts.map +1 -0
  6. package/dist/PermissionController-method-action-types.d.mts +259 -0
  7. package/dist/PermissionController-method-action-types.d.mts.map +1 -0
  8. package/dist/PermissionController-method-action-types.mjs +6 -0
  9. package/dist/PermissionController-method-action-types.mjs.map +1 -0
  10. package/dist/PermissionController.cjs +19 -20
  11. package/dist/PermissionController.cjs.map +1 -1
  12. package/dist/PermissionController.d.cts +50 -11
  13. package/dist/PermissionController.d.cts.map +1 -1
  14. package/dist/PermissionController.d.mts +50 -11
  15. package/dist/PermissionController.d.mts.map +1 -1
  16. package/dist/PermissionController.mjs +19 -20
  17. package/dist/PermissionController.mjs.map +1 -1
  18. package/dist/SubjectMetadataController-method-action-types.cjs +7 -0
  19. package/dist/SubjectMetadataController-method-action-types.cjs.map +1 -0
  20. package/dist/SubjectMetadataController-method-action-types.d.cts +51 -0
  21. package/dist/SubjectMetadataController-method-action-types.d.cts.map +1 -0
  22. package/dist/SubjectMetadataController-method-action-types.d.mts +51 -0
  23. package/dist/SubjectMetadataController-method-action-types.d.mts.map +1 -0
  24. package/dist/SubjectMetadataController-method-action-types.mjs +6 -0
  25. package/dist/SubjectMetadataController-method-action-types.mjs.map +1 -0
  26. package/dist/SubjectMetadataController.cjs +7 -2
  27. package/dist/SubjectMetadataController.cjs.map +1 -1
  28. package/dist/SubjectMetadataController.d.cts +16 -4
  29. package/dist/SubjectMetadataController.d.cts.map +1 -1
  30. package/dist/SubjectMetadataController.d.mts +16 -4
  31. package/dist/SubjectMetadataController.d.mts.map +1 -1
  32. package/dist/SubjectMetadataController.mjs +7 -2
  33. package/dist/SubjectMetadataController.mjs.map +1 -1
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +2 -0
  36. package/dist/index.d.cts.map +1 -1
  37. package/dist/index.d.mts +2 -0
  38. package/dist/index.d.mts.map +1 -1
  39. package/dist/index.mjs.map +1 -1
  40. package/package.json +7 -5
package/CHANGELOG.md CHANGED
@@ -7,6 +7,56 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [12.3.0]
11
+
12
+ ### Added
13
+
14
+ - Expose missing public `PermissionController` methods through its messenger ([#8201](https://github.com/MetaMask/core/pull/8201))
15
+ - The following actions are now available:
16
+ - `PermissionController:clearState`
17
+ - Corresponding action types (e.g. `PermissionControllerClearStateAction`) are
18
+ available as well.
19
+ - Expose missing public `SubjectMetadataController` methods through its messenger ([#8201](https://github.com/MetaMask/core/pull/8201))
20
+ - The following actions are now available:
21
+ - `SubjectMetadataController:clearState`
22
+ - `SubjectMetadataController:trimMetadataState`
23
+ - Corresponding action types
24
+ (e.g. `SubjectMetadataControllerClearStateAction`) are available as well.
25
+
26
+ ### Changed
27
+
28
+ - Bump `@metamask/approval-controller` from `^9.0.0` to `^9.0.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
29
+ - Bump `@metamask/base-controller` from `^9.0.0` to `^9.0.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
30
+ - Bump `@metamask/json-rpc-engine` from `^10.2.3` to `^10.2.4` ([#8317](https://github.com/MetaMask/core/pull/8317))
31
+ - Bump `@metamask/messenger` from `^0.3.0` to `^1.0.0` ([#8317](https://github.com/MetaMask/core/pull/8317))
32
+
33
+ ### Deprecated
34
+
35
+ - Deprecate action types in favor of `PermissionController...Action` and `SubjectMetadataController...Action` types ([#8201](https://github.com/MetaMask/core/pull/8201))
36
+ - For the `PermissionController`:
37
+ - `GetPermissionControllerState` is now `PermissionControllerGetStateAction`.
38
+ - `GetSubjects` is now `PermissionControllerGetSubjectsAction`.
39
+ - `GetPermissions` is now `PermissionControllerGetPermissionsAction`.
40
+ - `HasPermissions` is now `PermissionControllerHasPermissionsAction`.
41
+ - `HasPermission` is now `PermissionControllerHasPermissionAction`.
42
+ - `GrantPermissions` is now `PermissionControllerGrantPermissionsAction`.
43
+ - `GrantPermissionsIncremental` is now `PermissionControllerGrantPermissionsIncrementalAction`.
44
+ - `RequestPermissions` is now `PermissionControllerRequestPermissionsAction`.
45
+ - `RequestPermissionsIncremental` is now `PermissionControllerRequestPermissionsIncrementalAction`.
46
+ - `RevokePermissions` is now `PermissionControllerRevokePermissionsAction`.
47
+ - `RevokeAllPermissions` is now `PermissionControllerRevokeAllPermissionsAction`.
48
+ - `RevokePermissionForAllSubjects` is now `PermissionControllerRevokePermissionForAllSubjectsAction`.
49
+ - `UpdateCaveat` is now `PermissionControllerUpdateCaveatAction`.
50
+ - `GetCaveat` is now `PermissionControllerGetCaveatAction`.
51
+ - `ClearPermissions` is now `PermissionControllerClearPermissionsAction`.
52
+ - `GetEndowments` is now `PermissionControllerGetEndowmentsAction`.
53
+ - For the `SubjectMetadataController`:
54
+ - `GetSubjectMetadataControllerState` is now `SubjectMetadataControllerGetStateAction`.
55
+ - `GetSubjectMetadata` is now `SubjectMetadataControllerGetMetadataAction`.
56
+ - `AddSubjectMetadata` is now `SubjectMetadataControllerAddMetadataAction`.
57
+ - The old types are still exported but are now marked as deprecated and will
58
+ be removed in a future release.
59
+
10
60
  ## [12.2.1]
11
61
 
12
62
  ### Changed
@@ -397,7 +447,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
397
447
 
398
448
  All changes listed after this point were applied to this package following the monorepo conversion.
399
449
 
400
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@12.2.1...HEAD
450
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@12.3.0...HEAD
451
+ [12.3.0]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@12.2.1...@metamask/permission-controller@12.3.0
401
452
  [12.2.1]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@12.2.0...@metamask/permission-controller@12.2.1
402
453
  [12.2.0]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@12.1.1...@metamask/permission-controller@12.2.0
403
454
  [12.1.1]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@12.1.0...@metamask/permission-controller@12.1.1
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * This file is auto generated.
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=PermissionController-method-action-types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PermissionController-method-action-types.cjs","sourceRoot":"","sources":["../src/PermissionController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { PermissionController } from './PermissionController';\n\n/**\n * Clears the state of the controller.\n */\nexport type PermissionControllerClearStateAction = {\n type: `PermissionController:clearState`;\n handler: PermissionController['clearState'];\n};\n\n/**\n * Gets a list of all origins of subjects.\n *\n * @returns The origins (i.e. IDs) of all subjects.\n */\nexport type PermissionControllerGetSubjectNamesAction = {\n type: `PermissionController:getSubjectNames`;\n handler: PermissionController['getSubjectNames'];\n};\n\n/**\n * Gets all permissions for the specified subject, if any.\n *\n * @param origin - The origin of the subject.\n * @returns The permissions of the subject, if any.\n */\nexport type PermissionControllerGetPermissionsAction = {\n type: `PermissionController:getPermissions`;\n handler: PermissionController['getPermissions'];\n};\n\n/**\n * Checks whether the subject with the specified origin has the specified\n * permission.\n *\n * @param origin - The origin of the subject.\n * @param target - The target name of the permission.\n * @returns Whether the subject has the permission.\n */\nexport type PermissionControllerHasPermissionAction = {\n type: `PermissionController:hasPermission`;\n handler: PermissionController['hasPermission'];\n};\n\n/**\n * Checks whether the subject with the specified origin has any permissions.\n * Use this if you want to know if a subject \"exists\".\n *\n * @param origin - The origin of the subject to check.\n * @returns Whether the subject has any permissions.\n */\nexport type PermissionControllerHasPermissionsAction = {\n type: `PermissionController:hasPermissions`;\n handler: PermissionController['hasPermissions'];\n};\n\n/**\n * Revokes all permissions from the specified origin.\n *\n * Throws an error of the origin has no permissions.\n *\n * @param origin - The origin whose permissions to revoke.\n */\nexport type PermissionControllerRevokeAllPermissionsAction = {\n type: `PermissionController:revokeAllPermissions`;\n handler: PermissionController['revokeAllPermissions'];\n};\n\n/**\n * Revokes the specified permissions from the specified subjects.\n *\n * Throws an error if any of the subjects or permissions do not exist.\n *\n * @param subjectsAndPermissions - An object mapping subject origins\n * to arrays of permission target names to revoke.\n */\nexport type PermissionControllerRevokePermissionsAction = {\n type: `PermissionController:revokePermissions`;\n handler: PermissionController['revokePermissions'];\n};\n\n/**\n * Revokes all permissions corresponding to the specified target for all subjects.\n * Does nothing if no subjects or no such permission exists.\n *\n * @param target - The name of the target to revoke all permissions for.\n */\nexport type PermissionControllerRevokePermissionForAllSubjectsAction = {\n type: `PermissionController:revokePermissionForAllSubjects`;\n handler: PermissionController['revokePermissionForAllSubjects'];\n};\n\n/**\n * Gets the caveat of the specified type, if any, for the permission of\n * the subject corresponding to the given origin.\n *\n * Throws an error if the subject does not have a permission with the\n * specified target name.\n *\n * @template TargetName - The permission target name. Should be inferred.\n * @template CaveatType - The valid caveat types for the permission. Should\n * be inferred.\n * @param origin - The origin of the subject.\n * @param target - The target name of the permission.\n * @param caveatType - The type of the caveat to get.\n * @returns The caveat, or `undefined` if no such caveat exists.\n */\nexport type PermissionControllerGetCaveatAction = {\n type: `PermissionController:getCaveat`;\n handler: PermissionController['getCaveat'];\n};\n\n/**\n * Updates the value of the caveat of the specified type belonging to the\n * permission corresponding to the given subject origin and permission\n * target.\n *\n * For adding new caveats, use\n * {@link PermissionController.addCaveat}.\n *\n * Throws an error if no such permission or caveat exists.\n *\n * @template TargetName - The permission target name. Should be inferred.\n * @template CaveatType - The valid caveat types for the permission. Should\n * be inferred.\n * @param origin - The origin of the subject.\n * @param target - The target name of the permission.\n * @param caveatType - The type of the caveat to update.\n * @param caveatValue - The new value of the caveat.\n */\nexport type PermissionControllerUpdateCaveatAction = {\n type: `PermissionController:updateCaveat`;\n handler: PermissionController['updateCaveat'];\n};\n\n/**\n * Grants _approved_ permissions to the specified subject. Every permission and\n * caveat is stringently validated—including by calling their specification\n * validators—and an error is thrown if validation fails.\n *\n * ATTN: This method does **not** prompt the user for approval. User consent must\n * first be obtained through some other means.\n *\n * @see {@link PermissionController.requestPermissions} For initiating a\n * permissions request requiring user approval.\n * @param options - Options bag.\n * @param options.approvedPermissions - The requested permissions approved by\n * the user.\n * @param options.requestData - Permission request data. Passed to permission\n * factory functions.\n * @param options.preserveExistingPermissions - Whether to preserve the\n * subject's existing permissions.\n * @param options.subject - The subject to grant permissions to.\n * @returns The subject's new permission state. It may or may not have changed.\n */\nexport type PermissionControllerGrantPermissionsAction = {\n type: `PermissionController:grantPermissions`;\n handler: PermissionController['grantPermissions'];\n};\n\n/**\n * Incrementally grants _approved_ permissions to the specified subject. Every\n * permission and caveat is stringently validated—including by calling their\n * specification validators—and an error is thrown if validation fails.\n *\n * ATTN: This method does **not** prompt the user for approval. User consent must\n * first be obtained through some other means.\n *\n * @see {@link PermissionController.requestPermissionsIncremental} For initiating\n * an incremental permissions request requiring user approval.\n * @param options - Options bag.\n * @param options.approvedPermissions - The requested permissions approved by\n * the user.\n * @param options.requestData - Permission request data. Passed to permission\n * factory functions.\n * @param options.subject - The subject to grant permissions to.\n * @returns The subject's new permission state. It may or may not have changed.\n */\nexport type PermissionControllerGrantPermissionsIncrementalAction = {\n type: `PermissionController:grantPermissionsIncremental`;\n handler: PermissionController['grantPermissionsIncremental'];\n};\n\n/**\n * Initiates a permission request that requires user approval.\n *\n * Either this or {@link PermissionController.requestPermissionsIncremental}\n * should always be used to grant additional permissions to a subject,\n * unless user approval has been obtained through some other means.\n *\n * Permissions are validated at every step of the approval process, and this\n * method will reject if validation fails.\n *\n * @see {@link ApprovalController} For the user approval logic.\n * @see {@link PermissionController.acceptPermissionsRequest} For the method\n * that _accepts_ the request and resolves the user approval promise.\n * @see {@link PermissionController.rejectPermissionsRequest} For the method\n * that _rejects_ the request and the user approval promise.\n * @param subject - The grantee subject.\n * @param requestedPermissions - The requested permissions.\n * @param options - Additional options.\n * @param options.id - The id of the permissions request. Defaults to a unique\n * id.\n * @param options.preserveExistingPermissions - Whether to preserve the\n * subject's existing permissions. Defaults to `true`.\n * @param options.metadata - Additional metadata about the permission request.\n * @returns The granted permissions and request metadata.\n */\nexport type PermissionControllerRequestPermissionsAction = {\n type: `PermissionController:requestPermissions`;\n handler: PermissionController['requestPermissions'];\n};\n\n/**\n * Initiates an incremental permission request that prompts for user approval.\n * Incremental permission requests allow the caller to replace existing and/or\n * add brand new permissions and caveats for the specified subject.\n *\n * Incremental permission request are merged with the subject's existing permissions\n * through a right-biased union, where the incremental permission are the right-hand\n * side of the merger. If both sides of the merger specify the same caveats for a\n * given permission, the caveats are merged using their specification's caveat value\n * merger property.\n *\n * Either this or {@link PermissionController.requestPermissions} should\n * always be used to grant additional permissions to a subject, unless user\n * approval has been obtained through some other means.\n *\n * Permissions are validated at every step of the approval process, and this\n * method will reject if validation fails.\n *\n * @see {@link ApprovalController} For the user approval logic.\n * @see {@link PermissionController.acceptPermissionsRequest} For the method\n * that _accepts_ the request and resolves the user approval promise.\n * @see {@link PermissionController.rejectPermissionsRequest} For the method\n * that _rejects_ the request and the user approval promise.\n * @param subject - The grantee subject.\n * @param requestedPermissions - The requested permissions.\n * @param options - Additional options.\n * @param options.id - The id of the permissions request. Defaults to a unique\n * id.\n * @param options.metadata - Additional metadata about the permission request.\n * @returns The granted permissions and request metadata.\n */\nexport type PermissionControllerRequestPermissionsIncrementalAction = {\n type: `PermissionController:requestPermissionsIncremental`;\n handler: PermissionController['requestPermissionsIncremental'];\n};\n\n/**\n * Gets the subject's endowments per the specified endowment permission.\n * Throws if the subject does not have the required permission or if the\n * permission is not an endowment permission.\n *\n * @param origin - The origin of the subject whose endowments to retrieve.\n * @param targetName - The name of the endowment permission. This must be a\n * valid permission target name.\n * @param requestData - Additional data associated with the request, if any.\n * Forwarded to the endowment getter function for the permission.\n * @returns The endowments, if any.\n */\nexport type PermissionControllerGetEndowmentsAction = {\n type: `PermissionController:getEndowments`;\n handler: PermissionController['getEndowments'];\n};\n\n/**\n * Union of all PermissionController action types.\n */\nexport type PermissionControllerMethodActions =\n | PermissionControllerClearStateAction\n | PermissionControllerGetSubjectNamesAction\n | PermissionControllerGetPermissionsAction\n | PermissionControllerHasPermissionAction\n | PermissionControllerHasPermissionsAction\n | PermissionControllerRevokeAllPermissionsAction\n | PermissionControllerRevokePermissionsAction\n | PermissionControllerRevokePermissionForAllSubjectsAction\n | PermissionControllerGetCaveatAction\n | PermissionControllerUpdateCaveatAction\n | PermissionControllerGrantPermissionsAction\n | PermissionControllerGrantPermissionsIncrementalAction\n | PermissionControllerRequestPermissionsAction\n | PermissionControllerRequestPermissionsIncrementalAction\n | PermissionControllerGetEndowmentsAction;\n"]}
@@ -0,0 +1,259 @@
1
+ /**
2
+ * This file is auto generated.
3
+ * Do not edit manually.
4
+ */
5
+ import type { PermissionController } from "./PermissionController.cjs";
6
+ /**
7
+ * Clears the state of the controller.
8
+ */
9
+ export type PermissionControllerClearStateAction = {
10
+ type: `PermissionController:clearState`;
11
+ handler: PermissionController['clearState'];
12
+ };
13
+ /**
14
+ * Gets a list of all origins of subjects.
15
+ *
16
+ * @returns The origins (i.e. IDs) of all subjects.
17
+ */
18
+ export type PermissionControllerGetSubjectNamesAction = {
19
+ type: `PermissionController:getSubjectNames`;
20
+ handler: PermissionController['getSubjectNames'];
21
+ };
22
+ /**
23
+ * Gets all permissions for the specified subject, if any.
24
+ *
25
+ * @param origin - The origin of the subject.
26
+ * @returns The permissions of the subject, if any.
27
+ */
28
+ export type PermissionControllerGetPermissionsAction = {
29
+ type: `PermissionController:getPermissions`;
30
+ handler: PermissionController['getPermissions'];
31
+ };
32
+ /**
33
+ * Checks whether the subject with the specified origin has the specified
34
+ * permission.
35
+ *
36
+ * @param origin - The origin of the subject.
37
+ * @param target - The target name of the permission.
38
+ * @returns Whether the subject has the permission.
39
+ */
40
+ export type PermissionControllerHasPermissionAction = {
41
+ type: `PermissionController:hasPermission`;
42
+ handler: PermissionController['hasPermission'];
43
+ };
44
+ /**
45
+ * Checks whether the subject with the specified origin has any permissions.
46
+ * Use this if you want to know if a subject "exists".
47
+ *
48
+ * @param origin - The origin of the subject to check.
49
+ * @returns Whether the subject has any permissions.
50
+ */
51
+ export type PermissionControllerHasPermissionsAction = {
52
+ type: `PermissionController:hasPermissions`;
53
+ handler: PermissionController['hasPermissions'];
54
+ };
55
+ /**
56
+ * Revokes all permissions from the specified origin.
57
+ *
58
+ * Throws an error of the origin has no permissions.
59
+ *
60
+ * @param origin - The origin whose permissions to revoke.
61
+ */
62
+ export type PermissionControllerRevokeAllPermissionsAction = {
63
+ type: `PermissionController:revokeAllPermissions`;
64
+ handler: PermissionController['revokeAllPermissions'];
65
+ };
66
+ /**
67
+ * Revokes the specified permissions from the specified subjects.
68
+ *
69
+ * Throws an error if any of the subjects or permissions do not exist.
70
+ *
71
+ * @param subjectsAndPermissions - An object mapping subject origins
72
+ * to arrays of permission target names to revoke.
73
+ */
74
+ export type PermissionControllerRevokePermissionsAction = {
75
+ type: `PermissionController:revokePermissions`;
76
+ handler: PermissionController['revokePermissions'];
77
+ };
78
+ /**
79
+ * Revokes all permissions corresponding to the specified target for all subjects.
80
+ * Does nothing if no subjects or no such permission exists.
81
+ *
82
+ * @param target - The name of the target to revoke all permissions for.
83
+ */
84
+ export type PermissionControllerRevokePermissionForAllSubjectsAction = {
85
+ type: `PermissionController:revokePermissionForAllSubjects`;
86
+ handler: PermissionController['revokePermissionForAllSubjects'];
87
+ };
88
+ /**
89
+ * Gets the caveat of the specified type, if any, for the permission of
90
+ * the subject corresponding to the given origin.
91
+ *
92
+ * Throws an error if the subject does not have a permission with the
93
+ * specified target name.
94
+ *
95
+ * @template TargetName - The permission target name. Should be inferred.
96
+ * @template CaveatType - The valid caveat types for the permission. Should
97
+ * be inferred.
98
+ * @param origin - The origin of the subject.
99
+ * @param target - The target name of the permission.
100
+ * @param caveatType - The type of the caveat to get.
101
+ * @returns The caveat, or `undefined` if no such caveat exists.
102
+ */
103
+ export type PermissionControllerGetCaveatAction = {
104
+ type: `PermissionController:getCaveat`;
105
+ handler: PermissionController['getCaveat'];
106
+ };
107
+ /**
108
+ * Updates the value of the caveat of the specified type belonging to the
109
+ * permission corresponding to the given subject origin and permission
110
+ * target.
111
+ *
112
+ * For adding new caveats, use
113
+ * {@link PermissionController.addCaveat}.
114
+ *
115
+ * Throws an error if no such permission or caveat exists.
116
+ *
117
+ * @template TargetName - The permission target name. Should be inferred.
118
+ * @template CaveatType - The valid caveat types for the permission. Should
119
+ * be inferred.
120
+ * @param origin - The origin of the subject.
121
+ * @param target - The target name of the permission.
122
+ * @param caveatType - The type of the caveat to update.
123
+ * @param caveatValue - The new value of the caveat.
124
+ */
125
+ export type PermissionControllerUpdateCaveatAction = {
126
+ type: `PermissionController:updateCaveat`;
127
+ handler: PermissionController['updateCaveat'];
128
+ };
129
+ /**
130
+ * Grants _approved_ permissions to the specified subject. Every permission and
131
+ * caveat is stringently validated—including by calling their specification
132
+ * validators—and an error is thrown if validation fails.
133
+ *
134
+ * ATTN: This method does **not** prompt the user for approval. User consent must
135
+ * first be obtained through some other means.
136
+ *
137
+ * @see {@link PermissionController.requestPermissions} For initiating a
138
+ * permissions request requiring user approval.
139
+ * @param options - Options bag.
140
+ * @param options.approvedPermissions - The requested permissions approved by
141
+ * the user.
142
+ * @param options.requestData - Permission request data. Passed to permission
143
+ * factory functions.
144
+ * @param options.preserveExistingPermissions - Whether to preserve the
145
+ * subject's existing permissions.
146
+ * @param options.subject - The subject to grant permissions to.
147
+ * @returns The subject's new permission state. It may or may not have changed.
148
+ */
149
+ export type PermissionControllerGrantPermissionsAction = {
150
+ type: `PermissionController:grantPermissions`;
151
+ handler: PermissionController['grantPermissions'];
152
+ };
153
+ /**
154
+ * Incrementally grants _approved_ permissions to the specified subject. Every
155
+ * permission and caveat is stringently validated—including by calling their
156
+ * specification validators—and an error is thrown if validation fails.
157
+ *
158
+ * ATTN: This method does **not** prompt the user for approval. User consent must
159
+ * first be obtained through some other means.
160
+ *
161
+ * @see {@link PermissionController.requestPermissionsIncremental} For initiating
162
+ * an incremental permissions request requiring user approval.
163
+ * @param options - Options bag.
164
+ * @param options.approvedPermissions - The requested permissions approved by
165
+ * the user.
166
+ * @param options.requestData - Permission request data. Passed to permission
167
+ * factory functions.
168
+ * @param options.subject - The subject to grant permissions to.
169
+ * @returns The subject's new permission state. It may or may not have changed.
170
+ */
171
+ export type PermissionControllerGrantPermissionsIncrementalAction = {
172
+ type: `PermissionController:grantPermissionsIncremental`;
173
+ handler: PermissionController['grantPermissionsIncremental'];
174
+ };
175
+ /**
176
+ * Initiates a permission request that requires user approval.
177
+ *
178
+ * Either this or {@link PermissionController.requestPermissionsIncremental}
179
+ * should always be used to grant additional permissions to a subject,
180
+ * unless user approval has been obtained through some other means.
181
+ *
182
+ * Permissions are validated at every step of the approval process, and this
183
+ * method will reject if validation fails.
184
+ *
185
+ * @see {@link ApprovalController} For the user approval logic.
186
+ * @see {@link PermissionController.acceptPermissionsRequest} For the method
187
+ * that _accepts_ the request and resolves the user approval promise.
188
+ * @see {@link PermissionController.rejectPermissionsRequest} For the method
189
+ * that _rejects_ the request and the user approval promise.
190
+ * @param subject - The grantee subject.
191
+ * @param requestedPermissions - The requested permissions.
192
+ * @param options - Additional options.
193
+ * @param options.id - The id of the permissions request. Defaults to a unique
194
+ * id.
195
+ * @param options.preserveExistingPermissions - Whether to preserve the
196
+ * subject's existing permissions. Defaults to `true`.
197
+ * @param options.metadata - Additional metadata about the permission request.
198
+ * @returns The granted permissions and request metadata.
199
+ */
200
+ export type PermissionControllerRequestPermissionsAction = {
201
+ type: `PermissionController:requestPermissions`;
202
+ handler: PermissionController['requestPermissions'];
203
+ };
204
+ /**
205
+ * Initiates an incremental permission request that prompts for user approval.
206
+ * Incremental permission requests allow the caller to replace existing and/or
207
+ * add brand new permissions and caveats for the specified subject.
208
+ *
209
+ * Incremental permission request are merged with the subject's existing permissions
210
+ * through a right-biased union, where the incremental permission are the right-hand
211
+ * side of the merger. If both sides of the merger specify the same caveats for a
212
+ * given permission, the caveats are merged using their specification's caveat value
213
+ * merger property.
214
+ *
215
+ * Either this or {@link PermissionController.requestPermissions} should
216
+ * always be used to grant additional permissions to a subject, unless user
217
+ * approval has been obtained through some other means.
218
+ *
219
+ * Permissions are validated at every step of the approval process, and this
220
+ * method will reject if validation fails.
221
+ *
222
+ * @see {@link ApprovalController} For the user approval logic.
223
+ * @see {@link PermissionController.acceptPermissionsRequest} For the method
224
+ * that _accepts_ the request and resolves the user approval promise.
225
+ * @see {@link PermissionController.rejectPermissionsRequest} For the method
226
+ * that _rejects_ the request and the user approval promise.
227
+ * @param subject - The grantee subject.
228
+ * @param requestedPermissions - The requested permissions.
229
+ * @param options - Additional options.
230
+ * @param options.id - The id of the permissions request. Defaults to a unique
231
+ * id.
232
+ * @param options.metadata - Additional metadata about the permission request.
233
+ * @returns The granted permissions and request metadata.
234
+ */
235
+ export type PermissionControllerRequestPermissionsIncrementalAction = {
236
+ type: `PermissionController:requestPermissionsIncremental`;
237
+ handler: PermissionController['requestPermissionsIncremental'];
238
+ };
239
+ /**
240
+ * Gets the subject's endowments per the specified endowment permission.
241
+ * Throws if the subject does not have the required permission or if the
242
+ * permission is not an endowment permission.
243
+ *
244
+ * @param origin - The origin of the subject whose endowments to retrieve.
245
+ * @param targetName - The name of the endowment permission. This must be a
246
+ * valid permission target name.
247
+ * @param requestData - Additional data associated with the request, if any.
248
+ * Forwarded to the endowment getter function for the permission.
249
+ * @returns The endowments, if any.
250
+ */
251
+ export type PermissionControllerGetEndowmentsAction = {
252
+ type: `PermissionController:getEndowments`;
253
+ handler: PermissionController['getEndowments'];
254
+ };
255
+ /**
256
+ * Union of all PermissionController action types.
257
+ */
258
+ export type PermissionControllerMethodActions = PermissionControllerClearStateAction | PermissionControllerGetSubjectNamesAction | PermissionControllerGetPermissionsAction | PermissionControllerHasPermissionAction | PermissionControllerHasPermissionsAction | PermissionControllerRevokeAllPermissionsAction | PermissionControllerRevokePermissionsAction | PermissionControllerRevokePermissionForAllSubjectsAction | PermissionControllerGetCaveatAction | PermissionControllerUpdateCaveatAction | PermissionControllerGrantPermissionsAction | PermissionControllerGrantPermissionsIncrementalAction | PermissionControllerRequestPermissionsAction | PermissionControllerRequestPermissionsIncrementalAction | PermissionControllerGetEndowmentsAction;
259
+ //# sourceMappingURL=PermissionController-method-action-types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PermissionController-method-action-types.d.cts","sourceRoot":"","sources":["../src/PermissionController-method-action-types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,259 @@
1
+ /**
2
+ * This file is auto generated.
3
+ * Do not edit manually.
4
+ */
5
+ import type { PermissionController } from "./PermissionController.mjs";
6
+ /**
7
+ * Clears the state of the controller.
8
+ */
9
+ export type PermissionControllerClearStateAction = {
10
+ type: `PermissionController:clearState`;
11
+ handler: PermissionController['clearState'];
12
+ };
13
+ /**
14
+ * Gets a list of all origins of subjects.
15
+ *
16
+ * @returns The origins (i.e. IDs) of all subjects.
17
+ */
18
+ export type PermissionControllerGetSubjectNamesAction = {
19
+ type: `PermissionController:getSubjectNames`;
20
+ handler: PermissionController['getSubjectNames'];
21
+ };
22
+ /**
23
+ * Gets all permissions for the specified subject, if any.
24
+ *
25
+ * @param origin - The origin of the subject.
26
+ * @returns The permissions of the subject, if any.
27
+ */
28
+ export type PermissionControllerGetPermissionsAction = {
29
+ type: `PermissionController:getPermissions`;
30
+ handler: PermissionController['getPermissions'];
31
+ };
32
+ /**
33
+ * Checks whether the subject with the specified origin has the specified
34
+ * permission.
35
+ *
36
+ * @param origin - The origin of the subject.
37
+ * @param target - The target name of the permission.
38
+ * @returns Whether the subject has the permission.
39
+ */
40
+ export type PermissionControllerHasPermissionAction = {
41
+ type: `PermissionController:hasPermission`;
42
+ handler: PermissionController['hasPermission'];
43
+ };
44
+ /**
45
+ * Checks whether the subject with the specified origin has any permissions.
46
+ * Use this if you want to know if a subject "exists".
47
+ *
48
+ * @param origin - The origin of the subject to check.
49
+ * @returns Whether the subject has any permissions.
50
+ */
51
+ export type PermissionControllerHasPermissionsAction = {
52
+ type: `PermissionController:hasPermissions`;
53
+ handler: PermissionController['hasPermissions'];
54
+ };
55
+ /**
56
+ * Revokes all permissions from the specified origin.
57
+ *
58
+ * Throws an error of the origin has no permissions.
59
+ *
60
+ * @param origin - The origin whose permissions to revoke.
61
+ */
62
+ export type PermissionControllerRevokeAllPermissionsAction = {
63
+ type: `PermissionController:revokeAllPermissions`;
64
+ handler: PermissionController['revokeAllPermissions'];
65
+ };
66
+ /**
67
+ * Revokes the specified permissions from the specified subjects.
68
+ *
69
+ * Throws an error if any of the subjects or permissions do not exist.
70
+ *
71
+ * @param subjectsAndPermissions - An object mapping subject origins
72
+ * to arrays of permission target names to revoke.
73
+ */
74
+ export type PermissionControllerRevokePermissionsAction = {
75
+ type: `PermissionController:revokePermissions`;
76
+ handler: PermissionController['revokePermissions'];
77
+ };
78
+ /**
79
+ * Revokes all permissions corresponding to the specified target for all subjects.
80
+ * Does nothing if no subjects or no such permission exists.
81
+ *
82
+ * @param target - The name of the target to revoke all permissions for.
83
+ */
84
+ export type PermissionControllerRevokePermissionForAllSubjectsAction = {
85
+ type: `PermissionController:revokePermissionForAllSubjects`;
86
+ handler: PermissionController['revokePermissionForAllSubjects'];
87
+ };
88
+ /**
89
+ * Gets the caveat of the specified type, if any, for the permission of
90
+ * the subject corresponding to the given origin.
91
+ *
92
+ * Throws an error if the subject does not have a permission with the
93
+ * specified target name.
94
+ *
95
+ * @template TargetName - The permission target name. Should be inferred.
96
+ * @template CaveatType - The valid caveat types for the permission. Should
97
+ * be inferred.
98
+ * @param origin - The origin of the subject.
99
+ * @param target - The target name of the permission.
100
+ * @param caveatType - The type of the caveat to get.
101
+ * @returns The caveat, or `undefined` if no such caveat exists.
102
+ */
103
+ export type PermissionControllerGetCaveatAction = {
104
+ type: `PermissionController:getCaveat`;
105
+ handler: PermissionController['getCaveat'];
106
+ };
107
+ /**
108
+ * Updates the value of the caveat of the specified type belonging to the
109
+ * permission corresponding to the given subject origin and permission
110
+ * target.
111
+ *
112
+ * For adding new caveats, use
113
+ * {@link PermissionController.addCaveat}.
114
+ *
115
+ * Throws an error if no such permission or caveat exists.
116
+ *
117
+ * @template TargetName - The permission target name. Should be inferred.
118
+ * @template CaveatType - The valid caveat types for the permission. Should
119
+ * be inferred.
120
+ * @param origin - The origin of the subject.
121
+ * @param target - The target name of the permission.
122
+ * @param caveatType - The type of the caveat to update.
123
+ * @param caveatValue - The new value of the caveat.
124
+ */
125
+ export type PermissionControllerUpdateCaveatAction = {
126
+ type: `PermissionController:updateCaveat`;
127
+ handler: PermissionController['updateCaveat'];
128
+ };
129
+ /**
130
+ * Grants _approved_ permissions to the specified subject. Every permission and
131
+ * caveat is stringently validated—including by calling their specification
132
+ * validators—and an error is thrown if validation fails.
133
+ *
134
+ * ATTN: This method does **not** prompt the user for approval. User consent must
135
+ * first be obtained through some other means.
136
+ *
137
+ * @see {@link PermissionController.requestPermissions} For initiating a
138
+ * permissions request requiring user approval.
139
+ * @param options - Options bag.
140
+ * @param options.approvedPermissions - The requested permissions approved by
141
+ * the user.
142
+ * @param options.requestData - Permission request data. Passed to permission
143
+ * factory functions.
144
+ * @param options.preserveExistingPermissions - Whether to preserve the
145
+ * subject's existing permissions.
146
+ * @param options.subject - The subject to grant permissions to.
147
+ * @returns The subject's new permission state. It may or may not have changed.
148
+ */
149
+ export type PermissionControllerGrantPermissionsAction = {
150
+ type: `PermissionController:grantPermissions`;
151
+ handler: PermissionController['grantPermissions'];
152
+ };
153
+ /**
154
+ * Incrementally grants _approved_ permissions to the specified subject. Every
155
+ * permission and caveat is stringently validated—including by calling their
156
+ * specification validators—and an error is thrown if validation fails.
157
+ *
158
+ * ATTN: This method does **not** prompt the user for approval. User consent must
159
+ * first be obtained through some other means.
160
+ *
161
+ * @see {@link PermissionController.requestPermissionsIncremental} For initiating
162
+ * an incremental permissions request requiring user approval.
163
+ * @param options - Options bag.
164
+ * @param options.approvedPermissions - The requested permissions approved by
165
+ * the user.
166
+ * @param options.requestData - Permission request data. Passed to permission
167
+ * factory functions.
168
+ * @param options.subject - The subject to grant permissions to.
169
+ * @returns The subject's new permission state. It may or may not have changed.
170
+ */
171
+ export type PermissionControllerGrantPermissionsIncrementalAction = {
172
+ type: `PermissionController:grantPermissionsIncremental`;
173
+ handler: PermissionController['grantPermissionsIncremental'];
174
+ };
175
+ /**
176
+ * Initiates a permission request that requires user approval.
177
+ *
178
+ * Either this or {@link PermissionController.requestPermissionsIncremental}
179
+ * should always be used to grant additional permissions to a subject,
180
+ * unless user approval has been obtained through some other means.
181
+ *
182
+ * Permissions are validated at every step of the approval process, and this
183
+ * method will reject if validation fails.
184
+ *
185
+ * @see {@link ApprovalController} For the user approval logic.
186
+ * @see {@link PermissionController.acceptPermissionsRequest} For the method
187
+ * that _accepts_ the request and resolves the user approval promise.
188
+ * @see {@link PermissionController.rejectPermissionsRequest} For the method
189
+ * that _rejects_ the request and the user approval promise.
190
+ * @param subject - The grantee subject.
191
+ * @param requestedPermissions - The requested permissions.
192
+ * @param options - Additional options.
193
+ * @param options.id - The id of the permissions request. Defaults to a unique
194
+ * id.
195
+ * @param options.preserveExistingPermissions - Whether to preserve the
196
+ * subject's existing permissions. Defaults to `true`.
197
+ * @param options.metadata - Additional metadata about the permission request.
198
+ * @returns The granted permissions and request metadata.
199
+ */
200
+ export type PermissionControllerRequestPermissionsAction = {
201
+ type: `PermissionController:requestPermissions`;
202
+ handler: PermissionController['requestPermissions'];
203
+ };
204
+ /**
205
+ * Initiates an incremental permission request that prompts for user approval.
206
+ * Incremental permission requests allow the caller to replace existing and/or
207
+ * add brand new permissions and caveats for the specified subject.
208
+ *
209
+ * Incremental permission request are merged with the subject's existing permissions
210
+ * through a right-biased union, where the incremental permission are the right-hand
211
+ * side of the merger. If both sides of the merger specify the same caveats for a
212
+ * given permission, the caveats are merged using their specification's caveat value
213
+ * merger property.
214
+ *
215
+ * Either this or {@link PermissionController.requestPermissions} should
216
+ * always be used to grant additional permissions to a subject, unless user
217
+ * approval has been obtained through some other means.
218
+ *
219
+ * Permissions are validated at every step of the approval process, and this
220
+ * method will reject if validation fails.
221
+ *
222
+ * @see {@link ApprovalController} For the user approval logic.
223
+ * @see {@link PermissionController.acceptPermissionsRequest} For the method
224
+ * that _accepts_ the request and resolves the user approval promise.
225
+ * @see {@link PermissionController.rejectPermissionsRequest} For the method
226
+ * that _rejects_ the request and the user approval promise.
227
+ * @param subject - The grantee subject.
228
+ * @param requestedPermissions - The requested permissions.
229
+ * @param options - Additional options.
230
+ * @param options.id - The id of the permissions request. Defaults to a unique
231
+ * id.
232
+ * @param options.metadata - Additional metadata about the permission request.
233
+ * @returns The granted permissions and request metadata.
234
+ */
235
+ export type PermissionControllerRequestPermissionsIncrementalAction = {
236
+ type: `PermissionController:requestPermissionsIncremental`;
237
+ handler: PermissionController['requestPermissionsIncremental'];
238
+ };
239
+ /**
240
+ * Gets the subject's endowments per the specified endowment permission.
241
+ * Throws if the subject does not have the required permission or if the
242
+ * permission is not an endowment permission.
243
+ *
244
+ * @param origin - The origin of the subject whose endowments to retrieve.
245
+ * @param targetName - The name of the endowment permission. This must be a
246
+ * valid permission target name.
247
+ * @param requestData - Additional data associated with the request, if any.
248
+ * Forwarded to the endowment getter function for the permission.
249
+ * @returns The endowments, if any.
250
+ */
251
+ export type PermissionControllerGetEndowmentsAction = {
252
+ type: `PermissionController:getEndowments`;
253
+ handler: PermissionController['getEndowments'];
254
+ };
255
+ /**
256
+ * Union of all PermissionController action types.
257
+ */
258
+ export type PermissionControllerMethodActions = PermissionControllerClearStateAction | PermissionControllerGetSubjectNamesAction | PermissionControllerGetPermissionsAction | PermissionControllerHasPermissionAction | PermissionControllerHasPermissionsAction | PermissionControllerRevokeAllPermissionsAction | PermissionControllerRevokePermissionsAction | PermissionControllerRevokePermissionForAllSubjectsAction | PermissionControllerGetCaveatAction | PermissionControllerUpdateCaveatAction | PermissionControllerGrantPermissionsAction | PermissionControllerGrantPermissionsIncrementalAction | PermissionControllerRequestPermissionsAction | PermissionControllerRequestPermissionsIncrementalAction | PermissionControllerGetEndowmentsAction;
259
+ //# sourceMappingURL=PermissionController-method-action-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PermissionController-method-action-types.d.mts","sourceRoot":"","sources":["../src/PermissionController-method-action-types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file is auto generated.
3
+ * Do not edit manually.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=PermissionController-method-action-types.mjs.map