kleisterjs 2.7.0 → 2.9.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 (97) hide show
  1. package/.codacy.yml +3 -0
  2. package/.github/RELEASE +1 -1
  3. package/.github/settings.yml +3 -0
  4. package/.openapi-generator/FILES +87 -0
  5. package/.openapi-generator/VERSION +1 -1
  6. package/CHANGELOG.md +15 -0
  7. package/README.md +2 -2
  8. package/docs/AttachBuildToVersionRequest.md +22 -0
  9. package/docs/AttachMinecraftToBuildRequest.md +22 -0
  10. package/docs/AuthApi.md +366 -0
  11. package/docs/AuthToken.md +22 -0
  12. package/docs/AuthVerify.md +22 -0
  13. package/docs/Build.md +59 -0
  14. package/docs/BuildVersion.md +31 -0
  15. package/docs/CreateBuildRequest.md +40 -0
  16. package/docs/CreateGroupRequest.md +22 -0
  17. package/docs/CreateModRequest.md +34 -0
  18. package/docs/CreatePackRequest.md +26 -0
  19. package/docs/CreateUserRequest.md +30 -0
  20. package/docs/CreateVersionRequest.md +24 -0
  21. package/docs/DeleteGroupFromModRequest.md +20 -0
  22. package/docs/DeleteGroupFromPackRequest.md +20 -0
  23. package/docs/DeletePackFromGroupRequest.md +20 -0
  24. package/docs/DeletePackFromUserRequest.md +20 -0
  25. package/docs/Fabric.md +27 -0
  26. package/docs/FabricApi.md +297 -0
  27. package/docs/Forge.md +29 -0
  28. package/docs/ForgeApi.md +297 -0
  29. package/docs/Group.md +29 -0
  30. package/docs/GroupApi.md +1050 -0
  31. package/docs/GroupMod.md +33 -0
  32. package/docs/GroupPack.md +33 -0
  33. package/docs/ListBuildVersions200Response.md +30 -0
  34. package/docs/ListBuilds200Response.md +28 -0
  35. package/docs/ListFabricBuilds200Response.md +28 -0
  36. package/docs/ListFabrics200Response.md +26 -0
  37. package/docs/ListForgeBuilds200Response.md +28 -0
  38. package/docs/ListForges200Response.md +26 -0
  39. package/docs/ListGroupMods200Response.md +28 -0
  40. package/docs/ListGroupPacks200Response.md +28 -0
  41. package/docs/ListGroupUsers200Response.md +28 -0
  42. package/docs/ListGroups200Response.md +26 -0
  43. package/docs/ListMinecraftBuilds200Response.md +28 -0
  44. package/docs/ListMinecrafts200Response.md +26 -0
  45. package/docs/ListModGroups200Response.md +28 -0
  46. package/docs/ListModUsers200Response.md +28 -0
  47. package/docs/ListMods200Response.md +26 -0
  48. package/docs/ListNeoforgeBuilds200Response.md +28 -0
  49. package/docs/ListNeoforges200Response.md +26 -0
  50. package/docs/ListPackGroups200Response.md +28 -0
  51. package/docs/ListPackUsers200Response.md +28 -0
  52. package/docs/ListPacks200Response.md +26 -0
  53. package/docs/ListProviders200Response.md +22 -0
  54. package/docs/ListQuiltBuilds200Response.md +28 -0
  55. package/docs/ListQuilts200Response.md +26 -0
  56. package/docs/ListUserGroups200Response.md +28 -0
  57. package/docs/ListUserMods200Response.md +28 -0
  58. package/docs/ListUserPacks200Response.md +28 -0
  59. package/docs/ListUsers200Response.md +26 -0
  60. package/docs/ListVersionBuilds200Response.md +30 -0
  61. package/docs/ListVersions200Response.md +28 -0
  62. package/docs/LoginAuthRequest.md +22 -0
  63. package/docs/Minecraft.md +29 -0
  64. package/docs/MinecraftApi.md +297 -0
  65. package/docs/Mod.md +43 -0
  66. package/docs/ModApi.md +1533 -0
  67. package/docs/ModAvatar.md +27 -0
  68. package/docs/Neoforge.md +27 -0
  69. package/docs/NeoforgeApi.md +297 -0
  70. package/docs/Notification.md +25 -0
  71. package/docs/Pack.md +35 -0
  72. package/docs/PackApi.md +1305 -0
  73. package/docs/PackAvatar.md +27 -0
  74. package/docs/PermitGroupModRequest.md +22 -0
  75. package/docs/PermitGroupPackRequest.md +22 -0
  76. package/docs/PermitPackGroupRequest.md +22 -0
  77. package/docs/PermitPackUserRequest.md +22 -0
  78. package/docs/Profile.md +47 -0
  79. package/docs/ProfileApi.md +155 -0
  80. package/docs/Provider.md +27 -0
  81. package/docs/Quilt.md +27 -0
  82. package/docs/QuiltApi.md +297 -0
  83. package/docs/RedirectAuthRequest.md +20 -0
  84. package/docs/UpdateProfileRequest.md +26 -0
  85. package/docs/UpdateUserRequest.md +30 -0
  86. package/docs/User.md +41 -0
  87. package/docs/UserApi.md +1050 -0
  88. package/docs/UserAuth.md +27 -0
  89. package/docs/UserGroup.md +33 -0
  90. package/docs/UserMod.md +33 -0
  91. package/docs/UserPack.md +33 -0
  92. package/docs/Validation.md +23 -0
  93. package/docs/Version.md +33 -0
  94. package/docs/VersionFile.md +33 -0
  95. package/flake.lock +9 -9
  96. package/openapi.yml +1 -1
  97. package/package.json +2 -2
@@ -0,0 +1,1050 @@
1
+ # UserApi
2
+
3
+ All URIs are relative to *https://try.kleister.eu/api/v1*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**attachUserToGroup**](#attachusertogroup) | **POST** /users/{user_id}/groups | Attach a group to user|
8
+ |[**attachUserToMod**](#attachusertomod) | **POST** /users/{user_id}/mods | Attach a mod to user|
9
+ |[**attachUserToPack**](#attachusertopack) | **POST** /users/{user_id}/packs | Attach a pack to user|
10
+ |[**createUser**](#createuser) | **POST** /users | Create a new user|
11
+ |[**deleteUser**](#deleteuser) | **DELETE** /users/{user_id} | Delete a specific user|
12
+ |[**deleteUserFromGroup**](#deleteuserfromgroup) | **DELETE** /users/{user_id}/groups | Unlink a group from user|
13
+ |[**deleteUserFromMod**](#deleteuserfrommod) | **DELETE** /users/{user_id}/mods | Unlink a mod from user|
14
+ |[**deleteUserFromPack**](#deleteuserfrompack) | **DELETE** /users/{user_id}/packs | Unlink a pack from user|
15
+ |[**listUserGroups**](#listusergroups) | **GET** /users/{user_id}/groups | Fetch all groups attached to user|
16
+ |[**listUserMods**](#listusermods) | **GET** /users/{user_id}/mods | Fetch all mods attached to user|
17
+ |[**listUserPacks**](#listuserpacks) | **GET** /users/{user_id}/packs | Fetch all packs attached to user|
18
+ |[**listUsers**](#listusers) | **GET** /users | Fetch all available users|
19
+ |[**permitUserGroup**](#permitusergroup) | **PUT** /users/{user_id}/groups | Update group perms for user|
20
+ |[**permitUserMod**](#permitusermod) | **PUT** /users/{user_id}/mods | Update mod perms for user|
21
+ |[**permitUserPack**](#permituserpack) | **PUT** /users/{user_id}/packs | Update pack perms for user|
22
+ |[**showUser**](#showuser) | **GET** /users/{user_id} | Fetch a specific user|
23
+ |[**updateUser**](#updateuser) | **PUT** /users/{user_id} | Update a specific user|
24
+
25
+ # **attachUserToGroup**
26
+ > Notification attachUserToGroup(permitPackGroupRequest)
27
+
28
+
29
+ ### Example
30
+
31
+ ```typescript
32
+ import {
33
+ UserApi,
34
+ Configuration,
35
+ PermitPackGroupRequest
36
+ } from 'kleisterjs';
37
+
38
+ const configuration = new Configuration();
39
+ const apiInstance = new UserApi(configuration);
40
+
41
+ let userId: string; //A user identifier or slug (default to undefined)
42
+ let permitPackGroupRequest: PermitPackGroupRequest; //The user group data to permit
43
+
44
+ const { status, data } = await apiInstance.attachUserToGroup(
45
+ userId,
46
+ permitPackGroupRequest
47
+ );
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+ |Name | Type | Description | Notes|
53
+ |------------- | ------------- | ------------- | -------------|
54
+ | **permitPackGroupRequest** | **PermitPackGroupRequest**| The user group data to permit | |
55
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
56
+
57
+
58
+ ### Return type
59
+
60
+ **Notification**
61
+
62
+ ### Authorization
63
+
64
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: application/json
69
+ - **Accept**: application/json
70
+
71
+
72
+ ### HTTP response details
73
+ | Status code | Description | Response headers |
74
+ |-------------|-------------|------------------|
75
+ |**200** | Plain success message | - |
76
+ |**400** | Failed to parse request | - |
77
+ |**403** | User is not authorized | - |
78
+ |**404** | Resource not found | - |
79
+ |**412** | Resource is already attached | - |
80
+ |**422** | Failed to validate request | - |
81
+ |**500** | Some internal server error | - |
82
+
83
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
84
+
85
+ # **attachUserToMod**
86
+ > Notification attachUserToMod(permitGroupModRequest)
87
+
88
+
89
+ ### Example
90
+
91
+ ```typescript
92
+ import {
93
+ UserApi,
94
+ Configuration,
95
+ PermitGroupModRequest
96
+ } from 'kleisterjs';
97
+
98
+ const configuration = new Configuration();
99
+ const apiInstance = new UserApi(configuration);
100
+
101
+ let userId: string; //A user identifier or slug (default to undefined)
102
+ let permitGroupModRequest: PermitGroupModRequest; //The user mod data to permit
103
+
104
+ const { status, data } = await apiInstance.attachUserToMod(
105
+ userId,
106
+ permitGroupModRequest
107
+ );
108
+ ```
109
+
110
+ ### Parameters
111
+
112
+ |Name | Type | Description | Notes|
113
+ |------------- | ------------- | ------------- | -------------|
114
+ | **permitGroupModRequest** | **PermitGroupModRequest**| The user mod data to permit | |
115
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
116
+
117
+
118
+ ### Return type
119
+
120
+ **Notification**
121
+
122
+ ### Authorization
123
+
124
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
125
+
126
+ ### HTTP request headers
127
+
128
+ - **Content-Type**: application/json
129
+ - **Accept**: application/json
130
+
131
+
132
+ ### HTTP response details
133
+ | Status code | Description | Response headers |
134
+ |-------------|-------------|------------------|
135
+ |**200** | Plain success message | - |
136
+ |**400** | Failed to parse request | - |
137
+ |**403** | User is not authorized | - |
138
+ |**404** | Resource not found | - |
139
+ |**412** | Resource is already attached | - |
140
+ |**422** | Failed to validate request | - |
141
+ |**500** | Some internal server error | - |
142
+
143
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
144
+
145
+ # **attachUserToPack**
146
+ > Notification attachUserToPack(permitGroupPackRequest)
147
+
148
+
149
+ ### Example
150
+
151
+ ```typescript
152
+ import {
153
+ UserApi,
154
+ Configuration,
155
+ PermitGroupPackRequest
156
+ } from 'kleisterjs';
157
+
158
+ const configuration = new Configuration();
159
+ const apiInstance = new UserApi(configuration);
160
+
161
+ let userId: string; //A user identifier or slug (default to undefined)
162
+ let permitGroupPackRequest: PermitGroupPackRequest; //The user pack data to permit
163
+
164
+ const { status, data } = await apiInstance.attachUserToPack(
165
+ userId,
166
+ permitGroupPackRequest
167
+ );
168
+ ```
169
+
170
+ ### Parameters
171
+
172
+ |Name | Type | Description | Notes|
173
+ |------------- | ------------- | ------------- | -------------|
174
+ | **permitGroupPackRequest** | **PermitGroupPackRequest**| The user pack data to permit | |
175
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
176
+
177
+
178
+ ### Return type
179
+
180
+ **Notification**
181
+
182
+ ### Authorization
183
+
184
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
185
+
186
+ ### HTTP request headers
187
+
188
+ - **Content-Type**: application/json
189
+ - **Accept**: application/json
190
+
191
+
192
+ ### HTTP response details
193
+ | Status code | Description | Response headers |
194
+ |-------------|-------------|------------------|
195
+ |**200** | Plain success message | - |
196
+ |**400** | Failed to parse request | - |
197
+ |**403** | User is not authorized | - |
198
+ |**404** | Resource not found | - |
199
+ |**412** | Resource is already attached | - |
200
+ |**422** | Failed to validate request | - |
201
+ |**500** | Some internal server error | - |
202
+
203
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
204
+
205
+ # **createUser**
206
+ > User createUser(createUserRequest)
207
+
208
+
209
+ ### Example
210
+
211
+ ```typescript
212
+ import {
213
+ UserApi,
214
+ Configuration,
215
+ CreateUserRequest
216
+ } from 'kleisterjs';
217
+
218
+ const configuration = new Configuration();
219
+ const apiInstance = new UserApi(configuration);
220
+
221
+ let createUserRequest: CreateUserRequest; //The user data to create
222
+
223
+ const { status, data } = await apiInstance.createUser(
224
+ createUserRequest
225
+ );
226
+ ```
227
+
228
+ ### Parameters
229
+
230
+ |Name | Type | Description | Notes|
231
+ |------------- | ------------- | ------------- | -------------|
232
+ | **createUserRequest** | **CreateUserRequest**| The user data to create | |
233
+
234
+
235
+ ### Return type
236
+
237
+ **User**
238
+
239
+ ### Authorization
240
+
241
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
242
+
243
+ ### HTTP request headers
244
+
245
+ - **Content-Type**: application/json
246
+ - **Accept**: application/json
247
+
248
+
249
+ ### HTTP response details
250
+ | Status code | Description | Response headers |
251
+ |-------------|-------------|------------------|
252
+ |**200** | The details for an user | - |
253
+ |**400** | Failed to parse request | - |
254
+ |**403** | User is not authorized | - |
255
+ |**422** | Failed to validate request | - |
256
+ |**500** | Some internal server error | - |
257
+
258
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
259
+
260
+ # **deleteUser**
261
+ > Notification deleteUser()
262
+
263
+
264
+ ### Example
265
+
266
+ ```typescript
267
+ import {
268
+ UserApi,
269
+ Configuration
270
+ } from 'kleisterjs';
271
+
272
+ const configuration = new Configuration();
273
+ const apiInstance = new UserApi(configuration);
274
+
275
+ let userId: string; //A user identifier or slug (default to undefined)
276
+
277
+ const { status, data } = await apiInstance.deleteUser(
278
+ userId
279
+ );
280
+ ```
281
+
282
+ ### Parameters
283
+
284
+ |Name | Type | Description | Notes|
285
+ |------------- | ------------- | ------------- | -------------|
286
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
287
+
288
+
289
+ ### Return type
290
+
291
+ **Notification**
292
+
293
+ ### Authorization
294
+
295
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
296
+
297
+ ### HTTP request headers
298
+
299
+ - **Content-Type**: Not defined
300
+ - **Accept**: application/json
301
+
302
+
303
+ ### HTTP response details
304
+ | Status code | Description | Response headers |
305
+ |-------------|-------------|------------------|
306
+ |**200** | Plain success message | - |
307
+ |**403** | User is not authorized | - |
308
+ |**404** | Resource not found | - |
309
+ |**400** | Failed to execute action for resource | - |
310
+ |**500** | Some internal server error | - |
311
+
312
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
313
+
314
+ # **deleteUserFromGroup**
315
+ > Notification deleteUserFromGroup(deletePackFromGroupRequest)
316
+
317
+
318
+ ### Example
319
+
320
+ ```typescript
321
+ import {
322
+ UserApi,
323
+ Configuration,
324
+ DeletePackFromGroupRequest
325
+ } from 'kleisterjs';
326
+
327
+ const configuration = new Configuration();
328
+ const apiInstance = new UserApi(configuration);
329
+
330
+ let userId: string; //A user identifier or slug (default to undefined)
331
+ let deletePackFromGroupRequest: DeletePackFromGroupRequest; //The user group data to unlink
332
+
333
+ const { status, data } = await apiInstance.deleteUserFromGroup(
334
+ userId,
335
+ deletePackFromGroupRequest
336
+ );
337
+ ```
338
+
339
+ ### Parameters
340
+
341
+ |Name | Type | Description | Notes|
342
+ |------------- | ------------- | ------------- | -------------|
343
+ | **deletePackFromGroupRequest** | **DeletePackFromGroupRequest**| The user group data to unlink | |
344
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
345
+
346
+
347
+ ### Return type
348
+
349
+ **Notification**
350
+
351
+ ### Authorization
352
+
353
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
354
+
355
+ ### HTTP request headers
356
+
357
+ - **Content-Type**: application/json
358
+ - **Accept**: application/json
359
+
360
+
361
+ ### HTTP response details
362
+ | Status code | Description | Response headers |
363
+ |-------------|-------------|------------------|
364
+ |**200** | Plain success message | - |
365
+ |**400** | Failed to parse request | - |
366
+ |**403** | User is not authorized | - |
367
+ |**404** | Resource not found | - |
368
+ |**412** | Resource is not attached | - |
369
+ |**500** | Some internal server error | - |
370
+
371
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
372
+
373
+ # **deleteUserFromMod**
374
+ > Notification deleteUserFromMod(deleteGroupFromModRequest)
375
+
376
+
377
+ ### Example
378
+
379
+ ```typescript
380
+ import {
381
+ UserApi,
382
+ Configuration,
383
+ DeleteGroupFromModRequest
384
+ } from 'kleisterjs';
385
+
386
+ const configuration = new Configuration();
387
+ const apiInstance = new UserApi(configuration);
388
+
389
+ let userId: string; //A user identifier or slug (default to undefined)
390
+ let deleteGroupFromModRequest: DeleteGroupFromModRequest; //The user mod data to unlink
391
+
392
+ const { status, data } = await apiInstance.deleteUserFromMod(
393
+ userId,
394
+ deleteGroupFromModRequest
395
+ );
396
+ ```
397
+
398
+ ### Parameters
399
+
400
+ |Name | Type | Description | Notes|
401
+ |------------- | ------------- | ------------- | -------------|
402
+ | **deleteGroupFromModRequest** | **DeleteGroupFromModRequest**| The user mod data to unlink | |
403
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
404
+
405
+
406
+ ### Return type
407
+
408
+ **Notification**
409
+
410
+ ### Authorization
411
+
412
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
413
+
414
+ ### HTTP request headers
415
+
416
+ - **Content-Type**: application/json
417
+ - **Accept**: application/json
418
+
419
+
420
+ ### HTTP response details
421
+ | Status code | Description | Response headers |
422
+ |-------------|-------------|------------------|
423
+ |**200** | Plain success message | - |
424
+ |**400** | Failed to parse request | - |
425
+ |**403** | User is not authorized | - |
426
+ |**404** | Resource not found | - |
427
+ |**412** | Resource is not attached | - |
428
+ |**500** | Some internal server error | - |
429
+
430
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
431
+
432
+ # **deleteUserFromPack**
433
+ > Notification deleteUserFromPack(deleteGroupFromPackRequest)
434
+
435
+
436
+ ### Example
437
+
438
+ ```typescript
439
+ import {
440
+ UserApi,
441
+ Configuration,
442
+ DeleteGroupFromPackRequest
443
+ } from 'kleisterjs';
444
+
445
+ const configuration = new Configuration();
446
+ const apiInstance = new UserApi(configuration);
447
+
448
+ let userId: string; //A user identifier or slug (default to undefined)
449
+ let deleteGroupFromPackRequest: DeleteGroupFromPackRequest; //The user pack data to unlink
450
+
451
+ const { status, data } = await apiInstance.deleteUserFromPack(
452
+ userId,
453
+ deleteGroupFromPackRequest
454
+ );
455
+ ```
456
+
457
+ ### Parameters
458
+
459
+ |Name | Type | Description | Notes|
460
+ |------------- | ------------- | ------------- | -------------|
461
+ | **deleteGroupFromPackRequest** | **DeleteGroupFromPackRequest**| The user pack data to unlink | |
462
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
463
+
464
+
465
+ ### Return type
466
+
467
+ **Notification**
468
+
469
+ ### Authorization
470
+
471
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
472
+
473
+ ### HTTP request headers
474
+
475
+ - **Content-Type**: application/json
476
+ - **Accept**: application/json
477
+
478
+
479
+ ### HTTP response details
480
+ | Status code | Description | Response headers |
481
+ |-------------|-------------|------------------|
482
+ |**200** | Plain success message | - |
483
+ |**400** | Failed to parse request | - |
484
+ |**403** | User is not authorized | - |
485
+ |**404** | Resource not found | - |
486
+ |**412** | Resource is not attached | - |
487
+ |**500** | Some internal server error | - |
488
+
489
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
490
+
491
+ # **listUserGroups**
492
+ > ListUserGroups200Response listUserGroups()
493
+
494
+
495
+ ### Example
496
+
497
+ ```typescript
498
+ import {
499
+ UserApi,
500
+ Configuration
501
+ } from 'kleisterjs';
502
+
503
+ const configuration = new Configuration();
504
+ const apiInstance = new UserApi(configuration);
505
+
506
+ let userId: string; //A user identifier or slug (default to undefined)
507
+ let search: string; //Search query (optional) (default to undefined)
508
+ let sort: string; //Sorting column (optional) (default to undefined)
509
+ let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
510
+ let limit: number; //Paging limit (optional) (default to 100)
511
+ let offset: number; //Paging offset (optional) (default to 0)
512
+
513
+ const { status, data } = await apiInstance.listUserGroups(
514
+ userId,
515
+ search,
516
+ sort,
517
+ order,
518
+ limit,
519
+ offset
520
+ );
521
+ ```
522
+
523
+ ### Parameters
524
+
525
+ |Name | Type | Description | Notes|
526
+ |------------- | ------------- | ------------- | -------------|
527
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
528
+ | **search** | [**string**] | Search query | (optional) defaults to undefined|
529
+ | **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
530
+ | **order** | [**&#39;asc&#39; | &#39;desc&#39;**]**Array<&#39;asc&#39; &#124; &#39;desc&#39;>** | Sorting order | (optional) defaults to 'asc'|
531
+ | **limit** | [**number**] | Paging limit | (optional) defaults to 100|
532
+ | **offset** | [**number**] | Paging offset | (optional) defaults to 0|
533
+
534
+
535
+ ### Return type
536
+
537
+ **ListUserGroups200Response**
538
+
539
+ ### Authorization
540
+
541
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
542
+
543
+ ### HTTP request headers
544
+
545
+ - **Content-Type**: Not defined
546
+ - **Accept**: application/json
547
+
548
+
549
+ ### HTTP response details
550
+ | Status code | Description | Response headers |
551
+ |-------------|-------------|------------------|
552
+ |**200** | A collection of user groups | - |
553
+ |**403** | User is not authorized | - |
554
+ |**404** | Resource not found | - |
555
+ |**500** | Some internal server error | - |
556
+
557
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
558
+
559
+ # **listUserMods**
560
+ > ListUserMods200Response listUserMods()
561
+
562
+
563
+ ### Example
564
+
565
+ ```typescript
566
+ import {
567
+ UserApi,
568
+ Configuration
569
+ } from 'kleisterjs';
570
+
571
+ const configuration = new Configuration();
572
+ const apiInstance = new UserApi(configuration);
573
+
574
+ let userId: string; //A user identifier or slug (default to undefined)
575
+ let search: string; //Search query (optional) (default to undefined)
576
+ let sort: string; //Sorting column (optional) (default to undefined)
577
+ let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
578
+ let limit: number; //Paging limit (optional) (default to 100)
579
+ let offset: number; //Paging offset (optional) (default to 0)
580
+
581
+ const { status, data } = await apiInstance.listUserMods(
582
+ userId,
583
+ search,
584
+ sort,
585
+ order,
586
+ limit,
587
+ offset
588
+ );
589
+ ```
590
+
591
+ ### Parameters
592
+
593
+ |Name | Type | Description | Notes|
594
+ |------------- | ------------- | ------------- | -------------|
595
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
596
+ | **search** | [**string**] | Search query | (optional) defaults to undefined|
597
+ | **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
598
+ | **order** | [**&#39;asc&#39; | &#39;desc&#39;**]**Array<&#39;asc&#39; &#124; &#39;desc&#39;>** | Sorting order | (optional) defaults to 'asc'|
599
+ | **limit** | [**number**] | Paging limit | (optional) defaults to 100|
600
+ | **offset** | [**number**] | Paging offset | (optional) defaults to 0|
601
+
602
+
603
+ ### Return type
604
+
605
+ **ListUserMods200Response**
606
+
607
+ ### Authorization
608
+
609
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
610
+
611
+ ### HTTP request headers
612
+
613
+ - **Content-Type**: Not defined
614
+ - **Accept**: application/json
615
+
616
+
617
+ ### HTTP response details
618
+ | Status code | Description | Response headers |
619
+ |-------------|-------------|------------------|
620
+ |**200** | A collection of user mods | - |
621
+ |**403** | User is not authorized | - |
622
+ |**404** | Resource not found | - |
623
+ |**500** | Some internal server error | - |
624
+
625
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
626
+
627
+ # **listUserPacks**
628
+ > ListUserPacks200Response listUserPacks()
629
+
630
+
631
+ ### Example
632
+
633
+ ```typescript
634
+ import {
635
+ UserApi,
636
+ Configuration
637
+ } from 'kleisterjs';
638
+
639
+ const configuration = new Configuration();
640
+ const apiInstance = new UserApi(configuration);
641
+
642
+ let userId: string; //A user identifier or slug (default to undefined)
643
+ let search: string; //Search query (optional) (default to undefined)
644
+ let sort: string; //Sorting column (optional) (default to undefined)
645
+ let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
646
+ let limit: number; //Paging limit (optional) (default to 100)
647
+ let offset: number; //Paging offset (optional) (default to 0)
648
+
649
+ const { status, data } = await apiInstance.listUserPacks(
650
+ userId,
651
+ search,
652
+ sort,
653
+ order,
654
+ limit,
655
+ offset
656
+ );
657
+ ```
658
+
659
+ ### Parameters
660
+
661
+ |Name | Type | Description | Notes|
662
+ |------------- | ------------- | ------------- | -------------|
663
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
664
+ | **search** | [**string**] | Search query | (optional) defaults to undefined|
665
+ | **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
666
+ | **order** | [**&#39;asc&#39; | &#39;desc&#39;**]**Array<&#39;asc&#39; &#124; &#39;desc&#39;>** | Sorting order | (optional) defaults to 'asc'|
667
+ | **limit** | [**number**] | Paging limit | (optional) defaults to 100|
668
+ | **offset** | [**number**] | Paging offset | (optional) defaults to 0|
669
+
670
+
671
+ ### Return type
672
+
673
+ **ListUserPacks200Response**
674
+
675
+ ### Authorization
676
+
677
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
678
+
679
+ ### HTTP request headers
680
+
681
+ - **Content-Type**: Not defined
682
+ - **Accept**: application/json
683
+
684
+
685
+ ### HTTP response details
686
+ | Status code | Description | Response headers |
687
+ |-------------|-------------|------------------|
688
+ |**200** | A collection of user packs | - |
689
+ |**403** | User is not authorized | - |
690
+ |**404** | Resource not found | - |
691
+ |**500** | Some internal server error | - |
692
+
693
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
694
+
695
+ # **listUsers**
696
+ > ListUsers200Response listUsers()
697
+
698
+
699
+ ### Example
700
+
701
+ ```typescript
702
+ import {
703
+ UserApi,
704
+ Configuration
705
+ } from 'kleisterjs';
706
+
707
+ const configuration = new Configuration();
708
+ const apiInstance = new UserApi(configuration);
709
+
710
+ let search: string; //Search query (optional) (default to undefined)
711
+ let sort: string; //Sorting column (optional) (default to undefined)
712
+ let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
713
+ let limit: number; //Paging limit (optional) (default to 100)
714
+ let offset: number; //Paging offset (optional) (default to 0)
715
+
716
+ const { status, data } = await apiInstance.listUsers(
717
+ search,
718
+ sort,
719
+ order,
720
+ limit,
721
+ offset
722
+ );
723
+ ```
724
+
725
+ ### Parameters
726
+
727
+ |Name | Type | Description | Notes|
728
+ |------------- | ------------- | ------------- | -------------|
729
+ | **search** | [**string**] | Search query | (optional) defaults to undefined|
730
+ | **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
731
+ | **order** | [**&#39;asc&#39; | &#39;desc&#39;**]**Array<&#39;asc&#39; &#124; &#39;desc&#39;>** | Sorting order | (optional) defaults to 'asc'|
732
+ | **limit** | [**number**] | Paging limit | (optional) defaults to 100|
733
+ | **offset** | [**number**] | Paging offset | (optional) defaults to 0|
734
+
735
+
736
+ ### Return type
737
+
738
+ **ListUsers200Response**
739
+
740
+ ### Authorization
741
+
742
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
743
+
744
+ ### HTTP request headers
745
+
746
+ - **Content-Type**: Not defined
747
+ - **Accept**: application/json
748
+
749
+
750
+ ### HTTP response details
751
+ | Status code | Description | Response headers |
752
+ |-------------|-------------|------------------|
753
+ |**200** | A collection of users | - |
754
+ |**403** | User is not authorized | - |
755
+ |**500** | Some internal server error | - |
756
+
757
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
758
+
759
+ # **permitUserGroup**
760
+ > Notification permitUserGroup(permitPackGroupRequest)
761
+
762
+
763
+ ### Example
764
+
765
+ ```typescript
766
+ import {
767
+ UserApi,
768
+ Configuration,
769
+ PermitPackGroupRequest
770
+ } from 'kleisterjs';
771
+
772
+ const configuration = new Configuration();
773
+ const apiInstance = new UserApi(configuration);
774
+
775
+ let userId: string; //A user identifier or slug (default to undefined)
776
+ let permitPackGroupRequest: PermitPackGroupRequest; //The user group data to permit
777
+
778
+ const { status, data } = await apiInstance.permitUserGroup(
779
+ userId,
780
+ permitPackGroupRequest
781
+ );
782
+ ```
783
+
784
+ ### Parameters
785
+
786
+ |Name | Type | Description | Notes|
787
+ |------------- | ------------- | ------------- | -------------|
788
+ | **permitPackGroupRequest** | **PermitPackGroupRequest**| The user group data to permit | |
789
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
790
+
791
+
792
+ ### Return type
793
+
794
+ **Notification**
795
+
796
+ ### Authorization
797
+
798
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
799
+
800
+ ### HTTP request headers
801
+
802
+ - **Content-Type**: application/json
803
+ - **Accept**: application/json
804
+
805
+
806
+ ### HTTP response details
807
+ | Status code | Description | Response headers |
808
+ |-------------|-------------|------------------|
809
+ |**200** | Plain success message | - |
810
+ |**400** | Failed to parse request | - |
811
+ |**403** | User is not authorized | - |
812
+ |**404** | Resource not found | - |
813
+ |**412** | Resource is not attached | - |
814
+ |**422** | Failed to validate request | - |
815
+ |**500** | Some internal server error | - |
816
+
817
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
818
+
819
+ # **permitUserMod**
820
+ > Notification permitUserMod(permitGroupModRequest)
821
+
822
+
823
+ ### Example
824
+
825
+ ```typescript
826
+ import {
827
+ UserApi,
828
+ Configuration,
829
+ PermitGroupModRequest
830
+ } from 'kleisterjs';
831
+
832
+ const configuration = new Configuration();
833
+ const apiInstance = new UserApi(configuration);
834
+
835
+ let userId: string; //A user identifier or slug (default to undefined)
836
+ let permitGroupModRequest: PermitGroupModRequest; //The user mod data to permit
837
+
838
+ const { status, data } = await apiInstance.permitUserMod(
839
+ userId,
840
+ permitGroupModRequest
841
+ );
842
+ ```
843
+
844
+ ### Parameters
845
+
846
+ |Name | Type | Description | Notes|
847
+ |------------- | ------------- | ------------- | -------------|
848
+ | **permitGroupModRequest** | **PermitGroupModRequest**| The user mod data to permit | |
849
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
850
+
851
+
852
+ ### Return type
853
+
854
+ **Notification**
855
+
856
+ ### Authorization
857
+
858
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
859
+
860
+ ### HTTP request headers
861
+
862
+ - **Content-Type**: application/json
863
+ - **Accept**: application/json
864
+
865
+
866
+ ### HTTP response details
867
+ | Status code | Description | Response headers |
868
+ |-------------|-------------|------------------|
869
+ |**200** | Plain success message | - |
870
+ |**400** | Failed to parse request | - |
871
+ |**403** | User is not authorized | - |
872
+ |**404** | Resource not found | - |
873
+ |**412** | Resource is not attached | - |
874
+ |**422** | Failed to validate request | - |
875
+ |**500** | Some internal server error | - |
876
+
877
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
878
+
879
+ # **permitUserPack**
880
+ > Notification permitUserPack(permitGroupPackRequest)
881
+
882
+
883
+ ### Example
884
+
885
+ ```typescript
886
+ import {
887
+ UserApi,
888
+ Configuration,
889
+ PermitGroupPackRequest
890
+ } from 'kleisterjs';
891
+
892
+ const configuration = new Configuration();
893
+ const apiInstance = new UserApi(configuration);
894
+
895
+ let userId: string; //A user identifier or slug (default to undefined)
896
+ let permitGroupPackRequest: PermitGroupPackRequest; //The user pack data to permit
897
+
898
+ const { status, data } = await apiInstance.permitUserPack(
899
+ userId,
900
+ permitGroupPackRequest
901
+ );
902
+ ```
903
+
904
+ ### Parameters
905
+
906
+ |Name | Type | Description | Notes|
907
+ |------------- | ------------- | ------------- | -------------|
908
+ | **permitGroupPackRequest** | **PermitGroupPackRequest**| The user pack data to permit | |
909
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
910
+
911
+
912
+ ### Return type
913
+
914
+ **Notification**
915
+
916
+ ### Authorization
917
+
918
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
919
+
920
+ ### HTTP request headers
921
+
922
+ - **Content-Type**: application/json
923
+ - **Accept**: application/json
924
+
925
+
926
+ ### HTTP response details
927
+ | Status code | Description | Response headers |
928
+ |-------------|-------------|------------------|
929
+ |**200** | Plain success message | - |
930
+ |**400** | Failed to parse request | - |
931
+ |**403** | User is not authorized | - |
932
+ |**404** | Resource not found | - |
933
+ |**412** | Resource is not attached | - |
934
+ |**422** | Failed to validate request | - |
935
+ |**500** | Some internal server error | - |
936
+
937
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
938
+
939
+ # **showUser**
940
+ > User showUser()
941
+
942
+
943
+ ### Example
944
+
945
+ ```typescript
946
+ import {
947
+ UserApi,
948
+ Configuration
949
+ } from 'kleisterjs';
950
+
951
+ const configuration = new Configuration();
952
+ const apiInstance = new UserApi(configuration);
953
+
954
+ let userId: string; //A user identifier or slug (default to undefined)
955
+
956
+ const { status, data } = await apiInstance.showUser(
957
+ userId
958
+ );
959
+ ```
960
+
961
+ ### Parameters
962
+
963
+ |Name | Type | Description | Notes|
964
+ |------------- | ------------- | ------------- | -------------|
965
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
966
+
967
+
968
+ ### Return type
969
+
970
+ **User**
971
+
972
+ ### Authorization
973
+
974
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
975
+
976
+ ### HTTP request headers
977
+
978
+ - **Content-Type**: Not defined
979
+ - **Accept**: application/json
980
+
981
+
982
+ ### HTTP response details
983
+ | Status code | Description | Response headers |
984
+ |-------------|-------------|------------------|
985
+ |**200** | The details for an user | - |
986
+ |**403** | User is not authorized | - |
987
+ |**404** | Resource not found | - |
988
+ |**500** | Some internal server error | - |
989
+
990
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
991
+
992
+ # **updateUser**
993
+ > User updateUser(updateUserRequest)
994
+
995
+
996
+ ### Example
997
+
998
+ ```typescript
999
+ import {
1000
+ UserApi,
1001
+ Configuration,
1002
+ UpdateUserRequest
1003
+ } from 'kleisterjs';
1004
+
1005
+ const configuration = new Configuration();
1006
+ const apiInstance = new UserApi(configuration);
1007
+
1008
+ let userId: string; //A user identifier or slug (default to undefined)
1009
+ let updateUserRequest: UpdateUserRequest; //The user data to update
1010
+
1011
+ const { status, data } = await apiInstance.updateUser(
1012
+ userId,
1013
+ updateUserRequest
1014
+ );
1015
+ ```
1016
+
1017
+ ### Parameters
1018
+
1019
+ |Name | Type | Description | Notes|
1020
+ |------------- | ------------- | ------------- | -------------|
1021
+ | **updateUserRequest** | **UpdateUserRequest**| The user data to update | |
1022
+ | **userId** | [**string**] | A user identifier or slug | defaults to undefined|
1023
+
1024
+
1025
+ ### Return type
1026
+
1027
+ **User**
1028
+
1029
+ ### Authorization
1030
+
1031
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
1032
+
1033
+ ### HTTP request headers
1034
+
1035
+ - **Content-Type**: application/json
1036
+ - **Accept**: application/json
1037
+
1038
+
1039
+ ### HTTP response details
1040
+ | Status code | Description | Response headers |
1041
+ |-------------|-------------|------------------|
1042
+ |**200** | The details for an user | - |
1043
+ |**400** | Failed to parse request | - |
1044
+ |**403** | User is not authorized | - |
1045
+ |**404** | Resource not found | - |
1046
+ |**422** | Failed to validate request | - |
1047
+ |**500** | Some internal server error | - |
1048
+
1049
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1050
+