@mastra/auth 1.1.1-alpha.0 → 1.1.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @mastra/auth
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Improved auth package builds by removing the direct core dependency from auth providers while preserving the existing public auth APIs. ([#17142](https://github.com/mastra-ai/mastra/pull/17142))
|
|
8
|
+
|
|
3
9
|
## 1.1.1-alpha.0
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* All known API resources.
|
|
11
11
|
* Derived from SERVER_ROUTES paths in @mastra/server.
|
|
12
12
|
*/
|
|
13
|
-
export declare const RESOURCES: readonly ["a2a", "agent-builder", "agents", "auth", "background-tasks", "channels", "datasets", "embedders", "experiments", "
|
|
13
|
+
export declare const RESOURCES: readonly ["a2a", "agent-builder", "agent-controller", "agents", "auth", "background-tasks", "channels", "datasets", "embedders", "experiments", "infrastructure", "logs", "mcp", "memory", "observability", "processor-providers", "processors", "schedules", "scores", "stored-agents", "stored-mcp-clients", "stored-prompt-blocks", "stored-scorers", "stored-skills", "stored-workspaces", "system", "tool-providers", "tools", "vector", "vectors", "workflows", "workspaces"];
|
|
14
14
|
/**
|
|
15
15
|
* Resource type union.
|
|
16
16
|
*/
|
|
@@ -54,6 +54,8 @@ export declare const PERMISSION_PATTERNS: {
|
|
|
54
54
|
readonly 'a2a:*': "a2a:*";
|
|
55
55
|
/** Full access to agent builder */
|
|
56
56
|
readonly 'agent-builder:*': "agent-builder:*";
|
|
57
|
+
/** Full access to agent controller sessions */
|
|
58
|
+
readonly 'agent-controller:*': "agent-controller:*";
|
|
57
59
|
/** Full access to agents */
|
|
58
60
|
readonly 'agents:*': "agents:*";
|
|
59
61
|
/** Full access to auth */
|
|
@@ -68,8 +70,6 @@ export declare const PERMISSION_PATTERNS: {
|
|
|
68
70
|
readonly 'embedders:*': "embedders:*";
|
|
69
71
|
/** Full access to experiments */
|
|
70
72
|
readonly 'experiments:*': "experiments:*";
|
|
71
|
-
/** Full access to harness sessions */
|
|
72
|
-
readonly 'harness:*': "harness:*";
|
|
73
73
|
/** Full access to infrastructure */
|
|
74
74
|
readonly 'infrastructure:*': "infrastructure:*";
|
|
75
75
|
/** Full access to logs */
|
|
@@ -124,6 +124,10 @@ export declare const PERMISSION_PATTERNS: {
|
|
|
124
124
|
readonly 'agent-builder:read': "agent-builder:read";
|
|
125
125
|
/** Create and modify agent builder */
|
|
126
126
|
readonly 'agent-builder:write': "agent-builder:write";
|
|
127
|
+
/** Execute agent controller sessions */
|
|
128
|
+
readonly 'agent-controller:execute': "agent-controller:execute";
|
|
129
|
+
/** View agent controller sessions */
|
|
130
|
+
readonly 'agent-controller:read': "agent-controller:read";
|
|
127
131
|
/** Create agents */
|
|
128
132
|
readonly 'agents:create': "agents:create";
|
|
129
133
|
/** Delete agents */
|
|
@@ -154,10 +158,6 @@ export declare const PERMISSION_PATTERNS: {
|
|
|
154
158
|
readonly 'embedders:read': "embedders:read";
|
|
155
159
|
/** View experiments */
|
|
156
160
|
readonly 'experiments:read': "experiments:read";
|
|
157
|
-
/** Execute harness sessions */
|
|
158
|
-
readonly 'harness:execute': "harness:execute";
|
|
159
|
-
/** View harness sessions */
|
|
160
|
-
readonly 'harness:read': "harness:read";
|
|
161
161
|
/** View infrastructure */
|
|
162
162
|
readonly 'infrastructure:read': "infrastructure:read";
|
|
163
163
|
/** View logs */
|
|
@@ -303,7 +303,7 @@ export type PermissionPattern = keyof typeof PERMISSION_PATTERNS;
|
|
|
303
303
|
/**
|
|
304
304
|
* All valid resource:action permission combinations (excludes wildcards).
|
|
305
305
|
*/
|
|
306
|
-
export declare const PERMISSIONS: readonly ["a2a:read", "a2a:write", "agent-builder:execute", "agent-builder:read", "agent-builder:write", "agents:create", "agents:delete", "agents:execute", "agents:read", "agents:write", "auth:read", "background-tasks:read", "channels:read", "channels:write", "datasets:delete", "datasets:execute", "datasets:read", "datasets:write", "embedders:read", "experiments:read", "
|
|
306
|
+
export declare const PERMISSIONS: readonly ["a2a:read", "a2a:write", "agent-builder:execute", "agent-builder:read", "agent-builder:write", "agent-controller:execute", "agent-controller:read", "agents:create", "agents:delete", "agents:execute", "agents:read", "agents:write", "auth:read", "background-tasks:read", "channels:read", "channels:write", "datasets:delete", "datasets:execute", "datasets:read", "datasets:write", "embedders:read", "experiments:read", "infrastructure:read", "logs:read", "mcp:execute", "mcp:read", "mcp:write", "memory:delete", "memory:execute", "memory:read", "memory:write", "observability:read", "observability:write", "processor-providers:read", "processors:execute", "processors:read", "schedules:execute", "schedules:read", "schedules:write", "scores:read", "scores:write", "stored-agents:delete", "stored-agents:publish", "stored-agents:read", "stored-agents:write", "stored-mcp-clients:delete", "stored-mcp-clients:publish", "stored-mcp-clients:read", "stored-mcp-clients:write", "stored-prompt-blocks:delete", "stored-prompt-blocks:publish", "stored-prompt-blocks:read", "stored-prompt-blocks:write", "stored-scorers:delete", "stored-scorers:publish", "stored-scorers:read", "stored-scorers:write", "stored-skills:delete", "stored-skills:publish", "stored-skills:read", "stored-skills:write", "stored-workspaces:delete", "stored-workspaces:read", "stored-workspaces:write", "system:read", "tool-providers:delete", "tool-providers:read", "tool-providers:write", "tools:execute", "tools:read", "vector:delete", "vector:execute", "vector:read", "vector:write", "vectors:read", "workflows:delete", "workflows:execute", "workflows:read", "workflows:write", "workspaces:delete", "workspaces:read", "workspaces:write"];
|
|
307
307
|
/**
|
|
308
308
|
* Specific permission type (e.g., 'agents:read', 'workflows:execute').
|
|
309
309
|
*/
|
|
@@ -325,6 +325,10 @@ export declare const MastraFGAPermissions: {
|
|
|
325
325
|
readonly AGENT_BUILDER_READ: "agent-builder:read";
|
|
326
326
|
/** Create and modify agent builder */
|
|
327
327
|
readonly AGENT_BUILDER_WRITE: "agent-builder:write";
|
|
328
|
+
/** Execute agent controller sessions */
|
|
329
|
+
readonly AGENT_CONTROLLER_EXECUTE: "agent-controller:execute";
|
|
330
|
+
/** View agent controller sessions */
|
|
331
|
+
readonly AGENT_CONTROLLER_READ: "agent-controller:read";
|
|
328
332
|
/** Create agents */
|
|
329
333
|
readonly AGENTS_CREATE: "agents:create";
|
|
330
334
|
/** Delete agents */
|
|
@@ -355,10 +359,6 @@ export declare const MastraFGAPermissions: {
|
|
|
355
359
|
readonly EMBEDDERS_READ: "embedders:read";
|
|
356
360
|
/** View experiments */
|
|
357
361
|
readonly EXPERIMENTS_READ: "experiments:read";
|
|
358
|
-
/** Execute harness sessions */
|
|
359
|
-
readonly HARNESS_EXECUTE: "harness:execute";
|
|
360
|
-
/** View harness sessions */
|
|
361
|
-
readonly HARNESS_READ: "harness:read";
|
|
362
362
|
/** View infrastructure */
|
|
363
363
|
readonly INFRASTRUCTURE_READ: "infrastructure:read";
|
|
364
364
|
/** View logs */
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -15,7 +15,7 @@ Authentication is optional. If no auth is configured, all routes and Studio are
|
|
|
15
15
|
|
|
16
16
|
See [Custom API Routes](https://mastra.ai/docs/server/custom-api-routes) for controlling authentication on custom endpoints. Visit the [Studio Auth docs](https://mastra.ai/docs/studio/auth) for more on securing your Studio deployment.
|
|
17
17
|
|
|
18
|
-
> **Note:** Authentication for Studio is currently supported by the following providers: Simple Auth, JWT, WorkOS,
|
|
18
|
+
> **Note:** Authentication for Studio is currently supported by the following providers: Simple Auth, JWT, WorkOS, Better Auth, and Google.
|
|
19
19
|
|
|
20
20
|
## Available providers
|
|
21
21
|
|
|
@@ -30,6 +30,7 @@ See [Custom API Routes](https://mastra.ai/docs/server/custom-api-routes) for con
|
|
|
30
30
|
- [Better Auth](https://mastra.ai/docs/server/auth/better-auth)
|
|
31
31
|
- [Clerk](https://mastra.ai/docs/server/auth/clerk)
|
|
32
32
|
- [Firebase](https://mastra.ai/docs/server/auth/firebase)
|
|
33
|
+
- [Google](https://mastra.ai/docs/server/auth/google)
|
|
33
34
|
- [Okta](https://mastra.ai/docs/server/auth/okta)
|
|
34
35
|
- [Supabase](https://mastra.ai/docs/server/auth/supabase)
|
|
35
36
|
- [WorkOS](https://mastra.ai/docs/server/auth/workos)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/auth",
|
|
3
|
-
"version": "1.1.1
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"tsx": "^4.22.4",
|
|
39
39
|
"typescript": "^6.0.3",
|
|
40
40
|
"vitest": "4.1.8",
|
|
41
|
-
"@internal/auth": "0.0.
|
|
42
|
-
"@internal/lint": "0.0.
|
|
43
|
-
"@internal/types-builder": "0.0.
|
|
41
|
+
"@internal/auth": "0.0.1",
|
|
42
|
+
"@internal/lint": "0.0.109",
|
|
43
|
+
"@internal/types-builder": "0.0.84"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://mastra.ai",
|
|
46
46
|
"repository": {
|