@devpad/api 2.2.6 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-ZPEX7KVX.js +238 -0
- package/dist/{errors.d-DcjQAql-.d.ts → errors.d-ByyBTSwW.d.ts} +1 -1
- package/dist/index.d.ts +183 -6
- package/dist/index.js +827 -97
- package/dist/{media.d-CQ56ckoR.d.ts → media.d-R87HGuRp.d.ts} +1 -1
- package/dist/schema/blog.d.ts +1702 -2
- package/dist/schema/blog.js +11 -11
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +39 -1
- package/dist/schema/media.d.ts +4 -4
- package/dist/schema/media.js +330 -330
- package/dist/{schema.d-Bka8880l.d.ts → schema.d-DFyjWZV1.d.ts} +1679 -1
- package/dist/{types.d-DLE9TSql.d.ts → types.d-B3vp62jJ.d.ts} +7 -7
- package/dist/{types.d-VdW3W-u7.d.ts → types.d-YhCFiUtt.d.ts} +52 -52
- package/dist/types.d-i9gbGlha.d.ts +852 -0
- package/package.json +4 -3
- package/dist/chunk-7SQVSGWV.js +0 -105
- package/dist/types.d-CW-e2BrO.d.ts +0 -455
|
@@ -0,0 +1,852 @@
|
|
|
1
|
+
import { InferSelectModel } from 'drizzle-orm';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { d as api_keys, o as project, m as milestone, g as goal, r as task, e as codebase_tasks, c as action, A as ActionType, t as tag, l as pipeline_run, h as pipeline_grant, k as pipeline_package, j as pipeline_oidc_trust, i as ignore_path, p as pipeline_analysis_template, f as pipeline_approval, n as pipeline_stage_event, s as session, q as tag_config, u as task_tag, v as todo_updates, w as tracker_result, x as user } from './schema.d-DFyjWZV1.js';
|
|
4
|
+
|
|
5
|
+
declare const upsert_project: z.ZodObject<{
|
|
6
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
project_id: z.ZodString;
|
|
8
|
+
owner_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11
|
+
specification: z.ZodNullable<z.ZodString>;
|
|
12
|
+
repo_url: z.ZodNullable<z.ZodString>;
|
|
13
|
+
repo_id: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
icon_url: z.ZodNullable<z.ZodString>;
|
|
15
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"DEVELOPMENT">, z.ZodLiteral<"PAUSED">, z.ZodLiteral<"RELEASED">, z.ZodLiteral<"LIVE">, z.ZodLiteral<"FINISHED">, z.ZodLiteral<"ABANDONED">, z.ZodLiteral<"STOPPED">]>>;
|
|
16
|
+
deleted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
17
|
+
link_url: z.ZodNullable<z.ZodString>;
|
|
18
|
+
link_text: z.ZodNullable<z.ZodString>;
|
|
19
|
+
visibility: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PUBLIC">, z.ZodLiteral<"PRIVATE">, z.ZodLiteral<"HIDDEN">, z.ZodLiteral<"ARCHIVED">, z.ZodLiteral<"DRAFT">, z.ZodLiteral<"DELETED">]>>;
|
|
20
|
+
current_version: z.ZodNullable<z.ZodString>;
|
|
21
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
name: string;
|
|
24
|
+
deleted: boolean;
|
|
25
|
+
project_id: string;
|
|
26
|
+
description: string | null;
|
|
27
|
+
specification: string | null;
|
|
28
|
+
repo_url: string | null;
|
|
29
|
+
repo_id: number | null;
|
|
30
|
+
icon_url: string | null;
|
|
31
|
+
link_url: string | null;
|
|
32
|
+
link_text: string | null;
|
|
33
|
+
current_version: string | null;
|
|
34
|
+
id?: string | null | undefined;
|
|
35
|
+
owner_id?: string | undefined;
|
|
36
|
+
status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
|
|
37
|
+
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
38
|
+
force?: boolean | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string;
|
|
41
|
+
project_id: string;
|
|
42
|
+
description: string | null;
|
|
43
|
+
specification: string | null;
|
|
44
|
+
repo_url: string | null;
|
|
45
|
+
repo_id: number | null;
|
|
46
|
+
icon_url: string | null;
|
|
47
|
+
link_url: string | null;
|
|
48
|
+
link_text: string | null;
|
|
49
|
+
current_version: string | null;
|
|
50
|
+
id?: string | null | undefined;
|
|
51
|
+
deleted?: boolean | undefined;
|
|
52
|
+
owner_id?: string | undefined;
|
|
53
|
+
status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
|
|
54
|
+
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
55
|
+
force?: boolean | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
declare const upsert_todo: z.ZodObject<{
|
|
58
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
59
|
+
title: z.ZodOptional<z.ZodString>;
|
|
60
|
+
summary: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
61
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
62
|
+
progress: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"UNSTARTED">, z.ZodLiteral<"IN_PROGRESS">, z.ZodLiteral<"COMPLETED">]>>;
|
|
63
|
+
visibility: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PUBLIC">, z.ZodLiteral<"PRIVATE">, z.ZodLiteral<"HIDDEN">, z.ZodLiteral<"ARCHIVED">, z.ZodLiteral<"DRAFT">, z.ZodLiteral<"DELETED">]>>;
|
|
64
|
+
start_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
|
+
end_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
66
|
+
priority: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"LOW">, z.ZodLiteral<"MEDIUM">, z.ZodLiteral<"HIGH">]>>;
|
|
67
|
+
owner_id: z.ZodString;
|
|
68
|
+
project_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
|
+
goal_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
owner_id: string;
|
|
73
|
+
id?: string | null | undefined;
|
|
74
|
+
project_id?: string | null | undefined;
|
|
75
|
+
description?: string | null | undefined;
|
|
76
|
+
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
77
|
+
title?: string | undefined;
|
|
78
|
+
progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
|
|
79
|
+
goal_id?: string | null | undefined;
|
|
80
|
+
start_time?: string | null | undefined;
|
|
81
|
+
end_time?: string | null | undefined;
|
|
82
|
+
summary?: string | null | undefined;
|
|
83
|
+
priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
84
|
+
force?: boolean | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
owner_id: string;
|
|
87
|
+
id?: string | null | undefined;
|
|
88
|
+
project_id?: string | null | undefined;
|
|
89
|
+
description?: string | null | undefined;
|
|
90
|
+
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
91
|
+
title?: string | undefined;
|
|
92
|
+
progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
|
|
93
|
+
goal_id?: string | null | undefined;
|
|
94
|
+
start_time?: string | null | undefined;
|
|
95
|
+
end_time?: string | null | undefined;
|
|
96
|
+
summary?: string | null | undefined;
|
|
97
|
+
priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
98
|
+
force?: boolean | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
declare const update_action: z.ZodUnion<[z.ZodLiteral<"CONFIRM">, z.ZodLiteral<"UNLINK">, z.ZodLiteral<"CREATE">, z.ZodLiteral<"IGNORE">, z.ZodLiteral<"DELETE">, z.ZodLiteral<"COMPLETE">]>;
|
|
101
|
+
declare const upsert_tag: z.ZodObject<{
|
|
102
|
+
id: z.ZodOptional<z.ZodString>;
|
|
103
|
+
title: z.ZodString;
|
|
104
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"red">, z.ZodLiteral<"green">, z.ZodLiteral<"blue">, z.ZodLiteral<"yellow">, z.ZodLiteral<"purple">, z.ZodLiteral<"orange">, z.ZodLiteral<"teal">, z.ZodLiteral<"pink">, z.ZodLiteral<"gray">, z.ZodLiteral<"cyan">, z.ZodLiteral<"lime">]>>>;
|
|
105
|
+
deleted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
106
|
+
render: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
107
|
+
owner_id: z.ZodString;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
deleted: boolean;
|
|
110
|
+
owner_id: string;
|
|
111
|
+
title: string;
|
|
112
|
+
render: boolean;
|
|
113
|
+
id?: string | undefined;
|
|
114
|
+
color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
owner_id: string;
|
|
117
|
+
title: string;
|
|
118
|
+
id?: string | undefined;
|
|
119
|
+
deleted?: boolean | undefined;
|
|
120
|
+
color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
|
|
121
|
+
render?: boolean | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
declare const project_config: z.ZodObject<{
|
|
124
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
match: z.ZodArray<z.ZodString, "many">;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
match: string[];
|
|
129
|
+
name: string;
|
|
130
|
+
}, {
|
|
131
|
+
match: string[];
|
|
132
|
+
name: string;
|
|
133
|
+
}>, "many">;
|
|
134
|
+
ignore: z.ZodArray<z.ZodString, "many">;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
tags: {
|
|
137
|
+
match: string[];
|
|
138
|
+
name: string;
|
|
139
|
+
}[];
|
|
140
|
+
ignore: string[];
|
|
141
|
+
}, {
|
|
142
|
+
tags: {
|
|
143
|
+
match: string[];
|
|
144
|
+
name: string;
|
|
145
|
+
}[];
|
|
146
|
+
ignore: string[];
|
|
147
|
+
}>;
|
|
148
|
+
declare const save_config_request: z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
config: z.ZodObject<{
|
|
151
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
match: z.ZodArray<z.ZodString, "many">;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
match: string[];
|
|
156
|
+
name: string;
|
|
157
|
+
}, {
|
|
158
|
+
match: string[];
|
|
159
|
+
name: string;
|
|
160
|
+
}>, "many">;
|
|
161
|
+
ignore: z.ZodArray<z.ZodString, "many">;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
tags: {
|
|
164
|
+
match: string[];
|
|
165
|
+
name: string;
|
|
166
|
+
}[];
|
|
167
|
+
ignore: string[];
|
|
168
|
+
}, {
|
|
169
|
+
tags: {
|
|
170
|
+
match: string[];
|
|
171
|
+
name: string;
|
|
172
|
+
}[];
|
|
173
|
+
ignore: string[];
|
|
174
|
+
}>;
|
|
175
|
+
scan_branch: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
id: string;
|
|
178
|
+
config: {
|
|
179
|
+
tags: {
|
|
180
|
+
match: string[];
|
|
181
|
+
name: string;
|
|
182
|
+
}[];
|
|
183
|
+
ignore: string[];
|
|
184
|
+
};
|
|
185
|
+
scan_branch?: string | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
id: string;
|
|
188
|
+
config: {
|
|
189
|
+
tags: {
|
|
190
|
+
match: string[];
|
|
191
|
+
name: string;
|
|
192
|
+
}[];
|
|
193
|
+
ignore: string[];
|
|
194
|
+
};
|
|
195
|
+
scan_branch?: string | undefined;
|
|
196
|
+
}>;
|
|
197
|
+
declare const save_tags_request: z.ZodArray<z.ZodObject<{
|
|
198
|
+
id: z.ZodOptional<z.ZodString>;
|
|
199
|
+
title: z.ZodString;
|
|
200
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"red">, z.ZodLiteral<"green">, z.ZodLiteral<"blue">, z.ZodLiteral<"yellow">, z.ZodLiteral<"purple">, z.ZodLiteral<"orange">, z.ZodLiteral<"teal">, z.ZodLiteral<"pink">, z.ZodLiteral<"gray">, z.ZodLiteral<"cyan">, z.ZodLiteral<"lime">]>>>;
|
|
201
|
+
deleted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
202
|
+
render: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
203
|
+
owner_id: z.ZodString;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
deleted: boolean;
|
|
206
|
+
owner_id: string;
|
|
207
|
+
title: string;
|
|
208
|
+
render: boolean;
|
|
209
|
+
id?: string | undefined;
|
|
210
|
+
color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
owner_id: string;
|
|
213
|
+
title: string;
|
|
214
|
+
id?: string | undefined;
|
|
215
|
+
deleted?: boolean | undefined;
|
|
216
|
+
color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
|
|
217
|
+
render?: boolean | undefined;
|
|
218
|
+
}>, "many">;
|
|
219
|
+
declare const update_user: z.ZodObject<{
|
|
220
|
+
id: z.ZodString;
|
|
221
|
+
name: z.ZodOptional<z.ZodString>;
|
|
222
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
223
|
+
task_view: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"list">, z.ZodLiteral<"grid">]>>;
|
|
224
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
}, "strip", z.ZodTypeAny, {
|
|
226
|
+
id: string;
|
|
227
|
+
name?: string | undefined;
|
|
228
|
+
email_verified?: boolean | undefined;
|
|
229
|
+
image_url?: string | undefined;
|
|
230
|
+
task_view?: "list" | "grid" | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
id: string;
|
|
233
|
+
name?: string | undefined;
|
|
234
|
+
email_verified?: boolean | undefined;
|
|
235
|
+
image_url?: string | undefined;
|
|
236
|
+
task_view?: "list" | "grid" | undefined;
|
|
237
|
+
}>;
|
|
238
|
+
declare const config_schema: z.ZodObject<{
|
|
239
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
240
|
+
name: z.ZodString;
|
|
241
|
+
match: z.ZodArray<z.ZodString, "many">;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
match: string[];
|
|
244
|
+
name: string;
|
|
245
|
+
}, {
|
|
246
|
+
match: string[];
|
|
247
|
+
name: string;
|
|
248
|
+
}>, "many">;
|
|
249
|
+
ignore: z.ZodArray<z.ZodString, "many">;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
tags: {
|
|
252
|
+
match: string[];
|
|
253
|
+
name: string;
|
|
254
|
+
}[];
|
|
255
|
+
ignore: string[];
|
|
256
|
+
}, {
|
|
257
|
+
tags: {
|
|
258
|
+
match: string[];
|
|
259
|
+
name: string;
|
|
260
|
+
}[];
|
|
261
|
+
ignore: string[];
|
|
262
|
+
}>;
|
|
263
|
+
declare const upsert_milestone: z.ZodObject<{
|
|
264
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
265
|
+
project_id: z.ZodString;
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
268
|
+
target_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
269
|
+
target_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
270
|
+
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
+
after_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
name: string;
|
|
275
|
+
project_id: string;
|
|
276
|
+
id?: string | null | undefined;
|
|
277
|
+
description?: string | null | undefined;
|
|
278
|
+
target_time?: string | null | undefined;
|
|
279
|
+
target_version?: string | null | undefined;
|
|
280
|
+
finished_at?: string | null | undefined;
|
|
281
|
+
after_id?: string | null | undefined;
|
|
282
|
+
force?: boolean | undefined;
|
|
283
|
+
}, {
|
|
284
|
+
name: string;
|
|
285
|
+
project_id: string;
|
|
286
|
+
id?: string | null | undefined;
|
|
287
|
+
description?: string | null | undefined;
|
|
288
|
+
target_time?: string | null | undefined;
|
|
289
|
+
target_version?: string | null | undefined;
|
|
290
|
+
finished_at?: string | null | undefined;
|
|
291
|
+
after_id?: string | null | undefined;
|
|
292
|
+
force?: boolean | undefined;
|
|
293
|
+
}>;
|
|
294
|
+
declare const upsert_goal: z.ZodObject<{
|
|
295
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
296
|
+
milestone_id: z.ZodString;
|
|
297
|
+
name: z.ZodString;
|
|
298
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
+
target_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
+
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
+
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
name: string;
|
|
304
|
+
milestone_id: string;
|
|
305
|
+
id?: string | null | undefined;
|
|
306
|
+
description?: string | null | undefined;
|
|
307
|
+
target_time?: string | null | undefined;
|
|
308
|
+
finished_at?: string | null | undefined;
|
|
309
|
+
force?: boolean | undefined;
|
|
310
|
+
}, {
|
|
311
|
+
name: string;
|
|
312
|
+
milestone_id: string;
|
|
313
|
+
id?: string | null | undefined;
|
|
314
|
+
description?: string | null | undefined;
|
|
315
|
+
target_time?: string | null | undefined;
|
|
316
|
+
finished_at?: string | null | undefined;
|
|
317
|
+
force?: boolean | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
declare const rollout_shape: z.ZodUnion<[z.ZodLiteral<"gradual">, z.ZodLiteral<"atomic">]>;
|
|
320
|
+
type RolloutShapeZ = z.infer<typeof rollout_shape>;
|
|
321
|
+
declare const run_kind: z.ZodUnion<[z.ZodLiteral<"deploy">, z.ZodLiteral<"rollback">]>;
|
|
322
|
+
type RunKindZ = z.infer<typeof run_kind>;
|
|
323
|
+
declare const run_status: z.ZodUnion<[z.ZodLiteral<"queued">, z.ZodLiteral<"deploying">, z.ZodLiteral<"baking">, z.ZodLiteral<"awaiting_approval">, z.ZodLiteral<"rolling_back">, z.ZodLiteral<"completed">, z.ZodLiteral<"rolled_back">, z.ZodLiteral<"failed">, z.ZodLiteral<"cancelled">]>;
|
|
324
|
+
declare const forced_atomic_reason: z.ZodUnion<[z.ZodLiteral<"do_migrations">, z.ZodLiteral<"asset_affinity_none">]>;
|
|
325
|
+
declare const stage_event_kind: z.ZodUnion<[z.ZodLiteral<"deploy_started">, z.ZodLiteral<"deploy_completed">, z.ZodLiteral<"bake_started">, z.ZodLiteral<"bake_completed">, z.ZodLiteral<"gate_verdict">, z.ZodLiteral<"approval_requested">, z.ZodLiteral<"rollback_started">, z.ZodLiteral<"rollback_completed">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>;
|
|
326
|
+
declare const approval_decision: z.ZodUnion<[z.ZodLiteral<"approved">, z.ZodLiteral<"denied">]>;
|
|
327
|
+
declare const grant_scope: z.ZodString;
|
|
328
|
+
declare const rollout_stage: z.ZodObject<{
|
|
329
|
+
name: z.ZodString;
|
|
330
|
+
traffic: z.ZodNumber;
|
|
331
|
+
bake: z.ZodNullable<z.ZodString>;
|
|
332
|
+
}, "strip", z.ZodTypeAny, {
|
|
333
|
+
name: string;
|
|
334
|
+
traffic: number;
|
|
335
|
+
bake: string | null;
|
|
336
|
+
}, {
|
|
337
|
+
name: string;
|
|
338
|
+
traffic: number;
|
|
339
|
+
bake: string | null;
|
|
340
|
+
}>;
|
|
341
|
+
declare const resolved_rollout: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
342
|
+
type: z.ZodLiteral<"gradual">;
|
|
343
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
344
|
+
name: z.ZodString;
|
|
345
|
+
traffic: z.ZodNumber;
|
|
346
|
+
bake: z.ZodNullable<z.ZodString>;
|
|
347
|
+
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
name: string;
|
|
349
|
+
traffic: number;
|
|
350
|
+
bake: string | null;
|
|
351
|
+
}, {
|
|
352
|
+
name: string;
|
|
353
|
+
traffic: number;
|
|
354
|
+
bake: string | null;
|
|
355
|
+
}>, "many">;
|
|
356
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
type: "gradual";
|
|
358
|
+
stages: {
|
|
359
|
+
name: string;
|
|
360
|
+
traffic: number;
|
|
361
|
+
bake: string | null;
|
|
362
|
+
}[];
|
|
363
|
+
}, {
|
|
364
|
+
type: "gradual";
|
|
365
|
+
stages: {
|
|
366
|
+
name: string;
|
|
367
|
+
traffic: number;
|
|
368
|
+
bake: string | null;
|
|
369
|
+
}[];
|
|
370
|
+
}>, z.ZodObject<{
|
|
371
|
+
type: z.ZodLiteral<"atomic">;
|
|
372
|
+
}, "strip", z.ZodTypeAny, {
|
|
373
|
+
type: "atomic";
|
|
374
|
+
}, {
|
|
375
|
+
type: "atomic";
|
|
376
|
+
}>]>;
|
|
377
|
+
declare const gate_descriptor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
378
|
+
type: z.ZodLiteral<"manual">;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
type: "manual";
|
|
381
|
+
}, {
|
|
382
|
+
type: "manual";
|
|
383
|
+
}>, z.ZodObject<{
|
|
384
|
+
type: z.ZodLiteral<"auto">;
|
|
385
|
+
afterBake: z.ZodOptional<z.ZodBoolean>;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
type: "auto";
|
|
388
|
+
afterBake?: boolean | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
type: "auto";
|
|
391
|
+
afterBake?: boolean | undefined;
|
|
392
|
+
}>, z.ZodObject<{
|
|
393
|
+
type: z.ZodLiteral<"analysis">;
|
|
394
|
+
template: z.ZodString;
|
|
395
|
+
}, "strip", z.ZodTypeAny, {
|
|
396
|
+
type: "analysis";
|
|
397
|
+
template: string;
|
|
398
|
+
}, {
|
|
399
|
+
type: "analysis";
|
|
400
|
+
template: string;
|
|
401
|
+
}>]>;
|
|
402
|
+
declare const resolved_gates: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
403
|
+
type: z.ZodLiteral<"manual">;
|
|
404
|
+
}, "strip", z.ZodTypeAny, {
|
|
405
|
+
type: "manual";
|
|
406
|
+
}, {
|
|
407
|
+
type: "manual";
|
|
408
|
+
}>, z.ZodObject<{
|
|
409
|
+
type: z.ZodLiteral<"auto">;
|
|
410
|
+
afterBake: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
type: "auto";
|
|
413
|
+
afterBake?: boolean | undefined;
|
|
414
|
+
}, {
|
|
415
|
+
type: "auto";
|
|
416
|
+
afterBake?: boolean | undefined;
|
|
417
|
+
}>, z.ZodObject<{
|
|
418
|
+
type: z.ZodLiteral<"analysis">;
|
|
419
|
+
template: z.ZodString;
|
|
420
|
+
}, "strip", z.ZodTypeAny, {
|
|
421
|
+
type: "analysis";
|
|
422
|
+
template: string;
|
|
423
|
+
}, {
|
|
424
|
+
type: "analysis";
|
|
425
|
+
template: string;
|
|
426
|
+
}>]>>;
|
|
427
|
+
declare const upsert_pipeline_package: z.ZodObject<{
|
|
428
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
429
|
+
owner_id: z.ZodString;
|
|
430
|
+
name: z.ZodString;
|
|
431
|
+
repo_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
432
|
+
default_template_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
433
|
+
script_name_overrides: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
434
|
+
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
name: string;
|
|
437
|
+
owner_id: string;
|
|
438
|
+
id?: string | null | undefined;
|
|
439
|
+
project_id?: string | null | undefined;
|
|
440
|
+
repo_url?: string | null | undefined;
|
|
441
|
+
default_template_ref?: string | null | undefined;
|
|
442
|
+
script_name_overrides?: Record<string, string> | null | undefined;
|
|
443
|
+
}, {
|
|
444
|
+
name: string;
|
|
445
|
+
owner_id: string;
|
|
446
|
+
id?: string | null | undefined;
|
|
447
|
+
project_id?: string | null | undefined;
|
|
448
|
+
repo_url?: string | null | undefined;
|
|
449
|
+
default_template_ref?: string | null | undefined;
|
|
450
|
+
script_name_overrides?: Record<string, string> | null | undefined;
|
|
451
|
+
}>;
|
|
452
|
+
declare const upsert_pipeline_run: z.ZodObject<{
|
|
453
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
454
|
+
package_id: z.ZodString;
|
|
455
|
+
version_set_id: z.ZodString;
|
|
456
|
+
shape: z.ZodUnion<[z.ZodLiteral<"gradual">, z.ZodLiteral<"atomic">]>;
|
|
457
|
+
kind: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"deploy">, z.ZodLiteral<"rollback">]>>;
|
|
458
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"queued">, z.ZodLiteral<"deploying">, z.ZodLiteral<"baking">, z.ZodLiteral<"awaiting_approval">, z.ZodLiteral<"rolling_back">, z.ZodLiteral<"completed">, z.ZodLiteral<"rolled_back">, z.ZodLiteral<"failed">, z.ZodLiteral<"cancelled">]>>;
|
|
459
|
+
current_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
|
+
resolved_rollout: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
461
|
+
type: z.ZodLiteral<"gradual">;
|
|
462
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
463
|
+
name: z.ZodString;
|
|
464
|
+
traffic: z.ZodNumber;
|
|
465
|
+
bake: z.ZodNullable<z.ZodString>;
|
|
466
|
+
}, "strip", z.ZodTypeAny, {
|
|
467
|
+
name: string;
|
|
468
|
+
traffic: number;
|
|
469
|
+
bake: string | null;
|
|
470
|
+
}, {
|
|
471
|
+
name: string;
|
|
472
|
+
traffic: number;
|
|
473
|
+
bake: string | null;
|
|
474
|
+
}>, "many">;
|
|
475
|
+
}, "strip", z.ZodTypeAny, {
|
|
476
|
+
type: "gradual";
|
|
477
|
+
stages: {
|
|
478
|
+
name: string;
|
|
479
|
+
traffic: number;
|
|
480
|
+
bake: string | null;
|
|
481
|
+
}[];
|
|
482
|
+
}, {
|
|
483
|
+
type: "gradual";
|
|
484
|
+
stages: {
|
|
485
|
+
name: string;
|
|
486
|
+
traffic: number;
|
|
487
|
+
bake: string | null;
|
|
488
|
+
}[];
|
|
489
|
+
}>, z.ZodObject<{
|
|
490
|
+
type: z.ZodLiteral<"atomic">;
|
|
491
|
+
}, "strip", z.ZodTypeAny, {
|
|
492
|
+
type: "atomic";
|
|
493
|
+
}, {
|
|
494
|
+
type: "atomic";
|
|
495
|
+
}>]>;
|
|
496
|
+
resolved_gates: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
497
|
+
type: z.ZodLiteral<"manual">;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
type: "manual";
|
|
500
|
+
}, {
|
|
501
|
+
type: "manual";
|
|
502
|
+
}>, z.ZodObject<{
|
|
503
|
+
type: z.ZodLiteral<"auto">;
|
|
504
|
+
afterBake: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
type: "auto";
|
|
507
|
+
afterBake?: boolean | undefined;
|
|
508
|
+
}, {
|
|
509
|
+
type: "auto";
|
|
510
|
+
afterBake?: boolean | undefined;
|
|
511
|
+
}>, z.ZodObject<{
|
|
512
|
+
type: z.ZodLiteral<"analysis">;
|
|
513
|
+
template: z.ZodString;
|
|
514
|
+
}, "strip", z.ZodTypeAny, {
|
|
515
|
+
type: "analysis";
|
|
516
|
+
template: string;
|
|
517
|
+
}, {
|
|
518
|
+
type: "analysis";
|
|
519
|
+
template: string;
|
|
520
|
+
}>]>>;
|
|
521
|
+
forced_atomic_reason: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"do_migrations">, z.ZodLiteral<"asset_affinity_none">]>>>;
|
|
522
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
523
|
+
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
}, "strip", z.ZodTypeAny, {
|
|
525
|
+
package_id: string;
|
|
526
|
+
version_set_id: string;
|
|
527
|
+
shape: "gradual" | "atomic";
|
|
528
|
+
resolved_rollout: {
|
|
529
|
+
type: "gradual";
|
|
530
|
+
stages: {
|
|
531
|
+
name: string;
|
|
532
|
+
traffic: number;
|
|
533
|
+
bake: string | null;
|
|
534
|
+
}[];
|
|
535
|
+
} | {
|
|
536
|
+
type: "atomic";
|
|
537
|
+
};
|
|
538
|
+
resolved_gates: Record<string, {
|
|
539
|
+
type: "manual";
|
|
540
|
+
} | {
|
|
541
|
+
type: "auto";
|
|
542
|
+
afterBake?: boolean | undefined;
|
|
543
|
+
} | {
|
|
544
|
+
type: "analysis";
|
|
545
|
+
template: string;
|
|
546
|
+
}>;
|
|
547
|
+
id?: string | null | undefined;
|
|
548
|
+
kind?: "deploy" | "rollback" | undefined;
|
|
549
|
+
status?: "queued" | "deploying" | "baking" | "awaiting_approval" | "rolling_back" | "completed" | "rolled_back" | "failed" | "cancelled" | undefined;
|
|
550
|
+
finished_at?: string | null | undefined;
|
|
551
|
+
current_stage?: string | null | undefined;
|
|
552
|
+
forced_atomic_reason?: "do_migrations" | "asset_affinity_none" | null | undefined;
|
|
553
|
+
started_at?: string | null | undefined;
|
|
554
|
+
}, {
|
|
555
|
+
package_id: string;
|
|
556
|
+
version_set_id: string;
|
|
557
|
+
shape: "gradual" | "atomic";
|
|
558
|
+
resolved_rollout: {
|
|
559
|
+
type: "gradual";
|
|
560
|
+
stages: {
|
|
561
|
+
name: string;
|
|
562
|
+
traffic: number;
|
|
563
|
+
bake: string | null;
|
|
564
|
+
}[];
|
|
565
|
+
} | {
|
|
566
|
+
type: "atomic";
|
|
567
|
+
};
|
|
568
|
+
resolved_gates: Record<string, {
|
|
569
|
+
type: "manual";
|
|
570
|
+
} | {
|
|
571
|
+
type: "auto";
|
|
572
|
+
afterBake?: boolean | undefined;
|
|
573
|
+
} | {
|
|
574
|
+
type: "analysis";
|
|
575
|
+
template: string;
|
|
576
|
+
}>;
|
|
577
|
+
id?: string | null | undefined;
|
|
578
|
+
kind?: "deploy" | "rollback" | undefined;
|
|
579
|
+
status?: "queued" | "deploying" | "baking" | "awaiting_approval" | "rolling_back" | "completed" | "rolled_back" | "failed" | "cancelled" | undefined;
|
|
580
|
+
finished_at?: string | null | undefined;
|
|
581
|
+
current_stage?: string | null | undefined;
|
|
582
|
+
forced_atomic_reason?: "do_migrations" | "asset_affinity_none" | null | undefined;
|
|
583
|
+
started_at?: string | null | undefined;
|
|
584
|
+
}>;
|
|
585
|
+
declare const insert_pipeline_stage_event: z.ZodObject<{
|
|
586
|
+
run_id: z.ZodString;
|
|
587
|
+
stage_name: z.ZodString;
|
|
588
|
+
kind: z.ZodUnion<[z.ZodLiteral<"deploy_started">, z.ZodLiteral<"deploy_completed">, z.ZodLiteral<"bake_started">, z.ZodLiteral<"bake_completed">, z.ZodLiteral<"gate_verdict">, z.ZodLiteral<"approval_requested">, z.ZodLiteral<"rollback_started">, z.ZodLiteral<"rollback_completed">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>;
|
|
589
|
+
payload: z.ZodOptional<z.ZodUnknown>;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
kind: "error" | "deploy_started" | "deploy_completed" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
|
|
592
|
+
run_id: string;
|
|
593
|
+
stage_name: string;
|
|
594
|
+
payload?: unknown;
|
|
595
|
+
}, {
|
|
596
|
+
kind: "error" | "deploy_started" | "deploy_completed" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
|
|
597
|
+
run_id: string;
|
|
598
|
+
stage_name: string;
|
|
599
|
+
payload?: unknown;
|
|
600
|
+
}>;
|
|
601
|
+
declare const upsert_pipeline_grant: z.ZodObject<{
|
|
602
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
603
|
+
package_id: z.ZodString;
|
|
604
|
+
stage_name: z.ZodString;
|
|
605
|
+
scope: z.ZodString;
|
|
606
|
+
granted_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
607
|
+
granted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
608
|
+
}, "strip", z.ZodTypeAny, {
|
|
609
|
+
scope: string;
|
|
610
|
+
package_id: string;
|
|
611
|
+
stage_name: string;
|
|
612
|
+
id?: string | null | undefined;
|
|
613
|
+
granted_by?: string | null | undefined;
|
|
614
|
+
granted_at?: string | null | undefined;
|
|
615
|
+
}, {
|
|
616
|
+
scope: string;
|
|
617
|
+
package_id: string;
|
|
618
|
+
stage_name: string;
|
|
619
|
+
id?: string | null | undefined;
|
|
620
|
+
granted_by?: string | null | undefined;
|
|
621
|
+
granted_at?: string | null | undefined;
|
|
622
|
+
}>;
|
|
623
|
+
declare const upsert_pipeline_approval: z.ZodObject<{
|
|
624
|
+
run_id: z.ZodString;
|
|
625
|
+
stage_name: z.ZodString;
|
|
626
|
+
decision: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"approved">, z.ZodLiteral<"denied">]>>>;
|
|
627
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
628
|
+
decided_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
629
|
+
decided_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
630
|
+
}, "strip", z.ZodTypeAny, {
|
|
631
|
+
run_id: string;
|
|
632
|
+
stage_name: string;
|
|
633
|
+
decision?: "approved" | "denied" | null | undefined;
|
|
634
|
+
reason?: string | null | undefined;
|
|
635
|
+
decided_by?: string | null | undefined;
|
|
636
|
+
decided_at?: string | null | undefined;
|
|
637
|
+
}, {
|
|
638
|
+
run_id: string;
|
|
639
|
+
stage_name: string;
|
|
640
|
+
decision?: "approved" | "denied" | null | undefined;
|
|
641
|
+
reason?: string | null | undefined;
|
|
642
|
+
decided_by?: string | null | undefined;
|
|
643
|
+
decided_at?: string | null | undefined;
|
|
644
|
+
}>;
|
|
645
|
+
declare const upsert_pipeline_analysis_template: z.ZodObject<{
|
|
646
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
647
|
+
owner_id: z.ZodString;
|
|
648
|
+
name: z.ZodString;
|
|
649
|
+
query_dsl: z.ZodUnknown;
|
|
650
|
+
threshold_dsl: z.ZodUnknown;
|
|
651
|
+
}, "strip", z.ZodTypeAny, {
|
|
652
|
+
name: string;
|
|
653
|
+
owner_id: string;
|
|
654
|
+
id?: string | null | undefined;
|
|
655
|
+
query_dsl?: unknown;
|
|
656
|
+
threshold_dsl?: unknown;
|
|
657
|
+
}, {
|
|
658
|
+
name: string;
|
|
659
|
+
owner_id: string;
|
|
660
|
+
id?: string | null | undefined;
|
|
661
|
+
query_dsl?: unknown;
|
|
662
|
+
threshold_dsl?: unknown;
|
|
663
|
+
}>;
|
|
664
|
+
declare const pipeline_oidc_provider: z.ZodLiteral<"github">;
|
|
665
|
+
declare const upsert_pipeline_oidc_trust: z.ZodObject<{
|
|
666
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
667
|
+
owner_id: z.ZodString;
|
|
668
|
+
provider: z.ZodOptional<z.ZodLiteral<"github">>;
|
|
669
|
+
github_owner: z.ZodString;
|
|
670
|
+
repo_pattern: z.ZodOptional<z.ZodString>;
|
|
671
|
+
allowed_refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
672
|
+
allowed_environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
673
|
+
expected_audience: z.ZodString;
|
|
674
|
+
allowed_actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
675
|
+
session_ttl_seconds: z.ZodOptional<z.ZodNumber>;
|
|
676
|
+
last_used_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
|
678
|
+
owner_id: string;
|
|
679
|
+
github_owner: string;
|
|
680
|
+
expected_audience: string;
|
|
681
|
+
id?: string | null | undefined;
|
|
682
|
+
last_used_at?: string | null | undefined;
|
|
683
|
+
provider?: "github" | undefined;
|
|
684
|
+
repo_pattern?: string | undefined;
|
|
685
|
+
allowed_refs?: string[] | undefined;
|
|
686
|
+
allowed_environments?: string[] | undefined;
|
|
687
|
+
allowed_actions?: string[] | undefined;
|
|
688
|
+
session_ttl_seconds?: number | undefined;
|
|
689
|
+
}, {
|
|
690
|
+
owner_id: string;
|
|
691
|
+
github_owner: string;
|
|
692
|
+
expected_audience: string;
|
|
693
|
+
id?: string | null | undefined;
|
|
694
|
+
last_used_at?: string | null | undefined;
|
|
695
|
+
provider?: "github" | undefined;
|
|
696
|
+
repo_pattern?: string | undefined;
|
|
697
|
+
allowed_refs?: string[] | undefined;
|
|
698
|
+
allowed_environments?: string[] | undefined;
|
|
699
|
+
allowed_actions?: string[] | undefined;
|
|
700
|
+
session_ttl_seconds?: number | undefined;
|
|
701
|
+
}>;
|
|
702
|
+
|
|
703
|
+
type User = InferSelectModel<typeof user>;
|
|
704
|
+
type Session = InferSelectModel<typeof session>;
|
|
705
|
+
type ApiKey = InferSelectModel<typeof api_keys>;
|
|
706
|
+
type Project = InferSelectModel<typeof project>;
|
|
707
|
+
type Task = InferSelectModel<typeof task>;
|
|
708
|
+
type Tag = InferSelectModel<typeof tag>;
|
|
709
|
+
type Milestone = InferSelectModel<typeof milestone>;
|
|
710
|
+
type Goal = InferSelectModel<typeof goal>;
|
|
711
|
+
type TaskTag = InferSelectModel<typeof task_tag>;
|
|
712
|
+
type Action = InferSelectModel<typeof action>;
|
|
713
|
+
type CodebaseTask = InferSelectModel<typeof codebase_tasks>;
|
|
714
|
+
type TodoUpdate = InferSelectModel<typeof todo_updates>;
|
|
715
|
+
type TrackerResult = InferSelectModel<typeof tracker_result>;
|
|
716
|
+
type TagConfig = InferSelectModel<typeof tag_config>;
|
|
717
|
+
type IgnorePath = InferSelectModel<typeof ignore_path>;
|
|
718
|
+
type PipelinePackage = InferSelectModel<typeof pipeline_package>;
|
|
719
|
+
type PipelineRun = InferSelectModel<typeof pipeline_run>;
|
|
720
|
+
type PipelineStageEvent = InferSelectModel<typeof pipeline_stage_event>;
|
|
721
|
+
type PipelineGrant = InferSelectModel<typeof pipeline_grant>;
|
|
722
|
+
type PipelineApproval = InferSelectModel<typeof pipeline_approval>;
|
|
723
|
+
type PipelineAnalysisTemplate = InferSelectModel<typeof pipeline_analysis_template>;
|
|
724
|
+
type PipelineOidcTrust = InferSelectModel<typeof pipeline_oidc_trust>;
|
|
725
|
+
type UpsertPipelinePackage = z.infer<typeof upsert_pipeline_package>;
|
|
726
|
+
type UpsertPipelineRun = z.infer<typeof upsert_pipeline_run>;
|
|
727
|
+
type InsertPipelineStageEvent = z.infer<typeof insert_pipeline_stage_event>;
|
|
728
|
+
type UpsertPipelineGrant = z.infer<typeof upsert_pipeline_grant>;
|
|
729
|
+
type UpsertPipelineApproval = z.infer<typeof upsert_pipeline_approval>;
|
|
730
|
+
type UpsertPipelineAnalysisTemplate = z.infer<typeof upsert_pipeline_analysis_template>;
|
|
731
|
+
type UpsertPipelineOidcTrust = z.infer<typeof upsert_pipeline_oidc_trust>;
|
|
732
|
+
type UpsertProject = z.infer<typeof upsert_project>;
|
|
733
|
+
type UpsertTodo = z.infer<typeof upsert_todo>;
|
|
734
|
+
type UpsertTag = z.infer<typeof upsert_tag>;
|
|
735
|
+
type UpsertMilestone = z.infer<typeof upsert_milestone>;
|
|
736
|
+
type UpsertGoal = z.infer<typeof upsert_goal>;
|
|
737
|
+
type UpdateAction = z.infer<typeof update_action>;
|
|
738
|
+
type ProjectConfig = z.infer<typeof project_config>;
|
|
739
|
+
type SaveConfigRequest = z.infer<typeof save_config_request>;
|
|
740
|
+
interface TaskWithDetails {
|
|
741
|
+
task: Task;
|
|
742
|
+
codebase_tasks: CodebaseTask | null;
|
|
743
|
+
tags: string[];
|
|
744
|
+
}
|
|
745
|
+
interface ProjectWithTasks {
|
|
746
|
+
project: Project;
|
|
747
|
+
tasks: TaskWithDetails[];
|
|
748
|
+
}
|
|
749
|
+
interface TagWithColor {
|
|
750
|
+
id: string;
|
|
751
|
+
title: string;
|
|
752
|
+
color: string | null;
|
|
753
|
+
count?: number;
|
|
754
|
+
}
|
|
755
|
+
type GetConfigResult = {
|
|
756
|
+
config: ProjectConfig;
|
|
757
|
+
scan_branch: string;
|
|
758
|
+
};
|
|
759
|
+
declare const TAG_COLOURS: {
|
|
760
|
+
readonly red: {
|
|
761
|
+
readonly colour: "#F28B82";
|
|
762
|
+
readonly text: "#faeeef";
|
|
763
|
+
readonly border: "#F5A5A5";
|
|
764
|
+
};
|
|
765
|
+
readonly green: {
|
|
766
|
+
readonly colour: "#CCFF90";
|
|
767
|
+
readonly text: "#2E7D32";
|
|
768
|
+
readonly border: "#A5D6A7";
|
|
769
|
+
};
|
|
770
|
+
readonly blue: {
|
|
771
|
+
readonly colour: "#82B1FF";
|
|
772
|
+
readonly text: "#0D47A1";
|
|
773
|
+
readonly border: "#90CAF9";
|
|
774
|
+
};
|
|
775
|
+
readonly yellow: {
|
|
776
|
+
readonly colour: "#FFF176";
|
|
777
|
+
readonly text: "#F57F17";
|
|
778
|
+
readonly border: "#FFF59D";
|
|
779
|
+
};
|
|
780
|
+
readonly purple: {
|
|
781
|
+
readonly colour: "#E1BEE7";
|
|
782
|
+
readonly text: "#4A148C";
|
|
783
|
+
readonly border: "#CE93D8";
|
|
784
|
+
};
|
|
785
|
+
readonly orange: {
|
|
786
|
+
readonly colour: "#FFCC80";
|
|
787
|
+
readonly text: "#E65100";
|
|
788
|
+
readonly border: "#FFB74D";
|
|
789
|
+
};
|
|
790
|
+
readonly teal: {
|
|
791
|
+
readonly colour: "#80CBC4";
|
|
792
|
+
readonly text: "#004D40";
|
|
793
|
+
readonly border: "#4DB6AC";
|
|
794
|
+
};
|
|
795
|
+
readonly pink: {
|
|
796
|
+
readonly colour: "#F8BBD9";
|
|
797
|
+
readonly text: "#880E4F";
|
|
798
|
+
readonly border: "#F48FB1";
|
|
799
|
+
};
|
|
800
|
+
readonly gray: {
|
|
801
|
+
readonly colour: "#CFD8DC";
|
|
802
|
+
readonly text: "#37474F";
|
|
803
|
+
readonly border: "#B0BEC5";
|
|
804
|
+
};
|
|
805
|
+
readonly cyan: {
|
|
806
|
+
readonly colour: "#84FFFF";
|
|
807
|
+
readonly text: "#006064";
|
|
808
|
+
readonly border: "#4DD0E1";
|
|
809
|
+
};
|
|
810
|
+
readonly lime: {
|
|
811
|
+
readonly colour: "#ddf0bc";
|
|
812
|
+
readonly text: "#88b47f";
|
|
813
|
+
readonly border: "#becca5";
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
type TagColor = keyof typeof TAG_COLOURS;
|
|
817
|
+
type _FetchedTag = InferSelectModel<typeof tag>;
|
|
818
|
+
type TagWithTypedColor = Omit<_FetchedTag, "color"> & {
|
|
819
|
+
color: TagColor | null;
|
|
820
|
+
};
|
|
821
|
+
type Nullable<T> = {
|
|
822
|
+
[P in keyof T]: T[P] | null;
|
|
823
|
+
};
|
|
824
|
+
type TaskView = "list" | "grid";
|
|
825
|
+
type ScanStatus = "PENDING" | "ACCEPTED" | "REJECTED" | "IGNORED";
|
|
826
|
+
type HistoryAction = Omit<Action, "updated_at" | "owner_id" | "type"> & {
|
|
827
|
+
type: ActionType | "SCAN";
|
|
828
|
+
};
|
|
829
|
+
interface UpdateData {
|
|
830
|
+
id: string;
|
|
831
|
+
tag: string;
|
|
832
|
+
type: "SAME" | "UPDATE" | "DELETE" | "NEW" | "MOVE";
|
|
833
|
+
data: {
|
|
834
|
+
old: {
|
|
835
|
+
text: string;
|
|
836
|
+
line: number;
|
|
837
|
+
file: string;
|
|
838
|
+
context?: string[];
|
|
839
|
+
};
|
|
840
|
+
new: {
|
|
841
|
+
text: string;
|
|
842
|
+
line: number;
|
|
843
|
+
file: string;
|
|
844
|
+
context?: string[];
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
task?: TaskWithDetails;
|
|
848
|
+
}
|
|
849
|
+
type UpdateUser = z.infer<typeof update_user>;
|
|
850
|
+
type ConfigSchemaType = z.infer<typeof config_schema>;
|
|
851
|
+
|
|
852
|
+
export { approval_decision as $, type Action as A, type TrackerResult as B, type CodebaseTask as C, type UpdateData as D, type UpdateUser as E, type UpsertGoal as F, type GetConfigResult as G, type HistoryAction as H, type IgnorePath as I, type UpsertMilestone as J, type UpsertPipelineAnalysisTemplate as K, type UpsertPipelineApproval as L, type Milestone as M, type Nullable as N, type UpsertPipelineGrant as O, type PipelineAnalysisTemplate as P, type UpsertPipelineOidcTrust as Q, type RolloutShapeZ as R, type SaveConfigRequest as S, TAG_COLOURS as T, type UpdateAction as U, type UpsertPipelinePackage as V, type UpsertPipelineRun as W, type UpsertProject as X, type UpsertTag as Y, type UpsertTodo as Z, type User as _, type ApiKey as a, config_schema as a0, forced_atomic_reason as a1, gate_descriptor as a2, grant_scope as a3, insert_pipeline_stage_event as a4, pipeline_oidc_provider as a5, project_config as a6, resolved_gates as a7, resolved_rollout as a8, rollout_shape as a9, rollout_stage as aa, run_kind as ab, run_status as ac, save_config_request as ad, save_tags_request as ae, stage_event_kind as af, update_action as ag, update_user as ah, upsert_goal as ai, upsert_milestone as aj, upsert_pipeline_analysis_template as ak, upsert_pipeline_approval as al, upsert_pipeline_grant as am, upsert_pipeline_oidc_trust as an, upsert_pipeline_package as ao, upsert_pipeline_run as ap, upsert_project as aq, upsert_tag as ar, upsert_todo as as, type ConfigSchemaType as b, type Goal as c, type InsertPipelineStageEvent as d, type PipelineApproval as e, type PipelineGrant as f, type PipelineOidcTrust as g, type PipelinePackage as h, type PipelineRun as i, type PipelineStageEvent as j, type Project as k, type ProjectConfig as l, type ProjectWithTasks as m, type RunKindZ as n, type ScanStatus as o, type Session as p, type Tag as q, type TagColor as r, type TagConfig as s, type TagWithColor as t, type TagWithTypedColor as u, type Task as v, type TaskTag as w, type TaskView as x, type TaskWithDetails as y, type TodoUpdate as z };
|