@anchrd/colab-sdk 0.1.42 → 0.1.44
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/actions/actions.d.ts +83 -61
- package/dist/actions/actions.js +12 -6
- package/dist/boards/boards.d.ts +72 -167
- package/dist/boards/boards.js +30 -23
- package/dist/card-kinds/card-kinds.js +1 -1
- package/dist/columns/columns.d.ts +4 -4
- package/dist/columns/columns.js +3 -3
- package/dist/documents/documents.d.ts +0 -2
- package/dist/files/files.d.ts +32 -1
- package/dist/files/files.js +89 -27
- package/dist/grammar/grammar.d.ts +4 -1
- package/dist/grammar/grammar.js +17 -0
- package/dist/grants/grants.d.ts +12 -4
- package/dist/grants/grants.js +23 -8
- package/dist/home/home.d.ts +3 -3
- package/dist/instructions/instructions.d.ts +0 -4
- package/dist/instructions/instructions.js +5 -13
- package/dist/invitations/invitations.d.ts +1 -0
- package/dist/invitations/invitations.js +8 -0
- package/dist/jobs/jobs.d.ts +67 -0
- package/dist/jobs/jobs.js +45 -0
- package/dist/mcps/mcps.d.ts +3 -3
- package/dist/nodes/nodes.d.ts +5 -115
- package/dist/nodes/nodes.js +15 -41
- package/dist/operators/operators.d.ts +89 -7
- package/dist/operators/operators.js +50 -7
- package/dist/roles/roles.d.ts +0 -14
- package/dist/roles/roles.js +2 -10
- package/dist/runs/runs.d.ts +9 -12
- package/dist/runs/runs.js +5 -6
- package/dist/schedule/schedule.js +1 -1
- package/dist/sdk.d.ts +10 -9
- package/dist/sdk.js +10 -9
- package/dist/sources/sources.d.ts +6 -6
- package/dist/teams/teams.d.ts +120 -0
- package/dist/teams/teams.js +70 -0
- package/dist/versions/versions.d.ts +54 -71
- package/dist/versions/versions.js +5 -6
- package/dist/written/written.d.ts +62 -2
- package/dist/written/written.js +16 -2
- package/package.json +1 -1
- package/dist/validation/validation.d.ts +0 -60
- package/dist/validation/validation.js +0 -26
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TeamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
3
|
+
export type TeamId = z.infer<typeof TeamId>;
|
|
4
|
+
export declare const companyTeamId: TeamId;
|
|
5
|
+
export declare const MemberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
6
|
+
export type MemberId = z.infer<typeof MemberId>;
|
|
7
|
+
export declare const TeamListInput: z.ZodObject<{
|
|
8
|
+
archived: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
9
|
+
userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
10
|
+
query: z.ZodOptional<z.ZodString>;
|
|
11
|
+
cursor: z.ZodOptional<z.ZodTemplateLiteral<`team_${string}`>>;
|
|
12
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
export type TeamListInput = z.infer<typeof TeamListInput>;
|
|
15
|
+
export declare const TeamCreateInput: z.ZodObject<{
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export type TeamCreateInput = z.infer<typeof TeamCreateInput>;
|
|
19
|
+
export declare const TeamUpdateInput: z.ZodObject<{
|
|
20
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
21
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22
|
+
roleIds: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`role_${string}`>>>;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
export type TeamUpdateInput = z.infer<typeof TeamUpdateInput>;
|
|
25
|
+
export declare const TeamArchiveInput: z.ZodObject<{
|
|
26
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export type TeamArchiveInput = z.infer<typeof TeamArchiveInput>;
|
|
29
|
+
export declare const TeamRestoreInput: z.ZodObject<{
|
|
30
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type TeamRestoreInput = z.infer<typeof TeamRestoreInput>;
|
|
33
|
+
export declare const TeamMemberCreateInput: z.ZodObject<{
|
|
34
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
35
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export type TeamMemberCreateInput = z.infer<typeof TeamMemberCreateInput>;
|
|
38
|
+
export declare const TeamMemberRemoveInput: z.ZodObject<{
|
|
39
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
40
|
+
memberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
export type TeamMemberRemoveInput = z.infer<typeof TeamMemberRemoveInput>;
|
|
43
|
+
export declare const TeamMember: z.ZodObject<{
|
|
44
|
+
memberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
45
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
kind: z.ZodEnum<{
|
|
48
|
+
machine: "machine";
|
|
49
|
+
human: "human";
|
|
50
|
+
}>;
|
|
51
|
+
email: z.ZodNullable<z.ZodString>;
|
|
52
|
+
machineKind: z.ZodNullable<z.ZodEnum<{
|
|
53
|
+
operator: "operator";
|
|
54
|
+
external: "external";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type TeamMember = z.infer<typeof TeamMember>;
|
|
58
|
+
export declare const TeamRole: z.ZodObject<{
|
|
59
|
+
roleId: z.ZodTemplateLiteral<`role_${string}`>;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
description: z.ZodString;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type TeamRole = z.infer<typeof TeamRole>;
|
|
64
|
+
export declare const Team: z.ZodObject<{
|
|
65
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
members: z.ZodArray<z.ZodObject<{
|
|
68
|
+
memberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
69
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
kind: z.ZodEnum<{
|
|
72
|
+
machine: "machine";
|
|
73
|
+
human: "human";
|
|
74
|
+
}>;
|
|
75
|
+
email: z.ZodNullable<z.ZodString>;
|
|
76
|
+
machineKind: z.ZodNullable<z.ZodEnum<{
|
|
77
|
+
operator: "operator";
|
|
78
|
+
external: "external";
|
|
79
|
+
}>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
82
|
+
roleId: z.ZodTemplateLiteral<`role_${string}`>;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
description: z.ZodString;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
87
|
+
createdAt: z.ZodISODateTime;
|
|
88
|
+
updatedAt: z.ZodISODateTime;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type Team = z.infer<typeof Team>;
|
|
91
|
+
export declare const TeamList: z.ZodObject<{
|
|
92
|
+
items: z.ZodArray<z.ZodObject<{
|
|
93
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
members: z.ZodArray<z.ZodObject<{
|
|
96
|
+
memberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
97
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
kind: z.ZodEnum<{
|
|
100
|
+
machine: "machine";
|
|
101
|
+
human: "human";
|
|
102
|
+
}>;
|
|
103
|
+
email: z.ZodNullable<z.ZodString>;
|
|
104
|
+
machineKind: z.ZodNullable<z.ZodEnum<{
|
|
105
|
+
operator: "operator";
|
|
106
|
+
external: "external";
|
|
107
|
+
}>>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
110
|
+
roleId: z.ZodTemplateLiteral<`role_${string}`>;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
description: z.ZodString;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
115
|
+
createdAt: z.ZodISODateTime;
|
|
116
|
+
updatedAt: z.ZodISODateTime;
|
|
117
|
+
}, z.core.$strip>>;
|
|
118
|
+
nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`team_${string}`>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export type TeamList = z.infer<typeof TeamList>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { idSchema } from "../ids/ids.js";
|
|
3
|
+
import { Flag, Limit } from "../list-input.js";
|
|
4
|
+
import { RoleId } from "../roles/roles.js";
|
|
5
|
+
// ⚠️ Not imported from `users.ts`: that module imports the invitations, which import this one.
|
|
6
|
+
const UserId = idSchema("user");
|
|
7
|
+
// Teams (Einstellungen › Teams, #1121, E243): a named group of people and Operators that carries
|
|
8
|
+
// roles and can be given a node. The inputs of the `access_team_*` and `access_team_member_*` tools
|
|
9
|
+
// and their answers.
|
|
10
|
+
export const TeamId = idSchema("team").describe("The team's id, `team_…`, as access_team_list names it.");
|
|
11
|
+
// "Gesamte Firma" (#1121, E243): every installation has it once, made by access's migration 0020
|
|
12
|
+
// with every person, and every person who joins later becomes a member (`personCreated`). Otherwise
|
|
13
|
+
// a normal team: renamed, archived and left like any other. ⚠️ The migration writes this id as text.
|
|
14
|
+
export const companyTeamId = "team_01K0000000000000000000FRM1";
|
|
15
|
+
export const MemberId = idSchema("member").describe("The membership's id, `member_…`, as access_team_list names it under members.");
|
|
16
|
+
const TeamName = z.string().trim().min(1).max(64);
|
|
17
|
+
// The whole set of a team's roles, like `roleIds` of access_user_update: what is missing is taken
|
|
18
|
+
// away, an empty list takes every role.
|
|
19
|
+
const TeamRoleIds = z.array(RoleId).max(50);
|
|
20
|
+
export const TeamListInput = z.strictObject({
|
|
21
|
+
// The archive instead of the teams in use.
|
|
22
|
+
archived: Flag.optional(),
|
|
23
|
+
userId: UserId.optional().describe("Only the teams this person or machine is a member of."),
|
|
24
|
+
query: z
|
|
25
|
+
.string()
|
|
26
|
+
.trim()
|
|
27
|
+
.min(1)
|
|
28
|
+
.max(100)
|
|
29
|
+
.optional()
|
|
30
|
+
.describe("Only the teams whose name contains this text."),
|
|
31
|
+
cursor: TeamId.optional(),
|
|
32
|
+
limit: Limit.optional(),
|
|
33
|
+
});
|
|
34
|
+
export const TeamCreateInput = z.strictObject({ name: TeamName });
|
|
35
|
+
export const TeamUpdateInput = z
|
|
36
|
+
.strictObject({
|
|
37
|
+
teamId: TeamId,
|
|
38
|
+
name: TeamName.optional(),
|
|
39
|
+
roleIds: TeamRoleIds.optional().describe("The whole set of the team's roles: what is missing is taken away. Every member holds them as if they were their own. admin goes to no team."),
|
|
40
|
+
})
|
|
41
|
+
.refine((input) => input.name !== undefined || input.roleIds !== undefined, {
|
|
42
|
+
message: "Name a field to change: name or roleIds.",
|
|
43
|
+
});
|
|
44
|
+
export const TeamArchiveInput = z.strictObject({ teamId: TeamId });
|
|
45
|
+
export const TeamRestoreInput = z.strictObject({ teamId: TeamId });
|
|
46
|
+
export const TeamMemberCreateInput = z.strictObject({
|
|
47
|
+
teamId: TeamId,
|
|
48
|
+
userId: UserId.describe("The person or machine to add, `user_…`. A personal Operator is never a member: it holds its person's teams already."),
|
|
49
|
+
});
|
|
50
|
+
export const TeamMemberRemoveInput = z.strictObject({ teamId: TeamId, memberId: MemberId });
|
|
51
|
+
// A member as the team shows it: a person with their address, a machine with its kind.
|
|
52
|
+
export const TeamMember = z.object({
|
|
53
|
+
memberId: MemberId,
|
|
54
|
+
userId: UserId,
|
|
55
|
+
name: z.string(),
|
|
56
|
+
kind: z.enum(["human", "machine"]),
|
|
57
|
+
email: z.string().nullable(),
|
|
58
|
+
machineKind: z.enum(["operator", "external"]).nullable(),
|
|
59
|
+
});
|
|
60
|
+
export const TeamRole = z.object({ roleId: RoleId, name: z.string(), description: z.string() });
|
|
61
|
+
export const Team = z.object({
|
|
62
|
+
teamId: TeamId,
|
|
63
|
+
name: z.string(),
|
|
64
|
+
members: z.array(TeamMember),
|
|
65
|
+
roles: z.array(TeamRole),
|
|
66
|
+
archivedAt: z.iso.datetime().nullable(),
|
|
67
|
+
createdAt: z.iso.datetime(),
|
|
68
|
+
updatedAt: z.iso.datetime(),
|
|
69
|
+
});
|
|
70
|
+
export const TeamList = z.object({ items: z.array(Team), nextCursor: TeamId.nullable() });
|
|
@@ -6,13 +6,13 @@ export declare const MoveColumn: z.ZodObject<{
|
|
|
6
6
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
7
7
|
name: z.ZodNullable<z.ZodString>;
|
|
8
8
|
type: z.ZodNullable<z.ZodEnum<{
|
|
9
|
+
archive: "archive";
|
|
10
|
+
done: "done";
|
|
9
11
|
backlog: "backlog";
|
|
10
12
|
open: "open";
|
|
11
13
|
progress: "progress";
|
|
12
|
-
done: "done";
|
|
13
14
|
discarded: "discarded";
|
|
14
15
|
blocked: "blocked";
|
|
15
|
-
archive: "archive";
|
|
16
16
|
}>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export type MoveColumn = z.infer<typeof MoveColumn>;
|
|
@@ -21,29 +21,33 @@ export declare const VersionMove: z.ZodObject<{
|
|
|
21
21
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
22
22
|
name: z.ZodNullable<z.ZodString>;
|
|
23
23
|
type: z.ZodNullable<z.ZodEnum<{
|
|
24
|
+
archive: "archive";
|
|
25
|
+
done: "done";
|
|
24
26
|
backlog: "backlog";
|
|
25
27
|
open: "open";
|
|
26
28
|
progress: "progress";
|
|
27
|
-
done: "done";
|
|
28
29
|
discarded: "discarded";
|
|
29
30
|
blocked: "blocked";
|
|
30
|
-
archive: "archive";
|
|
31
31
|
}>>;
|
|
32
32
|
}, z.core.$strip>>;
|
|
33
33
|
to: z.ZodObject<{
|
|
34
34
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
35
35
|
name: z.ZodNullable<z.ZodString>;
|
|
36
36
|
type: z.ZodNullable<z.ZodEnum<{
|
|
37
|
+
archive: "archive";
|
|
38
|
+
done: "done";
|
|
37
39
|
backlog: "backlog";
|
|
38
40
|
open: "open";
|
|
39
41
|
progress: "progress";
|
|
40
|
-
done: "done";
|
|
41
42
|
discarded: "discarded";
|
|
42
43
|
blocked: "blocked";
|
|
43
|
-
archive: "archive";
|
|
44
44
|
}>>;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
comment: z.ZodNullable<z.ZodString>;
|
|
47
|
+
cause: z.ZodNullable<z.ZodObject<{
|
|
48
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
49
|
+
title: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
47
51
|
}, z.core.$strip>;
|
|
48
52
|
export type VersionMove = z.infer<typeof VersionMove>;
|
|
49
53
|
export declare const taskVersionChanges: readonly ["title", "text", "assignee", "dates", "labels", "parent", "dependencies", "waiting", "fields"];
|
|
@@ -53,51 +57,12 @@ export declare const TaskVersionChange: z.ZodEnum<{
|
|
|
53
57
|
fields: "fields";
|
|
54
58
|
dates: "dates";
|
|
55
59
|
waiting: "waiting";
|
|
56
|
-
assignee: "assignee";
|
|
57
60
|
labels: "labels";
|
|
58
|
-
|
|
61
|
+
assignee: "assignee";
|
|
59
62
|
dependencies: "dependencies";
|
|
63
|
+
parent: "parent";
|
|
60
64
|
}>;
|
|
61
65
|
export type TaskVersionChange = z.infer<typeof TaskVersionChange>;
|
|
62
|
-
export declare const TaskMove: z.ZodObject<{
|
|
63
|
-
from: z.ZodNullable<z.ZodObject<{
|
|
64
|
-
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
65
|
-
name: z.ZodNullable<z.ZodString>;
|
|
66
|
-
type: z.ZodNullable<z.ZodEnum<{
|
|
67
|
-
backlog: "backlog";
|
|
68
|
-
open: "open";
|
|
69
|
-
progress: "progress";
|
|
70
|
-
done: "done";
|
|
71
|
-
discarded: "discarded";
|
|
72
|
-
blocked: "blocked";
|
|
73
|
-
archive: "archive";
|
|
74
|
-
}>>;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
to: z.ZodObject<{
|
|
77
|
-
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
78
|
-
name: z.ZodNullable<z.ZodString>;
|
|
79
|
-
type: z.ZodNullable<z.ZodEnum<{
|
|
80
|
-
backlog: "backlog";
|
|
81
|
-
open: "open";
|
|
82
|
-
progress: "progress";
|
|
83
|
-
done: "done";
|
|
84
|
-
discarded: "discarded";
|
|
85
|
-
blocked: "blocked";
|
|
86
|
-
archive: "archive";
|
|
87
|
-
}>>;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
comment: z.ZodNullable<z.ZodString>;
|
|
90
|
-
movedBy: z.ZodObject<{
|
|
91
|
-
userId: z.ZodString;
|
|
92
|
-
name: z.ZodNullable<z.ZodString>;
|
|
93
|
-
kind: z.ZodNullable<z.ZodEnum<{
|
|
94
|
-
machine: "machine";
|
|
95
|
-
human: "human";
|
|
96
|
-
}>>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
movedAt: z.ZodISODateTime;
|
|
99
|
-
}, z.core.$strip>;
|
|
100
|
-
export type TaskMove = z.infer<typeof TaskMove>;
|
|
101
66
|
export declare const NodeVersionListInput: z.ZodObject<{
|
|
102
67
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
103
68
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -139,29 +104,33 @@ export declare const NodeVersion: z.ZodObject<{
|
|
|
139
104
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
140
105
|
name: z.ZodNullable<z.ZodString>;
|
|
141
106
|
type: z.ZodNullable<z.ZodEnum<{
|
|
107
|
+
archive: "archive";
|
|
108
|
+
done: "done";
|
|
142
109
|
backlog: "backlog";
|
|
143
110
|
open: "open";
|
|
144
111
|
progress: "progress";
|
|
145
|
-
done: "done";
|
|
146
112
|
discarded: "discarded";
|
|
147
113
|
blocked: "blocked";
|
|
148
|
-
archive: "archive";
|
|
149
114
|
}>>;
|
|
150
115
|
}, z.core.$strip>>;
|
|
151
116
|
to: z.ZodObject<{
|
|
152
117
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
153
118
|
name: z.ZodNullable<z.ZodString>;
|
|
154
119
|
type: z.ZodNullable<z.ZodEnum<{
|
|
120
|
+
archive: "archive";
|
|
121
|
+
done: "done";
|
|
155
122
|
backlog: "backlog";
|
|
156
123
|
open: "open";
|
|
157
124
|
progress: "progress";
|
|
158
|
-
done: "done";
|
|
159
125
|
discarded: "discarded";
|
|
160
126
|
blocked: "blocked";
|
|
161
|
-
archive: "archive";
|
|
162
127
|
}>>;
|
|
163
128
|
}, z.core.$strip>;
|
|
164
129
|
comment: z.ZodNullable<z.ZodString>;
|
|
130
|
+
cause: z.ZodNullable<z.ZodObject<{
|
|
131
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
132
|
+
title: z.ZodString;
|
|
133
|
+
}, z.core.$strip>>;
|
|
165
134
|
}, z.core.$strip>>;
|
|
166
135
|
changes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
167
136
|
title: "title";
|
|
@@ -169,10 +138,10 @@ export declare const NodeVersion: z.ZodObject<{
|
|
|
169
138
|
fields: "fields";
|
|
170
139
|
dates: "dates";
|
|
171
140
|
waiting: "waiting";
|
|
172
|
-
assignee: "assignee";
|
|
173
141
|
labels: "labels";
|
|
174
|
-
|
|
142
|
+
assignee: "assignee";
|
|
175
143
|
dependencies: "dependencies";
|
|
144
|
+
parent: "parent";
|
|
176
145
|
}>>>;
|
|
177
146
|
}, z.core.$strip>;
|
|
178
147
|
export type NodeVersion = z.infer<typeof NodeVersion>;
|
|
@@ -200,29 +169,33 @@ export declare const NodeVersionList: z.ZodObject<{
|
|
|
200
169
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
201
170
|
name: z.ZodNullable<z.ZodString>;
|
|
202
171
|
type: z.ZodNullable<z.ZodEnum<{
|
|
172
|
+
archive: "archive";
|
|
173
|
+
done: "done";
|
|
203
174
|
backlog: "backlog";
|
|
204
175
|
open: "open";
|
|
205
176
|
progress: "progress";
|
|
206
|
-
done: "done";
|
|
207
177
|
discarded: "discarded";
|
|
208
178
|
blocked: "blocked";
|
|
209
|
-
archive: "archive";
|
|
210
179
|
}>>;
|
|
211
180
|
}, z.core.$strip>>;
|
|
212
181
|
to: z.ZodObject<{
|
|
213
182
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
214
183
|
name: z.ZodNullable<z.ZodString>;
|
|
215
184
|
type: z.ZodNullable<z.ZodEnum<{
|
|
185
|
+
archive: "archive";
|
|
186
|
+
done: "done";
|
|
216
187
|
backlog: "backlog";
|
|
217
188
|
open: "open";
|
|
218
189
|
progress: "progress";
|
|
219
|
-
done: "done";
|
|
220
190
|
discarded: "discarded";
|
|
221
191
|
blocked: "blocked";
|
|
222
|
-
archive: "archive";
|
|
223
192
|
}>>;
|
|
224
193
|
}, z.core.$strip>;
|
|
225
194
|
comment: z.ZodNullable<z.ZodString>;
|
|
195
|
+
cause: z.ZodNullable<z.ZodObject<{
|
|
196
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
197
|
+
title: z.ZodString;
|
|
198
|
+
}, z.core.$strip>>;
|
|
226
199
|
}, z.core.$strip>>;
|
|
227
200
|
changes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
228
201
|
title: "title";
|
|
@@ -230,10 +203,10 @@ export declare const NodeVersionList: z.ZodObject<{
|
|
|
230
203
|
fields: "fields";
|
|
231
204
|
dates: "dates";
|
|
232
205
|
waiting: "waiting";
|
|
233
|
-
assignee: "assignee";
|
|
234
206
|
labels: "labels";
|
|
235
|
-
|
|
207
|
+
assignee: "assignee";
|
|
236
208
|
dependencies: "dependencies";
|
|
209
|
+
parent: "parent";
|
|
237
210
|
}>>>;
|
|
238
211
|
}, z.core.$strip>>;
|
|
239
212
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -263,29 +236,33 @@ export declare const NodeVersionDetail: z.ZodObject<{
|
|
|
263
236
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
264
237
|
name: z.ZodNullable<z.ZodString>;
|
|
265
238
|
type: z.ZodNullable<z.ZodEnum<{
|
|
239
|
+
archive: "archive";
|
|
240
|
+
done: "done";
|
|
266
241
|
backlog: "backlog";
|
|
267
242
|
open: "open";
|
|
268
243
|
progress: "progress";
|
|
269
|
-
done: "done";
|
|
270
244
|
discarded: "discarded";
|
|
271
245
|
blocked: "blocked";
|
|
272
|
-
archive: "archive";
|
|
273
246
|
}>>;
|
|
274
247
|
}, z.core.$strip>>;
|
|
275
248
|
to: z.ZodObject<{
|
|
276
249
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
277
250
|
name: z.ZodNullable<z.ZodString>;
|
|
278
251
|
type: z.ZodNullable<z.ZodEnum<{
|
|
252
|
+
archive: "archive";
|
|
253
|
+
done: "done";
|
|
279
254
|
backlog: "backlog";
|
|
280
255
|
open: "open";
|
|
281
256
|
progress: "progress";
|
|
282
|
-
done: "done";
|
|
283
257
|
discarded: "discarded";
|
|
284
258
|
blocked: "blocked";
|
|
285
|
-
archive: "archive";
|
|
286
259
|
}>>;
|
|
287
260
|
}, z.core.$strip>;
|
|
288
261
|
comment: z.ZodNullable<z.ZodString>;
|
|
262
|
+
cause: z.ZodNullable<z.ZodObject<{
|
|
263
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
264
|
+
title: z.ZodString;
|
|
265
|
+
}, z.core.$strip>>;
|
|
289
266
|
}, z.core.$strip>>;
|
|
290
267
|
changes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
291
268
|
title: "title";
|
|
@@ -293,15 +270,16 @@ export declare const NodeVersionDetail: z.ZodObject<{
|
|
|
293
270
|
fields: "fields";
|
|
294
271
|
dates: "dates";
|
|
295
272
|
waiting: "waiting";
|
|
296
|
-
assignee: "assignee";
|
|
297
273
|
labels: "labels";
|
|
298
|
-
|
|
274
|
+
assignee: "assignee";
|
|
299
275
|
dependencies: "dependencies";
|
|
276
|
+
parent: "parent";
|
|
300
277
|
}>>>;
|
|
301
278
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
302
279
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
303
280
|
content: z.ZodNullable<z.ZodString>;
|
|
304
281
|
mediaType: z.ZodNullable<z.ZodString>;
|
|
282
|
+
description: z.ZodNullable<z.ZodString>;
|
|
305
283
|
columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
306
284
|
name: z.ZodString;
|
|
307
285
|
type: z.ZodEnum<{
|
|
@@ -414,29 +392,33 @@ export declare const NodeVersionExcerpt: z.ZodObject<{
|
|
|
414
392
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
415
393
|
name: z.ZodNullable<z.ZodString>;
|
|
416
394
|
type: z.ZodNullable<z.ZodEnum<{
|
|
395
|
+
archive: "archive";
|
|
396
|
+
done: "done";
|
|
417
397
|
backlog: "backlog";
|
|
418
398
|
open: "open";
|
|
419
399
|
progress: "progress";
|
|
420
|
-
done: "done";
|
|
421
400
|
discarded: "discarded";
|
|
422
401
|
blocked: "blocked";
|
|
423
|
-
archive: "archive";
|
|
424
402
|
}>>;
|
|
425
403
|
}, z.core.$strip>>;
|
|
426
404
|
to: z.ZodObject<{
|
|
427
405
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
428
406
|
name: z.ZodNullable<z.ZodString>;
|
|
429
407
|
type: z.ZodNullable<z.ZodEnum<{
|
|
408
|
+
archive: "archive";
|
|
409
|
+
done: "done";
|
|
430
410
|
backlog: "backlog";
|
|
431
411
|
open: "open";
|
|
432
412
|
progress: "progress";
|
|
433
|
-
done: "done";
|
|
434
413
|
discarded: "discarded";
|
|
435
414
|
blocked: "blocked";
|
|
436
|
-
archive: "archive";
|
|
437
415
|
}>>;
|
|
438
416
|
}, z.core.$strip>;
|
|
439
417
|
comment: z.ZodNullable<z.ZodString>;
|
|
418
|
+
cause: z.ZodNullable<z.ZodObject<{
|
|
419
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
420
|
+
title: z.ZodString;
|
|
421
|
+
}, z.core.$strip>>;
|
|
440
422
|
}, z.core.$strip>>;
|
|
441
423
|
changes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
442
424
|
title: "title";
|
|
@@ -444,15 +426,16 @@ export declare const NodeVersionExcerpt: z.ZodObject<{
|
|
|
444
426
|
fields: "fields";
|
|
445
427
|
dates: "dates";
|
|
446
428
|
waiting: "waiting";
|
|
447
|
-
assignee: "assignee";
|
|
448
429
|
labels: "labels";
|
|
449
|
-
|
|
430
|
+
assignee: "assignee";
|
|
450
431
|
dependencies: "dependencies";
|
|
432
|
+
parent: "parent";
|
|
451
433
|
}>>>;
|
|
452
434
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
453
435
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
454
436
|
content: z.ZodNullable<z.ZodString>;
|
|
455
437
|
mediaType: z.ZodNullable<z.ZodString>;
|
|
438
|
+
description: z.ZodNullable<z.ZodString>;
|
|
456
439
|
columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
457
440
|
name: z.ZodString;
|
|
458
441
|
type: z.ZodEnum<{
|
|
@@ -31,6 +31,8 @@ export const VersionMove = z.object({
|
|
|
31
31
|
from: MoveColumn.nullable(),
|
|
32
32
|
to: MoveColumn,
|
|
33
33
|
comment: z.string().nullable(),
|
|
34
|
+
// The card whose move made Colab move this one by a rule on its waits for (E242); null otherwise.
|
|
35
|
+
cause: z.object({ taskId: NodeId, title: z.string() }).nullable(),
|
|
34
36
|
});
|
|
35
37
|
// What a task's version changed besides a move (E117): the words the history names, in this order.
|
|
36
38
|
// The fields of a card kind (#638) come later as their own entries.
|
|
@@ -46,12 +48,6 @@ export const taskVersionChanges = [
|
|
|
46
48
|
"fields",
|
|
47
49
|
];
|
|
48
50
|
export const TaskVersionChange = z.enum(taskVersionChanges);
|
|
49
|
-
// The last move of a task (E117): what the ticket of the validation shows in its bar ("Neu → Offen ·
|
|
50
|
-
// Operator · 3. Okt."), read from its versions.
|
|
51
|
-
export const TaskMove = VersionMove.extend({
|
|
52
|
-
movedBy: NodePerson,
|
|
53
|
-
movedAt: z.iso.datetime(),
|
|
54
|
-
});
|
|
55
51
|
export const NodeVersionListInput = z.strictObject({
|
|
56
52
|
nodeId: NodeId.describe("The document, table, file or task whose versions to list."),
|
|
57
53
|
cursor: z
|
|
@@ -107,6 +103,9 @@ export const NodeVersionDetail = NodeVersion.extend({
|
|
|
107
103
|
content: z.string().nullable(),
|
|
108
104
|
// Only for a file: its media type.
|
|
109
105
|
mediaType: z.string().nullable(),
|
|
106
|
+
// Only for an image file (#1126, E244): the description `intelligence_file_describe` stored at
|
|
107
|
+
// this version; null before anyone asked and for every other version.
|
|
108
|
+
description: z.string().nullable(),
|
|
110
109
|
// Only for a table: its columns with their types in this version (#40).
|
|
111
110
|
columns: z.array(TableColumn).nullable(),
|
|
112
111
|
// Only for a task of a card kind (#638): the values of its fields in this version, by the field's
|
|
@@ -19,6 +19,8 @@ export declare const Changed: z.ZodObject<{
|
|
|
19
19
|
userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
20
20
|
machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
21
21
|
roleId: z.ZodOptional<z.ZodTemplateLiteral<`role_${string}`>>;
|
|
22
|
+
teamId: z.ZodOptional<z.ZodTemplateLiteral<`team_${string}`>>;
|
|
23
|
+
memberId: z.ZodOptional<z.ZodTemplateLiteral<`member_${string}`>>;
|
|
22
24
|
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
25
|
invitationId: z.ZodOptional<z.ZodTemplateLiteral<`invitation_${string}`>>;
|
|
24
26
|
serviceId: z.ZodOptional<z.ZodTemplateLiteral<`service_${string}`>>;
|
|
@@ -51,6 +53,26 @@ export declare const Unblocked: z.ZodObject<{
|
|
|
51
53
|
own: z.ZodOptional<z.ZodLiteral<true>>;
|
|
52
54
|
}, z.core.$strip>;
|
|
53
55
|
export type Unblocked = z.infer<typeof Unblocked>;
|
|
56
|
+
export declare const Moved: z.ZodObject<{
|
|
57
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
58
|
+
title: z.ZodString;
|
|
59
|
+
column: z.ZodObject<{
|
|
60
|
+
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
type: z.ZodEnum<{
|
|
63
|
+
archive: "archive";
|
|
64
|
+
done: "done";
|
|
65
|
+
backlog: "backlog";
|
|
66
|
+
open: "open";
|
|
67
|
+
progress: "progress";
|
|
68
|
+
discarded: "discarded";
|
|
69
|
+
blocked: "blocked";
|
|
70
|
+
}>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
rev: z.ZodNumber;
|
|
73
|
+
cause: z.ZodTemplateLiteral<`node_${string}`>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export type Moved = z.infer<typeof Moved>;
|
|
54
76
|
export declare const Effects: z.ZodObject<{
|
|
55
77
|
woken: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
78
|
userId: z.ZodString;
|
|
@@ -70,7 +92,25 @@ export declare const Effects: z.ZodObject<{
|
|
|
70
92
|
rev: z.ZodNumber;
|
|
71
93
|
own: z.ZodOptional<z.ZodLiteral<true>>;
|
|
72
94
|
}, z.core.$strip>>>;
|
|
73
|
-
|
|
95
|
+
moved: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
97
|
+
title: z.ZodString;
|
|
98
|
+
column: z.ZodObject<{
|
|
99
|
+
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
type: z.ZodEnum<{
|
|
102
|
+
archive: "archive";
|
|
103
|
+
done: "done";
|
|
104
|
+
backlog: "backlog";
|
|
105
|
+
open: "open";
|
|
106
|
+
progress: "progress";
|
|
107
|
+
discarded: "discarded";
|
|
108
|
+
blocked: "blocked";
|
|
109
|
+
}>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
rev: z.ZodNumber;
|
|
112
|
+
cause: z.ZodTemplateLiteral<`node_${string}`>;
|
|
113
|
+
}, z.core.$strip>>>;
|
|
74
114
|
readers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
75
115
|
userId: z.ZodString;
|
|
76
116
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -113,6 +153,8 @@ export declare const Written: z.ZodObject<{
|
|
|
113
153
|
userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
114
154
|
machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
115
155
|
roleId: z.ZodOptional<z.ZodTemplateLiteral<`role_${string}`>>;
|
|
156
|
+
teamId: z.ZodOptional<z.ZodTemplateLiteral<`team_${string}`>>;
|
|
157
|
+
memberId: z.ZodOptional<z.ZodTemplateLiteral<`member_${string}`>>;
|
|
116
158
|
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
159
|
invitationId: z.ZodOptional<z.ZodTemplateLiteral<`invitation_${string}`>>;
|
|
118
160
|
serviceId: z.ZodOptional<z.ZodTemplateLiteral<`service_${string}`>>;
|
|
@@ -152,7 +194,25 @@ export declare const Written: z.ZodObject<{
|
|
|
152
194
|
rev: z.ZodNumber;
|
|
153
195
|
own: z.ZodOptional<z.ZodLiteral<true>>;
|
|
154
196
|
}, z.core.$strip>>>;
|
|
155
|
-
|
|
197
|
+
moved: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
198
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
199
|
+
title: z.ZodString;
|
|
200
|
+
column: z.ZodObject<{
|
|
201
|
+
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
202
|
+
name: z.ZodString;
|
|
203
|
+
type: z.ZodEnum<{
|
|
204
|
+
archive: "archive";
|
|
205
|
+
done: "done";
|
|
206
|
+
backlog: "backlog";
|
|
207
|
+
open: "open";
|
|
208
|
+
progress: "progress";
|
|
209
|
+
discarded: "discarded";
|
|
210
|
+
blocked: "blocked";
|
|
211
|
+
}>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
rev: z.ZodNumber;
|
|
214
|
+
cause: z.ZodTemplateLiteral<`node_${string}`>;
|
|
215
|
+
}, z.core.$strip>>>;
|
|
156
216
|
readers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
217
|
userId: z.ZodString;
|
|
158
218
|
name: z.ZodNullable<z.ZodString>;
|