@locusai/shared 0.4.16 → 0.5.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/README.md +1 -1
- package/dist/common.d.ts +14 -138
- package/dist/common.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/models/activity.d.ts +83 -756
- package/dist/models/activity.d.ts.map +1 -1
- package/dist/models/agent.d.ts +2 -12
- package/dist/models/agent.d.ts.map +1 -1
- package/dist/models/auth.d.ts +41 -247
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/ci.d.ts +3 -61
- package/dist/models/ci.d.ts.map +1 -1
- package/dist/models/doc-group.d.ts +14 -111
- package/dist/models/doc-group.d.ts.map +1 -1
- package/dist/models/doc.d.ts +19 -198
- package/dist/models/doc.d.ts.map +1 -1
- package/dist/models/invitation.d.ts +23 -200
- package/dist/models/invitation.d.ts.map +1 -1
- package/dist/models/organization.d.ts +29 -284
- package/dist/models/organization.d.ts.map +1 -1
- package/dist/models/sprint.d.ts +33 -183
- package/dist/models/sprint.d.ts.map +1 -1
- package/dist/models/task.d.ts +98 -1053
- package/dist/models/task.d.ts.map +1 -1
- package/dist/models/user.d.ts +9 -72
- package/dist/models/user.d.ts.map +1 -1
- package/dist/models/workspace.d.ts +25 -252
- package/dist/models/workspace.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -2,33 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
import { EventType, SprintStatus, TaskStatus } from "../enums";
|
|
3
3
|
export declare const CommentSchema: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
6
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
7
|
-
} & {
|
|
5
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
6
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
8
7
|
taskId: z.ZodString;
|
|
9
8
|
author: z.ZodString;
|
|
10
9
|
text: z.ZodString;
|
|
11
|
-
},
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: number | Date;
|
|
14
|
-
updatedAt: number | Date;
|
|
15
|
-
taskId: string;
|
|
16
|
-
author: string;
|
|
17
|
-
text: string;
|
|
18
|
-
}, {
|
|
19
|
-
id: string;
|
|
20
|
-
createdAt: number | Date;
|
|
21
|
-
updatedAt: number | Date;
|
|
22
|
-
taskId: string;
|
|
23
|
-
author: string;
|
|
24
|
-
text: string;
|
|
25
|
-
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
26
11
|
export type Comment = z.infer<typeof CommentSchema>;
|
|
27
12
|
export declare const ArtifactSchema: z.ZodObject<{
|
|
28
13
|
id: z.ZodString;
|
|
29
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
30
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
31
|
-
} & {
|
|
14
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
15
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
32
16
|
taskId: z.ZodString;
|
|
33
17
|
type: z.ZodString;
|
|
34
18
|
title: z.ZodString;
|
|
@@ -37,129 +21,47 @@ export declare const ArtifactSchema: z.ZodObject<{
|
|
|
37
21
|
url: z.ZodOptional<z.ZodString>;
|
|
38
22
|
size: z.ZodOptional<z.ZodString>;
|
|
39
23
|
createdBy: z.ZodString;
|
|
40
|
-
},
|
|
41
|
-
id: string;
|
|
42
|
-
createdAt: number | Date;
|
|
43
|
-
type: string;
|
|
44
|
-
updatedAt: number | Date;
|
|
45
|
-
taskId: string;
|
|
46
|
-
title: string;
|
|
47
|
-
createdBy: string;
|
|
48
|
-
contentText?: string | undefined;
|
|
49
|
-
filePath?: string | undefined;
|
|
50
|
-
url?: string | undefined;
|
|
51
|
-
size?: string | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
id: string;
|
|
54
|
-
createdAt: number | Date;
|
|
55
|
-
type: string;
|
|
56
|
-
updatedAt: number | Date;
|
|
57
|
-
taskId: string;
|
|
58
|
-
title: string;
|
|
59
|
-
createdBy: string;
|
|
60
|
-
contentText?: string | undefined;
|
|
61
|
-
filePath?: string | undefined;
|
|
62
|
-
url?: string | undefined;
|
|
63
|
-
size?: string | undefined;
|
|
64
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
65
25
|
export type Artifact = z.infer<typeof ArtifactSchema>;
|
|
66
26
|
export declare const TaskCreatedPayloadSchema: z.ZodObject<{
|
|
67
27
|
title: z.ZodString;
|
|
68
|
-
},
|
|
69
|
-
title: string;
|
|
70
|
-
}, {
|
|
71
|
-
title: string;
|
|
72
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
73
29
|
export declare const TaskDeletedPayloadSchema: z.ZodObject<{
|
|
74
30
|
title: z.ZodString;
|
|
75
|
-
},
|
|
76
|
-
title: string;
|
|
77
|
-
}, {
|
|
78
|
-
title: string;
|
|
79
|
-
}>;
|
|
31
|
+
}, z.core.$strip>;
|
|
80
32
|
export declare const StatusChangedPayloadSchema: z.ZodObject<{
|
|
81
33
|
title: z.ZodString;
|
|
82
|
-
oldStatus: z.
|
|
83
|
-
newStatus: z.
|
|
84
|
-
},
|
|
85
|
-
title: string;
|
|
86
|
-
oldStatus: TaskStatus;
|
|
87
|
-
newStatus: TaskStatus;
|
|
88
|
-
}, {
|
|
89
|
-
title: string;
|
|
90
|
-
oldStatus: TaskStatus;
|
|
91
|
-
newStatus: TaskStatus;
|
|
92
|
-
}>;
|
|
34
|
+
oldStatus: z.ZodEnum<typeof TaskStatus>;
|
|
35
|
+
newStatus: z.ZodEnum<typeof TaskStatus>;
|
|
36
|
+
}, z.core.$strip>;
|
|
93
37
|
export declare const CommentAddedPayloadSchema: z.ZodObject<{
|
|
94
38
|
title: z.ZodString;
|
|
95
39
|
author: z.ZodString;
|
|
96
40
|
text: z.ZodString;
|
|
97
|
-
},
|
|
98
|
-
author: string;
|
|
99
|
-
text: string;
|
|
100
|
-
title: string;
|
|
101
|
-
}, {
|
|
102
|
-
author: string;
|
|
103
|
-
text: string;
|
|
104
|
-
title: string;
|
|
105
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
106
42
|
export declare const WorkspaceCreatedPayloadSchema: z.ZodObject<{
|
|
107
43
|
name: z.ZodString;
|
|
108
|
-
},
|
|
109
|
-
name: string;
|
|
110
|
-
}, {
|
|
111
|
-
name: string;
|
|
112
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
113
45
|
export declare const MemberAddedPayloadSchema: z.ZodObject<{
|
|
114
46
|
userId: z.ZodString;
|
|
115
47
|
role: z.ZodString;
|
|
116
|
-
},
|
|
117
|
-
userId: string;
|
|
118
|
-
role: string;
|
|
119
|
-
}, {
|
|
120
|
-
userId: string;
|
|
121
|
-
role: string;
|
|
122
|
-
}>;
|
|
48
|
+
}, z.core.$strip>;
|
|
123
49
|
export declare const MemberInvitedPayloadSchema: z.ZodObject<{
|
|
124
50
|
email: z.ZodString;
|
|
125
|
-
},
|
|
126
|
-
email: string;
|
|
127
|
-
}, {
|
|
128
|
-
email: string;
|
|
129
|
-
}>;
|
|
51
|
+
}, z.core.$strip>;
|
|
130
52
|
export declare const SprintCreatedPayloadSchema: z.ZodObject<{
|
|
131
53
|
name: z.ZodString;
|
|
132
54
|
sprintId: z.ZodString;
|
|
133
|
-
},
|
|
134
|
-
name: string;
|
|
135
|
-
sprintId: string;
|
|
136
|
-
}, {
|
|
137
|
-
name: string;
|
|
138
|
-
sprintId: string;
|
|
139
|
-
}>;
|
|
55
|
+
}, z.core.$strip>;
|
|
140
56
|
export declare const SprintStatusChangedPayloadSchema: z.ZodObject<{
|
|
141
57
|
name: z.ZodString;
|
|
142
58
|
sprintId: z.ZodString;
|
|
143
|
-
oldStatus: z.
|
|
144
|
-
newStatus: z.
|
|
145
|
-
},
|
|
146
|
-
oldStatus: SprintStatus;
|
|
147
|
-
newStatus: SprintStatus;
|
|
148
|
-
name: string;
|
|
149
|
-
sprintId: string;
|
|
150
|
-
}, {
|
|
151
|
-
oldStatus: SprintStatus;
|
|
152
|
-
newStatus: SprintStatus;
|
|
153
|
-
name: string;
|
|
154
|
-
sprintId: string;
|
|
155
|
-
}>;
|
|
59
|
+
oldStatus: z.ZodEnum<typeof SprintStatus>;
|
|
60
|
+
newStatus: z.ZodEnum<typeof SprintStatus>;
|
|
61
|
+
}, z.core.$strip>;
|
|
156
62
|
export declare const ChecklistInitializedPayloadSchema: z.ZodObject<{
|
|
157
63
|
itemCount: z.ZodNumber;
|
|
158
|
-
},
|
|
159
|
-
itemCount: number;
|
|
160
|
-
}, {
|
|
161
|
-
itemCount: number;
|
|
162
|
-
}>;
|
|
64
|
+
}, z.core.$strip>;
|
|
163
65
|
export declare const CiRanPayloadSchema: z.ZodObject<{
|
|
164
66
|
preset: z.ZodString;
|
|
165
67
|
ok: z.ZodBoolean;
|
|
@@ -170,272 +72,68 @@ export declare const CiRanPayloadSchema: z.ZodObject<{
|
|
|
170
72
|
commands: z.ZodArray<z.ZodObject<{
|
|
171
73
|
cmd: z.ZodString;
|
|
172
74
|
exitCode: z.ZodNumber;
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}, {
|
|
177
|
-
cmd: string;
|
|
178
|
-
exitCode: number;
|
|
179
|
-
}>, "many">;
|
|
180
|
-
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
preset: string;
|
|
182
|
-
ok: boolean;
|
|
183
|
-
summary: string;
|
|
184
|
-
source: string;
|
|
185
|
-
deferred: boolean;
|
|
186
|
-
processed: boolean;
|
|
187
|
-
commands: {
|
|
188
|
-
cmd: string;
|
|
189
|
-
exitCode: number;
|
|
190
|
-
}[];
|
|
191
|
-
}, {
|
|
192
|
-
preset: string;
|
|
193
|
-
ok: boolean;
|
|
194
|
-
summary: string;
|
|
195
|
-
source: string;
|
|
196
|
-
deferred: boolean;
|
|
197
|
-
processed: boolean;
|
|
198
|
-
commands: {
|
|
199
|
-
cmd: string;
|
|
200
|
-
exitCode: number;
|
|
201
|
-
}[];
|
|
202
|
-
}>;
|
|
203
|
-
export declare const EventPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const EventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
204
78
|
type: z.ZodLiteral<EventType.TASK_CREATED>;
|
|
205
79
|
payload: z.ZodObject<{
|
|
206
80
|
title: z.ZodString;
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
}, {
|
|
210
|
-
title: string;
|
|
211
|
-
}>;
|
|
212
|
-
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
type: EventType.TASK_CREATED;
|
|
214
|
-
payload: {
|
|
215
|
-
title: string;
|
|
216
|
-
};
|
|
217
|
-
}, {
|
|
218
|
-
type: EventType.TASK_CREATED;
|
|
219
|
-
payload: {
|
|
220
|
-
title: string;
|
|
221
|
-
};
|
|
222
|
-
}>, z.ZodObject<{
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
223
83
|
type: z.ZodLiteral<EventType.TASK_DELETED>;
|
|
224
84
|
payload: z.ZodObject<{
|
|
225
85
|
title: z.ZodString;
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
}, {
|
|
229
|
-
title: string;
|
|
230
|
-
}>;
|
|
231
|
-
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
type: EventType.TASK_DELETED;
|
|
233
|
-
payload: {
|
|
234
|
-
title: string;
|
|
235
|
-
};
|
|
236
|
-
}, {
|
|
237
|
-
type: EventType.TASK_DELETED;
|
|
238
|
-
payload: {
|
|
239
|
-
title: string;
|
|
240
|
-
};
|
|
241
|
-
}>, z.ZodObject<{
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
242
88
|
type: z.ZodLiteral<EventType.STATUS_CHANGED>;
|
|
243
89
|
payload: z.ZodObject<{
|
|
244
90
|
title: z.ZodString;
|
|
245
|
-
oldStatus: z.
|
|
246
|
-
newStatus: z.
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
oldStatus: TaskStatus;
|
|
250
|
-
newStatus: TaskStatus;
|
|
251
|
-
}, {
|
|
252
|
-
title: string;
|
|
253
|
-
oldStatus: TaskStatus;
|
|
254
|
-
newStatus: TaskStatus;
|
|
255
|
-
}>;
|
|
256
|
-
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
type: EventType.STATUS_CHANGED;
|
|
258
|
-
payload: {
|
|
259
|
-
title: string;
|
|
260
|
-
oldStatus: TaskStatus;
|
|
261
|
-
newStatus: TaskStatus;
|
|
262
|
-
};
|
|
263
|
-
}, {
|
|
264
|
-
type: EventType.STATUS_CHANGED;
|
|
265
|
-
payload: {
|
|
266
|
-
title: string;
|
|
267
|
-
oldStatus: TaskStatus;
|
|
268
|
-
newStatus: TaskStatus;
|
|
269
|
-
};
|
|
270
|
-
}>, z.ZodObject<{
|
|
91
|
+
oldStatus: z.ZodEnum<typeof TaskStatus>;
|
|
92
|
+
newStatus: z.ZodEnum<typeof TaskStatus>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
271
95
|
type: z.ZodLiteral<EventType.COMMENT_ADDED>;
|
|
272
96
|
payload: z.ZodObject<{
|
|
273
97
|
title: z.ZodString;
|
|
274
98
|
author: z.ZodString;
|
|
275
99
|
text: z.ZodString;
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
text: string;
|
|
279
|
-
title: string;
|
|
280
|
-
}, {
|
|
281
|
-
author: string;
|
|
282
|
-
text: string;
|
|
283
|
-
title: string;
|
|
284
|
-
}>;
|
|
285
|
-
}, "strip", z.ZodTypeAny, {
|
|
286
|
-
type: EventType.COMMENT_ADDED;
|
|
287
|
-
payload: {
|
|
288
|
-
author: string;
|
|
289
|
-
text: string;
|
|
290
|
-
title: string;
|
|
291
|
-
};
|
|
292
|
-
}, {
|
|
293
|
-
type: EventType.COMMENT_ADDED;
|
|
294
|
-
payload: {
|
|
295
|
-
author: string;
|
|
296
|
-
text: string;
|
|
297
|
-
title: string;
|
|
298
|
-
};
|
|
299
|
-
}>, z.ZodObject<{
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
102
|
type: z.ZodLiteral<EventType.WORKSPACE_CREATED>;
|
|
301
103
|
payload: z.ZodObject<{
|
|
302
104
|
name: z.ZodString;
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
}, {
|
|
306
|
-
name: string;
|
|
307
|
-
}>;
|
|
308
|
-
}, "strip", z.ZodTypeAny, {
|
|
309
|
-
type: EventType.WORKSPACE_CREATED;
|
|
310
|
-
payload: {
|
|
311
|
-
name: string;
|
|
312
|
-
};
|
|
313
|
-
}, {
|
|
314
|
-
type: EventType.WORKSPACE_CREATED;
|
|
315
|
-
payload: {
|
|
316
|
-
name: string;
|
|
317
|
-
};
|
|
318
|
-
}>, z.ZodObject<{
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
319
107
|
type: z.ZodLiteral<EventType.MEMBER_ADDED>;
|
|
320
108
|
payload: z.ZodObject<{
|
|
321
109
|
userId: z.ZodString;
|
|
322
110
|
role: z.ZodString;
|
|
323
|
-
},
|
|
324
|
-
|
|
325
|
-
role: string;
|
|
326
|
-
}, {
|
|
327
|
-
userId: string;
|
|
328
|
-
role: string;
|
|
329
|
-
}>;
|
|
330
|
-
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
type: EventType.MEMBER_ADDED;
|
|
332
|
-
payload: {
|
|
333
|
-
userId: string;
|
|
334
|
-
role: string;
|
|
335
|
-
};
|
|
336
|
-
}, {
|
|
337
|
-
type: EventType.MEMBER_ADDED;
|
|
338
|
-
payload: {
|
|
339
|
-
userId: string;
|
|
340
|
-
role: string;
|
|
341
|
-
};
|
|
342
|
-
}>, z.ZodObject<{
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
343
113
|
type: z.ZodLiteral<EventType.MEMBER_INVITED>;
|
|
344
114
|
payload: z.ZodObject<{
|
|
345
115
|
email: z.ZodString;
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
}, {
|
|
349
|
-
email: string;
|
|
350
|
-
}>;
|
|
351
|
-
}, "strip", z.ZodTypeAny, {
|
|
352
|
-
type: EventType.MEMBER_INVITED;
|
|
353
|
-
payload: {
|
|
354
|
-
email: string;
|
|
355
|
-
};
|
|
356
|
-
}, {
|
|
357
|
-
type: EventType.MEMBER_INVITED;
|
|
358
|
-
payload: {
|
|
359
|
-
email: string;
|
|
360
|
-
};
|
|
361
|
-
}>, z.ZodObject<{
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
362
118
|
type: z.ZodLiteral<EventType.SPRINT_CREATED>;
|
|
363
119
|
payload: z.ZodObject<{
|
|
364
120
|
name: z.ZodString;
|
|
365
121
|
sprintId: z.ZodString;
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
sprintId: string;
|
|
369
|
-
}, {
|
|
370
|
-
name: string;
|
|
371
|
-
sprintId: string;
|
|
372
|
-
}>;
|
|
373
|
-
}, "strip", z.ZodTypeAny, {
|
|
374
|
-
type: EventType.SPRINT_CREATED;
|
|
375
|
-
payload: {
|
|
376
|
-
name: string;
|
|
377
|
-
sprintId: string;
|
|
378
|
-
};
|
|
379
|
-
}, {
|
|
380
|
-
type: EventType.SPRINT_CREATED;
|
|
381
|
-
payload: {
|
|
382
|
-
name: string;
|
|
383
|
-
sprintId: string;
|
|
384
|
-
};
|
|
385
|
-
}>, z.ZodObject<{
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
386
124
|
type: z.ZodLiteral<EventType.SPRINT_STATUS_CHANGED>;
|
|
387
125
|
payload: z.ZodObject<{
|
|
388
126
|
name: z.ZodString;
|
|
389
127
|
sprintId: z.ZodString;
|
|
390
|
-
oldStatus: z.
|
|
391
|
-
newStatus: z.
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
newStatus: SprintStatus;
|
|
395
|
-
name: string;
|
|
396
|
-
sprintId: string;
|
|
397
|
-
}, {
|
|
398
|
-
oldStatus: SprintStatus;
|
|
399
|
-
newStatus: SprintStatus;
|
|
400
|
-
name: string;
|
|
401
|
-
sprintId: string;
|
|
402
|
-
}>;
|
|
403
|
-
}, "strip", z.ZodTypeAny, {
|
|
404
|
-
type: EventType.SPRINT_STATUS_CHANGED;
|
|
405
|
-
payload: {
|
|
406
|
-
oldStatus: SprintStatus;
|
|
407
|
-
newStatus: SprintStatus;
|
|
408
|
-
name: string;
|
|
409
|
-
sprintId: string;
|
|
410
|
-
};
|
|
411
|
-
}, {
|
|
412
|
-
type: EventType.SPRINT_STATUS_CHANGED;
|
|
413
|
-
payload: {
|
|
414
|
-
oldStatus: SprintStatus;
|
|
415
|
-
newStatus: SprintStatus;
|
|
416
|
-
name: string;
|
|
417
|
-
sprintId: string;
|
|
418
|
-
};
|
|
419
|
-
}>, z.ZodObject<{
|
|
128
|
+
oldStatus: z.ZodEnum<typeof SprintStatus>;
|
|
129
|
+
newStatus: z.ZodEnum<typeof SprintStatus>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
420
132
|
type: z.ZodLiteral<EventType.CHECKLIST_INITIALIZED>;
|
|
421
133
|
payload: z.ZodObject<{
|
|
422
134
|
itemCount: z.ZodNumber;
|
|
423
|
-
},
|
|
424
|
-
|
|
425
|
-
}, {
|
|
426
|
-
itemCount: number;
|
|
427
|
-
}>;
|
|
428
|
-
}, "strip", z.ZodTypeAny, {
|
|
429
|
-
type: EventType.CHECKLIST_INITIALIZED;
|
|
430
|
-
payload: {
|
|
431
|
-
itemCount: number;
|
|
432
|
-
};
|
|
433
|
-
}, {
|
|
434
|
-
type: EventType.CHECKLIST_INITIALIZED;
|
|
435
|
-
payload: {
|
|
436
|
-
itemCount: number;
|
|
437
|
-
};
|
|
438
|
-
}>, z.ZodObject<{
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
439
137
|
type: z.ZodLiteral<EventType.CI_RAN>;
|
|
440
138
|
payload: z.ZodObject<{
|
|
441
139
|
preset: z.ZodString;
|
|
@@ -447,121 +145,33 @@ export declare const EventPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
447
145
|
commands: z.ZodArray<z.ZodObject<{
|
|
448
146
|
cmd: z.ZodString;
|
|
449
147
|
exitCode: z.ZodNumber;
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}, {
|
|
454
|
-
cmd: string;
|
|
455
|
-
exitCode: number;
|
|
456
|
-
}>, "many">;
|
|
457
|
-
}, "strip", z.ZodTypeAny, {
|
|
458
|
-
preset: string;
|
|
459
|
-
ok: boolean;
|
|
460
|
-
summary: string;
|
|
461
|
-
source: string;
|
|
462
|
-
deferred: boolean;
|
|
463
|
-
processed: boolean;
|
|
464
|
-
commands: {
|
|
465
|
-
cmd: string;
|
|
466
|
-
exitCode: number;
|
|
467
|
-
}[];
|
|
468
|
-
}, {
|
|
469
|
-
preset: string;
|
|
470
|
-
ok: boolean;
|
|
471
|
-
summary: string;
|
|
472
|
-
source: string;
|
|
473
|
-
deferred: boolean;
|
|
474
|
-
processed: boolean;
|
|
475
|
-
commands: {
|
|
476
|
-
cmd: string;
|
|
477
|
-
exitCode: number;
|
|
478
|
-
}[];
|
|
479
|
-
}>;
|
|
480
|
-
}, "strip", z.ZodTypeAny, {
|
|
481
|
-
type: EventType.CI_RAN;
|
|
482
|
-
payload: {
|
|
483
|
-
preset: string;
|
|
484
|
-
ok: boolean;
|
|
485
|
-
summary: string;
|
|
486
|
-
source: string;
|
|
487
|
-
deferred: boolean;
|
|
488
|
-
processed: boolean;
|
|
489
|
-
commands: {
|
|
490
|
-
cmd: string;
|
|
491
|
-
exitCode: number;
|
|
492
|
-
}[];
|
|
493
|
-
};
|
|
494
|
-
}, {
|
|
495
|
-
type: EventType.CI_RAN;
|
|
496
|
-
payload: {
|
|
497
|
-
preset: string;
|
|
498
|
-
ok: boolean;
|
|
499
|
-
summary: string;
|
|
500
|
-
source: string;
|
|
501
|
-
deferred: boolean;
|
|
502
|
-
processed: boolean;
|
|
503
|
-
commands: {
|
|
504
|
-
cmd: string;
|
|
505
|
-
exitCode: number;
|
|
506
|
-
}[];
|
|
507
|
-
};
|
|
508
|
-
}>]>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
}, z.core.$strip>], "type">;
|
|
509
151
|
export type EventPayload = z.infer<typeof EventPayloadSchema>;
|
|
510
152
|
export declare const EventSchema: z.ZodObject<{
|
|
511
153
|
id: z.ZodString;
|
|
512
154
|
workspaceId: z.ZodString;
|
|
513
155
|
taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
514
156
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
515
|
-
type: z.
|
|
157
|
+
type: z.ZodEnum<typeof EventType>;
|
|
516
158
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
517
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
518
|
-
},
|
|
519
|
-
id: string;
|
|
520
|
-
createdAt: number | Date;
|
|
521
|
-
type: EventType;
|
|
522
|
-
payload: Record<string, unknown>;
|
|
523
|
-
workspaceId: string;
|
|
524
|
-
taskId?: string | null | undefined;
|
|
525
|
-
userId?: string | null | undefined;
|
|
526
|
-
}, {
|
|
527
|
-
id: string;
|
|
528
|
-
createdAt: number | Date;
|
|
529
|
-
type: EventType;
|
|
530
|
-
payload: Record<string, unknown>;
|
|
531
|
-
workspaceId: string;
|
|
532
|
-
taskId?: string | null | undefined;
|
|
533
|
-
userId?: string | null | undefined;
|
|
534
|
-
}>;
|
|
159
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
160
|
+
}, z.core.$strip>;
|
|
535
161
|
export type Event = z.infer<typeof EventSchema>;
|
|
536
162
|
export declare const ArtifactParamSchema: z.ZodObject<{
|
|
537
163
|
taskId: z.ZodString;
|
|
538
164
|
type: z.ZodString;
|
|
539
165
|
filename: z.ZodString;
|
|
540
|
-
},
|
|
541
|
-
type: string;
|
|
542
|
-
taskId: string;
|
|
543
|
-
filename: string;
|
|
544
|
-
}, {
|
|
545
|
-
type: string;
|
|
546
|
-
taskId: string;
|
|
547
|
-
filename: string;
|
|
548
|
-
}>;
|
|
166
|
+
}, z.core.$strip>;
|
|
549
167
|
export type ArtifactParam = z.infer<typeof ArtifactParamSchema>;
|
|
550
168
|
export declare const TaskIdOnlyParamSchema: z.ZodObject<{
|
|
551
169
|
taskId: z.ZodString;
|
|
552
|
-
},
|
|
553
|
-
taskId: string;
|
|
554
|
-
}, {
|
|
555
|
-
taskId: string;
|
|
556
|
-
}>;
|
|
170
|
+
}, z.core.$strip>;
|
|
557
171
|
export type TaskIdOnlyParam = z.infer<typeof TaskIdOnlyParamSchema>;
|
|
558
172
|
export declare const EventQuerySchema: z.ZodObject<{
|
|
559
173
|
taskId: z.ZodOptional<z.ZodString>;
|
|
560
|
-
},
|
|
561
|
-
taskId?: string | undefined;
|
|
562
|
-
}, {
|
|
563
|
-
taskId?: string | undefined;
|
|
564
|
-
}>;
|
|
174
|
+
}, z.core.$strip>;
|
|
565
175
|
export type EventQuery = z.infer<typeof EventQuerySchema>;
|
|
566
176
|
export declare const EventResponseSchema: z.ZodObject<{
|
|
567
177
|
event: z.ZodObject<{
|
|
@@ -569,47 +179,11 @@ export declare const EventResponseSchema: z.ZodObject<{
|
|
|
569
179
|
workspaceId: z.ZodString;
|
|
570
180
|
taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
571
181
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
572
|
-
type: z.
|
|
182
|
+
type: z.ZodEnum<typeof EventType>;
|
|
573
183
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
574
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
575
|
-
},
|
|
576
|
-
|
|
577
|
-
createdAt: number | Date;
|
|
578
|
-
type: EventType;
|
|
579
|
-
payload: Record<string, unknown>;
|
|
580
|
-
workspaceId: string;
|
|
581
|
-
taskId?: string | null | undefined;
|
|
582
|
-
userId?: string | null | undefined;
|
|
583
|
-
}, {
|
|
584
|
-
id: string;
|
|
585
|
-
createdAt: number | Date;
|
|
586
|
-
type: EventType;
|
|
587
|
-
payload: Record<string, unknown>;
|
|
588
|
-
workspaceId: string;
|
|
589
|
-
taskId?: string | null | undefined;
|
|
590
|
-
userId?: string | null | undefined;
|
|
591
|
-
}>;
|
|
592
|
-
}, "strip", z.ZodTypeAny, {
|
|
593
|
-
event: {
|
|
594
|
-
id: string;
|
|
595
|
-
createdAt: number | Date;
|
|
596
|
-
type: EventType;
|
|
597
|
-
payload: Record<string, unknown>;
|
|
598
|
-
workspaceId: string;
|
|
599
|
-
taskId?: string | null | undefined;
|
|
600
|
-
userId?: string | null | undefined;
|
|
601
|
-
};
|
|
602
|
-
}, {
|
|
603
|
-
event: {
|
|
604
|
-
id: string;
|
|
605
|
-
createdAt: number | Date;
|
|
606
|
-
type: EventType;
|
|
607
|
-
payload: Record<string, unknown>;
|
|
608
|
-
workspaceId: string;
|
|
609
|
-
taskId?: string | null | undefined;
|
|
610
|
-
userId?: string | null | undefined;
|
|
611
|
-
};
|
|
612
|
-
}>;
|
|
184
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
}, z.core.$strip>;
|
|
613
187
|
export type EventResponse = z.infer<typeof EventResponseSchema>;
|
|
614
188
|
export declare const EventsResponseSchema: z.ZodObject<{
|
|
615
189
|
events: z.ZodArray<z.ZodObject<{
|
|
@@ -617,47 +191,11 @@ export declare const EventsResponseSchema: z.ZodObject<{
|
|
|
617
191
|
workspaceId: z.ZodString;
|
|
618
192
|
taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
619
193
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
620
|
-
type: z.
|
|
194
|
+
type: z.ZodEnum<typeof EventType>;
|
|
621
195
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
622
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
623
|
-
},
|
|
624
|
-
|
|
625
|
-
createdAt: number | Date;
|
|
626
|
-
type: EventType;
|
|
627
|
-
payload: Record<string, unknown>;
|
|
628
|
-
workspaceId: string;
|
|
629
|
-
taskId?: string | null | undefined;
|
|
630
|
-
userId?: string | null | undefined;
|
|
631
|
-
}, {
|
|
632
|
-
id: string;
|
|
633
|
-
createdAt: number | Date;
|
|
634
|
-
type: EventType;
|
|
635
|
-
payload: Record<string, unknown>;
|
|
636
|
-
workspaceId: string;
|
|
637
|
-
taskId?: string | null | undefined;
|
|
638
|
-
userId?: string | null | undefined;
|
|
639
|
-
}>, "many">;
|
|
640
|
-
}, "strip", z.ZodTypeAny, {
|
|
641
|
-
events: {
|
|
642
|
-
id: string;
|
|
643
|
-
createdAt: number | Date;
|
|
644
|
-
type: EventType;
|
|
645
|
-
payload: Record<string, unknown>;
|
|
646
|
-
workspaceId: string;
|
|
647
|
-
taskId?: string | null | undefined;
|
|
648
|
-
userId?: string | null | undefined;
|
|
649
|
-
}[];
|
|
650
|
-
}, {
|
|
651
|
-
events: {
|
|
652
|
-
id: string;
|
|
653
|
-
createdAt: number | Date;
|
|
654
|
-
type: EventType;
|
|
655
|
-
payload: Record<string, unknown>;
|
|
656
|
-
workspaceId: string;
|
|
657
|
-
taskId?: string | null | undefined;
|
|
658
|
-
userId?: string | null | undefined;
|
|
659
|
-
}[];
|
|
660
|
-
}>;
|
|
196
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
661
199
|
export type EventsResponse = z.infer<typeof EventsResponseSchema>;
|
|
662
200
|
export declare const ActivityResponseSchema: z.ZodObject<{
|
|
663
201
|
activity: z.ZodArray<z.ZodObject<{
|
|
@@ -665,98 +203,28 @@ export declare const ActivityResponseSchema: z.ZodObject<{
|
|
|
665
203
|
workspaceId: z.ZodString;
|
|
666
204
|
taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
667
205
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
668
|
-
type: z.
|
|
206
|
+
type: z.ZodEnum<typeof EventType>;
|
|
669
207
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
670
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
671
|
-
},
|
|
672
|
-
|
|
673
|
-
createdAt: number | Date;
|
|
674
|
-
type: EventType;
|
|
675
|
-
payload: Record<string, unknown>;
|
|
676
|
-
workspaceId: string;
|
|
677
|
-
taskId?: string | null | undefined;
|
|
678
|
-
userId?: string | null | undefined;
|
|
679
|
-
}, {
|
|
680
|
-
id: string;
|
|
681
|
-
createdAt: number | Date;
|
|
682
|
-
type: EventType;
|
|
683
|
-
payload: Record<string, unknown>;
|
|
684
|
-
workspaceId: string;
|
|
685
|
-
taskId?: string | null | undefined;
|
|
686
|
-
userId?: string | null | undefined;
|
|
687
|
-
}>, "many">;
|
|
688
|
-
}, "strip", z.ZodTypeAny, {
|
|
689
|
-
activity: {
|
|
690
|
-
id: string;
|
|
691
|
-
createdAt: number | Date;
|
|
692
|
-
type: EventType;
|
|
693
|
-
payload: Record<string, unknown>;
|
|
694
|
-
workspaceId: string;
|
|
695
|
-
taskId?: string | null | undefined;
|
|
696
|
-
userId?: string | null | undefined;
|
|
697
|
-
}[];
|
|
698
|
-
}, {
|
|
699
|
-
activity: {
|
|
700
|
-
id: string;
|
|
701
|
-
createdAt: number | Date;
|
|
702
|
-
type: EventType;
|
|
703
|
-
payload: Record<string, unknown>;
|
|
704
|
-
workspaceId: string;
|
|
705
|
-
taskId?: string | null | undefined;
|
|
706
|
-
userId?: string | null | undefined;
|
|
707
|
-
}[];
|
|
708
|
-
}>;
|
|
208
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
}, z.core.$strip>;
|
|
709
211
|
export type ActivityResponse = z.infer<typeof ActivityResponseSchema>;
|
|
710
212
|
export declare const CommentResponseSchema: z.ZodObject<{
|
|
711
213
|
comment: z.ZodObject<{
|
|
712
214
|
id: z.ZodString;
|
|
713
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
714
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
715
|
-
} & {
|
|
215
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
216
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
716
217
|
taskId: z.ZodString;
|
|
717
218
|
author: z.ZodString;
|
|
718
219
|
text: z.ZodString;
|
|
719
|
-
},
|
|
720
|
-
|
|
721
|
-
createdAt: number | Date;
|
|
722
|
-
updatedAt: number | Date;
|
|
723
|
-
taskId: string;
|
|
724
|
-
author: string;
|
|
725
|
-
text: string;
|
|
726
|
-
}, {
|
|
727
|
-
id: string;
|
|
728
|
-
createdAt: number | Date;
|
|
729
|
-
updatedAt: number | Date;
|
|
730
|
-
taskId: string;
|
|
731
|
-
author: string;
|
|
732
|
-
text: string;
|
|
733
|
-
}>;
|
|
734
|
-
}, "strip", z.ZodTypeAny, {
|
|
735
|
-
comment: {
|
|
736
|
-
id: string;
|
|
737
|
-
createdAt: number | Date;
|
|
738
|
-
updatedAt: number | Date;
|
|
739
|
-
taskId: string;
|
|
740
|
-
author: string;
|
|
741
|
-
text: string;
|
|
742
|
-
};
|
|
743
|
-
}, {
|
|
744
|
-
comment: {
|
|
745
|
-
id: string;
|
|
746
|
-
createdAt: number | Date;
|
|
747
|
-
updatedAt: number | Date;
|
|
748
|
-
taskId: string;
|
|
749
|
-
author: string;
|
|
750
|
-
text: string;
|
|
751
|
-
};
|
|
752
|
-
}>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
}, z.core.$strip>;
|
|
753
222
|
export type CommentResponse = z.infer<typeof CommentResponseSchema>;
|
|
754
223
|
export declare const ArtifactResponseSchema: z.ZodObject<{
|
|
755
224
|
artifact: z.ZodObject<{
|
|
756
225
|
id: z.ZodString;
|
|
757
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
758
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
759
|
-
} & {
|
|
226
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
227
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
760
228
|
taskId: z.ZodString;
|
|
761
229
|
type: z.ZodString;
|
|
762
230
|
title: z.ZodString;
|
|
@@ -765,67 +233,14 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
|
|
|
765
233
|
url: z.ZodOptional<z.ZodString>;
|
|
766
234
|
size: z.ZodOptional<z.ZodString>;
|
|
767
235
|
createdBy: z.ZodString;
|
|
768
|
-
},
|
|
769
|
-
|
|
770
|
-
createdAt: number | Date;
|
|
771
|
-
type: string;
|
|
772
|
-
updatedAt: number | Date;
|
|
773
|
-
taskId: string;
|
|
774
|
-
title: string;
|
|
775
|
-
createdBy: string;
|
|
776
|
-
contentText?: string | undefined;
|
|
777
|
-
filePath?: string | undefined;
|
|
778
|
-
url?: string | undefined;
|
|
779
|
-
size?: string | undefined;
|
|
780
|
-
}, {
|
|
781
|
-
id: string;
|
|
782
|
-
createdAt: number | Date;
|
|
783
|
-
type: string;
|
|
784
|
-
updatedAt: number | Date;
|
|
785
|
-
taskId: string;
|
|
786
|
-
title: string;
|
|
787
|
-
createdBy: string;
|
|
788
|
-
contentText?: string | undefined;
|
|
789
|
-
filePath?: string | undefined;
|
|
790
|
-
url?: string | undefined;
|
|
791
|
-
size?: string | undefined;
|
|
792
|
-
}>;
|
|
793
|
-
}, "strip", z.ZodTypeAny, {
|
|
794
|
-
artifact: {
|
|
795
|
-
id: string;
|
|
796
|
-
createdAt: number | Date;
|
|
797
|
-
type: string;
|
|
798
|
-
updatedAt: number | Date;
|
|
799
|
-
taskId: string;
|
|
800
|
-
title: string;
|
|
801
|
-
createdBy: string;
|
|
802
|
-
contentText?: string | undefined;
|
|
803
|
-
filePath?: string | undefined;
|
|
804
|
-
url?: string | undefined;
|
|
805
|
-
size?: string | undefined;
|
|
806
|
-
};
|
|
807
|
-
}, {
|
|
808
|
-
artifact: {
|
|
809
|
-
id: string;
|
|
810
|
-
createdAt: number | Date;
|
|
811
|
-
type: string;
|
|
812
|
-
updatedAt: number | Date;
|
|
813
|
-
taskId: string;
|
|
814
|
-
title: string;
|
|
815
|
-
createdBy: string;
|
|
816
|
-
contentText?: string | undefined;
|
|
817
|
-
filePath?: string | undefined;
|
|
818
|
-
url?: string | undefined;
|
|
819
|
-
size?: string | undefined;
|
|
820
|
-
};
|
|
821
|
-
}>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
}, z.core.$strip>;
|
|
822
238
|
export type ArtifactResponse = z.infer<typeof ArtifactResponseSchema>;
|
|
823
239
|
export declare const ArtifactsResponseSchema: z.ZodObject<{
|
|
824
240
|
artifacts: z.ZodArray<z.ZodObject<{
|
|
825
241
|
id: z.ZodString;
|
|
826
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
827
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
828
|
-
} & {
|
|
242
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
243
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
829
244
|
taskId: z.ZodString;
|
|
830
245
|
type: z.ZodString;
|
|
831
246
|
title: z.ZodString;
|
|
@@ -834,77 +249,15 @@ export declare const ArtifactsResponseSchema: z.ZodObject<{
|
|
|
834
249
|
url: z.ZodOptional<z.ZodString>;
|
|
835
250
|
size: z.ZodOptional<z.ZodString>;
|
|
836
251
|
createdBy: z.ZodString;
|
|
837
|
-
},
|
|
838
|
-
|
|
839
|
-
createdAt: number | Date;
|
|
840
|
-
type: string;
|
|
841
|
-
updatedAt: number | Date;
|
|
842
|
-
taskId: string;
|
|
843
|
-
title: string;
|
|
844
|
-
createdBy: string;
|
|
845
|
-
contentText?: string | undefined;
|
|
846
|
-
filePath?: string | undefined;
|
|
847
|
-
url?: string | undefined;
|
|
848
|
-
size?: string | undefined;
|
|
849
|
-
}, {
|
|
850
|
-
id: string;
|
|
851
|
-
createdAt: number | Date;
|
|
852
|
-
type: string;
|
|
853
|
-
updatedAt: number | Date;
|
|
854
|
-
taskId: string;
|
|
855
|
-
title: string;
|
|
856
|
-
createdBy: string;
|
|
857
|
-
contentText?: string | undefined;
|
|
858
|
-
filePath?: string | undefined;
|
|
859
|
-
url?: string | undefined;
|
|
860
|
-
size?: string | undefined;
|
|
861
|
-
}>, "many">;
|
|
862
|
-
}, "strip", z.ZodTypeAny, {
|
|
863
|
-
artifacts: {
|
|
864
|
-
id: string;
|
|
865
|
-
createdAt: number | Date;
|
|
866
|
-
type: string;
|
|
867
|
-
updatedAt: number | Date;
|
|
868
|
-
taskId: string;
|
|
869
|
-
title: string;
|
|
870
|
-
createdBy: string;
|
|
871
|
-
contentText?: string | undefined;
|
|
872
|
-
filePath?: string | undefined;
|
|
873
|
-
url?: string | undefined;
|
|
874
|
-
size?: string | undefined;
|
|
875
|
-
}[];
|
|
876
|
-
}, {
|
|
877
|
-
artifacts: {
|
|
878
|
-
id: string;
|
|
879
|
-
createdAt: number | Date;
|
|
880
|
-
type: string;
|
|
881
|
-
updatedAt: number | Date;
|
|
882
|
-
taskId: string;
|
|
883
|
-
title: string;
|
|
884
|
-
createdBy: string;
|
|
885
|
-
contentText?: string | undefined;
|
|
886
|
-
filePath?: string | undefined;
|
|
887
|
-
url?: string | undefined;
|
|
888
|
-
size?: string | undefined;
|
|
889
|
-
}[];
|
|
890
|
-
}>;
|
|
252
|
+
}, z.core.$strip>>;
|
|
253
|
+
}, z.core.$strip>;
|
|
891
254
|
export type ArtifactsResponse = z.infer<typeof ArtifactsResponseSchema>;
|
|
892
255
|
export declare const CreateArtifactSchema: z.ZodObject<{
|
|
893
256
|
taskId: z.ZodString;
|
|
894
257
|
type: z.ZodString;
|
|
895
258
|
title: z.ZodString;
|
|
896
259
|
contentText: z.ZodOptional<z.ZodString>;
|
|
897
|
-
},
|
|
898
|
-
type: string;
|
|
899
|
-
taskId: string;
|
|
900
|
-
title: string;
|
|
901
|
-
contentText?: string | undefined;
|
|
902
|
-
}, {
|
|
903
|
-
type: string;
|
|
904
|
-
taskId: string;
|
|
905
|
-
title: string;
|
|
906
|
-
contentText?: string | undefined;
|
|
907
|
-
}>;
|
|
260
|
+
}, z.core.$strip>;
|
|
908
261
|
export type CreateArtifact = z.infer<typeof CreateArtifactSchema>;
|
|
909
262
|
export declare const ReportCiResultSchema: z.ZodObject<{
|
|
910
263
|
workspaceId: z.ZodString;
|
|
@@ -915,33 +268,7 @@ export declare const ReportCiResultSchema: z.ZodObject<{
|
|
|
915
268
|
commands: z.ZodArray<z.ZodObject<{
|
|
916
269
|
cmd: z.ZodString;
|
|
917
270
|
exitCode: z.ZodNumber;
|
|
918
|
-
},
|
|
919
|
-
|
|
920
|
-
exitCode: number;
|
|
921
|
-
}, {
|
|
922
|
-
cmd: string;
|
|
923
|
-
exitCode: number;
|
|
924
|
-
}>, "many">;
|
|
925
|
-
}, "strip", z.ZodTypeAny, {
|
|
926
|
-
preset: string;
|
|
927
|
-
ok: boolean;
|
|
928
|
-
summary: string;
|
|
929
|
-
commands: {
|
|
930
|
-
cmd: string;
|
|
931
|
-
exitCode: number;
|
|
932
|
-
}[];
|
|
933
|
-
workspaceId: string;
|
|
934
|
-
taskId?: string | undefined;
|
|
935
|
-
}, {
|
|
936
|
-
preset: string;
|
|
937
|
-
ok: boolean;
|
|
938
|
-
summary: string;
|
|
939
|
-
commands: {
|
|
940
|
-
cmd: string;
|
|
941
|
-
exitCode: number;
|
|
942
|
-
}[];
|
|
943
|
-
workspaceId: string;
|
|
944
|
-
taskId?: string | undefined;
|
|
945
|
-
}>;
|
|
271
|
+
}, z.core.$strip>>;
|
|
272
|
+
}, z.core.$strip>;
|
|
946
273
|
export type ReportCiResult = z.infer<typeof ReportCiResultSchema>;
|
|
947
274
|
//# sourceMappingURL=activity.d.ts.map
|