@mastra/auth-studio 1.3.4 → 1.3.5-alpha.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/README.md +39 -0
- package/dist/_types/@internal_auth/dist/_types/@internal_core/dist/base/index.d.ts +1 -1
- package/dist/_types/@internal_auth/dist/_types/@internal_core/dist/index-Biaf3BmX.d.ts +319 -0
- package/dist/_types/@internal_auth/dist/ee/interfaces/permissions.generated.d.ts +220 -220
- package/dist/index.cjs +89 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +89 -5
- package/dist/index.js.map +1 -1
- package/package.json +6 -7
- package/CHANGELOG.md +0 -240
- package/dist/_types/@internal_auth/dist/_types/@internal_core/dist/index-S1lgaKO7.d.ts +0 -218
|
@@ -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 [
|
|
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-workflows', 'stored-workspaces', 'system', 'tool-providers', 'tools', 'vector', 'vectors', 'workflows', 'workspaces'];
|
|
14
14
|
/**
|
|
15
15
|
* Resource type union.
|
|
16
16
|
*/
|
|
@@ -24,7 +24,7 @@ export type Resource = (typeof RESOURCES)[number];
|
|
|
24
24
|
* - DELETE → delete
|
|
25
25
|
* - Additional actions from explicit requiresPermission overrides
|
|
26
26
|
*/
|
|
27
|
-
export declare const ACTIONS: readonly [
|
|
27
|
+
export declare const ACTIONS: readonly ['create', 'delete', 'execute', 'publish', 'read', 'share', 'write'];
|
|
28
28
|
/**
|
|
29
29
|
* Action type union.
|
|
30
30
|
*/
|
|
@@ -35,269 +35,269 @@ export type Action = (typeof ACTIONS)[number];
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const PERMISSION_PATTERNS: {
|
|
37
37
|
/** Full access to all resources and actions */
|
|
38
|
-
readonly '*':
|
|
38
|
+
readonly '*': '*';
|
|
39
39
|
/** Create all resources */
|
|
40
|
-
readonly '*:create':
|
|
40
|
+
readonly '*:create': '*:create';
|
|
41
41
|
/** Delete all resources */
|
|
42
|
-
readonly '*:delete':
|
|
42
|
+
readonly '*:delete': '*:delete';
|
|
43
43
|
/** Execute all resources */
|
|
44
|
-
readonly '*:execute':
|
|
44
|
+
readonly '*:execute': '*:execute';
|
|
45
45
|
/** Publish, activate, or restore all resources */
|
|
46
|
-
readonly '*:publish':
|
|
46
|
+
readonly '*:publish': '*:publish';
|
|
47
47
|
/** View all resources */
|
|
48
|
-
readonly '*:read':
|
|
48
|
+
readonly '*:read': '*:read';
|
|
49
49
|
/** Change visibility/audience all resources */
|
|
50
|
-
readonly '*:share':
|
|
50
|
+
readonly '*:share': '*:share';
|
|
51
51
|
/** Create and modify all resources */
|
|
52
|
-
readonly '*:write':
|
|
52
|
+
readonly '*:write': '*:write';
|
|
53
53
|
/** Full access to agent-to-agent communication */
|
|
54
|
-
readonly 'a2a:*':
|
|
54
|
+
readonly 'a2a:*': 'a2a:*';
|
|
55
55
|
/** Full access to agent builder */
|
|
56
|
-
readonly 'agent-builder:*':
|
|
56
|
+
readonly 'agent-builder:*': 'agent-builder:*';
|
|
57
57
|
/** Full access to agent controller sessions */
|
|
58
|
-
readonly 'agent-controller:*':
|
|
58
|
+
readonly 'agent-controller:*': 'agent-controller:*';
|
|
59
59
|
/** Full access to agents */
|
|
60
|
-
readonly 'agents:*':
|
|
60
|
+
readonly 'agents:*': 'agents:*';
|
|
61
61
|
/** Full access to auth */
|
|
62
|
-
readonly 'auth:*':
|
|
62
|
+
readonly 'auth:*': 'auth:*';
|
|
63
63
|
/** Full access to background tasks */
|
|
64
|
-
readonly 'background-tasks:*':
|
|
64
|
+
readonly 'background-tasks:*': 'background-tasks:*';
|
|
65
65
|
/** Full access to channels */
|
|
66
|
-
readonly 'channels:*':
|
|
66
|
+
readonly 'channels:*': 'channels:*';
|
|
67
67
|
/** Full access to datasets */
|
|
68
|
-
readonly 'datasets:*':
|
|
68
|
+
readonly 'datasets:*': 'datasets:*';
|
|
69
69
|
/** Full access to embedders */
|
|
70
|
-
readonly 'embedders:*':
|
|
70
|
+
readonly 'embedders:*': 'embedders:*';
|
|
71
71
|
/** Full access to experiments */
|
|
72
|
-
readonly 'experiments:*':
|
|
72
|
+
readonly 'experiments:*': 'experiments:*';
|
|
73
73
|
/** Full access to infrastructure */
|
|
74
|
-
readonly 'infrastructure:*':
|
|
74
|
+
readonly 'infrastructure:*': 'infrastructure:*';
|
|
75
75
|
/** Full access to logs */
|
|
76
|
-
readonly 'logs:*':
|
|
76
|
+
readonly 'logs:*': 'logs:*';
|
|
77
77
|
/** Full access to MCP servers */
|
|
78
|
-
readonly 'mcp:*':
|
|
78
|
+
readonly 'mcp:*': 'mcp:*';
|
|
79
79
|
/** Full access to memory and threads */
|
|
80
|
-
readonly 'memory:*':
|
|
80
|
+
readonly 'memory:*': 'memory:*';
|
|
81
81
|
/** Full access to traces and spans */
|
|
82
|
-
readonly 'observability:*':
|
|
82
|
+
readonly 'observability:*': 'observability:*';
|
|
83
83
|
/** Full access to processor-providers */
|
|
84
|
-
readonly 'processor-providers:*':
|
|
84
|
+
readonly 'processor-providers:*': 'processor-providers:*';
|
|
85
85
|
/** Full access to processors */
|
|
86
|
-
readonly 'processors:*':
|
|
86
|
+
readonly 'processors:*': 'processors:*';
|
|
87
87
|
/** Full access to schedules */
|
|
88
|
-
readonly 'schedules:*':
|
|
88
|
+
readonly 'schedules:*': 'schedules:*';
|
|
89
89
|
/** Full access to evaluation scores */
|
|
90
|
-
readonly 'scores:*':
|
|
90
|
+
readonly 'scores:*': 'scores:*';
|
|
91
91
|
/** Full access to stored agents */
|
|
92
|
-
readonly 'stored-agents:*':
|
|
92
|
+
readonly 'stored-agents:*': 'stored-agents:*';
|
|
93
93
|
/** Full access to stored MCP clients */
|
|
94
|
-
readonly 'stored-mcp-clients:*':
|
|
94
|
+
readonly 'stored-mcp-clients:*': 'stored-mcp-clients:*';
|
|
95
95
|
/** Full access to stored prompt blocks */
|
|
96
|
-
readonly 'stored-prompt-blocks:*':
|
|
96
|
+
readonly 'stored-prompt-blocks:*': 'stored-prompt-blocks:*';
|
|
97
97
|
/** Full access to stored scorers */
|
|
98
|
-
readonly 'stored-scorers:*':
|
|
98
|
+
readonly 'stored-scorers:*': 'stored-scorers:*';
|
|
99
99
|
/** Full access to stored skills */
|
|
100
|
-
readonly 'stored-skills:*':
|
|
100
|
+
readonly 'stored-skills:*': 'stored-skills:*';
|
|
101
101
|
/** Full access to stored workflows */
|
|
102
|
-
readonly 'stored-workflows:*':
|
|
102
|
+
readonly 'stored-workflows:*': 'stored-workflows:*';
|
|
103
103
|
/** Full access to stored workspaces */
|
|
104
|
-
readonly 'stored-workspaces:*':
|
|
104
|
+
readonly 'stored-workspaces:*': 'stored-workspaces:*';
|
|
105
105
|
/** Full access to system info */
|
|
106
|
-
readonly 'system:*':
|
|
106
|
+
readonly 'system:*': 'system:*';
|
|
107
107
|
/** Full access to tool-providers */
|
|
108
|
-
readonly 'tool-providers:*':
|
|
108
|
+
readonly 'tool-providers:*': 'tool-providers:*';
|
|
109
109
|
/** Full access to tools */
|
|
110
|
-
readonly 'tools:*':
|
|
110
|
+
readonly 'tools:*': 'tools:*';
|
|
111
111
|
/** Full access to vector stores */
|
|
112
|
-
readonly 'vector:*':
|
|
112
|
+
readonly 'vector:*': 'vector:*';
|
|
113
113
|
/** Full access to vectors */
|
|
114
|
-
readonly 'vectors:*':
|
|
114
|
+
readonly 'vectors:*': 'vectors:*';
|
|
115
115
|
/** Full access to workflows */
|
|
116
|
-
readonly 'workflows:*':
|
|
116
|
+
readonly 'workflows:*': 'workflows:*';
|
|
117
117
|
/** Full access to workspaces */
|
|
118
|
-
readonly 'workspaces:*':
|
|
118
|
+
readonly 'workspaces:*': 'workspaces:*';
|
|
119
119
|
/** View agent-to-agent communication */
|
|
120
|
-
readonly 'a2a:read':
|
|
120
|
+
readonly 'a2a:read': 'a2a:read';
|
|
121
121
|
/** Create and modify agent-to-agent communication */
|
|
122
|
-
readonly 'a2a:write':
|
|
122
|
+
readonly 'a2a:write': 'a2a:write';
|
|
123
123
|
/** Execute agent builder */
|
|
124
|
-
readonly 'agent-builder:execute':
|
|
124
|
+
readonly 'agent-builder:execute': 'agent-builder:execute';
|
|
125
125
|
/** View agent builder */
|
|
126
|
-
readonly 'agent-builder:read':
|
|
126
|
+
readonly 'agent-builder:read': 'agent-builder:read';
|
|
127
127
|
/** Create and modify agent builder */
|
|
128
|
-
readonly 'agent-builder:write':
|
|
128
|
+
readonly 'agent-builder:write': 'agent-builder:write';
|
|
129
129
|
/** Execute agent controller sessions */
|
|
130
|
-
readonly 'agent-controller:execute':
|
|
130
|
+
readonly 'agent-controller:execute': 'agent-controller:execute';
|
|
131
131
|
/** View agent controller sessions */
|
|
132
|
-
readonly 'agent-controller:read':
|
|
132
|
+
readonly 'agent-controller:read': 'agent-controller:read';
|
|
133
133
|
/** Create agents */
|
|
134
|
-
readonly 'agents:create':
|
|
134
|
+
readonly 'agents:create': 'agents:create';
|
|
135
135
|
/** Delete agents */
|
|
136
|
-
readonly 'agents:delete':
|
|
136
|
+
readonly 'agents:delete': 'agents:delete';
|
|
137
137
|
/** Execute agents */
|
|
138
|
-
readonly 'agents:execute':
|
|
138
|
+
readonly 'agents:execute': 'agents:execute';
|
|
139
139
|
/** View agents */
|
|
140
|
-
readonly 'agents:read':
|
|
140
|
+
readonly 'agents:read': 'agents:read';
|
|
141
141
|
/** Create and modify agents */
|
|
142
|
-
readonly 'agents:write':
|
|
142
|
+
readonly 'agents:write': 'agents:write';
|
|
143
143
|
/** View auth */
|
|
144
|
-
readonly 'auth:read':
|
|
144
|
+
readonly 'auth:read': 'auth:read';
|
|
145
145
|
/** View background tasks */
|
|
146
|
-
readonly 'background-tasks:read':
|
|
146
|
+
readonly 'background-tasks:read': 'background-tasks:read';
|
|
147
147
|
/** View channels */
|
|
148
|
-
readonly 'channels:read':
|
|
148
|
+
readonly 'channels:read': 'channels:read';
|
|
149
149
|
/** Create and modify channels */
|
|
150
|
-
readonly 'channels:write':
|
|
150
|
+
readonly 'channels:write': 'channels:write';
|
|
151
151
|
/** Delete datasets */
|
|
152
|
-
readonly 'datasets:delete':
|
|
152
|
+
readonly 'datasets:delete': 'datasets:delete';
|
|
153
153
|
/** Execute datasets */
|
|
154
|
-
readonly 'datasets:execute':
|
|
154
|
+
readonly 'datasets:execute': 'datasets:execute';
|
|
155
155
|
/** View datasets */
|
|
156
|
-
readonly 'datasets:read':
|
|
156
|
+
readonly 'datasets:read': 'datasets:read';
|
|
157
157
|
/** Create and modify datasets */
|
|
158
|
-
readonly 'datasets:write':
|
|
158
|
+
readonly 'datasets:write': 'datasets:write';
|
|
159
159
|
/** View embedders */
|
|
160
|
-
readonly 'embedders:read':
|
|
160
|
+
readonly 'embedders:read': 'embedders:read';
|
|
161
161
|
/** View experiments */
|
|
162
|
-
readonly 'experiments:read':
|
|
162
|
+
readonly 'experiments:read': 'experiments:read';
|
|
163
163
|
/** View infrastructure */
|
|
164
|
-
readonly 'infrastructure:read':
|
|
164
|
+
readonly 'infrastructure:read': 'infrastructure:read';
|
|
165
165
|
/** View logs */
|
|
166
|
-
readonly 'logs:read':
|
|
166
|
+
readonly 'logs:read': 'logs:read';
|
|
167
167
|
/** Execute MCP servers */
|
|
168
|
-
readonly 'mcp:execute':
|
|
168
|
+
readonly 'mcp:execute': 'mcp:execute';
|
|
169
169
|
/** View MCP servers */
|
|
170
|
-
readonly 'mcp:read':
|
|
170
|
+
readonly 'mcp:read': 'mcp:read';
|
|
171
171
|
/** Create and modify MCP servers */
|
|
172
|
-
readonly 'mcp:write':
|
|
172
|
+
readonly 'mcp:write': 'mcp:write';
|
|
173
173
|
/** Delete memory and threads */
|
|
174
|
-
readonly 'memory:delete':
|
|
174
|
+
readonly 'memory:delete': 'memory:delete';
|
|
175
175
|
/** Execute memory and threads */
|
|
176
|
-
readonly 'memory:execute':
|
|
176
|
+
readonly 'memory:execute': 'memory:execute';
|
|
177
177
|
/** View memory and threads */
|
|
178
|
-
readonly 'memory:read':
|
|
178
|
+
readonly 'memory:read': 'memory:read';
|
|
179
179
|
/** Create and modify memory and threads */
|
|
180
|
-
readonly 'memory:write':
|
|
180
|
+
readonly 'memory:write': 'memory:write';
|
|
181
181
|
/** View traces and spans */
|
|
182
|
-
readonly 'observability:read':
|
|
182
|
+
readonly 'observability:read': 'observability:read';
|
|
183
183
|
/** Create and modify traces and spans */
|
|
184
|
-
readonly 'observability:write':
|
|
184
|
+
readonly 'observability:write': 'observability:write';
|
|
185
185
|
/** View processor-providers */
|
|
186
|
-
readonly 'processor-providers:read':
|
|
186
|
+
readonly 'processor-providers:read': 'processor-providers:read';
|
|
187
187
|
/** Execute processors */
|
|
188
|
-
readonly 'processors:execute':
|
|
188
|
+
readonly 'processors:execute': 'processors:execute';
|
|
189
189
|
/** View processors */
|
|
190
|
-
readonly 'processors:read':
|
|
190
|
+
readonly 'processors:read': 'processors:read';
|
|
191
191
|
/** Delete schedules */
|
|
192
|
-
readonly 'schedules:delete':
|
|
192
|
+
readonly 'schedules:delete': 'schedules:delete';
|
|
193
193
|
/** Execute schedules */
|
|
194
|
-
readonly 'schedules:execute':
|
|
194
|
+
readonly 'schedules:execute': 'schedules:execute';
|
|
195
195
|
/** View schedules */
|
|
196
|
-
readonly 'schedules:read':
|
|
196
|
+
readonly 'schedules:read': 'schedules:read';
|
|
197
197
|
/** Create and modify schedules */
|
|
198
|
-
readonly 'schedules:write':
|
|
198
|
+
readonly 'schedules:write': 'schedules:write';
|
|
199
199
|
/** View evaluation scores */
|
|
200
|
-
readonly 'scores:read':
|
|
200
|
+
readonly 'scores:read': 'scores:read';
|
|
201
201
|
/** Create and modify evaluation scores */
|
|
202
|
-
readonly 'scores:write':
|
|
202
|
+
readonly 'scores:write': 'scores:write';
|
|
203
203
|
/** Delete stored agents */
|
|
204
|
-
readonly 'stored-agents:delete':
|
|
204
|
+
readonly 'stored-agents:delete': 'stored-agents:delete';
|
|
205
205
|
/** Publish, activate, or restore stored agents */
|
|
206
|
-
readonly 'stored-agents:publish':
|
|
206
|
+
readonly 'stored-agents:publish': 'stored-agents:publish';
|
|
207
207
|
/** View stored agents */
|
|
208
|
-
readonly 'stored-agents:read':
|
|
208
|
+
readonly 'stored-agents:read': 'stored-agents:read';
|
|
209
209
|
/** Create and modify stored agents */
|
|
210
|
-
readonly 'stored-agents:write':
|
|
210
|
+
readonly 'stored-agents:write': 'stored-agents:write';
|
|
211
211
|
/** Delete stored MCP clients */
|
|
212
|
-
readonly 'stored-mcp-clients:delete':
|
|
212
|
+
readonly 'stored-mcp-clients:delete': 'stored-mcp-clients:delete';
|
|
213
213
|
/** Publish, activate, or restore stored MCP clients */
|
|
214
|
-
readonly 'stored-mcp-clients:publish':
|
|
214
|
+
readonly 'stored-mcp-clients:publish': 'stored-mcp-clients:publish';
|
|
215
215
|
/** View stored MCP clients */
|
|
216
|
-
readonly 'stored-mcp-clients:read':
|
|
216
|
+
readonly 'stored-mcp-clients:read': 'stored-mcp-clients:read';
|
|
217
217
|
/** Create and modify stored MCP clients */
|
|
218
|
-
readonly 'stored-mcp-clients:write':
|
|
218
|
+
readonly 'stored-mcp-clients:write': 'stored-mcp-clients:write';
|
|
219
219
|
/** Delete stored prompt blocks */
|
|
220
|
-
readonly 'stored-prompt-blocks:delete':
|
|
220
|
+
readonly 'stored-prompt-blocks:delete': 'stored-prompt-blocks:delete';
|
|
221
221
|
/** Publish, activate, or restore stored prompt blocks */
|
|
222
|
-
readonly 'stored-prompt-blocks:publish':
|
|
222
|
+
readonly 'stored-prompt-blocks:publish': 'stored-prompt-blocks:publish';
|
|
223
223
|
/** View stored prompt blocks */
|
|
224
|
-
readonly 'stored-prompt-blocks:read':
|
|
224
|
+
readonly 'stored-prompt-blocks:read': 'stored-prompt-blocks:read';
|
|
225
225
|
/** Create and modify stored prompt blocks */
|
|
226
|
-
readonly 'stored-prompt-blocks:write':
|
|
226
|
+
readonly 'stored-prompt-blocks:write': 'stored-prompt-blocks:write';
|
|
227
227
|
/** Delete stored scorers */
|
|
228
|
-
readonly 'stored-scorers:delete':
|
|
228
|
+
readonly 'stored-scorers:delete': 'stored-scorers:delete';
|
|
229
229
|
/** Publish, activate, or restore stored scorers */
|
|
230
|
-
readonly 'stored-scorers:publish':
|
|
230
|
+
readonly 'stored-scorers:publish': 'stored-scorers:publish';
|
|
231
231
|
/** View stored scorers */
|
|
232
|
-
readonly 'stored-scorers:read':
|
|
232
|
+
readonly 'stored-scorers:read': 'stored-scorers:read';
|
|
233
233
|
/** Create and modify stored scorers */
|
|
234
|
-
readonly 'stored-scorers:write':
|
|
234
|
+
readonly 'stored-scorers:write': 'stored-scorers:write';
|
|
235
235
|
/** Delete stored skills */
|
|
236
|
-
readonly 'stored-skills:delete':
|
|
236
|
+
readonly 'stored-skills:delete': 'stored-skills:delete';
|
|
237
237
|
/** Publish, activate, or restore stored skills */
|
|
238
|
-
readonly 'stored-skills:publish':
|
|
238
|
+
readonly 'stored-skills:publish': 'stored-skills:publish';
|
|
239
239
|
/** View stored skills */
|
|
240
|
-
readonly 'stored-skills:read':
|
|
240
|
+
readonly 'stored-skills:read': 'stored-skills:read';
|
|
241
241
|
/** Create and modify stored skills */
|
|
242
|
-
readonly 'stored-skills:write':
|
|
242
|
+
readonly 'stored-skills:write': 'stored-skills:write';
|
|
243
243
|
/** View stored workflows */
|
|
244
|
-
readonly 'stored-workflows:read':
|
|
244
|
+
readonly 'stored-workflows:read': 'stored-workflows:read';
|
|
245
245
|
/** Create and modify stored workflows */
|
|
246
|
-
readonly 'stored-workflows:write':
|
|
246
|
+
readonly 'stored-workflows:write': 'stored-workflows:write';
|
|
247
247
|
/** Delete stored workspaces */
|
|
248
|
-
readonly 'stored-workspaces:delete':
|
|
248
|
+
readonly 'stored-workspaces:delete': 'stored-workspaces:delete';
|
|
249
249
|
/** View stored workspaces */
|
|
250
|
-
readonly 'stored-workspaces:read':
|
|
250
|
+
readonly 'stored-workspaces:read': 'stored-workspaces:read';
|
|
251
251
|
/** Create and modify stored workspaces */
|
|
252
|
-
readonly 'stored-workspaces:write':
|
|
252
|
+
readonly 'stored-workspaces:write': 'stored-workspaces:write';
|
|
253
253
|
/** View system info */
|
|
254
|
-
readonly 'system:read':
|
|
254
|
+
readonly 'system:read': 'system:read';
|
|
255
255
|
/** Delete tool-providers */
|
|
256
|
-
readonly 'tool-providers:delete':
|
|
256
|
+
readonly 'tool-providers:delete': 'tool-providers:delete';
|
|
257
257
|
/** View tool-providers */
|
|
258
|
-
readonly 'tool-providers:read':
|
|
258
|
+
readonly 'tool-providers:read': 'tool-providers:read';
|
|
259
259
|
/** Create and modify tool-providers */
|
|
260
|
-
readonly 'tool-providers:write':
|
|
260
|
+
readonly 'tool-providers:write': 'tool-providers:write';
|
|
261
261
|
/** Execute tools */
|
|
262
|
-
readonly 'tools:execute':
|
|
262
|
+
readonly 'tools:execute': 'tools:execute';
|
|
263
263
|
/** View tools */
|
|
264
|
-
readonly 'tools:read':
|
|
264
|
+
readonly 'tools:read': 'tools:read';
|
|
265
265
|
/** Delete vector stores */
|
|
266
|
-
readonly 'vector:delete':
|
|
266
|
+
readonly 'vector:delete': 'vector:delete';
|
|
267
267
|
/** Execute vector stores */
|
|
268
|
-
readonly 'vector:execute':
|
|
268
|
+
readonly 'vector:execute': 'vector:execute';
|
|
269
269
|
/** View vector stores */
|
|
270
|
-
readonly 'vector:read':
|
|
270
|
+
readonly 'vector:read': 'vector:read';
|
|
271
271
|
/** Create and modify vector stores */
|
|
272
|
-
readonly 'vector:write':
|
|
272
|
+
readonly 'vector:write': 'vector:write';
|
|
273
273
|
/** View vectors */
|
|
274
|
-
readonly 'vectors:read':
|
|
274
|
+
readonly 'vectors:read': 'vectors:read';
|
|
275
275
|
/** Delete workflows */
|
|
276
|
-
readonly 'workflows:delete':
|
|
276
|
+
readonly 'workflows:delete': 'workflows:delete';
|
|
277
277
|
/** Execute workflows */
|
|
278
|
-
readonly 'workflows:execute':
|
|
278
|
+
readonly 'workflows:execute': 'workflows:execute';
|
|
279
279
|
/** View workflows */
|
|
280
|
-
readonly 'workflows:read':
|
|
280
|
+
readonly 'workflows:read': 'workflows:read';
|
|
281
281
|
/** Create and modify workflows */
|
|
282
|
-
readonly 'workflows:write':
|
|
282
|
+
readonly 'workflows:write': 'workflows:write';
|
|
283
283
|
/** Delete workspaces */
|
|
284
|
-
readonly 'workspaces:delete':
|
|
284
|
+
readonly 'workspaces:delete': 'workspaces:delete';
|
|
285
285
|
/** View workspaces */
|
|
286
|
-
readonly 'workspaces:read':
|
|
286
|
+
readonly 'workspaces:read': 'workspaces:read';
|
|
287
287
|
/** Create and modify workspaces */
|
|
288
|
-
readonly 'workspaces:write':
|
|
288
|
+
readonly 'workspaces:write': 'workspaces:write';
|
|
289
289
|
/** Full access to all stored resource families */
|
|
290
|
-
readonly 'stored:*':
|
|
290
|
+
readonly 'stored:*': 'stored:*';
|
|
291
291
|
/** View all stored resource families */
|
|
292
|
-
readonly 'stored:read':
|
|
292
|
+
readonly 'stored:read': 'stored:read';
|
|
293
293
|
/** Create and modify all stored resource families */
|
|
294
|
-
readonly 'stored:write':
|
|
294
|
+
readonly 'stored:write': 'stored:write';
|
|
295
295
|
/** Delete all stored resource families */
|
|
296
|
-
readonly 'stored:delete':
|
|
296
|
+
readonly 'stored:delete': 'stored:delete';
|
|
297
297
|
/** Change visibility/audience stored agents */
|
|
298
|
-
readonly 'stored-agents:share':
|
|
298
|
+
readonly 'stored-agents:share': 'stored-agents:share';
|
|
299
299
|
/** Change visibility/audience stored skills */
|
|
300
|
-
readonly 'stored-skills:share':
|
|
300
|
+
readonly 'stored-skills:share': 'stored-skills:share';
|
|
301
301
|
};
|
|
302
302
|
/**
|
|
303
303
|
* Permission pattern that can be used in role definitions.
|
|
@@ -311,7 +311,7 @@ export type PermissionPattern = keyof typeof PERMISSION_PATTERNS;
|
|
|
311
311
|
/**
|
|
312
312
|
* All valid resource:action permission combinations (excludes wildcards).
|
|
313
313
|
*/
|
|
314
|
-
export declare const PERMISSIONS: readonly [
|
|
314
|
+
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:delete', '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-workflows:read', 'stored-workflows: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'];
|
|
315
315
|
/**
|
|
316
316
|
* Specific permission type (e.g., 'agents:read', 'workflows:execute').
|
|
317
317
|
*/
|
|
@@ -324,175 +324,175 @@ export type Permission = (typeof PERMISSIONS)[number];
|
|
|
324
324
|
*/
|
|
325
325
|
export declare const MastraFGAPermissions: {
|
|
326
326
|
/** View agent-to-agent communication */
|
|
327
|
-
readonly A2A_READ:
|
|
327
|
+
readonly A2A_READ: 'a2a:read';
|
|
328
328
|
/** Create and modify agent-to-agent communication */
|
|
329
|
-
readonly A2A_WRITE:
|
|
329
|
+
readonly A2A_WRITE: 'a2a:write';
|
|
330
330
|
/** Execute agent builder */
|
|
331
|
-
readonly AGENT_BUILDER_EXECUTE:
|
|
331
|
+
readonly AGENT_BUILDER_EXECUTE: 'agent-builder:execute';
|
|
332
332
|
/** View agent builder */
|
|
333
|
-
readonly AGENT_BUILDER_READ:
|
|
333
|
+
readonly AGENT_BUILDER_READ: 'agent-builder:read';
|
|
334
334
|
/** Create and modify agent builder */
|
|
335
|
-
readonly AGENT_BUILDER_WRITE:
|
|
335
|
+
readonly AGENT_BUILDER_WRITE: 'agent-builder:write';
|
|
336
336
|
/** Execute agent controller sessions */
|
|
337
|
-
readonly AGENT_CONTROLLER_EXECUTE:
|
|
337
|
+
readonly AGENT_CONTROLLER_EXECUTE: 'agent-controller:execute';
|
|
338
338
|
/** View agent controller sessions */
|
|
339
|
-
readonly AGENT_CONTROLLER_READ:
|
|
339
|
+
readonly AGENT_CONTROLLER_READ: 'agent-controller:read';
|
|
340
340
|
/** Create agents */
|
|
341
|
-
readonly AGENTS_CREATE:
|
|
341
|
+
readonly AGENTS_CREATE: 'agents:create';
|
|
342
342
|
/** Delete agents */
|
|
343
|
-
readonly AGENTS_DELETE:
|
|
343
|
+
readonly AGENTS_DELETE: 'agents:delete';
|
|
344
344
|
/** Execute agents */
|
|
345
|
-
readonly AGENTS_EXECUTE:
|
|
345
|
+
readonly AGENTS_EXECUTE: 'agents:execute';
|
|
346
346
|
/** View agents */
|
|
347
|
-
readonly AGENTS_READ:
|
|
347
|
+
readonly AGENTS_READ: 'agents:read';
|
|
348
348
|
/** Create and modify agents */
|
|
349
|
-
readonly AGENTS_WRITE:
|
|
349
|
+
readonly AGENTS_WRITE: 'agents:write';
|
|
350
350
|
/** View auth */
|
|
351
|
-
readonly AUTH_READ:
|
|
351
|
+
readonly AUTH_READ: 'auth:read';
|
|
352
352
|
/** View background tasks */
|
|
353
|
-
readonly BACKGROUND_TASKS_READ:
|
|
353
|
+
readonly BACKGROUND_TASKS_READ: 'background-tasks:read';
|
|
354
354
|
/** View channels */
|
|
355
|
-
readonly CHANNELS_READ:
|
|
355
|
+
readonly CHANNELS_READ: 'channels:read';
|
|
356
356
|
/** Create and modify channels */
|
|
357
|
-
readonly CHANNELS_WRITE:
|
|
357
|
+
readonly CHANNELS_WRITE: 'channels:write';
|
|
358
358
|
/** Delete datasets */
|
|
359
|
-
readonly DATASETS_DELETE:
|
|
359
|
+
readonly DATASETS_DELETE: 'datasets:delete';
|
|
360
360
|
/** Execute datasets */
|
|
361
|
-
readonly DATASETS_EXECUTE:
|
|
361
|
+
readonly DATASETS_EXECUTE: 'datasets:execute';
|
|
362
362
|
/** View datasets */
|
|
363
|
-
readonly DATASETS_READ:
|
|
363
|
+
readonly DATASETS_READ: 'datasets:read';
|
|
364
364
|
/** Create and modify datasets */
|
|
365
|
-
readonly DATASETS_WRITE:
|
|
365
|
+
readonly DATASETS_WRITE: 'datasets:write';
|
|
366
366
|
/** View embedders */
|
|
367
|
-
readonly EMBEDDERS_READ:
|
|
367
|
+
readonly EMBEDDERS_READ: 'embedders:read';
|
|
368
368
|
/** View experiments */
|
|
369
|
-
readonly EXPERIMENTS_READ:
|
|
369
|
+
readonly EXPERIMENTS_READ: 'experiments:read';
|
|
370
370
|
/** View infrastructure */
|
|
371
|
-
readonly INFRASTRUCTURE_READ:
|
|
371
|
+
readonly INFRASTRUCTURE_READ: 'infrastructure:read';
|
|
372
372
|
/** View logs */
|
|
373
|
-
readonly LOGS_READ:
|
|
373
|
+
readonly LOGS_READ: 'logs:read';
|
|
374
374
|
/** Execute MCP servers */
|
|
375
|
-
readonly MCP_EXECUTE:
|
|
375
|
+
readonly MCP_EXECUTE: 'mcp:execute';
|
|
376
376
|
/** View MCP servers */
|
|
377
|
-
readonly MCP_READ:
|
|
377
|
+
readonly MCP_READ: 'mcp:read';
|
|
378
378
|
/** Create and modify MCP servers */
|
|
379
|
-
readonly MCP_WRITE:
|
|
379
|
+
readonly MCP_WRITE: 'mcp:write';
|
|
380
380
|
/** Delete memory and threads */
|
|
381
|
-
readonly MEMORY_DELETE:
|
|
381
|
+
readonly MEMORY_DELETE: 'memory:delete';
|
|
382
382
|
/** Execute memory and threads */
|
|
383
|
-
readonly MEMORY_EXECUTE:
|
|
383
|
+
readonly MEMORY_EXECUTE: 'memory:execute';
|
|
384
384
|
/** View memory and threads */
|
|
385
|
-
readonly MEMORY_READ:
|
|
385
|
+
readonly MEMORY_READ: 'memory:read';
|
|
386
386
|
/** Create and modify memory and threads */
|
|
387
|
-
readonly MEMORY_WRITE:
|
|
387
|
+
readonly MEMORY_WRITE: 'memory:write';
|
|
388
388
|
/** View traces and spans */
|
|
389
|
-
readonly OBSERVABILITY_READ:
|
|
389
|
+
readonly OBSERVABILITY_READ: 'observability:read';
|
|
390
390
|
/** Create and modify traces and spans */
|
|
391
|
-
readonly OBSERVABILITY_WRITE:
|
|
391
|
+
readonly OBSERVABILITY_WRITE: 'observability:write';
|
|
392
392
|
/** View processor-providers */
|
|
393
|
-
readonly PROCESSOR_PROVIDERS_READ:
|
|
393
|
+
readonly PROCESSOR_PROVIDERS_READ: 'processor-providers:read';
|
|
394
394
|
/** Execute processors */
|
|
395
|
-
readonly PROCESSORS_EXECUTE:
|
|
395
|
+
readonly PROCESSORS_EXECUTE: 'processors:execute';
|
|
396
396
|
/** View processors */
|
|
397
|
-
readonly PROCESSORS_READ:
|
|
397
|
+
readonly PROCESSORS_READ: 'processors:read';
|
|
398
398
|
/** Delete schedules */
|
|
399
|
-
readonly SCHEDULES_DELETE:
|
|
399
|
+
readonly SCHEDULES_DELETE: 'schedules:delete';
|
|
400
400
|
/** Execute schedules */
|
|
401
|
-
readonly SCHEDULES_EXECUTE:
|
|
401
|
+
readonly SCHEDULES_EXECUTE: 'schedules:execute';
|
|
402
402
|
/** View schedules */
|
|
403
|
-
readonly SCHEDULES_READ:
|
|
403
|
+
readonly SCHEDULES_READ: 'schedules:read';
|
|
404
404
|
/** Create and modify schedules */
|
|
405
|
-
readonly SCHEDULES_WRITE:
|
|
405
|
+
readonly SCHEDULES_WRITE: 'schedules:write';
|
|
406
406
|
/** View evaluation scores */
|
|
407
|
-
readonly SCORES_READ:
|
|
407
|
+
readonly SCORES_READ: 'scores:read';
|
|
408
408
|
/** Create and modify evaluation scores */
|
|
409
|
-
readonly SCORES_WRITE:
|
|
409
|
+
readonly SCORES_WRITE: 'scores:write';
|
|
410
410
|
/** Delete stored agents */
|
|
411
|
-
readonly STORED_AGENTS_DELETE:
|
|
411
|
+
readonly STORED_AGENTS_DELETE: 'stored-agents:delete';
|
|
412
412
|
/** Publish, activate, or restore stored agents */
|
|
413
|
-
readonly STORED_AGENTS_PUBLISH:
|
|
413
|
+
readonly STORED_AGENTS_PUBLISH: 'stored-agents:publish';
|
|
414
414
|
/** View stored agents */
|
|
415
|
-
readonly STORED_AGENTS_READ:
|
|
415
|
+
readonly STORED_AGENTS_READ: 'stored-agents:read';
|
|
416
416
|
/** Create and modify stored agents */
|
|
417
|
-
readonly STORED_AGENTS_WRITE:
|
|
417
|
+
readonly STORED_AGENTS_WRITE: 'stored-agents:write';
|
|
418
418
|
/** Delete stored MCP clients */
|
|
419
|
-
readonly STORED_MCP_CLIENTS_DELETE:
|
|
419
|
+
readonly STORED_MCP_CLIENTS_DELETE: 'stored-mcp-clients:delete';
|
|
420
420
|
/** Publish, activate, or restore stored MCP clients */
|
|
421
|
-
readonly STORED_MCP_CLIENTS_PUBLISH:
|
|
421
|
+
readonly STORED_MCP_CLIENTS_PUBLISH: 'stored-mcp-clients:publish';
|
|
422
422
|
/** View stored MCP clients */
|
|
423
|
-
readonly STORED_MCP_CLIENTS_READ:
|
|
423
|
+
readonly STORED_MCP_CLIENTS_READ: 'stored-mcp-clients:read';
|
|
424
424
|
/** Create and modify stored MCP clients */
|
|
425
|
-
readonly STORED_MCP_CLIENTS_WRITE:
|
|
425
|
+
readonly STORED_MCP_CLIENTS_WRITE: 'stored-mcp-clients:write';
|
|
426
426
|
/** Delete stored prompt blocks */
|
|
427
|
-
readonly STORED_PROMPT_BLOCKS_DELETE:
|
|
427
|
+
readonly STORED_PROMPT_BLOCKS_DELETE: 'stored-prompt-blocks:delete';
|
|
428
428
|
/** Publish, activate, or restore stored prompt blocks */
|
|
429
|
-
readonly STORED_PROMPT_BLOCKS_PUBLISH:
|
|
429
|
+
readonly STORED_PROMPT_BLOCKS_PUBLISH: 'stored-prompt-blocks:publish';
|
|
430
430
|
/** View stored prompt blocks */
|
|
431
|
-
readonly STORED_PROMPT_BLOCKS_READ:
|
|
431
|
+
readonly STORED_PROMPT_BLOCKS_READ: 'stored-prompt-blocks:read';
|
|
432
432
|
/** Create and modify stored prompt blocks */
|
|
433
|
-
readonly STORED_PROMPT_BLOCKS_WRITE:
|
|
433
|
+
readonly STORED_PROMPT_BLOCKS_WRITE: 'stored-prompt-blocks:write';
|
|
434
434
|
/** Delete stored scorers */
|
|
435
|
-
readonly STORED_SCORERS_DELETE:
|
|
435
|
+
readonly STORED_SCORERS_DELETE: 'stored-scorers:delete';
|
|
436
436
|
/** Publish, activate, or restore stored scorers */
|
|
437
|
-
readonly STORED_SCORERS_PUBLISH:
|
|
437
|
+
readonly STORED_SCORERS_PUBLISH: 'stored-scorers:publish';
|
|
438
438
|
/** View stored scorers */
|
|
439
|
-
readonly STORED_SCORERS_READ:
|
|
439
|
+
readonly STORED_SCORERS_READ: 'stored-scorers:read';
|
|
440
440
|
/** Create and modify stored scorers */
|
|
441
|
-
readonly STORED_SCORERS_WRITE:
|
|
441
|
+
readonly STORED_SCORERS_WRITE: 'stored-scorers:write';
|
|
442
442
|
/** Delete stored skills */
|
|
443
|
-
readonly STORED_SKILLS_DELETE:
|
|
443
|
+
readonly STORED_SKILLS_DELETE: 'stored-skills:delete';
|
|
444
444
|
/** Publish, activate, or restore stored skills */
|
|
445
|
-
readonly STORED_SKILLS_PUBLISH:
|
|
445
|
+
readonly STORED_SKILLS_PUBLISH: 'stored-skills:publish';
|
|
446
446
|
/** View stored skills */
|
|
447
|
-
readonly STORED_SKILLS_READ:
|
|
447
|
+
readonly STORED_SKILLS_READ: 'stored-skills:read';
|
|
448
448
|
/** Create and modify stored skills */
|
|
449
|
-
readonly STORED_SKILLS_WRITE:
|
|
449
|
+
readonly STORED_SKILLS_WRITE: 'stored-skills:write';
|
|
450
450
|
/** View stored workflows */
|
|
451
|
-
readonly STORED_WORKFLOWS_READ:
|
|
451
|
+
readonly STORED_WORKFLOWS_READ: 'stored-workflows:read';
|
|
452
452
|
/** Create and modify stored workflows */
|
|
453
|
-
readonly STORED_WORKFLOWS_WRITE:
|
|
453
|
+
readonly STORED_WORKFLOWS_WRITE: 'stored-workflows:write';
|
|
454
454
|
/** Delete stored workspaces */
|
|
455
|
-
readonly STORED_WORKSPACES_DELETE:
|
|
455
|
+
readonly STORED_WORKSPACES_DELETE: 'stored-workspaces:delete';
|
|
456
456
|
/** View stored workspaces */
|
|
457
|
-
readonly STORED_WORKSPACES_READ:
|
|
457
|
+
readonly STORED_WORKSPACES_READ: 'stored-workspaces:read';
|
|
458
458
|
/** Create and modify stored workspaces */
|
|
459
|
-
readonly STORED_WORKSPACES_WRITE:
|
|
459
|
+
readonly STORED_WORKSPACES_WRITE: 'stored-workspaces:write';
|
|
460
460
|
/** View system info */
|
|
461
|
-
readonly SYSTEM_READ:
|
|
461
|
+
readonly SYSTEM_READ: 'system:read';
|
|
462
462
|
/** Delete tool-providers */
|
|
463
|
-
readonly TOOL_PROVIDERS_DELETE:
|
|
463
|
+
readonly TOOL_PROVIDERS_DELETE: 'tool-providers:delete';
|
|
464
464
|
/** View tool-providers */
|
|
465
|
-
readonly TOOL_PROVIDERS_READ:
|
|
465
|
+
readonly TOOL_PROVIDERS_READ: 'tool-providers:read';
|
|
466
466
|
/** Create and modify tool-providers */
|
|
467
|
-
readonly TOOL_PROVIDERS_WRITE:
|
|
467
|
+
readonly TOOL_PROVIDERS_WRITE: 'tool-providers:write';
|
|
468
468
|
/** Execute tools */
|
|
469
|
-
readonly TOOLS_EXECUTE:
|
|
469
|
+
readonly TOOLS_EXECUTE: 'tools:execute';
|
|
470
470
|
/** View tools */
|
|
471
|
-
readonly TOOLS_READ:
|
|
471
|
+
readonly TOOLS_READ: 'tools:read';
|
|
472
472
|
/** Delete vector stores */
|
|
473
|
-
readonly VECTOR_DELETE:
|
|
473
|
+
readonly VECTOR_DELETE: 'vector:delete';
|
|
474
474
|
/** Execute vector stores */
|
|
475
|
-
readonly VECTOR_EXECUTE:
|
|
475
|
+
readonly VECTOR_EXECUTE: 'vector:execute';
|
|
476
476
|
/** View vector stores */
|
|
477
|
-
readonly VECTOR_READ:
|
|
477
|
+
readonly VECTOR_READ: 'vector:read';
|
|
478
478
|
/** Create and modify vector stores */
|
|
479
|
-
readonly VECTOR_WRITE:
|
|
479
|
+
readonly VECTOR_WRITE: 'vector:write';
|
|
480
480
|
/** View vectors */
|
|
481
|
-
readonly VECTORS_READ:
|
|
481
|
+
readonly VECTORS_READ: 'vectors:read';
|
|
482
482
|
/** Delete workflows */
|
|
483
|
-
readonly WORKFLOWS_DELETE:
|
|
483
|
+
readonly WORKFLOWS_DELETE: 'workflows:delete';
|
|
484
484
|
/** Execute workflows */
|
|
485
|
-
readonly WORKFLOWS_EXECUTE:
|
|
485
|
+
readonly WORKFLOWS_EXECUTE: 'workflows:execute';
|
|
486
486
|
/** View workflows */
|
|
487
|
-
readonly WORKFLOWS_READ:
|
|
487
|
+
readonly WORKFLOWS_READ: 'workflows:read';
|
|
488
488
|
/** Create and modify workflows */
|
|
489
|
-
readonly WORKFLOWS_WRITE:
|
|
489
|
+
readonly WORKFLOWS_WRITE: 'workflows:write';
|
|
490
490
|
/** Delete workspaces */
|
|
491
|
-
readonly WORKSPACES_DELETE:
|
|
491
|
+
readonly WORKSPACES_DELETE: 'workspaces:delete';
|
|
492
492
|
/** View workspaces */
|
|
493
|
-
readonly WORKSPACES_READ:
|
|
493
|
+
readonly WORKSPACES_READ: 'workspaces:read';
|
|
494
494
|
/** Create and modify workspaces */
|
|
495
|
-
readonly WORKSPACES_WRITE:
|
|
495
|
+
readonly WORKSPACES_WRITE: 'workspaces:write';
|
|
496
496
|
};
|
|
497
497
|
/**
|
|
498
498
|
* Mastra-owned FGA permission values.
|