edge-impulse-api 1.95.20 → 1.95.22
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/library/sdk/api/adminApi.d.ts +28 -0
- package/build/library/sdk/api/adminApi.js +140 -0
- package/build/library/sdk/api/adminApi.js.map +1 -1
- package/build/library/sdk/api/organizationBlocksApi.d.ts +4 -0
- package/build/library/sdk/api/organizationBlocksApi.js +12 -0
- package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/library/sdk/model/addOrganizationExtensionBlockRequest.d.ts +4 -0
- package/build/library/sdk/model/adminApiOrganization.d.ts +2 -0
- package/build/library/sdk/model/adminOrganizationInfoResponse.d.ts +6 -0
- package/build/library/sdk/model/adminUpdateOrganizationExtensionSettingsRequest.d.ts +7 -0
- package/build/library/sdk/model/adminUpdateOrganizationExtensionSettingsRequest.js +4 -0
- package/build/library/sdk/model/adminUpdateOrganizationExtensionSettingsRequest.js.map +1 -0
- package/build/library/sdk/model/dSPInfo.d.ts +6 -0
- package/build/library/sdk/model/dependencyData.d.ts +6 -0
- package/build/library/sdk/model/extension.d.ts +4 -0
- package/build/library/sdk/model/extension.js.map +1 -1
- package/build/library/sdk/model/extensionWithId.d.ts +8 -0
- package/build/library/sdk/model/extensionWithId.js.map +1 -1
- package/build/library/sdk/model/kerasConfig.d.ts +4 -0
- package/build/library/sdk/model/kerasConfig.js.map +1 -1
- package/build/library/sdk/model/kerasResponse.d.ts +4 -0
- package/build/library/sdk/model/kerasResponse.js.map +1 -1
- package/build/library/sdk/model/listFirstPartyExtensionsResponse.d.ts +18 -0
- package/build/library/sdk/model/listFirstPartyExtensionsResponse.js +4 -0
- package/build/library/sdk/model/listFirstPartyExtensionsResponse.js.map +1 -0
- package/build/library/sdk/model/models.d.ts +5 -0
- package/build/library/sdk/model/models.js +5 -0
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/organization.d.ts +2 -0
- package/build/library/sdk/model/organizationExtensionSettings.d.ts +26 -0
- package/build/library/sdk/model/organizationExtensionSettings.js +4 -0
- package/build/library/sdk/model/organizationExtensionSettings.js.map +1 -0
- package/build/library/sdk/model/permission.d.ts +1 -1
- package/build/library/sdk/model/permission.js +1 -1
- package/build/library/sdk/model/permission.js.map +1 -1
- package/build/library/sdk/model/projectExtension.d.ts +4 -0
- package/build/library/sdk/model/projectExtension.js.map +1 -1
- package/build/library/sdk/model/updateOrganizationExtensionBlockRequest.d.ts +4 -0
- package/build/library/sdk/model/updateOrganizationExtensionSettings.d.ts +10 -0
- package/build/library/sdk/model/updateOrganizationExtensionSettings.js +4 -0
- package/build/library/sdk/model/updateOrganizationExtensionSettings.js.map +1 -0
- package/build/library/sdk/model/updateOrganizationRequest.d.ts +2 -0
- package/build/library/sdk/model/userOrganization.d.ts +2 -0
- package/build/library/sdk/model/userOrganizationExtensionSettings.d.ts +14 -0
- package/build/library/sdk/model/userOrganizationExtensionSettings.js +4 -0
- package/build/library/sdk/model/userOrganizationExtensionSettings.js.map +1 -0
- package/package.json +1 -1
|
@@ -48,6 +48,7 @@ import { AdminToggleDataMigrationRequest } from '../model/adminToggleDataMigrati
|
|
|
48
48
|
import { AdminUpdateConfigRequest } from '../model/adminUpdateConfigRequest';
|
|
49
49
|
import { AdminUpdateOauthClientRequest } from '../model/adminUpdateOauthClientRequest';
|
|
50
50
|
import { AdminUpdateOrganizationDataExportRequest } from '../model/adminUpdateOrganizationDataExportRequest';
|
|
51
|
+
import { AdminUpdateOrganizationExtensionSettingsRequest } from '../model/adminUpdateOrganizationExtensionSettingsRequest';
|
|
51
52
|
import { AdminUpdateOrganizationRequest } from '../model/adminUpdateOrganizationRequest';
|
|
52
53
|
import { AdminUpdateTrialRequest } from '../model/adminUpdateTrialRequest';
|
|
53
54
|
import { AdminUpdateUserPermissionsRequest } from '../model/adminUpdateUserPermissionsRequest';
|
|
@@ -67,6 +68,7 @@ import { JobDetailsResponse } from '../model/jobDetailsResponse';
|
|
|
67
68
|
import { JobLogsResponse } from '../model/jobLogsResponse';
|
|
68
69
|
import { JobMetricsResponse } from '../model/jobMetricsResponse';
|
|
69
70
|
import { JobParentTypeEnum } from '../model/jobParentTypeEnum';
|
|
71
|
+
import { ListFirstPartyExtensionsResponse } from '../model/listFirstPartyExtensionsResponse';
|
|
70
72
|
import { ListJobsResponse } from '../model/listJobsResponse';
|
|
71
73
|
import { ListOrganizationDataResponse } from '../model/listOrganizationDataResponse';
|
|
72
74
|
import { ListPortalFilesInFolderResponse } from '../model/listPortalFilesInFolderResponse';
|
|
@@ -1220,6 +1222,18 @@ export declare class AdminApi {
|
|
|
1220
1222
|
[name: string]: string;
|
|
1221
1223
|
}) => void;
|
|
1222
1224
|
}): Promise<AdminGetUsersResponse>;
|
|
1225
|
+
/**
|
|
1226
|
+
* Admin-only API to retrieve Edge Impulse first-party extensions.
|
|
1227
|
+
* @summary Get first-party extensions
|
|
1228
|
+
*/
|
|
1229
|
+
adminListFirstPartyExtensions(options?: {
|
|
1230
|
+
headers: {
|
|
1231
|
+
[name: string]: string;
|
|
1232
|
+
};
|
|
1233
|
+
responseHeadersCallback?: (headers: {
|
|
1234
|
+
[name: string]: string;
|
|
1235
|
+
}) => void;
|
|
1236
|
+
}): Promise<ListFirstPartyExtensionsResponse>;
|
|
1223
1237
|
/**
|
|
1224
1238
|
* Admin-only API to list all data items from an organization. The response is paginated and returns up to 1000 samples per request. To retrieve additional pages: 1. Use the `limit` parameter to specify how many samples to return (max 1000) 2. Use the `offset` parameter to skip a number of samples 3. Make subsequent requests with increasing offset values to retrieve all samples For example: - First request: limit=1000, offset=0 (samples 1-1000) - Second request: limit=1000, offset=1000 (samples 1001-2000) - And so on
|
|
1225
1239
|
* @summary List organization data
|
|
@@ -1553,6 +1567,20 @@ export declare class AdminApi {
|
|
|
1553
1567
|
[name: string]: string;
|
|
1554
1568
|
}) => void;
|
|
1555
1569
|
}): Promise<GenericApiResponse>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Updates extension settings for an organization.
|
|
1572
|
+
* @summary Update organization extension settings
|
|
1573
|
+
* @param organizationId Organization ID
|
|
1574
|
+
* @param adminUpdateOrganizationExtensionSettingsRequest
|
|
1575
|
+
*/
|
|
1576
|
+
adminUpdateOrganizationExtensionSettings(organizationId: number, adminUpdateOrganizationExtensionSettingsRequest: AdminUpdateOrganizationExtensionSettingsRequest, options?: {
|
|
1577
|
+
headers: {
|
|
1578
|
+
[name: string]: string;
|
|
1579
|
+
};
|
|
1580
|
+
responseHeadersCallback?: (headers: {
|
|
1581
|
+
[name: string]: string;
|
|
1582
|
+
}) => void;
|
|
1583
|
+
}): Promise<GenericApiResponse>;
|
|
1556
1584
|
/**
|
|
1557
1585
|
* Admin-only API to update project properties.
|
|
1558
1586
|
* @summary Update project
|
|
@@ -5264,6 +5264,70 @@ class AdminApi {
|
|
|
5264
5264
|
}
|
|
5265
5265
|
return resp;
|
|
5266
5266
|
}
|
|
5267
|
+
/**
|
|
5268
|
+
* Admin-only API to retrieve Edge Impulse first-party extensions.
|
|
5269
|
+
* @summary Get first-party extensions
|
|
5270
|
+
*/
|
|
5271
|
+
async adminListFirstPartyExtensions(options = { headers: {} }) {
|
|
5272
|
+
const localVarPath = this.basePath + '/api/admin/first-party-extensions';
|
|
5273
|
+
let queryParameters = {};
|
|
5274
|
+
let localVarHeaderParams = {
|
|
5275
|
+
'User-Agent': 'edgeimpulse-api nodejs',
|
|
5276
|
+
'Content-Type': 'application/json',
|
|
5277
|
+
...this.defaultHeaders,
|
|
5278
|
+
};
|
|
5279
|
+
const produces = ['application/json'];
|
|
5280
|
+
// give precedence to 'application/json'
|
|
5281
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
5282
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
5283
|
+
}
|
|
5284
|
+
else {
|
|
5285
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
5286
|
+
}
|
|
5287
|
+
let localVarFormParams;
|
|
5288
|
+
localVarHeaderParams = {
|
|
5289
|
+
...localVarHeaderParams,
|
|
5290
|
+
...options.headers,
|
|
5291
|
+
...this.opts.extraHeaders,
|
|
5292
|
+
};
|
|
5293
|
+
const queryString = Object.entries(queryParameters)
|
|
5294
|
+
.filter(([, value]) => value !== undefined)
|
|
5295
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
5296
|
+
.join('&');
|
|
5297
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
5298
|
+
let localVarRequestOptions = {
|
|
5299
|
+
method: 'GET',
|
|
5300
|
+
headers: { ...localVarHeaderParams },
|
|
5301
|
+
};
|
|
5302
|
+
let requestOptions = localVarRequestOptions;
|
|
5303
|
+
let url = localVarUrl;
|
|
5304
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
5305
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
5306
|
+
url = auth_ApiKeyAuthentication.url;
|
|
5307
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
5308
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
5309
|
+
url = auth_JWTAuthentication.url;
|
|
5310
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
5311
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
5312
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
5313
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
5314
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
5315
|
+
url = auth_OAuth2.url;
|
|
5316
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
5317
|
+
requestOptions = authDefault.requestOptions;
|
|
5318
|
+
url = authDefault.url;
|
|
5319
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5320
|
+
const response = await fetch(url, requestOptions);
|
|
5321
|
+
const resp = this.handleResponse(response, 'ListFirstPartyExtensionsResponse');
|
|
5322
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5323
|
+
const headerCb = options.responseHeadersCallback;
|
|
5324
|
+
// on next tick, so we have time to handle the response
|
|
5325
|
+
setTimeout(() => {
|
|
5326
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5327
|
+
}, 0);
|
|
5328
|
+
}
|
|
5329
|
+
return resp;
|
|
5330
|
+
}
|
|
5267
5331
|
/**
|
|
5268
5332
|
* Admin-only API to list all data items from an organization. The response is paginated and returns up to 1000 samples per request. To retrieve additional pages: 1. Use the `limit` parameter to specify how many samples to return (max 1000) 2. Use the `offset` parameter to skip a number of samples 3. Make subsequent requests with increasing offset values to retrieve all samples For example: - First request: limit=1000, offset=0 (samples 1-1000) - Second request: limit=1000, offset=1000 (samples 1001-2000) - And so on
|
|
5269
5333
|
* @summary List organization data
|
|
@@ -7056,6 +7120,82 @@ class AdminApi {
|
|
|
7056
7120
|
}
|
|
7057
7121
|
return resp;
|
|
7058
7122
|
}
|
|
7123
|
+
/**
|
|
7124
|
+
* Updates extension settings for an organization.
|
|
7125
|
+
* @summary Update organization extension settings
|
|
7126
|
+
* @param organizationId Organization ID
|
|
7127
|
+
* @param adminUpdateOrganizationExtensionSettingsRequest
|
|
7128
|
+
*/
|
|
7129
|
+
async adminUpdateOrganizationExtensionSettings(organizationId, adminUpdateOrganizationExtensionSettingsRequest, options = { headers: {} }) {
|
|
7130
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/extension-settings'
|
|
7131
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
7132
|
+
let queryParameters = {};
|
|
7133
|
+
let localVarHeaderParams = {
|
|
7134
|
+
'User-Agent': 'edgeimpulse-api nodejs',
|
|
7135
|
+
'Content-Type': 'application/json',
|
|
7136
|
+
...this.defaultHeaders,
|
|
7137
|
+
};
|
|
7138
|
+
const produces = ['application/json'];
|
|
7139
|
+
// give precedence to 'application/json'
|
|
7140
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
7141
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
7142
|
+
}
|
|
7143
|
+
else {
|
|
7144
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
7145
|
+
}
|
|
7146
|
+
let localVarFormParams;
|
|
7147
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
7148
|
+
if (organizationId === null || organizationId === undefined) {
|
|
7149
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminUpdateOrganizationExtensionSettings.');
|
|
7150
|
+
}
|
|
7151
|
+
// verify required parameter 'adminUpdateOrganizationExtensionSettingsRequest' is not null or undefined
|
|
7152
|
+
if (adminUpdateOrganizationExtensionSettingsRequest === null || adminUpdateOrganizationExtensionSettingsRequest === undefined) {
|
|
7153
|
+
throw new Error('Required parameter adminUpdateOrganizationExtensionSettingsRequest was null or undefined when calling adminUpdateOrganizationExtensionSettings.');
|
|
7154
|
+
}
|
|
7155
|
+
localVarHeaderParams = {
|
|
7156
|
+
...localVarHeaderParams,
|
|
7157
|
+
...options.headers,
|
|
7158
|
+
...this.opts.extraHeaders,
|
|
7159
|
+
};
|
|
7160
|
+
const queryString = Object.entries(queryParameters)
|
|
7161
|
+
.filter(([, value]) => value !== undefined)
|
|
7162
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
|
|
7163
|
+
.join('&');
|
|
7164
|
+
let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
|
|
7165
|
+
let localVarRequestOptions = {
|
|
7166
|
+
method: 'POST',
|
|
7167
|
+
headers: { ...localVarHeaderParams },
|
|
7168
|
+
};
|
|
7169
|
+
localVarRequestOptions.body = JSON.stringify(adminUpdateOrganizationExtensionSettingsRequest);
|
|
7170
|
+
let requestOptions = localVarRequestOptions;
|
|
7171
|
+
let url = localVarUrl;
|
|
7172
|
+
const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
|
|
7173
|
+
requestOptions = auth_ApiKeyAuthentication.requestOptions;
|
|
7174
|
+
url = auth_ApiKeyAuthentication.url;
|
|
7175
|
+
const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
|
|
7176
|
+
requestOptions = auth_JWTAuthentication.requestOptions;
|
|
7177
|
+
url = auth_JWTAuthentication.url;
|
|
7178
|
+
const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
|
|
7179
|
+
requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
|
|
7180
|
+
url = auth_JWTHttpHeaderAuthentication.url;
|
|
7181
|
+
const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
|
|
7182
|
+
requestOptions = auth_OAuth2.requestOptions;
|
|
7183
|
+
url = auth_OAuth2.url;
|
|
7184
|
+
const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
|
|
7185
|
+
requestOptions = authDefault.requestOptions;
|
|
7186
|
+
url = authDefault.url;
|
|
7187
|
+
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
7188
|
+
const response = await fetch(url, requestOptions);
|
|
7189
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
7190
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
7191
|
+
const headerCb = options.responseHeadersCallback;
|
|
7192
|
+
// on next tick, so we have time to handle the response
|
|
7193
|
+
setTimeout(() => {
|
|
7194
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
7195
|
+
}, 0);
|
|
7196
|
+
}
|
|
7197
|
+
return resp;
|
|
7198
|
+
}
|
|
7059
7199
|
/**
|
|
7060
7200
|
* Admin-only API to update project properties.
|
|
7061
7201
|
* @summary Update project
|