edge-impulse-api 1.95.15 → 1.95.16
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/api.js +28 -0
- package/build/library/api.js.map +1 -1
- package/build/library/sdk/api/organizationBlocksApi.d.ts +5 -0
- package/build/library/sdk/api/organizationBlocksApi.js +16 -0
- package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/library/sdk/api/organizationsApi.d.ts +3 -3
- package/build/library/sdk/api/organizationsApi.js +3 -3
- package/build/library/sdk/api/projectsApi.d.ts +5 -5
- package/build/library/sdk/api/projectsApi.js +15 -15
- package/build/library/sdk/api/projectsApi.js.map +1 -1
- package/build/library/sdk/model/addOrganizationExtensionBlockRequest.d.ts +2 -0
- package/build/library/sdk/model/addProjectApiKeyRequest.d.ts +1 -1
- package/build/library/sdk/model/apiKeyExtension.d.ts +1 -1
- package/build/library/sdk/model/extension.d.ts +5 -1
- package/build/library/sdk/model/extension.js +2 -0
- package/build/library/sdk/model/extension.js.map +1 -1
- package/build/library/sdk/model/extensionAuthMethod.d.ts +5 -0
- package/build/library/sdk/model/extensionAuthMethod.js +6 -0
- package/build/library/sdk/model/extensionAuthMethod.js.map +1 -0
- package/build/library/sdk/model/extensionWithId.d.ts +39 -0
- package/build/library/sdk/model/extensionWithId.js +6 -0
- package/build/library/sdk/model/extensionWithId.js.map +1 -0
- package/build/library/sdk/model/getCurrentApiKeyInfoResponse.d.ts +4 -0
- package/build/library/sdk/model/getOrganizationExtensionBlockResponse.d.ts +2 -2
- package/build/library/sdk/model/listOrganizationExtensionBlocksResponse.d.ts +2 -2
- package/build/library/sdk/model/listProjectAvailableExtensionsResponse.d.ts +2 -2
- package/build/library/sdk/model/models.d.ts +2 -0
- package/build/library/sdk/model/models.js +2 -0
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/monitoringEvent.d.ts +6 -0
- package/build/library/sdk/model/monitoringEvent.js.map +1 -1
- package/build/library/sdk/model/projectExtension.d.ts +7 -1
- package/build/library/sdk/model/projectExtension.js +2 -0
- package/build/library/sdk/model/projectExtension.js.map +1 -1
- package/build/library/sdk/model/updateOrganizationExtensionBlockRequest.d.ts +2 -0
- package/package.json +1 -1
|
@@ -99,7 +99,7 @@ class OrganizationsApi {
|
|
|
99
99
|
this.authentications.OAuth2.accessToken = token;
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
|
-
* Add an API key.
|
|
102
|
+
* Add an API key. This API is only available through JWT token authentication.
|
|
103
103
|
* @summary Add API key
|
|
104
104
|
* @param organizationId Organization ID
|
|
105
105
|
* @param addOrganizationApiKeyRequest
|
|
@@ -989,7 +989,7 @@ class OrganizationsApi {
|
|
|
989
989
|
return resp;
|
|
990
990
|
}
|
|
991
991
|
/**
|
|
992
|
-
* Retrieve all API keys. This does **not** return the full API key, but only a portion (for security purposes).
|
|
992
|
+
* Retrieve all API keys. This does **not** return the full API key, but only a portion (for security purposes). This API returns an empty array when not authenticating with JWT token authentication.
|
|
993
993
|
* @summary Get API keys
|
|
994
994
|
* @param organizationId Organization ID
|
|
995
995
|
*/
|
|
@@ -1567,7 +1567,7 @@ class OrganizationsApi {
|
|
|
1567
1567
|
return resp;
|
|
1568
1568
|
}
|
|
1569
1569
|
/**
|
|
1570
|
-
* Revoke an API key.
|
|
1570
|
+
* Revoke an API key. This API is only available through JWT token authentication.
|
|
1571
1571
|
* @summary Revoke API key
|
|
1572
1572
|
* @param organizationId Organization ID
|
|
1573
1573
|
* @param apiKeyId API key ID
|
|
@@ -435,9 +435,9 @@ export declare class ProjectsApi {
|
|
|
435
435
|
* Retrieve list of shared state keys and their latest version.
|
|
436
436
|
* @summary List shared state keys for extension
|
|
437
437
|
* @param projectId Project ID
|
|
438
|
-
* @param
|
|
438
|
+
* @param projectExtensionId Project Extension ID
|
|
439
439
|
*/
|
|
440
|
-
getExtensionSharedStateListForExtension(projectId: number,
|
|
440
|
+
getExtensionSharedStateListForExtension(projectId: number, projectExtensionId: number, options?: {
|
|
441
441
|
headers: {
|
|
442
442
|
[name: string]: string;
|
|
443
443
|
};
|
|
@@ -702,7 +702,7 @@ export declare class ProjectsApi {
|
|
|
702
702
|
}) => void;
|
|
703
703
|
}): Promise<ListEmailResponse>;
|
|
704
704
|
/**
|
|
705
|
-
* Retrieve all API keys. This does **not** return the full API key, but only a portion (for security purposes). The development key will be returned in full, as it\'ll be set in devices and is thus not private.
|
|
705
|
+
* Retrieve all API keys. This does **not** return the full API key, but only a portion (for security purposes). The development key will be returned in full, as it\'ll be set in devices and is thus not private. This API returns an empty array when not authenticating with JWT token authentication.
|
|
706
706
|
* @summary Get API keys
|
|
707
707
|
* @param projectId Project ID
|
|
708
708
|
*/
|
|
@@ -868,9 +868,9 @@ export declare class ProjectsApi {
|
|
|
868
868
|
* Removes an existing extension from a project.
|
|
869
869
|
* @summary Remove extension from project
|
|
870
870
|
* @param projectId Project ID
|
|
871
|
-
* @param
|
|
871
|
+
* @param projectExtensionId Project Extension ID
|
|
872
872
|
*/
|
|
873
|
-
removeProjectActiveExtension(projectId: number,
|
|
873
|
+
removeProjectActiveExtension(projectId: number, projectExtensionId: number, options?: {
|
|
874
874
|
headers: {
|
|
875
875
|
[name: string]: string;
|
|
876
876
|
};
|
|
@@ -1651,12 +1651,12 @@ class ProjectsApi {
|
|
|
1651
1651
|
* Retrieve list of shared state keys and their latest version.
|
|
1652
1652
|
* @summary List shared state keys for extension
|
|
1653
1653
|
* @param projectId Project ID
|
|
1654
|
-
* @param
|
|
1654
|
+
* @param projectExtensionId Project Extension ID
|
|
1655
1655
|
*/
|
|
1656
|
-
async getExtensionSharedStateListForExtension(projectId,
|
|
1657
|
-
const localVarPath = this.basePath + '/api/{projectId}/extensions/{
|
|
1656
|
+
async getExtensionSharedStateListForExtension(projectId, projectExtensionId, options = { headers: {} }) {
|
|
1657
|
+
const localVarPath = this.basePath + '/api/{projectId}/extensions/{projectExtensionId}/shared-state/list'
|
|
1658
1658
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
1659
|
-
.replace('{' + '
|
|
1659
|
+
.replace('{' + 'projectExtensionId' + '}', encodeURIComponent(String(projectExtensionId)));
|
|
1660
1660
|
let queryParameters = {};
|
|
1661
1661
|
let localVarHeaderParams = {
|
|
1662
1662
|
'User-Agent': 'edgeimpulse-api nodejs',
|
|
@@ -1676,9 +1676,9 @@ class ProjectsApi {
|
|
|
1676
1676
|
if (projectId === null || projectId === undefined) {
|
|
1677
1677
|
throw new Error('Required parameter projectId was null or undefined when calling getExtensionSharedStateListForExtension.');
|
|
1678
1678
|
}
|
|
1679
|
-
// verify required parameter '
|
|
1680
|
-
if (
|
|
1681
|
-
throw new Error('Required parameter
|
|
1679
|
+
// verify required parameter 'projectExtensionId' is not null or undefined
|
|
1680
|
+
if (projectExtensionId === null || projectExtensionId === undefined) {
|
|
1681
|
+
throw new Error('Required parameter projectExtensionId was null or undefined when calling getExtensionSharedStateListForExtension.');
|
|
1682
1682
|
}
|
|
1683
1683
|
localVarHeaderParams = {
|
|
1684
1684
|
...localVarHeaderParams,
|
|
@@ -3090,7 +3090,7 @@ class ProjectsApi {
|
|
|
3090
3090
|
return resp;
|
|
3091
3091
|
}
|
|
3092
3092
|
/**
|
|
3093
|
-
* Retrieve all API keys. This does **not** return the full API key, but only a portion (for security purposes). The development key will be returned in full, as it\'ll be set in devices and is thus not private.
|
|
3093
|
+
* Retrieve all API keys. This does **not** return the full API key, but only a portion (for security purposes). The development key will be returned in full, as it\'ll be set in devices and is thus not private. This API returns an empty array when not authenticating with JWT token authentication.
|
|
3094
3094
|
* @summary Get API keys
|
|
3095
3095
|
* @param projectId Project ID
|
|
3096
3096
|
*/
|
|
@@ -3929,12 +3929,12 @@ class ProjectsApi {
|
|
|
3929
3929
|
* Removes an existing extension from a project.
|
|
3930
3930
|
* @summary Remove extension from project
|
|
3931
3931
|
* @param projectId Project ID
|
|
3932
|
-
* @param
|
|
3932
|
+
* @param projectExtensionId Project Extension ID
|
|
3933
3933
|
*/
|
|
3934
|
-
async removeProjectActiveExtension(projectId,
|
|
3935
|
-
const localVarPath = this.basePath + '/api/{projectId}/extensions/active/{
|
|
3934
|
+
async removeProjectActiveExtension(projectId, projectExtensionId, options = { headers: {} }) {
|
|
3935
|
+
const localVarPath = this.basePath + '/api/{projectId}/extensions/active/{projectExtensionId}'
|
|
3936
3936
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3937
|
-
.replace('{' + '
|
|
3937
|
+
.replace('{' + 'projectExtensionId' + '}', encodeURIComponent(String(projectExtensionId)));
|
|
3938
3938
|
let queryParameters = {};
|
|
3939
3939
|
let localVarHeaderParams = {
|
|
3940
3940
|
'User-Agent': 'edgeimpulse-api nodejs',
|
|
@@ -3954,9 +3954,9 @@ class ProjectsApi {
|
|
|
3954
3954
|
if (projectId === null || projectId === undefined) {
|
|
3955
3955
|
throw new Error('Required parameter projectId was null or undefined when calling removeProjectActiveExtension.');
|
|
3956
3956
|
}
|
|
3957
|
-
// verify required parameter '
|
|
3958
|
-
if (
|
|
3959
|
-
throw new Error('Required parameter
|
|
3957
|
+
// verify required parameter 'projectExtensionId' is not null or undefined
|
|
3958
|
+
if (projectExtensionId === null || projectExtensionId === undefined) {
|
|
3959
|
+
throw new Error('Required parameter projectExtensionId was null or undefined when calling removeProjectActiveExtension.');
|
|
3960
3960
|
}
|
|
3961
3961
|
localVarHeaderParams = {
|
|
3962
3962
|
...localVarHeaderParams,
|