kleisterjs 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/.codacy.yml +6 -0
  2. package/.editorconfig +24 -0
  3. package/.github/issue_template.md +9 -0
  4. package/.github/pull_request_template.md +8 -0
  5. package/.github/renovate.json +6 -0
  6. package/.github/semantic.yml +23 -0
  7. package/.github/settings.yml +44 -0
  8. package/.github/workflows/automerge.yml +49 -0
  9. package/.github/workflows/flake.yml +56 -0
  10. package/.github/workflows/general.yml +39 -0
  11. package/.github/workflows/openapi.yml +74 -0
  12. package/.github/workflows/release.yml +56 -0
  13. package/.openapi-generator/FILES +94 -0
  14. package/.openapi-generator/VERSION +1 -0
  15. package/.openapi-generator-ignore +3 -0
  16. package/.releaserc +195 -0
  17. package/CHANGELOG.md +17 -0
  18. package/CONTRIBUTING.md +121 -0
  19. package/DCO +34 -0
  20. package/LICENSE +202 -0
  21. package/README.md +88 -0
  22. package/api/auth-api.ts +743 -0
  23. package/api/fabric-api.ts +943 -0
  24. package/api/forge-api.ts +942 -0
  25. package/api/minecraft-api.ts +949 -0
  26. package/api/mod-api.ts +4028 -0
  27. package/api/neoforge-api.ts +945 -0
  28. package/api/pack-api.ts +4007 -0
  29. package/api/profile-api.ts +431 -0
  30. package/api/quilt-api.ts +942 -0
  31. package/api/team-api.ts +3216 -0
  32. package/api/user-api.ts +3210 -0
  33. package/api.ts +25 -0
  34. package/base.ts +91 -0
  35. package/common.ts +203 -0
  36. package/configuration.ts +132 -0
  37. package/flake.lock +472 -0
  38. package/flake.nix +59 -0
  39. package/hack/generate-client.sh +36 -0
  40. package/hack/openapi/templates/README.mustache +93 -0
  41. package/hack/openapi/templates/gitignore +6 -0
  42. package/index.ts +17 -0
  43. package/model/auth-login.ts +33 -0
  44. package/model/auth-token.ts +33 -0
  45. package/model/auth-verify.ts +33 -0
  46. package/model/build-version-params.ts +33 -0
  47. package/model/build-version.ts +64 -0
  48. package/model/build-versions.ts +55 -0
  49. package/model/build.ts +169 -0
  50. package/model/builds.ts +46 -0
  51. package/model/fabric-build-params.ts +33 -0
  52. package/model/fabric-builds.ts +46 -0
  53. package/model/fabric.ts +45 -0
  54. package/model/fabrics.ts +37 -0
  55. package/model/forge-build-params.ts +33 -0
  56. package/model/forge-builds.ts +46 -0
  57. package/model/forge.ts +51 -0
  58. package/model/forges.ts +37 -0
  59. package/model/index.ts +73 -0
  60. package/model/minecraft-build-params.ts +33 -0
  61. package/model/minecraft-builds.ts +46 -0
  62. package/model/minecraft.ts +51 -0
  63. package/model/minecrafts.ts +37 -0
  64. package/model/mod-team-params.ts +42 -0
  65. package/model/mod-teams.ts +46 -0
  66. package/model/mod-user-params.ts +42 -0
  67. package/model/mod-users.ts +46 -0
  68. package/model/mod.ts +123 -0
  69. package/model/mods.ts +37 -0
  70. package/model/neoforge-build-params.ts +33 -0
  71. package/model/neoforge-builds.ts +46 -0
  72. package/model/neoforge.ts +51 -0
  73. package/model/neoforges.ts +37 -0
  74. package/model/notification.ts +43 -0
  75. package/model/pack-back.ts +91 -0
  76. package/model/pack-icon.ts +91 -0
  77. package/model/pack-logo.ts +91 -0
  78. package/model/pack-team-params.ts +42 -0
  79. package/model/pack-teams.ts +46 -0
  80. package/model/pack-user-params.ts +42 -0
  81. package/model/pack-users.ts +46 -0
  82. package/model/pack.ts +142 -0
  83. package/model/packs.ts +37 -0
  84. package/model/profile.ts +118 -0
  85. package/model/quilt-build-params.ts +33 -0
  86. package/model/quilt-builds.ts +46 -0
  87. package/model/quilt.ts +45 -0
  88. package/model/quilts.ts +37 -0
  89. package/model/team-mod-params.ts +42 -0
  90. package/model/team-mod.ts +79 -0
  91. package/model/team-mods.ts +46 -0
  92. package/model/team-pack-params.ts +42 -0
  93. package/model/team-pack.ts +79 -0
  94. package/model/team-packs.ts +46 -0
  95. package/model/team-user-params.ts +42 -0
  96. package/model/team-users.ts +46 -0
  97. package/model/team.ts +79 -0
  98. package/model/teams.ts +37 -0
  99. package/model/user-auth.ts +45 -0
  100. package/model/user-mod-params.ts +42 -0
  101. package/model/user-mod.ts +79 -0
  102. package/model/user-mods.ts +46 -0
  103. package/model/user-pack-params.ts +42 -0
  104. package/model/user-pack.ts +79 -0
  105. package/model/user-packs.ts +46 -0
  106. package/model/user-team-params.ts +42 -0
  107. package/model/user-team.ts +79 -0
  108. package/model/user-teams.ts +46 -0
  109. package/model/user.ts +118 -0
  110. package/model/users.ts +37 -0
  111. package/model/validation.ts +33 -0
  112. package/model/version-build-params.ts +33 -0
  113. package/model/version-builds.ts +55 -0
  114. package/model/version-file.ts +91 -0
  115. package/model/version.ts +91 -0
  116. package/model/versions.ts +46 -0
  117. package/openapi.yml +12 -0
  118. package/openapitools.json +7 -0
  119. package/package.json +41 -0
  120. package/tsconfig.esm.json +7 -0
  121. package/tsconfig.json +18 -0
@@ -0,0 +1,3210 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Kleister OpenAPI
5
+ * API definition for Kleister, manage mod packs for Minecraft
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0-alpha1
8
+ * Contact: kleister@webhippie.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import type { Configuration } from "../configuration";
16
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
17
+ import globalAxios from "axios";
18
+ // URLSearchParams not necessarily used
19
+ // @ts-ignore
20
+ import { URL, URLSearchParams } from "url";
21
+ // Some imports not used depending on template conditions
22
+ // @ts-ignore
23
+ import {
24
+ DUMMY_BASE_URL,
25
+ assertParamExists,
26
+ setApiKeyToObject,
27
+ setBasicAuthToObject,
28
+ setBearerAuthToObject,
29
+ setOAuthToObject,
30
+ setSearchParams,
31
+ serializeDataIfNeeded,
32
+ toPathString,
33
+ createRequestFunction,
34
+ } from "../common";
35
+ // @ts-ignore
36
+ import {
37
+ BASE_PATH,
38
+ COLLECTION_FORMATS,
39
+ type RequestArgs,
40
+ BaseAPI,
41
+ RequiredError,
42
+ operationServerMap,
43
+ } from "../base";
44
+ // @ts-ignore
45
+ import type { Notification } from "../model";
46
+ // @ts-ignore
47
+ import type { User } from "../model";
48
+ // @ts-ignore
49
+ import type { UserModParams } from "../model";
50
+ // @ts-ignore
51
+ import type { UserMods } from "../model";
52
+ // @ts-ignore
53
+ import type { UserPackParams } from "../model";
54
+ // @ts-ignore
55
+ import type { UserPacks } from "../model";
56
+ // @ts-ignore
57
+ import type { UserTeamParams } from "../model";
58
+ // @ts-ignore
59
+ import type { UserTeams } from "../model";
60
+ // @ts-ignore
61
+ import type { Users } from "../model";
62
+ /**
63
+ * UserApi - axios parameter creator
64
+ * @export
65
+ */
66
+ export const UserApiAxiosParamCreator = function (
67
+ configuration?: Configuration,
68
+ ) {
69
+ return {
70
+ /**
71
+ *
72
+ * @summary Attach a mod to user
73
+ * @param {string} userId A user identifier or slug
74
+ * @param {UserModParams} userModParams The user mod data to attach
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ attachUserToMod: async (
79
+ userId: string,
80
+ userModParams: UserModParams,
81
+ options: RawAxiosRequestConfig = {},
82
+ ): Promise<RequestArgs> => {
83
+ // verify required parameter 'userId' is not null or undefined
84
+ assertParamExists("attachUserToMod", "userId", userId);
85
+ // verify required parameter 'userModParams' is not null or undefined
86
+ assertParamExists("attachUserToMod", "userModParams", userModParams);
87
+ const localVarPath = `/users/{user_id}/mods`.replace(
88
+ `{${"user_id"}}`,
89
+ encodeURIComponent(String(userId)),
90
+ );
91
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
92
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
93
+ let baseOptions;
94
+ if (configuration) {
95
+ baseOptions = configuration.baseOptions;
96
+ }
97
+
98
+ const localVarRequestOptions = {
99
+ method: "POST",
100
+ ...baseOptions,
101
+ ...options,
102
+ };
103
+ const localVarHeaderParameter = {} as any;
104
+ const localVarQueryParameter = {} as any;
105
+
106
+ // authentication Cookie required
107
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
108
+
109
+ // authentication Basic required
110
+ // http basic authentication required
111
+ setBasicAuthToObject(localVarRequestOptions, configuration);
112
+
113
+ // authentication Header required
114
+ await setApiKeyToObject(
115
+ localVarHeaderParameter,
116
+ "X-API-Key",
117
+ configuration,
118
+ );
119
+
120
+ // authentication Bearer required
121
+ // http bearer authentication required
122
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
123
+
124
+ localVarHeaderParameter["Content-Type"] = "application/json";
125
+
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions =
128
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = {
130
+ ...localVarHeaderParameter,
131
+ ...headersFromBaseOptions,
132
+ ...options.headers,
133
+ };
134
+ localVarRequestOptions.data = serializeDataIfNeeded(
135
+ userModParams,
136
+ localVarRequestOptions,
137
+ configuration,
138
+ );
139
+
140
+ return {
141
+ url: toPathString(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ };
144
+ },
145
+ /**
146
+ *
147
+ * @summary Attach a pack to user
148
+ * @param {string} userId A user identifier or slug
149
+ * @param {UserPackParams} userPackParams The user pack data to attach
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ attachUserToPack: async (
154
+ userId: string,
155
+ userPackParams: UserPackParams,
156
+ options: RawAxiosRequestConfig = {},
157
+ ): Promise<RequestArgs> => {
158
+ // verify required parameter 'userId' is not null or undefined
159
+ assertParamExists("attachUserToPack", "userId", userId);
160
+ // verify required parameter 'userPackParams' is not null or undefined
161
+ assertParamExists("attachUserToPack", "userPackParams", userPackParams);
162
+ const localVarPath = `/users/{user_id}/packs`.replace(
163
+ `{${"user_id"}}`,
164
+ encodeURIComponent(String(userId)),
165
+ );
166
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
167
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
168
+ let baseOptions;
169
+ if (configuration) {
170
+ baseOptions = configuration.baseOptions;
171
+ }
172
+
173
+ const localVarRequestOptions = {
174
+ method: "POST",
175
+ ...baseOptions,
176
+ ...options,
177
+ };
178
+ const localVarHeaderParameter = {} as any;
179
+ const localVarQueryParameter = {} as any;
180
+
181
+ // authentication Cookie required
182
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
183
+
184
+ // authentication Basic required
185
+ // http basic authentication required
186
+ setBasicAuthToObject(localVarRequestOptions, configuration);
187
+
188
+ // authentication Header required
189
+ await setApiKeyToObject(
190
+ localVarHeaderParameter,
191
+ "X-API-Key",
192
+ configuration,
193
+ );
194
+
195
+ // authentication Bearer required
196
+ // http bearer authentication required
197
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
198
+
199
+ localVarHeaderParameter["Content-Type"] = "application/json";
200
+
201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions =
203
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
204
+ localVarRequestOptions.headers = {
205
+ ...localVarHeaderParameter,
206
+ ...headersFromBaseOptions,
207
+ ...options.headers,
208
+ };
209
+ localVarRequestOptions.data = serializeDataIfNeeded(
210
+ userPackParams,
211
+ localVarRequestOptions,
212
+ configuration,
213
+ );
214
+
215
+ return {
216
+ url: toPathString(localVarUrlObj),
217
+ options: localVarRequestOptions,
218
+ };
219
+ },
220
+ /**
221
+ *
222
+ * @summary Attach a team to user
223
+ * @param {string} userId A user identifier or slug
224
+ * @param {UserTeamParams} userTeamParams The user team data to attach
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ attachUserToTeam: async (
229
+ userId: string,
230
+ userTeamParams: UserTeamParams,
231
+ options: RawAxiosRequestConfig = {},
232
+ ): Promise<RequestArgs> => {
233
+ // verify required parameter 'userId' is not null or undefined
234
+ assertParamExists("attachUserToTeam", "userId", userId);
235
+ // verify required parameter 'userTeamParams' is not null or undefined
236
+ assertParamExists("attachUserToTeam", "userTeamParams", userTeamParams);
237
+ const localVarPath = `/users/{user_id}/teams`.replace(
238
+ `{${"user_id"}}`,
239
+ encodeURIComponent(String(userId)),
240
+ );
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ }
247
+
248
+ const localVarRequestOptions = {
249
+ method: "POST",
250
+ ...baseOptions,
251
+ ...options,
252
+ };
253
+ const localVarHeaderParameter = {} as any;
254
+ const localVarQueryParameter = {} as any;
255
+
256
+ // authentication Cookie required
257
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
258
+
259
+ // authentication Basic required
260
+ // http basic authentication required
261
+ setBasicAuthToObject(localVarRequestOptions, configuration);
262
+
263
+ // authentication Header required
264
+ await setApiKeyToObject(
265
+ localVarHeaderParameter,
266
+ "X-API-Key",
267
+ configuration,
268
+ );
269
+
270
+ // authentication Bearer required
271
+ // http bearer authentication required
272
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
273
+
274
+ localVarHeaderParameter["Content-Type"] = "application/json";
275
+
276
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
277
+ let headersFromBaseOptions =
278
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
279
+ localVarRequestOptions.headers = {
280
+ ...localVarHeaderParameter,
281
+ ...headersFromBaseOptions,
282
+ ...options.headers,
283
+ };
284
+ localVarRequestOptions.data = serializeDataIfNeeded(
285
+ userTeamParams,
286
+ localVarRequestOptions,
287
+ configuration,
288
+ );
289
+
290
+ return {
291
+ url: toPathString(localVarUrlObj),
292
+ options: localVarRequestOptions,
293
+ };
294
+ },
295
+ /**
296
+ *
297
+ * @summary Create a new user
298
+ * @param {User} user The user data to create
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ createUser: async (
303
+ user: User,
304
+ options: RawAxiosRequestConfig = {},
305
+ ): Promise<RequestArgs> => {
306
+ // verify required parameter 'user' is not null or undefined
307
+ assertParamExists("createUser", "user", user);
308
+ const localVarPath = `/users`;
309
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
310
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
311
+ let baseOptions;
312
+ if (configuration) {
313
+ baseOptions = configuration.baseOptions;
314
+ }
315
+
316
+ const localVarRequestOptions = {
317
+ method: "POST",
318
+ ...baseOptions,
319
+ ...options,
320
+ };
321
+ const localVarHeaderParameter = {} as any;
322
+ const localVarQueryParameter = {} as any;
323
+
324
+ // authentication Cookie required
325
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
326
+
327
+ // authentication Basic required
328
+ // http basic authentication required
329
+ setBasicAuthToObject(localVarRequestOptions, configuration);
330
+
331
+ // authentication Header required
332
+ await setApiKeyToObject(
333
+ localVarHeaderParameter,
334
+ "X-API-Key",
335
+ configuration,
336
+ );
337
+
338
+ // authentication Bearer required
339
+ // http bearer authentication required
340
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
341
+
342
+ localVarHeaderParameter["Content-Type"] = "application/json";
343
+
344
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
345
+ let headersFromBaseOptions =
346
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
347
+ localVarRequestOptions.headers = {
348
+ ...localVarHeaderParameter,
349
+ ...headersFromBaseOptions,
350
+ ...options.headers,
351
+ };
352
+ localVarRequestOptions.data = serializeDataIfNeeded(
353
+ user,
354
+ localVarRequestOptions,
355
+ configuration,
356
+ );
357
+
358
+ return {
359
+ url: toPathString(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ };
362
+ },
363
+ /**
364
+ *
365
+ * @summary Delete a specific user
366
+ * @param {string} userId A user identifier or slug
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ deleteUser: async (
371
+ userId: string,
372
+ options: RawAxiosRequestConfig = {},
373
+ ): Promise<RequestArgs> => {
374
+ // verify required parameter 'userId' is not null or undefined
375
+ assertParamExists("deleteUser", "userId", userId);
376
+ const localVarPath = `/users/{user_id}`.replace(
377
+ `{${"user_id"}}`,
378
+ encodeURIComponent(String(userId)),
379
+ );
380
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
381
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
382
+ let baseOptions;
383
+ if (configuration) {
384
+ baseOptions = configuration.baseOptions;
385
+ }
386
+
387
+ const localVarRequestOptions = {
388
+ method: "DELETE",
389
+ ...baseOptions,
390
+ ...options,
391
+ };
392
+ const localVarHeaderParameter = {} as any;
393
+ const localVarQueryParameter = {} as any;
394
+
395
+ // authentication Cookie required
396
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
397
+
398
+ // authentication Basic required
399
+ // http basic authentication required
400
+ setBasicAuthToObject(localVarRequestOptions, configuration);
401
+
402
+ // authentication Header required
403
+ await setApiKeyToObject(
404
+ localVarHeaderParameter,
405
+ "X-API-Key",
406
+ configuration,
407
+ );
408
+
409
+ // authentication Bearer required
410
+ // http bearer authentication required
411
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
412
+
413
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
414
+ let headersFromBaseOptions =
415
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
416
+ localVarRequestOptions.headers = {
417
+ ...localVarHeaderParameter,
418
+ ...headersFromBaseOptions,
419
+ ...options.headers,
420
+ };
421
+
422
+ return {
423
+ url: toPathString(localVarUrlObj),
424
+ options: localVarRequestOptions,
425
+ };
426
+ },
427
+ /**
428
+ *
429
+ * @summary Unlink a mod from user
430
+ * @param {string} userId A user identifier or slug
431
+ * @param {UserModParams} userModParams The user mod data to unlink
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ deleteUserFromMod: async (
436
+ userId: string,
437
+ userModParams: UserModParams,
438
+ options: RawAxiosRequestConfig = {},
439
+ ): Promise<RequestArgs> => {
440
+ // verify required parameter 'userId' is not null or undefined
441
+ assertParamExists("deleteUserFromMod", "userId", userId);
442
+ // verify required parameter 'userModParams' is not null or undefined
443
+ assertParamExists("deleteUserFromMod", "userModParams", userModParams);
444
+ const localVarPath = `/users/{user_id}/mods`.replace(
445
+ `{${"user_id"}}`,
446
+ encodeURIComponent(String(userId)),
447
+ );
448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
449
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
450
+ let baseOptions;
451
+ if (configuration) {
452
+ baseOptions = configuration.baseOptions;
453
+ }
454
+
455
+ const localVarRequestOptions = {
456
+ method: "DELETE",
457
+ ...baseOptions,
458
+ ...options,
459
+ };
460
+ const localVarHeaderParameter = {} as any;
461
+ const localVarQueryParameter = {} as any;
462
+
463
+ // authentication Cookie required
464
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
465
+
466
+ // authentication Basic required
467
+ // http basic authentication required
468
+ setBasicAuthToObject(localVarRequestOptions, configuration);
469
+
470
+ // authentication Header required
471
+ await setApiKeyToObject(
472
+ localVarHeaderParameter,
473
+ "X-API-Key",
474
+ configuration,
475
+ );
476
+
477
+ // authentication Bearer required
478
+ // http bearer authentication required
479
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
480
+
481
+ localVarHeaderParameter["Content-Type"] = "application/json";
482
+
483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
484
+ let headersFromBaseOptions =
485
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
+ localVarRequestOptions.headers = {
487
+ ...localVarHeaderParameter,
488
+ ...headersFromBaseOptions,
489
+ ...options.headers,
490
+ };
491
+ localVarRequestOptions.data = serializeDataIfNeeded(
492
+ userModParams,
493
+ localVarRequestOptions,
494
+ configuration,
495
+ );
496
+
497
+ return {
498
+ url: toPathString(localVarUrlObj),
499
+ options: localVarRequestOptions,
500
+ };
501
+ },
502
+ /**
503
+ *
504
+ * @summary Unlink a pack from user
505
+ * @param {string} userId A user identifier or slug
506
+ * @param {UserPackParams} userPackParams The user pack data to unlink
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ deleteUserFromPack: async (
511
+ userId: string,
512
+ userPackParams: UserPackParams,
513
+ options: RawAxiosRequestConfig = {},
514
+ ): Promise<RequestArgs> => {
515
+ // verify required parameter 'userId' is not null or undefined
516
+ assertParamExists("deleteUserFromPack", "userId", userId);
517
+ // verify required parameter 'userPackParams' is not null or undefined
518
+ assertParamExists("deleteUserFromPack", "userPackParams", userPackParams);
519
+ const localVarPath = `/users/{user_id}/packs`.replace(
520
+ `{${"user_id"}}`,
521
+ encodeURIComponent(String(userId)),
522
+ );
523
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
524
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
525
+ let baseOptions;
526
+ if (configuration) {
527
+ baseOptions = configuration.baseOptions;
528
+ }
529
+
530
+ const localVarRequestOptions = {
531
+ method: "DELETE",
532
+ ...baseOptions,
533
+ ...options,
534
+ };
535
+ const localVarHeaderParameter = {} as any;
536
+ const localVarQueryParameter = {} as any;
537
+
538
+ // authentication Cookie required
539
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
540
+
541
+ // authentication Basic required
542
+ // http basic authentication required
543
+ setBasicAuthToObject(localVarRequestOptions, configuration);
544
+
545
+ // authentication Header required
546
+ await setApiKeyToObject(
547
+ localVarHeaderParameter,
548
+ "X-API-Key",
549
+ configuration,
550
+ );
551
+
552
+ // authentication Bearer required
553
+ // http bearer authentication required
554
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
555
+
556
+ localVarHeaderParameter["Content-Type"] = "application/json";
557
+
558
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
559
+ let headersFromBaseOptions =
560
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
561
+ localVarRequestOptions.headers = {
562
+ ...localVarHeaderParameter,
563
+ ...headersFromBaseOptions,
564
+ ...options.headers,
565
+ };
566
+ localVarRequestOptions.data = serializeDataIfNeeded(
567
+ userPackParams,
568
+ localVarRequestOptions,
569
+ configuration,
570
+ );
571
+
572
+ return {
573
+ url: toPathString(localVarUrlObj),
574
+ options: localVarRequestOptions,
575
+ };
576
+ },
577
+ /**
578
+ *
579
+ * @summary Unlink a team from user
580
+ * @param {string} userId A user identifier or slug
581
+ * @param {UserTeamParams} userTeamParams The user team data to unlink
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ deleteUserFromTeam: async (
586
+ userId: string,
587
+ userTeamParams: UserTeamParams,
588
+ options: RawAxiosRequestConfig = {},
589
+ ): Promise<RequestArgs> => {
590
+ // verify required parameter 'userId' is not null or undefined
591
+ assertParamExists("deleteUserFromTeam", "userId", userId);
592
+ // verify required parameter 'userTeamParams' is not null or undefined
593
+ assertParamExists("deleteUserFromTeam", "userTeamParams", userTeamParams);
594
+ const localVarPath = `/users/{user_id}/teams`.replace(
595
+ `{${"user_id"}}`,
596
+ encodeURIComponent(String(userId)),
597
+ );
598
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
599
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
600
+ let baseOptions;
601
+ if (configuration) {
602
+ baseOptions = configuration.baseOptions;
603
+ }
604
+
605
+ const localVarRequestOptions = {
606
+ method: "DELETE",
607
+ ...baseOptions,
608
+ ...options,
609
+ };
610
+ const localVarHeaderParameter = {} as any;
611
+ const localVarQueryParameter = {} as any;
612
+
613
+ // authentication Cookie required
614
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
615
+
616
+ // authentication Basic required
617
+ // http basic authentication required
618
+ setBasicAuthToObject(localVarRequestOptions, configuration);
619
+
620
+ // authentication Header required
621
+ await setApiKeyToObject(
622
+ localVarHeaderParameter,
623
+ "X-API-Key",
624
+ configuration,
625
+ );
626
+
627
+ // authentication Bearer required
628
+ // http bearer authentication required
629
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
630
+
631
+ localVarHeaderParameter["Content-Type"] = "application/json";
632
+
633
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
634
+ let headersFromBaseOptions =
635
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
636
+ localVarRequestOptions.headers = {
637
+ ...localVarHeaderParameter,
638
+ ...headersFromBaseOptions,
639
+ ...options.headers,
640
+ };
641
+ localVarRequestOptions.data = serializeDataIfNeeded(
642
+ userTeamParams,
643
+ localVarRequestOptions,
644
+ configuration,
645
+ );
646
+
647
+ return {
648
+ url: toPathString(localVarUrlObj),
649
+ options: localVarRequestOptions,
650
+ };
651
+ },
652
+ /**
653
+ *
654
+ * @summary Fetch all mods attached to user
655
+ * @param {string} userId A user identifier or slug
656
+ * @param {string} [search] Search query
657
+ * @param {ListUserModsSortEnum} [sort] Sorting column
658
+ * @param {ListUserModsOrderEnum} [order] Sorting order
659
+ * @param {number} [limit] Paging limit
660
+ * @param {number} [offset] Paging offset
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ listUserMods: async (
665
+ userId: string,
666
+ search?: string,
667
+ sort?: ListUserModsSortEnum,
668
+ order?: ListUserModsOrderEnum,
669
+ limit?: number,
670
+ offset?: number,
671
+ options: RawAxiosRequestConfig = {},
672
+ ): Promise<RequestArgs> => {
673
+ // verify required parameter 'userId' is not null or undefined
674
+ assertParamExists("listUserMods", "userId", userId);
675
+ const localVarPath = `/users/{user_id}/mods`.replace(
676
+ `{${"user_id"}}`,
677
+ encodeURIComponent(String(userId)),
678
+ );
679
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
680
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
681
+ let baseOptions;
682
+ if (configuration) {
683
+ baseOptions = configuration.baseOptions;
684
+ }
685
+
686
+ const localVarRequestOptions = {
687
+ method: "GET",
688
+ ...baseOptions,
689
+ ...options,
690
+ };
691
+ const localVarHeaderParameter = {} as any;
692
+ const localVarQueryParameter = {} as any;
693
+
694
+ // authentication Cookie required
695
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
696
+
697
+ // authentication Basic required
698
+ // http basic authentication required
699
+ setBasicAuthToObject(localVarRequestOptions, configuration);
700
+
701
+ // authentication Header required
702
+ await setApiKeyToObject(
703
+ localVarHeaderParameter,
704
+ "X-API-Key",
705
+ configuration,
706
+ );
707
+
708
+ // authentication Bearer required
709
+ // http bearer authentication required
710
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
711
+
712
+ if (search !== undefined) {
713
+ localVarQueryParameter["search"] = search;
714
+ }
715
+
716
+ if (sort !== undefined) {
717
+ localVarQueryParameter["sort"] = sort;
718
+ }
719
+
720
+ if (order !== undefined) {
721
+ localVarQueryParameter["order"] = order;
722
+ }
723
+
724
+ if (limit !== undefined) {
725
+ localVarQueryParameter["limit"] = limit;
726
+ }
727
+
728
+ if (offset !== undefined) {
729
+ localVarQueryParameter["offset"] = offset;
730
+ }
731
+
732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
733
+ let headersFromBaseOptions =
734
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
735
+ localVarRequestOptions.headers = {
736
+ ...localVarHeaderParameter,
737
+ ...headersFromBaseOptions,
738
+ ...options.headers,
739
+ };
740
+
741
+ return {
742
+ url: toPathString(localVarUrlObj),
743
+ options: localVarRequestOptions,
744
+ };
745
+ },
746
+ /**
747
+ *
748
+ * @summary Fetch all packs attached to user
749
+ * @param {string} userId A user identifier or slug
750
+ * @param {string} [search] Search query
751
+ * @param {ListUserPacksSortEnum} [sort] Sorting column
752
+ * @param {ListUserPacksOrderEnum} [order] Sorting order
753
+ * @param {number} [limit] Paging limit
754
+ * @param {number} [offset] Paging offset
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ listUserPacks: async (
759
+ userId: string,
760
+ search?: string,
761
+ sort?: ListUserPacksSortEnum,
762
+ order?: ListUserPacksOrderEnum,
763
+ limit?: number,
764
+ offset?: number,
765
+ options: RawAxiosRequestConfig = {},
766
+ ): Promise<RequestArgs> => {
767
+ // verify required parameter 'userId' is not null or undefined
768
+ assertParamExists("listUserPacks", "userId", userId);
769
+ const localVarPath = `/users/{user_id}/packs`.replace(
770
+ `{${"user_id"}}`,
771
+ encodeURIComponent(String(userId)),
772
+ );
773
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
774
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
775
+ let baseOptions;
776
+ if (configuration) {
777
+ baseOptions = configuration.baseOptions;
778
+ }
779
+
780
+ const localVarRequestOptions = {
781
+ method: "GET",
782
+ ...baseOptions,
783
+ ...options,
784
+ };
785
+ const localVarHeaderParameter = {} as any;
786
+ const localVarQueryParameter = {} as any;
787
+
788
+ // authentication Cookie required
789
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
790
+
791
+ // authentication Basic required
792
+ // http basic authentication required
793
+ setBasicAuthToObject(localVarRequestOptions, configuration);
794
+
795
+ // authentication Header required
796
+ await setApiKeyToObject(
797
+ localVarHeaderParameter,
798
+ "X-API-Key",
799
+ configuration,
800
+ );
801
+
802
+ // authentication Bearer required
803
+ // http bearer authentication required
804
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
805
+
806
+ if (search !== undefined) {
807
+ localVarQueryParameter["search"] = search;
808
+ }
809
+
810
+ if (sort !== undefined) {
811
+ localVarQueryParameter["sort"] = sort;
812
+ }
813
+
814
+ if (order !== undefined) {
815
+ localVarQueryParameter["order"] = order;
816
+ }
817
+
818
+ if (limit !== undefined) {
819
+ localVarQueryParameter["limit"] = limit;
820
+ }
821
+
822
+ if (offset !== undefined) {
823
+ localVarQueryParameter["offset"] = offset;
824
+ }
825
+
826
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
827
+ let headersFromBaseOptions =
828
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
829
+ localVarRequestOptions.headers = {
830
+ ...localVarHeaderParameter,
831
+ ...headersFromBaseOptions,
832
+ ...options.headers,
833
+ };
834
+
835
+ return {
836
+ url: toPathString(localVarUrlObj),
837
+ options: localVarRequestOptions,
838
+ };
839
+ },
840
+ /**
841
+ *
842
+ * @summary Fetch all teams attached to user
843
+ * @param {string} userId A user identifier or slug
844
+ * @param {string} [search] Search query
845
+ * @param {ListUserTeamsSortEnum} [sort] Sorting column
846
+ * @param {ListUserTeamsOrderEnum} [order] Sorting order
847
+ * @param {number} [limit] Paging limit
848
+ * @param {number} [offset] Paging offset
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ listUserTeams: async (
853
+ userId: string,
854
+ search?: string,
855
+ sort?: ListUserTeamsSortEnum,
856
+ order?: ListUserTeamsOrderEnum,
857
+ limit?: number,
858
+ offset?: number,
859
+ options: RawAxiosRequestConfig = {},
860
+ ): Promise<RequestArgs> => {
861
+ // verify required parameter 'userId' is not null or undefined
862
+ assertParamExists("listUserTeams", "userId", userId);
863
+ const localVarPath = `/users/{user_id}/teams`.replace(
864
+ `{${"user_id"}}`,
865
+ encodeURIComponent(String(userId)),
866
+ );
867
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
868
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
869
+ let baseOptions;
870
+ if (configuration) {
871
+ baseOptions = configuration.baseOptions;
872
+ }
873
+
874
+ const localVarRequestOptions = {
875
+ method: "GET",
876
+ ...baseOptions,
877
+ ...options,
878
+ };
879
+ const localVarHeaderParameter = {} as any;
880
+ const localVarQueryParameter = {} as any;
881
+
882
+ // authentication Cookie required
883
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
884
+
885
+ // authentication Basic required
886
+ // http basic authentication required
887
+ setBasicAuthToObject(localVarRequestOptions, configuration);
888
+
889
+ // authentication Header required
890
+ await setApiKeyToObject(
891
+ localVarHeaderParameter,
892
+ "X-API-Key",
893
+ configuration,
894
+ );
895
+
896
+ // authentication Bearer required
897
+ // http bearer authentication required
898
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
899
+
900
+ if (search !== undefined) {
901
+ localVarQueryParameter["search"] = search;
902
+ }
903
+
904
+ if (sort !== undefined) {
905
+ localVarQueryParameter["sort"] = sort;
906
+ }
907
+
908
+ if (order !== undefined) {
909
+ localVarQueryParameter["order"] = order;
910
+ }
911
+
912
+ if (limit !== undefined) {
913
+ localVarQueryParameter["limit"] = limit;
914
+ }
915
+
916
+ if (offset !== undefined) {
917
+ localVarQueryParameter["offset"] = offset;
918
+ }
919
+
920
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
921
+ let headersFromBaseOptions =
922
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
923
+ localVarRequestOptions.headers = {
924
+ ...localVarHeaderParameter,
925
+ ...headersFromBaseOptions,
926
+ ...options.headers,
927
+ };
928
+
929
+ return {
930
+ url: toPathString(localVarUrlObj),
931
+ options: localVarRequestOptions,
932
+ };
933
+ },
934
+ /**
935
+ *
936
+ * @summary Fetch all available users
937
+ * @param {string} [search] Search query
938
+ * @param {ListUsersSortEnum} [sort] Sorting column
939
+ * @param {ListUsersOrderEnum} [order] Sorting order
940
+ * @param {number} [limit] Paging limit
941
+ * @param {number} [offset] Paging offset
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ */
945
+ listUsers: async (
946
+ search?: string,
947
+ sort?: ListUsersSortEnum,
948
+ order?: ListUsersOrderEnum,
949
+ limit?: number,
950
+ offset?: number,
951
+ options: RawAxiosRequestConfig = {},
952
+ ): Promise<RequestArgs> => {
953
+ const localVarPath = `/users`;
954
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
955
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
956
+ let baseOptions;
957
+ if (configuration) {
958
+ baseOptions = configuration.baseOptions;
959
+ }
960
+
961
+ const localVarRequestOptions = {
962
+ method: "GET",
963
+ ...baseOptions,
964
+ ...options,
965
+ };
966
+ const localVarHeaderParameter = {} as any;
967
+ const localVarQueryParameter = {} as any;
968
+
969
+ // authentication Cookie required
970
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
971
+
972
+ // authentication Basic required
973
+ // http basic authentication required
974
+ setBasicAuthToObject(localVarRequestOptions, configuration);
975
+
976
+ // authentication Header required
977
+ await setApiKeyToObject(
978
+ localVarHeaderParameter,
979
+ "X-API-Key",
980
+ configuration,
981
+ );
982
+
983
+ // authentication Bearer required
984
+ // http bearer authentication required
985
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
986
+
987
+ if (search !== undefined) {
988
+ localVarQueryParameter["search"] = search;
989
+ }
990
+
991
+ if (sort !== undefined) {
992
+ localVarQueryParameter["sort"] = sort;
993
+ }
994
+
995
+ if (order !== undefined) {
996
+ localVarQueryParameter["order"] = order;
997
+ }
998
+
999
+ if (limit !== undefined) {
1000
+ localVarQueryParameter["limit"] = limit;
1001
+ }
1002
+
1003
+ if (offset !== undefined) {
1004
+ localVarQueryParameter["offset"] = offset;
1005
+ }
1006
+
1007
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1008
+ let headersFromBaseOptions =
1009
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
1010
+ localVarRequestOptions.headers = {
1011
+ ...localVarHeaderParameter,
1012
+ ...headersFromBaseOptions,
1013
+ ...options.headers,
1014
+ };
1015
+
1016
+ return {
1017
+ url: toPathString(localVarUrlObj),
1018
+ options: localVarRequestOptions,
1019
+ };
1020
+ },
1021
+ /**
1022
+ *
1023
+ * @summary Update mod perms for user
1024
+ * @param {string} userId A user identifier or slug
1025
+ * @param {UserModParams} userModParams The user mod data to update
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ permitUserMod: async (
1030
+ userId: string,
1031
+ userModParams: UserModParams,
1032
+ options: RawAxiosRequestConfig = {},
1033
+ ): Promise<RequestArgs> => {
1034
+ // verify required parameter 'userId' is not null or undefined
1035
+ assertParamExists("permitUserMod", "userId", userId);
1036
+ // verify required parameter 'userModParams' is not null or undefined
1037
+ assertParamExists("permitUserMod", "userModParams", userModParams);
1038
+ const localVarPath = `/users/{user_id}/mods`.replace(
1039
+ `{${"user_id"}}`,
1040
+ encodeURIComponent(String(userId)),
1041
+ );
1042
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1043
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1044
+ let baseOptions;
1045
+ if (configuration) {
1046
+ baseOptions = configuration.baseOptions;
1047
+ }
1048
+
1049
+ const localVarRequestOptions = {
1050
+ method: "PUT",
1051
+ ...baseOptions,
1052
+ ...options,
1053
+ };
1054
+ const localVarHeaderParameter = {} as any;
1055
+ const localVarQueryParameter = {} as any;
1056
+
1057
+ // authentication Cookie required
1058
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1059
+
1060
+ // authentication Basic required
1061
+ // http basic authentication required
1062
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1063
+
1064
+ // authentication Header required
1065
+ await setApiKeyToObject(
1066
+ localVarHeaderParameter,
1067
+ "X-API-Key",
1068
+ configuration,
1069
+ );
1070
+
1071
+ // authentication Bearer required
1072
+ // http bearer authentication required
1073
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1074
+
1075
+ localVarHeaderParameter["Content-Type"] = "application/json";
1076
+
1077
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1078
+ let headersFromBaseOptions =
1079
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
1080
+ localVarRequestOptions.headers = {
1081
+ ...localVarHeaderParameter,
1082
+ ...headersFromBaseOptions,
1083
+ ...options.headers,
1084
+ };
1085
+ localVarRequestOptions.data = serializeDataIfNeeded(
1086
+ userModParams,
1087
+ localVarRequestOptions,
1088
+ configuration,
1089
+ );
1090
+
1091
+ return {
1092
+ url: toPathString(localVarUrlObj),
1093
+ options: localVarRequestOptions,
1094
+ };
1095
+ },
1096
+ /**
1097
+ *
1098
+ * @summary Update pack perms for user
1099
+ * @param {string} userId A user identifier or slug
1100
+ * @param {UserPackParams} userPackParams The user pack data to update
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ permitUserPack: async (
1105
+ userId: string,
1106
+ userPackParams: UserPackParams,
1107
+ options: RawAxiosRequestConfig = {},
1108
+ ): Promise<RequestArgs> => {
1109
+ // verify required parameter 'userId' is not null or undefined
1110
+ assertParamExists("permitUserPack", "userId", userId);
1111
+ // verify required parameter 'userPackParams' is not null or undefined
1112
+ assertParamExists("permitUserPack", "userPackParams", userPackParams);
1113
+ const localVarPath = `/users/{user_id}/packs`.replace(
1114
+ `{${"user_id"}}`,
1115
+ encodeURIComponent(String(userId)),
1116
+ );
1117
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1119
+ let baseOptions;
1120
+ if (configuration) {
1121
+ baseOptions = configuration.baseOptions;
1122
+ }
1123
+
1124
+ const localVarRequestOptions = {
1125
+ method: "PUT",
1126
+ ...baseOptions,
1127
+ ...options,
1128
+ };
1129
+ const localVarHeaderParameter = {} as any;
1130
+ const localVarQueryParameter = {} as any;
1131
+
1132
+ // authentication Cookie required
1133
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1134
+
1135
+ // authentication Basic required
1136
+ // http basic authentication required
1137
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1138
+
1139
+ // authentication Header required
1140
+ await setApiKeyToObject(
1141
+ localVarHeaderParameter,
1142
+ "X-API-Key",
1143
+ configuration,
1144
+ );
1145
+
1146
+ // authentication Bearer required
1147
+ // http bearer authentication required
1148
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1149
+
1150
+ localVarHeaderParameter["Content-Type"] = "application/json";
1151
+
1152
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1153
+ let headersFromBaseOptions =
1154
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
1155
+ localVarRequestOptions.headers = {
1156
+ ...localVarHeaderParameter,
1157
+ ...headersFromBaseOptions,
1158
+ ...options.headers,
1159
+ };
1160
+ localVarRequestOptions.data = serializeDataIfNeeded(
1161
+ userPackParams,
1162
+ localVarRequestOptions,
1163
+ configuration,
1164
+ );
1165
+
1166
+ return {
1167
+ url: toPathString(localVarUrlObj),
1168
+ options: localVarRequestOptions,
1169
+ };
1170
+ },
1171
+ /**
1172
+ *
1173
+ * @summary Update team perms for user
1174
+ * @param {string} userId A user identifier or slug
1175
+ * @param {UserTeamParams} userTeamParams The user team data to update
1176
+ * @param {*} [options] Override http request option.
1177
+ * @throws {RequiredError}
1178
+ */
1179
+ permitUserTeam: async (
1180
+ userId: string,
1181
+ userTeamParams: UserTeamParams,
1182
+ options: RawAxiosRequestConfig = {},
1183
+ ): Promise<RequestArgs> => {
1184
+ // verify required parameter 'userId' is not null or undefined
1185
+ assertParamExists("permitUserTeam", "userId", userId);
1186
+ // verify required parameter 'userTeamParams' is not null or undefined
1187
+ assertParamExists("permitUserTeam", "userTeamParams", userTeamParams);
1188
+ const localVarPath = `/users/{user_id}/teams`.replace(
1189
+ `{${"user_id"}}`,
1190
+ encodeURIComponent(String(userId)),
1191
+ );
1192
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1193
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1194
+ let baseOptions;
1195
+ if (configuration) {
1196
+ baseOptions = configuration.baseOptions;
1197
+ }
1198
+
1199
+ const localVarRequestOptions = {
1200
+ method: "PUT",
1201
+ ...baseOptions,
1202
+ ...options,
1203
+ };
1204
+ const localVarHeaderParameter = {} as any;
1205
+ const localVarQueryParameter = {} as any;
1206
+
1207
+ // authentication Cookie required
1208
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1209
+
1210
+ // authentication Basic required
1211
+ // http basic authentication required
1212
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1213
+
1214
+ // authentication Header required
1215
+ await setApiKeyToObject(
1216
+ localVarHeaderParameter,
1217
+ "X-API-Key",
1218
+ configuration,
1219
+ );
1220
+
1221
+ // authentication Bearer required
1222
+ // http bearer authentication required
1223
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1224
+
1225
+ localVarHeaderParameter["Content-Type"] = "application/json";
1226
+
1227
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1228
+ let headersFromBaseOptions =
1229
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
1230
+ localVarRequestOptions.headers = {
1231
+ ...localVarHeaderParameter,
1232
+ ...headersFromBaseOptions,
1233
+ ...options.headers,
1234
+ };
1235
+ localVarRequestOptions.data = serializeDataIfNeeded(
1236
+ userTeamParams,
1237
+ localVarRequestOptions,
1238
+ configuration,
1239
+ );
1240
+
1241
+ return {
1242
+ url: toPathString(localVarUrlObj),
1243
+ options: localVarRequestOptions,
1244
+ };
1245
+ },
1246
+ /**
1247
+ *
1248
+ * @summary Fetch a specific user
1249
+ * @param {string} userId A user identifier or slug
1250
+ * @param {*} [options] Override http request option.
1251
+ * @throws {RequiredError}
1252
+ */
1253
+ showUser: async (
1254
+ userId: string,
1255
+ options: RawAxiosRequestConfig = {},
1256
+ ): Promise<RequestArgs> => {
1257
+ // verify required parameter 'userId' is not null or undefined
1258
+ assertParamExists("showUser", "userId", userId);
1259
+ const localVarPath = `/users/{user_id}`.replace(
1260
+ `{${"user_id"}}`,
1261
+ encodeURIComponent(String(userId)),
1262
+ );
1263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1264
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1265
+ let baseOptions;
1266
+ if (configuration) {
1267
+ baseOptions = configuration.baseOptions;
1268
+ }
1269
+
1270
+ const localVarRequestOptions = {
1271
+ method: "GET",
1272
+ ...baseOptions,
1273
+ ...options,
1274
+ };
1275
+ const localVarHeaderParameter = {} as any;
1276
+ const localVarQueryParameter = {} as any;
1277
+
1278
+ // authentication Cookie required
1279
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1280
+
1281
+ // authentication Basic required
1282
+ // http basic authentication required
1283
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1284
+
1285
+ // authentication Header required
1286
+ await setApiKeyToObject(
1287
+ localVarHeaderParameter,
1288
+ "X-API-Key",
1289
+ configuration,
1290
+ );
1291
+
1292
+ // authentication Bearer required
1293
+ // http bearer authentication required
1294
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1295
+
1296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1297
+ let headersFromBaseOptions =
1298
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
1299
+ localVarRequestOptions.headers = {
1300
+ ...localVarHeaderParameter,
1301
+ ...headersFromBaseOptions,
1302
+ ...options.headers,
1303
+ };
1304
+
1305
+ return {
1306
+ url: toPathString(localVarUrlObj),
1307
+ options: localVarRequestOptions,
1308
+ };
1309
+ },
1310
+ /**
1311
+ *
1312
+ * @summary Update a specific user
1313
+ * @param {string} userId A user identifier or slug
1314
+ * @param {User} user The user data to update
1315
+ * @param {*} [options] Override http request option.
1316
+ * @throws {RequiredError}
1317
+ */
1318
+ updateUser: async (
1319
+ userId: string,
1320
+ user: User,
1321
+ options: RawAxiosRequestConfig = {},
1322
+ ): Promise<RequestArgs> => {
1323
+ // verify required parameter 'userId' is not null or undefined
1324
+ assertParamExists("updateUser", "userId", userId);
1325
+ // verify required parameter 'user' is not null or undefined
1326
+ assertParamExists("updateUser", "user", user);
1327
+ const localVarPath = `/users/{user_id}`.replace(
1328
+ `{${"user_id"}}`,
1329
+ encodeURIComponent(String(userId)),
1330
+ );
1331
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1332
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1333
+ let baseOptions;
1334
+ if (configuration) {
1335
+ baseOptions = configuration.baseOptions;
1336
+ }
1337
+
1338
+ const localVarRequestOptions = {
1339
+ method: "PUT",
1340
+ ...baseOptions,
1341
+ ...options,
1342
+ };
1343
+ const localVarHeaderParameter = {} as any;
1344
+ const localVarQueryParameter = {} as any;
1345
+
1346
+ // authentication Cookie required
1347
+ await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1348
+
1349
+ // authentication Basic required
1350
+ // http basic authentication required
1351
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1352
+
1353
+ // authentication Header required
1354
+ await setApiKeyToObject(
1355
+ localVarHeaderParameter,
1356
+ "X-API-Key",
1357
+ configuration,
1358
+ );
1359
+
1360
+ // authentication Bearer required
1361
+ // http bearer authentication required
1362
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1363
+
1364
+ localVarHeaderParameter["Content-Type"] = "application/json";
1365
+
1366
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1367
+ let headersFromBaseOptions =
1368
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
1369
+ localVarRequestOptions.headers = {
1370
+ ...localVarHeaderParameter,
1371
+ ...headersFromBaseOptions,
1372
+ ...options.headers,
1373
+ };
1374
+ localVarRequestOptions.data = serializeDataIfNeeded(
1375
+ user,
1376
+ localVarRequestOptions,
1377
+ configuration,
1378
+ );
1379
+
1380
+ return {
1381
+ url: toPathString(localVarUrlObj),
1382
+ options: localVarRequestOptions,
1383
+ };
1384
+ },
1385
+ };
1386
+ };
1387
+
1388
+ /**
1389
+ * UserApi - functional programming interface
1390
+ * @export
1391
+ */
1392
+ export const UserApiFp = function (configuration?: Configuration) {
1393
+ const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
1394
+ return {
1395
+ /**
1396
+ *
1397
+ * @summary Attach a mod to user
1398
+ * @param {string} userId A user identifier or slug
1399
+ * @param {UserModParams} userModParams The user mod data to attach
1400
+ * @param {*} [options] Override http request option.
1401
+ * @throws {RequiredError}
1402
+ */
1403
+ async attachUserToMod(
1404
+ userId: string,
1405
+ userModParams: UserModParams,
1406
+ options?: RawAxiosRequestConfig,
1407
+ ): Promise<
1408
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1409
+ > {
1410
+ const localVarAxiosArgs = await localVarAxiosParamCreator.attachUserToMod(
1411
+ userId,
1412
+ userModParams,
1413
+ options,
1414
+ );
1415
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1416
+ const localVarOperationServerBasePath =
1417
+ operationServerMap["UserApi.attachUserToMod"]?.[
1418
+ localVarOperationServerIndex
1419
+ ]?.url;
1420
+ return (axios, basePath) =>
1421
+ createRequestFunction(
1422
+ localVarAxiosArgs,
1423
+ globalAxios,
1424
+ BASE_PATH,
1425
+ configuration,
1426
+ )(axios, localVarOperationServerBasePath || basePath);
1427
+ },
1428
+ /**
1429
+ *
1430
+ * @summary Attach a pack to user
1431
+ * @param {string} userId A user identifier or slug
1432
+ * @param {UserPackParams} userPackParams The user pack data to attach
1433
+ * @param {*} [options] Override http request option.
1434
+ * @throws {RequiredError}
1435
+ */
1436
+ async attachUserToPack(
1437
+ userId: string,
1438
+ userPackParams: UserPackParams,
1439
+ options?: RawAxiosRequestConfig,
1440
+ ): Promise<
1441
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1442
+ > {
1443
+ const localVarAxiosArgs =
1444
+ await localVarAxiosParamCreator.attachUserToPack(
1445
+ userId,
1446
+ userPackParams,
1447
+ options,
1448
+ );
1449
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1450
+ const localVarOperationServerBasePath =
1451
+ operationServerMap["UserApi.attachUserToPack"]?.[
1452
+ localVarOperationServerIndex
1453
+ ]?.url;
1454
+ return (axios, basePath) =>
1455
+ createRequestFunction(
1456
+ localVarAxiosArgs,
1457
+ globalAxios,
1458
+ BASE_PATH,
1459
+ configuration,
1460
+ )(axios, localVarOperationServerBasePath || basePath);
1461
+ },
1462
+ /**
1463
+ *
1464
+ * @summary Attach a team to user
1465
+ * @param {string} userId A user identifier or slug
1466
+ * @param {UserTeamParams} userTeamParams The user team data to attach
1467
+ * @param {*} [options] Override http request option.
1468
+ * @throws {RequiredError}
1469
+ */
1470
+ async attachUserToTeam(
1471
+ userId: string,
1472
+ userTeamParams: UserTeamParams,
1473
+ options?: RawAxiosRequestConfig,
1474
+ ): Promise<
1475
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1476
+ > {
1477
+ const localVarAxiosArgs =
1478
+ await localVarAxiosParamCreator.attachUserToTeam(
1479
+ userId,
1480
+ userTeamParams,
1481
+ options,
1482
+ );
1483
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1484
+ const localVarOperationServerBasePath =
1485
+ operationServerMap["UserApi.attachUserToTeam"]?.[
1486
+ localVarOperationServerIndex
1487
+ ]?.url;
1488
+ return (axios, basePath) =>
1489
+ createRequestFunction(
1490
+ localVarAxiosArgs,
1491
+ globalAxios,
1492
+ BASE_PATH,
1493
+ configuration,
1494
+ )(axios, localVarOperationServerBasePath || basePath);
1495
+ },
1496
+ /**
1497
+ *
1498
+ * @summary Create a new user
1499
+ * @param {User} user The user data to create
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ */
1503
+ async createUser(
1504
+ user: User,
1505
+ options?: RawAxiosRequestConfig,
1506
+ ): Promise<
1507
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>
1508
+ > {
1509
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(
1510
+ user,
1511
+ options,
1512
+ );
1513
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1514
+ const localVarOperationServerBasePath =
1515
+ operationServerMap["UserApi.createUser"]?.[localVarOperationServerIndex]
1516
+ ?.url;
1517
+ return (axios, basePath) =>
1518
+ createRequestFunction(
1519
+ localVarAxiosArgs,
1520
+ globalAxios,
1521
+ BASE_PATH,
1522
+ configuration,
1523
+ )(axios, localVarOperationServerBasePath || basePath);
1524
+ },
1525
+ /**
1526
+ *
1527
+ * @summary Delete a specific user
1528
+ * @param {string} userId A user identifier or slug
1529
+ * @param {*} [options] Override http request option.
1530
+ * @throws {RequiredError}
1531
+ */
1532
+ async deleteUser(
1533
+ userId: string,
1534
+ options?: RawAxiosRequestConfig,
1535
+ ): Promise<
1536
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1537
+ > {
1538
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(
1539
+ userId,
1540
+ options,
1541
+ );
1542
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1543
+ const localVarOperationServerBasePath =
1544
+ operationServerMap["UserApi.deleteUser"]?.[localVarOperationServerIndex]
1545
+ ?.url;
1546
+ return (axios, basePath) =>
1547
+ createRequestFunction(
1548
+ localVarAxiosArgs,
1549
+ globalAxios,
1550
+ BASE_PATH,
1551
+ configuration,
1552
+ )(axios, localVarOperationServerBasePath || basePath);
1553
+ },
1554
+ /**
1555
+ *
1556
+ * @summary Unlink a mod from user
1557
+ * @param {string} userId A user identifier or slug
1558
+ * @param {UserModParams} userModParams The user mod data to unlink
1559
+ * @param {*} [options] Override http request option.
1560
+ * @throws {RequiredError}
1561
+ */
1562
+ async deleteUserFromMod(
1563
+ userId: string,
1564
+ userModParams: UserModParams,
1565
+ options?: RawAxiosRequestConfig,
1566
+ ): Promise<
1567
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1568
+ > {
1569
+ const localVarAxiosArgs =
1570
+ await localVarAxiosParamCreator.deleteUserFromMod(
1571
+ userId,
1572
+ userModParams,
1573
+ options,
1574
+ );
1575
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1576
+ const localVarOperationServerBasePath =
1577
+ operationServerMap["UserApi.deleteUserFromMod"]?.[
1578
+ localVarOperationServerIndex
1579
+ ]?.url;
1580
+ return (axios, basePath) =>
1581
+ createRequestFunction(
1582
+ localVarAxiosArgs,
1583
+ globalAxios,
1584
+ BASE_PATH,
1585
+ configuration,
1586
+ )(axios, localVarOperationServerBasePath || basePath);
1587
+ },
1588
+ /**
1589
+ *
1590
+ * @summary Unlink a pack from user
1591
+ * @param {string} userId A user identifier or slug
1592
+ * @param {UserPackParams} userPackParams The user pack data to unlink
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ */
1596
+ async deleteUserFromPack(
1597
+ userId: string,
1598
+ userPackParams: UserPackParams,
1599
+ options?: RawAxiosRequestConfig,
1600
+ ): Promise<
1601
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1602
+ > {
1603
+ const localVarAxiosArgs =
1604
+ await localVarAxiosParamCreator.deleteUserFromPack(
1605
+ userId,
1606
+ userPackParams,
1607
+ options,
1608
+ );
1609
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1610
+ const localVarOperationServerBasePath =
1611
+ operationServerMap["UserApi.deleteUserFromPack"]?.[
1612
+ localVarOperationServerIndex
1613
+ ]?.url;
1614
+ return (axios, basePath) =>
1615
+ createRequestFunction(
1616
+ localVarAxiosArgs,
1617
+ globalAxios,
1618
+ BASE_PATH,
1619
+ configuration,
1620
+ )(axios, localVarOperationServerBasePath || basePath);
1621
+ },
1622
+ /**
1623
+ *
1624
+ * @summary Unlink a team from user
1625
+ * @param {string} userId A user identifier or slug
1626
+ * @param {UserTeamParams} userTeamParams The user team data to unlink
1627
+ * @param {*} [options] Override http request option.
1628
+ * @throws {RequiredError}
1629
+ */
1630
+ async deleteUserFromTeam(
1631
+ userId: string,
1632
+ userTeamParams: UserTeamParams,
1633
+ options?: RawAxiosRequestConfig,
1634
+ ): Promise<
1635
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1636
+ > {
1637
+ const localVarAxiosArgs =
1638
+ await localVarAxiosParamCreator.deleteUserFromTeam(
1639
+ userId,
1640
+ userTeamParams,
1641
+ options,
1642
+ );
1643
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1644
+ const localVarOperationServerBasePath =
1645
+ operationServerMap["UserApi.deleteUserFromTeam"]?.[
1646
+ localVarOperationServerIndex
1647
+ ]?.url;
1648
+ return (axios, basePath) =>
1649
+ createRequestFunction(
1650
+ localVarAxiosArgs,
1651
+ globalAxios,
1652
+ BASE_PATH,
1653
+ configuration,
1654
+ )(axios, localVarOperationServerBasePath || basePath);
1655
+ },
1656
+ /**
1657
+ *
1658
+ * @summary Fetch all mods attached to user
1659
+ * @param {string} userId A user identifier or slug
1660
+ * @param {string} [search] Search query
1661
+ * @param {ListUserModsSortEnum} [sort] Sorting column
1662
+ * @param {ListUserModsOrderEnum} [order] Sorting order
1663
+ * @param {number} [limit] Paging limit
1664
+ * @param {number} [offset] Paging offset
1665
+ * @param {*} [options] Override http request option.
1666
+ * @throws {RequiredError}
1667
+ */
1668
+ async listUserMods(
1669
+ userId: string,
1670
+ search?: string,
1671
+ sort?: ListUserModsSortEnum,
1672
+ order?: ListUserModsOrderEnum,
1673
+ limit?: number,
1674
+ offset?: number,
1675
+ options?: RawAxiosRequestConfig,
1676
+ ): Promise<
1677
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMods>
1678
+ > {
1679
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserMods(
1680
+ userId,
1681
+ search,
1682
+ sort,
1683
+ order,
1684
+ limit,
1685
+ offset,
1686
+ options,
1687
+ );
1688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1689
+ const localVarOperationServerBasePath =
1690
+ operationServerMap["UserApi.listUserMods"]?.[
1691
+ localVarOperationServerIndex
1692
+ ]?.url;
1693
+ return (axios, basePath) =>
1694
+ createRequestFunction(
1695
+ localVarAxiosArgs,
1696
+ globalAxios,
1697
+ BASE_PATH,
1698
+ configuration,
1699
+ )(axios, localVarOperationServerBasePath || basePath);
1700
+ },
1701
+ /**
1702
+ *
1703
+ * @summary Fetch all packs attached to user
1704
+ * @param {string} userId A user identifier or slug
1705
+ * @param {string} [search] Search query
1706
+ * @param {ListUserPacksSortEnum} [sort] Sorting column
1707
+ * @param {ListUserPacksOrderEnum} [order] Sorting order
1708
+ * @param {number} [limit] Paging limit
1709
+ * @param {number} [offset] Paging offset
1710
+ * @param {*} [options] Override http request option.
1711
+ * @throws {RequiredError}
1712
+ */
1713
+ async listUserPacks(
1714
+ userId: string,
1715
+ search?: string,
1716
+ sort?: ListUserPacksSortEnum,
1717
+ order?: ListUserPacksOrderEnum,
1718
+ limit?: number,
1719
+ offset?: number,
1720
+ options?: RawAxiosRequestConfig,
1721
+ ): Promise<
1722
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPacks>
1723
+ > {
1724
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPacks(
1725
+ userId,
1726
+ search,
1727
+ sort,
1728
+ order,
1729
+ limit,
1730
+ offset,
1731
+ options,
1732
+ );
1733
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1734
+ const localVarOperationServerBasePath =
1735
+ operationServerMap["UserApi.listUserPacks"]?.[
1736
+ localVarOperationServerIndex
1737
+ ]?.url;
1738
+ return (axios, basePath) =>
1739
+ createRequestFunction(
1740
+ localVarAxiosArgs,
1741
+ globalAxios,
1742
+ BASE_PATH,
1743
+ configuration,
1744
+ )(axios, localVarOperationServerBasePath || basePath);
1745
+ },
1746
+ /**
1747
+ *
1748
+ * @summary Fetch all teams attached to user
1749
+ * @param {string} userId A user identifier or slug
1750
+ * @param {string} [search] Search query
1751
+ * @param {ListUserTeamsSortEnum} [sort] Sorting column
1752
+ * @param {ListUserTeamsOrderEnum} [order] Sorting order
1753
+ * @param {number} [limit] Paging limit
1754
+ * @param {number} [offset] Paging offset
1755
+ * @param {*} [options] Override http request option.
1756
+ * @throws {RequiredError}
1757
+ */
1758
+ async listUserTeams(
1759
+ userId: string,
1760
+ search?: string,
1761
+ sort?: ListUserTeamsSortEnum,
1762
+ order?: ListUserTeamsOrderEnum,
1763
+ limit?: number,
1764
+ offset?: number,
1765
+ options?: RawAxiosRequestConfig,
1766
+ ): Promise<
1767
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserTeams>
1768
+ > {
1769
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserTeams(
1770
+ userId,
1771
+ search,
1772
+ sort,
1773
+ order,
1774
+ limit,
1775
+ offset,
1776
+ options,
1777
+ );
1778
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1779
+ const localVarOperationServerBasePath =
1780
+ operationServerMap["UserApi.listUserTeams"]?.[
1781
+ localVarOperationServerIndex
1782
+ ]?.url;
1783
+ return (axios, basePath) =>
1784
+ createRequestFunction(
1785
+ localVarAxiosArgs,
1786
+ globalAxios,
1787
+ BASE_PATH,
1788
+ configuration,
1789
+ )(axios, localVarOperationServerBasePath || basePath);
1790
+ },
1791
+ /**
1792
+ *
1793
+ * @summary Fetch all available users
1794
+ * @param {string} [search] Search query
1795
+ * @param {ListUsersSortEnum} [sort] Sorting column
1796
+ * @param {ListUsersOrderEnum} [order] Sorting order
1797
+ * @param {number} [limit] Paging limit
1798
+ * @param {number} [offset] Paging offset
1799
+ * @param {*} [options] Override http request option.
1800
+ * @throws {RequiredError}
1801
+ */
1802
+ async listUsers(
1803
+ search?: string,
1804
+ sort?: ListUsersSortEnum,
1805
+ order?: ListUsersOrderEnum,
1806
+ limit?: number,
1807
+ offset?: number,
1808
+ options?: RawAxiosRequestConfig,
1809
+ ): Promise<
1810
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Users>
1811
+ > {
1812
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(
1813
+ search,
1814
+ sort,
1815
+ order,
1816
+ limit,
1817
+ offset,
1818
+ options,
1819
+ );
1820
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1821
+ const localVarOperationServerBasePath =
1822
+ operationServerMap["UserApi.listUsers"]?.[localVarOperationServerIndex]
1823
+ ?.url;
1824
+ return (axios, basePath) =>
1825
+ createRequestFunction(
1826
+ localVarAxiosArgs,
1827
+ globalAxios,
1828
+ BASE_PATH,
1829
+ configuration,
1830
+ )(axios, localVarOperationServerBasePath || basePath);
1831
+ },
1832
+ /**
1833
+ *
1834
+ * @summary Update mod perms for user
1835
+ * @param {string} userId A user identifier or slug
1836
+ * @param {UserModParams} userModParams The user mod data to update
1837
+ * @param {*} [options] Override http request option.
1838
+ * @throws {RequiredError}
1839
+ */
1840
+ async permitUserMod(
1841
+ userId: string,
1842
+ userModParams: UserModParams,
1843
+ options?: RawAxiosRequestConfig,
1844
+ ): Promise<
1845
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1846
+ > {
1847
+ const localVarAxiosArgs = await localVarAxiosParamCreator.permitUserMod(
1848
+ userId,
1849
+ userModParams,
1850
+ options,
1851
+ );
1852
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1853
+ const localVarOperationServerBasePath =
1854
+ operationServerMap["UserApi.permitUserMod"]?.[
1855
+ localVarOperationServerIndex
1856
+ ]?.url;
1857
+ return (axios, basePath) =>
1858
+ createRequestFunction(
1859
+ localVarAxiosArgs,
1860
+ globalAxios,
1861
+ BASE_PATH,
1862
+ configuration,
1863
+ )(axios, localVarOperationServerBasePath || basePath);
1864
+ },
1865
+ /**
1866
+ *
1867
+ * @summary Update pack perms for user
1868
+ * @param {string} userId A user identifier or slug
1869
+ * @param {UserPackParams} userPackParams The user pack data to update
1870
+ * @param {*} [options] Override http request option.
1871
+ * @throws {RequiredError}
1872
+ */
1873
+ async permitUserPack(
1874
+ userId: string,
1875
+ userPackParams: UserPackParams,
1876
+ options?: RawAxiosRequestConfig,
1877
+ ): Promise<
1878
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1879
+ > {
1880
+ const localVarAxiosArgs = await localVarAxiosParamCreator.permitUserPack(
1881
+ userId,
1882
+ userPackParams,
1883
+ options,
1884
+ );
1885
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1886
+ const localVarOperationServerBasePath =
1887
+ operationServerMap["UserApi.permitUserPack"]?.[
1888
+ localVarOperationServerIndex
1889
+ ]?.url;
1890
+ return (axios, basePath) =>
1891
+ createRequestFunction(
1892
+ localVarAxiosArgs,
1893
+ globalAxios,
1894
+ BASE_PATH,
1895
+ configuration,
1896
+ )(axios, localVarOperationServerBasePath || basePath);
1897
+ },
1898
+ /**
1899
+ *
1900
+ * @summary Update team perms for user
1901
+ * @param {string} userId A user identifier or slug
1902
+ * @param {UserTeamParams} userTeamParams The user team data to update
1903
+ * @param {*} [options] Override http request option.
1904
+ * @throws {RequiredError}
1905
+ */
1906
+ async permitUserTeam(
1907
+ userId: string,
1908
+ userTeamParams: UserTeamParams,
1909
+ options?: RawAxiosRequestConfig,
1910
+ ): Promise<
1911
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1912
+ > {
1913
+ const localVarAxiosArgs = await localVarAxiosParamCreator.permitUserTeam(
1914
+ userId,
1915
+ userTeamParams,
1916
+ options,
1917
+ );
1918
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1919
+ const localVarOperationServerBasePath =
1920
+ operationServerMap["UserApi.permitUserTeam"]?.[
1921
+ localVarOperationServerIndex
1922
+ ]?.url;
1923
+ return (axios, basePath) =>
1924
+ createRequestFunction(
1925
+ localVarAxiosArgs,
1926
+ globalAxios,
1927
+ BASE_PATH,
1928
+ configuration,
1929
+ )(axios, localVarOperationServerBasePath || basePath);
1930
+ },
1931
+ /**
1932
+ *
1933
+ * @summary Fetch a specific user
1934
+ * @param {string} userId A user identifier or slug
1935
+ * @param {*} [options] Override http request option.
1936
+ * @throws {RequiredError}
1937
+ */
1938
+ async showUser(
1939
+ userId: string,
1940
+ options?: RawAxiosRequestConfig,
1941
+ ): Promise<
1942
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>
1943
+ > {
1944
+ const localVarAxiosArgs = await localVarAxiosParamCreator.showUser(
1945
+ userId,
1946
+ options,
1947
+ );
1948
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1949
+ const localVarOperationServerBasePath =
1950
+ operationServerMap["UserApi.showUser"]?.[localVarOperationServerIndex]
1951
+ ?.url;
1952
+ return (axios, basePath) =>
1953
+ createRequestFunction(
1954
+ localVarAxiosArgs,
1955
+ globalAxios,
1956
+ BASE_PATH,
1957
+ configuration,
1958
+ )(axios, localVarOperationServerBasePath || basePath);
1959
+ },
1960
+ /**
1961
+ *
1962
+ * @summary Update a specific user
1963
+ * @param {string} userId A user identifier or slug
1964
+ * @param {User} user The user data to update
1965
+ * @param {*} [options] Override http request option.
1966
+ * @throws {RequiredError}
1967
+ */
1968
+ async updateUser(
1969
+ userId: string,
1970
+ user: User,
1971
+ options?: RawAxiosRequestConfig,
1972
+ ): Promise<
1973
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>
1974
+ > {
1975
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(
1976
+ userId,
1977
+ user,
1978
+ options,
1979
+ );
1980
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1981
+ const localVarOperationServerBasePath =
1982
+ operationServerMap["UserApi.updateUser"]?.[localVarOperationServerIndex]
1983
+ ?.url;
1984
+ return (axios, basePath) =>
1985
+ createRequestFunction(
1986
+ localVarAxiosArgs,
1987
+ globalAxios,
1988
+ BASE_PATH,
1989
+ configuration,
1990
+ )(axios, localVarOperationServerBasePath || basePath);
1991
+ },
1992
+ };
1993
+ };
1994
+
1995
+ /**
1996
+ * UserApi - factory interface
1997
+ * @export
1998
+ */
1999
+ export const UserApiFactory = function (
2000
+ configuration?: Configuration,
2001
+ basePath?: string,
2002
+ axios?: AxiosInstance,
2003
+ ) {
2004
+ const localVarFp = UserApiFp(configuration);
2005
+ return {
2006
+ /**
2007
+ *
2008
+ * @summary Attach a mod to user
2009
+ * @param {UserApiAttachUserToModRequest} requestParameters Request parameters.
2010
+ * @param {*} [options] Override http request option.
2011
+ * @throws {RequiredError}
2012
+ */
2013
+ attachUserToMod(
2014
+ requestParameters: UserApiAttachUserToModRequest,
2015
+ options?: RawAxiosRequestConfig,
2016
+ ): AxiosPromise<Notification> {
2017
+ return localVarFp
2018
+ .attachUserToMod(
2019
+ requestParameters.userId,
2020
+ requestParameters.userModParams,
2021
+ options,
2022
+ )
2023
+ .then((request) => request(axios, basePath));
2024
+ },
2025
+ /**
2026
+ *
2027
+ * @summary Attach a pack to user
2028
+ * @param {UserApiAttachUserToPackRequest} requestParameters Request parameters.
2029
+ * @param {*} [options] Override http request option.
2030
+ * @throws {RequiredError}
2031
+ */
2032
+ attachUserToPack(
2033
+ requestParameters: UserApiAttachUserToPackRequest,
2034
+ options?: RawAxiosRequestConfig,
2035
+ ): AxiosPromise<Notification> {
2036
+ return localVarFp
2037
+ .attachUserToPack(
2038
+ requestParameters.userId,
2039
+ requestParameters.userPackParams,
2040
+ options,
2041
+ )
2042
+ .then((request) => request(axios, basePath));
2043
+ },
2044
+ /**
2045
+ *
2046
+ * @summary Attach a team to user
2047
+ * @param {UserApiAttachUserToTeamRequest} requestParameters Request parameters.
2048
+ * @param {*} [options] Override http request option.
2049
+ * @throws {RequiredError}
2050
+ */
2051
+ attachUserToTeam(
2052
+ requestParameters: UserApiAttachUserToTeamRequest,
2053
+ options?: RawAxiosRequestConfig,
2054
+ ): AxiosPromise<Notification> {
2055
+ return localVarFp
2056
+ .attachUserToTeam(
2057
+ requestParameters.userId,
2058
+ requestParameters.userTeamParams,
2059
+ options,
2060
+ )
2061
+ .then((request) => request(axios, basePath));
2062
+ },
2063
+ /**
2064
+ *
2065
+ * @summary Create a new user
2066
+ * @param {UserApiCreateUserRequest} requestParameters Request parameters.
2067
+ * @param {*} [options] Override http request option.
2068
+ * @throws {RequiredError}
2069
+ */
2070
+ createUser(
2071
+ requestParameters: UserApiCreateUserRequest,
2072
+ options?: RawAxiosRequestConfig,
2073
+ ): AxiosPromise<User> {
2074
+ return localVarFp
2075
+ .createUser(requestParameters.user, options)
2076
+ .then((request) => request(axios, basePath));
2077
+ },
2078
+ /**
2079
+ *
2080
+ * @summary Delete a specific user
2081
+ * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
2082
+ * @param {*} [options] Override http request option.
2083
+ * @throws {RequiredError}
2084
+ */
2085
+ deleteUser(
2086
+ requestParameters: UserApiDeleteUserRequest,
2087
+ options?: RawAxiosRequestConfig,
2088
+ ): AxiosPromise<Notification> {
2089
+ return localVarFp
2090
+ .deleteUser(requestParameters.userId, options)
2091
+ .then((request) => request(axios, basePath));
2092
+ },
2093
+ /**
2094
+ *
2095
+ * @summary Unlink a mod from user
2096
+ * @param {UserApiDeleteUserFromModRequest} requestParameters Request parameters.
2097
+ * @param {*} [options] Override http request option.
2098
+ * @throws {RequiredError}
2099
+ */
2100
+ deleteUserFromMod(
2101
+ requestParameters: UserApiDeleteUserFromModRequest,
2102
+ options?: RawAxiosRequestConfig,
2103
+ ): AxiosPromise<Notification> {
2104
+ return localVarFp
2105
+ .deleteUserFromMod(
2106
+ requestParameters.userId,
2107
+ requestParameters.userModParams,
2108
+ options,
2109
+ )
2110
+ .then((request) => request(axios, basePath));
2111
+ },
2112
+ /**
2113
+ *
2114
+ * @summary Unlink a pack from user
2115
+ * @param {UserApiDeleteUserFromPackRequest} requestParameters Request parameters.
2116
+ * @param {*} [options] Override http request option.
2117
+ * @throws {RequiredError}
2118
+ */
2119
+ deleteUserFromPack(
2120
+ requestParameters: UserApiDeleteUserFromPackRequest,
2121
+ options?: RawAxiosRequestConfig,
2122
+ ): AxiosPromise<Notification> {
2123
+ return localVarFp
2124
+ .deleteUserFromPack(
2125
+ requestParameters.userId,
2126
+ requestParameters.userPackParams,
2127
+ options,
2128
+ )
2129
+ .then((request) => request(axios, basePath));
2130
+ },
2131
+ /**
2132
+ *
2133
+ * @summary Unlink a team from user
2134
+ * @param {UserApiDeleteUserFromTeamRequest} requestParameters Request parameters.
2135
+ * @param {*} [options] Override http request option.
2136
+ * @throws {RequiredError}
2137
+ */
2138
+ deleteUserFromTeam(
2139
+ requestParameters: UserApiDeleteUserFromTeamRequest,
2140
+ options?: RawAxiosRequestConfig,
2141
+ ): AxiosPromise<Notification> {
2142
+ return localVarFp
2143
+ .deleteUserFromTeam(
2144
+ requestParameters.userId,
2145
+ requestParameters.userTeamParams,
2146
+ options,
2147
+ )
2148
+ .then((request) => request(axios, basePath));
2149
+ },
2150
+ /**
2151
+ *
2152
+ * @summary Fetch all mods attached to user
2153
+ * @param {UserApiListUserModsRequest} requestParameters Request parameters.
2154
+ * @param {*} [options] Override http request option.
2155
+ * @throws {RequiredError}
2156
+ */
2157
+ listUserMods(
2158
+ requestParameters: UserApiListUserModsRequest,
2159
+ options?: RawAxiosRequestConfig,
2160
+ ): AxiosPromise<UserMods> {
2161
+ return localVarFp
2162
+ .listUserMods(
2163
+ requestParameters.userId,
2164
+ requestParameters.search,
2165
+ requestParameters.sort,
2166
+ requestParameters.order,
2167
+ requestParameters.limit,
2168
+ requestParameters.offset,
2169
+ options,
2170
+ )
2171
+ .then((request) => request(axios, basePath));
2172
+ },
2173
+ /**
2174
+ *
2175
+ * @summary Fetch all packs attached to user
2176
+ * @param {UserApiListUserPacksRequest} requestParameters Request parameters.
2177
+ * @param {*} [options] Override http request option.
2178
+ * @throws {RequiredError}
2179
+ */
2180
+ listUserPacks(
2181
+ requestParameters: UserApiListUserPacksRequest,
2182
+ options?: RawAxiosRequestConfig,
2183
+ ): AxiosPromise<UserPacks> {
2184
+ return localVarFp
2185
+ .listUserPacks(
2186
+ requestParameters.userId,
2187
+ requestParameters.search,
2188
+ requestParameters.sort,
2189
+ requestParameters.order,
2190
+ requestParameters.limit,
2191
+ requestParameters.offset,
2192
+ options,
2193
+ )
2194
+ .then((request) => request(axios, basePath));
2195
+ },
2196
+ /**
2197
+ *
2198
+ * @summary Fetch all teams attached to user
2199
+ * @param {UserApiListUserTeamsRequest} requestParameters Request parameters.
2200
+ * @param {*} [options] Override http request option.
2201
+ * @throws {RequiredError}
2202
+ */
2203
+ listUserTeams(
2204
+ requestParameters: UserApiListUserTeamsRequest,
2205
+ options?: RawAxiosRequestConfig,
2206
+ ): AxiosPromise<UserTeams> {
2207
+ return localVarFp
2208
+ .listUserTeams(
2209
+ requestParameters.userId,
2210
+ requestParameters.search,
2211
+ requestParameters.sort,
2212
+ requestParameters.order,
2213
+ requestParameters.limit,
2214
+ requestParameters.offset,
2215
+ options,
2216
+ )
2217
+ .then((request) => request(axios, basePath));
2218
+ },
2219
+ /**
2220
+ *
2221
+ * @summary Fetch all available users
2222
+ * @param {UserApiListUsersRequest} requestParameters Request parameters.
2223
+ * @param {*} [options] Override http request option.
2224
+ * @throws {RequiredError}
2225
+ */
2226
+ listUsers(
2227
+ requestParameters: UserApiListUsersRequest = {},
2228
+ options?: RawAxiosRequestConfig,
2229
+ ): AxiosPromise<Users> {
2230
+ return localVarFp
2231
+ .listUsers(
2232
+ requestParameters.search,
2233
+ requestParameters.sort,
2234
+ requestParameters.order,
2235
+ requestParameters.limit,
2236
+ requestParameters.offset,
2237
+ options,
2238
+ )
2239
+ .then((request) => request(axios, basePath));
2240
+ },
2241
+ /**
2242
+ *
2243
+ * @summary Update mod perms for user
2244
+ * @param {UserApiPermitUserModRequest} requestParameters Request parameters.
2245
+ * @param {*} [options] Override http request option.
2246
+ * @throws {RequiredError}
2247
+ */
2248
+ permitUserMod(
2249
+ requestParameters: UserApiPermitUserModRequest,
2250
+ options?: RawAxiosRequestConfig,
2251
+ ): AxiosPromise<Notification> {
2252
+ return localVarFp
2253
+ .permitUserMod(
2254
+ requestParameters.userId,
2255
+ requestParameters.userModParams,
2256
+ options,
2257
+ )
2258
+ .then((request) => request(axios, basePath));
2259
+ },
2260
+ /**
2261
+ *
2262
+ * @summary Update pack perms for user
2263
+ * @param {UserApiPermitUserPackRequest} requestParameters Request parameters.
2264
+ * @param {*} [options] Override http request option.
2265
+ * @throws {RequiredError}
2266
+ */
2267
+ permitUserPack(
2268
+ requestParameters: UserApiPermitUserPackRequest,
2269
+ options?: RawAxiosRequestConfig,
2270
+ ): AxiosPromise<Notification> {
2271
+ return localVarFp
2272
+ .permitUserPack(
2273
+ requestParameters.userId,
2274
+ requestParameters.userPackParams,
2275
+ options,
2276
+ )
2277
+ .then((request) => request(axios, basePath));
2278
+ },
2279
+ /**
2280
+ *
2281
+ * @summary Update team perms for user
2282
+ * @param {UserApiPermitUserTeamRequest} requestParameters Request parameters.
2283
+ * @param {*} [options] Override http request option.
2284
+ * @throws {RequiredError}
2285
+ */
2286
+ permitUserTeam(
2287
+ requestParameters: UserApiPermitUserTeamRequest,
2288
+ options?: RawAxiosRequestConfig,
2289
+ ): AxiosPromise<Notification> {
2290
+ return localVarFp
2291
+ .permitUserTeam(
2292
+ requestParameters.userId,
2293
+ requestParameters.userTeamParams,
2294
+ options,
2295
+ )
2296
+ .then((request) => request(axios, basePath));
2297
+ },
2298
+ /**
2299
+ *
2300
+ * @summary Fetch a specific user
2301
+ * @param {UserApiShowUserRequest} requestParameters Request parameters.
2302
+ * @param {*} [options] Override http request option.
2303
+ * @throws {RequiredError}
2304
+ */
2305
+ showUser(
2306
+ requestParameters: UserApiShowUserRequest,
2307
+ options?: RawAxiosRequestConfig,
2308
+ ): AxiosPromise<User> {
2309
+ return localVarFp
2310
+ .showUser(requestParameters.userId, options)
2311
+ .then((request) => request(axios, basePath));
2312
+ },
2313
+ /**
2314
+ *
2315
+ * @summary Update a specific user
2316
+ * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
2317
+ * @param {*} [options] Override http request option.
2318
+ * @throws {RequiredError}
2319
+ */
2320
+ updateUser(
2321
+ requestParameters: UserApiUpdateUserRequest,
2322
+ options?: RawAxiosRequestConfig,
2323
+ ): AxiosPromise<User> {
2324
+ return localVarFp
2325
+ .updateUser(requestParameters.userId, requestParameters.user, options)
2326
+ .then((request) => request(axios, basePath));
2327
+ },
2328
+ };
2329
+ };
2330
+
2331
+ /**
2332
+ * Request parameters for attachUserToMod operation in UserApi.
2333
+ * @export
2334
+ * @interface UserApiAttachUserToModRequest
2335
+ */
2336
+ export interface UserApiAttachUserToModRequest {
2337
+ /**
2338
+ * A user identifier or slug
2339
+ * @type {string}
2340
+ * @memberof UserApiAttachUserToMod
2341
+ */
2342
+ readonly userId: string;
2343
+
2344
+ /**
2345
+ * The user mod data to attach
2346
+ * @type {UserModParams}
2347
+ * @memberof UserApiAttachUserToMod
2348
+ */
2349
+ readonly userModParams: UserModParams;
2350
+ }
2351
+
2352
+ /**
2353
+ * Request parameters for attachUserToPack operation in UserApi.
2354
+ * @export
2355
+ * @interface UserApiAttachUserToPackRequest
2356
+ */
2357
+ export interface UserApiAttachUserToPackRequest {
2358
+ /**
2359
+ * A user identifier or slug
2360
+ * @type {string}
2361
+ * @memberof UserApiAttachUserToPack
2362
+ */
2363
+ readonly userId: string;
2364
+
2365
+ /**
2366
+ * The user pack data to attach
2367
+ * @type {UserPackParams}
2368
+ * @memberof UserApiAttachUserToPack
2369
+ */
2370
+ readonly userPackParams: UserPackParams;
2371
+ }
2372
+
2373
+ /**
2374
+ * Request parameters for attachUserToTeam operation in UserApi.
2375
+ * @export
2376
+ * @interface UserApiAttachUserToTeamRequest
2377
+ */
2378
+ export interface UserApiAttachUserToTeamRequest {
2379
+ /**
2380
+ * A user identifier or slug
2381
+ * @type {string}
2382
+ * @memberof UserApiAttachUserToTeam
2383
+ */
2384
+ readonly userId: string;
2385
+
2386
+ /**
2387
+ * The user team data to attach
2388
+ * @type {UserTeamParams}
2389
+ * @memberof UserApiAttachUserToTeam
2390
+ */
2391
+ readonly userTeamParams: UserTeamParams;
2392
+ }
2393
+
2394
+ /**
2395
+ * Request parameters for createUser operation in UserApi.
2396
+ * @export
2397
+ * @interface UserApiCreateUserRequest
2398
+ */
2399
+ export interface UserApiCreateUserRequest {
2400
+ /**
2401
+ * The user data to create
2402
+ * @type {User}
2403
+ * @memberof UserApiCreateUser
2404
+ */
2405
+ readonly user: User;
2406
+ }
2407
+
2408
+ /**
2409
+ * Request parameters for deleteUser operation in UserApi.
2410
+ * @export
2411
+ * @interface UserApiDeleteUserRequest
2412
+ */
2413
+ export interface UserApiDeleteUserRequest {
2414
+ /**
2415
+ * A user identifier or slug
2416
+ * @type {string}
2417
+ * @memberof UserApiDeleteUser
2418
+ */
2419
+ readonly userId: string;
2420
+ }
2421
+
2422
+ /**
2423
+ * Request parameters for deleteUserFromMod operation in UserApi.
2424
+ * @export
2425
+ * @interface UserApiDeleteUserFromModRequest
2426
+ */
2427
+ export interface UserApiDeleteUserFromModRequest {
2428
+ /**
2429
+ * A user identifier or slug
2430
+ * @type {string}
2431
+ * @memberof UserApiDeleteUserFromMod
2432
+ */
2433
+ readonly userId: string;
2434
+
2435
+ /**
2436
+ * The user mod data to unlink
2437
+ * @type {UserModParams}
2438
+ * @memberof UserApiDeleteUserFromMod
2439
+ */
2440
+ readonly userModParams: UserModParams;
2441
+ }
2442
+
2443
+ /**
2444
+ * Request parameters for deleteUserFromPack operation in UserApi.
2445
+ * @export
2446
+ * @interface UserApiDeleteUserFromPackRequest
2447
+ */
2448
+ export interface UserApiDeleteUserFromPackRequest {
2449
+ /**
2450
+ * A user identifier or slug
2451
+ * @type {string}
2452
+ * @memberof UserApiDeleteUserFromPack
2453
+ */
2454
+ readonly userId: string;
2455
+
2456
+ /**
2457
+ * The user pack data to unlink
2458
+ * @type {UserPackParams}
2459
+ * @memberof UserApiDeleteUserFromPack
2460
+ */
2461
+ readonly userPackParams: UserPackParams;
2462
+ }
2463
+
2464
+ /**
2465
+ * Request parameters for deleteUserFromTeam operation in UserApi.
2466
+ * @export
2467
+ * @interface UserApiDeleteUserFromTeamRequest
2468
+ */
2469
+ export interface UserApiDeleteUserFromTeamRequest {
2470
+ /**
2471
+ * A user identifier or slug
2472
+ * @type {string}
2473
+ * @memberof UserApiDeleteUserFromTeam
2474
+ */
2475
+ readonly userId: string;
2476
+
2477
+ /**
2478
+ * The user team data to unlink
2479
+ * @type {UserTeamParams}
2480
+ * @memberof UserApiDeleteUserFromTeam
2481
+ */
2482
+ readonly userTeamParams: UserTeamParams;
2483
+ }
2484
+
2485
+ /**
2486
+ * Request parameters for listUserMods operation in UserApi.
2487
+ * @export
2488
+ * @interface UserApiListUserModsRequest
2489
+ */
2490
+ export interface UserApiListUserModsRequest {
2491
+ /**
2492
+ * A user identifier or slug
2493
+ * @type {string}
2494
+ * @memberof UserApiListUserMods
2495
+ */
2496
+ readonly userId: string;
2497
+
2498
+ /**
2499
+ * Search query
2500
+ * @type {string}
2501
+ * @memberof UserApiListUserMods
2502
+ */
2503
+ readonly search?: string;
2504
+
2505
+ /**
2506
+ * Sorting column
2507
+ * @type {'slug' | 'name'}
2508
+ * @memberof UserApiListUserMods
2509
+ */
2510
+ readonly sort?: ListUserModsSortEnum;
2511
+
2512
+ /**
2513
+ * Sorting order
2514
+ * @type {'asc' | 'desc'}
2515
+ * @memberof UserApiListUserMods
2516
+ */
2517
+ readonly order?: ListUserModsOrderEnum;
2518
+
2519
+ /**
2520
+ * Paging limit
2521
+ * @type {number}
2522
+ * @memberof UserApiListUserMods
2523
+ */
2524
+ readonly limit?: number;
2525
+
2526
+ /**
2527
+ * Paging offset
2528
+ * @type {number}
2529
+ * @memberof UserApiListUserMods
2530
+ */
2531
+ readonly offset?: number;
2532
+ }
2533
+
2534
+ /**
2535
+ * Request parameters for listUserPacks operation in UserApi.
2536
+ * @export
2537
+ * @interface UserApiListUserPacksRequest
2538
+ */
2539
+ export interface UserApiListUserPacksRequest {
2540
+ /**
2541
+ * A user identifier or slug
2542
+ * @type {string}
2543
+ * @memberof UserApiListUserPacks
2544
+ */
2545
+ readonly userId: string;
2546
+
2547
+ /**
2548
+ * Search query
2549
+ * @type {string}
2550
+ * @memberof UserApiListUserPacks
2551
+ */
2552
+ readonly search?: string;
2553
+
2554
+ /**
2555
+ * Sorting column
2556
+ * @type {'slug' | 'name'}
2557
+ * @memberof UserApiListUserPacks
2558
+ */
2559
+ readonly sort?: ListUserPacksSortEnum;
2560
+
2561
+ /**
2562
+ * Sorting order
2563
+ * @type {'asc' | 'desc'}
2564
+ * @memberof UserApiListUserPacks
2565
+ */
2566
+ readonly order?: ListUserPacksOrderEnum;
2567
+
2568
+ /**
2569
+ * Paging limit
2570
+ * @type {number}
2571
+ * @memberof UserApiListUserPacks
2572
+ */
2573
+ readonly limit?: number;
2574
+
2575
+ /**
2576
+ * Paging offset
2577
+ * @type {number}
2578
+ * @memberof UserApiListUserPacks
2579
+ */
2580
+ readonly offset?: number;
2581
+ }
2582
+
2583
+ /**
2584
+ * Request parameters for listUserTeams operation in UserApi.
2585
+ * @export
2586
+ * @interface UserApiListUserTeamsRequest
2587
+ */
2588
+ export interface UserApiListUserTeamsRequest {
2589
+ /**
2590
+ * A user identifier or slug
2591
+ * @type {string}
2592
+ * @memberof UserApiListUserTeams
2593
+ */
2594
+ readonly userId: string;
2595
+
2596
+ /**
2597
+ * Search query
2598
+ * @type {string}
2599
+ * @memberof UserApiListUserTeams
2600
+ */
2601
+ readonly search?: string;
2602
+
2603
+ /**
2604
+ * Sorting column
2605
+ * @type {'slug' | 'name'}
2606
+ * @memberof UserApiListUserTeams
2607
+ */
2608
+ readonly sort?: ListUserTeamsSortEnum;
2609
+
2610
+ /**
2611
+ * Sorting order
2612
+ * @type {'asc' | 'desc'}
2613
+ * @memberof UserApiListUserTeams
2614
+ */
2615
+ readonly order?: ListUserTeamsOrderEnum;
2616
+
2617
+ /**
2618
+ * Paging limit
2619
+ * @type {number}
2620
+ * @memberof UserApiListUserTeams
2621
+ */
2622
+ readonly limit?: number;
2623
+
2624
+ /**
2625
+ * Paging offset
2626
+ * @type {number}
2627
+ * @memberof UserApiListUserTeams
2628
+ */
2629
+ readonly offset?: number;
2630
+ }
2631
+
2632
+ /**
2633
+ * Request parameters for listUsers operation in UserApi.
2634
+ * @export
2635
+ * @interface UserApiListUsersRequest
2636
+ */
2637
+ export interface UserApiListUsersRequest {
2638
+ /**
2639
+ * Search query
2640
+ * @type {string}
2641
+ * @memberof UserApiListUsers
2642
+ */
2643
+ readonly search?: string;
2644
+
2645
+ /**
2646
+ * Sorting column
2647
+ * @type {'username' | 'email' | 'fullname' | 'admin' | 'active'}
2648
+ * @memberof UserApiListUsers
2649
+ */
2650
+ readonly sort?: ListUsersSortEnum;
2651
+
2652
+ /**
2653
+ * Sorting order
2654
+ * @type {'asc' | 'desc'}
2655
+ * @memberof UserApiListUsers
2656
+ */
2657
+ readonly order?: ListUsersOrderEnum;
2658
+
2659
+ /**
2660
+ * Paging limit
2661
+ * @type {number}
2662
+ * @memberof UserApiListUsers
2663
+ */
2664
+ readonly limit?: number;
2665
+
2666
+ /**
2667
+ * Paging offset
2668
+ * @type {number}
2669
+ * @memberof UserApiListUsers
2670
+ */
2671
+ readonly offset?: number;
2672
+ }
2673
+
2674
+ /**
2675
+ * Request parameters for permitUserMod operation in UserApi.
2676
+ * @export
2677
+ * @interface UserApiPermitUserModRequest
2678
+ */
2679
+ export interface UserApiPermitUserModRequest {
2680
+ /**
2681
+ * A user identifier or slug
2682
+ * @type {string}
2683
+ * @memberof UserApiPermitUserMod
2684
+ */
2685
+ readonly userId: string;
2686
+
2687
+ /**
2688
+ * The user mod data to update
2689
+ * @type {UserModParams}
2690
+ * @memberof UserApiPermitUserMod
2691
+ */
2692
+ readonly userModParams: UserModParams;
2693
+ }
2694
+
2695
+ /**
2696
+ * Request parameters for permitUserPack operation in UserApi.
2697
+ * @export
2698
+ * @interface UserApiPermitUserPackRequest
2699
+ */
2700
+ export interface UserApiPermitUserPackRequest {
2701
+ /**
2702
+ * A user identifier or slug
2703
+ * @type {string}
2704
+ * @memberof UserApiPermitUserPack
2705
+ */
2706
+ readonly userId: string;
2707
+
2708
+ /**
2709
+ * The user pack data to update
2710
+ * @type {UserPackParams}
2711
+ * @memberof UserApiPermitUserPack
2712
+ */
2713
+ readonly userPackParams: UserPackParams;
2714
+ }
2715
+
2716
+ /**
2717
+ * Request parameters for permitUserTeam operation in UserApi.
2718
+ * @export
2719
+ * @interface UserApiPermitUserTeamRequest
2720
+ */
2721
+ export interface UserApiPermitUserTeamRequest {
2722
+ /**
2723
+ * A user identifier or slug
2724
+ * @type {string}
2725
+ * @memberof UserApiPermitUserTeam
2726
+ */
2727
+ readonly userId: string;
2728
+
2729
+ /**
2730
+ * The user team data to update
2731
+ * @type {UserTeamParams}
2732
+ * @memberof UserApiPermitUserTeam
2733
+ */
2734
+ readonly userTeamParams: UserTeamParams;
2735
+ }
2736
+
2737
+ /**
2738
+ * Request parameters for showUser operation in UserApi.
2739
+ * @export
2740
+ * @interface UserApiShowUserRequest
2741
+ */
2742
+ export interface UserApiShowUserRequest {
2743
+ /**
2744
+ * A user identifier or slug
2745
+ * @type {string}
2746
+ * @memberof UserApiShowUser
2747
+ */
2748
+ readonly userId: string;
2749
+ }
2750
+
2751
+ /**
2752
+ * Request parameters for updateUser operation in UserApi.
2753
+ * @export
2754
+ * @interface UserApiUpdateUserRequest
2755
+ */
2756
+ export interface UserApiUpdateUserRequest {
2757
+ /**
2758
+ * A user identifier or slug
2759
+ * @type {string}
2760
+ * @memberof UserApiUpdateUser
2761
+ */
2762
+ readonly userId: string;
2763
+
2764
+ /**
2765
+ * The user data to update
2766
+ * @type {User}
2767
+ * @memberof UserApiUpdateUser
2768
+ */
2769
+ readonly user: User;
2770
+ }
2771
+
2772
+ /**
2773
+ * UserApi - object-oriented interface
2774
+ * @export
2775
+ * @class UserApi
2776
+ * @extends {BaseAPI}
2777
+ */
2778
+ export class UserApi extends BaseAPI {
2779
+ /**
2780
+ *
2781
+ * @summary Attach a mod to user
2782
+ * @param {UserApiAttachUserToModRequest} requestParameters Request parameters.
2783
+ * @param {*} [options] Override http request option.
2784
+ * @throws {RequiredError}
2785
+ * @memberof UserApi
2786
+ */
2787
+ public attachUserToMod(
2788
+ requestParameters: UserApiAttachUserToModRequest,
2789
+ options?: RawAxiosRequestConfig,
2790
+ ) {
2791
+ return UserApiFp(this.configuration)
2792
+ .attachUserToMod(
2793
+ requestParameters.userId,
2794
+ requestParameters.userModParams,
2795
+ options,
2796
+ )
2797
+ .then((request) => request(this.axios, this.basePath));
2798
+ }
2799
+
2800
+ /**
2801
+ *
2802
+ * @summary Attach a pack to user
2803
+ * @param {UserApiAttachUserToPackRequest} requestParameters Request parameters.
2804
+ * @param {*} [options] Override http request option.
2805
+ * @throws {RequiredError}
2806
+ * @memberof UserApi
2807
+ */
2808
+ public attachUserToPack(
2809
+ requestParameters: UserApiAttachUserToPackRequest,
2810
+ options?: RawAxiosRequestConfig,
2811
+ ) {
2812
+ return UserApiFp(this.configuration)
2813
+ .attachUserToPack(
2814
+ requestParameters.userId,
2815
+ requestParameters.userPackParams,
2816
+ options,
2817
+ )
2818
+ .then((request) => request(this.axios, this.basePath));
2819
+ }
2820
+
2821
+ /**
2822
+ *
2823
+ * @summary Attach a team to user
2824
+ * @param {UserApiAttachUserToTeamRequest} requestParameters Request parameters.
2825
+ * @param {*} [options] Override http request option.
2826
+ * @throws {RequiredError}
2827
+ * @memberof UserApi
2828
+ */
2829
+ public attachUserToTeam(
2830
+ requestParameters: UserApiAttachUserToTeamRequest,
2831
+ options?: RawAxiosRequestConfig,
2832
+ ) {
2833
+ return UserApiFp(this.configuration)
2834
+ .attachUserToTeam(
2835
+ requestParameters.userId,
2836
+ requestParameters.userTeamParams,
2837
+ options,
2838
+ )
2839
+ .then((request) => request(this.axios, this.basePath));
2840
+ }
2841
+
2842
+ /**
2843
+ *
2844
+ * @summary Create a new user
2845
+ * @param {UserApiCreateUserRequest} requestParameters Request parameters.
2846
+ * @param {*} [options] Override http request option.
2847
+ * @throws {RequiredError}
2848
+ * @memberof UserApi
2849
+ */
2850
+ public createUser(
2851
+ requestParameters: UserApiCreateUserRequest,
2852
+ options?: RawAxiosRequestConfig,
2853
+ ) {
2854
+ return UserApiFp(this.configuration)
2855
+ .createUser(requestParameters.user, options)
2856
+ .then((request) => request(this.axios, this.basePath));
2857
+ }
2858
+
2859
+ /**
2860
+ *
2861
+ * @summary Delete a specific user
2862
+ * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
2863
+ * @param {*} [options] Override http request option.
2864
+ * @throws {RequiredError}
2865
+ * @memberof UserApi
2866
+ */
2867
+ public deleteUser(
2868
+ requestParameters: UserApiDeleteUserRequest,
2869
+ options?: RawAxiosRequestConfig,
2870
+ ) {
2871
+ return UserApiFp(this.configuration)
2872
+ .deleteUser(requestParameters.userId, options)
2873
+ .then((request) => request(this.axios, this.basePath));
2874
+ }
2875
+
2876
+ /**
2877
+ *
2878
+ * @summary Unlink a mod from user
2879
+ * @param {UserApiDeleteUserFromModRequest} requestParameters Request parameters.
2880
+ * @param {*} [options] Override http request option.
2881
+ * @throws {RequiredError}
2882
+ * @memberof UserApi
2883
+ */
2884
+ public deleteUserFromMod(
2885
+ requestParameters: UserApiDeleteUserFromModRequest,
2886
+ options?: RawAxiosRequestConfig,
2887
+ ) {
2888
+ return UserApiFp(this.configuration)
2889
+ .deleteUserFromMod(
2890
+ requestParameters.userId,
2891
+ requestParameters.userModParams,
2892
+ options,
2893
+ )
2894
+ .then((request) => request(this.axios, this.basePath));
2895
+ }
2896
+
2897
+ /**
2898
+ *
2899
+ * @summary Unlink a pack from user
2900
+ * @param {UserApiDeleteUserFromPackRequest} requestParameters Request parameters.
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ * @memberof UserApi
2904
+ */
2905
+ public deleteUserFromPack(
2906
+ requestParameters: UserApiDeleteUserFromPackRequest,
2907
+ options?: RawAxiosRequestConfig,
2908
+ ) {
2909
+ return UserApiFp(this.configuration)
2910
+ .deleteUserFromPack(
2911
+ requestParameters.userId,
2912
+ requestParameters.userPackParams,
2913
+ options,
2914
+ )
2915
+ .then((request) => request(this.axios, this.basePath));
2916
+ }
2917
+
2918
+ /**
2919
+ *
2920
+ * @summary Unlink a team from user
2921
+ * @param {UserApiDeleteUserFromTeamRequest} requestParameters Request parameters.
2922
+ * @param {*} [options] Override http request option.
2923
+ * @throws {RequiredError}
2924
+ * @memberof UserApi
2925
+ */
2926
+ public deleteUserFromTeam(
2927
+ requestParameters: UserApiDeleteUserFromTeamRequest,
2928
+ options?: RawAxiosRequestConfig,
2929
+ ) {
2930
+ return UserApiFp(this.configuration)
2931
+ .deleteUserFromTeam(
2932
+ requestParameters.userId,
2933
+ requestParameters.userTeamParams,
2934
+ options,
2935
+ )
2936
+ .then((request) => request(this.axios, this.basePath));
2937
+ }
2938
+
2939
+ /**
2940
+ *
2941
+ * @summary Fetch all mods attached to user
2942
+ * @param {UserApiListUserModsRequest} requestParameters Request parameters.
2943
+ * @param {*} [options] Override http request option.
2944
+ * @throws {RequiredError}
2945
+ * @memberof UserApi
2946
+ */
2947
+ public listUserMods(
2948
+ requestParameters: UserApiListUserModsRequest,
2949
+ options?: RawAxiosRequestConfig,
2950
+ ) {
2951
+ return UserApiFp(this.configuration)
2952
+ .listUserMods(
2953
+ requestParameters.userId,
2954
+ requestParameters.search,
2955
+ requestParameters.sort,
2956
+ requestParameters.order,
2957
+ requestParameters.limit,
2958
+ requestParameters.offset,
2959
+ options,
2960
+ )
2961
+ .then((request) => request(this.axios, this.basePath));
2962
+ }
2963
+
2964
+ /**
2965
+ *
2966
+ * @summary Fetch all packs attached to user
2967
+ * @param {UserApiListUserPacksRequest} requestParameters Request parameters.
2968
+ * @param {*} [options] Override http request option.
2969
+ * @throws {RequiredError}
2970
+ * @memberof UserApi
2971
+ */
2972
+ public listUserPacks(
2973
+ requestParameters: UserApiListUserPacksRequest,
2974
+ options?: RawAxiosRequestConfig,
2975
+ ) {
2976
+ return UserApiFp(this.configuration)
2977
+ .listUserPacks(
2978
+ requestParameters.userId,
2979
+ requestParameters.search,
2980
+ requestParameters.sort,
2981
+ requestParameters.order,
2982
+ requestParameters.limit,
2983
+ requestParameters.offset,
2984
+ options,
2985
+ )
2986
+ .then((request) => request(this.axios, this.basePath));
2987
+ }
2988
+
2989
+ /**
2990
+ *
2991
+ * @summary Fetch all teams attached to user
2992
+ * @param {UserApiListUserTeamsRequest} requestParameters Request parameters.
2993
+ * @param {*} [options] Override http request option.
2994
+ * @throws {RequiredError}
2995
+ * @memberof UserApi
2996
+ */
2997
+ public listUserTeams(
2998
+ requestParameters: UserApiListUserTeamsRequest,
2999
+ options?: RawAxiosRequestConfig,
3000
+ ) {
3001
+ return UserApiFp(this.configuration)
3002
+ .listUserTeams(
3003
+ requestParameters.userId,
3004
+ requestParameters.search,
3005
+ requestParameters.sort,
3006
+ requestParameters.order,
3007
+ requestParameters.limit,
3008
+ requestParameters.offset,
3009
+ options,
3010
+ )
3011
+ .then((request) => request(this.axios, this.basePath));
3012
+ }
3013
+
3014
+ /**
3015
+ *
3016
+ * @summary Fetch all available users
3017
+ * @param {UserApiListUsersRequest} requestParameters Request parameters.
3018
+ * @param {*} [options] Override http request option.
3019
+ * @throws {RequiredError}
3020
+ * @memberof UserApi
3021
+ */
3022
+ public listUsers(
3023
+ requestParameters: UserApiListUsersRequest = {},
3024
+ options?: RawAxiosRequestConfig,
3025
+ ) {
3026
+ return UserApiFp(this.configuration)
3027
+ .listUsers(
3028
+ requestParameters.search,
3029
+ requestParameters.sort,
3030
+ requestParameters.order,
3031
+ requestParameters.limit,
3032
+ requestParameters.offset,
3033
+ options,
3034
+ )
3035
+ .then((request) => request(this.axios, this.basePath));
3036
+ }
3037
+
3038
+ /**
3039
+ *
3040
+ * @summary Update mod perms for user
3041
+ * @param {UserApiPermitUserModRequest} requestParameters Request parameters.
3042
+ * @param {*} [options] Override http request option.
3043
+ * @throws {RequiredError}
3044
+ * @memberof UserApi
3045
+ */
3046
+ public permitUserMod(
3047
+ requestParameters: UserApiPermitUserModRequest,
3048
+ options?: RawAxiosRequestConfig,
3049
+ ) {
3050
+ return UserApiFp(this.configuration)
3051
+ .permitUserMod(
3052
+ requestParameters.userId,
3053
+ requestParameters.userModParams,
3054
+ options,
3055
+ )
3056
+ .then((request) => request(this.axios, this.basePath));
3057
+ }
3058
+
3059
+ /**
3060
+ *
3061
+ * @summary Update pack perms for user
3062
+ * @param {UserApiPermitUserPackRequest} requestParameters Request parameters.
3063
+ * @param {*} [options] Override http request option.
3064
+ * @throws {RequiredError}
3065
+ * @memberof UserApi
3066
+ */
3067
+ public permitUserPack(
3068
+ requestParameters: UserApiPermitUserPackRequest,
3069
+ options?: RawAxiosRequestConfig,
3070
+ ) {
3071
+ return UserApiFp(this.configuration)
3072
+ .permitUserPack(
3073
+ requestParameters.userId,
3074
+ requestParameters.userPackParams,
3075
+ options,
3076
+ )
3077
+ .then((request) => request(this.axios, this.basePath));
3078
+ }
3079
+
3080
+ /**
3081
+ *
3082
+ * @summary Update team perms for user
3083
+ * @param {UserApiPermitUserTeamRequest} requestParameters Request parameters.
3084
+ * @param {*} [options] Override http request option.
3085
+ * @throws {RequiredError}
3086
+ * @memberof UserApi
3087
+ */
3088
+ public permitUserTeam(
3089
+ requestParameters: UserApiPermitUserTeamRequest,
3090
+ options?: RawAxiosRequestConfig,
3091
+ ) {
3092
+ return UserApiFp(this.configuration)
3093
+ .permitUserTeam(
3094
+ requestParameters.userId,
3095
+ requestParameters.userTeamParams,
3096
+ options,
3097
+ )
3098
+ .then((request) => request(this.axios, this.basePath));
3099
+ }
3100
+
3101
+ /**
3102
+ *
3103
+ * @summary Fetch a specific user
3104
+ * @param {UserApiShowUserRequest} requestParameters Request parameters.
3105
+ * @param {*} [options] Override http request option.
3106
+ * @throws {RequiredError}
3107
+ * @memberof UserApi
3108
+ */
3109
+ public showUser(
3110
+ requestParameters: UserApiShowUserRequest,
3111
+ options?: RawAxiosRequestConfig,
3112
+ ) {
3113
+ return UserApiFp(this.configuration)
3114
+ .showUser(requestParameters.userId, options)
3115
+ .then((request) => request(this.axios, this.basePath));
3116
+ }
3117
+
3118
+ /**
3119
+ *
3120
+ * @summary Update a specific user
3121
+ * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
3122
+ * @param {*} [options] Override http request option.
3123
+ * @throws {RequiredError}
3124
+ * @memberof UserApi
3125
+ */
3126
+ public updateUser(
3127
+ requestParameters: UserApiUpdateUserRequest,
3128
+ options?: RawAxiosRequestConfig,
3129
+ ) {
3130
+ return UserApiFp(this.configuration)
3131
+ .updateUser(requestParameters.userId, requestParameters.user, options)
3132
+ .then((request) => request(this.axios, this.basePath));
3133
+ }
3134
+ }
3135
+
3136
+ /**
3137
+ * @export
3138
+ */
3139
+ export const ListUserModsSortEnum = {
3140
+ Slug: "slug",
3141
+ Name: "name",
3142
+ } as const;
3143
+ export type ListUserModsSortEnum =
3144
+ (typeof ListUserModsSortEnum)[keyof typeof ListUserModsSortEnum];
3145
+ /**
3146
+ * @export
3147
+ */
3148
+ export const ListUserModsOrderEnum = {
3149
+ Asc: "asc",
3150
+ Desc: "desc",
3151
+ } as const;
3152
+ export type ListUserModsOrderEnum =
3153
+ (typeof ListUserModsOrderEnum)[keyof typeof ListUserModsOrderEnum];
3154
+ /**
3155
+ * @export
3156
+ */
3157
+ export const ListUserPacksSortEnum = {
3158
+ Slug: "slug",
3159
+ Name: "name",
3160
+ } as const;
3161
+ export type ListUserPacksSortEnum =
3162
+ (typeof ListUserPacksSortEnum)[keyof typeof ListUserPacksSortEnum];
3163
+ /**
3164
+ * @export
3165
+ */
3166
+ export const ListUserPacksOrderEnum = {
3167
+ Asc: "asc",
3168
+ Desc: "desc",
3169
+ } as const;
3170
+ export type ListUserPacksOrderEnum =
3171
+ (typeof ListUserPacksOrderEnum)[keyof typeof ListUserPacksOrderEnum];
3172
+ /**
3173
+ * @export
3174
+ */
3175
+ export const ListUserTeamsSortEnum = {
3176
+ Slug: "slug",
3177
+ Name: "name",
3178
+ } as const;
3179
+ export type ListUserTeamsSortEnum =
3180
+ (typeof ListUserTeamsSortEnum)[keyof typeof ListUserTeamsSortEnum];
3181
+ /**
3182
+ * @export
3183
+ */
3184
+ export const ListUserTeamsOrderEnum = {
3185
+ Asc: "asc",
3186
+ Desc: "desc",
3187
+ } as const;
3188
+ export type ListUserTeamsOrderEnum =
3189
+ (typeof ListUserTeamsOrderEnum)[keyof typeof ListUserTeamsOrderEnum];
3190
+ /**
3191
+ * @export
3192
+ */
3193
+ export const ListUsersSortEnum = {
3194
+ Username: "username",
3195
+ Email: "email",
3196
+ Fullname: "fullname",
3197
+ Admin: "admin",
3198
+ Active: "active",
3199
+ } as const;
3200
+ export type ListUsersSortEnum =
3201
+ (typeof ListUsersSortEnum)[keyof typeof ListUsersSortEnum];
3202
+ /**
3203
+ * @export
3204
+ */
3205
+ export const ListUsersOrderEnum = {
3206
+ Asc: "asc",
3207
+ Desc: "desc",
3208
+ } as const;
3209
+ export type ListUsersOrderEnum =
3210
+ (typeof ListUsersOrderEnum)[keyof typeof ListUsersOrderEnum];