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.
@@ -91,14 +91,20 @@ type getModelVariantsQueryParams = {
91
91
  type getProjectDataAxesSummaryQueryParams = {
92
92
  includeDisabled?: boolean;
93
93
  includeNotProcessed?: boolean;
94
+ datasetVersionId?: number;
94
95
  };
95
96
  type getProjectInfoQueryParams = {
96
97
  impulseId?: number;
97
98
  truncateLabels?: boolean;
99
+ datasetVersionId?: number;
100
+ };
101
+ type getProjectRecommendedDataIntervalQueryParams = {
102
+ datasetVersionId?: number;
98
103
  };
99
104
  type getProjectTrainingDataSummaryQueryParams = {
100
105
  includeDisabled?: boolean;
101
106
  includeNotProcessed?: boolean;
107
+ datasetVersionId?: number;
102
108
  truncateLabels?: boolean;
103
109
  };
104
110
  type listDownloadsQueryParams = {
@@ -504,6 +510,7 @@ export declare class ProjectsApi {
504
510
  * @param projectId Project ID
505
511
  * @param includeDisabled Whether to include disabled samples. Defaults to true
506
512
  * @param includeNotProcessed Whether to include non-processed samples. Defaults to true
513
+ * @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
507
514
  */
508
515
  getProjectDataAxesSummary(projectId: number, queryParams?: getProjectDataAxesSummaryQueryParams, options?: {
509
516
  headers: {
@@ -519,6 +526,7 @@ export declare class ProjectsApi {
519
526
  * @param projectId Project ID
520
527
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
521
528
  * @param truncateLabels If true, only a slice of labels will be returned.
529
+ * @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
522
530
  */
523
531
  getProjectInfo(projectId: number, queryParams?: getProjectInfoQueryParams, options?: {
524
532
  headers: {
@@ -558,8 +566,9 @@ export declare class ProjectsApi {
558
566
  * Get the interval of the training data; if multiple intervals are present, the interval of the longest data item is returned. This only takes data in your _training_ set into account.
559
567
  * @summary Get the interval (in ms) of the training data
560
568
  * @param projectId Project ID
569
+ * @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
561
570
  */
562
- getProjectRecommendedDataInterval(projectId: number, options?: {
571
+ getProjectRecommendedDataInterval(projectId: number, queryParams?: getProjectRecommendedDataIntervalQueryParams, options?: {
563
572
  headers: {
564
573
  [name: string]: string;
565
574
  };
@@ -573,6 +582,7 @@ export declare class ProjectsApi {
573
582
  * @param projectId Project ID
574
583
  * @param includeDisabled Whether to include disabled samples. Defaults to true
575
584
  * @param includeNotProcessed Whether to include non-processed samples. Defaults to true
585
+ * @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
576
586
  * @param truncateLabels If true, only a slice of labels will be returned.
577
587
  */
578
588
  getProjectTrainingDataSummary(projectId: number, queryParams?: getProjectTrainingDataSummaryQueryParams, options?: {
@@ -2013,6 +2013,7 @@ class ProjectsApi {
2013
2013
  * @param projectId Project ID
2014
2014
  * @param includeDisabled Whether to include disabled samples. Defaults to true
2015
2015
  * @param includeNotProcessed Whether to include non-processed samples. Defaults to true
2016
+ * @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
2016
2017
  */
2017
2018
  async getProjectDataAxesSummary(projectId, queryParams, options = { headers: {} }) {
2018
2019
  const localVarPath = this.basePath + '/api/{projectId}/data-axes'
@@ -2042,6 +2043,9 @@ class ProjectsApi {
2042
2043
  if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.includeNotProcessed) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.includeNotProcessed) !== null) {
2043
2044
  queryParameters['includeNotProcessed'] = queryParams.includeNotProcessed;
2044
2045
  }
2046
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
2047
+ queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
2048
+ }
2045
2049
  localVarHeaderParams = {
2046
2050
  ...localVarHeaderParams,
2047
2051
  ...options.headers,
@@ -2091,6 +2095,7 @@ class ProjectsApi {
2091
2095
  * @param projectId Project ID
2092
2096
  * @param impulseId Impulse ID. If this is unset then the default impulse is used.
2093
2097
  * @param truncateLabels If true, only a slice of labels will be returned.
2098
+ * @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
2094
2099
  */
2095
2100
  async getProjectInfo(projectId, queryParams, options = { headers: {} }) {
2096
2101
  const localVarPath = this.basePath + '/api/{projectId}'
@@ -2120,6 +2125,9 @@ class ProjectsApi {
2120
2125
  if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateLabels) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateLabels) !== null) {
2121
2126
  queryParameters['truncateLabels'] = queryParams.truncateLabels;
2122
2127
  }
2128
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
2129
+ queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
2130
+ }
2123
2131
  localVarHeaderParams = {
2124
2132
  ...localVarHeaderParams,
2125
2133
  ...options.headers,
@@ -2307,8 +2315,9 @@ class ProjectsApi {
2307
2315
  * Get the interval of the training data; if multiple intervals are present, the interval of the longest data item is returned. This only takes data in your _training_ set into account.
2308
2316
  * @summary Get the interval (in ms) of the training data
2309
2317
  * @param projectId Project ID
2318
+ * @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
2310
2319
  */
2311
- async getProjectRecommendedDataInterval(projectId, options = { headers: {} }) {
2320
+ async getProjectRecommendedDataInterval(projectId, queryParams, options = { headers: {} }) {
2312
2321
  const localVarPath = this.basePath + '/api/{projectId}/data-interval'
2313
2322
  .replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
2314
2323
  let queryParameters = {};
@@ -2330,6 +2339,9 @@ class ProjectsApi {
2330
2339
  if (projectId === null || projectId === undefined) {
2331
2340
  throw new Error('Required parameter projectId was null or undefined when calling getProjectRecommendedDataInterval.');
2332
2341
  }
2342
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
2343
+ queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
2344
+ }
2333
2345
  localVarHeaderParams = {
2334
2346
  ...localVarHeaderParams,
2335
2347
  ...options.headers,
@@ -2379,6 +2391,7 @@ class ProjectsApi {
2379
2391
  * @param projectId Project ID
2380
2392
  * @param includeDisabled Whether to include disabled samples. Defaults to true
2381
2393
  * @param includeNotProcessed Whether to include non-processed samples. Defaults to true
2394
+ * @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
2382
2395
  * @param truncateLabels If true, only a slice of labels will be returned.
2383
2396
  */
2384
2397
  async getProjectTrainingDataSummary(projectId, queryParams, options = { headers: {} }) {
@@ -2409,6 +2422,9 @@ class ProjectsApi {
2409
2422
  if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.includeNotProcessed) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.includeNotProcessed) !== null) {
2410
2423
  queryParameters['includeNotProcessed'] = queryParams.includeNotProcessed;
2411
2424
  }
2425
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.datasetVersionId) !== null) {
2426
+ queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
2427
+ }
2412
2428
  if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateLabels) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.truncateLabels) !== null) {
2413
2429
  queryParameters['truncateLabels'] = queryParams.truncateLabels;
2414
2430
  }