@c1m-public/platform-auth 0.14.1 → 0.15.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/dist/access/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as AccessEntry, b as AccessErrorCode, c as AccessScopeType, A as AccessSnapshot, d as AccessSnapshotError, D as DASH_PERMISSIONS, e as DASH_ROLES, f as DEFAULT_ACCESS_ENDPOINT_PATH, g as DashPermissionKey, h as DashRole, F as FetchAccessSnapshotOptions, L as LEADBROKER_PERMISSIONS, i as LeadBrokerPermissionKey, j as PIPELINE_STAGES, k as PLATFORM_PERMISSIONS, P as PermissionCheckOptions, l as PermissionKey, m as PipelineStage, n as PlatformPermissionKey, W as WORKSPACE_PERMISSIONS, o as WORKSPACE_ROLES, p as WorkspacePermissionKey, q as WorkspaceRole, r as appScopes, s as dashRole, t as emptySnapshot, u as entryCoversApp, v as fetchAccessSnapshot, w as hasAllPermissions, x as hasAnyPermission, y as hasPermission, z as hasWorkspacePermission, B as isAccessSnapshotError, C as isPipelineStage, E as isPlatformOwner, G as managedDashes, H as parseAccessSnapshot, I as permissionsFor } from '../index-
|
|
1
|
+
export { a as AccessEntry, b as AccessErrorCode, c as AccessScopeType, A as AccessSnapshot, d as AccessSnapshotError, D as DASH_PERMISSIONS, e as DASH_ROLES, f as DEFAULT_ACCESS_ENDPOINT_PATH, g as DashPermissionKey, h as DashRole, F as FetchAccessSnapshotOptions, L as LEADBROKER_PERMISSIONS, i as LeadBrokerPermissionKey, j as PIPELINE_STAGES, k as PLATFORM_PERMISSIONS, P as PermissionCheckOptions, l as PermissionKey, m as PipelineStage, n as PlatformPermissionKey, W as WORKSPACE_PERMISSIONS, o as WORKSPACE_ROLES, p as WorkspacePermissionKey, q as WorkspaceRole, r as appScopes, s as dashRole, t as emptySnapshot, u as entryCoversApp, v as fetchAccessSnapshot, w as hasAllPermissions, x as hasAnyPermission, y as hasPermission, z as hasWorkspacePermission, B as isAccessSnapshotError, C as isPipelineStage, E as isPlatformOwner, G as managedDashes, H as parseAccessSnapshot, I as permissionsFor } from '../index-BEiQTDX9.js';
|
package/dist/access/index.js
CHANGED
|
@@ -17,6 +17,7 @@ var PLATFORM_PERMISSIONS = [
|
|
|
17
17
|
"platform.channels.manage",
|
|
18
18
|
"platform.channels.view",
|
|
19
19
|
"platform.config.manage",
|
|
20
|
+
"platform.dashes.purge",
|
|
20
21
|
"platform.docs.manage",
|
|
21
22
|
"platform.docs.view",
|
|
22
23
|
"platform.mcp.access",
|
|
@@ -41,20 +42,33 @@ var PLATFORM_PERMISSIONS = [
|
|
|
41
42
|
"platform.users.view"
|
|
42
43
|
];
|
|
43
44
|
var DASH_PERMISSIONS = [
|
|
45
|
+
"dash.activity.view",
|
|
44
46
|
"dash.apps.manage",
|
|
47
|
+
"dash.apps.view",
|
|
45
48
|
"dash.billing.manage",
|
|
46
49
|
"dash.billing.view",
|
|
47
50
|
"dash.channels.manage",
|
|
48
51
|
"dash.customers.manage",
|
|
52
|
+
"dash.customers.view",
|
|
49
53
|
"dash.domains.manage",
|
|
50
54
|
"dash.domains.view",
|
|
55
|
+
"dash.leads.export",
|
|
56
|
+
"dash.leads.view",
|
|
57
|
+
"dash.learning.records.view",
|
|
58
|
+
"dash.learning.view",
|
|
59
|
+
"dash.marketing.view",
|
|
51
60
|
"dash.mcp.access",
|
|
52
61
|
"dash.members.manage",
|
|
62
|
+
"dash.members.view",
|
|
63
|
+
"dash.ops_library.view",
|
|
64
|
+
"dash.overview.view",
|
|
53
65
|
"dash.ownership.transfer",
|
|
54
66
|
"dash.plans.manage",
|
|
55
67
|
"dash.plans.view",
|
|
56
68
|
"dash.publish",
|
|
57
69
|
"dash.settings.manage",
|
|
70
|
+
"dash.settings.view",
|
|
71
|
+
"dash.shop.view",
|
|
58
72
|
"dash.workspaces.admin",
|
|
59
73
|
"dash.workspaces.manage",
|
|
60
74
|
"dash.workspaces.view"
|
package/dist/access/next.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AccessSnapshot, P as PermissionCheckOptions, R as Resolvable } from '../index-
|
|
2
|
-
export { a as AccessEntry, b as AccessErrorCode, c as AccessScopeType, d as AccessSnapshotError, D as DASH_PERMISSIONS, e as DASH_ROLES, f as DEFAULT_ACCESS_ENDPOINT_PATH, g as DashPermissionKey, h as DashRole, F as FetchAccessSnapshotOptions, L as LEADBROKER_PERMISSIONS, i as LeadBrokerPermissionKey, j as PIPELINE_STAGES, k as PLATFORM_PERMISSIONS, l as PermissionKey, m as PipelineStage, n as PlatformPermissionKey, W as WORKSPACE_PERMISSIONS, o as WORKSPACE_ROLES, p as WorkspacePermissionKey, q as WorkspaceRole, r as appScopes, s as dashRole, t as emptySnapshot, u as entryCoversApp, v as fetchAccessSnapshot, w as hasAllPermissions, x as hasAnyPermission, y as hasPermission, z as hasWorkspacePermission, B as isAccessSnapshotError, C as isPipelineStage, E as isPlatformOwner, G as managedDashes, H as parseAccessSnapshot, I as permissionsFor } from '../index-
|
|
1
|
+
import { A as AccessSnapshot, P as PermissionCheckOptions, R as Resolvable } from '../index-BEiQTDX9.js';
|
|
2
|
+
export { a as AccessEntry, b as AccessErrorCode, c as AccessScopeType, d as AccessSnapshotError, D as DASH_PERMISSIONS, e as DASH_ROLES, f as DEFAULT_ACCESS_ENDPOINT_PATH, g as DashPermissionKey, h as DashRole, F as FetchAccessSnapshotOptions, L as LEADBROKER_PERMISSIONS, i as LeadBrokerPermissionKey, j as PIPELINE_STAGES, k as PLATFORM_PERMISSIONS, l as PermissionKey, m as PipelineStage, n as PlatformPermissionKey, W as WORKSPACE_PERMISSIONS, o as WORKSPACE_ROLES, p as WorkspacePermissionKey, q as WorkspaceRole, r as appScopes, s as dashRole, t as emptySnapshot, u as entryCoversApp, v as fetchAccessSnapshot, w as hasAllPermissions, x as hasAnyPermission, y as hasPermission, z as hasWorkspacePermission, B as isAccessSnapshotError, C as isPipelineStage, E as isPlatformOwner, G as managedDashes, H as parseAccessSnapshot, I as permissionsFor } from '../index-BEiQTDX9.js';
|
|
3
3
|
|
|
4
4
|
/** Default cache tag for one subject's snapshot: `access:<subjectId>`. */
|
|
5
5
|
declare function accessCacheTag(subjectId: string): string;
|
package/dist/access/next.js
CHANGED
|
@@ -275,6 +275,7 @@ var PLATFORM_PERMISSIONS = [
|
|
|
275
275
|
"platform.channels.manage",
|
|
276
276
|
"platform.channels.view",
|
|
277
277
|
"platform.config.manage",
|
|
278
|
+
"platform.dashes.purge",
|
|
278
279
|
"platform.docs.manage",
|
|
279
280
|
"platform.docs.view",
|
|
280
281
|
"platform.mcp.access",
|
|
@@ -299,20 +300,33 @@ var PLATFORM_PERMISSIONS = [
|
|
|
299
300
|
"platform.users.view"
|
|
300
301
|
];
|
|
301
302
|
var DASH_PERMISSIONS = [
|
|
303
|
+
"dash.activity.view",
|
|
302
304
|
"dash.apps.manage",
|
|
305
|
+
"dash.apps.view",
|
|
303
306
|
"dash.billing.manage",
|
|
304
307
|
"dash.billing.view",
|
|
305
308
|
"dash.channels.manage",
|
|
306
309
|
"dash.customers.manage",
|
|
310
|
+
"dash.customers.view",
|
|
307
311
|
"dash.domains.manage",
|
|
308
312
|
"dash.domains.view",
|
|
313
|
+
"dash.leads.export",
|
|
314
|
+
"dash.leads.view",
|
|
315
|
+
"dash.learning.records.view",
|
|
316
|
+
"dash.learning.view",
|
|
317
|
+
"dash.marketing.view",
|
|
309
318
|
"dash.mcp.access",
|
|
310
319
|
"dash.members.manage",
|
|
320
|
+
"dash.members.view",
|
|
321
|
+
"dash.ops_library.view",
|
|
322
|
+
"dash.overview.view",
|
|
311
323
|
"dash.ownership.transfer",
|
|
312
324
|
"dash.plans.manage",
|
|
313
325
|
"dash.plans.view",
|
|
314
326
|
"dash.publish",
|
|
315
327
|
"dash.settings.manage",
|
|
328
|
+
"dash.settings.view",
|
|
329
|
+
"dash.shop.view",
|
|
316
330
|
"dash.workspaces.admin",
|
|
317
331
|
"dash.workspaces.manage",
|
|
318
332
|
"dash.workspaces.view"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** Platform-operator permission keys. */
|
|
2
|
-
declare const PLATFORM_PERMISSIONS: readonly ["affiliates.enrollments.manage", "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.billing.view", "platform.channels.manage", "platform.channels.view", "platform.config.manage", "platform.docs.manage", "platform.docs.view", "platform.mcp.access", "platform.observability.manage", "platform.observability.view", "platform.offboarding.view", "platform.ops.manage", "platform.ops.view", "platform.service_accounts.manage", "platform.service_accounts.view", "platform.support.impersonate", "platform.support.sessions", "platform.tenants.archive", "platform.tenants.manage", "platform.tenants.restore", "platform.tenants.view", "platform.users.deactivate", "platform.users.delete", "platform.users.invite", "platform.users.manage_access", "platform.users.reactivate", "platform.users.view"];
|
|
2
|
+
declare const PLATFORM_PERMISSIONS: readonly ["affiliates.enrollments.manage", "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.billing.view", "platform.channels.manage", "platform.channels.view", "platform.config.manage", "platform.dashes.purge", "platform.docs.manage", "platform.docs.view", "platform.mcp.access", "platform.observability.manage", "platform.observability.view", "platform.offboarding.view", "platform.ops.manage", "platform.ops.view", "platform.service_accounts.manage", "platform.service_accounts.view", "platform.support.impersonate", "platform.support.sessions", "platform.tenants.archive", "platform.tenants.manage", "platform.tenants.restore", "platform.tenants.view", "platform.users.deactivate", "platform.users.delete", "platform.users.invite", "platform.users.manage_access", "platform.users.reactivate", "platform.users.view"];
|
|
3
3
|
type PlatformPermissionKey = (typeof PLATFORM_PERMISSIONS)[number];
|
|
4
4
|
/** Dash-owner permission keys (granted at dash scope, mirrored from the membership role). */
|
|
5
|
-
declare const DASH_PERMISSIONS: readonly ["dash.apps.manage", "dash.billing.manage", "dash.billing.view", "dash.channels.manage", "dash.customers.manage", "dash.domains.manage", "dash.domains.view", "dash.mcp.access", "dash.members.manage", "dash.ownership.transfer", "dash.plans.manage", "dash.plans.view", "dash.publish", "dash.settings.manage", "dash.workspaces.admin", "dash.workspaces.manage", "dash.workspaces.view"];
|
|
5
|
+
declare const DASH_PERMISSIONS: readonly ["dash.activity.view", "dash.apps.manage", "dash.apps.view", "dash.billing.manage", "dash.billing.view", "dash.channels.manage", "dash.customers.manage", "dash.customers.view", "dash.domains.manage", "dash.domains.view", "dash.leads.export", "dash.leads.view", "dash.learning.records.view", "dash.learning.view", "dash.marketing.view", "dash.mcp.access", "dash.members.manage", "dash.members.view", "dash.ops_library.view", "dash.overview.view", "dash.ownership.transfer", "dash.plans.manage", "dash.plans.view", "dash.publish", "dash.settings.manage", "dash.settings.view", "dash.shop.view", "dash.workspaces.admin", "dash.workspaces.manage", "dash.workspaces.view"];
|
|
6
6
|
type DashPermissionKey = (typeof DASH_PERMISSIONS)[number];
|
|
7
7
|
/** Membership-mirrored dash role bundles (grant keys at dash scope). */
|
|
8
8
|
declare const DASH_ROLES: readonly ["dash.admin", "dash.owner"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c1m-public/platform-auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Session and authorization helpers for C1M platform surfaces. The root is runtime-neutral (Web Request/Response): token/session reads, the first-party handoff (PKCE target + source), proxy session gate and coalesced refresh; ./next adds the server-only guard; ./access carries the resolved access snapshot, typed permission keys, predicates, a Next loader and React bindings",
|