@mastra/auth-workos 1.6.2 → 1.6.3
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 +12 -0
- package/dist/_types/@internal_auth/dist/ee/interfaces/permissions.generated.d.ts +6 -20
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/auth-workos
|
|
2
2
|
|
|
3
|
+
## 1.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added `mapUserToResourceId` to `MastraAuthWorkosOptions` so it can be set directly in the `MastraAuthWorkos` constructor. This maps an authenticated user to a resource id that multi-tenant tool providers use to bucket connected accounts (for example, Composio's `caller-supplied` scope). Previously the option was consumed at runtime but missing from the typed constructor surface, forcing a post-construction property assignment. ([#19144](https://github.com/mastra-ai/mastra/pull/19144))
|
|
8
|
+
|
|
9
|
+
## 1.6.3-alpha.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Added `mapUserToResourceId` to `MastraAuthWorkosOptions` so it can be set directly in the `MastraAuthWorkos` constructor. This maps an authenticated user to a resource id that multi-tenant tool providers use to bucket connected accounts (for example, Composio's `caller-supplied` scope). Previously the option was consumed at runtime but missing from the typed constructor surface, forcing a post-construction property assignment. ([#19144](https://github.com/mastra-ai/mastra/pull/19144))
|
|
14
|
+
|
|
3
15
|
## 1.6.2
|
|
4
16
|
|
|
5
17
|
### 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", "agent-controller", "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
|
*/
|
|
@@ -70,8 +70,6 @@ export declare const PERMISSION_PATTERNS: {
|
|
|
70
70
|
readonly 'embedders:*': "embedders:*";
|
|
71
71
|
/** Full access to experiments */
|
|
72
72
|
readonly 'experiments:*': "experiments:*";
|
|
73
|
-
/** Full access to heartbeats */
|
|
74
|
-
readonly 'heartbeats:*': "heartbeats:*";
|
|
75
73
|
/** Full access to infrastructure */
|
|
76
74
|
readonly 'infrastructure:*': "infrastructure:*";
|
|
77
75
|
/** Full access to logs */
|
|
@@ -160,14 +158,6 @@ export declare const PERMISSION_PATTERNS: {
|
|
|
160
158
|
readonly 'embedders:read': "embedders:read";
|
|
161
159
|
/** View experiments */
|
|
162
160
|
readonly 'experiments:read': "experiments:read";
|
|
163
|
-
/** Delete heartbeats */
|
|
164
|
-
readonly 'heartbeats:delete': "heartbeats:delete";
|
|
165
|
-
/** Execute heartbeats */
|
|
166
|
-
readonly 'heartbeats:execute': "heartbeats:execute";
|
|
167
|
-
/** View heartbeats */
|
|
168
|
-
readonly 'heartbeats:read': "heartbeats:read";
|
|
169
|
-
/** Create and modify heartbeats */
|
|
170
|
-
readonly 'heartbeats:write': "heartbeats:write";
|
|
171
161
|
/** View infrastructure */
|
|
172
162
|
readonly 'infrastructure:read': "infrastructure:read";
|
|
173
163
|
/** View logs */
|
|
@@ -196,6 +186,8 @@ export declare const PERMISSION_PATTERNS: {
|
|
|
196
186
|
readonly 'processors:execute': "processors:execute";
|
|
197
187
|
/** View processors */
|
|
198
188
|
readonly 'processors:read': "processors:read";
|
|
189
|
+
/** Delete schedules */
|
|
190
|
+
readonly 'schedules:delete': "schedules:delete";
|
|
199
191
|
/** Execute schedules */
|
|
200
192
|
readonly 'schedules:execute': "schedules:execute";
|
|
201
193
|
/** View schedules */
|
|
@@ -313,7 +305,7 @@ export type PermissionPattern = keyof typeof PERMISSION_PATTERNS;
|
|
|
313
305
|
/**
|
|
314
306
|
* All valid resource:action permission combinations (excludes wildcards).
|
|
315
307
|
*/
|
|
316
|
-
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", "
|
|
308
|
+
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-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"];
|
|
317
309
|
/**
|
|
318
310
|
* Specific permission type (e.g., 'agents:read', 'workflows:execute').
|
|
319
311
|
*/
|
|
@@ -369,14 +361,6 @@ export declare const MastraFGAPermissions: {
|
|
|
369
361
|
readonly EMBEDDERS_READ: "embedders:read";
|
|
370
362
|
/** View experiments */
|
|
371
363
|
readonly EXPERIMENTS_READ: "experiments:read";
|
|
372
|
-
/** Delete heartbeats */
|
|
373
|
-
readonly HEARTBEATS_DELETE: "heartbeats:delete";
|
|
374
|
-
/** Execute heartbeats */
|
|
375
|
-
readonly HEARTBEATS_EXECUTE: "heartbeats:execute";
|
|
376
|
-
/** View heartbeats */
|
|
377
|
-
readonly HEARTBEATS_READ: "heartbeats:read";
|
|
378
|
-
/** Create and modify heartbeats */
|
|
379
|
-
readonly HEARTBEATS_WRITE: "heartbeats:write";
|
|
380
364
|
/** View infrastructure */
|
|
381
365
|
readonly INFRASTRUCTURE_READ: "infrastructure:read";
|
|
382
366
|
/** View logs */
|
|
@@ -405,6 +389,8 @@ export declare const MastraFGAPermissions: {
|
|
|
405
389
|
readonly PROCESSORS_EXECUTE: "processors:execute";
|
|
406
390
|
/** View processors */
|
|
407
391
|
readonly PROCESSORS_READ: "processors:read";
|
|
392
|
+
/** Delete schedules */
|
|
393
|
+
readonly SCHEDULES_DELETE: "schedules:delete";
|
|
408
394
|
/** Execute schedules */
|
|
409
395
|
readonly SCHEDULES_EXECUTE: "schedules:execute";
|
|
410
396
|
/** View schedules */
|
package/dist/index.cjs
CHANGED
|
@@ -787,7 +787,7 @@ var MastraAuthWorkos = class extends MastraAuthProvider {
|
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
789
|
|
|
790
|
-
// ../../packages/_internals/auth/dist/chunk-
|
|
790
|
+
// ../../packages/_internals/auth/dist/chunk-H3EJ4GVJ.js
|
|
791
791
|
var FGADeniedError = class extends Error {
|
|
792
792
|
user;
|
|
793
793
|
resource;
|