edge-impulse-api 1.95.4 → 1.95.6

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.
@@ -341,6 +341,7 @@ type getRawDataMetadataDistributionQueryParams = {
341
341
  };
342
342
  type getRawDataProjectMetadataQueryParams = {
343
343
  datasetVersionId?: number;
344
+ truncateLabels?: boolean;
344
345
  includeDisabled?: 'both' | 'enabled';
345
346
  };
346
347
  type getSampleQueryParams = {
@@ -1144,6 +1145,7 @@ export declare class RawDataApi {
1144
1145
  * @summary Get project dataset metadata
1145
1146
  * @param projectId Project ID
1146
1147
  * @param datasetVersionId Dataset version ID. If not set, the current dataset version is used
1148
+ * @param truncateLabels If true, only a slice of labels will be returned.
1147
1149
  * @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
1148
1150
  */
1149
1151
  getRawDataProjectMetadata(projectId: number, queryParams?: getRawDataProjectMetadataQueryParams, options?: {
@@ -3601,6 +3601,7 @@ class RawDataApi {
3601
3601
  * @summary Get project dataset metadata
3602
3602
  * @param projectId Project ID
3603
3603
  * @param datasetVersionId Dataset version ID. If not set, the current dataset version is used
3604
+ * @param truncateLabels If true, only a slice of labels will be returned.
3604
3605
  * @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
3605
3606
  */
3606
3607
  async getRawDataProjectMetadata(projectId, queryParams, options = { headers: {} }) {
@@ -3628,6 +3629,9 @@ class RawDataApi {
3628
3629
  if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
3629
3630
  queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
3630
3631
  }
3632
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateLabels) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateLabels) !== null) {
3633
+ queryParameters['truncateLabels'] = queryParams.truncateLabels;
3634
+ }
3631
3635
  if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.includeDisabled) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.includeDisabled) !== null) {
3632
3636
  queryParameters['includeDisabled'] = queryParams.includeDisabled;
3633
3637
  }