@fabrika/control-contract 0.9.0-dev.34 → 0.9.0-dev.35
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/package.json +5 -5
- package/src/cli-access.ts +4 -2
- package/types/src/cli-access.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/control-contract",
|
|
3
|
-
"version": "0.9.0-dev.
|
|
3
|
+
"version": "0.9.0-dev.35",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"zod": "^3.25.76",
|
|
29
|
-
"@fabrika/auth-core": "0.9.0-dev.
|
|
30
|
-
"@fabrika/app": "0.9.0-dev.
|
|
31
|
-
"@fabrika/operations-contract": "0.9.0-dev.
|
|
32
|
-
"@fabrika/provider-contract": "0.9.0-dev.
|
|
29
|
+
"@fabrika/auth-core": "0.9.0-dev.35",
|
|
30
|
+
"@fabrika/app": "0.9.0-dev.35",
|
|
31
|
+
"@fabrika/operations-contract": "0.9.0-dev.35",
|
|
32
|
+
"@fabrika/provider-contract": "0.9.0-dev.35"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/src/cli-access.ts
CHANGED
|
@@ -53,6 +53,8 @@ export const CONTROL_CLI_OPERATIONS_GRANTS: readonly ControlCliScopeGrant[] = [
|
|
|
53
53
|
/** One OAuth resource of the console the command-line client is served, by its path on the console's origin. */
|
|
54
54
|
export interface ControlCliResource {
|
|
55
55
|
readonly path: string
|
|
56
|
+
/** What IAM's device-consent page names the resource, above its URL. */
|
|
57
|
+
readonly label: string
|
|
56
58
|
readonly grants: readonly ControlCliScopeGrant[]
|
|
57
59
|
/** The service that verifies the resource's tokens itself: Control's gateway forwards Operations' path unchanged. */
|
|
58
60
|
readonly verifiedBy?: 'operations'
|
|
@@ -60,8 +62,8 @@ export interface ControlCliResource {
|
|
|
60
62
|
|
|
61
63
|
/** Every installation that serves the device grant registers exactly these, whichever provider composes it. */
|
|
62
64
|
export const CONTROL_CLI_RESOURCES: readonly ControlCliResource[] = [
|
|
63
|
-
{ path: CONTROL_RPC_PATH, grants: CONTROL_CLI_RPC_GRANTS },
|
|
64
|
-
{ path: CONTROL_OPERATIONS_RPC_PATH, grants: CONTROL_CLI_OPERATIONS_GRANTS, verifiedBy: 'operations' },
|
|
65
|
+
{ path: CONTROL_RPC_PATH, label: 'Console', grants: CONTROL_CLI_RPC_GRANTS },
|
|
66
|
+
{ path: CONTROL_OPERATIONS_RPC_PATH, label: 'Operations', grants: CONTROL_CLI_OPERATIONS_GRANTS, verifiedBy: 'operations' },
|
|
65
67
|
]
|
|
66
68
|
|
|
67
69
|
/** The resources a preset's grant covers: those with a grant for it, so `create` concerns the console's RPC alone. */
|
|
@@ -25,6 +25,8 @@ export declare const CONTROL_CLI_OPERATIONS_GRANTS: readonly ControlCliScopeGran
|
|
|
25
25
|
/** One OAuth resource of the console the command-line client is served, by its path on the console's origin. */
|
|
26
26
|
export interface ControlCliResource {
|
|
27
27
|
readonly path: string;
|
|
28
|
+
/** What IAM's device-consent page names the resource, above its URL. */
|
|
29
|
+
readonly label: string;
|
|
28
30
|
readonly grants: readonly ControlCliScopeGrant[];
|
|
29
31
|
/** The service that verifies the resource's tokens itself: Control's gateway forwards Operations' path unchanged. */
|
|
30
32
|
readonly verifiedBy?: 'operations';
|