@skillcdn/console 0.0.0-stage → 0.1.1
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/LICENSE.md +21 -0
- package/README.md +79 -2
- package/dist/api.d.ts +7 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +11 -0
- package/dist/api.js.map +1 -0
- package/dist/cli/cli.d.ts +34 -0
- package/dist/cli/cli.d.ts.map +1 -0
- package/dist/cli/cli.js +557 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/cli/credentials.d.ts +16 -0
- package/dist/cli/credentials.d.ts.map +1 -0
- package/dist/cli/credentials.js +46 -0
- package/dist/cli/credentials.js.map +1 -0
- package/dist/cli/format.d.ts +16 -0
- package/dist/cli/format.d.ts.map +1 -0
- package/dist/cli/format.js +151 -0
- package/dist/cli/format.js.map +1 -0
- package/dist/cli/help.d.ts +16 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/help.js +181 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/main.d.ts +3 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +32 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/terminal.d.ts +12 -0
- package/dist/cli/terminal.d.ts.map +1 -0
- package/dist/cli/terminal.js +68 -0
- package/dist/cli/terminal.js.map +1 -0
- package/dist/client.d.ts +92 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +117 -0
- package/dist/client.js.map +1 -0
- package/dist/components/board.d.ts +20 -0
- package/dist/components/board.d.ts.map +1 -0
- package/dist/components/board.js +19 -0
- package/dist/components/board.js.map +1 -0
- package/dist/components/decision-form.d.ts +13 -0
- package/dist/components/decision-form.d.ts.map +1 -0
- package/dist/components/decision-form.js +23 -0
- package/dist/components/decision-form.js.map +1 -0
- package/dist/components/decision-list.d.ts +22 -0
- package/dist/components/decision-list.d.ts.map +1 -0
- package/dist/components/decision-list.js +28 -0
- package/dist/components/decision-list.js.map +1 -0
- package/dist/components/event-feed.d.ts +13 -0
- package/dist/components/event-feed.d.ts.map +1 -0
- package/dist/components/event-feed.js +59 -0
- package/dist/components/event-feed.js.map +1 -0
- package/dist/components/markdown.d.ts +4 -0
- package/dist/components/markdown.d.ts.map +1 -0
- package/dist/components/markdown.js +34 -0
- package/dist/components/markdown.js.map +1 -0
- package/dist/components/people.d.ts +11 -0
- package/dist/components/people.d.ts.map +1 -0
- package/dist/components/people.js +7 -0
- package/dist/components/people.js.map +1 -0
- package/dist/components/runs.d.ts +27 -0
- package/dist/components/runs.d.ts.map +1 -0
- package/dist/components/runs.js +45 -0
- package/dist/components/runs.js.map +1 -0
- package/dist/components/shell.d.ts +22 -0
- package/dist/components/shell.d.ts.map +1 -0
- package/dist/components/shell.js +16 -0
- package/dist/components/shell.js.map +1 -0
- package/dist/components/sign-in.d.ts +11 -0
- package/dist/components/sign-in.d.ts.map +1 -0
- package/dist/components/sign-in.js +15 -0
- package/dist/components/sign-in.js.map +1 -0
- package/dist/components/skills.d.ts +7 -0
- package/dist/components/skills.d.ts.map +1 -0
- package/dist/components/skills.js +26 -0
- package/dist/components/skills.js.map +1 -0
- package/dist/components/task-form.d.ts +14 -0
- package/dist/components/task-form.d.ts.map +1 -0
- package/dist/components/task-form.js +34 -0
- package/dist/components/task-form.js.map +1 -0
- package/dist/components/task-view.d.ts +22 -0
- package/dist/components/task-view.d.ts.map +1 -0
- package/dist/components/task-view.js +32 -0
- package/dist/components/task-view.js.map +1 -0
- package/dist/components/tokens.d.ts +26 -0
- package/dist/components/tokens.d.ts.map +1 -0
- package/dist/components/tokens.js +42 -0
- package/dist/components/tokens.js.map +1 -0
- package/dist/components/ui.d.ts +61 -0
- package/dist/components/ui.d.ts.map +1 -0
- package/dist/components/ui.js +109 -0
- package/dist/components/ui.js.map +1 -0
- package/dist/console.css +1382 -0
- package/dist/console.d.ts +44 -0
- package/dist/console.d.ts.map +1 -0
- package/dist/console.js +181 -0
- package/dist/console.js.map +1 -0
- package/dist/data.d.ts +41 -0
- package/dist/data.d.ts.map +1 -0
- package/dist/data.js +208 -0
- package/dist/data.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/limits.d.ts +37 -0
- package/dist/limits.d.ts.map +1 -0
- package/dist/limits.js +40 -0
- package/dist/limits.js.map +1 -0
- package/dist/router.d.ts +37 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.js +55 -0
- package/dist/router.js.map +1 -0
- package/dist/routes.d.ts +47 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/routes.js +53 -0
- package/dist/routes.js.map +1 -0
- package/dist/schemas.d.ts +789 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +341 -0
- package/dist/schemas.js.map +1 -0
- package/dist/text.d.ts +6 -0
- package/dist/text.d.ts.map +1 -0
- package/dist/text.js +31 -0
- package/dist/text.js.map +1 -0
- package/dist/vocabulary.d.ts +35 -0
- package/dist/vocabulary.d.ts.map +1 -0
- package/dist/vocabulary.js +57 -0
- package/dist/vocabulary.js.map +1 -0
- package/package.json +70 -3
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
/** A person of the workspace, as the pages show them. Nothing here is a secret. */
|
|
3
|
+
export declare const restPersonSchema: z.ZodMiniObject<{
|
|
4
|
+
id: z.ZodMiniUUID;
|
|
5
|
+
login: z.ZodMiniString<string>;
|
|
6
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
7
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
8
|
+
role: z.ZodMiniEnum<{
|
|
9
|
+
admin: "admin";
|
|
10
|
+
member: "member";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type RestPerson = z.infer<typeof restPersonSchema>;
|
|
14
|
+
/** An identity provider people may sign in through, as the pages offer it. */
|
|
15
|
+
export declare const restProviderSchema: z.ZodMiniObject<{
|
|
16
|
+
key: z.ZodMiniEnum<{
|
|
17
|
+
gh: "gh";
|
|
18
|
+
google: "google";
|
|
19
|
+
}>;
|
|
20
|
+
label: z.ZodMiniString<string>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type RestProvider = z.infer<typeof restProviderSchema>;
|
|
23
|
+
/**
|
|
24
|
+
* `GET /api/v1/me`: the workspace, who the session cookie says is signed in (or `null`), and
|
|
25
|
+
* the identity providers people sign in through, none where nobody can.
|
|
26
|
+
*/
|
|
27
|
+
export declare const restMeSchema: z.ZodMiniObject<{
|
|
28
|
+
workspace: z.ZodMiniObject<{
|
|
29
|
+
name: z.ZodMiniString<string>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
person: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
32
|
+
id: z.ZodMiniUUID;
|
|
33
|
+
login: z.ZodMiniString<string>;
|
|
34
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
35
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
36
|
+
role: z.ZodMiniEnum<{
|
|
37
|
+
admin: "admin";
|
|
38
|
+
member: "member";
|
|
39
|
+
}>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
signIn: z.ZodMiniArray<z.ZodMiniObject<{
|
|
42
|
+
key: z.ZodMiniEnum<{
|
|
43
|
+
gh: "gh";
|
|
44
|
+
google: "google";
|
|
45
|
+
}>;
|
|
46
|
+
label: z.ZodMiniString<string>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type RestMe = z.infer<typeof restMeSchema>;
|
|
50
|
+
/** `GET /api/v1/people`: everyone who has signed in, by login. */
|
|
51
|
+
export declare const restPeopleSchema: z.ZodMiniObject<{
|
|
52
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
53
|
+
id: z.ZodMiniUUID;
|
|
54
|
+
login: z.ZodMiniString<string>;
|
|
55
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
56
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
57
|
+
role: z.ZodMiniEnum<{
|
|
58
|
+
admin: "admin";
|
|
59
|
+
member: "member";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type RestPeople = z.infer<typeof restPeopleSchema>;
|
|
64
|
+
/** What `PATCH /api/v1/people/<id>` is sent, by an administrator: what the person is to be. */
|
|
65
|
+
export declare const restPersonPatchSchema: z.ZodMiniObject<{
|
|
66
|
+
role: z.ZodMiniEnum<{
|
|
67
|
+
admin: "admin";
|
|
68
|
+
member: "member";
|
|
69
|
+
}>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type RestPersonPatch = z.infer<typeof restPersonPatchSchema>;
|
|
72
|
+
export declare const restTaskLinkSchema: z.ZodMiniObject<{
|
|
73
|
+
url: z.ZodMiniString<string>;
|
|
74
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type RestTaskLink = z.infer<typeof restTaskLinkSchema>;
|
|
77
|
+
export declare const restTaskSchema: z.ZodMiniObject<{
|
|
78
|
+
id: z.ZodMiniUUID;
|
|
79
|
+
number: z.ZodMiniInt;
|
|
80
|
+
title: z.ZodMiniString<string>;
|
|
81
|
+
body: z.ZodMiniString<string>;
|
|
82
|
+
state: z.ZodMiniEnum<{
|
|
83
|
+
done: "done";
|
|
84
|
+
dropped: "dropped";
|
|
85
|
+
idea: "idea";
|
|
86
|
+
in_progress: "in_progress";
|
|
87
|
+
in_review: "in_review";
|
|
88
|
+
ready: "ready";
|
|
89
|
+
}>;
|
|
90
|
+
priority: z.ZodMiniEnum<{
|
|
91
|
+
high: "high";
|
|
92
|
+
low: "low";
|
|
93
|
+
normal: "normal";
|
|
94
|
+
urgent: "urgent";
|
|
95
|
+
}>;
|
|
96
|
+
owner: z.ZodMiniObject<{
|
|
97
|
+
id: z.ZodMiniUUID;
|
|
98
|
+
login: z.ZodMiniString<string>;
|
|
99
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
100
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
101
|
+
role: z.ZodMiniEnum<{
|
|
102
|
+
admin: "admin";
|
|
103
|
+
member: "member";
|
|
104
|
+
}>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
assignee: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
107
|
+
id: z.ZodMiniUUID;
|
|
108
|
+
login: z.ZodMiniString<string>;
|
|
109
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
110
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
111
|
+
role: z.ZodMiniEnum<{
|
|
112
|
+
admin: "admin";
|
|
113
|
+
member: "member";
|
|
114
|
+
}>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
parentId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
117
|
+
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
118
|
+
url: z.ZodMiniString<string>;
|
|
119
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
openDecisions: z.ZodMiniInt;
|
|
122
|
+
openRuns: z.ZodMiniInt;
|
|
123
|
+
createdAt: z.ZodMiniISODateTime;
|
|
124
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
export type RestTask = z.infer<typeof restTaskSchema>;
|
|
127
|
+
/** `GET /api/v1/tasks`: the board, newest first. */
|
|
128
|
+
export declare const restTasksSchema: z.ZodMiniObject<{
|
|
129
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
130
|
+
id: z.ZodMiniUUID;
|
|
131
|
+
number: z.ZodMiniInt;
|
|
132
|
+
title: z.ZodMiniString<string>;
|
|
133
|
+
body: z.ZodMiniString<string>;
|
|
134
|
+
state: z.ZodMiniEnum<{
|
|
135
|
+
done: "done";
|
|
136
|
+
dropped: "dropped";
|
|
137
|
+
idea: "idea";
|
|
138
|
+
in_progress: "in_progress";
|
|
139
|
+
in_review: "in_review";
|
|
140
|
+
ready: "ready";
|
|
141
|
+
}>;
|
|
142
|
+
priority: z.ZodMiniEnum<{
|
|
143
|
+
high: "high";
|
|
144
|
+
low: "low";
|
|
145
|
+
normal: "normal";
|
|
146
|
+
urgent: "urgent";
|
|
147
|
+
}>;
|
|
148
|
+
owner: z.ZodMiniObject<{
|
|
149
|
+
id: z.ZodMiniUUID;
|
|
150
|
+
login: z.ZodMiniString<string>;
|
|
151
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
152
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
153
|
+
role: z.ZodMiniEnum<{
|
|
154
|
+
admin: "admin";
|
|
155
|
+
member: "member";
|
|
156
|
+
}>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
assignee: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
159
|
+
id: z.ZodMiniUUID;
|
|
160
|
+
login: z.ZodMiniString<string>;
|
|
161
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
162
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
163
|
+
role: z.ZodMiniEnum<{
|
|
164
|
+
admin: "admin";
|
|
165
|
+
member: "member";
|
|
166
|
+
}>;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
parentId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
169
|
+
links: z.ZodMiniArray<z.ZodMiniObject<{
|
|
170
|
+
url: z.ZodMiniString<string>;
|
|
171
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
openDecisions: z.ZodMiniInt;
|
|
174
|
+
openRuns: z.ZodMiniInt;
|
|
175
|
+
createdAt: z.ZodMiniISODateTime;
|
|
176
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export type RestTasks = z.infer<typeof restTasksSchema>;
|
|
180
|
+
/** What `POST /api/v1/tasks` is sent. Everything but the title has a default. */
|
|
181
|
+
export declare const restTaskInputSchema: z.ZodMiniObject<{
|
|
182
|
+
title: z.ZodMiniString<string>;
|
|
183
|
+
body: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
184
|
+
state: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
185
|
+
done: "done";
|
|
186
|
+
dropped: "dropped";
|
|
187
|
+
idea: "idea";
|
|
188
|
+
in_progress: "in_progress";
|
|
189
|
+
in_review: "in_review";
|
|
190
|
+
ready: "ready";
|
|
191
|
+
}>>;
|
|
192
|
+
priority: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
193
|
+
high: "high";
|
|
194
|
+
low: "low";
|
|
195
|
+
normal: "normal";
|
|
196
|
+
urgent: "urgent";
|
|
197
|
+
}>>;
|
|
198
|
+
assigneeId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUUID>>;
|
|
199
|
+
parentId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUUID>>;
|
|
200
|
+
links: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
201
|
+
url: z.ZodMiniString<string>;
|
|
202
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
203
|
+
}, z.core.$strip>>>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
export type RestTaskInput = z.infer<typeof restTaskInputSchema>;
|
|
206
|
+
/** What `PATCH /api/v1/tasks/<id>` is sent: only what changes. */
|
|
207
|
+
export declare const restTaskPatchSchema: z.ZodMiniObject<{
|
|
208
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
209
|
+
body: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
210
|
+
state: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
211
|
+
done: "done";
|
|
212
|
+
dropped: "dropped";
|
|
213
|
+
idea: "idea";
|
|
214
|
+
in_progress: "in_progress";
|
|
215
|
+
in_review: "in_review";
|
|
216
|
+
ready: "ready";
|
|
217
|
+
}>>;
|
|
218
|
+
priority: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
219
|
+
high: "high";
|
|
220
|
+
low: "low";
|
|
221
|
+
normal: "normal";
|
|
222
|
+
urgent: "urgent";
|
|
223
|
+
}>>;
|
|
224
|
+
assigneeId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUUID>>;
|
|
225
|
+
parentId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUUID>>;
|
|
226
|
+
links: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
227
|
+
url: z.ZodMiniString<string>;
|
|
228
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
export type RestTaskPatch = z.infer<typeof restTaskPatchSchema>;
|
|
232
|
+
export declare const restDecisionOptionSchema: z.ZodMiniObject<{
|
|
233
|
+
id: z.ZodMiniString<string>;
|
|
234
|
+
label: z.ZodMiniString<string>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export type RestDecisionOption = z.infer<typeof restDecisionOptionSchema>;
|
|
237
|
+
export declare const restDecisionSchema: z.ZodMiniObject<{
|
|
238
|
+
id: z.ZodMiniUUID;
|
|
239
|
+
question: z.ZodMiniString<string>;
|
|
240
|
+
body: z.ZodMiniString<string>;
|
|
241
|
+
options: z.ZodMiniArray<z.ZodMiniObject<{
|
|
242
|
+
id: z.ZodMiniString<string>;
|
|
243
|
+
label: z.ZodMiniString<string>;
|
|
244
|
+
}, z.core.$strip>>;
|
|
245
|
+
taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
246
|
+
taskNumber: z.ZodMiniNullable<z.ZodMiniInt>;
|
|
247
|
+
raisedBy: z.ZodMiniObject<{
|
|
248
|
+
id: z.ZodMiniUUID;
|
|
249
|
+
login: z.ZodMiniString<string>;
|
|
250
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
251
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
252
|
+
role: z.ZodMiniEnum<{
|
|
253
|
+
admin: "admin";
|
|
254
|
+
member: "member";
|
|
255
|
+
}>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
run: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
258
|
+
id: z.ZodMiniUUID;
|
|
259
|
+
agent: z.ZodMiniString<string>;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
answer: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
262
|
+
option: z.ZodMiniString<string>;
|
|
263
|
+
note: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
264
|
+
by: z.ZodMiniObject<{
|
|
265
|
+
id: z.ZodMiniUUID;
|
|
266
|
+
login: z.ZodMiniString<string>;
|
|
267
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
268
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
269
|
+
role: z.ZodMiniEnum<{
|
|
270
|
+
admin: "admin";
|
|
271
|
+
member: "member";
|
|
272
|
+
}>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
at: z.ZodMiniISODateTime;
|
|
275
|
+
}, z.core.$strip>>;
|
|
276
|
+
createdAt: z.ZodMiniISODateTime;
|
|
277
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
export type RestDecision = z.infer<typeof restDecisionSchema>;
|
|
280
|
+
/** `GET /api/v1/decisions`: the ones that wait first, newest first within each. */
|
|
281
|
+
export declare const restDecisionsSchema: z.ZodMiniObject<{
|
|
282
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
283
|
+
id: z.ZodMiniUUID;
|
|
284
|
+
question: z.ZodMiniString<string>;
|
|
285
|
+
body: z.ZodMiniString<string>;
|
|
286
|
+
options: z.ZodMiniArray<z.ZodMiniObject<{
|
|
287
|
+
id: z.ZodMiniString<string>;
|
|
288
|
+
label: z.ZodMiniString<string>;
|
|
289
|
+
}, z.core.$strip>>;
|
|
290
|
+
taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
291
|
+
taskNumber: z.ZodMiniNullable<z.ZodMiniInt>;
|
|
292
|
+
raisedBy: z.ZodMiniObject<{
|
|
293
|
+
id: z.ZodMiniUUID;
|
|
294
|
+
login: z.ZodMiniString<string>;
|
|
295
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
296
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
297
|
+
role: z.ZodMiniEnum<{
|
|
298
|
+
admin: "admin";
|
|
299
|
+
member: "member";
|
|
300
|
+
}>;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
run: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
303
|
+
id: z.ZodMiniUUID;
|
|
304
|
+
agent: z.ZodMiniString<string>;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
answer: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
307
|
+
option: z.ZodMiniString<string>;
|
|
308
|
+
note: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
309
|
+
by: z.ZodMiniObject<{
|
|
310
|
+
id: z.ZodMiniUUID;
|
|
311
|
+
login: z.ZodMiniString<string>;
|
|
312
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
313
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
314
|
+
role: z.ZodMiniEnum<{
|
|
315
|
+
admin: "admin";
|
|
316
|
+
member: "member";
|
|
317
|
+
}>;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
at: z.ZodMiniISODateTime;
|
|
320
|
+
}, z.core.$strip>>;
|
|
321
|
+
createdAt: z.ZodMiniISODateTime;
|
|
322
|
+
updatedAt: z.ZodMiniISODateTime;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
export type RestDecisions = z.infer<typeof restDecisionsSchema>;
|
|
326
|
+
/** What `POST /api/v1/decisions` is sent: the question, its context, and the options. */
|
|
327
|
+
export declare const restDecisionInputSchema: z.ZodMiniObject<{
|
|
328
|
+
question: z.ZodMiniString<string>;
|
|
329
|
+
body: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
330
|
+
options: z.ZodMiniArray<z.ZodMiniObject<{
|
|
331
|
+
label: z.ZodMiniString<string>;
|
|
332
|
+
}, z.core.$strip>>;
|
|
333
|
+
taskId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUUID>>;
|
|
334
|
+
runId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUUID>>;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
export type RestDecisionInput = z.infer<typeof restDecisionInputSchema>;
|
|
337
|
+
/** What `POST /api/v1/decisions/<id>/answer` is sent: an option, and a word about it. */
|
|
338
|
+
export declare const restAnswerInputSchema: z.ZodMiniObject<{
|
|
339
|
+
option: z.ZodMiniString<string>;
|
|
340
|
+
note: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
341
|
+
}, z.core.$strip>;
|
|
342
|
+
export type RestAnswerInput = z.infer<typeof restAnswerInputSchema>;
|
|
343
|
+
/**
|
|
344
|
+
* What an event says about its subject, so that a feed can show a line without asking for the
|
|
345
|
+
* task or the decision: every field is there only when the kind has it.
|
|
346
|
+
*/
|
|
347
|
+
export declare const restEventDataSchema: z.ZodMiniObject<{
|
|
348
|
+
number: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
349
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
350
|
+
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
351
|
+
from: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
352
|
+
done: "done";
|
|
353
|
+
dropped: "dropped";
|
|
354
|
+
idea: "idea";
|
|
355
|
+
in_progress: "in_progress";
|
|
356
|
+
in_review: "in_review";
|
|
357
|
+
ready: "ready";
|
|
358
|
+
}>>;
|
|
359
|
+
to: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
360
|
+
done: "done";
|
|
361
|
+
dropped: "dropped";
|
|
362
|
+
idea: "idea";
|
|
363
|
+
in_progress: "in_progress";
|
|
364
|
+
in_review: "in_review";
|
|
365
|
+
ready: "ready";
|
|
366
|
+
}>>;
|
|
367
|
+
question: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
368
|
+
option: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
369
|
+
login: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
370
|
+
role: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
371
|
+
admin: "admin";
|
|
372
|
+
member: "member";
|
|
373
|
+
}>>;
|
|
374
|
+
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
375
|
+
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
376
|
+
abandoned: "abandoned";
|
|
377
|
+
failed: "failed";
|
|
378
|
+
finished: "finished";
|
|
379
|
+
running: "running";
|
|
380
|
+
waiting: "waiting";
|
|
381
|
+
}>>;
|
|
382
|
+
label: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
383
|
+
excerpt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
384
|
+
}, z.core.$strip>;
|
|
385
|
+
export type RestEventData = z.infer<typeof restEventDataSchema>;
|
|
386
|
+
export declare const restEventSchema: z.ZodMiniObject<{
|
|
387
|
+
id: z.ZodMiniInt;
|
|
388
|
+
kind: z.ZodMiniEnum<{
|
|
389
|
+
"decision.answered": "decision.answered";
|
|
390
|
+
"decision.raised": "decision.raised";
|
|
391
|
+
"person.joined": "person.joined";
|
|
392
|
+
"person.role_changed": "person.role_changed";
|
|
393
|
+
"run.ended": "run.ended";
|
|
394
|
+
"run.handed_in": "run.handed_in";
|
|
395
|
+
"run.reported": "run.reported";
|
|
396
|
+
"run.started": "run.started";
|
|
397
|
+
"task.created": "task.created";
|
|
398
|
+
"task.moved": "task.moved";
|
|
399
|
+
"task.updated": "task.updated";
|
|
400
|
+
}>;
|
|
401
|
+
actor: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
402
|
+
id: z.ZodMiniUUID;
|
|
403
|
+
login: z.ZodMiniString<string>;
|
|
404
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
405
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
406
|
+
role: z.ZodMiniEnum<{
|
|
407
|
+
admin: "admin";
|
|
408
|
+
member: "member";
|
|
409
|
+
}>;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
412
|
+
decisionId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
413
|
+
runId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
414
|
+
data: z.ZodMiniObject<{
|
|
415
|
+
number: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
416
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
417
|
+
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
418
|
+
from: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
419
|
+
done: "done";
|
|
420
|
+
dropped: "dropped";
|
|
421
|
+
idea: "idea";
|
|
422
|
+
in_progress: "in_progress";
|
|
423
|
+
in_review: "in_review";
|
|
424
|
+
ready: "ready";
|
|
425
|
+
}>>;
|
|
426
|
+
to: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
427
|
+
done: "done";
|
|
428
|
+
dropped: "dropped";
|
|
429
|
+
idea: "idea";
|
|
430
|
+
in_progress: "in_progress";
|
|
431
|
+
in_review: "in_review";
|
|
432
|
+
ready: "ready";
|
|
433
|
+
}>>;
|
|
434
|
+
question: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
435
|
+
option: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
436
|
+
login: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
437
|
+
role: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
438
|
+
admin: "admin";
|
|
439
|
+
member: "member";
|
|
440
|
+
}>>;
|
|
441
|
+
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
442
|
+
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
443
|
+
abandoned: "abandoned";
|
|
444
|
+
failed: "failed";
|
|
445
|
+
finished: "finished";
|
|
446
|
+
running: "running";
|
|
447
|
+
waiting: "waiting";
|
|
448
|
+
}>>;
|
|
449
|
+
label: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
450
|
+
excerpt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
createdAt: z.ZodMiniISODateTime;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
export type RestEvent = z.infer<typeof restEventSchema>;
|
|
455
|
+
/** What an agent reported while at work: Markdown, shown as text or rendered to elements. */
|
|
456
|
+
export declare const restReportSchema: z.ZodMiniObject<{
|
|
457
|
+
id: z.ZodMiniUUID;
|
|
458
|
+
body: z.ZodMiniString<string>;
|
|
459
|
+
createdAt: z.ZodMiniISODateTime;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
export type RestReport = z.infer<typeof restReportSchema>;
|
|
462
|
+
/** A file a run handed in, as the console keeps it; its bytes are at `restPath("files", <artifact id>)`. */
|
|
463
|
+
export declare const restFileSchema: z.ZodMiniObject<{
|
|
464
|
+
name: z.ZodMiniString<string>;
|
|
465
|
+
size: z.ZodMiniInt;
|
|
466
|
+
contentType: z.ZodMiniString<string>;
|
|
467
|
+
sha256: z.ZodMiniString<string>;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
export type RestFile = z.infer<typeof restFileSchema>;
|
|
470
|
+
/** What a run handed in: a link to a branch, a pull request, a page; or a file the console keeps. */
|
|
471
|
+
export declare const restArtifactSchema: z.ZodMiniObject<{
|
|
472
|
+
id: z.ZodMiniUUID;
|
|
473
|
+
kind: z.ZodMiniEnum<{
|
|
474
|
+
file: "file";
|
|
475
|
+
link: "link";
|
|
476
|
+
}>;
|
|
477
|
+
url: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
478
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
479
|
+
file: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
480
|
+
name: z.ZodMiniString<string>;
|
|
481
|
+
size: z.ZodMiniInt;
|
|
482
|
+
contentType: z.ZodMiniString<string>;
|
|
483
|
+
sha256: z.ZodMiniString<string>;
|
|
484
|
+
}, z.core.$strip>>;
|
|
485
|
+
createdAt: z.ZodMiniISODateTime;
|
|
486
|
+
}, z.core.$strip>;
|
|
487
|
+
export type RestArtifact = z.infer<typeof restArtifactSchema>;
|
|
488
|
+
/** One agent at work on one task for one person: what it did, and what it waits for. */
|
|
489
|
+
export declare const restRunSchema: z.ZodMiniObject<{
|
|
490
|
+
id: z.ZodMiniUUID;
|
|
491
|
+
taskId: z.ZodMiniUUID;
|
|
492
|
+
taskNumber: z.ZodMiniInt;
|
|
493
|
+
person: z.ZodMiniObject<{
|
|
494
|
+
id: z.ZodMiniUUID;
|
|
495
|
+
login: z.ZodMiniString<string>;
|
|
496
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
497
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
498
|
+
role: z.ZodMiniEnum<{
|
|
499
|
+
admin: "admin";
|
|
500
|
+
member: "member";
|
|
501
|
+
}>;
|
|
502
|
+
}, z.core.$strip>;
|
|
503
|
+
agent: z.ZodMiniString<string>;
|
|
504
|
+
status: z.ZodMiniEnum<{
|
|
505
|
+
abandoned: "abandoned";
|
|
506
|
+
failed: "failed";
|
|
507
|
+
finished: "finished";
|
|
508
|
+
running: "running";
|
|
509
|
+
waiting: "waiting";
|
|
510
|
+
}>;
|
|
511
|
+
startedAt: z.ZodMiniISODateTime;
|
|
512
|
+
endedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
513
|
+
summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
514
|
+
reports: z.ZodMiniArray<z.ZodMiniObject<{
|
|
515
|
+
id: z.ZodMiniUUID;
|
|
516
|
+
body: z.ZodMiniString<string>;
|
|
517
|
+
createdAt: z.ZodMiniISODateTime;
|
|
518
|
+
}, z.core.$strip>>;
|
|
519
|
+
artifacts: z.ZodMiniArray<z.ZodMiniObject<{
|
|
520
|
+
id: z.ZodMiniUUID;
|
|
521
|
+
kind: z.ZodMiniEnum<{
|
|
522
|
+
file: "file";
|
|
523
|
+
link: "link";
|
|
524
|
+
}>;
|
|
525
|
+
url: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
526
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
527
|
+
file: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
528
|
+
name: z.ZodMiniString<string>;
|
|
529
|
+
size: z.ZodMiniInt;
|
|
530
|
+
contentType: z.ZodMiniString<string>;
|
|
531
|
+
sha256: z.ZodMiniString<string>;
|
|
532
|
+
}, z.core.$strip>>;
|
|
533
|
+
createdAt: z.ZodMiniISODateTime;
|
|
534
|
+
}, z.core.$strip>>;
|
|
535
|
+
waitingFor: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
536
|
+
}, z.core.$strip>;
|
|
537
|
+
export type RestRun = z.infer<typeof restRunSchema>;
|
|
538
|
+
/** `GET /api/v1/runs?task=`: the runs, newest first. */
|
|
539
|
+
export declare const restRunsSchema: z.ZodMiniObject<{
|
|
540
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
541
|
+
id: z.ZodMiniUUID;
|
|
542
|
+
taskId: z.ZodMiniUUID;
|
|
543
|
+
taskNumber: z.ZodMiniInt;
|
|
544
|
+
person: z.ZodMiniObject<{
|
|
545
|
+
id: z.ZodMiniUUID;
|
|
546
|
+
login: z.ZodMiniString<string>;
|
|
547
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
548
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
549
|
+
role: z.ZodMiniEnum<{
|
|
550
|
+
admin: "admin";
|
|
551
|
+
member: "member";
|
|
552
|
+
}>;
|
|
553
|
+
}, z.core.$strip>;
|
|
554
|
+
agent: z.ZodMiniString<string>;
|
|
555
|
+
status: z.ZodMiniEnum<{
|
|
556
|
+
abandoned: "abandoned";
|
|
557
|
+
failed: "failed";
|
|
558
|
+
finished: "finished";
|
|
559
|
+
running: "running";
|
|
560
|
+
waiting: "waiting";
|
|
561
|
+
}>;
|
|
562
|
+
startedAt: z.ZodMiniISODateTime;
|
|
563
|
+
endedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
564
|
+
summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
565
|
+
reports: z.ZodMiniArray<z.ZodMiniObject<{
|
|
566
|
+
id: z.ZodMiniUUID;
|
|
567
|
+
body: z.ZodMiniString<string>;
|
|
568
|
+
createdAt: z.ZodMiniISODateTime;
|
|
569
|
+
}, z.core.$strip>>;
|
|
570
|
+
artifacts: z.ZodMiniArray<z.ZodMiniObject<{
|
|
571
|
+
id: z.ZodMiniUUID;
|
|
572
|
+
kind: z.ZodMiniEnum<{
|
|
573
|
+
file: "file";
|
|
574
|
+
link: "link";
|
|
575
|
+
}>;
|
|
576
|
+
url: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
577
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
578
|
+
file: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
579
|
+
name: z.ZodMiniString<string>;
|
|
580
|
+
size: z.ZodMiniInt;
|
|
581
|
+
contentType: z.ZodMiniString<string>;
|
|
582
|
+
sha256: z.ZodMiniString<string>;
|
|
583
|
+
}, z.core.$strip>>;
|
|
584
|
+
createdAt: z.ZodMiniISODateTime;
|
|
585
|
+
}, z.core.$strip>>;
|
|
586
|
+
waitingFor: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
587
|
+
}, z.core.$strip>>;
|
|
588
|
+
}, z.core.$strip>;
|
|
589
|
+
export type RestRuns = z.infer<typeof restRunsSchema>;
|
|
590
|
+
/** `GET /api/v1/events?after=`: what happened after that number, oldest first. */
|
|
591
|
+
export declare const restEventsSchema: z.ZodMiniObject<{
|
|
592
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
593
|
+
id: z.ZodMiniInt;
|
|
594
|
+
kind: z.ZodMiniEnum<{
|
|
595
|
+
"decision.answered": "decision.answered";
|
|
596
|
+
"decision.raised": "decision.raised";
|
|
597
|
+
"person.joined": "person.joined";
|
|
598
|
+
"person.role_changed": "person.role_changed";
|
|
599
|
+
"run.ended": "run.ended";
|
|
600
|
+
"run.handed_in": "run.handed_in";
|
|
601
|
+
"run.reported": "run.reported";
|
|
602
|
+
"run.started": "run.started";
|
|
603
|
+
"task.created": "task.created";
|
|
604
|
+
"task.moved": "task.moved";
|
|
605
|
+
"task.updated": "task.updated";
|
|
606
|
+
}>;
|
|
607
|
+
actor: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
608
|
+
id: z.ZodMiniUUID;
|
|
609
|
+
login: z.ZodMiniString<string>;
|
|
610
|
+
name: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
611
|
+
avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
612
|
+
role: z.ZodMiniEnum<{
|
|
613
|
+
admin: "admin";
|
|
614
|
+
member: "member";
|
|
615
|
+
}>;
|
|
616
|
+
}, z.core.$strip>>;
|
|
617
|
+
taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
618
|
+
decisionId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
619
|
+
runId: z.ZodMiniNullable<z.ZodMiniUUID>;
|
|
620
|
+
data: z.ZodMiniObject<{
|
|
621
|
+
number: z.ZodMiniOptional<z.ZodMiniInt>;
|
|
622
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
623
|
+
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
624
|
+
from: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
625
|
+
done: "done";
|
|
626
|
+
dropped: "dropped";
|
|
627
|
+
idea: "idea";
|
|
628
|
+
in_progress: "in_progress";
|
|
629
|
+
in_review: "in_review";
|
|
630
|
+
ready: "ready";
|
|
631
|
+
}>>;
|
|
632
|
+
to: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
633
|
+
done: "done";
|
|
634
|
+
dropped: "dropped";
|
|
635
|
+
idea: "idea";
|
|
636
|
+
in_progress: "in_progress";
|
|
637
|
+
in_review: "in_review";
|
|
638
|
+
ready: "ready";
|
|
639
|
+
}>>;
|
|
640
|
+
question: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
641
|
+
option: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
642
|
+
login: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
643
|
+
role: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
644
|
+
admin: "admin";
|
|
645
|
+
member: "member";
|
|
646
|
+
}>>;
|
|
647
|
+
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
648
|
+
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
649
|
+
abandoned: "abandoned";
|
|
650
|
+
failed: "failed";
|
|
651
|
+
finished: "finished";
|
|
652
|
+
running: "running";
|
|
653
|
+
waiting: "waiting";
|
|
654
|
+
}>>;
|
|
655
|
+
label: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
656
|
+
excerpt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
657
|
+
}, z.core.$strip>;
|
|
658
|
+
createdAt: z.ZodMiniISODateTime;
|
|
659
|
+
}, z.core.$strip>>;
|
|
660
|
+
more: z.ZodMiniBoolean<boolean>;
|
|
661
|
+
}, z.core.$strip>;
|
|
662
|
+
export type RestEvents = z.infer<typeof restEventsSchema>;
|
|
663
|
+
/**
|
|
664
|
+
* A token a person made for an agent, a script or a console of their own, as their own page
|
|
665
|
+
* lists it. The secret itself is answered once, when the token is made, and never kept.
|
|
666
|
+
*/
|
|
667
|
+
export declare const restTokenSchema: z.ZodMiniObject<{
|
|
668
|
+
id: z.ZodMiniUUID;
|
|
669
|
+
name: z.ZodMiniString<string>;
|
|
670
|
+
createdAt: z.ZodMiniISODateTime;
|
|
671
|
+
expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
672
|
+
lastUsedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
673
|
+
}, z.core.$strip>;
|
|
674
|
+
export type RestToken = z.infer<typeof restTokenSchema>;
|
|
675
|
+
/** `GET /api/v1/tokens`: the tokens of whoever asks, newest first. */
|
|
676
|
+
export declare const restTokensSchema: z.ZodMiniObject<{
|
|
677
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
678
|
+
id: z.ZodMiniUUID;
|
|
679
|
+
name: z.ZodMiniString<string>;
|
|
680
|
+
createdAt: z.ZodMiniISODateTime;
|
|
681
|
+
expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
682
|
+
lastUsedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
683
|
+
}, z.core.$strip>>;
|
|
684
|
+
}, z.core.$strip>;
|
|
685
|
+
export type RestTokens = z.infer<typeof restTokensSchema>;
|
|
686
|
+
/** What `POST /api/v1/tokens` is sent: a name, and for how many days it is good. */
|
|
687
|
+
export declare const restTokenInputSchema: z.ZodMiniObject<{
|
|
688
|
+
name: z.ZodMiniString<string>;
|
|
689
|
+
expiresInDays: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniInt>>;
|
|
690
|
+
}, z.core.$strip>;
|
|
691
|
+
export type RestTokenInput = z.infer<typeof restTokenInputSchema>;
|
|
692
|
+
/** What `POST /api/v1/tokens` answers: the token, and its secret, this once. */
|
|
693
|
+
export declare const restTokenCreatedSchema: z.ZodMiniObject<{
|
|
694
|
+
token: z.ZodMiniObject<{
|
|
695
|
+
id: z.ZodMiniUUID;
|
|
696
|
+
name: z.ZodMiniString<string>;
|
|
697
|
+
createdAt: z.ZodMiniISODateTime;
|
|
698
|
+
expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
699
|
+
lastUsedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
700
|
+
}, z.core.$strip>;
|
|
701
|
+
secret: z.ZodMiniString<string>;
|
|
702
|
+
}, z.core.$strip>;
|
|
703
|
+
export type RestTokenCreated = z.infer<typeof restTokenCreatedSchema>;
|
|
704
|
+
/** One of the organization's skills, as the SkillCDN deployment lists it at the console's address. */
|
|
705
|
+
export declare const restSkillSchema: z.ZodMiniObject<{
|
|
706
|
+
name: z.ZodMiniString<string>;
|
|
707
|
+
description: z.ZodMiniString<string>;
|
|
708
|
+
directory: z.ZodMiniString<string>;
|
|
709
|
+
path: z.ZodMiniString<string>;
|
|
710
|
+
page: z.ZodMiniString<string>;
|
|
711
|
+
uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
712
|
+
translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
713
|
+
title: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
714
|
+
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
715
|
+
}, z.core.$strip>>;
|
|
716
|
+
}, z.core.$strip>;
|
|
717
|
+
export type RestSkill = z.infer<typeof restSkillSchema>;
|
|
718
|
+
/** `GET /api/v1/skills`: the organization's skills, read by address through SkillCDN. */
|
|
719
|
+
export declare const restSkillsSchema: z.ZodMiniObject<{
|
|
720
|
+
address: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
721
|
+
source: z.ZodMiniString<string>;
|
|
722
|
+
page: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
723
|
+
status: z.ZodMiniEnum<{
|
|
724
|
+
failed: "failed";
|
|
725
|
+
indexing: "indexing";
|
|
726
|
+
none: "none";
|
|
727
|
+
not_found: "not_found";
|
|
728
|
+
ready: "ready";
|
|
729
|
+
unavailable: "unavailable";
|
|
730
|
+
}>;
|
|
731
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
732
|
+
name: z.ZodMiniString<string>;
|
|
733
|
+
description: z.ZodMiniString<string>;
|
|
734
|
+
directory: z.ZodMiniString<string>;
|
|
735
|
+
path: z.ZodMiniString<string>;
|
|
736
|
+
page: z.ZodMiniString<string>;
|
|
737
|
+
uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
738
|
+
translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
739
|
+
title: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
740
|
+
description: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
741
|
+
}, z.core.$strip>>;
|
|
742
|
+
}, z.core.$strip>>;
|
|
743
|
+
}, z.core.$strip>;
|
|
744
|
+
export type RestSkills = z.infer<typeof restSkillsSchema>;
|
|
745
|
+
export declare const restErrorSchema: z.ZodMiniObject<{
|
|
746
|
+
error: z.ZodMiniObject<{
|
|
747
|
+
code: z.ZodMiniString<string>;
|
|
748
|
+
message: z.ZodMiniString<string>;
|
|
749
|
+
}, z.core.$strip>;
|
|
750
|
+
}, z.core.$strip>;
|
|
751
|
+
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. */
|
|
753
|
+
export declare const restRunInputSchema: z.ZodMiniObject<{
|
|
754
|
+
taskId: z.ZodMiniUUID;
|
|
755
|
+
agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
756
|
+
}, z.core.$strip>;
|
|
757
|
+
export type RestRunInput = z.infer<typeof restRunInputSchema>;
|
|
758
|
+
/** What `POST /api/v1/runs/<id>/reports` is sent: how the work goes, in Markdown. */
|
|
759
|
+
export declare const restReportInputSchema: z.ZodMiniObject<{
|
|
760
|
+
body: z.ZodMiniString<string>;
|
|
761
|
+
}, z.core.$strip>;
|
|
762
|
+
export type RestReportInput = z.infer<typeof restReportInputSchema>;
|
|
763
|
+
/** What `POST /api/v1/runs/<id>/artifacts` is sent: a link to what was made. */
|
|
764
|
+
export declare const restArtifactInputSchema: z.ZodMiniObject<{
|
|
765
|
+
url: z.ZodMiniString<string>;
|
|
766
|
+
label: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
export type RestArtifactInput = z.infer<typeof restArtifactInputSchema>;
|
|
769
|
+
/**
|
|
770
|
+
* What `POST /api/v1/runs/<id>/files` is sent beside the bytes, as the parts of a form: the
|
|
771
|
+
* file's name and media type come with the `file` part, the `label` is a part of its own.
|
|
772
|
+
*/
|
|
773
|
+
export declare const restFileInputSchema: z.ZodMiniObject<{
|
|
774
|
+
name: z.ZodMiniString<string>;
|
|
775
|
+
contentType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
776
|
+
label: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
777
|
+
}, z.core.$strip>;
|
|
778
|
+
export type RestFileInput = z.infer<typeof restFileInputSchema>;
|
|
779
|
+
/** What `POST /api/v1/runs/<id>/end` is sent: how the run ended, and what was done and left. */
|
|
780
|
+
export declare const restRunEndInputSchema: z.ZodMiniObject<{
|
|
781
|
+
status: z.ZodMiniEnum<{
|
|
782
|
+
abandoned: "abandoned";
|
|
783
|
+
failed: "failed";
|
|
784
|
+
finished: "finished";
|
|
785
|
+
}>;
|
|
786
|
+
summary: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
787
|
+
}, z.core.$strip>;
|
|
788
|
+
export type RestRunEndInput = z.infer<typeof restRunEndInputSchema>;
|
|
789
|
+
//# sourceMappingURL=schemas.d.ts.map
|