diff --git a/torn-api/Cargo.toml b/torn-api/Cargo.toml index 5b88128..2158965 100644 --- a/torn-api/Cargo.toml +++ b/torn-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "torn-api" -version = "1.7.3" +version = "1.7.4" edition = "2021" description = "Auto-generated bindings for the v2 torn api" license = { workspace = true } diff --git a/torn-api/openapi.json b/torn-api/openapi.json index ac1e306..28e86cc 100644 --- a/torn-api/openapi.json +++ b/torn-api/openapi.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "3.0.5" + "version": "3.0.6" }, "servers": [ { @@ -22,17 +22,7 @@ "operationId": "3acc98a3016974b786cb01e04e1ced04", "parameters": [ { - "name": "filters", - "in": "query", - "description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "incoming", - "outgoing" - ] - } + "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing" }, { "$ref": "#/components/parameters/ApiLimit100" @@ -86,17 +76,7 @@ "operationId": "e995691fd9845c8b4a91f065ac9c8420", "parameters": [ { - "name": "filters", - "in": "query", - "description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "incoming", - "outgoing" - ] - } + "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing" }, { "$ref": "#/components/parameters/ApiLimit1000" @@ -1616,17 +1596,7 @@ "operationId": "3c847eb1325040798f37a7492108e094", "parameters": [ { - "name": "filters", - "in": "query", - "description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "incoming", - "outgoing" - ] - } + "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing" }, { "$ref": "#/components/parameters/ApiLimit100Default20" @@ -1683,17 +1653,7 @@ "operationId": "8820cd889afde899353037ca5a0f9a07", "parameters": [ { - "name": "filters", - "in": "query", - "description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "incoming", - "outgoing" - ] - } + "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing" }, { "$ref": "#/components/parameters/ApiLimit1000Default20" @@ -1908,6 +1868,9 @@ } } }, + { + "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing" + }, { "$ref": "#/components/parameters/ApiStripTags" }, @@ -2072,17 +2035,7 @@ "operationId": "cb5b38ba64c389e706526df8bc8af9b6", "parameters": [ { - "name": "filters", - "in": "query", - "description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "incoming", - "outgoing" - ] - } + "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing" }, { "$ref": "#/components/parameters/ApiLimit100" @@ -2136,17 +2089,7 @@ "operationId": "8551280aaaf9819aa94be5c469a523de", "parameters": [ { - "name": "filters", - "in": "query", - "description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "incoming", - "outgoing" - ] - } + "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing" }, { "$ref": "#/components/parameters/ApiLimit1000" @@ -3487,17 +3430,7 @@ "operationId": "486fcda26ed1aa6aba8ec7091080723b", "parameters": [ { - "name": "filters", - "in": "query", - "description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "incoming", - "outgoing" - ] - } + "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing" }, { "$ref": "#/components/parameters/ApiLimit100" @@ -3554,17 +3487,7 @@ "operationId": "f17a4064779e8de5200238816c233c02", "parameters": [ { - "name": "filters", - "in": "query", - "description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "incoming", - "outgoing" - ] - } + "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing" }, { "$ref": "#/components/parameters/ApiLimit1000" @@ -4376,7 +4299,9 @@ "created_at", "executed_at", "ready_at", - "expired_at" + "expired_at", + "incoming", + "outgoing" ] } }, @@ -25584,6 +25509,19 @@ "type": "string" } }, + "ApiFiltersIncomingOutgoing": { + "name": "filters", + "in": "query", + "description": "It's possible to use this query parameter to only get incoming or outgoing attacks / revives. If not specified, this selection will return both incoming and outgoing attacks / revives.", + "required": false, + "schema": { + "type": "string", + "enum": [ + "incoming", + "outgoing" + ] + } + }, "ApiFactionSearchFilter": { "name": "filters", "in": "query",