edge-impulse-api 1.92.25 → 1.93.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.
Files changed (83) hide show
  1. package/build/library/sdk/api/classifyApi.d.ts +4 -2
  2. package/build/library/sdk/api/classifyApi.js +5 -1
  3. package/build/library/sdk/api/classifyApi.js.map +1 -1
  4. package/build/library/sdk/api/dSPApi.d.ts +3 -3
  5. package/build/library/sdk/api/dSPApi.js +2 -2
  6. package/build/library/sdk/api/dSPApi.js.map +1 -1
  7. package/build/library/sdk/api/rawDataApi.d.ts +25 -8
  8. package/build/library/sdk/api/rawDataApi.js +32 -8
  9. package/build/library/sdk/api/rawDataApi.js.map +1 -1
  10. package/build/library/sdk/model/autotuneDspRequest.d.ts +6 -0
  11. package/build/library/sdk/model/autotuneDspRequest.js +5 -0
  12. package/build/library/sdk/model/autotuneDspRequest.js.map +1 -1
  13. package/build/library/sdk/model/classifySampleResponse.d.ts +2 -2
  14. package/build/library/sdk/model/classifySampleResponse.js +1 -1
  15. package/build/library/sdk/model/classifySampleResponse.js.map +1 -1
  16. package/build/library/sdk/model/classifySampleResponseAllOf.d.ts +2 -2
  17. package/build/library/sdk/model/classifySampleResponseAllOf.js +1 -1
  18. package/build/library/sdk/model/classifySampleResponseAllOf.js.map +1 -1
  19. package/build/library/sdk/model/classifySampleResponseClassification.d.ts +8 -0
  20. package/build/library/sdk/model/classifySampleResponseClassification.js +10 -0
  21. package/build/library/sdk/model/classifySampleResponseClassification.js.map +1 -1
  22. package/build/library/sdk/model/classifySampleResponseMultipleVariants.d.ts +2 -2
  23. package/build/library/sdk/model/classifySampleResponseMultipleVariants.js +1 -1
  24. package/build/library/sdk/model/classifySampleResponseMultipleVariants.js.map +1 -1
  25. package/build/library/sdk/model/classifySampleResponseMultipleVariantsAllOf.d.ts +2 -2
  26. package/build/library/sdk/model/classifySampleResponseMultipleVariantsAllOf.js +1 -1
  27. package/build/library/sdk/model/classifySampleResponseMultipleVariantsAllOf.js.map +1 -1
  28. package/build/library/sdk/model/getSampleDspResponse.d.ts +40 -0
  29. package/build/library/sdk/model/getSampleDspResponse.js +49 -0
  30. package/build/library/sdk/model/getSampleDspResponse.js.map +1 -0
  31. package/build/library/sdk/model/getSampleResponse.d.ts +2 -0
  32. package/build/library/sdk/model/getSampleResponse.js +5 -0
  33. package/build/library/sdk/model/getSampleResponse.js.map +1 -1
  34. package/build/library/sdk/model/impulseInputBlock.d.ts +6 -6
  35. package/build/library/sdk/model/impulseInputBlock.js +7 -3
  36. package/build/library/sdk/model/impulseInputBlock.js.map +1 -1
  37. package/build/library/sdk/model/inputBlock.d.ts +2 -3
  38. package/build/library/sdk/model/inputBlock.js +2 -3
  39. package/build/library/sdk/model/inputBlock.js.map +1 -1
  40. package/build/library/sdk/model/inputBlockType.d.ts +13 -0
  41. package/build/library/sdk/model/inputBlockType.js +16 -0
  42. package/build/library/sdk/model/inputBlockType.js.map +1 -0
  43. package/build/library/sdk/model/models.d.ts +9 -1
  44. package/build/library/sdk/model/models.js +28 -5
  45. package/build/library/sdk/model/models.js.map +1 -1
  46. package/build/library/sdk/model/projectDataIntervalResponse.d.ts +6 -0
  47. package/build/library/sdk/model/projectDataIntervalResponse.js +10 -0
  48. package/build/library/sdk/model/projectDataIntervalResponse.js.map +1 -1
  49. package/build/library/sdk/model/projectDataIntervalResponseAllOf.d.ts +6 -0
  50. package/build/library/sdk/model/projectDataIntervalResponseAllOf.js +10 -0
  51. package/build/library/sdk/model/projectDataIntervalResponseAllOf.js.map +1 -1
  52. package/build/library/sdk/model/projectDataIntervalResponseAllOfByDatastream.d.ts +31 -0
  53. package/build/library/sdk/model/projectDataIntervalResponseAllOfByDatastream.js +45 -0
  54. package/build/library/sdk/model/projectDataIntervalResponseAllOfByDatastream.js.map +1 -0
  55. package/build/library/sdk/model/projectDataIntervalResponseAllOfSensors.d.ts +32 -0
  56. package/build/library/sdk/model/projectDataIntervalResponseAllOfSensors.js +34 -0
  57. package/build/library/sdk/model/projectDataIntervalResponseAllOfSensors.js.map +1 -0
  58. package/build/library/sdk/model/rawSampleDataStreamPayloads.d.ts +26 -0
  59. package/build/library/sdk/model/rawSampleDataStreamPayloads.js +29 -0
  60. package/build/library/sdk/model/rawSampleDataStreamPayloads.js.map +1 -0
  61. package/build/library/sdk/model/rawSampleDataStreamPayloadsDatastreamPayloads.d.ts +34 -0
  62. package/build/library/sdk/model/rawSampleDataStreamPayloadsDatastreamPayloads.js +39 -0
  63. package/build/library/sdk/model/rawSampleDataStreamPayloadsDatastreamPayloads.js.map +1 -0
  64. package/build/library/sdk/model/rawSampleDataWithDataStreamPayloads.d.ts +34 -0
  65. package/build/library/sdk/model/rawSampleDataWithDataStreamPayloads.js +44 -0
  66. package/build/library/sdk/model/rawSampleDataWithDataStreamPayloads.js.map +1 -0
  67. package/build/library/sdk/model/rawSamplePayload.d.ts +8 -0
  68. package/build/library/sdk/model/rawSamplePayload.js +10 -0
  69. package/build/library/sdk/model/rawSamplePayload.js.map +1 -1
  70. package/build/library/sdk/model/sample.d.ts +9 -7
  71. package/build/library/sdk/model/sample.js +6 -1
  72. package/build/library/sdk/model/sample.js.map +1 -1
  73. package/build/library/sdk/model/sampleDatastream.d.ts +48 -0
  74. package/build/library/sdk/model/sampleDatastream.js +65 -0
  75. package/build/library/sdk/model/sampleDatastream.js.map +1 -0
  76. package/build/library/sdk/model/{sampleImageDimensions.d.ts → sampleDatastreamImageDimensions.d.ts} +1 -1
  77. package/build/library/sdk/model/{sampleImageDimensions.js → sampleDatastreamImageDimensions.js} +7 -7
  78. package/build/library/sdk/model/sampleDatastreamImageDimensions.js.map +1 -0
  79. package/build/library/sdk/model/sensor.d.ts +4 -0
  80. package/build/library/sdk/model/sensor.js +5 -0
  81. package/build/library/sdk/model/sensor.js.map +1 -1
  82. package/package.json +1 -1
  83. package/build/library/sdk/model/sampleImageDimensions.js.map +0 -1
@@ -37,6 +37,7 @@ import { GetDiversityDataResponse } from '../model/getDiversityDataResponse';
37
37
  import { GetLabelNoiseDataResponse } from '../model/getLabelNoiseDataResponse';
38
38
  import { GetRawDataMetadataCooccurrenceResponse } from '../model/getRawDataMetadataCooccurrenceResponse';
39
39
  import { GetRawDataMetadataDistributionResponse } from '../model/getRawDataMetadataDistributionResponse';
40
+ import { GetSampleDspResponse } from '../model/getSampleDspResponse';
40
41
  import { GetSampleMetadataFilterOptionsResponse } from '../model/getSampleMetadataFilterOptionsResponse';
41
42
  import { GetSampleMetadataResponse } from '../model/getSampleMetadataResponse';
42
43
  import { GetSampleResponse } from '../model/getSampleResponse';
@@ -310,6 +311,12 @@ type countSamplesQueryParams = {
310
311
  minDate?: Date;
311
312
  maxDate?: Date;
312
313
  };
314
+ type cropSampleQueryParams = {
315
+ datastreamIndex?: number;
316
+ };
317
+ type findSegmentsInSampleQueryParams = {
318
+ datastreamIndex?: number;
319
+ };
313
320
  type getAllImportedFromQueryParams = {
314
321
  limit?: number;
315
322
  offset?: number;
@@ -348,11 +355,13 @@ type getSampleAsImageQueryParams = {
348
355
  afterInputBlock?: boolean;
349
356
  cacheKey?: string;
350
357
  impulseId?: number;
358
+ datastreamIndex?: number;
351
359
  };
352
360
  type getSampleAsVideoQueryParams = {
353
361
  afterInputBlock?: boolean;
354
362
  cacheKey?: string;
355
363
  impulseId?: number;
364
+ datastreamIndex?: number;
356
365
  };
357
366
  type getSampleMetadataQueryParams = {
358
367
  category: RawDataFilterCategory;
@@ -366,6 +375,7 @@ type getSampleSliceQueryParams = {
366
375
  sliceStart: number;
367
376
  sliceEnd?: number;
368
377
  impulseId?: number;
378
+ datastreamIndex?: number;
369
379
  truncateStructuredLabels?: boolean;
370
380
  };
371
381
  type getUncroppedDownsampledSampleQueryParams = {
@@ -373,6 +383,7 @@ type getUncroppedDownsampledSampleQueryParams = {
373
383
  zoomStart?: number;
374
384
  zoomEnd?: number;
375
385
  impulseId?: number;
386
+ datastreamIndex?: number;
376
387
  truncateStructuredLabels?: boolean;
377
388
  };
378
389
  type listSamplesQueryParams = {
@@ -794,13 +805,14 @@ export declare class RawDataApi {
794
805
  };
795
806
  }): Promise<CountSamplesResponse>;
796
807
  /**
797
- * Crop a sample to within a new range.
808
+ * Crop a sample to within a new range. cropStart/cropEnd are relative to the selected datastream. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is used.
798
809
  * @summary Crop sample
799
810
  * @param projectId Project ID
800
811
  * @param sampleId Sample ID
801
812
  * @param cropSampleRequest
813
+ * @param datastreamIndex Datastream index (defaults to 0)
802
814
  */
803
- cropSample(projectId: number, sampleId: number, cropSampleRequest: CropSampleRequest, options?: {
815
+ cropSample(projectId: number, sampleId: number, cropSampleRequest: CropSampleRequest, queryParams?: cropSampleQueryParams, options?: {
804
816
  headers: {
805
817
  [name: string]: string;
806
818
  };
@@ -872,13 +884,14 @@ export declare class RawDataApi {
872
884
  };
873
885
  }): Promise<GenericApiResponse>;
874
886
  /**
875
- * Find start and end times for all non-noise events in a sample
887
+ * Find start and end times for all non-noise events in a sample. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is used.
876
888
  * @summary Find segments
877
889
  * @param projectId Project ID
878
890
  * @param sampleId Sample ID
879
891
  * @param findSegmentSampleRequest
892
+ * @param datastreamIndex Datastream index (defaults to 0)
880
893
  */
881
- findSegmentsInSample(projectId: number, sampleId: number, findSegmentSampleRequest: FindSegmentSampleRequest, options?: {
894
+ findSegmentsInSample(projectId: number, sampleId: number, findSegmentSampleRequest: FindSegmentSampleRequest, queryParams?: findSegmentsInSampleQueryParams, options?: {
882
895
  headers: {
883
896
  [name: string]: string;
884
897
  };
@@ -1058,6 +1071,7 @@ export declare class RawDataApi {
1058
1071
  * @param afterInputBlock Whether to process the image through the input block first
1059
1072
  * @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).
1060
1073
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
1074
+ * @param datastreamIndex Datastream index (defaults to 0)
1061
1075
  */
1062
1076
  getSampleAsImage(projectId: number, sampleId: number, queryParams?: getSampleAsImageQueryParams, options?: {
1063
1077
  headers: {
@@ -1083,6 +1097,7 @@ export declare class RawDataApi {
1083
1097
  * @param afterInputBlock Whether to process the image through the input block first
1084
1098
  * @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).
1085
1099
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
1100
+ * @param datastreamIndex Datastream index (defaults to 0)
1086
1101
  */
1087
1102
  getSampleAsVideo(projectId: number, sampleId: number, queryParams?: getSampleAsVideoQueryParams, options?: {
1088
1103
  headers: {
@@ -1114,20 +1129,21 @@ export declare class RawDataApi {
1114
1129
  };
1115
1130
  }): Promise<GetSampleMetadataFilterOptionsResponse>;
1116
1131
  /**
1117
- * Get a slice of a sample.
1132
+ * Get a slice of a sample. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is returned. sliceStart / sliceEnd are relative to the datastream.
1118
1133
  * @summary Get sample slice
1119
1134
  * @param projectId Project ID
1120
1135
  * @param sampleId Sample ID
1121
1136
  * @param sliceStart Begin index of the slice
1122
1137
  * @param sliceEnd End index of the slice. If not given, the sample will be sliced to the same length as the impulse input block window length.
1123
1138
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
1139
+ * @param datastreamIndex Datastream index (defaults to 0)
1124
1140
  * @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
1125
1141
  */
1126
1142
  getSampleSlice(projectId: number, sampleId: number, queryParams: getSampleSliceQueryParams, options?: {
1127
1143
  headers: {
1128
1144
  [name: string]: string;
1129
1145
  };
1130
- }): Promise<GetSampleResponse>;
1146
+ }): Promise<GetSampleDspResponse>;
1131
1147
  /**
1132
1148
  * Returns the results of a previously requested split preview job. This endpoint is used to retrieve the results after a split preview job has been started.
1133
1149
  * @summary Get split preview results
@@ -1139,7 +1155,7 @@ export declare class RawDataApi {
1139
1155
  };
1140
1156
  }): Promise<DatasetSplitPreviewResponse>;
1141
1157
  /**
1142
- * Get the original, uncropped, downsampled data.
1158
+ * Get the original, uncropped, downsampled data. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is returned. The ZoomStart/ZoomEnd parameters should be relative to the selected datastream.
1143
1159
  * @summary Get the original downsampled data
1144
1160
  * @param projectId Project ID
1145
1161
  * @param sampleId Sample ID
@@ -1147,13 +1163,14 @@ export declare class RawDataApi {
1147
1163
  * @param zoomStart Zoom into the sample, with the focus starting at this index
1148
1164
  * @param zoomEnd Zoom into the sample, with the focus ending at this index
1149
1165
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
1166
+ * @param datastreamIndex Datastream index (defaults to 0)
1150
1167
  * @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
1151
1168
  */
1152
1169
  getUncroppedDownsampledSample(projectId: number, sampleId: number, queryParams?: getUncroppedDownsampledSampleQueryParams, options?: {
1153
1170
  headers: {
1154
1171
  [name: string]: string;
1155
1172
  };
1156
- }): Promise<GetSampleResponse>;
1173
+ }): Promise<GetSampleDspResponse>;
1157
1174
  /**
1158
1175
  * t-SNE2 output of the raw dataset
1159
1176
  * @summary Check data explorer features
@@ -2099,13 +2099,14 @@ class RawDataApi {
2099
2099
  return this.handleResponse(response, 'CountSamplesResponse');
2100
2100
  }
2101
2101
  /**
2102
- * Crop a sample to within a new range.
2102
+ * Crop a sample to within a new range. cropStart/cropEnd are relative to the selected datastream. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is used.
2103
2103
  * @summary Crop sample
2104
2104
  * @param projectId Project ID
2105
2105
  * @param sampleId Sample ID
2106
2106
  * @param cropSampleRequest
2107
+ * @param datastreamIndex Datastream index (defaults to 0)
2107
2108
  */
2108
- async cropSample(projectId, sampleId, cropSampleRequest, options = { headers: {} }) {
2109
+ async cropSample(projectId, sampleId, cropSampleRequest, queryParams, options = { headers: {} }) {
2109
2110
  const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/crop'
2110
2111
  .replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
2111
2112
  .replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
@@ -2136,6 +2137,9 @@ class RawDataApi {
2136
2137
  if (cropSampleRequest === null || cropSampleRequest === undefined) {
2137
2138
  throw new Error('Required parameter cropSampleRequest was null or undefined when calling cropSample.');
2138
2139
  }
2140
+ if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== undefined) {
2141
+ localVarQueryParameters['datastreamIndex'] = models_1.ObjectSerializer.serialize(queryParams.datastreamIndex, "number");
2142
+ }
2139
2143
  localVarHeaderParams = {
2140
2144
  ...localVarHeaderParams,
2141
2145
  ...options.headers,
@@ -2658,13 +2662,14 @@ class RawDataApi {
2658
2662
  return this.handleResponse(response, 'GenericApiResponse');
2659
2663
  }
2660
2664
  /**
2661
- * Find start and end times for all non-noise events in a sample
2665
+ * Find start and end times for all non-noise events in a sample. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is used.
2662
2666
  * @summary Find segments
2663
2667
  * @param projectId Project ID
2664
2668
  * @param sampleId Sample ID
2665
2669
  * @param findSegmentSampleRequest
2670
+ * @param datastreamIndex Datastream index (defaults to 0)
2666
2671
  */
2667
- async findSegmentsInSample(projectId, sampleId, findSegmentSampleRequest, options = { headers: {} }) {
2672
+ async findSegmentsInSample(projectId, sampleId, findSegmentSampleRequest, queryParams, options = { headers: {} }) {
2668
2673
  const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/find-segments'
2669
2674
  .replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
2670
2675
  .replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
@@ -2695,6 +2700,9 @@ class RawDataApi {
2695
2700
  if (findSegmentSampleRequest === null || findSegmentSampleRequest === undefined) {
2696
2701
  throw new Error('Required parameter findSegmentSampleRequest was null or undefined when calling findSegmentsInSample.');
2697
2702
  }
2703
+ if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== undefined) {
2704
+ localVarQueryParameters['datastreamIndex'] = models_1.ObjectSerializer.serialize(queryParams.datastreamIndex, "number");
2705
+ }
2698
2706
  localVarHeaderParams = {
2699
2707
  ...localVarHeaderParams,
2700
2708
  ...options.headers,
@@ -3910,6 +3918,7 @@ class RawDataApi {
3910
3918
  * @param afterInputBlock Whether to process the image through the input block first
3911
3919
  * @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).
3912
3920
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
3921
+ * @param datastreamIndex Datastream index (defaults to 0)
3913
3922
  */
3914
3923
  async getSampleAsImage(projectId, sampleId, queryParams, options = { headers: {} }) {
3915
3924
  const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/image'
@@ -3947,6 +3956,9 @@ class RawDataApi {
3947
3956
  if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== undefined) {
3948
3957
  localVarQueryParameters['impulseId'] = models_1.ObjectSerializer.serialize(queryParams.impulseId, "number");
3949
3958
  }
3959
+ if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== undefined) {
3960
+ localVarQueryParameters['datastreamIndex'] = models_1.ObjectSerializer.serialize(queryParams.datastreamIndex, "number");
3961
+ }
3950
3962
  localVarHeaderParams = {
3951
3963
  ...localVarHeaderParams,
3952
3964
  ...options.headers,
@@ -4080,6 +4092,7 @@ class RawDataApi {
4080
4092
  * @param afterInputBlock Whether to process the image through the input block first
4081
4093
  * @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).
4082
4094
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
4095
+ * @param datastreamIndex Datastream index (defaults to 0)
4083
4096
  */
4084
4097
  async getSampleAsVideo(projectId, sampleId, queryParams, options = { headers: {} }) {
4085
4098
  const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/video'
@@ -4117,6 +4130,9 @@ class RawDataApi {
4117
4130
  if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== undefined) {
4118
4131
  localVarQueryParameters['impulseId'] = models_1.ObjectSerializer.serialize(queryParams.impulseId, "number");
4119
4132
  }
4133
+ if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== undefined) {
4134
+ localVarQueryParameters['datastreamIndex'] = models_1.ObjectSerializer.serialize(queryParams.datastreamIndex, "number");
4135
+ }
4120
4136
  localVarHeaderParams = {
4121
4137
  ...localVarHeaderParams,
4122
4138
  ...options.headers,
@@ -4334,13 +4350,14 @@ class RawDataApi {
4334
4350
  return this.handleResponse(response, 'GetSampleMetadataFilterOptionsResponse');
4335
4351
  }
4336
4352
  /**
4337
- * Get a slice of a sample.
4353
+ * Get a slice of a sample. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is returned. sliceStart / sliceEnd are relative to the datastream.
4338
4354
  * @summary Get sample slice
4339
4355
  * @param projectId Project ID
4340
4356
  * @param sampleId Sample ID
4341
4357
  * @param sliceStart Begin index of the slice
4342
4358
  * @param sliceEnd End index of the slice. If not given, the sample will be sliced to the same length as the impulse input block window length.
4343
4359
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
4360
+ * @param datastreamIndex Datastream index (defaults to 0)
4344
4361
  * @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
4345
4362
  */
4346
4363
  async getSampleSlice(projectId, sampleId, queryParams, options = { headers: {} }) {
@@ -4383,6 +4400,9 @@ class RawDataApi {
4383
4400
  if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== undefined) {
4384
4401
  localVarQueryParameters['impulseId'] = models_1.ObjectSerializer.serialize(queryParams.impulseId, "number");
4385
4402
  }
4403
+ if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== undefined) {
4404
+ localVarQueryParameters['datastreamIndex'] = models_1.ObjectSerializer.serialize(queryParams.datastreamIndex, "number");
4405
+ }
4386
4406
  if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateStructuredLabels) !== undefined) {
4387
4407
  localVarQueryParameters['truncateStructuredLabels'] = models_1.ObjectSerializer.serialize(queryParams.truncateStructuredLabels, "boolean");
4388
4408
  }
@@ -4430,7 +4450,7 @@ class RawDataApi {
4430
4450
  }
4431
4451
  }
4432
4452
  const response = await fetch(url, requestOptions);
4433
- return this.handleResponse(response, 'GetSampleResponse');
4453
+ return this.handleResponse(response, 'GetSampleDspResponse');
4434
4454
  }
4435
4455
  /**
4436
4456
  * Returns the results of a previously requested split preview job. This endpoint is used to retrieve the results after a split preview job has been started.
@@ -4506,7 +4526,7 @@ class RawDataApi {
4506
4526
  return this.handleResponse(response, 'DatasetSplitPreviewResponse');
4507
4527
  }
4508
4528
  /**
4509
- * Get the original, uncropped, downsampled data.
4529
+ * Get the original, uncropped, downsampled data. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is returned. The ZoomStart/ZoomEnd parameters should be relative to the selected datastream.
4510
4530
  * @summary Get the original downsampled data
4511
4531
  * @param projectId Project ID
4512
4532
  * @param sampleId Sample ID
@@ -4514,6 +4534,7 @@ class RawDataApi {
4514
4534
  * @param zoomStart Zoom into the sample, with the focus starting at this index
4515
4535
  * @param zoomEnd Zoom into the sample, with the focus ending at this index
4516
4536
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
4537
+ * @param datastreamIndex Datastream index (defaults to 0)
4517
4538
  * @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
4518
4539
  */
4519
4540
  async getUncroppedDownsampledSample(projectId, sampleId, queryParams, options = { headers: {} }) {
@@ -4555,6 +4576,9 @@ class RawDataApi {
4555
4576
  if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== undefined) {
4556
4577
  localVarQueryParameters['impulseId'] = models_1.ObjectSerializer.serialize(queryParams.impulseId, "number");
4557
4578
  }
4579
+ if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.datastreamIndex) !== undefined) {
4580
+ localVarQueryParameters['datastreamIndex'] = models_1.ObjectSerializer.serialize(queryParams.datastreamIndex, "number");
4581
+ }
4558
4582
  if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateStructuredLabels) !== undefined) {
4559
4583
  localVarQueryParameters['truncateStructuredLabels'] = models_1.ObjectSerializer.serialize(queryParams.truncateStructuredLabels, "boolean");
4560
4584
  }
@@ -4602,7 +4626,7 @@ class RawDataApi {
4602
4626
  }
4603
4627
  }
4604
4628
  const response = await fetch(url, requestOptions);
4605
- return this.handleResponse(response, 'GetSampleResponse');
4629
+ return this.handleResponse(response, 'GetSampleDspResponse');
4606
4630
  }
4607
4631
  /**
4608
4632
  * t-SNE2 output of the raw dataset