kleisterjs 2.5.1 → 2.6.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 (104) hide show
  1. package/.github/RELEASE +1 -1
  2. package/.github/workflows/flake.yml +1 -1
  3. package/.github/workflows/general.yml +1 -1
  4. package/.github/workflows/openapi.yml +1 -1
  5. package/.github/workflows/release.yml +1 -1
  6. package/.openapi-generator/FILES +56 -55
  7. package/CHANGELOG.md +12 -0
  8. package/README.md +2 -2
  9. package/api/auth-api.ts +251 -147
  10. package/api/fabric-api.ts +47 -67
  11. package/api/forge-api.ts +47 -67
  12. package/api/{team-api.ts → group-api.ts} +921 -936
  13. package/api/minecraft-api.ts +44 -67
  14. package/api/mod-api.ts +1016 -461
  15. package/api/neoforge-api.ts +47 -67
  16. package/api/pack-api.ts +378 -419
  17. package/api/profile-api.ts +18 -21
  18. package/api/quilt-api.ts +48 -68
  19. package/api/user-api.ts +554 -580
  20. package/api.ts +1 -1
  21. package/flake.lock +9 -9
  22. package/model/attach-build-to-version-request.ts +33 -0
  23. package/model/attach-minecraft-to-build-request.ts +33 -0
  24. package/model/build.ts +0 -6
  25. package/model/create-build-request.ts +87 -0
  26. package/model/{quilt-build-params.ts → create-group-request.ts} +7 -7
  27. package/model/{pack-icon.ts → create-mod-request.ts} +19 -25
  28. package/model/create-pack-request.ts +45 -0
  29. package/model/create-user-request.ts +57 -0
  30. package/model/create-version-request.ts +39 -0
  31. package/model/delete-group-from-mod-request.ts +27 -0
  32. package/model/delete-group-from-pack-request.ts +27 -0
  33. package/model/delete-pack-from-group-request.ts +27 -0
  34. package/model/delete-pack-from-user-request.ts +27 -0
  35. package/model/{team-mod.ts → group-mod.ts} +19 -19
  36. package/model/{team-pack.ts → group-pack.ts} +19 -19
  37. package/model/{team.ts → group.ts} +8 -8
  38. package/model/index.ts +55 -54
  39. package/model/{build-versions.ts → list-build-versions200-response.ts} +25 -13
  40. package/model/{builds.ts → list-builds200-response.ts} +20 -8
  41. package/model/{fabric-builds.ts → list-fabric-builds200-response.ts} +22 -10
  42. package/model/{fabrics.ts → list-fabrics200-response.ts} +19 -7
  43. package/model/{forge-builds.ts → list-forge-builds200-response.ts} +22 -10
  44. package/model/{forges.ts → list-forges200-response.ts} +19 -7
  45. package/model/list-group-mods200-response.ts +58 -0
  46. package/model/list-group-packs200-response.ts +58 -0
  47. package/model/list-group-users200-response.ts +58 -0
  48. package/model/list-groups200-response.ts +49 -0
  49. package/model/{minecraft-builds.ts → list-minecraft-builds200-response.ts} +22 -10
  50. package/model/{minecrafts.ts → list-minecrafts200-response.ts} +19 -7
  51. package/model/{mod-teams.ts → list-mod-groups200-response.ts} +25 -13
  52. package/model/{mod-users.ts → list-mod-users200-response.ts} +22 -10
  53. package/model/{mods.ts → list-mods200-response.ts} +19 -7
  54. package/model/{neoforge-builds.ts → list-neoforge-builds200-response.ts} +22 -10
  55. package/model/{neoforges.ts → list-neoforges200-response.ts} +19 -7
  56. package/model/{pack-teams.ts → list-pack-groups200-response.ts} +25 -13
  57. package/model/{pack-users.ts → list-pack-users200-response.ts} +22 -10
  58. package/model/{packs.ts → list-packs200-response.ts} +19 -7
  59. package/model/{providers.ts → list-providers200-response.ts} +7 -7
  60. package/model/{quilt-builds.ts → list-quilt-builds200-response.ts} +22 -10
  61. package/model/{quilts.ts → list-quilts200-response.ts} +19 -7
  62. package/model/{user-teams.ts → list-user-groups200-response.ts} +24 -12
  63. package/model/{user-mods.ts → list-user-mods200-response.ts} +22 -10
  64. package/model/{user-packs.ts → list-user-packs200-response.ts} +22 -10
  65. package/model/{users.ts → list-users200-response.ts} +19 -7
  66. package/model/{version-builds.ts → list-version-builds200-response.ts} +25 -13
  67. package/model/{versions.ts → list-versions200-response.ts} +20 -8
  68. package/model/{auth-login.ts → login-auth-request.ts} +4 -4
  69. package/model/mod-avatar.ts +45 -0
  70. package/model/mod.ts +10 -0
  71. package/model/pack-avatar.ts +45 -0
  72. package/model/pack.ts +3 -21
  73. package/model/{build-version-params.ts → permit-group-mod-request.ts} +6 -6
  74. package/model/{forge-build-params.ts → permit-group-pack-request.ts} +6 -6
  75. package/model/{fabric-build-params.ts → permit-pack-group-request.ts} +7 -7
  76. package/model/permit-pack-user-request.ts +33 -0
  77. package/model/profile.ts +9 -9
  78. package/model/redirect-auth-request.ts +27 -0
  79. package/model/update-profile-request.ts +45 -0
  80. package/model/update-user-request.ts +57 -0
  81. package/model/{user-team.ts → user-group.ts} +19 -19
  82. package/model/version-file.ts +0 -12
  83. package/model/version.ts +0 -6
  84. package/openapi.yml +1 -1
  85. package/package.json +1 -1
  86. package/model/minecraft-build-params.ts +0 -33
  87. package/model/mod-team-params.ts +0 -42
  88. package/model/mod-user-params.ts +0 -42
  89. package/model/neoforge-build-params.ts +0 -33
  90. package/model/pack-back.ts +0 -75
  91. package/model/pack-logo.ts +0 -75
  92. package/model/pack-team-params.ts +0 -42
  93. package/model/pack-user-params.ts +0 -42
  94. package/model/team-mod-params.ts +0 -42
  95. package/model/team-mods.ts +0 -46
  96. package/model/team-pack-params.ts +0 -42
  97. package/model/team-packs.ts +0 -46
  98. package/model/team-user-params.ts +0 -42
  99. package/model/team-users.ts +0 -46
  100. package/model/teams.ts +0 -37
  101. package/model/user-mod-params.ts +0 -42
  102. package/model/user-pack-params.ts +0 -42
  103. package/model/user-team-params.ts +0 -42
  104. package/model/version-build-params.ts +0 -33
package/api/mod-api.ts CHANGED
@@ -42,27 +42,39 @@ import {
42
42
  operationServerMap,
43
43
  } from "../base";
44
44
  // @ts-ignore
45
- import type { Mod } from "../model";
45
+ import type { AttachMinecraftToBuildRequest } from "../model";
46
+ // @ts-ignore
47
+ import type { CreateModRequest } from "../model";
48
+ // @ts-ignore
49
+ import type { CreateVersionRequest } from "../model";
50
+ // @ts-ignore
51
+ import type { DeletePackFromGroupRequest } from "../model";
52
+ // @ts-ignore
53
+ import type { DeletePackFromUserRequest } from "../model";
54
+ // @ts-ignore
55
+ import type { ListModGroups200Response } from "../model";
46
56
  // @ts-ignore
47
- import type { ModTeamParams } from "../model";
57
+ import type { ListModUsers200Response } from "../model";
48
58
  // @ts-ignore
49
- import type { ModTeams } from "../model";
59
+ import type { ListMods200Response } from "../model";
50
60
  // @ts-ignore
51
- import type { ModUserParams } from "../model";
61
+ import type { ListVersionBuilds200Response } from "../model";
52
62
  // @ts-ignore
53
- import type { ModUsers } from "../model";
63
+ import type { ListVersions200Response } from "../model";
54
64
  // @ts-ignore
55
- import type { Mods } from "../model";
65
+ import type { Mod } from "../model";
66
+ // @ts-ignore
67
+ import type { ModAvatar } from "../model";
56
68
  // @ts-ignore
57
69
  import type { Notification } from "../model";
58
70
  // @ts-ignore
59
- import type { Version } from "../model";
71
+ import type { PackAvatar } from "../model";
60
72
  // @ts-ignore
61
- import type { VersionBuildParams } from "../model";
73
+ import type { PermitPackGroupRequest } from "../model";
62
74
  // @ts-ignore
63
- import type { VersionBuilds } from "../model";
75
+ import type { PermitPackUserRequest } from "../model";
64
76
  // @ts-ignore
65
- import type { Versions } from "../model";
77
+ import type { Version } from "../model";
66
78
  /**
67
79
  * ModApi - axios parameter creator
68
80
  * @export
@@ -73,22 +85,26 @@ export const ModApiAxiosParamCreator = function (
73
85
  return {
74
86
  /**
75
87
  *
76
- * @summary Attach a team to mod
88
+ * @summary Attach a group to mod
77
89
  * @param {string} modId A mod identifier or slug
78
- * @param {ModTeamParams} modTeamParams The team data to attach
90
+ * @param {PermitPackGroupRequest} permitPackGroupRequest The mod group data to permit
79
91
  * @param {*} [options] Override http request option.
80
92
  * @throws {RequiredError}
81
93
  */
82
- attachModToTeam: async (
94
+ attachModToGroup: async (
83
95
  modId: string,
84
- modTeamParams: ModTeamParams,
96
+ permitPackGroupRequest: PermitPackGroupRequest,
85
97
  options: RawAxiosRequestConfig = {},
86
98
  ): Promise<RequestArgs> => {
87
99
  // verify required parameter 'modId' is not null or undefined
88
- assertParamExists("attachModToTeam", "modId", modId);
89
- // verify required parameter 'modTeamParams' is not null or undefined
90
- assertParamExists("attachModToTeam", "modTeamParams", modTeamParams);
91
- const localVarPath = `/mods/{mod_id}/teams`.replace(
100
+ assertParamExists("attachModToGroup", "modId", modId);
101
+ // verify required parameter 'permitPackGroupRequest' is not null or undefined
102
+ assertParamExists(
103
+ "attachModToGroup",
104
+ "permitPackGroupRequest",
105
+ permitPackGroupRequest,
106
+ );
107
+ const localVarPath = `/mods/{mod_id}/groups`.replace(
92
108
  `{${"mod_id"}}`,
93
109
  encodeURIComponent(String(modId)),
94
110
  );
@@ -107,9 +123,6 @@ export const ModApiAxiosParamCreator = function (
107
123
  const localVarHeaderParameter = {} as any;
108
124
  const localVarQueryParameter = {} as any;
109
125
 
110
- // authentication Cookie required
111
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
112
-
113
126
  // authentication Basic required
114
127
  // http basic authentication required
115
128
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -136,7 +149,7 @@ export const ModApiAxiosParamCreator = function (
136
149
  ...options.headers,
137
150
  };
138
151
  localVarRequestOptions.data = serializeDataIfNeeded(
139
- modTeamParams,
152
+ permitPackGroupRequest,
140
153
  localVarRequestOptions,
141
154
  configuration,
142
155
  );
@@ -150,19 +163,23 @@ export const ModApiAxiosParamCreator = function (
150
163
  *
151
164
  * @summary Attach a user to mod
152
165
  * @param {string} modId A mod identifier or slug
153
- * @param {ModUserParams} modUserParams The user data to attach
166
+ * @param {PermitPackUserRequest} permitPackUserRequest The mod user data to permit
154
167
  * @param {*} [options] Override http request option.
155
168
  * @throws {RequiredError}
156
169
  */
157
170
  attachModToUser: async (
158
171
  modId: string,
159
- modUserParams: ModUserParams,
172
+ permitPackUserRequest: PermitPackUserRequest,
160
173
  options: RawAxiosRequestConfig = {},
161
174
  ): Promise<RequestArgs> => {
162
175
  // verify required parameter 'modId' is not null or undefined
163
176
  assertParamExists("attachModToUser", "modId", modId);
164
- // verify required parameter 'modUserParams' is not null or undefined
165
- assertParamExists("attachModToUser", "modUserParams", modUserParams);
177
+ // verify required parameter 'permitPackUserRequest' is not null or undefined
178
+ assertParamExists(
179
+ "attachModToUser",
180
+ "permitPackUserRequest",
181
+ permitPackUserRequest,
182
+ );
166
183
  const localVarPath = `/mods/{mod_id}/users`.replace(
167
184
  `{${"mod_id"}}`,
168
185
  encodeURIComponent(String(modId)),
@@ -182,9 +199,6 @@ export const ModApiAxiosParamCreator = function (
182
199
  const localVarHeaderParameter = {} as any;
183
200
  const localVarQueryParameter = {} as any;
184
201
 
185
- // authentication Cookie required
186
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
187
-
188
202
  // authentication Basic required
189
203
  // http basic authentication required
190
204
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -211,7 +225,7 @@ export const ModApiAxiosParamCreator = function (
211
225
  ...options.headers,
212
226
  };
213
227
  localVarRequestOptions.data = serializeDataIfNeeded(
214
- modUserParams,
228
+ permitPackUserRequest,
215
229
  localVarRequestOptions,
216
230
  configuration,
217
231
  );
@@ -226,25 +240,25 @@ export const ModApiAxiosParamCreator = function (
226
240
  * @summary Attach a build to a version
227
241
  * @param {string} modId A mod identifier or slug
228
242
  * @param {string} versionId A version identifier or slug
229
- * @param {VersionBuildParams} versionBuildParams The version build data to attach
243
+ * @param {AttachMinecraftToBuildRequest} attachMinecraftToBuildRequest The version build data to create or delete
230
244
  * @param {*} [options] Override http request option.
231
245
  * @throws {RequiredError}
232
246
  */
233
247
  attachVersionToBuild: async (
234
248
  modId: string,
235
249
  versionId: string,
236
- versionBuildParams: VersionBuildParams,
250
+ attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest,
237
251
  options: RawAxiosRequestConfig = {},
238
252
  ): Promise<RequestArgs> => {
239
253
  // verify required parameter 'modId' is not null or undefined
240
254
  assertParamExists("attachVersionToBuild", "modId", modId);
241
255
  // verify required parameter 'versionId' is not null or undefined
242
256
  assertParamExists("attachVersionToBuild", "versionId", versionId);
243
- // verify required parameter 'versionBuildParams' is not null or undefined
257
+ // verify required parameter 'attachMinecraftToBuildRequest' is not null or undefined
244
258
  assertParamExists(
245
259
  "attachVersionToBuild",
246
- "versionBuildParams",
247
- versionBuildParams,
260
+ "attachMinecraftToBuildRequest",
261
+ attachMinecraftToBuildRequest,
248
262
  );
249
263
  const localVarPath = `/mods/{mod_id}/versions/{version_id}/builds`
250
264
  .replace(`{${"mod_id"}}`, encodeURIComponent(String(modId)))
@@ -264,9 +278,6 @@ export const ModApiAxiosParamCreator = function (
264
278
  const localVarHeaderParameter = {} as any;
265
279
  const localVarQueryParameter = {} as any;
266
280
 
267
- // authentication Cookie required
268
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
269
-
270
281
  // authentication Basic required
271
282
  // http basic authentication required
272
283
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -293,7 +304,7 @@ export const ModApiAxiosParamCreator = function (
293
304
  ...options.headers,
294
305
  };
295
306
  localVarRequestOptions.data = serializeDataIfNeeded(
296
- versionBuildParams,
307
+ attachMinecraftToBuildRequest,
297
308
  localVarRequestOptions,
298
309
  configuration,
299
310
  );
@@ -306,16 +317,16 @@ export const ModApiAxiosParamCreator = function (
306
317
  /**
307
318
  *
308
319
  * @summary Create a new mod
309
- * @param {Mod} mod The mod data to create
320
+ * @param {CreateModRequest} createModRequest The mod data to create
310
321
  * @param {*} [options] Override http request option.
311
322
  * @throws {RequiredError}
312
323
  */
313
324
  createMod: async (
314
- mod: Mod,
325
+ createModRequest: CreateModRequest,
315
326
  options: RawAxiosRequestConfig = {},
316
327
  ): Promise<RequestArgs> => {
317
- // verify required parameter 'mod' is not null or undefined
318
- assertParamExists("createMod", "mod", mod);
328
+ // verify required parameter 'createModRequest' is not null or undefined
329
+ assertParamExists("createMod", "createModRequest", createModRequest);
319
330
  const localVarPath = `/mods`;
320
331
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
321
332
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -332,9 +343,6 @@ export const ModApiAxiosParamCreator = function (
332
343
  const localVarHeaderParameter = {} as any;
333
344
  const localVarQueryParameter = {} as any;
334
345
 
335
- // authentication Cookie required
336
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
337
-
338
346
  // authentication Basic required
339
347
  // http basic authentication required
340
348
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -361,7 +369,7 @@ export const ModApiAxiosParamCreator = function (
361
369
  ...options.headers,
362
370
  };
363
371
  localVarRequestOptions.data = serializeDataIfNeeded(
364
- mod,
372
+ createModRequest,
365
373
  localVarRequestOptions,
366
374
  configuration,
367
375
  );
@@ -371,23 +379,173 @@ export const ModApiAxiosParamCreator = function (
371
379
  options: localVarRequestOptions,
372
380
  };
373
381
  },
382
+ /**
383
+ *
384
+ * @summary Upload an avatar for the defined mod
385
+ * @param {string} modId A mod identifier or slug
386
+ * @param {File} [file]
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ createModAvatar: async (
391
+ modId: string,
392
+ file?: File,
393
+ options: RawAxiosRequestConfig = {},
394
+ ): Promise<RequestArgs> => {
395
+ // verify required parameter 'modId' is not null or undefined
396
+ assertParamExists("createModAvatar", "modId", modId);
397
+ const localVarPath = `/mods/{mod_id}/avatar`.replace(
398
+ `{${"mod_id"}}`,
399
+ encodeURIComponent(String(modId)),
400
+ );
401
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
402
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
403
+ let baseOptions;
404
+ if (configuration) {
405
+ baseOptions = configuration.baseOptions;
406
+ }
407
+
408
+ const localVarRequestOptions = {
409
+ method: "POST",
410
+ ...baseOptions,
411
+ ...options,
412
+ };
413
+ const localVarHeaderParameter = {} as any;
414
+ const localVarQueryParameter = {} as any;
415
+ const localVarFormParams = new ((configuration &&
416
+ configuration.formDataCtor) ||
417
+ FormData)();
418
+
419
+ // authentication Basic required
420
+ // http basic authentication required
421
+ setBasicAuthToObject(localVarRequestOptions, configuration);
422
+
423
+ // authentication Header required
424
+ await setApiKeyToObject(
425
+ localVarHeaderParameter,
426
+ "X-API-Key",
427
+ configuration,
428
+ );
429
+
430
+ // authentication Bearer required
431
+ // http bearer authentication required
432
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
433
+
434
+ if (file !== undefined) {
435
+ localVarFormParams.append("file", file as any);
436
+ }
437
+
438
+ localVarHeaderParameter["Content-Type"] = "multipart/form-data";
439
+
440
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
441
+ let headersFromBaseOptions =
442
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
443
+ localVarRequestOptions.headers = {
444
+ ...localVarHeaderParameter,
445
+ ...headersFromBaseOptions,
446
+ ...options.headers,
447
+ };
448
+ localVarRequestOptions.data = localVarFormParams;
449
+
450
+ return {
451
+ url: toPathString(localVarUrlObj),
452
+ options: localVarRequestOptions,
453
+ };
454
+ },
455
+ /**
456
+ *
457
+ * @summary Upload an avatar for the defined pack
458
+ * @param {string} packId A pack identifier or slug
459
+ * @param {File} [file]
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ createPackAvatar: async (
464
+ packId: string,
465
+ file?: File,
466
+ options: RawAxiosRequestConfig = {},
467
+ ): Promise<RequestArgs> => {
468
+ // verify required parameter 'packId' is not null or undefined
469
+ assertParamExists("createPackAvatar", "packId", packId);
470
+ const localVarPath = `/packs/{pack_id}/avatar`.replace(
471
+ `{${"pack_id"}}`,
472
+ encodeURIComponent(String(packId)),
473
+ );
474
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
475
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
476
+ let baseOptions;
477
+ if (configuration) {
478
+ baseOptions = configuration.baseOptions;
479
+ }
480
+
481
+ const localVarRequestOptions = {
482
+ method: "POST",
483
+ ...baseOptions,
484
+ ...options,
485
+ };
486
+ const localVarHeaderParameter = {} as any;
487
+ const localVarQueryParameter = {} as any;
488
+ const localVarFormParams = new ((configuration &&
489
+ configuration.formDataCtor) ||
490
+ FormData)();
491
+
492
+ // authentication Basic required
493
+ // http basic authentication required
494
+ setBasicAuthToObject(localVarRequestOptions, configuration);
495
+
496
+ // authentication Header required
497
+ await setApiKeyToObject(
498
+ localVarHeaderParameter,
499
+ "X-API-Key",
500
+ configuration,
501
+ );
502
+
503
+ // authentication Bearer required
504
+ // http bearer authentication required
505
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
506
+
507
+ if (file !== undefined) {
508
+ localVarFormParams.append("file", file as any);
509
+ }
510
+
511
+ localVarHeaderParameter["Content-Type"] = "multipart/form-data";
512
+
513
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
514
+ let headersFromBaseOptions =
515
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
516
+ localVarRequestOptions.headers = {
517
+ ...localVarHeaderParameter,
518
+ ...headersFromBaseOptions,
519
+ ...options.headers,
520
+ };
521
+ localVarRequestOptions.data = localVarFormParams;
522
+
523
+ return {
524
+ url: toPathString(localVarUrlObj),
525
+ options: localVarRequestOptions,
526
+ };
527
+ },
374
528
  /**
375
529
  *
376
530
  * @summary Create a new version for a mod
377
531
  * @param {string} modId A mod identifier or slug
378
- * @param {Version} version The version data to create
532
+ * @param {CreateVersionRequest} createVersionRequest The version data to create
379
533
  * @param {*} [options] Override http request option.
380
534
  * @throws {RequiredError}
381
535
  */
382
536
  createVersion: async (
383
537
  modId: string,
384
- version: Version,
538
+ createVersionRequest: CreateVersionRequest,
385
539
  options: RawAxiosRequestConfig = {},
386
540
  ): Promise<RequestArgs> => {
387
541
  // verify required parameter 'modId' is not null or undefined
388
542
  assertParamExists("createVersion", "modId", modId);
389
- // verify required parameter 'version' is not null or undefined
390
- assertParamExists("createVersion", "version", version);
543
+ // verify required parameter 'createVersionRequest' is not null or undefined
544
+ assertParamExists(
545
+ "createVersion",
546
+ "createVersionRequest",
547
+ createVersionRequest,
548
+ );
391
549
  const localVarPath = `/mods/{mod_id}/versions`.replace(
392
550
  `{${"mod_id"}}`,
393
551
  encodeURIComponent(String(modId)),
@@ -407,9 +565,6 @@ export const ModApiAxiosParamCreator = function (
407
565
  const localVarHeaderParameter = {} as any;
408
566
  const localVarQueryParameter = {} as any;
409
567
 
410
- // authentication Cookie required
411
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
412
-
413
568
  // authentication Basic required
414
569
  // http basic authentication required
415
570
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -436,7 +591,7 @@ export const ModApiAxiosParamCreator = function (
436
591
  ...options.headers,
437
592
  };
438
593
  localVarRequestOptions.data = serializeDataIfNeeded(
439
- version,
594
+ createVersionRequest,
440
595
  localVarRequestOptions,
441
596
  configuration,
442
597
  );
@@ -478,9 +633,6 @@ export const ModApiAxiosParamCreator = function (
478
633
  const localVarHeaderParameter = {} as any;
479
634
  const localVarQueryParameter = {} as any;
480
635
 
481
- // authentication Cookie required
482
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
483
-
484
636
  // authentication Basic required
485
637
  // http basic authentication required
486
638
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -512,22 +664,18 @@ export const ModApiAxiosParamCreator = function (
512
664
  },
513
665
  /**
514
666
  *
515
- * @summary Unlink a team from mod
667
+ * @summary Delete the avatar for the defined mod
516
668
  * @param {string} modId A mod identifier or slug
517
- * @param {ModTeamParams} modTeamParams The mod team data to unlink
518
669
  * @param {*} [options] Override http request option.
519
670
  * @throws {RequiredError}
520
671
  */
521
- deleteModFromTeam: async (
672
+ deleteModAvatar: async (
522
673
  modId: string,
523
- modTeamParams: ModTeamParams,
524
674
  options: RawAxiosRequestConfig = {},
525
675
  ): Promise<RequestArgs> => {
526
676
  // verify required parameter 'modId' is not null or undefined
527
- assertParamExists("deleteModFromTeam", "modId", modId);
528
- // verify required parameter 'modTeamParams' is not null or undefined
529
- assertParamExists("deleteModFromTeam", "modTeamParams", modTeamParams);
530
- const localVarPath = `/mods/{mod_id}/teams`.replace(
677
+ assertParamExists("deleteModAvatar", "modId", modId);
678
+ const localVarPath = `/mods/{mod_id}/avatar`.replace(
531
679
  `{${"mod_id"}}`,
532
680
  encodeURIComponent(String(modId)),
533
681
  );
@@ -546,8 +694,74 @@ export const ModApiAxiosParamCreator = function (
546
694
  const localVarHeaderParameter = {} as any;
547
695
  const localVarQueryParameter = {} as any;
548
696
 
549
- // authentication Cookie required
550
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
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
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
713
+ let headersFromBaseOptions =
714
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
715
+ localVarRequestOptions.headers = {
716
+ ...localVarHeaderParameter,
717
+ ...headersFromBaseOptions,
718
+ ...options.headers,
719
+ };
720
+
721
+ return {
722
+ url: toPathString(localVarUrlObj),
723
+ options: localVarRequestOptions,
724
+ };
725
+ },
726
+ /**
727
+ *
728
+ * @summary Unlink a group from mod
729
+ * @param {string} modId A mod identifier or slug
730
+ * @param {DeletePackFromGroupRequest} deletePackFromGroupRequest The mod group data to unlink
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ deleteModFromGroup: async (
735
+ modId: string,
736
+ deletePackFromGroupRequest: DeletePackFromGroupRequest,
737
+ options: RawAxiosRequestConfig = {},
738
+ ): Promise<RequestArgs> => {
739
+ // verify required parameter 'modId' is not null or undefined
740
+ assertParamExists("deleteModFromGroup", "modId", modId);
741
+ // verify required parameter 'deletePackFromGroupRequest' is not null or undefined
742
+ assertParamExists(
743
+ "deleteModFromGroup",
744
+ "deletePackFromGroupRequest",
745
+ deletePackFromGroupRequest,
746
+ );
747
+ const localVarPath = `/mods/{mod_id}/groups`.replace(
748
+ `{${"mod_id"}}`,
749
+ encodeURIComponent(String(modId)),
750
+ );
751
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
752
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
753
+ let baseOptions;
754
+ if (configuration) {
755
+ baseOptions = configuration.baseOptions;
756
+ }
757
+
758
+ const localVarRequestOptions = {
759
+ method: "DELETE",
760
+ ...baseOptions,
761
+ ...options,
762
+ };
763
+ const localVarHeaderParameter = {} as any;
764
+ const localVarQueryParameter = {} as any;
551
765
 
552
766
  // authentication Basic required
553
767
  // http basic authentication required
@@ -575,7 +789,7 @@ export const ModApiAxiosParamCreator = function (
575
789
  ...options.headers,
576
790
  };
577
791
  localVarRequestOptions.data = serializeDataIfNeeded(
578
- modTeamParams,
792
+ deletePackFromGroupRequest,
579
793
  localVarRequestOptions,
580
794
  configuration,
581
795
  );
@@ -589,19 +803,23 @@ export const ModApiAxiosParamCreator = function (
589
803
  *
590
804
  * @summary Unlink a user from mod
591
805
  * @param {string} modId A mod identifier or slug
592
- * @param {ModUserParams} modUserParams The mod user data to unlink
806
+ * @param {DeletePackFromUserRequest} deletePackFromUserRequest The mod user data to unlink
593
807
  * @param {*} [options] Override http request option.
594
808
  * @throws {RequiredError}
595
809
  */
596
810
  deleteModFromUser: async (
597
811
  modId: string,
598
- modUserParams: ModUserParams,
812
+ deletePackFromUserRequest: DeletePackFromUserRequest,
599
813
  options: RawAxiosRequestConfig = {},
600
814
  ): Promise<RequestArgs> => {
601
815
  // verify required parameter 'modId' is not null or undefined
602
816
  assertParamExists("deleteModFromUser", "modId", modId);
603
- // verify required parameter 'modUserParams' is not null or undefined
604
- assertParamExists("deleteModFromUser", "modUserParams", modUserParams);
817
+ // verify required parameter 'deletePackFromUserRequest' is not null or undefined
818
+ assertParamExists(
819
+ "deleteModFromUser",
820
+ "deletePackFromUserRequest",
821
+ deletePackFromUserRequest,
822
+ );
605
823
  const localVarPath = `/mods/{mod_id}/users`.replace(
606
824
  `{${"mod_id"}}`,
607
825
  encodeURIComponent(String(modId)),
@@ -621,9 +839,6 @@ export const ModApiAxiosParamCreator = function (
621
839
  const localVarHeaderParameter = {} as any;
622
840
  const localVarQueryParameter = {} as any;
623
841
 
624
- // authentication Cookie required
625
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
626
-
627
842
  // authentication Basic required
628
843
  // http basic authentication required
629
844
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -650,7 +865,7 @@ export const ModApiAxiosParamCreator = function (
650
865
  ...options.headers,
651
866
  };
652
867
  localVarRequestOptions.data = serializeDataIfNeeded(
653
- modUserParams,
868
+ deletePackFromUserRequest,
654
869
  localVarRequestOptions,
655
870
  configuration,
656
871
  );
@@ -660,6 +875,67 @@ export const ModApiAxiosParamCreator = function (
660
875
  options: localVarRequestOptions,
661
876
  };
662
877
  },
878
+ /**
879
+ *
880
+ * @summary Delete the avatar for the defined pack
881
+ * @param {string} packId A pack identifier or slug
882
+ * @param {*} [options] Override http request option.
883
+ * @throws {RequiredError}
884
+ */
885
+ deletePackAvatar: async (
886
+ packId: string,
887
+ options: RawAxiosRequestConfig = {},
888
+ ): Promise<RequestArgs> => {
889
+ // verify required parameter 'packId' is not null or undefined
890
+ assertParamExists("deletePackAvatar", "packId", packId);
891
+ const localVarPath = `/packs/{pack_id}/avatar`.replace(
892
+ `{${"pack_id"}}`,
893
+ encodeURIComponent(String(packId)),
894
+ );
895
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
896
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
897
+ let baseOptions;
898
+ if (configuration) {
899
+ baseOptions = configuration.baseOptions;
900
+ }
901
+
902
+ const localVarRequestOptions = {
903
+ method: "DELETE",
904
+ ...baseOptions,
905
+ ...options,
906
+ };
907
+ const localVarHeaderParameter = {} as any;
908
+ const localVarQueryParameter = {} as any;
909
+
910
+ // authentication Basic required
911
+ // http basic authentication required
912
+ setBasicAuthToObject(localVarRequestOptions, configuration);
913
+
914
+ // authentication Header required
915
+ await setApiKeyToObject(
916
+ localVarHeaderParameter,
917
+ "X-API-Key",
918
+ configuration,
919
+ );
920
+
921
+ // authentication Bearer required
922
+ // http bearer authentication required
923
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
924
+
925
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
926
+ let headersFromBaseOptions =
927
+ baseOptions && baseOptions.headers ? baseOptions.headers : {};
928
+ localVarRequestOptions.headers = {
929
+ ...localVarHeaderParameter,
930
+ ...headersFromBaseOptions,
931
+ ...options.headers,
932
+ };
933
+
934
+ return {
935
+ url: toPathString(localVarUrlObj),
936
+ options: localVarRequestOptions,
937
+ };
938
+ },
663
939
  /**
664
940
  *
665
941
  * @summary Delete a specific version for a mod
@@ -695,9 +971,6 @@ export const ModApiAxiosParamCreator = function (
695
971
  const localVarHeaderParameter = {} as any;
696
972
  const localVarQueryParameter = {} as any;
697
973
 
698
- // authentication Cookie required
699
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
700
-
701
974
  // authentication Basic required
702
975
  // http basic authentication required
703
976
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -732,25 +1005,25 @@ export const ModApiAxiosParamCreator = function (
732
1005
  * @summary Unlink a build from a version
733
1006
  * @param {string} modId A mod identifier or slug
734
1007
  * @param {string} versionId A version identifier or slug
735
- * @param {VersionBuildParams} versionBuildParams The version build data to unlink
1008
+ * @param {AttachMinecraftToBuildRequest} attachMinecraftToBuildRequest The version build data to create or delete
736
1009
  * @param {*} [options] Override http request option.
737
1010
  * @throws {RequiredError}
738
1011
  */
739
1012
  deleteVersionFromBuild: async (
740
1013
  modId: string,
741
1014
  versionId: string,
742
- versionBuildParams: VersionBuildParams,
1015
+ attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest,
743
1016
  options: RawAxiosRequestConfig = {},
744
1017
  ): Promise<RequestArgs> => {
745
1018
  // verify required parameter 'modId' is not null or undefined
746
1019
  assertParamExists("deleteVersionFromBuild", "modId", modId);
747
1020
  // verify required parameter 'versionId' is not null or undefined
748
1021
  assertParamExists("deleteVersionFromBuild", "versionId", versionId);
749
- // verify required parameter 'versionBuildParams' is not null or undefined
1022
+ // verify required parameter 'attachMinecraftToBuildRequest' is not null or undefined
750
1023
  assertParamExists(
751
1024
  "deleteVersionFromBuild",
752
- "versionBuildParams",
753
- versionBuildParams,
1025
+ "attachMinecraftToBuildRequest",
1026
+ attachMinecraftToBuildRequest,
754
1027
  );
755
1028
  const localVarPath = `/mods/{mod_id}/versions/{version_id}/builds`
756
1029
  .replace(`{${"mod_id"}}`, encodeURIComponent(String(modId)))
@@ -770,9 +1043,6 @@ export const ModApiAxiosParamCreator = function (
770
1043
  const localVarHeaderParameter = {} as any;
771
1044
  const localVarQueryParameter = {} as any;
772
1045
 
773
- // authentication Cookie required
774
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
775
-
776
1046
  // authentication Basic required
777
1047
  // http basic authentication required
778
1048
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -799,7 +1069,7 @@ export const ModApiAxiosParamCreator = function (
799
1069
  ...options.headers,
800
1070
  };
801
1071
  localVarRequestOptions.data = serializeDataIfNeeded(
802
- versionBuildParams,
1072
+ attachMinecraftToBuildRequest,
803
1073
  localVarRequestOptions,
804
1074
  configuration,
805
1075
  );
@@ -811,28 +1081,28 @@ export const ModApiAxiosParamCreator = function (
811
1081
  },
812
1082
  /**
813
1083
  *
814
- * @summary Fetch all teams attached to mod
1084
+ * @summary Fetch all groups attached to mod
815
1085
  * @param {string} modId A mod identifier or slug
816
1086
  * @param {string} [search] Search query
817
- * @param {ListModTeamsSortEnum} [sort] Sorting column
818
- * @param {ListModTeamsOrderEnum} [order] Sorting order
1087
+ * @param {string} [sort] Sorting column
1088
+ * @param {ListModGroupsOrderEnum} [order] Sorting order
819
1089
  * @param {number} [limit] Paging limit
820
1090
  * @param {number} [offset] Paging offset
821
1091
  * @param {*} [options] Override http request option.
822
1092
  * @throws {RequiredError}
823
1093
  */
824
- listModTeams: async (
1094
+ listModGroups: async (
825
1095
  modId: string,
826
1096
  search?: string,
827
- sort?: ListModTeamsSortEnum,
828
- order?: ListModTeamsOrderEnum,
1097
+ sort?: string,
1098
+ order?: ListModGroupsOrderEnum,
829
1099
  limit?: number,
830
1100
  offset?: number,
831
1101
  options: RawAxiosRequestConfig = {},
832
1102
  ): Promise<RequestArgs> => {
833
1103
  // verify required parameter 'modId' is not null or undefined
834
- assertParamExists("listModTeams", "modId", modId);
835
- const localVarPath = `/mods/{mod_id}/teams`.replace(
1104
+ assertParamExists("listModGroups", "modId", modId);
1105
+ const localVarPath = `/mods/{mod_id}/groups`.replace(
836
1106
  `{${"mod_id"}}`,
837
1107
  encodeURIComponent(String(modId)),
838
1108
  );
@@ -851,9 +1121,6 @@ export const ModApiAxiosParamCreator = function (
851
1121
  const localVarHeaderParameter = {} as any;
852
1122
  const localVarQueryParameter = {} as any;
853
1123
 
854
- // authentication Cookie required
855
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
856
-
857
1124
  // authentication Basic required
858
1125
  // http basic authentication required
859
1126
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -908,7 +1175,7 @@ export const ModApiAxiosParamCreator = function (
908
1175
  * @summary Fetch all users attached to mod
909
1176
  * @param {string} modId A mod identifier or slug
910
1177
  * @param {string} [search] Search query
911
- * @param {ListModUsersSortEnum} [sort] Sorting column
1178
+ * @param {string} [sort] Sorting column
912
1179
  * @param {ListModUsersOrderEnum} [order] Sorting order
913
1180
  * @param {number} [limit] Paging limit
914
1181
  * @param {number} [offset] Paging offset
@@ -918,7 +1185,7 @@ export const ModApiAxiosParamCreator = function (
918
1185
  listModUsers: async (
919
1186
  modId: string,
920
1187
  search?: string,
921
- sort?: ListModUsersSortEnum,
1188
+ sort?: string,
922
1189
  order?: ListModUsersOrderEnum,
923
1190
  limit?: number,
924
1191
  offset?: number,
@@ -945,9 +1212,6 @@ export const ModApiAxiosParamCreator = function (
945
1212
  const localVarHeaderParameter = {} as any;
946
1213
  const localVarQueryParameter = {} as any;
947
1214
 
948
- // authentication Cookie required
949
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
950
-
951
1215
  // authentication Basic required
952
1216
  // http basic authentication required
953
1217
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1001,7 +1265,7 @@ export const ModApiAxiosParamCreator = function (
1001
1265
  *
1002
1266
  * @summary Fetch all available mods
1003
1267
  * @param {string} [search] Search query
1004
- * @param {ListModsSortEnum} [sort] Sorting column
1268
+ * @param {string} [sort] Sorting column
1005
1269
  * @param {ListModsOrderEnum} [order] Sorting order
1006
1270
  * @param {number} [limit] Paging limit
1007
1271
  * @param {number} [offset] Paging offset
@@ -1010,7 +1274,7 @@ export const ModApiAxiosParamCreator = function (
1010
1274
  */
1011
1275
  listMods: async (
1012
1276
  search?: string,
1013
- sort?: ListModsSortEnum,
1277
+ sort?: string,
1014
1278
  order?: ListModsOrderEnum,
1015
1279
  limit?: number,
1016
1280
  offset?: number,
@@ -1032,9 +1296,6 @@ export const ModApiAxiosParamCreator = function (
1032
1296
  const localVarHeaderParameter = {} as any;
1033
1297
  const localVarQueryParameter = {} as any;
1034
1298
 
1035
- // authentication Cookie required
1036
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1037
-
1038
1299
  // authentication Basic required
1039
1300
  // http basic authentication required
1040
1301
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1090,7 +1351,7 @@ export const ModApiAxiosParamCreator = function (
1090
1351
  * @param {string} modId A mod identifier or slug
1091
1352
  * @param {string} versionId A version identifier or slug
1092
1353
  * @param {string} [search] Search query
1093
- * @param {ListVersionBuildsSortEnum} [sort] Sorting column
1354
+ * @param {string} [sort] Sorting column
1094
1355
  * @param {ListVersionBuildsOrderEnum} [order] Sorting order
1095
1356
  * @param {number} [limit] Paging limit
1096
1357
  * @param {number} [offset] Paging offset
@@ -1101,7 +1362,7 @@ export const ModApiAxiosParamCreator = function (
1101
1362
  modId: string,
1102
1363
  versionId: string,
1103
1364
  search?: string,
1104
- sort?: ListVersionBuildsSortEnum,
1365
+ sort?: string,
1105
1366
  order?: ListVersionBuildsOrderEnum,
1106
1367
  limit?: number,
1107
1368
  offset?: number,
@@ -1129,9 +1390,6 @@ export const ModApiAxiosParamCreator = function (
1129
1390
  const localVarHeaderParameter = {} as any;
1130
1391
  const localVarQueryParameter = {} as any;
1131
1392
 
1132
- // authentication Cookie required
1133
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1134
-
1135
1393
  // authentication Basic required
1136
1394
  // http basic authentication required
1137
1395
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1186,7 +1444,7 @@ export const ModApiAxiosParamCreator = function (
1186
1444
  * @summary Fetch all available versions for a mod
1187
1445
  * @param {string} modId A mod identifier or slug
1188
1446
  * @param {string} [search] Search query
1189
- * @param {ListVersionsSortEnum} [sort] Sorting column
1447
+ * @param {string} [sort] Sorting column
1190
1448
  * @param {ListVersionsOrderEnum} [order] Sorting order
1191
1449
  * @param {number} [limit] Paging limit
1192
1450
  * @param {number} [offset] Paging offset
@@ -1196,7 +1454,7 @@ export const ModApiAxiosParamCreator = function (
1196
1454
  listVersions: async (
1197
1455
  modId: string,
1198
1456
  search?: string,
1199
- sort?: ListVersionsSortEnum,
1457
+ sort?: string,
1200
1458
  order?: ListVersionsOrderEnum,
1201
1459
  limit?: number,
1202
1460
  offset?: number,
@@ -1223,9 +1481,6 @@ export const ModApiAxiosParamCreator = function (
1223
1481
  const localVarHeaderParameter = {} as any;
1224
1482
  const localVarQueryParameter = {} as any;
1225
1483
 
1226
- // authentication Cookie required
1227
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1228
-
1229
1484
  // authentication Basic required
1230
1485
  // http basic authentication required
1231
1486
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1277,22 +1532,26 @@ export const ModApiAxiosParamCreator = function (
1277
1532
  },
1278
1533
  /**
1279
1534
  *
1280
- * @summary Update team perms for mod
1535
+ * @summary Update group perms for mod
1281
1536
  * @param {string} modId A mod identifier or slug
1282
- * @param {ModTeamParams} modTeamParams The team data to update
1537
+ * @param {PermitPackGroupRequest} permitPackGroupRequest The mod group data to permit
1283
1538
  * @param {*} [options] Override http request option.
1284
1539
  * @throws {RequiredError}
1285
1540
  */
1286
- permitModTeam: async (
1541
+ permitModGroup: async (
1287
1542
  modId: string,
1288
- modTeamParams: ModTeamParams,
1543
+ permitPackGroupRequest: PermitPackGroupRequest,
1289
1544
  options: RawAxiosRequestConfig = {},
1290
1545
  ): Promise<RequestArgs> => {
1291
1546
  // verify required parameter 'modId' is not null or undefined
1292
- assertParamExists("permitModTeam", "modId", modId);
1293
- // verify required parameter 'modTeamParams' is not null or undefined
1294
- assertParamExists("permitModTeam", "modTeamParams", modTeamParams);
1295
- const localVarPath = `/mods/{mod_id}/teams`.replace(
1547
+ assertParamExists("permitModGroup", "modId", modId);
1548
+ // verify required parameter 'permitPackGroupRequest' is not null or undefined
1549
+ assertParamExists(
1550
+ "permitModGroup",
1551
+ "permitPackGroupRequest",
1552
+ permitPackGroupRequest,
1553
+ );
1554
+ const localVarPath = `/mods/{mod_id}/groups`.replace(
1296
1555
  `{${"mod_id"}}`,
1297
1556
  encodeURIComponent(String(modId)),
1298
1557
  );
@@ -1311,9 +1570,6 @@ export const ModApiAxiosParamCreator = function (
1311
1570
  const localVarHeaderParameter = {} as any;
1312
1571
  const localVarQueryParameter = {} as any;
1313
1572
 
1314
- // authentication Cookie required
1315
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1316
-
1317
1573
  // authentication Basic required
1318
1574
  // http basic authentication required
1319
1575
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1340,7 +1596,7 @@ export const ModApiAxiosParamCreator = function (
1340
1596
  ...options.headers,
1341
1597
  };
1342
1598
  localVarRequestOptions.data = serializeDataIfNeeded(
1343
- modTeamParams,
1599
+ permitPackGroupRequest,
1344
1600
  localVarRequestOptions,
1345
1601
  configuration,
1346
1602
  );
@@ -1354,19 +1610,23 @@ export const ModApiAxiosParamCreator = function (
1354
1610
  *
1355
1611
  * @summary Update user perms for mod
1356
1612
  * @param {string} modId A mod identifier or slug
1357
- * @param {ModUserParams} modUserParams The user data to update
1613
+ * @param {PermitPackUserRequest} permitPackUserRequest The mod user data to permit
1358
1614
  * @param {*} [options] Override http request option.
1359
1615
  * @throws {RequiredError}
1360
1616
  */
1361
1617
  permitModUser: async (
1362
1618
  modId: string,
1363
- modUserParams: ModUserParams,
1619
+ permitPackUserRequest: PermitPackUserRequest,
1364
1620
  options: RawAxiosRequestConfig = {},
1365
1621
  ): Promise<RequestArgs> => {
1366
1622
  // verify required parameter 'modId' is not null or undefined
1367
1623
  assertParamExists("permitModUser", "modId", modId);
1368
- // verify required parameter 'modUserParams' is not null or undefined
1369
- assertParamExists("permitModUser", "modUserParams", modUserParams);
1624
+ // verify required parameter 'permitPackUserRequest' is not null or undefined
1625
+ assertParamExists(
1626
+ "permitModUser",
1627
+ "permitPackUserRequest",
1628
+ permitPackUserRequest,
1629
+ );
1370
1630
  const localVarPath = `/mods/{mod_id}/users`.replace(
1371
1631
  `{${"mod_id"}}`,
1372
1632
  encodeURIComponent(String(modId)),
@@ -1386,9 +1646,6 @@ export const ModApiAxiosParamCreator = function (
1386
1646
  const localVarHeaderParameter = {} as any;
1387
1647
  const localVarQueryParameter = {} as any;
1388
1648
 
1389
- // authentication Cookie required
1390
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1391
-
1392
1649
  // authentication Basic required
1393
1650
  // http basic authentication required
1394
1651
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1415,7 +1672,7 @@ export const ModApiAxiosParamCreator = function (
1415
1672
  ...options.headers,
1416
1673
  };
1417
1674
  localVarRequestOptions.data = serializeDataIfNeeded(
1418
- modUserParams,
1675
+ permitPackUserRequest,
1419
1676
  localVarRequestOptions,
1420
1677
  configuration,
1421
1678
  );
@@ -1457,9 +1714,6 @@ export const ModApiAxiosParamCreator = function (
1457
1714
  const localVarHeaderParameter = {} as any;
1458
1715
  const localVarQueryParameter = {} as any;
1459
1716
 
1460
- // authentication Cookie required
1461
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1462
-
1463
1717
  // authentication Basic required
1464
1718
  // http basic authentication required
1465
1719
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1524,9 +1778,6 @@ export const ModApiAxiosParamCreator = function (
1524
1778
  const localVarHeaderParameter = {} as any;
1525
1779
  const localVarQueryParameter = {} as any;
1526
1780
 
1527
- // authentication Cookie required
1528
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1529
-
1530
1781
  // authentication Basic required
1531
1782
  // http basic authentication required
1532
1783
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1560,19 +1811,19 @@ export const ModApiAxiosParamCreator = function (
1560
1811
  *
1561
1812
  * @summary Update a specific mod
1562
1813
  * @param {string} modId A mod identifier or slug
1563
- * @param {Mod} mod The mod data to update
1814
+ * @param {CreateModRequest} createModRequest The mod data to update
1564
1815
  * @param {*} [options] Override http request option.
1565
1816
  * @throws {RequiredError}
1566
1817
  */
1567
1818
  updateMod: async (
1568
1819
  modId: string,
1569
- mod: Mod,
1820
+ createModRequest: CreateModRequest,
1570
1821
  options: RawAxiosRequestConfig = {},
1571
1822
  ): Promise<RequestArgs> => {
1572
1823
  // verify required parameter 'modId' is not null or undefined
1573
1824
  assertParamExists("updateMod", "modId", modId);
1574
- // verify required parameter 'mod' is not null or undefined
1575
- assertParamExists("updateMod", "mod", mod);
1825
+ // verify required parameter 'createModRequest' is not null or undefined
1826
+ assertParamExists("updateMod", "createModRequest", createModRequest);
1576
1827
  const localVarPath = `/mods/{mod_id}`.replace(
1577
1828
  `{${"mod_id"}}`,
1578
1829
  encodeURIComponent(String(modId)),
@@ -1592,9 +1843,6 @@ export const ModApiAxiosParamCreator = function (
1592
1843
  const localVarHeaderParameter = {} as any;
1593
1844
  const localVarQueryParameter = {} as any;
1594
1845
 
1595
- // authentication Cookie required
1596
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1597
-
1598
1846
  // authentication Basic required
1599
1847
  // http basic authentication required
1600
1848
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1621,7 +1869,7 @@ export const ModApiAxiosParamCreator = function (
1621
1869
  ...options.headers,
1622
1870
  };
1623
1871
  localVarRequestOptions.data = serializeDataIfNeeded(
1624
- mod,
1872
+ createModRequest,
1625
1873
  localVarRequestOptions,
1626
1874
  configuration,
1627
1875
  );
@@ -1636,22 +1884,26 @@ export const ModApiAxiosParamCreator = function (
1636
1884
  * @summary Update a specific version for a mod
1637
1885
  * @param {string} modId A mod identifier or slug
1638
1886
  * @param {string} versionId A version identifier or slug
1639
- * @param {Version} version The version data to update
1887
+ * @param {CreateVersionRequest} createVersionRequest The version data to update
1640
1888
  * @param {*} [options] Override http request option.
1641
1889
  * @throws {RequiredError}
1642
1890
  */
1643
1891
  updateVersion: async (
1644
1892
  modId: string,
1645
1893
  versionId: string,
1646
- version: Version,
1894
+ createVersionRequest: CreateVersionRequest,
1647
1895
  options: RawAxiosRequestConfig = {},
1648
1896
  ): Promise<RequestArgs> => {
1649
1897
  // verify required parameter 'modId' is not null or undefined
1650
1898
  assertParamExists("updateVersion", "modId", modId);
1651
1899
  // verify required parameter 'versionId' is not null or undefined
1652
1900
  assertParamExists("updateVersion", "versionId", versionId);
1653
- // verify required parameter 'version' is not null or undefined
1654
- assertParamExists("updateVersion", "version", version);
1901
+ // verify required parameter 'createVersionRequest' is not null or undefined
1902
+ assertParamExists(
1903
+ "updateVersion",
1904
+ "createVersionRequest",
1905
+ createVersionRequest,
1906
+ );
1655
1907
  const localVarPath = `/mods/{mod_id}/versions/{version_id}`
1656
1908
  .replace(`{${"mod_id"}}`, encodeURIComponent(String(modId)))
1657
1909
  .replace(`{${"version_id"}}`, encodeURIComponent(String(versionId)));
@@ -1670,9 +1922,6 @@ export const ModApiAxiosParamCreator = function (
1670
1922
  const localVarHeaderParameter = {} as any;
1671
1923
  const localVarQueryParameter = {} as any;
1672
1924
 
1673
- // authentication Cookie required
1674
- await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
1675
-
1676
1925
  // authentication Basic required
1677
1926
  // http basic authentication required
1678
1927
  setBasicAuthToObject(localVarRequestOptions, configuration);
@@ -1699,7 +1948,7 @@ export const ModApiAxiosParamCreator = function (
1699
1948
  ...options.headers,
1700
1949
  };
1701
1950
  localVarRequestOptions.data = serializeDataIfNeeded(
1702
- version,
1951
+ createVersionRequest,
1703
1952
  localVarRequestOptions,
1704
1953
  configuration,
1705
1954
  );
@@ -1721,29 +1970,129 @@ export const ModApiFp = function (configuration?: Configuration) {
1721
1970
  return {
1722
1971
  /**
1723
1972
  *
1724
- * @summary Attach a team to mod
1725
- * @param {string} modId A mod identifier or slug
1726
- * @param {ModTeamParams} modTeamParams The team data to attach
1973
+ * @summary Attach a group to mod
1974
+ * @param {string} modId A mod identifier or slug
1975
+ * @param {PermitPackGroupRequest} permitPackGroupRequest The mod group data to permit
1976
+ * @param {*} [options] Override http request option.
1977
+ * @throws {RequiredError}
1978
+ */
1979
+ async attachModToGroup(
1980
+ modId: string,
1981
+ permitPackGroupRequest: PermitPackGroupRequest,
1982
+ options?: RawAxiosRequestConfig,
1983
+ ): Promise<
1984
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1985
+ > {
1986
+ const localVarAxiosArgs =
1987
+ await localVarAxiosParamCreator.attachModToGroup(
1988
+ modId,
1989
+ permitPackGroupRequest,
1990
+ options,
1991
+ );
1992
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1993
+ const localVarOperationServerBasePath =
1994
+ operationServerMap["ModApi.attachModToGroup"]?.[
1995
+ localVarOperationServerIndex
1996
+ ]?.url;
1997
+ return (axios, basePath) =>
1998
+ createRequestFunction(
1999
+ localVarAxiosArgs,
2000
+ globalAxios,
2001
+ BASE_PATH,
2002
+ configuration,
2003
+ )(axios, localVarOperationServerBasePath || basePath);
2004
+ },
2005
+ /**
2006
+ *
2007
+ * @summary Attach a user to mod
2008
+ * @param {string} modId A mod identifier or slug
2009
+ * @param {PermitPackUserRequest} permitPackUserRequest The mod user data to permit
2010
+ * @param {*} [options] Override http request option.
2011
+ * @throws {RequiredError}
2012
+ */
2013
+ async attachModToUser(
2014
+ modId: string,
2015
+ permitPackUserRequest: PermitPackUserRequest,
2016
+ options?: RawAxiosRequestConfig,
2017
+ ): Promise<
2018
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
2019
+ > {
2020
+ const localVarAxiosArgs = await localVarAxiosParamCreator.attachModToUser(
2021
+ modId,
2022
+ permitPackUserRequest,
2023
+ options,
2024
+ );
2025
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2026
+ const localVarOperationServerBasePath =
2027
+ operationServerMap["ModApi.attachModToUser"]?.[
2028
+ localVarOperationServerIndex
2029
+ ]?.url;
2030
+ return (axios, basePath) =>
2031
+ createRequestFunction(
2032
+ localVarAxiosArgs,
2033
+ globalAxios,
2034
+ BASE_PATH,
2035
+ configuration,
2036
+ )(axios, localVarOperationServerBasePath || basePath);
2037
+ },
2038
+ /**
2039
+ *
2040
+ * @summary Attach a build to a version
2041
+ * @param {string} modId A mod identifier or slug
2042
+ * @param {string} versionId A version identifier or slug
2043
+ * @param {AttachMinecraftToBuildRequest} attachMinecraftToBuildRequest The version build data to create or delete
2044
+ * @param {*} [options] Override http request option.
2045
+ * @throws {RequiredError}
2046
+ */
2047
+ async attachVersionToBuild(
2048
+ modId: string,
2049
+ versionId: string,
2050
+ attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest,
2051
+ options?: RawAxiosRequestConfig,
2052
+ ): Promise<
2053
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
2054
+ > {
2055
+ const localVarAxiosArgs =
2056
+ await localVarAxiosParamCreator.attachVersionToBuild(
2057
+ modId,
2058
+ versionId,
2059
+ attachMinecraftToBuildRequest,
2060
+ options,
2061
+ );
2062
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2063
+ const localVarOperationServerBasePath =
2064
+ operationServerMap["ModApi.attachVersionToBuild"]?.[
2065
+ localVarOperationServerIndex
2066
+ ]?.url;
2067
+ return (axios, basePath) =>
2068
+ createRequestFunction(
2069
+ localVarAxiosArgs,
2070
+ globalAxios,
2071
+ BASE_PATH,
2072
+ configuration,
2073
+ )(axios, localVarOperationServerBasePath || basePath);
2074
+ },
2075
+ /**
2076
+ *
2077
+ * @summary Create a new mod
2078
+ * @param {CreateModRequest} createModRequest The mod data to create
1727
2079
  * @param {*} [options] Override http request option.
1728
2080
  * @throws {RequiredError}
1729
2081
  */
1730
- async attachModToTeam(
1731
- modId: string,
1732
- modTeamParams: ModTeamParams,
2082
+ async createMod(
2083
+ createModRequest: CreateModRequest,
1733
2084
  options?: RawAxiosRequestConfig,
1734
2085
  ): Promise<
1735
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
2086
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Mod>
1736
2087
  > {
1737
- const localVarAxiosArgs = await localVarAxiosParamCreator.attachModToTeam(
1738
- modId,
1739
- modTeamParams,
2088
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMod(
2089
+ createModRequest,
1740
2090
  options,
1741
2091
  );
1742
2092
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1743
2093
  const localVarOperationServerBasePath =
1744
- operationServerMap["ModApi.attachModToTeam"]?.[
1745
- localVarOperationServerIndex
1746
- ]?.url;
2094
+ operationServerMap["ModApi.createMod"]?.[localVarOperationServerIndex]
2095
+ ?.url;
1747
2096
  return (axios, basePath) =>
1748
2097
  createRequestFunction(
1749
2098
  localVarAxiosArgs,
@@ -1754,27 +2103,27 @@ export const ModApiFp = function (configuration?: Configuration) {
1754
2103
  },
1755
2104
  /**
1756
2105
  *
1757
- * @summary Attach a user to mod
2106
+ * @summary Upload an avatar for the defined mod
1758
2107
  * @param {string} modId A mod identifier or slug
1759
- * @param {ModUserParams} modUserParams The user data to attach
2108
+ * @param {File} [file]
1760
2109
  * @param {*} [options] Override http request option.
1761
2110
  * @throws {RequiredError}
1762
2111
  */
1763
- async attachModToUser(
2112
+ async createModAvatar(
1764
2113
  modId: string,
1765
- modUserParams: ModUserParams,
2114
+ file?: File,
1766
2115
  options?: RawAxiosRequestConfig,
1767
2116
  ): Promise<
1768
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
2117
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModAvatar>
1769
2118
  > {
1770
- const localVarAxiosArgs = await localVarAxiosParamCreator.attachModToUser(
2119
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createModAvatar(
1771
2120
  modId,
1772
- modUserParams,
2121
+ file,
1773
2122
  options,
1774
2123
  );
1775
2124
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1776
2125
  const localVarOperationServerBasePath =
1777
- operationServerMap["ModApi.attachModToUser"]?.[
2126
+ operationServerMap["ModApi.createModAvatar"]?.[
1778
2127
  localVarOperationServerIndex
1779
2128
  ]?.url;
1780
2129
  return (axios, basePath) =>
@@ -1787,31 +2136,24 @@ export const ModApiFp = function (configuration?: Configuration) {
1787
2136
  },
1788
2137
  /**
1789
2138
  *
1790
- * @summary Attach a build to a version
1791
- * @param {string} modId A mod identifier or slug
1792
- * @param {string} versionId A version identifier or slug
1793
- * @param {VersionBuildParams} versionBuildParams The version build data to attach
2139
+ * @summary Upload an avatar for the defined pack
2140
+ * @param {string} packId A pack identifier or slug
2141
+ * @param {File} [file]
1794
2142
  * @param {*} [options] Override http request option.
1795
2143
  * @throws {RequiredError}
1796
2144
  */
1797
- async attachVersionToBuild(
1798
- modId: string,
1799
- versionId: string,
1800
- versionBuildParams: VersionBuildParams,
2145
+ async createPackAvatar(
2146
+ packId: string,
2147
+ file?: File,
1801
2148
  options?: RawAxiosRequestConfig,
1802
2149
  ): Promise<
1803
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
2150
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackAvatar>
1804
2151
  > {
1805
2152
  const localVarAxiosArgs =
1806
- await localVarAxiosParamCreator.attachVersionToBuild(
1807
- modId,
1808
- versionId,
1809
- versionBuildParams,
1810
- options,
1811
- );
2153
+ await localVarAxiosParamCreator.createPackAvatar(packId, file, options);
1812
2154
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1813
2155
  const localVarOperationServerBasePath =
1814
- operationServerMap["ModApi.attachVersionToBuild"]?.[
2156
+ operationServerMap["ModApi.createPackAvatar"]?.[
1815
2157
  localVarOperationServerIndex
1816
2158
  ]?.url;
1817
2159
  return (axios, basePath) =>
@@ -1824,25 +2166,29 @@ export const ModApiFp = function (configuration?: Configuration) {
1824
2166
  },
1825
2167
  /**
1826
2168
  *
1827
- * @summary Create a new mod
1828
- * @param {Mod} mod The mod data to create
2169
+ * @summary Create a new version for a mod
2170
+ * @param {string} modId A mod identifier or slug
2171
+ * @param {CreateVersionRequest} createVersionRequest The version data to create
1829
2172
  * @param {*} [options] Override http request option.
1830
2173
  * @throws {RequiredError}
1831
2174
  */
1832
- async createMod(
1833
- mod: Mod,
2175
+ async createVersion(
2176
+ modId: string,
2177
+ createVersionRequest: CreateVersionRequest,
1834
2178
  options?: RawAxiosRequestConfig,
1835
2179
  ): Promise<
1836
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Mod>
2180
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Version>
1837
2181
  > {
1838
- const localVarAxiosArgs = await localVarAxiosParamCreator.createMod(
1839
- mod,
2182
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVersion(
2183
+ modId,
2184
+ createVersionRequest,
1840
2185
  options,
1841
2186
  );
1842
2187
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1843
2188
  const localVarOperationServerBasePath =
1844
- operationServerMap["ModApi.createMod"]?.[localVarOperationServerIndex]
1845
- ?.url;
2189
+ operationServerMap["ModApi.createVersion"]?.[
2190
+ localVarOperationServerIndex
2191
+ ]?.url;
1846
2192
  return (axios, basePath) =>
1847
2193
  createRequestFunction(
1848
2194
  localVarAxiosArgs,
@@ -1853,29 +2199,25 @@ export const ModApiFp = function (configuration?: Configuration) {
1853
2199
  },
1854
2200
  /**
1855
2201
  *
1856
- * @summary Create a new version for a mod
2202
+ * @summary Delete a specific mod
1857
2203
  * @param {string} modId A mod identifier or slug
1858
- * @param {Version} version The version data to create
1859
2204
  * @param {*} [options] Override http request option.
1860
2205
  * @throws {RequiredError}
1861
2206
  */
1862
- async createVersion(
2207
+ async deleteMod(
1863
2208
  modId: string,
1864
- version: Version,
1865
2209
  options?: RawAxiosRequestConfig,
1866
2210
  ): Promise<
1867
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Version>
2211
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1868
2212
  > {
1869
- const localVarAxiosArgs = await localVarAxiosParamCreator.createVersion(
2213
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMod(
1870
2214
  modId,
1871
- version,
1872
2215
  options,
1873
2216
  );
1874
2217
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1875
2218
  const localVarOperationServerBasePath =
1876
- operationServerMap["ModApi.createVersion"]?.[
1877
- localVarOperationServerIndex
1878
- ]?.url;
2219
+ operationServerMap["ModApi.deleteMod"]?.[localVarOperationServerIndex]
2220
+ ?.url;
1879
2221
  return (axios, basePath) =>
1880
2222
  createRequestFunction(
1881
2223
  localVarAxiosArgs,
@@ -1886,25 +2228,26 @@ export const ModApiFp = function (configuration?: Configuration) {
1886
2228
  },
1887
2229
  /**
1888
2230
  *
1889
- * @summary Delete a specific mod
2231
+ * @summary Delete the avatar for the defined mod
1890
2232
  * @param {string} modId A mod identifier or slug
1891
2233
  * @param {*} [options] Override http request option.
1892
2234
  * @throws {RequiredError}
1893
2235
  */
1894
- async deleteMod(
2236
+ async deleteModAvatar(
1895
2237
  modId: string,
1896
2238
  options?: RawAxiosRequestConfig,
1897
2239
  ): Promise<
1898
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
2240
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModAvatar>
1899
2241
  > {
1900
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMod(
2242
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteModAvatar(
1901
2243
  modId,
1902
2244
  options,
1903
2245
  );
1904
2246
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1905
2247
  const localVarOperationServerBasePath =
1906
- operationServerMap["ModApi.deleteMod"]?.[localVarOperationServerIndex]
1907
- ?.url;
2248
+ operationServerMap["ModApi.deleteModAvatar"]?.[
2249
+ localVarOperationServerIndex
2250
+ ]?.url;
1908
2251
  return (axios, basePath) =>
1909
2252
  createRequestFunction(
1910
2253
  localVarAxiosArgs,
@@ -1915,28 +2258,28 @@ export const ModApiFp = function (configuration?: Configuration) {
1915
2258
  },
1916
2259
  /**
1917
2260
  *
1918
- * @summary Unlink a team from mod
2261
+ * @summary Unlink a group from mod
1919
2262
  * @param {string} modId A mod identifier or slug
1920
- * @param {ModTeamParams} modTeamParams The mod team data to unlink
2263
+ * @param {DeletePackFromGroupRequest} deletePackFromGroupRequest The mod group data to unlink
1921
2264
  * @param {*} [options] Override http request option.
1922
2265
  * @throws {RequiredError}
1923
2266
  */
1924
- async deleteModFromTeam(
2267
+ async deleteModFromGroup(
1925
2268
  modId: string,
1926
- modTeamParams: ModTeamParams,
2269
+ deletePackFromGroupRequest: DeletePackFromGroupRequest,
1927
2270
  options?: RawAxiosRequestConfig,
1928
2271
  ): Promise<
1929
2272
  (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
1930
2273
  > {
1931
2274
  const localVarAxiosArgs =
1932
- await localVarAxiosParamCreator.deleteModFromTeam(
2275
+ await localVarAxiosParamCreator.deleteModFromGroup(
1933
2276
  modId,
1934
- modTeamParams,
2277
+ deletePackFromGroupRequest,
1935
2278
  options,
1936
2279
  );
1937
2280
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1938
2281
  const localVarOperationServerBasePath =
1939
- operationServerMap["ModApi.deleteModFromTeam"]?.[
2282
+ operationServerMap["ModApi.deleteModFromGroup"]?.[
1940
2283
  localVarOperationServerIndex
1941
2284
  ]?.url;
1942
2285
  return (axios, basePath) =>
@@ -1951,13 +2294,13 @@ export const ModApiFp = function (configuration?: Configuration) {
1951
2294
  *
1952
2295
  * @summary Unlink a user from mod
1953
2296
  * @param {string} modId A mod identifier or slug
1954
- * @param {ModUserParams} modUserParams The mod user data to unlink
2297
+ * @param {DeletePackFromUserRequest} deletePackFromUserRequest The mod user data to unlink
1955
2298
  * @param {*} [options] Override http request option.
1956
2299
  * @throws {RequiredError}
1957
2300
  */
1958
2301
  async deleteModFromUser(
1959
2302
  modId: string,
1960
- modUserParams: ModUserParams,
2303
+ deletePackFromUserRequest: DeletePackFromUserRequest,
1961
2304
  options?: RawAxiosRequestConfig,
1962
2305
  ): Promise<
1963
2306
  (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
@@ -1965,7 +2308,7 @@ export const ModApiFp = function (configuration?: Configuration) {
1965
2308
  const localVarAxiosArgs =
1966
2309
  await localVarAxiosParamCreator.deleteModFromUser(
1967
2310
  modId,
1968
- modUserParams,
2311
+ deletePackFromUserRequest,
1969
2312
  options,
1970
2313
  );
1971
2314
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
@@ -1981,6 +2324,34 @@ export const ModApiFp = function (configuration?: Configuration) {
1981
2324
  configuration,
1982
2325
  )(axios, localVarOperationServerBasePath || basePath);
1983
2326
  },
2327
+ /**
2328
+ *
2329
+ * @summary Delete the avatar for the defined pack
2330
+ * @param {string} packId A pack identifier or slug
2331
+ * @param {*} [options] Override http request option.
2332
+ * @throws {RequiredError}
2333
+ */
2334
+ async deletePackAvatar(
2335
+ packId: string,
2336
+ options?: RawAxiosRequestConfig,
2337
+ ): Promise<
2338
+ (axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackAvatar>
2339
+ > {
2340
+ const localVarAxiosArgs =
2341
+ await localVarAxiosParamCreator.deletePackAvatar(packId, options);
2342
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2343
+ const localVarOperationServerBasePath =
2344
+ operationServerMap["ModApi.deletePackAvatar"]?.[
2345
+ localVarOperationServerIndex
2346
+ ]?.url;
2347
+ return (axios, basePath) =>
2348
+ createRequestFunction(
2349
+ localVarAxiosArgs,
2350
+ globalAxios,
2351
+ BASE_PATH,
2352
+ configuration,
2353
+ )(axios, localVarOperationServerBasePath || basePath);
2354
+ },
1984
2355
  /**
1985
2356
  *
1986
2357
  * @summary Delete a specific version for a mod
@@ -2019,14 +2390,14 @@ export const ModApiFp = function (configuration?: Configuration) {
2019
2390
  * @summary Unlink a build from a version
2020
2391
  * @param {string} modId A mod identifier or slug
2021
2392
  * @param {string} versionId A version identifier or slug
2022
- * @param {VersionBuildParams} versionBuildParams The version build data to unlink
2393
+ * @param {AttachMinecraftToBuildRequest} attachMinecraftToBuildRequest The version build data to create or delete
2023
2394
  * @param {*} [options] Override http request option.
2024
2395
  * @throws {RequiredError}
2025
2396
  */
2026
2397
  async deleteVersionFromBuild(
2027
2398
  modId: string,
2028
2399
  versionId: string,
2029
- versionBuildParams: VersionBuildParams,
2400
+ attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest,
2030
2401
  options?: RawAxiosRequestConfig,
2031
2402
  ): Promise<
2032
2403
  (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
@@ -2035,7 +2406,7 @@ export const ModApiFp = function (configuration?: Configuration) {
2035
2406
  await localVarAxiosParamCreator.deleteVersionFromBuild(
2036
2407
  modId,
2037
2408
  versionId,
2038
- versionBuildParams,
2409
+ attachMinecraftToBuildRequest,
2039
2410
  options,
2040
2411
  );
2041
2412
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
@@ -2053,28 +2424,31 @@ export const ModApiFp = function (configuration?: Configuration) {
2053
2424
  },
2054
2425
  /**
2055
2426
  *
2056
- * @summary Fetch all teams attached to mod
2427
+ * @summary Fetch all groups attached to mod
2057
2428
  * @param {string} modId A mod identifier or slug
2058
2429
  * @param {string} [search] Search query
2059
- * @param {ListModTeamsSortEnum} [sort] Sorting column
2060
- * @param {ListModTeamsOrderEnum} [order] Sorting order
2430
+ * @param {string} [sort] Sorting column
2431
+ * @param {ListModGroupsOrderEnum} [order] Sorting order
2061
2432
  * @param {number} [limit] Paging limit
2062
2433
  * @param {number} [offset] Paging offset
2063
2434
  * @param {*} [options] Override http request option.
2064
2435
  * @throws {RequiredError}
2065
2436
  */
2066
- async listModTeams(
2437
+ async listModGroups(
2067
2438
  modId: string,
2068
2439
  search?: string,
2069
- sort?: ListModTeamsSortEnum,
2070
- order?: ListModTeamsOrderEnum,
2440
+ sort?: string,
2441
+ order?: ListModGroupsOrderEnum,
2071
2442
  limit?: number,
2072
2443
  offset?: number,
2073
2444
  options?: RawAxiosRequestConfig,
2074
2445
  ): Promise<
2075
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModTeams>
2446
+ (
2447
+ axios?: AxiosInstance,
2448
+ basePath?: string,
2449
+ ) => AxiosPromise<ListModGroups200Response>
2076
2450
  > {
2077
- const localVarAxiosArgs = await localVarAxiosParamCreator.listModTeams(
2451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listModGroups(
2078
2452
  modId,
2079
2453
  search,
2080
2454
  sort,
@@ -2085,7 +2459,7 @@ export const ModApiFp = function (configuration?: Configuration) {
2085
2459
  );
2086
2460
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2087
2461
  const localVarOperationServerBasePath =
2088
- operationServerMap["ModApi.listModTeams"]?.[
2462
+ operationServerMap["ModApi.listModGroups"]?.[
2089
2463
  localVarOperationServerIndex
2090
2464
  ]?.url;
2091
2465
  return (axios, basePath) =>
@@ -2101,7 +2475,7 @@ export const ModApiFp = function (configuration?: Configuration) {
2101
2475
  * @summary Fetch all users attached to mod
2102
2476
  * @param {string} modId A mod identifier or slug
2103
2477
  * @param {string} [search] Search query
2104
- * @param {ListModUsersSortEnum} [sort] Sorting column
2478
+ * @param {string} [sort] Sorting column
2105
2479
  * @param {ListModUsersOrderEnum} [order] Sorting order
2106
2480
  * @param {number} [limit] Paging limit
2107
2481
  * @param {number} [offset] Paging offset
@@ -2111,13 +2485,16 @@ export const ModApiFp = function (configuration?: Configuration) {
2111
2485
  async listModUsers(
2112
2486
  modId: string,
2113
2487
  search?: string,
2114
- sort?: ListModUsersSortEnum,
2488
+ sort?: string,
2115
2489
  order?: ListModUsersOrderEnum,
2116
2490
  limit?: number,
2117
2491
  offset?: number,
2118
2492
  options?: RawAxiosRequestConfig,
2119
2493
  ): Promise<
2120
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModUsers>
2494
+ (
2495
+ axios?: AxiosInstance,
2496
+ basePath?: string,
2497
+ ) => AxiosPromise<ListModUsers200Response>
2121
2498
  > {
2122
2499
  const localVarAxiosArgs = await localVarAxiosParamCreator.listModUsers(
2123
2500
  modId,
@@ -2145,7 +2522,7 @@ export const ModApiFp = function (configuration?: Configuration) {
2145
2522
  *
2146
2523
  * @summary Fetch all available mods
2147
2524
  * @param {string} [search] Search query
2148
- * @param {ListModsSortEnum} [sort] Sorting column
2525
+ * @param {string} [sort] Sorting column
2149
2526
  * @param {ListModsOrderEnum} [order] Sorting order
2150
2527
  * @param {number} [limit] Paging limit
2151
2528
  * @param {number} [offset] Paging offset
@@ -2154,13 +2531,16 @@ export const ModApiFp = function (configuration?: Configuration) {
2154
2531
  */
2155
2532
  async listMods(
2156
2533
  search?: string,
2157
- sort?: ListModsSortEnum,
2534
+ sort?: string,
2158
2535
  order?: ListModsOrderEnum,
2159
2536
  limit?: number,
2160
2537
  offset?: number,
2161
2538
  options?: RawAxiosRequestConfig,
2162
2539
  ): Promise<
2163
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Mods>
2540
+ (
2541
+ axios?: AxiosInstance,
2542
+ basePath?: string,
2543
+ ) => AxiosPromise<ListMods200Response>
2164
2544
  > {
2165
2545
  const localVarAxiosArgs = await localVarAxiosParamCreator.listMods(
2166
2546
  search,
@@ -2188,7 +2568,7 @@ export const ModApiFp = function (configuration?: Configuration) {
2188
2568
  * @param {string} modId A mod identifier or slug
2189
2569
  * @param {string} versionId A version identifier or slug
2190
2570
  * @param {string} [search] Search query
2191
- * @param {ListVersionBuildsSortEnum} [sort] Sorting column
2571
+ * @param {string} [sort] Sorting column
2192
2572
  * @param {ListVersionBuildsOrderEnum} [order] Sorting order
2193
2573
  * @param {number} [limit] Paging limit
2194
2574
  * @param {number} [offset] Paging offset
@@ -2199,13 +2579,16 @@ export const ModApiFp = function (configuration?: Configuration) {
2199
2579
  modId: string,
2200
2580
  versionId: string,
2201
2581
  search?: string,
2202
- sort?: ListVersionBuildsSortEnum,
2582
+ sort?: string,
2203
2583
  order?: ListVersionBuildsOrderEnum,
2204
2584
  limit?: number,
2205
2585
  offset?: number,
2206
2586
  options?: RawAxiosRequestConfig,
2207
2587
  ): Promise<
2208
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<VersionBuilds>
2588
+ (
2589
+ axios?: AxiosInstance,
2590
+ basePath?: string,
2591
+ ) => AxiosPromise<ListVersionBuilds200Response>
2209
2592
  > {
2210
2593
  const localVarAxiosArgs =
2211
2594
  await localVarAxiosParamCreator.listVersionBuilds(
@@ -2236,7 +2619,7 @@ export const ModApiFp = function (configuration?: Configuration) {
2236
2619
  * @summary Fetch all available versions for a mod
2237
2620
  * @param {string} modId A mod identifier or slug
2238
2621
  * @param {string} [search] Search query
2239
- * @param {ListVersionsSortEnum} [sort] Sorting column
2622
+ * @param {string} [sort] Sorting column
2240
2623
  * @param {ListVersionsOrderEnum} [order] Sorting order
2241
2624
  * @param {number} [limit] Paging limit
2242
2625
  * @param {number} [offset] Paging offset
@@ -2246,13 +2629,16 @@ export const ModApiFp = function (configuration?: Configuration) {
2246
2629
  async listVersions(
2247
2630
  modId: string,
2248
2631
  search?: string,
2249
- sort?: ListVersionsSortEnum,
2632
+ sort?: string,
2250
2633
  order?: ListVersionsOrderEnum,
2251
2634
  limit?: number,
2252
2635
  offset?: number,
2253
2636
  options?: RawAxiosRequestConfig,
2254
2637
  ): Promise<
2255
- (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Versions>
2638
+ (
2639
+ axios?: AxiosInstance,
2640
+ basePath?: string,
2641
+ ) => AxiosPromise<ListVersions200Response>
2256
2642
  > {
2257
2643
  const localVarAxiosArgs = await localVarAxiosParamCreator.listVersions(
2258
2644
  modId,
@@ -2278,27 +2664,27 @@ export const ModApiFp = function (configuration?: Configuration) {
2278
2664
  },
2279
2665
  /**
2280
2666
  *
2281
- * @summary Update team perms for mod
2667
+ * @summary Update group perms for mod
2282
2668
  * @param {string} modId A mod identifier or slug
2283
- * @param {ModTeamParams} modTeamParams The team data to update
2669
+ * @param {PermitPackGroupRequest} permitPackGroupRequest The mod group data to permit
2284
2670
  * @param {*} [options] Override http request option.
2285
2671
  * @throws {RequiredError}
2286
2672
  */
2287
- async permitModTeam(
2673
+ async permitModGroup(
2288
2674
  modId: string,
2289
- modTeamParams: ModTeamParams,
2675
+ permitPackGroupRequest: PermitPackGroupRequest,
2290
2676
  options?: RawAxiosRequestConfig,
2291
2677
  ): Promise<
2292
2678
  (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
2293
2679
  > {
2294
- const localVarAxiosArgs = await localVarAxiosParamCreator.permitModTeam(
2680
+ const localVarAxiosArgs = await localVarAxiosParamCreator.permitModGroup(
2295
2681
  modId,
2296
- modTeamParams,
2682
+ permitPackGroupRequest,
2297
2683
  options,
2298
2684
  );
2299
2685
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2300
2686
  const localVarOperationServerBasePath =
2301
- operationServerMap["ModApi.permitModTeam"]?.[
2687
+ operationServerMap["ModApi.permitModGroup"]?.[
2302
2688
  localVarOperationServerIndex
2303
2689
  ]?.url;
2304
2690
  return (axios, basePath) =>
@@ -2313,20 +2699,20 @@ export const ModApiFp = function (configuration?: Configuration) {
2313
2699
  *
2314
2700
  * @summary Update user perms for mod
2315
2701
  * @param {string} modId A mod identifier or slug
2316
- * @param {ModUserParams} modUserParams The user data to update
2702
+ * @param {PermitPackUserRequest} permitPackUserRequest The mod user data to permit
2317
2703
  * @param {*} [options] Override http request option.
2318
2704
  * @throws {RequiredError}
2319
2705
  */
2320
2706
  async permitModUser(
2321
2707
  modId: string,
2322
- modUserParams: ModUserParams,
2708
+ permitPackUserRequest: PermitPackUserRequest,
2323
2709
  options?: RawAxiosRequestConfig,
2324
2710
  ): Promise<
2325
2711
  (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
2326
2712
  > {
2327
2713
  const localVarAxiosArgs = await localVarAxiosParamCreator.permitModUser(
2328
2714
  modId,
2329
- modUserParams,
2715
+ permitPackUserRequest,
2330
2716
  options,
2331
2717
  );
2332
2718
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
@@ -2407,20 +2793,20 @@ export const ModApiFp = function (configuration?: Configuration) {
2407
2793
  *
2408
2794
  * @summary Update a specific mod
2409
2795
  * @param {string} modId A mod identifier or slug
2410
- * @param {Mod} mod The mod data to update
2796
+ * @param {CreateModRequest} createModRequest The mod data to update
2411
2797
  * @param {*} [options] Override http request option.
2412
2798
  * @throws {RequiredError}
2413
2799
  */
2414
2800
  async updateMod(
2415
2801
  modId: string,
2416
- mod: Mod,
2802
+ createModRequest: CreateModRequest,
2417
2803
  options?: RawAxiosRequestConfig,
2418
2804
  ): Promise<
2419
2805
  (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Mod>
2420
2806
  > {
2421
2807
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateMod(
2422
2808
  modId,
2423
- mod,
2809
+ createModRequest,
2424
2810
  options,
2425
2811
  );
2426
2812
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
@@ -2440,14 +2826,14 @@ export const ModApiFp = function (configuration?: Configuration) {
2440
2826
  * @summary Update a specific version for a mod
2441
2827
  * @param {string} modId A mod identifier or slug
2442
2828
  * @param {string} versionId A version identifier or slug
2443
- * @param {Version} version The version data to update
2829
+ * @param {CreateVersionRequest} createVersionRequest The version data to update
2444
2830
  * @param {*} [options] Override http request option.
2445
2831
  * @throws {RequiredError}
2446
2832
  */
2447
2833
  async updateVersion(
2448
2834
  modId: string,
2449
2835
  versionId: string,
2450
- version: Version,
2836
+ createVersionRequest: CreateVersionRequest,
2451
2837
  options?: RawAxiosRequestConfig,
2452
2838
  ): Promise<
2453
2839
  (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Version>
@@ -2455,7 +2841,7 @@ export const ModApiFp = function (configuration?: Configuration) {
2455
2841
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateVersion(
2456
2842
  modId,
2457
2843
  versionId,
2458
- version,
2844
+ createVersionRequest,
2459
2845
  options,
2460
2846
  );
2461
2847
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
@@ -2487,19 +2873,19 @@ export const ModApiFactory = function (
2487
2873
  return {
2488
2874
  /**
2489
2875
  *
2490
- * @summary Attach a team to mod
2491
- * @param {ModApiAttachModToTeamRequest} requestParameters Request parameters.
2876
+ * @summary Attach a group to mod
2877
+ * @param {ModApiAttachModToGroupRequest} requestParameters Request parameters.
2492
2878
  * @param {*} [options] Override http request option.
2493
2879
  * @throws {RequiredError}
2494
2880
  */
2495
- attachModToTeam(
2496
- requestParameters: ModApiAttachModToTeamRequest,
2881
+ attachModToGroup(
2882
+ requestParameters: ModApiAttachModToGroupRequest,
2497
2883
  options?: RawAxiosRequestConfig,
2498
2884
  ): AxiosPromise<Notification> {
2499
2885
  return localVarFp
2500
- .attachModToTeam(
2886
+ .attachModToGroup(
2501
2887
  requestParameters.modId,
2502
- requestParameters.modTeamParams,
2888
+ requestParameters.permitPackGroupRequest,
2503
2889
  options,
2504
2890
  )
2505
2891
  .then((request) => request(axios, basePath));
@@ -2518,7 +2904,7 @@ export const ModApiFactory = function (
2518
2904
  return localVarFp
2519
2905
  .attachModToUser(
2520
2906
  requestParameters.modId,
2521
- requestParameters.modUserParams,
2907
+ requestParameters.permitPackUserRequest,
2522
2908
  options,
2523
2909
  )
2524
2910
  .then((request) => request(axios, basePath));
@@ -2538,7 +2924,7 @@ export const ModApiFactory = function (
2538
2924
  .attachVersionToBuild(
2539
2925
  requestParameters.modId,
2540
2926
  requestParameters.versionId,
2541
- requestParameters.versionBuildParams,
2927
+ requestParameters.attachMinecraftToBuildRequest,
2542
2928
  options,
2543
2929
  )
2544
2930
  .then((request) => request(axios, basePath));
@@ -2555,7 +2941,45 @@ export const ModApiFactory = function (
2555
2941
  options?: RawAxiosRequestConfig,
2556
2942
  ): AxiosPromise<Mod> {
2557
2943
  return localVarFp
2558
- .createMod(requestParameters.mod, options)
2944
+ .createMod(requestParameters.createModRequest, options)
2945
+ .then((request) => request(axios, basePath));
2946
+ },
2947
+ /**
2948
+ *
2949
+ * @summary Upload an avatar for the defined mod
2950
+ * @param {ModApiCreateModAvatarRequest} requestParameters Request parameters.
2951
+ * @param {*} [options] Override http request option.
2952
+ * @throws {RequiredError}
2953
+ */
2954
+ createModAvatar(
2955
+ requestParameters: ModApiCreateModAvatarRequest,
2956
+ options?: RawAxiosRequestConfig,
2957
+ ): AxiosPromise<ModAvatar> {
2958
+ return localVarFp
2959
+ .createModAvatar(
2960
+ requestParameters.modId,
2961
+ requestParameters.file,
2962
+ options,
2963
+ )
2964
+ .then((request) => request(axios, basePath));
2965
+ },
2966
+ /**
2967
+ *
2968
+ * @summary Upload an avatar for the defined pack
2969
+ * @param {ModApiCreatePackAvatarRequest} requestParameters Request parameters.
2970
+ * @param {*} [options] Override http request option.
2971
+ * @throws {RequiredError}
2972
+ */
2973
+ createPackAvatar(
2974
+ requestParameters: ModApiCreatePackAvatarRequest,
2975
+ options?: RawAxiosRequestConfig,
2976
+ ): AxiosPromise<PackAvatar> {
2977
+ return localVarFp
2978
+ .createPackAvatar(
2979
+ requestParameters.packId,
2980
+ requestParameters.file,
2981
+ options,
2982
+ )
2559
2983
  .then((request) => request(axios, basePath));
2560
2984
  },
2561
2985
  /**
@@ -2572,7 +2996,7 @@ export const ModApiFactory = function (
2572
2996
  return localVarFp
2573
2997
  .createVersion(
2574
2998
  requestParameters.modId,
2575
- requestParameters.version,
2999
+ requestParameters.createVersionRequest,
2576
3000
  options,
2577
3001
  )
2578
3002
  .then((request) => request(axios, basePath));
@@ -2594,19 +3018,34 @@ export const ModApiFactory = function (
2594
3018
  },
2595
3019
  /**
2596
3020
  *
2597
- * @summary Unlink a team from mod
2598
- * @param {ModApiDeleteModFromTeamRequest} requestParameters Request parameters.
3021
+ * @summary Delete the avatar for the defined mod
3022
+ * @param {ModApiDeleteModAvatarRequest} requestParameters Request parameters.
3023
+ * @param {*} [options] Override http request option.
3024
+ * @throws {RequiredError}
3025
+ */
3026
+ deleteModAvatar(
3027
+ requestParameters: ModApiDeleteModAvatarRequest,
3028
+ options?: RawAxiosRequestConfig,
3029
+ ): AxiosPromise<ModAvatar> {
3030
+ return localVarFp
3031
+ .deleteModAvatar(requestParameters.modId, options)
3032
+ .then((request) => request(axios, basePath));
3033
+ },
3034
+ /**
3035
+ *
3036
+ * @summary Unlink a group from mod
3037
+ * @param {ModApiDeleteModFromGroupRequest} requestParameters Request parameters.
2599
3038
  * @param {*} [options] Override http request option.
2600
3039
  * @throws {RequiredError}
2601
3040
  */
2602
- deleteModFromTeam(
2603
- requestParameters: ModApiDeleteModFromTeamRequest,
3041
+ deleteModFromGroup(
3042
+ requestParameters: ModApiDeleteModFromGroupRequest,
2604
3043
  options?: RawAxiosRequestConfig,
2605
3044
  ): AxiosPromise<Notification> {
2606
3045
  return localVarFp
2607
- .deleteModFromTeam(
3046
+ .deleteModFromGroup(
2608
3047
  requestParameters.modId,
2609
- requestParameters.modTeamParams,
3048
+ requestParameters.deletePackFromGroupRequest,
2610
3049
  options,
2611
3050
  )
2612
3051
  .then((request) => request(axios, basePath));
@@ -2625,11 +3064,26 @@ export const ModApiFactory = function (
2625
3064
  return localVarFp
2626
3065
  .deleteModFromUser(
2627
3066
  requestParameters.modId,
2628
- requestParameters.modUserParams,
3067
+ requestParameters.deletePackFromUserRequest,
2629
3068
  options,
2630
3069
  )
2631
3070
  .then((request) => request(axios, basePath));
2632
3071
  },
3072
+ /**
3073
+ *
3074
+ * @summary Delete the avatar for the defined pack
3075
+ * @param {ModApiDeletePackAvatarRequest} requestParameters Request parameters.
3076
+ * @param {*} [options] Override http request option.
3077
+ * @throws {RequiredError}
3078
+ */
3079
+ deletePackAvatar(
3080
+ requestParameters: ModApiDeletePackAvatarRequest,
3081
+ options?: RawAxiosRequestConfig,
3082
+ ): AxiosPromise<PackAvatar> {
3083
+ return localVarFp
3084
+ .deletePackAvatar(requestParameters.packId, options)
3085
+ .then((request) => request(axios, basePath));
3086
+ },
2633
3087
  /**
2634
3088
  *
2635
3089
  * @summary Delete a specific version for a mod
@@ -2664,24 +3118,24 @@ export const ModApiFactory = function (
2664
3118
  .deleteVersionFromBuild(
2665
3119
  requestParameters.modId,
2666
3120
  requestParameters.versionId,
2667
- requestParameters.versionBuildParams,
3121
+ requestParameters.attachMinecraftToBuildRequest,
2668
3122
  options,
2669
3123
  )
2670
3124
  .then((request) => request(axios, basePath));
2671
3125
  },
2672
3126
  /**
2673
3127
  *
2674
- * @summary Fetch all teams attached to mod
2675
- * @param {ModApiListModTeamsRequest} requestParameters Request parameters.
3128
+ * @summary Fetch all groups attached to mod
3129
+ * @param {ModApiListModGroupsRequest} requestParameters Request parameters.
2676
3130
  * @param {*} [options] Override http request option.
2677
3131
  * @throws {RequiredError}
2678
3132
  */
2679
- listModTeams(
2680
- requestParameters: ModApiListModTeamsRequest,
3133
+ listModGroups(
3134
+ requestParameters: ModApiListModGroupsRequest,
2681
3135
  options?: RawAxiosRequestConfig,
2682
- ): AxiosPromise<ModTeams> {
3136
+ ): AxiosPromise<ListModGroups200Response> {
2683
3137
  return localVarFp
2684
- .listModTeams(
3138
+ .listModGroups(
2685
3139
  requestParameters.modId,
2686
3140
  requestParameters.search,
2687
3141
  requestParameters.sort,
@@ -2702,7 +3156,7 @@ export const ModApiFactory = function (
2702
3156
  listModUsers(
2703
3157
  requestParameters: ModApiListModUsersRequest,
2704
3158
  options?: RawAxiosRequestConfig,
2705
- ): AxiosPromise<ModUsers> {
3159
+ ): AxiosPromise<ListModUsers200Response> {
2706
3160
  return localVarFp
2707
3161
  .listModUsers(
2708
3162
  requestParameters.modId,
@@ -2725,7 +3179,7 @@ export const ModApiFactory = function (
2725
3179
  listMods(
2726
3180
  requestParameters: ModApiListModsRequest = {},
2727
3181
  options?: RawAxiosRequestConfig,
2728
- ): AxiosPromise<Mods> {
3182
+ ): AxiosPromise<ListMods200Response> {
2729
3183
  return localVarFp
2730
3184
  .listMods(
2731
3185
  requestParameters.search,
@@ -2747,7 +3201,7 @@ export const ModApiFactory = function (
2747
3201
  listVersionBuilds(
2748
3202
  requestParameters: ModApiListVersionBuildsRequest,
2749
3203
  options?: RawAxiosRequestConfig,
2750
- ): AxiosPromise<VersionBuilds> {
3204
+ ): AxiosPromise<ListVersionBuilds200Response> {
2751
3205
  return localVarFp
2752
3206
  .listVersionBuilds(
2753
3207
  requestParameters.modId,
@@ -2771,7 +3225,7 @@ export const ModApiFactory = function (
2771
3225
  listVersions(
2772
3226
  requestParameters: ModApiListVersionsRequest,
2773
3227
  options?: RawAxiosRequestConfig,
2774
- ): AxiosPromise<Versions> {
3228
+ ): AxiosPromise<ListVersions200Response> {
2775
3229
  return localVarFp
2776
3230
  .listVersions(
2777
3231
  requestParameters.modId,
@@ -2786,19 +3240,19 @@ export const ModApiFactory = function (
2786
3240
  },
2787
3241
  /**
2788
3242
  *
2789
- * @summary Update team perms for mod
2790
- * @param {ModApiPermitModTeamRequest} requestParameters Request parameters.
3243
+ * @summary Update group perms for mod
3244
+ * @param {ModApiPermitModGroupRequest} requestParameters Request parameters.
2791
3245
  * @param {*} [options] Override http request option.
2792
3246
  * @throws {RequiredError}
2793
3247
  */
2794
- permitModTeam(
2795
- requestParameters: ModApiPermitModTeamRequest,
3248
+ permitModGroup(
3249
+ requestParameters: ModApiPermitModGroupRequest,
2796
3250
  options?: RawAxiosRequestConfig,
2797
3251
  ): AxiosPromise<Notification> {
2798
3252
  return localVarFp
2799
- .permitModTeam(
3253
+ .permitModGroup(
2800
3254
  requestParameters.modId,
2801
- requestParameters.modTeamParams,
3255
+ requestParameters.permitPackGroupRequest,
2802
3256
  options,
2803
3257
  )
2804
3258
  .then((request) => request(axios, basePath));
@@ -2817,7 +3271,7 @@ export const ModApiFactory = function (
2817
3271
  return localVarFp
2818
3272
  .permitModUser(
2819
3273
  requestParameters.modId,
2820
- requestParameters.modUserParams,
3274
+ requestParameters.permitPackUserRequest,
2821
3275
  options,
2822
3276
  )
2823
3277
  .then((request) => request(axios, basePath));
@@ -2868,7 +3322,11 @@ export const ModApiFactory = function (
2868
3322
  options?: RawAxiosRequestConfig,
2869
3323
  ): AxiosPromise<Mod> {
2870
3324
  return localVarFp
2871
- .updateMod(requestParameters.modId, requestParameters.mod, options)
3325
+ .updateMod(
3326
+ requestParameters.modId,
3327
+ requestParameters.createModRequest,
3328
+ options,
3329
+ )
2872
3330
  .then((request) => request(axios, basePath));
2873
3331
  },
2874
3332
  /**
@@ -2886,7 +3344,7 @@ export const ModApiFactory = function (
2886
3344
  .updateVersion(
2887
3345
  requestParameters.modId,
2888
3346
  requestParameters.versionId,
2889
- requestParameters.version,
3347
+ requestParameters.createVersionRequest,
2890
3348
  options,
2891
3349
  )
2892
3350
  .then((request) => request(axios, basePath));
@@ -2895,24 +3353,24 @@ export const ModApiFactory = function (
2895
3353
  };
2896
3354
 
2897
3355
  /**
2898
- * Request parameters for attachModToTeam operation in ModApi.
3356
+ * Request parameters for attachModToGroup operation in ModApi.
2899
3357
  * @export
2900
- * @interface ModApiAttachModToTeamRequest
3358
+ * @interface ModApiAttachModToGroupRequest
2901
3359
  */
2902
- export interface ModApiAttachModToTeamRequest {
3360
+ export interface ModApiAttachModToGroupRequest {
2903
3361
  /**
2904
3362
  * A mod identifier or slug
2905
3363
  * @type {string}
2906
- * @memberof ModApiAttachModToTeam
3364
+ * @memberof ModApiAttachModToGroup
2907
3365
  */
2908
3366
  readonly modId: string;
2909
3367
 
2910
3368
  /**
2911
- * The team data to attach
2912
- * @type {ModTeamParams}
2913
- * @memberof ModApiAttachModToTeam
3369
+ * The mod group data to permit
3370
+ * @type {PermitPackGroupRequest}
3371
+ * @memberof ModApiAttachModToGroup
2914
3372
  */
2915
- readonly modTeamParams: ModTeamParams;
3373
+ readonly permitPackGroupRequest: PermitPackGroupRequest;
2916
3374
  }
2917
3375
 
2918
3376
  /**
@@ -2929,11 +3387,11 @@ export interface ModApiAttachModToUserRequest {
2929
3387
  readonly modId: string;
2930
3388
 
2931
3389
  /**
2932
- * The user data to attach
2933
- * @type {ModUserParams}
3390
+ * The mod user data to permit
3391
+ * @type {PermitPackUserRequest}
2934
3392
  * @memberof ModApiAttachModToUser
2935
3393
  */
2936
- readonly modUserParams: ModUserParams;
3394
+ readonly permitPackUserRequest: PermitPackUserRequest;
2937
3395
  }
2938
3396
 
2939
3397
  /**
@@ -2957,11 +3415,11 @@ export interface ModApiAttachVersionToBuildRequest {
2957
3415
  readonly versionId: string;
2958
3416
 
2959
3417
  /**
2960
- * The version build data to attach
2961
- * @type {VersionBuildParams}
3418
+ * The version build data to create or delete
3419
+ * @type {AttachMinecraftToBuildRequest}
2962
3420
  * @memberof ModApiAttachVersionToBuild
2963
3421
  */
2964
- readonly versionBuildParams: VersionBuildParams;
3422
+ readonly attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest;
2965
3423
  }
2966
3424
 
2967
3425
  /**
@@ -2972,10 +3430,52 @@ export interface ModApiAttachVersionToBuildRequest {
2972
3430
  export interface ModApiCreateModRequest {
2973
3431
  /**
2974
3432
  * The mod data to create
2975
- * @type {Mod}
3433
+ * @type {CreateModRequest}
2976
3434
  * @memberof ModApiCreateMod
2977
3435
  */
2978
- readonly mod: Mod;
3436
+ readonly createModRequest: CreateModRequest;
3437
+ }
3438
+
3439
+ /**
3440
+ * Request parameters for createModAvatar operation in ModApi.
3441
+ * @export
3442
+ * @interface ModApiCreateModAvatarRequest
3443
+ */
3444
+ export interface ModApiCreateModAvatarRequest {
3445
+ /**
3446
+ * A mod identifier or slug
3447
+ * @type {string}
3448
+ * @memberof ModApiCreateModAvatar
3449
+ */
3450
+ readonly modId: string;
3451
+
3452
+ /**
3453
+ *
3454
+ * @type {File}
3455
+ * @memberof ModApiCreateModAvatar
3456
+ */
3457
+ readonly file?: File;
3458
+ }
3459
+
3460
+ /**
3461
+ * Request parameters for createPackAvatar operation in ModApi.
3462
+ * @export
3463
+ * @interface ModApiCreatePackAvatarRequest
3464
+ */
3465
+ export interface ModApiCreatePackAvatarRequest {
3466
+ /**
3467
+ * A pack identifier or slug
3468
+ * @type {string}
3469
+ * @memberof ModApiCreatePackAvatar
3470
+ */
3471
+ readonly packId: string;
3472
+
3473
+ /**
3474
+ *
3475
+ * @type {File}
3476
+ * @memberof ModApiCreatePackAvatar
3477
+ */
3478
+ readonly file?: File;
2979
3479
  }
2980
3480
 
2981
3481
  /**
@@ -2993,10 +3493,10 @@ export interface ModApiCreateVersionRequest {
2993
3493
 
2994
3494
  /**
2995
3495
  * The version data to create
2996
- * @type {Version}
3496
+ * @type {CreateVersionRequest}
2997
3497
  * @memberof ModApiCreateVersion
2998
3498
  */
2999
- readonly version: Version;
3499
+ readonly createVersionRequest: CreateVersionRequest;
3000
3500
  }
3001
3501
 
3002
3502
  /**
@@ -3014,24 +3514,38 @@ export interface ModApiDeleteModRequest {
3014
3514
  }
3015
3515
 
3016
3516
  /**
3017
- * Request parameters for deleteModFromTeam operation in ModApi.
3517
+ * Request parameters for deleteModAvatar operation in ModApi.
3018
3518
  * @export
3019
- * @interface ModApiDeleteModFromTeamRequest
3519
+ * @interface ModApiDeleteModAvatarRequest
3020
3520
  */
3021
- export interface ModApiDeleteModFromTeamRequest {
3521
+ export interface ModApiDeleteModAvatarRequest {
3022
3522
  /**
3023
3523
  * A mod identifier or slug
3024
3524
  * @type {string}
3025
- * @memberof ModApiDeleteModFromTeam
3525
+ * @memberof ModApiDeleteModAvatar
3526
+ */
3527
+ readonly modId: string;
3528
+ }
3529
+
3530
+ /**
3531
+ * Request parameters for deleteModFromGroup operation in ModApi.
3532
+ * @export
3533
+ * @interface ModApiDeleteModFromGroupRequest
3534
+ */
3535
+ export interface ModApiDeleteModFromGroupRequest {
3536
+ /**
3537
+ * A mod identifier or slug
3538
+ * @type {string}
3539
+ * @memberof ModApiDeleteModFromGroup
3026
3540
  */
3027
3541
  readonly modId: string;
3028
3542
 
3029
3543
  /**
3030
- * The mod team data to unlink
3031
- * @type {ModTeamParams}
3032
- * @memberof ModApiDeleteModFromTeam
3544
+ * The mod group data to unlink
3545
+ * @type {DeletePackFromGroupRequest}
3546
+ * @memberof ModApiDeleteModFromGroup
3033
3547
  */
3034
- readonly modTeamParams: ModTeamParams;
3548
+ readonly deletePackFromGroupRequest: DeletePackFromGroupRequest;
3035
3549
  }
3036
3550
 
3037
3551
  /**
@@ -3049,10 +3563,24 @@ export interface ModApiDeleteModFromUserRequest {
3049
3563
 
3050
3564
  /**
3051
3565
  * The mod user data to unlink
3052
- * @type {ModUserParams}
3566
+ * @type {DeletePackFromUserRequest}
3053
3567
  * @memberof ModApiDeleteModFromUser
3054
3568
  */
3055
- readonly modUserParams: ModUserParams;
3569
+ readonly deletePackFromUserRequest: DeletePackFromUserRequest;
3570
+ }
3571
+
3572
+ /**
3573
+ * Request parameters for deletePackAvatar operation in ModApi.
3574
+ * @export
3575
+ * @interface ModApiDeletePackAvatarRequest
3576
+ */
3577
+ export interface ModApiDeletePackAvatarRequest {
3578
+ /**
3579
+ * A pack identifier or slug
3580
+ * @type {string}
3581
+ * @memberof ModApiDeletePackAvatar
3582
+ */
3583
+ readonly packId: string;
3056
3584
  }
3057
3585
 
3058
3586
  /**
@@ -3097,58 +3625,58 @@ export interface ModApiDeleteVersionFromBuildRequest {
3097
3625
  readonly versionId: string;
3098
3626
 
3099
3627
  /**
3100
- * The version build data to unlink
3101
- * @type {VersionBuildParams}
3628
+ * The version build data to create or delete
3629
+ * @type {AttachMinecraftToBuildRequest}
3102
3630
  * @memberof ModApiDeleteVersionFromBuild
3103
3631
  */
3104
- readonly versionBuildParams: VersionBuildParams;
3632
+ readonly attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest;
3105
3633
  }
3106
3634
 
3107
3635
  /**
3108
- * Request parameters for listModTeams operation in ModApi.
3636
+ * Request parameters for listModGroups operation in ModApi.
3109
3637
  * @export
3110
- * @interface ModApiListModTeamsRequest
3638
+ * @interface ModApiListModGroupsRequest
3111
3639
  */
3112
- export interface ModApiListModTeamsRequest {
3640
+ export interface ModApiListModGroupsRequest {
3113
3641
  /**
3114
3642
  * A mod identifier or slug
3115
3643
  * @type {string}
3116
- * @memberof ModApiListModTeams
3644
+ * @memberof ModApiListModGroups
3117
3645
  */
3118
3646
  readonly modId: string;
3119
3647
 
3120
3648
  /**
3121
3649
  * Search query
3122
3650
  * @type {string}
3123
- * @memberof ModApiListModTeams
3651
+ * @memberof ModApiListModGroups
3124
3652
  */
3125
3653
  readonly search?: string;
3126
3654
 
3127
3655
  /**
3128
3656
  * Sorting column
3129
- * @type {'slug' | 'name'}
3130
- * @memberof ModApiListModTeams
3657
+ * @type {string}
3658
+ * @memberof ModApiListModGroups
3131
3659
  */
3132
- readonly sort?: ListModTeamsSortEnum;
3660
+ readonly sort?: string;
3133
3661
 
3134
3662
  /**
3135
3663
  * Sorting order
3136
3664
  * @type {'asc' | 'desc'}
3137
- * @memberof ModApiListModTeams
3665
+ * @memberof ModApiListModGroups
3138
3666
  */
3139
- readonly order?: ListModTeamsOrderEnum;
3667
+ readonly order?: ListModGroupsOrderEnum;
3140
3668
 
3141
3669
  /**
3142
3670
  * Paging limit
3143
3671
  * @type {number}
3144
- * @memberof ModApiListModTeams
3672
+ * @memberof ModApiListModGroups
3145
3673
  */
3146
3674
  readonly limit?: number;
3147
3675
 
3148
3676
  /**
3149
3677
  * Paging offset
3150
3678
  * @type {number}
3151
- * @memberof ModApiListModTeams
3679
+ * @memberof ModApiListModGroups
3152
3680
  */
3153
3681
  readonly offset?: number;
3154
3682
  }
@@ -3175,10 +3703,10 @@ export interface ModApiListModUsersRequest {
3175
3703
 
3176
3704
  /**
3177
3705
  * Sorting column
3178
- * @type {'username' | 'email' | 'fullname' | 'admin' | 'active'}
3706
+ * @type {string}
3179
3707
  * @memberof ModApiListModUsers
3180
3708
  */
3181
- readonly sort?: ListModUsersSortEnum;
3709
+ readonly sort?: string;
3182
3710
 
3183
3711
  /**
3184
3712
  * Sorting order
@@ -3217,10 +3745,10 @@ export interface ModApiListModsRequest {
3217
3745
 
3218
3746
  /**
3219
3747
  * Sorting column
3220
- * @type {'slug' | 'name' | 'public'}
3748
+ * @type {string}
3221
3749
  * @memberof ModApiListMods
3222
3750
  */
3223
- readonly sort?: ListModsSortEnum;
3751
+ readonly sort?: string;
3224
3752
 
3225
3753
  /**
3226
3754
  * Sorting order
@@ -3273,10 +3801,10 @@ export interface ModApiListVersionBuildsRequest {
3273
3801
 
3274
3802
  /**
3275
3803
  * Sorting column
3276
- * @type {'name' | 'public'}
3804
+ * @type {string}
3277
3805
  * @memberof ModApiListVersionBuilds
3278
3806
  */
3279
- readonly sort?: ListVersionBuildsSortEnum;
3807
+ readonly sort?: string;
3280
3808
 
3281
3809
  /**
3282
3810
  * Sorting order
@@ -3322,10 +3850,10 @@ export interface ModApiListVersionsRequest {
3322
3850
 
3323
3851
  /**
3324
3852
  * Sorting column
3325
- * @type {'name' | 'public'}
3853
+ * @type {string}
3326
3854
  * @memberof ModApiListVersions
3327
3855
  */
3328
- readonly sort?: ListVersionsSortEnum;
3856
+ readonly sort?: string;
3329
3857
 
3330
3858
  /**
3331
3859
  * Sorting order
@@ -3350,24 +3878,24 @@ export interface ModApiListVersionsRequest {
3350
3878
  }
3351
3879
 
3352
3880
  /**
3353
- * Request parameters for permitModTeam operation in ModApi.
3881
+ * Request parameters for permitModGroup operation in ModApi.
3354
3882
  * @export
3355
- * @interface ModApiPermitModTeamRequest
3883
+ * @interface ModApiPermitModGroupRequest
3356
3884
  */
3357
- export interface ModApiPermitModTeamRequest {
3885
+ export interface ModApiPermitModGroupRequest {
3358
3886
  /**
3359
3887
  * A mod identifier or slug
3360
3888
  * @type {string}
3361
- * @memberof ModApiPermitModTeam
3889
+ * @memberof ModApiPermitModGroup
3362
3890
  */
3363
3891
  readonly modId: string;
3364
3892
 
3365
3893
  /**
3366
- * The team data to update
3367
- * @type {ModTeamParams}
3368
- * @memberof ModApiPermitModTeam
3894
+ * The mod group data to permit
3895
+ * @type {PermitPackGroupRequest}
3896
+ * @memberof ModApiPermitModGroup
3369
3897
  */
3370
- readonly modTeamParams: ModTeamParams;
3898
+ readonly permitPackGroupRequest: PermitPackGroupRequest;
3371
3899
  }
3372
3900
 
3373
3901
  /**
@@ -3384,11 +3912,11 @@ export interface ModApiPermitModUserRequest {
3384
3912
  readonly modId: string;
3385
3913
 
3386
3914
  /**
3387
- * The user data to update
3388
- * @type {ModUserParams}
3915
+ * The mod user data to permit
3916
+ * @type {PermitPackUserRequest}
3389
3917
  * @memberof ModApiPermitModUser
3390
3918
  */
3391
- readonly modUserParams: ModUserParams;
3919
+ readonly permitPackUserRequest: PermitPackUserRequest;
3392
3920
  }
3393
3921
 
3394
3922
  /**
@@ -3441,10 +3969,10 @@ export interface ModApiUpdateModRequest {
3441
3969
 
3442
3970
  /**
3443
3971
  * The mod data to update
3444
- * @type {Mod}
3972
+ * @type {CreateModRequest}
3445
3973
  * @memberof ModApiUpdateMod
3446
3974
  */
3447
- readonly mod: Mod;
3975
+ readonly createModRequest: CreateModRequest;
3448
3976
  }
3449
3977
 
3450
3978
  /**
@@ -3469,10 +3997,10 @@ export interface ModApiUpdateVersionRequest {
3469
3997
 
3470
3998
  /**
3471
3999
  * The version data to update
3472
- * @type {Version}
4000
+ * @type {CreateVersionRequest}
3473
4001
  * @memberof ModApiUpdateVersion
3474
4002
  */
3475
- readonly version: Version;
4003
+ readonly createVersionRequest: CreateVersionRequest;
3476
4004
  }
3477
4005
 
3478
4006
  /**
@@ -3484,20 +4012,20 @@ export interface ModApiUpdateVersionRequest {
3484
4012
  export class ModApi extends BaseAPI {
3485
4013
  /**
3486
4014
  *
3487
- * @summary Attach a team to mod
3488
- * @param {ModApiAttachModToTeamRequest} requestParameters Request parameters.
4015
+ * @summary Attach a group to mod
4016
+ * @param {ModApiAttachModToGroupRequest} requestParameters Request parameters.
3489
4017
  * @param {*} [options] Override http request option.
3490
4018
  * @throws {RequiredError}
3491
4019
  * @memberof ModApi
3492
4020
  */
3493
- public attachModToTeam(
3494
- requestParameters: ModApiAttachModToTeamRequest,
4021
+ public attachModToGroup(
4022
+ requestParameters: ModApiAttachModToGroupRequest,
3495
4023
  options?: RawAxiosRequestConfig,
3496
4024
  ) {
3497
4025
  return ModApiFp(this.configuration)
3498
- .attachModToTeam(
4026
+ .attachModToGroup(
3499
4027
  requestParameters.modId,
3500
- requestParameters.modTeamParams,
4028
+ requestParameters.permitPackGroupRequest,
3501
4029
  options,
3502
4030
  )
3503
4031
  .then((request) => request(this.axios, this.basePath));
@@ -3518,7 +4046,7 @@ export class ModApi extends BaseAPI {
3518
4046
  return ModApiFp(this.configuration)
3519
4047
  .attachModToUser(
3520
4048
  requestParameters.modId,
3521
- requestParameters.modUserParams,
4049
+ requestParameters.permitPackUserRequest,
3522
4050
  options,
3523
4051
  )
3524
4052
  .then((request) => request(this.axios, this.basePath));
@@ -3540,7 +4068,7 @@ export class ModApi extends BaseAPI {
3540
4068
  .attachVersionToBuild(
3541
4069
  requestParameters.modId,
3542
4070
  requestParameters.versionId,
3543
- requestParameters.versionBuildParams,
4071
+ requestParameters.attachMinecraftToBuildRequest,
3544
4072
  options,
3545
4073
  )
3546
4074
  .then((request) => request(this.axios, this.basePath));
@@ -3559,7 +4087,45 @@ export class ModApi extends BaseAPI {
3559
4087
  options?: RawAxiosRequestConfig,
3560
4088
  ) {
3561
4089
  return ModApiFp(this.configuration)
3562
- .createMod(requestParameters.mod, options)
4090
+ .createMod(requestParameters.createModRequest, options)
4091
+ .then((request) => request(this.axios, this.basePath));
4092
+ }
4093
+
4094
+ /**
4095
+ *
4096
+ * @summary Upload an avatar for the defined mod
4097
+ * @param {ModApiCreateModAvatarRequest} requestParameters Request parameters.
4098
+ * @param {*} [options] Override http request option.
4099
+ * @throws {RequiredError}
4100
+ * @memberof ModApi
4101
+ */
4102
+ public createModAvatar(
4103
+ requestParameters: ModApiCreateModAvatarRequest,
4104
+ options?: RawAxiosRequestConfig,
4105
+ ) {
4106
+ return ModApiFp(this.configuration)
4107
+ .createModAvatar(requestParameters.modId, requestParameters.file, options)
4108
+ .then((request) => request(this.axios, this.basePath));
4109
+ }
4110
+
4111
+ /**
4112
+ *
4113
+ * @summary Upload an avatar for the defined pack
4114
+ * @param {ModApiCreatePackAvatarRequest} requestParameters Request parameters.
4115
+ * @param {*} [options] Override http request option.
4116
+ * @throws {RequiredError}
4117
+ * @memberof ModApi
4118
+ */
4119
+ public createPackAvatar(
4120
+ requestParameters: ModApiCreatePackAvatarRequest,
4121
+ options?: RawAxiosRequestConfig,
4122
+ ) {
4123
+ return ModApiFp(this.configuration)
4124
+ .createPackAvatar(
4125
+ requestParameters.packId,
4126
+ requestParameters.file,
4127
+ options,
4128
+ )
3563
4129
  .then((request) => request(this.axios, this.basePath));
3564
4130
  }
3565
4131
 
@@ -3578,7 +4144,7 @@ export class ModApi extends BaseAPI {
3578
4144
  return ModApiFp(this.configuration)
3579
4145
  .createVersion(
3580
4146
  requestParameters.modId,
3581
- requestParameters.version,
4147
+ requestParameters.createVersionRequest,
3582
4148
  options,
3583
4149
  )
3584
4150
  .then((request) => request(this.axios, this.basePath));
@@ -3603,20 +4169,37 @@ export class ModApi extends BaseAPI {
3603
4169
 
3604
4170
  /**
3605
4171
  *
3606
- * @summary Unlink a team from mod
3607
- * @param {ModApiDeleteModFromTeamRequest} requestParameters Request parameters.
4172
+ * @summary Delete the avatar for the defined mod
4173
+ * @param {ModApiDeleteModAvatarRequest} requestParameters Request parameters.
4174
+ * @param {*} [options] Override http request option.
4175
+ * @throws {RequiredError}
4176
+ * @memberof ModApi
4177
+ */
4178
+ public deleteModAvatar(
4179
+ requestParameters: ModApiDeleteModAvatarRequest,
4180
+ options?: RawAxiosRequestConfig,
4181
+ ) {
4182
+ return ModApiFp(this.configuration)
4183
+ .deleteModAvatar(requestParameters.modId, options)
4184
+ .then((request) => request(this.axios, this.basePath));
4185
+ }
4186
+
4187
+ /**
4188
+ *
4189
+ * @summary Unlink a group from mod
4190
+ * @param {ModApiDeleteModFromGroupRequest} requestParameters Request parameters.
3608
4191
  * @param {*} [options] Override http request option.
3609
4192
  * @throws {RequiredError}
3610
4193
  * @memberof ModApi
3611
4194
  */
3612
- public deleteModFromTeam(
3613
- requestParameters: ModApiDeleteModFromTeamRequest,
4195
+ public deleteModFromGroup(
4196
+ requestParameters: ModApiDeleteModFromGroupRequest,
3614
4197
  options?: RawAxiosRequestConfig,
3615
4198
  ) {
3616
4199
  return ModApiFp(this.configuration)
3617
- .deleteModFromTeam(
4200
+ .deleteModFromGroup(
3618
4201
  requestParameters.modId,
3619
- requestParameters.modTeamParams,
4202
+ requestParameters.deletePackFromGroupRequest,
3620
4203
  options,
3621
4204
  )
3622
4205
  .then((request) => request(this.axios, this.basePath));
@@ -3637,12 +4220,29 @@ export class ModApi extends BaseAPI {
3637
4220
  return ModApiFp(this.configuration)
3638
4221
  .deleteModFromUser(
3639
4222
  requestParameters.modId,
3640
- requestParameters.modUserParams,
4223
+ requestParameters.deletePackFromUserRequest,
3641
4224
  options,
3642
4225
  )
3643
4226
  .then((request) => request(this.axios, this.basePath));
3644
4227
  }
3645
4228
 
4229
+ /**
4230
+ *
4231
+ * @summary Delete the avatar for the defined pack
4232
+ * @param {ModApiDeletePackAvatarRequest} requestParameters Request parameters.
4233
+ * @param {*} [options] Override http request option.
4234
+ * @throws {RequiredError}
4235
+ * @memberof ModApi
4236
+ */
4237
+ public deletePackAvatar(
4238
+ requestParameters: ModApiDeletePackAvatarRequest,
4239
+ options?: RawAxiosRequestConfig,
4240
+ ) {
4241
+ return ModApiFp(this.configuration)
4242
+ .deletePackAvatar(requestParameters.packId, options)
4243
+ .then((request) => request(this.axios, this.basePath));
4244
+ }
4245
+
3646
4246
  /**
3647
4247
  *
3648
4248
  * @summary Delete a specific version for a mod
@@ -3680,7 +4280,7 @@ export class ModApi extends BaseAPI {
3680
4280
  .deleteVersionFromBuild(
3681
4281
  requestParameters.modId,
3682
4282
  requestParameters.versionId,
3683
- requestParameters.versionBuildParams,
4283
+ requestParameters.attachMinecraftToBuildRequest,
3684
4284
  options,
3685
4285
  )
3686
4286
  .then((request) => request(this.axios, this.basePath));
@@ -3688,18 +4288,18 @@ export class ModApi extends BaseAPI {
3688
4288
 
3689
4289
  /**
3690
4290
  *
3691
- * @summary Fetch all teams attached to mod
3692
- * @param {ModApiListModTeamsRequest} requestParameters Request parameters.
4291
+ * @summary Fetch all groups attached to mod
4292
+ * @param {ModApiListModGroupsRequest} requestParameters Request parameters.
3693
4293
  * @param {*} [options] Override http request option.
3694
4294
  * @throws {RequiredError}
3695
4295
  * @memberof ModApi
3696
4296
  */
3697
- public listModTeams(
3698
- requestParameters: ModApiListModTeamsRequest,
4297
+ public listModGroups(
4298
+ requestParameters: ModApiListModGroupsRequest,
3699
4299
  options?: RawAxiosRequestConfig,
3700
4300
  ) {
3701
4301
  return ModApiFp(this.configuration)
3702
- .listModTeams(
4302
+ .listModGroups(
3703
4303
  requestParameters.modId,
3704
4304
  requestParameters.search,
3705
4305
  requestParameters.sort,
@@ -3813,20 +4413,20 @@ export class ModApi extends BaseAPI {
3813
4413
 
3814
4414
  /**
3815
4415
  *
3816
- * @summary Update team perms for mod
3817
- * @param {ModApiPermitModTeamRequest} requestParameters Request parameters.
4416
+ * @summary Update group perms for mod
4417
+ * @param {ModApiPermitModGroupRequest} requestParameters Request parameters.
3818
4418
  * @param {*} [options] Override http request option.
3819
4419
  * @throws {RequiredError}
3820
4420
  * @memberof ModApi
3821
4421
  */
3822
- public permitModTeam(
3823
- requestParameters: ModApiPermitModTeamRequest,
4422
+ public permitModGroup(
4423
+ requestParameters: ModApiPermitModGroupRequest,
3824
4424
  options?: RawAxiosRequestConfig,
3825
4425
  ) {
3826
4426
  return ModApiFp(this.configuration)
3827
- .permitModTeam(
4427
+ .permitModGroup(
3828
4428
  requestParameters.modId,
3829
- requestParameters.modTeamParams,
4429
+ requestParameters.permitPackGroupRequest,
3830
4430
  options,
3831
4431
  )
3832
4432
  .then((request) => request(this.axios, this.basePath));
@@ -3847,7 +4447,7 @@ export class ModApi extends BaseAPI {
3847
4447
  return ModApiFp(this.configuration)
3848
4448
  .permitModUser(
3849
4449
  requestParameters.modId,
3850
- requestParameters.modUserParams,
4450
+ requestParameters.permitPackUserRequest,
3851
4451
  options,
3852
4452
  )
3853
4453
  .then((request) => request(this.axios, this.basePath));
@@ -3904,7 +4504,11 @@ export class ModApi extends BaseAPI {
3904
4504
  options?: RawAxiosRequestConfig,
3905
4505
  ) {
3906
4506
  return ModApiFp(this.configuration)
3907
- .updateMod(requestParameters.modId, requestParameters.mod, options)
4507
+ .updateMod(
4508
+ requestParameters.modId,
4509
+ requestParameters.createModRequest,
4510
+ options,
4511
+ )
3908
4512
  .then((request) => request(this.axios, this.basePath));
3909
4513
  }
3910
4514
 
@@ -3924,7 +4528,7 @@ export class ModApi extends BaseAPI {
3924
4528
  .updateVersion(
3925
4529
  requestParameters.modId,
3926
4530
  requestParameters.versionId,
3927
- requestParameters.version,
4531
+ requestParameters.createVersionRequest,
3928
4532
  options,
3929
4533
  )
3930
4534
  .then((request) => request(this.axios, this.basePath));
@@ -3934,33 +4538,12 @@ export class ModApi extends BaseAPI {
3934
4538
  /**
3935
4539
  * @export
3936
4540
  */
3937
- export const ListModTeamsSortEnum = {
3938
- Slug: "slug",
3939
- Name: "name",
3940
- } as const;
3941
- export type ListModTeamsSortEnum =
3942
- (typeof ListModTeamsSortEnum)[keyof typeof ListModTeamsSortEnum];
3943
- /**
3944
- * @export
3945
- */
3946
- export const ListModTeamsOrderEnum = {
4541
+ export const ListModGroupsOrderEnum = {
3947
4542
  Asc: "asc",
3948
4543
  Desc: "desc",
3949
4544
  } as const;
3950
- export type ListModTeamsOrderEnum =
3951
- (typeof ListModTeamsOrderEnum)[keyof typeof ListModTeamsOrderEnum];
3952
- /**
3953
- * @export
3954
- */
3955
- export const ListModUsersSortEnum = {
3956
- Username: "username",
3957
- Email: "email",
3958
- Fullname: "fullname",
3959
- Admin: "admin",
3960
- Active: "active",
3961
- } as const;
3962
- export type ListModUsersSortEnum =
3963
- (typeof ListModUsersSortEnum)[keyof typeof ListModUsersSortEnum];
4545
+ export type ListModGroupsOrderEnum =
4546
+ (typeof ListModGroupsOrderEnum)[keyof typeof ListModGroupsOrderEnum];
3964
4547
  /**
3965
4548
  * @export
3966
4549
  */
@@ -3973,16 +4556,6 @@ export type ListModUsersOrderEnum =
3973
4556
  /**
3974
4557
  * @export
3975
4558
  */
3976
- export const ListModsSortEnum = {
3977
- Slug: "slug",
3978
- Name: "name",
3979
- Public: "public",
3980
- } as const;
3981
- export type ListModsSortEnum =
3982
- (typeof ListModsSortEnum)[keyof typeof ListModsSortEnum];
3983
- /**
3984
- * @export
3985
- */
3986
4559
  export const ListModsOrderEnum = {
3987
4560
  Asc: "asc",
3988
4561
  Desc: "desc",
@@ -3992,15 +4565,6 @@ export type ListModsOrderEnum =
3992
4565
  /**
3993
4566
  * @export
3994
4567
  */
3995
- export const ListVersionBuildsSortEnum = {
3996
- Name: "name",
3997
- Public: "public",
3998
- } as const;
3999
- export type ListVersionBuildsSortEnum =
4000
- (typeof ListVersionBuildsSortEnum)[keyof typeof ListVersionBuildsSortEnum];
4001
- /**
4002
- * @export
4003
- */
4004
4568
  export const ListVersionBuildsOrderEnum = {
4005
4569
  Asc: "asc",
4006
4570
  Desc: "desc",
@@ -4010,15 +4574,6 @@ export type ListVersionBuildsOrderEnum =
4010
4574
  /**
4011
4575
  * @export
4012
4576
  */
4013
- export const ListVersionsSortEnum = {
4014
- Name: "name",
4015
- Public: "public",
4016
- } as const;
4017
- export type ListVersionsSortEnum =
4018
- (typeof ListVersionsSortEnum)[keyof typeof ListVersionsSortEnum];
4019
- /**
4020
- * @export
4021
- */
4022
4577
  export const ListVersionsOrderEnum = {
4023
4578
  Asc: "asc",
4024
4579
  Desc: "desc",