edge-impulse-api 1.93.22 → 1.93.23

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 (29) hide show
  1. package/build/browser/edge-impulse-api.d.ts +44 -35
  2. package/build/browser/edge-impulse-api.js +39 -2
  3. package/build/browser/edge-impulse-api.js.map +1 -1
  4. package/build/library/sdk/model/actorProjectApiKey.d.ts +1 -22
  5. package/build/library/sdk/model/actorProjectApiKey.js +1 -2
  6. package/build/library/sdk/model/actorProjectApiKey.js.map +1 -1
  7. package/build/library/sdk/model/models.d.ts +4 -0
  8. package/build/library/sdk/model/models.js +4 -0
  9. package/build/library/sdk/model/models.js.map +1 -1
  10. package/build/library/sdk/model/vlmCandidateLabelMap.d.ts +2 -2
  11. package/build/library/sdk/model/vlmCandidateLabelsSingle.d.ts +7 -0
  12. package/build/library/sdk/model/vlmCandidateLabelsSingle.js +6 -0
  13. package/build/library/sdk/model/vlmCandidateLabelsSingle.js.map +1 -0
  14. package/build/library/sdk/model/vlmConfiguration.d.ts +2 -0
  15. package/build/library/sdk/model/vlmConfigurationBase.d.ts +2 -0
  16. package/build/library/sdk/model/vlmInferenceResultsResults.d.ts +2 -6
  17. package/build/library/sdk/model/vlmModel.d.ts +0 -6
  18. package/build/library/sdk/model/vlmPromptComponent.d.ts +0 -4
  19. package/build/library/sdk/model/vlmPromptComponentConfig.d.ts +2 -0
  20. package/build/library/sdk/model/vlmPromptMode.d.ts +2 -0
  21. package/build/library/sdk/model/vlmPromptMode.js +6 -0
  22. package/build/library/sdk/model/vlmPromptMode.js.map +1 -0
  23. package/build/library/sdk/model/vlmResult.d.ts +22 -0
  24. package/build/library/sdk/model/vlmResult.js +4 -0
  25. package/build/library/sdk/model/vlmResult.js.map +1 -0
  26. package/build/library/sdk/model/vlmResultType.d.ts +2 -0
  27. package/build/library/sdk/model/vlmResultType.js +6 -0
  28. package/build/library/sdk/model/vlmResultType.js.map +1 -0
  29. package/package.json +1 -1
@@ -11866,30 +11866,11 @@ export const ActorOAuthClientTypeEnumValues: string[];
11866
11866
 
11867
11867
 
11868
11868
  export type ActorProjectApiKey = {
11869
- id: number;
11870
- apiKey: string;
11871
- isDevelopmentKey: boolean;
11869
+ type: ActorProjectApiKeyTypeEnum;
11872
11870
  name: string;
11873
11871
  created: Date;
11874
- role: ActorProjectApiKeyRoleEnum;
11875
11872
  createdByUser?: CreatedUpdatedByUser;
11876
- /**
11877
- * When this API key was last used.
11878
- */
11879
- lastUsed?: ProjectApiKeyLastUsed;
11880
- /**
11881
- * If the key has a ttl set, when the key will expire
11882
- */
11883
- expires?: Date;
11884
- /**
11885
- * OAuth client_id that created this API key through an OAuth-scoped key endpoint.
11886
- */
11887
- createdViaOAuthClientId?: string;
11888
- createdForExtension?: ApiKeyExtension;
11889
- type: ActorProjectApiKeyTypeEnum;
11890
11873
  };
11891
- export type ActorProjectApiKeyRoleEnum = 'admin' | 'readonly' | 'ingestiononly' | 'ingestion_deployment' | 'wladmin';
11892
- export const ActorProjectApiKeyRoleEnumValues: string[];
11893
11874
  export type ActorProjectApiKeyTypeEnum = 'projectApiKey';
11894
11875
  export const ActorProjectApiKeyTypeEnumValues: string[];
11895
11876
 
@@ -28774,8 +28755,16 @@ export type VlmCandidateLabelItem = {
28774
28755
 
28775
28756
  export type VlmCandidateLabelMap = {
28776
28757
  version: number;
28758
+ data: VlmCandidateLabelsSingle;
28759
+ };
28760
+
28761
+
28762
+ export type VlmCandidateLabelsSingle = {
28763
+ type: VlmCandidateLabelsSingleTypeEnum;
28777
28764
  candidateLabels: VlmCandidateLabelItem[];
28778
28765
  };
28766
+ export type VlmCandidateLabelsSingleTypeEnum = 'single';
28767
+ export const VlmCandidateLabelsSingleTypeEnumValues: string[];
28779
28768
 
28780
28769
 
28781
28770
  export type VlmConfigResponse = {
@@ -28797,6 +28786,7 @@ export type VlmConfiguration = {
28797
28786
  candidateLabelsMap?: VlmCandidateLabelMap;
28798
28787
  promptComponents?: VlmPromptComponentConfig;
28799
28788
  parameters?: VlmPromptConfigParameters;
28789
+ labelingMethod: ProjectLabelingMethod;
28800
28790
  /**
28801
28791
  * Unique configuration ID, updated each time the config is changed
28802
28792
  */
@@ -28810,6 +28800,7 @@ export type VlmConfigurationBase = {
28810
28800
  candidateLabelsMap?: VlmCandidateLabelMap;
28811
28801
  promptComponents?: VlmPromptComponentConfig;
28812
28802
  parameters?: VlmPromptConfigParameters;
28803
+ labelingMethod: ProjectLabelingMethod;
28813
28804
  };
28814
28805
 
28815
28806
 
@@ -28873,12 +28864,7 @@ export type VlmInferenceResults = {
28873
28864
 
28874
28865
  export type VlmInferenceResultsResults = {
28875
28866
  sample: Sample;
28876
- /**
28877
- * Classification results for the sample, or null for pending results.
28878
- */
28879
- result: {
28880
- [key: string]: number;
28881
- } | null;
28867
+ result: VlmResult | null;
28882
28868
  };
28883
28869
 
28884
28870
 
@@ -28901,11 +28887,6 @@ export type VlmModel = {
28901
28887
  * If true, the warmup endpoint may be called to prepare the model for inference
28902
28888
  */
28903
28889
  requiresWarmup?: boolean;
28904
- /**
28905
- * List of example prompt templates available for insertion. Each template is an array of components defining the
28906
- * prompt text and whether the component is user-editable.
28907
- */
28908
- availablePromptComponents?: VlmPromptComponent[][];
28909
28890
  defaultParameters: DSPGroup[];
28910
28891
  };
28911
28892
 
@@ -28919,15 +28900,12 @@ export type VlmPromptComponent = {
28919
28900
  * The text content of the prompt.
28920
28901
  */
28921
28902
  text: string;
28922
- /**
28923
- * Indicates whether the prompt component can be edited by the user.
28924
- */
28925
- userEditable: boolean;
28926
28903
  };
28927
28904
 
28928
28905
 
28929
28906
  export type VlmPromptComponentConfig = {
28930
28907
  version: number;
28908
+ promptMode: VlmPromptMode;
28931
28909
  promptComponents: VlmPromptComponent[];
28932
28910
  };
28933
28911
 
@@ -28944,6 +28922,37 @@ export type VlmPromptConfigParameters = {
28944
28922
  };
28945
28923
 
28946
28924
 
28925
+ export type VlmPromptMode = 'single' | 'multi';
28926
+ export const VlmPromptModeValues: string[];
28927
+
28928
+
28929
+ /**
28930
+ * Classification results for the sample
28931
+ */
28932
+ export type VlmResult = {
28933
+ type: VlmResultType;
28934
+ version: number;
28935
+ result: {
28936
+ /**
28937
+ * Group key for multi-label classification
28938
+ */
28939
+ name?: string;
28940
+ /**
28941
+ * VLM zero-shot models have a single key with the value 1; CLIP models will show each candidate label's
28942
+ * similarity
28943
+ * score
28944
+ */
28945
+ scores: {
28946
+ [key: string]: number;
28947
+ };
28948
+ }[];
28949
+ };
28950
+
28951
+
28952
+ export type VlmResultType = 'classification';
28953
+ export const VlmResultTypeValues: string[];
28954
+
28955
+
28947
28956
  export type VlmSetConfigResponse = GenericApiResponse;
28948
28957
 
28949
28958
 
@@ -58201,8 +58201,7 @@ define("library/sdk/model/actorProjectApiKey", ["require", "exports"], function
58201
58201
  "use strict";
58202
58202
  // Generated by studio/openapi/generate-models/convert.ts
58203
58203
  Object.defineProperty(exports, "__esModule", { value: true });
58204
- exports.ActorProjectApiKeyTypeEnumValues = exports.ActorProjectApiKeyRoleEnumValues = void 0;
58205
- exports.ActorProjectApiKeyRoleEnumValues = ['admin', 'readonly', 'ingestiononly', 'ingestion_deployment', 'wladmin'];
58204
+ exports.ActorProjectApiKeyTypeEnumValues = void 0;
58206
58205
  exports.ActorProjectApiKeyTypeEnumValues = ['projectApiKey'];
58207
58206
  });
58208
58207
 
@@ -62754,6 +62753,7 @@ __exportStar(require("./verifyResetPasswordRequest"), exports);
62754
62753
  __exportStar(require("./verifySignupApprovalResponse"), exports);
62755
62754
  __exportStar(require("./vlmCandidateLabelItem"), exports);
62756
62755
  __exportStar(require("./vlmCandidateLabelMap"), exports);
62756
+ __exportStar(require("./vlmCandidateLabelsSingle"), exports);
62757
62757
  __exportStar(require("./vlmConfigResponse"), exports);
62758
62758
  __exportStar(require("./vlmConfiguration"), exports);
62759
62759
  __exportStar(require("./vlmConfigurationBase"), exports);
@@ -62770,6 +62770,9 @@ __exportStar(require("./vlmPromptComponent"), exports);
62770
62770
  __exportStar(require("./vlmPromptComponentConfig"), exports);
62771
62771
  __exportStar(require("./vlmPromptConfigParamItem"), exports);
62772
62772
  __exportStar(require("./vlmPromptConfigParameters"), exports);
62773
+ __exportStar(require("./vlmPromptMode"), exports);
62774
+ __exportStar(require("./vlmResult"), exports);
62775
+ __exportStar(require("./vlmResultType"), exports);
62773
62776
  __exportStar(require("./vlmSetConfigResponse"), exports);
62774
62777
  __exportStar(require("./webhookDestination"), exports);
62775
62778
  __exportStar(require("./whitelabel"), exports);
@@ -65446,6 +65449,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
65446
65449
  });
65447
65450
 
65448
65451
 
65452
+ define("library/sdk/model/vlmCandidateLabelsSingle", ["require", "exports"], function (require, exports) {
65453
+ "use strict";
65454
+ // Generated by studio/openapi/generate-models/convert.ts
65455
+ Object.defineProperty(exports, "__esModule", { value: true });
65456
+ exports.VlmCandidateLabelsSingleTypeEnumValues = void 0;
65457
+ exports.VlmCandidateLabelsSingleTypeEnumValues = ['single'];
65458
+ });
65459
+
65460
+
65449
65461
  define("library/sdk/model/vlmConfigResponse", ["require", "exports"], function (require, exports) {
65450
65462
  "use strict";
65451
65463
  // Generated by studio/openapi/generate-models/convert.ts
@@ -65560,6 +65572,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
65560
65572
  });
65561
65573
 
65562
65574
 
65575
+ define("library/sdk/model/vlmPromptMode", ["require", "exports"], function (require, exports) {
65576
+ "use strict";
65577
+ // Generated by studio/openapi/generate-models/convert.ts
65578
+ Object.defineProperty(exports, "__esModule", { value: true });
65579
+ exports.VlmPromptModeValues = void 0;
65580
+ exports.VlmPromptModeValues = ['single', 'multi'];
65581
+ });
65582
+
65583
+
65584
+ define("library/sdk/model/vlmResult", ["require", "exports"], function (require, exports) {
65585
+ "use strict";
65586
+ // Generated by studio/openapi/generate-models/convert.ts
65587
+ Object.defineProperty(exports, "__esModule", { value: true });
65588
+ });
65589
+
65590
+
65591
+ define("library/sdk/model/vlmResultType", ["require", "exports"], function (require, exports) {
65592
+ "use strict";
65593
+ // Generated by studio/openapi/generate-models/convert.ts
65594
+ Object.defineProperty(exports, "__esModule", { value: true });
65595
+ exports.VlmResultTypeValues = void 0;
65596
+ exports.VlmResultTypeValues = ['classification'];
65597
+ });
65598
+
65599
+
65563
65600
  define("library/sdk/model/vlmSetConfigResponse", ["require", "exports"], function (require, exports) {
65564
65601
  "use strict";
65565
65602
  // Generated by studio/openapi/generate-models/convert.ts