openlayer 0.21.0 → 0.22.0
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/CHANGELOG.md +17 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/commits/test-results.d.mts +61 -0
- package/resources/commits/test-results.d.mts.map +1 -1
- package/resources/commits/test-results.d.ts +61 -0
- package/resources/commits/test-results.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.mts +14 -14
- package/resources/inference-pipelines/inference-pipelines.d.mts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.ts +14 -14
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines/test-results.d.mts +61 -0
- package/resources/inference-pipelines/test-results.d.mts.map +1 -1
- package/resources/inference-pipelines/test-results.d.ts +61 -0
- package/resources/inference-pipelines/test-results.d.ts.map +1 -1
- package/resources/projects/inference-pipelines.d.mts +31 -31
- package/resources/projects/inference-pipelines.d.mts.map +1 -1
- package/resources/projects/inference-pipelines.d.ts +31 -31
- package/resources/projects/inference-pipelines.d.ts.map +1 -1
- package/resources/tests.d.mts +518 -1
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +518 -1
- package/resources/tests.d.ts.map +1 -1
- package/resources/tests.js +13 -0
- package/resources/tests.js.map +1 -1
- package/resources/tests.mjs +13 -0
- package/resources/tests.mjs.map +1 -1
- package/resources/workspaces/invites.d.mts +0 -19
- package/resources/workspaces/invites.d.mts.map +1 -1
- package/resources/workspaces/invites.d.ts +0 -19
- package/resources/workspaces/invites.d.ts.map +1 -1
- package/src/client.ts +9 -1
- package/src/resources/commits/test-results.ts +85 -0
- package/src/resources/index.ts +7 -1
- package/src/resources/inference-pipelines/inference-pipelines.ts +24 -24
- package/src/resources/inference-pipelines/test-results.ts +85 -0
- package/src/resources/projects/inference-pipelines.ts +46 -46
- package/src/resources/tests.ts +820 -1
- package/src/resources/workspaces/invites.ts +0 -24
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/tests.ts
CHANGED
|
@@ -27,6 +27,24 @@ export class Tests extends APIResource {
|
|
|
27
27
|
): APIPromise<TestEvaluateResponse> {
|
|
28
28
|
return this._client.post(path`/tests/${testID}/evaluate`, { body, ...options });
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* List the test results for a test.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const response = await client.tests.listResults(
|
|
37
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
listResults(
|
|
42
|
+
testID: string,
|
|
43
|
+
query: TestListResultsParams | null | undefined = {},
|
|
44
|
+
options?: RequestOptions,
|
|
45
|
+
): APIPromise<TestListResultsResponse> {
|
|
46
|
+
return this._client.get(path`/tests/${testID}/results`, { query, ...options });
|
|
47
|
+
}
|
|
30
48
|
}
|
|
31
49
|
|
|
32
50
|
export interface TestEvaluateResponse {
|
|
@@ -72,6 +90,760 @@ export namespace TestEvaluateResponse {
|
|
|
72
90
|
}
|
|
73
91
|
}
|
|
74
92
|
|
|
93
|
+
export interface TestListResultsResponse {
|
|
94
|
+
items: Array<TestListResultsResponse.Item>;
|
|
95
|
+
|
|
96
|
+
lastUnskippedResult?: TestListResultsResponse.LastUnskippedResult | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export namespace TestListResultsResponse {
|
|
100
|
+
export interface Item {
|
|
101
|
+
/**
|
|
102
|
+
* Project version (commit) id.
|
|
103
|
+
*/
|
|
104
|
+
id: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The creation date.
|
|
108
|
+
*/
|
|
109
|
+
dateCreated: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The data end date.
|
|
113
|
+
*/
|
|
114
|
+
dateDataEnds: string | null;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The data start date.
|
|
118
|
+
*/
|
|
119
|
+
dateDataStarts: string | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The last updated date.
|
|
123
|
+
*/
|
|
124
|
+
dateUpdated: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The inference pipeline id.
|
|
128
|
+
*/
|
|
129
|
+
inferencePipelineId: string | null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The project version (commit) id.
|
|
133
|
+
*/
|
|
134
|
+
projectVersionId: string | null;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The status of the test.
|
|
138
|
+
*/
|
|
139
|
+
status: 'running' | 'passing' | 'failing' | 'skipped' | 'error';
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The status message.
|
|
143
|
+
*/
|
|
144
|
+
statusMessage: string | null;
|
|
145
|
+
|
|
146
|
+
expectedValues?: Array<Item.ExpectedValue>;
|
|
147
|
+
|
|
148
|
+
goal?: Item.Goal;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The test id.
|
|
152
|
+
*/
|
|
153
|
+
goalId?: string | null;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The URL to the rows of the test result.
|
|
157
|
+
*/
|
|
158
|
+
rows?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The body of the rows request.
|
|
162
|
+
*/
|
|
163
|
+
rowsBody?: Item.RowsBody | null;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export namespace Item {
|
|
167
|
+
export interface ExpectedValue {
|
|
168
|
+
/**
|
|
169
|
+
* the lower threshold for the expected value
|
|
170
|
+
*/
|
|
171
|
+
lowerThreshold?: number | null;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* One of the `measurement` values in the test's thresholds
|
|
175
|
+
*/
|
|
176
|
+
measurement?: string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The upper threshold for the expected value
|
|
180
|
+
*/
|
|
181
|
+
upperThreshold?: number | null;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface Goal {
|
|
185
|
+
/**
|
|
186
|
+
* The test id.
|
|
187
|
+
*/
|
|
188
|
+
id: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The number of comments on the test.
|
|
192
|
+
*/
|
|
193
|
+
commentCount: number;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The test creator id.
|
|
197
|
+
*/
|
|
198
|
+
creatorId: string | null;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The date the test was archived.
|
|
202
|
+
*/
|
|
203
|
+
dateArchived: string | null;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The creation date.
|
|
207
|
+
*/
|
|
208
|
+
dateCreated: string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The last updated date.
|
|
212
|
+
*/
|
|
213
|
+
dateUpdated: string;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The test description.
|
|
217
|
+
*/
|
|
218
|
+
description: unknown | null;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The test name.
|
|
222
|
+
*/
|
|
223
|
+
name: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The test number.
|
|
227
|
+
*/
|
|
228
|
+
number: number;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* The project version (commit) id where the test was created.
|
|
232
|
+
*/
|
|
233
|
+
originProjectVersionId: string | null;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The test subtype.
|
|
237
|
+
*/
|
|
238
|
+
subtype:
|
|
239
|
+
| 'anomalousColumnCount'
|
|
240
|
+
| 'characterLength'
|
|
241
|
+
| 'classImbalanceRatio'
|
|
242
|
+
| 'expectColumnAToBeInColumnB'
|
|
243
|
+
| 'columnAverage'
|
|
244
|
+
| 'columnDrift'
|
|
245
|
+
| 'columnStatistic'
|
|
246
|
+
| 'columnValuesMatch'
|
|
247
|
+
| 'conflictingLabelRowCount'
|
|
248
|
+
| 'containsPii'
|
|
249
|
+
| 'containsValidUrl'
|
|
250
|
+
| 'correlatedFeatureCount'
|
|
251
|
+
| 'customMetricThreshold'
|
|
252
|
+
| 'duplicateRowCount'
|
|
253
|
+
| 'emptyFeature'
|
|
254
|
+
| 'emptyFeatureCount'
|
|
255
|
+
| 'driftedFeatureCount'
|
|
256
|
+
| 'featureMissingValues'
|
|
257
|
+
| 'featureValueValidation'
|
|
258
|
+
| 'greatExpectations'
|
|
259
|
+
| 'groupByColumnStatsCheck'
|
|
260
|
+
| 'illFormedRowCount'
|
|
261
|
+
| 'isCode'
|
|
262
|
+
| 'isJson'
|
|
263
|
+
| 'llmRubricThresholdV2'
|
|
264
|
+
| 'labelDrift'
|
|
265
|
+
| 'metricThreshold'
|
|
266
|
+
| 'newCategoryCount'
|
|
267
|
+
| 'newLabelCount'
|
|
268
|
+
| 'nullRowCount'
|
|
269
|
+
| 'rowCount'
|
|
270
|
+
| 'ppScoreValueValidation'
|
|
271
|
+
| 'quasiConstantFeature'
|
|
272
|
+
| 'quasiConstantFeatureCount'
|
|
273
|
+
| 'sqlQuery'
|
|
274
|
+
| 'dtypeValidation'
|
|
275
|
+
| 'sentenceLength'
|
|
276
|
+
| 'sizeRatio'
|
|
277
|
+
| 'specialCharactersRatio'
|
|
278
|
+
| 'stringValidation'
|
|
279
|
+
| 'trainValLeakageRowCount';
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Whether the test is suggested or user-created.
|
|
283
|
+
*/
|
|
284
|
+
suggested: boolean;
|
|
285
|
+
|
|
286
|
+
thresholds: Array<Goal.Threshold>;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The test type.
|
|
290
|
+
*/
|
|
291
|
+
type: 'integrity' | 'consistency' | 'performance';
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Whether the test is archived.
|
|
295
|
+
*/
|
|
296
|
+
archived?: boolean;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* The delay window in seconds. Only applies to tests that use production data.
|
|
300
|
+
*/
|
|
301
|
+
delayWindow?: number | null;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* The evaluation window in seconds. Only applies to tests that use production
|
|
305
|
+
* data.
|
|
306
|
+
*/
|
|
307
|
+
evaluationWindow?: number | null;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Whether the test uses an ML model.
|
|
311
|
+
*/
|
|
312
|
+
usesMlModel?: boolean;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Whether the test uses production data (monitoring mode only).
|
|
316
|
+
*/
|
|
317
|
+
usesProductionData?: boolean;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Whether the test uses a reference dataset (monitoring mode only).
|
|
321
|
+
*/
|
|
322
|
+
usesReferenceDataset?: boolean;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Whether the test uses a training dataset.
|
|
326
|
+
*/
|
|
327
|
+
usesTrainingDataset?: boolean;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Whether the test uses a validation dataset.
|
|
331
|
+
*/
|
|
332
|
+
usesValidationDataset?: boolean;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export namespace Goal {
|
|
336
|
+
export interface Threshold {
|
|
337
|
+
/**
|
|
338
|
+
* The insight name to be evaluated.
|
|
339
|
+
*/
|
|
340
|
+
insightName?:
|
|
341
|
+
| 'characterLength'
|
|
342
|
+
| 'classImbalance'
|
|
343
|
+
| 'expectColumnAToBeInColumnB'
|
|
344
|
+
| 'columnAverage'
|
|
345
|
+
| 'columnDrift'
|
|
346
|
+
| 'columnValuesMatch'
|
|
347
|
+
| 'confidenceDistribution'
|
|
348
|
+
| 'conflictingLabelRowCount'
|
|
349
|
+
| 'containsPii'
|
|
350
|
+
| 'containsValidUrl'
|
|
351
|
+
| 'correlatedFeatures'
|
|
352
|
+
| 'customMetric'
|
|
353
|
+
| 'duplicateRowCount'
|
|
354
|
+
| 'emptyFeatures'
|
|
355
|
+
| 'featureDrift'
|
|
356
|
+
| 'featureProfile'
|
|
357
|
+
| 'greatExpectations'
|
|
358
|
+
| 'groupByColumnStatsCheck'
|
|
359
|
+
| 'illFormedRowCount'
|
|
360
|
+
| 'isCode'
|
|
361
|
+
| 'isJson'
|
|
362
|
+
| 'llmRubricV2'
|
|
363
|
+
| 'labelDrift'
|
|
364
|
+
| 'metrics'
|
|
365
|
+
| 'newCategories'
|
|
366
|
+
| 'newLabels'
|
|
367
|
+
| 'nullRowCount'
|
|
368
|
+
| 'ppScore'
|
|
369
|
+
| 'quasiConstantFeatures'
|
|
370
|
+
| 'sentenceLength'
|
|
371
|
+
| 'sizeRatio'
|
|
372
|
+
| 'specialCharacters'
|
|
373
|
+
| 'stringValidation'
|
|
374
|
+
| 'trainValLeakageRowCount';
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* The insight parameters. Required only for some test subtypes. For example, for
|
|
378
|
+
* tests that require a column name, the insight parameters will be [{'name':
|
|
379
|
+
* 'column_name', 'value': 'Age'}]
|
|
380
|
+
*/
|
|
381
|
+
insightParameters?: Array<Threshold.InsightParameter> | null;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* The measurement to be evaluated.
|
|
385
|
+
*/
|
|
386
|
+
measurement?: string;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* The operator to be used for the evaluation.
|
|
390
|
+
*/
|
|
391
|
+
operator?: 'is' | '>' | '>=' | '<' | '<=' | '!=';
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Whether to use automatic anomaly detection or manual thresholds
|
|
395
|
+
*/
|
|
396
|
+
thresholdMode?: 'automatic' | 'manual';
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* The value to be compared.
|
|
400
|
+
*/
|
|
401
|
+
value?: number | boolean | string | Array<string>;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export namespace Threshold {
|
|
405
|
+
export interface InsightParameter {
|
|
406
|
+
/**
|
|
407
|
+
* The name of the insight filter.
|
|
408
|
+
*/
|
|
409
|
+
name: string;
|
|
410
|
+
|
|
411
|
+
value: unknown;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* The body of the rows request.
|
|
418
|
+
*/
|
|
419
|
+
export interface RowsBody {
|
|
420
|
+
columnFilters?: Array<
|
|
421
|
+
RowsBody.SetColumnFilter | RowsBody.NumericColumnFilter | RowsBody.StringColumnFilter
|
|
422
|
+
> | null;
|
|
423
|
+
|
|
424
|
+
excludeRowIdList?: Array<number> | null;
|
|
425
|
+
|
|
426
|
+
notSearchQueryAnd?: Array<string> | null;
|
|
427
|
+
|
|
428
|
+
notSearchQueryOr?: Array<string> | null;
|
|
429
|
+
|
|
430
|
+
rowIdList?: Array<number> | null;
|
|
431
|
+
|
|
432
|
+
searchQueryAnd?: Array<string> | null;
|
|
433
|
+
|
|
434
|
+
searchQueryOr?: Array<string> | null;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export namespace RowsBody {
|
|
438
|
+
export interface SetColumnFilter {
|
|
439
|
+
/**
|
|
440
|
+
* The name of the column.
|
|
441
|
+
*/
|
|
442
|
+
measurement: string;
|
|
443
|
+
|
|
444
|
+
operator: 'contains_none' | 'contains_any' | 'contains_all' | 'one_of' | 'none_of';
|
|
445
|
+
|
|
446
|
+
value: Array<string | number>;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export interface NumericColumnFilter {
|
|
450
|
+
/**
|
|
451
|
+
* The name of the column.
|
|
452
|
+
*/
|
|
453
|
+
measurement: string;
|
|
454
|
+
|
|
455
|
+
operator: '>' | '>=' | 'is' | '<' | '<=' | '!=';
|
|
456
|
+
|
|
457
|
+
value: number | null;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
export interface StringColumnFilter {
|
|
461
|
+
/**
|
|
462
|
+
* The name of the column.
|
|
463
|
+
*/
|
|
464
|
+
measurement: string;
|
|
465
|
+
|
|
466
|
+
operator: 'is' | '!=';
|
|
467
|
+
|
|
468
|
+
value: string | boolean;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export interface LastUnskippedResult {
|
|
474
|
+
/**
|
|
475
|
+
* Project version (commit) id.
|
|
476
|
+
*/
|
|
477
|
+
id: string;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* The creation date.
|
|
481
|
+
*/
|
|
482
|
+
dateCreated: string;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* The data end date.
|
|
486
|
+
*/
|
|
487
|
+
dateDataEnds: string | null;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* The data start date.
|
|
491
|
+
*/
|
|
492
|
+
dateDataStarts: string | null;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* The last updated date.
|
|
496
|
+
*/
|
|
497
|
+
dateUpdated: string;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* The inference pipeline id.
|
|
501
|
+
*/
|
|
502
|
+
inferencePipelineId: string | null;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* The project version (commit) id.
|
|
506
|
+
*/
|
|
507
|
+
projectVersionId: string | null;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* The status of the test.
|
|
511
|
+
*/
|
|
512
|
+
status: 'running' | 'passing' | 'failing' | 'skipped' | 'error';
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The status message.
|
|
516
|
+
*/
|
|
517
|
+
statusMessage: string | null;
|
|
518
|
+
|
|
519
|
+
expectedValues?: Array<LastUnskippedResult.ExpectedValue>;
|
|
520
|
+
|
|
521
|
+
goal?: LastUnskippedResult.Goal;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* The test id.
|
|
525
|
+
*/
|
|
526
|
+
goalId?: string | null;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* The URL to the rows of the test result.
|
|
530
|
+
*/
|
|
531
|
+
rows?: string;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* The body of the rows request.
|
|
535
|
+
*/
|
|
536
|
+
rowsBody?: LastUnskippedResult.RowsBody | null;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export namespace LastUnskippedResult {
|
|
540
|
+
export interface ExpectedValue {
|
|
541
|
+
/**
|
|
542
|
+
* the lower threshold for the expected value
|
|
543
|
+
*/
|
|
544
|
+
lowerThreshold?: number | null;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* One of the `measurement` values in the test's thresholds
|
|
548
|
+
*/
|
|
549
|
+
measurement?: string;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* The upper threshold for the expected value
|
|
553
|
+
*/
|
|
554
|
+
upperThreshold?: number | null;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export interface Goal {
|
|
558
|
+
/**
|
|
559
|
+
* The test id.
|
|
560
|
+
*/
|
|
561
|
+
id: string;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* The number of comments on the test.
|
|
565
|
+
*/
|
|
566
|
+
commentCount: number;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* The test creator id.
|
|
570
|
+
*/
|
|
571
|
+
creatorId: string | null;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* The date the test was archived.
|
|
575
|
+
*/
|
|
576
|
+
dateArchived: string | null;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* The creation date.
|
|
580
|
+
*/
|
|
581
|
+
dateCreated: string;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* The last updated date.
|
|
585
|
+
*/
|
|
586
|
+
dateUpdated: string;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* The test description.
|
|
590
|
+
*/
|
|
591
|
+
description: unknown | null;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* The test name.
|
|
595
|
+
*/
|
|
596
|
+
name: string;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* The test number.
|
|
600
|
+
*/
|
|
601
|
+
number: number;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* The project version (commit) id where the test was created.
|
|
605
|
+
*/
|
|
606
|
+
originProjectVersionId: string | null;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* The test subtype.
|
|
610
|
+
*/
|
|
611
|
+
subtype:
|
|
612
|
+
| 'anomalousColumnCount'
|
|
613
|
+
| 'characterLength'
|
|
614
|
+
| 'classImbalanceRatio'
|
|
615
|
+
| 'expectColumnAToBeInColumnB'
|
|
616
|
+
| 'columnAverage'
|
|
617
|
+
| 'columnDrift'
|
|
618
|
+
| 'columnStatistic'
|
|
619
|
+
| 'columnValuesMatch'
|
|
620
|
+
| 'conflictingLabelRowCount'
|
|
621
|
+
| 'containsPii'
|
|
622
|
+
| 'containsValidUrl'
|
|
623
|
+
| 'correlatedFeatureCount'
|
|
624
|
+
| 'customMetricThreshold'
|
|
625
|
+
| 'duplicateRowCount'
|
|
626
|
+
| 'emptyFeature'
|
|
627
|
+
| 'emptyFeatureCount'
|
|
628
|
+
| 'driftedFeatureCount'
|
|
629
|
+
| 'featureMissingValues'
|
|
630
|
+
| 'featureValueValidation'
|
|
631
|
+
| 'greatExpectations'
|
|
632
|
+
| 'groupByColumnStatsCheck'
|
|
633
|
+
| 'illFormedRowCount'
|
|
634
|
+
| 'isCode'
|
|
635
|
+
| 'isJson'
|
|
636
|
+
| 'llmRubricThresholdV2'
|
|
637
|
+
| 'labelDrift'
|
|
638
|
+
| 'metricThreshold'
|
|
639
|
+
| 'newCategoryCount'
|
|
640
|
+
| 'newLabelCount'
|
|
641
|
+
| 'nullRowCount'
|
|
642
|
+
| 'rowCount'
|
|
643
|
+
| 'ppScoreValueValidation'
|
|
644
|
+
| 'quasiConstantFeature'
|
|
645
|
+
| 'quasiConstantFeatureCount'
|
|
646
|
+
| 'sqlQuery'
|
|
647
|
+
| 'dtypeValidation'
|
|
648
|
+
| 'sentenceLength'
|
|
649
|
+
| 'sizeRatio'
|
|
650
|
+
| 'specialCharactersRatio'
|
|
651
|
+
| 'stringValidation'
|
|
652
|
+
| 'trainValLeakageRowCount';
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Whether the test is suggested or user-created.
|
|
656
|
+
*/
|
|
657
|
+
suggested: boolean;
|
|
658
|
+
|
|
659
|
+
thresholds: Array<Goal.Threshold>;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* The test type.
|
|
663
|
+
*/
|
|
664
|
+
type: 'integrity' | 'consistency' | 'performance';
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Whether the test is archived.
|
|
668
|
+
*/
|
|
669
|
+
archived?: boolean;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* The delay window in seconds. Only applies to tests that use production data.
|
|
673
|
+
*/
|
|
674
|
+
delayWindow?: number | null;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* The evaluation window in seconds. Only applies to tests that use production
|
|
678
|
+
* data.
|
|
679
|
+
*/
|
|
680
|
+
evaluationWindow?: number | null;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Whether the test uses an ML model.
|
|
684
|
+
*/
|
|
685
|
+
usesMlModel?: boolean;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Whether the test uses production data (monitoring mode only).
|
|
689
|
+
*/
|
|
690
|
+
usesProductionData?: boolean;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Whether the test uses a reference dataset (monitoring mode only).
|
|
694
|
+
*/
|
|
695
|
+
usesReferenceDataset?: boolean;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Whether the test uses a training dataset.
|
|
699
|
+
*/
|
|
700
|
+
usesTrainingDataset?: boolean;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Whether the test uses a validation dataset.
|
|
704
|
+
*/
|
|
705
|
+
usesValidationDataset?: boolean;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
export namespace Goal {
|
|
709
|
+
export interface Threshold {
|
|
710
|
+
/**
|
|
711
|
+
* The insight name to be evaluated.
|
|
712
|
+
*/
|
|
713
|
+
insightName?:
|
|
714
|
+
| 'characterLength'
|
|
715
|
+
| 'classImbalance'
|
|
716
|
+
| 'expectColumnAToBeInColumnB'
|
|
717
|
+
| 'columnAverage'
|
|
718
|
+
| 'columnDrift'
|
|
719
|
+
| 'columnValuesMatch'
|
|
720
|
+
| 'confidenceDistribution'
|
|
721
|
+
| 'conflictingLabelRowCount'
|
|
722
|
+
| 'containsPii'
|
|
723
|
+
| 'containsValidUrl'
|
|
724
|
+
| 'correlatedFeatures'
|
|
725
|
+
| 'customMetric'
|
|
726
|
+
| 'duplicateRowCount'
|
|
727
|
+
| 'emptyFeatures'
|
|
728
|
+
| 'featureDrift'
|
|
729
|
+
| 'featureProfile'
|
|
730
|
+
| 'greatExpectations'
|
|
731
|
+
| 'groupByColumnStatsCheck'
|
|
732
|
+
| 'illFormedRowCount'
|
|
733
|
+
| 'isCode'
|
|
734
|
+
| 'isJson'
|
|
735
|
+
| 'llmRubricV2'
|
|
736
|
+
| 'labelDrift'
|
|
737
|
+
| 'metrics'
|
|
738
|
+
| 'newCategories'
|
|
739
|
+
| 'newLabels'
|
|
740
|
+
| 'nullRowCount'
|
|
741
|
+
| 'ppScore'
|
|
742
|
+
| 'quasiConstantFeatures'
|
|
743
|
+
| 'sentenceLength'
|
|
744
|
+
| 'sizeRatio'
|
|
745
|
+
| 'specialCharacters'
|
|
746
|
+
| 'stringValidation'
|
|
747
|
+
| 'trainValLeakageRowCount';
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* The insight parameters. Required only for some test subtypes. For example, for
|
|
751
|
+
* tests that require a column name, the insight parameters will be [{'name':
|
|
752
|
+
* 'column_name', 'value': 'Age'}]
|
|
753
|
+
*/
|
|
754
|
+
insightParameters?: Array<Threshold.InsightParameter> | null;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* The measurement to be evaluated.
|
|
758
|
+
*/
|
|
759
|
+
measurement?: string;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* The operator to be used for the evaluation.
|
|
763
|
+
*/
|
|
764
|
+
operator?: 'is' | '>' | '>=' | '<' | '<=' | '!=';
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Whether to use automatic anomaly detection or manual thresholds
|
|
768
|
+
*/
|
|
769
|
+
thresholdMode?: 'automatic' | 'manual';
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* The value to be compared.
|
|
773
|
+
*/
|
|
774
|
+
value?: number | boolean | string | Array<string>;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export namespace Threshold {
|
|
778
|
+
export interface InsightParameter {
|
|
779
|
+
/**
|
|
780
|
+
* The name of the insight filter.
|
|
781
|
+
*/
|
|
782
|
+
name: string;
|
|
783
|
+
|
|
784
|
+
value: unknown;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* The body of the rows request.
|
|
791
|
+
*/
|
|
792
|
+
export interface RowsBody {
|
|
793
|
+
columnFilters?: Array<
|
|
794
|
+
RowsBody.SetColumnFilter | RowsBody.NumericColumnFilter | RowsBody.StringColumnFilter
|
|
795
|
+
> | null;
|
|
796
|
+
|
|
797
|
+
excludeRowIdList?: Array<number> | null;
|
|
798
|
+
|
|
799
|
+
notSearchQueryAnd?: Array<string> | null;
|
|
800
|
+
|
|
801
|
+
notSearchQueryOr?: Array<string> | null;
|
|
802
|
+
|
|
803
|
+
rowIdList?: Array<number> | null;
|
|
804
|
+
|
|
805
|
+
searchQueryAnd?: Array<string> | null;
|
|
806
|
+
|
|
807
|
+
searchQueryOr?: Array<string> | null;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export namespace RowsBody {
|
|
811
|
+
export interface SetColumnFilter {
|
|
812
|
+
/**
|
|
813
|
+
* The name of the column.
|
|
814
|
+
*/
|
|
815
|
+
measurement: string;
|
|
816
|
+
|
|
817
|
+
operator: 'contains_none' | 'contains_any' | 'contains_all' | 'one_of' | 'none_of';
|
|
818
|
+
|
|
819
|
+
value: Array<string | number>;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
export interface NumericColumnFilter {
|
|
823
|
+
/**
|
|
824
|
+
* The name of the column.
|
|
825
|
+
*/
|
|
826
|
+
measurement: string;
|
|
827
|
+
|
|
828
|
+
operator: '>' | '>=' | 'is' | '<' | '<=' | '!=';
|
|
829
|
+
|
|
830
|
+
value: number | null;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
export interface StringColumnFilter {
|
|
834
|
+
/**
|
|
835
|
+
* The name of the column.
|
|
836
|
+
*/
|
|
837
|
+
measurement: string;
|
|
838
|
+
|
|
839
|
+
operator: 'is' | '!=';
|
|
840
|
+
|
|
841
|
+
value: string | boolean;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
75
847
|
export interface TestEvaluateParams {
|
|
76
848
|
/**
|
|
77
849
|
* End timestamp in seconds (Unix epoch)
|
|
@@ -95,6 +867,53 @@ export interface TestEvaluateParams {
|
|
|
95
867
|
overwriteResults?: boolean;
|
|
96
868
|
}
|
|
97
869
|
|
|
870
|
+
export interface TestListResultsParams {
|
|
871
|
+
/**
|
|
872
|
+
* Filter for results that use data starting before the end timestamp.
|
|
873
|
+
*/
|
|
874
|
+
endTimestamp?: number;
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Include the insights linked to each test result
|
|
878
|
+
*/
|
|
879
|
+
includeInsights?: boolean;
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Retrive test results for a specific inference pipeline.
|
|
883
|
+
*/
|
|
884
|
+
inferencePipelineId?: string | null;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* The page to return in a paginated query.
|
|
888
|
+
*/
|
|
889
|
+
page?: number;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Maximum number of items to return per page.
|
|
893
|
+
*/
|
|
894
|
+
perPage?: number;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Retrive test results for a specific project version.
|
|
898
|
+
*/
|
|
899
|
+
projectVersionId?: string | null;
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Filter for results that use data ending after the start timestamp.
|
|
903
|
+
*/
|
|
904
|
+
startTimestamp?: number;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Filter by status(es).
|
|
908
|
+
*/
|
|
909
|
+
status?: Array<string>;
|
|
910
|
+
}
|
|
911
|
+
|
|
98
912
|
export declare namespace Tests {
|
|
99
|
-
export {
|
|
913
|
+
export {
|
|
914
|
+
type TestEvaluateResponse as TestEvaluateResponse,
|
|
915
|
+
type TestListResultsResponse as TestListResultsResponse,
|
|
916
|
+
type TestEvaluateParams as TestEvaluateParams,
|
|
917
|
+
type TestListResultsParams as TestListResultsParams,
|
|
918
|
+
};
|
|
100
919
|
}
|