chore: updated schema
This commit is contained in:
parent
44c5df9a7f
commit
793e7d8b51
2 changed files with 29 additions and 91 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "torn-api"
|
name = "torn-api"
|
||||||
version = "1.7.3"
|
version = "1.7.4"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Auto-generated bindings for the v2 torn api"
|
description = "Auto-generated bindings for the v2 torn api"
|
||||||
license = { workspace = true }
|
license = { 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": "3.0.5"
|
"version": "3.0.6"
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
|
|
@ -22,17 +22,7 @@
|
||||||
"operationId": "3acc98a3016974b786cb01e04e1ced04",
|
"operationId": "3acc98a3016974b786cb01e04e1ced04",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "filters",
|
"$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
|
||||||
"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/ApiLimit100"
|
"$ref": "#/components/parameters/ApiLimit100"
|
||||||
|
|
@ -86,17 +76,7 @@
|
||||||
"operationId": "e995691fd9845c8b4a91f065ac9c8420",
|
"operationId": "e995691fd9845c8b4a91f065ac9c8420",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "filters",
|
"$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
|
||||||
"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/ApiLimit1000"
|
"$ref": "#/components/parameters/ApiLimit1000"
|
||||||
|
|
@ -1616,17 +1596,7 @@
|
||||||
"operationId": "3c847eb1325040798f37a7492108e094",
|
"operationId": "3c847eb1325040798f37a7492108e094",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "filters",
|
"$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
|
||||||
"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/ApiLimit100Default20"
|
"$ref": "#/components/parameters/ApiLimit100Default20"
|
||||||
|
|
@ -1683,17 +1653,7 @@
|
||||||
"operationId": "8820cd889afde899353037ca5a0f9a07",
|
"operationId": "8820cd889afde899353037ca5a0f9a07",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "filters",
|
"$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
|
||||||
"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/ApiLimit1000Default20"
|
"$ref": "#/components/parameters/ApiLimit1000Default20"
|
||||||
|
|
@ -1908,6 +1868,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/parameters/ApiStripTags"
|
"$ref": "#/components/parameters/ApiStripTags"
|
||||||
},
|
},
|
||||||
|
|
@ -2072,17 +2035,7 @@
|
||||||
"operationId": "cb5b38ba64c389e706526df8bc8af9b6",
|
"operationId": "cb5b38ba64c389e706526df8bc8af9b6",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "filters",
|
"$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
|
||||||
"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/ApiLimit100"
|
"$ref": "#/components/parameters/ApiLimit100"
|
||||||
|
|
@ -2136,17 +2089,7 @@
|
||||||
"operationId": "8551280aaaf9819aa94be5c469a523de",
|
"operationId": "8551280aaaf9819aa94be5c469a523de",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "filters",
|
"$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
|
||||||
"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/ApiLimit1000"
|
"$ref": "#/components/parameters/ApiLimit1000"
|
||||||
|
|
@ -3487,17 +3430,7 @@
|
||||||
"operationId": "486fcda26ed1aa6aba8ec7091080723b",
|
"operationId": "486fcda26ed1aa6aba8ec7091080723b",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "filters",
|
"$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
|
||||||
"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/ApiLimit100"
|
"$ref": "#/components/parameters/ApiLimit100"
|
||||||
|
|
@ -3554,17 +3487,7 @@
|
||||||
"operationId": "f17a4064779e8de5200238816c233c02",
|
"operationId": "f17a4064779e8de5200238816c233c02",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "filters",
|
"$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
|
||||||
"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/ApiLimit1000"
|
"$ref": "#/components/parameters/ApiLimit1000"
|
||||||
|
|
@ -4376,7 +4299,9 @@
|
||||||
"created_at",
|
"created_at",
|
||||||
"executed_at",
|
"executed_at",
|
||||||
"ready_at",
|
"ready_at",
|
||||||
"expired_at"
|
"expired_at",
|
||||||
|
"incoming",
|
||||||
|
"outgoing"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -25584,6 +25509,19 @@
|
||||||
"type": "string"
|
"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": {
|
"ApiFactionSearchFilter": {
|
||||||
"name": "filters",
|
"name": "filters",
|
||||||
"in": "query",
|
"in": "query",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue