veryfront 0.1.83 → 0.1.85
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/esm/cli/commands/knowledge/command.d.ts +10 -13
- package/esm/cli/commands/knowledge/command.d.ts.map +1 -1
- package/esm/cli/commands/knowledge/command.js +294 -110
- package/esm/cli/commands/knowledge/parser-source.d.ts.map +1 -1
- package/esm/cli/commands/knowledge/parser-source.js +52 -0
- package/esm/cli/commands/knowledge/result.d.ts +54 -0
- package/esm/cli/commands/knowledge/result.d.ts.map +1 -0
- package/esm/cli/commands/knowledge/result.js +22 -0
- package/esm/cli/commands/knowledge/source-policy.d.ts +11 -0
- package/esm/cli/commands/knowledge/source-policy.d.ts.map +1 -0
- package/esm/cli/commands/knowledge/source-policy.js +135 -0
- package/esm/deno.js +1 -1
- package/esm/src/jobs/index.d.ts +1 -1
- package/esm/src/jobs/index.d.ts.map +1 -1
- package/esm/src/jobs/index.js +1 -1
- package/esm/src/jobs/schemas.d.ts +1104 -185
- package/esm/src/jobs/schemas.d.ts.map +1 -1
- package/esm/src/jobs/schemas.js +81 -8
- package/esm/src/proxy/error-response.d.ts +7 -0
- package/esm/src/proxy/error-response.d.ts.map +1 -0
- package/esm/src/proxy/error-response.js +26 -0
- package/esm/src/proxy/handler.d.ts.map +1 -1
- package/esm/src/proxy/handler.js +25 -0
- package/esm/src/proxy/main.js +2 -23
- package/esm/src/rendering/orchestrator/css-candidate-manifest.d.ts +11 -0
- package/esm/src/rendering/orchestrator/css-candidate-manifest.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/css-candidate-manifest.js +23 -12
- package/esm/src/server/handlers/dev/styles-candidate-scanner.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/styles-candidate-scanner.js +25 -8
- package/esm/src/server/handlers/dev/styles-css.handler.d.ts +1 -0
- package/esm/src/server/handlers/dev/styles-css.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/styles-css.handler.js +15 -5
- package/esm/src/transforms/esm/http-cache-helpers.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-helpers.js +7 -1
- package/esm/src/transforms/import-rewriter/strategies/bare-strategy.d.ts.map +1 -1
- package/esm/src/transforms/import-rewriter/strategies/bare-strategy.js +11 -8
- package/esm/src/transforms/shared/package-specifier.d.ts +7 -0
- package/esm/src/transforms/shared/package-specifier.d.ts.map +1 -0
- package/esm/src/transforms/shared/package-specifier.js +19 -0
- package/package.json +1 -1
- package/src/cli/commands/knowledge/command.ts +375 -139
- package/src/cli/commands/knowledge/parser-source.ts +52 -0
- package/src/cli/commands/knowledge/result.ts +88 -0
- package/src/cli/commands/knowledge/source-policy.ts +164 -0
- package/src/deno.js +1 -1
- package/src/src/jobs/index.ts +16 -0
- package/src/src/jobs/schemas.ts +105 -8
- package/src/src/proxy/error-response.ts +33 -0
- package/src/src/proxy/handler.ts +43 -0
- package/src/src/proxy/main.ts +2 -27
- package/src/src/rendering/orchestrator/css-candidate-manifest.ts +40 -14
- package/src/src/server/handlers/dev/styles-candidate-scanner.ts +37 -11
- package/src/src/server/handlers/dev/styles-css.handler.ts +25 -4
- package/src/src/transforms/esm/http-cache-helpers.ts +12 -1
- package/src/src/transforms/import-rewriter/strategies/bare-strategy.ts +11 -12
- package/src/src/transforms/shared/package-specifier.ts +29 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const JobStatusSchema: z.ZodEnum<["submitted", "working", "completed", "failed", "canceled"]>;
|
|
3
3
|
export declare const CronJobStatusSchema: z.ZodEnum<["active", "paused", "deleting"]>;
|
|
4
|
+
export declare const JobKindSchema: z.ZodNullable<z.ZodEnum<["knowledge_ingest"]>>;
|
|
4
5
|
export declare const ReservedJobTargetFamilySchema: z.ZodEnum<["task:*", "workflow:*", "deploy:*"]>;
|
|
5
6
|
export declare const PageInfoSchema: z.ZodObject<{
|
|
6
7
|
self: z.ZodNullable<z.ZodString>;
|
|
@@ -49,9 +50,100 @@ export declare const KnowledgeIngestFileResultSchema: z.ZodObject<{
|
|
|
49
50
|
outputPath: string;
|
|
50
51
|
remotePath: string;
|
|
51
52
|
}>;
|
|
52
|
-
export declare const
|
|
53
|
+
export declare const KnowledgeIngestSkippedFileResultSchema: z.ZodObject<{
|
|
54
|
+
source: z.ZodString;
|
|
55
|
+
localSourcePath: z.ZodNullable<z.ZodString>;
|
|
56
|
+
reason: z.ZodEnum<["hidden_path", "ignored_directory", "unsupported_file_type"]>;
|
|
57
|
+
message: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
message: string;
|
|
60
|
+
source: string;
|
|
61
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
62
|
+
localSourcePath: string | null;
|
|
63
|
+
}, {
|
|
64
|
+
message: string;
|
|
65
|
+
source: string;
|
|
66
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
67
|
+
localSourcePath: string | null;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const KnowledgeIngestFailedFileResultSchema: z.ZodObject<{
|
|
70
|
+
source: z.ZodString;
|
|
71
|
+
localSourcePath: z.ZodString;
|
|
72
|
+
reason: z.ZodEnum<["parser_error", "upload_error"]>;
|
|
73
|
+
message: z.ZodString;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
message: string;
|
|
76
|
+
source: string;
|
|
77
|
+
reason: "parser_error" | "upload_error";
|
|
78
|
+
localSourcePath: string;
|
|
79
|
+
}, {
|
|
80
|
+
message: string;
|
|
81
|
+
source: string;
|
|
82
|
+
reason: "parser_error" | "upload_error";
|
|
83
|
+
localSourcePath: string;
|
|
84
|
+
}>;
|
|
85
|
+
export declare const KnowledgeIngestJobResultMetadataSchema: z.ZodObject<{
|
|
86
|
+
requested_count: z.ZodNumber;
|
|
87
|
+
source_mode: z.ZodEnum<["explicit_sources", "path_prefix"]>;
|
|
88
|
+
knowledge_path: z.ZodString;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
requested_count: number;
|
|
91
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
92
|
+
knowledge_path: string;
|
|
93
|
+
}, {
|
|
94
|
+
requested_count: number;
|
|
95
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
96
|
+
knowledge_path: string;
|
|
97
|
+
}>;
|
|
98
|
+
export declare const KnowledgeIngestJobResultCountsSchema: z.ZodObject<{
|
|
99
|
+
requested_count: z.ZodNumber;
|
|
100
|
+
ingested_count: z.ZodNumber;
|
|
101
|
+
skipped_count: z.ZodNumber;
|
|
102
|
+
failed_count: z.ZodNumber;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
requested_count: number;
|
|
105
|
+
ingested_count: number;
|
|
106
|
+
skipped_count: number;
|
|
107
|
+
failed_count: number;
|
|
108
|
+
}, {
|
|
109
|
+
requested_count: number;
|
|
110
|
+
ingested_count: number;
|
|
111
|
+
skipped_count: number;
|
|
112
|
+
failed_count: number;
|
|
113
|
+
}>;
|
|
114
|
+
export declare const KnowledgeIngestJobResultSchema: z.ZodObject<{
|
|
53
115
|
kind: z.ZodLiteral<"knowledge_ingest">;
|
|
54
|
-
|
|
116
|
+
version: z.ZodLiteral<1>;
|
|
117
|
+
metadata: z.ZodObject<{
|
|
118
|
+
requested_count: z.ZodNumber;
|
|
119
|
+
source_mode: z.ZodEnum<["explicit_sources", "path_prefix"]>;
|
|
120
|
+
knowledge_path: z.ZodString;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
requested_count: number;
|
|
123
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
124
|
+
knowledge_path: string;
|
|
125
|
+
}, {
|
|
126
|
+
requested_count: number;
|
|
127
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
128
|
+
knowledge_path: string;
|
|
129
|
+
}>;
|
|
130
|
+
summary: z.ZodObject<{
|
|
131
|
+
requested_count: z.ZodNumber;
|
|
132
|
+
ingested_count: z.ZodNumber;
|
|
133
|
+
skipped_count: z.ZodNumber;
|
|
134
|
+
failed_count: z.ZodNumber;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
requested_count: number;
|
|
137
|
+
ingested_count: number;
|
|
138
|
+
skipped_count: number;
|
|
139
|
+
failed_count: number;
|
|
140
|
+
}, {
|
|
141
|
+
requested_count: number;
|
|
142
|
+
ingested_count: number;
|
|
143
|
+
skipped_count: number;
|
|
144
|
+
failed_count: number;
|
|
145
|
+
}>;
|
|
146
|
+
ingested: z.ZodArray<z.ZodObject<{
|
|
55
147
|
source: z.ZodString;
|
|
56
148
|
localSourcePath: z.ZodString;
|
|
57
149
|
outputPath: z.ZodString;
|
|
@@ -82,8 +174,65 @@ export declare const JobResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion<"kin
|
|
|
82
174
|
outputPath: string;
|
|
83
175
|
remotePath: string;
|
|
84
176
|
}>, "many">;
|
|
177
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
178
|
+
source: z.ZodString;
|
|
179
|
+
localSourcePath: z.ZodNullable<z.ZodString>;
|
|
180
|
+
reason: z.ZodEnum<["hidden_path", "ignored_directory", "unsupported_file_type"]>;
|
|
181
|
+
message: z.ZodString;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
message: string;
|
|
184
|
+
source: string;
|
|
185
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
186
|
+
localSourcePath: string | null;
|
|
187
|
+
}, {
|
|
188
|
+
message: string;
|
|
189
|
+
source: string;
|
|
190
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
191
|
+
localSourcePath: string | null;
|
|
192
|
+
}>, "many">;
|
|
193
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
194
|
+
source: z.ZodString;
|
|
195
|
+
localSourcePath: z.ZodString;
|
|
196
|
+
reason: z.ZodEnum<["parser_error", "upload_error"]>;
|
|
197
|
+
message: z.ZodString;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
message: string;
|
|
200
|
+
source: string;
|
|
201
|
+
reason: "parser_error" | "upload_error";
|
|
202
|
+
localSourcePath: string;
|
|
203
|
+
}, {
|
|
204
|
+
message: string;
|
|
205
|
+
source: string;
|
|
206
|
+
reason: "parser_error" | "upload_error";
|
|
207
|
+
localSourcePath: string;
|
|
208
|
+
}>, "many">;
|
|
85
209
|
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
|
|
210
|
+
version: 1;
|
|
211
|
+
skipped: {
|
|
212
|
+
message: string;
|
|
213
|
+
source: string;
|
|
214
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
215
|
+
localSourcePath: string | null;
|
|
216
|
+
}[];
|
|
217
|
+
kind: "knowledge_ingest";
|
|
218
|
+
metadata: {
|
|
219
|
+
requested_count: number;
|
|
220
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
221
|
+
knowledge_path: string;
|
|
222
|
+
};
|
|
223
|
+
failed: {
|
|
224
|
+
message: string;
|
|
225
|
+
source: string;
|
|
226
|
+
reason: "parser_error" | "upload_error";
|
|
227
|
+
localSourcePath: string;
|
|
228
|
+
}[];
|
|
229
|
+
summary: {
|
|
230
|
+
requested_count: number;
|
|
231
|
+
ingested_count: number;
|
|
232
|
+
skipped_count: number;
|
|
233
|
+
failed_count: number;
|
|
234
|
+
};
|
|
235
|
+
ingested: {
|
|
87
236
|
slug: string;
|
|
88
237
|
source: string;
|
|
89
238
|
sourceType: string;
|
|
@@ -94,9 +243,33 @@ export declare const JobResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion<"kin
|
|
|
94
243
|
outputPath: string;
|
|
95
244
|
remotePath: string;
|
|
96
245
|
}[];
|
|
97
|
-
kind: "knowledge_ingest";
|
|
98
246
|
}, {
|
|
99
|
-
|
|
247
|
+
version: 1;
|
|
248
|
+
skipped: {
|
|
249
|
+
message: string;
|
|
250
|
+
source: string;
|
|
251
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
252
|
+
localSourcePath: string | null;
|
|
253
|
+
}[];
|
|
254
|
+
kind: "knowledge_ingest";
|
|
255
|
+
metadata: {
|
|
256
|
+
requested_count: number;
|
|
257
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
258
|
+
knowledge_path: string;
|
|
259
|
+
};
|
|
260
|
+
failed: {
|
|
261
|
+
message: string;
|
|
262
|
+
source: string;
|
|
263
|
+
reason: "parser_error" | "upload_error";
|
|
264
|
+
localSourcePath: string;
|
|
265
|
+
}[];
|
|
266
|
+
summary: {
|
|
267
|
+
requested_count: number;
|
|
268
|
+
ingested_count: number;
|
|
269
|
+
skipped_count: number;
|
|
270
|
+
failed_count: number;
|
|
271
|
+
};
|
|
272
|
+
ingested: {
|
|
100
273
|
slug: string;
|
|
101
274
|
source: string;
|
|
102
275
|
sourceType: string;
|
|
@@ -107,7 +280,176 @@ export declare const JobResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion<"kin
|
|
|
107
280
|
outputPath: string;
|
|
108
281
|
remotePath: string;
|
|
109
282
|
}[];
|
|
283
|
+
}>;
|
|
284
|
+
export declare const JobResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
285
|
+
kind: z.ZodLiteral<"knowledge_ingest">;
|
|
286
|
+
version: z.ZodLiteral<1>;
|
|
287
|
+
metadata: z.ZodObject<{
|
|
288
|
+
requested_count: z.ZodNumber;
|
|
289
|
+
source_mode: z.ZodEnum<["explicit_sources", "path_prefix"]>;
|
|
290
|
+
knowledge_path: z.ZodString;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
requested_count: number;
|
|
293
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
294
|
+
knowledge_path: string;
|
|
295
|
+
}, {
|
|
296
|
+
requested_count: number;
|
|
297
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
298
|
+
knowledge_path: string;
|
|
299
|
+
}>;
|
|
300
|
+
summary: z.ZodObject<{
|
|
301
|
+
requested_count: z.ZodNumber;
|
|
302
|
+
ingested_count: z.ZodNumber;
|
|
303
|
+
skipped_count: z.ZodNumber;
|
|
304
|
+
failed_count: z.ZodNumber;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
requested_count: number;
|
|
307
|
+
ingested_count: number;
|
|
308
|
+
skipped_count: number;
|
|
309
|
+
failed_count: number;
|
|
310
|
+
}, {
|
|
311
|
+
requested_count: number;
|
|
312
|
+
ingested_count: number;
|
|
313
|
+
skipped_count: number;
|
|
314
|
+
failed_count: number;
|
|
315
|
+
}>;
|
|
316
|
+
ingested: z.ZodArray<z.ZodObject<{
|
|
317
|
+
source: z.ZodString;
|
|
318
|
+
localSourcePath: z.ZodString;
|
|
319
|
+
outputPath: z.ZodString;
|
|
320
|
+
remotePath: z.ZodString;
|
|
321
|
+
slug: z.ZodString;
|
|
322
|
+
sourceType: z.ZodString;
|
|
323
|
+
summary: z.ZodString;
|
|
324
|
+
stats: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
325
|
+
warnings: z.ZodArray<z.ZodString, "many">;
|
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
|
327
|
+
slug: string;
|
|
328
|
+
source: string;
|
|
329
|
+
sourceType: string;
|
|
330
|
+
summary: string;
|
|
331
|
+
stats: Record<string, unknown>;
|
|
332
|
+
warnings: string[];
|
|
333
|
+
localSourcePath: string;
|
|
334
|
+
outputPath: string;
|
|
335
|
+
remotePath: string;
|
|
336
|
+
}, {
|
|
337
|
+
slug: string;
|
|
338
|
+
source: string;
|
|
339
|
+
sourceType: string;
|
|
340
|
+
summary: string;
|
|
341
|
+
stats: Record<string, unknown>;
|
|
342
|
+
warnings: string[];
|
|
343
|
+
localSourcePath: string;
|
|
344
|
+
outputPath: string;
|
|
345
|
+
remotePath: string;
|
|
346
|
+
}>, "many">;
|
|
347
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
348
|
+
source: z.ZodString;
|
|
349
|
+
localSourcePath: z.ZodNullable<z.ZodString>;
|
|
350
|
+
reason: z.ZodEnum<["hidden_path", "ignored_directory", "unsupported_file_type"]>;
|
|
351
|
+
message: z.ZodString;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
message: string;
|
|
354
|
+
source: string;
|
|
355
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
356
|
+
localSourcePath: string | null;
|
|
357
|
+
}, {
|
|
358
|
+
message: string;
|
|
359
|
+
source: string;
|
|
360
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
361
|
+
localSourcePath: string | null;
|
|
362
|
+
}>, "many">;
|
|
363
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
364
|
+
source: z.ZodString;
|
|
365
|
+
localSourcePath: z.ZodString;
|
|
366
|
+
reason: z.ZodEnum<["parser_error", "upload_error"]>;
|
|
367
|
+
message: z.ZodString;
|
|
368
|
+
}, "strip", z.ZodTypeAny, {
|
|
369
|
+
message: string;
|
|
370
|
+
source: string;
|
|
371
|
+
reason: "parser_error" | "upload_error";
|
|
372
|
+
localSourcePath: string;
|
|
373
|
+
}, {
|
|
374
|
+
message: string;
|
|
375
|
+
source: string;
|
|
376
|
+
reason: "parser_error" | "upload_error";
|
|
377
|
+
localSourcePath: string;
|
|
378
|
+
}>, "many">;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
version: 1;
|
|
381
|
+
skipped: {
|
|
382
|
+
message: string;
|
|
383
|
+
source: string;
|
|
384
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
385
|
+
localSourcePath: string | null;
|
|
386
|
+
}[];
|
|
387
|
+
kind: "knowledge_ingest";
|
|
388
|
+
metadata: {
|
|
389
|
+
requested_count: number;
|
|
390
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
391
|
+
knowledge_path: string;
|
|
392
|
+
};
|
|
393
|
+
failed: {
|
|
394
|
+
message: string;
|
|
395
|
+
source: string;
|
|
396
|
+
reason: "parser_error" | "upload_error";
|
|
397
|
+
localSourcePath: string;
|
|
398
|
+
}[];
|
|
399
|
+
summary: {
|
|
400
|
+
requested_count: number;
|
|
401
|
+
ingested_count: number;
|
|
402
|
+
skipped_count: number;
|
|
403
|
+
failed_count: number;
|
|
404
|
+
};
|
|
405
|
+
ingested: {
|
|
406
|
+
slug: string;
|
|
407
|
+
source: string;
|
|
408
|
+
sourceType: string;
|
|
409
|
+
summary: string;
|
|
410
|
+
stats: Record<string, unknown>;
|
|
411
|
+
warnings: string[];
|
|
412
|
+
localSourcePath: string;
|
|
413
|
+
outputPath: string;
|
|
414
|
+
remotePath: string;
|
|
415
|
+
}[];
|
|
416
|
+
}, {
|
|
417
|
+
version: 1;
|
|
418
|
+
skipped: {
|
|
419
|
+
message: string;
|
|
420
|
+
source: string;
|
|
421
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
422
|
+
localSourcePath: string | null;
|
|
423
|
+
}[];
|
|
110
424
|
kind: "knowledge_ingest";
|
|
425
|
+
metadata: {
|
|
426
|
+
requested_count: number;
|
|
427
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
428
|
+
knowledge_path: string;
|
|
429
|
+
};
|
|
430
|
+
failed: {
|
|
431
|
+
message: string;
|
|
432
|
+
source: string;
|
|
433
|
+
reason: "parser_error" | "upload_error";
|
|
434
|
+
localSourcePath: string;
|
|
435
|
+
}[];
|
|
436
|
+
summary: {
|
|
437
|
+
requested_count: number;
|
|
438
|
+
ingested_count: number;
|
|
439
|
+
skipped_count: number;
|
|
440
|
+
failed_count: number;
|
|
441
|
+
};
|
|
442
|
+
ingested: {
|
|
443
|
+
slug: string;
|
|
444
|
+
source: string;
|
|
445
|
+
sourceType: string;
|
|
446
|
+
summary: string;
|
|
447
|
+
stats: Record<string, unknown>;
|
|
448
|
+
warnings: string[];
|
|
449
|
+
localSourcePath: string;
|
|
450
|
+
outputPath: string;
|
|
451
|
+
remotePath: string;
|
|
452
|
+
}[];
|
|
111
453
|
}>, z.ZodObject<{
|
|
112
454
|
kind: z.ZodLiteral<"value">;
|
|
113
455
|
value: z.ZodUnknown;
|
|
@@ -127,10 +469,48 @@ export declare const JobResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion<"kin
|
|
|
127
469
|
kind: "artifacts";
|
|
128
470
|
artifacts: unknown[];
|
|
129
471
|
}>]>>;
|
|
472
|
+
export declare const JobResultSummarySchema: z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
473
|
+
kind: z.ZodLiteral<"knowledge_ingest">;
|
|
474
|
+
state: z.ZodEnum<["success", "partial_success", "failed"]>;
|
|
475
|
+
requested_count: z.ZodNumber;
|
|
476
|
+
ingested_count: z.ZodNumber;
|
|
477
|
+
skipped_count: z.ZodNumber;
|
|
478
|
+
failed_count: z.ZodNumber;
|
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
|
480
|
+
kind: "knowledge_ingest";
|
|
481
|
+
state: "success" | "failed" | "partial_success";
|
|
482
|
+
requested_count: number;
|
|
483
|
+
ingested_count: number;
|
|
484
|
+
skipped_count: number;
|
|
485
|
+
failed_count: number;
|
|
486
|
+
}, {
|
|
487
|
+
kind: "knowledge_ingest";
|
|
488
|
+
state: "success" | "failed" | "partial_success";
|
|
489
|
+
requested_count: number;
|
|
490
|
+
ingested_count: number;
|
|
491
|
+
skipped_count: number;
|
|
492
|
+
failed_count: number;
|
|
493
|
+
}>, z.ZodObject<{
|
|
494
|
+
kind: z.ZodLiteral<"value">;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
kind: "value";
|
|
497
|
+
}, {
|
|
498
|
+
kind: "value";
|
|
499
|
+
}>, z.ZodObject<{
|
|
500
|
+
kind: z.ZodLiteral<"artifacts">;
|
|
501
|
+
artifact_count: z.ZodNumber;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
kind: "artifacts";
|
|
504
|
+
artifact_count: number;
|
|
505
|
+
}, {
|
|
506
|
+
kind: "artifacts";
|
|
507
|
+
artifact_count: number;
|
|
508
|
+
}>]>>;
|
|
130
509
|
export declare const JobSchema: z.ZodObject<{
|
|
131
510
|
id: z.ZodString;
|
|
132
511
|
project_id: z.ZodString;
|
|
133
512
|
environment_id: z.ZodNullable<z.ZodString>;
|
|
513
|
+
branch_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
134
514
|
cron_job_id: z.ZodNullable<z.ZodString>;
|
|
135
515
|
batch_id: z.ZodNullable<z.ZodString>;
|
|
136
516
|
name: z.ZodString;
|
|
@@ -141,11 +521,85 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
141
521
|
timeout_seconds: z.ZodNumber;
|
|
142
522
|
backoff_limit: z.ZodNumber;
|
|
143
523
|
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
524
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
525
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
526
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
527
|
+
created_at: z.ZodString;
|
|
528
|
+
updated_at: z.ZodString;
|
|
529
|
+
} & {
|
|
530
|
+
failed_reason: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
531
|
+
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["knowledge_ingest"]>>>>;
|
|
532
|
+
failure_detail: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
533
|
+
result_summary: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
147
534
|
kind: z.ZodLiteral<"knowledge_ingest">;
|
|
148
|
-
|
|
535
|
+
state: z.ZodEnum<["success", "partial_success", "failed"]>;
|
|
536
|
+
requested_count: z.ZodNumber;
|
|
537
|
+
ingested_count: z.ZodNumber;
|
|
538
|
+
skipped_count: z.ZodNumber;
|
|
539
|
+
failed_count: z.ZodNumber;
|
|
540
|
+
}, "strip", z.ZodTypeAny, {
|
|
541
|
+
kind: "knowledge_ingest";
|
|
542
|
+
state: "success" | "failed" | "partial_success";
|
|
543
|
+
requested_count: number;
|
|
544
|
+
ingested_count: number;
|
|
545
|
+
skipped_count: number;
|
|
546
|
+
failed_count: number;
|
|
547
|
+
}, {
|
|
548
|
+
kind: "knowledge_ingest";
|
|
549
|
+
state: "success" | "failed" | "partial_success";
|
|
550
|
+
requested_count: number;
|
|
551
|
+
ingested_count: number;
|
|
552
|
+
skipped_count: number;
|
|
553
|
+
failed_count: number;
|
|
554
|
+
}>, z.ZodObject<{
|
|
555
|
+
kind: z.ZodLiteral<"value">;
|
|
556
|
+
}, "strip", z.ZodTypeAny, {
|
|
557
|
+
kind: "value";
|
|
558
|
+
}, {
|
|
559
|
+
kind: "value";
|
|
560
|
+
}>, z.ZodObject<{
|
|
561
|
+
kind: z.ZodLiteral<"artifacts">;
|
|
562
|
+
artifact_count: z.ZodNumber;
|
|
563
|
+
}, "strip", z.ZodTypeAny, {
|
|
564
|
+
kind: "artifacts";
|
|
565
|
+
artifact_count: number;
|
|
566
|
+
}, {
|
|
567
|
+
kind: "artifacts";
|
|
568
|
+
artifact_count: number;
|
|
569
|
+
}>]>>>>;
|
|
570
|
+
result: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
571
|
+
kind: z.ZodLiteral<"knowledge_ingest">;
|
|
572
|
+
version: z.ZodLiteral<1>;
|
|
573
|
+
metadata: z.ZodObject<{
|
|
574
|
+
requested_count: z.ZodNumber;
|
|
575
|
+
source_mode: z.ZodEnum<["explicit_sources", "path_prefix"]>;
|
|
576
|
+
knowledge_path: z.ZodString;
|
|
577
|
+
}, "strip", z.ZodTypeAny, {
|
|
578
|
+
requested_count: number;
|
|
579
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
580
|
+
knowledge_path: string;
|
|
581
|
+
}, {
|
|
582
|
+
requested_count: number;
|
|
583
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
584
|
+
knowledge_path: string;
|
|
585
|
+
}>;
|
|
586
|
+
summary: z.ZodObject<{
|
|
587
|
+
requested_count: z.ZodNumber;
|
|
588
|
+
ingested_count: z.ZodNumber;
|
|
589
|
+
skipped_count: z.ZodNumber;
|
|
590
|
+
failed_count: z.ZodNumber;
|
|
591
|
+
}, "strip", z.ZodTypeAny, {
|
|
592
|
+
requested_count: number;
|
|
593
|
+
ingested_count: number;
|
|
594
|
+
skipped_count: number;
|
|
595
|
+
failed_count: number;
|
|
596
|
+
}, {
|
|
597
|
+
requested_count: number;
|
|
598
|
+
ingested_count: number;
|
|
599
|
+
skipped_count: number;
|
|
600
|
+
failed_count: number;
|
|
601
|
+
}>;
|
|
602
|
+
ingested: z.ZodArray<z.ZodObject<{
|
|
149
603
|
source: z.ZodString;
|
|
150
604
|
localSourcePath: z.ZodString;
|
|
151
605
|
outputPath: z.ZodString;
|
|
@@ -176,8 +630,65 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
176
630
|
outputPath: string;
|
|
177
631
|
remotePath: string;
|
|
178
632
|
}>, "many">;
|
|
633
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
634
|
+
source: z.ZodString;
|
|
635
|
+
localSourcePath: z.ZodNullable<z.ZodString>;
|
|
636
|
+
reason: z.ZodEnum<["hidden_path", "ignored_directory", "unsupported_file_type"]>;
|
|
637
|
+
message: z.ZodString;
|
|
638
|
+
}, "strip", z.ZodTypeAny, {
|
|
639
|
+
message: string;
|
|
640
|
+
source: string;
|
|
641
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
642
|
+
localSourcePath: string | null;
|
|
643
|
+
}, {
|
|
644
|
+
message: string;
|
|
645
|
+
source: string;
|
|
646
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
647
|
+
localSourcePath: string | null;
|
|
648
|
+
}>, "many">;
|
|
649
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
650
|
+
source: z.ZodString;
|
|
651
|
+
localSourcePath: z.ZodString;
|
|
652
|
+
reason: z.ZodEnum<["parser_error", "upload_error"]>;
|
|
653
|
+
message: z.ZodString;
|
|
654
|
+
}, "strip", z.ZodTypeAny, {
|
|
655
|
+
message: string;
|
|
656
|
+
source: string;
|
|
657
|
+
reason: "parser_error" | "upload_error";
|
|
658
|
+
localSourcePath: string;
|
|
659
|
+
}, {
|
|
660
|
+
message: string;
|
|
661
|
+
source: string;
|
|
662
|
+
reason: "parser_error" | "upload_error";
|
|
663
|
+
localSourcePath: string;
|
|
664
|
+
}>, "many">;
|
|
179
665
|
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
|
|
666
|
+
version: 1;
|
|
667
|
+
skipped: {
|
|
668
|
+
message: string;
|
|
669
|
+
source: string;
|
|
670
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
671
|
+
localSourcePath: string | null;
|
|
672
|
+
}[];
|
|
673
|
+
kind: "knowledge_ingest";
|
|
674
|
+
metadata: {
|
|
675
|
+
requested_count: number;
|
|
676
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
677
|
+
knowledge_path: string;
|
|
678
|
+
};
|
|
679
|
+
failed: {
|
|
680
|
+
message: string;
|
|
681
|
+
source: string;
|
|
682
|
+
reason: "parser_error" | "upload_error";
|
|
683
|
+
localSourcePath: string;
|
|
684
|
+
}[];
|
|
685
|
+
summary: {
|
|
686
|
+
requested_count: number;
|
|
687
|
+
ingested_count: number;
|
|
688
|
+
skipped_count: number;
|
|
689
|
+
failed_count: number;
|
|
690
|
+
};
|
|
691
|
+
ingested: {
|
|
181
692
|
slug: string;
|
|
182
693
|
source: string;
|
|
183
694
|
sourceType: string;
|
|
@@ -188,9 +699,33 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
188
699
|
outputPath: string;
|
|
189
700
|
remotePath: string;
|
|
190
701
|
}[];
|
|
191
|
-
kind: "knowledge_ingest";
|
|
192
702
|
}, {
|
|
193
|
-
|
|
703
|
+
version: 1;
|
|
704
|
+
skipped: {
|
|
705
|
+
message: string;
|
|
706
|
+
source: string;
|
|
707
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
708
|
+
localSourcePath: string | null;
|
|
709
|
+
}[];
|
|
710
|
+
kind: "knowledge_ingest";
|
|
711
|
+
metadata: {
|
|
712
|
+
requested_count: number;
|
|
713
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
714
|
+
knowledge_path: string;
|
|
715
|
+
};
|
|
716
|
+
failed: {
|
|
717
|
+
message: string;
|
|
718
|
+
source: string;
|
|
719
|
+
reason: "parser_error" | "upload_error";
|
|
720
|
+
localSourcePath: string;
|
|
721
|
+
}[];
|
|
722
|
+
summary: {
|
|
723
|
+
requested_count: number;
|
|
724
|
+
ingested_count: number;
|
|
725
|
+
skipped_count: number;
|
|
726
|
+
failed_count: number;
|
|
727
|
+
};
|
|
728
|
+
ingested: {
|
|
194
729
|
slug: string;
|
|
195
730
|
source: string;
|
|
196
731
|
sourceType: string;
|
|
@@ -201,7 +736,6 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
201
736
|
outputPath: string;
|
|
202
737
|
remotePath: string;
|
|
203
738
|
}[];
|
|
204
|
-
kind: "knowledge_ingest";
|
|
205
739
|
}>, z.ZodObject<{
|
|
206
740
|
kind: z.ZodLiteral<"value">;
|
|
207
741
|
value: z.ZodUnknown;
|
|
@@ -220,25 +754,47 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
220
754
|
}, {
|
|
221
755
|
kind: "artifacts";
|
|
222
756
|
artifacts: unknown[];
|
|
223
|
-
}>]
|
|
224
|
-
started_at: z.ZodNullable<z.ZodString>;
|
|
225
|
-
completed_at: z.ZodNullable<z.ZodString>;
|
|
226
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
227
|
-
created_at: z.ZodString;
|
|
228
|
-
updated_at: z.ZodString;
|
|
757
|
+
}>]>>>>;
|
|
229
758
|
}, "strip", z.ZodTypeAny, {
|
|
230
759
|
status: "failed" | "completed" | "submitted" | "working" | "canceled";
|
|
231
760
|
config: Record<string, unknown>;
|
|
232
761
|
name: string;
|
|
233
762
|
project_id: string;
|
|
763
|
+
branch_id: string | null;
|
|
234
764
|
batch_id: string | null;
|
|
765
|
+
kind: "knowledge_ingest" | null;
|
|
235
766
|
id: string;
|
|
236
767
|
updated_at: string;
|
|
237
768
|
created_at: string;
|
|
238
769
|
environment_id: string | null;
|
|
239
770
|
target: string;
|
|
240
771
|
result: {
|
|
241
|
-
|
|
772
|
+
version: 1;
|
|
773
|
+
skipped: {
|
|
774
|
+
message: string;
|
|
775
|
+
source: string;
|
|
776
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
777
|
+
localSourcePath: string | null;
|
|
778
|
+
}[];
|
|
779
|
+
kind: "knowledge_ingest";
|
|
780
|
+
metadata: {
|
|
781
|
+
requested_count: number;
|
|
782
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
783
|
+
knowledge_path: string;
|
|
784
|
+
};
|
|
785
|
+
failed: {
|
|
786
|
+
message: string;
|
|
787
|
+
source: string;
|
|
788
|
+
reason: "parser_error" | "upload_error";
|
|
789
|
+
localSourcePath: string;
|
|
790
|
+
}[];
|
|
791
|
+
summary: {
|
|
792
|
+
requested_count: number;
|
|
793
|
+
ingested_count: number;
|
|
794
|
+
skipped_count: number;
|
|
795
|
+
failed_count: number;
|
|
796
|
+
};
|
|
797
|
+
ingested: {
|
|
242
798
|
slug: string;
|
|
243
799
|
source: string;
|
|
244
800
|
sourceType: string;
|
|
@@ -249,7 +805,6 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
249
805
|
outputPath: string;
|
|
250
806
|
remotePath: string;
|
|
251
807
|
}[];
|
|
252
|
-
kind: "knowledge_ingest";
|
|
253
808
|
} | {
|
|
254
809
|
kind: "value";
|
|
255
810
|
value?: unknown;
|
|
@@ -262,11 +817,24 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
262
817
|
timeout_seconds: number;
|
|
263
818
|
backoff_limit: number;
|
|
264
819
|
exit_code: number | null;
|
|
265
|
-
failed_reason: string | null;
|
|
266
|
-
failure_detail: string | null;
|
|
267
820
|
started_at: string | null;
|
|
268
821
|
completed_at: string | null;
|
|
269
822
|
created_by: string | null;
|
|
823
|
+
failed_reason: string | null;
|
|
824
|
+
failure_detail: string | null;
|
|
825
|
+
result_summary: {
|
|
826
|
+
kind: "knowledge_ingest";
|
|
827
|
+
state: "success" | "failed" | "partial_success";
|
|
828
|
+
requested_count: number;
|
|
829
|
+
ingested_count: number;
|
|
830
|
+
skipped_count: number;
|
|
831
|
+
failed_count: number;
|
|
832
|
+
} | {
|
|
833
|
+
kind: "value";
|
|
834
|
+
} | {
|
|
835
|
+
kind: "artifacts";
|
|
836
|
+
artifact_count: number;
|
|
837
|
+
} | null;
|
|
270
838
|
}, {
|
|
271
839
|
status: "failed" | "completed" | "submitted" | "working" | "canceled";
|
|
272
840
|
config: Record<string, unknown>;
|
|
@@ -278,8 +846,43 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
278
846
|
created_at: string;
|
|
279
847
|
environment_id: string | null;
|
|
280
848
|
target: string;
|
|
281
|
-
|
|
282
|
-
|
|
849
|
+
cron_job_id: string | null;
|
|
850
|
+
context_id: string | null;
|
|
851
|
+
timeout_seconds: number;
|
|
852
|
+
backoff_limit: number;
|
|
853
|
+
exit_code: number | null;
|
|
854
|
+
started_at: string | null;
|
|
855
|
+
completed_at: string | null;
|
|
856
|
+
created_by: string | null;
|
|
857
|
+
branch_id?: string | null | undefined;
|
|
858
|
+
kind?: "knowledge_ingest" | null | undefined;
|
|
859
|
+
result?: {
|
|
860
|
+
version: 1;
|
|
861
|
+
skipped: {
|
|
862
|
+
message: string;
|
|
863
|
+
source: string;
|
|
864
|
+
reason: "hidden_path" | "ignored_directory" | "unsupported_file_type";
|
|
865
|
+
localSourcePath: string | null;
|
|
866
|
+
}[];
|
|
867
|
+
kind: "knowledge_ingest";
|
|
868
|
+
metadata: {
|
|
869
|
+
requested_count: number;
|
|
870
|
+
source_mode: "explicit_sources" | "path_prefix";
|
|
871
|
+
knowledge_path: string;
|
|
872
|
+
};
|
|
873
|
+
failed: {
|
|
874
|
+
message: string;
|
|
875
|
+
source: string;
|
|
876
|
+
reason: "parser_error" | "upload_error";
|
|
877
|
+
localSourcePath: string;
|
|
878
|
+
}[];
|
|
879
|
+
summary: {
|
|
880
|
+
requested_count: number;
|
|
881
|
+
ingested_count: number;
|
|
882
|
+
skipped_count: number;
|
|
883
|
+
failed_count: number;
|
|
884
|
+
};
|
|
885
|
+
ingested: {
|
|
283
886
|
slug: string;
|
|
284
887
|
source: string;
|
|
285
888
|
sourceType: string;
|
|
@@ -290,30 +893,166 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
290
893
|
outputPath: string;
|
|
291
894
|
remotePath: string;
|
|
292
895
|
}[];
|
|
293
|
-
kind: "knowledge_ingest";
|
|
294
896
|
} | {
|
|
295
897
|
kind: "value";
|
|
296
898
|
value?: unknown;
|
|
297
899
|
} | {
|
|
298
900
|
kind: "artifacts";
|
|
299
|
-
artifacts: unknown[];
|
|
901
|
+
artifacts: unknown[];
|
|
902
|
+
} | null | undefined;
|
|
903
|
+
failed_reason?: string | null | undefined;
|
|
904
|
+
failure_detail?: string | null | undefined;
|
|
905
|
+
result_summary?: {
|
|
906
|
+
kind: "knowledge_ingest";
|
|
907
|
+
state: "success" | "failed" | "partial_success";
|
|
908
|
+
requested_count: number;
|
|
909
|
+
ingested_count: number;
|
|
910
|
+
skipped_count: number;
|
|
911
|
+
failed_count: number;
|
|
912
|
+
} | {
|
|
913
|
+
kind: "value";
|
|
914
|
+
} | {
|
|
915
|
+
kind: "artifacts";
|
|
916
|
+
artifact_count: number;
|
|
917
|
+
} | null | undefined;
|
|
918
|
+
}>;
|
|
919
|
+
export declare const JobListItemSchema: z.ZodObject<{
|
|
920
|
+
id: z.ZodString;
|
|
921
|
+
project_id: z.ZodString;
|
|
922
|
+
environment_id: z.ZodNullable<z.ZodString>;
|
|
923
|
+
branch_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
924
|
+
cron_job_id: z.ZodNullable<z.ZodString>;
|
|
925
|
+
batch_id: z.ZodNullable<z.ZodString>;
|
|
926
|
+
name: z.ZodString;
|
|
927
|
+
status: z.ZodEnum<["submitted", "working", "completed", "failed", "canceled"]>;
|
|
928
|
+
target: z.ZodString;
|
|
929
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
930
|
+
context_id: z.ZodNullable<z.ZodString>;
|
|
931
|
+
timeout_seconds: z.ZodNumber;
|
|
932
|
+
backoff_limit: z.ZodNumber;
|
|
933
|
+
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
934
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
935
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
936
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
937
|
+
created_at: z.ZodString;
|
|
938
|
+
updated_at: z.ZodString;
|
|
939
|
+
} & {
|
|
940
|
+
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["knowledge_ingest"]>>>>;
|
|
941
|
+
failure_detail: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
942
|
+
result_summary: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
943
|
+
kind: z.ZodLiteral<"knowledge_ingest">;
|
|
944
|
+
state: z.ZodEnum<["success", "partial_success", "failed"]>;
|
|
945
|
+
requested_count: z.ZodNumber;
|
|
946
|
+
ingested_count: z.ZodNumber;
|
|
947
|
+
skipped_count: z.ZodNumber;
|
|
948
|
+
failed_count: z.ZodNumber;
|
|
949
|
+
}, "strip", z.ZodTypeAny, {
|
|
950
|
+
kind: "knowledge_ingest";
|
|
951
|
+
state: "success" | "failed" | "partial_success";
|
|
952
|
+
requested_count: number;
|
|
953
|
+
ingested_count: number;
|
|
954
|
+
skipped_count: number;
|
|
955
|
+
failed_count: number;
|
|
956
|
+
}, {
|
|
957
|
+
kind: "knowledge_ingest";
|
|
958
|
+
state: "success" | "failed" | "partial_success";
|
|
959
|
+
requested_count: number;
|
|
960
|
+
ingested_count: number;
|
|
961
|
+
skipped_count: number;
|
|
962
|
+
failed_count: number;
|
|
963
|
+
}>, z.ZodObject<{
|
|
964
|
+
kind: z.ZodLiteral<"value">;
|
|
965
|
+
}, "strip", z.ZodTypeAny, {
|
|
966
|
+
kind: "value";
|
|
967
|
+
}, {
|
|
968
|
+
kind: "value";
|
|
969
|
+
}>, z.ZodObject<{
|
|
970
|
+
kind: z.ZodLiteral<"artifacts">;
|
|
971
|
+
artifact_count: z.ZodNumber;
|
|
972
|
+
}, "strip", z.ZodTypeAny, {
|
|
973
|
+
kind: "artifacts";
|
|
974
|
+
artifact_count: number;
|
|
975
|
+
}, {
|
|
976
|
+
kind: "artifacts";
|
|
977
|
+
artifact_count: number;
|
|
978
|
+
}>]>>>>;
|
|
979
|
+
}, "strip", z.ZodTypeAny, {
|
|
980
|
+
status: "failed" | "completed" | "submitted" | "working" | "canceled";
|
|
981
|
+
config: Record<string, unknown>;
|
|
982
|
+
name: string;
|
|
983
|
+
project_id: string;
|
|
984
|
+
branch_id: string | null;
|
|
985
|
+
batch_id: string | null;
|
|
986
|
+
kind: "knowledge_ingest" | null;
|
|
987
|
+
id: string;
|
|
988
|
+
updated_at: string;
|
|
989
|
+
created_at: string;
|
|
990
|
+
environment_id: string | null;
|
|
991
|
+
target: string;
|
|
992
|
+
cron_job_id: string | null;
|
|
993
|
+
context_id: string | null;
|
|
994
|
+
timeout_seconds: number;
|
|
995
|
+
backoff_limit: number;
|
|
996
|
+
exit_code: number | null;
|
|
997
|
+
started_at: string | null;
|
|
998
|
+
completed_at: string | null;
|
|
999
|
+
created_by: string | null;
|
|
1000
|
+
failure_detail: string | null;
|
|
1001
|
+
result_summary: {
|
|
1002
|
+
kind: "knowledge_ingest";
|
|
1003
|
+
state: "success" | "failed" | "partial_success";
|
|
1004
|
+
requested_count: number;
|
|
1005
|
+
ingested_count: number;
|
|
1006
|
+
skipped_count: number;
|
|
1007
|
+
failed_count: number;
|
|
1008
|
+
} | {
|
|
1009
|
+
kind: "value";
|
|
1010
|
+
} | {
|
|
1011
|
+
kind: "artifacts";
|
|
1012
|
+
artifact_count: number;
|
|
300
1013
|
} | null;
|
|
1014
|
+
}, {
|
|
1015
|
+
status: "failed" | "completed" | "submitted" | "working" | "canceled";
|
|
1016
|
+
config: Record<string, unknown>;
|
|
1017
|
+
name: string;
|
|
1018
|
+
project_id: string;
|
|
1019
|
+
batch_id: string | null;
|
|
1020
|
+
id: string;
|
|
1021
|
+
updated_at: string;
|
|
1022
|
+
created_at: string;
|
|
1023
|
+
environment_id: string | null;
|
|
1024
|
+
target: string;
|
|
301
1025
|
cron_job_id: string | null;
|
|
302
1026
|
context_id: string | null;
|
|
303
1027
|
timeout_seconds: number;
|
|
304
1028
|
backoff_limit: number;
|
|
305
1029
|
exit_code: number | null;
|
|
306
|
-
failed_reason: string | null;
|
|
307
|
-
failure_detail: string | null;
|
|
308
1030
|
started_at: string | null;
|
|
309
1031
|
completed_at: string | null;
|
|
310
1032
|
created_by: string | null;
|
|
1033
|
+
branch_id?: string | null | undefined;
|
|
1034
|
+
kind?: "knowledge_ingest" | null | undefined;
|
|
1035
|
+
failure_detail?: string | null | undefined;
|
|
1036
|
+
result_summary?: {
|
|
1037
|
+
kind: "knowledge_ingest";
|
|
1038
|
+
state: "success" | "failed" | "partial_success";
|
|
1039
|
+
requested_count: number;
|
|
1040
|
+
ingested_count: number;
|
|
1041
|
+
skipped_count: number;
|
|
1042
|
+
failed_count: number;
|
|
1043
|
+
} | {
|
|
1044
|
+
kind: "value";
|
|
1045
|
+
} | {
|
|
1046
|
+
kind: "artifacts";
|
|
1047
|
+
artifact_count: number;
|
|
1048
|
+
} | null | undefined;
|
|
311
1049
|
}>;
|
|
312
1050
|
export declare const PaginatedJobsResponseSchema: z.ZodObject<{
|
|
313
1051
|
data: z.ZodArray<z.ZodObject<{
|
|
314
1052
|
id: z.ZodString;
|
|
315
1053
|
project_id: z.ZodString;
|
|
316
1054
|
environment_id: z.ZodNullable<z.ZodString>;
|
|
1055
|
+
branch_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
317
1056
|
cron_job_id: z.ZodNullable<z.ZodString>;
|
|
318
1057
|
batch_id: z.ZodNullable<z.ZodString>;
|
|
319
1058
|
name: z.ZodString;
|
|
@@ -324,132 +1063,86 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
|
|
|
324
1063
|
timeout_seconds: z.ZodNumber;
|
|
325
1064
|
backoff_limit: z.ZodNumber;
|
|
326
1065
|
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
1066
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
1067
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
1068
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
1069
|
+
created_at: z.ZodString;
|
|
1070
|
+
updated_at: z.ZodString;
|
|
1071
|
+
} & {
|
|
1072
|
+
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["knowledge_ingest"]>>>>;
|
|
1073
|
+
failure_detail: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1074
|
+
result_summary: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
330
1075
|
kind: z.ZodLiteral<"knowledge_ingest">;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
slug: z.ZodString;
|
|
337
|
-
sourceType: z.ZodString;
|
|
338
|
-
summary: z.ZodString;
|
|
339
|
-
stats: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
340
|
-
warnings: z.ZodArray<z.ZodString, "many">;
|
|
341
|
-
}, "strip", z.ZodTypeAny, {
|
|
342
|
-
slug: string;
|
|
343
|
-
source: string;
|
|
344
|
-
sourceType: string;
|
|
345
|
-
summary: string;
|
|
346
|
-
stats: Record<string, unknown>;
|
|
347
|
-
warnings: string[];
|
|
348
|
-
localSourcePath: string;
|
|
349
|
-
outputPath: string;
|
|
350
|
-
remotePath: string;
|
|
351
|
-
}, {
|
|
352
|
-
slug: string;
|
|
353
|
-
source: string;
|
|
354
|
-
sourceType: string;
|
|
355
|
-
summary: string;
|
|
356
|
-
stats: Record<string, unknown>;
|
|
357
|
-
warnings: string[];
|
|
358
|
-
localSourcePath: string;
|
|
359
|
-
outputPath: string;
|
|
360
|
-
remotePath: string;
|
|
361
|
-
}>, "many">;
|
|
1076
|
+
state: z.ZodEnum<["success", "partial_success", "failed"]>;
|
|
1077
|
+
requested_count: z.ZodNumber;
|
|
1078
|
+
ingested_count: z.ZodNumber;
|
|
1079
|
+
skipped_count: z.ZodNumber;
|
|
1080
|
+
failed_count: z.ZodNumber;
|
|
362
1081
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
files: {
|
|
364
|
-
slug: string;
|
|
365
|
-
source: string;
|
|
366
|
-
sourceType: string;
|
|
367
|
-
summary: string;
|
|
368
|
-
stats: Record<string, unknown>;
|
|
369
|
-
warnings: string[];
|
|
370
|
-
localSourcePath: string;
|
|
371
|
-
outputPath: string;
|
|
372
|
-
remotePath: string;
|
|
373
|
-
}[];
|
|
374
1082
|
kind: "knowledge_ingest";
|
|
1083
|
+
state: "success" | "failed" | "partial_success";
|
|
1084
|
+
requested_count: number;
|
|
1085
|
+
ingested_count: number;
|
|
1086
|
+
skipped_count: number;
|
|
1087
|
+
failed_count: number;
|
|
375
1088
|
}, {
|
|
376
|
-
files: {
|
|
377
|
-
slug: string;
|
|
378
|
-
source: string;
|
|
379
|
-
sourceType: string;
|
|
380
|
-
summary: string;
|
|
381
|
-
stats: Record<string, unknown>;
|
|
382
|
-
warnings: string[];
|
|
383
|
-
localSourcePath: string;
|
|
384
|
-
outputPath: string;
|
|
385
|
-
remotePath: string;
|
|
386
|
-
}[];
|
|
387
1089
|
kind: "knowledge_ingest";
|
|
1090
|
+
state: "success" | "failed" | "partial_success";
|
|
1091
|
+
requested_count: number;
|
|
1092
|
+
ingested_count: number;
|
|
1093
|
+
skipped_count: number;
|
|
1094
|
+
failed_count: number;
|
|
388
1095
|
}>, z.ZodObject<{
|
|
389
1096
|
kind: z.ZodLiteral<"value">;
|
|
390
|
-
value: z.ZodUnknown;
|
|
391
1097
|
}, "strip", z.ZodTypeAny, {
|
|
392
1098
|
kind: "value";
|
|
393
|
-
value?: unknown;
|
|
394
1099
|
}, {
|
|
395
1100
|
kind: "value";
|
|
396
|
-
value?: unknown;
|
|
397
1101
|
}>, z.ZodObject<{
|
|
398
1102
|
kind: z.ZodLiteral<"artifacts">;
|
|
399
|
-
|
|
1103
|
+
artifact_count: z.ZodNumber;
|
|
400
1104
|
}, "strip", z.ZodTypeAny, {
|
|
401
1105
|
kind: "artifacts";
|
|
402
|
-
|
|
1106
|
+
artifact_count: number;
|
|
403
1107
|
}, {
|
|
404
1108
|
kind: "artifacts";
|
|
405
|
-
|
|
406
|
-
}>]
|
|
407
|
-
started_at: z.ZodNullable<z.ZodString>;
|
|
408
|
-
completed_at: z.ZodNullable<z.ZodString>;
|
|
409
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
410
|
-
created_at: z.ZodString;
|
|
411
|
-
updated_at: z.ZodString;
|
|
1109
|
+
artifact_count: number;
|
|
1110
|
+
}>]>>>>;
|
|
412
1111
|
}, "strip", z.ZodTypeAny, {
|
|
413
1112
|
status: "failed" | "completed" | "submitted" | "working" | "canceled";
|
|
414
1113
|
config: Record<string, unknown>;
|
|
415
1114
|
name: string;
|
|
416
1115
|
project_id: string;
|
|
1116
|
+
branch_id: string | null;
|
|
417
1117
|
batch_id: string | null;
|
|
1118
|
+
kind: "knowledge_ingest" | null;
|
|
418
1119
|
id: string;
|
|
419
1120
|
updated_at: string;
|
|
420
1121
|
created_at: string;
|
|
421
1122
|
environment_id: string | null;
|
|
422
1123
|
target: string;
|
|
423
|
-
result: {
|
|
424
|
-
files: {
|
|
425
|
-
slug: string;
|
|
426
|
-
source: string;
|
|
427
|
-
sourceType: string;
|
|
428
|
-
summary: string;
|
|
429
|
-
stats: Record<string, unknown>;
|
|
430
|
-
warnings: string[];
|
|
431
|
-
localSourcePath: string;
|
|
432
|
-
outputPath: string;
|
|
433
|
-
remotePath: string;
|
|
434
|
-
}[];
|
|
435
|
-
kind: "knowledge_ingest";
|
|
436
|
-
} | {
|
|
437
|
-
kind: "value";
|
|
438
|
-
value?: unknown;
|
|
439
|
-
} | {
|
|
440
|
-
kind: "artifacts";
|
|
441
|
-
artifacts: unknown[];
|
|
442
|
-
} | null;
|
|
443
1124
|
cron_job_id: string | null;
|
|
444
1125
|
context_id: string | null;
|
|
445
1126
|
timeout_seconds: number;
|
|
446
1127
|
backoff_limit: number;
|
|
447
1128
|
exit_code: number | null;
|
|
448
|
-
failed_reason: string | null;
|
|
449
|
-
failure_detail: string | null;
|
|
450
1129
|
started_at: string | null;
|
|
451
1130
|
completed_at: string | null;
|
|
452
1131
|
created_by: string | null;
|
|
1132
|
+
failure_detail: string | null;
|
|
1133
|
+
result_summary: {
|
|
1134
|
+
kind: "knowledge_ingest";
|
|
1135
|
+
state: "success" | "failed" | "partial_success";
|
|
1136
|
+
requested_count: number;
|
|
1137
|
+
ingested_count: number;
|
|
1138
|
+
skipped_count: number;
|
|
1139
|
+
failed_count: number;
|
|
1140
|
+
} | {
|
|
1141
|
+
kind: "value";
|
|
1142
|
+
} | {
|
|
1143
|
+
kind: "artifacts";
|
|
1144
|
+
artifact_count: number;
|
|
1145
|
+
} | null;
|
|
453
1146
|
}, {
|
|
454
1147
|
status: "failed" | "completed" | "submitted" | "working" | "canceled";
|
|
455
1148
|
config: Record<string, unknown>;
|
|
@@ -461,36 +1154,30 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
|
|
|
461
1154
|
created_at: string;
|
|
462
1155
|
environment_id: string | null;
|
|
463
1156
|
target: string;
|
|
464
|
-
result: {
|
|
465
|
-
files: {
|
|
466
|
-
slug: string;
|
|
467
|
-
source: string;
|
|
468
|
-
sourceType: string;
|
|
469
|
-
summary: string;
|
|
470
|
-
stats: Record<string, unknown>;
|
|
471
|
-
warnings: string[];
|
|
472
|
-
localSourcePath: string;
|
|
473
|
-
outputPath: string;
|
|
474
|
-
remotePath: string;
|
|
475
|
-
}[];
|
|
476
|
-
kind: "knowledge_ingest";
|
|
477
|
-
} | {
|
|
478
|
-
kind: "value";
|
|
479
|
-
value?: unknown;
|
|
480
|
-
} | {
|
|
481
|
-
kind: "artifacts";
|
|
482
|
-
artifacts: unknown[];
|
|
483
|
-
} | null;
|
|
484
1157
|
cron_job_id: string | null;
|
|
485
1158
|
context_id: string | null;
|
|
486
1159
|
timeout_seconds: number;
|
|
487
1160
|
backoff_limit: number;
|
|
488
1161
|
exit_code: number | null;
|
|
489
|
-
failed_reason: string | null;
|
|
490
|
-
failure_detail: string | null;
|
|
491
1162
|
started_at: string | null;
|
|
492
1163
|
completed_at: string | null;
|
|
493
1164
|
created_by: string | null;
|
|
1165
|
+
branch_id?: string | null | undefined;
|
|
1166
|
+
kind?: "knowledge_ingest" | null | undefined;
|
|
1167
|
+
failure_detail?: string | null | undefined;
|
|
1168
|
+
result_summary?: {
|
|
1169
|
+
kind: "knowledge_ingest";
|
|
1170
|
+
state: "success" | "failed" | "partial_success";
|
|
1171
|
+
requested_count: number;
|
|
1172
|
+
ingested_count: number;
|
|
1173
|
+
skipped_count: number;
|
|
1174
|
+
failed_count: number;
|
|
1175
|
+
} | {
|
|
1176
|
+
kind: "value";
|
|
1177
|
+
} | {
|
|
1178
|
+
kind: "artifacts";
|
|
1179
|
+
artifact_count: number;
|
|
1180
|
+
} | null | undefined;
|
|
494
1181
|
}>, "many">;
|
|
495
1182
|
page_info: z.ZodObject<{
|
|
496
1183
|
self: z.ZodNullable<z.ZodString>;
|
|
@@ -514,42 +1201,36 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
|
|
|
514
1201
|
config: Record<string, unknown>;
|
|
515
1202
|
name: string;
|
|
516
1203
|
project_id: string;
|
|
1204
|
+
branch_id: string | null;
|
|
517
1205
|
batch_id: string | null;
|
|
1206
|
+
kind: "knowledge_ingest" | null;
|
|
518
1207
|
id: string;
|
|
519
1208
|
updated_at: string;
|
|
520
1209
|
created_at: string;
|
|
521
1210
|
environment_id: string | null;
|
|
522
1211
|
target: string;
|
|
523
|
-
result: {
|
|
524
|
-
files: {
|
|
525
|
-
slug: string;
|
|
526
|
-
source: string;
|
|
527
|
-
sourceType: string;
|
|
528
|
-
summary: string;
|
|
529
|
-
stats: Record<string, unknown>;
|
|
530
|
-
warnings: string[];
|
|
531
|
-
localSourcePath: string;
|
|
532
|
-
outputPath: string;
|
|
533
|
-
remotePath: string;
|
|
534
|
-
}[];
|
|
535
|
-
kind: "knowledge_ingest";
|
|
536
|
-
} | {
|
|
537
|
-
kind: "value";
|
|
538
|
-
value?: unknown;
|
|
539
|
-
} | {
|
|
540
|
-
kind: "artifacts";
|
|
541
|
-
artifacts: unknown[];
|
|
542
|
-
} | null;
|
|
543
1212
|
cron_job_id: string | null;
|
|
544
1213
|
context_id: string | null;
|
|
545
1214
|
timeout_seconds: number;
|
|
546
1215
|
backoff_limit: number;
|
|
547
1216
|
exit_code: number | null;
|
|
548
|
-
failed_reason: string | null;
|
|
549
|
-
failure_detail: string | null;
|
|
550
1217
|
started_at: string | null;
|
|
551
1218
|
completed_at: string | null;
|
|
552
1219
|
created_by: string | null;
|
|
1220
|
+
failure_detail: string | null;
|
|
1221
|
+
result_summary: {
|
|
1222
|
+
kind: "knowledge_ingest";
|
|
1223
|
+
state: "success" | "failed" | "partial_success";
|
|
1224
|
+
requested_count: number;
|
|
1225
|
+
ingested_count: number;
|
|
1226
|
+
skipped_count: number;
|
|
1227
|
+
failed_count: number;
|
|
1228
|
+
} | {
|
|
1229
|
+
kind: "value";
|
|
1230
|
+
} | {
|
|
1231
|
+
kind: "artifacts";
|
|
1232
|
+
artifact_count: number;
|
|
1233
|
+
} | null;
|
|
553
1234
|
}[];
|
|
554
1235
|
page_info: {
|
|
555
1236
|
self: string | null;
|
|
@@ -569,36 +1250,30 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
|
|
|
569
1250
|
created_at: string;
|
|
570
1251
|
environment_id: string | null;
|
|
571
1252
|
target: string;
|
|
572
|
-
result: {
|
|
573
|
-
files: {
|
|
574
|
-
slug: string;
|
|
575
|
-
source: string;
|
|
576
|
-
sourceType: string;
|
|
577
|
-
summary: string;
|
|
578
|
-
stats: Record<string, unknown>;
|
|
579
|
-
warnings: string[];
|
|
580
|
-
localSourcePath: string;
|
|
581
|
-
outputPath: string;
|
|
582
|
-
remotePath: string;
|
|
583
|
-
}[];
|
|
584
|
-
kind: "knowledge_ingest";
|
|
585
|
-
} | {
|
|
586
|
-
kind: "value";
|
|
587
|
-
value?: unknown;
|
|
588
|
-
} | {
|
|
589
|
-
kind: "artifacts";
|
|
590
|
-
artifacts: unknown[];
|
|
591
|
-
} | null;
|
|
592
1253
|
cron_job_id: string | null;
|
|
593
1254
|
context_id: string | null;
|
|
594
1255
|
timeout_seconds: number;
|
|
595
1256
|
backoff_limit: number;
|
|
596
1257
|
exit_code: number | null;
|
|
597
|
-
failed_reason: string | null;
|
|
598
|
-
failure_detail: string | null;
|
|
599
1258
|
started_at: string | null;
|
|
600
1259
|
completed_at: string | null;
|
|
601
1260
|
created_by: string | null;
|
|
1261
|
+
branch_id?: string | null | undefined;
|
|
1262
|
+
kind?: "knowledge_ingest" | null | undefined;
|
|
1263
|
+
failure_detail?: string | null | undefined;
|
|
1264
|
+
result_summary?: {
|
|
1265
|
+
kind: "knowledge_ingest";
|
|
1266
|
+
state: "success" | "failed" | "partial_success";
|
|
1267
|
+
requested_count: number;
|
|
1268
|
+
ingested_count: number;
|
|
1269
|
+
skipped_count: number;
|
|
1270
|
+
failed_count: number;
|
|
1271
|
+
} | {
|
|
1272
|
+
kind: "value";
|
|
1273
|
+
} | {
|
|
1274
|
+
kind: "artifacts";
|
|
1275
|
+
artifact_count: number;
|
|
1276
|
+
} | null | undefined;
|
|
602
1277
|
}[];
|
|
603
1278
|
page_info: {
|
|
604
1279
|
self: string | null;
|
|
@@ -731,6 +1406,29 @@ export declare const KnowledgeIngestBatchSourceSchema: z.ZodObject<{
|
|
|
731
1406
|
remote_path: string | null;
|
|
732
1407
|
warning_count: number;
|
|
733
1408
|
}>;
|
|
1409
|
+
export declare const KnowledgeIngestBatchSourceWithMessageSchema: z.ZodObject<{
|
|
1410
|
+
label: z.ZodString;
|
|
1411
|
+
path: z.ZodNullable<z.ZodString>;
|
|
1412
|
+
upload_id: z.ZodNullable<z.ZodString>;
|
|
1413
|
+
remote_path: z.ZodNullable<z.ZodString>;
|
|
1414
|
+
warning_count: z.ZodNumber;
|
|
1415
|
+
} & {
|
|
1416
|
+
message: z.ZodString;
|
|
1417
|
+
}, "strip", z.ZodTypeAny, {
|
|
1418
|
+
message: string;
|
|
1419
|
+
path: string | null;
|
|
1420
|
+
label: string;
|
|
1421
|
+
upload_id: string | null;
|
|
1422
|
+
remote_path: string | null;
|
|
1423
|
+
warning_count: number;
|
|
1424
|
+
}, {
|
|
1425
|
+
message: string;
|
|
1426
|
+
path: string | null;
|
|
1427
|
+
label: string;
|
|
1428
|
+
upload_id: string | null;
|
|
1429
|
+
remote_path: string | null;
|
|
1430
|
+
warning_count: number;
|
|
1431
|
+
}>;
|
|
734
1432
|
export declare const JobBatchStatusCountsSchema: z.ZodObject<{
|
|
735
1433
|
submitted: z.ZodNumber;
|
|
736
1434
|
working: z.ZodNumber;
|
|
@@ -754,6 +1452,8 @@ export declare const JobBatchResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion
|
|
|
754
1452
|
kind: z.ZodLiteral<"knowledge_ingest">;
|
|
755
1453
|
total_count: z.ZodNumber;
|
|
756
1454
|
completed_count: z.ZodNumber;
|
|
1455
|
+
skipped_count: z.ZodNumber;
|
|
1456
|
+
failed_count: z.ZodNumber;
|
|
757
1457
|
processing: z.ZodArray<z.ZodObject<{
|
|
758
1458
|
label: z.ZodString;
|
|
759
1459
|
path: z.ZodNullable<z.ZodString>;
|
|
@@ -792,6 +1492,52 @@ export declare const JobBatchResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion
|
|
|
792
1492
|
remote_path: string | null;
|
|
793
1493
|
warning_count: number;
|
|
794
1494
|
}>, "many">;
|
|
1495
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
1496
|
+
label: z.ZodString;
|
|
1497
|
+
path: z.ZodNullable<z.ZodString>;
|
|
1498
|
+
upload_id: z.ZodNullable<z.ZodString>;
|
|
1499
|
+
remote_path: z.ZodNullable<z.ZodString>;
|
|
1500
|
+
warning_count: z.ZodNumber;
|
|
1501
|
+
} & {
|
|
1502
|
+
message: z.ZodString;
|
|
1503
|
+
}, "strip", z.ZodTypeAny, {
|
|
1504
|
+
message: string;
|
|
1505
|
+
path: string | null;
|
|
1506
|
+
label: string;
|
|
1507
|
+
upload_id: string | null;
|
|
1508
|
+
remote_path: string | null;
|
|
1509
|
+
warning_count: number;
|
|
1510
|
+
}, {
|
|
1511
|
+
message: string;
|
|
1512
|
+
path: string | null;
|
|
1513
|
+
label: string;
|
|
1514
|
+
upload_id: string | null;
|
|
1515
|
+
remote_path: string | null;
|
|
1516
|
+
warning_count: number;
|
|
1517
|
+
}>, "many">;
|
|
1518
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
1519
|
+
label: z.ZodString;
|
|
1520
|
+
path: z.ZodNullable<z.ZodString>;
|
|
1521
|
+
upload_id: z.ZodNullable<z.ZodString>;
|
|
1522
|
+
remote_path: z.ZodNullable<z.ZodString>;
|
|
1523
|
+
warning_count: z.ZodNumber;
|
|
1524
|
+
} & {
|
|
1525
|
+
message: z.ZodString;
|
|
1526
|
+
}, "strip", z.ZodTypeAny, {
|
|
1527
|
+
message: string;
|
|
1528
|
+
path: string | null;
|
|
1529
|
+
label: string;
|
|
1530
|
+
upload_id: string | null;
|
|
1531
|
+
remote_path: string | null;
|
|
1532
|
+
warning_count: number;
|
|
1533
|
+
}, {
|
|
1534
|
+
message: string;
|
|
1535
|
+
path: string | null;
|
|
1536
|
+
label: string;
|
|
1537
|
+
upload_id: string | null;
|
|
1538
|
+
remote_path: string | null;
|
|
1539
|
+
warning_count: number;
|
|
1540
|
+
}>, "many">;
|
|
795
1541
|
remaining: z.ZodArray<z.ZodObject<{
|
|
796
1542
|
label: z.ZodString;
|
|
797
1543
|
path: z.ZodNullable<z.ZodString>;
|
|
@@ -813,7 +1559,23 @@ export declare const JobBatchResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion
|
|
|
813
1559
|
}>, "many">;
|
|
814
1560
|
remaining_label: z.ZodEnum<["Remaining Files", "Not Ingested Files"]>;
|
|
815
1561
|
}, "strip", z.ZodTypeAny, {
|
|
1562
|
+
skipped: {
|
|
1563
|
+
message: string;
|
|
1564
|
+
path: string | null;
|
|
1565
|
+
label: string;
|
|
1566
|
+
upload_id: string | null;
|
|
1567
|
+
remote_path: string | null;
|
|
1568
|
+
warning_count: number;
|
|
1569
|
+
}[];
|
|
816
1570
|
kind: "knowledge_ingest";
|
|
1571
|
+
failed: {
|
|
1572
|
+
message: string;
|
|
1573
|
+
path: string | null;
|
|
1574
|
+
label: string;
|
|
1575
|
+
upload_id: string | null;
|
|
1576
|
+
remote_path: string | null;
|
|
1577
|
+
warning_count: number;
|
|
1578
|
+
}[];
|
|
817
1579
|
remaining: {
|
|
818
1580
|
path: string | null;
|
|
819
1581
|
label: string;
|
|
@@ -828,6 +1590,8 @@ export declare const JobBatchResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion
|
|
|
828
1590
|
remote_path: string | null;
|
|
829
1591
|
warning_count: number;
|
|
830
1592
|
}[];
|
|
1593
|
+
skipped_count: number;
|
|
1594
|
+
failed_count: number;
|
|
831
1595
|
total_count: number;
|
|
832
1596
|
completed_count: number;
|
|
833
1597
|
processing: {
|
|
@@ -839,7 +1603,23 @@ export declare const JobBatchResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion
|
|
|
839
1603
|
}[];
|
|
840
1604
|
remaining_label: "Remaining Files" | "Not Ingested Files";
|
|
841
1605
|
}, {
|
|
1606
|
+
skipped: {
|
|
1607
|
+
message: string;
|
|
1608
|
+
path: string | null;
|
|
1609
|
+
label: string;
|
|
1610
|
+
upload_id: string | null;
|
|
1611
|
+
remote_path: string | null;
|
|
1612
|
+
warning_count: number;
|
|
1613
|
+
}[];
|
|
842
1614
|
kind: "knowledge_ingest";
|
|
1615
|
+
failed: {
|
|
1616
|
+
message: string;
|
|
1617
|
+
path: string | null;
|
|
1618
|
+
label: string;
|
|
1619
|
+
upload_id: string | null;
|
|
1620
|
+
remote_path: string | null;
|
|
1621
|
+
warning_count: number;
|
|
1622
|
+
}[];
|
|
843
1623
|
remaining: {
|
|
844
1624
|
path: string | null;
|
|
845
1625
|
label: string;
|
|
@@ -854,6 +1634,8 @@ export declare const JobBatchResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion
|
|
|
854
1634
|
remote_path: string | null;
|
|
855
1635
|
warning_count: number;
|
|
856
1636
|
}[];
|
|
1637
|
+
skipped_count: number;
|
|
1638
|
+
failed_count: number;
|
|
857
1639
|
total_count: number;
|
|
858
1640
|
completed_count: number;
|
|
859
1641
|
processing: {
|
|
@@ -895,6 +1677,8 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
895
1677
|
kind: z.ZodLiteral<"knowledge_ingest">;
|
|
896
1678
|
total_count: z.ZodNumber;
|
|
897
1679
|
completed_count: z.ZodNumber;
|
|
1680
|
+
skipped_count: z.ZodNumber;
|
|
1681
|
+
failed_count: z.ZodNumber;
|
|
898
1682
|
processing: z.ZodArray<z.ZodObject<{
|
|
899
1683
|
label: z.ZodString;
|
|
900
1684
|
path: z.ZodNullable<z.ZodString>;
|
|
@@ -933,6 +1717,52 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
933
1717
|
remote_path: string | null;
|
|
934
1718
|
warning_count: number;
|
|
935
1719
|
}>, "many">;
|
|
1720
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
1721
|
+
label: z.ZodString;
|
|
1722
|
+
path: z.ZodNullable<z.ZodString>;
|
|
1723
|
+
upload_id: z.ZodNullable<z.ZodString>;
|
|
1724
|
+
remote_path: z.ZodNullable<z.ZodString>;
|
|
1725
|
+
warning_count: z.ZodNumber;
|
|
1726
|
+
} & {
|
|
1727
|
+
message: z.ZodString;
|
|
1728
|
+
}, "strip", z.ZodTypeAny, {
|
|
1729
|
+
message: string;
|
|
1730
|
+
path: string | null;
|
|
1731
|
+
label: string;
|
|
1732
|
+
upload_id: string | null;
|
|
1733
|
+
remote_path: string | null;
|
|
1734
|
+
warning_count: number;
|
|
1735
|
+
}, {
|
|
1736
|
+
message: string;
|
|
1737
|
+
path: string | null;
|
|
1738
|
+
label: string;
|
|
1739
|
+
upload_id: string | null;
|
|
1740
|
+
remote_path: string | null;
|
|
1741
|
+
warning_count: number;
|
|
1742
|
+
}>, "many">;
|
|
1743
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
1744
|
+
label: z.ZodString;
|
|
1745
|
+
path: z.ZodNullable<z.ZodString>;
|
|
1746
|
+
upload_id: z.ZodNullable<z.ZodString>;
|
|
1747
|
+
remote_path: z.ZodNullable<z.ZodString>;
|
|
1748
|
+
warning_count: z.ZodNumber;
|
|
1749
|
+
} & {
|
|
1750
|
+
message: z.ZodString;
|
|
1751
|
+
}, "strip", z.ZodTypeAny, {
|
|
1752
|
+
message: string;
|
|
1753
|
+
path: string | null;
|
|
1754
|
+
label: string;
|
|
1755
|
+
upload_id: string | null;
|
|
1756
|
+
remote_path: string | null;
|
|
1757
|
+
warning_count: number;
|
|
1758
|
+
}, {
|
|
1759
|
+
message: string;
|
|
1760
|
+
path: string | null;
|
|
1761
|
+
label: string;
|
|
1762
|
+
upload_id: string | null;
|
|
1763
|
+
remote_path: string | null;
|
|
1764
|
+
warning_count: number;
|
|
1765
|
+
}>, "many">;
|
|
936
1766
|
remaining: z.ZodArray<z.ZodObject<{
|
|
937
1767
|
label: z.ZodString;
|
|
938
1768
|
path: z.ZodNullable<z.ZodString>;
|
|
@@ -954,7 +1784,23 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
954
1784
|
}>, "many">;
|
|
955
1785
|
remaining_label: z.ZodEnum<["Remaining Files", "Not Ingested Files"]>;
|
|
956
1786
|
}, "strip", z.ZodTypeAny, {
|
|
1787
|
+
skipped: {
|
|
1788
|
+
message: string;
|
|
1789
|
+
path: string | null;
|
|
1790
|
+
label: string;
|
|
1791
|
+
upload_id: string | null;
|
|
1792
|
+
remote_path: string | null;
|
|
1793
|
+
warning_count: number;
|
|
1794
|
+
}[];
|
|
957
1795
|
kind: "knowledge_ingest";
|
|
1796
|
+
failed: {
|
|
1797
|
+
message: string;
|
|
1798
|
+
path: string | null;
|
|
1799
|
+
label: string;
|
|
1800
|
+
upload_id: string | null;
|
|
1801
|
+
remote_path: string | null;
|
|
1802
|
+
warning_count: number;
|
|
1803
|
+
}[];
|
|
958
1804
|
remaining: {
|
|
959
1805
|
path: string | null;
|
|
960
1806
|
label: string;
|
|
@@ -969,6 +1815,8 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
969
1815
|
remote_path: string | null;
|
|
970
1816
|
warning_count: number;
|
|
971
1817
|
}[];
|
|
1818
|
+
skipped_count: number;
|
|
1819
|
+
failed_count: number;
|
|
972
1820
|
total_count: number;
|
|
973
1821
|
completed_count: number;
|
|
974
1822
|
processing: {
|
|
@@ -980,7 +1828,23 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
980
1828
|
}[];
|
|
981
1829
|
remaining_label: "Remaining Files" | "Not Ingested Files";
|
|
982
1830
|
}, {
|
|
1831
|
+
skipped: {
|
|
1832
|
+
message: string;
|
|
1833
|
+
path: string | null;
|
|
1834
|
+
label: string;
|
|
1835
|
+
upload_id: string | null;
|
|
1836
|
+
remote_path: string | null;
|
|
1837
|
+
warning_count: number;
|
|
1838
|
+
}[];
|
|
983
1839
|
kind: "knowledge_ingest";
|
|
1840
|
+
failed: {
|
|
1841
|
+
message: string;
|
|
1842
|
+
path: string | null;
|
|
1843
|
+
label: string;
|
|
1844
|
+
upload_id: string | null;
|
|
1845
|
+
remote_path: string | null;
|
|
1846
|
+
warning_count: number;
|
|
1847
|
+
}[];
|
|
984
1848
|
remaining: {
|
|
985
1849
|
path: string | null;
|
|
986
1850
|
label: string;
|
|
@@ -995,6 +1859,8 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
995
1859
|
remote_path: string | null;
|
|
996
1860
|
warning_count: number;
|
|
997
1861
|
}[];
|
|
1862
|
+
skipped_count: number;
|
|
1863
|
+
failed_count: number;
|
|
998
1864
|
total_count: number;
|
|
999
1865
|
completed_count: number;
|
|
1000
1866
|
processing: {
|
|
@@ -1013,7 +1879,23 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
1013
1879
|
created_at: string;
|
|
1014
1880
|
target: string | null;
|
|
1015
1881
|
result: {
|
|
1882
|
+
skipped: {
|
|
1883
|
+
message: string;
|
|
1884
|
+
path: string | null;
|
|
1885
|
+
label: string;
|
|
1886
|
+
upload_id: string | null;
|
|
1887
|
+
remote_path: string | null;
|
|
1888
|
+
warning_count: number;
|
|
1889
|
+
}[];
|
|
1016
1890
|
kind: "knowledge_ingest";
|
|
1891
|
+
failed: {
|
|
1892
|
+
message: string;
|
|
1893
|
+
path: string | null;
|
|
1894
|
+
label: string;
|
|
1895
|
+
upload_id: string | null;
|
|
1896
|
+
remote_path: string | null;
|
|
1897
|
+
warning_count: number;
|
|
1898
|
+
}[];
|
|
1017
1899
|
remaining: {
|
|
1018
1900
|
path: string | null;
|
|
1019
1901
|
label: string;
|
|
@@ -1028,6 +1910,8 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
1028
1910
|
remote_path: string | null;
|
|
1029
1911
|
warning_count: number;
|
|
1030
1912
|
}[];
|
|
1913
|
+
skipped_count: number;
|
|
1914
|
+
failed_count: number;
|
|
1031
1915
|
total_count: number;
|
|
1032
1916
|
completed_count: number;
|
|
1033
1917
|
processing: {
|
|
@@ -1054,7 +1938,23 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
1054
1938
|
created_at: string;
|
|
1055
1939
|
target: string | null;
|
|
1056
1940
|
result: {
|
|
1941
|
+
skipped: {
|
|
1942
|
+
message: string;
|
|
1943
|
+
path: string | null;
|
|
1944
|
+
label: string;
|
|
1945
|
+
upload_id: string | null;
|
|
1946
|
+
remote_path: string | null;
|
|
1947
|
+
warning_count: number;
|
|
1948
|
+
}[];
|
|
1057
1949
|
kind: "knowledge_ingest";
|
|
1950
|
+
failed: {
|
|
1951
|
+
message: string;
|
|
1952
|
+
path: string | null;
|
|
1953
|
+
label: string;
|
|
1954
|
+
upload_id: string | null;
|
|
1955
|
+
remote_path: string | null;
|
|
1956
|
+
warning_count: number;
|
|
1957
|
+
}[];
|
|
1058
1958
|
remaining: {
|
|
1059
1959
|
path: string | null;
|
|
1060
1960
|
label: string;
|
|
@@ -1069,6 +1969,8 @@ export declare const JobBatchSchema: z.ZodObject<{
|
|
|
1069
1969
|
remote_path: string | null;
|
|
1070
1970
|
warning_count: number;
|
|
1071
1971
|
}[];
|
|
1972
|
+
skipped_count: number;
|
|
1973
|
+
failed_count: number;
|
|
1072
1974
|
total_count: number;
|
|
1073
1975
|
completed_count: number;
|
|
1074
1976
|
processing: {
|
|
@@ -1152,6 +2054,7 @@ export declare const CronJobSchema: z.ZodObject<{
|
|
|
1152
2054
|
id: z.ZodString;
|
|
1153
2055
|
project_id: z.ZodString;
|
|
1154
2056
|
environment_id: z.ZodNullable<z.ZodString>;
|
|
2057
|
+
branch_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1155
2058
|
name: z.ZodString;
|
|
1156
2059
|
status: z.ZodEnum<["active", "paused", "deleting"]>;
|
|
1157
2060
|
target: z.ZodString;
|
|
@@ -1171,6 +2074,7 @@ export declare const CronJobSchema: z.ZodObject<{
|
|
|
1171
2074
|
config: Record<string, unknown>;
|
|
1172
2075
|
name: string;
|
|
1173
2076
|
project_id: string;
|
|
2077
|
+
branch_id: string | null;
|
|
1174
2078
|
id: string;
|
|
1175
2079
|
updated_at: string;
|
|
1176
2080
|
created_at: string;
|
|
@@ -1202,12 +2106,14 @@ export declare const CronJobSchema: z.ZodObject<{
|
|
|
1202
2106
|
concurrency_policy: string;
|
|
1203
2107
|
last_scheduled_at: string | null;
|
|
1204
2108
|
last_successful_at: string | null;
|
|
2109
|
+
branch_id?: string | null | undefined;
|
|
1205
2110
|
}>;
|
|
1206
2111
|
export declare const PaginatedCronJobsResponseSchema: z.ZodObject<{
|
|
1207
2112
|
data: z.ZodArray<z.ZodObject<{
|
|
1208
2113
|
id: z.ZodString;
|
|
1209
2114
|
project_id: z.ZodString;
|
|
1210
2115
|
environment_id: z.ZodNullable<z.ZodString>;
|
|
2116
|
+
branch_id: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1211
2117
|
name: z.ZodString;
|
|
1212
2118
|
status: z.ZodEnum<["active", "paused", "deleting"]>;
|
|
1213
2119
|
target: z.ZodString;
|
|
@@ -1227,6 +2133,7 @@ export declare const PaginatedCronJobsResponseSchema: z.ZodObject<{
|
|
|
1227
2133
|
config: Record<string, unknown>;
|
|
1228
2134
|
name: string;
|
|
1229
2135
|
project_id: string;
|
|
2136
|
+
branch_id: string | null;
|
|
1230
2137
|
id: string;
|
|
1231
2138
|
updated_at: string;
|
|
1232
2139
|
created_at: string;
|
|
@@ -1258,6 +2165,7 @@ export declare const PaginatedCronJobsResponseSchema: z.ZodObject<{
|
|
|
1258
2165
|
concurrency_policy: string;
|
|
1259
2166
|
last_scheduled_at: string | null;
|
|
1260
2167
|
last_successful_at: string | null;
|
|
2168
|
+
branch_id?: string | null | undefined;
|
|
1261
2169
|
}>, "many">;
|
|
1262
2170
|
page_info: z.ZodObject<{
|
|
1263
2171
|
self: z.ZodNullable<z.ZodString>;
|
|
@@ -1281,6 +2189,7 @@ export declare const PaginatedCronJobsResponseSchema: z.ZodObject<{
|
|
|
1281
2189
|
config: Record<string, unknown>;
|
|
1282
2190
|
name: string;
|
|
1283
2191
|
project_id: string;
|
|
2192
|
+
branch_id: string | null;
|
|
1284
2193
|
id: string;
|
|
1285
2194
|
updated_at: string;
|
|
1286
2195
|
created_at: string;
|
|
@@ -1320,6 +2229,7 @@ export declare const PaginatedCronJobsResponseSchema: z.ZodObject<{
|
|
|
1320
2229
|
concurrency_policy: string;
|
|
1321
2230
|
last_scheduled_at: string | null;
|
|
1322
2231
|
last_successful_at: string | null;
|
|
2232
|
+
branch_id?: string | null | undefined;
|
|
1323
2233
|
}[];
|
|
1324
2234
|
page_info: {
|
|
1325
2235
|
self: string | null;
|
|
@@ -1330,15 +2240,24 @@ export declare const PaginatedCronJobsResponseSchema: z.ZodObject<{
|
|
|
1330
2240
|
}>;
|
|
1331
2241
|
export type JobStatus = z.infer<typeof JobStatusSchema>;
|
|
1332
2242
|
export type CronJobStatus = z.infer<typeof CronJobStatusSchema>;
|
|
2243
|
+
export type JobKind = z.infer<typeof JobKindSchema>;
|
|
1333
2244
|
export type ReservedJobTargetFamily = z.infer<typeof ReservedJobTargetFamilySchema>;
|
|
1334
2245
|
export type KnowledgeIngestFileResult = z.infer<typeof KnowledgeIngestFileResultSchema>;
|
|
2246
|
+
export type KnowledgeIngestSkippedFileResult = z.infer<typeof KnowledgeIngestSkippedFileResultSchema>;
|
|
2247
|
+
export type KnowledgeIngestFailedFileResult = z.infer<typeof KnowledgeIngestFailedFileResultSchema>;
|
|
2248
|
+
export type KnowledgeIngestJobResultMetadata = z.infer<typeof KnowledgeIngestJobResultMetadataSchema>;
|
|
2249
|
+
export type KnowledgeIngestJobResultCounts = z.infer<typeof KnowledgeIngestJobResultCountsSchema>;
|
|
2250
|
+
export type KnowledgeIngestJobResult = z.infer<typeof KnowledgeIngestJobResultSchema>;
|
|
1335
2251
|
export type JobResult = z.infer<typeof JobResultSchema>;
|
|
2252
|
+
export type JobResultSummary = z.infer<typeof JobResultSummarySchema>;
|
|
1336
2253
|
export type Job = z.infer<typeof JobSchema>;
|
|
2254
|
+
export type JobListItem = z.infer<typeof JobListItemSchema>;
|
|
1337
2255
|
export type PaginatedJobsResponse = z.infer<typeof PaginatedJobsResponseSchema>;
|
|
1338
2256
|
export type JobEvent = z.infer<typeof JobEventSchema>;
|
|
1339
2257
|
export type JobEventsResponse = z.infer<typeof JobEventsResponseSchema>;
|
|
1340
2258
|
export type JobLogsResponse = z.infer<typeof JobLogsResponseSchema>;
|
|
1341
2259
|
export type KnowledgeIngestBatchSource = z.infer<typeof KnowledgeIngestBatchSourceSchema>;
|
|
2260
|
+
export type KnowledgeIngestBatchSourceWithMessage = z.infer<typeof KnowledgeIngestBatchSourceWithMessageSchema>;
|
|
1342
2261
|
export type JobBatchStatusCounts = z.infer<typeof JobBatchStatusCountsSchema>;
|
|
1343
2262
|
export type JobBatchResult = z.infer<typeof JobBatchResultSchema>;
|
|
1344
2263
|
export type JobBatch = z.infer<typeof JobBatchSchema>;
|