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,3216 @@
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 { Team } from "../model";
48
+ // @ts-ignore
49
+ import type { TeamModParams } from "../model";
50
+ // @ts-ignore
51
+ import type { TeamMods } from "../model";
52
+ // @ts-ignore
53
+ import type { TeamPackParams } from "../model";
54
+ // @ts-ignore
55
+ import type { TeamPacks } from "../model";
56
+ // @ts-ignore
57
+ import type { TeamUserParams } from "../model";
58
+ // @ts-ignore
59
+ import type { TeamUsers } from "../model";
60
+ // @ts-ignore
61
+ import type { Teams } from "../model";
62
+ /**
63
+ * TeamApi - axios parameter creator
64
+ * @export
65
+ */
66
+ export const TeamApiAxiosParamCreator = function (
67
+ configuration?: Configuration,
68
+ ) {
69
+ return {
70
+ /**
71
+ *
72
+ * @summary Attach a mod to team
73
+ * @param {string} teamId A team identifier or slug
74
+ * @param {TeamModParams} teamModParams The team mod data to attach
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ attachTeamToMod: async (
79
+ teamId: string,
80
+ teamModParams: TeamModParams,
81
+ options: RawAxiosRequestConfig = {},
82
+ ): Promise<RequestArgs> => {
83
+ // verify required parameter 'teamId' is not null or undefined
84
+ assertParamExists("attachTeamToMod", "teamId", teamId);
85
+ // verify required parameter 'teamModParams' is not null or undefined
86
+ assertParamExists("attachTeamToMod", "teamModParams", teamModParams);
87
+ const localVarPath = `/teams/{team_id}/mods`.replace(
88
+ `{${"team_id"}}`,
89
+ encodeURIComponent(String(teamId)),
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
+ teamModParams,
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 team
148
+ * @param {string} teamId A team identifier or slug
149
+ * @param {TeamPackParams} teamPackParams The team pack data to attach
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ attachTeamToPack: async (
154
+ teamId: string,
155
+ teamPackParams: TeamPackParams,
156
+ options: RawAxiosRequestConfig = {},
157
+ ): Promise<RequestArgs> => {
158
+ // verify required parameter 'teamId' is not null or undefined
159
+ assertParamExists("attachTeamToPack", "teamId", teamId);
160
+ // verify required parameter 'teamPackParams' is not null or undefined
161
+ assertParamExists("attachTeamToPack", "teamPackParams", teamPackParams);
162
+ const localVarPath = `/teams/{team_id}/packs`.replace(
163
+ `{${"team_id"}}`,
164
+ encodeURIComponent(String(teamId)),
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
+ teamPackParams,
211
+ localVarRequestOptions,
212
+ configuration,
213
+ );
214
+
215
+ return {
216
+ url: toPathString(localVarUrlObj),
217
+ options: localVarRequestOptions,
218
+ };
219
+ },
220
+ /**
221
+ *
222
+ * @summary Attach a user to team
223
+ * @param {string} teamId A team identifier or slug
224
+ * @param {TeamUserParams} teamUserParams The team user data to attach
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ attachTeamToUser: async (
229
+ teamId: string,
230
+ teamUserParams: TeamUserParams,
231
+ options: RawAxiosRequestConfig = {},
232
+ ): Promise<RequestArgs> => {
233
+ // verify required parameter 'teamId' is not null or undefined
234
+ assertParamExists("attachTeamToUser", "teamId", teamId);
235
+ // verify required parameter 'teamUserParams' is not null or undefined
236
+ assertParamExists("attachTeamToUser", "teamUserParams", teamUserParams);
237
+ const localVarPath = `/teams/{team_id}/users`.replace(
238
+ `{${"team_id"}}`,
239
+ encodeURIComponent(String(teamId)),
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
+ teamUserParams,
286
+ localVarRequestOptions,
287
+ configuration,
288
+ );
289
+
290
+ return {
291
+ url: toPathString(localVarUrlObj),
292
+ options: localVarRequestOptions,
293
+ };
294
+ },
295
+ /**
296
+ *
297
+ * @summary Create a new team
298
+ * @param {Team} team The team data to create
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ createTeam: async (
303
+ team: Team,
304
+ options: RawAxiosRequestConfig = {},
305
+ ): Promise<RequestArgs> => {
306
+ // verify required parameter 'team' is not null or undefined
307
+ assertParamExists("createTeam", "team", team);
308
+ const localVarPath = `/teams`;
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
+ team,
354
+ localVarRequestOptions,
355
+ configuration,
356
+ );
357
+
358
+ return {
359
+ url: toPathString(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ };
362
+ },
363
+ /**
364
+ *
365
+ * @summary Delete a specific team
366
+ * @param {string} teamId A team identifier or slug
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ deleteTeam: async (
371
+ teamId: string,
372
+ options: RawAxiosRequestConfig = {},
373
+ ): Promise<RequestArgs> => {
374
+ // verify required parameter 'teamId' is not null or undefined
375
+ assertParamExists("deleteTeam", "teamId", teamId);
376
+ const localVarPath = `/teams/{team_id}`.replace(
377
+ `{${"team_id"}}`,
378
+ encodeURIComponent(String(teamId)),
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 team
430
+ * @param {string} teamId A team identifier or slug
431
+ * @param {TeamModParams} teamModParams The team mod data to unlink
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ deleteTeamFromMod: async (
436
+ teamId: string,
437
+ teamModParams: TeamModParams,
438
+ options: RawAxiosRequestConfig = {},
439
+ ): Promise<RequestArgs> => {
440
+ // verify required parameter 'teamId' is not null or undefined
441
+ assertParamExists("deleteTeamFromMod", "teamId", teamId);
442
+ // verify required parameter 'teamModParams' is not null or undefined
443
+ assertParamExists("deleteTeamFromMod", "teamModParams", teamModParams);
444
+ const localVarPath = `/teams/{team_id}/mods`.replace(
445
+ `{${"team_id"}}`,
446
+ encodeURIComponent(String(teamId)),
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
+ teamModParams,
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 team
505
+ * @param {string} teamId A team identifier or slug
506
+ * @param {TeamPackParams} teamPackParams The team pack data to unlink
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ deleteTeamFromPack: async (
511
+ teamId: string,
512
+ teamPackParams: TeamPackParams,
513
+ options: RawAxiosRequestConfig = {},
514
+ ): Promise<RequestArgs> => {
515
+ // verify required parameter 'teamId' is not null or undefined
516
+ assertParamExists("deleteTeamFromPack", "teamId", teamId);
517
+ // verify required parameter 'teamPackParams' is not null or undefined
518
+ assertParamExists("deleteTeamFromPack", "teamPackParams", teamPackParams);
519
+ const localVarPath = `/teams/{team_id}/packs`.replace(
520
+ `{${"team_id"}}`,
521
+ encodeURIComponent(String(teamId)),
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
+ teamPackParams,
568
+ localVarRequestOptions,
569
+ configuration,
570
+ );
571
+
572
+ return {
573
+ url: toPathString(localVarUrlObj),
574
+ options: localVarRequestOptions,
575
+ };
576
+ },
577
+ /**
578
+ *
579
+ * @summary Unlink a user from team
580
+ * @param {string} teamId A team identifier or slug
581
+ * @param {TeamUserParams} teamUserParams The team user data to unlink
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ deleteTeamFromUser: async (
586
+ teamId: string,
587
+ teamUserParams: TeamUserParams,
588
+ options: RawAxiosRequestConfig = {},
589
+ ): Promise<RequestArgs> => {
590
+ // verify required parameter 'teamId' is not null or undefined
591
+ assertParamExists("deleteTeamFromUser", "teamId", teamId);
592
+ // verify required parameter 'teamUserParams' is not null or undefined
593
+ assertParamExists("deleteTeamFromUser", "teamUserParams", teamUserParams);
594
+ const localVarPath = `/teams/{team_id}/users`.replace(
595
+ `{${"team_id"}}`,
596
+ encodeURIComponent(String(teamId)),
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
+ teamUserParams,
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 team
655
+ * @param {string} teamId A team identifier or slug
656
+ * @param {string} [search] Search query
657
+ * @param {ListTeamModsSortEnum} [sort] Sorting column
658
+ * @param {ListTeamModsOrderEnum} [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
+ listTeamMods: async (
665
+ teamId: string,
666
+ search?: string,
667
+ sort?: ListTeamModsSortEnum,
668
+ order?: ListTeamModsOrderEnum,
669
+ limit?: number,
670
+ offset?: number,
671
+ options: RawAxiosRequestConfig = {},
672
+ ): Promise<RequestArgs> => {
673
+ // verify required parameter 'teamId' is not null or undefined
674
+ assertParamExists("listTeamMods", "teamId", teamId);
675
+ const localVarPath = `/teams/{team_id}/mods`.replace(
676
+ `{${"team_id"}}`,
677
+ encodeURIComponent(String(teamId)),
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 team
749
+ * @param {string} teamId A team identifier or slug
750
+ * @param {string} [search] Search query
751
+ * @param {ListTeamPacksSortEnum} [sort] Sorting column
752
+ * @param {ListTeamPacksOrderEnum} [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
+ listTeamPacks: async (
759
+ teamId: string,
760
+ search?: string,
761
+ sort?: ListTeamPacksSortEnum,
762
+ order?: ListTeamPacksOrderEnum,
763
+ limit?: number,
764
+ offset?: number,
765
+ options: RawAxiosRequestConfig = {},
766
+ ): Promise<RequestArgs> => {
767
+ // verify required parameter 'teamId' is not null or undefined
768
+ assertParamExists("listTeamPacks", "teamId", teamId);
769
+ const localVarPath = `/teams/{team_id}/packs`.replace(
770
+ `{${"team_id"}}`,
771
+ encodeURIComponent(String(teamId)),
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 users attached to team
843
+ * @param {string} teamId A team identifier or slug
844
+ * @param {string} [search] Search query
845
+ * @param {ListTeamUsersSortEnum} [sort] Sorting column
846
+ * @param {ListTeamUsersOrderEnum} [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
+ listTeamUsers: async (
853
+ teamId: string,
854
+ search?: string,
855
+ sort?: ListTeamUsersSortEnum,
856
+ order?: ListTeamUsersOrderEnum,
857
+ limit?: number,
858
+ offset?: number,
859
+ options: RawAxiosRequestConfig = {},
860
+ ): Promise<RequestArgs> => {
861
+ // verify required parameter 'teamId' is not null or undefined
862
+ assertParamExists("listTeamUsers", "teamId", teamId);
863
+ const localVarPath = `/teams/{team_id}/users`.replace(
864
+ `{${"team_id"}}`,
865
+ encodeURIComponent(String(teamId)),
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 teams
937
+ * @param {string} [search] Search query
938
+ * @param {ListTeamsSortEnum} [sort] Sorting column
939
+ * @param {ListTeamsOrderEnum} [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
+ listTeams: async (
946
+ search?: string,
947
+ sort?: ListTeamsSortEnum,
948
+ order?: ListTeamsOrderEnum,
949
+ limit?: number,
950
+ offset?: number,
951
+ options: RawAxiosRequestConfig = {},
952
+ ): Promise<RequestArgs> => {
953
+ const localVarPath = `/teams`;
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 team
1024
+ * @param {string} teamId A team identifier or slug
1025
+ * @param {TeamModParams} teamModParams The team mod data to update
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ permitTeamMod: async (
1030
+ teamId: string,
1031
+ teamModParams: TeamModParams,
1032
+ options: RawAxiosRequestConfig = {},
1033
+ ): Promise<RequestArgs> => {
1034
+ // verify required parameter 'teamId' is not null or undefined
1035
+ assertParamExists("permitTeamMod", "teamId", teamId);
1036
+ // verify required parameter 'teamModParams' is not null or undefined
1037
+ assertParamExists("permitTeamMod", "teamModParams", teamModParams);
1038
+ const localVarPath = `/teams/{team_id}/mods`.replace(
1039
+ `{${"team_id"}}`,
1040
+ encodeURIComponent(String(teamId)),
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
+ teamModParams,
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 team
1099
+ * @param {string} teamId A team identifier or slug
1100
+ * @param {TeamPackParams} teamPackParams The team pack data to update
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ permitTeamPack: async (
1105
+ teamId: string,
1106
+ teamPackParams: TeamPackParams,
1107
+ options: RawAxiosRequestConfig = {},
1108
+ ): Promise<RequestArgs> => {
1109
+ // verify required parameter 'teamId' is not null or undefined
1110
+ assertParamExists("permitTeamPack", "teamId", teamId);
1111
+ // verify required parameter 'teamPackParams' is not null or undefined
1112
+ assertParamExists("permitTeamPack", "teamPackParams", teamPackParams);
1113
+ const localVarPath = `/teams/{team_id}/packs`.replace(
1114
+ `{${"team_id"}}`,
1115
+ encodeURIComponent(String(teamId)),
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
+ teamPackParams,
1162
+ localVarRequestOptions,
1163
+ configuration,
1164
+ );
1165
+
1166
+ return {
1167
+ url: toPathString(localVarUrlObj),
1168
+ options: localVarRequestOptions,
1169
+ };
1170
+ },
1171
+ /**
1172
+ *
1173
+ * @summary Update user perms for team
1174
+ * @param {string} teamId A team identifier or slug
1175
+ * @param {TeamUserParams} teamUserParams The team user data to update
1176
+ * @param {*} [options] Override http request option.
1177
+ * @throws {RequiredError}
1178
+ */
1179
+ permitTeamUser: async (
1180
+ teamId: string,
1181
+ teamUserParams: TeamUserParams,
1182
+ options: RawAxiosRequestConfig = {},
1183
+ ): Promise<RequestArgs> => {
1184
+ // verify required parameter 'teamId' is not null or undefined
1185
+ assertParamExists("permitTeamUser", "teamId", teamId);
1186
+ // verify required parameter 'teamUserParams' is not null or undefined
1187
+ assertParamExists("permitTeamUser", "teamUserParams", teamUserParams);
1188
+ const localVarPath = `/teams/{team_id}/users`.replace(
1189
+ `{${"team_id"}}`,
1190
+ encodeURIComponent(String(teamId)),
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
+ teamUserParams,
1237
+ localVarRequestOptions,
1238
+ configuration,
1239
+ );
1240
+
1241
+ return {
1242
+ url: toPathString(localVarUrlObj),
1243
+ options: localVarRequestOptions,
1244
+ };
1245
+ },
1246
+ /**
1247
+ *
1248
+ * @summary Fetch a specific team
1249
+ * @param {string} teamId A team identifier or slug
1250
+ * @param {*} [options] Override http request option.
1251
+ * @throws {RequiredError}
1252
+ */
1253
+ showTeam: async (
1254
+ teamId: string,
1255
+ options: RawAxiosRequestConfig = {},
1256
+ ): Promise<RequestArgs> => {
1257
+ // verify required parameter 'teamId' is not null or undefined
1258
+ assertParamExists("showTeam", "teamId", teamId);
1259
+ const localVarPath = `/teams/{team_id}`.replace(
1260
+ `{${"team_id"}}`,
1261
+ encodeURIComponent(String(teamId)),
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 team
1313
+ * @param {string} teamId A team identifier or slug
1314
+ * @param {Team} team The team data to update
1315
+ * @param {*} [options] Override http request option.
1316
+ * @throws {RequiredError}
1317
+ */
1318
+ updateTeam: async (
1319
+ teamId: string,
1320
+ team: Team,
1321
+ options: RawAxiosRequestConfig = {},
1322
+ ): Promise<RequestArgs> => {
1323
+ // verify required parameter 'teamId' is not null or undefined
1324
+ assertParamExists("updateTeam", "teamId", teamId);
1325
+ // verify required parameter 'team' is not null or undefined
1326
+ assertParamExists("updateTeam", "team", team);
1327
+ const localVarPath = `/teams/{team_id}`.replace(
1328
+ `{${"team_id"}}`,
1329
+ encodeURIComponent(String(teamId)),
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
+ team,
1376
+ localVarRequestOptions,
1377
+ configuration,
1378
+ );
1379
+
1380
+ return {
1381
+ url: toPathString(localVarUrlObj),
1382
+ options: localVarRequestOptions,
1383
+ };
1384
+ },
1385
+ };
1386
+ };
1387
+
1388
+ /**
1389
+ * TeamApi - functional programming interface
1390
+ * @export
1391
+ */
1392
+ export const TeamApiFp = function (configuration?: Configuration) {
1393
+ const localVarAxiosParamCreator = TeamApiAxiosParamCreator(configuration);
1394
+ return {
1395
+ /**
1396
+ *
1397
+ * @summary Attach a mod to team
1398
+ * @param {string} teamId A team identifier or slug
1399
+ * @param {TeamModParams} teamModParams The team mod data to attach
1400
+ * @param {*} [options] Override http request option.
1401
+ * @throws {RequiredError}
1402
+ */
1403
+ async attachTeamToMod(
1404
+ teamId: string,
1405
+ teamModParams: TeamModParams,
1406
+ options?: RawAxiosRequestConfig,
1407
+ ): Promise<
1408
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1409
+ > {
1410
+ const localVarAxiosArgs = await localVarAxiosParamCreator.attachTeamToMod(
1411
+ teamId,
1412
+ teamModParams,
1413
+ options,
1414
+ );
1415
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1416
+ const localVarOperationServerBasePath =
1417
+ operationServerMap["TeamApi.attachTeamToMod"]?.[
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 team
1431
+ * @param {string} teamId A team identifier or slug
1432
+ * @param {TeamPackParams} teamPackParams The team pack data to attach
1433
+ * @param {*} [options] Override http request option.
1434
+ * @throws {RequiredError}
1435
+ */
1436
+ async attachTeamToPack(
1437
+ teamId: string,
1438
+ teamPackParams: TeamPackParams,
1439
+ options?: RawAxiosRequestConfig,
1440
+ ): Promise<
1441
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1442
+ > {
1443
+ const localVarAxiosArgs =
1444
+ await localVarAxiosParamCreator.attachTeamToPack(
1445
+ teamId,
1446
+ teamPackParams,
1447
+ options,
1448
+ );
1449
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1450
+ const localVarOperationServerBasePath =
1451
+ operationServerMap["TeamApi.attachTeamToPack"]?.[
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 user to team
1465
+ * @param {string} teamId A team identifier or slug
1466
+ * @param {TeamUserParams} teamUserParams The team user data to attach
1467
+ * @param {*} [options] Override http request option.
1468
+ * @throws {RequiredError}
1469
+ */
1470
+ async attachTeamToUser(
1471
+ teamId: string,
1472
+ teamUserParams: TeamUserParams,
1473
+ options?: RawAxiosRequestConfig,
1474
+ ): Promise<
1475
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1476
+ > {
1477
+ const localVarAxiosArgs =
1478
+ await localVarAxiosParamCreator.attachTeamToUser(
1479
+ teamId,
1480
+ teamUserParams,
1481
+ options,
1482
+ );
1483
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1484
+ const localVarOperationServerBasePath =
1485
+ operationServerMap["TeamApi.attachTeamToUser"]?.[
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 team
1499
+ * @param {Team} team The team data to create
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ */
1503
+ async createTeam(
1504
+ team: Team,
1505
+ options?: RawAxiosRequestConfig,
1506
+ ): Promise<
1507
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Team>
1508
+ > {
1509
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createTeam(
1510
+ team,
1511
+ options,
1512
+ );
1513
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1514
+ const localVarOperationServerBasePath =
1515
+ operationServerMap["TeamApi.createTeam"]?.[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 team
1528
+ * @param {string} teamId A team identifier or slug
1529
+ * @param {*} [options] Override http request option.
1530
+ * @throws {RequiredError}
1531
+ */
1532
+ async deleteTeam(
1533
+ teamId: string,
1534
+ options?: RawAxiosRequestConfig,
1535
+ ): Promise<
1536
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1537
+ > {
1538
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTeam(
1539
+ teamId,
1540
+ options,
1541
+ );
1542
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1543
+ const localVarOperationServerBasePath =
1544
+ operationServerMap["TeamApi.deleteTeam"]?.[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 team
1557
+ * @param {string} teamId A team identifier or slug
1558
+ * @param {TeamModParams} teamModParams The team mod data to unlink
1559
+ * @param {*} [options] Override http request option.
1560
+ * @throws {RequiredError}
1561
+ */
1562
+ async deleteTeamFromMod(
1563
+ teamId: string,
1564
+ teamModParams: TeamModParams,
1565
+ options?: RawAxiosRequestConfig,
1566
+ ): Promise<
1567
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1568
+ > {
1569
+ const localVarAxiosArgs =
1570
+ await localVarAxiosParamCreator.deleteTeamFromMod(
1571
+ teamId,
1572
+ teamModParams,
1573
+ options,
1574
+ );
1575
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1576
+ const localVarOperationServerBasePath =
1577
+ operationServerMap["TeamApi.deleteTeamFromMod"]?.[
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 team
1591
+ * @param {string} teamId A team identifier or slug
1592
+ * @param {TeamPackParams} teamPackParams The team pack data to unlink
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ */
1596
+ async deleteTeamFromPack(
1597
+ teamId: string,
1598
+ teamPackParams: TeamPackParams,
1599
+ options?: RawAxiosRequestConfig,
1600
+ ): Promise<
1601
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1602
+ > {
1603
+ const localVarAxiosArgs =
1604
+ await localVarAxiosParamCreator.deleteTeamFromPack(
1605
+ teamId,
1606
+ teamPackParams,
1607
+ options,
1608
+ );
1609
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1610
+ const localVarOperationServerBasePath =
1611
+ operationServerMap["TeamApi.deleteTeamFromPack"]?.[
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 user from team
1625
+ * @param {string} teamId A team identifier or slug
1626
+ * @param {TeamUserParams} teamUserParams The team user data to unlink
1627
+ * @param {*} [options] Override http request option.
1628
+ * @throws {RequiredError}
1629
+ */
1630
+ async deleteTeamFromUser(
1631
+ teamId: string,
1632
+ teamUserParams: TeamUserParams,
1633
+ options?: RawAxiosRequestConfig,
1634
+ ): Promise<
1635
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1636
+ > {
1637
+ const localVarAxiosArgs =
1638
+ await localVarAxiosParamCreator.deleteTeamFromUser(
1639
+ teamId,
1640
+ teamUserParams,
1641
+ options,
1642
+ );
1643
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1644
+ const localVarOperationServerBasePath =
1645
+ operationServerMap["TeamApi.deleteTeamFromUser"]?.[
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 team
1659
+ * @param {string} teamId A team identifier or slug
1660
+ * @param {string} [search] Search query
1661
+ * @param {ListTeamModsSortEnum} [sort] Sorting column
1662
+ * @param {ListTeamModsOrderEnum} [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 listTeamMods(
1669
+ teamId: string,
1670
+ search?: string,
1671
+ sort?: ListTeamModsSortEnum,
1672
+ order?: ListTeamModsOrderEnum,
1673
+ limit?: number,
1674
+ offset?: number,
1675
+ options?: RawAxiosRequestConfig,
1676
+ ): Promise<
1677
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeamMods>
1678
+ > {
1679
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTeamMods(
1680
+ teamId,
1681
+ search,
1682
+ sort,
1683
+ order,
1684
+ limit,
1685
+ offset,
1686
+ options,
1687
+ );
1688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1689
+ const localVarOperationServerBasePath =
1690
+ operationServerMap["TeamApi.listTeamMods"]?.[
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 team
1704
+ * @param {string} teamId A team identifier or slug
1705
+ * @param {string} [search] Search query
1706
+ * @param {ListTeamPacksSortEnum} [sort] Sorting column
1707
+ * @param {ListTeamPacksOrderEnum} [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 listTeamPacks(
1714
+ teamId: string,
1715
+ search?: string,
1716
+ sort?: ListTeamPacksSortEnum,
1717
+ order?: ListTeamPacksOrderEnum,
1718
+ limit?: number,
1719
+ offset?: number,
1720
+ options?: RawAxiosRequestConfig,
1721
+ ): Promise<
1722
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeamPacks>
1723
+ > {
1724
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTeamPacks(
1725
+ teamId,
1726
+ search,
1727
+ sort,
1728
+ order,
1729
+ limit,
1730
+ offset,
1731
+ options,
1732
+ );
1733
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1734
+ const localVarOperationServerBasePath =
1735
+ operationServerMap["TeamApi.listTeamPacks"]?.[
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 users attached to team
1749
+ * @param {string} teamId A team identifier or slug
1750
+ * @param {string} [search] Search query
1751
+ * @param {ListTeamUsersSortEnum} [sort] Sorting column
1752
+ * @param {ListTeamUsersOrderEnum} [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 listTeamUsers(
1759
+ teamId: string,
1760
+ search?: string,
1761
+ sort?: ListTeamUsersSortEnum,
1762
+ order?: ListTeamUsersOrderEnum,
1763
+ limit?: number,
1764
+ offset?: number,
1765
+ options?: RawAxiosRequestConfig,
1766
+ ): Promise<
1767
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeamUsers>
1768
+ > {
1769
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTeamUsers(
1770
+ teamId,
1771
+ search,
1772
+ sort,
1773
+ order,
1774
+ limit,
1775
+ offset,
1776
+ options,
1777
+ );
1778
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1779
+ const localVarOperationServerBasePath =
1780
+ operationServerMap["TeamApi.listTeamUsers"]?.[
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 teams
1794
+ * @param {string} [search] Search query
1795
+ * @param {ListTeamsSortEnum} [sort] Sorting column
1796
+ * @param {ListTeamsOrderEnum} [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 listTeams(
1803
+ search?: string,
1804
+ sort?: ListTeamsSortEnum,
1805
+ order?: ListTeamsOrderEnum,
1806
+ limit?: number,
1807
+ offset?: number,
1808
+ options?: RawAxiosRequestConfig,
1809
+ ): Promise<
1810
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Teams>
1811
+ > {
1812
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTeams(
1813
+ search,
1814
+ sort,
1815
+ order,
1816
+ limit,
1817
+ offset,
1818
+ options,
1819
+ );
1820
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1821
+ const localVarOperationServerBasePath =
1822
+ operationServerMap["TeamApi.listTeams"]?.[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 team
1835
+ * @param {string} teamId A team identifier or slug
1836
+ * @param {TeamModParams} teamModParams The team mod data to update
1837
+ * @param {*} [options] Override http request option.
1838
+ * @throws {RequiredError}
1839
+ */
1840
+ async permitTeamMod(
1841
+ teamId: string,
1842
+ teamModParams: TeamModParams,
1843
+ options?: RawAxiosRequestConfig,
1844
+ ): Promise<
1845
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1846
+ > {
1847
+ const localVarAxiosArgs = await localVarAxiosParamCreator.permitTeamMod(
1848
+ teamId,
1849
+ teamModParams,
1850
+ options,
1851
+ );
1852
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1853
+ const localVarOperationServerBasePath =
1854
+ operationServerMap["TeamApi.permitTeamMod"]?.[
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 team
1868
+ * @param {string} teamId A team identifier or slug
1869
+ * @param {TeamPackParams} teamPackParams The team pack data to update
1870
+ * @param {*} [options] Override http request option.
1871
+ * @throws {RequiredError}
1872
+ */
1873
+ async permitTeamPack(
1874
+ teamId: string,
1875
+ teamPackParams: TeamPackParams,
1876
+ options?: RawAxiosRequestConfig,
1877
+ ): Promise<
1878
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1879
+ > {
1880
+ const localVarAxiosArgs = await localVarAxiosParamCreator.permitTeamPack(
1881
+ teamId,
1882
+ teamPackParams,
1883
+ options,
1884
+ );
1885
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1886
+ const localVarOperationServerBasePath =
1887
+ operationServerMap["TeamApi.permitTeamPack"]?.[
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 user perms for team
1901
+ * @param {string} teamId A team identifier or slug
1902
+ * @param {TeamUserParams} teamUserParams The team user data to update
1903
+ * @param {*} [options] Override http request option.
1904
+ * @throws {RequiredError}
1905
+ */
1906
+ async permitTeamUser(
1907
+ teamId: string,
1908
+ teamUserParams: TeamUserParams,
1909
+ options?: RawAxiosRequestConfig,
1910
+ ): Promise<
1911
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1912
+ > {
1913
+ const localVarAxiosArgs = await localVarAxiosParamCreator.permitTeamUser(
1914
+ teamId,
1915
+ teamUserParams,
1916
+ options,
1917
+ );
1918
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1919
+ const localVarOperationServerBasePath =
1920
+ operationServerMap["TeamApi.permitTeamUser"]?.[
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 team
1934
+ * @param {string} teamId A team identifier or slug
1935
+ * @param {*} [options] Override http request option.
1936
+ * @throws {RequiredError}
1937
+ */
1938
+ async showTeam(
1939
+ teamId: string,
1940
+ options?: RawAxiosRequestConfig,
1941
+ ): Promise<
1942
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Team>
1943
+ > {
1944
+ const localVarAxiosArgs = await localVarAxiosParamCreator.showTeam(
1945
+ teamId,
1946
+ options,
1947
+ );
1948
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1949
+ const localVarOperationServerBasePath =
1950
+ operationServerMap["TeamApi.showTeam"]?.[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 team
1963
+ * @param {string} teamId A team identifier or slug
1964
+ * @param {Team} team The team data to update
1965
+ * @param {*} [options] Override http request option.
1966
+ * @throws {RequiredError}
1967
+ */
1968
+ async updateTeam(
1969
+ teamId: string,
1970
+ team: Team,
1971
+ options?: RawAxiosRequestConfig,
1972
+ ): Promise<
1973
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Team>
1974
+ > {
1975
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTeam(
1976
+ teamId,
1977
+ team,
1978
+ options,
1979
+ );
1980
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1981
+ const localVarOperationServerBasePath =
1982
+ operationServerMap["TeamApi.updateTeam"]?.[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
+ * TeamApi - factory interface
1997
+ * @export
1998
+ */
1999
+ export const TeamApiFactory = function (
2000
+ configuration?: Configuration,
2001
+ basePath?: string,
2002
+ axios?: AxiosInstance,
2003
+ ) {
2004
+ const localVarFp = TeamApiFp(configuration);
2005
+ return {
2006
+ /**
2007
+ *
2008
+ * @summary Attach a mod to team
2009
+ * @param {TeamApiAttachTeamToModRequest} requestParameters Request parameters.
2010
+ * @param {*} [options] Override http request option.
2011
+ * @throws {RequiredError}
2012
+ */
2013
+ attachTeamToMod(
2014
+ requestParameters: TeamApiAttachTeamToModRequest,
2015
+ options?: RawAxiosRequestConfig,
2016
+ ): AxiosPromise<Notification> {
2017
+ return localVarFp
2018
+ .attachTeamToMod(
2019
+ requestParameters.teamId,
2020
+ requestParameters.teamModParams,
2021
+ options,
2022
+ )
2023
+ .then((request) => request(axios, basePath));
2024
+ },
2025
+ /**
2026
+ *
2027
+ * @summary Attach a pack to team
2028
+ * @param {TeamApiAttachTeamToPackRequest} requestParameters Request parameters.
2029
+ * @param {*} [options] Override http request option.
2030
+ * @throws {RequiredError}
2031
+ */
2032
+ attachTeamToPack(
2033
+ requestParameters: TeamApiAttachTeamToPackRequest,
2034
+ options?: RawAxiosRequestConfig,
2035
+ ): AxiosPromise<Notification> {
2036
+ return localVarFp
2037
+ .attachTeamToPack(
2038
+ requestParameters.teamId,
2039
+ requestParameters.teamPackParams,
2040
+ options,
2041
+ )
2042
+ .then((request) => request(axios, basePath));
2043
+ },
2044
+ /**
2045
+ *
2046
+ * @summary Attach a user to team
2047
+ * @param {TeamApiAttachTeamToUserRequest} requestParameters Request parameters.
2048
+ * @param {*} [options] Override http request option.
2049
+ * @throws {RequiredError}
2050
+ */
2051
+ attachTeamToUser(
2052
+ requestParameters: TeamApiAttachTeamToUserRequest,
2053
+ options?: RawAxiosRequestConfig,
2054
+ ): AxiosPromise<Notification> {
2055
+ return localVarFp
2056
+ .attachTeamToUser(
2057
+ requestParameters.teamId,
2058
+ requestParameters.teamUserParams,
2059
+ options,
2060
+ )
2061
+ .then((request) => request(axios, basePath));
2062
+ },
2063
+ /**
2064
+ *
2065
+ * @summary Create a new team
2066
+ * @param {TeamApiCreateTeamRequest} requestParameters Request parameters.
2067
+ * @param {*} [options] Override http request option.
2068
+ * @throws {RequiredError}
2069
+ */
2070
+ createTeam(
2071
+ requestParameters: TeamApiCreateTeamRequest,
2072
+ options?: RawAxiosRequestConfig,
2073
+ ): AxiosPromise<Team> {
2074
+ return localVarFp
2075
+ .createTeam(requestParameters.team, options)
2076
+ .then((request) => request(axios, basePath));
2077
+ },
2078
+ /**
2079
+ *
2080
+ * @summary Delete a specific team
2081
+ * @param {TeamApiDeleteTeamRequest} requestParameters Request parameters.
2082
+ * @param {*} [options] Override http request option.
2083
+ * @throws {RequiredError}
2084
+ */
2085
+ deleteTeam(
2086
+ requestParameters: TeamApiDeleteTeamRequest,
2087
+ options?: RawAxiosRequestConfig,
2088
+ ): AxiosPromise<Notification> {
2089
+ return localVarFp
2090
+ .deleteTeam(requestParameters.teamId, options)
2091
+ .then((request) => request(axios, basePath));
2092
+ },
2093
+ /**
2094
+ *
2095
+ * @summary Unlink a mod from team
2096
+ * @param {TeamApiDeleteTeamFromModRequest} requestParameters Request parameters.
2097
+ * @param {*} [options] Override http request option.
2098
+ * @throws {RequiredError}
2099
+ */
2100
+ deleteTeamFromMod(
2101
+ requestParameters: TeamApiDeleteTeamFromModRequest,
2102
+ options?: RawAxiosRequestConfig,
2103
+ ): AxiosPromise<Notification> {
2104
+ return localVarFp
2105
+ .deleteTeamFromMod(
2106
+ requestParameters.teamId,
2107
+ requestParameters.teamModParams,
2108
+ options,
2109
+ )
2110
+ .then((request) => request(axios, basePath));
2111
+ },
2112
+ /**
2113
+ *
2114
+ * @summary Unlink a pack from team
2115
+ * @param {TeamApiDeleteTeamFromPackRequest} requestParameters Request parameters.
2116
+ * @param {*} [options] Override http request option.
2117
+ * @throws {RequiredError}
2118
+ */
2119
+ deleteTeamFromPack(
2120
+ requestParameters: TeamApiDeleteTeamFromPackRequest,
2121
+ options?: RawAxiosRequestConfig,
2122
+ ): AxiosPromise<Notification> {
2123
+ return localVarFp
2124
+ .deleteTeamFromPack(
2125
+ requestParameters.teamId,
2126
+ requestParameters.teamPackParams,
2127
+ options,
2128
+ )
2129
+ .then((request) => request(axios, basePath));
2130
+ },
2131
+ /**
2132
+ *
2133
+ * @summary Unlink a user from team
2134
+ * @param {TeamApiDeleteTeamFromUserRequest} requestParameters Request parameters.
2135
+ * @param {*} [options] Override http request option.
2136
+ * @throws {RequiredError}
2137
+ */
2138
+ deleteTeamFromUser(
2139
+ requestParameters: TeamApiDeleteTeamFromUserRequest,
2140
+ options?: RawAxiosRequestConfig,
2141
+ ): AxiosPromise<Notification> {
2142
+ return localVarFp
2143
+ .deleteTeamFromUser(
2144
+ requestParameters.teamId,
2145
+ requestParameters.teamUserParams,
2146
+ options,
2147
+ )
2148
+ .then((request) => request(axios, basePath));
2149
+ },
2150
+ /**
2151
+ *
2152
+ * @summary Fetch all mods attached to team
2153
+ * @param {TeamApiListTeamModsRequest} requestParameters Request parameters.
2154
+ * @param {*} [options] Override http request option.
2155
+ * @throws {RequiredError}
2156
+ */
2157
+ listTeamMods(
2158
+ requestParameters: TeamApiListTeamModsRequest,
2159
+ options?: RawAxiosRequestConfig,
2160
+ ): AxiosPromise<TeamMods> {
2161
+ return localVarFp
2162
+ .listTeamMods(
2163
+ requestParameters.teamId,
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 team
2176
+ * @param {TeamApiListTeamPacksRequest} requestParameters Request parameters.
2177
+ * @param {*} [options] Override http request option.
2178
+ * @throws {RequiredError}
2179
+ */
2180
+ listTeamPacks(
2181
+ requestParameters: TeamApiListTeamPacksRequest,
2182
+ options?: RawAxiosRequestConfig,
2183
+ ): AxiosPromise<TeamPacks> {
2184
+ return localVarFp
2185
+ .listTeamPacks(
2186
+ requestParameters.teamId,
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 users attached to team
2199
+ * @param {TeamApiListTeamUsersRequest} requestParameters Request parameters.
2200
+ * @param {*} [options] Override http request option.
2201
+ * @throws {RequiredError}
2202
+ */
2203
+ listTeamUsers(
2204
+ requestParameters: TeamApiListTeamUsersRequest,
2205
+ options?: RawAxiosRequestConfig,
2206
+ ): AxiosPromise<TeamUsers> {
2207
+ return localVarFp
2208
+ .listTeamUsers(
2209
+ requestParameters.teamId,
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 teams
2222
+ * @param {TeamApiListTeamsRequest} requestParameters Request parameters.
2223
+ * @param {*} [options] Override http request option.
2224
+ * @throws {RequiredError}
2225
+ */
2226
+ listTeams(
2227
+ requestParameters: TeamApiListTeamsRequest = {},
2228
+ options?: RawAxiosRequestConfig,
2229
+ ): AxiosPromise<Teams> {
2230
+ return localVarFp
2231
+ .listTeams(
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 team
2244
+ * @param {TeamApiPermitTeamModRequest} requestParameters Request parameters.
2245
+ * @param {*} [options] Override http request option.
2246
+ * @throws {RequiredError}
2247
+ */
2248
+ permitTeamMod(
2249
+ requestParameters: TeamApiPermitTeamModRequest,
2250
+ options?: RawAxiosRequestConfig,
2251
+ ): AxiosPromise<Notification> {
2252
+ return localVarFp
2253
+ .permitTeamMod(
2254
+ requestParameters.teamId,
2255
+ requestParameters.teamModParams,
2256
+ options,
2257
+ )
2258
+ .then((request) => request(axios, basePath));
2259
+ },
2260
+ /**
2261
+ *
2262
+ * @summary Update pack perms for team
2263
+ * @param {TeamApiPermitTeamPackRequest} requestParameters Request parameters.
2264
+ * @param {*} [options] Override http request option.
2265
+ * @throws {RequiredError}
2266
+ */
2267
+ permitTeamPack(
2268
+ requestParameters: TeamApiPermitTeamPackRequest,
2269
+ options?: RawAxiosRequestConfig,
2270
+ ): AxiosPromise<Notification> {
2271
+ return localVarFp
2272
+ .permitTeamPack(
2273
+ requestParameters.teamId,
2274
+ requestParameters.teamPackParams,
2275
+ options,
2276
+ )
2277
+ .then((request) => request(axios, basePath));
2278
+ },
2279
+ /**
2280
+ *
2281
+ * @summary Update user perms for team
2282
+ * @param {TeamApiPermitTeamUserRequest} requestParameters Request parameters.
2283
+ * @param {*} [options] Override http request option.
2284
+ * @throws {RequiredError}
2285
+ */
2286
+ permitTeamUser(
2287
+ requestParameters: TeamApiPermitTeamUserRequest,
2288
+ options?: RawAxiosRequestConfig,
2289
+ ): AxiosPromise<Notification> {
2290
+ return localVarFp
2291
+ .permitTeamUser(
2292
+ requestParameters.teamId,
2293
+ requestParameters.teamUserParams,
2294
+ options,
2295
+ )
2296
+ .then((request) => request(axios, basePath));
2297
+ },
2298
+ /**
2299
+ *
2300
+ * @summary Fetch a specific team
2301
+ * @param {TeamApiShowTeamRequest} requestParameters Request parameters.
2302
+ * @param {*} [options] Override http request option.
2303
+ * @throws {RequiredError}
2304
+ */
2305
+ showTeam(
2306
+ requestParameters: TeamApiShowTeamRequest,
2307
+ options?: RawAxiosRequestConfig,
2308
+ ): AxiosPromise<Team> {
2309
+ return localVarFp
2310
+ .showTeam(requestParameters.teamId, options)
2311
+ .then((request) => request(axios, basePath));
2312
+ },
2313
+ /**
2314
+ *
2315
+ * @summary Update a specific team
2316
+ * @param {TeamApiUpdateTeamRequest} requestParameters Request parameters.
2317
+ * @param {*} [options] Override http request option.
2318
+ * @throws {RequiredError}
2319
+ */
2320
+ updateTeam(
2321
+ requestParameters: TeamApiUpdateTeamRequest,
2322
+ options?: RawAxiosRequestConfig,
2323
+ ): AxiosPromise<Team> {
2324
+ return localVarFp
2325
+ .updateTeam(requestParameters.teamId, requestParameters.team, options)
2326
+ .then((request) => request(axios, basePath));
2327
+ },
2328
+ };
2329
+ };
2330
+
2331
+ /**
2332
+ * Request parameters for attachTeamToMod operation in TeamApi.
2333
+ * @export
2334
+ * @interface TeamApiAttachTeamToModRequest
2335
+ */
2336
+ export interface TeamApiAttachTeamToModRequest {
2337
+ /**
2338
+ * A team identifier or slug
2339
+ * @type {string}
2340
+ * @memberof TeamApiAttachTeamToMod
2341
+ */
2342
+ readonly teamId: string;
2343
+
2344
+ /**
2345
+ * The team mod data to attach
2346
+ * @type {TeamModParams}
2347
+ * @memberof TeamApiAttachTeamToMod
2348
+ */
2349
+ readonly teamModParams: TeamModParams;
2350
+ }
2351
+
2352
+ /**
2353
+ * Request parameters for attachTeamToPack operation in TeamApi.
2354
+ * @export
2355
+ * @interface TeamApiAttachTeamToPackRequest
2356
+ */
2357
+ export interface TeamApiAttachTeamToPackRequest {
2358
+ /**
2359
+ * A team identifier or slug
2360
+ * @type {string}
2361
+ * @memberof TeamApiAttachTeamToPack
2362
+ */
2363
+ readonly teamId: string;
2364
+
2365
+ /**
2366
+ * The team pack data to attach
2367
+ * @type {TeamPackParams}
2368
+ * @memberof TeamApiAttachTeamToPack
2369
+ */
2370
+ readonly teamPackParams: TeamPackParams;
2371
+ }
2372
+
2373
+ /**
2374
+ * Request parameters for attachTeamToUser operation in TeamApi.
2375
+ * @export
2376
+ * @interface TeamApiAttachTeamToUserRequest
2377
+ */
2378
+ export interface TeamApiAttachTeamToUserRequest {
2379
+ /**
2380
+ * A team identifier or slug
2381
+ * @type {string}
2382
+ * @memberof TeamApiAttachTeamToUser
2383
+ */
2384
+ readonly teamId: string;
2385
+
2386
+ /**
2387
+ * The team user data to attach
2388
+ * @type {TeamUserParams}
2389
+ * @memberof TeamApiAttachTeamToUser
2390
+ */
2391
+ readonly teamUserParams: TeamUserParams;
2392
+ }
2393
+
2394
+ /**
2395
+ * Request parameters for createTeam operation in TeamApi.
2396
+ * @export
2397
+ * @interface TeamApiCreateTeamRequest
2398
+ */
2399
+ export interface TeamApiCreateTeamRequest {
2400
+ /**
2401
+ * The team data to create
2402
+ * @type {Team}
2403
+ * @memberof TeamApiCreateTeam
2404
+ */
2405
+ readonly team: Team;
2406
+ }
2407
+
2408
+ /**
2409
+ * Request parameters for deleteTeam operation in TeamApi.
2410
+ * @export
2411
+ * @interface TeamApiDeleteTeamRequest
2412
+ */
2413
+ export interface TeamApiDeleteTeamRequest {
2414
+ /**
2415
+ * A team identifier or slug
2416
+ * @type {string}
2417
+ * @memberof TeamApiDeleteTeam
2418
+ */
2419
+ readonly teamId: string;
2420
+ }
2421
+
2422
+ /**
2423
+ * Request parameters for deleteTeamFromMod operation in TeamApi.
2424
+ * @export
2425
+ * @interface TeamApiDeleteTeamFromModRequest
2426
+ */
2427
+ export interface TeamApiDeleteTeamFromModRequest {
2428
+ /**
2429
+ * A team identifier or slug
2430
+ * @type {string}
2431
+ * @memberof TeamApiDeleteTeamFromMod
2432
+ */
2433
+ readonly teamId: string;
2434
+
2435
+ /**
2436
+ * The team mod data to unlink
2437
+ * @type {TeamModParams}
2438
+ * @memberof TeamApiDeleteTeamFromMod
2439
+ */
2440
+ readonly teamModParams: TeamModParams;
2441
+ }
2442
+
2443
+ /**
2444
+ * Request parameters for deleteTeamFromPack operation in TeamApi.
2445
+ * @export
2446
+ * @interface TeamApiDeleteTeamFromPackRequest
2447
+ */
2448
+ export interface TeamApiDeleteTeamFromPackRequest {
2449
+ /**
2450
+ * A team identifier or slug
2451
+ * @type {string}
2452
+ * @memberof TeamApiDeleteTeamFromPack
2453
+ */
2454
+ readonly teamId: string;
2455
+
2456
+ /**
2457
+ * The team pack data to unlink
2458
+ * @type {TeamPackParams}
2459
+ * @memberof TeamApiDeleteTeamFromPack
2460
+ */
2461
+ readonly teamPackParams: TeamPackParams;
2462
+ }
2463
+
2464
+ /**
2465
+ * Request parameters for deleteTeamFromUser operation in TeamApi.
2466
+ * @export
2467
+ * @interface TeamApiDeleteTeamFromUserRequest
2468
+ */
2469
+ export interface TeamApiDeleteTeamFromUserRequest {
2470
+ /**
2471
+ * A team identifier or slug
2472
+ * @type {string}
2473
+ * @memberof TeamApiDeleteTeamFromUser
2474
+ */
2475
+ readonly teamId: string;
2476
+
2477
+ /**
2478
+ * The team user data to unlink
2479
+ * @type {TeamUserParams}
2480
+ * @memberof TeamApiDeleteTeamFromUser
2481
+ */
2482
+ readonly teamUserParams: TeamUserParams;
2483
+ }
2484
+
2485
+ /**
2486
+ * Request parameters for listTeamMods operation in TeamApi.
2487
+ * @export
2488
+ * @interface TeamApiListTeamModsRequest
2489
+ */
2490
+ export interface TeamApiListTeamModsRequest {
2491
+ /**
2492
+ * A team identifier or slug
2493
+ * @type {string}
2494
+ * @memberof TeamApiListTeamMods
2495
+ */
2496
+ readonly teamId: string;
2497
+
2498
+ /**
2499
+ * Search query
2500
+ * @type {string}
2501
+ * @memberof TeamApiListTeamMods
2502
+ */
2503
+ readonly search?: string;
2504
+
2505
+ /**
2506
+ * Sorting column
2507
+ * @type {'modname' | 'email' | 'fullname' | 'admin' | 'active'}
2508
+ * @memberof TeamApiListTeamMods
2509
+ */
2510
+ readonly sort?: ListTeamModsSortEnum;
2511
+
2512
+ /**
2513
+ * Sorting order
2514
+ * @type {'asc' | 'desc'}
2515
+ * @memberof TeamApiListTeamMods
2516
+ */
2517
+ readonly order?: ListTeamModsOrderEnum;
2518
+
2519
+ /**
2520
+ * Paging limit
2521
+ * @type {number}
2522
+ * @memberof TeamApiListTeamMods
2523
+ */
2524
+ readonly limit?: number;
2525
+
2526
+ /**
2527
+ * Paging offset
2528
+ * @type {number}
2529
+ * @memberof TeamApiListTeamMods
2530
+ */
2531
+ readonly offset?: number;
2532
+ }
2533
+
2534
+ /**
2535
+ * Request parameters for listTeamPacks operation in TeamApi.
2536
+ * @export
2537
+ * @interface TeamApiListTeamPacksRequest
2538
+ */
2539
+ export interface TeamApiListTeamPacksRequest {
2540
+ /**
2541
+ * A team identifier or slug
2542
+ * @type {string}
2543
+ * @memberof TeamApiListTeamPacks
2544
+ */
2545
+ readonly teamId: string;
2546
+
2547
+ /**
2548
+ * Search query
2549
+ * @type {string}
2550
+ * @memberof TeamApiListTeamPacks
2551
+ */
2552
+ readonly search?: string;
2553
+
2554
+ /**
2555
+ * Sorting column
2556
+ * @type {'packname' | 'email' | 'fullname' | 'admin' | 'active'}
2557
+ * @memberof TeamApiListTeamPacks
2558
+ */
2559
+ readonly sort?: ListTeamPacksSortEnum;
2560
+
2561
+ /**
2562
+ * Sorting order
2563
+ * @type {'asc' | 'desc'}
2564
+ * @memberof TeamApiListTeamPacks
2565
+ */
2566
+ readonly order?: ListTeamPacksOrderEnum;
2567
+
2568
+ /**
2569
+ * Paging limit
2570
+ * @type {number}
2571
+ * @memberof TeamApiListTeamPacks
2572
+ */
2573
+ readonly limit?: number;
2574
+
2575
+ /**
2576
+ * Paging offset
2577
+ * @type {number}
2578
+ * @memberof TeamApiListTeamPacks
2579
+ */
2580
+ readonly offset?: number;
2581
+ }
2582
+
2583
+ /**
2584
+ * Request parameters for listTeamUsers operation in TeamApi.
2585
+ * @export
2586
+ * @interface TeamApiListTeamUsersRequest
2587
+ */
2588
+ export interface TeamApiListTeamUsersRequest {
2589
+ /**
2590
+ * A team identifier or slug
2591
+ * @type {string}
2592
+ * @memberof TeamApiListTeamUsers
2593
+ */
2594
+ readonly teamId: string;
2595
+
2596
+ /**
2597
+ * Search query
2598
+ * @type {string}
2599
+ * @memberof TeamApiListTeamUsers
2600
+ */
2601
+ readonly search?: string;
2602
+
2603
+ /**
2604
+ * Sorting column
2605
+ * @type {'username' | 'email' | 'fullname' | 'admin' | 'active'}
2606
+ * @memberof TeamApiListTeamUsers
2607
+ */
2608
+ readonly sort?: ListTeamUsersSortEnum;
2609
+
2610
+ /**
2611
+ * Sorting order
2612
+ * @type {'asc' | 'desc'}
2613
+ * @memberof TeamApiListTeamUsers
2614
+ */
2615
+ readonly order?: ListTeamUsersOrderEnum;
2616
+
2617
+ /**
2618
+ * Paging limit
2619
+ * @type {number}
2620
+ * @memberof TeamApiListTeamUsers
2621
+ */
2622
+ readonly limit?: number;
2623
+
2624
+ /**
2625
+ * Paging offset
2626
+ * @type {number}
2627
+ * @memberof TeamApiListTeamUsers
2628
+ */
2629
+ readonly offset?: number;
2630
+ }
2631
+
2632
+ /**
2633
+ * Request parameters for listTeams operation in TeamApi.
2634
+ * @export
2635
+ * @interface TeamApiListTeamsRequest
2636
+ */
2637
+ export interface TeamApiListTeamsRequest {
2638
+ /**
2639
+ * Search query
2640
+ * @type {string}
2641
+ * @memberof TeamApiListTeams
2642
+ */
2643
+ readonly search?: string;
2644
+
2645
+ /**
2646
+ * Sorting column
2647
+ * @type {'slug' | 'name'}
2648
+ * @memberof TeamApiListTeams
2649
+ */
2650
+ readonly sort?: ListTeamsSortEnum;
2651
+
2652
+ /**
2653
+ * Sorting order
2654
+ * @type {'asc' | 'desc'}
2655
+ * @memberof TeamApiListTeams
2656
+ */
2657
+ readonly order?: ListTeamsOrderEnum;
2658
+
2659
+ /**
2660
+ * Paging limit
2661
+ * @type {number}
2662
+ * @memberof TeamApiListTeams
2663
+ */
2664
+ readonly limit?: number;
2665
+
2666
+ /**
2667
+ * Paging offset
2668
+ * @type {number}
2669
+ * @memberof TeamApiListTeams
2670
+ */
2671
+ readonly offset?: number;
2672
+ }
2673
+
2674
+ /**
2675
+ * Request parameters for permitTeamMod operation in TeamApi.
2676
+ * @export
2677
+ * @interface TeamApiPermitTeamModRequest
2678
+ */
2679
+ export interface TeamApiPermitTeamModRequest {
2680
+ /**
2681
+ * A team identifier or slug
2682
+ * @type {string}
2683
+ * @memberof TeamApiPermitTeamMod
2684
+ */
2685
+ readonly teamId: string;
2686
+
2687
+ /**
2688
+ * The team mod data to update
2689
+ * @type {TeamModParams}
2690
+ * @memberof TeamApiPermitTeamMod
2691
+ */
2692
+ readonly teamModParams: TeamModParams;
2693
+ }
2694
+
2695
+ /**
2696
+ * Request parameters for permitTeamPack operation in TeamApi.
2697
+ * @export
2698
+ * @interface TeamApiPermitTeamPackRequest
2699
+ */
2700
+ export interface TeamApiPermitTeamPackRequest {
2701
+ /**
2702
+ * A team identifier or slug
2703
+ * @type {string}
2704
+ * @memberof TeamApiPermitTeamPack
2705
+ */
2706
+ readonly teamId: string;
2707
+
2708
+ /**
2709
+ * The team pack data to update
2710
+ * @type {TeamPackParams}
2711
+ * @memberof TeamApiPermitTeamPack
2712
+ */
2713
+ readonly teamPackParams: TeamPackParams;
2714
+ }
2715
+
2716
+ /**
2717
+ * Request parameters for permitTeamUser operation in TeamApi.
2718
+ * @export
2719
+ * @interface TeamApiPermitTeamUserRequest
2720
+ */
2721
+ export interface TeamApiPermitTeamUserRequest {
2722
+ /**
2723
+ * A team identifier or slug
2724
+ * @type {string}
2725
+ * @memberof TeamApiPermitTeamUser
2726
+ */
2727
+ readonly teamId: string;
2728
+
2729
+ /**
2730
+ * The team user data to update
2731
+ * @type {TeamUserParams}
2732
+ * @memberof TeamApiPermitTeamUser
2733
+ */
2734
+ readonly teamUserParams: TeamUserParams;
2735
+ }
2736
+
2737
+ /**
2738
+ * Request parameters for showTeam operation in TeamApi.
2739
+ * @export
2740
+ * @interface TeamApiShowTeamRequest
2741
+ */
2742
+ export interface TeamApiShowTeamRequest {
2743
+ /**
2744
+ * A team identifier or slug
2745
+ * @type {string}
2746
+ * @memberof TeamApiShowTeam
2747
+ */
2748
+ readonly teamId: string;
2749
+ }
2750
+
2751
+ /**
2752
+ * Request parameters for updateTeam operation in TeamApi.
2753
+ * @export
2754
+ * @interface TeamApiUpdateTeamRequest
2755
+ */
2756
+ export interface TeamApiUpdateTeamRequest {
2757
+ /**
2758
+ * A team identifier or slug
2759
+ * @type {string}
2760
+ * @memberof TeamApiUpdateTeam
2761
+ */
2762
+ readonly teamId: string;
2763
+
2764
+ /**
2765
+ * The team data to update
2766
+ * @type {Team}
2767
+ * @memberof TeamApiUpdateTeam
2768
+ */
2769
+ readonly team: Team;
2770
+ }
2771
+
2772
+ /**
2773
+ * TeamApi - object-oriented interface
2774
+ * @export
2775
+ * @class TeamApi
2776
+ * @extends {BaseAPI}
2777
+ */
2778
+ export class TeamApi extends BaseAPI {
2779
+ /**
2780
+ *
2781
+ * @summary Attach a mod to team
2782
+ * @param {TeamApiAttachTeamToModRequest} requestParameters Request parameters.
2783
+ * @param {*} [options] Override http request option.
2784
+ * @throws {RequiredError}
2785
+ * @memberof TeamApi
2786
+ */
2787
+ public attachTeamToMod(
2788
+ requestParameters: TeamApiAttachTeamToModRequest,
2789
+ options?: RawAxiosRequestConfig,
2790
+ ) {
2791
+ return TeamApiFp(this.configuration)
2792
+ .attachTeamToMod(
2793
+ requestParameters.teamId,
2794
+ requestParameters.teamModParams,
2795
+ options,
2796
+ )
2797
+ .then((request) => request(this.axios, this.basePath));
2798
+ }
2799
+
2800
+ /**
2801
+ *
2802
+ * @summary Attach a pack to team
2803
+ * @param {TeamApiAttachTeamToPackRequest} requestParameters Request parameters.
2804
+ * @param {*} [options] Override http request option.
2805
+ * @throws {RequiredError}
2806
+ * @memberof TeamApi
2807
+ */
2808
+ public attachTeamToPack(
2809
+ requestParameters: TeamApiAttachTeamToPackRequest,
2810
+ options?: RawAxiosRequestConfig,
2811
+ ) {
2812
+ return TeamApiFp(this.configuration)
2813
+ .attachTeamToPack(
2814
+ requestParameters.teamId,
2815
+ requestParameters.teamPackParams,
2816
+ options,
2817
+ )
2818
+ .then((request) => request(this.axios, this.basePath));
2819
+ }
2820
+
2821
+ /**
2822
+ *
2823
+ * @summary Attach a user to team
2824
+ * @param {TeamApiAttachTeamToUserRequest} requestParameters Request parameters.
2825
+ * @param {*} [options] Override http request option.
2826
+ * @throws {RequiredError}
2827
+ * @memberof TeamApi
2828
+ */
2829
+ public attachTeamToUser(
2830
+ requestParameters: TeamApiAttachTeamToUserRequest,
2831
+ options?: RawAxiosRequestConfig,
2832
+ ) {
2833
+ return TeamApiFp(this.configuration)
2834
+ .attachTeamToUser(
2835
+ requestParameters.teamId,
2836
+ requestParameters.teamUserParams,
2837
+ options,
2838
+ )
2839
+ .then((request) => request(this.axios, this.basePath));
2840
+ }
2841
+
2842
+ /**
2843
+ *
2844
+ * @summary Create a new team
2845
+ * @param {TeamApiCreateTeamRequest} requestParameters Request parameters.
2846
+ * @param {*} [options] Override http request option.
2847
+ * @throws {RequiredError}
2848
+ * @memberof TeamApi
2849
+ */
2850
+ public createTeam(
2851
+ requestParameters: TeamApiCreateTeamRequest,
2852
+ options?: RawAxiosRequestConfig,
2853
+ ) {
2854
+ return TeamApiFp(this.configuration)
2855
+ .createTeam(requestParameters.team, options)
2856
+ .then((request) => request(this.axios, this.basePath));
2857
+ }
2858
+
2859
+ /**
2860
+ *
2861
+ * @summary Delete a specific team
2862
+ * @param {TeamApiDeleteTeamRequest} requestParameters Request parameters.
2863
+ * @param {*} [options] Override http request option.
2864
+ * @throws {RequiredError}
2865
+ * @memberof TeamApi
2866
+ */
2867
+ public deleteTeam(
2868
+ requestParameters: TeamApiDeleteTeamRequest,
2869
+ options?: RawAxiosRequestConfig,
2870
+ ) {
2871
+ return TeamApiFp(this.configuration)
2872
+ .deleteTeam(requestParameters.teamId, options)
2873
+ .then((request) => request(this.axios, this.basePath));
2874
+ }
2875
+
2876
+ /**
2877
+ *
2878
+ * @summary Unlink a mod from team
2879
+ * @param {TeamApiDeleteTeamFromModRequest} requestParameters Request parameters.
2880
+ * @param {*} [options] Override http request option.
2881
+ * @throws {RequiredError}
2882
+ * @memberof TeamApi
2883
+ */
2884
+ public deleteTeamFromMod(
2885
+ requestParameters: TeamApiDeleteTeamFromModRequest,
2886
+ options?: RawAxiosRequestConfig,
2887
+ ) {
2888
+ return TeamApiFp(this.configuration)
2889
+ .deleteTeamFromMod(
2890
+ requestParameters.teamId,
2891
+ requestParameters.teamModParams,
2892
+ options,
2893
+ )
2894
+ .then((request) => request(this.axios, this.basePath));
2895
+ }
2896
+
2897
+ /**
2898
+ *
2899
+ * @summary Unlink a pack from team
2900
+ * @param {TeamApiDeleteTeamFromPackRequest} requestParameters Request parameters.
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ * @memberof TeamApi
2904
+ */
2905
+ public deleteTeamFromPack(
2906
+ requestParameters: TeamApiDeleteTeamFromPackRequest,
2907
+ options?: RawAxiosRequestConfig,
2908
+ ) {
2909
+ return TeamApiFp(this.configuration)
2910
+ .deleteTeamFromPack(
2911
+ requestParameters.teamId,
2912
+ requestParameters.teamPackParams,
2913
+ options,
2914
+ )
2915
+ .then((request) => request(this.axios, this.basePath));
2916
+ }
2917
+
2918
+ /**
2919
+ *
2920
+ * @summary Unlink a user from team
2921
+ * @param {TeamApiDeleteTeamFromUserRequest} requestParameters Request parameters.
2922
+ * @param {*} [options] Override http request option.
2923
+ * @throws {RequiredError}
2924
+ * @memberof TeamApi
2925
+ */
2926
+ public deleteTeamFromUser(
2927
+ requestParameters: TeamApiDeleteTeamFromUserRequest,
2928
+ options?: RawAxiosRequestConfig,
2929
+ ) {
2930
+ return TeamApiFp(this.configuration)
2931
+ .deleteTeamFromUser(
2932
+ requestParameters.teamId,
2933
+ requestParameters.teamUserParams,
2934
+ options,
2935
+ )
2936
+ .then((request) => request(this.axios, this.basePath));
2937
+ }
2938
+
2939
+ /**
2940
+ *
2941
+ * @summary Fetch all mods attached to team
2942
+ * @param {TeamApiListTeamModsRequest} requestParameters Request parameters.
2943
+ * @param {*} [options] Override http request option.
2944
+ * @throws {RequiredError}
2945
+ * @memberof TeamApi
2946
+ */
2947
+ public listTeamMods(
2948
+ requestParameters: TeamApiListTeamModsRequest,
2949
+ options?: RawAxiosRequestConfig,
2950
+ ) {
2951
+ return TeamApiFp(this.configuration)
2952
+ .listTeamMods(
2953
+ requestParameters.teamId,
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 team
2967
+ * @param {TeamApiListTeamPacksRequest} requestParameters Request parameters.
2968
+ * @param {*} [options] Override http request option.
2969
+ * @throws {RequiredError}
2970
+ * @memberof TeamApi
2971
+ */
2972
+ public listTeamPacks(
2973
+ requestParameters: TeamApiListTeamPacksRequest,
2974
+ options?: RawAxiosRequestConfig,
2975
+ ) {
2976
+ return TeamApiFp(this.configuration)
2977
+ .listTeamPacks(
2978
+ requestParameters.teamId,
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 users attached to team
2992
+ * @param {TeamApiListTeamUsersRequest} requestParameters Request parameters.
2993
+ * @param {*} [options] Override http request option.
2994
+ * @throws {RequiredError}
2995
+ * @memberof TeamApi
2996
+ */
2997
+ public listTeamUsers(
2998
+ requestParameters: TeamApiListTeamUsersRequest,
2999
+ options?: RawAxiosRequestConfig,
3000
+ ) {
3001
+ return TeamApiFp(this.configuration)
3002
+ .listTeamUsers(
3003
+ requestParameters.teamId,
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 teams
3017
+ * @param {TeamApiListTeamsRequest} requestParameters Request parameters.
3018
+ * @param {*} [options] Override http request option.
3019
+ * @throws {RequiredError}
3020
+ * @memberof TeamApi
3021
+ */
3022
+ public listTeams(
3023
+ requestParameters: TeamApiListTeamsRequest = {},
3024
+ options?: RawAxiosRequestConfig,
3025
+ ) {
3026
+ return TeamApiFp(this.configuration)
3027
+ .listTeams(
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 team
3041
+ * @param {TeamApiPermitTeamModRequest} requestParameters Request parameters.
3042
+ * @param {*} [options] Override http request option.
3043
+ * @throws {RequiredError}
3044
+ * @memberof TeamApi
3045
+ */
3046
+ public permitTeamMod(
3047
+ requestParameters: TeamApiPermitTeamModRequest,
3048
+ options?: RawAxiosRequestConfig,
3049
+ ) {
3050
+ return TeamApiFp(this.configuration)
3051
+ .permitTeamMod(
3052
+ requestParameters.teamId,
3053
+ requestParameters.teamModParams,
3054
+ options,
3055
+ )
3056
+ .then((request) => request(this.axios, this.basePath));
3057
+ }
3058
+
3059
+ /**
3060
+ *
3061
+ * @summary Update pack perms for team
3062
+ * @param {TeamApiPermitTeamPackRequest} requestParameters Request parameters.
3063
+ * @param {*} [options] Override http request option.
3064
+ * @throws {RequiredError}
3065
+ * @memberof TeamApi
3066
+ */
3067
+ public permitTeamPack(
3068
+ requestParameters: TeamApiPermitTeamPackRequest,
3069
+ options?: RawAxiosRequestConfig,
3070
+ ) {
3071
+ return TeamApiFp(this.configuration)
3072
+ .permitTeamPack(
3073
+ requestParameters.teamId,
3074
+ requestParameters.teamPackParams,
3075
+ options,
3076
+ )
3077
+ .then((request) => request(this.axios, this.basePath));
3078
+ }
3079
+
3080
+ /**
3081
+ *
3082
+ * @summary Update user perms for team
3083
+ * @param {TeamApiPermitTeamUserRequest} requestParameters Request parameters.
3084
+ * @param {*} [options] Override http request option.
3085
+ * @throws {RequiredError}
3086
+ * @memberof TeamApi
3087
+ */
3088
+ public permitTeamUser(
3089
+ requestParameters: TeamApiPermitTeamUserRequest,
3090
+ options?: RawAxiosRequestConfig,
3091
+ ) {
3092
+ return TeamApiFp(this.configuration)
3093
+ .permitTeamUser(
3094
+ requestParameters.teamId,
3095
+ requestParameters.teamUserParams,
3096
+ options,
3097
+ )
3098
+ .then((request) => request(this.axios, this.basePath));
3099
+ }
3100
+
3101
+ /**
3102
+ *
3103
+ * @summary Fetch a specific team
3104
+ * @param {TeamApiShowTeamRequest} requestParameters Request parameters.
3105
+ * @param {*} [options] Override http request option.
3106
+ * @throws {RequiredError}
3107
+ * @memberof TeamApi
3108
+ */
3109
+ public showTeam(
3110
+ requestParameters: TeamApiShowTeamRequest,
3111
+ options?: RawAxiosRequestConfig,
3112
+ ) {
3113
+ return TeamApiFp(this.configuration)
3114
+ .showTeam(requestParameters.teamId, options)
3115
+ .then((request) => request(this.axios, this.basePath));
3116
+ }
3117
+
3118
+ /**
3119
+ *
3120
+ * @summary Update a specific team
3121
+ * @param {TeamApiUpdateTeamRequest} requestParameters Request parameters.
3122
+ * @param {*} [options] Override http request option.
3123
+ * @throws {RequiredError}
3124
+ * @memberof TeamApi
3125
+ */
3126
+ public updateTeam(
3127
+ requestParameters: TeamApiUpdateTeamRequest,
3128
+ options?: RawAxiosRequestConfig,
3129
+ ) {
3130
+ return TeamApiFp(this.configuration)
3131
+ .updateTeam(requestParameters.teamId, requestParameters.team, options)
3132
+ .then((request) => request(this.axios, this.basePath));
3133
+ }
3134
+ }
3135
+
3136
+ /**
3137
+ * @export
3138
+ */
3139
+ export const ListTeamModsSortEnum = {
3140
+ Modname: "modname",
3141
+ Email: "email",
3142
+ Fullname: "fullname",
3143
+ Admin: "admin",
3144
+ Active: "active",
3145
+ } as const;
3146
+ export type ListTeamModsSortEnum =
3147
+ (typeof ListTeamModsSortEnum)[keyof typeof ListTeamModsSortEnum];
3148
+ /**
3149
+ * @export
3150
+ */
3151
+ export const ListTeamModsOrderEnum = {
3152
+ Asc: "asc",
3153
+ Desc: "desc",
3154
+ } as const;
3155
+ export type ListTeamModsOrderEnum =
3156
+ (typeof ListTeamModsOrderEnum)[keyof typeof ListTeamModsOrderEnum];
3157
+ /**
3158
+ * @export
3159
+ */
3160
+ export const ListTeamPacksSortEnum = {
3161
+ Packname: "packname",
3162
+ Email: "email",
3163
+ Fullname: "fullname",
3164
+ Admin: "admin",
3165
+ Active: "active",
3166
+ } as const;
3167
+ export type ListTeamPacksSortEnum =
3168
+ (typeof ListTeamPacksSortEnum)[keyof typeof ListTeamPacksSortEnum];
3169
+ /**
3170
+ * @export
3171
+ */
3172
+ export const ListTeamPacksOrderEnum = {
3173
+ Asc: "asc",
3174
+ Desc: "desc",
3175
+ } as const;
3176
+ export type ListTeamPacksOrderEnum =
3177
+ (typeof ListTeamPacksOrderEnum)[keyof typeof ListTeamPacksOrderEnum];
3178
+ /**
3179
+ * @export
3180
+ */
3181
+ export const ListTeamUsersSortEnum = {
3182
+ Username: "username",
3183
+ Email: "email",
3184
+ Fullname: "fullname",
3185
+ Admin: "admin",
3186
+ Active: "active",
3187
+ } as const;
3188
+ export type ListTeamUsersSortEnum =
3189
+ (typeof ListTeamUsersSortEnum)[keyof typeof ListTeamUsersSortEnum];
3190
+ /**
3191
+ * @export
3192
+ */
3193
+ export const ListTeamUsersOrderEnum = {
3194
+ Asc: "asc",
3195
+ Desc: "desc",
3196
+ } as const;
3197
+ export type ListTeamUsersOrderEnum =
3198
+ (typeof ListTeamUsersOrderEnum)[keyof typeof ListTeamUsersOrderEnum];
3199
+ /**
3200
+ * @export
3201
+ */
3202
+ export const ListTeamsSortEnum = {
3203
+ Slug: "slug",
3204
+ Name: "name",
3205
+ } as const;
3206
+ export type ListTeamsSortEnum =
3207
+ (typeof ListTeamsSortEnum)[keyof typeof ListTeamsSortEnum];
3208
+ /**
3209
+ * @export
3210
+ */
3211
+ export const ListTeamsOrderEnum = {
3212
+ Asc: "asc",
3213
+ Desc: "desc",
3214
+ } as const;
3215
+ export type ListTeamsOrderEnum =
3216
+ (typeof ListTeamsOrderEnum)[keyof typeof ListTeamsOrderEnum];