From e17eb02341e9bdc799f99f68a182ed6ec33cdd7e Mon Sep 17 00:00:00 2001 From: venashial Date: Wed, 3 Aug 2022 00:24:08 -0700 Subject: [PATCH] Add `generated/` to .gitignore & fixes --- .gitignore | 1 + theseus_gui/.npmrc | 1 - theseus_gui/generated/gameVersions.json | 1 - theseus_gui/generated/openapi.ts | 7876 ----------------------- theseus_gui/generated/state.json | 7 - theseus_gui/locales | 1 + theseus_gui/pnpm-lock.yaml | 9 +- theseus_gui/src-tauri/src/main.rs | 2 +- theseus_gui/src/routes/__layout.svelte | 92 +- theseus_gui/svelte.config.js | 23 +- theseus_gui/vite.config.js | 47 +- 11 files changed, 86 insertions(+), 7974 deletions(-) delete mode 100644 theseus_gui/generated/gameVersions.json delete mode 100644 theseus_gui/generated/openapi.ts delete mode 100644 theseus_gui/generated/state.json create mode 160000 theseus_gui/locales diff --git a/.gitignore b/.gitignore index a9fedb997..5d582f898 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ node_modules/ .svelte-kit/ theseus_gui/build/ +theseus_gui/generated/ WixTools .direnv/ diff --git a/theseus_gui/.npmrc b/theseus_gui/.npmrc index 2068f5480..b6f27f135 100644 --- a/theseus_gui/.npmrc +++ b/theseus_gui/.npmrc @@ -1,2 +1 @@ engine-strict=true -strict-peer-dependencies=false diff --git a/theseus_gui/generated/gameVersions.json b/theseus_gui/generated/gameVersions.json deleted file mode 100644 index 550ff72d1..000000000 --- a/theseus_gui/generated/gameVersions.json +++ /dev/null @@ -1 +0,0 @@ -[{"version":"1.19.1","version_type":"release","date":"2022-07-27T09:25:33Z","major":true},{"version":"1.19.1-rc3","version_type":"snapshot","date":"2022-07-26T15:34:35Z","major":false},{"version":"1.19.1-rc2","version_type":"snapshot","date":"2022-07-21T16:25:50Z","major":false},{"version":"1.19.1-pre6","version_type":"snapshot","date":"2022-07-20T15:49:31Z","major":false},{"version":"1.19.1-pre5","version_type":"snapshot","date":"2022-07-15T11:51:44Z","major":false},{"version":"1.19.1-pre4","version_type":"snapshot","date":"2022-07-08T11:41:59Z","major":false},{"version":"1.19.1-pre3","version_type":"snapshot","date":"2022-07-06T14:50:46Z","major":false},{"version":"1.19.1-pre2","version_type":"snapshot","date":"2022-06-30T15:57:20Z","major":false},{"version":"1.19.1-rc1","version_type":"snapshot","date":"2022-06-23T16:32:41Z","major":false},{"version":"1.19.1-pre1","version_type":"snapshot","date":"2022-06-21T17:13:59Z","major":false},{"version":"22w24a","version_type":"snapshot","date":"2022-06-15T16:21:49Z","major":false},{"version":"1.19","version_type":"release","date":"2022-06-07T09:42:18Z","major":true},{"version":"1.19-rc2","version_type":"snapshot","date":"2022-06-03T11:47:25Z","major":false},{"version":"1.19-rc1","version_type":"snapshot","date":"2022-06-02T12:12:52Z","major":false},{"version":"1.19-pre5","version_type":"snapshot","date":"2022-06-01T10:56:23Z","major":false},{"version":"1.19-pre4","version_type":"snapshot","date":"2022-05-30T14:43:01Z","major":false},{"version":"1.19-pre3","version_type":"snapshot","date":"2022-05-25T09:56:47Z","major":false},{"version":"1.19-pre2","version_type":"snapshot","date":"2022-05-23T14:54:00Z","major":false},{"version":"1.19-pre1","version_type":"snapshot","date":"2022-05-18T13:51:54Z","major":false},{"version":"22w19a","version_type":"snapshot","date":"2022-05-12T15:36:11Z","major":false},{"version":"22w18a","version_type":"snapshot","date":"2022-05-04T14:41:35Z","major":false},{"version":"22w17a","version_type":"snapshot","date":"2022-04-27T15:54:15Z","major":false},{"version":"22w16b","version_type":"snapshot","date":"2022-04-20T17:25:32Z","major":false},{"version":"22w16a","version_type":"snapshot","date":"2022-04-20T14:37:07Z","major":false},{"version":"22w15a","version_type":"snapshot","date":"2022-04-13T15:41:17Z","major":false},{"version":"22w14a","version_type":"snapshot","date":"2022-04-06T13:37:12Z","major":false},{"version":"22w13oneblockatatime","version_type":"snapshot","date":"2022-04-01T11:56:58Z","major":false},{"version":"22w13a","version_type":"snapshot","date":"2022-03-31T14:53:25Z","major":false},{"version":"22w12a","version_type":"snapshot","date":"2022-03-24T16:15:02Z","major":false},{"version":"22w11a","version_type":"snapshot","date":"2022-03-16T15:55:38Z","major":false},{"version":"1.18.2","version_type":"release","date":"2022-02-28T10:42:45Z","major":true},{"version":"1.18.2-rc1","version_type":"snapshot","date":"2022-02-25T13:25:40Z","major":false},{"version":"1.18.2-pre3","version_type":"snapshot","date":"2022-02-23T15:23:12Z","major":false},{"version":"1.18.2-pre2","version_type":"snapshot","date":"2022-02-21T15:26:19Z","major":false},{"version":"1.18.2-pre1","version_type":"snapshot","date":"2022-02-18T16:00:32Z","major":false},{"version":"22w07a","version_type":"snapshot","date":"2022-02-16T16:13:58Z","major":false},{"version":"22w06a","version_type":"snapshot","date":"2022-02-09T16:47:48Z","major":false},{"version":"22w05a","version_type":"snapshot","date":"2022-02-02T16:08:39Z","major":false},{"version":"22w03a","version_type":"snapshot","date":"2022-01-19T16:04:59Z","major":false},{"version":"1.18.1","version_type":"release","date":"2021-12-10T08:23:00Z","major":false},{"version":"1.18.1-rc3","version_type":"snapshot","date":"2021-12-10T03:36:38Z","major":false},{"version":"1.18.1-rc2","version_type":"snapshot","date":"2021-12-08T12:29:36Z","major":false},{"version":"1.18.1-rc1","version_type":"snapshot","date":"2021-12-07T15:52:47Z","major":false},{"version":"1.18.1-pre1","version_type":"snapshot","date":"2021-12-03T13:45:38Z","major":false},{"version":"1.18","version_type":"release","date":"2021-11-30T09:16:29Z","major":false},{"version":"1.18-rc4","version_type":"snapshot","date":"2021-11-29T13:43:42Z","major":false},{"version":"1.18-rc3","version_type":"snapshot","date":"2021-11-26T15:51:56Z","major":false},{"version":"1.18-rc2","version_type":"snapshot","date":"2021-11-26T10:02:04Z","major":false},{"version":"1.18-rc1","version_type":"snapshot","date":"2021-11-25T14:28:49Z","major":false},{"version":"1.18-pre8","version_type":"snapshot","date":"2021-11-24T14:57:32Z","major":false},{"version":"1.18-pre7","version_type":"snapshot","date":"2021-11-23T16:37:41Z","major":false},{"version":"1.18-pre6","version_type":"snapshot","date":"2021-11-22T17:09:05Z","major":false},{"version":"1.18-pre5","version_type":"snapshot","date":"2021-11-19T15:47:09Z","major":false},{"version":"1.18-pre4","version_type":"snapshot","date":"2021-11-17T18:07:56Z","major":false},{"version":"1.18-pre3","version_type":"snapshot","date":"2021-11-17T16:04:25Z","major":false},{"version":"1.18-pre2","version_type":"snapshot","date":"2021-11-16T17:04:48Z","major":false},{"version":"1.18-pre1","version_type":"snapshot","date":"2021-11-11T16:14:06Z","major":false},{"version":"21w44a","version_type":"snapshot","date":"2021-11-03T16:14:34Z","major":false},{"version":"21w43a","version_type":"snapshot","date":"2021-10-27T14:38:55Z","major":false},{"version":"21w42a","version_type":"snapshot","date":"2021-10-20T12:41:25Z","major":false},{"version":"21w41a","version_type":"snapshot","date":"2021-10-13T15:23:23Z","major":false},{"version":"21w40a","version_type":"snapshot","date":"2021-10-07T11:17:50Z","major":false},{"version":"21w39a","version_type":"snapshot","date":"2021-09-29T16:27:05Z","major":false},{"version":"21w38a","version_type":"snapshot","date":"2021-09-23T14:36:06Z","major":false},{"version":"21w37a","version_type":"snapshot","date":"2021-09-15T16:04:30Z","major":false},{"version":"1.17.1","version_type":"release","date":"2021-07-06T12:01:34Z","major":true},{"version":"1.17.1-rc2","version_type":"snapshot","date":"2021-07-05T12:58:01Z","major":false},{"version":"1.17.1-rc1","version_type":"snapshot","date":"2021-07-01T15:23:37Z","major":false},{"version":"1.17.1-pre3","version_type":"snapshot","date":"2021-06-30T15:43:16Z","major":false},{"version":"1.17.1-pre2","version_type":"snapshot","date":"2021-06-29T15:14:12Z","major":false},{"version":"1.17.1-pre1","version_type":"snapshot","date":"2021-06-18T12:24:40Z","major":false},{"version":"1.17","version_type":"release","date":"2021-06-08T11:00:40Z","major":false},{"version":"1.17-rc2","version_type":"snapshot","date":"2021-06-07T11:46:28Z","major":false},{"version":"1.17-rc1","version_type":"snapshot","date":"2021-06-04T13:24:48Z","major":false},{"version":"1.17-pre5","version_type":"snapshot","date":"2021-06-03T17:01:28Z","major":false},{"version":"1.17-pre4","version_type":"snapshot","date":"2021-06-02T16:15:43Z","major":false},{"version":"1.17-pre3","version_type":"snapshot","date":"2021-06-01T15:43:46Z","major":false},{"version":"1.17-pre2","version_type":"snapshot","date":"2021-05-31T15:54:05Z","major":false},{"version":"1.17-pre1","version_type":"snapshot","date":"2021-05-27T09:39:21Z","major":false},{"version":"21w20a","version_type":"snapshot","date":"2021-05-19T15:22:02Z","major":false},{"version":"21w19a","version_type":"snapshot","date":"2021-05-12T11:19:15Z","major":false},{"version":"21w18a","version_type":"snapshot","date":"2021-05-05T15:24:35Z","major":false},{"version":"21w17a","version_type":"snapshot","date":"2021-04-28T13:54:05Z","major":false},{"version":"21w16a","version_type":"snapshot","date":"2021-04-21T16:41:14Z","major":false},{"version":"21w15a","version_type":"snapshot","date":"2021-04-14T13:41:34Z","major":false},{"version":"21w14a","version_type":"snapshot","date":"2021-04-07T14:04:09Z","major":false},{"version":"21w13a","version_type":"snapshot","date":"2021-03-31T16:17:46Z","major":false},{"version":"21w11a","version_type":"snapshot","date":"2021-03-17T15:05:50Z","major":false},{"version":"21w10a","version_type":"snapshot","date":"2021-03-10T15:24:38Z","major":false},{"version":"21w08b","version_type":"snapshot","date":"2021-02-25T11:46:34Z","major":false},{"version":"21w08a","version_type":"snapshot","date":"2021-02-24T14:38:51Z","major":false},{"version":"21w07a","version_type":"snapshot","date":"2021-02-17T16:35:40Z","major":false},{"version":"21w06a","version_type":"snapshot","date":"2021-02-10T17:13:54Z","major":false},{"version":"21w05b","version_type":"snapshot","date":"2021-02-04T15:09:29Z","major":false},{"version":"21w05a","version_type":"snapshot","date":"2021-02-03T15:56:54Z","major":false},{"version":"21w03a","version_type":"snapshot","date":"2021-01-20T14:56:29Z","major":false},{"version":"1.16.5","version_type":"release","date":"2021-01-14T16:05:32Z","major":true},{"version":"1.16.5-rc1","version_type":"snapshot","date":"2021-01-13T15:58:55Z","major":false},{"version":"20w51a","version_type":"snapshot","date":"2020-12-16T16:27:57Z","major":false},{"version":"20w49a","version_type":"snapshot","date":"2020-12-02T16:47:20Z","major":false},{"version":"20w48a","version_type":"snapshot","date":"2020-11-25T15:42:24Z","major":false},{"version":"20w46a","version_type":"snapshot","date":"2020-11-11T15:30:32Z","major":false},{"version":"20w45a","version_type":"snapshot","date":"2020-11-04T16:42:00Z","major":false},{"version":"1.16.4","version_type":"release","date":"2020-10-29T15:49:37Z","major":false},{"version":"1.16.4-rc1","version_type":"snapshot","date":"2020-10-27T16:31:08Z","major":false},{"version":"1.16.4-pre2","version_type":"snapshot","date":"2020-10-22T15:32:17Z","major":false},{"version":"1.16.4-pre1","version_type":"snapshot","date":"2020-10-13T14:36:07Z","major":false},{"version":"1.16.3","version_type":"release","date":"2020-09-10T13:42:37Z","major":false},{"version":"1.16.3-rc1","version_type":"snapshot","date":"2020-09-07T12:34:06Z","major":false},{"version":"1.16.2","version_type":"release","date":"2020-08-11T10:13:46Z","major":false},{"version":"1.16.2-rc2","version_type":"snapshot","date":"2020-08-10T11:43:36Z","major":false},{"version":"1.16.2-rc1","version_type":"snapshot","date":"2020-08-07T14:35:39Z","major":false},{"version":"1.16.2-pre3","version_type":"snapshot","date":"2020-08-06T16:44:52Z","major":false},{"version":"1.16.2-pre2","version_type":"snapshot","date":"2020-08-05T15:30:50Z","major":false},{"version":"1.16.2-pre1","version_type":"snapshot","date":"2020-07-29T13:19:05Z","major":false},{"version":"20w30a","version_type":"snapshot","date":"2020-07-22T15:05:15Z","major":false},{"version":"20w29a","version_type":"snapshot","date":"2020-07-15T14:13:47Z","major":false},{"version":"20w28a","version_type":"snapshot","date":"2020-07-08T15:10:40Z","major":false},{"version":"20w27a","version_type":"snapshot","date":"2020-07-01T15:07:35Z","major":false},{"version":"1.16.1","version_type":"release","date":"2020-06-24T10:31:40Z","major":true},{"version":"1.16","version_type":"release","date":"2020-06-23T16:20:52Z","major":false},{"version":"1.16-rc1","version_type":"snapshot","date":"2020-06-18T12:49:28Z","major":false},{"version":"1.16-pre8","version_type":"snapshot","date":"2020-06-17T14:45:23Z","major":false},{"version":"1.16-pre7","version_type":"snapshot","date":"2020-06-16T15:31:35Z","major":false},{"version":"1.16-pre6","version_type":"snapshot","date":"2020-06-15T16:57:57Z","major":false},{"version":"1.16-pre5","version_type":"snapshot","date":"2020-06-12T14:33:59Z","major":false},{"version":"1.16-pre4","version_type":"snapshot","date":"2020-06-11T15:45:55Z","major":false},{"version":"1.16-pre3","version_type":"snapshot","date":"2020-06-10T14:57:43Z","major":false},{"version":"1.16-pre2","version_type":"snapshot","date":"2020-06-05T10:47:59Z","major":false},{"version":"1.16-pre1","version_type":"snapshot","date":"2020-06-04T18:17:51Z","major":false},{"version":"20w22a","version_type":"snapshot","date":"2020-05-29T11:25:02Z","major":false},{"version":"20w21a","version_type":"snapshot","date":"2020-05-20T12:07:18Z","major":false},{"version":"20w20b","version_type":"snapshot","date":"2020-05-14T08:16:26Z","major":false},{"version":"20w20a","version_type":"snapshot","date":"2020-05-13T15:11:43Z","major":false},{"version":"20w19a","version_type":"snapshot","date":"2020-05-06T16:23:24Z","major":false},{"version":"20w18a","version_type":"snapshot","date":"2020-04-29T15:16:34Z","major":false},{"version":"20w17a","version_type":"snapshot","date":"2020-04-22T13:47:50Z","major":false},{"version":"20w16a","version_type":"snapshot","date":"2020-04-15T14:13:01Z","major":false},{"version":"20w15a","version_type":"snapshot","date":"2020-04-08T12:29:24Z","major":false},{"version":"20w14a","version_type":"snapshot","date":"2020-04-02T14:28:06Z","major":false},{"version":"20w14infinite","version_type":"snapshot","date":"2020-04-01T12:47:08Z","major":false},{"version":"20w13b","version_type":"snapshot","date":"2020-03-26T13:00:34Z","major":false},{"version":"20w13a","version_type":"snapshot","date":"2020-03-25T17:05:33Z","major":false},{"version":"20w12a","version_type":"snapshot","date":"2020-03-18T16:42:06Z","major":false},{"version":"20w11a","version_type":"snapshot","date":"2020-03-11T16:28:27Z","major":false},{"version":"20w10a","version_type":"snapshot","date":"2020-03-04T16:21:41Z","major":false},{"version":"20w09a","version_type":"snapshot","date":"2020-02-26T16:43:08Z","major":false},{"version":"20w08a","version_type":"snapshot","date":"2020-02-19T13:30:09Z","major":false},{"version":"20w07a","version_type":"snapshot","date":"2020-02-14T13:20:49Z","major":false},{"version":"20w06a","version_type":"snapshot","date":"2020-02-05T16:05:22Z","major":false},{"version":"1.15.2","version_type":"release","date":"2020-01-17T10:03:52Z","major":false},{"version":"1.15.2-pre2","version_type":"snapshot","date":"2020-01-16T12:35:57Z","major":false},{"version":"1.15.2-pre1","version_type":"snapshot","date":"2020-01-14T16:19:31Z","major":false},{"version":"1.15.1","version_type":"release","date":"2019-12-16T10:29:47Z","major":false},{"version":"1.15.1-pre1","version_type":"snapshot","date":"2019-12-12T14:02:30Z","major":false},{"version":"1.15","version_type":"release","date":"2019-12-09T13:13:38Z","major":false},{"version":"1.15-pre7","version_type":"snapshot","date":"2019-12-09T12:14:11Z","major":false},{"version":"1.15-pre6","version_type":"snapshot","date":"2019-12-06T12:04:30Z","major":false},{"version":"1.15-pre5","version_type":"snapshot","date":"2019-12-05T13:20:00Z","major":false},{"version":"1.15-pre4","version_type":"snapshot","date":"2019-12-03T12:24:24Z","major":false},{"version":"1.15-pre3","version_type":"snapshot","date":"2019-11-28T17:17:50Z","major":false},{"version":"1.15-pre2","version_type":"snapshot","date":"2019-11-25T18:09:38Z","major":false},{"version":"1.15-pre1","version_type":"snapshot","date":"2019-11-21T17:01:17Z","major":false},{"version":"19w46b","version_type":"snapshot","date":"2019-11-14T13:29:24Z","major":false},{"version":"19w46a","version_type":"snapshot","date":"2019-11-13T16:37:46Z","major":false},{"version":"19w45b","version_type":"snapshot","date":"2019-11-08T12:42:44Z","major":false},{"version":"19w45a","version_type":"snapshot","date":"2019-11-07T16:19:20Z","major":false},{"version":"19w44a","version_type":"snapshot","date":"2019-10-30T15:31:44Z","major":false},{"version":"19w42a","version_type":"snapshot","date":"2019-10-16T15:30:39Z","major":false},{"version":"19w41a","version_type":"snapshot","date":"2019-10-09T15:21:35Z","major":false},{"version":"19w40a","version_type":"snapshot","date":"2019-10-02T13:40:26Z","major":false},{"version":"19w39a","version_type":"snapshot","date":"2019-09-27T10:13:33Z","major":false},{"version":"19w38b","version_type":"snapshot","date":"2019-09-18T14:59:13Z","major":false},{"version":"19w38a","version_type":"snapshot","date":"2019-09-18T10:03:22Z","major":false},{"version":"19w37a","version_type":"snapshot","date":"2019-09-11T11:46:44Z","major":false},{"version":"19w36a","version_type":"snapshot","date":"2019-09-04T11:19:34Z","major":false},{"version":"19w35a","version_type":"snapshot","date":"2019-08-28T15:01:44Z","major":false},{"version":"19w34a","version_type":"snapshot","date":"2019-08-22T12:06:21Z","major":false},{"version":"1.14.4","version_type":"release","date":"2019-07-19T09:25:47Z","major":true},{"version":"1.14.4-pre7","version_type":"snapshot","date":"2019-07-18T11:32:36Z","major":false},{"version":"1.14.4-pre6","version_type":"snapshot","date":"2019-07-15T12:39:49Z","major":false},{"version":"1.14.4-pre5","version_type":"snapshot","date":"2019-07-11T10:52:33Z","major":false},{"version":"1.14.4-pre4","version_type":"snapshot","date":"2019-07-10T12:53:29Z","major":false},{"version":"1.14.4-pre3","version_type":"snapshot","date":"2019-07-08T11:21:42Z","major":false},{"version":"1.14.4-pre2","version_type":"snapshot","date":"2019-07-04T14:41:05Z","major":false},{"version":"1.14.4-pre1","version_type":"snapshot","date":"2019-07-03T13:01:01Z","major":false},{"version":"1.14.3","version_type":"release","date":"2019-06-24T12:52:52Z","major":false},{"version":"1.14.3-pre4","version_type":"snapshot","date":"2019-06-19T11:44:29Z","major":false},{"version":"1.14.3-pre3","version_type":"snapshot","date":"2019-06-14T08:03:33Z","major":false},{"version":"1.14.3-pre2","version_type":"snapshot","date":"2019-06-07T09:11:29Z","major":false},{"version":"1.14.3-pre1","version_type":"snapshot","date":"2019-06-03T14:34:20Z","major":false},{"version":"1.14.2","version_type":"release","date":"2019-05-27T11:48:25Z","major":false},{"version":"1.14.2-pre4","version_type":"snapshot","date":"2019-05-27T07:21:11Z","major":false},{"version":"1.14.2-pre3","version_type":"snapshot","date":"2019-05-22T13:12:51Z","major":false},{"version":"1.14.2-pre2","version_type":"snapshot","date":"2019-05-17T12:21:03Z","major":false},{"version":"1.14.2-pre1","version_type":"snapshot","date":"2019-05-16T15:40:25Z","major":false},{"version":"1.14.1","version_type":"release","date":"2019-05-13T11:10:12Z","major":false},{"version":"1.14.1-pre2","version_type":"snapshot","date":"2019-05-09T14:01:04Z","major":false},{"version":"1.14.1-pre1","version_type":"snapshot","date":"2019-05-07T14:44:42Z","major":false},{"version":"1.14","version_type":"release","date":"2019-04-23T14:52:44Z","major":false},{"version":"1.14-pre5","version_type":"snapshot","date":"2019-04-18T11:05:19Z","major":false},{"version":"1.14-pre4","version_type":"snapshot","date":"2019-04-17T15:31:12Z","major":false},{"version":"1.14-pre3","version_type":"snapshot","date":"2019-04-16T13:57:10Z","major":false},{"version":"1.14-pre2","version_type":"snapshot","date":"2019-04-12T11:38:53Z","major":false},{"version":"1.14-pre1","version_type":"snapshot","date":"2019-04-10T14:24:16Z","major":false},{"version":"19w14b","version_type":"snapshot","date":"2019-04-05T10:33:58Z","major":false},{"version":"19w14a","version_type":"snapshot","date":"2019-04-03T13:45:00Z","major":false},{"version":"3D-Shareware-v1.34","version_type":"snapshot","date":"2019-04-01T11:18:08Z","major":false},{"version":"19w13b","version_type":"snapshot","date":"2019-03-29T16:53:22Z","major":false},{"version":"19w13a","version_type":"snapshot","date":"2019-03-27T15:15:31Z","major":false},{"version":"19w12b","version_type":"snapshot","date":"2019-03-21T15:20:01Z","major":false},{"version":"19w12a","version_type":"snapshot","date":"2019-03-20T16:47:34Z","major":false},{"version":"19w11b","version_type":"snapshot","date":"2019-03-14T14:26:23Z","major":false},{"version":"19w11a","version_type":"snapshot","date":"2019-03-13T13:59:29Z","major":false},{"version":"19w09a","version_type":"snapshot","date":"2019-02-27T14:44:30Z","major":false},{"version":"19w08b","version_type":"snapshot","date":"2019-02-21T13:38:09Z","major":false},{"version":"19w08a","version_type":"snapshot","date":"2019-02-20T14:56:58Z","major":false},{"version":"19w07a","version_type":"snapshot","date":"2019-02-13T16:12:08Z","major":false},{"version":"19w06a","version_type":"snapshot","date":"2019-02-06T16:24:13Z","major":false},{"version":"19w05a","version_type":"snapshot","date":"2019-01-30T15:16:49Z","major":false},{"version":"19w04b","version_type":"snapshot","date":"2019-01-25T12:20:15Z","major":false},{"version":"19w04a","version_type":"snapshot","date":"2019-01-24T15:31:52Z","major":false},{"version":"19w03c","version_type":"snapshot","date":"2019-01-18T11:27:13Z","major":false},{"version":"19w03b","version_type":"snapshot","date":"2019-01-17T16:43:27Z","major":false},{"version":"19w03a","version_type":"snapshot","date":"2019-01-16T16:45:02Z","major":false},{"version":"19w02a","version_type":"snapshot","date":"2019-01-09T15:52:07Z","major":false},{"version":"18w50a","version_type":"snapshot","date":"2018-12-12T14:58:13Z","major":false},{"version":"18w49a","version_type":"snapshot","date":"2018-12-05T12:24:30Z","major":false},{"version":"18w48b","version_type":"snapshot","date":"2018-11-30T10:37:31Z","major":false},{"version":"18w48a","version_type":"snapshot","date":"2018-11-29T13:11:38Z","major":false},{"version":"18w47b","version_type":"snapshot","date":"2018-11-23T10:46:41Z","major":false},{"version":"18w47a","version_type":"snapshot","date":"2018-11-21T15:45:22Z","major":false},{"version":"18w46a","version_type":"snapshot","date":"2018-11-15T13:43:14Z","major":false},{"version":"18w45a","version_type":"snapshot","date":"2018-11-07T14:40:06Z","major":false},{"version":"18w44a","version_type":"snapshot","date":"2018-10-31T15:29:16Z","major":false},{"version":"18w43c","version_type":"snapshot","date":"2018-10-26T08:40:46Z","major":false},{"version":"18w43b","version_type":"snapshot","date":"2018-10-24T15:02:30Z","major":false},{"version":"18w43a","version_type":"snapshot","date":"2018-10-24T10:52:16Z","major":false},{"version":"1.13.2","version_type":"release","date":"2018-10-22T11:41:07Z","major":true},{"version":"1.13.2-pre2","version_type":"snapshot","date":"2018-10-18T14:46:12Z","major":false},{"version":"1.13.2-pre1","version_type":"snapshot","date":"2018-10-16T13:40:58Z","major":false},{"version":"1.13.1","version_type":"release","date":"2018-08-22T14:03:42Z","major":false},{"version":"1.13.1-pre2","version_type":"snapshot","date":"2018-08-20T13:52:09Z","major":false},{"version":"1.13.1-pre1","version_type":"snapshot","date":"2018-08-16T13:08:44Z","major":false},{"version":"18w33a","version_type":"snapshot","date":"2018-08-15T14:28:56Z","major":false},{"version":"18w32a","version_type":"snapshot","date":"2018-08-08T13:16:57Z","major":false},{"version":"18w31a","version_type":"snapshot","date":"2018-08-01T12:54:44Z","major":false},{"version":"18w30b","version_type":"snapshot","date":"2018-07-26T16:06:57Z","major":false},{"version":"18w30a","version_type":"snapshot","date":"2018-07-25T14:29:31Z","major":false},{"version":"1.13","version_type":"release","date":"2018-07-18T15:11:46Z","major":false},{"version":"1.13-pre10","version_type":"snapshot","date":"2018-07-17T14:48:06Z","major":false},{"version":"1.13-pre9","version_type":"snapshot","date":"2018-07-16T14:17:42Z","major":false},{"version":"1.13-pre8","version_type":"snapshot","date":"2018-07-13T11:45:00Z","major":false},{"version":"1.13-pre7","version_type":"snapshot","date":"2018-07-10T14:21:42Z","major":false},{"version":"1.13-pre6","version_type":"snapshot","date":"2018-07-04T12:36:00Z","major":false},{"version":"1.13-pre5","version_type":"snapshot","date":"2018-06-28T13:58:53Z","major":false},{"version":"1.13-pre4","version_type":"snapshot","date":"2018-06-26T13:00:55Z","major":false},{"version":"1.13-pre3","version_type":"snapshot","date":"2018-06-21T12:57:11Z","major":false},{"version":"1.13-pre2","version_type":"snapshot","date":"2018-06-15T09:20:00Z","major":false},{"version":"1.13-pre1","version_type":"snapshot","date":"2018-06-04T15:17:34Z","major":false},{"version":"18w22c","version_type":"snapshot","date":"2018-05-31T13:53:15Z","major":false},{"version":"18w22b","version_type":"snapshot","date":"2018-05-30T13:48:58Z","major":false},{"version":"18w22a","version_type":"snapshot","date":"2018-05-29T13:23:55Z","major":false},{"version":"18w21b","version_type":"snapshot","date":"2018-05-25T10:09:09Z","major":false},{"version":"18w21a","version_type":"snapshot","date":"2018-05-23T13:11:49Z","major":false},{"version":"18w20c","version_type":"snapshot","date":"2018-05-17T14:06:56Z","major":false},{"version":"18w20b","version_type":"snapshot","date":"2018-05-16T14:35:35Z","major":false},{"version":"18w20a","version_type":"snapshot","date":"2018-05-15T14:02:25Z","major":false},{"version":"18w19b","version_type":"snapshot","date":"2018-05-09T10:00:51Z","major":false},{"version":"18w19a","version_type":"snapshot","date":"2018-05-08T13:05:19Z","major":false},{"version":"18w16a","version_type":"snapshot","date":"2018-04-19T14:46:35Z","major":false},{"version":"18w15a","version_type":"snapshot","date":"2018-04-11T14:54:22Z","major":false},{"version":"18w14b","version_type":"snapshot","date":"2018-04-05T14:44:02Z","major":false},{"version":"18w14a","version_type":"snapshot","date":"2018-04-04T14:36:14Z","major":false},{"version":"18w11a","version_type":"snapshot","date":"2018-03-13T15:10:59Z","major":false},{"version":"18w10d","version_type":"snapshot","date":"2018-03-09T15:19:12Z","major":false},{"version":"18w10c","version_type":"snapshot","date":"2018-03-08T15:29:23Z","major":false},{"version":"18w10b","version_type":"snapshot","date":"2018-03-07T15:56:01Z","major":false},{"version":"18w10a","version_type":"snapshot","date":"2018-03-06T15:54:24Z","major":false},{"version":"18w09a","version_type":"snapshot","date":"2018-03-01T14:15:10Z","major":false},{"version":"18w08b","version_type":"snapshot","date":"2018-02-22T15:44:49Z","major":false},{"version":"18w08a","version_type":"snapshot","date":"2018-02-21T14:59:00Z","major":false},{"version":"18w07c","version_type":"snapshot","date":"2018-02-16T13:23:32Z","major":false},{"version":"18w07b","version_type":"snapshot","date":"2018-02-15T14:28:42Z","major":false},{"version":"18w07a","version_type":"snapshot","date":"2018-02-14T17:34:13Z","major":false},{"version":"18w06a","version_type":"snapshot","date":"2018-02-09T12:09:55Z","major":false},{"version":"18w05a","version_type":"snapshot","date":"2018-01-31T13:32:09Z","major":false},{"version":"18w03b","version_type":"snapshot","date":"2018-01-17T15:09:14Z","major":false},{"version":"18w03a","version_type":"snapshot","date":"2018-01-17T14:25:24Z","major":false},{"version":"18w02a","version_type":"snapshot","date":"2018-01-10T11:54:55Z","major":false},{"version":"18w01a","version_type":"snapshot","date":"2018-01-03T13:29:30Z","major":false},{"version":"17w50a","version_type":"snapshot","date":"2017-12-11T15:28:08Z","major":false},{"version":"17w49b","version_type":"snapshot","date":"2017-12-07T15:29:54Z","major":false},{"version":"17w49a","version_type":"snapshot","date":"2017-12-06T14:24:30Z","major":false},{"version":"17w48a","version_type":"snapshot","date":"2017-11-27T15:36:33Z","major":false},{"version":"17w47b","version_type":"snapshot","date":"2017-11-23T15:30:12Z","major":false},{"version":"17w47a","version_type":"snapshot","date":"2017-11-22T12:40:05Z","major":false},{"version":"17w46a","version_type":"snapshot","date":"2017-11-15T15:21:55Z","major":false},{"version":"17w45b","version_type":"snapshot","date":"2017-11-10T10:07:02Z","major":false},{"version":"17w45a","version_type":"snapshot","date":"2017-11-08T15:48:00Z","major":false},{"version":"17w43b","version_type":"snapshot","date":"2017-10-26T13:36:22Z","major":false},{"version":"17w43a","version_type":"snapshot","date":"2017-10-25T14:43:50Z","major":false},{"version":"1.12.2","version_type":"release","date":"2017-09-18T08:39:46Z","major":true},{"version":"1.12.2-pre2","version_type":"snapshot","date":"2017-09-15T08:21:17Z","major":false},{"version":"1.12.2-pre1","version_type":"snapshot","date":"2017-09-13T13:33:31Z","major":false},{"version":"1.12.1","version_type":"release","date":"2017-08-03T12:40:39Z","major":false},{"version":"1.12.1-pre1","version_type":"snapshot","date":"2017-08-02T10:53:55Z","major":false},{"version":"17w31a","version_type":"snapshot","date":"2017-08-01T09:41:23Z","major":false},{"version":"1.12","version_type":"release","date":"2017-06-02T13:50:27Z","major":false},{"version":"1.12-pre7","version_type":"snapshot","date":"2017-05-31T10:56:41Z","major":false},{"version":"1.12-pre6","version_type":"snapshot","date":"2017-05-29T11:45:12Z","major":false},{"version":"1.12-pre5","version_type":"snapshot","date":"2017-05-19T07:43:28Z","major":false},{"version":"1.12-pre4","version_type":"snapshot","date":"2017-05-18T12:28:16Z","major":false},{"version":"1.12-pre3","version_type":"snapshot","date":"2017-05-17T14:09:18Z","major":false},{"version":"1.12-pre2","version_type":"snapshot","date":"2017-05-11T12:11:12Z","major":false},{"version":"1.12-pre1","version_type":"snapshot","date":"2017-05-10T11:37:17Z","major":false},{"version":"17w18b","version_type":"snapshot","date":"2017-05-04T13:40:22Z","major":false},{"version":"17w18a","version_type":"snapshot","date":"2017-05-03T14:50:23Z","major":false},{"version":"17w17b","version_type":"snapshot","date":"2017-04-27T13:24:23Z","major":false},{"version":"17w17a","version_type":"snapshot","date":"2017-04-26T13:48:23Z","major":false},{"version":"17w16b","version_type":"snapshot","date":"2017-04-21T12:02:59Z","major":false},{"version":"17w16a","version_type":"snapshot","date":"2017-04-20T13:58:35Z","major":false},{"version":"17w15a","version_type":"snapshot","date":"2017-04-12T09:30:50Z","major":false},{"version":"17w14a","version_type":"snapshot","date":"2017-04-05T13:58:01Z","major":false},{"version":"17w13b","version_type":"snapshot","date":"2017-03-31T11:06:35Z","major":false},{"version":"17w13a","version_type":"snapshot","date":"2017-03-30T09:32:19Z","major":false},{"version":"17w06a","version_type":"snapshot","date":"2017-02-08T13:16:29Z","major":false},{"version":"1.11.2","version_type":"release","date":"2016-12-21T09:29:12Z","major":true},{"version":"1.11.1","version_type":"release","date":"2016-12-20T14:05:34Z","major":false},{"version":"16w50a","version_type":"snapshot","date":"2016-12-15T14:38:52Z","major":false},{"version":"1.11","version_type":"release","date":"2016-11-14T14:34:40Z","major":false},{"version":"1.11-pre1","version_type":"snapshot","date":"2016-11-08T13:42:50Z","major":false},{"version":"16w44a","version_type":"snapshot","date":"2016-11-03T14:17:11Z","major":false},{"version":"16w43a","version_type":"snapshot","date":"2016-10-27T09:00:51Z","major":false},{"version":"16w42a","version_type":"snapshot","date":"2016-10-19T11:17:47Z","major":false},{"version":"16w41a","version_type":"snapshot","date":"2016-10-13T14:28:35Z","major":false},{"version":"16w40a","version_type":"snapshot","date":"2016-10-06T13:57:59Z","major":false},{"version":"16w39c","version_type":"snapshot","date":"2016-09-30T14:11:48Z","major":false},{"version":"16w39b","version_type":"snapshot","date":"2016-09-29T14:39:39Z","major":false},{"version":"16w39a","version_type":"snapshot","date":"2016-09-28T13:32:06Z","major":false},{"version":"16w38a","version_type":"snapshot","date":"2016-09-20T12:40:49Z","major":false},{"version":"16w36a","version_type":"snapshot","date":"2016-09-08T14:55:10Z","major":false},{"version":"16w35a","version_type":"snapshot","date":"2016-09-01T13:13:38Z","major":false},{"version":"16w33a","version_type":"snapshot","date":"2016-08-17T12:48:57Z","major":false},{"version":"16w32b","version_type":"snapshot","date":"2016-08-11T14:34:29Z","major":false},{"version":"16w32a","version_type":"snapshot","date":"2016-08-10T12:30:10Z","major":false},{"version":"1.10.2","version_type":"release","date":"2016-06-23T09:17:32Z","major":true},{"version":"1.10.1","version_type":"release","date":"2016-06-22T10:13:22Z","major":false},{"version":"1.10","version_type":"release","date":"2016-06-08T13:06:18Z","major":false},{"version":"1.10-pre2","version_type":"snapshot","date":"2016-06-07T14:56:34Z","major":false},{"version":"1.10-pre1","version_type":"snapshot","date":"2016-06-02T14:45:16Z","major":false},{"version":"16w21b","version_type":"snapshot","date":"2016-05-26T12:47:22Z","major":false},{"version":"16w21a","version_type":"snapshot","date":"2016-05-25T13:12:09Z","major":false},{"version":"16w20a","version_type":"snapshot","date":"2016-05-18T12:45:14Z","major":false},{"version":"1.9.4","version_type":"release","date":"2016-05-10T10:17:16Z","major":true},{"version":"1.9.3","version_type":"release","date":"2016-05-10T08:33:35Z","major":false},{"version":"1.9.3-pre3","version_type":"snapshot","date":"2016-05-03T09:28:11Z","major":false},{"version":"1.9.3-pre2","version_type":"snapshot","date":"2016-04-27T13:33:20Z","major":false},{"version":"1.9.3-pre1","version_type":"snapshot","date":"2016-04-21T12:41:42Z","major":false},{"version":"16w15b","version_type":"snapshot","date":"2016-04-13T13:56:41Z","major":false},{"version":"16w15a","version_type":"snapshot","date":"2016-04-11T14:38:28Z","major":false},{"version":"16w14a","version_type":"snapshot","date":"2016-04-07T12:47:51Z","major":false},{"version":"1.RV-Pre1","version_type":"snapshot","date":"2016-03-31T16:18:53Z","major":false},{"version":"1.9.2","version_type":"release","date":"2016-03-30T15:23:55Z","major":false},{"version":"1.9.1","version_type":"release","date":"2016-03-30T13:43:07Z","major":false},{"version":"1.9.1-pre3","version_type":"snapshot","date":"2016-03-11T09:20:36Z","major":false},{"version":"1.9.1-pre2","version_type":"snapshot","date":"2016-03-10T15:06:03Z","major":false},{"version":"1.9.1-pre1","version_type":"snapshot","date":"2016-03-09T16:27:29Z","major":false},{"version":"1.9","version_type":"release","date":"2016-02-29T13:49:54Z","major":false},{"version":"1.9-pre4","version_type":"snapshot","date":"2016-02-26T15:21:11Z","major":false},{"version":"1.9-pre3","version_type":"snapshot","date":"2016-02-24T15:52:36Z","major":false},{"version":"1.9-pre2","version_type":"snapshot","date":"2016-02-18T17:41:00Z","major":false},{"version":"1.9-pre1","version_type":"snapshot","date":"2016-02-17T15:23:19Z","major":false},{"version":"16w07b","version_type":"snapshot","date":"2016-02-16T15:22:39Z","major":false},{"version":"16w07a","version_type":"snapshot","date":"2016-02-15T15:48:46Z","major":false},{"version":"16w06a","version_type":"snapshot","date":"2016-02-10T15:06:41Z","major":false},{"version":"16w05b","version_type":"snapshot","date":"2016-02-04T15:28:02Z","major":false},{"version":"16w05a","version_type":"snapshot","date":"2016-02-03T15:48:38Z","major":false},{"version":"16w04a","version_type":"snapshot","date":"2016-01-28T15:37:24Z","major":false},{"version":"16w03a","version_type":"snapshot","date":"2016-01-20T14:29:24Z","major":false},{"version":"16w02a","version_type":"snapshot","date":"2016-01-13T15:15:16Z","major":false},{"version":"15w51b","version_type":"snapshot","date":"2015-12-17T15:30:41Z","major":false},{"version":"15w51a","version_type":"snapshot","date":"2015-12-17T14:02:37Z","major":false},{"version":"15w50a","version_type":"snapshot","date":"2015-12-09T15:35:57Z","major":false},{"version":"15w49b","version_type":"snapshot","date":"2015-12-03T15:23:22Z","major":false},{"version":"1.8.9","version_type":"release","date":"2015-12-03T09:24:39Z","major":true},{"version":"15w49a","version_type":"snapshot","date":"2015-12-02T15:09:37Z","major":false},{"version":"15w47c","version_type":"snapshot","date":"2015-11-20T12:46:56Z","major":false},{"version":"15w47b","version_type":"snapshot","date":"2015-11-19T14:48:03Z","major":false},{"version":"15w47a","version_type":"snapshot","date":"2015-11-18T15:53:41Z","major":false},{"version":"15w46a","version_type":"snapshot","date":"2015-11-12T12:11:47Z","major":false},{"version":"15w45a","version_type":"snapshot","date":"2015-11-05T13:04:07Z","major":false},{"version":"15w44b","version_type":"snapshot","date":"2015-10-30T11:23:17Z","major":false},{"version":"15w44a","version_type":"snapshot","date":"2015-10-28T15:09:36Z","major":false},{"version":"15w43c","version_type":"snapshot","date":"2015-10-23T15:35:55Z","major":false},{"version":"15w43b","version_type":"snapshot","date":"2015-10-22T14:11:58Z","major":false},{"version":"15w43a","version_type":"snapshot","date":"2015-10-21T15:28:52Z","major":false},{"version":"15w42a","version_type":"snapshot","date":"2015-10-14T13:25:14Z","major":false},{"version":"15w41b","version_type":"snapshot","date":"2015-10-07T14:07:26Z","major":false},{"version":"15w41a","version_type":"snapshot","date":"2015-10-07T13:19:53Z","major":false},{"version":"15w40b","version_type":"snapshot","date":"2015-09-30T14:13:54Z","major":false},{"version":"15w40a","version_type":"snapshot","date":"2015-09-30T13:13:54Z","major":false},{"version":"15w39c","version_type":"snapshot","date":"2015-09-23T13:13:54Z","major":false},{"version":"15w39b","version_type":"snapshot","date":"2015-09-21T15:09:52Z","major":false},{"version":"15w39a","version_type":"snapshot","date":"2015-09-21T13:16:32Z","major":false},{"version":"15w38b","version_type":"snapshot","date":"2015-09-17T14:22:31Z","major":false},{"version":"15w38a","version_type":"snapshot","date":"2015-09-16T14:22:31Z","major":false},{"version":"15w37a","version_type":"snapshot","date":"2015-09-10T14:22:31Z","major":false},{"version":"15w36d","version_type":"snapshot","date":"2015-09-04T14:22:31Z","major":false},{"version":"15w36c","version_type":"snapshot","date":"2015-09-02T16:07:22Z","major":false},{"version":"15w36b","version_type":"snapshot","date":"2015-09-02T15:36:25Z","major":false},{"version":"15w36a","version_type":"snapshot","date":"2015-09-02T14:46:40Z","major":false},{"version":"15w35e","version_type":"snapshot","date":"2015-08-28T18:14:02Z","major":false},{"version":"15w35d","version_type":"snapshot","date":"2015-08-28T16:25:35Z","major":false},{"version":"15w35c","version_type":"snapshot","date":"2015-08-28T11:21:00Z","major":false},{"version":"15w35b","version_type":"snapshot","date":"2015-08-24T15:39:18Z","major":false},{"version":"15w35a","version_type":"snapshot","date":"2015-08-24T14:19:31Z","major":false},{"version":"15w34d","version_type":"snapshot","date":"2015-08-21T15:27:55Z","major":false},{"version":"15w34c","version_type":"snapshot","date":"2015-08-21T12:45:20Z","major":false},{"version":"15w34b","version_type":"snapshot","date":"2015-08-20T14:00:03Z","major":false},{"version":"15w34a","version_type":"snapshot","date":"2015-08-19T12:56:01Z","major":false},{"version":"15w33c","version_type":"snapshot","date":"2015-08-14T13:10:46Z","major":false},{"version":"15w33b","version_type":"snapshot","date":"2015-08-12T15:29:11Z","major":false},{"version":"15w33a","version_type":"snapshot","date":"2015-08-12T14:05:07Z","major":false},{"version":"15w32c","version_type":"snapshot","date":"2015-08-07T14:08:17Z","major":false},{"version":"15w32b","version_type":"snapshot","date":"2015-08-06T13:51:47Z","major":false},{"version":"15w32a","version_type":"snapshot","date":"2015-08-05T12:22:42Z","major":false},{"version":"15w31c","version_type":"snapshot","date":"2015-07-31T13:45:08Z","major":false},{"version":"15w31b","version_type":"snapshot","date":"2015-07-30T13:38:32Z","major":false},{"version":"15w31a","version_type":"snapshot","date":"2015-07-29T13:24:33Z","major":false},{"version":"1.8.8","version_type":"release","date":"2015-07-27T10:31:28Z","major":false},{"version":"1.8.7","version_type":"release","date":"2015-06-05T10:10:44Z","major":false},{"version":"1.8.6","version_type":"release","date":"2015-05-25T10:31:19Z","major":false},{"version":"1.8.5","version_type":"release","date":"2015-05-22T11:15:28Z","major":false},{"version":"1.8.4","version_type":"release","date":"2015-04-17T11:37:50Z","major":false},{"version":"15w14a","version_type":"snapshot","date":"2015-04-01T07:08:00Z","major":false},{"version":"1.8.3","version_type":"release","date":"2015-02-20T14:00:09Z","major":false},{"version":"1.8.2","version_type":"release","date":"2015-02-19T15:47:29Z","major":false},{"version":"1.8.2-pre7","version_type":"snapshot","date":"2015-02-16T13:01:35Z","major":false},{"version":"1.8.2-pre6","version_type":"snapshot","date":"2015-01-30T11:58:24Z","major":false},{"version":"1.8.2-pre5","version_type":"snapshot","date":"2015-01-26T15:03:24Z","major":false},{"version":"1.8.2-pre4","version_type":"snapshot","date":"2015-01-16T14:19:59Z","major":false},{"version":"1.8.2-pre3","version_type":"snapshot","date":"2015-01-15T16:44:33Z","major":false},{"version":"1.8.2-pre2","version_type":"snapshot","date":"2015-01-15T15:07:31Z","major":false},{"version":"1.8.2-pre1","version_type":"snapshot","date":"2014-12-18T11:29:41Z","major":false},{"version":"1.8.1","version_type":"release","date":"2014-11-24T14:13:31Z","major":false},{"version":"1.8.1-pre5","version_type":"snapshot","date":"2014-11-19T14:30:48Z","major":false},{"version":"1.8.1-pre4","version_type":"snapshot","date":"2014-11-06T14:10:50Z","major":false},{"version":"1.8.1-pre3","version_type":"snapshot","date":"2014-10-23T12:59:42Z","major":false},{"version":"1.8.1-pre2","version_type":"snapshot","date":"2014-10-16T14:19:27Z","major":false},{"version":"1.8.1-pre1","version_type":"snapshot","date":"2014-10-15T13:25:11Z","major":false},{"version":"1.8","version_type":"release","date":"2014-09-02T08:24:35Z","major":false},{"version":"1.8-pre3","version_type":"snapshot","date":"2014-08-28T09:40:54Z","major":false},{"version":"1.8-pre2","version_type":"snapshot","date":"2014-08-25T14:52:18Z","major":false},{"version":"1.8-pre1","version_type":"snapshot","date":"2014-08-21T13:56:26Z","major":false},{"version":"14w34d","version_type":"snapshot","date":"2014-08-20T12:46:59Z","major":false},{"version":"14w34c","version_type":"snapshot","date":"2014-08-19T15:31:24Z","major":false},{"version":"14w34b","version_type":"snapshot","date":"2014-08-18T15:14:28Z","major":false},{"version":"14w34a","version_type":"snapshot","date":"2014-08-18T14:14:11Z","major":false},{"version":"14w33c","version_type":"snapshot","date":"2014-08-15T18:00:26Z","major":false},{"version":"14w33b","version_type":"snapshot","date":"2014-08-15T16:23:51Z","major":false},{"version":"14w33a","version_type":"snapshot","date":"2014-08-13T15:08:14Z","major":false},{"version":"14w32d","version_type":"snapshot","date":"2014-08-08T15:13:41Z","major":false},{"version":"14w32c","version_type":"snapshot","date":"2014-08-08T14:11:20Z","major":false},{"version":"14w32b","version_type":"snapshot","date":"2014-08-07T14:45:17Z","major":false},{"version":"14w32a","version_type":"snapshot","date":"2014-08-06T14:01:16Z","major":false},{"version":"14w31a","version_type":"snapshot","date":"2014-07-30T15:38:05Z","major":false},{"version":"14w30c","version_type":"snapshot","date":"2014-07-24T14:39:09Z","major":false},{"version":"14w30b","version_type":"snapshot","date":"2014-07-23T15:03:03Z","major":false},{"version":"14w30a","version_type":"snapshot","date":"2014-07-23T13:15:42Z","major":false},{"version":"14w29b","version_type":"snapshot","date":"2014-07-16T17:27:40Z","major":false},{"version":"14w29a","version_type":"snapshot","date":"2014-07-16T15:18:17Z","major":false},{"version":"14w28b","version_type":"snapshot","date":"2014-07-10T14:28:48Z","major":false},{"version":"14w28a","version_type":"snapshot","date":"2014-07-09T15:42:36Z","major":false},{"version":"14w27b","version_type":"snapshot","date":"2014-07-02T18:34:56Z","major":false},{"version":"14w27a","version_type":"snapshot","date":"2014-07-02T16:07:20Z","major":false},{"version":"14w26c","version_type":"snapshot","date":"2014-06-26T15:05:03Z","major":false},{"version":"14w26b","version_type":"snapshot","date":"2014-06-25T15:08:39Z","major":false},{"version":"14w26a","version_type":"snapshot","date":"2014-06-25T13:59:27Z","major":false},{"version":"14w25b","version_type":"snapshot","date":"2014-06-19T12:29:48Z","major":false},{"version":"14w25a","version_type":"snapshot","date":"2014-06-18T15:52:28Z","major":false},{"version":"14w21b","version_type":"snapshot","date":"2014-05-22T15:17:55Z","major":false},{"version":"14w21a","version_type":"snapshot","date":"2014-05-22T14:44:33Z","major":false},{"version":"14w20b","version_type":"snapshot","date":"2014-05-15T16:47:21Z","major":false},{"version":"14w20a","version_type":"snapshot","date":"2014-05-15T14:01:20Z","major":false},{"version":"1.7.10","version_type":"release","date":"2014-05-14T17:29:23Z","major":true},{"version":"1.7.10-pre4","version_type":"snapshot","date":"2014-05-14T16:29:23Z","major":false},{"version":"1.7.10-pre3","version_type":"snapshot","date":"2014-05-14T15:29:23Z","major":false},{"version":"1.7.10-pre2","version_type":"snapshot","date":"2014-05-14T14:29:23Z","major":false},{"version":"1.7.10-pre1","version_type":"snapshot","date":"2014-05-14T13:29:23Z","major":false},{"version":"14w19a","version_type":"snapshot","date":"2014-05-08T14:24:19Z","major":false},{"version":"14w18b","version_type":"snapshot","date":"2014-05-02T11:38:17Z","major":false},{"version":"14w18a","version_type":"snapshot","date":"2014-04-30T10:25:35Z","major":false},{"version":"14w17a","version_type":"snapshot","date":"2014-04-24T15:44:49Z","major":false},{"version":"14w11b","version_type":"snapshot","date":"2014-04-14T14:36:19Z","major":false},{"version":"1.7.9","version_type":"release","date":"2014-04-14T13:29:23Z","major":false},{"version":"1.7.8","version_type":"release","date":"2014-04-09T07:58:16Z","major":false},{"version":"1.7.7","version_type":"release","date":"2014-04-09T07:52:16Z","major":false},{"version":"1.7.6","version_type":"release","date":"2014-04-09T07:52:06Z","major":false},{"version":"14w11a","version_type":"snapshot","date":"2014-03-13T14:02:50Z","major":false},{"version":"1.7.6-pre2","version_type":"snapshot","date":"2014-03-08T11:00:01Z","major":false},{"version":"1.7.6-pre1","version_type":"snapshot","date":"2014-03-08T11:00:00Z","major":false},{"version":"14w10c","version_type":"snapshot","date":"2014-03-07T13:49:55Z","major":false},{"version":"14w10b","version_type":"snapshot","date":"2014-03-06T16:25:39Z","major":false},{"version":"14w10a","version_type":"snapshot","date":"2014-03-06T14:23:04Z","major":false},{"version":"14w08a","version_type":"snapshot","date":"2014-02-26T17:00:00Z","major":false},{"version":"1.7.5","version_type":"release","date":"2014-02-26T09:22:17Z","major":false},{"version":"14w07a","version_type":"snapshot","date":"2014-02-14T11:05:07Z","major":false},{"version":"14w06b","version_type":"snapshot","date":"2014-02-06T17:30:42Z","major":false},{"version":"14w06a","version_type":"snapshot","date":"2014-02-06T14:30:17Z","major":false},{"version":"14w05b","version_type":"snapshot","date":"2014-01-31T14:05:50Z","major":false},{"version":"14w05a","version_type":"snapshot","date":"2014-01-30T15:32:41Z","major":false},{"version":"14w04b","version_type":"snapshot","date":"2014-01-24T15:48:46Z","major":false},{"version":"14w04a","version_type":"snapshot","date":"2014-01-23T15:26:13Z","major":false},{"version":"14w03b","version_type":"snapshot","date":"2014-01-16T16:36:19Z","major":false},{"version":"14w03a","version_type":"snapshot","date":"2014-01-16T14:45:13Z","major":false},{"version":"14w02c","version_type":"snapshot","date":"2014-01-10T15:42:36Z","major":false},{"version":"14w02b","version_type":"snapshot","date":"2014-01-09T15:45:55Z","major":false},{"version":"14w02a","version_type":"snapshot","date":"2014-01-09T14:44:41Z","major":false},{"version":"1.7.4","version_type":"release","date":"2013-12-09T12:28:10Z","major":false},{"version":"1.7.3","version_type":"release","date":"2013-12-06T13:55:34Z","major":false},{"version":"13w49a","version_type":"snapshot","date":"2013-12-05T14:34:41Z","major":false},{"version":"13w48b","version_type":"snapshot","date":"2013-11-26T18:36:08Z","major":false},{"version":"13w48a","version_type":"snapshot","date":"2013-11-25T16:53:39Z","major":false},{"version":"13w47e","version_type":"snapshot","date":"2013-11-22T15:16:38Z","major":false},{"version":"13w47d","version_type":"snapshot","date":"2013-11-22T13:51:15Z","major":false},{"version":"13w47c","version_type":"snapshot","date":"2013-11-21T17:10:33Z","major":false},{"version":"13w47b","version_type":"snapshot","date":"2013-11-21T16:57:41Z","major":false},{"version":"13w47a","version_type":"snapshot","date":"2013-11-21T15:59:58Z","major":false},{"version":"1.7.2","version_type":"release","date":"2013-10-25T13:00:00Z","major":false},{"version":"1.7.1","version_type":"snapshot","date":"2013-10-23T12:01:07Z","major":false},{"version":"1.7","version_type":"snapshot","date":"2013-10-22T15:04:05Z","major":false},{"version":"13w43a","version_type":"snapshot","date":"2013-10-21T16:34:47Z","major":false},{"version":"13w42b","version_type":"snapshot","date":"2013-10-18T16:34:08Z","major":false},{"version":"13w42a","version_type":"snapshot","date":"2013-10-17T18:33:05Z","major":false},{"version":"13w41b","version_type":"snapshot","date":"2013-10-11T15:09:17Z","major":false},{"version":"13w41a","version_type":"snapshot","date":"2013-10-10T14:21:43Z","major":false},{"version":"13w39b","version_type":"snapshot","date":"2013-09-27T12:15:58Z","major":false},{"version":"13w39a","version_type":"snapshot","date":"2013-09-26T15:11:19Z","major":false},{"version":"13w38c","version_type":"snapshot","date":"2013-09-20T15:11:34Z","major":false},{"version":"13w38b","version_type":"snapshot","date":"2013-09-20T13:45:40Z","major":false},{"version":"13w38a","version_type":"snapshot","date":"2013-09-19T16:34:21Z","major":false},{"version":"1.6.4","version_type":"release","date":"2013-09-19T15:52:37Z","major":true},{"version":"13w37b","version_type":"snapshot","date":"2013-09-13T10:54:42Z","major":false},{"version":"1.6.3","version_type":"snapshot","date":"2013-09-13T10:54:41Z","major":false},{"version":"13w37a","version_type":"snapshot","date":"2013-09-12T14:23:14Z","major":false},{"version":"13w36b","version_type":"snapshot","date":"2013-09-06T12:31:58Z","major":false},{"version":"13w36a","version_type":"snapshot","date":"2013-09-05T13:05:40Z","major":false},{"version":"1.6.2","version_type":"release","date":"2013-07-05T13:09:02Z","major":false},{"version":"1.6.1","version_type":"release","date":"2013-06-28T14:48:41Z","major":false},{"version":"1.6","version_type":"snapshot","date":"2013-06-25T13:08:56Z","major":false},{"version":"13w26a","version_type":"snapshot","date":"2013-06-24T16:06:06Z","major":false},{"version":"13w25c","version_type":"snapshot","date":"2013-06-20T15:23:37Z","major":false},{"version":"13w25b","version_type":"snapshot","date":"2013-06-18T15:13:27Z","major":false},{"version":"13w25a","version_type":"snapshot","date":"2013-06-17T14:08:06Z","major":false},{"version":"13w24b","version_type":"snapshot","date":"2013-06-14T12:19:13Z","major":false},{"version":"13w24a","version_type":"snapshot","date":"2013-06-13T15:32:23Z","major":false},{"version":"13w23b","version_type":"snapshot","date":"2013-06-08T00:32:01Z","major":false},{"version":"13w23a","version_type":"snapshot","date":"2013-06-07T16:04:20Z","major":false},{"version":"13w22a","version_type":"snapshot","date":"2013-05-30T14:38:40Z","major":false},{"version":"13w21b","version_type":"snapshot","date":"2013-05-27T08:50:42Z","major":false},{"version":"13w21a","version_type":"snapshot","date":"2013-05-23T15:38:28Z","major":false},{"version":"13w19a","version_type":"snapshot","date":"2013-05-10T14:48:02Z","major":false},{"version":"13w18c","version_type":"snapshot","date":"2013-05-03T09:19:35Z","major":false},{"version":"13w18b","version_type":"snapshot","date":"2013-05-02T17:12:25Z","major":false},{"version":"13w18a","version_type":"snapshot","date":"2013-05-02T15:45:59Z","major":false},{"version":"13w17a","version_type":"snapshot","date":"2013-04-25T15:50:00Z","major":false},{"version":"1.5.2","version_type":"release","date":"2013-04-25T15:45:00Z","major":true},{"version":"13w16b","version_type":"snapshot","date":"2013-04-23T21:51:22Z","major":false},{"version":"13w16a","version_type":"snapshot","date":"2013-04-21T12:49:30Z","major":false},{"version":"1.5.1","version_type":"release","date":"2013-03-20T10:00:00Z","major":false},{"version":"1.5","version_type":"snapshot","date":"2013-03-06T22:00:00Z","major":false},{"version":"1.4.7","version_type":"release","date":"2012-12-27T22:00:00Z","major":true},{"version":"1.4.6","version_type":"release","date":"2012-12-19T22:00:01Z","major":false},{"version":"1.4.5","version_type":"release","date":"2012-12-19T22:00:00Z","major":false},{"version":"1.4.4","version_type":"release","date":"2012-12-13T22:00:00Z","major":false},{"version":"1.4.3","version_type":"snapshot","date":"2012-11-30T22:00:00Z","major":false},{"version":"1.4.2","version_type":"release","date":"2012-11-24T22:00:00Z","major":false},{"version":"1.4.1","version_type":"snapshot","date":"2012-11-22T22:00:00Z","major":false},{"version":"1.4","version_type":"snapshot","date":"2012-11-18T22:00:00Z","major":false},{"version":"1.3.2","version_type":"release","date":"2012-08-15T22:00:00Z","major":true},{"version":"1.3.1","version_type":"release","date":"2012-07-31T22:00:00Z","major":false},{"version":"1.3","version_type":"snapshot","date":"2012-07-25T22:00:00Z","major":false},{"version":"1.2.5","version_type":"release","date":"2012-03-29T22:00:00Z","major":true},{"version":"1.2.4","version_type":"release","date":"2012-03-21T22:00:00Z","major":false},{"version":"1.2.3","version_type":"release","date":"2012-03-01T22:00:00Z","major":false},{"version":"1.2.2","version_type":"release","date":"2012-02-29T22:00:01Z","major":false},{"version":"1.2.1","version_type":"release","date":"2012-02-29T22:00:00Z","major":false},{"version":"1.1","version_type":"release","date":"2012-01-11T22:00:00Z","major":true},{"version":"1.0","version_type":"release","date":"2011-11-17T22:00:00Z","major":false},{"version":"b1.8.1","version_type":"beta","date":"2011-09-18T22:00:00Z","major":false},{"version":"b1.8","version_type":"beta","date":"2011-09-14T22:00:00Z","major":false},{"version":"b1.7.3","version_type":"beta","date":"2011-07-07T22:00:00Z","major":true},{"version":"b1.7.2","version_type":"beta","date":"2011-06-30T22:00:00Z","major":false},{"version":"b1.7","version_type":"beta","date":"2011-06-29T22:00:00Z","major":false},{"version":"b1.6.6","version_type":"beta","date":"2011-05-30T22:00:00Z","major":false},{"version":"b1.6.5","version_type":"beta","date":"2011-05-27T22:00:00Z","major":false},{"version":"b1.6.4","version_type":"beta","date":"2011-05-25T22:00:04Z","major":false},{"version":"b1.6.3","version_type":"beta","date":"2011-05-25T22:00:03Z","major":false},{"version":"b1.6.2","version_type":"beta","date":"2011-05-25T22:00:02Z","major":false},{"version":"b1.6.1","version_type":"beta","date":"2011-05-25T22:00:01Z","major":false},{"version":"b1.6","version_type":"beta","date":"2011-05-25T22:00:00Z","major":false},{"version":"b1.5_01","version_type":"beta","date":"2011-04-19T22:00:00Z","major":false},{"version":"b1.5","version_type":"beta","date":"2011-04-18T22:00:00Z","major":false},{"version":"b1.4_01","version_type":"beta","date":"2011-04-04T22:00:00Z","major":false},{"version":"b1.4","version_type":"beta","date":"2011-03-30T22:00:00Z","major":false},{"version":"b1.3_01","version_type":"beta","date":"2011-02-22T22:00:00Z","major":false},{"version":"b1.3b","version_type":"beta","date":"2011-02-21T22:00:00Z","major":false},{"version":"b1.2_02","version_type":"beta","date":"2011-01-20T22:00:00Z","major":false},{"version":"b1.2_01","version_type":"beta","date":"2011-01-13T22:00:00Z","major":false},{"version":"b1.2","version_type":"beta","date":"2011-01-12T22:00:00Z","major":false},{"version":"b1.1_02","version_type":"beta","date":"2010-12-21T22:00:01Z","major":false},{"version":"b1.1_01","version_type":"beta","date":"2010-12-21T22:00:00Z","major":false},{"version":"b1.0.2","version_type":"beta","date":"2010-12-20T22:00:00Z","major":false},{"version":"b1.0_01","version_type":"beta","date":"2010-12-19T22:00:01Z","major":false},{"version":"b1.0","version_type":"beta","date":"2010-12-19T22:00:00Z","major":false},{"version":"a1.2.6","version_type":"alpha","date":"2010-12-02T22:00:00Z","major":false},{"version":"a1.2.5","version_type":"alpha","date":"2010-11-30T22:00:00Z","major":false},{"version":"a1.2.4_01","version_type":"alpha","date":"2010-11-29T22:00:00Z","major":false},{"version":"a1.2.3_04","version_type":"alpha","date":"2010-11-25T22:00:00Z","major":false},{"version":"a1.2.3_02","version_type":"alpha","date":"2010-11-24T22:00:00Z","major":false},{"version":"a1.2.3_01","version_type":"alpha","date":"2010-11-23T22:00:01Z","major":false},{"version":"a1.2.3","version_type":"alpha","date":"2010-11-23T22:00:00Z","major":false},{"version":"a1.2.2b","version_type":"alpha","date":"2010-11-09T22:00:01Z","major":false},{"version":"a1.2.2a","version_type":"alpha","date":"2010-11-09T22:00:00Z","major":false},{"version":"a1.2.1_01","version_type":"alpha","date":"2010-11-04T22:00:01Z","major":false},{"version":"a1.2.1","version_type":"alpha","date":"2010-11-04T22:00:00Z","major":false},{"version":"a1.2.0_02","version_type":"alpha","date":"2010-11-03T22:00:00Z","major":false},{"version":"a1.2.0_01","version_type":"alpha","date":"2010-10-30T22:00:00Z","major":false},{"version":"a1.2.0","version_type":"alpha","date":"2010-10-29T22:00:00Z","major":false},{"version":"a1.1.2_01","version_type":"alpha","date":"2010-09-22T22:00:00Z","major":false},{"version":"a1.1.2","version_type":"alpha","date":"2010-09-19T22:00:00Z","major":false},{"version":"a1.1.0","version_type":"alpha","date":"2010-09-12T22:00:00Z","major":false},{"version":"a1.0.17_04","version_type":"alpha","date":"2010-08-22T22:00:00Z","major":false},{"version":"a1.0.17_02","version_type":"alpha","date":"2010-08-19T22:00:00Z","major":false},{"version":"a1.0.16","version_type":"alpha","date":"2010-08-11T22:00:00Z","major":false},{"version":"a1.0.15","version_type":"alpha","date":"2010-08-03T22:00:00Z","major":false},{"version":"a1.0.14","version_type":"alpha","date":"2010-07-29T22:00:00Z","major":false},{"version":"a1.0.11","version_type":"alpha","date":"2010-07-22T22:00:00Z","major":false},{"version":"a1.0.5_01","version_type":"alpha","date":"2010-07-12T22:00:00Z","major":false},{"version":"a1.0.4","version_type":"alpha","date":"2010-07-08T22:00:00Z","major":false},{"version":"inf-20100618","version_type":"alpha","date":"2010-06-15T22:00:00Z","major":false},{"version":"c0.30_01c","version_type":"alpha","date":"2009-12-21T22:00:00Z","major":false},{"version":"c0.0.13a","version_type":"alpha","date":"2009-05-30T22:00:00Z","major":false},{"version":"c0.0.13a_03","version_type":"alpha","date":"2009-05-21T22:00:00Z","major":false},{"version":"c0.0.11a","version_type":"alpha","date":"2009-05-16T22:00:00Z","major":false},{"version":"rd-161348","version_type":"alpha","date":"2009-05-16T11:48:00Z","major":false},{"version":"rd-160052","version_type":"alpha","date":"2009-05-15T22:52:00Z","major":false},{"version":"rd-20090515","version_type":"alpha","date":"2009-05-14T22:00:00Z","major":false},{"version":"rd-132328","version_type":"alpha","date":"2009-05-13T21:28:00Z","major":false},{"version":"rd-132211","version_type":"alpha","date":"2009-05-13T20:11:00Z","major":false}] \ No newline at end of file diff --git a/theseus_gui/generated/openapi.ts b/theseus_gui/generated/openapi.ts deleted file mode 100644 index 81edc34f1..000000000 --- a/theseus_gui/generated/openapi.ts +++ /dev/null @@ -1,7876 +0,0 @@ -/** - * This file was auto-generated by openapi-typescript. - * Do not make direct changes to the file. - */ - -export interface paths { - "/search": { - get: operations["searchProjects"]; - }; - "/project/{id|slug}": { - get: operations["getProject"]; - delete: operations["deleteProject"]; - patch: operations["modifyProject"]; - }; - "/projects": { - get: operations["getProjects"]; - }; - "/project": { - post: operations["createProject"]; - }; - "/project/{id|slug}/check": { - get: operations["checkProjectValidity"]; - }; - "/project/{id|slug}/gallery": { - /** Modrinth allows you to upload files of up to 5MiB to a project's gallery. */ - post: operations["addGalleryImage"]; - delete: operations["deleteGalleryImage"]; - patch: operations["modifyGalleryImage"]; - }; - "/project/{id|slug}/dependencies": { - get: operations["getDependencies"]; - }; - "/project/{id|slug}/follow": { - post: operations["followProject"]; - delete: operations["unfollowProject"]; - }; - "/project/{id|slug}/version": { - get: operations["getProjectVersions"]; - }; - "/version/{id}": { - get: operations["getVersion"]; - delete: operations["deleteVersion"]; - patch: operations["modifyVersion"]; - }; - "/version": { - /** Project files are attached. `.mrpack` and `.jar` files are accepted. */ - post: operations["createVersion"]; - }; - "/versions": { - get: operations["getVersions"]; - }; - "/version/{id}/file": { - /** Project files are attached. `.mrpack` and `.jar` files are accepted. */ - post: operations["addFilesToVersion"]; - }; - "/version_file/{hash}": { - get: operations["versionFromHash"]; - delete: operations["deleteFileFromHash"]; - }; - "/version_file/{hash}/update": { - post: operations["getLatestVersionFromHash"]; - }; - "/version_files": { - /** This is the same as [`/version_file/{hash}`](#operation/versionFromHash) except it accepts multiple hashes. */ - post: operations["versionsFromHashes"]; - }; - "/version_files/update": { - /** This is the same as [`/version_file/{hash}/update`](#operation/getLatestVersionFromHash) except it accepts multiple hashes. */ - post: operations["getLatestVersionsFromHashes"]; - }; - "/user/{id|username}": { - get: operations["getUser"]; - delete: operations["deleteUser"]; - patch: operations["modifyUser"]; - }; - "/user": { - get: operations["getUserFromAuth"]; - }; - "/users": { - get: operations["getUsers"]; - }; - "/user/{id|username}/icon": { - /** By default, Modrinth uses a user's GitHub icon. This route allows it to be changed to a custom one. The new avatar may be up to 2MiB in size. */ - patch: operations["changeUserIcon"]; - }; - "/user/{id|username}/projects": { - get: operations["getUserProjects"]; - }; - "/user/{id|username}/notifications": { - /** Notifications can be project updates or team invites */ - get: operations["getNotifications"]; - }; - "/user/{id|username}/follows": { - get: operations["getFollowedProjects"]; - }; - "/report": { - get: operations["getReports"]; - /** Bring a project, user, or version to the attention of the moderators by reporting it. You must be logged in to report anything. */ - post: operations["submitReport"]; - }; - "/project/{id|slug}/members": { - get: operations["getProjectTeamMembers"]; - }; - "/team/{id}/members": { - get: operations["getTeamMembers"]; - post: operations["addTeamMember"]; - }; - "/team/{id}/join": { - post: operations["joinTeam"]; - }; - "/team/{team_id}/members/{user_id}": { - delete: operations["deleteTeamMember"]; - patch: operations["modifyTeamMember"]; - }; - "/team/{id}/owner": { - post: operations["transferTeamOwnership"]; - }; - "/tag/category": { - /** Gets an array of categories, their icons, and applicable project types */ - get: operations["categoryList"]; - }; - "/tag/loader": { - /** Gets an array of loaders, their icons, and supported project types */ - get: operations["loaderList"]; - }; - "/tag/game_version": { - /** Gets an array of game versions and information about them */ - get: operations["versionList"]; - }; - "/tag/license": { - /** Gets an array of licenses and information about them */ - get: operations["licenseList"]; - }; - "/tag/donation_platform": { - /** Gets an array of donation platforms and information about them */ - get: operations["donationPlatformList"]; - }; - "/tag/report_type": { - /** Gets an array of valid report types */ - get: operations["reportTypeList"]; - }; - "/moderation/projects": { - get: operations["getModerationProjects"]; - }; -} - -export interface components { - schemas: { - BaseVersion: { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: "required" | "optional" | "incompatible" | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - }; - EditableVersion: { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: "required" | "optional" | "incompatible" | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & { - /** - * @description The hash format and the hash of the new primary file - * @example [ - * "sha1", - * "aaaabbbbccccddddeeeeffffgggghhhhiiiijjjj" - * ] - */ - primary_file?: string[]; - }; - CreatableVersion: { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: "required" | "optional" | "incompatible" | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - file_parts: string[]; - /** @description The multipart field name of the primary file */ - primary_file?: string; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }); - Version: { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: "required" | "optional" | "incompatible" | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }); - BaseProject: { - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - }; - ServerRenderedProject: { - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }; - ProjectResult: ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & { - /** - * @description The ID of the project - * @example AABBCCDD - */ - project_id: string; - /** - * @description The username of the project's author - * @example my_user - */ - author: string; - /** - * @description A list of the minecraft versions supported by the project - * @example [ - * "1.8", - * "1.8.9" - * ] - */ - versions: string[]; - /** @description The total number of users following the project */ - follows: number; - /** - * Format: date-time - * @description The date the project was created - */ - date_created: string; - /** - * Format: date-time - * @description The date the project was last modified - */ - date_modified: string; - /** - * @description The latest version of minecraft that this project supports - * @example 1.8.9 - */ - latest_version?: string; - /** - * @description The license of the project - * @example mit - */ - license: string; - /** - * @description All gallery images attached to the project - * @example [ - * "https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png", - * "https://cdn.modrinth.com/data/AABBCCDD/images/c21776867afb6046fdc3c21dbcf5cc50ae27a236.png" - * ] - */ - gallery?: string[]; - }; - NonSearchProject: { - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }; - ModifiableProject: ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & { - /** - * @description The license ID of a project, retrieved from the license tag route - * @example lgpl-3 - */ - license_id?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - license_url?: string | null; - }; - EditableProject: (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & { - /** - * @description The license ID of a project, retrieved from the license tag route - * @example lgpl-3 - */ - license_id?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - license_url?: string | null; - }) & { - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status?: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The title of the moderators' message for the project */ - moderation_message?: string | null; - /** @description The body of the moderators' message for the project */ - moderation_message_body?: string | null; - }; - CreatableProject: (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & { - /** - * @description The license ID of a project, retrieved from the license tag route - * @example lgpl-3 - */ - license_id?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - license_url?: string | null; - }) & - ({ - /** - * @example modpack - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description A list of initial versions to upload with the created project (required unless `is_draft` is true) */ - initial_versions?: ({ - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & { - /** - * @description The hash format and the hash of the new primary file - * @example [ - * "sha1", - * "aaaabbbbccccddddeeeeffffgggghhhhiiiijjjj" - * ] - */ - primary_file?: string[]; - })[]; - /** - * @description Whether the project should be saved as a draft instead of being sent to moderation for review - * @example true - */ - is_draft?: boolean; - gallery_items?: ({ - /** @description The name of the multipart item where the gallery media is located */ - item?: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured?: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - } | null)[]; - } & { - slug: unknown; - title: unknown; - description: unknown; - body: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - license_id: unknown; - }); - Project: ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & - ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & - ({ - /** - * @description The ID of the project, encoded as a base62 string - * @example AABBCCDD - */ - id: string; - /** - * @description The ID of the team that has ownership of this project - * @example MMNNOOPP - */ - team: string; - /** - * @deprecated - * @description The link to the long description of the project (only present for old projects) - * @default null - * @example null - */ - body_url?: string | null; - /** - * @description A message that a moderator sent regarding the project - * @example null - */ - moderator_message?: { - /** @description The message that a moderator has left for the project */ - message?: string; - /** @description The longer body of the message that a moderator has left for the project */ - body?: string | null; - } | null; - /** - * Format: date-time - * @description The date the project was published - */ - published: string; - /** - * Format: date-time - * @description The date the project was last updated - */ - updated: string; - /** @description The total number of users following the project */ - followers: number; - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The license of the project */ - license?: { - /** - * @description The license id of a project, retrieved from the licenses get route - * @example lgpl-3 - */ - id?: string; - /** - * @description The long name of a license - * @example GNU Lesser General Public License v3 - */ - name?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - url?: string | null; - }; - /** - * @description A list of the version IDs of the project (will never be empty unless `draft` status) - * @example [ - * "IIJJKKLL", - * "QQRRSSTT" - * ] - */ - versions?: string[]; - /** @description A list of images that have been uploaded to the project's gallery */ - gallery?: ({ - /** - * @description The URL of the gallery image - * @example https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png - */ - url: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - /** - * Format: date-time - * @description The date and time the gallery image was created - */ - created: string; - } | null)[]; - } & { - title: unknown; - description: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - slug: unknown; - body: unknown; - }); - ProjectDependencyList: { - /** @description Projects that the project depends upon */ - projects?: (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & - ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & - ({ - /** - * @description The ID of the project, encoded as a base62 string - * @example AABBCCDD - */ - id: string; - /** - * @description The ID of the team that has ownership of this project - * @example MMNNOOPP - */ - team: string; - /** - * @deprecated - * @description The link to the long description of the project (only present for old projects) - * @default null - * @example null - */ - body_url?: string | null; - /** - * @description A message that a moderator sent regarding the project - * @example null - */ - moderator_message?: { - /** @description The message that a moderator has left for the project */ - message?: string; - /** @description The longer body of the message that a moderator has left for the project */ - body?: string | null; - } | null; - /** - * Format: date-time - * @description The date the project was published - */ - published: string; - /** - * Format: date-time - * @description The date the project was last updated - */ - updated: string; - /** @description The total number of users following the project */ - followers: number; - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The license of the project */ - license?: { - /** - * @description The license id of a project, retrieved from the licenses get route - * @example lgpl-3 - */ - id?: string; - /** - * @description The long name of a license - * @example GNU Lesser General Public License v3 - */ - name?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - url?: string | null; - }; - /** - * @description A list of the version IDs of the project (will never be empty unless `draft` status) - * @example [ - * "IIJJKKLL", - * "QQRRSSTT" - * ] - */ - versions?: string[]; - /** @description A list of images that have been uploaded to the project's gallery */ - gallery?: ({ - /** - * @description The URL of the gallery image - * @example https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png - */ - url: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - /** - * Format: date-time - * @description The date and time the gallery image was created - */ - created: string; - } | null)[]; - } & { - title: unknown; - description: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - slug: unknown; - body: unknown; - }))[]; - /** @description Versions that the project depends upon */ - versions?: ({ - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }))[]; - }; - SearchResults: { - /** @description The list of results */ - hits: (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & { - /** - * @description The ID of the project - * @example AABBCCDD - */ - project_id: string; - /** - * @description The username of the project's author - * @example my_user - */ - author: string; - /** - * @description A list of the minecraft versions supported by the project - * @example [ - * "1.8", - * "1.8.9" - * ] - */ - versions: string[]; - /** @description The total number of users following the project */ - follows: number; - /** - * Format: date-time - * @description The date the project was created - */ - date_created: string; - /** - * Format: date-time - * @description The date the project was last modified - */ - date_modified: string; - /** - * @description The latest version of minecraft that this project supports - * @example 1.8.9 - */ - latest_version?: string; - /** - * @description The license of the project - * @example mit - */ - license: string; - /** - * @description All gallery images attached to the project - * @example [ - * "https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png", - * "https://cdn.modrinth.com/data/AABBCCDD/images/c21776867afb6046fdc3c21dbcf5cc50ae27a236.png" - * ] - */ - gallery?: string[]; - })[]; - /** - * @description The number of results that were skipped by the query - * @example 0 - */ - offset: number; - /** - * @description The number of results that were returned by the query - * @example 10 - */ - limit: number; - /** - * @description The total number of results that match the query - * @example 10 - */ - total_hits: number; - }; - EditableUser: { - /** - * @description The user's username - * @example my_user - */ - username: string; - /** - * @description The user's display name - * @example My User - */ - name?: string | null; - /** - * Format: email - * @description The user's email (only your own is ever displayed) - */ - email?: string | null; - /** - * @description A description of the user - * @example My short biography - */ - bio?: string; - }; - User: { - /** - * @description The user's username - * @example my_user - */ - username: string; - /** - * @description The user's display name - * @example My User - */ - name?: string | null; - /** - * Format: email - * @description The user's email (only your own is ever displayed) - */ - email?: string | null; - /** - * @description A description of the user - * @example My short biography - */ - bio?: string; - } & { - /** - * @description The user's id - * @example EEFFGGHH - */ - id: string; - /** - * @description The user's github id - * @example 11223344 - */ - github_id: number; - /** - * @description The user's avatar url - * @example https://avatars.githubusercontent.com/u/11223344?v=1 - */ - avatar_url: string; - /** - * Format: date-time - * @description The time at which the user was created - */ - created: string; - /** - * @description The user's role - * @example developer - * @enum {string} - */ - role: "admin" | "moderator" | "developer"; - }; - Notification: { - /** - * @description The id of the notification - * @example UUVVWWXX - */ - id: string; - /** - * @description The id of the user who received the notification - * @example EEFFGGHH - */ - user_id: string; - /** - * @description The type of notification - * @example project_update - * @enum {string} - */ - type?: "project_update" | "team_invite"; - /** - * @description The title of the notification - * @example **My Project** has been updated! - */ - title: string; - /** - * @description The body text of the notification - * @example The project, My Project, has released a new version: 1.0.0 - */ - text: string; - /** - * @description A link to the related project or version - * @example mod/AABBCCDD/version/IIJJKKLL - */ - link: string; - /** - * @description Whether the notification has been read or not - * @example false - */ - read: boolean; - /** - * Format: date-time - * @description The time at which the notification was created - */ - created: string; - /** @description A list of actions that can be performed */ - actions: ({ [key: string]: unknown } | null)[]; - }; - CreatableReport: { - /** - * @description The type of the report being sent - * @example copyright - */ - report_type: string; - /** - * @description The ID of the item (project, version, or user) being reported - * @example EEFFGGHH - */ - item_id: string; - /** - * @description The type of the item being reported - * @example project - * @enum {string} - */ - item_type: "project" | "user" | "version"; - /** - * @description The extended explanation of the report - * @example This is a reupload of my mod, AABBCCDD! - */ - body: string; - }; - Report: { - /** - * @description The type of the report being sent - * @example copyright - */ - report_type: string; - /** - * @description The ID of the item (project, version, or user) being reported - * @example EEFFGGHH - */ - item_id: string; - /** - * @description The type of the item being reported - * @example project - * @enum {string} - */ - item_type: "project" | "user" | "version"; - /** - * @description The extended explanation of the report - * @example This is a reupload of my mod, AABBCCDD! - */ - body: string; - } & { - /** - * @description The ID of the user who reported the item - * @example UUVVWWXX - */ - reporter: string; - /** - * Format: date-time - * @description The time at which the report was created - */ - created: string; - }; - TeamMember: { - /** - * @description The ID of the team this team member is a member of - * @example MMNNOOPP - */ - team_id: string; - user: { - /** - * @description The user's username - * @example my_user - */ - username: string; - /** - * @description The user's display name - * @example My User - */ - name?: string | null; - /** - * Format: email - * @description The user's email (only your own is ever displayed) - */ - email?: string | null; - /** - * @description A description of the user - * @example My short biography - */ - bio?: string; - } & { - /** - * @description The user's id - * @example EEFFGGHH - */ - id: string; - /** - * @description The user's github id - * @example 11223344 - */ - github_id: number; - /** - * @description The user's avatar url - * @example https://avatars.githubusercontent.com/u/11223344?v=1 - */ - avatar_url: string; - /** - * Format: date-time - * @description The time at which the user was created - */ - created: string; - /** - * @description The user's role - * @example developer - * @enum {string} - */ - role: "admin" | "moderator" | "developer"; - }; - /** - * @description The user's role on the team - * @example Member - */ - role: string; - /** - * Format: bitflag - * @description The user's permissions in bitflag format (requires authorization to view) - * - * In order from first to eighth bit, the bits are: - * - UPLOAD_VERSION - * - DELETE_VERSION - * - EDIT_DETAILS - * - EDIT_BODY - * - MANAGE_INVITES - * - REMOVE_MEMBER - * - EDIT_MEMBER - * - DELETE_PROJECT - * - * @example 127 - */ - permissions?: number; - /** - * @description Whether or not the user has accepted to be on the team (requires authorization to view) - * @example true - */ - accepted: boolean; - }; - CategoryTag: { - /** - * @description The SVG icon of a category - * @example - */ - icon: string; - /** - * @description The name of the category - * @example adventure - */ - name: string; - /** - * @description The project type this category is applicable to - * @example mod - */ - project_type: string; - }; - LoaderTag: { - /** - * @description The SVG icon of a loader - * @example - */ - icon: string; - /** - * @description The name of the loader - * @example fabric - */ - name: string; - /** - * @description The project types that this loader is applicable to - * @example [ - * "mod", - * "modpack" - * ] - */ - supported_project_types: string[]; - }; - GameVersionTag: { - /** - * @description The name/number of the game version - * @example 1.18.1 - */ - version: string; - /** - * @description The type of the game version - * @example release - * @enum {string} - */ - version_type: "release" | "snapshot" | "alpha" | "beta"; - /** - * Format: date-time - * @description The date of the game version release - */ - date: string; - /** - * @description Whether or not this is a major version, used for Featured Versions - * @example true - */ - major: boolean; - }; - LicenseTag: { - /** - * @description The short identifier of the license - * @example lgpl-3 - */ - short: string; - /** - * @description The full name of the license - * @example GNU Lesser General Public License v3 - */ - name: string; - }; - DonationPlatformTag: { - /** - * @description The short identifier of the donation platform - * @example bmac - */ - short: string; - /** - * @description The full name of the donation platform - * @example Buy Me a Coffee - */ - name: string; - }; - InvalidInputError: { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - AuthError: { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - parameters: { - /** @description The ID or slug of the project */ - ProjectIdentifier: string; - /** @description The ID or username of the user */ - UserIdentifier: string; - /** @description The ID of the version */ - VersionIdentifier: string; - /** @description The ID of the team */ - TeamIdentifier: string; - /** @description The algorithm of the hash */ - AlgorithmIdentifier: "sha1" | "sha512"; - /** @description The hash of the file, considering its byte content, and encoded in hexadecimal */ - FileHashIdentifier: string; - }; -} - -export interface operations { - searchProjects: { - parameters: { - query: { - /** The query to search for */ - query?: string; - /** The recommended way of filtering search results. [Learn more about using facets.](/docs/tutorials/api_search) */ - facets?: string[][]; - /** The sorting method used for sorting search results */ - index?: "relevance" | "downloads" | "follows" | "newest" | "updated"; - /** The offset into the search. Skips this number of results */ - offset?: number; - /** The number of results returned by the search */ - limit?: number; - /** A list of filters relating to the properties of a project. Use filters when there isn't an available facet for your needs. [More information](https://docs.meilisearch.com/reference/features/filtering.html) */ - filters?: string; - /** @deprecated A list of filters relating to the versions of a project. Use of facets for filtering by version is recommended */ - version?: string; - }; - }; - responses: { - /** Search results */ - 200: { - content: { - "application/json": { - /** @description The list of results */ - hits: (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & { - /** - * @description The ID of the project - * @example AABBCCDD - */ - project_id: string; - /** - * @description The username of the project's author - * @example my_user - */ - author: string; - /** - * @description A list of the minecraft versions supported by the project - * @example [ - * "1.8", - * "1.8.9" - * ] - */ - versions: string[]; - /** @description The total number of users following the project */ - follows: number; - /** - * Format: date-time - * @description The date the project was created - */ - date_created: string; - /** - * Format: date-time - * @description The date the project was last modified - */ - date_modified: string; - /** - * @description The latest version of minecraft that this project supports - * @example 1.8.9 - */ - latest_version?: string; - /** - * @description The license of the project - * @example mit - */ - license: string; - /** - * @description All gallery images attached to the project - * @example [ - * "https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png", - * "https://cdn.modrinth.com/data/AABBCCDD/images/c21776867afb6046fdc3c21dbcf5cc50ae27a236.png" - * ] - */ - gallery?: string[]; - })[]; - /** - * @description The number of results that were skipped by the query - * @example 0 - */ - offset: number; - /** - * @description The number of results that were returned by the query - * @example 10 - */ - limit: number; - /** - * @description The total number of results that match the query - * @example 10 - */ - total_hits: number; - }; - }; - }; - /** Invalid request */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - }; - }; - getProject: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & - ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & - ({ - /** - * @description The ID of the project, encoded as a base62 string - * @example AABBCCDD - */ - id: string; - /** - * @description The ID of the team that has ownership of this project - * @example MMNNOOPP - */ - team: string; - /** - * @deprecated - * @description The link to the long description of the project (only present for old projects) - * @default null - * @example null - */ - body_url?: string | null; - /** - * @description A message that a moderator sent regarding the project - * @example null - */ - moderator_message?: { - /** @description The message that a moderator has left for the project */ - message?: string; - /** @description The longer body of the message that a moderator has left for the project */ - body?: string | null; - } | null; - /** - * Format: date-time - * @description The date the project was published - */ - published: string; - /** - * Format: date-time - * @description The date the project was last updated - */ - updated: string; - /** @description The total number of users following the project */ - followers: number; - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The license of the project */ - license?: { - /** - * @description The license id of a project, retrieved from the licenses get route - * @example lgpl-3 - */ - id?: string; - /** - * @description The long name of a license - * @example GNU Lesser General Public License v3 - */ - name?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - url?: string | null; - }; - /** - * @description A list of the version IDs of the project (will never be empty unless `draft` status) - * @example [ - * "IIJJKKLL", - * "QQRRSSTT" - * ] - */ - versions?: string[]; - /** @description A list of images that have been uploaded to the project's gallery */ - gallery?: ({ - /** - * @description The URL of the gallery image - * @example https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png - */ - url: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - /** - * Format: date-time - * @description The date and time the gallery image was created - */ - created: string; - } | null)[]; - } & { - title: unknown; - description: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - slug: unknown; - body: unknown; - }); - }; - }; - /** The requested project was not found or no authorization to see this project */ - 404: unknown; - }; - }; - deleteProject: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - }; - responses: { - /** Project deleted successfully */ - 204: never; - /** The requested project was not found */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - /** No valid authorization to delete this project */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - }; - }; - modifyProject: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - }; - responses: { - /** Project modified successfully */ - 204: never; - /** No authorization to edit this project */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested project was not found or no authorization to see this project */ - 404: unknown; - }; - /** Modified project fields */ - requestBody: { - content: { - "application/json": (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & { - /** - * @description The license ID of a project, retrieved from the license tag route - * @example lgpl-3 - */ - license_id?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - license_url?: string | null; - }) & { - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status?: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The title of the moderators' message for the project */ - moderation_message?: string | null; - /** @description The body of the moderators' message for the project */ - moderation_message_body?: string | null; - }; - }; - }; - }; - getProjects: { - parameters: { - query: { - /** The IDs of the projects */ - ids: string[]; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & - ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & - ({ - /** - * @description The ID of the project, encoded as a base62 string - * @example AABBCCDD - */ - id: string; - /** - * @description The ID of the team that has ownership of this project - * @example MMNNOOPP - */ - team: string; - /** - * @deprecated - * @description The link to the long description of the project (only present for old projects) - * @default null - * @example null - */ - body_url?: string | null; - /** - * @description A message that a moderator sent regarding the project - * @example null - */ - moderator_message?: { - /** @description The message that a moderator has left for the project */ - message?: string; - /** @description The longer body of the message that a moderator has left for the project */ - body?: string | null; - } | null; - /** - * Format: date-time - * @description The date the project was published - */ - published: string; - /** - * Format: date-time - * @description The date the project was last updated - */ - updated: string; - /** @description The total number of users following the project */ - followers: number; - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The license of the project */ - license?: { - /** - * @description The license id of a project, retrieved from the licenses get route - * @example lgpl-3 - */ - id?: string; - /** - * @description The long name of a license - * @example GNU Lesser General Public License v3 - */ - name?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - url?: string | null; - }; - /** - * @description A list of the version IDs of the project (will never be empty unless `draft` status) - * @example [ - * "IIJJKKLL", - * "QQRRSSTT" - * ] - */ - versions?: string[]; - /** @description A list of images that have been uploaded to the project's gallery */ - gallery?: ({ - /** - * @description The URL of the gallery image - * @example https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png - */ - url: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - /** - * Format: date-time - * @description The date and time the gallery image was created - */ - created: string; - } | null)[]; - } & { - title: unknown; - description: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - slug: unknown; - body: unknown; - }))[]; - }; - }; - }; - }; - createProject: { - responses: { - /** Project successfully created */ - 200: { - content: { - "application/json": ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & - ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & - ({ - /** - * @description The ID of the project, encoded as a base62 string - * @example AABBCCDD - */ - id: string; - /** - * @description The ID of the team that has ownership of this project - * @example MMNNOOPP - */ - team: string; - /** - * @deprecated - * @description The link to the long description of the project (only present for old projects) - * @default null - * @example null - */ - body_url?: string | null; - /** - * @description A message that a moderator sent regarding the project - * @example null - */ - moderator_message?: { - /** @description The message that a moderator has left for the project */ - message?: string; - /** @description The longer body of the message that a moderator has left for the project */ - body?: string | null; - } | null; - /** - * Format: date-time - * @description The date the project was published - */ - published: string; - /** - * Format: date-time - * @description The date the project was last updated - */ - updated: string; - /** @description The total number of users following the project */ - followers: number; - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The license of the project */ - license?: { - /** - * @description The license id of a project, retrieved from the licenses get route - * @example lgpl-3 - */ - id?: string; - /** - * @description The long name of a license - * @example GNU Lesser General Public License v3 - */ - name?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - url?: string | null; - }; - /** - * @description A list of the version IDs of the project (will never be empty unless `draft` status) - * @example [ - * "IIJJKKLL", - * "QQRRSSTT" - * ] - */ - versions?: string[]; - /** @description A list of images that have been uploaded to the project's gallery */ - gallery?: ({ - /** - * @description The URL of the gallery image - * @example https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png - */ - url: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - /** - * Format: date-time - * @description The date and time the gallery image was created - */ - created: string; - } | null)[]; - } & { - title: unknown; - description: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - slug: unknown; - body: unknown; - }); - }; - }; - /** Invalid request */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - /** No authorization to create a project */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - }; - /** New project */ - requestBody: { - content: { - "multipart/form-data": { - data: (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & { - /** - * @description The license ID of a project, retrieved from the license tag route - * @example lgpl-3 - */ - license_id?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - license_url?: string | null; - }) & - ({ - /** - * @example modpack - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description A list of initial versions to upload with the created project (required unless `is_draft` is true) */ - initial_versions?: ({ - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & { - /** - * @description The hash format and the hash of the new primary file - * @example [ - * "sha1", - * "aaaabbbbccccddddeeeeffffgggghhhhiiiijjjj" - * ] - */ - primary_file?: string[]; - })[]; - /** - * @description Whether the project should be saved as a draft instead of being sent to moderation for review - * @example true - */ - is_draft?: boolean; - gallery_items?: ({ - /** @description The name of the multipart item where the gallery media is located */ - item?: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured?: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - } | null)[]; - } & { - slug: unknown; - title: unknown; - description: unknown; - body: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - license_id: unknown; - }); - /** - * Format: binary - * @description Project icon file - * @enum {string} - */ - icon?: - | "*.png" - | "*.jpg" - | "*.jpeg" - | "*.bmp" - | "*.gif" - | "*.webp" - | "*.svg" - | "*.svgz" - | "*.rgb"; - }; - }; - }; - }; - checkProjectValidity: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** @example AABBCCDD */ - id?: string; - }; - }; - }; - /** The requested project was not found */ - 404: unknown; - }; - }; - /** Modrinth allows you to upload files of up to 5MiB to a project's gallery. */ - addGalleryImage: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - query: { - /** Image extension */ - ext: - | "png" - | "jpg" - | "jpeg" - | "bmp" - | "gif" - | "webp" - | "svg" - | "svgz" - | "rgb"; - /** Whether an image is featured */ - featured: boolean; - /** Title of the image */ - title?: string; - /** Description of the image */ - description?: string; - }; - }; - responses: { - /** Gallery image successfully created */ - 204: never; - /** Invalid request */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - /** No authorization to create a gallery image */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested project was not found or no authorization to see this project */ - 404: unknown; - }; - /** New gallery image */ - requestBody: { - content: { - "image/*": string; - }; - }; - }; - deleteGalleryImage: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - query: { - /** URL link of the image to delete */ - url: string; - }; - }; - responses: { - /** Gallery image deleted successfully */ - 204: never; - /** Invalid URL or project specified */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - /** No authorization to delete this gallery image */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - }; - }; - modifyGalleryImage: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - query: { - /** URL link of the image to modify */ - url: string; - /** Whether the image is featured */ - featured: boolean; - /** New title of the image */ - title?: string; - /** New description of the image */ - description?: string; - }; - }; - responses: { - /** Gallery image modified successfully */ - 204: never; - /** No authorization to edit this gallery image */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested project was not found or no authorization to see this project */ - 404: unknown; - }; - }; - getDependencies: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** @description Projects that the project depends upon */ - projects?: (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & - ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & - ({ - /** - * @description The ID of the project, encoded as a base62 string - * @example AABBCCDD - */ - id: string; - /** - * @description The ID of the team that has ownership of this project - * @example MMNNOOPP - */ - team: string; - /** - * @deprecated - * @description The link to the long description of the project (only present for old projects) - * @default null - * @example null - */ - body_url?: string | null; - /** - * @description A message that a moderator sent regarding the project - * @example null - */ - moderator_message?: { - /** @description The message that a moderator has left for the project */ - message?: string; - /** @description The longer body of the message that a moderator has left for the project */ - body?: string | null; - } | null; - /** - * Format: date-time - * @description The date the project was published - */ - published: string; - /** - * Format: date-time - * @description The date the project was last updated - */ - updated: string; - /** @description The total number of users following the project */ - followers: number; - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The license of the project */ - license?: { - /** - * @description The license id of a project, retrieved from the licenses get route - * @example lgpl-3 - */ - id?: string; - /** - * @description The long name of a license - * @example GNU Lesser General Public License v3 - */ - name?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - url?: string | null; - }; - /** - * @description A list of the version IDs of the project (will never be empty unless `draft` status) - * @example [ - * "IIJJKKLL", - * "QQRRSSTT" - * ] - */ - versions?: string[]; - /** @description A list of images that have been uploaded to the project's gallery */ - gallery?: ({ - /** - * @description The URL of the gallery image - * @example https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png - */ - url: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - /** - * Format: date-time - * @description The date and time the gallery image was created - */ - created: string; - } | null)[]; - } & { - title: unknown; - description: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - slug: unknown; - body: unknown; - }))[]; - /** @description Versions that the project depends upon */ - versions?: ({ - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }))[]; - }; - }; - }; - /** The requested project was not found or no authorization to see this project */ - 404: unknown; - }; - }; - followProject: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 204: never; - /** You are already following the specified project or the requested project was not found */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - /** No authorization to follow a project */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - }; - }; - unfollowProject: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 204: never; - /** You are not following the specified project or the requested project was not found */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - /** No authorization to unfollow a project */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - }; - }; - getProjectVersions: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - query: { - /** The types of loaders to filter for */ - loaders?: string[]; - /** The game versions to filter for */ - game_versions?: string[]; - /** Allows to filter for featured or non-featured versions only */ - featured?: boolean; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": ({ - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }))[]; - }; - }; - /** The requested project was not found or no authorization to see this project */ - 404: unknown; - }; - }; - getVersion: { - parameters: { - path: { - /** The ID of the version */ - id: string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }); - }; - }; - /** The requested version was not found or no authorization to see this version */ - 404: unknown; - }; - }; - deleteVersion: { - parameters: { - path: { - /** The ID of the version */ - id: string; - }; - }; - responses: { - /** Version deleted successfully */ - 204: never; - /** No authorization to delete this version */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested version was not found or no authorization to see this version */ - 404: unknown; - }; - }; - modifyVersion: { - parameters: { - path: { - /** The ID of the version */ - id: string; - }; - }; - responses: { - /** Version modified successfully */ - 204: never; - /** No authorization to edit this version */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested version was not found or no authorization to see this version */ - 404: unknown; - }; - /** Modified version fields */ - requestBody: { - content: { - "application/json": { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & { - /** - * @description The hash format and the hash of the new primary file - * @example [ - * "sha1", - * "aaaabbbbccccddddeeeeffffgggghhhhiiiijjjj" - * ] - */ - primary_file?: string[]; - }; - }; - }; - }; - /** Project files are attached. `.mrpack` and `.jar` files are accepted. */ - createVersion: { - responses: { - /** Version successfully created */ - 200: { - content: { - "application/json": { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }); - }; - }; - /** Invalid request */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - /** No authorization to create this version */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - }; - /** New version */ - requestBody: { - content: { - "multipart/form-data": { - data: { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - file_parts: string[]; - /** @description The multipart field name of the primary file */ - primary_file?: string; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }); - }; - }; - }; - }; - getVersions: { - parameters: { - query: { - /** The IDs of the versions */ - ids: string[]; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": ({ - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }))[]; - }; - }; - }; - }; - /** Project files are attached. `.mrpack` and `.jar` files are accepted. */ - addFilesToVersion: { - parameters: { - path: { - /** The ID of the version */ - id: string; - }; - }; - responses: { - /** Version modified successfully */ - 204: never; - /** No authorization to modify this version */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested version was not found or no authorization to see this version */ - 404: unknown; - }; - /** New version files */ - requestBody: { - content: { - "multipart/form-data": { - /** @enum {object} */ - data?: {}; - }; - }; - }; - }; - versionFromHash: { - parameters: { - path: { - /** The hash of the file, considering its byte content, and encoded in hexadecimal */ - hash: string; - }; - query: { - /** The algorithm of the hash */ - algorithm: "sha1" | "sha512"; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }); - }; - }; - /** The requested version file was not found or no authorization to see this version */ - 404: unknown; - }; - }; - deleteFileFromHash: { - parameters: { - path: { - /** The hash of the file, considering its byte content, and encoded in hexadecimal */ - hash: string; - }; - query: { - /** The algorithm of the hash */ - algorithm: "sha1" | "sha512"; - }; - }; - responses: { - /** Expected response to a valid request */ - 204: never; - /** No authorization to delete this version */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested version was not found */ - 404: unknown; - }; - }; - getLatestVersionFromHash: { - parameters: { - path: { - /** The hash of the file, considering its byte content, and encoded in hexadecimal */ - hash: string; - }; - query: { - /** The algorithm of the hash */ - algorithm: "sha1" | "sha512"; - }; - }; - responses: { - /** Latest version retrieved successfully */ - 200: { - content: { - "application/json": { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }); - }; - }; - /** Input is invalid */ - 400: unknown; - /** The requested version was not found or no authorization to see this version */ - 404: unknown; - }; - /** Parameters of the updated version requested */ - requestBody: { - content: { - "application/json": { - loaders: string[]; - /** - * @example [ - * "1.18", - * "1.18.1" - * ] - */ - game_versions: string[]; - }; - }; - }; - }; - /** This is the same as [`/version_file/{hash}`](#operation/versionFromHash) except it accepts multiple hashes. */ - versionsFromHashes: { - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - your_hash_here?: { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }); - }; - }; - }; - /** Input is invalid */ - 400: unknown; - }; - /** Hashes and algorithm of the versions requested */ - requestBody: { - content: { - "application/json": { - /** - * @example [ - * "ea0f38408102e4d2efd53c2cc11b88b711996b48d8922f76ea6abf731219c5bd1efe39ddf9cce77c54d49a62ff10fb685c00d2e4c524ab99d20f6296677ab2c4", - * "925a5c4899affa4098d997dfa4a4cb52c636d539e94bc489d1fa034218cb96819a70eb8b01647a39316a59fcfe223c1a8c05ed2e2ae5f4c1e75fa48f6af1c960" - * ] - */ - hashes: string[]; - /** - * @example sha512 - * @enum {string} - */ - algorithm: "sha1" | "sha512"; - }; - }; - }; - }; - /** This is the same as [`/version_file/{hash}/update`](#operation/getLatestVersionFromHash) except it accepts multiple hashes. */ - getLatestVersionsFromHashes: { - responses: { - /** Latest versions retrieved successfully */ - 200: { - content: { - "application/json": { - your_hash_here?: { - /** - * @description The name of this version - * @example Version 1.0.0 - */ - name?: string; - /** - * @description The version number. Ideally will follow semantic versioning - * @example 1.0.0 - */ - version_number?: string; - /** - * @description The changelog for this version - * @example List of changes in this version: ... - */ - changelog?: string | null; - /** @description A list of specific versions of projects that this version depends on */ - dependencies?: ({ - /** - * @description The ID of the version that this version depends on - * @example IIJJKKLL - */ - version_id?: string | null; - /** - * @description The ID of the project that this version depends on - * @example QQRRSSTT - */ - project_id?: string | null; - /** - * @description The type of dependency that this version has - * @example required - * @enum {string} - */ - dependency_type: - | "required" - | "optional" - | "incompatible" - | "embedded"; - } | null)[]; - /** - * @description A list of versions of Minecraft that this version supports - * @example [ - * "1.16.5", - * "1.17.1" - * ] - */ - game_versions?: string[]; - /** - * @description The release channel for this version - * @example release - * @enum {string} - */ - version_type?: "release" | "beta" | "alpha"; - /** - * @description The mod loaders that this version supports - * @example [ - * "fabric", - * "forge" - * ] - */ - loaders?: string[]; - /** - * @description Whether the version is featured or not - * @example true - */ - featured?: boolean; - } & ({ - /** - * @description The ID of the version, encoded as a base62 string - * @example IIJJKKLL - */ - id: string; - /** - * @description The ID of the project this version is for - * @example AABBCCDD - */ - project_id: string; - /** - * @description The ID of the author who published this version - * @example EEFFGGHH - */ - author_id: string; - /** Format: date-time */ - date_published: string; - /** @description The number of times this version has been downloaded */ - downloads: number; - /** - * @deprecated - * @description A link to the changelog for this version - * @example null - */ - changelog_url?: string | null; - /** @description A list of files available for download for this version */ - files: { - /** @description A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. */ - hashes: { - /** @example 93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f */ - sha512?: string; - /** @example c84dd4b3580c02b79958a0590afd5783d80ef504 */ - sha1?: string; - }; - /** - * @description A direct link to the file - * @example https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar - */ - url: string; - /** - * @description The name of the file - * @example my_file.jar - */ - filename: string; - /** @example false */ - primary: boolean; - /** - * @description The size of the file in bytes - * @example 1097270 - */ - size: number; - }[]; - } & { - name: unknown; - version_number: unknown; - game_versions: unknown; - version_type: unknown; - loaders: unknown; - featured: unknown; - }); - }; - }; - }; - /** Input is invalid */ - 400: unknown; - }; - /** Parameters of the updated version requested */ - requestBody: { - content: { - "application/json": { - /** - * @example [ - * "ea0f38408102e4d2efd53c2cc11b88b711996b48d8922f76ea6abf731219c5bd1efe39ddf9cce77c54d49a62ff10fb685c00d2e4c524ab99d20f6296677ab2c4", - * "925a5c4899affa4098d997dfa4a4cb52c636d539e94bc489d1fa034218cb96819a70eb8b01647a39316a59fcfe223c1a8c05ed2e2ae5f4c1e75fa48f6af1c960" - * ] - */ - hashes: string[]; - /** - * @example sha512 - * @enum {string} - */ - algorithm: "sha1" | "sha512"; - /** - * @example [ - * "fabric" - * ] - */ - loaders: string[]; - /** - * @example [ - * "1.18", - * "1.18.1" - * ] - */ - game_versions: string[]; - }; - }; - }; - }; - getUser: { - parameters: { - path: { - /** The ID or username of the user */ - "id|username": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** - * @description The user's username - * @example my_user - */ - username: string; - /** - * @description The user's display name - * @example My User - */ - name?: string | null; - /** - * Format: email - * @description The user's email (only your own is ever displayed) - */ - email?: string | null; - /** - * @description A description of the user - * @example My short biography - */ - bio?: string; - } & { - /** - * @description The user's id - * @example EEFFGGHH - */ - id: string; - /** - * @description The user's github id - * @example 11223344 - */ - github_id: number; - /** - * @description The user's avatar url - * @example https://avatars.githubusercontent.com/u/11223344?v=1 - */ - avatar_url: string; - /** - * Format: date-time - * @description The time at which the user was created - */ - created: string; - /** - * @description The user's role - * @example developer - * @enum {string} - */ - role: "admin" | "moderator" | "developer"; - }; - }; - }; - /** The requested user was not found */ - 404: unknown; - }; - }; - deleteUser: { - parameters: { - path: { - /** The ID or username of the user */ - "id|username": string; - }; - }; - responses: { - /** User deleted successfully */ - 204: never; - /** No authorization to delete this user */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested user was not found */ - 404: unknown; - }; - }; - modifyUser: { - parameters: { - path: { - /** The ID or username of the user */ - "id|username": string; - }; - }; - responses: { - /** User modified successfully */ - 204: never; - /** No authorization to modify this user */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested user was not found */ - 404: unknown; - }; - /** Modified user fields */ - requestBody: { - content: { - "application/json": { - /** - * @description The user's username - * @example my_user - */ - username: string; - /** - * @description The user's display name - * @example My User - */ - name?: string | null; - /** - * Format: email - * @description The user's email (only your own is ever displayed) - */ - email?: string | null; - /** - * @description A description of the user - * @example My short biography - */ - bio?: string; - }; - }; - }; - }; - getUserFromAuth: { - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** - * @description The user's username - * @example my_user - */ - username: string; - /** - * @description The user's display name - * @example My User - */ - name?: string | null; - /** - * Format: email - * @description The user's email (only your own is ever displayed) - */ - email?: string | null; - /** - * @description A description of the user - * @example My short biography - */ - bio?: string; - } & { - /** - * @description The user's id - * @example EEFFGGHH - */ - id: string; - /** - * @description The user's github id - * @example 11223344 - */ - github_id: number; - /** - * @description The user's avatar url - * @example https://avatars.githubusercontent.com/u/11223344?v=1 - */ - avatar_url: string; - /** - * Format: date-time - * @description The time at which the user was created - */ - created: string; - /** - * @description The user's role - * @example developer - * @enum {string} - */ - role: "admin" | "moderator" | "developer"; - }; - }; - }; - /** No authorization token given */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - }; - }; - getUsers: { - parameters: { - query: { - /** The IDs of the users */ - ids: string[]; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": ({ - /** - * @description The user's username - * @example my_user - */ - username: string; - /** - * @description The user's display name - * @example My User - */ - name?: string | null; - /** - * Format: email - * @description The user's email (only your own is ever displayed) - */ - email?: string | null; - /** - * @description A description of the user - * @example My short biography - */ - bio?: string; - } & { - /** - * @description The user's id - * @example EEFFGGHH - */ - id: string; - /** - * @description The user's github id - * @example 11223344 - */ - github_id: number; - /** - * @description The user's avatar url - * @example https://avatars.githubusercontent.com/u/11223344?v=1 - */ - avatar_url: string; - /** - * Format: date-time - * @description The time at which the user was created - */ - created: string; - /** - * @description The user's role - * @example developer - * @enum {string} - */ - role: "admin" | "moderator" | "developer"; - })[]; - }; - }; - }; - }; - /** By default, Modrinth uses a user's GitHub icon. This route allows it to be changed to a custom one. The new avatar may be up to 2MiB in size. */ - changeUserIcon: { - parameters: { - path: { - /** The ID or username of the user */ - "id|username": string; - }; - }; - responses: { - /** Avatar changed successfully */ - 204: never; - /** Invalid format for new icon */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - /** The requested user was not found */ - 404: unknown; - }; - requestBody: { - content: { - "multipart/form-data": {}; - }; - }; - }; - getUserProjects: { - parameters: { - path: { - /** The ID or username of the user */ - "id|username": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & - ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & - ({ - /** - * @description The ID of the project, encoded as a base62 string - * @example AABBCCDD - */ - id: string; - /** - * @description The ID of the team that has ownership of this project - * @example MMNNOOPP - */ - team: string; - /** - * @deprecated - * @description The link to the long description of the project (only present for old projects) - * @default null - * @example null - */ - body_url?: string | null; - /** - * @description A message that a moderator sent regarding the project - * @example null - */ - moderator_message?: { - /** @description The message that a moderator has left for the project */ - message?: string; - /** @description The longer body of the message that a moderator has left for the project */ - body?: string | null; - } | null; - /** - * Format: date-time - * @description The date the project was published - */ - published: string; - /** - * Format: date-time - * @description The date the project was last updated - */ - updated: string; - /** @description The total number of users following the project */ - followers: number; - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The license of the project */ - license?: { - /** - * @description The license id of a project, retrieved from the licenses get route - * @example lgpl-3 - */ - id?: string; - /** - * @description The long name of a license - * @example GNU Lesser General Public License v3 - */ - name?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - url?: string | null; - }; - /** - * @description A list of the version IDs of the project (will never be empty unless `draft` status) - * @example [ - * "IIJJKKLL", - * "QQRRSSTT" - * ] - */ - versions?: string[]; - /** @description A list of images that have been uploaded to the project's gallery */ - gallery?: ({ - /** - * @description The URL of the gallery image - * @example https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png - */ - url: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - /** - * Format: date-time - * @description The date and time the gallery image was created - */ - created: string; - } | null)[]; - } & { - title: unknown; - description: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - slug: unknown; - body: unknown; - }))[]; - }; - }; - /** The requested user was not found */ - 404: unknown; - }; - }; - /** Notifications can be project updates or team invites */ - getNotifications: { - parameters: { - path: { - /** The ID or username of the user */ - "id|username": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** - * @description The id of the notification - * @example UUVVWWXX - */ - id: string; - /** - * @description The id of the user who received the notification - * @example EEFFGGHH - */ - user_id: string; - /** - * @description The type of notification - * @example project_update - * @enum {string} - */ - type?: "project_update" | "team_invite"; - /** - * @description The title of the notification - * @example **My Project** has been updated! - */ - title: string; - /** - * @description The body text of the notification - * @example The project, My Project, has released a new version: 1.0.0 - */ - text: string; - /** - * @description A link to the related project or version - * @example mod/AABBCCDD/version/IIJJKKLL - */ - link: string; - /** - * @description Whether the notification has been read or not - * @example false - */ - read: boolean; - /** - * Format: date-time - * @description The time at which the notification was created - */ - created: string; - /** @description A list of actions that can be performed */ - actions: ({ [key: string]: unknown } | null)[]; - }[]; - }; - }; - /** No authorization to get this user's notifications */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested user was not found */ - 404: unknown; - }; - }; - getFollowedProjects: { - parameters: { - path: { - /** The ID or username of the user */ - "id|username": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & - ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & - ({ - /** - * @description The ID of the project, encoded as a base62 string - * @example AABBCCDD - */ - id: string; - /** - * @description The ID of the team that has ownership of this project - * @example MMNNOOPP - */ - team: string; - /** - * @deprecated - * @description The link to the long description of the project (only present for old projects) - * @default null - * @example null - */ - body_url?: string | null; - /** - * @description A message that a moderator sent regarding the project - * @example null - */ - moderator_message?: { - /** @description The message that a moderator has left for the project */ - message?: string; - /** @description The longer body of the message that a moderator has left for the project */ - body?: string | null; - } | null; - /** - * Format: date-time - * @description The date the project was published - */ - published: string; - /** - * Format: date-time - * @description The date the project was last updated - */ - updated: string; - /** @description The total number of users following the project */ - followers: number; - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The license of the project */ - license?: { - /** - * @description The license id of a project, retrieved from the licenses get route - * @example lgpl-3 - */ - id?: string; - /** - * @description The long name of a license - * @example GNU Lesser General Public License v3 - */ - name?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - url?: string | null; - }; - /** - * @description A list of the version IDs of the project (will never be empty unless `draft` status) - * @example [ - * "IIJJKKLL", - * "QQRRSSTT" - * ] - */ - versions?: string[]; - /** @description A list of images that have been uploaded to the project's gallery */ - gallery?: ({ - /** - * @description The URL of the gallery image - * @example https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png - */ - url: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - /** - * Format: date-time - * @description The date and time the gallery image was created - */ - created: string; - } | null)[]; - } & { - title: unknown; - description: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - slug: unknown; - body: unknown; - }))[]; - }; - }; - /** No authorization to get this user's followed projects */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested user was not found */ - 404: unknown; - }; - }; - getReports: { - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": ({ - /** - * @description The type of the report being sent - * @example copyright - */ - report_type: string; - /** - * @description The ID of the item (project, version, or user) being reported - * @example EEFFGGHH - */ - item_id: string; - /** - * @description The type of the item being reported - * @example project - * @enum {string} - */ - item_type: "project" | "user" | "version"; - /** - * @description The extended explanation of the report - * @example This is a reupload of my mod, AABBCCDD! - */ - body: string; - } & { - /** - * @description The ID of the user who reported the item - * @example UUVVWWXX - */ - reporter: string; - /** - * Format: date-time - * @description The time at which the report was created - */ - created: string; - })[]; - }; - }; - }; - }; - /** Bring a project, user, or version to the attention of the moderators by reporting it. You must be logged in to report anything. */ - submitReport: { - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** - * @description The type of the report being sent - * @example copyright - */ - report_type: string; - /** - * @description The ID of the item (project, version, or user) being reported - * @example EEFFGGHH - */ - item_id: string; - /** - * @description The type of the item being reported - * @example project - * @enum {string} - */ - item_type: "project" | "user" | "version"; - /** - * @description The extended explanation of the report - * @example This is a reupload of my mod, AABBCCDD! - */ - body: string; - } & { - /** - * @description The ID of the user who reported the item - * @example UUVVWWXX - */ - reporter: string; - /** - * Format: date-time - * @description The time at which the report was created - */ - created: string; - }; - }; - }; - /** Invalid request */ - 400: { - content: { - "application/json": { - /** - * @description The name of the error - * @example invalid_input - */ - error: string; - /** - * @description The contents of the error - * @example Error while parsing multipart payload - */ - description: string; - }; - }; - }; - /** No authorization to submit a report */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - }; - /** The report to be sent */ - requestBody: { - content: { - "application/json": { - /** - * @description The type of the report being sent - * @example copyright - */ - report_type: string; - /** - * @description The ID of the item (project, version, or user) being reported - * @example EEFFGGHH - */ - item_id: string; - /** - * @description The type of the item being reported - * @example project - * @enum {string} - */ - item_type: "project" | "user" | "version"; - /** - * @description The extended explanation of the report - * @example This is a reupload of my mod, AABBCCDD! - */ - body: string; - }; - }; - }; - }; - getProjectTeamMembers: { - parameters: { - path: { - /** The ID or slug of the project */ - "id|slug": string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** - * @description The ID of the team this team member is a member of - * @example MMNNOOPP - */ - team_id: string; - user: { - /** - * @description The user's username - * @example my_user - */ - username: string; - /** - * @description The user's display name - * @example My User - */ - name?: string | null; - /** - * Format: email - * @description The user's email (only your own is ever displayed) - */ - email?: string | null; - /** - * @description A description of the user - * @example My short biography - */ - bio?: string; - } & { - /** - * @description The user's id - * @example EEFFGGHH - */ - id: string; - /** - * @description The user's github id - * @example 11223344 - */ - github_id: number; - /** - * @description The user's avatar url - * @example https://avatars.githubusercontent.com/u/11223344?v=1 - */ - avatar_url: string; - /** - * Format: date-time - * @description The time at which the user was created - */ - created: string; - /** - * @description The user's role - * @example developer - * @enum {string} - */ - role: "admin" | "moderator" | "developer"; - }; - /** - * @description The user's role on the team - * @example Member - */ - role: string; - /** - * Format: bitflag - * @description The user's permissions in bitflag format (requires authorization to view) - * - * In order from first to eighth bit, the bits are: - * - UPLOAD_VERSION - * - DELETE_VERSION - * - EDIT_DETAILS - * - EDIT_BODY - * - MANAGE_INVITES - * - REMOVE_MEMBER - * - EDIT_MEMBER - * - DELETE_PROJECT - * - * @example 127 - */ - permissions?: number; - /** - * @description Whether or not the user has accepted to be on the team (requires authorization to view) - * @example true - */ - accepted: boolean; - }[]; - }; - }; - /** The requested project was not found or no authorization to see this project */ - 404: unknown; - }; - }; - getTeamMembers: { - parameters: { - path: { - /** The ID of the team */ - id: string; - }; - }; - responses: { - /** Expected response to a valid request */ - 200: { - content: { - "application/json": { - /** - * @description The ID of the team this team member is a member of - * @example MMNNOOPP - */ - team_id: string; - user: { - /** - * @description The user's username - * @example my_user - */ - username: string; - /** - * @description The user's display name - * @example My User - */ - name?: string | null; - /** - * Format: email - * @description The user's email (only your own is ever displayed) - */ - email?: string | null; - /** - * @description A description of the user - * @example My short biography - */ - bio?: string; - } & { - /** - * @description The user's id - * @example EEFFGGHH - */ - id: string; - /** - * @description The user's github id - * @example 11223344 - */ - github_id: number; - /** - * @description The user's avatar url - * @example https://avatars.githubusercontent.com/u/11223344?v=1 - */ - avatar_url: string; - /** - * Format: date-time - * @description The time at which the user was created - */ - created: string; - /** - * @description The user's role - * @example developer - * @enum {string} - */ - role: "admin" | "moderator" | "developer"; - }; - /** - * @description The user's role on the team - * @example Member - */ - role: string; - /** - * Format: bitflag - * @description The user's permissions in bitflag format (requires authorization to view) - * - * In order from first to eighth bit, the bits are: - * - UPLOAD_VERSION - * - DELETE_VERSION - * - EDIT_DETAILS - * - EDIT_BODY - * - MANAGE_INVITES - * - REMOVE_MEMBER - * - EDIT_MEMBER - * - DELETE_PROJECT - * - * @example 127 - */ - permissions?: number; - /** - * @description Whether or not the user has accepted to be on the team (requires authorization to view) - * @example true - */ - accepted: boolean; - }[]; - }; - }; - }; - }; - addTeamMember: { - parameters: { - path: { - /** The ID of the team */ - id: string; - }; - }; - responses: { - /** User has been successfully invited to the team */ - 204: never; - /** No authorization to modify this team */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested team was not found */ - 404: unknown; - }; - /** User to be added (must be the ID, usernames cannot be used here) */ - requestBody: { - content: { - "application/json": { - /** @example EEFFGGHH */ - user_id: string; - }; - }; - }; - }; - joinTeam: { - parameters: { - path: { - /** The ID of the team */ - id: string; - }; - }; - responses: { - /** Team has successfully been joined */ - 204: never; - /** No authorization to join this team */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested team was not found */ - 404: unknown; - }; - }; - deleteTeamMember: { - parameters: { - path: { - /** The ID of the team */ - id: string; - /** The ID or username of the user */ - "id|username": string; - }; - }; - responses: { - /** User has been removed from the team successfully */ - 204: never; - /** No authorization to remove this member from the team */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested team was not found */ - 404: unknown; - }; - }; - modifyTeamMember: { - parameters: { - path: { - /** The ID of the team */ - id: string; - /** The ID of the user to modify */ - user_id: string; - }; - }; - responses: { - /** Roles/permissions have been updated successfully */ - 204: never; - /** No authorization to change this member's roles/permissions */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested team was not found */ - 404: unknown; - }; - /** Contents to be modified */ - requestBody: { - content: { - "application/json": { - /** @example Contributor */ - role?: string; - /** - * Format: bitflag - * @description The user's permissions in bitflag format - * - * In order from first to eighth bit, the bits are: - * - UPLOAD_VERSION - * - DELETE_VERSION - * - EDIT_DETAILS - * - EDIT_BODY - * - MANAGE_INVITES - * - REMOVE_MEMBER - * - EDIT_MEMBER - * - DELETE_PROJECT - * - * @example 127 - */ - permissions?: number; - }; - }; - }; - }; - transferTeamOwnership: { - parameters: { - path: { - /** The ID of the team */ - id: string; - }; - }; - responses: { - /** Ownership has successfully been transferred */ - 204: never; - /** No authorization to transfer ownership of this team */ - 401: { - content: { - "application/json": { - /** - * @description The name of the error - * @example unauthorized - */ - error: string; - /** - * @description The contents of the error - * @example Authentication Error: Invalid Authentication Credentials - */ - description: string; - }; - }; - }; - /** The requested team was not found */ - 404: unknown; - }; - /** New owner's ID */ - requestBody: { - content: { - "application/json": { - /** @example EEFFGGHH */ - user_id: string; - }; - }; - }; - }; - /** Gets an array of categories, their icons, and applicable project types */ - categoryList: { - responses: { - /** List of categories */ - 200: { - content: { - "application/json": { - /** - * @description The SVG icon of a category - * @example - */ - icon: string; - /** - * @description The name of the category - * @example adventure - */ - name: string; - /** - * @description The project type this category is applicable to - * @example mod - */ - project_type: string; - }[]; - }; - }; - }; - }; - /** Gets an array of loaders, their icons, and supported project types */ - loaderList: { - responses: { - /** List of loaders */ - 200: { - content: { - "application/json": { - /** - * @description The SVG icon of a loader - * @example - */ - icon: string; - /** - * @description The name of the loader - * @example fabric - */ - name: string; - /** - * @description The project types that this loader is applicable to - * @example [ - * "mod", - * "modpack" - * ] - */ - supported_project_types: string[]; - }[]; - }; - }; - }; - }; - /** Gets an array of game versions and information about them */ - versionList: { - responses: { - /** List of game versions */ - 200: { - content: { - "application/json": { - /** - * @description The name/number of the game version - * @example 1.18.1 - */ - version: string; - /** - * @description The type of the game version - * @example release - * @enum {string} - */ - version_type: "release" | "snapshot" | "alpha" | "beta"; - /** - * Format: date-time - * @description The date of the game version release - */ - date: string; - /** - * @description Whether or not this is a major version, used for Featured Versions - * @example true - */ - major: boolean; - }[]; - }; - }; - }; - }; - /** Gets an array of licenses and information about them */ - licenseList: { - responses: { - /** List of licenses */ - 200: { - content: { - "application/json": { - /** - * @description The short identifier of the license - * @example lgpl-3 - */ - short: string; - /** - * @description The full name of the license - * @example GNU Lesser General Public License v3 - */ - name: string; - }[]; - }; - }; - }; - }; - /** Gets an array of donation platforms and information about them */ - donationPlatformList: { - responses: { - /** List of donation platforms */ - 200: { - content: { - "application/json": { - /** - * @description The short identifier of the donation platform - * @example bmac - */ - short: string; - /** - * @description The full name of the donation platform - * @example Buy Me a Coffee - */ - name: string; - }[]; - }; - }; - }; - }; - /** Gets an array of valid report types */ - reportTypeList: { - responses: { - /** List of report types */ - 200: { - content: { - "application/json": string[]; - }; - }; - }; - }; - getModerationProjects: { - responses: { - /** List of report types */ - 200: { - content: { - "application/json": (({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description A long form description of the project - * @example A long body describing my project in detail - */ - body?: string; - /** - * @description An optional link to where to submit bugs or issues with the project - * @example https://github.com/my_user/my_project/issues - */ - issues_url?: string | null; - /** - * @description An optional link to the source code of the project - * @example https://github.com/my_user/my_project - */ - source_url?: string | null; - /** - * @description An optional link to the project's wiki page or other relevant information - * @example https://github.com/my_user/my_project/wiki - */ - wiki_url?: string | null; - /** - * @description An optional invite link to the project's discord - * @example https://discord.gg/AaBbCcDd - */ - discord_url?: string | null; - /** @description A list of donation links for the project */ - donation_urls?: ({ - /** - * @description The ID of the donation platform - * @example patreon - */ - id?: string; - /** - * @description The donation platform this link is to - * @example Patreon - */ - platform?: string; - /** - * @description The URL of the donation platform and user - * @example https://www.patreon.com/my_user - */ - url?: string; - } | null)[]; - }) & - ({ - /** - * @description The slug of a project, used for vanity URLs - * @example my_project - */ - slug?: string; - /** - * @description The title or name of the project - * @example My Project - */ - title?: string; - /** - * @description A short description of the project - * @example A short description - */ - description?: string; - /** - * @description A list of the categories that the project is in - * @example [ - * "technology", - * "adventure", - * "fabric" - * ] - */ - categories?: string[]; - /** - * @description The client side support of the project - * @example required - * @enum {string} - */ - client_side?: "required" | "optional" | "unsupported"; - /** - * @description The server side support of the project - * @example optional - * @enum {string} - */ - server_side?: "required" | "optional" | "unsupported"; - } & { - /** - * @description The project type of the project - * @example mod - * @enum {string} - */ - project_type: "mod" | "modpack"; - /** @description The total number of downloads of the project */ - downloads: number; - /** - * @description The URL of the project's icon - * @example https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.png - */ - icon_url?: string | null; - }) & - ({ - /** - * @description The ID of the project, encoded as a base62 string - * @example AABBCCDD - */ - id: string; - /** - * @description The ID of the team that has ownership of this project - * @example MMNNOOPP - */ - team: string; - /** - * @deprecated - * @description The link to the long description of the project (only present for old projects) - * @default null - * @example null - */ - body_url?: string | null; - /** - * @description A message that a moderator sent regarding the project - * @example null - */ - moderator_message?: { - /** @description The message that a moderator has left for the project */ - message?: string; - /** @description The longer body of the message that a moderator has left for the project */ - body?: string | null; - } | null; - /** - * Format: date-time - * @description The date the project was published - */ - published: string; - /** - * Format: date-time - * @description The date the project was last updated - */ - updated: string; - /** @description The total number of users following the project */ - followers: number; - /** - * @description The status of the project - * @example approved - * @enum {string} - */ - status: - | "approved" - | "rejected" - | "draft" - | "unlisted" - | "archived" - | "processing" - | "unknown"; - /** @description The license of the project */ - license?: { - /** - * @description The license id of a project, retrieved from the licenses get route - * @example lgpl-3 - */ - id?: string; - /** - * @description The long name of a license - * @example GNU Lesser General Public License v3 - */ - name?: string; - /** - * @description The URL to this license - * @example https://cdn.modrinth.com/licenses/lgpl-3.txt - */ - url?: string | null; - }; - /** - * @description A list of the version IDs of the project (will never be empty unless `draft` status) - * @example [ - * "IIJJKKLL", - * "QQRRSSTT" - * ] - */ - versions?: string[]; - /** @description A list of images that have been uploaded to the project's gallery */ - gallery?: ({ - /** - * @description The URL of the gallery image - * @example https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png - */ - url: string; - /** - * @description Whether the image is featured in the gallery - * @example true - */ - featured: boolean; - /** - * @description The title of the gallery image - * @example My awesome screenshot! - */ - title?: string | null; - /** - * @description The description of the gallery image - * @example This awesome screenshot shows all of the blocks in my mod! - */ - description?: string | null; - /** - * Format: date-time - * @description The date and time the gallery image was created - */ - created: string; - } | null)[]; - } & { - title: unknown; - description: unknown; - categories: unknown; - client_side: unknown; - server_side: unknown; - slug: unknown; - body: unknown; - }))[]; - }; - }; - }; - }; -} - -export interface external {} diff --git a/theseus_gui/generated/state.json b/theseus_gui/generated/state.json deleted file mode 100644 index 1b299d8ad..000000000 --- a/theseus_gui/generated/state.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "lastGenerated": "2022-08-01T14:34:27.819Z", - "options": { - "gameVersions": true, - "openapi": true - } -} \ No newline at end of file diff --git a/theseus_gui/locales b/theseus_gui/locales new file mode 160000 index 000000000..73d326c7e --- /dev/null +++ b/theseus_gui/locales @@ -0,0 +1 @@ +Subproject commit 73d326c7ef75f1e45a39ac5df6aed4c1ed487c8a diff --git a/theseus_gui/pnpm-lock.yaml b/theseus_gui/pnpm-lock.yaml index a79c9788e..90d59a216 100644 --- a/theseus_gui/pnpm-lock.yaml +++ b/theseus_gui/pnpm-lock.yaml @@ -36,20 +36,20 @@ dependencies: '@iconify-json/heroicons-solid': 1.1.2 '@iconify-json/lucide': 1.1.38 '@tauri-apps/api': 1.0.2 + highlight.js: 11.5.1 omorphia: 0.0.67_svelte@3.49.0+vite@3.0.4 svrollbar: 0.12.0 unplugin-icons: 0.14.8_vite@3.0.4 devDependencies: '@sveltejs/adapter-static': 1.0.0-next.38 - '@sveltejs/kit': 1.0.0-next.401_svelte@3.49.0+vite@3.0.4 + '@sveltejs/kit': 1.0.0-next.402_svelte@3.49.0+vite@3.0.4 '@tauri-apps/cli': 1.0.5 '@typescript-eslint/eslint-plugin': 5.31.0_4jrpqvszkjcwtaspamifhp3x7e '@typescript-eslint/parser': 5.31.0_sgaiclxgc5mltnpgmg7py4v6ca eslint: 7.32.0 eslint-config-prettier: 8.5.0_eslint@7.32.0 eslint-plugin-svelte3: 3.4.1_k4rvtr32uzrs6rwp57u73ssa6q - highlight.js: 11.5.1 kill-port-process: 3.1.0 prettier: 2.7.1 prettier-plugin-svelte: 2.7.0_o3ioganyptcsrh6x4hnxvjkpqi @@ -992,8 +992,8 @@ packages: tiny-glob: 0.2.9 dev: true - /@sveltejs/kit/1.0.0-next.401_svelte@3.49.0+vite@3.0.4: - resolution: {integrity: sha512-VrpFtSSu1ADRVWWDxLl218GKf9l+TA7tNCCAmVFAuJdj5zVxPgJflu4Dh1p5C4efKP+x1v6W5nvxmNkbZLPoag==} + /@sveltejs/kit/1.0.0-next.402_svelte@3.49.0+vite@3.0.4: + resolution: {integrity: sha512-F0Mm+bTGOnl+vWKab5uwXsY+5YypC/uveGE0wKyYSE9a/pFQD20WwrvRKePGhUCepiHc7S82jxVZRwjCsToaNQ==} engines: {node: '>=16.9'} hasBin: true requiresBuild: true @@ -2501,6 +2501,7 @@ packages: /highlight.js/11.5.1: resolution: {integrity: sha512-LKzHqnxr4CrD2YsNoIf/o5nJ09j4yi/GcH5BnYz9UnVpZdS4ucMgvP61TDty5xJcFGRjnH4DpujkS9bHT3hq0Q==} engines: {node: '>=12.0.0'} + dev: false /human-signals/2.1.0: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} diff --git a/theseus_gui/src-tauri/src/main.rs b/theseus_gui/src-tauri/src/main.rs index 0b9c7db0e..191c53683 100644 --- a/theseus_gui/src-tauri/src/main.rs +++ b/theseus_gui/src-tauri/src/main.rs @@ -31,7 +31,7 @@ fn main() { MenuEntry::Submenu(Submenu::new( &ctx.package_info().name, Menu::with_items([ - MenuItem::About(ctx.package_info().name.clone()).into(), + // MenuItem::About(ctx.package_info().name.clone()).into(), MenuItem::Separator.into(), MenuItem::Services.into(), MenuItem::Separator.into(), diff --git a/theseus_gui/src/routes/__layout.svelte b/theseus_gui/src/routes/__layout.svelte index 2f17a8d66..5b4101696 100644 --- a/theseus_gui/src/routes/__layout.svelte +++ b/theseus_gui/src/routes/__layout.svelte @@ -1,58 +1,58 @@ - -
- - - - - + + + + +
diff --git a/theseus_gui/svelte.config.js b/theseus_gui/svelte.config.js index 35d2e9284..d9572d71c 100644 --- a/theseus_gui/svelte.config.js +++ b/theseus_gui/svelte.config.js @@ -4,17 +4,22 @@ import path from 'path'; /** @type {import('@sveltejs/kit').Config} */ const config = { - preprocess: [ preprocess ], - kit: { - adapter: adapter({ - fallback: '200.html', - }), + preprocess: [preprocess], + kit: { + adapter: adapter({ + fallback: '200.html' + }), - alias: { - $generated: path.resolve('./generated'), - $stores: path.resolve('./src/stores'), - } + alias: { + $generated: path.resolve('./generated'), + $stores: path.resolve('./src/stores'), + $assets: path.resolve('./src/assets'), + $components: path.resolve('./src/components'), + $layout: path.resolve('./src/layout'), + $lib: path.resolve('./src/lib'), + $styles: path.resolve('./src/styles') } + } }; export default config; diff --git a/theseus_gui/vite.config.js b/theseus_gui/vite.config.js index 79f8627a6..c8fac45ce 100644 --- a/theseus_gui/vite.config.js +++ b/theseus_gui/vite.config.js @@ -1,39 +1,28 @@ import { sveltekit } from '@sveltejs/kit/vite'; -import path from "path"; +import path from 'path'; import { plugins } from 'omorphia/config/vite'; import precompileIntl from 'svelte-intl-precompile/sveltekit-plugin'; import { Generator } from 'omorphia/plugins'; /** @type {import('vite').UserConfig} */ const config = { - plugins: [ - sveltekit(), - ...plugins, - precompileIntl('locales'), - Generator({ - gameVersions: true, - openapi: true, - }), - ], - optimizeDeps: { - include: ["highlight.js/lib/core"], - }, - resolve: { - alias: { - $assets: path.resolve('./src/assets'), - $components: path.resolve('./src/components'), - $layout: path.resolve('./src/layout'), - $lib: path.resolve('./src/lib'), - $stores: path.resolve('./src/stores'), - $styles: path.resolve('./src/styles'), - $generated: path.resolve('./src/generated'), - }, - }, - server: { - fs: { - allow: ['generated'], - }, - }, + plugins: [ + sveltekit(), + ...plugins, + precompileIntl('locales'), + Generator({ + gameVersions: true, + openapi: true + }) + ], + optimizeDeps: { + include: ['highlight.js/lib/core'] + }, + server: { + fs: { + allow: ['generated'] + } + } }; export default config;