chore(torn-api): update scheme
This commit is contained in:
parent
3819ed1b7d
commit
3e585d7559
3 changed files with 286 additions and 82 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -2294,7 +2294,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "torn-api"
|
name = "torn-api"
|
||||||
version = "1.7.0"
|
version = "1.7.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bon",
|
"bon",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "torn-api"
|
name = "torn-api"
|
||||||
version = "1.7.0"
|
version = "1.7.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Auto-generated bindings for the v2 torn api"
|
description = "Auto-generated bindings for the v2 torn api"
|
||||||
license-file = { workspace = true }
|
license-file = { workspace = true }
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
"info": {
|
"info": {
|
||||||
"title": "Torn API",
|
"title": "Torn API",
|
||||||
"description": "\n * The development of Torn's API v2 is still ongoing.\n * If selections remain unaltered, they will default to the API v1 version.\n * Unlike API v1, API v2 accepts both selections and IDs as path and query parameters.\n * If any discrepancies or errors are found, please submit a [bug report](https://www.torn.com/forums.php#/p=forums&f=19&b=0&a=0) on the Torn Forums.\n * In case you're using bots to check for changes on openapi.json file, make sure to specificy a custom user-agent header - CloudFlare sometimes prevents requests from default user-agents.",
|
"description": "\n * The development of Torn's API v2 is still ongoing.\n * If selections remain unaltered, they will default to the API v1 version.\n * Unlike API v1, API v2 accepts both selections and IDs as path and query parameters.\n * If any discrepancies or errors are found, please submit a [bug report](https://www.torn.com/forums.php#/p=forums&f=19&b=0&a=0) on the Torn Forums.\n * In case you're using bots to check for changes on openapi.json file, make sure to specificy a custom user-agent header - CloudFlare sometimes prevents requests from default user-agents.",
|
||||||
"version": "1.11.4"
|
"version": "2.0.2"
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
|
|
@ -2953,7 +2953,7 @@
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/schemas/FactionRacketsReponse"
|
"$ref": "#/components/schemas/FactionRacketsResponse"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3551,7 +3551,7 @@
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/schemas/FactionTerritoriesReponse"
|
"$ref": "#/components/schemas/FactionTerritoriesResponse"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3599,7 +3599,7 @@
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/schemas/FactionTerritoriesReponse"
|
"$ref": "#/components/schemas/FactionTerritoriesResponse"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4304,7 +4304,7 @@
|
||||||
"$ref": "#/components/schemas/FactionTerritoryWarReportResponse"
|
"$ref": "#/components/schemas/FactionTerritoryWarReportResponse"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FactionTerritoriesReponse"
|
"$ref": "#/components/schemas/FactionTerritoriesResponse"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FactionUpgradesResponse"
|
"$ref": "#/components/schemas/FactionUpgradesResponse"
|
||||||
|
|
@ -4319,7 +4319,7 @@
|
||||||
"$ref": "#/components/schemas/FactionContributorsResponse"
|
"$ref": "#/components/schemas/FactionContributorsResponse"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FactionRacketsReponse"
|
"$ref": "#/components/schemas/FactionRacketsResponse"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FactionRankedWarResponse"
|
"$ref": "#/components/schemas/FactionRankedWarResponse"
|
||||||
|
|
@ -6773,6 +6773,45 @@
|
||||||
"x-stability": "Stable"
|
"x-stability": "Stable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/torn/organizedcrimes": {
|
||||||
|
"get": {
|
||||||
|
"tags": [
|
||||||
|
"Torn"
|
||||||
|
],
|
||||||
|
"summary": "Get organized crimes information",
|
||||||
|
"description": "Requires public access key. <br> Return the details about released faction organized crimes.",
|
||||||
|
"operationId": "b64b8cf22cd9e9c8916bc01439f6b069",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiTimestamp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiComment"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiKeyPublic"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Successful operation",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/TornOrganizedCrimeResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"api_key": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"x-stability": "Unstable"
|
||||||
|
}
|
||||||
|
},
|
||||||
"/torn/properties": {
|
"/torn/properties": {
|
||||||
"get": {
|
"get": {
|
||||||
"tags": [
|
"tags": [
|
||||||
|
|
@ -7148,7 +7187,7 @@
|
||||||
"$ref": "#/components/schemas/TornTerritoriesResponse"
|
"$ref": "#/components/schemas/TornTerritoriesResponse"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/TornTerritoriesNoLinksReponse"
|
"$ref": "#/components/schemas/TornTerritoriesNoLinksResponse"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/TornItemModsResponse"
|
"$ref": "#/components/schemas/TornItemModsResponse"
|
||||||
|
|
@ -11851,6 +11890,9 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
|
"OrganizedCrimeName": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"PropertyTypeId": {
|
"PropertyTypeId": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
|
|
@ -13643,7 +13685,8 @@
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": "object",
|
"type": "array",
|
||||||
|
"items": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
||||||
|
|
@ -13661,6 +13704,7 @@
|
||||||
"$ref": "#/components/schemas/UserPropertyDetailsExtendedForSale"
|
"$ref": "#/components/schemas/UserPropertyDetailsExtendedForSale"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"_metadata": {
|
"_metadata": {
|
||||||
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
||||||
|
|
@ -14450,7 +14494,7 @@
|
||||||
"races": {
|
"races": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/RacingRaceDetailsResponse"
|
"$ref": "#/components/schemas/RacingRaceDetails"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"_metadata": {
|
"_metadata": {
|
||||||
|
|
@ -18986,10 +19030,10 @@
|
||||||
},
|
},
|
||||||
"FactionTerritoriesOwnershipResponse": {
|
"FactionTerritoriesOwnershipResponse": {
|
||||||
"required": [
|
"required": [
|
||||||
"territoryownership"
|
"territoryOwnership"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"territoryownership": {
|
"territoryOwnership": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/FactionTerritoryOwnership"
|
"$ref": "#/components/schemas/FactionTerritoryOwnership"
|
||||||
|
|
@ -19059,7 +19103,7 @@
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"FactionRacketsReponse": {
|
"FactionRacketsResponse": {
|
||||||
"required": [
|
"required": [
|
||||||
"rackets"
|
"rackets"
|
||||||
],
|
],
|
||||||
|
|
@ -19129,7 +19173,7 @@
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"FactionTerritoriesReponse": {
|
"FactionTerritoriesResponse": {
|
||||||
"required": [
|
"required": [
|
||||||
"territory"
|
"territory"
|
||||||
],
|
],
|
||||||
|
|
@ -20075,6 +20119,8 @@
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
"stats": {
|
"stats": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
"required": [
|
"required": [
|
||||||
"strength",
|
"strength",
|
||||||
"speed",
|
"speed",
|
||||||
|
|
@ -20100,13 +20146,25 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"message": {
|
"message": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"valid_until": {
|
"valid_until": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
|
|
@ -20752,7 +20810,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string"
|
"$ref": "#/components/schemas/OrganizedCrimeName"
|
||||||
},
|
},
|
||||||
"difficulty": {
|
"difficulty": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
|
@ -23218,9 +23276,7 @@
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"RacingRaceDetailsResponse": {
|
"RacingRaceDetails": {
|
||||||
"properties": {
|
|
||||||
"race": {
|
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Race"
|
"$ref": "#/components/schemas/Race"
|
||||||
|
|
@ -23244,6 +23300,14 @@
|
||||||
"type": "object"
|
"type": "object"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"RacingRaceDetailsResponse": {
|
||||||
|
"required": [
|
||||||
|
"race"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"race": {
|
||||||
|
"$ref": "#/components/schemas/RacingRaceDetails"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
|
@ -23311,6 +23375,144 @@
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"TornOrganizedCrimeResponse": {
|
||||||
|
"required": [
|
||||||
|
"organizedcrimes"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"organizedcrimes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/TornOrganizedCrime"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"TornOrganizedCrime": {
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"description",
|
||||||
|
"difficulty",
|
||||||
|
"spawn",
|
||||||
|
"scope",
|
||||||
|
"slots",
|
||||||
|
"prerequisite"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"$ref": "#/components/schemas/OrganizedCrimeName"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"difficulty": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"spawn": {
|
||||||
|
"$ref": "#/components/schemas/TornOrganizedCrimeSpawn"
|
||||||
|
},
|
||||||
|
"scope": {
|
||||||
|
"$ref": "#/components/schemas/TornOrganizedCrimeScope"
|
||||||
|
},
|
||||||
|
"prerequisite": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/OrganizedCrimeName"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"slots": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/TornOrganizedCrimeSlot"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"TornOrganizedCrimeSpawn": {
|
||||||
|
"required": [
|
||||||
|
"level",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"level": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"TornOrganizedCrimeScope": {
|
||||||
|
"required": [
|
||||||
|
"cost",
|
||||||
|
"return"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"cost": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"return": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"TornOrganizedCrimeSlot": {
|
||||||
|
"required": [
|
||||||
|
"id",
|
||||||
|
"name",
|
||||||
|
"required_item"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"required_item": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/TornOrganizedCrimeRequiredItem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"TornOrganizedCrimeRequiredItem": {
|
||||||
|
"required": [
|
||||||
|
"id",
|
||||||
|
"name",
|
||||||
|
"is_used"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"$ref": "#/components/schemas/ItemId"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"is_used": {
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"TornProperties": {
|
"TornProperties": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
@ -23611,7 +23813,7 @@
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"TornTerritoriesNoLinksReponse": {
|
"TornTerritoriesNoLinksResponse": {
|
||||||
"required": [
|
"required": [
|
||||||
"territory"
|
"territory"
|
||||||
],
|
],
|
||||||
|
|
@ -23668,7 +23870,8 @@
|
||||||
"enhancer_id",
|
"enhancer_id",
|
||||||
"enhancer_name",
|
"enhancer_name",
|
||||||
"unique_outcomes_count",
|
"unique_outcomes_count",
|
||||||
"unique_outcomes_ids"
|
"unique_outcomes_ids",
|
||||||
|
"notes"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
|
|
@ -24813,6 +25016,7 @@
|
||||||
"logcategories",
|
"logcategories",
|
||||||
"logtypes",
|
"logtypes",
|
||||||
"lookup",
|
"lookup",
|
||||||
|
"organizedcrimes",
|
||||||
"properties",
|
"properties",
|
||||||
"subcrimes",
|
"subcrimes",
|
||||||
"territory",
|
"territory",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue