edge-impulse-api 1.93.8 → 1.93.10

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 (52) hide show
  1. package/build/browser/edge-impulse-api.d.ts +151 -91
  2. package/build/browser/edge-impulse-api.js +214 -258
  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/organizationCreateProjectApi.d.ts +25 -0
  8. package/build/library/sdk/api/organizationCreateProjectApi.js +136 -0
  9. package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
  10. package/build/library/sdk/api/rawDataApi.d.ts +3 -1
  11. package/build/library/sdk/api/rawDataApi.js +5 -1
  12. package/build/library/sdk/api/rawDataApi.js.map +1 -1
  13. package/build/library/sdk/model/createCustomBlockUploadLinkRequest.d.ts +18 -0
  14. package/build/library/sdk/model/createCustomBlockUploadLinkRequest.js +6 -0
  15. package/build/library/sdk/model/createCustomBlockUploadLinkRequest.js.map +1 -0
  16. package/build/library/sdk/model/createCustomBlockUploadLinkResponse.d.ts +22 -0
  17. package/build/library/sdk/model/{listDatasetVersionChangesResponse.js → createCustomBlockUploadLinkResponse.js} +1 -1
  18. package/build/library/sdk/model/createCustomBlockUploadLinkResponse.js.map +1 -0
  19. package/build/library/sdk/model/datasetVersionRawDataChangeDetailItem.d.ts +6 -0
  20. package/build/library/sdk/model/{getDatasetVersionRawDataSampleResponse.js → datasetVersionRawDataChangeDetailItem.js} +1 -1
  21. package/build/library/sdk/model/datasetVersionRawDataChangeDetailItem.js.map +1 -0
  22. package/build/library/sdk/model/datasetVersionRawDataChangeDetails.d.ts +5 -0
  23. package/build/library/sdk/model/{getDatasetVersionRawDataResponse.js → datasetVersionRawDataChangeDetails.js} +1 -1
  24. package/build/library/sdk/model/datasetVersionRawDataChangeDetails.js.map +1 -0
  25. package/build/library/sdk/model/finalizeCustomBlockUploadRequest.d.ts +22 -0
  26. package/build/library/sdk/model/finalizeCustomBlockUploadRequest.js +6 -0
  27. package/build/library/sdk/model/finalizeCustomBlockUploadRequest.js.map +1 -0
  28. package/build/library/sdk/model/getDatasetVersionRawDataChangesResponse.d.ts +13 -0
  29. package/build/library/sdk/model/{getDatasetVersionSampleChangeDetailsResponse.js → getDatasetVersionRawDataChangesResponse.js} +1 -1
  30. package/build/library/sdk/model/getDatasetVersionRawDataChangesResponse.js.map +1 -0
  31. package/build/library/sdk/model/lastUpdatedByDatasetVersionRestore.d.ts +2 -2
  32. package/build/library/sdk/model/models.d.ts +7 -4
  33. package/build/library/sdk/model/models.js +7 -4
  34. package/build/library/sdk/model/models.js.map +1 -1
  35. package/build/library/sdk/model/projectDatasetMetadataBase.d.ts +5 -0
  36. package/build/library/sdk/model/projectDatasetMetadataBase.js.map +1 -1
  37. package/build/library/sdk/model/projectDatasetMetadataBaseChangeActionCounts.d.ts +17 -0
  38. package/build/library/sdk/model/projectDatasetMetadataBaseChangeActionCounts.js +4 -0
  39. package/build/library/sdk/model/projectDatasetMetadataBaseChangeActionCounts.js.map +1 -0
  40. package/build/library/sdk/model/projectDatasetMetadataClassesCategory.d.ts +5 -0
  41. package/build/library/sdk/model/projectDatasetMetadataClassesCategory.js.map +1 -1
  42. package/build/library/sdk/model/projectDatasetMetadataRegressionCategory.d.ts +5 -0
  43. package/build/library/sdk/model/projectDatasetMetadataRegressionCategory.js.map +1 -1
  44. package/package.json +1 -1
  45. package/build/library/sdk/model/getDatasetVersionRawDataResponse.d.ts +0 -13
  46. package/build/library/sdk/model/getDatasetVersionRawDataResponse.js.map +0 -1
  47. package/build/library/sdk/model/getDatasetVersionRawDataSampleResponse.d.ts +0 -12
  48. package/build/library/sdk/model/getDatasetVersionRawDataSampleResponse.js.map +0 -1
  49. package/build/library/sdk/model/getDatasetVersionSampleChangeDetailsResponse.d.ts +0 -12
  50. package/build/library/sdk/model/getDatasetVersionSampleChangeDetailsResponse.js.map +0 -1
  51. package/build/library/sdk/model/listDatasetVersionChangesResponse.d.ts +0 -13
  52. 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?: {
2202
+ getDatasetVersionRawDataChanges(projectId: number, datasetVersionId: number, queryParams: getDatasetVersionRawDataChangesQueryParams, options?: {
2203
2203
  headers: {
2204
2204
  [name: string]: string;
2205
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?: {
2215
- headers: {
2216
- [name: string]: string;
2217
- };
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: {
@@ -5294,6 +5259,17 @@ export class OrganizationCreateProjectApi {
5294
5259
  [name: string]: string;
5295
5260
  };
5296
5261
  }): Promise<GenericApiResponse>;
5262
+ /**
5263
+ * Creates a signed link to securely upload a custom block archive directly to S3.
5264
+ * @summary Create pre-signed S3 upload link for a custom block archive
5265
+ * @param organizationId Organization ID
5266
+ * @param createCustomBlockUploadLinkRequest
5267
+ */
5268
+ createCustomBlockUploadLink(organizationId: number, createCustomBlockUploadLinkRequest: CreateCustomBlockUploadLinkRequest, options?: {
5269
+ headers: {
5270
+ [name: string]: string;
5271
+ };
5272
+ }): Promise<CreateCustomBlockUploadLinkResponse>;
5297
5273
  /**
5298
5274
  * Remove a transformation job. This will stop all running jobs.
5299
5275
  * @summary Delete transformation job
@@ -5317,6 +5293,17 @@ export class OrganizationCreateProjectApi {
5317
5293
  [name: string]: string;
5318
5294
  };
5319
5295
  }): Promise<GenericApiResponse>;
5296
+ /**
5297
+ * Verifies a staged custom block archive and starts a custom block build job.
5298
+ * @summary Finalize custom block upload
5299
+ * @param organizationId Organization ID
5300
+ * @param finalizeCustomBlockUploadRequest
5301
+ */
5302
+ finalizeCustomBlockUpload(organizationId: number, finalizeCustomBlockUploadRequest: FinalizeCustomBlockUploadRequest, options?: {
5303
+ headers: {
5304
+ [name: string]: string;
5305
+ };
5306
+ }): Promise<StartJobResponse>;
5320
5307
  /**
5321
5308
  * Get the current status of a transformation job job.
5322
5309
  * @summary Get transformation job status
@@ -9015,6 +9002,7 @@ type getRawDataMetadataDistributionQueryParams = {
9015
9002
  excludeDisabledSamples?: boolean;
9016
9003
  };
9017
9004
  type getRawDataProjectMetadataQueryParams = {
9005
+ datasetVersionId?: number;
9018
9006
  includeDisabled?: 'both' | 'enabled';
9019
9007
  };
9020
9008
  type getSampleQueryParams = {
@@ -9715,6 +9703,7 @@ export class RawDataApi {
9715
9703
  * Get the raw data metadata for this project
9716
9704
  * @summary Get project dataset metadata
9717
9705
  * @param projectId Project ID
9706
+ * @param datasetVersionId Dataset version ID. If not set, the current dataset version is used
9718
9707
  * @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
9719
9708
  */
9720
9709
  getRawDataProjectMetadata(projectId: number, queryParams?: getRawDataProjectMetadataQueryParams, options?: {
@@ -9959,7 +9948,7 @@ export class RawDataApi {
9959
9948
  };
9960
9949
  }): Promise<RebalanceDatasetResponse>;
9961
9950
  /**
9962
- * Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data. Returns immediately on small datasets, or starts a job on larger datasets. To get the dataset ratio (as returned by the v1 endpoint), use getDatasetRatio.
9951
+ * Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data. Returns immediately on small datasets, or starts a job on larger datasets. To get the dataset ratio (as returned by the v1 endpoint), use getDatasetRatio. For richer, more powerful dataset splitting with configurable ratios, stratification, and grouping, use splitDataset (`/v1/api/{projectId}/split`).
9963
9952
  * @summary Rebalance dataset
9964
9953
  * @param projectId Project ID
9965
9954
  */
@@ -13874,6 +13863,50 @@ export type CountSamplesResponse = {
13874
13863
  };
13875
13864
 
13876
13865
 
13866
+ export type CreateCustomBlockUploadLinkRequest = {
13867
+ /**
13868
+ * file name
13869
+ */
13870
+ fileName: string;
13871
+ /**
13872
+ * file size in bytes
13873
+ */
13874
+ fileSize: number;
13875
+ /**
13876
+ * hash to identify file changes
13877
+ */
13878
+ fileHash: string;
13879
+ type: CreateCustomBlockUploadLinkRequestTypeEnum;
13880
+ blockId: number;
13881
+ };
13882
+ export type CreateCustomBlockUploadLinkRequestTypeEnum = 'transform' | 'deploy' | 'dsp' | 'transferLearning';
13883
+ export const CreateCustomBlockUploadLinkRequestTypeEnumValues: string[];
13884
+
13885
+
13886
+ export type CreateCustomBlockUploadLinkResponse = {
13887
+ /**
13888
+ * Whether the operation succeeded
13889
+ */
13890
+ success: boolean;
13891
+ /**
13892
+ * Optional error description (set if 'success' was false)
13893
+ */
13894
+ error?: string;
13895
+ /**
13896
+ * S3 Upload Link
13897
+ */
13898
+ url?: string;
13899
+ /**
13900
+ * S3 File Tag
13901
+ */
13902
+ ETag?: string;
13903
+ /**
13904
+ * S3 object key for the staged upload
13905
+ */
13906
+ uploadKey: string;
13907
+ };
13908
+
13909
+
13877
13910
  export type CreateDeveloperProfileResponse = {
13878
13911
  /**
13879
13912
  * Whether the operation succeeded
@@ -15506,6 +15539,18 @@ export type DatasetVersionPendingWindow = {
15506
15539
  };
15507
15540
 
15508
15541
 
15542
+ export type DatasetVersionRawDataChangeDetailItem = {
15543
+ sample: Sample;
15544
+ change?: DatasetVersionChangeItem;
15545
+ };
15546
+
15547
+
15548
+ export type DatasetVersionRawDataChangeDetails = {
15549
+ totalCount: number;
15550
+ changeDetails: DatasetVersionRawDataChangeDetailItem[];
15551
+ };
15552
+
15553
+
15509
15554
  export type DatasetVersionSummary = {
15510
15555
  /**
15511
15556
  * Total number of raw mutation events in this dataset version window. A single sample can contribute multiple
@@ -16776,6 +16821,30 @@ export type Feature = 'signup-thank-you-page' | 'stripe-live-mode' | 'azure-stor
16776
16821
  export const FeatureValues: string[];
16777
16822
 
16778
16823
 
16824
+ export type FinalizeCustomBlockUploadRequest = {
16825
+ /**
16826
+ * S3 object key for the staged upload
16827
+ */
16828
+ uploadKey: string;
16829
+ /**
16830
+ * file name
16831
+ */
16832
+ fileName: string;
16833
+ /**
16834
+ * file size in bytes
16835
+ */
16836
+ fileSize: number;
16837
+ /**
16838
+ * hash to identify file changes
16839
+ */
16840
+ fileHash: string;
16841
+ type: FinalizeCustomBlockUploadRequestTypeEnum;
16842
+ blockId: number;
16843
+ };
16844
+ export type FinalizeCustomBlockUploadRequestTypeEnum = 'transform' | 'deploy' | 'dsp' | 'transferLearning';
16845
+ export const FinalizeCustomBlockUploadRequestTypeEnumValues: string[];
16846
+
16847
+
16779
16848
  export type FindSegmentSampleRequest = {
16780
16849
  /**
16781
16850
  * If set, the segments are automatically shifted randomly, to make the dataset distribution more uniform.
@@ -17118,7 +17187,7 @@ export type GetDatasetRatioResponse = {
17118
17187
  };
17119
17188
 
17120
17189
 
17121
- export type GetDatasetVersionRawDataResponse = {
17190
+ export type GetDatasetVersionRawDataChangesResponse = {
17122
17191
  /**
17123
17192
  * Whether the operation succeeded
17124
17193
  */
@@ -17127,21 +17196,8 @@ export type GetDatasetVersionRawDataResponse = {
17127
17196
  * Optional error description (set if 'success' was false)
17128
17197
  */
17129
17198
  error?: string;
17130
- samples: Sample[];
17131
17199
  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;
17200
+ changeDetails: DatasetVersionRawDataChangeDetailItem[];
17145
17201
  };
17146
17202
 
17147
17203
 
@@ -17158,19 +17214,6 @@ export type GetDatasetVersionResponse = {
17158
17214
  };
17159
17215
 
17160
17216
 
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
17217
  export type GetDeploymentHistoryResponse = {
17175
17218
  /**
17176
17219
  * Whether the operation succeeded
@@ -19816,11 +19859,11 @@ export type LastUpdatedByDatasetVersionRestore = {
19816
19859
  /**
19817
19860
  * The ID of the dataset version that last updated the sample.
19818
19861
  */
19819
- datasetVersionId?: number;
19862
+ datasetVersionId: number;
19820
19863
  /**
19821
19864
  * A random grouping ID to keep restore snapshots isolated.
19822
19865
  */
19823
- groupKey?: string;
19866
+ groupKey: string;
19824
19867
  /**
19825
19868
  * The actor that started the dataset restore operation.
19826
19869
  */
@@ -19947,20 +19990,6 @@ export type ListApiKeysResponse = {
19947
19990
  };
19948
19991
 
19949
19992
 
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
19993
  export type ListDatasetVersionsResponse = {
19965
19994
  /**
19966
19995
  * Whether the operation succeeded
@@ -23556,11 +23585,34 @@ export type ProjectDatasetMetadataBase = {
23556
23585
  isTimeseries: boolean;
23557
23586
  isFeatures: boolean;
23558
23587
  metadataFilterOptions: MetadataFilterOptions;
23588
+ /**
23589
+ * Breakdown of the number of samples with mutation events in the dataset version.
23590
+ */
23591
+ changeActionCounts?: ProjectDatasetMetadataBaseChangeActionCounts;
23559
23592
  };
23560
23593
  export type ProjectDatasetMetadataBaseTypeEnum = 'classes' | 'regression';
23561
23594
  export const ProjectDatasetMetadataBaseTypeEnumValues: string[];
23562
23595
 
23563
23596
 
23597
+ /**
23598
+ * Breakdown of the number of samples with mutation events in the dataset version.
23599
+ */
23600
+ export type ProjectDatasetMetadataBaseChangeActionCounts = {
23601
+ /**
23602
+ * Number of samples in this window with at least one insert mutation.
23603
+ */
23604
+ insert?: number;
23605
+ /**
23606
+ * Number of samples in this window with at least one update mutation.
23607
+ */
23608
+ update?: number;
23609
+ /**
23610
+ * Number of samples in this window with at least one delete mutation.
23611
+ */
23612
+ delete?: number;
23613
+ };
23614
+
23615
+
23564
23616
  /**
23565
23617
  * Dataset ratio info for a single category and label
23566
23618
  */
@@ -23604,6 +23656,10 @@ export type ProjectDatasetMetadataClassesCategory = {
23604
23656
  isTimeseries: boolean;
23605
23657
  isFeatures: boolean;
23606
23658
  metadataFilterOptions: MetadataFilterOptions;
23659
+ /**
23660
+ * Breakdown of the number of samples with mutation events in the dataset version.
23661
+ */
23662
+ changeActionCounts?: ProjectDatasetMetadataBaseChangeActionCounts;
23607
23663
  fullLabelCount: number;
23608
23664
  labels: RawDataLabelDistributionLabel[];
23609
23665
  };
@@ -23758,6 +23814,10 @@ export type ProjectDatasetMetadataRegressionCategory = {
23758
23814
  isTimeseries: boolean;
23759
23815
  isFeatures: boolean;
23760
23816
  metadataFilterOptions: MetadataFilterOptions;
23817
+ /**
23818
+ * Breakdown of the number of samples with mutation events in the dataset version.
23819
+ */
23820
+ changeActionCounts?: ProjectDatasetMetadataBaseChangeActionCounts;
23761
23821
  labelsCount: number;
23762
23822
  minLabel: number;
23763
23823
  maxLabel: number;