@proofhound/shared 0.1.13 → 0.1.15
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/dto/canary-release.dto.d.ts +4 -4
- package/dist/dto/dataset-import.dto.d.ts +289 -48
- package/dist/dto/dataset-import.dto.d.ts.map +1 -1
- package/dist/dto/dataset-import.dto.js +56 -4
- package/dist/dto/dataset-import.dto.js.map +1 -1
- package/dist/dto/release-line.dto.d.ts +10 -10
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const canaryReleaseStatusSchema: z.ZodEnum<{
|
|
3
3
|
failed: "failed";
|
|
4
4
|
pending: "pending";
|
|
5
|
+
completed: "completed";
|
|
5
6
|
running: "running";
|
|
6
7
|
stopped: "stopped";
|
|
7
8
|
cancelled: "cancelled";
|
|
8
|
-
completed: "completed";
|
|
9
9
|
}>;
|
|
10
10
|
export type CanaryReleaseStatusDto = z.infer<typeof canaryReleaseStatusSchema>;
|
|
11
11
|
export declare const canaryReleaseRunModeSchema: z.ZodEnum<{
|
|
@@ -151,10 +151,10 @@ export declare const canaryReleaseSchema: z.ZodObject<{
|
|
|
151
151
|
status: z.ZodEnum<{
|
|
152
152
|
failed: "failed";
|
|
153
153
|
pending: "pending";
|
|
154
|
+
completed: "completed";
|
|
154
155
|
running: "running";
|
|
155
156
|
stopped: "stopped";
|
|
156
157
|
cancelled: "cancelled";
|
|
157
|
-
completed: "completed";
|
|
158
158
|
}>;
|
|
159
159
|
controlState: z.ZodNullable<z.ZodEnum<{
|
|
160
160
|
stop: "stop";
|
|
@@ -261,10 +261,10 @@ export declare const canaryReleaseListItemSchema: z.ZodObject<{
|
|
|
261
261
|
status: z.ZodEnum<{
|
|
262
262
|
failed: "failed";
|
|
263
263
|
pending: "pending";
|
|
264
|
+
completed: "completed";
|
|
264
265
|
running: "running";
|
|
265
266
|
stopped: "stopped";
|
|
266
267
|
cancelled: "cancelled";
|
|
267
|
-
completed: "completed";
|
|
268
268
|
}>;
|
|
269
269
|
controlState: z.ZodNullable<z.ZodEnum<{
|
|
270
270
|
stop: "stop";
|
|
@@ -492,7 +492,7 @@ export declare const releaseCanaryAnnotationInputSchema: z.ZodObject<{
|
|
|
492
492
|
annotationId: z.ZodString;
|
|
493
493
|
}, z.core.$strip>;
|
|
494
494
|
export type ReleaseCanaryAnnotationInputDto = z.infer<typeof releaseCanaryAnnotationInputSchema>;
|
|
495
|
-
export declare const CANARY_RELEASE_STATUSES: ("failed" | "pending" | "
|
|
495
|
+
export declare const CANARY_RELEASE_STATUSES: ("failed" | "pending" | "completed" | "running" | "stopped" | "cancelled")[];
|
|
496
496
|
export declare const CANARY_RELEASE_RUN_MODES: ("fixed_duration" | "manual")[];
|
|
497
497
|
export declare const CANARY_RELEASE_RECORD_MODES: ("all" | "selected_categories" | "correct_only")[];
|
|
498
498
|
export declare const CANARY_RELEASE_TRAFFIC_MODES: ("split" | "dual_run")[];
|
|
@@ -3,13 +3,39 @@ export declare const datasetImportSourceFormatSchema: z.ZodEnum<{
|
|
|
3
3
|
csv: "csv";
|
|
4
4
|
jsonl: "jsonl";
|
|
5
5
|
tsv: "tsv";
|
|
6
|
+
json: "json";
|
|
7
|
+
zip: "zip";
|
|
6
8
|
}>;
|
|
7
9
|
export type DatasetImportSourceFormat = z.infer<typeof datasetImportSourceFormatSchema>;
|
|
10
|
+
export declare const datasetImportStateSchema: z.ZodEnum<{
|
|
11
|
+
failed: "failed";
|
|
12
|
+
created: "created";
|
|
13
|
+
uploading: "uploading";
|
|
14
|
+
uploaded: "uploaded";
|
|
15
|
+
queued: "queued";
|
|
16
|
+
parsing: "parsing";
|
|
17
|
+
importing: "importing";
|
|
18
|
+
completed: "completed";
|
|
19
|
+
aborted: "aborted";
|
|
20
|
+
}>;
|
|
21
|
+
export type DatasetImportState = z.infer<typeof datasetImportStateSchema>;
|
|
8
22
|
export declare const datasetImportStatusSchema: z.ZodEnum<{
|
|
23
|
+
failed: "failed";
|
|
24
|
+
created: "created";
|
|
25
|
+
uploading: "uploading";
|
|
26
|
+
uploaded: "uploaded";
|
|
27
|
+
queued: "queued";
|
|
28
|
+
parsing: "parsing";
|
|
9
29
|
importing: "importing";
|
|
10
|
-
|
|
30
|
+
completed: "completed";
|
|
31
|
+
aborted: "aborted";
|
|
32
|
+
}>;
|
|
33
|
+
export type DatasetImportStatus = DatasetImportState;
|
|
34
|
+
export declare const datasetImportModeSchema: z.ZodEnum<{
|
|
35
|
+
batch: "batch";
|
|
36
|
+
raw_object: "raw_object";
|
|
11
37
|
}>;
|
|
12
|
-
export type
|
|
38
|
+
export type DatasetImportMode = z.infer<typeof datasetImportModeSchema>;
|
|
13
39
|
export declare const datasetImportSourceFileSchema: z.ZodObject<{
|
|
14
40
|
fileName: z.ZodString;
|
|
15
41
|
fileSizeBytes: z.ZodNumber;
|
|
@@ -38,10 +64,40 @@ export declare const createDatasetImportSchema: z.ZodObject<{
|
|
|
38
64
|
csv: "csv";
|
|
39
65
|
jsonl: "jsonl";
|
|
40
66
|
tsv: "tsv";
|
|
67
|
+
json: "json";
|
|
68
|
+
zip: "zip";
|
|
41
69
|
}>;
|
|
42
70
|
declaredTotalRows: z.ZodOptional<z.ZodNumber>;
|
|
43
71
|
}, z.core.$strip>;
|
|
44
72
|
export type CreateDatasetImportDto = z.infer<typeof createDatasetImportSchema>;
|
|
73
|
+
export declare const createRawDatasetImportSchema: z.ZodObject<{
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
76
|
+
fieldMappings: z.ZodArray<z.ZodObject<{
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
role: z.ZodEnum<{
|
|
79
|
+
text: "text";
|
|
80
|
+
image: "image";
|
|
81
|
+
id: "id";
|
|
82
|
+
metadata: "metadata";
|
|
83
|
+
expected: "expected";
|
|
84
|
+
}>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
sourceFile: z.ZodObject<{
|
|
87
|
+
fileName: z.ZodString;
|
|
88
|
+
fileSizeBytes: z.ZodNumber;
|
|
89
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
sourceFormat: z.ZodEnum<{
|
|
92
|
+
csv: "csv";
|
|
93
|
+
jsonl: "jsonl";
|
|
94
|
+
tsv: "tsv";
|
|
95
|
+
json: "json";
|
|
96
|
+
zip: "zip";
|
|
97
|
+
}>;
|
|
98
|
+
declaredTotalRows: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
export type CreateRawDatasetImportDto = z.infer<typeof createRawDatasetImportSchema>;
|
|
45
101
|
export declare const datasetImportBatchSchema: z.ZodObject<{
|
|
46
102
|
batchStartIndex: z.ZodNumber;
|
|
47
103
|
samples: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -51,6 +107,10 @@ export declare const datasetImportItemSchema: z.ZodObject<{
|
|
|
51
107
|
id: z.ZodString;
|
|
52
108
|
projectId: z.ZodString;
|
|
53
109
|
datasetId: z.ZodNullable<z.ZodString>;
|
|
110
|
+
importMode: z.ZodDefault<z.ZodEnum<{
|
|
111
|
+
batch: "batch";
|
|
112
|
+
raw_object: "raw_object";
|
|
113
|
+
}>>;
|
|
54
114
|
name: z.ZodString;
|
|
55
115
|
description: z.ZodNullable<z.ZodString>;
|
|
56
116
|
fileName: z.ZodString;
|
|
@@ -59,12 +119,21 @@ export declare const datasetImportItemSchema: z.ZodObject<{
|
|
|
59
119
|
csv: "csv";
|
|
60
120
|
jsonl: "jsonl";
|
|
61
121
|
tsv: "tsv";
|
|
122
|
+
json: "json";
|
|
123
|
+
zip: "zip";
|
|
62
124
|
}>;
|
|
63
125
|
declaredTotalRows: z.ZodNullable<z.ZodNumber>;
|
|
64
126
|
receivedRows: z.ZodNumber;
|
|
65
127
|
status: z.ZodEnum<{
|
|
128
|
+
failed: "failed";
|
|
129
|
+
created: "created";
|
|
130
|
+
uploading: "uploading";
|
|
131
|
+
uploaded: "uploaded";
|
|
132
|
+
queued: "queued";
|
|
133
|
+
parsing: "parsing";
|
|
66
134
|
importing: "importing";
|
|
67
|
-
|
|
135
|
+
completed: "completed";
|
|
136
|
+
aborted: "aborted";
|
|
68
137
|
}>;
|
|
69
138
|
createdAt: z.ZodString;
|
|
70
139
|
updatedAt: z.ZodString;
|
|
@@ -75,59 +144,231 @@ export declare const datasetImportBatchResponseSchema: z.ZodObject<{
|
|
|
75
144
|
receivedRows: z.ZodNumber;
|
|
76
145
|
}, z.core.$strip>;
|
|
77
146
|
export type DatasetImportBatchResponseDto = z.infer<typeof datasetImportBatchResponseSchema>;
|
|
78
|
-
export declare const
|
|
79
|
-
|
|
147
|
+
export declare const datasetImportProgressSchema: z.ZodObject<{
|
|
148
|
+
state: z.ZodEnum<{
|
|
149
|
+
failed: "failed";
|
|
150
|
+
created: "created";
|
|
151
|
+
uploading: "uploading";
|
|
152
|
+
uploaded: "uploaded";
|
|
153
|
+
queued: "queued";
|
|
154
|
+
parsing: "parsing";
|
|
155
|
+
importing: "importing";
|
|
156
|
+
completed: "completed";
|
|
157
|
+
aborted: "aborted";
|
|
158
|
+
}>;
|
|
159
|
+
uploadedBytes: z.ZodNullable<z.ZodNumber>;
|
|
160
|
+
parsedRows: z.ZodNumber;
|
|
161
|
+
importedRows: z.ZodNumber;
|
|
162
|
+
totalRows: z.ZodNullable<z.ZodNumber>;
|
|
163
|
+
totalBytes: z.ZodNullable<z.ZodNumber>;
|
|
164
|
+
percentage: z.ZodNullable<z.ZodNumber>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
export type DatasetImportProgressDto = z.infer<typeof datasetImportProgressSchema>;
|
|
167
|
+
export declare const datasetRawImportCapabilitiesSchema: z.ZodObject<{
|
|
168
|
+
supported: z.ZodBoolean;
|
|
169
|
+
maxBytes: z.ZodNumber;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export type DatasetRawImportCapabilitiesDto = z.infer<typeof datasetRawImportCapabilitiesSchema>;
|
|
172
|
+
export declare const datasetRawUploadSessionSchema: z.ZodObject<{
|
|
173
|
+
sessionId: z.ZodString;
|
|
174
|
+
url: z.ZodString;
|
|
175
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
176
|
+
expiresAt: z.ZodString;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export type DatasetRawUploadSessionDto = z.infer<typeof datasetRawUploadSessionSchema>;
|
|
179
|
+
export declare const createRawDatasetImportResponseSchema: z.ZodObject<{
|
|
180
|
+
import: z.ZodObject<{
|
|
80
181
|
id: z.ZodString;
|
|
81
182
|
projectId: z.ZodString;
|
|
183
|
+
datasetId: z.ZodNullable<z.ZodString>;
|
|
184
|
+
importMode: z.ZodDefault<z.ZodEnum<{
|
|
185
|
+
batch: "batch";
|
|
186
|
+
raw_object: "raw_object";
|
|
187
|
+
}>>;
|
|
82
188
|
name: z.ZodString;
|
|
189
|
+
description: z.ZodNullable<z.ZodString>;
|
|
190
|
+
fileName: z.ZodString;
|
|
191
|
+
fileSizeBytes: z.ZodNumber;
|
|
192
|
+
sourceFormat: z.ZodEnum<{
|
|
193
|
+
csv: "csv";
|
|
194
|
+
jsonl: "jsonl";
|
|
195
|
+
tsv: "tsv";
|
|
196
|
+
json: "json";
|
|
197
|
+
zip: "zip";
|
|
198
|
+
}>;
|
|
199
|
+
declaredTotalRows: z.ZodNullable<z.ZodNumber>;
|
|
200
|
+
receivedRows: z.ZodNumber;
|
|
83
201
|
status: z.ZodEnum<{
|
|
84
|
-
|
|
85
|
-
|
|
202
|
+
failed: "failed";
|
|
203
|
+
created: "created";
|
|
204
|
+
uploading: "uploading";
|
|
205
|
+
uploaded: "uploaded";
|
|
206
|
+
queued: "queued";
|
|
207
|
+
parsing: "parsing";
|
|
208
|
+
importing: "importing";
|
|
209
|
+
completed: "completed";
|
|
210
|
+
aborted: "aborted";
|
|
86
211
|
}>;
|
|
87
|
-
description: z.ZodNullable<z.ZodString>;
|
|
88
|
-
sampleCount: z.ZodNumber;
|
|
89
|
-
fieldSchema: z.ZodArray<z.ZodObject<{
|
|
90
|
-
name: z.ZodString;
|
|
91
|
-
role: z.ZodEnum<{
|
|
92
|
-
text: "text";
|
|
93
|
-
image: "image";
|
|
94
|
-
image_url: "image_url";
|
|
95
|
-
image_base64: "image_base64";
|
|
96
|
-
expected_output: "expected_output";
|
|
97
|
-
metadata: "metadata";
|
|
98
|
-
}>;
|
|
99
|
-
type: z.ZodEnum<{
|
|
100
|
-
string: "string";
|
|
101
|
-
number: "number";
|
|
102
|
-
boolean: "boolean";
|
|
103
|
-
object: "object";
|
|
104
|
-
null: "null";
|
|
105
|
-
unknown: "unknown";
|
|
106
|
-
array: "array";
|
|
107
|
-
}>;
|
|
108
|
-
}, z.core.$strip>>;
|
|
109
|
-
categoryDistribution: z.ZodObject<{
|
|
110
|
-
field: z.ZodNullable<z.ZodString>;
|
|
111
|
-
total: z.ZodNumber;
|
|
112
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
113
|
-
label: z.ZodString;
|
|
114
|
-
count: z.ZodNumber;
|
|
115
|
-
}, z.core.$strip>>;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
references: z.ZodObject<{
|
|
118
|
-
experiments: z.ZodNumber;
|
|
119
|
-
optimizations: z.ZodNumber;
|
|
120
|
-
}, z.core.$strip>;
|
|
121
|
-
hasImages: z.ZodBoolean;
|
|
122
|
-
storagePrefix: z.ZodNullable<z.ZodString>;
|
|
123
|
-
createdBy: z.ZodString;
|
|
124
|
-
createdByDisplayName: z.ZodNullable<z.ZodString>;
|
|
125
212
|
createdAt: z.ZodString;
|
|
126
213
|
updatedAt: z.ZodString;
|
|
127
|
-
archivedAt: z.ZodNullable<z.ZodString>;
|
|
128
|
-
deletedAt: z.ZodNullable<z.ZodString>;
|
|
129
214
|
}, z.core.$strip>;
|
|
130
|
-
|
|
215
|
+
uploadSession: z.ZodObject<{
|
|
216
|
+
sessionId: z.ZodString;
|
|
217
|
+
url: z.ZodString;
|
|
218
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
219
|
+
expiresAt: z.ZodString;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
maxBytes: z.ZodNumber;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
export type CreateRawDatasetImportResponseDto = z.infer<typeof createRawDatasetImportResponseSchema>;
|
|
224
|
+
export declare const datasetImportStatusDtoSchema: z.ZodObject<{
|
|
225
|
+
id: z.ZodString;
|
|
226
|
+
projectId: z.ZodString;
|
|
227
|
+
datasetId: z.ZodNullable<z.ZodString>;
|
|
228
|
+
importMode: z.ZodDefault<z.ZodEnum<{
|
|
229
|
+
batch: "batch";
|
|
230
|
+
raw_object: "raw_object";
|
|
231
|
+
}>>;
|
|
232
|
+
name: z.ZodString;
|
|
233
|
+
description: z.ZodNullable<z.ZodString>;
|
|
234
|
+
fileName: z.ZodString;
|
|
235
|
+
fileSizeBytes: z.ZodNumber;
|
|
236
|
+
sourceFormat: z.ZodEnum<{
|
|
237
|
+
csv: "csv";
|
|
238
|
+
jsonl: "jsonl";
|
|
239
|
+
tsv: "tsv";
|
|
240
|
+
json: "json";
|
|
241
|
+
zip: "zip";
|
|
242
|
+
}>;
|
|
243
|
+
declaredTotalRows: z.ZodNullable<z.ZodNumber>;
|
|
244
|
+
receivedRows: z.ZodNumber;
|
|
245
|
+
status: z.ZodEnum<{
|
|
246
|
+
failed: "failed";
|
|
247
|
+
created: "created";
|
|
248
|
+
uploading: "uploading";
|
|
249
|
+
uploaded: "uploaded";
|
|
250
|
+
queued: "queued";
|
|
251
|
+
parsing: "parsing";
|
|
252
|
+
importing: "importing";
|
|
253
|
+
completed: "completed";
|
|
254
|
+
aborted: "aborted";
|
|
255
|
+
}>;
|
|
256
|
+
createdAt: z.ZodString;
|
|
257
|
+
updatedAt: z.ZodString;
|
|
258
|
+
state: z.ZodEnum<{
|
|
259
|
+
failed: "failed";
|
|
260
|
+
created: "created";
|
|
261
|
+
uploading: "uploading";
|
|
262
|
+
uploaded: "uploaded";
|
|
263
|
+
queued: "queued";
|
|
264
|
+
parsing: "parsing";
|
|
265
|
+
importing: "importing";
|
|
266
|
+
completed: "completed";
|
|
267
|
+
aborted: "aborted";
|
|
268
|
+
}>;
|
|
269
|
+
progress: z.ZodObject<{
|
|
270
|
+
state: z.ZodEnum<{
|
|
271
|
+
failed: "failed";
|
|
272
|
+
created: "created";
|
|
273
|
+
uploading: "uploading";
|
|
274
|
+
uploaded: "uploaded";
|
|
275
|
+
queued: "queued";
|
|
276
|
+
parsing: "parsing";
|
|
277
|
+
importing: "importing";
|
|
278
|
+
completed: "completed";
|
|
279
|
+
aborted: "aborted";
|
|
280
|
+
}>;
|
|
281
|
+
uploadedBytes: z.ZodNullable<z.ZodNumber>;
|
|
282
|
+
parsedRows: z.ZodNumber;
|
|
283
|
+
importedRows: z.ZodNumber;
|
|
284
|
+
totalRows: z.ZodNullable<z.ZodNumber>;
|
|
285
|
+
totalBytes: z.ZodNullable<z.ZodNumber>;
|
|
286
|
+
percentage: z.ZodNullable<z.ZodNumber>;
|
|
287
|
+
}, z.core.$strip>;
|
|
288
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
289
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
290
|
+
jobId: z.ZodNullable<z.ZodString>;
|
|
291
|
+
rawUploadCompletedAt: z.ZodNullable<z.ZodString>;
|
|
292
|
+
queuedAt: z.ZodNullable<z.ZodString>;
|
|
293
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
294
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
295
|
+
failedAt: z.ZodNullable<z.ZodString>;
|
|
296
|
+
abortedAt: z.ZodNullable<z.ZodString>;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
export type DatasetImportStatusDto = z.infer<typeof datasetImportStatusDtoSchema>;
|
|
299
|
+
export declare const completeDatasetImportResponseSchema: z.ZodObject<{
|
|
300
|
+
id: z.ZodString;
|
|
301
|
+
projectId: z.ZodString;
|
|
302
|
+
datasetId: z.ZodNullable<z.ZodString>;
|
|
303
|
+
importMode: z.ZodDefault<z.ZodEnum<{
|
|
304
|
+
batch: "batch";
|
|
305
|
+
raw_object: "raw_object";
|
|
306
|
+
}>>;
|
|
307
|
+
name: z.ZodString;
|
|
308
|
+
description: z.ZodNullable<z.ZodString>;
|
|
309
|
+
fileName: z.ZodString;
|
|
310
|
+
fileSizeBytes: z.ZodNumber;
|
|
311
|
+
sourceFormat: z.ZodEnum<{
|
|
312
|
+
csv: "csv";
|
|
313
|
+
jsonl: "jsonl";
|
|
314
|
+
tsv: "tsv";
|
|
315
|
+
json: "json";
|
|
316
|
+
zip: "zip";
|
|
317
|
+
}>;
|
|
318
|
+
declaredTotalRows: z.ZodNullable<z.ZodNumber>;
|
|
319
|
+
receivedRows: z.ZodNumber;
|
|
320
|
+
status: z.ZodEnum<{
|
|
321
|
+
failed: "failed";
|
|
322
|
+
created: "created";
|
|
323
|
+
uploading: "uploading";
|
|
324
|
+
uploaded: "uploaded";
|
|
325
|
+
queued: "queued";
|
|
326
|
+
parsing: "parsing";
|
|
327
|
+
importing: "importing";
|
|
328
|
+
completed: "completed";
|
|
329
|
+
aborted: "aborted";
|
|
330
|
+
}>;
|
|
331
|
+
createdAt: z.ZodString;
|
|
332
|
+
updatedAt: z.ZodString;
|
|
333
|
+
state: z.ZodEnum<{
|
|
334
|
+
failed: "failed";
|
|
335
|
+
created: "created";
|
|
336
|
+
uploading: "uploading";
|
|
337
|
+
uploaded: "uploaded";
|
|
338
|
+
queued: "queued";
|
|
339
|
+
parsing: "parsing";
|
|
340
|
+
importing: "importing";
|
|
341
|
+
completed: "completed";
|
|
342
|
+
aborted: "aborted";
|
|
343
|
+
}>;
|
|
344
|
+
progress: z.ZodObject<{
|
|
345
|
+
state: z.ZodEnum<{
|
|
346
|
+
failed: "failed";
|
|
347
|
+
created: "created";
|
|
348
|
+
uploading: "uploading";
|
|
349
|
+
uploaded: "uploaded";
|
|
350
|
+
queued: "queued";
|
|
351
|
+
parsing: "parsing";
|
|
352
|
+
importing: "importing";
|
|
353
|
+
completed: "completed";
|
|
354
|
+
aborted: "aborted";
|
|
355
|
+
}>;
|
|
356
|
+
uploadedBytes: z.ZodNullable<z.ZodNumber>;
|
|
357
|
+
parsedRows: z.ZodNumber;
|
|
358
|
+
importedRows: z.ZodNumber;
|
|
359
|
+
totalRows: z.ZodNullable<z.ZodNumber>;
|
|
360
|
+
totalBytes: z.ZodNullable<z.ZodNumber>;
|
|
361
|
+
percentage: z.ZodNullable<z.ZodNumber>;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
364
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
365
|
+
jobId: z.ZodNullable<z.ZodString>;
|
|
366
|
+
rawUploadCompletedAt: z.ZodNullable<z.ZodString>;
|
|
367
|
+
queuedAt: z.ZodNullable<z.ZodString>;
|
|
368
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
369
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
370
|
+
failedAt: z.ZodNullable<z.ZodString>;
|
|
371
|
+
abortedAt: z.ZodNullable<z.ZodString>;
|
|
131
372
|
}, z.core.$strip>;
|
|
132
373
|
export type CompleteDatasetImportResponseDto = z.infer<typeof completeDatasetImportResponseSchema>;
|
|
133
374
|
//# sourceMappingURL=dataset-import.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset-import.dto.d.ts","sourceRoot":"","sources":["../../src/dto/dataset-import.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"dataset-import.dto.d.ts","sourceRoot":"","sources":["../../src/dto/dataset-import.dto.ts"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exports, "__esModule", { value: true });
|
|
3
|
-
exports.completeDatasetImportResponseSchema = exports.datasetImportBatchResponseSchema = exports.datasetImportItemSchema = exports.datasetImportBatchSchema = exports.createDatasetImportSchema = exports.datasetImportSourceFileSchema = exports.datasetImportStatusSchema = exports.datasetImportSourceFormatSchema = void 0;
|
|
3
|
+
exports.completeDatasetImportResponseSchema = exports.datasetImportStatusDtoSchema = exports.createRawDatasetImportResponseSchema = exports.datasetRawUploadSessionSchema = exports.datasetRawImportCapabilitiesSchema = exports.datasetImportProgressSchema = exports.datasetImportBatchResponseSchema = exports.datasetImportItemSchema = exports.datasetImportBatchSchema = exports.createRawDatasetImportSchema = exports.createDatasetImportSchema = exports.datasetImportSourceFileSchema = exports.datasetImportModeSchema = exports.datasetImportStatusSchema = exports.datasetImportStateSchema = exports.datasetImportSourceFormatSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const dataset_dto_1 = require("./dataset.dto");
|
|
6
|
-
exports.datasetImportSourceFormatSchema = zod_1.z.enum(['jsonl', 'csv', 'tsv']);
|
|
7
|
-
exports.
|
|
6
|
+
exports.datasetImportSourceFormatSchema = zod_1.z.enum(['jsonl', 'csv', 'tsv', 'json', 'zip']);
|
|
7
|
+
exports.datasetImportStateSchema = zod_1.z.enum([
|
|
8
|
+
'created',
|
|
9
|
+
'uploading',
|
|
10
|
+
'uploaded',
|
|
11
|
+
'queued',
|
|
12
|
+
'parsing',
|
|
13
|
+
'importing',
|
|
14
|
+
'completed',
|
|
15
|
+
'failed',
|
|
16
|
+
'aborted',
|
|
17
|
+
]);
|
|
18
|
+
// Backward-compatible alias while callers migrate terminology from "status" to "state".
|
|
19
|
+
exports.datasetImportStatusSchema = exports.datasetImportStateSchema;
|
|
20
|
+
exports.datasetImportModeSchema = zod_1.z.enum(['batch', 'raw_object']);
|
|
8
21
|
exports.datasetImportSourceFileSchema = zod_1.z.object({
|
|
9
22
|
fileName: zod_1.z.string().trim().min(1).max(260),
|
|
10
23
|
fileSizeBytes: zod_1.z.number().int().nonnegative(),
|
|
@@ -25,6 +38,7 @@ exports.createDatasetImportSchema = zod_1.z
|
|
|
25
38
|
ctx.addIssue({ code: 'custom', path: ['fieldMappings'], message: 'dataset_expected_field_unique' });
|
|
26
39
|
}
|
|
27
40
|
});
|
|
41
|
+
exports.createRawDatasetImportSchema = exports.createDatasetImportSchema;
|
|
28
42
|
// One streamed batch. samples 上限沿用同步路径的每请求兜底;导入总量不设上限。
|
|
29
43
|
exports.datasetImportBatchSchema = zod_1.z.object({
|
|
30
44
|
batchStartIndex: zod_1.z.number().int().nonnegative(),
|
|
@@ -34,6 +48,7 @@ exports.datasetImportItemSchema = zod_1.z.object({
|
|
|
34
48
|
id: zod_1.z.string().uuid(),
|
|
35
49
|
projectId: zod_1.z.string().uuid(),
|
|
36
50
|
datasetId: zod_1.z.string().uuid().nullable(),
|
|
51
|
+
importMode: exports.datasetImportModeSchema.default('batch'),
|
|
37
52
|
name: zod_1.z.string(),
|
|
38
53
|
description: zod_1.z.string().nullable(),
|
|
39
54
|
fileName: zod_1.z.string(),
|
|
@@ -49,5 +64,42 @@ exports.datasetImportBatchResponseSchema = zod_1.z.object({
|
|
|
49
64
|
importId: zod_1.z.string().uuid(),
|
|
50
65
|
receivedRows: zod_1.z.number().int().nonnegative(),
|
|
51
66
|
});
|
|
52
|
-
exports.
|
|
67
|
+
exports.datasetImportProgressSchema = zod_1.z.object({
|
|
68
|
+
state: exports.datasetImportStateSchema,
|
|
69
|
+
uploadedBytes: zod_1.z.number().int().nonnegative().nullable(),
|
|
70
|
+
parsedRows: zod_1.z.number().int().nonnegative(),
|
|
71
|
+
importedRows: zod_1.z.number().int().nonnegative(),
|
|
72
|
+
totalRows: zod_1.z.number().int().nonnegative().nullable(),
|
|
73
|
+
totalBytes: zod_1.z.number().int().nonnegative().nullable(),
|
|
74
|
+
percentage: zod_1.z.number().min(0).max(100).nullable(),
|
|
75
|
+
});
|
|
76
|
+
exports.datasetRawImportCapabilitiesSchema = zod_1.z.object({
|
|
77
|
+
supported: zod_1.z.boolean(),
|
|
78
|
+
maxBytes: zod_1.z.number().int().positive(),
|
|
79
|
+
});
|
|
80
|
+
exports.datasetRawUploadSessionSchema = zod_1.z.object({
|
|
81
|
+
sessionId: zod_1.z.string().min(1),
|
|
82
|
+
url: zod_1.z.string().url(),
|
|
83
|
+
headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
84
|
+
expiresAt: zod_1.z.string().datetime(),
|
|
85
|
+
});
|
|
86
|
+
exports.createRawDatasetImportResponseSchema = zod_1.z.object({
|
|
87
|
+
import: exports.datasetImportItemSchema,
|
|
88
|
+
uploadSession: exports.datasetRawUploadSessionSchema,
|
|
89
|
+
maxBytes: zod_1.z.number().int().positive(),
|
|
90
|
+
});
|
|
91
|
+
exports.datasetImportStatusDtoSchema = exports.datasetImportItemSchema.extend({
|
|
92
|
+
state: exports.datasetImportStateSchema,
|
|
93
|
+
progress: exports.datasetImportProgressSchema,
|
|
94
|
+
errorCode: zod_1.z.string().nullable(),
|
|
95
|
+
errorMessage: zod_1.z.string().nullable(),
|
|
96
|
+
jobId: zod_1.z.string().nullable(),
|
|
97
|
+
rawUploadCompletedAt: zod_1.z.string().datetime().nullable(),
|
|
98
|
+
queuedAt: zod_1.z.string().datetime().nullable(),
|
|
99
|
+
startedAt: zod_1.z.string().datetime().nullable(),
|
|
100
|
+
completedAt: zod_1.z.string().datetime().nullable(),
|
|
101
|
+
failedAt: zod_1.z.string().datetime().nullable(),
|
|
102
|
+
abortedAt: zod_1.z.string().datetime().nullable(),
|
|
103
|
+
});
|
|
104
|
+
exports.completeDatasetImportResponseSchema = exports.datasetImportStatusDtoSchema;
|
|
53
105
|
//# sourceMappingURL=dataset-import.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset-import.dto.js","sourceRoot":"","sources":["../../src/dto/dataset-import.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+
|
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QAAA,4BAA4B,GAAG,+BAAuB,CAAC,MAAM,CAAC;IACzE,KAAK,EAAE,gCAAwB;IAC/B,QAAQ,EAAE,mCAA2B;IACrC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAGU,QAAA,mCAAmC,GAAG,oCAA4B,CAAC"}
|
|
@@ -21,10 +21,10 @@ export type ReleaseLineRecordCategoriesDto = z.infer<typeof releaseLineRecordCat
|
|
|
21
21
|
export declare const releaseLineEventStatusSchema: z.ZodEnum<{
|
|
22
22
|
archived: "archived";
|
|
23
23
|
failed: "failed";
|
|
24
|
+
completed: "completed";
|
|
24
25
|
running: "running";
|
|
25
26
|
stopped: "stopped";
|
|
26
27
|
cancelled: "cancelled";
|
|
27
|
-
completed: "completed";
|
|
28
28
|
}>;
|
|
29
29
|
export type ReleaseLineEventStatusDto = z.infer<typeof releaseLineEventStatusSchema>;
|
|
30
30
|
export declare const releaseLineEventOperationSchema: z.ZodEnum<{
|
|
@@ -154,10 +154,10 @@ export declare const releaseLineEventSchema: z.ZodObject<{
|
|
|
154
154
|
status: z.ZodEnum<{
|
|
155
155
|
archived: "archived";
|
|
156
156
|
failed: "failed";
|
|
157
|
+
completed: "completed";
|
|
157
158
|
running: "running";
|
|
158
159
|
stopped: "stopped";
|
|
159
160
|
cancelled: "cancelled";
|
|
160
|
-
completed: "completed";
|
|
161
161
|
}>;
|
|
162
162
|
terminalReason: z.ZodNullable<z.ZodEnum<{
|
|
163
163
|
archived: "archived";
|
|
@@ -295,10 +295,10 @@ export declare const releaseLineSchema: z.ZodObject<{
|
|
|
295
295
|
status: z.ZodEnum<{
|
|
296
296
|
archived: "archived";
|
|
297
297
|
failed: "failed";
|
|
298
|
+
completed: "completed";
|
|
298
299
|
running: "running";
|
|
299
300
|
stopped: "stopped";
|
|
300
301
|
cancelled: "cancelled";
|
|
301
|
-
completed: "completed";
|
|
302
302
|
}>;
|
|
303
303
|
terminalReason: z.ZodNullable<z.ZodEnum<{
|
|
304
304
|
archived: "archived";
|
|
@@ -416,10 +416,10 @@ export declare const releaseLineSchema: z.ZodObject<{
|
|
|
416
416
|
status: z.ZodEnum<{
|
|
417
417
|
archived: "archived";
|
|
418
418
|
failed: "failed";
|
|
419
|
+
completed: "completed";
|
|
419
420
|
running: "running";
|
|
420
421
|
stopped: "stopped";
|
|
421
422
|
cancelled: "cancelled";
|
|
422
|
-
completed: "completed";
|
|
423
423
|
}>;
|
|
424
424
|
terminalReason: z.ZodNullable<z.ZodEnum<{
|
|
425
425
|
archived: "archived";
|
|
@@ -570,10 +570,10 @@ export declare const releaseLineSchema: z.ZodObject<{
|
|
|
570
570
|
status: z.ZodEnum<{
|
|
571
571
|
archived: "archived";
|
|
572
572
|
failed: "failed";
|
|
573
|
+
completed: "completed";
|
|
573
574
|
running: "running";
|
|
574
575
|
stopped: "stopped";
|
|
575
576
|
cancelled: "cancelled";
|
|
576
|
-
completed: "completed";
|
|
577
577
|
}>;
|
|
578
578
|
terminalReason: z.ZodNullable<z.ZodEnum<{
|
|
579
579
|
archived: "archived";
|
|
@@ -717,10 +717,10 @@ export declare const releaseLineListResponseSchema: z.ZodObject<{
|
|
|
717
717
|
status: z.ZodEnum<{
|
|
718
718
|
archived: "archived";
|
|
719
719
|
failed: "failed";
|
|
720
|
+
completed: "completed";
|
|
720
721
|
running: "running";
|
|
721
722
|
stopped: "stopped";
|
|
722
723
|
cancelled: "cancelled";
|
|
723
|
-
completed: "completed";
|
|
724
724
|
}>;
|
|
725
725
|
terminalReason: z.ZodNullable<z.ZodEnum<{
|
|
726
726
|
archived: "archived";
|
|
@@ -838,10 +838,10 @@ export declare const releaseLineListResponseSchema: z.ZodObject<{
|
|
|
838
838
|
status: z.ZodEnum<{
|
|
839
839
|
archived: "archived";
|
|
840
840
|
failed: "failed";
|
|
841
|
+
completed: "completed";
|
|
841
842
|
running: "running";
|
|
842
843
|
stopped: "stopped";
|
|
843
844
|
cancelled: "cancelled";
|
|
844
|
-
completed: "completed";
|
|
845
845
|
}>;
|
|
846
846
|
terminalReason: z.ZodNullable<z.ZodEnum<{
|
|
847
847
|
archived: "archived";
|
|
@@ -992,10 +992,10 @@ export declare const releaseLineListResponseSchema: z.ZodObject<{
|
|
|
992
992
|
status: z.ZodEnum<{
|
|
993
993
|
archived: "archived";
|
|
994
994
|
failed: "failed";
|
|
995
|
+
completed: "completed";
|
|
995
996
|
running: "running";
|
|
996
997
|
stopped: "stopped";
|
|
997
998
|
cancelled: "cancelled";
|
|
998
|
-
completed: "completed";
|
|
999
999
|
}>;
|
|
1000
1000
|
terminalReason: z.ZodNullable<z.ZodEnum<{
|
|
1001
1001
|
archived: "archived";
|
|
@@ -1122,10 +1122,10 @@ export declare const releaseLineEventListResponseSchema: z.ZodObject<{
|
|
|
1122
1122
|
status: z.ZodEnum<{
|
|
1123
1123
|
archived: "archived";
|
|
1124
1124
|
failed: "failed";
|
|
1125
|
+
completed: "completed";
|
|
1125
1126
|
running: "running";
|
|
1126
1127
|
stopped: "stopped";
|
|
1127
1128
|
cancelled: "cancelled";
|
|
1128
|
-
completed: "completed";
|
|
1129
1129
|
}>;
|
|
1130
1130
|
terminalReason: z.ZodNullable<z.ZodEnum<{
|
|
1131
1131
|
archived: "archived";
|
|
@@ -1365,6 +1365,6 @@ export declare const deleteReleaseLineInputSchema: z.ZodObject<{
|
|
|
1365
1365
|
}, z.core.$strip>;
|
|
1366
1366
|
export type DeleteReleaseLineInputDto = z.infer<typeof deleteReleaseLineInputSchema>;
|
|
1367
1367
|
export declare const RELEASE_LINE_STATUSES: ("archived" | "running" | "stopped")[];
|
|
1368
|
-
export declare const RELEASE_LINE_EVENT_STATUSES: ("archived" | "failed" | "
|
|
1368
|
+
export declare const RELEASE_LINE_EVENT_STATUSES: ("archived" | "failed" | "completed" | "running" | "stopped" | "cancelled")[];
|
|
1369
1369
|
export declare const RELEASE_LINE_EVENT_OPERATIONS: ("rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line")[];
|
|
1370
1370
|
//# sourceMappingURL=release-line.dto.d.ts.map
|