edge-impulse-api 1.71.25 → 1.71.26
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.
|
@@ -71,6 +71,9 @@ type batchAddMetadataQueryParams = {
|
|
|
71
71
|
minLabel?: number;
|
|
72
72
|
maxLabel?: number;
|
|
73
73
|
search?: string;
|
|
74
|
+
dataType?: 'audio' | 'image';
|
|
75
|
+
minId?: number;
|
|
76
|
+
maxId?: number;
|
|
74
77
|
};
|
|
75
78
|
type batchClearMetadataQueryParams = {
|
|
76
79
|
category: 'training' | 'testing' | 'anomaly';
|
|
@@ -87,6 +90,9 @@ type batchClearMetadataQueryParams = {
|
|
|
87
90
|
minLabel?: number;
|
|
88
91
|
maxLabel?: number;
|
|
89
92
|
search?: string;
|
|
93
|
+
dataType?: 'audio' | 'image';
|
|
94
|
+
minId?: number;
|
|
95
|
+
maxId?: number;
|
|
90
96
|
};
|
|
91
97
|
type batchClearMetadataByKeyQueryParams = {
|
|
92
98
|
category: 'training' | 'testing' | 'anomaly';
|
|
@@ -103,6 +109,9 @@ type batchClearMetadataByKeyQueryParams = {
|
|
|
103
109
|
minLabel?: number;
|
|
104
110
|
maxLabel?: number;
|
|
105
111
|
search?: string;
|
|
112
|
+
dataType?: 'audio' | 'image';
|
|
113
|
+
minId?: number;
|
|
114
|
+
maxId?: number;
|
|
106
115
|
};
|
|
107
116
|
type batchDeleteQueryParams = {
|
|
108
117
|
category: 'training' | 'testing' | 'anomaly';
|
|
@@ -119,6 +128,9 @@ type batchDeleteQueryParams = {
|
|
|
119
128
|
minLabel?: number;
|
|
120
129
|
maxLabel?: number;
|
|
121
130
|
search?: string;
|
|
131
|
+
dataType?: 'audio' | 'image';
|
|
132
|
+
minId?: number;
|
|
133
|
+
maxId?: number;
|
|
122
134
|
};
|
|
123
135
|
type batchDisableQueryParams = {
|
|
124
136
|
category: 'training' | 'testing' | 'anomaly';
|
|
@@ -135,6 +147,9 @@ type batchDisableQueryParams = {
|
|
|
135
147
|
minLabel?: number;
|
|
136
148
|
maxLabel?: number;
|
|
137
149
|
search?: string;
|
|
150
|
+
dataType?: 'audio' | 'image';
|
|
151
|
+
minId?: number;
|
|
152
|
+
maxId?: number;
|
|
138
153
|
};
|
|
139
154
|
type batchEditLabelsQueryParams = {
|
|
140
155
|
category: 'training' | 'testing' | 'anomaly';
|
|
@@ -151,6 +166,9 @@ type batchEditLabelsQueryParams = {
|
|
|
151
166
|
minLabel?: number;
|
|
152
167
|
maxLabel?: number;
|
|
153
168
|
search?: string;
|
|
169
|
+
dataType?: 'audio' | 'image';
|
|
170
|
+
minId?: number;
|
|
171
|
+
maxId?: number;
|
|
154
172
|
};
|
|
155
173
|
type batchEnableQueryParams = {
|
|
156
174
|
category: 'training' | 'testing' | 'anomaly';
|
|
@@ -167,6 +185,9 @@ type batchEnableQueryParams = {
|
|
|
167
185
|
minLabel?: number;
|
|
168
186
|
maxLabel?: number;
|
|
169
187
|
search?: string;
|
|
188
|
+
dataType?: 'audio' | 'image';
|
|
189
|
+
minId?: number;
|
|
190
|
+
maxId?: number;
|
|
170
191
|
};
|
|
171
192
|
type batchMoveQueryParams = {
|
|
172
193
|
category: 'training' | 'testing' | 'anomaly';
|
|
@@ -183,6 +204,9 @@ type batchMoveQueryParams = {
|
|
|
183
204
|
minLabel?: number;
|
|
184
205
|
maxLabel?: number;
|
|
185
206
|
search?: string;
|
|
207
|
+
dataType?: 'audio' | 'image';
|
|
208
|
+
minId?: number;
|
|
209
|
+
maxId?: number;
|
|
186
210
|
};
|
|
187
211
|
type countSamplesQueryParams = {
|
|
188
212
|
category: 'training' | 'testing' | 'anomaly';
|
|
@@ -197,6 +221,9 @@ type countSamplesQueryParams = {
|
|
|
197
221
|
minLabel?: number;
|
|
198
222
|
maxLabel?: number;
|
|
199
223
|
search?: string;
|
|
224
|
+
dataType?: 'audio' | 'image';
|
|
225
|
+
minId?: number;
|
|
226
|
+
maxId?: number;
|
|
200
227
|
};
|
|
201
228
|
type getAllImportedFromQueryParams = {
|
|
202
229
|
limit?: number;
|
|
@@ -259,6 +286,9 @@ type listSamplesQueryParams = {
|
|
|
259
286
|
search?: string;
|
|
260
287
|
proposedActionsJobId?: number;
|
|
261
288
|
truncateStructuredLabels?: boolean;
|
|
289
|
+
dataType?: 'audio' | 'image';
|
|
290
|
+
minId?: number;
|
|
291
|
+
maxId?: number;
|
|
262
292
|
};
|
|
263
293
|
export type uploadDataExplorerScreenshotFormParams = {
|
|
264
294
|
image: RequestFile;
|
|
@@ -306,6 +336,9 @@ export declare class RawDataApi {
|
|
|
306
336
|
* @param minLabel Only include samples with a label >= this value
|
|
307
337
|
* @param maxLabel Only include samples with a label < this value
|
|
308
338
|
* @param search Search query
|
|
339
|
+
* @param dataType Include only samples with a particular data type
|
|
340
|
+
* @param minId Include only samples with an ID >= this value
|
|
341
|
+
* @param maxId Include only samples with an ID < this value
|
|
309
342
|
*/
|
|
310
343
|
batchAddMetadata(projectId: number, batchAddMetadataRequest: BatchAddMetadataRequest, queryParams: batchAddMetadataQueryParams, options?: {
|
|
311
344
|
headers: {
|
|
@@ -330,6 +363,9 @@ export declare class RawDataApi {
|
|
|
330
363
|
* @param minLabel Only include samples with a label >= this value
|
|
331
364
|
* @param maxLabel Only include samples with a label < this value
|
|
332
365
|
* @param search Search query
|
|
366
|
+
* @param dataType Include only samples with a particular data type
|
|
367
|
+
* @param minId Include only samples with an ID >= this value
|
|
368
|
+
* @param maxId Include only samples with an ID < this value
|
|
333
369
|
*/
|
|
334
370
|
batchClearMetadata(projectId: number, queryParams: batchClearMetadataQueryParams, options?: {
|
|
335
371
|
headers: {
|
|
@@ -355,6 +391,9 @@ export declare class RawDataApi {
|
|
|
355
391
|
* @param minLabel Only include samples with a label >= this value
|
|
356
392
|
* @param maxLabel Only include samples with a label < this value
|
|
357
393
|
* @param search Search query
|
|
394
|
+
* @param dataType Include only samples with a particular data type
|
|
395
|
+
* @param minId Include only samples with an ID >= this value
|
|
396
|
+
* @param maxId Include only samples with an ID < this value
|
|
358
397
|
*/
|
|
359
398
|
batchClearMetadataByKey(projectId: number, batchClearMetadataByKeyRequest: BatchClearMetadataByKeyRequest, queryParams: batchClearMetadataByKeyQueryParams, options?: {
|
|
360
399
|
headers: {
|
|
@@ -379,6 +418,9 @@ export declare class RawDataApi {
|
|
|
379
418
|
* @param minLabel Only include samples with a label >= this value
|
|
380
419
|
* @param maxLabel Only include samples with a label < this value
|
|
381
420
|
* @param search Search query
|
|
421
|
+
* @param dataType Include only samples with a particular data type
|
|
422
|
+
* @param minId Include only samples with an ID >= this value
|
|
423
|
+
* @param maxId Include only samples with an ID < this value
|
|
382
424
|
*/
|
|
383
425
|
batchDelete(projectId: number, queryParams: batchDeleteQueryParams, options?: {
|
|
384
426
|
headers: {
|
|
@@ -403,6 +445,9 @@ export declare class RawDataApi {
|
|
|
403
445
|
* @param minLabel Only include samples with a label >= this value
|
|
404
446
|
* @param maxLabel Only include samples with a label < this value
|
|
405
447
|
* @param search Search query
|
|
448
|
+
* @param dataType Include only samples with a particular data type
|
|
449
|
+
* @param minId Include only samples with an ID >= this value
|
|
450
|
+
* @param maxId Include only samples with an ID < this value
|
|
406
451
|
*/
|
|
407
452
|
batchDisable(projectId: number, queryParams: batchDisableQueryParams, options?: {
|
|
408
453
|
headers: {
|
|
@@ -428,6 +473,9 @@ export declare class RawDataApi {
|
|
|
428
473
|
* @param minLabel Only include samples with a label >= this value
|
|
429
474
|
* @param maxLabel Only include samples with a label < this value
|
|
430
475
|
* @param search Search query
|
|
476
|
+
* @param dataType Include only samples with a particular data type
|
|
477
|
+
* @param minId Include only samples with an ID >= this value
|
|
478
|
+
* @param maxId Include only samples with an ID < this value
|
|
431
479
|
*/
|
|
432
480
|
batchEditLabels(projectId: number, editSampleLabelRequest: EditSampleLabelRequest, queryParams: batchEditLabelsQueryParams, options?: {
|
|
433
481
|
headers: {
|
|
@@ -452,6 +500,9 @@ export declare class RawDataApi {
|
|
|
452
500
|
* @param minLabel Only include samples with a label >= this value
|
|
453
501
|
* @param maxLabel Only include samples with a label < this value
|
|
454
502
|
* @param search Search query
|
|
503
|
+
* @param dataType Include only samples with a particular data type
|
|
504
|
+
* @param minId Include only samples with an ID >= this value
|
|
505
|
+
* @param maxId Include only samples with an ID < this value
|
|
455
506
|
*/
|
|
456
507
|
batchEnable(projectId: number, queryParams: batchEnableQueryParams, options?: {
|
|
457
508
|
headers: {
|
|
@@ -477,6 +528,9 @@ export declare class RawDataApi {
|
|
|
477
528
|
* @param minLabel Only include samples with a label >= this value
|
|
478
529
|
* @param maxLabel Only include samples with a label < this value
|
|
479
530
|
* @param search Search query
|
|
531
|
+
* @param dataType Include only samples with a particular data type
|
|
532
|
+
* @param minId Include only samples with an ID >= this value
|
|
533
|
+
* @param maxId Include only samples with an ID < this value
|
|
480
534
|
*/
|
|
481
535
|
batchMove(projectId: number, moveRawDataRequest: MoveRawDataRequest, queryParams: batchMoveQueryParams, options?: {
|
|
482
536
|
headers: {
|
|
@@ -531,6 +585,9 @@ export declare class RawDataApi {
|
|
|
531
585
|
* @param minLabel Only include samples with a label >= this value
|
|
532
586
|
* @param maxLabel Only include samples with a label < this value
|
|
533
587
|
* @param search Search query
|
|
588
|
+
* @param dataType Include only samples with a particular data type
|
|
589
|
+
* @param minId Include only samples with an ID >= this value
|
|
590
|
+
* @param maxId Include only samples with an ID < this value
|
|
534
591
|
*/
|
|
535
592
|
countSamples(projectId: number, queryParams: countSamplesQueryParams, options?: {
|
|
536
593
|
headers: {
|
|
@@ -883,6 +940,9 @@ export declare class RawDataApi {
|
|
|
883
940
|
* @param search Search query
|
|
884
941
|
* @param proposedActionsJobId Pass this parameter when querying samples from inside an AI Action job. If you pass this parameter in a multi-stage AI Action, previous proposed changes (from an earlier step) will be applied to the returned dataset.
|
|
885
942
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
943
|
+
* @param dataType Include only samples with a particular data type
|
|
944
|
+
* @param minId Include only samples with an ID >= this value
|
|
945
|
+
* @param maxId Include only samples with an ID < this value
|
|
886
946
|
*/
|
|
887
947
|
listSamples(projectId: number, queryParams: listSamplesQueryParams, options?: {
|
|
888
948
|
headers: {
|
|
@@ -93,6 +93,9 @@ class RawDataApi {
|
|
|
93
93
|
* @param minLabel Only include samples with a label >= this value
|
|
94
94
|
* @param maxLabel Only include samples with a label < this value
|
|
95
95
|
* @param search Search query
|
|
96
|
+
* @param dataType Include only samples with a particular data type
|
|
97
|
+
* @param minId Include only samples with an ID >= this value
|
|
98
|
+
* @param maxId Include only samples with an ID < this value
|
|
96
99
|
*/
|
|
97
100
|
async batchAddMetadata(projectId, batchAddMetadataRequest, queryParams, options = { headers: {} }) {
|
|
98
101
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/batch/add-metadata'
|
|
@@ -164,6 +167,15 @@ class RawDataApi {
|
|
|
164
167
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
165
168
|
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
166
169
|
}
|
|
170
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
171
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
172
|
+
}
|
|
173
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
174
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
175
|
+
}
|
|
176
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
177
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
178
|
+
}
|
|
167
179
|
Object.assign(localVarHeaderParams, options.headers);
|
|
168
180
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
169
181
|
let localVarUseFormData = false;
|
|
@@ -232,6 +244,9 @@ class RawDataApi {
|
|
|
232
244
|
* @param minLabel Only include samples with a label >= this value
|
|
233
245
|
* @param maxLabel Only include samples with a label < this value
|
|
234
246
|
* @param search Search query
|
|
247
|
+
* @param dataType Include only samples with a particular data type
|
|
248
|
+
* @param minId Include only samples with an ID >= this value
|
|
249
|
+
* @param maxId Include only samples with an ID < this value
|
|
235
250
|
*/
|
|
236
251
|
async batchClearMetadata(projectId, queryParams, options = { headers: {} }) {
|
|
237
252
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/batch/clear-metadata'
|
|
@@ -299,6 +314,15 @@ class RawDataApi {
|
|
|
299
314
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
300
315
|
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
301
316
|
}
|
|
317
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
318
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
319
|
+
}
|
|
320
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
321
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
322
|
+
}
|
|
323
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
324
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
325
|
+
}
|
|
302
326
|
Object.assign(localVarHeaderParams, options.headers);
|
|
303
327
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
304
328
|
let localVarUseFormData = false;
|
|
@@ -367,6 +391,9 @@ class RawDataApi {
|
|
|
367
391
|
* @param minLabel Only include samples with a label >= this value
|
|
368
392
|
* @param maxLabel Only include samples with a label < this value
|
|
369
393
|
* @param search Search query
|
|
394
|
+
* @param dataType Include only samples with a particular data type
|
|
395
|
+
* @param minId Include only samples with an ID >= this value
|
|
396
|
+
* @param maxId Include only samples with an ID < this value
|
|
370
397
|
*/
|
|
371
398
|
async batchClearMetadataByKey(projectId, batchClearMetadataByKeyRequest, queryParams, options = { headers: {} }) {
|
|
372
399
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/batch/clear-metadata-by-key'
|
|
@@ -438,6 +465,15 @@ class RawDataApi {
|
|
|
438
465
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
439
466
|
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
440
467
|
}
|
|
468
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
469
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
470
|
+
}
|
|
471
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
472
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
473
|
+
}
|
|
474
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
475
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
476
|
+
}
|
|
441
477
|
Object.assign(localVarHeaderParams, options.headers);
|
|
442
478
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
443
479
|
let localVarUseFormData = false;
|
|
@@ -506,6 +542,9 @@ class RawDataApi {
|
|
|
506
542
|
* @param minLabel Only include samples with a label >= this value
|
|
507
543
|
* @param maxLabel Only include samples with a label < this value
|
|
508
544
|
* @param search Search query
|
|
545
|
+
* @param dataType Include only samples with a particular data type
|
|
546
|
+
* @param minId Include only samples with an ID >= this value
|
|
547
|
+
* @param maxId Include only samples with an ID < this value
|
|
509
548
|
*/
|
|
510
549
|
async batchDelete(projectId, queryParams, options = { headers: {} }) {
|
|
511
550
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/batch/delete'
|
|
@@ -573,6 +612,15 @@ class RawDataApi {
|
|
|
573
612
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
574
613
|
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
575
614
|
}
|
|
615
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
616
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
617
|
+
}
|
|
618
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
619
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
620
|
+
}
|
|
621
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
622
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
623
|
+
}
|
|
576
624
|
Object.assign(localVarHeaderParams, options.headers);
|
|
577
625
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
578
626
|
let localVarUseFormData = false;
|
|
@@ -640,6 +688,9 @@ class RawDataApi {
|
|
|
640
688
|
* @param minLabel Only include samples with a label >= this value
|
|
641
689
|
* @param maxLabel Only include samples with a label < this value
|
|
642
690
|
* @param search Search query
|
|
691
|
+
* @param dataType Include only samples with a particular data type
|
|
692
|
+
* @param minId Include only samples with an ID >= this value
|
|
693
|
+
* @param maxId Include only samples with an ID < this value
|
|
643
694
|
*/
|
|
644
695
|
async batchDisable(projectId, queryParams, options = { headers: {} }) {
|
|
645
696
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/batch/disable-samples'
|
|
@@ -707,6 +758,15 @@ class RawDataApi {
|
|
|
707
758
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
708
759
|
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
709
760
|
}
|
|
761
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
762
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
763
|
+
}
|
|
764
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
765
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
766
|
+
}
|
|
767
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
768
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
769
|
+
}
|
|
710
770
|
Object.assign(localVarHeaderParams, options.headers);
|
|
711
771
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
712
772
|
let localVarUseFormData = false;
|
|
@@ -775,6 +835,9 @@ class RawDataApi {
|
|
|
775
835
|
* @param minLabel Only include samples with a label >= this value
|
|
776
836
|
* @param maxLabel Only include samples with a label < this value
|
|
777
837
|
* @param search Search query
|
|
838
|
+
* @param dataType Include only samples with a particular data type
|
|
839
|
+
* @param minId Include only samples with an ID >= this value
|
|
840
|
+
* @param maxId Include only samples with an ID < this value
|
|
778
841
|
*/
|
|
779
842
|
async batchEditLabels(projectId, editSampleLabelRequest, queryParams, options = { headers: {} }) {
|
|
780
843
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/batch/edit-labels'
|
|
@@ -846,6 +909,15 @@ class RawDataApi {
|
|
|
846
909
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
847
910
|
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
848
911
|
}
|
|
912
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
913
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
914
|
+
}
|
|
915
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
916
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
917
|
+
}
|
|
918
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
919
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
920
|
+
}
|
|
849
921
|
Object.assign(localVarHeaderParams, options.headers);
|
|
850
922
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
851
923
|
let localVarUseFormData = false;
|
|
@@ -914,6 +986,9 @@ class RawDataApi {
|
|
|
914
986
|
* @param minLabel Only include samples with a label >= this value
|
|
915
987
|
* @param maxLabel Only include samples with a label < this value
|
|
916
988
|
* @param search Search query
|
|
989
|
+
* @param dataType Include only samples with a particular data type
|
|
990
|
+
* @param minId Include only samples with an ID >= this value
|
|
991
|
+
* @param maxId Include only samples with an ID < this value
|
|
917
992
|
*/
|
|
918
993
|
async batchEnable(projectId, queryParams, options = { headers: {} }) {
|
|
919
994
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/batch/enable-samples'
|
|
@@ -981,6 +1056,15 @@ class RawDataApi {
|
|
|
981
1056
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
982
1057
|
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
983
1058
|
}
|
|
1059
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
1060
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
1061
|
+
}
|
|
1062
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
1063
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
1064
|
+
}
|
|
1065
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
1066
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
1067
|
+
}
|
|
984
1068
|
Object.assign(localVarHeaderParams, options.headers);
|
|
985
1069
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
986
1070
|
let localVarUseFormData = false;
|
|
@@ -1049,6 +1133,9 @@ class RawDataApi {
|
|
|
1049
1133
|
* @param minLabel Only include samples with a label >= this value
|
|
1050
1134
|
* @param maxLabel Only include samples with a label < this value
|
|
1051
1135
|
* @param search Search query
|
|
1136
|
+
* @param dataType Include only samples with a particular data type
|
|
1137
|
+
* @param minId Include only samples with an ID >= this value
|
|
1138
|
+
* @param maxId Include only samples with an ID < this value
|
|
1052
1139
|
*/
|
|
1053
1140
|
async batchMove(projectId, moveRawDataRequest, queryParams, options = { headers: {} }) {
|
|
1054
1141
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/batch/moveSamples'
|
|
@@ -1120,6 +1207,15 @@ class RawDataApi {
|
|
|
1120
1207
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
1121
1208
|
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
1122
1209
|
}
|
|
1210
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
1211
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
1212
|
+
}
|
|
1213
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
1214
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
1215
|
+
}
|
|
1216
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
1217
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
1218
|
+
}
|
|
1123
1219
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1124
1220
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1125
1221
|
let localVarUseFormData = false;
|
|
@@ -1420,6 +1516,9 @@ class RawDataApi {
|
|
|
1420
1516
|
* @param minLabel Only include samples with a label >= this value
|
|
1421
1517
|
* @param maxLabel Only include samples with a label < this value
|
|
1422
1518
|
* @param search Search query
|
|
1519
|
+
* @param dataType Include only samples with a particular data type
|
|
1520
|
+
* @param minId Include only samples with an ID >= this value
|
|
1521
|
+
* @param maxId Include only samples with an ID < this value
|
|
1423
1522
|
*/
|
|
1424
1523
|
async countSamples(projectId, queryParams, options = { headers: {} }) {
|
|
1425
1524
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/count'
|
|
@@ -1481,6 +1580,15 @@ class RawDataApi {
|
|
|
1481
1580
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
1482
1581
|
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
1483
1582
|
}
|
|
1583
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
1584
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
1585
|
+
}
|
|
1586
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
1587
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
1588
|
+
}
|
|
1589
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
1590
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
1591
|
+
}
|
|
1484
1592
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1485
1593
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1486
1594
|
let localVarUseFormData = false;
|
|
@@ -3851,6 +3959,9 @@ class RawDataApi {
|
|
|
3851
3959
|
* @param search Search query
|
|
3852
3960
|
* @param proposedActionsJobId Pass this parameter when querying samples from inside an AI Action job. If you pass this parameter in a multi-stage AI Action, previous proposed changes (from an earlier step) will be applied to the returned dataset.
|
|
3853
3961
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
3962
|
+
* @param dataType Include only samples with a particular data type
|
|
3963
|
+
* @param minId Include only samples with an ID >= this value
|
|
3964
|
+
* @param maxId Include only samples with an ID < this value
|
|
3854
3965
|
*/
|
|
3855
3966
|
async listSamples(projectId, queryParams, options = { headers: {} }) {
|
|
3856
3967
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data'
|
|
@@ -3927,6 +4038,15 @@ class RawDataApi {
|
|
|
3927
4038
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateStructuredLabels) !== undefined) {
|
|
3928
4039
|
localVarQueryParameters['truncateStructuredLabels'] = models_1.ObjectSerializer.serialize(queryParams.truncateStructuredLabels, "boolean");
|
|
3929
4040
|
}
|
|
4041
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.dataType) !== undefined) {
|
|
4042
|
+
localVarQueryParameters['dataType'] = models_1.ObjectSerializer.serialize(queryParams.dataType, "'audio' | 'image'");
|
|
4043
|
+
}
|
|
4044
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.minId) !== undefined) {
|
|
4045
|
+
localVarQueryParameters['minId'] = models_1.ObjectSerializer.serialize(queryParams.minId, "number");
|
|
4046
|
+
}
|
|
4047
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxId) !== undefined) {
|
|
4048
|
+
localVarQueryParameters['maxId'] = models_1.ObjectSerializer.serialize(queryParams.maxId, "number");
|
|
4049
|
+
}
|
|
3930
4050
|
Object.assign(localVarHeaderParams, options.headers);
|
|
3931
4051
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3932
4052
|
let localVarUseFormData = false;
|