edge-impulse-api 1.93.8 → 1.93.9

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 (40) hide show
  1. package/build/browser/edge-impulse-api.d.ts +60 -90
  2. package/build/browser/edge-impulse-api.js +49 -257
  3. package/build/browser/edge-impulse-api.js.map +1 -1
  4. package/build/library/sdk/api/datasetVersionsApi.d.ts +12 -50
  5. package/build/library/sdk/api/datasetVersionsApi.js +19 -231
  6. package/build/library/sdk/api/datasetVersionsApi.js.map +1 -1
  7. package/build/library/sdk/api/rawDataApi.d.ts +2 -0
  8. package/build/library/sdk/api/rawDataApi.js +4 -0
  9. package/build/library/sdk/api/rawDataApi.js.map +1 -1
  10. package/build/library/sdk/model/datasetVersionRawDataChangeDetailItem.d.ts +6 -0
  11. package/build/library/sdk/model/{listDatasetVersionChangesResponse.js → datasetVersionRawDataChangeDetailItem.js} +1 -1
  12. package/build/library/sdk/model/datasetVersionRawDataChangeDetailItem.js.map +1 -0
  13. package/build/library/sdk/model/datasetVersionRawDataChangeDetails.d.ts +5 -0
  14. package/build/library/sdk/model/{getDatasetVersionRawDataResponse.js → datasetVersionRawDataChangeDetails.js} +1 -1
  15. package/build/library/sdk/model/datasetVersionRawDataChangeDetails.js.map +1 -0
  16. package/build/library/sdk/model/getDatasetVersionRawDataChangesResponse.d.ts +13 -0
  17. package/build/library/sdk/model/{getDatasetVersionRawDataSampleResponse.js → getDatasetVersionRawDataChangesResponse.js} +1 -1
  18. package/build/library/sdk/model/getDatasetVersionRawDataChangesResponse.js.map +1 -0
  19. package/build/library/sdk/model/lastUpdatedByDatasetVersionRestore.d.ts +2 -2
  20. package/build/library/sdk/model/models.d.ts +4 -4
  21. package/build/library/sdk/model/models.js +4 -4
  22. package/build/library/sdk/model/models.js.map +1 -1
  23. package/build/library/sdk/model/projectDatasetMetadataBase.d.ts +5 -0
  24. package/build/library/sdk/model/projectDatasetMetadataBase.js.map +1 -1
  25. package/build/library/sdk/model/projectDatasetMetadataBaseChangeActionCounts.d.ts +17 -0
  26. package/build/library/sdk/model/{getDatasetVersionSampleChangeDetailsResponse.js → projectDatasetMetadataBaseChangeActionCounts.js} +1 -1
  27. package/build/library/sdk/model/projectDatasetMetadataBaseChangeActionCounts.js.map +1 -0
  28. package/build/library/sdk/model/projectDatasetMetadataClassesCategory.d.ts +5 -0
  29. package/build/library/sdk/model/projectDatasetMetadataClassesCategory.js.map +1 -1
  30. package/build/library/sdk/model/projectDatasetMetadataRegressionCategory.d.ts +5 -0
  31. package/build/library/sdk/model/projectDatasetMetadataRegressionCategory.js.map +1 -1
  32. package/package.json +1 -1
  33. package/build/library/sdk/model/getDatasetVersionRawDataResponse.d.ts +0 -13
  34. package/build/library/sdk/model/getDatasetVersionRawDataResponse.js.map +0 -1
  35. package/build/library/sdk/model/getDatasetVersionRawDataSampleResponse.d.ts +0 -12
  36. package/build/library/sdk/model/getDatasetVersionRawDataSampleResponse.js.map +0 -1
  37. package/build/library/sdk/model/getDatasetVersionSampleChangeDetailsResponse.d.ts +0 -12
  38. package/build/library/sdk/model/getDatasetVersionSampleChangeDetailsResponse.js.map +0 -1
  39. package/build/library/sdk/model/listDatasetVersionChangesResponse.d.ts +0 -13
  40. package/build/library/sdk/model/listDatasetVersionChangesResponse.js.map +0 -1
@@ -2103,7 +2103,7 @@ export enum DatasetVersionsApiApiKeys {
2103
2103
  JWTAuthentication = 1,
2104
2104
  JWTHttpHeaderAuthentication = 2
2105
2105
  }
2106
- type getDatasetVersionRawDataQueryParams = {
2106
+ type getDatasetVersionRawDataChangesQueryParams = {
2107
2107
  category: RawDataFilterCategory;
2108
2108
  limit?: number;
2109
2109
  offset?: number;
@@ -2127,14 +2127,13 @@ type getDatasetVersionRawDataQueryParams = {
2127
2127
  metadata?: string;
2128
2128
  minDate?: Date;
2129
2129
  maxDate?: Date;
2130
- };
2131
- type listDatasetVersionChangesQueryParams = {
2132
- limit?: number;
2133
- offset?: number;
2130
+ changeActions?: string;
2134
2131
  };
2135
2132
  type listDatasetVersionsQueryParams = {
2136
2133
  limit?: number;
2137
2134
  offset?: number;
2135
+ search?: string;
2136
+ type?: string;
2138
2137
  };
2139
2138
  export type DatasetVersionsApiOpts = {
2140
2139
  extraHeaders?: Record<string, string>;
@@ -2171,8 +2170,8 @@ export class DatasetVersionsApi {
2171
2170
  };
2172
2171
  }): Promise<GetDatasetVersionResponse>;
2173
2172
  /**
2174
- * Get the full snapshot raw data contents of a specific dataset for this project.
2175
- * @summary Get dataset version raw-data contents
2173
+ * Get raw data samples from a specific dataset snapshot for this project, including per-sample change metadata when available.
2174
+ * @summary Get dataset version raw-data samples with changes
2176
2175
  * @param projectId Project ID
2177
2176
  * @param datasetVersionId Dataset version ID
2178
2177
  * @param category Which of the three acquisition categories to retrieve data from
@@ -2198,55 +2197,21 @@ export class DatasetVersionsApi {
2198
2197
  * @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: - \&quot;key\&quot;: Metadata key to filter on. - \&quot;op\&quot;: Operator (\&quot;eq\&quot; for positive match, \&quot;neq\&quot; for negative match). - \&quot;values\&quot;: (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: - { \&quot;no_metadata\&quot;: boolean } - If true, include samples without any metadata - { \&quot;filters_combinator\&quot;: (\&quot;and\&quot; | \&quot;or\&quot;) } - Specifies the combinator and matching mode: - \&quot;and\&quot;: All filter items must match (logical AND). - \&quot;or\&quot;: Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
2199
2198
  * @param minDate Only include samples that where added after the date given
2200
2199
  * @param maxDate Only include samples that were added before the date given
2200
+ * @param changeActions Only include changes with an action within the given list of actions, given as a JSON string
2201
2201
  */
2202
- getDatasetVersionRawData(projectId: number, datasetVersionId: number, queryParams: getDatasetVersionRawDataQueryParams, options?: {
2203
- headers: {
2204
- [name: string]: string;
2205
- };
2206
- }): Promise<GetDatasetVersionRawDataResponse>;
2207
- /**
2208
- * Get a raw sample from a specific dataset version.
2209
- * @summary Get dataset version raw sample
2210
- * @param projectId Project ID
2211
- * @param datasetVersionId Dataset version ID
2212
- * @param sampleId Sample ID
2213
- */
2214
- getDatasetVersionRawSample(projectId: number, datasetVersionId: number, sampleId: number, options?: {
2202
+ getDatasetVersionRawDataChanges(projectId: number, datasetVersionId: number, queryParams: getDatasetVersionRawDataChangesQueryParams, options?: {
2215
2203
  headers: {
2216
2204
  [name: string]: string;
2217
2205
  };
2218
- }): Promise<GetDatasetVersionRawDataSampleResponse>;
2219
- /**
2220
- * Get a sample\'s changes in a specific dataset version for this project.
2221
- * @summary Get dataset version sample change details
2222
- * @param projectId Project ID
2223
- * @param datasetVersionId Dataset version ID
2224
- * @param sampleId Sample ID
2225
- */
2226
- getDatasetVersionSampleChangeDetails(projectId: number, datasetVersionId: number, sampleId: number, options?: {
2227
- headers: {
2228
- [name: string]: string;
2229
- };
2230
- }): Promise<GetDatasetVersionSampleChangeDetailsResponse>;
2231
- /**
2232
- * List details of the changes in a specific dataset version for this project.
2233
- * @summary List dataset version changes
2234
- * @param projectId Project ID
2235
- * @param datasetVersionId Dataset version ID
2236
- * @param limit Maximum number of results
2237
- * @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
2238
- */
2239
- listDatasetVersionChanges(projectId: number, datasetVersionId: number, queryParams?: listDatasetVersionChangesQueryParams, options?: {
2240
- headers: {
2241
- [name: string]: string;
2242
- };
2243
- }): Promise<ListDatasetVersionChangesResponse>;
2206
+ }): Promise<GetDatasetVersionRawDataChangesResponse>;
2244
2207
  /**
2245
2208
  * Get a list of all dataset versions for this project.
2246
2209
  * @summary List dataset versions
2247
2210
  * @param projectId Project ID
2248
2211
  * @param limit Maximum number of results
2249
2212
  * @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
2213
+ * @param search Search query
2214
+ * @param type Only include dataset versions with a type within the given list of types, given as a JSON string
2250
2215
  */
2251
2216
  listDatasetVersions(projectId: number, queryParams?: listDatasetVersionsQueryParams, options?: {
2252
2217
  headers: {
@@ -9015,6 +8980,7 @@ type getRawDataMetadataDistributionQueryParams = {
9015
8980
  excludeDisabledSamples?: boolean;
9016
8981
  };
9017
8982
  type getRawDataProjectMetadataQueryParams = {
8983
+ datasetVersionId?: number;
9018
8984
  includeDisabled?: 'both' | 'enabled';
9019
8985
  };
9020
8986
  type getSampleQueryParams = {
@@ -9715,6 +9681,7 @@ export class RawDataApi {
9715
9681
  * Get the raw data metadata for this project
9716
9682
  * @summary Get project dataset metadata
9717
9683
  * @param projectId Project ID
9684
+ * @param datasetVersionId Dataset version ID. If not set, the current dataset version is used
9718
9685
  * @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
9719
9686
  */
9720
9687
  getRawDataProjectMetadata(projectId: number, queryParams?: getRawDataProjectMetadataQueryParams, options?: {
@@ -15506,6 +15473,18 @@ export type DatasetVersionPendingWindow = {
15506
15473
  };
15507
15474
 
15508
15475
 
15476
+ export type DatasetVersionRawDataChangeDetailItem = {
15477
+ sample: Sample;
15478
+ change?: DatasetVersionChangeItem;
15479
+ };
15480
+
15481
+
15482
+ export type DatasetVersionRawDataChangeDetails = {
15483
+ totalCount: number;
15484
+ changeDetails: DatasetVersionRawDataChangeDetailItem[];
15485
+ };
15486
+
15487
+
15509
15488
  export type DatasetVersionSummary = {
15510
15489
  /**
15511
15490
  * Total number of raw mutation events in this dataset version window. A single sample can contribute multiple
@@ -17118,7 +17097,7 @@ export type GetDatasetRatioResponse = {
17118
17097
  };
17119
17098
 
17120
17099
 
17121
- export type GetDatasetVersionRawDataResponse = {
17100
+ export type GetDatasetVersionRawDataChangesResponse = {
17122
17101
  /**
17123
17102
  * Whether the operation succeeded
17124
17103
  */
@@ -17127,21 +17106,8 @@ export type GetDatasetVersionRawDataResponse = {
17127
17106
  * Optional error description (set if 'success' was false)
17128
17107
  */
17129
17108
  error?: string;
17130
- samples: Sample[];
17131
17109
  totalCount: number;
17132
- };
17133
-
17134
-
17135
- export type GetDatasetVersionRawDataSampleResponse = {
17136
- /**
17137
- * Whether the operation succeeded
17138
- */
17139
- success: boolean;
17140
- /**
17141
- * Optional error description (set if 'success' was false)
17142
- */
17143
- error?: string;
17144
- sample: Sample;
17110
+ changeDetails: DatasetVersionRawDataChangeDetailItem[];
17145
17111
  };
17146
17112
 
17147
17113
 
@@ -17158,19 +17124,6 @@ export type GetDatasetVersionResponse = {
17158
17124
  };
17159
17125
 
17160
17126
 
17161
- export type GetDatasetVersionSampleChangeDetailsResponse = {
17162
- /**
17163
- * Whether the operation succeeded
17164
- */
17165
- success: boolean;
17166
- /**
17167
- * Optional error description (set if 'success' was false)
17168
- */
17169
- error?: string;
17170
- change: DatasetVersionChangeItem;
17171
- };
17172
-
17173
-
17174
17127
  export type GetDeploymentHistoryResponse = {
17175
17128
  /**
17176
17129
  * Whether the operation succeeded
@@ -19816,11 +19769,11 @@ export type LastUpdatedByDatasetVersionRestore = {
19816
19769
  /**
19817
19770
  * The ID of the dataset version that last updated the sample.
19818
19771
  */
19819
- datasetVersionId?: number;
19772
+ datasetVersionId: number;
19820
19773
  /**
19821
19774
  * A random grouping ID to keep restore snapshots isolated.
19822
19775
  */
19823
- groupKey?: string;
19776
+ groupKey: string;
19824
19777
  /**
19825
19778
  * The actor that started the dataset restore operation.
19826
19779
  */
@@ -19947,20 +19900,6 @@ export type ListApiKeysResponse = {
19947
19900
  };
19948
19901
 
19949
19902
 
19950
- export type ListDatasetVersionChangesResponse = {
19951
- /**
19952
- * Whether the operation succeeded
19953
- */
19954
- success: boolean;
19955
- /**
19956
- * Optional error description (set if 'success' was false)
19957
- */
19958
- error?: string;
19959
- changes: DatasetVersionChangeItem[];
19960
- totalCount: number;
19961
- };
19962
-
19963
-
19964
19903
  export type ListDatasetVersionsResponse = {
19965
19904
  /**
19966
19905
  * Whether the operation succeeded
@@ -23556,11 +23495,34 @@ export type ProjectDatasetMetadataBase = {
23556
23495
  isTimeseries: boolean;
23557
23496
  isFeatures: boolean;
23558
23497
  metadataFilterOptions: MetadataFilterOptions;
23498
+ /**
23499
+ * Breakdown of the number of samples with mutation events in the dataset version.
23500
+ */
23501
+ changeActionCounts?: ProjectDatasetMetadataBaseChangeActionCounts;
23559
23502
  };
23560
23503
  export type ProjectDatasetMetadataBaseTypeEnum = 'classes' | 'regression';
23561
23504
  export const ProjectDatasetMetadataBaseTypeEnumValues: string[];
23562
23505
 
23563
23506
 
23507
+ /**
23508
+ * Breakdown of the number of samples with mutation events in the dataset version.
23509
+ */
23510
+ export type ProjectDatasetMetadataBaseChangeActionCounts = {
23511
+ /**
23512
+ * Number of samples in this window with at least one insert mutation.
23513
+ */
23514
+ insert?: number;
23515
+ /**
23516
+ * Number of samples in this window with at least one update mutation.
23517
+ */
23518
+ update?: number;
23519
+ /**
23520
+ * Number of samples in this window with at least one delete mutation.
23521
+ */
23522
+ delete?: number;
23523
+ };
23524
+
23525
+
23564
23526
  /**
23565
23527
  * Dataset ratio info for a single category and label
23566
23528
  */
@@ -23604,6 +23566,10 @@ export type ProjectDatasetMetadataClassesCategory = {
23604
23566
  isTimeseries: boolean;
23605
23567
  isFeatures: boolean;
23606
23568
  metadataFilterOptions: MetadataFilterOptions;
23569
+ /**
23570
+ * Breakdown of the number of samples with mutation events in the dataset version.
23571
+ */
23572
+ changeActionCounts?: ProjectDatasetMetadataBaseChangeActionCounts;
23607
23573
  fullLabelCount: number;
23608
23574
  labels: RawDataLabelDistributionLabel[];
23609
23575
  };
@@ -23758,6 +23724,10 @@ export type ProjectDatasetMetadataRegressionCategory = {
23758
23724
  isTimeseries: boolean;
23759
23725
  isFeatures: boolean;
23760
23726
  metadataFilterOptions: MetadataFilterOptions;
23727
+ /**
23728
+ * Breakdown of the number of samples with mutation events in the dataset version.
23729
+ */
23730
+ changeActionCounts?: ProjectDatasetMetadataBaseChangeActionCounts;
23761
23731
  labelsCount: number;
23762
23732
  minLabel: number;
23763
23733
  maxLabel: number;