@skillcdn/console 0.1.1 → 0.1.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/README.md +15 -10
- package/dist/api.d.ts +6 -5
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +5 -4
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +3 -0
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +251 -44
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/directory.d.ts +14 -0
- package/dist/cli/directory.d.ts.map +1 -0
- package/dist/cli/directory.js +46 -0
- package/dist/cli/directory.js.map +1 -0
- package/dist/cli/format.d.ts +15 -3
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +84 -6
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +78 -9
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/main.js +2 -0
- package/dist/cli/main.js.map +1 -1
- package/dist/client.d.ts +69 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +71 -33
- package/dist/client.js.map +1 -1
- package/dist/components/decision-list.d.ts +7 -1
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +21 -4
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/documents.d.ts +85 -0
- package/dist/components/documents.d.ts.map +1 -0
- package/dist/components/documents.js +103 -0
- package/dist/components/documents.js.map +1 -0
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +46 -14
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/markdown.d.ts +5 -2
- package/dist/components/markdown.d.ts.map +1 -1
- package/dist/components/markdown.js +8 -1
- package/dist/components/markdown.js.map +1 -1
- package/dist/components/projects.d.ts +41 -0
- package/dist/components/projects.d.ts.map +1 -0
- package/dist/components/projects.js +81 -0
- package/dist/components/projects.js.map +1 -0
- package/dist/components/runs.d.ts +5 -2
- package/dist/components/runs.d.ts.map +1 -1
- package/dist/components/runs.js +4 -4
- package/dist/components/runs.js.map +1 -1
- package/dist/components/shell.d.ts +5 -0
- package/dist/components/shell.d.ts.map +1 -1
- package/dist/components/shell.js +1 -1
- package/dist/components/shell.js.map +1 -1
- package/dist/components/task-view.d.ts +9 -1
- package/dist/components/task-view.d.ts.map +1 -1
- package/dist/components/task-view.js +3 -2
- package/dist/components/task-view.js.map +1 -1
- package/dist/console.css +253 -1
- package/dist/console.d.ts +3 -0
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +156 -58
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +44 -10
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +215 -81
- package/dist/data.js.map +1 -1
- package/dist/docs-page.d.ts +11 -0
- package/dist/docs-page.d.ts.map +1 -0
- package/dist/docs-page.js +146 -0
- package/dist/docs-page.js.map +1 -0
- package/dist/documents.d.ts +19 -0
- package/dist/documents.d.ts.map +1 -0
- package/dist/documents.js +64 -0
- package/dist/documents.js.map +1 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +17 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +17 -0
- package/dist/limits.js.map +1 -1
- package/dist/router.d.ts +28 -7
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +52 -23
- package/dist/router.js.map +1 -1
- package/dist/routes.d.ts +16 -12
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +31 -11
- package/dist/routes.js.map +1 -1
- package/dist/schemas.d.ts +414 -28
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +204 -27
- package/dist/schemas.js.map +1 -1
- package/dist/use-action.d.ts +8 -0
- package/dist/use-action.d.ts.map +1 -0
- package/dist/use-action.js +30 -0
- package/dist/use-action.js.map +1 -0
- package/dist/vocabulary.d.ts +10 -1
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +16 -0
- package/dist/vocabulary.js.map +1 -1
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -69,6 +69,130 @@ export declare const restPersonPatchSchema: z.ZodMiniObject<{
|
|
|
69
69
|
}>;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
export type RestPersonPatch = z.infer<typeof restPersonPatchSchema>;
|
|
72
|
+
/** A project of the workspace, as the asker sees it: with what they are in it. */
|
|
73
|
+
export declare const restProjectSchema: z.ZodMiniObject<{
|
|
74
|
+
id: z.ZodMiniUUID;
|
|
75
|
+
key: z.ZodMiniString<string>;
|
|
76
|
+
name: z.ZodMiniString<string>;
|
|
77
|
+
description: z.ZodMiniString<string>;
|
|
78
|
+
visibility: z.ZodMiniEnum<{
|
|
79
|
+
private: "private";
|
|
80
|
+
workspace: "workspace";
|
|
81
|
+
}>;
|
|
82
|
+
skillsAddress: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
83
|
+
role: z.ZodMiniEnum<{
|
|
84
|
+
member: "member";
|
|
85
|
+
owner: "owner";
|
|
86
|
+
}>;
|
|
87
|
+
openDecisions: z.ZodMiniInt;
|
|
88
|
+
openRuns: z.ZodMiniInt;
|
|
89
|
+
createdAt: z.ZodMiniISODateTime;
|
|
90
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type RestProject = z.infer<typeof restProjectSchema>;
|
|
93
|
+
/** `GET /api/v1/projects`: the projects the asker may see, by name. */
|
|
94
|
+
export declare const restProjectsSchema: z.ZodMiniObject<{
|
|
95
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
96
|
+
id: z.ZodMiniUUID;
|
|
97
|
+
key: z.ZodMiniString<string>;
|
|
98
|
+
name: z.ZodMiniString<string>;
|
|
99
|
+
description: z.ZodMiniString<string>;
|
|
100
|
+
visibility: z.ZodMiniEnum<{
|
|
101
|
+
private: "private";
|
|
102
|
+
workspace: "workspace";
|
|
103
|
+
}>;
|
|
104
|
+
skillsAddress: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
105
|
+
role: z.ZodMiniEnum<{
|
|
106
|
+
member: "member";
|
|
107
|
+
owner: "owner";
|
|
108
|
+
}>;
|
|
109
|
+
openDecisions: z.ZodMiniInt;
|
|
110
|
+
openRuns: z.ZodMiniInt;
|
|
111
|
+
createdAt: z.ZodMiniISODateTime;
|
|
112
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export type RestProjects = z.infer<typeof restProjectsSchema>;
|
|
116
|
+
/** What `POST /api/v1/projects` is sent: the key and the name; the rest has a default. */
|
|
117
|
+
export declare const restProjectInputSchema: z.ZodMiniObject<{
|
|
118
|
+
key: z.ZodMiniString<string>;
|
|
119
|
+
name: z.ZodMiniString<string>;
|
|
120
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
121
|
+
visibility: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
122
|
+
private: "private";
|
|
123
|
+
workspace: "workspace";
|
|
124
|
+
}>>;
|
|
125
|
+
skillsAddress: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export type RestProjectInput = z.infer<typeof restProjectInputSchema>;
|
|
128
|
+
/** What `PATCH /api/v1/projects/<key>` is sent: only what changes; the key does not. */
|
|
129
|
+
export declare const restProjectPatchSchema: z.ZodMiniObject<{
|
|
130
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
131
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
132
|
+
visibility: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
133
|
+
private: "private";
|
|
134
|
+
workspace: "workspace";
|
|
135
|
+
}>>;
|
|
136
|
+
skillsAddress: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
export type RestProjectPatch = z.infer<typeof restProjectPatchSchema>;
|
|
139
|
+
/** A person listed in a project, with what they are in it. */
|
|
140
|
+
export declare const restMemberSchema: z.ZodMiniObject<{
|
|
141
|
+
person: z.ZodMiniObject<{
|
|
142
|
+
id: z.ZodMiniUUID;
|
|
143
|
+
login: z.ZodMiniString<string>;
|
|
144
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
145
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
146
|
+
role: z.ZodMiniEnum<{
|
|
147
|
+
admin: "admin";
|
|
148
|
+
member: "member";
|
|
149
|
+
}>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
role: z.ZodMiniEnum<{
|
|
152
|
+
member: "member";
|
|
153
|
+
owner: "owner";
|
|
154
|
+
}>;
|
|
155
|
+
addedAt: z.ZodMiniISODateTime;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export type RestMember = z.infer<typeof restMemberSchema>;
|
|
158
|
+
/** `GET /api/v1/projects/<key>/members`: those listed, by login. */
|
|
159
|
+
export declare const restMembersSchema: z.ZodMiniObject<{
|
|
160
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
161
|
+
person: z.ZodMiniObject<{
|
|
162
|
+
id: z.ZodMiniUUID;
|
|
163
|
+
login: z.ZodMiniString<string>;
|
|
164
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
165
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
166
|
+
role: z.ZodMiniEnum<{
|
|
167
|
+
admin: "admin";
|
|
168
|
+
member: "member";
|
|
169
|
+
}>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
role: z.ZodMiniEnum<{
|
|
172
|
+
member: "member";
|
|
173
|
+
owner: "owner";
|
|
174
|
+
}>;
|
|
175
|
+
addedAt: z.ZodMiniISODateTime;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export type RestMembers = z.infer<typeof restMembersSchema>;
|
|
179
|
+
/** What `POST /api/v1/projects/<key>/members` is sent: a person of the workspace, and what they are to be. */
|
|
180
|
+
export declare const restMemberInputSchema: z.ZodMiniObject<{
|
|
181
|
+
personId: z.ZodMiniUUID;
|
|
182
|
+
role: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
183
|
+
member: "member";
|
|
184
|
+
owner: "owner";
|
|
185
|
+
}>>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
export type RestMemberInput = z.infer<typeof restMemberInputSchema>;
|
|
188
|
+
/** What `PATCH /api/v1/projects/<key>/members/<person id>` is sent. */
|
|
189
|
+
export declare const restMemberPatchSchema: z.ZodMiniObject<{
|
|
190
|
+
role: z.ZodMiniEnum<{
|
|
191
|
+
member: "member";
|
|
192
|
+
owner: "owner";
|
|
193
|
+
}>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
export type RestMemberPatch = z.infer<typeof restMemberPatchSchema>;
|
|
72
196
|
export declare const restTaskLinkSchema: z.ZodMiniObject<{
|
|
73
197
|
url: z.ZodMiniString<string>;
|
|
74
198
|
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
@@ -124,7 +248,7 @@ export declare const restTaskSchema: z.ZodMiniObject<{
|
|
|
124
248
|
updatedAt: z.ZodMiniISODateTime;
|
|
125
249
|
}, z.core.$strip>;
|
|
126
250
|
export type RestTask = z.infer<typeof restTaskSchema>;
|
|
127
|
-
/** `GET /api/v1/tasks`: the board, newest first. */
|
|
251
|
+
/** `GET /api/v1/projects/<key>/tasks`: the board, newest first. */
|
|
128
252
|
export declare const restTasksSchema: z.ZodMiniObject<{
|
|
129
253
|
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
130
254
|
id: z.ZodMiniUUID;
|
|
@@ -177,7 +301,7 @@ export declare const restTasksSchema: z.ZodMiniObject<{
|
|
|
177
301
|
}, z.core.$strip>>;
|
|
178
302
|
}, z.core.$strip>;
|
|
179
303
|
export type RestTasks = z.infer<typeof restTasksSchema>;
|
|
180
|
-
/** What `POST /api/v1/tasks` is sent. Everything but the title has a default. */
|
|
304
|
+
/** What `POST /api/v1/projects/<key>/tasks` is sent. Everything but the title has a default. */
|
|
181
305
|
export declare const restTaskInputSchema: z.ZodMiniObject<{
|
|
182
306
|
title: z.ZodMiniString<string>;
|
|
183
307
|
body: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -203,7 +327,7 @@ export declare const restTaskInputSchema: z.ZodMiniObject<{
|
|
|
203
327
|
}, z.core.$strip>>>;
|
|
204
328
|
}, z.core.$strip>;
|
|
205
329
|
export type RestTaskInput = z.infer<typeof restTaskInputSchema>;
|
|
206
|
-
/** What `PATCH /api/v1/tasks/<id>` is sent: only what changes. */
|
|
330
|
+
/** What `PATCH /api/v1/projects/<key>/tasks/<id>` is sent: only what changes. */
|
|
207
331
|
export declare const restTaskPatchSchema: z.ZodMiniObject<{
|
|
208
332
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
209
333
|
body: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -273,11 +397,12 @@ export declare const restDecisionSchema: z.ZodMiniObject<{
|
|
|
273
397
|
}, z.core.$strip>;
|
|
274
398
|
at: z.ZodMiniISODateTime;
|
|
275
399
|
}, z.core.$strip>>;
|
|
400
|
+
outcome: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
276
401
|
createdAt: z.ZodMiniISODateTime;
|
|
277
402
|
updatedAt: z.ZodMiniISODateTime;
|
|
278
403
|
}, z.core.$strip>;
|
|
279
404
|
export type RestDecision = z.infer<typeof restDecisionSchema>;
|
|
280
|
-
/** `GET /api/v1/decisions`: the ones that wait first, newest first within each. */
|
|
405
|
+
/** `GET /api/v1/projects/<key>/decisions`: the ones that wait first, newest first within each. */
|
|
281
406
|
export declare const restDecisionsSchema: z.ZodMiniObject<{
|
|
282
407
|
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
283
408
|
id: z.ZodMiniUUID;
|
|
@@ -318,12 +443,13 @@ export declare const restDecisionsSchema: z.ZodMiniObject<{
|
|
|
318
443
|
}, z.core.$strip>;
|
|
319
444
|
at: z.ZodMiniISODateTime;
|
|
320
445
|
}, z.core.$strip>>;
|
|
446
|
+
outcome: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
321
447
|
createdAt: z.ZodMiniISODateTime;
|
|
322
448
|
updatedAt: z.ZodMiniISODateTime;
|
|
323
449
|
}, z.core.$strip>>;
|
|
324
450
|
}, z.core.$strip>;
|
|
325
451
|
export type RestDecisions = z.infer<typeof restDecisionsSchema>;
|
|
326
|
-
/** What `POST /api/v1/decisions` is sent: the question, its context, and the options. */
|
|
452
|
+
/** What `POST /api/v1/projects/<key>/decisions` is sent: the question, its context, and the options. */
|
|
327
453
|
export declare const restDecisionInputSchema: z.ZodMiniObject<{
|
|
328
454
|
question: z.ZodMiniString<string>;
|
|
329
455
|
body: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -334,7 +460,13 @@ export declare const restDecisionInputSchema: z.ZodMiniObject<{
|
|
|
334
460
|
runId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUUID>>;
|
|
335
461
|
}, z.core.$strip>;
|
|
336
462
|
export type RestDecisionInput = z.infer<typeof restDecisionInputSchema>;
|
|
337
|
-
/** What `
|
|
463
|
+
/** What `PATCH .../decisions/<id>` is sent: the record growing, its context or what followed; only what changes. */
|
|
464
|
+
export declare const restDecisionPatchSchema: z.ZodMiniObject<{
|
|
465
|
+
body: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
466
|
+
outcome: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
467
|
+
}, z.core.$strip>;
|
|
468
|
+
export type RestDecisionPatch = z.infer<typeof restDecisionPatchSchema>;
|
|
469
|
+
/** What `POST .../decisions/<id>/answer` is sent: an option, and a word about it. */
|
|
338
470
|
export declare const restAnswerInputSchema: z.ZodMiniObject<{
|
|
339
471
|
option: z.ZodMiniString<string>;
|
|
340
472
|
note: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -348,6 +480,8 @@ export declare const restEventDataSchema: z.ZodMiniObject<{
|
|
|
348
480
|
number: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
349
481
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
350
482
|
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
483
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
484
|
+
version: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
351
485
|
from: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
352
486
|
done: "done";
|
|
353
487
|
dropped: "dropped";
|
|
@@ -367,10 +501,9 @@ export declare const restEventDataSchema: z.ZodMiniObject<{
|
|
|
367
501
|
question: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
368
502
|
option: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
369
503
|
login: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
370
|
-
role: z.ZodMiniOptional<z.
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}>>;
|
|
504
|
+
role: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
505
|
+
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
506
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
374
507
|
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
375
508
|
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
376
509
|
abandoned: "abandoned";
|
|
@@ -388,8 +521,18 @@ export declare const restEventSchema: z.ZodMiniObject<{
|
|
|
388
521
|
kind: z.ZodMiniEnum<{
|
|
389
522
|
"decision.answered": "decision.answered";
|
|
390
523
|
"decision.raised": "decision.raised";
|
|
524
|
+
"decision.updated": "decision.updated";
|
|
525
|
+
"document.archived": "document.archived";
|
|
526
|
+
"document.file_attached": "document.file_attached";
|
|
527
|
+
"document.restored": "document.restored";
|
|
528
|
+
"document.written": "document.written";
|
|
391
529
|
"person.joined": "person.joined";
|
|
392
530
|
"person.role_changed": "person.role_changed";
|
|
531
|
+
"project.created": "project.created";
|
|
532
|
+
"project.member_added": "project.member_added";
|
|
533
|
+
"project.member_changed": "project.member_changed";
|
|
534
|
+
"project.member_removed": "project.member_removed";
|
|
535
|
+
"project.updated": "project.updated";
|
|
393
536
|
"run.ended": "run.ended";
|
|
394
537
|
"run.handed_in": "run.handed_in";
|
|
395
538
|
"run.reported": "run.reported";
|
|
@@ -408,13 +551,18 @@ export declare const restEventSchema: z.ZodMiniObject<{
|
|
|
408
551
|
member: "member";
|
|
409
552
|
}>;
|
|
410
553
|
}, z.core.$strip>>;
|
|
554
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
555
|
+
projectId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
411
556
|
taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
412
557
|
decisionId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
413
558
|
runId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
559
|
+
documentId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
414
560
|
data: z.ZodMiniObject<{
|
|
415
561
|
number: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
416
562
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
417
563
|
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
564
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
565
|
+
version: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
418
566
|
from: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
419
567
|
done: "done";
|
|
420
568
|
dropped: "dropped";
|
|
@@ -434,10 +582,9 @@ export declare const restEventSchema: z.ZodMiniObject<{
|
|
|
434
582
|
question: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
435
583
|
option: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
436
584
|
login: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
437
|
-
role: z.ZodMiniOptional<z.
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
}>>;
|
|
585
|
+
role: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
586
|
+
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
587
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
441
588
|
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
442
589
|
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
443
590
|
abandoned: "abandoned";
|
|
@@ -459,7 +606,7 @@ export declare const restReportSchema: z.ZodMiniObject<{
|
|
|
459
606
|
createdAt: z.ZodMiniISODateTime;
|
|
460
607
|
}, z.core.$strip>;
|
|
461
608
|
export type RestReport = z.infer<typeof restReportSchema>;
|
|
462
|
-
/** A file a run handed in, as the console keeps it; its bytes are at `
|
|
609
|
+
/** A file a run handed in, as the console keeps it; its bytes are at `projectPath(key, "files", <artifact id>)`. */
|
|
463
610
|
export declare const restFileSchema: z.ZodMiniObject<{
|
|
464
611
|
name: z.ZodMiniString<string>;
|
|
465
612
|
size: z.ZodMiniInt;
|
|
@@ -535,7 +682,7 @@ export declare const restRunSchema: z.ZodMiniObject<{
|
|
|
535
682
|
waitingFor: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
536
683
|
}, z.core.$strip>;
|
|
537
684
|
export type RestRun = z.infer<typeof restRunSchema>;
|
|
538
|
-
/** `GET /api/v1/runs
|
|
685
|
+
/** `GET /api/v1/projects/<key>/runs`: the runs, newest first. */
|
|
539
686
|
export declare const restRunsSchema: z.ZodMiniObject<{
|
|
540
687
|
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
541
688
|
id: z.ZodMiniUUID;
|
|
@@ -587,15 +734,25 @@ export declare const restRunsSchema: z.ZodMiniObject<{
|
|
|
587
734
|
}, z.core.$strip>>;
|
|
588
735
|
}, z.core.$strip>;
|
|
589
736
|
export type RestRuns = z.infer<typeof restRunsSchema>;
|
|
590
|
-
/** `GET
|
|
737
|
+
/** `GET .../events?after=`: what happened after that number, oldest first. */
|
|
591
738
|
export declare const restEventsSchema: z.ZodMiniObject<{
|
|
592
739
|
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
593
740
|
id: z.ZodMiniInt;
|
|
594
741
|
kind: z.ZodMiniEnum<{
|
|
595
742
|
"decision.answered": "decision.answered";
|
|
596
743
|
"decision.raised": "decision.raised";
|
|
744
|
+
"decision.updated": "decision.updated";
|
|
745
|
+
"document.archived": "document.archived";
|
|
746
|
+
"document.file_attached": "document.file_attached";
|
|
747
|
+
"document.restored": "document.restored";
|
|
748
|
+
"document.written": "document.written";
|
|
597
749
|
"person.joined": "person.joined";
|
|
598
750
|
"person.role_changed": "person.role_changed";
|
|
751
|
+
"project.created": "project.created";
|
|
752
|
+
"project.member_added": "project.member_added";
|
|
753
|
+
"project.member_changed": "project.member_changed";
|
|
754
|
+
"project.member_removed": "project.member_removed";
|
|
755
|
+
"project.updated": "project.updated";
|
|
599
756
|
"run.ended": "run.ended";
|
|
600
757
|
"run.handed_in": "run.handed_in";
|
|
601
758
|
"run.reported": "run.reported";
|
|
@@ -614,13 +771,18 @@ export declare const restEventsSchema: z.ZodMiniObject<{
|
|
|
614
771
|
member: "member";
|
|
615
772
|
}>;
|
|
616
773
|
}, z.core.$strip>>;
|
|
774
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
775
|
+
projectId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
617
776
|
taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
618
777
|
decisionId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
619
778
|
runId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
779
|
+
documentId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
620
780
|
data: z.ZodMiniObject<{
|
|
621
781
|
number: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
622
782
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
623
783
|
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
784
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
785
|
+
version: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
624
786
|
from: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
625
787
|
done: "done";
|
|
626
788
|
dropped: "dropped";
|
|
@@ -640,10 +802,9 @@ export declare const restEventsSchema: z.ZodMiniObject<{
|
|
|
640
802
|
question: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
641
803
|
option: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
642
804
|
login: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
643
|
-
role: z.ZodMiniOptional<z.
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}>>;
|
|
805
|
+
role: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
806
|
+
key: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
807
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
647
808
|
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
648
809
|
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
649
810
|
abandoned: "abandoned";
|
|
@@ -701,7 +862,7 @@ export declare const restTokenCreatedSchema: z.ZodMiniObject<{
|
|
|
701
862
|
secret: z.ZodMiniString<string>;
|
|
702
863
|
}, z.core.$strip>;
|
|
703
864
|
export type RestTokenCreated = z.infer<typeof restTokenCreatedSchema>;
|
|
704
|
-
/** One of the
|
|
865
|
+
/** One of the project's skills, as the SkillCDN deployment lists it at the project's address. */
|
|
705
866
|
export declare const restSkillSchema: z.ZodMiniObject<{
|
|
706
867
|
name: z.ZodMiniString<string>;
|
|
707
868
|
description: z.ZodMiniString<string>;
|
|
@@ -715,7 +876,7 @@ export declare const restSkillSchema: z.ZodMiniObject<{
|
|
|
715
876
|
}, z.core.$strip>>;
|
|
716
877
|
}, z.core.$strip>;
|
|
717
878
|
export type RestSkill = z.infer<typeof restSkillSchema>;
|
|
718
|
-
/** `GET /api/v1/skills`: the
|
|
879
|
+
/** `GET /api/v1/projects/<key>/skills`: the project's skills, read by address through SkillCDN. */
|
|
719
880
|
export declare const restSkillsSchema: z.ZodMiniObject<{
|
|
720
881
|
address: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
721
882
|
source: z.ZodMiniString<string>;
|
|
@@ -742,6 +903,231 @@ export declare const restSkillsSchema: z.ZodMiniObject<{
|
|
|
742
903
|
}, z.core.$strip>>;
|
|
743
904
|
}, z.core.$strip>;
|
|
744
905
|
export type RestSkills = z.infer<typeof restSkillsSchema>;
|
|
906
|
+
/** A document as a folder or a search lists it: everything but the body. */
|
|
907
|
+
export declare const restDocumentSummarySchema: z.ZodMiniObject<{
|
|
908
|
+
id: z.ZodMiniUUID;
|
|
909
|
+
path: z.ZodMiniString<string>;
|
|
910
|
+
title: z.ZodMiniString<string>;
|
|
911
|
+
version: z.ZodMiniInt;
|
|
912
|
+
updatedBy: z.ZodMiniObject<{
|
|
913
|
+
id: z.ZodMiniUUID;
|
|
914
|
+
login: z.ZodMiniString<string>;
|
|
915
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
916
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
917
|
+
role: z.ZodMiniEnum<{
|
|
918
|
+
admin: "admin";
|
|
919
|
+
member: "member";
|
|
920
|
+
}>;
|
|
921
|
+
}, z.core.$strip>;
|
|
922
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
923
|
+
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
924
|
+
createdAt: z.ZodMiniISODateTime;
|
|
925
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
926
|
+
}, z.core.$strip>;
|
|
927
|
+
export type RestDocumentSummary = z.infer<typeof restDocumentSummarySchema>;
|
|
928
|
+
/** `GET /api/v1/projects/<key>/docs?folder=`: a folder's pages and folders; with `q=`, the pages found. */
|
|
929
|
+
export declare const restDocumentsSchema: z.ZodMiniObject<{
|
|
930
|
+
folder: z.ZodMiniString<string>;
|
|
931
|
+
folders: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
932
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
933
|
+
id: z.ZodMiniUUID;
|
|
934
|
+
path: z.ZodMiniString<string>;
|
|
935
|
+
title: z.ZodMiniString<string>;
|
|
936
|
+
version: z.ZodMiniInt;
|
|
937
|
+
updatedBy: z.ZodMiniObject<{
|
|
938
|
+
id: z.ZodMiniUUID;
|
|
939
|
+
login: z.ZodMiniString<string>;
|
|
940
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
941
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
942
|
+
role: z.ZodMiniEnum<{
|
|
943
|
+
admin: "admin";
|
|
944
|
+
member: "member";
|
|
945
|
+
}>;
|
|
946
|
+
}, z.core.$strip>;
|
|
947
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
948
|
+
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
949
|
+
createdAt: z.ZodMiniISODateTime;
|
|
950
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
951
|
+
}, z.core.$strip>>;
|
|
952
|
+
}, z.core.$strip>;
|
|
953
|
+
export type RestDocuments = z.infer<typeof restDocumentsSchema>;
|
|
954
|
+
/** A document the document links to: its path, and its title when there is a document there yet. */
|
|
955
|
+
export declare const restDocumentLinkSchema: z.ZodMiniObject<{
|
|
956
|
+
path: z.ZodMiniString<string>;
|
|
957
|
+
title: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
958
|
+
}, z.core.$strip>;
|
|
959
|
+
export type RestDocumentLink = z.infer<typeof restDocumentLinkSchema>;
|
|
960
|
+
/** What refers to the document: another document, a task, or a decision, each by what people call it. */
|
|
961
|
+
export declare const restBacklinkSchema: z.ZodMiniObject<{
|
|
962
|
+
kind: z.ZodMiniEnum<{
|
|
963
|
+
decision: "decision";
|
|
964
|
+
document: "document";
|
|
965
|
+
task: "task";
|
|
966
|
+
}>;
|
|
967
|
+
id: z.ZodMiniUUID;
|
|
968
|
+
path: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
969
|
+
number: z.ZodMiniNullable<z.ZodMiniInt>;
|
|
970
|
+
title: z.ZodMiniString<string>;
|
|
971
|
+
}, z.core.$strip>;
|
|
972
|
+
export type RestBacklink = z.infer<typeof restBacklinkSchema>;
|
|
973
|
+
/** A file attached to a document; its bytes are at `projectPath(key, "docs", path)/files/<id>`. */
|
|
974
|
+
export declare const restDocumentFileSchema: z.ZodMiniObject<{
|
|
975
|
+
id: z.ZodMiniUUID;
|
|
976
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
977
|
+
file: z.ZodMiniObject<{
|
|
978
|
+
name: z.ZodMiniString<string>;
|
|
979
|
+
size: z.ZodMiniInt;
|
|
980
|
+
contentType: z.ZodMiniString<string>;
|
|
981
|
+
sha256: z.ZodMiniString<string>;
|
|
982
|
+
}, z.core.$strip>;
|
|
983
|
+
addedBy: z.ZodMiniObject<{
|
|
984
|
+
id: z.ZodMiniUUID;
|
|
985
|
+
login: z.ZodMiniString<string>;
|
|
986
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
987
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
988
|
+
role: z.ZodMiniEnum<{
|
|
989
|
+
admin: "admin";
|
|
990
|
+
member: "member";
|
|
991
|
+
}>;
|
|
992
|
+
}, z.core.$strip>;
|
|
993
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
994
|
+
createdAt: z.ZodMiniISODateTime;
|
|
995
|
+
}, z.core.$strip>;
|
|
996
|
+
export type RestDocumentFile = z.infer<typeof restDocumentFileSchema>;
|
|
997
|
+
/** A document in full: its latest version, what it links to, what refers to it, and its files. */
|
|
998
|
+
export declare const restDocumentSchema: z.ZodMiniObject<{
|
|
999
|
+
id: z.ZodMiniUUID;
|
|
1000
|
+
path: z.ZodMiniString<string>;
|
|
1001
|
+
title: z.ZodMiniString<string>;
|
|
1002
|
+
version: z.ZodMiniInt;
|
|
1003
|
+
updatedBy: z.ZodMiniObject<{
|
|
1004
|
+
id: z.ZodMiniUUID;
|
|
1005
|
+
login: z.ZodMiniString<string>;
|
|
1006
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1007
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1008
|
+
role: z.ZodMiniEnum<{
|
|
1009
|
+
admin: "admin";
|
|
1010
|
+
member: "member";
|
|
1011
|
+
}>;
|
|
1012
|
+
}, z.core.$strip>;
|
|
1013
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1014
|
+
archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
1015
|
+
createdAt: z.ZodMiniISODateTime;
|
|
1016
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
1017
|
+
body: z.ZodMiniString<string>;
|
|
1018
|
+
createdBy: z.ZodMiniObject<{
|
|
1019
|
+
id: z.ZodMiniUUID;
|
|
1020
|
+
login: z.ZodMiniString<string>;
|
|
1021
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1022
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1023
|
+
role: z.ZodMiniEnum<{
|
|
1024
|
+
admin: "admin";
|
|
1025
|
+
member: "member";
|
|
1026
|
+
}>;
|
|
1027
|
+
}, z.core.$strip>;
|
|
1028
|
+
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1029
|
+
path: z.ZodMiniString<string>;
|
|
1030
|
+
title: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1031
|
+
}, z.core.$strip>>;
|
|
1032
|
+
backlinks: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1033
|
+
kind: z.ZodMiniEnum<{
|
|
1034
|
+
decision: "decision";
|
|
1035
|
+
document: "document";
|
|
1036
|
+
task: "task";
|
|
1037
|
+
}>;
|
|
1038
|
+
id: z.ZodMiniUUID;
|
|
1039
|
+
path: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1040
|
+
number: z.ZodMiniNullable<z.ZodMiniInt>;
|
|
1041
|
+
title: z.ZodMiniString<string>;
|
|
1042
|
+
}, z.core.$strip>>;
|
|
1043
|
+
files: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1044
|
+
id: z.ZodMiniUUID;
|
|
1045
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1046
|
+
file: z.ZodMiniObject<{
|
|
1047
|
+
name: z.ZodMiniString<string>;
|
|
1048
|
+
size: z.ZodMiniInt;
|
|
1049
|
+
contentType: z.ZodMiniString<string>;
|
|
1050
|
+
sha256: z.ZodMiniString<string>;
|
|
1051
|
+
}, z.core.$strip>;
|
|
1052
|
+
addedBy: z.ZodMiniObject<{
|
|
1053
|
+
id: z.ZodMiniUUID;
|
|
1054
|
+
login: z.ZodMiniString<string>;
|
|
1055
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1056
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1057
|
+
role: z.ZodMiniEnum<{
|
|
1058
|
+
admin: "admin";
|
|
1059
|
+
member: "member";
|
|
1060
|
+
}>;
|
|
1061
|
+
}, z.core.$strip>;
|
|
1062
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1063
|
+
createdAt: z.ZodMiniISODateTime;
|
|
1064
|
+
}, z.core.$strip>>;
|
|
1065
|
+
}, z.core.$strip>;
|
|
1066
|
+
export type RestDocument = z.infer<typeof restDocumentSchema>;
|
|
1067
|
+
/** What `PUT /api/v1/projects/<key>/docs/<path>` is sent: the page as it is to be. */
|
|
1068
|
+
export declare const restDocumentInputSchema: z.ZodMiniObject<{
|
|
1069
|
+
title: z.ZodMiniString<string>;
|
|
1070
|
+
body: z.ZodMiniString<string>;
|
|
1071
|
+
baseVersion: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
1072
|
+
}, z.core.$strip>;
|
|
1073
|
+
export type RestDocumentInput = z.infer<typeof restDocumentInputSchema>;
|
|
1074
|
+
/** One version of a document, as the list of them says it: who wrote it, through which agent, when. */
|
|
1075
|
+
export declare const restVersionSummarySchema: z.ZodMiniObject<{
|
|
1076
|
+
number: z.ZodMiniInt;
|
|
1077
|
+
title: z.ZodMiniString<string>;
|
|
1078
|
+
author: z.ZodMiniObject<{
|
|
1079
|
+
id: z.ZodMiniUUID;
|
|
1080
|
+
login: z.ZodMiniString<string>;
|
|
1081
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1082
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1083
|
+
role: z.ZodMiniEnum<{
|
|
1084
|
+
admin: "admin";
|
|
1085
|
+
member: "member";
|
|
1086
|
+
}>;
|
|
1087
|
+
}, z.core.$strip>;
|
|
1088
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1089
|
+
createdAt: z.ZodMiniISODateTime;
|
|
1090
|
+
}, z.core.$strip>;
|
|
1091
|
+
export type RestVersionSummary = z.infer<typeof restVersionSummarySchema>;
|
|
1092
|
+
/** `GET .../docs/<path>/versions`: newest first. */
|
|
1093
|
+
export declare const restVersionsSchema: z.ZodMiniObject<{
|
|
1094
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1095
|
+
number: z.ZodMiniInt;
|
|
1096
|
+
title: z.ZodMiniString<string>;
|
|
1097
|
+
author: z.ZodMiniObject<{
|
|
1098
|
+
id: z.ZodMiniUUID;
|
|
1099
|
+
login: z.ZodMiniString<string>;
|
|
1100
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1101
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1102
|
+
role: z.ZodMiniEnum<{
|
|
1103
|
+
admin: "admin";
|
|
1104
|
+
member: "member";
|
|
1105
|
+
}>;
|
|
1106
|
+
}, z.core.$strip>;
|
|
1107
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1108
|
+
createdAt: z.ZodMiniISODateTime;
|
|
1109
|
+
}, z.core.$strip>>;
|
|
1110
|
+
}, z.core.$strip>;
|
|
1111
|
+
export type RestVersions = z.infer<typeof restVersionsSchema>;
|
|
1112
|
+
/** `GET .../docs/<path>/versions/<number>`: the version with its body. */
|
|
1113
|
+
export declare const restVersionSchema: z.ZodMiniObject<{
|
|
1114
|
+
number: z.ZodMiniInt;
|
|
1115
|
+
title: z.ZodMiniString<string>;
|
|
1116
|
+
author: z.ZodMiniObject<{
|
|
1117
|
+
id: z.ZodMiniUUID;
|
|
1118
|
+
login: z.ZodMiniString<string>;
|
|
1119
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1120
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1121
|
+
role: z.ZodMiniEnum<{
|
|
1122
|
+
admin: "admin";
|
|
1123
|
+
member: "member";
|
|
1124
|
+
}>;
|
|
1125
|
+
}, z.core.$strip>;
|
|
1126
|
+
agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1127
|
+
createdAt: z.ZodMiniISODateTime;
|
|
1128
|
+
body: z.ZodMiniString<string>;
|
|
1129
|
+
}, z.core.$strip>;
|
|
1130
|
+
export type RestVersion = z.infer<typeof restVersionSchema>;
|
|
745
1131
|
export declare const restErrorSchema: z.ZodMiniObject<{
|
|
746
1132
|
error: z.ZodMiniObject<{
|
|
747
1133
|
code: z.ZodMiniString<string>;
|
|
@@ -749,25 +1135,25 @@ export declare const restErrorSchema: z.ZodMiniObject<{
|
|
|
749
1135
|
}, z.core.$strip>;
|
|
750
1136
|
}, z.core.$strip>;
|
|
751
1137
|
export type RestError = z.infer<typeof restErrorSchema>;
|
|
752
|
-
/** What `POST /api/v1/runs` is sent: the task to take, and what the agent calls itself. */
|
|
1138
|
+
/** What `POST /api/v1/projects/<key>/runs` is sent: the task to take, and what the agent calls itself. */
|
|
753
1139
|
export declare const restRunInputSchema: z.ZodMiniObject<{
|
|
754
1140
|
taskId: z.ZodMiniUUID;
|
|
755
1141
|
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
756
1142
|
}, z.core.$strip>;
|
|
757
1143
|
export type RestRunInput = z.infer<typeof restRunInputSchema>;
|
|
758
|
-
/** What `POST
|
|
1144
|
+
/** What `POST .../runs/<id>/reports` is sent: how the work goes, in Markdown. */
|
|
759
1145
|
export declare const restReportInputSchema: z.ZodMiniObject<{
|
|
760
1146
|
body: z.ZodMiniString<string>;
|
|
761
1147
|
}, z.core.$strip>;
|
|
762
1148
|
export type RestReportInput = z.infer<typeof restReportInputSchema>;
|
|
763
|
-
/** What `POST
|
|
1149
|
+
/** What `POST .../runs/<id>/artifacts` is sent: a link to what was made. */
|
|
764
1150
|
export declare const restArtifactInputSchema: z.ZodMiniObject<{
|
|
765
1151
|
url: z.ZodMiniString<string>;
|
|
766
1152
|
label: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
767
1153
|
}, z.core.$strip>;
|
|
768
1154
|
export type RestArtifactInput = z.infer<typeof restArtifactInputSchema>;
|
|
769
1155
|
/**
|
|
770
|
-
* What `POST
|
|
1156
|
+
* What `POST .../runs/<id>/files` is sent beside the bytes, as the parts of a form: the
|
|
771
1157
|
* file's name and media type come with the `file` part, the `label` is a part of its own.
|
|
772
1158
|
*/
|
|
773
1159
|
export declare const restFileInputSchema: z.ZodMiniObject<{
|
|
@@ -776,7 +1162,7 @@ export declare const restFileInputSchema: z.ZodMiniObject<{
|
|
|
776
1162
|
label: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
777
1163
|
}, z.core.$strip>;
|
|
778
1164
|
export type RestFileInput = z.infer<typeof restFileInputSchema>;
|
|
779
|
-
/** What `POST
|
|
1165
|
+
/** What `POST .../runs/<id>/end` is sent: how the run ended, and what was done and left. */
|
|
780
1166
|
export declare const restRunEndInputSchema: z.ZodMiniObject<{
|
|
781
1167
|
status: z.ZodMiniEnum<{
|
|
782
1168
|
abandoned: "abandoned";
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAoE9B,mFAAmF;AACnF,eAAO,MAAM,gBAAgB;;;;;;;;;iBAU3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB;;;;;;iBAI7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;iBAIvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,kEAAkE;AAClE,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAAiD,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,+FAA+F;AAC/F,eAAO,MAAM,qBAAqB;;;;;iBAA2C,CAAC;AAC9E,MAAM,MAAM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