@c1m-public/platform-auth 0.14.1 → 0.15.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.
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-D7Y5nD3s.js';
|
package/dist/access/index.js
CHANGED
|
@@ -41,20 +41,33 @@ var PLATFORM_PERMISSIONS = [
|
|
|
41
41
|
"platform.users.view"
|
|
42
42
|
];
|
|
43
43
|
var DASH_PERMISSIONS = [
|
|
44
|
+
"dash.activity.view",
|
|
44
45
|
"dash.apps.manage",
|
|
46
|
+
"dash.apps.view",
|
|
45
47
|
"dash.billing.manage",
|
|
46
48
|
"dash.billing.view",
|
|
47
49
|
"dash.channels.manage",
|
|
48
50
|
"dash.customers.manage",
|
|
51
|
+
"dash.customers.view",
|
|
49
52
|
"dash.domains.manage",
|
|
50
53
|
"dash.domains.view",
|
|
54
|
+
"dash.leads.export",
|
|
55
|
+
"dash.leads.view",
|
|
56
|
+
"dash.learning.records.view",
|
|
57
|
+
"dash.learning.view",
|
|
58
|
+
"dash.marketing.view",
|
|
51
59
|
"dash.mcp.access",
|
|
52
60
|
"dash.members.manage",
|
|
61
|
+
"dash.members.view",
|
|
62
|
+
"dash.ops_library.view",
|
|
63
|
+
"dash.overview.view",
|
|
53
64
|
"dash.ownership.transfer",
|
|
54
65
|
"dash.plans.manage",
|
|
55
66
|
"dash.plans.view",
|
|
56
67
|
"dash.publish",
|
|
57
68
|
"dash.settings.manage",
|
|
69
|
+
"dash.settings.view",
|
|
70
|
+
"dash.shop.view",
|
|
58
71
|
"dash.workspaces.admin",
|
|
59
72
|
"dash.workspaces.manage",
|
|
60
73
|
"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-D7Y5nD3s.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-D7Y5nD3s.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
|
@@ -299,20 +299,33 @@ var PLATFORM_PERMISSIONS = [
|
|
|
299
299
|
"platform.users.view"
|
|
300
300
|
];
|
|
301
301
|
var DASH_PERMISSIONS = [
|
|
302
|
+
"dash.activity.view",
|
|
302
303
|
"dash.apps.manage",
|
|
304
|
+
"dash.apps.view",
|
|
303
305
|
"dash.billing.manage",
|
|
304
306
|
"dash.billing.view",
|
|
305
307
|
"dash.channels.manage",
|
|
306
308
|
"dash.customers.manage",
|
|
309
|
+
"dash.customers.view",
|
|
307
310
|
"dash.domains.manage",
|
|
308
311
|
"dash.domains.view",
|
|
312
|
+
"dash.leads.export",
|
|
313
|
+
"dash.leads.view",
|
|
314
|
+
"dash.learning.records.view",
|
|
315
|
+
"dash.learning.view",
|
|
316
|
+
"dash.marketing.view",
|
|
309
317
|
"dash.mcp.access",
|
|
310
318
|
"dash.members.manage",
|
|
319
|
+
"dash.members.view",
|
|
320
|
+
"dash.ops_library.view",
|
|
321
|
+
"dash.overview.view",
|
|
311
322
|
"dash.ownership.transfer",
|
|
312
323
|
"dash.plans.manage",
|
|
313
324
|
"dash.plans.view",
|
|
314
325
|
"dash.publish",
|
|
315
326
|
"dash.settings.manage",
|
|
327
|
+
"dash.settings.view",
|
|
328
|
+
"dash.shop.view",
|
|
316
329
|
"dash.workspaces.admin",
|
|
317
330
|
"dash.workspaces.manage",
|
|
318
331
|
"dash.workspaces.view"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
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"];
|
|
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.0",
|
|
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",
|