edge-impulse-api 1.49.26 → 1.49.29

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.
@@ -19,6 +19,7 @@ import { CreateEnterpriseTrialUserRequest } from '../model/createEnterpriseTrial
19
19
  import { CreateEvaluationUserResponse } from '../model/createEvaluationUserResponse';
20
20
  import { CreateUserRequest } from '../model/createUserRequest';
21
21
  import { CreateUserResponse } from '../model/createUserResponse';
22
+ import { DeleteUserRequest } from '../model/deleteUserRequest';
22
23
  import { EnterpriseUpgradeOrTrialExtensionRequest } from '../model/enterpriseUpgradeOrTrialExtensionRequest';
23
24
  import { GenericApiResponse } from '../model/genericApiResponse';
24
25
  import { GetJWTResponse } from '../model/getJWTResponse';
@@ -194,8 +195,9 @@ export declare class UserApi {
194
195
  /**
195
196
  * Delete a user. This function is only available through a JWT token, and can only remove the current user.
196
197
  * @summary Delete current user
198
+ * @param deleteUserRequest
197
199
  */
198
- deleteCurrentUser(options?: {
200
+ deleteCurrentUser(deleteUserRequest: DeleteUserRequest, options?: {
199
201
  headers: {
200
202
  [name: string]: string;
201
203
  };
@@ -213,8 +215,9 @@ export declare class UserApi {
213
215
  * Delete a user. This function is only available through a JWT token, and can only remove the current user.
214
216
  * @summary Delete user
215
217
  * @param userId User ID
218
+ * @param deleteUserRequest
216
219
  */
217
- deleteUser(userId: number, options?: {
220
+ deleteUser(userId: number, deleteUserRequest: DeleteUserRequest, options?: {
218
221
  headers: {
219
222
  [name: string]: string;
220
223
  };
@@ -865,8 +865,9 @@ class UserApi {
865
865
  /**
866
866
  * Delete a user. This function is only available through a JWT token, and can only remove the current user.
867
867
  * @summary Delete current user
868
+ * @param deleteUserRequest
868
869
  */
869
- async deleteCurrentUser(options = { headers: {} }) {
870
+ async deleteCurrentUser(deleteUserRequest, options = { headers: {} }) {
870
871
  const localVarPath = this.basePath + '/api/user';
871
872
  let localVarQueryParameters = {};
872
873
  let localVarHeaderParams = Object.assign({
@@ -881,6 +882,10 @@ class UserApi {
881
882
  localVarHeaderParams.Accept = produces.join(',');
882
883
  }
883
884
  let localVarFormParams = {};
885
+ // verify required parameter 'deleteUserRequest' is not null or undefined
886
+ if (deleteUserRequest === null || deleteUserRequest === undefined) {
887
+ throw new Error('Required parameter deleteUserRequest was null or undefined when calling deleteCurrentUser.');
888
+ }
884
889
  Object.assign(localVarHeaderParams, options.headers);
885
890
  Object.assign(localVarHeaderParams, this.opts.extraHeaders);
886
891
  let localVarUseFormData = false;
@@ -892,6 +897,7 @@ class UserApi {
892
897
  useQuerystring: this._useQuerystring,
893
898
  agentOptions: { keepAlive: false },
894
899
  json: true,
900
+ body: models_1.ObjectSerializer.serialize(deleteUserRequest, "DeleteUserRequest")
895
901
  };
896
902
  let authenticationPromise = Promise.resolve();
897
903
  authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
@@ -1000,8 +1006,9 @@ class UserApi {
1000
1006
  * Delete a user. This function is only available through a JWT token, and can only remove the current user.
1001
1007
  * @summary Delete user
1002
1008
  * @param userId User ID
1009
+ * @param deleteUserRequest
1003
1010
  */
1004
- async deleteUser(userId, options = { headers: {} }) {
1011
+ async deleteUser(userId, deleteUserRequest, options = { headers: {} }) {
1005
1012
  const localVarPath = this.basePath + '/api/users/{userId}'
1006
1013
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
1007
1014
  let localVarQueryParameters = {};
@@ -1021,6 +1028,10 @@ class UserApi {
1021
1028
  if (userId === null || userId === undefined) {
1022
1029
  throw new Error('Required parameter userId was null or undefined when calling deleteUser.');
1023
1030
  }
1031
+ // verify required parameter 'deleteUserRequest' is not null or undefined
1032
+ if (deleteUserRequest === null || deleteUserRequest === undefined) {
1033
+ throw new Error('Required parameter deleteUserRequest was null or undefined when calling deleteUser.');
1034
+ }
1024
1035
  Object.assign(localVarHeaderParams, options.headers);
1025
1036
  Object.assign(localVarHeaderParams, this.opts.extraHeaders);
1026
1037
  let localVarUseFormData = false;
@@ -1032,6 +1043,7 @@ class UserApi {
1032
1043
  useQuerystring: this._useQuerystring,
1033
1044
  agentOptions: { keepAlive: false },
1034
1045
  json: true,
1046
+ body: models_1.ObjectSerializer.serialize(deleteUserRequest, "DeleteUserRequest")
1035
1047
  };
1036
1048
  let authenticationPromise = Promise.resolve();
1037
1049
  authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));