@mastra/auth-cloud 1.2.1-alpha.0 → 1.2.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,14 @@
|
|
|
1
1
|
# @mastra/auth-cloud
|
|
2
2
|
|
|
3
|
+
## 1.2.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
|
+
|
|
9
|
+
- Updated dependencies [[`5c0df77`](https://github.com/mastra-ai/mastra/commit/5c0df776c40efa420f8c07a2f3ee66010296618e)]:
|
|
10
|
+
- @mastra/auth@1.1.1
|
|
11
|
+
|
|
3
12
|
## 1.2.1-alpha.0
|
|
4
13
|
|
|
5
14
|
### 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/index.cjs
CHANGED
|
@@ -936,7 +936,7 @@ var MastraCloudAuthProvider = class extends MastraAuthProvider {
|
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
938
|
|
|
939
|
-
// ../../packages/_internals/auth/dist/chunk-
|
|
939
|
+
// ../../packages/_internals/auth/dist/chunk-7SVOHBXQ.js
|
|
940
940
|
var RESOURCE_EXPANSIONS = {
|
|
941
941
|
stored: [
|
|
942
942
|
"stored-agents",
|
package/dist/index.js
CHANGED
|
@@ -934,7 +934,7 @@ var MastraCloudAuthProvider = class extends MastraAuthProvider {
|
|
|
934
934
|
}
|
|
935
935
|
};
|
|
936
936
|
|
|
937
|
-
// ../../packages/_internals/auth/dist/chunk-
|
|
937
|
+
// ../../packages/_internals/auth/dist/chunk-7SVOHBXQ.js
|
|
938
938
|
var RESOURCE_EXPANSIONS = {
|
|
939
939
|
stored: [
|
|
940
940
|
"stored-agents",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/auth-cloud",
|
|
3
|
-
"version": "1.2.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Mastra Cloud authentication with PKCE OAuth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@mastra/auth": "1.1.1
|
|
23
|
+
"@mastra/auth": "1.1.1"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"hono": "^4.0.0"
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"tsup": "^8.5.1",
|
|
34
34
|
"typescript": "^6.0.3",
|
|
35
35
|
"vitest": "4.1.8",
|
|
36
|
-
"@internal/
|
|
37
|
-
"@internal/
|
|
38
|
-
"@internal/types-builder": "0.0.
|
|
36
|
+
"@internal/auth": "0.0.1",
|
|
37
|
+
"@internal/lint": "0.0.109",
|
|
38
|
+
"@internal/types-builder": "0.0.84"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|