@digibuffer/access 0.2.0 → 0.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.
- package/catalog.js +7 -0
- package/index.d.ts +4 -2
- package/package.json +1 -1
package/catalog.js
CHANGED
|
@@ -16,6 +16,8 @@ export const apps = Object.freeze({
|
|
|
16
16
|
digisender: "DigiSender",
|
|
17
17
|
preview: "Cloud Preview",
|
|
18
18
|
agentworkflows: "Agent Workflows",
|
|
19
|
+
digimeet: "DigiMeet",
|
|
20
|
+
jobs: "Job Manager",
|
|
19
21
|
});
|
|
20
22
|
|
|
21
23
|
/** @type {Readonly<Record<string, { app: keyof typeof apps; label: string; description: string; scope: "company" | "product" }>>} */
|
|
@@ -47,6 +49,11 @@ export const catalog = Object.freeze({
|
|
|
47
49
|
|
|
48
50
|
"agentworkflows.use": { app: "agentworkflows", scope: "company", label: "Use Agent Workflows", description: "Sign in and build and run their own workflows." },
|
|
49
51
|
"agentworkflows.admin": { app: "agentworkflows", scope: "company", label: "Agent Workflows admin", description: "Shared MCP servers, models, API keys and everyone's runs." },
|
|
52
|
+
|
|
53
|
+
"digimeet.use": { app: "digimeet", scope: "company", label: "Use DigiMeet", description: "Sign in and join the meetings they're on (guests need nothing: their link lets them in)." },
|
|
54
|
+
|
|
55
|
+
"jobs.use": { app: "jobs", scope: "company", label: "Use Job Manager", description: "Sign in, see every job and its runs; run, retry and cancel jobs." },
|
|
56
|
+
"jobs.admin": { app: "jobs", scope: "company", label: "Job Manager admin", description: "Also endpoints, connected apps, queues, API keys and settings." },
|
|
50
57
|
});
|
|
51
58
|
|
|
52
59
|
export const isPermission = (name) => typeof name === "string" && Object.prototype.hasOwnProperty.call(catalog, name);
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type AppKey = "billing" | "supportdesk" | "digichat" | "knowledgehub" | "digimail" | "digimarket" | "digisender" | "preview" | "agentworkflows";
|
|
1
|
+
export type AppKey = "billing" | "supportdesk" | "digichat" | "knowledgehub" | "digimail" | "digimarket" | "digisender" | "preview" | "agentworkflows" | "digimeet" | "jobs";
|
|
2
2
|
export type Permission =
|
|
3
3
|
| "billing.customers.view" | "billing.refunds.request" | "billing.refunds.approve" | "billing.catalog.manage" | "billing.revenue.view"
|
|
4
4
|
| "supportdesk.agent" | "supportdesk.manage"
|
|
@@ -8,7 +8,9 @@ export type Permission =
|
|
|
8
8
|
| "digimarket.leads.view" | "digimarket.rules.manage"
|
|
9
9
|
| "digisender.use" | "digisender.admin"
|
|
10
10
|
| "preview.use" | "preview.admin"
|
|
11
|
-
| "agentworkflows.use" | "agentworkflows.admin"
|
|
11
|
+
| "agentworkflows.use" | "agentworkflows.admin"
|
|
12
|
+
| "digimeet.use"
|
|
13
|
+
| "jobs.use" | "jobs.admin";
|
|
12
14
|
|
|
13
15
|
export interface PermissionInfo { app: AppKey; label: string; description: string; scope: "company" | "product" }
|
|
14
16
|
/** Permission → products ("*" for all) */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digibuffer/access",
|
|
3
3
|
"description": "DigiBuffer staff permissions: the catalog every app shares and the can() check. Holds no secrets and no list of who has what.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": ["index.js", "index.d.ts", "catalog.js", "README.md"],
|
|
7
7
|
"exports": {
|