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