@vertesia/common 0.70.0 → 0.71.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/lib/cjs/apikey.js.map +1 -1
- package/lib/cjs/refs.js +1 -0
- package/lib/cjs/refs.js.map +1 -1
- package/lib/cjs/store/workflow.js.map +1 -1
- package/lib/esm/apikey.js.map +1 -1
- package/lib/esm/refs.js +1 -0
- package/lib/esm/refs.js.map +1 -1
- package/lib/esm/store/workflow.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/access-control.d.ts +1 -1
- package/lib/types/access-control.d.ts.map +1 -1
- package/lib/types/apikey.d.ts +6 -0
- package/lib/types/apikey.d.ts.map +1 -1
- package/lib/types/refs.d.ts +1 -0
- package/lib/types/refs.d.ts.map +1 -1
- package/lib/types/store/workflow.d.ts +8 -0
- package/lib/types/store/workflow.d.ts.map +1 -1
- package/lib/types/transient-tokens.d.ts +2 -2
- package/lib/types/transient-tokens.d.ts.map +1 -1
- package/lib/types/user.d.ts +1 -1
- package/lib/types/user.d.ts.map +1 -1
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/package.json +1 -1
- package/src/access-control.ts +1 -1
- package/src/apikey.ts +7 -0
- package/src/refs.ts +1 -0
- package/src/store/workflow.ts +10 -0
- package/src/transient-tokens.ts +2 -2
- package/src/user.ts +1 -1
package/package.json
CHANGED
package/src/access-control.ts
CHANGED
|
@@ -81,7 +81,7 @@ export interface ACEUpdatePayload extends Partial<ACECreatePayload> {
|
|
|
81
81
|
|
|
82
82
|
export interface AcesQueryOptions {
|
|
83
83
|
|
|
84
|
-
level?: 'resource' | 'project' | 'account'
|
|
84
|
+
level?: 'resource' | 'project' | 'projects' | 'account'
|
|
85
85
|
resource?: string
|
|
86
86
|
principal?: string
|
|
87
87
|
role?: string
|
package/src/apikey.ts
CHANGED
|
@@ -63,6 +63,13 @@ export interface AuthTokenPayload {
|
|
|
63
63
|
*/
|
|
64
64
|
apps_roles: Record<string, string[]>,
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* The user ID (if any) attached to the token.
|
|
68
|
+
* This is set when the token is a user token or an agent token running as a user.
|
|
69
|
+
* Not set for impersonating tokens like project tokens.
|
|
70
|
+
*/
|
|
71
|
+
user_id?: string;
|
|
72
|
+
|
|
66
73
|
/** groups */
|
|
67
74
|
groups?: UserGroupRef[]; //group ids
|
|
68
75
|
|
package/src/refs.ts
CHANGED
package/src/store/workflow.ts
CHANGED
|
@@ -66,6 +66,16 @@ export interface WorkflowExecutionBaseParams<T = Record<string, any>> {
|
|
|
66
66
|
run_id: string;
|
|
67
67
|
workflow_id: string;
|
|
68
68
|
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Whether to route resource intensive tasks to a heavy load queue. Managed by the application.
|
|
72
|
+
*/
|
|
73
|
+
_enable_heavy_task_routing?: boolean;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The suffix to append to the task queue name for heavy load routing. Managed by the application.
|
|
77
|
+
*/
|
|
78
|
+
_heavy_task_queue_suffix?: string;
|
|
69
79
|
}
|
|
70
80
|
|
|
71
81
|
export interface WorkflowExecutionPayload<T = Record<string, any>> extends WorkflowExecutionBaseParams<T> {
|
package/src/transient-tokens.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectRoles } from "./project.js";
|
|
1
|
+
import { ProjectRef, ProjectRoles } from "./project.js";
|
|
2
2
|
import { AccountRef } from "./user.js";
|
|
3
3
|
|
|
4
4
|
|
|
@@ -25,6 +25,6 @@ export interface UserInviteTokenData {
|
|
|
25
25
|
email: string;
|
|
26
26
|
role: ProjectRoles;
|
|
27
27
|
account: AccountRef;
|
|
28
|
-
|
|
28
|
+
project: ProjectRef;
|
|
29
29
|
invitedBy: { name: string, email: string; };
|
|
30
30
|
}
|