edge-impulse-api 1.92.4 → 1.92.5

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 (41) hide show
  1. package/build/library/sdk/api/projectsApi.d.ts +11 -0
  2. package/build/library/sdk/api/projectsApi.js +73 -0
  3. package/build/library/sdk/api/projectsApi.js.map +1 -1
  4. package/build/library/sdk/model/addOrganizationApiKeyRequest.d.ts +4 -0
  5. package/build/library/sdk/model/addOrganizationApiKeyRequest.js +5 -0
  6. package/build/library/sdk/model/addOrganizationApiKeyRequest.js.map +1 -1
  7. package/build/library/sdk/model/addOrganizationApiKeyRequestAllOf.d.ts +4 -0
  8. package/build/library/sdk/model/addOrganizationApiKeyRequestAllOf.js +5 -0
  9. package/build/library/sdk/model/addOrganizationApiKeyRequestAllOf.js.map +1 -1
  10. package/build/library/sdk/model/addProjectApiKeyRequest.d.ts +5 -1
  11. package/build/library/sdk/model/addProjectApiKeyRequest.js +6 -1
  12. package/build/library/sdk/model/addProjectApiKeyRequest.js.map +1 -1
  13. package/build/library/sdk/model/addProjectApiKeyRequestAllOf.d.ts +5 -1
  14. package/build/library/sdk/model/addProjectApiKeyRequestAllOf.js +6 -1
  15. package/build/library/sdk/model/addProjectApiKeyRequestAllOf.js.map +1 -1
  16. package/build/library/sdk/model/adminCreateProjectRequest.d.ts +4 -0
  17. package/build/library/sdk/model/adminCreateProjectRequest.js +5 -0
  18. package/build/library/sdk/model/adminCreateProjectRequest.js.map +1 -1
  19. package/build/library/sdk/model/createProjectRequest.d.ts +4 -0
  20. package/build/library/sdk/model/createProjectRequest.js +5 -0
  21. package/build/library/sdk/model/createProjectRequest.js.map +1 -1
  22. package/build/library/sdk/model/getHmacDevkeyResponse.d.ts +36 -0
  23. package/build/library/sdk/model/getHmacDevkeyResponse.js +39 -0
  24. package/build/library/sdk/model/getHmacDevkeyResponse.js.map +1 -0
  25. package/build/library/sdk/model/getHmacDevkeyResponseAllOf.d.ts +28 -0
  26. package/build/library/sdk/model/getHmacDevkeyResponseAllOf.js +29 -0
  27. package/build/library/sdk/model/getHmacDevkeyResponseAllOf.js.map +1 -0
  28. package/build/library/sdk/model/models.d.ts +2 -0
  29. package/build/library/sdk/model/models.js +6 -0
  30. package/build/library/sdk/model/models.js.map +1 -1
  31. package/build/library/sdk/model/organizationApiKey.d.ts +4 -0
  32. package/build/library/sdk/model/organizationApiKey.js +5 -0
  33. package/build/library/sdk/model/organizationApiKey.js.map +1 -1
  34. package/build/library/sdk/model/projectApiKey.d.ts +5 -1
  35. package/build/library/sdk/model/projectApiKey.js +6 -1
  36. package/build/library/sdk/model/projectApiKey.js.map +1 -1
  37. package/build/library/sdk/model/restoreProjectRequest.d.ts +2 -2
  38. package/build/library/sdk/model/updateOrganizationCreateEmptyProjectRequest.d.ts +4 -0
  39. package/build/library/sdk/model/updateOrganizationCreateEmptyProjectRequest.js +5 -0
  40. package/build/library/sdk/model/updateOrganizationCreateEmptyProjectRequest.js.map +1 -1
  41. package/package.json +1 -1
@@ -25,6 +25,7 @@ import { EntityCreatedResponse } from '../model/entityCreatedResponse';
25
25
  import { GenericApiResponse } from '../model/genericApiResponse';
26
26
  import { GetAIActionResponse } from '../model/getAIActionResponse';
27
27
  import { GetCsvWizardUploadedFileInfo } from '../model/getCsvWizardUploadedFileInfo';
28
+ import { GetHmacDevkeyResponse } from '../model/getHmacDevkeyResponse';
28
29
  import { GetModelVariantsResponse } from '../model/getModelVariantsResponse';
29
30
  import { GetSyntheticDataConfigResponse } from '../model/getSyntheticDataConfigResponse';
30
31
  import { GetTargetConstraintsResponse } from '../model/getTargetConstraintsResponse';
@@ -271,6 +272,16 @@ export declare class ProjectsApi {
271
272
  [name: string]: string;
272
273
  };
273
274
  }): Promise<GetCsvWizardUploadedFileInfo>;
275
+ /**
276
+ * Retrieve the HMAC development key for a project. This key are specifically marked to be used during development. This key can be `undefined` if no development keys are set.
277
+ * @summary Get HMAC development key
278
+ * @param projectId Project ID
279
+ */
280
+ getHmacDevkey(projectId: number, options?: {
281
+ headers: {
282
+ [name: string]: string;
283
+ };
284
+ }): Promise<GetHmacDevkeyResponse>;
274
285
  /**
275
286
  * Get a list of model variants applicable to all trained learn blocks in this project.
276
287
  * @summary Get a list of all model variants available for this project
@@ -1199,6 +1199,79 @@ class ProjectsApi {
1199
1199
  const response = await fetch(url, requestOptions);
1200
1200
  return this.handleResponse(response, 'GetCsvWizardUploadedFileInfo');
1201
1201
  }
1202
+ /**
1203
+ * Retrieve the HMAC development key for a project. This key are specifically marked to be used during development. This key can be `undefined` if no development keys are set.
1204
+ * @summary Get HMAC development key
1205
+ * @param projectId Project ID
1206
+ */
1207
+ async getHmacDevkey(projectId, options = { headers: {} }) {
1208
+ const localVarPath = this.basePath + '/api/{projectId}/devkeys/hmac'
1209
+ .replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
1210
+ let localVarQueryParameters = {};
1211
+ let localVarHeaderParams = {
1212
+ 'User-Agent': 'edgeimpulse-api nodejs',
1213
+ 'Content-Type': 'application/json',
1214
+ ...this.defaultHeaders,
1215
+ };
1216
+ const produces = ['application/json'];
1217
+ // give precedence to 'application/json'
1218
+ if (produces.indexOf('application/json') >= 0) {
1219
+ localVarHeaderParams.Accept = 'application/json';
1220
+ }
1221
+ else {
1222
+ localVarHeaderParams.Accept = produces.join(',');
1223
+ }
1224
+ let localVarFormParams;
1225
+ // verify required parameter 'projectId' is not null or undefined
1226
+ if (projectId === null || projectId === undefined) {
1227
+ throw new Error('Required parameter projectId was null or undefined when calling getHmacDevkey.');
1228
+ }
1229
+ localVarHeaderParams = {
1230
+ ...localVarHeaderParams,
1231
+ ...options.headers,
1232
+ ...this.opts.extraHeaders,
1233
+ };
1234
+ const queryString = Object.entries(localVarQueryParameters)
1235
+ .filter(([, value]) => value !== undefined)
1236
+ .map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)
1237
+ .join('&');
1238
+ let localVarUrl = localVarPath + (queryString ? `?${queryString}` : '');
1239
+ let localVarRequestOptions = {
1240
+ method: 'GET',
1241
+ headers: { ...localVarHeaderParams },
1242
+ };
1243
+ let requestOptions = localVarRequestOptions;
1244
+ let url = localVarUrl;
1245
+ const auth_ApiKeyAuthentication = await this.authentications.ApiKeyAuthentication.applyToRequest(requestOptions, url);
1246
+ requestOptions = auth_ApiKeyAuthentication.requestOptions;
1247
+ url = auth_ApiKeyAuthentication.url;
1248
+ const auth_JWTAuthentication = await this.authentications.JWTAuthentication.applyToRequest(requestOptions, url);
1249
+ requestOptions = auth_JWTAuthentication.requestOptions;
1250
+ url = auth_JWTAuthentication.url;
1251
+ const auth_JWTHttpHeaderAuthentication = await this.authentications.JWTHttpHeaderAuthentication.applyToRequest(requestOptions, url);
1252
+ requestOptions = auth_JWTHttpHeaderAuthentication.requestOptions;
1253
+ url = auth_JWTHttpHeaderAuthentication.url;
1254
+ const auth_OAuth2 = await this.authentications.OAuth2.applyToRequest(requestOptions, url);
1255
+ requestOptions = auth_OAuth2.requestOptions;
1256
+ url = auth_OAuth2.url;
1257
+ const authDefault = await this.authentications.default.applyToRequest(requestOptions, url);
1258
+ requestOptions = authDefault.requestOptions;
1259
+ url = authDefault.url;
1260
+ if (localVarFormParams) {
1261
+ delete requestOptions.headers['Content-Type'];
1262
+ if (localVarFormParams instanceof FormData) {
1263
+ // FormData: fetch will handle Content-Type automatically.
1264
+ requestOptions.body = localVarFormParams;
1265
+ }
1266
+ else if (Object.keys(localVarFormParams).length > 0) {
1267
+ // URL-encoded form
1268
+ requestOptions.body = new URLSearchParams(localVarFormParams).toString();
1269
+ requestOptions.headers['Content-Type'] = 'application/x-www-form-urlencoded';
1270
+ }
1271
+ }
1272
+ const response = await fetch(url, requestOptions);
1273
+ return this.handleResponse(response, 'GetHmacDevkeyResponse');
1274
+ }
1202
1275
  /**
1203
1276
  * Get a list of model variants applicable to all trained learn blocks in this project.
1204
1277
  * @summary Get a list of all model variants available for this project