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/ForgeApi.md
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
# ForgeApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://try.kleister.eu/api/v1*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**attachForgeToBuild**](#attachforgetobuild) | **POST** /forge/{forge_id}/builds | Attach a build to a Forge version|
|
|
8
|
+
|[**deleteForgeFromBuild**](#deleteforgefrombuild) | **DELETE** /forge/{forge_id}/builds | Unlink a build from a Forge version|
|
|
9
|
+
|[**listForgeBuilds**](#listforgebuilds) | **GET** /forge/{forge_id}/builds | Fetch the builds attached to a Forge version|
|
|
10
|
+
|[**listForges**](#listforges) | **GET** /forge | Fetch the available Forge versions|
|
|
11
|
+
|[**updateForge**](#updateforge) | **PUT** /forge | Update the available Forge versions|
|
|
12
|
+
|
|
13
|
+
# **attachForgeToBuild**
|
|
14
|
+
> Notification attachForgeToBuild(attachMinecraftToBuildRequest)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ForgeApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
AttachMinecraftToBuildRequest
|
|
24
|
+
} from 'kleisterjs';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new ForgeApi(configuration);
|
|
28
|
+
|
|
29
|
+
let forgeId: string; //A forge identifier or slug (default to undefined)
|
|
30
|
+
let attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest; //The forge build data to create or update
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.attachForgeToBuild(
|
|
33
|
+
forgeId,
|
|
34
|
+
attachMinecraftToBuildRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **attachMinecraftToBuildRequest** | **AttachMinecraftToBuildRequest**| The forge build data to create or update | |
|
|
43
|
+
| **forgeId** | [**string**] | A forge identifier or slug | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**Notification**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | Plain success message | - |
|
|
64
|
+
|**400** | Failed to parse request | - |
|
|
65
|
+
|**403** | User is not authorized | - |
|
|
66
|
+
|**404** | Resource not found | - |
|
|
67
|
+
|**412** | Resource is already attached | - |
|
|
68
|
+
|**422** | Failed to validate request | - |
|
|
69
|
+
|**500** | Some internal server error | - |
|
|
70
|
+
|
|
71
|
+
[[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)
|
|
72
|
+
|
|
73
|
+
# **deleteForgeFromBuild**
|
|
74
|
+
> Notification deleteForgeFromBuild(attachMinecraftToBuildRequest)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
ForgeApi,
|
|
82
|
+
Configuration,
|
|
83
|
+
AttachMinecraftToBuildRequest
|
|
84
|
+
} from 'kleisterjs';
|
|
85
|
+
|
|
86
|
+
const configuration = new Configuration();
|
|
87
|
+
const apiInstance = new ForgeApi(configuration);
|
|
88
|
+
|
|
89
|
+
let forgeId: string; //A forge identifier or slug (default to undefined)
|
|
90
|
+
let attachMinecraftToBuildRequest: AttachMinecraftToBuildRequest; //The forge build data to create or update
|
|
91
|
+
|
|
92
|
+
const { status, data } = await apiInstance.deleteForgeFromBuild(
|
|
93
|
+
forgeId,
|
|
94
|
+
attachMinecraftToBuildRequest
|
|
95
|
+
);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|Name | Type | Description | Notes|
|
|
101
|
+
|------------- | ------------- | ------------- | -------------|
|
|
102
|
+
| **attachMinecraftToBuildRequest** | **AttachMinecraftToBuildRequest**| The forge build data to create or update | |
|
|
103
|
+
| **forgeId** | [**string**] | A forge identifier or slug | defaults to undefined|
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Return type
|
|
107
|
+
|
|
108
|
+
**Notification**
|
|
109
|
+
|
|
110
|
+
### Authorization
|
|
111
|
+
|
|
112
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
113
|
+
|
|
114
|
+
### HTTP request headers
|
|
115
|
+
|
|
116
|
+
- **Content-Type**: application/json
|
|
117
|
+
- **Accept**: application/json
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### HTTP response details
|
|
121
|
+
| Status code | Description | Response headers |
|
|
122
|
+
|-------------|-------------|------------------|
|
|
123
|
+
|**200** | Plain success message | - |
|
|
124
|
+
|**400** | Failed to parse request | - |
|
|
125
|
+
|**403** | User is not authorized | - |
|
|
126
|
+
|**404** | Resource not found | - |
|
|
127
|
+
|**412** | Resource is not attached | - |
|
|
128
|
+
|**500** | Some internal server error | - |
|
|
129
|
+
|
|
130
|
+
[[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)
|
|
131
|
+
|
|
132
|
+
# **listForgeBuilds**
|
|
133
|
+
> ListForgeBuilds200Response listForgeBuilds()
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### Example
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
import {
|
|
140
|
+
ForgeApi,
|
|
141
|
+
Configuration
|
|
142
|
+
} from 'kleisterjs';
|
|
143
|
+
|
|
144
|
+
const configuration = new Configuration();
|
|
145
|
+
const apiInstance = new ForgeApi(configuration);
|
|
146
|
+
|
|
147
|
+
let forgeId: string; //A forge identifier or slug (default to undefined)
|
|
148
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
149
|
+
let sort: string; //Sorting column (optional) (default to undefined)
|
|
150
|
+
let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
|
|
151
|
+
let limit: number; //Paging limit (optional) (default to 100)
|
|
152
|
+
let offset: number; //Paging offset (optional) (default to 0)
|
|
153
|
+
|
|
154
|
+
const { status, data } = await apiInstance.listForgeBuilds(
|
|
155
|
+
forgeId,
|
|
156
|
+
search,
|
|
157
|
+
sort,
|
|
158
|
+
order,
|
|
159
|
+
limit,
|
|
160
|
+
offset
|
|
161
|
+
);
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Parameters
|
|
165
|
+
|
|
166
|
+
|Name | Type | Description | Notes|
|
|
167
|
+
|------------- | ------------- | ------------- | -------------|
|
|
168
|
+
| **forgeId** | [**string**] | A forge identifier or slug | defaults to undefined|
|
|
169
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
170
|
+
| **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
|
|
171
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | Sorting order | (optional) defaults to 'asc'|
|
|
172
|
+
| **limit** | [**number**] | Paging limit | (optional) defaults to 100|
|
|
173
|
+
| **offset** | [**number**] | Paging offset | (optional) defaults to 0|
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### Return type
|
|
177
|
+
|
|
178
|
+
**ListForgeBuilds200Response**
|
|
179
|
+
|
|
180
|
+
### Authorization
|
|
181
|
+
|
|
182
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
183
|
+
|
|
184
|
+
### HTTP request headers
|
|
185
|
+
|
|
186
|
+
- **Content-Type**: Not defined
|
|
187
|
+
- **Accept**: application/json
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### HTTP response details
|
|
191
|
+
| Status code | Description | Response headers |
|
|
192
|
+
|-------------|-------------|------------------|
|
|
193
|
+
|**200** | A collection of forge builds | - |
|
|
194
|
+
|**403** | User is not authorized | - |
|
|
195
|
+
|**404** | Resource not found | - |
|
|
196
|
+
|**500** | Some internal server error | - |
|
|
197
|
+
|
|
198
|
+
[[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)
|
|
199
|
+
|
|
200
|
+
# **listForges**
|
|
201
|
+
> ListForges200Response listForges()
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Example
|
|
205
|
+
|
|
206
|
+
```typescript
|
|
207
|
+
import {
|
|
208
|
+
ForgeApi,
|
|
209
|
+
Configuration
|
|
210
|
+
} from 'kleisterjs';
|
|
211
|
+
|
|
212
|
+
const configuration = new Configuration();
|
|
213
|
+
const apiInstance = new ForgeApi(configuration);
|
|
214
|
+
|
|
215
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
216
|
+
|
|
217
|
+
const { status, data } = await apiInstance.listForges(
|
|
218
|
+
search
|
|
219
|
+
);
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Parameters
|
|
223
|
+
|
|
224
|
+
|Name | Type | Description | Notes|
|
|
225
|
+
|------------- | ------------- | ------------- | -------------|
|
|
226
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### Return type
|
|
230
|
+
|
|
231
|
+
**ListForges200Response**
|
|
232
|
+
|
|
233
|
+
### Authorization
|
|
234
|
+
|
|
235
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
236
|
+
|
|
237
|
+
### HTTP request headers
|
|
238
|
+
|
|
239
|
+
- **Content-Type**: Not defined
|
|
240
|
+
- **Accept**: application/json
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### HTTP response details
|
|
244
|
+
| Status code | Description | Response headers |
|
|
245
|
+
|-------------|-------------|------------------|
|
|
246
|
+
|**200** | A collection of forges | - |
|
|
247
|
+
|**403** | User is not authorized | - |
|
|
248
|
+
|**500** | Some internal server error | - |
|
|
249
|
+
|
|
250
|
+
[[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)
|
|
251
|
+
|
|
252
|
+
# **updateForge**
|
|
253
|
+
> Notification updateForge()
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### Example
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
import {
|
|
260
|
+
ForgeApi,
|
|
261
|
+
Configuration
|
|
262
|
+
} from 'kleisterjs';
|
|
263
|
+
|
|
264
|
+
const configuration = new Configuration();
|
|
265
|
+
const apiInstance = new ForgeApi(configuration);
|
|
266
|
+
|
|
267
|
+
const { status, data } = await apiInstance.updateForge();
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Parameters
|
|
271
|
+
This endpoint does not have any parameters.
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### Return type
|
|
275
|
+
|
|
276
|
+
**Notification**
|
|
277
|
+
|
|
278
|
+
### Authorization
|
|
279
|
+
|
|
280
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
281
|
+
|
|
282
|
+
### HTTP request headers
|
|
283
|
+
|
|
284
|
+
- **Content-Type**: Not defined
|
|
285
|
+
- **Accept**: application/json
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### HTTP response details
|
|
289
|
+
| Status code | Description | Response headers |
|
|
290
|
+
|-------------|-------------|------------------|
|
|
291
|
+
|**200** | Plain success message | - |
|
|
292
|
+
|**503** | Remote source is nit available | - |
|
|
293
|
+
|**403** | User is not authorized | - |
|
|
294
|
+
|**500** | Some internal server error | - |
|
|
295
|
+
|
|
296
|
+
[[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)
|
|
297
|
+
|
package/docs/Group.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Group
|
|
2
|
+
|
|
3
|
+
Model to represent group
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**slug** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**created_at** | **string** | | [optional] [readonly] [default to undefined]
|
|
13
|
+
**updated_at** | **string** | | [optional] [readonly] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { Group } from 'kleisterjs';
|
|
19
|
+
|
|
20
|
+
const instance: Group = {
|
|
21
|
+
id,
|
|
22
|
+
slug,
|
|
23
|
+
name,
|
|
24
|
+
created_at,
|
|
25
|
+
updated_at,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|