Skip to content

Commit 0c87e93

Browse files
committed
Add renamed models: ForgeUpdateCheckerPromos, License
1 parent 0e7a940 commit 0c87e93

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* ForgeUpdatesPromos
3+
* ForgeUpdateCheckerPromos
44
*
55
* PHP version 7.4
66
*
@@ -15,10 +15,10 @@
1515
*
1616
* ## Authentication This API uses personal access tokens tied to a user account for authentication. The token is in the `Authorization` header of the request. Example: ``` Authorization: mrp_RNtLRSPmGj2pd1v1ubi52nX7TJJM9sznrmwhAuj511oe4t1jAqAQ3D6Wc8Ic ``` You do not need a token for most requests. Generally speaking, only the following types of requests require a token: - those which create data (such as version creation) - those which modify data (such as editing a project) - those which access private data (such as draft projects, notifications, emails, and payout data) Applications interacting with the authenticated API should have the user generate a personal access token from [their user settings](https://modrinth.com/settings/account). Each request requiring authentication has a certain scope. For example, to view the email of the user being requested, the token must have the `USER_READ_EMAIL` scope. You can find the list of available scopes [on GitHub](https://github.com/modrinth/labrinth/blob/master/src/models/pats.rs#L15). Making a request with an invalid scope will return a 401 error. Please note that certain scopes and requests cannot be completed with a personal access token. For example, deleting a user account can only be done through Modrinth's frontend. For backwards compatibility purposes, some types of GitHub tokens also work for authenticating a user with Modrinth's API, granting all scopes. **We urge any application still using GitHub tokens to start using personal access tokens for security and reliability purposes.** GitHub tokens will cease to function to authenticate with Modrinth's API as soon as version 3 of the API is made generally available. ## Cross-Origin Resource Sharing This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with the [W3C spec](https://www.w3.org/TR/cors/). This allows for cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site. ## Identifiers The majority of items you can interact with in the API have a unique eight-digit base62 ID. Projects, versions, users, threads, teams, and reports all use this same way of identifying themselves. Version files use the sha1 or sha512 file hashes as identifiers. Each project and user has a friendlier way of identifying them; slugs and usernames, respectively. While unique IDs are constant, slugs and usernames can change at any moment. If you want to store something in the long term, it is recommended to use the unique ID. ## Ratelimits The API has a ratelimit defined per IP. Limits and remaining amounts are given in the response headers. - `X-Ratelimit-Limit`: the maximum number of requests that can be made in a minute - `X-Ratelimit-Remaining`: the number of requests remaining in the current ratelimit window - `X-Ratelimit-Reset`: the time in seconds until the ratelimit window resets Ratelimits are the same no matter whether you use a token or not. The ratelimit is currently 300 requests per minute. If you have a use case requiring a higher limit, please [contact us](mailto:admin@modrinth.com). ## User Agents To access the Modrinth API, you **must** use provide a uniquely-identifying `User-Agent` header. Providing a user agent that only identifies your HTTP client library (such as \"okhttp/4.9.3\") increases the likelihood that we will block your traffic. It is recommended, but not required, to include contact information in your user agent. This allows us to contact you if we would like a change in your application's behavior without having to block your traffic. - Bad: `User-Agent: okhttp/4.9.3` - Good: `User-Agent: project_name` - Better: `User-Agent: github_username/project_name/1.56.0` - Best: `User-Agent: github_username/project_name/1.56.0 (launcher.com)` or `User-Agent: github_username/project_name/1.56.0 (contact@launcher.com)` ## Versioning Modrinth follows a simple pattern for its API versioning. In the event of a breaking API change, the API version in the URL path is bumped, and migration steps will be published [on the migrations page](/docs/migrations/information). When an API is no longer the current one, it will immediately be considered deprecated. No more support will be provided for API versions older than the current one. It will be kept for some time, but this amount of time is not certain. We will exercise various tactics to get people to update their implementation of our API. One example is by adding something like `STOP USING THIS API` to various data returned by the API. Once an API version is completely deprecated, it will permanently return a 410 error. Please ensure your application handles these 410 errors.
1717
*
18-
* The version of the OpenAPI document: v2.7.0/ec80c2b
18+
* The version of the OpenAPI document: v2.7.0/15cf3fc
1919
* Contact: support@modrinth.com
2020
* Generated by: https://openapi-generator.tech
21-
* OpenAPI Generator version: 7.0.1
21+
* OpenAPI Generator version: 7.1.0
2222
*/
2323

2424
/**
@@ -33,7 +33,7 @@
3333
use \Aternos\ModrinthApi\ObjectSerializer;
3434

3535
/**
36-
* ForgeUpdatesPromos Class Doc Comment
36+
* ForgeUpdateCheckerPromos Class Doc Comment
3737
*
3838
* @category Class
3939
* @description A list of the recommended and latest versions for each Minecraft release
@@ -42,7 +42,7 @@
4242
* @link https://openapi-generator.tech
4343
* @implements \ArrayAccess<string, mixed>
4444
*/
45-
class ForgeUpdatesPromos implements ModelInterface, ArrayAccess, \JsonSerializable
45+
class ForgeUpdateCheckerPromos implements ModelInterface, ArrayAccess, \JsonSerializable
4646
{
4747
public const DISCRIMINATOR = null;
4848

@@ -51,7 +51,7 @@ class ForgeUpdatesPromos implements ModelInterface, ArrayAccess, \JsonSerializab
5151
*
5252
* @var string
5353
*/
54-
protected static $openAPIModelName = 'ForgeUpdatesPromos';
54+
protected static $openAPIModelName = 'ForgeUpdateCheckerPromos';
5555

5656
/**
5757
* Array of property to type mappings. Used for (de)serialization
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* LicenseText200Response
3+
* License
44
*
55
* PHP version 7.4
66
*
@@ -15,10 +15,10 @@
1515
*
1616
* ## Authentication This API uses personal access tokens tied to a user account for authentication. The token is in the `Authorization` header of the request. Example: ``` Authorization: mrp_RNtLRSPmGj2pd1v1ubi52nX7TJJM9sznrmwhAuj511oe4t1jAqAQ3D6Wc8Ic ``` You do not need a token for most requests. Generally speaking, only the following types of requests require a token: - those which create data (such as version creation) - those which modify data (such as editing a project) - those which access private data (such as draft projects, notifications, emails, and payout data) Applications interacting with the authenticated API should have the user generate a personal access token from [their user settings](https://modrinth.com/settings/account). Each request requiring authentication has a certain scope. For example, to view the email of the user being requested, the token must have the `USER_READ_EMAIL` scope. You can find the list of available scopes [on GitHub](https://github.com/modrinth/labrinth/blob/master/src/models/pats.rs#L15). Making a request with an invalid scope will return a 401 error. Please note that certain scopes and requests cannot be completed with a personal access token. For example, deleting a user account can only be done through Modrinth's frontend. For backwards compatibility purposes, some types of GitHub tokens also work for authenticating a user with Modrinth's API, granting all scopes. **We urge any application still using GitHub tokens to start using personal access tokens for security and reliability purposes.** GitHub tokens will cease to function to authenticate with Modrinth's API as soon as version 3 of the API is made generally available. ## Cross-Origin Resource Sharing This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with the [W3C spec](https://www.w3.org/TR/cors/). This allows for cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site. ## Identifiers The majority of items you can interact with in the API have a unique eight-digit base62 ID. Projects, versions, users, threads, teams, and reports all use this same way of identifying themselves. Version files use the sha1 or sha512 file hashes as identifiers. Each project and user has a friendlier way of identifying them; slugs and usernames, respectively. While unique IDs are constant, slugs and usernames can change at any moment. If you want to store something in the long term, it is recommended to use the unique ID. ## Ratelimits The API has a ratelimit defined per IP. Limits and remaining amounts are given in the response headers. - `X-Ratelimit-Limit`: the maximum number of requests that can be made in a minute - `X-Ratelimit-Remaining`: the number of requests remaining in the current ratelimit window - `X-Ratelimit-Reset`: the time in seconds until the ratelimit window resets Ratelimits are the same no matter whether you use a token or not. The ratelimit is currently 300 requests per minute. If you have a use case requiring a higher limit, please [contact us](mailto:admin@modrinth.com). ## User Agents To access the Modrinth API, you **must** use provide a uniquely-identifying `User-Agent` header. Providing a user agent that only identifies your HTTP client library (such as \"okhttp/4.9.3\") increases the likelihood that we will block your traffic. It is recommended, but not required, to include contact information in your user agent. This allows us to contact you if we would like a change in your application's behavior without having to block your traffic. - Bad: `User-Agent: okhttp/4.9.3` - Good: `User-Agent: project_name` - Better: `User-Agent: github_username/project_name/1.56.0` - Best: `User-Agent: github_username/project_name/1.56.0 (launcher.com)` or `User-Agent: github_username/project_name/1.56.0 (contact@launcher.com)` ## Versioning Modrinth follows a simple pattern for its API versioning. In the event of a breaking API change, the API version in the URL path is bumped, and migration steps will be published [on the migrations page](/docs/migrations/information). When an API is no longer the current one, it will immediately be considered deprecated. No more support will be provided for API versions older than the current one. It will be kept for some time, but this amount of time is not certain. We will exercise various tactics to get people to update their implementation of our API. One example is by adding something like `STOP USING THIS API` to various data returned by the API. Once an API version is completely deprecated, it will permanently return a 410 error. Please ensure your application handles these 410 errors.
1717
*
18-
* The version of the OpenAPI document: v2.7.0/ec80c2b
18+
* The version of the OpenAPI document: v2.7.0/15cf3fc
1919
* Contact: support@modrinth.com
2020
* Generated by: https://openapi-generator.tech
21-
* OpenAPI Generator version: 7.0.1
21+
* OpenAPI Generator version: 7.1.0
2222
*/
2323

2424
/**
@@ -33,7 +33,7 @@
3333
use \Aternos\ModrinthApi\ObjectSerializer;
3434

3535
/**
36-
* LicenseText200Response Class Doc Comment
36+
* License Class Doc Comment
3737
*
3838
* @category Class
3939
* @description A full license
@@ -42,7 +42,7 @@
4242
* @link https://openapi-generator.tech
4343
* @implements \ArrayAccess<string, mixed>
4444
*/
45-
class LicenseText200Response implements ModelInterface, ArrayAccess, \JsonSerializable
45+
class License implements ModelInterface, ArrayAccess, \JsonSerializable
4646
{
4747
public const DISCRIMINATOR = null;
4848

@@ -51,7 +51,7 @@ class LicenseText200Response implements ModelInterface, ArrayAccess, \JsonSerial
5151
*
5252
* @var string
5353
*/
54-
protected static $openAPIModelName = 'LicenseText200Response';
54+
protected static $openAPIModelName = 'License';
5555

5656
/**
5757
* Array of property to type mappings. Used for (de)serialization

0 commit comments

Comments
 (0)