edge-impulse-api 1.93.23 → 1.93.25
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.
- package/build/browser/edge-impulse-api.d.ts +41 -2
- package/build/browser/edge-impulse-api.js +71 -1
- package/build/browser/edge-impulse-api.js.map +1 -1
- package/build/library/sdk/api/datasetVersionsApi.d.ts +11 -0
- package/build/library/sdk/api/datasetVersionsApi.js +62 -0
- package/build/library/sdk/api/datasetVersionsApi.js.map +1 -1
- package/build/library/sdk/model/createDatasetVersionResponse.d.ts +24 -0
- package/build/library/sdk/model/createDatasetVersionResponse.js +4 -0
- package/build/library/sdk/model/createDatasetVersionResponse.js.map +1 -0
- package/build/library/sdk/model/datasetVersionType.d.ts +1 -1
- package/build/library/sdk/model/datasetVersionType.js +1 -1
- package/build/library/sdk/model/datasetVersionType.js.map +1 -1
- package/build/library/sdk/model/models.d.ts +1 -0
- package/build/library/sdk/model/models.js +1 -0
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/startVlmInferenceJobResponse.d.ts +4 -1
- package/package.json +1 -1
|
@@ -2158,6 +2158,16 @@ export class DatasetVersionsApi {
|
|
|
2158
2158
|
setDefaultAuthentication(auth: Authentication): void;
|
|
2159
2159
|
setApiKey(key: DatasetVersionsApiApiKeys, value: string | undefined): void;
|
|
2160
2160
|
set accessToken(token: string);
|
|
2161
|
+
/**
|
|
2162
|
+
* Trigger a manual snapshot of the current dataset. Snapshots are usually created automatically when dataset changes are detected, but this endpoint lets you control when one is created (for example, before a large update). The request returns immediately, and a background process typically creates the new dataset version within a few seconds. If a manual snapshot is already in progress, a null window is returned.
|
|
2163
|
+
* @summary Create a new snapshot of the dataset
|
|
2164
|
+
* @param projectId Project ID
|
|
2165
|
+
*/
|
|
2166
|
+
createDatasetVersion(projectId: number, options?: {
|
|
2167
|
+
headers: {
|
|
2168
|
+
[name: string]: string;
|
|
2169
|
+
};
|
|
2170
|
+
}): Promise<CreateDatasetVersionResponse>;
|
|
2161
2171
|
/**
|
|
2162
2172
|
* Get details of a specific dataset version for this project.
|
|
2163
2173
|
* @summary Get dataset version
|
|
@@ -14374,6 +14384,32 @@ export type CreateCustomBlockUploadLinkResponse = {
|
|
|
14374
14384
|
};
|
|
14375
14385
|
|
|
14376
14386
|
|
|
14387
|
+
export type CreateDatasetVersionResponse = {
|
|
14388
|
+
/**
|
|
14389
|
+
* Whether the operation succeeded
|
|
14390
|
+
*/
|
|
14391
|
+
success: boolean;
|
|
14392
|
+
/**
|
|
14393
|
+
* Optional error description (set if 'success' was false)
|
|
14394
|
+
*/
|
|
14395
|
+
error?: string;
|
|
14396
|
+
window?: {
|
|
14397
|
+
/**
|
|
14398
|
+
* Temporary window ID that cannot be used for retrieval. The window is deleted after a successful commit.
|
|
14399
|
+
*/
|
|
14400
|
+
windowId: number;
|
|
14401
|
+
/**
|
|
14402
|
+
* Date and time when this dataset version window closed.
|
|
14403
|
+
*/
|
|
14404
|
+
closed: Date;
|
|
14405
|
+
/**
|
|
14406
|
+
* Date and time when this dataset version window opened.
|
|
14407
|
+
*/
|
|
14408
|
+
opened: Date;
|
|
14409
|
+
} | null;
|
|
14410
|
+
};
|
|
14411
|
+
|
|
14412
|
+
|
|
14377
14413
|
export type CreateDeveloperProfileResponse = {
|
|
14378
14414
|
/**
|
|
14379
14415
|
* Whether the operation succeeded
|
|
@@ -16149,7 +16185,7 @@ export type DatasetVersionSummary = {
|
|
|
16149
16185
|
};
|
|
16150
16186
|
|
|
16151
16187
|
|
|
16152
|
-
export type DatasetVersionType = 'auto_save' | 'restore';
|
|
16188
|
+
export type DatasetVersionType = 'auto_save' | 'restore' | 'manual';
|
|
16153
16189
|
export const DatasetVersionTypeValues: string[];
|
|
16154
16190
|
|
|
16155
16191
|
|
|
@@ -26588,7 +26624,10 @@ export type StartVlmInferenceJobResponse = {
|
|
|
26588
26624
|
* Optional error description (set if 'success' was false)
|
|
26589
26625
|
*/
|
|
26590
26626
|
error?: string;
|
|
26591
|
-
|
|
26627
|
+
/**
|
|
26628
|
+
* Job identifier. Status updates will include this identifier.
|
|
26629
|
+
*/
|
|
26630
|
+
id: number;
|
|
26592
26631
|
configId: number;
|
|
26593
26632
|
};
|
|
26594
26633
|
|
|
@@ -10813,6 +10813,68 @@ class DatasetVersionsApi {
|
|
|
10813
10813
|
set accessToken(token) {
|
|
10814
10814
|
this.authentications.OAuth2.accessToken = token;
|
|
10815
10815
|
}
|
|
10816
|
+
/**
|
|
10817
|
+
* Trigger a manual snapshot of the current dataset. Snapshots are usually created automatically when dataset changes are detected, but this endpoint lets you control when one is created (for example, before a large update). The request returns immediately, and a background process typically creates the new dataset version within a few seconds. If a manual snapshot is already in progress, a null window is returned.
|
|
10818
|
+
* @summary Create a new snapshot of the dataset
|
|
10819
|
+
* @param projectId Project ID
|
|
10820
|
+
*/
|
|
10821
|
+
async createDatasetVersion(projectId, options = { headers: {} }) {
|
|
10822
|
+
const localVarPath = this.basePath + '/api/{projectId}/dataset-versions/create'
|
|
10823
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
10824
|
+
let queryParameters = {};
|
|
10825
|
+
let localVarHeaderParams = {
|
|
10826
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
10827
|
+
'Content-Type': 'application/json',
|
|
10828
|
+
...this.defaultHeaders,
|
|
10829
|
+
};
|
|
10830
|
+
const produces = ['application/json'];
|
|
10831
|
+
// give precedence to 'application/json'
|
|
10832
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
10833
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
10834
|
+
}
|
|
10835
|
+
else {
|
|
10836
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
10837
|
+
}
|
|
10838
|
+
let localVarFormParams;
|
|
10839
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
10840
|
+
if (projectId === null || projectId === undefined) {
|
|
10841
|
+
throw new Error('Required parameter projectId was null or undefined when calling createDatasetVersion.');
|
|
10842
|
+
}
|
|
10843
|
+
localVarHeaderParams = {
|
|
10844
|
+
...localVarHeaderParams,
|
|
10845
|
+
...options.headers,
|
|
10846
|
+
...this.opts.extraHeaders,
|
|
10847
|
+
};
|
|
10848
|
+
const queryString = Object.entries(queryParameters)
|
|
10849
|
+
.filter(([, value]) => value !== undefined)
|
|
10850
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
10851
|
+
.join('&');
|
|
10852
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
10853
|
+
let localVarRequestOptions = {
|
|
10854
|
+
method: 'POST',
|
|
10855
|
+
headers: { ...localVarHeaderParams },
|
|
10856
|
+
};
|
|
10857
|
+
let requestOptions = localVarRequestOptions;
|
|
10858
|
+
let url = localVarUrl;
|
|
10859
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
10860
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
10861
|
+
url = auth_ApiKeyAuthentication.url;
|
|
10862
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
10863
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
10864
|
+
url = auth_JWTAuthentication.url;
|
|
10865
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
10866
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
10867
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
10868
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
10869
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
10870
|
+
url = auth_OAuth2.url;
|
|
10871
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
10872
|
+
requestOptions = authDefault.requestOptions;
|
|
10873
|
+
url = authDefault.url;
|
|
10874
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
10875
|
+
const response = await fetch(url, requestOptions);
|
|
10876
|
+
return this.handleResponse(response, 'CreateDatasetVersionResponse');
|
|
10877
|
+
}
|
|
10816
10878
|
/**
|
|
10817
10879
|
* Get details of a specific dataset version for this project.
|
|
10818
10880
|
* @summary Get dataset version
|
|
@@ -59163,6 +59225,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
59163
59225
|
});
|
|
59164
59226
|
|
|
59165
59227
|
|
|
59228
|
+
define("library/sdk/model/createDatasetVersionResponse", ["require", "exports"], function (require, exports) {
|
|
59229
|
+
"use strict";
|
|
59230
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
59231
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59232
|
+
});
|
|
59233
|
+
|
|
59234
|
+
|
|
59166
59235
|
define("library/sdk/model/createDeveloperProfileResponse", ["require", "exports"], function (require, exports) {
|
|
59167
59236
|
"use strict";
|
|
59168
59237
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59724,7 +59793,7 @@ define("library/sdk/model/datasetVersionType", ["require", "exports"], function
|
|
|
59724
59793
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
59725
59794
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59726
59795
|
exports.DatasetVersionTypeValues = void 0;
|
|
59727
|
-
exports.DatasetVersionTypeValues = ['auto_save', 'restore'];
|
|
59796
|
+
exports.DatasetVersionTypeValues = ['auto_save', 'restore', 'manual'];
|
|
59728
59797
|
});
|
|
59729
59798
|
|
|
59730
59799
|
|
|
@@ -62055,6 +62124,7 @@ __exportStar(require("./cosineSimilarityIssue"), exports);
|
|
|
62055
62124
|
__exportStar(require("./countSamplesResponse"), exports);
|
|
62056
62125
|
__exportStar(require("./createCustomBlockUploadLinkRequest"), exports);
|
|
62057
62126
|
__exportStar(require("./createCustomBlockUploadLinkResponse"), exports);
|
|
62127
|
+
__exportStar(require("./createDatasetVersionResponse"), exports);
|
|
62058
62128
|
__exportStar(require("./createDeveloperProfileResponse"), exports);
|
|
62059
62129
|
__exportStar(require("./createDeviceRequest"), exports);
|
|
62060
62130
|
__exportStar(require("./createEnterpriseTrialResponse"), exports);
|