kleisterjs 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/.codacy.yml +6 -0
  2. package/.editorconfig +24 -0
  3. package/.github/issue_template.md +9 -0
  4. package/.github/pull_request_template.md +8 -0
  5. package/.github/renovate.json +6 -0
  6. package/.github/semantic.yml +23 -0
  7. package/.github/settings.yml +44 -0
  8. package/.github/workflows/automerge.yml +49 -0
  9. package/.github/workflows/flake.yml +56 -0
  10. package/.github/workflows/general.yml +39 -0
  11. package/.github/workflows/openapi.yml +74 -0
  12. package/.github/workflows/release.yml +56 -0
  13. package/.openapi-generator/FILES +94 -0
  14. package/.openapi-generator/VERSION +1 -0
  15. package/.openapi-generator-ignore +3 -0
  16. package/.releaserc +195 -0
  17. package/CHANGELOG.md +17 -0
  18. package/CONTRIBUTING.md +121 -0
  19. package/DCO +34 -0
  20. package/LICENSE +202 -0
  21. package/README.md +88 -0
  22. package/api/auth-api.ts +743 -0
  23. package/api/fabric-api.ts +943 -0
  24. package/api/forge-api.ts +942 -0
  25. package/api/minecraft-api.ts +949 -0
  26. package/api/mod-api.ts +4028 -0
  27. package/api/neoforge-api.ts +945 -0
  28. package/api/pack-api.ts +4007 -0
  29. package/api/profile-api.ts +431 -0
  30. package/api/quilt-api.ts +942 -0
  31. package/api/team-api.ts +3216 -0
  32. package/api/user-api.ts +3210 -0
  33. package/api.ts +25 -0
  34. package/base.ts +91 -0
  35. package/common.ts +203 -0
  36. package/configuration.ts +132 -0
  37. package/flake.lock +472 -0
  38. package/flake.nix +59 -0
  39. package/hack/generate-client.sh +36 -0
  40. package/hack/openapi/templates/README.mustache +93 -0
  41. package/hack/openapi/templates/gitignore +6 -0
  42. package/index.ts +17 -0
  43. package/model/auth-login.ts +33 -0
  44. package/model/auth-token.ts +33 -0
  45. package/model/auth-verify.ts +33 -0
  46. package/model/build-version-params.ts +33 -0
  47. package/model/build-version.ts +64 -0
  48. package/model/build-versions.ts +55 -0
  49. package/model/build.ts +169 -0
  50. package/model/builds.ts +46 -0
  51. package/model/fabric-build-params.ts +33 -0
  52. package/model/fabric-builds.ts +46 -0
  53. package/model/fabric.ts +45 -0
  54. package/model/fabrics.ts +37 -0
  55. package/model/forge-build-params.ts +33 -0
  56. package/model/forge-builds.ts +46 -0
  57. package/model/forge.ts +51 -0
  58. package/model/forges.ts +37 -0
  59. package/model/index.ts +73 -0
  60. package/model/minecraft-build-params.ts +33 -0
  61. package/model/minecraft-builds.ts +46 -0
  62. package/model/minecraft.ts +51 -0
  63. package/model/minecrafts.ts +37 -0
  64. package/model/mod-team-params.ts +42 -0
  65. package/model/mod-teams.ts +46 -0
  66. package/model/mod-user-params.ts +42 -0
  67. package/model/mod-users.ts +46 -0
  68. package/model/mod.ts +123 -0
  69. package/model/mods.ts +37 -0
  70. package/model/neoforge-build-params.ts +33 -0
  71. package/model/neoforge-builds.ts +46 -0
  72. package/model/neoforge.ts +51 -0
  73. package/model/neoforges.ts +37 -0
  74. package/model/notification.ts +43 -0
  75. package/model/pack-back.ts +91 -0
  76. package/model/pack-icon.ts +91 -0
  77. package/model/pack-logo.ts +91 -0
  78. package/model/pack-team-params.ts +42 -0
  79. package/model/pack-teams.ts +46 -0
  80. package/model/pack-user-params.ts +42 -0
  81. package/model/pack-users.ts +46 -0
  82. package/model/pack.ts +142 -0
  83. package/model/packs.ts +37 -0
  84. package/model/profile.ts +118 -0
  85. package/model/quilt-build-params.ts +33 -0
  86. package/model/quilt-builds.ts +46 -0
  87. package/model/quilt.ts +45 -0
  88. package/model/quilts.ts +37 -0
  89. package/model/team-mod-params.ts +42 -0
  90. package/model/team-mod.ts +79 -0
  91. package/model/team-mods.ts +46 -0
  92. package/model/team-pack-params.ts +42 -0
  93. package/model/team-pack.ts +79 -0
  94. package/model/team-packs.ts +46 -0
  95. package/model/team-user-params.ts +42 -0
  96. package/model/team-users.ts +46 -0
  97. package/model/team.ts +79 -0
  98. package/model/teams.ts +37 -0
  99. package/model/user-auth.ts +45 -0
  100. package/model/user-mod-params.ts +42 -0
  101. package/model/user-mod.ts +79 -0
  102. package/model/user-mods.ts +46 -0
  103. package/model/user-pack-params.ts +42 -0
  104. package/model/user-pack.ts +79 -0
  105. package/model/user-packs.ts +46 -0
  106. package/model/user-team-params.ts +42 -0
  107. package/model/user-team.ts +79 -0
  108. package/model/user-teams.ts +46 -0
  109. package/model/user.ts +118 -0
  110. package/model/users.ts +37 -0
  111. package/model/validation.ts +33 -0
  112. package/model/version-build-params.ts +33 -0
  113. package/model/version-builds.ts +55 -0
  114. package/model/version-file.ts +91 -0
  115. package/model/version.ts +91 -0
  116. package/model/versions.ts +46 -0
  117. package/openapi.yml +12 -0
  118. package/openapitools.json +7 -0
  119. package/package.json +41 -0
  120. package/tsconfig.esm.json +7 -0
  121. package/tsconfig.json +18 -0
package/flake.lock ADDED
@@ -0,0 +1,472 @@
1
+ {
2
+ "nodes": {
3
+ "cachix": {
4
+ "inputs": {
5
+ "devenv": "devenv_2",
6
+ "flake-compat": [
7
+ "devenv",
8
+ "flake-compat"
9
+ ],
10
+ "nixpkgs": [
11
+ "devenv",
12
+ "nixpkgs"
13
+ ],
14
+ "pre-commit-hooks": [
15
+ "devenv",
16
+ "pre-commit-hooks"
17
+ ]
18
+ },
19
+ "locked": {
20
+ "lastModified": 1712055811,
21
+ "narHash": "sha256-7FcfMm5A/f02yyzuavJe06zLa9hcMHsagE28ADcmQvk=",
22
+ "owner": "cachix",
23
+ "repo": "cachix",
24
+ "rev": "02e38da89851ec7fec3356a5c04bc8349cae0e30",
25
+ "type": "github"
26
+ },
27
+ "original": {
28
+ "owner": "cachix",
29
+ "repo": "cachix",
30
+ "type": "github"
31
+ }
32
+ },
33
+ "devenv": {
34
+ "inputs": {
35
+ "cachix": "cachix",
36
+ "flake-compat": "flake-compat_2",
37
+ "nix": "nix_2",
38
+ "nixpkgs": "nixpkgs_2",
39
+ "pre-commit-hooks": "pre-commit-hooks"
40
+ },
41
+ "locked": {
42
+ "lastModified": 1717245169,
43
+ "narHash": "sha256-+mW3rTBjGU8p1THJN0lX/Dd/8FbnF+3dB+mJuSaxewE=",
44
+ "owner": "cachix",
45
+ "repo": "devenv",
46
+ "rev": "c3f9f053c077c6f88a3de5276d9178c62baa3fc3",
47
+ "type": "github"
48
+ },
49
+ "original": {
50
+ "owner": "cachix",
51
+ "repo": "devenv",
52
+ "type": "github"
53
+ }
54
+ },
55
+ "devenv_2": {
56
+ "inputs": {
57
+ "flake-compat": [
58
+ "devenv",
59
+ "cachix",
60
+ "flake-compat"
61
+ ],
62
+ "nix": "nix",
63
+ "nixpkgs": "nixpkgs",
64
+ "poetry2nix": "poetry2nix",
65
+ "pre-commit-hooks": [
66
+ "devenv",
67
+ "cachix",
68
+ "pre-commit-hooks"
69
+ ]
70
+ },
71
+ "locked": {
72
+ "lastModified": 1708704632,
73
+ "narHash": "sha256-w+dOIW60FKMaHI1q5714CSibk99JfYxm0CzTinYWr+Q=",
74
+ "owner": "cachix",
75
+ "repo": "devenv",
76
+ "rev": "2ee4450b0f4b95a1b90f2eb5ffea98b90e48c196",
77
+ "type": "github"
78
+ },
79
+ "original": {
80
+ "owner": "cachix",
81
+ "ref": "python-rewrite",
82
+ "repo": "devenv",
83
+ "type": "github"
84
+ }
85
+ },
86
+ "flake-compat": {
87
+ "flake": false,
88
+ "locked": {
89
+ "lastModified": 1673956053,
90
+ "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
91
+ "owner": "edolstra",
92
+ "repo": "flake-compat",
93
+ "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
94
+ "type": "github"
95
+ },
96
+ "original": {
97
+ "owner": "edolstra",
98
+ "repo": "flake-compat",
99
+ "type": "github"
100
+ }
101
+ },
102
+ "flake-compat_2": {
103
+ "flake": false,
104
+ "locked": {
105
+ "lastModified": 1696426674,
106
+ "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
107
+ "owner": "edolstra",
108
+ "repo": "flake-compat",
109
+ "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
110
+ "type": "github"
111
+ },
112
+ "original": {
113
+ "owner": "edolstra",
114
+ "repo": "flake-compat",
115
+ "type": "github"
116
+ }
117
+ },
118
+ "flake-parts": {
119
+ "inputs": {
120
+ "nixpkgs-lib": "nixpkgs-lib"
121
+ },
122
+ "locked": {
123
+ "lastModified": 1717285511,
124
+ "narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=",
125
+ "owner": "hercules-ci",
126
+ "repo": "flake-parts",
127
+ "rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8",
128
+ "type": "github"
129
+ },
130
+ "original": {
131
+ "owner": "hercules-ci",
132
+ "repo": "flake-parts",
133
+ "type": "github"
134
+ }
135
+ },
136
+ "flake-utils": {
137
+ "inputs": {
138
+ "systems": "systems"
139
+ },
140
+ "locked": {
141
+ "lastModified": 1689068808,
142
+ "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
143
+ "owner": "numtide",
144
+ "repo": "flake-utils",
145
+ "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
146
+ "type": "github"
147
+ },
148
+ "original": {
149
+ "owner": "numtide",
150
+ "repo": "flake-utils",
151
+ "type": "github"
152
+ }
153
+ },
154
+ "flake-utils_2": {
155
+ "inputs": {
156
+ "systems": "systems_2"
157
+ },
158
+ "locked": {
159
+ "lastModified": 1710146030,
160
+ "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
161
+ "owner": "numtide",
162
+ "repo": "flake-utils",
163
+ "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
164
+ "type": "github"
165
+ },
166
+ "original": {
167
+ "owner": "numtide",
168
+ "repo": "flake-utils",
169
+ "type": "github"
170
+ }
171
+ },
172
+ "gitignore": {
173
+ "inputs": {
174
+ "nixpkgs": [
175
+ "devenv",
176
+ "pre-commit-hooks",
177
+ "nixpkgs"
178
+ ]
179
+ },
180
+ "locked": {
181
+ "lastModified": 1709087332,
182
+ "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
183
+ "owner": "hercules-ci",
184
+ "repo": "gitignore.nix",
185
+ "rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
186
+ "type": "github"
187
+ },
188
+ "original": {
189
+ "owner": "hercules-ci",
190
+ "repo": "gitignore.nix",
191
+ "type": "github"
192
+ }
193
+ },
194
+ "nix": {
195
+ "inputs": {
196
+ "flake-compat": "flake-compat",
197
+ "nixpkgs": [
198
+ "devenv",
199
+ "cachix",
200
+ "devenv",
201
+ "nixpkgs"
202
+ ],
203
+ "nixpkgs-regression": "nixpkgs-regression"
204
+ },
205
+ "locked": {
206
+ "lastModified": 1712911606,
207
+ "narHash": "sha256-BGvBhepCufsjcUkXnEEXhEVjwdJAwPglCC2+bInc794=",
208
+ "owner": "domenkozar",
209
+ "repo": "nix",
210
+ "rev": "b24a9318ea3f3600c1e24b4a00691ee912d4de12",
211
+ "type": "github"
212
+ },
213
+ "original": {
214
+ "owner": "domenkozar",
215
+ "ref": "devenv-2.21",
216
+ "repo": "nix",
217
+ "type": "github"
218
+ }
219
+ },
220
+ "nix-github-actions": {
221
+ "inputs": {
222
+ "nixpkgs": [
223
+ "devenv",
224
+ "cachix",
225
+ "devenv",
226
+ "poetry2nix",
227
+ "nixpkgs"
228
+ ]
229
+ },
230
+ "locked": {
231
+ "lastModified": 1688870561,
232
+ "narHash": "sha256-4UYkifnPEw1nAzqqPOTL2MvWtm3sNGw1UTYTalkTcGY=",
233
+ "owner": "nix-community",
234
+ "repo": "nix-github-actions",
235
+ "rev": "165b1650b753316aa7f1787f3005a8d2da0f5301",
236
+ "type": "github"
237
+ },
238
+ "original": {
239
+ "owner": "nix-community",
240
+ "repo": "nix-github-actions",
241
+ "type": "github"
242
+ }
243
+ },
244
+ "nix_2": {
245
+ "inputs": {
246
+ "flake-compat": [
247
+ "devenv",
248
+ "flake-compat"
249
+ ],
250
+ "nixpkgs": [
251
+ "devenv",
252
+ "nixpkgs"
253
+ ],
254
+ "nixpkgs-regression": "nixpkgs-regression_2"
255
+ },
256
+ "locked": {
257
+ "lastModified": 1712911606,
258
+ "narHash": "sha256-BGvBhepCufsjcUkXnEEXhEVjwdJAwPglCC2+bInc794=",
259
+ "owner": "domenkozar",
260
+ "repo": "nix",
261
+ "rev": "b24a9318ea3f3600c1e24b4a00691ee912d4de12",
262
+ "type": "github"
263
+ },
264
+ "original": {
265
+ "owner": "domenkozar",
266
+ "ref": "devenv-2.21",
267
+ "repo": "nix",
268
+ "type": "github"
269
+ }
270
+ },
271
+ "nixpkgs": {
272
+ "locked": {
273
+ "lastModified": 1692808169,
274
+ "narHash": "sha256-x9Opq06rIiwdwGeK2Ykj69dNc2IvUH1fY55Wm7atwrE=",
275
+ "owner": "NixOS",
276
+ "repo": "nixpkgs",
277
+ "rev": "9201b5ff357e781bf014d0330d18555695df7ba8",
278
+ "type": "github"
279
+ },
280
+ "original": {
281
+ "owner": "NixOS",
282
+ "ref": "nixpkgs-unstable",
283
+ "repo": "nixpkgs",
284
+ "type": "github"
285
+ }
286
+ },
287
+ "nixpkgs-lib": {
288
+ "locked": {
289
+ "lastModified": 1717284937,
290
+ "narHash": "sha256-lIbdfCsf8LMFloheeE6N31+BMIeixqyQWbSr2vk79EQ=",
291
+ "type": "tarball",
292
+ "url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
293
+ },
294
+ "original": {
295
+ "type": "tarball",
296
+ "url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
297
+ }
298
+ },
299
+ "nixpkgs-regression": {
300
+ "locked": {
301
+ "lastModified": 1643052045,
302
+ "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
303
+ "owner": "NixOS",
304
+ "repo": "nixpkgs",
305
+ "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
306
+ "type": "github"
307
+ },
308
+ "original": {
309
+ "owner": "NixOS",
310
+ "repo": "nixpkgs",
311
+ "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
312
+ "type": "github"
313
+ }
314
+ },
315
+ "nixpkgs-regression_2": {
316
+ "locked": {
317
+ "lastModified": 1643052045,
318
+ "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
319
+ "owner": "NixOS",
320
+ "repo": "nixpkgs",
321
+ "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
322
+ "type": "github"
323
+ },
324
+ "original": {
325
+ "owner": "NixOS",
326
+ "repo": "nixpkgs",
327
+ "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
328
+ "type": "github"
329
+ }
330
+ },
331
+ "nixpkgs-stable": {
332
+ "locked": {
333
+ "lastModified": 1710695816,
334
+ "narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=",
335
+ "owner": "NixOS",
336
+ "repo": "nixpkgs",
337
+ "rev": "614b4613980a522ba49f0d194531beddbb7220d3",
338
+ "type": "github"
339
+ },
340
+ "original": {
341
+ "owner": "NixOS",
342
+ "ref": "nixos-23.11",
343
+ "repo": "nixpkgs",
344
+ "type": "github"
345
+ }
346
+ },
347
+ "nixpkgs_2": {
348
+ "locked": {
349
+ "lastModified": 1713361204,
350
+ "narHash": "sha256-TA6EDunWTkc5FvDCqU3W2T3SFn0gRZqh6D/hJnM02MM=",
351
+ "owner": "cachix",
352
+ "repo": "devenv-nixpkgs",
353
+ "rev": "285676e87ad9f0ca23d8714a6ab61e7e027020c6",
354
+ "type": "github"
355
+ },
356
+ "original": {
357
+ "owner": "cachix",
358
+ "ref": "rolling",
359
+ "repo": "devenv-nixpkgs",
360
+ "type": "github"
361
+ }
362
+ },
363
+ "nixpkgs_3": {
364
+ "locked": {
365
+ "lastModified": 1717196966,
366
+ "narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
367
+ "owner": "NixOS",
368
+ "repo": "nixpkgs",
369
+ "rev": "57610d2f8f0937f39dbd72251e9614b1561942d8",
370
+ "type": "github"
371
+ },
372
+ "original": {
373
+ "owner": "NixOS",
374
+ "ref": "nixos-unstable",
375
+ "repo": "nixpkgs",
376
+ "type": "github"
377
+ }
378
+ },
379
+ "poetry2nix": {
380
+ "inputs": {
381
+ "flake-utils": "flake-utils",
382
+ "nix-github-actions": "nix-github-actions",
383
+ "nixpkgs": [
384
+ "devenv",
385
+ "cachix",
386
+ "devenv",
387
+ "nixpkgs"
388
+ ]
389
+ },
390
+ "locked": {
391
+ "lastModified": 1692876271,
392
+ "narHash": "sha256-IXfZEkI0Mal5y1jr6IRWMqK8GW2/f28xJenZIPQqkY0=",
393
+ "owner": "nix-community",
394
+ "repo": "poetry2nix",
395
+ "rev": "d5006be9c2c2417dafb2e2e5034d83fabd207ee3",
396
+ "type": "github"
397
+ },
398
+ "original": {
399
+ "owner": "nix-community",
400
+ "repo": "poetry2nix",
401
+ "type": "github"
402
+ }
403
+ },
404
+ "pre-commit-hooks": {
405
+ "inputs": {
406
+ "flake-compat": [
407
+ "devenv",
408
+ "flake-compat"
409
+ ],
410
+ "flake-utils": "flake-utils_2",
411
+ "gitignore": "gitignore",
412
+ "nixpkgs": [
413
+ "devenv",
414
+ "nixpkgs"
415
+ ],
416
+ "nixpkgs-stable": "nixpkgs-stable"
417
+ },
418
+ "locked": {
419
+ "lastModified": 1713775815,
420
+ "narHash": "sha256-Wu9cdYTnGQQwtT20QQMg7jzkANKQjwBD9iccfGKkfls=",
421
+ "owner": "cachix",
422
+ "repo": "pre-commit-hooks.nix",
423
+ "rev": "2ac4dcbf55ed43f3be0bae15e181f08a57af24a4",
424
+ "type": "github"
425
+ },
426
+ "original": {
427
+ "owner": "cachix",
428
+ "repo": "pre-commit-hooks.nix",
429
+ "type": "github"
430
+ }
431
+ },
432
+ "root": {
433
+ "inputs": {
434
+ "devenv": "devenv",
435
+ "flake-parts": "flake-parts",
436
+ "nixpkgs": "nixpkgs_3"
437
+ }
438
+ },
439
+ "systems": {
440
+ "locked": {
441
+ "lastModified": 1681028828,
442
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
443
+ "owner": "nix-systems",
444
+ "repo": "default",
445
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
446
+ "type": "github"
447
+ },
448
+ "original": {
449
+ "owner": "nix-systems",
450
+ "repo": "default",
451
+ "type": "github"
452
+ }
453
+ },
454
+ "systems_2": {
455
+ "locked": {
456
+ "lastModified": 1681028828,
457
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
458
+ "owner": "nix-systems",
459
+ "repo": "default",
460
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
461
+ "type": "github"
462
+ },
463
+ "original": {
464
+ "owner": "nix-systems",
465
+ "repo": "default",
466
+ "type": "github"
467
+ }
468
+ }
469
+ },
470
+ "root": "root",
471
+ "version": 7
472
+ }
package/flake.nix ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ description = "Nix flake for development";
3
+
4
+ inputs = {
5
+ nixpkgs = {
6
+ url = "github:NixOS/nixpkgs/nixos-unstable";
7
+ };
8
+
9
+ devenv = {
10
+ url = "github:cachix/devenv";
11
+ };
12
+
13
+ flake-parts = {
14
+ url = "github:hercules-ci/flake-parts";
15
+ };
16
+ };
17
+
18
+ outputs = inputs@{ flake-parts, ... }:
19
+ flake-parts.lib.mkFlake { inherit inputs; } {
20
+ imports = [
21
+ inputs.devenv.flakeModule
22
+ ];
23
+
24
+ systems = [
25
+ "x86_64-linux"
26
+ "aarch64-linux"
27
+ "x86_64-darwin"
28
+ "aarch64-darwin"
29
+ ];
30
+
31
+ perSystem = { config, self', inputs', pkgs, system, ... }: {
32
+ imports = [
33
+ {
34
+ _module.args.pkgs = import inputs.nixpkgs {
35
+ inherit system;
36
+ config.allowUnfree = true;
37
+ };
38
+ }
39
+ ];
40
+
41
+ devenv = {
42
+ shells = {
43
+ default = {
44
+ languages = {
45
+ javascript = {
46
+ enable = true;
47
+ package = pkgs.nodejs_20;
48
+ };
49
+ };
50
+
51
+ packages = with pkgs; [
52
+ openapi-generator-cli
53
+ ];
54
+ };
55
+ };
56
+ };
57
+ };
58
+ };
59
+ }
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env bash
2
+ set -eo pipefail
3
+
4
+ if [ -L "${0}" ]
5
+ then
6
+ ROOT=$(realpath -e "$(dirname "$(readlink -e "${0}")")/..")
7
+ else
8
+ ROOT=$(realpath -e "$(dirname "${0}")/..")
9
+ fi
10
+
11
+ if ! hash openapi-generator-cli 2>/dev/null; then
12
+ echo "missing openapi-generator-cli executable"
13
+ exit 1
14
+ fi
15
+
16
+ SPEC_VERSION="1.0.0-alpha1"
17
+ SPEC_DOWNLOAD=${SPEC:-https://dl.kleister.eu/openapi/${SPEC_VERSION}.yml}
18
+
19
+ pushd "${ROOT}" >/dev/null
20
+ echo "> deleting apis and models"
21
+ rm -rf api model
22
+
23
+ export TS_POST_PROCESS_FILE="npx prettier -w"
24
+
25
+ openapi-generator-cli \
26
+ generate \
27
+ -c openapi.yml \
28
+ -g typescript-axios \
29
+ --git-repo-id kleister-js \
30
+ --git-user-id kleister \
31
+ --http-user-agent "kleister-js/${SPEC_VERSION}" \
32
+ -i "${SPEC_DOWNLOAD}" \
33
+ -o . \
34
+ -t hack/openapi/templates \
35
+ --strict-spec true
36
+ popd >/dev/null
@@ -0,0 +1,93 @@
1
+ # Kleister: SDK for Javascript
2
+
3
+ [![General Workflow](https://github.com/kleister/kleister-js/actions/workflows/general.yml/badge.svg)](https://github.com/kleister/kleister-js/actions/workflows/general.yml) [![Join the Matrix chat at https://matrix.to/#/#kleister:matrix.org](https://img.shields.io/badge/matrix-%23kleister%3Amatrix.org-7bc9a4.svg)](https://matrix.to/#/#kleister:matrix.org) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/10cbe4009f3043f8b0a5f89216049e1b)](https://app.codacy.com/gh/kleister/kleister-js/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![NPM Version](https://badge.fury.io/js/kleisterjs.svg)](https://badge.fury.io/js/kleisterjs)
4
+
5
+ This repository provides a client SDK for Typescript/Javascript. This SDK is
6
+ automatically generated by the [OpenAPI Generator][generator] project:
7
+
8
+ - API version: {{appVersion}}
9
+ - Package version: {{npmVersion}}
10
+ {{^hideGenerationTimestamp}}
11
+ - Build date: {{generatedDate}}
12
+ {{/hideGenerationTimestamp}}
13
+ - Build package: {{generatorClass}}
14
+ {{#infoUrl}}
15
+
16
+ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
17
+ {{/infoUrl}}
18
+
19
+ ## Environments
20
+
21
+ - Node.js
22
+ - Webpack
23
+ - Browserify
24
+
25
+ ## Language level
26
+
27
+ - ES5 - you must have a Promises/A+ library installed
28
+ - ES6
29
+
30
+ ## Module system
31
+
32
+ - CommonJS
33
+ - ES6 module system
34
+
35
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition
36
+ will be automatically resolved via `package.json`.
37
+
38
+ ## Installation
39
+
40
+ ### Installation with NPM
41
+
42
+ If you want to use one of the versions released via NPM you just need to execute
43
+ the following command within your project directory, after that you can import
44
+ it as other libraries:
45
+
46
+ ```console
47
+ npm install --save {{npmName}}@{{npmVersion}}
48
+ ```
49
+
50
+ ### Installation with Git
51
+
52
+ If you want to use an unreleased version hosted on our GitHub repository you can
53
+ execute the folling command within your project directory, after that you can
54
+ import it as other libraries:
55
+
56
+ ```console
57
+ npm install --save https://github.com/{{#gitUserId}}{{.}}{{/gitUserId}}{{^gitUserId}}YOUR_USERNAME{{/gitUserId}}/{{#gitRepoId}}{{.}}{{/gitRepoId}}{{^gitRepoId}}{{projectName}}{{/gitRepoId}}
58
+ ```
59
+
60
+ ## Building
61
+
62
+ To build and compile the Typescript sources to Javascript simply execute the
63
+ following commands and you are ready to go:
64
+
65
+ ```console
66
+ npm install
67
+ npm run build
68
+ ```
69
+
70
+ ## Security
71
+
72
+ If you find a security issue please contact
73
+ [kleister@webhippie.de](mailto:kleister@webhippie.de) first.
74
+
75
+ ## Contributing
76
+
77
+ Fork -> Patch -> Push -> Pull Request
78
+
79
+ ## Authors
80
+
81
+ - [Thomas Boerger](https://github.com/tboerger)
82
+
83
+ ## License
84
+
85
+ Apache-2.0
86
+
87
+ ## Copyright
88
+
89
+ ```console
90
+ Copyright (c) 2018 Thomas Boerger <thomas@webhippie.de>
91
+ ```
92
+
93
+ [generator]: https://openapi-generator.tech
@@ -0,0 +1,6 @@
1
+ .direnv
2
+ .devenv
3
+
4
+ /typings
5
+ /dist
6
+ /node_modules
package/index.ts ADDED
@@ -0,0 +1,17 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Kleister OpenAPI
5
+ * API definition for Kleister, manage mod packs for Minecraft
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0-alpha1
8
+ * Contact: kleister@webhippie.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ export * from "./api";
16
+ export * from "./configuration";
17
+ export * from "./model";