Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
invokerPackage: Aternos\CurseForgeApi
artifactVersion: 1.3.2
artifactVersion: 3.1.0
generatorName: php-nextgen
outputDir: .
sourceFolder: src
inputSpec: openapi.yaml
enumUnknownDefaultCase: true
16 changes: 0 additions & 16 deletions docs/Model/FingerprintsMatchesResult.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/Model/GetFingerprintsFuzzyMatchesResponse.md

This file was deleted.

2 changes: 1 addition & 1 deletion openapitools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.17.0"
"version": "7.26.0"
}
}
2 changes: 1 addition & 1 deletion src/Api/CategoriesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Api/FilesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Api/FingerprintsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Api/GamesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Api/MinecraftApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Api/ModsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
30 changes: 19 additions & 11 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down Expand Up @@ -99,7 +99,7 @@ class Configuration
*
* @var string
*/
protected string $userAgent = 'OpenAPI-Generator/1.3.2/PHP';
protected string $userAgent = 'OpenAPI-Generator/3.1.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -140,14 +140,18 @@ public function __construct()
/**
* Sets API key
*
* @param string $apiKeyIdentifier API key identifier (authentication scheme)
* @param string $key API key or token
* @param string $apiKeyIdentifier API key identifier (authentication scheme)
* @param string|null $key API key or token
*
* @return $this
*/
public function setApiKey(string $apiKeyIdentifier, string $key): static
public function setApiKey(string $apiKeyIdentifier, ?string $key): static
{
$this->apiKeys[$apiKeyIdentifier] = $key;
if ($key === null) {
unset($this->apiKeys[$apiKeyIdentifier]);
} else {
$this->apiKeys[$apiKeyIdentifier] = $key;
}
return $this;
}

Expand All @@ -166,14 +170,18 @@ public function getApiKey(string $apiKeyIdentifier): ?string
/**
* Sets the prefix for API key (e.g. Bearer)
*
* @param string $apiKeyIdentifier API key identifier (authentication scheme)
* @param string $prefix API key prefix, e.g. Bearer
* @param string $apiKeyIdentifier API key identifier (authentication scheme)
* @param string|null $prefix API key prefix, e.g. Bearer
*
* @return $this
*/
public function setApiKeyPrefix(string $apiKeyIdentifier, string $prefix): static
public function setApiKeyPrefix(string $apiKeyIdentifier, ?string $prefix): static
{
$this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix;
if ($prefix === null) {
unset($this->apiKeyPrefixes[$apiKeyIdentifier]);
} else {
$this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix;
}
return $this;
}

Expand Down Expand Up @@ -458,7 +466,7 @@ public static function toDebugReport(): string
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.3.2' . PHP_EOL;
$report .= ' SDK Package Version: 3.1.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
2 changes: 1 addition & 1 deletion src/FormDataProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Model/AffiliationServiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand All @@ -42,6 +42,8 @@ enum AffiliationServiceType: int
case BISECT = 1;

case BISECT_TWO = 2;

case UNKNOWN_DEFAULT_OPEN_API = 11184809;
}


2 changes: 1 addition & 1 deletion src/Model/AnyOfInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ApiResponseOfListOfMinecraftGameVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ApiResponseOfListOfMinecraftModLoaderIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ApiResponseOfMinecraftGameVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ApiResponseOfMinecraftModLoaderVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Model/ClientFeaturedProjectTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down Expand Up @@ -44,6 +44,8 @@ enum ClientFeaturedProjectTag: int
case HIDDEN_GEM = 2;

case POPULAR = 3;

case UNKNOWN_DEFAULT_OPEN_API = 11184809;
}


2 changes: 1 addition & 1 deletion src/Model/CookerInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Model/CoreApiStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand All @@ -40,6 +40,8 @@ enum CoreApiStatus: int
case _PRIVATE = 1;

case _PUBLIC = 2;

case UNKNOWN_DEFAULT_OPEN_API = 11184809;
}


4 changes: 3 additions & 1 deletion src/Model/CoreStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down Expand Up @@ -48,6 +48,8 @@ enum CoreStatus: int
case APPROVED = 5;

case LIVE = 6;

case UNKNOWN_DEFAULT_OPEN_API = 11184809;
}


2 changes: 1 addition & 1 deletion src/Model/FeaturedModsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/FileDependency.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/FileHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/FileIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/FileModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0.0
* @generated Generated by: https://openapi-generator.tech
* Generator version: 7.25.0
* Generator version: 7.26.0
*/

/**
Expand Down
Loading
Loading