@c1m-public/platform-auth 0.5.0 → 0.6.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Platform-operator permission keys. */
|
|
2
|
-
export declare const PLATFORM_PERMISSIONS: readonly ["platform.admin.view", "platform.audit.view", "platform.auth.manage", "platform.billing.manage", "platform.channels.manage", "platform.channels.view", "platform.config.manage", "platform.docs.manage", "platform.docs.view", "platform.observability.manage", "platform.observability.view", "platform.ops.manage", "platform.support.impersonate", "platform.support.sessions", "platform.tenants.archive", "platform.tenants.manage", "platform.tenants.restore", "platform.users.deactivate", "platform.users.delete", "platform.users.invite", "platform.users.manage_access", "platform.users.reactivate", "platform.users.view"];
|
|
2
|
+
export declare const PLATFORM_PERMISSIONS: readonly ["affiliates.finance.manage", "affiliates.partners.manage", "affiliates.programmes.manage", "affiliates.view", "linkservice.domains.manage", "linkservice.links.manage", "linkservice.qr.manage", "linkservice.view", "platform.admin.view", "platform.audit.view", "platform.auth.manage", "platform.billing.manage", "platform.channels.manage", "platform.channels.view", "platform.config.manage", "platform.docs.manage", "platform.docs.view", "platform.observability.manage", "platform.observability.view", "platform.offboarding.view", "platform.ops.manage", "platform.support.impersonate", "platform.support.sessions", "platform.tenants.archive", "platform.tenants.manage", "platform.tenants.restore", "platform.users.deactivate", "platform.users.delete", "platform.users.invite", "platform.users.manage_access", "platform.users.reactivate", "platform.users.view"];
|
|
3
3
|
export type PlatformPermissionKey = (typeof PLATFORM_PERMISSIONS)[number];
|
|
4
4
|
/** Dash-owner permission keys (granted at dash scope, mirrored from the membership role). */
|
|
5
5
|
export declare const DASH_PERMISSIONS: readonly ["dash.apps.manage", "dash.billing.manage", "dash.channels.manage", "dash.customers.manage", "dash.domains.manage", "dash.members.manage", "dash.ownership.transfer", "dash.plans.manage", "dash.publish", "dash.settings.manage", "dash.workspaces.admin", "dash.workspaces.manage"];
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
// (vendored from c1m-server/schemas/api/authz-keys.json). Do not edit by hand.
|
|
3
3
|
/** Platform-operator permission keys. */
|
|
4
4
|
export const PLATFORM_PERMISSIONS = [
|
|
5
|
+
"affiliates.finance.manage",
|
|
6
|
+
"affiliates.partners.manage",
|
|
7
|
+
"affiliates.programmes.manage",
|
|
8
|
+
"affiliates.view",
|
|
9
|
+
"linkservice.domains.manage",
|
|
10
|
+
"linkservice.links.manage",
|
|
11
|
+
"linkservice.qr.manage",
|
|
12
|
+
"linkservice.view",
|
|
5
13
|
"platform.admin.view",
|
|
6
14
|
"platform.audit.view",
|
|
7
15
|
"platform.auth.manage",
|
|
@@ -13,6 +21,7 @@ export const PLATFORM_PERMISSIONS = [
|
|
|
13
21
|
"platform.docs.view",
|
|
14
22
|
"platform.observability.manage",
|
|
15
23
|
"platform.observability.view",
|
|
24
|
+
"platform.offboarding.view",
|
|
16
25
|
"platform.ops.manage",
|
|
17
26
|
"platform.support.impersonate",
|
|
18
27
|
"platform.support.sessions",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c1m-public/platform-auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Server-side session and authorization helpers for C1M platform surfaces: token/session reads, the first-party handoff (PKCE target + source), proxy session gate and coalesced refresh, plus the resolved access snapshot, typed permission keys, predicates, a Next loader and React bindings under ./access",
|