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.
- package/.codacy.yml +3 -0
- package/.github/RELEASE +1 -1
- package/.github/settings.yml +3 -0
- package/.openapi-generator/FILES +87 -0
- package/.openapi-generator/VERSION +1 -1
- package/CHANGELOG.md +15 -0
- package/README.md +2 -2
- package/docs/AttachBuildToVersionRequest.md +22 -0
- package/docs/AttachMinecraftToBuildRequest.md +22 -0
- package/docs/AuthApi.md +366 -0
- package/docs/AuthToken.md +22 -0
- package/docs/AuthVerify.md +22 -0
- package/docs/Build.md +59 -0
- package/docs/BuildVersion.md +31 -0
- package/docs/CreateBuildRequest.md +40 -0
- package/docs/CreateGroupRequest.md +22 -0
- package/docs/CreateModRequest.md +34 -0
- package/docs/CreatePackRequest.md +26 -0
- package/docs/CreateUserRequest.md +30 -0
- package/docs/CreateVersionRequest.md +24 -0
- package/docs/DeleteGroupFromModRequest.md +20 -0
- package/docs/DeleteGroupFromPackRequest.md +20 -0
- package/docs/DeletePackFromGroupRequest.md +20 -0
- package/docs/DeletePackFromUserRequest.md +20 -0
- package/docs/Fabric.md +27 -0
- package/docs/FabricApi.md +297 -0
- package/docs/Forge.md +29 -0
- package/docs/ForgeApi.md +297 -0
- package/docs/Group.md +29 -0
- package/docs/GroupApi.md +1050 -0
- package/docs/GroupMod.md +33 -0
- package/docs/GroupPack.md +33 -0
- package/docs/ListBuildVersions200Response.md +30 -0
- package/docs/ListBuilds200Response.md +28 -0
- package/docs/ListFabricBuilds200Response.md +28 -0
- package/docs/ListFabrics200Response.md +26 -0
- package/docs/ListForgeBuilds200Response.md +28 -0
- package/docs/ListForges200Response.md +26 -0
- package/docs/ListGroupMods200Response.md +28 -0
- package/docs/ListGroupPacks200Response.md +28 -0
- package/docs/ListGroupUsers200Response.md +28 -0
- package/docs/ListGroups200Response.md +26 -0
- package/docs/ListMinecraftBuilds200Response.md +28 -0
- package/docs/ListMinecrafts200Response.md +26 -0
- package/docs/ListModGroups200Response.md +28 -0
- package/docs/ListModUsers200Response.md +28 -0
- package/docs/ListMods200Response.md +26 -0
- package/docs/ListNeoforgeBuilds200Response.md +28 -0
- package/docs/ListNeoforges200Response.md +26 -0
- package/docs/ListPackGroups200Response.md +28 -0
- package/docs/ListPackUsers200Response.md +28 -0
- package/docs/ListPacks200Response.md +26 -0
- package/docs/ListProviders200Response.md +22 -0
- package/docs/ListQuiltBuilds200Response.md +28 -0
- package/docs/ListQuilts200Response.md +26 -0
- package/docs/ListUserGroups200Response.md +28 -0
- package/docs/ListUserMods200Response.md +28 -0
- package/docs/ListUserPacks200Response.md +28 -0
- package/docs/ListUsers200Response.md +26 -0
- package/docs/ListVersionBuilds200Response.md +30 -0
- package/docs/ListVersions200Response.md +28 -0
- package/docs/LoginAuthRequest.md +22 -0
- package/docs/Minecraft.md +29 -0
- package/docs/MinecraftApi.md +297 -0
- package/docs/Mod.md +43 -0
- package/docs/ModApi.md +1533 -0
- package/docs/ModAvatar.md +27 -0
- package/docs/Neoforge.md +27 -0
- package/docs/NeoforgeApi.md +297 -0
- package/docs/Notification.md +25 -0
- package/docs/Pack.md +35 -0
- package/docs/PackApi.md +1305 -0
- package/docs/PackAvatar.md +27 -0
- package/docs/PermitGroupModRequest.md +22 -0
- package/docs/PermitGroupPackRequest.md +22 -0
- package/docs/PermitPackGroupRequest.md +22 -0
- package/docs/PermitPackUserRequest.md +22 -0
- package/docs/Profile.md +47 -0
- package/docs/ProfileApi.md +155 -0
- package/docs/Provider.md +27 -0
- package/docs/Quilt.md +27 -0
- package/docs/QuiltApi.md +297 -0
- package/docs/RedirectAuthRequest.md +20 -0
- package/docs/UpdateProfileRequest.md +26 -0
- package/docs/UpdateUserRequest.md +30 -0
- package/docs/User.md +41 -0
- package/docs/UserApi.md +1050 -0
- package/docs/UserAuth.md +27 -0
- package/docs/UserGroup.md +33 -0
- package/docs/UserMod.md +33 -0
- package/docs/UserPack.md +33 -0
- package/docs/Validation.md +23 -0
- package/docs/Version.md +33 -0
- package/docs/VersionFile.md +33 -0
- package/flake.lock +9 -9
- package/openapi.yml +1 -1
- package/package.json +2 -2
package/docs/ModApi.md
ADDED
|
@@ -0,0 +1,1533 @@
|
|
|
1
|
+
# ModApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://try.kleister.eu/api/v1*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**attachModToGroup**](#attachmodtogroup) | **POST** /mods/{mod_id}/groups | Attach a group to mod|
|
|
8
|
+
|[**attachModToUser**](#attachmodtouser) | **POST** /mods/{mod_id}/users | Attach a user to mod|
|
|
9
|
+
|[**attachVersionToBuild**](#attachversiontobuild) | **POST** /mods/{mod_id}/versions/{version_id}/builds | Attach a build to a version|
|
|
10
|
+
|[**createMod**](#createmod) | **POST** /mods | Create a new mod|
|
|
11
|
+
|[**createModAvatar**](#createmodavatar) | **POST** /mods/{mod_id}/avatar | Upload an avatar for the defined mod|
|
|
12
|
+
|[**createPackAvatar**](#createpackavatar) | **POST** /packs/{pack_id}/avatar | Upload an avatar for the defined pack|
|
|
13
|
+
|[**createVersion**](#createversion) | **POST** /mods/{mod_id}/versions | Create a new version for a mod|
|
|
14
|
+
|[**deleteMod**](#deletemod) | **DELETE** /mods/{mod_id} | Delete a specific mod|
|
|
15
|
+
|[**deleteModAvatar**](#deletemodavatar) | **DELETE** /mods/{mod_id}/avatar | Delete the avatar for the defined mod|
|
|
16
|
+
|[**deleteModFromGroup**](#deletemodfromgroup) | **DELETE** /mods/{mod_id}/groups | Unlink a group from mod|
|
|
17
|
+
|[**deleteModFromUser**](#deletemodfromuser) | **DELETE** /mods/{mod_id}/users | Unlink a user from mod|
|
|
18
|
+
|[**deletePackAvatar**](#deletepackavatar) | **DELETE** /packs/{pack_id}/avatar | Delete the avatar for the defined pack|
|
|
19
|
+
|[**deleteVersion**](#deleteversion) | **DELETE** /mods/{mod_id}/versions/{version_id} | Delete a specific version for a mod|
|
|
20
|
+
|[**deleteVersionFromBuild**](#deleteversionfrombuild) | **DELETE** /mods/{mod_id}/versions/{version_id}/builds | Unlink a build from a version|
|
|
21
|
+
|[**listModGroups**](#listmodgroups) | **GET** /mods/{mod_id}/groups | Fetch all groups attached to mod|
|
|
22
|
+
|[**listModUsers**](#listmodusers) | **GET** /mods/{mod_id}/users | Fetch all users attached to mod|
|
|
23
|
+
|[**listMods**](#listmods) | **GET** /mods | Fetch all available mods|
|
|
24
|
+
|[**listVersionBuilds**](#listversionbuilds) | **GET** /mods/{mod_id}/versions/{version_id}/builds | Fetch all builds attached to version|
|
|
25
|
+
|[**listVersions**](#listversions) | **GET** /mods/{mod_id}/versions | Fetch all available versions for a mod|
|
|
26
|
+
|[**permitModGroup**](#permitmodgroup) | **PUT** /mods/{mod_id}/groups | Update group perms for mod|
|
|
27
|
+
|[**permitModUser**](#permitmoduser) | **PUT** /mods/{mod_id}/users | Update user perms for mod|
|
|
28
|
+
|[**showMod**](#showmod) | **GET** /mods/{mod_id} | Fetch a specific mod|
|
|
29
|
+
|[**showVersion**](#showversion) | **GET** /mods/{mod_id}/versions/{version_id} | Fetch a specific version for a mod|
|
|
30
|
+
|[**updateMod**](#updatemod) | **PUT** /mods/{mod_id} | Update a specific mod|
|
|
31
|
+
|[**updateVersion**](#updateversion) | **PUT** /mods/{mod_id}/versions/{version_id} | Update a specific version for a mod|
|
|
32
|
+
|
|
33
|
+
# **attachModToGroup**
|
|
34
|
+
> Notification attachModToGroup(permitPackGroupRequest)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Example
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import {
|
|
41
|
+
ModApi,
|
|
42
|
+
Configuration,
|
|
43
|
+
PermitPackGroupRequest
|
|
44
|
+
} from 'kleisterjs';
|
|
45
|
+
|
|
46
|
+
const configuration = new Configuration();
|
|
47
|
+
const apiInstance = new ModApi(configuration);
|
|
48
|
+
|
|
49
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
50
|
+
let permitPackGroupRequest: PermitPackGroupRequest; //The mod group data to permit
|
|
51
|
+
|
|
52
|
+
const { status, data } = await apiInstance.attachModToGroup(
|
|
53
|
+
modId,
|
|
54
|
+
permitPackGroupRequest
|
|
55
|
+
);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Parameters
|
|
59
|
+
|
|
60
|
+
|Name | Type | Description | Notes|
|
|
61
|
+
|------------- | ------------- | ------------- | -------------|
|
|
62
|
+
| **permitPackGroupRequest** | **PermitPackGroupRequest**| The mod group data to permit | |
|
|
63
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Return type
|
|
67
|
+
|
|
68
|
+
**Notification**
|
|
69
|
+
|
|
70
|
+
### Authorization
|
|
71
|
+
|
|
72
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
73
|
+
|
|
74
|
+
### HTTP request headers
|
|
75
|
+
|
|
76
|
+
- **Content-Type**: application/json
|
|
77
|
+
- **Accept**: application/json
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### HTTP response details
|
|
81
|
+
| Status code | Description | Response headers |
|
|
82
|
+
|-------------|-------------|------------------|
|
|
83
|
+
|**200** | Plain success message | - |
|
|
84
|
+
|**400** | Failed to parse request | - |
|
|
85
|
+
|**403** | User is not authorized | - |
|
|
86
|
+
|**404** | Resource not found | - |
|
|
87
|
+
|**412** | Resource is already attached | - |
|
|
88
|
+
|**422** | Failed to validate request | - |
|
|
89
|
+
|**500** | Some internal server error | - |
|
|
90
|
+
|
|
91
|
+
[[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)
|
|
92
|
+
|
|
93
|
+
# **attachModToUser**
|
|
94
|
+
> Notification attachModToUser(permitPackUserRequest)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Example
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
import {
|
|
101
|
+
ModApi,
|
|
102
|
+
Configuration,
|
|
103
|
+
PermitPackUserRequest
|
|
104
|
+
} from 'kleisterjs';
|
|
105
|
+
|
|
106
|
+
const configuration = new Configuration();
|
|
107
|
+
const apiInstance = new ModApi(configuration);
|
|
108
|
+
|
|
109
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
110
|
+
let permitPackUserRequest: PermitPackUserRequest; //The mod user data to permit
|
|
111
|
+
|
|
112
|
+
const { status, data } = await apiInstance.attachModToUser(
|
|
113
|
+
modId,
|
|
114
|
+
permitPackUserRequest
|
|
115
|
+
);
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Parameters
|
|
119
|
+
|
|
120
|
+
|Name | Type | Description | Notes|
|
|
121
|
+
|------------- | ------------- | ------------- | -------------|
|
|
122
|
+
| **permitPackUserRequest** | **PermitPackUserRequest**| The mod user data to permit | |
|
|
123
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Return type
|
|
127
|
+
|
|
128
|
+
**Notification**
|
|
129
|
+
|
|
130
|
+
### Authorization
|
|
131
|
+
|
|
132
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
133
|
+
|
|
134
|
+
### HTTP request headers
|
|
135
|
+
|
|
136
|
+
- **Content-Type**: application/json
|
|
137
|
+
- **Accept**: application/json
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### HTTP response details
|
|
141
|
+
| Status code | Description | Response headers |
|
|
142
|
+
|-------------|-------------|------------------|
|
|
143
|
+
|**200** | Plain success message | - |
|
|
144
|
+
|**400** | Failed to parse request | - |
|
|
145
|
+
|**403** | User is not authorized | - |
|
|
146
|
+
|**404** | Resource not found | - |
|
|
147
|
+
|**412** | Resource is already attached | - |
|
|
148
|
+
|**422** | Failed to validate request | - |
|
|
149
|
+
|**500** | Some internal server error | - |
|
|
150
|
+
|
|
151
|
+
[[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)
|
|
152
|
+
|
|
153
|
+
# **attachVersionToBuild**
|
|
154
|
+
> Notification attachVersionToBuild(attachMinecraftToBuildRequest)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### Example
|
|
158
|
+
|
|
159
|
+
```typescript
|
|
160
|
+
import {
|
|
161
|
+
ModApi,
|
|
162
|
+
Configuration,
|
|
163
|
+
AttachMinecraftToBuildRequest
|
|
164
|
+
} from 'kleisterjs';
|
|
165
|
+
|
|
166
|
+
const configuration = new Configuration();
|
|
167
|
+
const apiInstance = new ModApi(configuration);
|
|
168
|
+
|
|
169
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
170
|
+
let versionId: string; //A version identifier or slug (default to undefined)
|
|
171
|
+
let attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest; //The version build data to create or delete
|
|
172
|
+
|
|
173
|
+
const { status, data } = await apiInstance.attachVersionToBuild(
|
|
174
|
+
modId,
|
|
175
|
+
versionId,
|
|
176
|
+
attachMinecraftToBuildRequest
|
|
177
|
+
);
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Parameters
|
|
181
|
+
|
|
182
|
+
|Name | Type | Description | Notes|
|
|
183
|
+
|------------- | ------------- | ------------- | -------------|
|
|
184
|
+
| **attachMinecraftToBuildRequest** | **AttachMinecraftToBuildRequest**| The version build data to create or delete | |
|
|
185
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
186
|
+
| **versionId** | [**string**] | A version identifier or slug | defaults to undefined|
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Return type
|
|
190
|
+
|
|
191
|
+
**Notification**
|
|
192
|
+
|
|
193
|
+
### Authorization
|
|
194
|
+
|
|
195
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
196
|
+
|
|
197
|
+
### HTTP request headers
|
|
198
|
+
|
|
199
|
+
- **Content-Type**: application/json
|
|
200
|
+
- **Accept**: application/json
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### HTTP response details
|
|
204
|
+
| Status code | Description | Response headers |
|
|
205
|
+
|-------------|-------------|------------------|
|
|
206
|
+
|**200** | Plain success message | - |
|
|
207
|
+
|**400** | Failed to parse request | - |
|
|
208
|
+
|**403** | User is not authorized | - |
|
|
209
|
+
|**404** | Resource not found | - |
|
|
210
|
+
|**412** | Resource is already attached | - |
|
|
211
|
+
|**422** | Failed to validate request | - |
|
|
212
|
+
|**500** | Some internal server error | - |
|
|
213
|
+
|
|
214
|
+
[[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)
|
|
215
|
+
|
|
216
|
+
# **createMod**
|
|
217
|
+
> Mod createMod(createModRequest)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### Example
|
|
221
|
+
|
|
222
|
+
```typescript
|
|
223
|
+
import {
|
|
224
|
+
ModApi,
|
|
225
|
+
Configuration,
|
|
226
|
+
CreateModRequest
|
|
227
|
+
} from 'kleisterjs';
|
|
228
|
+
|
|
229
|
+
const configuration = new Configuration();
|
|
230
|
+
const apiInstance = new ModApi(configuration);
|
|
231
|
+
|
|
232
|
+
let createModRequest: CreateModRequest; //The mod data to create
|
|
233
|
+
|
|
234
|
+
const { status, data } = await apiInstance.createMod(
|
|
235
|
+
createModRequest
|
|
236
|
+
);
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Parameters
|
|
240
|
+
|
|
241
|
+
|Name | Type | Description | Notes|
|
|
242
|
+
|------------- | ------------- | ------------- | -------------|
|
|
243
|
+
| **createModRequest** | **CreateModRequest**| The mod data to create | |
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
### Return type
|
|
247
|
+
|
|
248
|
+
**Mod**
|
|
249
|
+
|
|
250
|
+
### Authorization
|
|
251
|
+
|
|
252
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
253
|
+
|
|
254
|
+
### HTTP request headers
|
|
255
|
+
|
|
256
|
+
- **Content-Type**: application/json
|
|
257
|
+
- **Accept**: application/json
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### HTTP response details
|
|
261
|
+
| Status code | Description | Response headers |
|
|
262
|
+
|-------------|-------------|------------------|
|
|
263
|
+
|**200** | The details for a mod | - |
|
|
264
|
+
|**400** | Failed to parse request | - |
|
|
265
|
+
|**403** | User is not authorized | - |
|
|
266
|
+
|**422** | Failed to validate request | - |
|
|
267
|
+
|**500** | Some internal server error | - |
|
|
268
|
+
|
|
269
|
+
[[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)
|
|
270
|
+
|
|
271
|
+
# **createModAvatar**
|
|
272
|
+
> ModAvatar createModAvatar()
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### Example
|
|
276
|
+
|
|
277
|
+
```typescript
|
|
278
|
+
import {
|
|
279
|
+
ModApi,
|
|
280
|
+
Configuration
|
|
281
|
+
} from 'kleisterjs';
|
|
282
|
+
|
|
283
|
+
const configuration = new Configuration();
|
|
284
|
+
const apiInstance = new ModApi(configuration);
|
|
285
|
+
|
|
286
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
287
|
+
let file: File; // (optional) (default to undefined)
|
|
288
|
+
|
|
289
|
+
const { status, data } = await apiInstance.createModAvatar(
|
|
290
|
+
modId,
|
|
291
|
+
file
|
|
292
|
+
);
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### Parameters
|
|
296
|
+
|
|
297
|
+
|Name | Type | Description | Notes|
|
|
298
|
+
|------------- | ------------- | ------------- | -------------|
|
|
299
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
300
|
+
| **file** | [**File**] | | (optional) defaults to undefined|
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
### Return type
|
|
304
|
+
|
|
305
|
+
**ModAvatar**
|
|
306
|
+
|
|
307
|
+
### Authorization
|
|
308
|
+
|
|
309
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
310
|
+
|
|
311
|
+
### HTTP request headers
|
|
312
|
+
|
|
313
|
+
- **Content-Type**: multipart/form-data
|
|
314
|
+
- **Accept**: application/json
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### HTTP response details
|
|
318
|
+
| Status code | Description | Response headers |
|
|
319
|
+
|-------------|-------------|------------------|
|
|
320
|
+
|**200** | The details for a mod avatar | - |
|
|
321
|
+
|**400** | Failed to parse request | - |
|
|
322
|
+
|**403** | User is not authorized | - |
|
|
323
|
+
|**404** | Resource not found | - |
|
|
324
|
+
|**422** | Failed to validate request | - |
|
|
325
|
+
|**500** | Some internal server error | - |
|
|
326
|
+
|
|
327
|
+
[[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)
|
|
328
|
+
|
|
329
|
+
# **createPackAvatar**
|
|
330
|
+
> PackAvatar createPackAvatar()
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
### Example
|
|
334
|
+
|
|
335
|
+
```typescript
|
|
336
|
+
import {
|
|
337
|
+
ModApi,
|
|
338
|
+
Configuration
|
|
339
|
+
} from 'kleisterjs';
|
|
340
|
+
|
|
341
|
+
const configuration = new Configuration();
|
|
342
|
+
const apiInstance = new ModApi(configuration);
|
|
343
|
+
|
|
344
|
+
let packId: string; //A pack identifier or slug (default to undefined)
|
|
345
|
+
let file: File; // (optional) (default to undefined)
|
|
346
|
+
|
|
347
|
+
const { status, data } = await apiInstance.createPackAvatar(
|
|
348
|
+
packId,
|
|
349
|
+
file
|
|
350
|
+
);
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### Parameters
|
|
354
|
+
|
|
355
|
+
|Name | Type | Description | Notes|
|
|
356
|
+
|------------- | ------------- | ------------- | -------------|
|
|
357
|
+
| **packId** | [**string**] | A pack identifier or slug | defaults to undefined|
|
|
358
|
+
| **file** | [**File**] | | (optional) defaults to undefined|
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
### Return type
|
|
362
|
+
|
|
363
|
+
**PackAvatar**
|
|
364
|
+
|
|
365
|
+
### Authorization
|
|
366
|
+
|
|
367
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
368
|
+
|
|
369
|
+
### HTTP request headers
|
|
370
|
+
|
|
371
|
+
- **Content-Type**: multipart/form-data
|
|
372
|
+
- **Accept**: application/json
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
### HTTP response details
|
|
376
|
+
| Status code | Description | Response headers |
|
|
377
|
+
|-------------|-------------|------------------|
|
|
378
|
+
|**200** | The details for a pack avatar | - |
|
|
379
|
+
|**400** | Failed to parse request | - |
|
|
380
|
+
|**403** | User is not authorized | - |
|
|
381
|
+
|**404** | Resource not found | - |
|
|
382
|
+
|**422** | Failed to validate request | - |
|
|
383
|
+
|**500** | Some internal server error | - |
|
|
384
|
+
|
|
385
|
+
[[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)
|
|
386
|
+
|
|
387
|
+
# **createVersion**
|
|
388
|
+
> Version createVersion(createVersionRequest)
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
### Example
|
|
392
|
+
|
|
393
|
+
```typescript
|
|
394
|
+
import {
|
|
395
|
+
ModApi,
|
|
396
|
+
Configuration,
|
|
397
|
+
CreateVersionRequest
|
|
398
|
+
} from 'kleisterjs';
|
|
399
|
+
|
|
400
|
+
const configuration = new Configuration();
|
|
401
|
+
const apiInstance = new ModApi(configuration);
|
|
402
|
+
|
|
403
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
404
|
+
let createVersionRequest: CreateVersionRequest; //The version data to create
|
|
405
|
+
|
|
406
|
+
const { status, data } = await apiInstance.createVersion(
|
|
407
|
+
modId,
|
|
408
|
+
createVersionRequest
|
|
409
|
+
);
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
### Parameters
|
|
413
|
+
|
|
414
|
+
|Name | Type | Description | Notes|
|
|
415
|
+
|------------- | ------------- | ------------- | -------------|
|
|
416
|
+
| **createVersionRequest** | **CreateVersionRequest**| The version data to create | |
|
|
417
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
### Return type
|
|
421
|
+
|
|
422
|
+
**Version**
|
|
423
|
+
|
|
424
|
+
### Authorization
|
|
425
|
+
|
|
426
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
427
|
+
|
|
428
|
+
### HTTP request headers
|
|
429
|
+
|
|
430
|
+
- **Content-Type**: application/json
|
|
431
|
+
- **Accept**: application/json
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
### HTTP response details
|
|
435
|
+
| Status code | Description | Response headers |
|
|
436
|
+
|-------------|-------------|------------------|
|
|
437
|
+
|**200** | The details for a version | - |
|
|
438
|
+
|**400** | Failed to parse request | - |
|
|
439
|
+
|**403** | User is not authorized | - |
|
|
440
|
+
|**404** | Resource not found | - |
|
|
441
|
+
|**422** | Failed to validate request | - |
|
|
442
|
+
|**500** | Some internal server error | - |
|
|
443
|
+
|
|
444
|
+
[[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)
|
|
445
|
+
|
|
446
|
+
# **deleteMod**
|
|
447
|
+
> Notification deleteMod()
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
### Example
|
|
451
|
+
|
|
452
|
+
```typescript
|
|
453
|
+
import {
|
|
454
|
+
ModApi,
|
|
455
|
+
Configuration
|
|
456
|
+
} from 'kleisterjs';
|
|
457
|
+
|
|
458
|
+
const configuration = new Configuration();
|
|
459
|
+
const apiInstance = new ModApi(configuration);
|
|
460
|
+
|
|
461
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
462
|
+
|
|
463
|
+
const { status, data } = await apiInstance.deleteMod(
|
|
464
|
+
modId
|
|
465
|
+
);
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
### Parameters
|
|
469
|
+
|
|
470
|
+
|Name | Type | Description | Notes|
|
|
471
|
+
|------------- | ------------- | ------------- | -------------|
|
|
472
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
### Return type
|
|
476
|
+
|
|
477
|
+
**Notification**
|
|
478
|
+
|
|
479
|
+
### Authorization
|
|
480
|
+
|
|
481
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
482
|
+
|
|
483
|
+
### HTTP request headers
|
|
484
|
+
|
|
485
|
+
- **Content-Type**: Not defined
|
|
486
|
+
- **Accept**: application/json
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
### HTTP response details
|
|
490
|
+
| Status code | Description | Response headers |
|
|
491
|
+
|-------------|-------------|------------------|
|
|
492
|
+
|**200** | Plain success message | - |
|
|
493
|
+
|**403** | User is not authorized | - |
|
|
494
|
+
|**404** | Resource not found | - |
|
|
495
|
+
|**400** | Failed to execute action for resource | - |
|
|
496
|
+
|**500** | Some internal server error | - |
|
|
497
|
+
|
|
498
|
+
[[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)
|
|
499
|
+
|
|
500
|
+
# **deleteModAvatar**
|
|
501
|
+
> ModAvatar deleteModAvatar()
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
### Example
|
|
505
|
+
|
|
506
|
+
```typescript
|
|
507
|
+
import {
|
|
508
|
+
ModApi,
|
|
509
|
+
Configuration
|
|
510
|
+
} from 'kleisterjs';
|
|
511
|
+
|
|
512
|
+
const configuration = new Configuration();
|
|
513
|
+
const apiInstance = new ModApi(configuration);
|
|
514
|
+
|
|
515
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
516
|
+
|
|
517
|
+
const { status, data } = await apiInstance.deleteModAvatar(
|
|
518
|
+
modId
|
|
519
|
+
);
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
### Parameters
|
|
523
|
+
|
|
524
|
+
|Name | Type | Description | Notes|
|
|
525
|
+
|------------- | ------------- | ------------- | -------------|
|
|
526
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
### Return type
|
|
530
|
+
|
|
531
|
+
**ModAvatar**
|
|
532
|
+
|
|
533
|
+
### Authorization
|
|
534
|
+
|
|
535
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
536
|
+
|
|
537
|
+
### HTTP request headers
|
|
538
|
+
|
|
539
|
+
- **Content-Type**: Not defined
|
|
540
|
+
- **Accept**: application/json
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
### HTTP response details
|
|
544
|
+
| Status code | Description | Response headers |
|
|
545
|
+
|-------------|-------------|------------------|
|
|
546
|
+
|**200** | The details for a mod avatar | - |
|
|
547
|
+
|**403** | User is not authorized | - |
|
|
548
|
+
|**404** | Resource not found | - |
|
|
549
|
+
|**400** | Failed to execute action for resource | - |
|
|
550
|
+
|**500** | Some internal server error | - |
|
|
551
|
+
|
|
552
|
+
[[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)
|
|
553
|
+
|
|
554
|
+
# **deleteModFromGroup**
|
|
555
|
+
> Notification deleteModFromGroup(deletePackFromGroupRequest)
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
### Example
|
|
559
|
+
|
|
560
|
+
```typescript
|
|
561
|
+
import {
|
|
562
|
+
ModApi,
|
|
563
|
+
Configuration,
|
|
564
|
+
DeletePackFromGroupRequest
|
|
565
|
+
} from 'kleisterjs';
|
|
566
|
+
|
|
567
|
+
const configuration = new Configuration();
|
|
568
|
+
const apiInstance = new ModApi(configuration);
|
|
569
|
+
|
|
570
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
571
|
+
let deletePackFromGroupRequest: DeletePackFromGroupRequest; //The mod group data to unlink
|
|
572
|
+
|
|
573
|
+
const { status, data } = await apiInstance.deleteModFromGroup(
|
|
574
|
+
modId,
|
|
575
|
+
deletePackFromGroupRequest
|
|
576
|
+
);
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
### Parameters
|
|
580
|
+
|
|
581
|
+
|Name | Type | Description | Notes|
|
|
582
|
+
|------------- | ------------- | ------------- | -------------|
|
|
583
|
+
| **deletePackFromGroupRequest** | **DeletePackFromGroupRequest**| The mod group data to unlink | |
|
|
584
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
### Return type
|
|
588
|
+
|
|
589
|
+
**Notification**
|
|
590
|
+
|
|
591
|
+
### Authorization
|
|
592
|
+
|
|
593
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
594
|
+
|
|
595
|
+
### HTTP request headers
|
|
596
|
+
|
|
597
|
+
- **Content-Type**: application/json
|
|
598
|
+
- **Accept**: application/json
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
### HTTP response details
|
|
602
|
+
| Status code | Description | Response headers |
|
|
603
|
+
|-------------|-------------|------------------|
|
|
604
|
+
|**200** | Plain success message | - |
|
|
605
|
+
|**400** | Failed to parse request | - |
|
|
606
|
+
|**403** | User is not authorized | - |
|
|
607
|
+
|**404** | Resource not found | - |
|
|
608
|
+
|**412** | Resource is not attached | - |
|
|
609
|
+
|**500** | Some internal server error | - |
|
|
610
|
+
|
|
611
|
+
[[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)
|
|
612
|
+
|
|
613
|
+
# **deleteModFromUser**
|
|
614
|
+
> Notification deleteModFromUser(deletePackFromUserRequest)
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
### Example
|
|
618
|
+
|
|
619
|
+
```typescript
|
|
620
|
+
import {
|
|
621
|
+
ModApi,
|
|
622
|
+
Configuration,
|
|
623
|
+
DeletePackFromUserRequest
|
|
624
|
+
} from 'kleisterjs';
|
|
625
|
+
|
|
626
|
+
const configuration = new Configuration();
|
|
627
|
+
const apiInstance = new ModApi(configuration);
|
|
628
|
+
|
|
629
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
630
|
+
let deletePackFromUserRequest: DeletePackFromUserRequest; //The mod user data to unlink
|
|
631
|
+
|
|
632
|
+
const { status, data } = await apiInstance.deleteModFromUser(
|
|
633
|
+
modId,
|
|
634
|
+
deletePackFromUserRequest
|
|
635
|
+
);
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
### Parameters
|
|
639
|
+
|
|
640
|
+
|Name | Type | Description | Notes|
|
|
641
|
+
|------------- | ------------- | ------------- | -------------|
|
|
642
|
+
| **deletePackFromUserRequest** | **DeletePackFromUserRequest**| The mod user data to unlink | |
|
|
643
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
### Return type
|
|
647
|
+
|
|
648
|
+
**Notification**
|
|
649
|
+
|
|
650
|
+
### Authorization
|
|
651
|
+
|
|
652
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
653
|
+
|
|
654
|
+
### HTTP request headers
|
|
655
|
+
|
|
656
|
+
- **Content-Type**: application/json
|
|
657
|
+
- **Accept**: application/json
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
### HTTP response details
|
|
661
|
+
| Status code | Description | Response headers |
|
|
662
|
+
|-------------|-------------|------------------|
|
|
663
|
+
|**200** | Plain success message | - |
|
|
664
|
+
|**400** | Failed to parse request | - |
|
|
665
|
+
|**403** | User is not authorized | - |
|
|
666
|
+
|**404** | Resource not found | - |
|
|
667
|
+
|**412** | Resource is not attached | - |
|
|
668
|
+
|**500** | Some internal server error | - |
|
|
669
|
+
|
|
670
|
+
[[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)
|
|
671
|
+
|
|
672
|
+
# **deletePackAvatar**
|
|
673
|
+
> PackAvatar deletePackAvatar()
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
### Example
|
|
677
|
+
|
|
678
|
+
```typescript
|
|
679
|
+
import {
|
|
680
|
+
ModApi,
|
|
681
|
+
Configuration
|
|
682
|
+
} from 'kleisterjs';
|
|
683
|
+
|
|
684
|
+
const configuration = new Configuration();
|
|
685
|
+
const apiInstance = new ModApi(configuration);
|
|
686
|
+
|
|
687
|
+
let packId: string; //A pack identifier or slug (default to undefined)
|
|
688
|
+
|
|
689
|
+
const { status, data } = await apiInstance.deletePackAvatar(
|
|
690
|
+
packId
|
|
691
|
+
);
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
### Parameters
|
|
695
|
+
|
|
696
|
+
|Name | Type | Description | Notes|
|
|
697
|
+
|------------- | ------------- | ------------- | -------------|
|
|
698
|
+
| **packId** | [**string**] | A pack identifier or slug | defaults to undefined|
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
### Return type
|
|
702
|
+
|
|
703
|
+
**PackAvatar**
|
|
704
|
+
|
|
705
|
+
### Authorization
|
|
706
|
+
|
|
707
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
708
|
+
|
|
709
|
+
### HTTP request headers
|
|
710
|
+
|
|
711
|
+
- **Content-Type**: Not defined
|
|
712
|
+
- **Accept**: application/json
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
### HTTP response details
|
|
716
|
+
| Status code | Description | Response headers |
|
|
717
|
+
|-------------|-------------|------------------|
|
|
718
|
+
|**200** | The details for a pack avatar | - |
|
|
719
|
+
|**403** | User is not authorized | - |
|
|
720
|
+
|**404** | Resource not found | - |
|
|
721
|
+
|**400** | Failed to execute action for resource | - |
|
|
722
|
+
|**500** | Some internal server error | - |
|
|
723
|
+
|
|
724
|
+
[[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)
|
|
725
|
+
|
|
726
|
+
# **deleteVersion**
|
|
727
|
+
> Notification deleteVersion()
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
### Example
|
|
731
|
+
|
|
732
|
+
```typescript
|
|
733
|
+
import {
|
|
734
|
+
ModApi,
|
|
735
|
+
Configuration
|
|
736
|
+
} from 'kleisterjs';
|
|
737
|
+
|
|
738
|
+
const configuration = new Configuration();
|
|
739
|
+
const apiInstance = new ModApi(configuration);
|
|
740
|
+
|
|
741
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
742
|
+
let versionId: string; //A version identifier or slug (default to undefined)
|
|
743
|
+
|
|
744
|
+
const { status, data } = await apiInstance.deleteVersion(
|
|
745
|
+
modId,
|
|
746
|
+
versionId
|
|
747
|
+
);
|
|
748
|
+
```
|
|
749
|
+
|
|
750
|
+
### Parameters
|
|
751
|
+
|
|
752
|
+
|Name | Type | Description | Notes|
|
|
753
|
+
|------------- | ------------- | ------------- | -------------|
|
|
754
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
755
|
+
| **versionId** | [**string**] | A version identifier or slug | defaults to undefined|
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
### Return type
|
|
759
|
+
|
|
760
|
+
**Notification**
|
|
761
|
+
|
|
762
|
+
### Authorization
|
|
763
|
+
|
|
764
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
765
|
+
|
|
766
|
+
### HTTP request headers
|
|
767
|
+
|
|
768
|
+
- **Content-Type**: Not defined
|
|
769
|
+
- **Accept**: application/json
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
### HTTP response details
|
|
773
|
+
| Status code | Description | Response headers |
|
|
774
|
+
|-------------|-------------|------------------|
|
|
775
|
+
|**200** | Plain success message | - |
|
|
776
|
+
|**403** | User is not authorized | - |
|
|
777
|
+
|**404** | Resource not found | - |
|
|
778
|
+
|**400** | Failed to execute action for resource | - |
|
|
779
|
+
|**500** | Some internal server error | - |
|
|
780
|
+
|
|
781
|
+
[[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)
|
|
782
|
+
|
|
783
|
+
# **deleteVersionFromBuild**
|
|
784
|
+
> Notification deleteVersionFromBuild(attachMinecraftToBuildRequest)
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
### Example
|
|
788
|
+
|
|
789
|
+
```typescript
|
|
790
|
+
import {
|
|
791
|
+
ModApi,
|
|
792
|
+
Configuration,
|
|
793
|
+
AttachMinecraftToBuildRequest
|
|
794
|
+
} from 'kleisterjs';
|
|
795
|
+
|
|
796
|
+
const configuration = new Configuration();
|
|
797
|
+
const apiInstance = new ModApi(configuration);
|
|
798
|
+
|
|
799
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
800
|
+
let versionId: string; //A version identifier or slug (default to undefined)
|
|
801
|
+
let attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest; //The version build data to create or delete
|
|
802
|
+
|
|
803
|
+
const { status, data } = await apiInstance.deleteVersionFromBuild(
|
|
804
|
+
modId,
|
|
805
|
+
versionId,
|
|
806
|
+
attachMinecraftToBuildRequest
|
|
807
|
+
);
|
|
808
|
+
```
|
|
809
|
+
|
|
810
|
+
### Parameters
|
|
811
|
+
|
|
812
|
+
|Name | Type | Description | Notes|
|
|
813
|
+
|------------- | ------------- | ------------- | -------------|
|
|
814
|
+
| **attachMinecraftToBuildRequest** | **AttachMinecraftToBuildRequest**| The version build data to create or delete | |
|
|
815
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
816
|
+
| **versionId** | [**string**] | A version identifier or slug | defaults to undefined|
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
### Return type
|
|
820
|
+
|
|
821
|
+
**Notification**
|
|
822
|
+
|
|
823
|
+
### Authorization
|
|
824
|
+
|
|
825
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
826
|
+
|
|
827
|
+
### HTTP request headers
|
|
828
|
+
|
|
829
|
+
- **Content-Type**: application/json
|
|
830
|
+
- **Accept**: application/json
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
### HTTP response details
|
|
834
|
+
| Status code | Description | Response headers |
|
|
835
|
+
|-------------|-------------|------------------|
|
|
836
|
+
|**200** | Plain success message | - |
|
|
837
|
+
|**400** | Failed to parse request | - |
|
|
838
|
+
|**403** | User is not authorized | - |
|
|
839
|
+
|**404** | Resource not found | - |
|
|
840
|
+
|**412** | Resource is not attached | - |
|
|
841
|
+
|**500** | Some internal server error | - |
|
|
842
|
+
|
|
843
|
+
[[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)
|
|
844
|
+
|
|
845
|
+
# **listModGroups**
|
|
846
|
+
> ListModGroups200Response listModGroups()
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
### Example
|
|
850
|
+
|
|
851
|
+
```typescript
|
|
852
|
+
import {
|
|
853
|
+
ModApi,
|
|
854
|
+
Configuration
|
|
855
|
+
} from 'kleisterjs';
|
|
856
|
+
|
|
857
|
+
const configuration = new Configuration();
|
|
858
|
+
const apiInstance = new ModApi(configuration);
|
|
859
|
+
|
|
860
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
861
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
862
|
+
let sort: string; //Sorting column (optional) (default to undefined)
|
|
863
|
+
let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
|
|
864
|
+
let limit: number; //Paging limit (optional) (default to 100)
|
|
865
|
+
let offset: number; //Paging offset (optional) (default to 0)
|
|
866
|
+
|
|
867
|
+
const { status, data } = await apiInstance.listModGroups(
|
|
868
|
+
modId,
|
|
869
|
+
search,
|
|
870
|
+
sort,
|
|
871
|
+
order,
|
|
872
|
+
limit,
|
|
873
|
+
offset
|
|
874
|
+
);
|
|
875
|
+
```
|
|
876
|
+
|
|
877
|
+
### Parameters
|
|
878
|
+
|
|
879
|
+
|Name | Type | Description | Notes|
|
|
880
|
+
|------------- | ------------- | ------------- | -------------|
|
|
881
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
882
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
883
|
+
| **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
|
|
884
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | Sorting order | (optional) defaults to 'asc'|
|
|
885
|
+
| **limit** | [**number**] | Paging limit | (optional) defaults to 100|
|
|
886
|
+
| **offset** | [**number**] | Paging offset | (optional) defaults to 0|
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
### Return type
|
|
890
|
+
|
|
891
|
+
**ListModGroups200Response**
|
|
892
|
+
|
|
893
|
+
### Authorization
|
|
894
|
+
|
|
895
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
896
|
+
|
|
897
|
+
### HTTP request headers
|
|
898
|
+
|
|
899
|
+
- **Content-Type**: Not defined
|
|
900
|
+
- **Accept**: application/json
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
### HTTP response details
|
|
904
|
+
| Status code | Description | Response headers |
|
|
905
|
+
|-------------|-------------|------------------|
|
|
906
|
+
|**200** | A collection of mod groups | - |
|
|
907
|
+
|**403** | User is not authorized | - |
|
|
908
|
+
|**404** | Resource not found | - |
|
|
909
|
+
|**500** | Some internal server error | - |
|
|
910
|
+
|
|
911
|
+
[[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)
|
|
912
|
+
|
|
913
|
+
# **listModUsers**
|
|
914
|
+
> ListModUsers200Response listModUsers()
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
### Example
|
|
918
|
+
|
|
919
|
+
```typescript
|
|
920
|
+
import {
|
|
921
|
+
ModApi,
|
|
922
|
+
Configuration
|
|
923
|
+
} from 'kleisterjs';
|
|
924
|
+
|
|
925
|
+
const configuration = new Configuration();
|
|
926
|
+
const apiInstance = new ModApi(configuration);
|
|
927
|
+
|
|
928
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
929
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
930
|
+
let sort: string; //Sorting column (optional) (default to undefined)
|
|
931
|
+
let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
|
|
932
|
+
let limit: number; //Paging limit (optional) (default to 100)
|
|
933
|
+
let offset: number; //Paging offset (optional) (default to 0)
|
|
934
|
+
|
|
935
|
+
const { status, data } = await apiInstance.listModUsers(
|
|
936
|
+
modId,
|
|
937
|
+
search,
|
|
938
|
+
sort,
|
|
939
|
+
order,
|
|
940
|
+
limit,
|
|
941
|
+
offset
|
|
942
|
+
);
|
|
943
|
+
```
|
|
944
|
+
|
|
945
|
+
### Parameters
|
|
946
|
+
|
|
947
|
+
|Name | Type | Description | Notes|
|
|
948
|
+
|------------- | ------------- | ------------- | -------------|
|
|
949
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
950
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
951
|
+
| **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
|
|
952
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | Sorting order | (optional) defaults to 'asc'|
|
|
953
|
+
| **limit** | [**number**] | Paging limit | (optional) defaults to 100|
|
|
954
|
+
| **offset** | [**number**] | Paging offset | (optional) defaults to 0|
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
### Return type
|
|
958
|
+
|
|
959
|
+
**ListModUsers200Response**
|
|
960
|
+
|
|
961
|
+
### Authorization
|
|
962
|
+
|
|
963
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
964
|
+
|
|
965
|
+
### HTTP request headers
|
|
966
|
+
|
|
967
|
+
- **Content-Type**: Not defined
|
|
968
|
+
- **Accept**: application/json
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
### HTTP response details
|
|
972
|
+
| Status code | Description | Response headers |
|
|
973
|
+
|-------------|-------------|------------------|
|
|
974
|
+
|**200** | A collection of mod users | - |
|
|
975
|
+
|**403** | User is not authorized | - |
|
|
976
|
+
|**404** | Resource not found | - |
|
|
977
|
+
|**500** | Some internal server error | - |
|
|
978
|
+
|
|
979
|
+
[[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)
|
|
980
|
+
|
|
981
|
+
# **listMods**
|
|
982
|
+
> ListMods200Response listMods()
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
### Example
|
|
986
|
+
|
|
987
|
+
```typescript
|
|
988
|
+
import {
|
|
989
|
+
ModApi,
|
|
990
|
+
Configuration
|
|
991
|
+
} from 'kleisterjs';
|
|
992
|
+
|
|
993
|
+
const configuration = new Configuration();
|
|
994
|
+
const apiInstance = new ModApi(configuration);
|
|
995
|
+
|
|
996
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
997
|
+
let sort: string; //Sorting column (optional) (default to undefined)
|
|
998
|
+
let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
|
|
999
|
+
let limit: number; //Paging limit (optional) (default to 100)
|
|
1000
|
+
let offset: number; //Paging offset (optional) (default to 0)
|
|
1001
|
+
|
|
1002
|
+
const { status, data } = await apiInstance.listMods(
|
|
1003
|
+
search,
|
|
1004
|
+
sort,
|
|
1005
|
+
order,
|
|
1006
|
+
limit,
|
|
1007
|
+
offset
|
|
1008
|
+
);
|
|
1009
|
+
```
|
|
1010
|
+
|
|
1011
|
+
### Parameters
|
|
1012
|
+
|
|
1013
|
+
|Name | Type | Description | Notes|
|
|
1014
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1015
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
1016
|
+
| **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
|
|
1017
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | Sorting order | (optional) defaults to 'asc'|
|
|
1018
|
+
| **limit** | [**number**] | Paging limit | (optional) defaults to 100|
|
|
1019
|
+
| **offset** | [**number**] | Paging offset | (optional) defaults to 0|
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
### Return type
|
|
1023
|
+
|
|
1024
|
+
**ListMods200Response**
|
|
1025
|
+
|
|
1026
|
+
### Authorization
|
|
1027
|
+
|
|
1028
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
1029
|
+
|
|
1030
|
+
### HTTP request headers
|
|
1031
|
+
|
|
1032
|
+
- **Content-Type**: Not defined
|
|
1033
|
+
- **Accept**: application/json
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
### HTTP response details
|
|
1037
|
+
| Status code | Description | Response headers |
|
|
1038
|
+
|-------------|-------------|------------------|
|
|
1039
|
+
|**200** | A collection of mods | - |
|
|
1040
|
+
|**403** | User is not authorized | - |
|
|
1041
|
+
|**500** | Some internal server error | - |
|
|
1042
|
+
|
|
1043
|
+
[[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)
|
|
1044
|
+
|
|
1045
|
+
# **listVersionBuilds**
|
|
1046
|
+
> ListVersionBuilds200Response listVersionBuilds()
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
### Example
|
|
1050
|
+
|
|
1051
|
+
```typescript
|
|
1052
|
+
import {
|
|
1053
|
+
ModApi,
|
|
1054
|
+
Configuration
|
|
1055
|
+
} from 'kleisterjs';
|
|
1056
|
+
|
|
1057
|
+
const configuration = new Configuration();
|
|
1058
|
+
const apiInstance = new ModApi(configuration);
|
|
1059
|
+
|
|
1060
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
1061
|
+
let versionId: string; //A version identifier or slug (default to undefined)
|
|
1062
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
1063
|
+
let sort: string; //Sorting column (optional) (default to undefined)
|
|
1064
|
+
let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
|
|
1065
|
+
let limit: number; //Paging limit (optional) (default to 100)
|
|
1066
|
+
let offset: number; //Paging offset (optional) (default to 0)
|
|
1067
|
+
|
|
1068
|
+
const { status, data } = await apiInstance.listVersionBuilds(
|
|
1069
|
+
modId,
|
|
1070
|
+
versionId,
|
|
1071
|
+
search,
|
|
1072
|
+
sort,
|
|
1073
|
+
order,
|
|
1074
|
+
limit,
|
|
1075
|
+
offset
|
|
1076
|
+
);
|
|
1077
|
+
```
|
|
1078
|
+
|
|
1079
|
+
### Parameters
|
|
1080
|
+
|
|
1081
|
+
|Name | Type | Description | Notes|
|
|
1082
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1083
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
1084
|
+
| **versionId** | [**string**] | A version identifier or slug | defaults to undefined|
|
|
1085
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
1086
|
+
| **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
|
|
1087
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | Sorting order | (optional) defaults to 'asc'|
|
|
1088
|
+
| **limit** | [**number**] | Paging limit | (optional) defaults to 100|
|
|
1089
|
+
| **offset** | [**number**] | Paging offset | (optional) defaults to 0|
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
### Return type
|
|
1093
|
+
|
|
1094
|
+
**ListVersionBuilds200Response**
|
|
1095
|
+
|
|
1096
|
+
### Authorization
|
|
1097
|
+
|
|
1098
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
1099
|
+
|
|
1100
|
+
### HTTP request headers
|
|
1101
|
+
|
|
1102
|
+
- **Content-Type**: Not defined
|
|
1103
|
+
- **Accept**: application/json
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
### HTTP response details
|
|
1107
|
+
| Status code | Description | Response headers |
|
|
1108
|
+
|-------------|-------------|------------------|
|
|
1109
|
+
|**200** | A collection of version builds | - |
|
|
1110
|
+
|**403** | User is not authorized | - |
|
|
1111
|
+
|**404** | Resource not found | - |
|
|
1112
|
+
|**500** | Some internal server error | - |
|
|
1113
|
+
|
|
1114
|
+
[[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)
|
|
1115
|
+
|
|
1116
|
+
# **listVersions**
|
|
1117
|
+
> ListVersions200Response listVersions()
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
### Example
|
|
1121
|
+
|
|
1122
|
+
```typescript
|
|
1123
|
+
import {
|
|
1124
|
+
ModApi,
|
|
1125
|
+
Configuration
|
|
1126
|
+
} from 'kleisterjs';
|
|
1127
|
+
|
|
1128
|
+
const configuration = new Configuration();
|
|
1129
|
+
const apiInstance = new ModApi(configuration);
|
|
1130
|
+
|
|
1131
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
1132
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
1133
|
+
let sort: string; //Sorting column (optional) (default to undefined)
|
|
1134
|
+
let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
|
|
1135
|
+
let limit: number; //Paging limit (optional) (default to 100)
|
|
1136
|
+
let offset: number; //Paging offset (optional) (default to 0)
|
|
1137
|
+
|
|
1138
|
+
const { status, data } = await apiInstance.listVersions(
|
|
1139
|
+
modId,
|
|
1140
|
+
search,
|
|
1141
|
+
sort,
|
|
1142
|
+
order,
|
|
1143
|
+
limit,
|
|
1144
|
+
offset
|
|
1145
|
+
);
|
|
1146
|
+
```
|
|
1147
|
+
|
|
1148
|
+
### Parameters
|
|
1149
|
+
|
|
1150
|
+
|Name | Type | Description | Notes|
|
|
1151
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1152
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
1153
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
1154
|
+
| **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
|
|
1155
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | Sorting order | (optional) defaults to 'asc'|
|
|
1156
|
+
| **limit** | [**number**] | Paging limit | (optional) defaults to 100|
|
|
1157
|
+
| **offset** | [**number**] | Paging offset | (optional) defaults to 0|
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
### Return type
|
|
1161
|
+
|
|
1162
|
+
**ListVersions200Response**
|
|
1163
|
+
|
|
1164
|
+
### Authorization
|
|
1165
|
+
|
|
1166
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
1167
|
+
|
|
1168
|
+
### HTTP request headers
|
|
1169
|
+
|
|
1170
|
+
- **Content-Type**: Not defined
|
|
1171
|
+
- **Accept**: application/json
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
### HTTP response details
|
|
1175
|
+
| Status code | Description | Response headers |
|
|
1176
|
+
|-------------|-------------|------------------|
|
|
1177
|
+
|**200** | A collection of version | - |
|
|
1178
|
+
|**403** | User is not authorized | - |
|
|
1179
|
+
|**404** | Resource not found | - |
|
|
1180
|
+
|**500** | Some internal server error | - |
|
|
1181
|
+
|
|
1182
|
+
[[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)
|
|
1183
|
+
|
|
1184
|
+
# **permitModGroup**
|
|
1185
|
+
> Notification permitModGroup(permitPackGroupRequest)
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
### Example
|
|
1189
|
+
|
|
1190
|
+
```typescript
|
|
1191
|
+
import {
|
|
1192
|
+
ModApi,
|
|
1193
|
+
Configuration,
|
|
1194
|
+
PermitPackGroupRequest
|
|
1195
|
+
} from 'kleisterjs';
|
|
1196
|
+
|
|
1197
|
+
const configuration = new Configuration();
|
|
1198
|
+
const apiInstance = new ModApi(configuration);
|
|
1199
|
+
|
|
1200
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
1201
|
+
let permitPackGroupRequest: PermitPackGroupRequest; //The mod group data to permit
|
|
1202
|
+
|
|
1203
|
+
const { status, data } = await apiInstance.permitModGroup(
|
|
1204
|
+
modId,
|
|
1205
|
+
permitPackGroupRequest
|
|
1206
|
+
);
|
|
1207
|
+
```
|
|
1208
|
+
|
|
1209
|
+
### Parameters
|
|
1210
|
+
|
|
1211
|
+
|Name | Type | Description | Notes|
|
|
1212
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1213
|
+
| **permitPackGroupRequest** | **PermitPackGroupRequest**| The mod group data to permit | |
|
|
1214
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
### Return type
|
|
1218
|
+
|
|
1219
|
+
**Notification**
|
|
1220
|
+
|
|
1221
|
+
### Authorization
|
|
1222
|
+
|
|
1223
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
1224
|
+
|
|
1225
|
+
### HTTP request headers
|
|
1226
|
+
|
|
1227
|
+
- **Content-Type**: application/json
|
|
1228
|
+
- **Accept**: application/json
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
### HTTP response details
|
|
1232
|
+
| Status code | Description | Response headers |
|
|
1233
|
+
|-------------|-------------|------------------|
|
|
1234
|
+
|**200** | Plain success message | - |
|
|
1235
|
+
|**400** | Failed to parse request | - |
|
|
1236
|
+
|**403** | User is not authorized | - |
|
|
1237
|
+
|**404** | Resource not found | - |
|
|
1238
|
+
|**412** | Resource is not attached | - |
|
|
1239
|
+
|**422** | Failed to validate request | - |
|
|
1240
|
+
|**500** | Some internal server error | - |
|
|
1241
|
+
|
|
1242
|
+
[[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)
|
|
1243
|
+
|
|
1244
|
+
# **permitModUser**
|
|
1245
|
+
> Notification permitModUser(permitPackUserRequest)
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
### Example
|
|
1249
|
+
|
|
1250
|
+
```typescript
|
|
1251
|
+
import {
|
|
1252
|
+
ModApi,
|
|
1253
|
+
Configuration,
|
|
1254
|
+
PermitPackUserRequest
|
|
1255
|
+
} from 'kleisterjs';
|
|
1256
|
+
|
|
1257
|
+
const configuration = new Configuration();
|
|
1258
|
+
const apiInstance = new ModApi(configuration);
|
|
1259
|
+
|
|
1260
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
1261
|
+
let permitPackUserRequest: PermitPackUserRequest; //The mod user data to permit
|
|
1262
|
+
|
|
1263
|
+
const { status, data } = await apiInstance.permitModUser(
|
|
1264
|
+
modId,
|
|
1265
|
+
permitPackUserRequest
|
|
1266
|
+
);
|
|
1267
|
+
```
|
|
1268
|
+
|
|
1269
|
+
### Parameters
|
|
1270
|
+
|
|
1271
|
+
|Name | Type | Description | Notes|
|
|
1272
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1273
|
+
| **permitPackUserRequest** | **PermitPackUserRequest**| The mod user data to permit | |
|
|
1274
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
### Return type
|
|
1278
|
+
|
|
1279
|
+
**Notification**
|
|
1280
|
+
|
|
1281
|
+
### Authorization
|
|
1282
|
+
|
|
1283
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
1284
|
+
|
|
1285
|
+
### HTTP request headers
|
|
1286
|
+
|
|
1287
|
+
- **Content-Type**: application/json
|
|
1288
|
+
- **Accept**: application/json
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
### HTTP response details
|
|
1292
|
+
| Status code | Description | Response headers |
|
|
1293
|
+
|-------------|-------------|------------------|
|
|
1294
|
+
|**200** | Plain success message | - |
|
|
1295
|
+
|**400** | Failed to parse request | - |
|
|
1296
|
+
|**403** | User is not authorized | - |
|
|
1297
|
+
|**404** | Resource not found | - |
|
|
1298
|
+
|**412** | Resource is not attached | - |
|
|
1299
|
+
|**422** | Failed to validate request | - |
|
|
1300
|
+
|**500** | Some internal server error | - |
|
|
1301
|
+
|
|
1302
|
+
[[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)
|
|
1303
|
+
|
|
1304
|
+
# **showMod**
|
|
1305
|
+
> Mod showMod()
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
### Example
|
|
1309
|
+
|
|
1310
|
+
```typescript
|
|
1311
|
+
import {
|
|
1312
|
+
ModApi,
|
|
1313
|
+
Configuration
|
|
1314
|
+
} from 'kleisterjs';
|
|
1315
|
+
|
|
1316
|
+
const configuration = new Configuration();
|
|
1317
|
+
const apiInstance = new ModApi(configuration);
|
|
1318
|
+
|
|
1319
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
1320
|
+
|
|
1321
|
+
const { status, data } = await apiInstance.showMod(
|
|
1322
|
+
modId
|
|
1323
|
+
);
|
|
1324
|
+
```
|
|
1325
|
+
|
|
1326
|
+
### Parameters
|
|
1327
|
+
|
|
1328
|
+
|Name | Type | Description | Notes|
|
|
1329
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1330
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
### Return type
|
|
1334
|
+
|
|
1335
|
+
**Mod**
|
|
1336
|
+
|
|
1337
|
+
### Authorization
|
|
1338
|
+
|
|
1339
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
1340
|
+
|
|
1341
|
+
### HTTP request headers
|
|
1342
|
+
|
|
1343
|
+
- **Content-Type**: Not defined
|
|
1344
|
+
- **Accept**: application/json
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
### HTTP response details
|
|
1348
|
+
| Status code | Description | Response headers |
|
|
1349
|
+
|-------------|-------------|------------------|
|
|
1350
|
+
|**200** | The details for a mod | - |
|
|
1351
|
+
|**403** | User is not authorized | - |
|
|
1352
|
+
|**404** | Resource not found | - |
|
|
1353
|
+
|**500** | Some internal server error | - |
|
|
1354
|
+
|
|
1355
|
+
[[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)
|
|
1356
|
+
|
|
1357
|
+
# **showVersion**
|
|
1358
|
+
> Version showVersion()
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
### Example
|
|
1362
|
+
|
|
1363
|
+
```typescript
|
|
1364
|
+
import {
|
|
1365
|
+
ModApi,
|
|
1366
|
+
Configuration
|
|
1367
|
+
} from 'kleisterjs';
|
|
1368
|
+
|
|
1369
|
+
const configuration = new Configuration();
|
|
1370
|
+
const apiInstance = new ModApi(configuration);
|
|
1371
|
+
|
|
1372
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
1373
|
+
let versionId: string; //A version identifier or slug (default to undefined)
|
|
1374
|
+
|
|
1375
|
+
const { status, data } = await apiInstance.showVersion(
|
|
1376
|
+
modId,
|
|
1377
|
+
versionId
|
|
1378
|
+
);
|
|
1379
|
+
```
|
|
1380
|
+
|
|
1381
|
+
### Parameters
|
|
1382
|
+
|
|
1383
|
+
|Name | Type | Description | Notes|
|
|
1384
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1385
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
1386
|
+
| **versionId** | [**string**] | A version identifier or slug | defaults to undefined|
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
### Return type
|
|
1390
|
+
|
|
1391
|
+
**Version**
|
|
1392
|
+
|
|
1393
|
+
### Authorization
|
|
1394
|
+
|
|
1395
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
1396
|
+
|
|
1397
|
+
### HTTP request headers
|
|
1398
|
+
|
|
1399
|
+
- **Content-Type**: Not defined
|
|
1400
|
+
- **Accept**: application/json
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
### HTTP response details
|
|
1404
|
+
| Status code | Description | Response headers |
|
|
1405
|
+
|-------------|-------------|------------------|
|
|
1406
|
+
|**200** | The details for a version | - |
|
|
1407
|
+
|**403** | User is not authorized | - |
|
|
1408
|
+
|**404** | Resource not found | - |
|
|
1409
|
+
|**500** | Some internal server error | - |
|
|
1410
|
+
|
|
1411
|
+
[[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)
|
|
1412
|
+
|
|
1413
|
+
# **updateMod**
|
|
1414
|
+
> Mod updateMod(createModRequest)
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
### Example
|
|
1418
|
+
|
|
1419
|
+
```typescript
|
|
1420
|
+
import {
|
|
1421
|
+
ModApi,
|
|
1422
|
+
Configuration,
|
|
1423
|
+
CreateModRequest
|
|
1424
|
+
} from 'kleisterjs';
|
|
1425
|
+
|
|
1426
|
+
const configuration = new Configuration();
|
|
1427
|
+
const apiInstance = new ModApi(configuration);
|
|
1428
|
+
|
|
1429
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
1430
|
+
let createModRequest: CreateModRequest; //The mod data to update
|
|
1431
|
+
|
|
1432
|
+
const { status, data } = await apiInstance.updateMod(
|
|
1433
|
+
modId,
|
|
1434
|
+
createModRequest
|
|
1435
|
+
);
|
|
1436
|
+
```
|
|
1437
|
+
|
|
1438
|
+
### Parameters
|
|
1439
|
+
|
|
1440
|
+
|Name | Type | Description | Notes|
|
|
1441
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1442
|
+
| **createModRequest** | **CreateModRequest**| The mod data to update | |
|
|
1443
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
### Return type
|
|
1447
|
+
|
|
1448
|
+
**Mod**
|
|
1449
|
+
|
|
1450
|
+
### Authorization
|
|
1451
|
+
|
|
1452
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
1453
|
+
|
|
1454
|
+
### HTTP request headers
|
|
1455
|
+
|
|
1456
|
+
- **Content-Type**: application/json
|
|
1457
|
+
- **Accept**: application/json
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
### HTTP response details
|
|
1461
|
+
| Status code | Description | Response headers |
|
|
1462
|
+
|-------------|-------------|------------------|
|
|
1463
|
+
|**200** | The details for a mod | - |
|
|
1464
|
+
|**400** | Failed to parse request | - |
|
|
1465
|
+
|**403** | User is not authorized | - |
|
|
1466
|
+
|**404** | Resource not found | - |
|
|
1467
|
+
|**422** | Failed to validate request | - |
|
|
1468
|
+
|**500** | Some internal server error | - |
|
|
1469
|
+
|
|
1470
|
+
[[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)
|
|
1471
|
+
|
|
1472
|
+
# **updateVersion**
|
|
1473
|
+
> Version updateVersion(createVersionRequest)
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
### Example
|
|
1477
|
+
|
|
1478
|
+
```typescript
|
|
1479
|
+
import {
|
|
1480
|
+
ModApi,
|
|
1481
|
+
Configuration,
|
|
1482
|
+
CreateVersionRequest
|
|
1483
|
+
} from 'kleisterjs';
|
|
1484
|
+
|
|
1485
|
+
const configuration = new Configuration();
|
|
1486
|
+
const apiInstance = new ModApi(configuration);
|
|
1487
|
+
|
|
1488
|
+
let modId: string; //A mod identifier or slug (default to undefined)
|
|
1489
|
+
let versionId: string; //A version identifier or slug (default to undefined)
|
|
1490
|
+
let createVersionRequest: CreateVersionRequest; //The version data to update
|
|
1491
|
+
|
|
1492
|
+
const { status, data } = await apiInstance.updateVersion(
|
|
1493
|
+
modId,
|
|
1494
|
+
versionId,
|
|
1495
|
+
createVersionRequest
|
|
1496
|
+
);
|
|
1497
|
+
```
|
|
1498
|
+
|
|
1499
|
+
### Parameters
|
|
1500
|
+
|
|
1501
|
+
|Name | Type | Description | Notes|
|
|
1502
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1503
|
+
| **createVersionRequest** | **CreateVersionRequest**| The version data to update | |
|
|
1504
|
+
| **modId** | [**string**] | A mod identifier or slug | defaults to undefined|
|
|
1505
|
+
| **versionId** | [**string**] | A version identifier or slug | defaults to undefined|
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
### Return type
|
|
1509
|
+
|
|
1510
|
+
**Version**
|
|
1511
|
+
|
|
1512
|
+
### Authorization
|
|
1513
|
+
|
|
1514
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
1515
|
+
|
|
1516
|
+
### HTTP request headers
|
|
1517
|
+
|
|
1518
|
+
- **Content-Type**: application/json
|
|
1519
|
+
- **Accept**: application/json
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
### HTTP response details
|
|
1523
|
+
| Status code | Description | Response headers |
|
|
1524
|
+
|-------------|-------------|------------------|
|
|
1525
|
+
|**200** | The details for a version | - |
|
|
1526
|
+
|**400** | Failed to parse request | - |
|
|
1527
|
+
|**403** | User is not authorized | - |
|
|
1528
|
+
|**404** | Resource not found | - |
|
|
1529
|
+
|**422** | Failed to validate request | - |
|
|
1530
|
+
|**500** | Some internal server error | - |
|
|
1531
|
+
|
|
1532
|
+
[[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)
|
|
1533
|
+
|