edge-impulse-api 1.93.19 → 1.93.20
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 +142 -12
- package/build/browser/edge-impulse-api.js +266 -11
- package/build/browser/edge-impulse-api.js.map +1 -1
- package/build/library/sdk/api/deploymentApi.d.ts +31 -0
- package/build/library/sdk/api/deploymentApi.js +144 -0
- package/build/library/sdk/api/deploymentApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataApi.d.ts +13 -0
- package/build/library/sdk/api/organizationDataApi.js +68 -0
- package/build/library/sdk/api/organizationDataApi.js.map +1 -1
- package/build/library/sdk/model/buildPublicDeploymentJobRequest.d.ts +5 -0
- package/build/library/sdk/model/buildPublicDeploymentJobRequest.js +4 -0
- package/build/library/sdk/model/buildPublicDeploymentJobRequest.js.map +1 -0
- package/build/library/sdk/model/buildPublicDeploymentJobResponse.d.ts +20 -0
- package/build/library/sdk/model/buildPublicDeploymentJobResponse.js +4 -0
- package/build/library/sdk/model/buildPublicDeploymentJobResponse.js.map +1 -0
- package/build/library/sdk/model/createOrganizationBucketRequest.d.ts +3 -0
- package/build/library/sdk/model/createOrganizationBucketRequest.js +4 -0
- package/build/library/sdk/model/createOrganizationBucketRequest.js.map +1 -0
- package/build/library/sdk/model/createOrganizationBucketResponse.d.ts +18 -0
- package/build/library/sdk/model/createOrganizationBucketResponse.js +4 -0
- package/build/library/sdk/model/createOrganizationBucketResponse.js.map +1 -0
- package/build/library/sdk/model/deploymentHistory.d.ts +4 -0
- package/build/library/sdk/model/getPublicDeploymentStatusResponse.d.ts +33 -0
- package/build/library/sdk/model/getPublicDeploymentStatusResponse.js +4 -0
- package/build/library/sdk/model/getPublicDeploymentStatusResponse.js.map +1 -0
- package/build/library/sdk/model/jobLogItem.d.ts +7 -0
- package/build/library/sdk/model/jobLogItem.js +6 -0
- package/build/library/sdk/model/jobLogItem.js.map +1 -0
- package/build/library/sdk/model/jobLogsResponse.d.ts +2 -2
- package/build/library/sdk/model/logStdoutResponse.d.ts +2 -2
- package/build/library/sdk/model/models.d.ts +6 -1
- package/build/library/sdk/model/models.js +9 -1
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/storageProvider.d.ts +1 -1
- package/build/library/sdk/model/storageProvider.js +1 -1
- package/build/library/sdk/model/storageProvider.js.map +1 -1
- package/package.json +1 -1
- package/build/library/sdk/model/logStdoutResponseAllOfStdout.d.ts +0 -7
- package/build/library/sdk/model/logStdoutResponseAllOfStdout.js +0 -6
- package/build/library/sdk/model/logStdoutResponseAllOfStdout.js.map +0 -1
|
@@ -2261,6 +2261,9 @@ export enum DeploymentApiApiKeys {
|
|
|
2261
2261
|
JWTAuthentication = 1,
|
|
2262
2262
|
JWTHttpHeaderAuthentication = 2
|
|
2263
2263
|
}
|
|
2264
|
+
type buildPublicDeploymentJobQueryParams = {
|
|
2265
|
+
impulseId?: number;
|
|
2266
|
+
};
|
|
2264
2267
|
type downloadBuildQueryParams = {
|
|
2265
2268
|
type: string;
|
|
2266
2269
|
modelType?: KerasModelTypeEnum;
|
|
@@ -2300,6 +2303,7 @@ type getSyntiantPosteriorQueryParams = {
|
|
|
2300
2303
|
};
|
|
2301
2304
|
type listDeploymentHistoryQueryParams = {
|
|
2302
2305
|
impulseId?: number;
|
|
2306
|
+
deploymentFormat?: string;
|
|
2303
2307
|
limit?: number;
|
|
2304
2308
|
offset?: number;
|
|
2305
2309
|
};
|
|
@@ -2335,6 +2339,18 @@ export class DeploymentApi {
|
|
|
2335
2339
|
setDefaultAuthentication(auth: Authentication): void;
|
|
2336
2340
|
setApiKey(key: DeploymentApiApiKeys, value: string | undefined): void;
|
|
2337
2341
|
set accessToken(token: string);
|
|
2342
|
+
/**
|
|
2343
|
+
* Create a deployment job for a _public_ project. You can only create deployments for \"wasm\" and \"wasm-browser-simd\" deployment types. If a deployment already exists, jobId is null. If a deployment did not exist, or a job is created, jobId is set to an integer, and you can get updates via `getPublicDeploymentStatus`. When this step is complete use `downloadHistoricDeployment` to download the artefacts using deploymentVersion. Updates are _NOT_ streamed over the websocket API (for security reasons); but can be obtained via `getPublicDeploymentStatus`.
|
|
2344
|
+
* @summary Build deployment (public)
|
|
2345
|
+
* @param projectId Project ID
|
|
2346
|
+
* @param buildPublicDeploymentJobRequest
|
|
2347
|
+
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
2348
|
+
*/
|
|
2349
|
+
buildPublicDeploymentJob(projectId: number, buildPublicDeploymentJobRequest: BuildPublicDeploymentJobRequest, queryParams?: buildPublicDeploymentJobQueryParams, options?: {
|
|
2350
|
+
headers: {
|
|
2351
|
+
[name: string]: string;
|
|
2352
|
+
};
|
|
2353
|
+
}): Promise<BuildPublicDeploymentJobResponse>;
|
|
2338
2354
|
/**
|
|
2339
2355
|
* DEPRECATED, use downloadHistoricDeployment instead. Download the build artefacts for a project.
|
|
2340
2356
|
* @summary Download
|
|
@@ -2445,6 +2461,17 @@ export class DeploymentApi {
|
|
|
2445
2461
|
[name: string]: string;
|
|
2446
2462
|
};
|
|
2447
2463
|
}): Promise<GetModelMonitoringDeploymentsResponse>;
|
|
2464
|
+
/**
|
|
2465
|
+
* Get the status of a deployment job created through buildPublicDeploymentJob.
|
|
2466
|
+
* @summary Get status of build job (public)
|
|
2467
|
+
* @param projectId Project ID
|
|
2468
|
+
* @param jobId Job ID
|
|
2469
|
+
*/
|
|
2470
|
+
getPublicDeploymentStatus(projectId: number, jobId: number, options?: {
|
|
2471
|
+
headers: {
|
|
2472
|
+
[name: string]: string;
|
|
2473
|
+
};
|
|
2474
|
+
}): Promise<GetPublicDeploymentStatusResponse>;
|
|
2448
2475
|
/**
|
|
2449
2476
|
* Get the current posterior parameters for the Syntiant deployment target
|
|
2450
2477
|
* @summary Get Syntiant posterior parameters
|
|
@@ -2470,6 +2497,7 @@ export class DeploymentApi {
|
|
|
2470
2497
|
* @summary List deployment history
|
|
2471
2498
|
* @param projectId Project ID
|
|
2472
2499
|
* @param impulseId Impulse ID. If this is unset, data for all impulses is returned.
|
|
2500
|
+
* @param deploymentFormat
|
|
2473
2501
|
* @param limit Maximum number of results
|
|
2474
2502
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2475
2503
|
*/
|
|
@@ -5820,6 +5848,17 @@ export class OrganizationDataApi {
|
|
|
5820
5848
|
[name: string]: string;
|
|
5821
5849
|
};
|
|
5822
5850
|
}): Promise<StartJobResponse>;
|
|
5851
|
+
/**
|
|
5852
|
+
* Create a new storage bucket in the Edge Impulse infra. This API is only available through JWT token authentication.
|
|
5853
|
+
* @summary Create storage bucket
|
|
5854
|
+
* @param organizationId Organization ID
|
|
5855
|
+
* @param createOrganizationBucketRequest
|
|
5856
|
+
*/
|
|
5857
|
+
createOrganizationBucket(organizationId: number, createOrganizationBucketRequest: CreateOrganizationBucketRequest, options?: {
|
|
5858
|
+
headers: {
|
|
5859
|
+
[name: string]: string;
|
|
5860
|
+
};
|
|
5861
|
+
}): Promise<CreateOrganizationBucketResponse>;
|
|
5823
5862
|
/**
|
|
5824
5863
|
* Creates a signed link to securely upload data to s3 bucket directly from the client.
|
|
5825
5864
|
* @summary Create pre-signed S3 upload link
|
|
@@ -13673,6 +13712,34 @@ export type BuildOrganizationOnDeviceModelRequest = {
|
|
|
13673
13712
|
};
|
|
13674
13713
|
|
|
13675
13714
|
|
|
13715
|
+
export type BuildPublicDeploymentJobRequest = {
|
|
13716
|
+
deploymentType: string;
|
|
13717
|
+
modelType: KerasModelVariantEnum;
|
|
13718
|
+
};
|
|
13719
|
+
|
|
13720
|
+
|
|
13721
|
+
export type BuildPublicDeploymentJobResponse = {
|
|
13722
|
+
/**
|
|
13723
|
+
* Whether the operation succeeded
|
|
13724
|
+
*/
|
|
13725
|
+
success: boolean;
|
|
13726
|
+
/**
|
|
13727
|
+
* Optional error description (set if 'success' was false)
|
|
13728
|
+
*/
|
|
13729
|
+
error?: string;
|
|
13730
|
+
/**
|
|
13731
|
+
* Set if a job was created (or was already running) for this deployment. Use this ID to poll to the job logs via
|
|
13732
|
+
* 'GetPublicDeploymentStatusResponse'.
|
|
13733
|
+
*/
|
|
13734
|
+
jobId?: number;
|
|
13735
|
+
/**
|
|
13736
|
+
* Deployment version. Use `downloadHistoricDeployment` to download the deployment using this identifier (once the
|
|
13737
|
+
* job is finished).
|
|
13738
|
+
*/
|
|
13739
|
+
deploymentVersion: number;
|
|
13740
|
+
};
|
|
13741
|
+
|
|
13742
|
+
|
|
13676
13743
|
export type CalculateDataQualityMetricsRequest = {
|
|
13677
13744
|
/**
|
|
13678
13745
|
* Type of representation to use for calculating metrics.
|
|
@@ -14352,6 +14419,31 @@ export type CreateNewEmptyImpulseResponse = {
|
|
|
14352
14419
|
};
|
|
14353
14420
|
|
|
14354
14421
|
|
|
14422
|
+
export type CreateOrganizationBucketRequest = {
|
|
14423
|
+
name: string;
|
|
14424
|
+
};
|
|
14425
|
+
|
|
14426
|
+
|
|
14427
|
+
export type CreateOrganizationBucketResponse = {
|
|
14428
|
+
/**
|
|
14429
|
+
* Whether the operation succeeded
|
|
14430
|
+
*/
|
|
14431
|
+
success: boolean;
|
|
14432
|
+
/**
|
|
14433
|
+
* Optional error description (set if 'success' was false)
|
|
14434
|
+
*/
|
|
14435
|
+
error?: string;
|
|
14436
|
+
/**
|
|
14437
|
+
* Unique identifier of the created entity.
|
|
14438
|
+
*/
|
|
14439
|
+
id: number;
|
|
14440
|
+
/**
|
|
14441
|
+
* Newly created bucket name
|
|
14442
|
+
*/
|
|
14443
|
+
bucket: string;
|
|
14444
|
+
};
|
|
14445
|
+
|
|
14446
|
+
|
|
14355
14447
|
export type CreateOrganizationPortalRequest = {
|
|
14356
14448
|
/**
|
|
14357
14449
|
* The name of the upload portal.
|
|
@@ -16070,6 +16162,10 @@ export type DeploymentHistory = {
|
|
|
16070
16162
|
*/
|
|
16071
16163
|
impulseHasChangedSinceDeployment: boolean;
|
|
16072
16164
|
downloadUrl: string;
|
|
16165
|
+
/**
|
|
16166
|
+
* If set, then this deployment was created by an anonymous user through buildPublicDeploymentJob.
|
|
16167
|
+
*/
|
|
16168
|
+
createdByBuildPublicDeploymentJob: boolean;
|
|
16073
16169
|
};
|
|
16074
16170
|
|
|
16075
16171
|
|
|
@@ -18467,6 +18563,40 @@ export type GetPretrainedModelResponse = {
|
|
|
18467
18563
|
};
|
|
18468
18564
|
|
|
18469
18565
|
|
|
18566
|
+
export type GetPublicDeploymentStatusResponse = {
|
|
18567
|
+
/**
|
|
18568
|
+
* Whether the operation succeeded
|
|
18569
|
+
*/
|
|
18570
|
+
success: boolean;
|
|
18571
|
+
/**
|
|
18572
|
+
* Optional error description (set if 'success' was false)
|
|
18573
|
+
*/
|
|
18574
|
+
error?: string;
|
|
18575
|
+
job: {
|
|
18576
|
+
/**
|
|
18577
|
+
* When the job was created.
|
|
18578
|
+
*/
|
|
18579
|
+
created: Date;
|
|
18580
|
+
/**
|
|
18581
|
+
* When the job was started.
|
|
18582
|
+
*/
|
|
18583
|
+
started?: Date;
|
|
18584
|
+
/**
|
|
18585
|
+
* When the job was finished.
|
|
18586
|
+
*/
|
|
18587
|
+
finished?: Date;
|
|
18588
|
+
/**
|
|
18589
|
+
* Whether the job finished successfully. (Set to null if job is not finished)
|
|
18590
|
+
*/
|
|
18591
|
+
finishedSuccessful?: boolean;
|
|
18592
|
+
};
|
|
18593
|
+
/**
|
|
18594
|
+
* Last 1000 log lines for this job.
|
|
18595
|
+
*/
|
|
18596
|
+
logs: JobLogItem[];
|
|
18597
|
+
};
|
|
18598
|
+
|
|
18599
|
+
|
|
18470
18600
|
export type GetPublicMetricsResponse = {
|
|
18471
18601
|
/**
|
|
18472
18602
|
* Whether the operation succeeded
|
|
@@ -19572,6 +19702,15 @@ export type JobFailureDetails = {
|
|
|
19572
19702
|
};
|
|
19573
19703
|
|
|
19574
19704
|
|
|
19705
|
+
export type JobLogItem = {
|
|
19706
|
+
created: Date;
|
|
19707
|
+
data: string;
|
|
19708
|
+
logLevel?: JobLogItemLogLevelEnum;
|
|
19709
|
+
};
|
|
19710
|
+
export type JobLogItemLogLevelEnum = 'error' | 'warn' | 'info' | 'debug';
|
|
19711
|
+
export const JobLogItemLogLevelEnumValues: string[];
|
|
19712
|
+
|
|
19713
|
+
|
|
19575
19714
|
export type JobLogsResponse = {
|
|
19576
19715
|
/**
|
|
19577
19716
|
* Whether the operation succeeded
|
|
@@ -19581,7 +19720,7 @@ export type JobLogsResponse = {
|
|
|
19581
19720
|
* Optional error description (set if 'success' was false)
|
|
19582
19721
|
*/
|
|
19583
19722
|
error?: string;
|
|
19584
|
-
logs:
|
|
19723
|
+
logs: JobLogItem[];
|
|
19585
19724
|
};
|
|
19586
19725
|
|
|
19587
19726
|
|
|
@@ -20989,7 +21128,7 @@ export type LogStdoutResponse = {
|
|
|
20989
21128
|
* Optional error description (set if 'success' was false)
|
|
20990
21129
|
*/
|
|
20991
21130
|
error?: string;
|
|
20992
|
-
stdout:
|
|
21131
|
+
stdout: JobLogItem[];
|
|
20993
21132
|
/**
|
|
20994
21133
|
* Total number of logs (only the last 1000 lines are returned)
|
|
20995
21134
|
*/
|
|
@@ -20997,15 +21136,6 @@ export type LogStdoutResponse = {
|
|
|
20997
21136
|
};
|
|
20998
21137
|
|
|
20999
21138
|
|
|
21000
|
-
export type LogStdoutResponseAllOfStdout = {
|
|
21001
|
-
created: Date;
|
|
21002
|
-
data: string;
|
|
21003
|
-
logLevel?: LogStdoutResponseAllOfStdoutLogLevelEnum;
|
|
21004
|
-
};
|
|
21005
|
-
export type LogStdoutResponseAllOfStdoutLogLevelEnum = 'error' | 'warn' | 'info' | 'debug';
|
|
21006
|
-
export const LogStdoutResponseAllOfStdoutLogLevelEnumValues: string[];
|
|
21007
|
-
|
|
21008
|
-
|
|
21009
21139
|
export type LogWebsitePageviewRequest = {
|
|
21010
21140
|
sessionId: string;
|
|
21011
21141
|
pageUrl: string;
|
|
@@ -26079,7 +26209,7 @@ export type StopDeviceDebugStreamRequest = {
|
|
|
26079
26209
|
};
|
|
26080
26210
|
|
|
26081
26211
|
|
|
26082
|
-
export type StorageProvider = 's3' | 'google' | 'azure' | 'other';
|
|
26212
|
+
export type StorageProvider = 's3' | 'google' | 'azure' | 'other' | 'edgeimpulse';
|
|
26083
26213
|
export const StorageProviderValues: string[];
|
|
26084
26214
|
|
|
26085
26215
|
|
|
@@ -11375,6 +11375,78 @@ class DeploymentApi {
|
|
|
11375
11375
|
set accessToken(token) {
|
|
11376
11376
|
this.authentications.OAuth2.accessToken = token;
|
|
11377
11377
|
}
|
|
11378
|
+
/**
|
|
11379
|
+
* Create a deployment job for a _public_ project. You can only create deployments for \"wasm\" and \"wasm-browser-simd\" deployment types. If a deployment already exists, jobId is null. If a deployment did not exist, or a job is created, jobId is set to an integer, and you can get updates via `getPublicDeploymentStatus`. When this step is complete use `downloadHistoricDeployment` to download the artefacts using deploymentVersion. Updates are _NOT_ streamed over the websocket API (for security reasons); but can be obtained via `getPublicDeploymentStatus`.
|
|
11380
|
+
* @summary Build deployment (public)
|
|
11381
|
+
* @param projectId Project ID
|
|
11382
|
+
* @param buildPublicDeploymentJobRequest
|
|
11383
|
+
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
11384
|
+
*/
|
|
11385
|
+
async buildPublicDeploymentJob(projectId, buildPublicDeploymentJobRequest, queryParams, options = { headers: {} }) {
|
|
11386
|
+
const localVarPath = this.basePath + '/api/{projectId}/deployment/public/build'
|
|
11387
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
11388
|
+
let queryParameters = {};
|
|
11389
|
+
let localVarHeaderParams = {
|
|
11390
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
11391
|
+
'Content-Type': 'application/json',
|
|
11392
|
+
...this.defaultHeaders,
|
|
11393
|
+
};
|
|
11394
|
+
const produces = ['application/json'];
|
|
11395
|
+
// give precedence to 'application/json'
|
|
11396
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
11397
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
11398
|
+
}
|
|
11399
|
+
else {
|
|
11400
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
11401
|
+
}
|
|
11402
|
+
let localVarFormParams;
|
|
11403
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
11404
|
+
if (projectId === null || projectId === undefined) {
|
|
11405
|
+
throw new Error('Required parameter projectId was null or undefined when calling buildPublicDeploymentJob.');
|
|
11406
|
+
}
|
|
11407
|
+
// verify required parameter 'buildPublicDeploymentJobRequest' is not null or undefined
|
|
11408
|
+
if (buildPublicDeploymentJobRequest === null || buildPublicDeploymentJobRequest === undefined) {
|
|
11409
|
+
throw new Error('Required parameter buildPublicDeploymentJobRequest was null or undefined when calling buildPublicDeploymentJob.');
|
|
11410
|
+
}
|
|
11411
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== null) {
|
|
11412
|
+
queryParameters['impulseId'] = queryParams.impulseId;
|
|
11413
|
+
}
|
|
11414
|
+
localVarHeaderParams = {
|
|
11415
|
+
...localVarHeaderParams,
|
|
11416
|
+
...options.headers,
|
|
11417
|
+
...this.opts.extraHeaders,
|
|
11418
|
+
};
|
|
11419
|
+
const queryString = Object.entries(queryParameters)
|
|
11420
|
+
.filter(([, value]) => value !== undefined)
|
|
11421
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
11422
|
+
.join('&');
|
|
11423
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
11424
|
+
let localVarRequestOptions = {
|
|
11425
|
+
method: 'POST',
|
|
11426
|
+
headers: { ...localVarHeaderParams },
|
|
11427
|
+
};
|
|
11428
|
+
localVarRequestOptions.body = JSON.stringify(buildPublicDeploymentJobRequest);
|
|
11429
|
+
let requestOptions = localVarRequestOptions;
|
|
11430
|
+
let url = localVarUrl;
|
|
11431
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
11432
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
11433
|
+
url = auth_ApiKeyAuthentication.url;
|
|
11434
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
11435
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
11436
|
+
url = auth_JWTAuthentication.url;
|
|
11437
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
11438
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
11439
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
11440
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
11441
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
11442
|
+
url = auth_OAuth2.url;
|
|
11443
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
11444
|
+
requestOptions = authDefault.requestOptions;
|
|
11445
|
+
url = authDefault.url;
|
|
11446
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
11447
|
+
const response = await fetch(url, requestOptions);
|
|
11448
|
+
return this.handleResponse(response, 'BuildPublicDeploymentJobResponse');
|
|
11449
|
+
}
|
|
11378
11450
|
/**
|
|
11379
11451
|
* DEPRECATED, use downloadHistoricDeployment instead. Download the build artefacts for a project.
|
|
11380
11452
|
* @summary Download
|
|
@@ -12058,6 +12130,74 @@ class DeploymentApi {
|
|
|
12058
12130
|
const response = await fetch(url, requestOptions);
|
|
12059
12131
|
return this.handleResponse(response, 'GetModelMonitoringDeploymentsResponse');
|
|
12060
12132
|
}
|
|
12133
|
+
/**
|
|
12134
|
+
* Get the status of a deployment job created through buildPublicDeploymentJob.
|
|
12135
|
+
* @summary Get status of build job (public)
|
|
12136
|
+
* @param projectId Project ID
|
|
12137
|
+
* @param jobId Job ID
|
|
12138
|
+
*/
|
|
12139
|
+
async getPublicDeploymentStatus(projectId, jobId, options = { headers: {} }) {
|
|
12140
|
+
const localVarPath = this.basePath + '/api/{projectId}/deployment/public/jobs/{jobId}/status'
|
|
12141
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
12142
|
+
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
|
|
12143
|
+
let queryParameters = {};
|
|
12144
|
+
let localVarHeaderParams = {
|
|
12145
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
12146
|
+
'Content-Type': 'application/json',
|
|
12147
|
+
...this.defaultHeaders,
|
|
12148
|
+
};
|
|
12149
|
+
const produces = ['application/json'];
|
|
12150
|
+
// give precedence to 'application/json'
|
|
12151
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
12152
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
12153
|
+
}
|
|
12154
|
+
else {
|
|
12155
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
12156
|
+
}
|
|
12157
|
+
let localVarFormParams;
|
|
12158
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
12159
|
+
if (projectId === null || projectId === undefined) {
|
|
12160
|
+
throw new Error('Required parameter projectId was null or undefined when calling getPublicDeploymentStatus.');
|
|
12161
|
+
}
|
|
12162
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
12163
|
+
if (jobId === null || jobId === undefined) {
|
|
12164
|
+
throw new Error('Required parameter jobId was null or undefined when calling getPublicDeploymentStatus.');
|
|
12165
|
+
}
|
|
12166
|
+
localVarHeaderParams = {
|
|
12167
|
+
...localVarHeaderParams,
|
|
12168
|
+
...options.headers,
|
|
12169
|
+
...this.opts.extraHeaders,
|
|
12170
|
+
};
|
|
12171
|
+
const queryString = Object.entries(queryParameters)
|
|
12172
|
+
.filter(([, value]) => value !== undefined)
|
|
12173
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
12174
|
+
.join('&');
|
|
12175
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
12176
|
+
let localVarRequestOptions = {
|
|
12177
|
+
method: 'GET',
|
|
12178
|
+
headers: { ...localVarHeaderParams },
|
|
12179
|
+
};
|
|
12180
|
+
let requestOptions = localVarRequestOptions;
|
|
12181
|
+
let url = localVarUrl;
|
|
12182
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
12183
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
12184
|
+
url = auth_ApiKeyAuthentication.url;
|
|
12185
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
12186
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
12187
|
+
url = auth_JWTAuthentication.url;
|
|
12188
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
12189
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
12190
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
12191
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
12192
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
12193
|
+
url = auth_OAuth2.url;
|
|
12194
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
12195
|
+
requestOptions = authDefault.requestOptions;
|
|
12196
|
+
url = authDefault.url;
|
|
12197
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
12198
|
+
const response = await fetch(url, requestOptions);
|
|
12199
|
+
return this.handleResponse(response, 'GetPublicDeploymentStatusResponse');
|
|
12200
|
+
}
|
|
12061
12201
|
/**
|
|
12062
12202
|
* Get the current posterior parameters for the Syntiant deployment target
|
|
12063
12203
|
* @summary Get Syntiant posterior parameters
|
|
@@ -12185,6 +12325,7 @@ class DeploymentApi {
|
|
|
12185
12325
|
* @summary List deployment history
|
|
12186
12326
|
* @param projectId Project ID
|
|
12187
12327
|
* @param impulseId Impulse ID. If this is unset, data for all impulses is returned.
|
|
12328
|
+
* @param deploymentFormat
|
|
12188
12329
|
* @param limit Maximum number of results
|
|
12189
12330
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
12190
12331
|
*/
|
|
@@ -12213,6 +12354,9 @@ class DeploymentApi {
|
|
|
12213
12354
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.impulseId) !== null) {
|
|
12214
12355
|
queryParameters['impulseId'] = queryParams.impulseId;
|
|
12215
12356
|
}
|
|
12357
|
+
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.deploymentFormat) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.deploymentFormat) !== null) {
|
|
12358
|
+
queryParameters['deploymentFormat'] = queryParams.deploymentFormat;
|
|
12359
|
+
}
|
|
12216
12360
|
if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== null) {
|
|
12217
12361
|
queryParameters['limit'] = queryParams.limit;
|
|
12218
12362
|
}
|
|
@@ -28616,6 +28760,74 @@ class OrganizationDataApi {
|
|
|
28616
28760
|
const response = await fetch(url, requestOptions);
|
|
28617
28761
|
return this.handleResponse(response, 'StartJobResponse');
|
|
28618
28762
|
}
|
|
28763
|
+
/**
|
|
28764
|
+
* Create a new storage bucket in the Edge Impulse infra. This API is only available through JWT token authentication.
|
|
28765
|
+
* @summary Create storage bucket
|
|
28766
|
+
* @param organizationId Organization ID
|
|
28767
|
+
* @param createOrganizationBucketRequest
|
|
28768
|
+
*/
|
|
28769
|
+
async createOrganizationBucket(organizationId, createOrganizationBucketRequest, options = { headers: {} }) {
|
|
28770
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets/create'
|
|
28771
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
28772
|
+
let queryParameters = {};
|
|
28773
|
+
let localVarHeaderParams = {
|
|
28774
|
+
...(typeof window === "undefined" ? { "User-Agent": "edgeimpulse-api nodejs" } : {}),
|
|
28775
|
+
'Content-Type': 'application/json',
|
|
28776
|
+
...this.defaultHeaders,
|
|
28777
|
+
};
|
|
28778
|
+
const produces = ['application/json'];
|
|
28779
|
+
// give precedence to 'application/json'
|
|
28780
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
28781
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
28782
|
+
}
|
|
28783
|
+
else {
|
|
28784
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
28785
|
+
}
|
|
28786
|
+
let localVarFormParams;
|
|
28787
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
28788
|
+
if (organizationId === null || organizationId === undefined) {
|
|
28789
|
+
throw new Error('Required parameter organizationId was null or undefined when calling createOrganizationBucket.');
|
|
28790
|
+
}
|
|
28791
|
+
// verify required parameter 'createOrganizationBucketRequest' is not null or undefined
|
|
28792
|
+
if (createOrganizationBucketRequest === null || createOrganizationBucketRequest === undefined) {
|
|
28793
|
+
throw new Error('Required parameter createOrganizationBucketRequest was null or undefined when calling createOrganizationBucket.');
|
|
28794
|
+
}
|
|
28795
|
+
localVarHeaderParams = {
|
|
28796
|
+
...localVarHeaderParams,
|
|
28797
|
+
...options.headers,
|
|
28798
|
+
...this.opts.extraHeaders,
|
|
28799
|
+
};
|
|
28800
|
+
const queryString = Object.entries(queryParameters)
|
|
28801
|
+
.filter(([, value]) => value !== undefined)
|
|
28802
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
28803
|
+
.join('&');
|
|
28804
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
28805
|
+
let localVarRequestOptions = {
|
|
28806
|
+
method: 'POST',
|
|
28807
|
+
headers: { ...localVarHeaderParams },
|
|
28808
|
+
};
|
|
28809
|
+
localVarRequestOptions.body = JSON.stringify(createOrganizationBucketRequest);
|
|
28810
|
+
let requestOptions = localVarRequestOptions;
|
|
28811
|
+
let url = localVarUrl;
|
|
28812
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
28813
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
28814
|
+
url = auth_ApiKeyAuthentication.url;
|
|
28815
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
28816
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
28817
|
+
url = auth_JWTAuthentication.url;
|
|
28818
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
28819
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
28820
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
28821
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
28822
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
28823
|
+
url = auth_OAuth2.url;
|
|
28824
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
28825
|
+
requestOptions = authDefault.requestOptions;
|
|
28826
|
+
url = authDefault.url;
|
|
28827
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
28828
|
+
const response = await fetch(url, requestOptions);
|
|
28829
|
+
return this.handleResponse(response, 'CreateOrganizationBucketResponse');
|
|
28830
|
+
}
|
|
28619
28831
|
/**
|
|
28620
28832
|
* Creates a signed link to securely upload data to s3 bucket directly from the client.
|
|
28621
28833
|
* @summary Create pre-signed S3 upload link
|
|
@@ -57948,6 +58160,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
57948
58160
|
});
|
|
57949
58161
|
|
|
57950
58162
|
|
|
58163
|
+
define("library/sdk/model/buildPublicDeploymentJobRequest", ["require", "exports"], function (require, exports) {
|
|
58164
|
+
"use strict";
|
|
58165
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58166
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58167
|
+
});
|
|
58168
|
+
|
|
58169
|
+
|
|
58170
|
+
define("library/sdk/model/buildPublicDeploymentJobResponse", ["require", "exports"], function (require, exports) {
|
|
58171
|
+
"use strict";
|
|
58172
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58173
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58174
|
+
});
|
|
58175
|
+
|
|
58176
|
+
|
|
57951
58177
|
define("library/sdk/model/calculateDataQualityMetricsRequest", ["require", "exports"], function (require, exports) {
|
|
57952
58178
|
"use strict";
|
|
57953
58179
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -58166,6 +58392,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
58166
58392
|
});
|
|
58167
58393
|
|
|
58168
58394
|
|
|
58395
|
+
define("library/sdk/model/createOrganizationBucketRequest", ["require", "exports"], function (require, exports) {
|
|
58396
|
+
"use strict";
|
|
58397
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58398
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58399
|
+
});
|
|
58400
|
+
|
|
58401
|
+
|
|
58402
|
+
define("library/sdk/model/createOrganizationBucketResponse", ["require", "exports"], function (require, exports) {
|
|
58403
|
+
"use strict";
|
|
58404
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
58405
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58406
|
+
});
|
|
58407
|
+
|
|
58408
|
+
|
|
58169
58409
|
define("library/sdk/model/createOrganizationPortalRequest", ["require", "exports"], function (require, exports) {
|
|
58170
58410
|
"use strict";
|
|
58171
58411
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -59748,6 +59988,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
59748
59988
|
});
|
|
59749
59989
|
|
|
59750
59990
|
|
|
59991
|
+
define("library/sdk/model/getPublicDeploymentStatusResponse", ["require", "exports"], function (require, exports) {
|
|
59992
|
+
"use strict";
|
|
59993
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
59994
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59995
|
+
});
|
|
59996
|
+
|
|
59997
|
+
|
|
59751
59998
|
define("library/sdk/model/getPublicMetricsResponse", ["require", "exports"], function (require, exports) {
|
|
59752
59999
|
"use strict";
|
|
59753
60000
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -60088,6 +60335,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
60088
60335
|
});
|
|
60089
60336
|
|
|
60090
60337
|
|
|
60338
|
+
define("library/sdk/model/jobLogItem", ["require", "exports"], function (require, exports) {
|
|
60339
|
+
"use strict";
|
|
60340
|
+
// Generated by studio/openapi/generate-models/convert.ts
|
|
60341
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60342
|
+
exports.JobLogItemLogLevelEnumValues = void 0;
|
|
60343
|
+
exports.JobLogItemLogLevelEnumValues = ['error', 'warn', 'info', 'debug'];
|
|
60344
|
+
});
|
|
60345
|
+
|
|
60346
|
+
|
|
60091
60347
|
define("library/sdk/model/jobLogsResponse", ["require", "exports"], function (require, exports) {
|
|
60092
60348
|
"use strict";
|
|
60093
60349
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -60634,15 +60890,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
60634
60890
|
});
|
|
60635
60891
|
|
|
60636
60892
|
|
|
60637
|
-
define("library/sdk/model/logStdoutResponseAllOfStdout", ["require", "exports"], function (require, exports) {
|
|
60638
|
-
"use strict";
|
|
60639
|
-
// Generated by studio/openapi/generate-models/convert.ts
|
|
60640
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60641
|
-
exports.LogStdoutResponseAllOfStdoutLogLevelEnumValues = void 0;
|
|
60642
|
-
exports.LogStdoutResponseAllOfStdoutLogLevelEnumValues = ['error', 'warn', 'info', 'debug'];
|
|
60643
|
-
});
|
|
60644
|
-
|
|
60645
|
-
|
|
60646
60893
|
define("library/sdk/model/logWebsitePageviewRequest", ["require", "exports"], function (require, exports) {
|
|
60647
60894
|
"use strict";
|
|
60648
60895
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
@@ -60881,6 +61128,8 @@ __exportStar(require("./boundingBoxWithScore"), exports);
|
|
|
60881
61128
|
__exportStar(require("./buildOnDeviceModelRequest"), exports);
|
|
60882
61129
|
__exportStar(require("./buildOnDeviceModelResponse"), exports);
|
|
60883
61130
|
__exportStar(require("./buildOrganizationOnDeviceModelRequest"), exports);
|
|
61131
|
+
__exportStar(require("./buildPublicDeploymentJobRequest"), exports);
|
|
61132
|
+
__exportStar(require("./buildPublicDeploymentJobResponse"), exports);
|
|
60884
61133
|
__exportStar(require("./calculateDataQualityMetricsRequest"), exports);
|
|
60885
61134
|
__exportStar(require("./canaryResponse"), exports);
|
|
60886
61135
|
__exportStar(require("./changePasswordRequest"), exports);
|
|
@@ -60911,6 +61160,8 @@ __exportStar(require("./createImpulseResponse"), exports);
|
|
|
60911
61160
|
__exportStar(require("./createMultiProjectDeploymentRequest"), exports);
|
|
60912
61161
|
__exportStar(require("./createNewEmptyImpulseRequest"), exports);
|
|
60913
61162
|
__exportStar(require("./createNewEmptyImpulseResponse"), exports);
|
|
61163
|
+
__exportStar(require("./createOrganizationBucketRequest"), exports);
|
|
61164
|
+
__exportStar(require("./createOrganizationBucketResponse"), exports);
|
|
60914
61165
|
__exportStar(require("./createOrganizationPortalRequest"), exports);
|
|
60915
61166
|
__exportStar(require("./createOrganizationPortalResponse"), exports);
|
|
60916
61167
|
__exportStar(require("./createOrganizationRequest"), exports);
|
|
@@ -61124,6 +61375,7 @@ __exportStar(require("./getPostProcessingResultsForSampleResponse"), exports);
|
|
|
61124
61375
|
__exportStar(require("./getPostProcessingResultsForSampleResponseAllOfResults"), exports);
|
|
61125
61376
|
__exportStar(require("./getPostProcessingResultsResponse"), exports);
|
|
61126
61377
|
__exportStar(require("./getPretrainedModelResponse"), exports);
|
|
61378
|
+
__exportStar(require("./getPublicDeploymentStatusResponse"), exports);
|
|
61127
61379
|
__exportStar(require("./getPublicMetricsResponse"), exports);
|
|
61128
61380
|
__exportStar(require("./getPublicOrganizationTransformationBlockResponse"), exports);
|
|
61129
61381
|
__exportStar(require("./getRawDataMetadataCooccurrenceResponse"), exports);
|
|
@@ -61170,6 +61422,7 @@ __exportStar(require("./job"), exports);
|
|
|
61170
61422
|
__exportStar(require("./jobDetails"), exports);
|
|
61171
61423
|
__exportStar(require("./jobDetailsResponse"), exports);
|
|
61172
61424
|
__exportStar(require("./jobFailureDetails"), exports);
|
|
61425
|
+
__exportStar(require("./jobLogItem"), exports);
|
|
61173
61426
|
__exportStar(require("./jobLogsResponse"), exports);
|
|
61174
61427
|
__exportStar(require("./jobMetricsResponse"), exports);
|
|
61175
61428
|
__exportStar(require("./jobParentTypeEnum"), exports);
|
|
@@ -61244,7 +61497,6 @@ __exportStar(require("./listVersionsResponse"), exports);
|
|
|
61244
61497
|
__exportStar(require("./listWebhookDestinationsResponse"), exports);
|
|
61245
61498
|
__exportStar(require("./logAnalyticsEventRequest"), exports);
|
|
61246
61499
|
__exportStar(require("./logStdoutResponse"), exports);
|
|
61247
|
-
__exportStar(require("./logStdoutResponseAllOfStdout"), exports);
|
|
61248
61500
|
__exportStar(require("./logWebsitePageviewRequest"), exports);
|
|
61249
61501
|
__exportStar(require("./loginResponse"), exports);
|
|
61250
61502
|
__exportStar(require("./memorySpec"), exports);
|
|
@@ -61658,6 +61910,9 @@ class OAuth {
|
|
|
61658
61910
|
}
|
|
61659
61911
|
applyToRequest(requestOptions, url) {
|
|
61660
61912
|
const headers = { ...(requestOptions.headers || {}) };
|
|
61913
|
+
if (!this.accessToken) {
|
|
61914
|
+
return { requestOptions: { ...requestOptions, headers }, url };
|
|
61915
|
+
}
|
|
61661
61916
|
headers['Authorization'] = 'Bearer ' + this.accessToken;
|
|
61662
61917
|
return { requestOptions: { ...requestOptions, headers }, url };
|
|
61663
61918
|
}
|
|
@@ -63461,7 +63716,7 @@ define("library/sdk/model/storageProvider", ["require", "exports"], function (re
|
|
|
63461
63716
|
// Generated by studio/openapi/generate-models/convert.ts
|
|
63462
63717
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63463
63718
|
exports.StorageProviderValues = void 0;
|
|
63464
|
-
exports.StorageProviderValues = ['s3', 'google', 'azure', 'other'];
|
|
63719
|
+
exports.StorageProviderValues = ['s3', 'google', 'azure', 'other', 'edgeimpulse'];
|
|
63465
63720
|
});
|
|
63466
63721
|
|
|
63467
63722
|
|