@loopstack/hub-client 0.11.1 → 0.12.1
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/CHANGELOG.md +12 -0
- package/api.ts +1631 -55
- package/dist/api.d.ts +1109 -135
- package/dist/api.js +1016 -1
- package/dist/esm/api.d.ts +1109 -135
- package/dist/esm/api.js +1011 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,6 +23,28 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AddRoleDto
|
|
30
|
+
*/
|
|
31
|
+
export interface AddRoleDto {
|
|
32
|
+
/**
|
|
33
|
+
* Role to add to the user
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AddRoleDto
|
|
36
|
+
*/
|
|
37
|
+
'role': AddRoleDtoRoleEnum;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const AddRoleDtoRoleEnum = {
|
|
41
|
+
RoleAdmin: 'ROLE_ADMIN',
|
|
42
|
+
RoleBeta: 'ROLE_BETA',
|
|
43
|
+
RoleUser: 'ROLE_USER'
|
|
44
|
+
} as const;
|
|
45
|
+
|
|
46
|
+
export type AddRoleDtoRoleEnum = typeof AddRoleDtoRoleEnum[keyof typeof AddRoleDtoRoleEnum];
|
|
47
|
+
|
|
26
48
|
/**
|
|
27
49
|
*
|
|
28
50
|
* @export
|
|
@@ -153,6 +175,99 @@ export interface PaginatedDto {
|
|
|
153
175
|
*/
|
|
154
176
|
'limit': number;
|
|
155
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @export
|
|
181
|
+
* @interface RemoveRoleDto
|
|
182
|
+
*/
|
|
183
|
+
export interface RemoveRoleDto {
|
|
184
|
+
/**
|
|
185
|
+
* Role to remove from the user
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof RemoveRoleDto
|
|
188
|
+
*/
|
|
189
|
+
'role': RemoveRoleDtoRoleEnum;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export const RemoveRoleDtoRoleEnum = {
|
|
193
|
+
RoleAdmin: 'ROLE_ADMIN',
|
|
194
|
+
RoleBeta: 'ROLE_BETA',
|
|
195
|
+
RoleUser: 'ROLE_USER'
|
|
196
|
+
} as const;
|
|
197
|
+
|
|
198
|
+
export type RemoveRoleDtoRoleEnum = typeof RemoveRoleDtoRoleEnum[keyof typeof RemoveRoleDtoRoleEnum];
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @export
|
|
203
|
+
* @interface RequestPasswordResetDto
|
|
204
|
+
*/
|
|
205
|
+
export interface RequestPasswordResetDto {
|
|
206
|
+
/**
|
|
207
|
+
* User email address
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof RequestPasswordResetDto
|
|
210
|
+
*/
|
|
211
|
+
'email': string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @export
|
|
216
|
+
* @interface ResendVerificationDto
|
|
217
|
+
*/
|
|
218
|
+
export interface ResendVerificationDto {
|
|
219
|
+
/**
|
|
220
|
+
* User email address
|
|
221
|
+
* @type {string}
|
|
222
|
+
* @memberof ResendVerificationDto
|
|
223
|
+
*/
|
|
224
|
+
'email': string;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @export
|
|
229
|
+
* @interface ResetPasswordDto
|
|
230
|
+
*/
|
|
231
|
+
export interface ResetPasswordDto {
|
|
232
|
+
/**
|
|
233
|
+
* Password reset token
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof ResetPasswordDto
|
|
236
|
+
*/
|
|
237
|
+
'token': string;
|
|
238
|
+
/**
|
|
239
|
+
* New password
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof ResetPasswordDto
|
|
242
|
+
*/
|
|
243
|
+
'newPassword': string;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @export
|
|
248
|
+
* @interface ToggleAccessDto
|
|
249
|
+
*/
|
|
250
|
+
export interface ToggleAccessDto {
|
|
251
|
+
/**
|
|
252
|
+
* Whether the user has access
|
|
253
|
+
* @type {boolean}
|
|
254
|
+
* @memberof ToggleAccessDto
|
|
255
|
+
*/
|
|
256
|
+
'hasAccess': boolean;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @export
|
|
261
|
+
* @interface ToggleActiveDto
|
|
262
|
+
*/
|
|
263
|
+
export interface ToggleActiveDto {
|
|
264
|
+
/**
|
|
265
|
+
* Whether the user account is active
|
|
266
|
+
* @type {boolean}
|
|
267
|
+
* @memberof ToggleActiveDto
|
|
268
|
+
*/
|
|
269
|
+
'isActive': boolean;
|
|
270
|
+
}
|
|
156
271
|
/**
|
|
157
272
|
*
|
|
158
273
|
* @export
|
|
@@ -186,6 +301,28 @@ export const UIPreferencesDtoThemeEnum = {
|
|
|
186
301
|
|
|
187
302
|
export type UIPreferencesDtoThemeEnum = typeof UIPreferencesDtoThemeEnum[keyof typeof UIPreferencesDtoThemeEnum];
|
|
188
303
|
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @export
|
|
307
|
+
* @interface UpdateUserRolesDto
|
|
308
|
+
*/
|
|
309
|
+
export interface UpdateUserRolesDto {
|
|
310
|
+
/**
|
|
311
|
+
* Array of roles to assign to the user
|
|
312
|
+
* @type {Array<string>}
|
|
313
|
+
* @memberof UpdateUserRolesDto
|
|
314
|
+
*/
|
|
315
|
+
'roles': Array<UpdateUserRolesDtoRolesEnum>;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export const UpdateUserRolesDtoRolesEnum = {
|
|
319
|
+
RoleAdmin: 'ROLE_ADMIN',
|
|
320
|
+
RoleBeta: 'ROLE_BETA',
|
|
321
|
+
RoleUser: 'ROLE_USER'
|
|
322
|
+
} as const;
|
|
323
|
+
|
|
324
|
+
export type UpdateUserRolesDtoRolesEnum = typeof UpdateUserRolesDtoRolesEnum[keyof typeof UpdateUserRolesDtoRolesEnum];
|
|
325
|
+
|
|
189
326
|
/**
|
|
190
327
|
*
|
|
191
328
|
* @export
|
|
@@ -370,6 +507,19 @@ export interface ValidateCodeResponseDto {
|
|
|
370
507
|
*/
|
|
371
508
|
'correlationId'?: string;
|
|
372
509
|
}
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @export
|
|
513
|
+
* @interface VerifyEmailDto
|
|
514
|
+
*/
|
|
515
|
+
export interface VerifyEmailDto {
|
|
516
|
+
/**
|
|
517
|
+
* Email verification token
|
|
518
|
+
* @type {string}
|
|
519
|
+
* @memberof VerifyEmailDto
|
|
520
|
+
*/
|
|
521
|
+
'token': string;
|
|
522
|
+
}
|
|
373
523
|
/**
|
|
374
524
|
*
|
|
375
525
|
* @export
|
|
@@ -673,19 +823,26 @@ export interface WorkerUpdateDto {
|
|
|
673
823
|
}
|
|
674
824
|
|
|
675
825
|
/**
|
|
676
|
-
*
|
|
826
|
+
* AdminApi - axios parameter creator
|
|
677
827
|
* @export
|
|
678
828
|
*/
|
|
679
|
-
export const
|
|
829
|
+
export const AdminApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
680
830
|
return {
|
|
681
831
|
/**
|
|
682
832
|
*
|
|
683
|
-
* @summary
|
|
833
|
+
* @summary Add a role to user
|
|
834
|
+
* @param {string} userId
|
|
835
|
+
* @param {AddRoleDto} addRoleDto
|
|
684
836
|
* @param {*} [options] Override http request option.
|
|
685
837
|
* @throws {RequiredError}
|
|
686
838
|
*/
|
|
687
|
-
|
|
688
|
-
|
|
839
|
+
adminControllerAddRoleToUser: async (userId: string, addRoleDto: AddRoleDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
840
|
+
// verify required parameter 'userId' is not null or undefined
|
|
841
|
+
assertParamExists('adminControllerAddRoleToUser', 'userId', userId)
|
|
842
|
+
// verify required parameter 'addRoleDto' is not null or undefined
|
|
843
|
+
assertParamExists('adminControllerAddRoleToUser', 'addRoleDto', addRoleDto)
|
|
844
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles/add`
|
|
845
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
689
846
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
690
847
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
691
848
|
let baseOptions;
|
|
@@ -693,15 +850,18 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
693
850
|
baseOptions = configuration.baseOptions;
|
|
694
851
|
}
|
|
695
852
|
|
|
696
|
-
const localVarRequestOptions = { method: '
|
|
853
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
697
854
|
const localVarHeaderParameter = {} as any;
|
|
698
855
|
const localVarQueryParameter = {} as any;
|
|
699
856
|
|
|
700
857
|
|
|
701
858
|
|
|
859
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
860
|
+
|
|
702
861
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
703
862
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
704
863
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
864
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addRoleDto, localVarRequestOptions, configuration)
|
|
705
865
|
|
|
706
866
|
return {
|
|
707
867
|
url: toPathString(localVarUrlObj),
|
|
@@ -710,12 +870,16 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
710
870
|
},
|
|
711
871
|
/**
|
|
712
872
|
*
|
|
713
|
-
* @summary
|
|
873
|
+
* @summary Delete a user
|
|
874
|
+
* @param {string} userId
|
|
714
875
|
* @param {*} [options] Override http request option.
|
|
715
876
|
* @throws {RequiredError}
|
|
716
877
|
*/
|
|
717
|
-
|
|
718
|
-
|
|
878
|
+
adminControllerDeleteUser: async (userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
879
|
+
// verify required parameter 'userId' is not null or undefined
|
|
880
|
+
assertParamExists('adminControllerDeleteUser', 'userId', userId)
|
|
881
|
+
const localVarPath = `/api/v1/admin/users/{userId}`
|
|
882
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
719
883
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
720
884
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
721
885
|
let baseOptions;
|
|
@@ -723,7 +887,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
723
887
|
baseOptions = configuration.baseOptions;
|
|
724
888
|
}
|
|
725
889
|
|
|
726
|
-
const localVarRequestOptions = { method: '
|
|
890
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
727
891
|
const localVarHeaderParameter = {} as any;
|
|
728
892
|
const localVarQueryParameter = {} as any;
|
|
729
893
|
|
|
@@ -740,12 +904,18 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
740
904
|
},
|
|
741
905
|
/**
|
|
742
906
|
*
|
|
743
|
-
* @summary Get
|
|
907
|
+
* @summary Get all users with pagination
|
|
908
|
+
* @param {number} skip
|
|
909
|
+
* @param {number} take
|
|
744
910
|
* @param {*} [options] Override http request option.
|
|
745
911
|
* @throws {RequiredError}
|
|
746
912
|
*/
|
|
747
|
-
|
|
748
|
-
|
|
913
|
+
adminControllerGetAllUsers: async (skip: number, take: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
914
|
+
// verify required parameter 'skip' is not null or undefined
|
|
915
|
+
assertParamExists('adminControllerGetAllUsers', 'skip', skip)
|
|
916
|
+
// verify required parameter 'take' is not null or undefined
|
|
917
|
+
assertParamExists('adminControllerGetAllUsers', 'take', take)
|
|
918
|
+
const localVarPath = `/api/v1/admin/users`;
|
|
749
919
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
750
920
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
751
921
|
let baseOptions;
|
|
@@ -757,6 +927,14 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
757
927
|
const localVarHeaderParameter = {} as any;
|
|
758
928
|
const localVarQueryParameter = {} as any;
|
|
759
929
|
|
|
930
|
+
if (skip !== undefined) {
|
|
931
|
+
localVarQueryParameter['skip'] = skip;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
if (take !== undefined) {
|
|
935
|
+
localVarQueryParameter['take'] = take;
|
|
936
|
+
}
|
|
937
|
+
|
|
760
938
|
|
|
761
939
|
|
|
762
940
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -770,12 +948,16 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
770
948
|
},
|
|
771
949
|
/**
|
|
772
950
|
*
|
|
773
|
-
* @summary
|
|
951
|
+
* @summary Get user by ID
|
|
952
|
+
* @param {string} userId
|
|
774
953
|
* @param {*} [options] Override http request option.
|
|
775
954
|
* @throws {RequiredError}
|
|
776
955
|
*/
|
|
777
|
-
|
|
778
|
-
|
|
956
|
+
adminControllerGetUserById: async (userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
957
|
+
// verify required parameter 'userId' is not null or undefined
|
|
958
|
+
assertParamExists('adminControllerGetUserById', 'userId', userId)
|
|
959
|
+
const localVarPath = `/api/v1/admin/users/{userId}`
|
|
960
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
779
961
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
780
962
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
781
963
|
let baseOptions;
|
|
@@ -800,12 +982,19 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
800
982
|
},
|
|
801
983
|
/**
|
|
802
984
|
*
|
|
803
|
-
* @summary
|
|
985
|
+
* @summary Remove a role from user
|
|
986
|
+
* @param {string} userId
|
|
987
|
+
* @param {RemoveRoleDto} removeRoleDto
|
|
804
988
|
* @param {*} [options] Override http request option.
|
|
805
989
|
* @throws {RequiredError}
|
|
806
990
|
*/
|
|
807
|
-
|
|
808
|
-
|
|
991
|
+
adminControllerRemoveRoleFromUser: async (userId: string, removeRoleDto: RemoveRoleDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
992
|
+
// verify required parameter 'userId' is not null or undefined
|
|
993
|
+
assertParamExists('adminControllerRemoveRoleFromUser', 'userId', userId)
|
|
994
|
+
// verify required parameter 'removeRoleDto' is not null or undefined
|
|
995
|
+
assertParamExists('adminControllerRemoveRoleFromUser', 'removeRoleDto', removeRoleDto)
|
|
996
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles/remove`
|
|
997
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
809
998
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
810
999
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
811
1000
|
let baseOptions;
|
|
@@ -813,15 +1002,18 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
813
1002
|
baseOptions = configuration.baseOptions;
|
|
814
1003
|
}
|
|
815
1004
|
|
|
816
|
-
const localVarRequestOptions = { method: '
|
|
1005
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
817
1006
|
const localVarHeaderParameter = {} as any;
|
|
818
1007
|
const localVarQueryParameter = {} as any;
|
|
819
1008
|
|
|
820
1009
|
|
|
821
1010
|
|
|
1011
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1012
|
+
|
|
822
1013
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
823
1014
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
824
1015
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1016
|
+
localVarRequestOptions.data = serializeDataIfNeeded(removeRoleDto, localVarRequestOptions, configuration)
|
|
825
1017
|
|
|
826
1018
|
return {
|
|
827
1019
|
url: toPathString(localVarUrlObj),
|
|
@@ -830,12 +1022,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
830
1022
|
},
|
|
831
1023
|
/**
|
|
832
1024
|
*
|
|
833
|
-
* @summary
|
|
1025
|
+
* @summary Search users by email or name
|
|
1026
|
+
* @param {string} q
|
|
834
1027
|
* @param {*} [options] Override http request option.
|
|
835
1028
|
* @throws {RequiredError}
|
|
836
1029
|
*/
|
|
837
|
-
|
|
838
|
-
|
|
1030
|
+
adminControllerSearchUsers: async (q: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1031
|
+
// verify required parameter 'q' is not null or undefined
|
|
1032
|
+
assertParamExists('adminControllerSearchUsers', 'q', q)
|
|
1033
|
+
const localVarPath = `/api/v1/admin/users/search`;
|
|
839
1034
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
840
1035
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
841
1036
|
let baseOptions;
|
|
@@ -847,11 +1042,1073 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
847
1042
|
const localVarHeaderParameter = {} as any;
|
|
848
1043
|
const localVarQueryParameter = {} as any;
|
|
849
1044
|
|
|
1045
|
+
if (q !== undefined) {
|
|
1046
|
+
localVarQueryParameter['q'] = q;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1052
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1053
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1054
|
+
|
|
1055
|
+
return {
|
|
1056
|
+
url: toPathString(localVarUrlObj),
|
|
1057
|
+
options: localVarRequestOptions,
|
|
1058
|
+
};
|
|
1059
|
+
},
|
|
1060
|
+
/**
|
|
1061
|
+
*
|
|
1062
|
+
* @summary Toggle user access
|
|
1063
|
+
* @param {string} userId
|
|
1064
|
+
* @param {ToggleAccessDto} toggleAccessDto
|
|
1065
|
+
* @param {*} [options] Override http request option.
|
|
1066
|
+
* @throws {RequiredError}
|
|
1067
|
+
*/
|
|
1068
|
+
adminControllerToggleUserAccess: async (userId: string, toggleAccessDto: ToggleAccessDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1069
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1070
|
+
assertParamExists('adminControllerToggleUserAccess', 'userId', userId)
|
|
1071
|
+
// verify required parameter 'toggleAccessDto' is not null or undefined
|
|
1072
|
+
assertParamExists('adminControllerToggleUserAccess', 'toggleAccessDto', toggleAccessDto)
|
|
1073
|
+
const localVarPath = `/api/v1/admin/users/{userId}/access`
|
|
1074
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
1075
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1076
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1077
|
+
let baseOptions;
|
|
1078
|
+
if (configuration) {
|
|
1079
|
+
baseOptions = configuration.baseOptions;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
1083
|
+
const localVarHeaderParameter = {} as any;
|
|
1084
|
+
const localVarQueryParameter = {} as any;
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1089
|
+
|
|
1090
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1092
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1093
|
+
localVarRequestOptions.data = serializeDataIfNeeded(toggleAccessDto, localVarRequestOptions, configuration)
|
|
1094
|
+
|
|
1095
|
+
return {
|
|
1096
|
+
url: toPathString(localVarUrlObj),
|
|
1097
|
+
options: localVarRequestOptions,
|
|
1098
|
+
};
|
|
1099
|
+
},
|
|
1100
|
+
/**
|
|
1101
|
+
*
|
|
1102
|
+
* @summary Toggle user active status
|
|
1103
|
+
* @param {string} userId
|
|
1104
|
+
* @param {ToggleActiveDto} toggleActiveDto
|
|
1105
|
+
* @param {*} [options] Override http request option.
|
|
1106
|
+
* @throws {RequiredError}
|
|
1107
|
+
*/
|
|
1108
|
+
adminControllerToggleUserActive: async (userId: string, toggleActiveDto: ToggleActiveDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1109
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1110
|
+
assertParamExists('adminControllerToggleUserActive', 'userId', userId)
|
|
1111
|
+
// verify required parameter 'toggleActiveDto' is not null or undefined
|
|
1112
|
+
assertParamExists('adminControllerToggleUserActive', 'toggleActiveDto', toggleActiveDto)
|
|
1113
|
+
const localVarPath = `/api/v1/admin/users/{userId}/active`
|
|
1114
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
1115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1116
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1117
|
+
let baseOptions;
|
|
1118
|
+
if (configuration) {
|
|
1119
|
+
baseOptions = configuration.baseOptions;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
1123
|
+
const localVarHeaderParameter = {} as any;
|
|
1124
|
+
const localVarQueryParameter = {} as any;
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1129
|
+
|
|
1130
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1132
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1133
|
+
localVarRequestOptions.data = serializeDataIfNeeded(toggleActiveDto, localVarRequestOptions, configuration)
|
|
1134
|
+
|
|
1135
|
+
return {
|
|
1136
|
+
url: toPathString(localVarUrlObj),
|
|
1137
|
+
options: localVarRequestOptions,
|
|
1138
|
+
};
|
|
1139
|
+
},
|
|
1140
|
+
/**
|
|
1141
|
+
*
|
|
1142
|
+
* @summary Update user roles (replace all)
|
|
1143
|
+
* @param {string} userId
|
|
1144
|
+
* @param {UpdateUserRolesDto} updateUserRolesDto
|
|
1145
|
+
* @param {*} [options] Override http request option.
|
|
1146
|
+
* @throws {RequiredError}
|
|
1147
|
+
*/
|
|
1148
|
+
adminControllerUpdateUserRoles: async (userId: string, updateUserRolesDto: UpdateUserRolesDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1149
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1150
|
+
assertParamExists('adminControllerUpdateUserRoles', 'userId', userId)
|
|
1151
|
+
// verify required parameter 'updateUserRolesDto' is not null or undefined
|
|
1152
|
+
assertParamExists('adminControllerUpdateUserRoles', 'updateUserRolesDto', updateUserRolesDto)
|
|
1153
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles`
|
|
1154
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
1155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1156
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1157
|
+
let baseOptions;
|
|
1158
|
+
if (configuration) {
|
|
1159
|
+
baseOptions = configuration.baseOptions;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
1163
|
+
const localVarHeaderParameter = {} as any;
|
|
1164
|
+
const localVarQueryParameter = {} as any;
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1169
|
+
|
|
1170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1172
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1173
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserRolesDto, localVarRequestOptions, configuration)
|
|
1174
|
+
|
|
1175
|
+
return {
|
|
1176
|
+
url: toPathString(localVarUrlObj),
|
|
1177
|
+
options: localVarRequestOptions,
|
|
1178
|
+
};
|
|
1179
|
+
},
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* AdminApi - functional programming interface
|
|
1185
|
+
* @export
|
|
1186
|
+
*/
|
|
1187
|
+
export const AdminApiFp = function(configuration?: Configuration) {
|
|
1188
|
+
const localVarAxiosParamCreator = AdminApiAxiosParamCreator(configuration)
|
|
1189
|
+
return {
|
|
1190
|
+
/**
|
|
1191
|
+
*
|
|
1192
|
+
* @summary Add a role to user
|
|
1193
|
+
* @param {string} userId
|
|
1194
|
+
* @param {AddRoleDto} addRoleDto
|
|
1195
|
+
* @param {*} [options] Override http request option.
|
|
1196
|
+
* @throws {RequiredError}
|
|
1197
|
+
*/
|
|
1198
|
+
async adminControllerAddRoleToUser(userId: string, addRoleDto: AddRoleDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1199
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminControllerAddRoleToUser(userId, addRoleDto, options);
|
|
1200
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1201
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.adminControllerAddRoleToUser']?.[localVarOperationServerIndex]?.url;
|
|
1202
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1203
|
+
},
|
|
1204
|
+
/**
|
|
1205
|
+
*
|
|
1206
|
+
* @summary Delete a user
|
|
1207
|
+
* @param {string} userId
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
*/
|
|
1211
|
+
async adminControllerDeleteUser(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1212
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminControllerDeleteUser(userId, options);
|
|
1213
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1214
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.adminControllerDeleteUser']?.[localVarOperationServerIndex]?.url;
|
|
1215
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1216
|
+
},
|
|
1217
|
+
/**
|
|
1218
|
+
*
|
|
1219
|
+
* @summary Get all users with pagination
|
|
1220
|
+
* @param {number} skip
|
|
1221
|
+
* @param {number} take
|
|
1222
|
+
* @param {*} [options] Override http request option.
|
|
1223
|
+
* @throws {RequiredError}
|
|
1224
|
+
*/
|
|
1225
|
+
async adminControllerGetAllUsers(skip: number, take: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<object>>> {
|
|
1226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminControllerGetAllUsers(skip, take, options);
|
|
1227
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1228
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.adminControllerGetAllUsers']?.[localVarOperationServerIndex]?.url;
|
|
1229
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1230
|
+
},
|
|
1231
|
+
/**
|
|
1232
|
+
*
|
|
1233
|
+
* @summary Get user by ID
|
|
1234
|
+
* @param {string} userId
|
|
1235
|
+
* @param {*} [options] Override http request option.
|
|
1236
|
+
* @throws {RequiredError}
|
|
1237
|
+
*/
|
|
1238
|
+
async adminControllerGetUserById(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1239
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminControllerGetUserById(userId, options);
|
|
1240
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1241
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.adminControllerGetUserById']?.[localVarOperationServerIndex]?.url;
|
|
1242
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1243
|
+
},
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @summary Remove a role from user
|
|
1247
|
+
* @param {string} userId
|
|
1248
|
+
* @param {RemoveRoleDto} removeRoleDto
|
|
1249
|
+
* @param {*} [options] Override http request option.
|
|
1250
|
+
* @throws {RequiredError}
|
|
1251
|
+
*/
|
|
1252
|
+
async adminControllerRemoveRoleFromUser(userId: string, removeRoleDto: RemoveRoleDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminControllerRemoveRoleFromUser(userId, removeRoleDto, options);
|
|
1254
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1255
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.adminControllerRemoveRoleFromUser']?.[localVarOperationServerIndex]?.url;
|
|
1256
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1257
|
+
},
|
|
1258
|
+
/**
|
|
1259
|
+
*
|
|
1260
|
+
* @summary Search users by email or name
|
|
1261
|
+
* @param {string} q
|
|
1262
|
+
* @param {*} [options] Override http request option.
|
|
1263
|
+
* @throws {RequiredError}
|
|
1264
|
+
*/
|
|
1265
|
+
async adminControllerSearchUsers(q: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<object>>> {
|
|
1266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminControllerSearchUsers(q, options);
|
|
1267
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1268
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.adminControllerSearchUsers']?.[localVarOperationServerIndex]?.url;
|
|
1269
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1270
|
+
},
|
|
1271
|
+
/**
|
|
1272
|
+
*
|
|
1273
|
+
* @summary Toggle user access
|
|
1274
|
+
* @param {string} userId
|
|
1275
|
+
* @param {ToggleAccessDto} toggleAccessDto
|
|
1276
|
+
* @param {*} [options] Override http request option.
|
|
1277
|
+
* @throws {RequiredError}
|
|
1278
|
+
*/
|
|
1279
|
+
async adminControllerToggleUserAccess(userId: string, toggleAccessDto: ToggleAccessDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1280
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminControllerToggleUserAccess(userId, toggleAccessDto, options);
|
|
1281
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1282
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.adminControllerToggleUserAccess']?.[localVarOperationServerIndex]?.url;
|
|
1283
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1284
|
+
},
|
|
1285
|
+
/**
|
|
1286
|
+
*
|
|
1287
|
+
* @summary Toggle user active status
|
|
1288
|
+
* @param {string} userId
|
|
1289
|
+
* @param {ToggleActiveDto} toggleActiveDto
|
|
1290
|
+
* @param {*} [options] Override http request option.
|
|
1291
|
+
* @throws {RequiredError}
|
|
1292
|
+
*/
|
|
1293
|
+
async adminControllerToggleUserActive(userId: string, toggleActiveDto: ToggleActiveDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminControllerToggleUserActive(userId, toggleActiveDto, options);
|
|
1295
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1296
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.adminControllerToggleUserActive']?.[localVarOperationServerIndex]?.url;
|
|
1297
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1298
|
+
},
|
|
1299
|
+
/**
|
|
1300
|
+
*
|
|
1301
|
+
* @summary Update user roles (replace all)
|
|
1302
|
+
* @param {string} userId
|
|
1303
|
+
* @param {UpdateUserRolesDto} updateUserRolesDto
|
|
1304
|
+
* @param {*} [options] Override http request option.
|
|
1305
|
+
* @throws {RequiredError}
|
|
1306
|
+
*/
|
|
1307
|
+
async adminControllerUpdateUserRoles(userId: string, updateUserRolesDto: UpdateUserRolesDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminControllerUpdateUserRoles(userId, updateUserRolesDto, options);
|
|
1309
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1310
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.adminControllerUpdateUserRoles']?.[localVarOperationServerIndex]?.url;
|
|
1311
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1312
|
+
},
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* AdminApi - factory interface
|
|
1318
|
+
* @export
|
|
1319
|
+
*/
|
|
1320
|
+
export const AdminApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1321
|
+
const localVarFp = AdminApiFp(configuration)
|
|
1322
|
+
return {
|
|
1323
|
+
/**
|
|
1324
|
+
*
|
|
1325
|
+
* @summary Add a role to user
|
|
1326
|
+
* @param {AdminApiAdminControllerAddRoleToUserRequest} requestParameters Request parameters.
|
|
1327
|
+
* @param {*} [options] Override http request option.
|
|
1328
|
+
* @throws {RequiredError}
|
|
1329
|
+
*/
|
|
1330
|
+
adminControllerAddRoleToUser(requestParameters: AdminApiAdminControllerAddRoleToUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1331
|
+
return localVarFp.adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options).then((request) => request(axios, basePath));
|
|
1332
|
+
},
|
|
1333
|
+
/**
|
|
1334
|
+
*
|
|
1335
|
+
* @summary Delete a user
|
|
1336
|
+
* @param {AdminApiAdminControllerDeleteUserRequest} requestParameters Request parameters.
|
|
1337
|
+
* @param {*} [options] Override http request option.
|
|
1338
|
+
* @throws {RequiredError}
|
|
1339
|
+
*/
|
|
1340
|
+
adminControllerDeleteUser(requestParameters: AdminApiAdminControllerDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1341
|
+
return localVarFp.adminControllerDeleteUser(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
1342
|
+
},
|
|
1343
|
+
/**
|
|
1344
|
+
*
|
|
1345
|
+
* @summary Get all users with pagination
|
|
1346
|
+
* @param {AdminApiAdminControllerGetAllUsersRequest} requestParameters Request parameters.
|
|
1347
|
+
* @param {*} [options] Override http request option.
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
*/
|
|
1350
|
+
adminControllerGetAllUsers(requestParameters: AdminApiAdminControllerGetAllUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<object>> {
|
|
1351
|
+
return localVarFp.adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options).then((request) => request(axios, basePath));
|
|
1352
|
+
},
|
|
1353
|
+
/**
|
|
1354
|
+
*
|
|
1355
|
+
* @summary Get user by ID
|
|
1356
|
+
* @param {AdminApiAdminControllerGetUserByIdRequest} requestParameters Request parameters.
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
*/
|
|
1360
|
+
adminControllerGetUserById(requestParameters: AdminApiAdminControllerGetUserByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1361
|
+
return localVarFp.adminControllerGetUserById(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
1362
|
+
},
|
|
1363
|
+
/**
|
|
1364
|
+
*
|
|
1365
|
+
* @summary Remove a role from user
|
|
1366
|
+
* @param {AdminApiAdminControllerRemoveRoleFromUserRequest} requestParameters Request parameters.
|
|
1367
|
+
* @param {*} [options] Override http request option.
|
|
1368
|
+
* @throws {RequiredError}
|
|
1369
|
+
*/
|
|
1370
|
+
adminControllerRemoveRoleFromUser(requestParameters: AdminApiAdminControllerRemoveRoleFromUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1371
|
+
return localVarFp.adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options).then((request) => request(axios, basePath));
|
|
1372
|
+
},
|
|
1373
|
+
/**
|
|
1374
|
+
*
|
|
1375
|
+
* @summary Search users by email or name
|
|
1376
|
+
* @param {AdminApiAdminControllerSearchUsersRequest} requestParameters Request parameters.
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
*/
|
|
1380
|
+
adminControllerSearchUsers(requestParameters: AdminApiAdminControllerSearchUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<object>> {
|
|
1381
|
+
return localVarFp.adminControllerSearchUsers(requestParameters.q, options).then((request) => request(axios, basePath));
|
|
1382
|
+
},
|
|
1383
|
+
/**
|
|
1384
|
+
*
|
|
1385
|
+
* @summary Toggle user access
|
|
1386
|
+
* @param {AdminApiAdminControllerToggleUserAccessRequest} requestParameters Request parameters.
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
*/
|
|
1390
|
+
adminControllerToggleUserAccess(requestParameters: AdminApiAdminControllerToggleUserAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1391
|
+
return localVarFp.adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options).then((request) => request(axios, basePath));
|
|
1392
|
+
},
|
|
1393
|
+
/**
|
|
1394
|
+
*
|
|
1395
|
+
* @summary Toggle user active status
|
|
1396
|
+
* @param {AdminApiAdminControllerToggleUserActiveRequest} requestParameters Request parameters.
|
|
1397
|
+
* @param {*} [options] Override http request option.
|
|
1398
|
+
* @throws {RequiredError}
|
|
1399
|
+
*/
|
|
1400
|
+
adminControllerToggleUserActive(requestParameters: AdminApiAdminControllerToggleUserActiveRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1401
|
+
return localVarFp.adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options).then((request) => request(axios, basePath));
|
|
1402
|
+
},
|
|
1403
|
+
/**
|
|
1404
|
+
*
|
|
1405
|
+
* @summary Update user roles (replace all)
|
|
1406
|
+
* @param {AdminApiAdminControllerUpdateUserRolesRequest} requestParameters Request parameters.
|
|
1407
|
+
* @param {*} [options] Override http request option.
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
*/
|
|
1410
|
+
adminControllerUpdateUserRoles(requestParameters: AdminApiAdminControllerUpdateUserRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1411
|
+
return localVarFp.adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options).then((request) => request(axios, basePath));
|
|
1412
|
+
},
|
|
1413
|
+
};
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* AdminApi - interface
|
|
1418
|
+
* @export
|
|
1419
|
+
* @interface AdminApi
|
|
1420
|
+
*/
|
|
1421
|
+
export interface AdminApiInterface {
|
|
1422
|
+
/**
|
|
1423
|
+
*
|
|
1424
|
+
* @summary Add a role to user
|
|
1425
|
+
* @param {AdminApiAdminControllerAddRoleToUserRequest} requestParameters Request parameters.
|
|
1426
|
+
* @param {*} [options] Override http request option.
|
|
1427
|
+
* @throws {RequiredError}
|
|
1428
|
+
* @memberof AdminApiInterface
|
|
1429
|
+
*/
|
|
1430
|
+
adminControllerAddRoleToUser(requestParameters: AdminApiAdminControllerAddRoleToUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
*
|
|
1434
|
+
* @summary Delete a user
|
|
1435
|
+
* @param {AdminApiAdminControllerDeleteUserRequest} requestParameters Request parameters.
|
|
1436
|
+
* @param {*} [options] Override http request option.
|
|
1437
|
+
* @throws {RequiredError}
|
|
1438
|
+
* @memberof AdminApiInterface
|
|
1439
|
+
*/
|
|
1440
|
+
adminControllerDeleteUser(requestParameters: AdminApiAdminControllerDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
*
|
|
1444
|
+
* @summary Get all users with pagination
|
|
1445
|
+
* @param {AdminApiAdminControllerGetAllUsersRequest} requestParameters Request parameters.
|
|
1446
|
+
* @param {*} [options] Override http request option.
|
|
1447
|
+
* @throws {RequiredError}
|
|
1448
|
+
* @memberof AdminApiInterface
|
|
1449
|
+
*/
|
|
1450
|
+
adminControllerGetAllUsers(requestParameters: AdminApiAdminControllerGetAllUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<object>>;
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
*
|
|
1454
|
+
* @summary Get user by ID
|
|
1455
|
+
* @param {AdminApiAdminControllerGetUserByIdRequest} requestParameters Request parameters.
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
* @memberof AdminApiInterface
|
|
1459
|
+
*/
|
|
1460
|
+
adminControllerGetUserById(requestParameters: AdminApiAdminControllerGetUserByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
*
|
|
1464
|
+
* @summary Remove a role from user
|
|
1465
|
+
* @param {AdminApiAdminControllerRemoveRoleFromUserRequest} requestParameters Request parameters.
|
|
1466
|
+
* @param {*} [options] Override http request option.
|
|
1467
|
+
* @throws {RequiredError}
|
|
1468
|
+
* @memberof AdminApiInterface
|
|
1469
|
+
*/
|
|
1470
|
+
adminControllerRemoveRoleFromUser(requestParameters: AdminApiAdminControllerRemoveRoleFromUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
*
|
|
1474
|
+
* @summary Search users by email or name
|
|
1475
|
+
* @param {AdminApiAdminControllerSearchUsersRequest} requestParameters Request parameters.
|
|
1476
|
+
* @param {*} [options] Override http request option.
|
|
1477
|
+
* @throws {RequiredError}
|
|
1478
|
+
* @memberof AdminApiInterface
|
|
1479
|
+
*/
|
|
1480
|
+
adminControllerSearchUsers(requestParameters: AdminApiAdminControllerSearchUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<object>>;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
*
|
|
1484
|
+
* @summary Toggle user access
|
|
1485
|
+
* @param {AdminApiAdminControllerToggleUserAccessRequest} requestParameters Request parameters.
|
|
1486
|
+
* @param {*} [options] Override http request option.
|
|
1487
|
+
* @throws {RequiredError}
|
|
1488
|
+
* @memberof AdminApiInterface
|
|
1489
|
+
*/
|
|
1490
|
+
adminControllerToggleUserAccess(requestParameters: AdminApiAdminControllerToggleUserAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
*
|
|
1494
|
+
* @summary Toggle user active status
|
|
1495
|
+
* @param {AdminApiAdminControllerToggleUserActiveRequest} requestParameters Request parameters.
|
|
1496
|
+
* @param {*} [options] Override http request option.
|
|
1497
|
+
* @throws {RequiredError}
|
|
1498
|
+
* @memberof AdminApiInterface
|
|
1499
|
+
*/
|
|
1500
|
+
adminControllerToggleUserActive(requestParameters: AdminApiAdminControllerToggleUserActiveRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
*
|
|
1504
|
+
* @summary Update user roles (replace all)
|
|
1505
|
+
* @param {AdminApiAdminControllerUpdateUserRolesRequest} requestParameters Request parameters.
|
|
1506
|
+
* @param {*} [options] Override http request option.
|
|
1507
|
+
* @throws {RequiredError}
|
|
1508
|
+
* @memberof AdminApiInterface
|
|
1509
|
+
*/
|
|
1510
|
+
adminControllerUpdateUserRoles(requestParameters: AdminApiAdminControllerUpdateUserRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1511
|
+
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Request parameters for adminControllerAddRoleToUser operation in AdminApi.
|
|
1516
|
+
* @export
|
|
1517
|
+
* @interface AdminApiAdminControllerAddRoleToUserRequest
|
|
1518
|
+
*/
|
|
1519
|
+
export interface AdminApiAdminControllerAddRoleToUserRequest {
|
|
1520
|
+
/**
|
|
1521
|
+
*
|
|
1522
|
+
* @type {string}
|
|
1523
|
+
* @memberof AdminApiAdminControllerAddRoleToUser
|
|
1524
|
+
*/
|
|
1525
|
+
readonly userId: string
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
*
|
|
1529
|
+
* @type {AddRoleDto}
|
|
1530
|
+
* @memberof AdminApiAdminControllerAddRoleToUser
|
|
1531
|
+
*/
|
|
1532
|
+
readonly addRoleDto: AddRoleDto
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* Request parameters for adminControllerDeleteUser operation in AdminApi.
|
|
1537
|
+
* @export
|
|
1538
|
+
* @interface AdminApiAdminControllerDeleteUserRequest
|
|
1539
|
+
*/
|
|
1540
|
+
export interface AdminApiAdminControllerDeleteUserRequest {
|
|
1541
|
+
/**
|
|
1542
|
+
*
|
|
1543
|
+
* @type {string}
|
|
1544
|
+
* @memberof AdminApiAdminControllerDeleteUser
|
|
1545
|
+
*/
|
|
1546
|
+
readonly userId: string
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* Request parameters for adminControllerGetAllUsers operation in AdminApi.
|
|
1551
|
+
* @export
|
|
1552
|
+
* @interface AdminApiAdminControllerGetAllUsersRequest
|
|
1553
|
+
*/
|
|
1554
|
+
export interface AdminApiAdminControllerGetAllUsersRequest {
|
|
1555
|
+
/**
|
|
1556
|
+
*
|
|
1557
|
+
* @type {number}
|
|
1558
|
+
* @memberof AdminApiAdminControllerGetAllUsers
|
|
1559
|
+
*/
|
|
1560
|
+
readonly skip: number
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
*
|
|
1564
|
+
* @type {number}
|
|
1565
|
+
* @memberof AdminApiAdminControllerGetAllUsers
|
|
1566
|
+
*/
|
|
1567
|
+
readonly take: number
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Request parameters for adminControllerGetUserById operation in AdminApi.
|
|
1572
|
+
* @export
|
|
1573
|
+
* @interface AdminApiAdminControllerGetUserByIdRequest
|
|
1574
|
+
*/
|
|
1575
|
+
export interface AdminApiAdminControllerGetUserByIdRequest {
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* @type {string}
|
|
1579
|
+
* @memberof AdminApiAdminControllerGetUserById
|
|
1580
|
+
*/
|
|
1581
|
+
readonly userId: string
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Request parameters for adminControllerRemoveRoleFromUser operation in AdminApi.
|
|
1586
|
+
* @export
|
|
1587
|
+
* @interface AdminApiAdminControllerRemoveRoleFromUserRequest
|
|
1588
|
+
*/
|
|
1589
|
+
export interface AdminApiAdminControllerRemoveRoleFromUserRequest {
|
|
1590
|
+
/**
|
|
1591
|
+
*
|
|
1592
|
+
* @type {string}
|
|
1593
|
+
* @memberof AdminApiAdminControllerRemoveRoleFromUser
|
|
1594
|
+
*/
|
|
1595
|
+
readonly userId: string
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* @type {RemoveRoleDto}
|
|
1600
|
+
* @memberof AdminApiAdminControllerRemoveRoleFromUser
|
|
1601
|
+
*/
|
|
1602
|
+
readonly removeRoleDto: RemoveRoleDto
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* Request parameters for adminControllerSearchUsers operation in AdminApi.
|
|
1607
|
+
* @export
|
|
1608
|
+
* @interface AdminApiAdminControllerSearchUsersRequest
|
|
1609
|
+
*/
|
|
1610
|
+
export interface AdminApiAdminControllerSearchUsersRequest {
|
|
1611
|
+
/**
|
|
1612
|
+
*
|
|
1613
|
+
* @type {string}
|
|
1614
|
+
* @memberof AdminApiAdminControllerSearchUsers
|
|
1615
|
+
*/
|
|
1616
|
+
readonly q: string
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
/**
|
|
1620
|
+
* Request parameters for adminControllerToggleUserAccess operation in AdminApi.
|
|
1621
|
+
* @export
|
|
1622
|
+
* @interface AdminApiAdminControllerToggleUserAccessRequest
|
|
1623
|
+
*/
|
|
1624
|
+
export interface AdminApiAdminControllerToggleUserAccessRequest {
|
|
1625
|
+
/**
|
|
1626
|
+
*
|
|
1627
|
+
* @type {string}
|
|
1628
|
+
* @memberof AdminApiAdminControllerToggleUserAccess
|
|
1629
|
+
*/
|
|
1630
|
+
readonly userId: string
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
*
|
|
1634
|
+
* @type {ToggleAccessDto}
|
|
1635
|
+
* @memberof AdminApiAdminControllerToggleUserAccess
|
|
1636
|
+
*/
|
|
1637
|
+
readonly toggleAccessDto: ToggleAccessDto
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* Request parameters for adminControllerToggleUserActive operation in AdminApi.
|
|
1642
|
+
* @export
|
|
1643
|
+
* @interface AdminApiAdminControllerToggleUserActiveRequest
|
|
1644
|
+
*/
|
|
1645
|
+
export interface AdminApiAdminControllerToggleUserActiveRequest {
|
|
1646
|
+
/**
|
|
1647
|
+
*
|
|
1648
|
+
* @type {string}
|
|
1649
|
+
* @memberof AdminApiAdminControllerToggleUserActive
|
|
1650
|
+
*/
|
|
1651
|
+
readonly userId: string
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
*
|
|
1655
|
+
* @type {ToggleActiveDto}
|
|
1656
|
+
* @memberof AdminApiAdminControllerToggleUserActive
|
|
1657
|
+
*/
|
|
1658
|
+
readonly toggleActiveDto: ToggleActiveDto
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* Request parameters for adminControllerUpdateUserRoles operation in AdminApi.
|
|
1663
|
+
* @export
|
|
1664
|
+
* @interface AdminApiAdminControllerUpdateUserRolesRequest
|
|
1665
|
+
*/
|
|
1666
|
+
export interface AdminApiAdminControllerUpdateUserRolesRequest {
|
|
1667
|
+
/**
|
|
1668
|
+
*
|
|
1669
|
+
* @type {string}
|
|
1670
|
+
* @memberof AdminApiAdminControllerUpdateUserRoles
|
|
1671
|
+
*/
|
|
1672
|
+
readonly userId: string
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
*
|
|
1676
|
+
* @type {UpdateUserRolesDto}
|
|
1677
|
+
* @memberof AdminApiAdminControllerUpdateUserRoles
|
|
1678
|
+
*/
|
|
1679
|
+
readonly updateUserRolesDto: UpdateUserRolesDto
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* AdminApi - object-oriented interface
|
|
1684
|
+
* @export
|
|
1685
|
+
* @class AdminApi
|
|
1686
|
+
* @extends {BaseAPI}
|
|
1687
|
+
*/
|
|
1688
|
+
export class AdminApi extends BaseAPI implements AdminApiInterface {
|
|
1689
|
+
/**
|
|
1690
|
+
*
|
|
1691
|
+
* @summary Add a role to user
|
|
1692
|
+
* @param {AdminApiAdminControllerAddRoleToUserRequest} requestParameters Request parameters.
|
|
1693
|
+
* @param {*} [options] Override http request option.
|
|
1694
|
+
* @throws {RequiredError}
|
|
1695
|
+
* @memberof AdminApi
|
|
1696
|
+
*/
|
|
1697
|
+
public adminControllerAddRoleToUser(requestParameters: AdminApiAdminControllerAddRoleToUserRequest, options?: RawAxiosRequestConfig) {
|
|
1698
|
+
return AdminApiFp(this.configuration).adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options).then((request) => request(this.axios, this.basePath));
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
*
|
|
1703
|
+
* @summary Delete a user
|
|
1704
|
+
* @param {AdminApiAdminControllerDeleteUserRequest} requestParameters Request parameters.
|
|
1705
|
+
* @param {*} [options] Override http request option.
|
|
1706
|
+
* @throws {RequiredError}
|
|
1707
|
+
* @memberof AdminApi
|
|
1708
|
+
*/
|
|
1709
|
+
public adminControllerDeleteUser(requestParameters: AdminApiAdminControllerDeleteUserRequest, options?: RawAxiosRequestConfig) {
|
|
1710
|
+
return AdminApiFp(this.configuration).adminControllerDeleteUser(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
*
|
|
1715
|
+
* @summary Get all users with pagination
|
|
1716
|
+
* @param {AdminApiAdminControllerGetAllUsersRequest} requestParameters Request parameters.
|
|
1717
|
+
* @param {*} [options] Override http request option.
|
|
1718
|
+
* @throws {RequiredError}
|
|
1719
|
+
* @memberof AdminApi
|
|
1720
|
+
*/
|
|
1721
|
+
public adminControllerGetAllUsers(requestParameters: AdminApiAdminControllerGetAllUsersRequest, options?: RawAxiosRequestConfig) {
|
|
1722
|
+
return AdminApiFp(this.configuration).adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options).then((request) => request(this.axios, this.basePath));
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
*
|
|
1727
|
+
* @summary Get user by ID
|
|
1728
|
+
* @param {AdminApiAdminControllerGetUserByIdRequest} requestParameters Request parameters.
|
|
1729
|
+
* @param {*} [options] Override http request option.
|
|
1730
|
+
* @throws {RequiredError}
|
|
1731
|
+
* @memberof AdminApi
|
|
1732
|
+
*/
|
|
1733
|
+
public adminControllerGetUserById(requestParameters: AdminApiAdminControllerGetUserByIdRequest, options?: RawAxiosRequestConfig) {
|
|
1734
|
+
return AdminApiFp(this.configuration).adminControllerGetUserById(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
*
|
|
1739
|
+
* @summary Remove a role from user
|
|
1740
|
+
* @param {AdminApiAdminControllerRemoveRoleFromUserRequest} requestParameters Request parameters.
|
|
1741
|
+
* @param {*} [options] Override http request option.
|
|
1742
|
+
* @throws {RequiredError}
|
|
1743
|
+
* @memberof AdminApi
|
|
1744
|
+
*/
|
|
1745
|
+
public adminControllerRemoveRoleFromUser(requestParameters: AdminApiAdminControllerRemoveRoleFromUserRequest, options?: RawAxiosRequestConfig) {
|
|
1746
|
+
return AdminApiFp(this.configuration).adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options).then((request) => request(this.axios, this.basePath));
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
*
|
|
1751
|
+
* @summary Search users by email or name
|
|
1752
|
+
* @param {AdminApiAdminControllerSearchUsersRequest} requestParameters Request parameters.
|
|
1753
|
+
* @param {*} [options] Override http request option.
|
|
1754
|
+
* @throws {RequiredError}
|
|
1755
|
+
* @memberof AdminApi
|
|
1756
|
+
*/
|
|
1757
|
+
public adminControllerSearchUsers(requestParameters: AdminApiAdminControllerSearchUsersRequest, options?: RawAxiosRequestConfig) {
|
|
1758
|
+
return AdminApiFp(this.configuration).adminControllerSearchUsers(requestParameters.q, options).then((request) => request(this.axios, this.basePath));
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
*
|
|
1763
|
+
* @summary Toggle user access
|
|
1764
|
+
* @param {AdminApiAdminControllerToggleUserAccessRequest} requestParameters Request parameters.
|
|
1765
|
+
* @param {*} [options] Override http request option.
|
|
1766
|
+
* @throws {RequiredError}
|
|
1767
|
+
* @memberof AdminApi
|
|
1768
|
+
*/
|
|
1769
|
+
public adminControllerToggleUserAccess(requestParameters: AdminApiAdminControllerToggleUserAccessRequest, options?: RawAxiosRequestConfig) {
|
|
1770
|
+
return AdminApiFp(this.configuration).adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options).then((request) => request(this.axios, this.basePath));
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
*
|
|
1775
|
+
* @summary Toggle user active status
|
|
1776
|
+
* @param {AdminApiAdminControllerToggleUserActiveRequest} requestParameters Request parameters.
|
|
1777
|
+
* @param {*} [options] Override http request option.
|
|
1778
|
+
* @throws {RequiredError}
|
|
1779
|
+
* @memberof AdminApi
|
|
1780
|
+
*/
|
|
1781
|
+
public adminControllerToggleUserActive(requestParameters: AdminApiAdminControllerToggleUserActiveRequest, options?: RawAxiosRequestConfig) {
|
|
1782
|
+
return AdminApiFp(this.configuration).adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options).then((request) => request(this.axios, this.basePath));
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
/**
|
|
1786
|
+
*
|
|
1787
|
+
* @summary Update user roles (replace all)
|
|
1788
|
+
* @param {AdminApiAdminControllerUpdateUserRolesRequest} requestParameters Request parameters.
|
|
1789
|
+
* @param {*} [options] Override http request option.
|
|
1790
|
+
* @throws {RequiredError}
|
|
1791
|
+
* @memberof AdminApi
|
|
1792
|
+
*/
|
|
1793
|
+
public adminControllerUpdateUserRoles(requestParameters: AdminApiAdminControllerUpdateUserRolesRequest, options?: RawAxiosRequestConfig) {
|
|
1794
|
+
return AdminApiFp(this.configuration).adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options).then((request) => request(this.axios, this.basePath));
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* ApiV1AuthApi - axios parameter creator
|
|
1802
|
+
* @export
|
|
1803
|
+
*/
|
|
1804
|
+
export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1805
|
+
return {
|
|
1806
|
+
/**
|
|
1807
|
+
*
|
|
1808
|
+
* @summary Initiate Discord OAuth flow
|
|
1809
|
+
* @param {*} [options] Override http request option.
|
|
1810
|
+
* @throws {RequiredError}
|
|
1811
|
+
*/
|
|
1812
|
+
authControllerDiscordAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1813
|
+
const localVarPath = `/api/v1/auth/oauth/discord`;
|
|
1814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1815
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1816
|
+
let baseOptions;
|
|
1817
|
+
if (configuration) {
|
|
1818
|
+
baseOptions = configuration.baseOptions;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1822
|
+
const localVarHeaderParameter = {} as any;
|
|
1823
|
+
const localVarQueryParameter = {} as any;
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1828
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1829
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1830
|
+
|
|
1831
|
+
return {
|
|
1832
|
+
url: toPathString(localVarUrlObj),
|
|
1833
|
+
options: localVarRequestOptions,
|
|
1834
|
+
};
|
|
1835
|
+
},
|
|
1836
|
+
/**
|
|
1837
|
+
*
|
|
1838
|
+
* @summary Handle Discord OAuth callback
|
|
1839
|
+
* @param {*} [options] Override http request option.
|
|
1840
|
+
* @throws {RequiredError}
|
|
1841
|
+
*/
|
|
1842
|
+
authControllerDiscordCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1843
|
+
const localVarPath = `/api/v1/auth/oauth/discord/callback`;
|
|
1844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1845
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1846
|
+
let baseOptions;
|
|
1847
|
+
if (configuration) {
|
|
1848
|
+
baseOptions = configuration.baseOptions;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1852
|
+
const localVarHeaderParameter = {} as any;
|
|
1853
|
+
const localVarQueryParameter = {} as any;
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1858
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1859
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1860
|
+
|
|
1861
|
+
return {
|
|
1862
|
+
url: toPathString(localVarUrlObj),
|
|
1863
|
+
options: localVarRequestOptions,
|
|
1864
|
+
};
|
|
1865
|
+
},
|
|
1866
|
+
/**
|
|
1867
|
+
*
|
|
1868
|
+
* @summary Get linked OAuth providers for current user
|
|
1869
|
+
* @param {*} [options] Override http request option.
|
|
1870
|
+
* @throws {RequiredError}
|
|
1871
|
+
*/
|
|
1872
|
+
authControllerGetProviders: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1873
|
+
const localVarPath = `/api/v1/auth/providers`;
|
|
1874
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1875
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1876
|
+
let baseOptions;
|
|
1877
|
+
if (configuration) {
|
|
1878
|
+
baseOptions = configuration.baseOptions;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1882
|
+
const localVarHeaderParameter = {} as any;
|
|
1883
|
+
const localVarQueryParameter = {} as any;
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1888
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1889
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1890
|
+
|
|
1891
|
+
return {
|
|
1892
|
+
url: toPathString(localVarUrlObj),
|
|
1893
|
+
options: localVarRequestOptions,
|
|
1894
|
+
};
|
|
1895
|
+
},
|
|
1896
|
+
/**
|
|
1897
|
+
*
|
|
1898
|
+
* @summary Initiate GitHub OAuth flow
|
|
1899
|
+
* @param {*} [options] Override http request option.
|
|
1900
|
+
* @throws {RequiredError}
|
|
1901
|
+
*/
|
|
1902
|
+
authControllerGithubAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1903
|
+
const localVarPath = `/api/v1/auth/oauth/github`;
|
|
1904
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1905
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1906
|
+
let baseOptions;
|
|
1907
|
+
if (configuration) {
|
|
1908
|
+
baseOptions = configuration.baseOptions;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1912
|
+
const localVarHeaderParameter = {} as any;
|
|
1913
|
+
const localVarQueryParameter = {} as any;
|
|
1914
|
+
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1918
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1919
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1920
|
+
|
|
1921
|
+
return {
|
|
1922
|
+
url: toPathString(localVarUrlObj),
|
|
1923
|
+
options: localVarRequestOptions,
|
|
1924
|
+
};
|
|
1925
|
+
},
|
|
1926
|
+
/**
|
|
1927
|
+
*
|
|
1928
|
+
* @summary Handle GitHub OAuth callback
|
|
1929
|
+
* @param {*} [options] Override http request option.
|
|
1930
|
+
* @throws {RequiredError}
|
|
1931
|
+
*/
|
|
1932
|
+
authControllerGithubCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1933
|
+
const localVarPath = `/api/v1/auth/oauth/github/callback`;
|
|
1934
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1935
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1936
|
+
let baseOptions;
|
|
1937
|
+
if (configuration) {
|
|
1938
|
+
baseOptions = configuration.baseOptions;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1942
|
+
const localVarHeaderParameter = {} as any;
|
|
1943
|
+
const localVarQueryParameter = {} as any;
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1948
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1949
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1950
|
+
|
|
1951
|
+
return {
|
|
1952
|
+
url: toPathString(localVarUrlObj),
|
|
1953
|
+
options: localVarRequestOptions,
|
|
1954
|
+
};
|
|
1955
|
+
},
|
|
1956
|
+
/**
|
|
1957
|
+
*
|
|
1958
|
+
* @summary Initiate Google OAuth flow
|
|
1959
|
+
* @param {*} [options] Override http request option.
|
|
1960
|
+
* @throws {RequiredError}
|
|
1961
|
+
*/
|
|
1962
|
+
authControllerGoogleAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1963
|
+
const localVarPath = `/api/v1/auth/oauth/google`;
|
|
1964
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1965
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1966
|
+
let baseOptions;
|
|
1967
|
+
if (configuration) {
|
|
1968
|
+
baseOptions = configuration.baseOptions;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1972
|
+
const localVarHeaderParameter = {} as any;
|
|
1973
|
+
const localVarQueryParameter = {} as any;
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1978
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1979
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1980
|
+
|
|
1981
|
+
return {
|
|
1982
|
+
url: toPathString(localVarUrlObj),
|
|
1983
|
+
options: localVarRequestOptions,
|
|
1984
|
+
};
|
|
1985
|
+
},
|
|
1986
|
+
/**
|
|
1987
|
+
*
|
|
1988
|
+
* @summary Handle Google OAuth callback
|
|
1989
|
+
* @param {*} [options] Override http request option.
|
|
1990
|
+
* @throws {RequiredError}
|
|
1991
|
+
*/
|
|
1992
|
+
authControllerGoogleCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1993
|
+
const localVarPath = `/api/v1/auth/oauth/google/callback`;
|
|
1994
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1995
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1996
|
+
let baseOptions;
|
|
1997
|
+
if (configuration) {
|
|
1998
|
+
baseOptions = configuration.baseOptions;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2002
|
+
const localVarHeaderParameter = {} as any;
|
|
2003
|
+
const localVarQueryParameter = {} as any;
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2008
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2009
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2010
|
+
|
|
2011
|
+
return {
|
|
2012
|
+
url: toPathString(localVarUrlObj),
|
|
2013
|
+
options: localVarRequestOptions,
|
|
2014
|
+
};
|
|
2015
|
+
},
|
|
2016
|
+
/**
|
|
2017
|
+
*
|
|
2018
|
+
* @summary Auth service health check
|
|
2019
|
+
* @param {*} [options] Override http request option.
|
|
2020
|
+
* @throws {RequiredError}
|
|
2021
|
+
*/
|
|
2022
|
+
authControllerHealthCheck: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2023
|
+
const localVarPath = `/api/v1/auth/health`;
|
|
2024
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2025
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2026
|
+
let baseOptions;
|
|
2027
|
+
if (configuration) {
|
|
2028
|
+
baseOptions = configuration.baseOptions;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2032
|
+
const localVarHeaderParameter = {} as any;
|
|
2033
|
+
const localVarQueryParameter = {} as any;
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2038
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2039
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2040
|
+
|
|
2041
|
+
return {
|
|
2042
|
+
url: toPathString(localVarUrlObj),
|
|
2043
|
+
options: localVarRequestOptions,
|
|
2044
|
+
};
|
|
2045
|
+
},
|
|
2046
|
+
/**
|
|
2047
|
+
*
|
|
2048
|
+
* @summary Link OAuth provider to existing account
|
|
2049
|
+
* @param {object} body
|
|
2050
|
+
* @param {*} [options] Override http request option.
|
|
2051
|
+
* @throws {RequiredError}
|
|
2052
|
+
*/
|
|
2053
|
+
authControllerLinkProvider: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2054
|
+
// verify required parameter 'body' is not null or undefined
|
|
2055
|
+
assertParamExists('authControllerLinkProvider', 'body', body)
|
|
2056
|
+
const localVarPath = `/api/v1/auth/link-provider`;
|
|
2057
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2058
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2059
|
+
let baseOptions;
|
|
2060
|
+
if (configuration) {
|
|
2061
|
+
baseOptions = configuration.baseOptions;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2065
|
+
const localVarHeaderParameter = {} as any;
|
|
2066
|
+
const localVarQueryParameter = {} as any;
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2071
|
+
|
|
2072
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2073
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2074
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2075
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2076
|
+
|
|
2077
|
+
return {
|
|
2078
|
+
url: toPathString(localVarUrlObj),
|
|
2079
|
+
options: localVarRequestOptions,
|
|
2080
|
+
};
|
|
2081
|
+
},
|
|
2082
|
+
/**
|
|
2083
|
+
*
|
|
2084
|
+
* @summary User login with email and password
|
|
2085
|
+
* @param {object} body
|
|
2086
|
+
* @param {*} [options] Override http request option.
|
|
2087
|
+
* @throws {RequiredError}
|
|
2088
|
+
*/
|
|
2089
|
+
authControllerLogin: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2090
|
+
// verify required parameter 'body' is not null or undefined
|
|
2091
|
+
assertParamExists('authControllerLogin', 'body', body)
|
|
2092
|
+
const localVarPath = `/api/v1/auth/login`;
|
|
2093
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2094
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2095
|
+
let baseOptions;
|
|
2096
|
+
if (configuration) {
|
|
2097
|
+
baseOptions = configuration.baseOptions;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2101
|
+
const localVarHeaderParameter = {} as any;
|
|
2102
|
+
const localVarQueryParameter = {} as any;
|
|
2103
|
+
|
|
850
2104
|
|
|
851
2105
|
|
|
2106
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2107
|
+
|
|
852
2108
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
853
2109
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
854
2110
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2111
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
855
2112
|
|
|
856
2113
|
return {
|
|
857
2114
|
url: toPathString(localVarUrlObj),
|
|
@@ -860,12 +2117,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
860
2117
|
},
|
|
861
2118
|
/**
|
|
862
2119
|
*
|
|
863
|
-
* @summary
|
|
2120
|
+
* @summary Logout user and clear session
|
|
864
2121
|
* @param {*} [options] Override http request option.
|
|
865
2122
|
* @throws {RequiredError}
|
|
866
2123
|
*/
|
|
867
|
-
|
|
868
|
-
const localVarPath = `/api/v1/auth/
|
|
2124
|
+
authControllerLogout: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2125
|
+
const localVarPath = `/api/v1/auth/logout`;
|
|
869
2126
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
870
2127
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
871
2128
|
let baseOptions;
|
|
@@ -873,7 +2130,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
873
2130
|
baseOptions = configuration.baseOptions;
|
|
874
2131
|
}
|
|
875
2132
|
|
|
876
|
-
const localVarRequestOptions = { method: '
|
|
2133
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
877
2134
|
const localVarHeaderParameter = {} as any;
|
|
878
2135
|
const localVarQueryParameter = {} as any;
|
|
879
2136
|
|
|
@@ -890,12 +2147,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
890
2147
|
},
|
|
891
2148
|
/**
|
|
892
2149
|
*
|
|
893
|
-
* @summary
|
|
2150
|
+
* @summary Refresh access token using refresh token
|
|
894
2151
|
* @param {*} [options] Override http request option.
|
|
895
2152
|
* @throws {RequiredError}
|
|
896
2153
|
*/
|
|
897
|
-
|
|
898
|
-
const localVarPath = `/api/v1/auth/
|
|
2154
|
+
authControllerRefresh: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2155
|
+
const localVarPath = `/api/v1/auth/refresh`;
|
|
899
2156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
900
2157
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
901
2158
|
let baseOptions;
|
|
@@ -903,7 +2160,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
903
2160
|
baseOptions = configuration.baseOptions;
|
|
904
2161
|
}
|
|
905
2162
|
|
|
906
|
-
const localVarRequestOptions = { method: '
|
|
2163
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
907
2164
|
const localVarHeaderParameter = {} as any;
|
|
908
2165
|
const localVarQueryParameter = {} as any;
|
|
909
2166
|
|
|
@@ -920,15 +2177,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
920
2177
|
},
|
|
921
2178
|
/**
|
|
922
2179
|
*
|
|
923
|
-
* @summary
|
|
2180
|
+
* @summary Register a new user account
|
|
924
2181
|
* @param {object} body
|
|
925
2182
|
* @param {*} [options] Override http request option.
|
|
926
2183
|
* @throws {RequiredError}
|
|
927
2184
|
*/
|
|
928
|
-
|
|
2185
|
+
authControllerRegister: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
929
2186
|
// verify required parameter 'body' is not null or undefined
|
|
930
|
-
assertParamExists('
|
|
931
|
-
const localVarPath = `/api/v1/auth/
|
|
2187
|
+
assertParamExists('authControllerRegister', 'body', body)
|
|
2188
|
+
const localVarPath = `/api/v1/auth/register`;
|
|
932
2189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
933
2190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
934
2191
|
let baseOptions;
|
|
@@ -956,15 +2213,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
956
2213
|
},
|
|
957
2214
|
/**
|
|
958
2215
|
*
|
|
959
|
-
* @summary
|
|
960
|
-
* @param {
|
|
2216
|
+
* @summary Request password reset email
|
|
2217
|
+
* @param {RequestPasswordResetDto} requestPasswordResetDto
|
|
961
2218
|
* @param {*} [options] Override http request option.
|
|
962
2219
|
* @throws {RequiredError}
|
|
963
2220
|
*/
|
|
964
|
-
|
|
965
|
-
// verify required parameter '
|
|
966
|
-
assertParamExists('
|
|
967
|
-
const localVarPath = `/api/v1/auth/
|
|
2221
|
+
authControllerRequestPasswordReset: async (requestPasswordResetDto: RequestPasswordResetDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2222
|
+
// verify required parameter 'requestPasswordResetDto' is not null or undefined
|
|
2223
|
+
assertParamExists('authControllerRequestPasswordReset', 'requestPasswordResetDto', requestPasswordResetDto)
|
|
2224
|
+
const localVarPath = `/api/v1/auth/request-password-reset`;
|
|
968
2225
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
969
2226
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
970
2227
|
let baseOptions;
|
|
@@ -983,7 +2240,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
983
2240
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
984
2241
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
985
2242
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
986
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2243
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestPasswordResetDto, localVarRequestOptions, configuration)
|
|
987
2244
|
|
|
988
2245
|
return {
|
|
989
2246
|
url: toPathString(localVarUrlObj),
|
|
@@ -992,12 +2249,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
992
2249
|
},
|
|
993
2250
|
/**
|
|
994
2251
|
*
|
|
995
|
-
* @summary
|
|
2252
|
+
* @summary Resend email verification
|
|
2253
|
+
* @param {ResendVerificationDto} resendVerificationDto
|
|
996
2254
|
* @param {*} [options] Override http request option.
|
|
997
2255
|
* @throws {RequiredError}
|
|
998
2256
|
*/
|
|
999
|
-
|
|
1000
|
-
|
|
2257
|
+
authControllerResendVerification: async (resendVerificationDto: ResendVerificationDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2258
|
+
// verify required parameter 'resendVerificationDto' is not null or undefined
|
|
2259
|
+
assertParamExists('authControllerResendVerification', 'resendVerificationDto', resendVerificationDto)
|
|
2260
|
+
const localVarPath = `/api/v1/auth/resend-verification`;
|
|
1001
2261
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1002
2262
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1003
2263
|
let baseOptions;
|
|
@@ -1011,9 +2271,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1011
2271
|
|
|
1012
2272
|
|
|
1013
2273
|
|
|
2274
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2275
|
+
|
|
1014
2276
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1015
2277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1016
2278
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2279
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resendVerificationDto, localVarRequestOptions, configuration)
|
|
1017
2280
|
|
|
1018
2281
|
return {
|
|
1019
2282
|
url: toPathString(localVarUrlObj),
|
|
@@ -1022,12 +2285,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1022
2285
|
},
|
|
1023
2286
|
/**
|
|
1024
2287
|
*
|
|
1025
|
-
* @summary
|
|
2288
|
+
* @summary Reset password with token
|
|
2289
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
1026
2290
|
* @param {*} [options] Override http request option.
|
|
1027
2291
|
* @throws {RequiredError}
|
|
1028
2292
|
*/
|
|
1029
|
-
|
|
1030
|
-
|
|
2293
|
+
authControllerResetPassword: async (resetPasswordDto: ResetPasswordDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2294
|
+
// verify required parameter 'resetPasswordDto' is not null or undefined
|
|
2295
|
+
assertParamExists('authControllerResetPassword', 'resetPasswordDto', resetPasswordDto)
|
|
2296
|
+
const localVarPath = `/api/v1/auth/reset-password`;
|
|
1031
2297
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1032
2298
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1033
2299
|
let baseOptions;
|
|
@@ -1041,9 +2307,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1041
2307
|
|
|
1042
2308
|
|
|
1043
2309
|
|
|
2310
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2311
|
+
|
|
1044
2312
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1045
2313
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1046
2314
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2315
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordDto, localVarRequestOptions, configuration)
|
|
1047
2316
|
|
|
1048
2317
|
return {
|
|
1049
2318
|
url: toPathString(localVarUrlObj),
|
|
@@ -1052,15 +2321,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1052
2321
|
},
|
|
1053
2322
|
/**
|
|
1054
2323
|
*
|
|
1055
|
-
* @summary
|
|
1056
|
-
* @param {
|
|
2324
|
+
* @summary Verify email address with token
|
|
2325
|
+
* @param {VerifyEmailDto} verifyEmailDto
|
|
1057
2326
|
* @param {*} [options] Override http request option.
|
|
1058
2327
|
* @throws {RequiredError}
|
|
1059
2328
|
*/
|
|
1060
|
-
|
|
1061
|
-
// verify required parameter '
|
|
1062
|
-
assertParamExists('
|
|
1063
|
-
const localVarPath = `/api/v1/auth/
|
|
2329
|
+
authControllerVerifyEmail: async (verifyEmailDto: VerifyEmailDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2330
|
+
// verify required parameter 'verifyEmailDto' is not null or undefined
|
|
2331
|
+
assertParamExists('authControllerVerifyEmail', 'verifyEmailDto', verifyEmailDto)
|
|
2332
|
+
const localVarPath = `/api/v1/auth/verify-email`;
|
|
1064
2333
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1065
2334
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1066
2335
|
let baseOptions;
|
|
@@ -1079,7 +2348,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1079
2348
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1080
2349
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1081
2350
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1082
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2351
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailDto, localVarRequestOptions, configuration)
|
|
1083
2352
|
|
|
1084
2353
|
return {
|
|
1085
2354
|
url: toPathString(localVarUrlObj),
|
|
@@ -1255,6 +2524,58 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
1255
2524
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerRegister']?.[localVarOperationServerIndex]?.url;
|
|
1256
2525
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1257
2526
|
},
|
|
2527
|
+
/**
|
|
2528
|
+
*
|
|
2529
|
+
* @summary Request password reset email
|
|
2530
|
+
* @param {RequestPasswordResetDto} requestPasswordResetDto
|
|
2531
|
+
* @param {*} [options] Override http request option.
|
|
2532
|
+
* @throws {RequiredError}
|
|
2533
|
+
*/
|
|
2534
|
+
async authControllerRequestPasswordReset(requestPasswordResetDto: RequestPasswordResetDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2535
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRequestPasswordReset(requestPasswordResetDto, options);
|
|
2536
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2537
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerRequestPasswordReset']?.[localVarOperationServerIndex]?.url;
|
|
2538
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2539
|
+
},
|
|
2540
|
+
/**
|
|
2541
|
+
*
|
|
2542
|
+
* @summary Resend email verification
|
|
2543
|
+
* @param {ResendVerificationDto} resendVerificationDto
|
|
2544
|
+
* @param {*} [options] Override http request option.
|
|
2545
|
+
* @throws {RequiredError}
|
|
2546
|
+
*/
|
|
2547
|
+
async authControllerResendVerification(resendVerificationDto: ResendVerificationDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2548
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResendVerification(resendVerificationDto, options);
|
|
2549
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2550
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerResendVerification']?.[localVarOperationServerIndex]?.url;
|
|
2551
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2552
|
+
},
|
|
2553
|
+
/**
|
|
2554
|
+
*
|
|
2555
|
+
* @summary Reset password with token
|
|
2556
|
+
* @param {ResetPasswordDto} resetPasswordDto
|
|
2557
|
+
* @param {*} [options] Override http request option.
|
|
2558
|
+
* @throws {RequiredError}
|
|
2559
|
+
*/
|
|
2560
|
+
async authControllerResetPassword(resetPasswordDto: ResetPasswordDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResetPassword(resetPasswordDto, options);
|
|
2562
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2563
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerResetPassword']?.[localVarOperationServerIndex]?.url;
|
|
2564
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2565
|
+
},
|
|
2566
|
+
/**
|
|
2567
|
+
*
|
|
2568
|
+
* @summary Verify email address with token
|
|
2569
|
+
* @param {VerifyEmailDto} verifyEmailDto
|
|
2570
|
+
* @param {*} [options] Override http request option.
|
|
2571
|
+
* @throws {RequiredError}
|
|
2572
|
+
*/
|
|
2573
|
+
async authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2574
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerVerifyEmail(verifyEmailDto, options);
|
|
2575
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2576
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerVerifyEmail']?.[localVarOperationServerIndex]?.url;
|
|
2577
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2578
|
+
},
|
|
1258
2579
|
}
|
|
1259
2580
|
};
|
|
1260
2581
|
|
|
@@ -1385,6 +2706,46 @@ export const ApiV1AuthApiFactory = function (configuration?: Configuration, base
|
|
|
1385
2706
|
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1386
2707
|
return localVarFp.authControllerRegister(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1387
2708
|
},
|
|
2709
|
+
/**
|
|
2710
|
+
*
|
|
2711
|
+
* @summary Request password reset email
|
|
2712
|
+
* @param {ApiV1AuthApiAuthControllerRequestPasswordResetRequest} requestParameters Request parameters.
|
|
2713
|
+
* @param {*} [options] Override http request option.
|
|
2714
|
+
* @throws {RequiredError}
|
|
2715
|
+
*/
|
|
2716
|
+
authControllerRequestPasswordReset(requestParameters: ApiV1AuthApiAuthControllerRequestPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2717
|
+
return localVarFp.authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options).then((request) => request(axios, basePath));
|
|
2718
|
+
},
|
|
2719
|
+
/**
|
|
2720
|
+
*
|
|
2721
|
+
* @summary Resend email verification
|
|
2722
|
+
* @param {ApiV1AuthApiAuthControllerResendVerificationRequest} requestParameters Request parameters.
|
|
2723
|
+
* @param {*} [options] Override http request option.
|
|
2724
|
+
* @throws {RequiredError}
|
|
2725
|
+
*/
|
|
2726
|
+
authControllerResendVerification(requestParameters: ApiV1AuthApiAuthControllerResendVerificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2727
|
+
return localVarFp.authControllerResendVerification(requestParameters.resendVerificationDto, options).then((request) => request(axios, basePath));
|
|
2728
|
+
},
|
|
2729
|
+
/**
|
|
2730
|
+
*
|
|
2731
|
+
* @summary Reset password with token
|
|
2732
|
+
* @param {ApiV1AuthApiAuthControllerResetPasswordRequest} requestParameters Request parameters.
|
|
2733
|
+
* @param {*} [options] Override http request option.
|
|
2734
|
+
* @throws {RequiredError}
|
|
2735
|
+
*/
|
|
2736
|
+
authControllerResetPassword(requestParameters: ApiV1AuthApiAuthControllerResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2737
|
+
return localVarFp.authControllerResetPassword(requestParameters.resetPasswordDto, options).then((request) => request(axios, basePath));
|
|
2738
|
+
},
|
|
2739
|
+
/**
|
|
2740
|
+
*
|
|
2741
|
+
* @summary Verify email address with token
|
|
2742
|
+
* @param {ApiV1AuthApiAuthControllerVerifyEmailRequest} requestParameters Request parameters.
|
|
2743
|
+
* @param {*} [options] Override http request option.
|
|
2744
|
+
* @throws {RequiredError}
|
|
2745
|
+
*/
|
|
2746
|
+
authControllerVerifyEmail(requestParameters: ApiV1AuthApiAuthControllerVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2747
|
+
return localVarFp.authControllerVerifyEmail(requestParameters.verifyEmailDto, options).then((request) => request(axios, basePath));
|
|
2748
|
+
},
|
|
1388
2749
|
};
|
|
1389
2750
|
};
|
|
1390
2751
|
|
|
@@ -1514,6 +2875,46 @@ export interface ApiV1AuthApiInterface {
|
|
|
1514
2875
|
*/
|
|
1515
2876
|
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1516
2877
|
|
|
2878
|
+
/**
|
|
2879
|
+
*
|
|
2880
|
+
* @summary Request password reset email
|
|
2881
|
+
* @param {ApiV1AuthApiAuthControllerRequestPasswordResetRequest} requestParameters Request parameters.
|
|
2882
|
+
* @param {*} [options] Override http request option.
|
|
2883
|
+
* @throws {RequiredError}
|
|
2884
|
+
* @memberof ApiV1AuthApiInterface
|
|
2885
|
+
*/
|
|
2886
|
+
authControllerRequestPasswordReset(requestParameters: ApiV1AuthApiAuthControllerRequestPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2887
|
+
|
|
2888
|
+
/**
|
|
2889
|
+
*
|
|
2890
|
+
* @summary Resend email verification
|
|
2891
|
+
* @param {ApiV1AuthApiAuthControllerResendVerificationRequest} requestParameters Request parameters.
|
|
2892
|
+
* @param {*} [options] Override http request option.
|
|
2893
|
+
* @throws {RequiredError}
|
|
2894
|
+
* @memberof ApiV1AuthApiInterface
|
|
2895
|
+
*/
|
|
2896
|
+
authControllerResendVerification(requestParameters: ApiV1AuthApiAuthControllerResendVerificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
*
|
|
2900
|
+
* @summary Reset password with token
|
|
2901
|
+
* @param {ApiV1AuthApiAuthControllerResetPasswordRequest} requestParameters Request parameters.
|
|
2902
|
+
* @param {*} [options] Override http request option.
|
|
2903
|
+
* @throws {RequiredError}
|
|
2904
|
+
* @memberof ApiV1AuthApiInterface
|
|
2905
|
+
*/
|
|
2906
|
+
authControllerResetPassword(requestParameters: ApiV1AuthApiAuthControllerResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
*
|
|
2910
|
+
* @summary Verify email address with token
|
|
2911
|
+
* @param {ApiV1AuthApiAuthControllerVerifyEmailRequest} requestParameters Request parameters.
|
|
2912
|
+
* @param {*} [options] Override http request option.
|
|
2913
|
+
* @throws {RequiredError}
|
|
2914
|
+
* @memberof ApiV1AuthApiInterface
|
|
2915
|
+
*/
|
|
2916
|
+
authControllerVerifyEmail(requestParameters: ApiV1AuthApiAuthControllerVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2917
|
+
|
|
1517
2918
|
}
|
|
1518
2919
|
|
|
1519
2920
|
/**
|
|
@@ -1558,6 +2959,62 @@ export interface ApiV1AuthApiAuthControllerRegisterRequest {
|
|
|
1558
2959
|
readonly body: object
|
|
1559
2960
|
}
|
|
1560
2961
|
|
|
2962
|
+
/**
|
|
2963
|
+
* Request parameters for authControllerRequestPasswordReset operation in ApiV1AuthApi.
|
|
2964
|
+
* @export
|
|
2965
|
+
* @interface ApiV1AuthApiAuthControllerRequestPasswordResetRequest
|
|
2966
|
+
*/
|
|
2967
|
+
export interface ApiV1AuthApiAuthControllerRequestPasswordResetRequest {
|
|
2968
|
+
/**
|
|
2969
|
+
*
|
|
2970
|
+
* @type {RequestPasswordResetDto}
|
|
2971
|
+
* @memberof ApiV1AuthApiAuthControllerRequestPasswordReset
|
|
2972
|
+
*/
|
|
2973
|
+
readonly requestPasswordResetDto: RequestPasswordResetDto
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
/**
|
|
2977
|
+
* Request parameters for authControllerResendVerification operation in ApiV1AuthApi.
|
|
2978
|
+
* @export
|
|
2979
|
+
* @interface ApiV1AuthApiAuthControllerResendVerificationRequest
|
|
2980
|
+
*/
|
|
2981
|
+
export interface ApiV1AuthApiAuthControllerResendVerificationRequest {
|
|
2982
|
+
/**
|
|
2983
|
+
*
|
|
2984
|
+
* @type {ResendVerificationDto}
|
|
2985
|
+
* @memberof ApiV1AuthApiAuthControllerResendVerification
|
|
2986
|
+
*/
|
|
2987
|
+
readonly resendVerificationDto: ResendVerificationDto
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* Request parameters for authControllerResetPassword operation in ApiV1AuthApi.
|
|
2992
|
+
* @export
|
|
2993
|
+
* @interface ApiV1AuthApiAuthControllerResetPasswordRequest
|
|
2994
|
+
*/
|
|
2995
|
+
export interface ApiV1AuthApiAuthControllerResetPasswordRequest {
|
|
2996
|
+
/**
|
|
2997
|
+
*
|
|
2998
|
+
* @type {ResetPasswordDto}
|
|
2999
|
+
* @memberof ApiV1AuthApiAuthControllerResetPassword
|
|
3000
|
+
*/
|
|
3001
|
+
readonly resetPasswordDto: ResetPasswordDto
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
/**
|
|
3005
|
+
* Request parameters for authControllerVerifyEmail operation in ApiV1AuthApi.
|
|
3006
|
+
* @export
|
|
3007
|
+
* @interface ApiV1AuthApiAuthControllerVerifyEmailRequest
|
|
3008
|
+
*/
|
|
3009
|
+
export interface ApiV1AuthApiAuthControllerVerifyEmailRequest {
|
|
3010
|
+
/**
|
|
3011
|
+
*
|
|
3012
|
+
* @type {VerifyEmailDto}
|
|
3013
|
+
* @memberof ApiV1AuthApiAuthControllerVerifyEmail
|
|
3014
|
+
*/
|
|
3015
|
+
readonly verifyEmailDto: VerifyEmailDto
|
|
3016
|
+
}
|
|
3017
|
+
|
|
1561
3018
|
/**
|
|
1562
3019
|
* ApiV1AuthApi - object-oriented interface
|
|
1563
3020
|
* @export
|
|
@@ -1710,6 +3167,54 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1710
3167
|
public authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig) {
|
|
1711
3168
|
return ApiV1AuthApiFp(this.configuration).authControllerRegister(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1712
3169
|
}
|
|
3170
|
+
|
|
3171
|
+
/**
|
|
3172
|
+
*
|
|
3173
|
+
* @summary Request password reset email
|
|
3174
|
+
* @param {ApiV1AuthApiAuthControllerRequestPasswordResetRequest} requestParameters Request parameters.
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
* @memberof ApiV1AuthApi
|
|
3178
|
+
*/
|
|
3179
|
+
public authControllerRequestPasswordReset(requestParameters: ApiV1AuthApiAuthControllerRequestPasswordResetRequest, options?: RawAxiosRequestConfig) {
|
|
3180
|
+
return ApiV1AuthApiFp(this.configuration).authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options).then((request) => request(this.axios, this.basePath));
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
/**
|
|
3184
|
+
*
|
|
3185
|
+
* @summary Resend email verification
|
|
3186
|
+
* @param {ApiV1AuthApiAuthControllerResendVerificationRequest} requestParameters Request parameters.
|
|
3187
|
+
* @param {*} [options] Override http request option.
|
|
3188
|
+
* @throws {RequiredError}
|
|
3189
|
+
* @memberof ApiV1AuthApi
|
|
3190
|
+
*/
|
|
3191
|
+
public authControllerResendVerification(requestParameters: ApiV1AuthApiAuthControllerResendVerificationRequest, options?: RawAxiosRequestConfig) {
|
|
3192
|
+
return ApiV1AuthApiFp(this.configuration).authControllerResendVerification(requestParameters.resendVerificationDto, options).then((request) => request(this.axios, this.basePath));
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
/**
|
|
3196
|
+
*
|
|
3197
|
+
* @summary Reset password with token
|
|
3198
|
+
* @param {ApiV1AuthApiAuthControllerResetPasswordRequest} requestParameters Request parameters.
|
|
3199
|
+
* @param {*} [options] Override http request option.
|
|
3200
|
+
* @throws {RequiredError}
|
|
3201
|
+
* @memberof ApiV1AuthApi
|
|
3202
|
+
*/
|
|
3203
|
+
public authControllerResetPassword(requestParameters: ApiV1AuthApiAuthControllerResetPasswordRequest, options?: RawAxiosRequestConfig) {
|
|
3204
|
+
return ApiV1AuthApiFp(this.configuration).authControllerResetPassword(requestParameters.resetPasswordDto, options).then((request) => request(this.axios, this.basePath));
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3207
|
+
/**
|
|
3208
|
+
*
|
|
3209
|
+
* @summary Verify email address with token
|
|
3210
|
+
* @param {ApiV1AuthApiAuthControllerVerifyEmailRequest} requestParameters Request parameters.
|
|
3211
|
+
* @param {*} [options] Override http request option.
|
|
3212
|
+
* @throws {RequiredError}
|
|
3213
|
+
* @memberof ApiV1AuthApi
|
|
3214
|
+
*/
|
|
3215
|
+
public authControllerVerifyEmail(requestParameters: ApiV1AuthApiAuthControllerVerifyEmailRequest, options?: RawAxiosRequestConfig) {
|
|
3216
|
+
return ApiV1AuthApiFp(this.configuration).authControllerVerifyEmail(requestParameters.verifyEmailDto, options).then((request) => request(this.axios, this.basePath));
|
|
3217
|
+
}
|
|
1713
3218
|
}
|
|
1714
3219
|
|
|
1715
3220
|
|
|
@@ -1957,6 +3462,36 @@ export class ApiV1SsoApi extends BaseAPI implements ApiV1SsoApiInterface {
|
|
|
1957
3462
|
*/
|
|
1958
3463
|
export const ApiV1UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1959
3464
|
return {
|
|
3465
|
+
/**
|
|
3466
|
+
*
|
|
3467
|
+
* @summary Soft delete current user account
|
|
3468
|
+
* @param {*} [options] Override http request option.
|
|
3469
|
+
* @throws {RequiredError}
|
|
3470
|
+
*/
|
|
3471
|
+
userControllerDeleteAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3472
|
+
const localVarPath = `/api/v1/user`;
|
|
3473
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3474
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3475
|
+
let baseOptions;
|
|
3476
|
+
if (configuration) {
|
|
3477
|
+
baseOptions = configuration.baseOptions;
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3481
|
+
const localVarHeaderParameter = {} as any;
|
|
3482
|
+
const localVarQueryParameter = {} as any;
|
|
3483
|
+
|
|
3484
|
+
|
|
3485
|
+
|
|
3486
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3488
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3489
|
+
|
|
3490
|
+
return {
|
|
3491
|
+
url: toPathString(localVarUrlObj),
|
|
3492
|
+
options: localVarRequestOptions,
|
|
3493
|
+
};
|
|
3494
|
+
},
|
|
1960
3495
|
/**
|
|
1961
3496
|
*
|
|
1962
3497
|
* @summary Get current user
|
|
@@ -1997,6 +3532,18 @@ export const ApiV1UserApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1997
3532
|
export const ApiV1UserApiFp = function(configuration?: Configuration) {
|
|
1998
3533
|
const localVarAxiosParamCreator = ApiV1UserApiAxiosParamCreator(configuration)
|
|
1999
3534
|
return {
|
|
3535
|
+
/**
|
|
3536
|
+
*
|
|
3537
|
+
* @summary Soft delete current user account
|
|
3538
|
+
* @param {*} [options] Override http request option.
|
|
3539
|
+
* @throws {RequiredError}
|
|
3540
|
+
*/
|
|
3541
|
+
async userControllerDeleteAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3542
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerDeleteAccount(options);
|
|
3543
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3544
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1UserApi.userControllerDeleteAccount']?.[localVarOperationServerIndex]?.url;
|
|
3545
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3546
|
+
},
|
|
2000
3547
|
/**
|
|
2001
3548
|
*
|
|
2002
3549
|
* @summary Get current user
|
|
@@ -2019,6 +3566,15 @@ export const ApiV1UserApiFp = function(configuration?: Configuration) {
|
|
|
2019
3566
|
export const ApiV1UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2020
3567
|
const localVarFp = ApiV1UserApiFp(configuration)
|
|
2021
3568
|
return {
|
|
3569
|
+
/**
|
|
3570
|
+
*
|
|
3571
|
+
* @summary Soft delete current user account
|
|
3572
|
+
* @param {*} [options] Override http request option.
|
|
3573
|
+
* @throws {RequiredError}
|
|
3574
|
+
*/
|
|
3575
|
+
userControllerDeleteAccount(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3576
|
+
return localVarFp.userControllerDeleteAccount(options).then((request) => request(axios, basePath));
|
|
3577
|
+
},
|
|
2022
3578
|
/**
|
|
2023
3579
|
*
|
|
2024
3580
|
* @summary Get current user
|
|
@@ -2037,6 +3593,15 @@ export const ApiV1UserApiFactory = function (configuration?: Configuration, base
|
|
|
2037
3593
|
* @interface ApiV1UserApi
|
|
2038
3594
|
*/
|
|
2039
3595
|
export interface ApiV1UserApiInterface {
|
|
3596
|
+
/**
|
|
3597
|
+
*
|
|
3598
|
+
* @summary Soft delete current user account
|
|
3599
|
+
* @param {*} [options] Override http request option.
|
|
3600
|
+
* @throws {RequiredError}
|
|
3601
|
+
* @memberof ApiV1UserApiInterface
|
|
3602
|
+
*/
|
|
3603
|
+
userControllerDeleteAccount(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3604
|
+
|
|
2040
3605
|
/**
|
|
2041
3606
|
*
|
|
2042
3607
|
* @summary Get current user
|
|
@@ -2055,6 +3620,17 @@ export interface ApiV1UserApiInterface {
|
|
|
2055
3620
|
* @extends {BaseAPI}
|
|
2056
3621
|
*/
|
|
2057
3622
|
export class ApiV1UserApi extends BaseAPI implements ApiV1UserApiInterface {
|
|
3623
|
+
/**
|
|
3624
|
+
*
|
|
3625
|
+
* @summary Soft delete current user account
|
|
3626
|
+
* @param {*} [options] Override http request option.
|
|
3627
|
+
* @throws {RequiredError}
|
|
3628
|
+
* @memberof ApiV1UserApi
|
|
3629
|
+
*/
|
|
3630
|
+
public userControllerDeleteAccount(options?: RawAxiosRequestConfig) {
|
|
3631
|
+
return ApiV1UserApiFp(this.configuration).userControllerDeleteAccount(options).then((request) => request(this.axios, this.basePath));
|
|
3632
|
+
}
|
|
3633
|
+
|
|
2058
3634
|
/**
|
|
2059
3635
|
*
|
|
2060
3636
|
* @summary Get current user
|