edge-impulse-api 1.95.26 → 1.95.27
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/build/library/sdk/api/projectsApi.d.ts +11 -1
- package/build/library/sdk/api/projectsApi.js +17 -1
- package/build/library/sdk/api/projectsApi.js.map +1 -1
- package/build/library/sdk/api/rawDataApi.d.ts +24 -2
- package/build/library/sdk/api/rawDataApi.js +42 -2
- package/build/library/sdk/api/rawDataApi.js.map +1 -1
- package/build/library/sdk/model/createImpulseRequest.d.ts +8 -0
- package/build/library/sdk/model/deploymentHistory.d.ts +2 -0
- package/build/library/sdk/model/detailedImpulse.d.ts +2 -0
- package/build/library/sdk/model/impulse.d.ts +6 -0
- package/build/library/sdk/model/savePretrainedModelRequest.d.ts +6 -0
- package/package.json +1 -1
|
@@ -311,6 +311,7 @@ type countSamplesQueryParams = {
|
|
|
311
311
|
metadata?: string;
|
|
312
312
|
minDate?: Date;
|
|
313
313
|
maxDate?: Date;
|
|
314
|
+
datasetVersionId?: number;
|
|
314
315
|
};
|
|
315
316
|
type cropSampleQueryParams = {
|
|
316
317
|
datastreamIndex?: number;
|
|
@@ -350,24 +351,31 @@ type getSampleQueryParams = {
|
|
|
350
351
|
impulseId?: number;
|
|
351
352
|
proposedActionsJobId?: number;
|
|
352
353
|
truncateStructuredLabels?: boolean;
|
|
354
|
+
datasetVersionId?: number;
|
|
353
355
|
};
|
|
354
356
|
type getSampleAsAudioQueryParams = {
|
|
355
357
|
axisIx: number;
|
|
356
358
|
sliceStart?: number;
|
|
357
359
|
sliceEnd?: number;
|
|
358
360
|
cacheKey?: string;
|
|
361
|
+
datasetVersionId?: number;
|
|
359
362
|
};
|
|
360
363
|
type getSampleAsImageQueryParams = {
|
|
361
364
|
afterInputBlock?: boolean;
|
|
362
365
|
cacheKey?: string;
|
|
363
366
|
impulseId?: number;
|
|
364
367
|
datastreamIndex?: number;
|
|
368
|
+
datasetVersionId?: number;
|
|
369
|
+
};
|
|
370
|
+
type getSampleAsRawQueryParams = {
|
|
371
|
+
datasetVersionId?: number;
|
|
365
372
|
};
|
|
366
373
|
type getSampleAsVideoQueryParams = {
|
|
367
374
|
afterInputBlock?: boolean;
|
|
368
375
|
cacheKey?: string;
|
|
369
376
|
impulseId?: number;
|
|
370
377
|
datastreamIndex?: number;
|
|
378
|
+
datasetVersionId?: number;
|
|
371
379
|
};
|
|
372
380
|
type getSampleMetadataQueryParams = {
|
|
373
381
|
category: RawDataFilterCategory;
|
|
@@ -376,6 +384,7 @@ type getSampleMetadataFilterOptionsQueryParams = {
|
|
|
376
384
|
category: RawDataFilterCategory;
|
|
377
385
|
limit?: number;
|
|
378
386
|
offset?: number;
|
|
387
|
+
datasetVersionId?: number;
|
|
379
388
|
};
|
|
380
389
|
type getSampleSliceQueryParams = {
|
|
381
390
|
sliceStart: number;
|
|
@@ -383,6 +392,7 @@ type getSampleSliceQueryParams = {
|
|
|
383
392
|
impulseId?: number;
|
|
384
393
|
datastreamIndex?: number;
|
|
385
394
|
truncateStructuredLabels?: boolean;
|
|
395
|
+
datasetVersionId?: number;
|
|
386
396
|
};
|
|
387
397
|
type getUncroppedDownsampledSampleQueryParams = {
|
|
388
398
|
limitPayloadValues?: number;
|
|
@@ -391,6 +401,7 @@ type getUncroppedDownsampledSampleQueryParams = {
|
|
|
391
401
|
impulseId?: number;
|
|
392
402
|
datastreamIndex?: number;
|
|
393
403
|
truncateStructuredLabels?: boolean;
|
|
404
|
+
datasetVersionId?: number;
|
|
394
405
|
};
|
|
395
406
|
type listSamplesQueryParams = {
|
|
396
407
|
category: RawDataFilterCategory;
|
|
@@ -417,6 +428,7 @@ type listSamplesQueryParams = {
|
|
|
417
428
|
metadata?: string;
|
|
418
429
|
minDate?: Date;
|
|
419
430
|
maxDate?: Date;
|
|
431
|
+
datasetVersionId?: number;
|
|
420
432
|
};
|
|
421
433
|
export type uploadDataExplorerScreenshotFormParams = {
|
|
422
434
|
image: RequestFile;
|
|
@@ -843,6 +855,7 @@ export declare class RawDataApi {
|
|
|
843
855
|
* @param metadata Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - \"key\": Metadata key to filter on. - \"op\": Operator (\"eq\" for positive match, \"neq\" for negative match). - \"values\": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { \"no_metadata\": boolean } - If true, include samples without any metadata - { \"filters_combinator\": (\"and\" | \"or\") } - Specifies the combinator and matching mode: - \"and\": All filter items must match (logical AND). - \"or\": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
|
|
844
856
|
* @param minDate Only include samples that where added after the date given
|
|
845
857
|
* @param maxDate Only include samples that were added before the date given
|
|
858
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
846
859
|
*/
|
|
847
860
|
countSamples(projectId: number, queryParams: countSamplesQueryParams, options?: {
|
|
848
861
|
headers: {
|
|
@@ -1144,7 +1157,7 @@ export declare class RawDataApi {
|
|
|
1144
1157
|
* Get the raw data metadata for this project
|
|
1145
1158
|
* @summary Get project dataset metadata
|
|
1146
1159
|
* @param projectId Project ID
|
|
1147
|
-
* @param datasetVersionId Dataset version ID. If not set, the current dataset
|
|
1160
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1148
1161
|
* @param truncateLabels If true, only a slice of labels will be returned.
|
|
1149
1162
|
* @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
|
|
1150
1163
|
*/
|
|
@@ -1166,6 +1179,7 @@ export declare class RawDataApi {
|
|
|
1166
1179
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1167
1180
|
* @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.
|
|
1168
1181
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
1182
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1169
1183
|
*/
|
|
1170
1184
|
getSample(projectId: number, sampleId: number, queryParams?: getSampleQueryParams, options?: {
|
|
1171
1185
|
headers: {
|
|
@@ -1184,6 +1198,7 @@ export declare class RawDataApi {
|
|
|
1184
1198
|
* @param sliceStart Begin index of the slice. If not given, the whole sample is used.
|
|
1185
1199
|
* @param sliceEnd End index of the slice. If not given, the whole sample is used.
|
|
1186
1200
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
1201
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1187
1202
|
*/
|
|
1188
1203
|
getSampleAsAudio(projectId: number, sampleId: number, queryParams: getSampleAsAudioQueryParams, options?: {
|
|
1189
1204
|
headers: {
|
|
@@ -1202,6 +1217,7 @@ export declare class RawDataApi {
|
|
|
1202
1217
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
1203
1218
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1204
1219
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
1220
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1205
1221
|
*/
|
|
1206
1222
|
getSampleAsImage(projectId: number, sampleId: number, queryParams?: getSampleAsImageQueryParams, options?: {
|
|
1207
1223
|
headers: {
|
|
@@ -1216,8 +1232,9 @@ export declare class RawDataApi {
|
|
|
1216
1232
|
* @summary Download file
|
|
1217
1233
|
* @param projectId Project ID
|
|
1218
1234
|
* @param sampleId Sample ID
|
|
1235
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1219
1236
|
*/
|
|
1220
|
-
getSampleAsRaw(projectId: number, sampleId: number, options?: {
|
|
1237
|
+
getSampleAsRaw(projectId: number, sampleId: number, queryParams?: getSampleAsRawQueryParams, options?: {
|
|
1221
1238
|
headers: {
|
|
1222
1239
|
[name: string]: string;
|
|
1223
1240
|
};
|
|
@@ -1234,6 +1251,7 @@ export declare class RawDataApi {
|
|
|
1234
1251
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
1235
1252
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1236
1253
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
1254
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1237
1255
|
*/
|
|
1238
1256
|
getSampleAsVideo(projectId: number, sampleId: number, queryParams?: getSampleAsVideoQueryParams, options?: {
|
|
1239
1257
|
headers: {
|
|
@@ -1264,6 +1282,7 @@ export declare class RawDataApi {
|
|
|
1264
1282
|
* @param category Which of the three acquisition categories to retrieve data from
|
|
1265
1283
|
* @param limit Maximum number of results
|
|
1266
1284
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
1285
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1267
1286
|
*/
|
|
1268
1287
|
getSampleMetadataFilterOptions(projectId: number, queryParams: getSampleMetadataFilterOptionsQueryParams, options?: {
|
|
1269
1288
|
headers: {
|
|
@@ -1283,6 +1302,7 @@ export declare class RawDataApi {
|
|
|
1283
1302
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1284
1303
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
1285
1304
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
1305
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1286
1306
|
*/
|
|
1287
1307
|
getSampleSlice(projectId: number, sampleId: number, queryParams: getSampleSliceQueryParams, options?: {
|
|
1288
1308
|
headers: {
|
|
@@ -1316,6 +1336,7 @@ export declare class RawDataApi {
|
|
|
1316
1336
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1317
1337
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
1318
1338
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
1339
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1319
1340
|
*/
|
|
1320
1341
|
getUncroppedDownsampledSample(projectId: number, sampleId: number, queryParams?: getUncroppedDownsampledSampleQueryParams, options?: {
|
|
1321
1342
|
headers: {
|
|
@@ -1392,6 +1413,7 @@ export declare class RawDataApi {
|
|
|
1392
1413
|
* @param metadata Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - \"key\": Metadata key to filter on. - \"op\": Operator (\"eq\" for positive match, \"neq\" for negative match). - \"values\": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { \"no_metadata\": boolean } - If true, include samples without any metadata - { \"filters_combinator\": (\"and\" | \"or\") } - Specifies the combinator and matching mode: - \"and\": All filter items must match (logical AND). - \"or\": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
|
|
1393
1414
|
* @param minDate Only include samples that where added after the date given
|
|
1394
1415
|
* @param maxDate Only include samples that were added before the date given
|
|
1416
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1395
1417
|
*/
|
|
1396
1418
|
listSamples(projectId: number, queryParams: listSamplesQueryParams, options?: {
|
|
1397
1419
|
headers: {
|
|
@@ -1918,6 +1918,7 @@ class RawDataApi {
|
|
|
1918
1918
|
* @param metadata Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - \"key\": Metadata key to filter on. - \"op\": Operator (\"eq\" for positive match, \"neq\" for negative match). - \"values\": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { \"no_metadata\": boolean } - If true, include samples without any metadata - { \"filters_combinator\": (\"and\" | \"or\") } - Specifies the combinator and matching mode: - \"and\": All filter items must match (logical AND). - \"or\": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
|
|
1919
1919
|
* @param minDate Only include samples that where added after the date given
|
|
1920
1920
|
* @param maxDate Only include samples that were added before the date given
|
|
1921
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1921
1922
|
*/
|
|
1922
1923
|
async countSamples(projectId, queryParams, options = { headers: {} }) {
|
|
1923
1924
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/count'
|
|
@@ -1999,6 +2000,9 @@ class RawDataApi {
|
|
|
1999
2000
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxDate) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxDate) !== null) {
|
|
2000
2001
|
queryParameters['maxDate'] = queryParams.maxDate.toISOString();
|
|
2001
2002
|
}
|
|
2003
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
2004
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
2005
|
+
}
|
|
2002
2006
|
localVarHeaderParams = {
|
|
2003
2007
|
...localVarHeaderParams,
|
|
2004
2008
|
...options.headers,
|
|
@@ -3600,7 +3604,7 @@ class RawDataApi {
|
|
|
3600
3604
|
* Get the raw data metadata for this project
|
|
3601
3605
|
* @summary Get project dataset metadata
|
|
3602
3606
|
* @param projectId Project ID
|
|
3603
|
-
* @param datasetVersionId Dataset version ID. If not set, the current dataset
|
|
3607
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3604
3608
|
* @param truncateLabels If true, only a slice of labels will be returned.
|
|
3605
3609
|
* @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
|
|
3606
3610
|
*/
|
|
@@ -3688,6 +3692,7 @@ class RawDataApi {
|
|
|
3688
3692
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
3689
3693
|
* @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.
|
|
3690
3694
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
3695
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3691
3696
|
*/
|
|
3692
3697
|
async getSample(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
3693
3698
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}'
|
|
@@ -3731,6 +3736,9 @@ class RawDataApi {
|
|
|
3731
3736
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateStructuredLabels) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateStructuredLabels) !== null) {
|
|
3732
3737
|
queryParameters['truncateStructuredLabels'] = queryParams.truncateStructuredLabels;
|
|
3733
3738
|
}
|
|
3739
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
3740
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
3741
|
+
}
|
|
3734
3742
|
localVarHeaderParams = {
|
|
3735
3743
|
...localVarHeaderParams,
|
|
3736
3744
|
...options.headers,
|
|
@@ -3783,6 +3791,7 @@ class RawDataApi {
|
|
|
3783
3791
|
* @param sliceStart Begin index of the slice. If not given, the whole sample is used.
|
|
3784
3792
|
* @param sliceEnd End index of the slice. If not given, the whole sample is used.
|
|
3785
3793
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
3794
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3786
3795
|
*/
|
|
3787
3796
|
async getSampleAsAudio(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
3788
3797
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/wav'
|
|
@@ -3827,6 +3836,9 @@ class RawDataApi {
|
|
|
3827
3836
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.cacheKey) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.cacheKey) !== null) {
|
|
3828
3837
|
queryParameters['cacheKey'] = queryParams.cacheKey;
|
|
3829
3838
|
}
|
|
3839
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
3840
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
3841
|
+
}
|
|
3830
3842
|
localVarHeaderParams = {
|
|
3831
3843
|
...localVarHeaderParams,
|
|
3832
3844
|
...options.headers,
|
|
@@ -3879,6 +3891,7 @@ class RawDataApi {
|
|
|
3879
3891
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
3880
3892
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
3881
3893
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
3894
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3882
3895
|
*/
|
|
3883
3896
|
async getSampleAsImage(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
3884
3897
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/image'
|
|
@@ -3919,6 +3932,9 @@ class RawDataApi {
|
|
|
3919
3932
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== null) {
|
|
3920
3933
|
queryParameters['datastreamIndex'] = queryParams.datastreamIndex;
|
|
3921
3934
|
}
|
|
3935
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
3936
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
3937
|
+
}
|
|
3922
3938
|
localVarHeaderParams = {
|
|
3923
3939
|
...localVarHeaderParams,
|
|
3924
3940
|
...options.headers,
|
|
@@ -3967,8 +3983,9 @@ class RawDataApi {
|
|
|
3967
3983
|
* @summary Download file
|
|
3968
3984
|
* @param projectId Project ID
|
|
3969
3985
|
* @param sampleId Sample ID
|
|
3986
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3970
3987
|
*/
|
|
3971
|
-
async getSampleAsRaw(projectId, sampleId, options = { headers: {} }) {
|
|
3988
|
+
async getSampleAsRaw(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
3972
3989
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/raw'
|
|
3973
3990
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3974
3991
|
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
@@ -3995,6 +4012,9 @@ class RawDataApi {
|
|
|
3995
4012
|
if (sampleId === null || sampleId === undefined) {
|
|
3996
4013
|
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsRaw.');
|
|
3997
4014
|
}
|
|
4015
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
4016
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4017
|
+
}
|
|
3998
4018
|
localVarHeaderParams = {
|
|
3999
4019
|
...localVarHeaderParams,
|
|
4000
4020
|
...options.headers,
|
|
@@ -4047,6 +4067,7 @@ class RawDataApi {
|
|
|
4047
4067
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
4048
4068
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
4049
4069
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
4070
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4050
4071
|
*/
|
|
4051
4072
|
async getSampleAsVideo(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
4052
4073
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/video'
|
|
@@ -4087,6 +4108,9 @@ class RawDataApi {
|
|
|
4087
4108
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== null) {
|
|
4088
4109
|
queryParameters['datastreamIndex'] = queryParams.datastreamIndex;
|
|
4089
4110
|
}
|
|
4111
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
4112
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4113
|
+
}
|
|
4090
4114
|
localVarHeaderParams = {
|
|
4091
4115
|
...localVarHeaderParams,
|
|
4092
4116
|
...options.headers,
|
|
@@ -4215,6 +4239,7 @@ class RawDataApi {
|
|
|
4215
4239
|
* @param category Which of the three acquisition categories to retrieve data from
|
|
4216
4240
|
* @param limit Maximum number of results
|
|
4217
4241
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
4242
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4218
4243
|
*/
|
|
4219
4244
|
async getSampleMetadataFilterOptions(projectId, queryParams, options = { headers: {} }) {
|
|
4220
4245
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/metadata-filter-options'
|
|
@@ -4251,6 +4276,9 @@ class RawDataApi {
|
|
|
4251
4276
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.offset) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.offset) !== null) {
|
|
4252
4277
|
queryParameters['offset'] = queryParams.offset;
|
|
4253
4278
|
}
|
|
4279
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
4280
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4281
|
+
}
|
|
4254
4282
|
localVarHeaderParams = {
|
|
4255
4283
|
...localVarHeaderParams,
|
|
4256
4284
|
...options.headers,
|
|
@@ -4304,6 +4332,7 @@ class RawDataApi {
|
|
|
4304
4332
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
4305
4333
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
4306
4334
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
4335
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4307
4336
|
*/
|
|
4308
4337
|
async getSampleSlice(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
4309
4338
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/slice'
|
|
@@ -4351,6 +4380,9 @@ class RawDataApi {
|
|
|
4351
4380
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateStructuredLabels) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateStructuredLabels) !== null) {
|
|
4352
4381
|
queryParameters['truncateStructuredLabels'] = queryParams.truncateStructuredLabels;
|
|
4353
4382
|
}
|
|
4383
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
4384
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4385
|
+
}
|
|
4354
4386
|
localVarHeaderParams = {
|
|
4355
4387
|
...localVarHeaderParams,
|
|
4356
4388
|
...options.headers,
|
|
@@ -4475,6 +4507,7 @@ class RawDataApi {
|
|
|
4475
4507
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
4476
4508
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
4477
4509
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
4510
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4478
4511
|
*/
|
|
4479
4512
|
async getUncroppedDownsampledSample(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
4480
4513
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/original'
|
|
@@ -4521,6 +4554,9 @@ class RawDataApi {
|
|
|
4521
4554
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateStructuredLabels) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateStructuredLabels) !== null) {
|
|
4522
4555
|
queryParameters['truncateStructuredLabels'] = queryParams.truncateStructuredLabels;
|
|
4523
4556
|
}
|
|
4557
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
4558
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4559
|
+
}
|
|
4524
4560
|
localVarHeaderParams = {
|
|
4525
4561
|
...localVarHeaderParams,
|
|
4526
4562
|
...options.headers,
|
|
@@ -4802,6 +4838,7 @@ class RawDataApi {
|
|
|
4802
4838
|
* @param metadata Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - \"key\": Metadata key to filter on. - \"op\": Operator (\"eq\" for positive match, \"neq\" for negative match). - \"values\": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { \"no_metadata\": boolean } - If true, include samples without any metadata - { \"filters_combinator\": (\"and\" | \"or\") } - Specifies the combinator and matching mode: - \"and\": All filter items must match (logical AND). - \"or\": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
|
|
4803
4839
|
* @param minDate Only include samples that where added after the date given
|
|
4804
4840
|
* @param maxDate Only include samples that were added before the date given
|
|
4841
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4805
4842
|
*/
|
|
4806
4843
|
async listSamples(projectId, queryParams, options = { headers: {} }) {
|
|
4807
4844
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data'
|
|
@@ -4901,6 +4938,9 @@ class RawDataApi {
|
|
|
4901
4938
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxDate) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.maxDate) !== null) {
|
|
4902
4939
|
queryParameters['maxDate'] = queryParams.maxDate.toISOString();
|
|
4903
4940
|
}
|
|
4941
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
|
|
4942
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4943
|
+
}
|
|
4904
4944
|
localVarHeaderParams = {
|
|
4905
4945
|
...localVarHeaderParams,
|
|
4906
4946
|
...options.headers,
|