edge-impulse-api 1.93.4 → 1.93.5

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 (73) hide show
  1. package/build/library/sdk/api/rawDataApi.d.ts +15 -0
  2. package/build/library/sdk/api/rawDataApi.js +77 -0
  3. package/build/library/sdk/api/rawDataApi.js.map +1 -1
  4. package/build/library/sdk/model/getRawDataProjectMetadataResponse.d.ts +35 -0
  5. package/build/library/sdk/model/getRawDataProjectMetadataResponse.js +39 -0
  6. package/build/library/sdk/model/getRawDataProjectMetadataResponse.js.map +1 -0
  7. package/build/library/sdk/model/getRawDataProjectMetadataResponseAllOf.d.ts +27 -0
  8. package/build/library/sdk/model/getRawDataProjectMetadataResponseAllOf.js +29 -0
  9. package/build/library/sdk/model/getRawDataProjectMetadataResponseAllOf.js.map +1 -0
  10. package/build/library/sdk/model/models.d.ts +21 -0
  11. package/build/library/sdk/model/models.js +75 -0
  12. package/build/library/sdk/model/models.js.map +1 -1
  13. package/build/library/sdk/model/objectDetectionLastLayer.d.ts +1 -1
  14. package/build/library/sdk/model/objectDetectionLastLayer.js +1 -1
  15. package/build/library/sdk/model/objectDetectionLastLayer.js.map +1 -1
  16. package/build/library/sdk/model/projectDatasetMetadataBase.d.ts +41 -0
  17. package/build/library/sdk/model/projectDatasetMetadataBase.js +83 -0
  18. package/build/library/sdk/model/projectDatasetMetadataBase.js.map +1 -0
  19. package/build/library/sdk/model/projectDatasetMetadataCategoryData.d.ts +37 -0
  20. package/build/library/sdk/model/projectDatasetMetadataCategoryData.js +42 -0
  21. package/build/library/sdk/model/projectDatasetMetadataCategoryData.js.map +1 -0
  22. package/build/library/sdk/model/projectDatasetMetadataClasses.d.ts +39 -0
  23. package/build/library/sdk/model/projectDatasetMetadataClasses.js +70 -0
  24. package/build/library/sdk/model/projectDatasetMetadataClasses.js.map +1 -0
  25. package/build/library/sdk/model/projectDatasetMetadataClassesAllOf.d.ts +33 -0
  26. package/build/library/sdk/model/projectDatasetMetadataClassesAllOf.js +55 -0
  27. package/build/library/sdk/model/projectDatasetMetadataClassesAllOf.js.map +1 -0
  28. package/build/library/sdk/model/projectDatasetMetadataClassesCategory.d.ts +41 -0
  29. package/build/library/sdk/model/projectDatasetMetadataClassesCategory.js +90 -0
  30. package/build/library/sdk/model/projectDatasetMetadataClassesCategory.js.map +1 -0
  31. package/build/library/sdk/model/projectDatasetMetadataClassesCategoryAllOf.d.ts +30 -0
  32. package/build/library/sdk/model/projectDatasetMetadataClassesCategoryAllOf.js +40 -0
  33. package/build/library/sdk/model/projectDatasetMetadataClassesCategoryAllOf.js.map +1 -0
  34. package/build/library/sdk/model/projectDatasetMetadataCommon.d.ts +33 -0
  35. package/build/library/sdk/model/projectDatasetMetadataCommon.js +42 -0
  36. package/build/library/sdk/model/projectDatasetMetadataCommon.js.map +1 -0
  37. package/build/library/sdk/model/projectDatasetMetadataRatioClass.d.ts +71 -0
  38. package/build/library/sdk/model/projectDatasetMetadataRatioClass.js +82 -0
  39. package/build/library/sdk/model/projectDatasetMetadataRatioClass.js.map +1 -0
  40. package/build/library/sdk/model/projectDatasetMetadataRatioClasses.d.ts +44 -0
  41. package/build/library/sdk/model/projectDatasetMetadataRatioClasses.js +88 -0
  42. package/build/library/sdk/model/projectDatasetMetadataRatioClasses.js.map +1 -0
  43. package/build/library/sdk/model/projectDatasetMetadataRatioCount.d.ts +30 -0
  44. package/build/library/sdk/model/projectDatasetMetadataRatioCount.js +42 -0
  45. package/build/library/sdk/model/projectDatasetMetadataRatioCount.js.map +1 -0
  46. package/build/library/sdk/model/projectDatasetMetadataRatioNoRatio.d.ts +33 -0
  47. package/build/library/sdk/model/projectDatasetMetadataRatioNoRatio.js +43 -0
  48. package/build/library/sdk/model/projectDatasetMetadataRatioNoRatio.js.map +1 -0
  49. package/build/library/sdk/model/projectDatasetMetadataRatioRegression.d.ts +38 -0
  50. package/build/library/sdk/model/projectDatasetMetadataRatioRegression.js +63 -0
  51. package/build/library/sdk/model/projectDatasetMetadataRatioRegression.js.map +1 -0
  52. package/build/library/sdk/model/projectDatasetMetadataRegression.d.ts +39 -0
  53. package/build/library/sdk/model/projectDatasetMetadataRegression.js +70 -0
  54. package/build/library/sdk/model/projectDatasetMetadataRegression.js.map +1 -0
  55. package/build/library/sdk/model/projectDatasetMetadataRegressionAllOf.d.ts +33 -0
  56. package/build/library/sdk/model/projectDatasetMetadataRegressionAllOf.js +55 -0
  57. package/build/library/sdk/model/projectDatasetMetadataRegressionAllOf.js.map +1 -0
  58. package/build/library/sdk/model/projectDatasetMetadataRegressionCategory.d.ts +47 -0
  59. package/build/library/sdk/model/projectDatasetMetadataRegressionCategory.js +105 -0
  60. package/build/library/sdk/model/projectDatasetMetadataRegressionCategory.js.map +1 -0
  61. package/build/library/sdk/model/projectDatasetMetadataRegressionCategoryAllOf.d.ts +36 -0
  62. package/build/library/sdk/model/projectDatasetMetadataRegressionCategoryAllOf.js +55 -0
  63. package/build/library/sdk/model/projectDatasetMetadataRegressionCategoryAllOf.js.map +1 -0
  64. package/build/library/sdk/model/rawDataLabelDistributionLabel.d.ts +37 -0
  65. package/build/library/sdk/model/rawDataLabelDistributionLabel.js +44 -0
  66. package/build/library/sdk/model/rawDataLabelDistributionLabel.js.map +1 -0
  67. package/build/library/sdk/model/rawDataLabelDistributionRegressionValueGroup.d.ts +47 -0
  68. package/build/library/sdk/model/rawDataLabelDistributionRegressionValueGroup.js +52 -0
  69. package/build/library/sdk/model/rawDataLabelDistributionRegressionValueGroup.js.map +1 -0
  70. package/build/library/sdk/model/rawDataLabelDistributionRegressionValueGroupsPerKey.d.ts +44 -0
  71. package/build/library/sdk/model/rawDataLabelDistributionRegressionValueGroupsPerKey.js +47 -0
  72. package/build/library/sdk/model/rawDataLabelDistributionRegressionValueGroupsPerKey.js.map +1 -0
  73. package/package.json +1 -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 { GetRawDataProjectMetadataResponse } from '../model/getRawDataProjectMetadataResponse';
40
41
  import { GetSampleDspResponse } from '../model/getSampleDspResponse';
41
42
  import { GetSampleMetadataFilterOptionsResponse } from '../model/getSampleMetadataFilterOptionsResponse';
42
43
  import { GetSampleMetadataResponse } from '../model/getSampleMetadataResponse';
@@ -338,6 +339,9 @@ type getRawDataMetadataDistributionQueryParams = {
338
339
  groupByLabel?: boolean;
339
340
  excludeDisabledSamples?: boolean;
340
341
  };
342
+ type getRawDataProjectMetadataQueryParams = {
343
+ includeDisabled?: 'both' | 'enabled';
344
+ };
341
345
  type getSampleQueryParams = {
342
346
  limitPayloadValues?: number;
343
347
  cacheKey?: string;
@@ -1032,6 +1036,17 @@ export declare class RawDataApi {
1032
1036
  [name: string]: string;
1033
1037
  };
1034
1038
  }): Promise<GetRawDataMetadataDistributionResponse>;
1039
+ /**
1040
+ * Get the raw data metadata for this project
1041
+ * @summary Get project dataset metadata
1042
+ * @param projectId Project ID
1043
+ * @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
1044
+ */
1045
+ getRawDataProjectMetadata(projectId: number, queryParams?: getRawDataProjectMetadataQueryParams, options?: {
1046
+ headers: {
1047
+ [name: string]: string;
1048
+ };
1049
+ }): Promise<GetRawDataProjectMetadataResponse>;
1035
1050
  /**
1036
1051
  * Get a sample.
1037
1052
  * @summary Get sample
@@ -3712,6 +3712,83 @@ class RawDataApi {
3712
3712
  const response = await fetch(url, requestOptions);
3713
3713
  return this.handleResponse(response, 'GetRawDataMetadataDistributionResponse');
3714
3714
  }
3715
+ /**
3716
+ * Get the raw data metadata for this project
3717
+ * @summary Get project dataset metadata
3718
+ * @param projectId Project ID
3719
+ * @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
3720
+ */
3721
+ async getRawDataProjectMetadata(projectId, queryParams, options = { headers: {} }) {
3722
+ const localVarPath = this.basePath + '/api/{projectId}/raw-data/project-metadata'
3723
+ .replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
3724
+ let localVarQueryParameters = {};
3725
+ let localVarHeaderParams = {
3726
+ 'User-Agent': 'edgeimpulse-api nodejs',
3727
+ 'Content-Type': 'application/json',
3728
+ ...this.defaultHeaders,
3729
+ };
3730
+ const produces = ['application/json'];
3731
+ // give precedence to 'application/json'
3732
+ if (produces.indexOf('application/json') >= 0) {
3733
+ localVarHeaderParams.Accept = 'application/json';
3734
+ }
3735
+ else {
3736
+ localVarHeaderParams.Accept = produces.join(',');
3737
+ }
3738
+ let localVarFormParams;
3739
+ // verify required parameter 'projectId' is not null or undefined
3740
+ if (projectId === null || projectId === undefined) {
3741
+ throw new Error('Required parameter projectId was null or undefined when calling getRawDataProjectMetadata.');
3742
+ }
3743
+ if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.includeDisabled) !== undefined) {
3744
+ localVarQueryParameters['includeDisabled'] = models_1.ObjectSerializer.serialize(queryParams.includeDisabled, "'both' | 'enabled'");
3745
+ }
3746
+ localVarHeaderParams = {
3747
+ ...localVarHeaderParams,
3748
+ ...options.headers,
3749
+ ...this.opts.extraHeaders,
3750
+ };
3751
+ const queryString = Object.entries(localVarQueryParameters)
3752
+ .filter(([, value]) => value !== undefined)
3753
+ .map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
3754
+ .join('&');
3755
+ let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
3756
+ let localVarRequestOptions = {
3757
+ method: 'GET',
3758
+ headers: { ...localVarHeaderParams },
3759
+ };
3760
+ let requestOptions = localVarRequestOptions;
3761
+ let url = localVarUrl;
3762
+ const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
3763
+ requestOptions = auth_ApiKeyAuthentication.requestOptions;
3764
+ url = auth_ApiKeyAuthentication.url;
3765
+ const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
3766
+ requestOptions = auth_JWTAuthentication.requestOptions;
3767
+ url = auth_JWTAuthentication.url;
3768
+ const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
3769
+ requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
3770
+ url = auth_JWTHttpHeaderAuthentication.url;
3771
+ const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
3772
+ requestOptions = auth_OAuth2.requestOptions;
3773
+ url = auth_OAuth2.url;
3774
+ const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
3775
+ requestOptions = authDefault.requestOptions;
3776
+ url = authDefault.url;
3777
+ if (localVarFormParams) {
3778
+ delete requestOptions.headers['Content-Type'];
3779
+ if (localVarFormParams instanceof FormData) {
3780
+ // FormData: fetch will handle Content-Type automatically.
3781
+ requestOptions.body = localVarFormParams;
3782
+ }
3783
+ else if (Object.keys(localVarFormParams).length > 0) {
3784
+ // URL-encoded form
3785
+ requestOptions.body = new URLSearchParams(localVarFormParams).toString();
3786
+ requestOptions.headers['Content-Type'] = 'application/x-www-form-urlencoded';
3787
+ }
3788
+ }
3789
+ const response = await fetch(url, requestOptions);
3790
+ return this.handleResponse(response, 'GetRawDataProjectMetadataResponse');
3791
+ }
3715
3792
  /**
3716
3793
  * Get a sample.
3717
3794
  * @summary Get sample