chore(torn-api): version 4.1.1
This commit is contained in:
parent
c3ea04a9ba
commit
cba69ccacd
4 changed files with 443 additions and 89 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.7"
|
version = "4.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bon",
|
"bon",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "torn-api"
|
name = "torn-api"
|
||||||
version = "1.7.7"
|
version = "4.1.1"
|
||||||
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.19"
|
"version": "4.1.1"
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
|
|
@ -557,7 +557,7 @@
|
||||||
"tags": [
|
"tags": [
|
||||||
"User"
|
"User"
|
||||||
],
|
],
|
||||||
"summary": "Get user enlisted cars",
|
"summary": "Get your enlisted cars",
|
||||||
"description": "Requires minimal access key. <br>Returns a list of all user enlisted cars.",
|
"description": "Requires minimal access key. <br>Returns a list of all user enlisted cars.",
|
||||||
"operationId": "dc3deee7629610931240be337c47a8ee",
|
"operationId": "dc3deee7629610931240be337c47a8ee",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
|
@ -591,6 +591,57 @@
|
||||||
"x-stability": "Stable"
|
"x-stability": "Stable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/user/events": {
|
||||||
|
"get": {
|
||||||
|
"tags": [
|
||||||
|
"User"
|
||||||
|
],
|
||||||
|
"summary": "Get your events",
|
||||||
|
"description": "Requires limited access key. <br> Unfortunately, the 'sort' parameter is not available for this selection.",
|
||||||
|
"operationId": "10a22547e0c48046ade435e0b63dfe55",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiStripTagsFalse"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiLimit100Default20"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiFrom"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiTo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiTimestamp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiComment"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiKeyLimited"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Successful operation",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/UserEventsResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"api_key": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"x-stability": "Unstable"
|
||||||
|
}
|
||||||
|
},
|
||||||
"/user/faction": {
|
"/user/faction": {
|
||||||
"get": {
|
"get": {
|
||||||
"tags": [
|
"tags": [
|
||||||
|
|
@ -1501,6 +1552,9 @@
|
||||||
"$ref": "#/components/schemas/UserListEnum"
|
"$ref": "#/components/schemas/UserListEnum"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiStripTagsTrue"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/parameters/ApiLimit50"
|
"$ref": "#/components/parameters/ApiLimit50"
|
||||||
},
|
},
|
||||||
|
|
@ -1689,6 +1743,57 @@
|
||||||
"x-stability": "Stable"
|
"x-stability": "Stable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/user/messages": {
|
||||||
|
"get": {
|
||||||
|
"tags": [
|
||||||
|
"User"
|
||||||
|
],
|
||||||
|
"summary": "Get your messages",
|
||||||
|
"description": "Requires limited access key. <br>",
|
||||||
|
"operationId": "20c7b7a3f7395c2afa73597327f401a3",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiLimit100Default20"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiFrom"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiTo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiSort"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiTimestamp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiComment"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiKeyLimited"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Successful operation",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/UserMessagesResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"api_key": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"x-stability": "Unstable"
|
||||||
|
}
|
||||||
|
},
|
||||||
"/user/money": {
|
"/user/money": {
|
||||||
"get": {
|
"get": {
|
||||||
"tags": [
|
"tags": [
|
||||||
|
|
@ -1728,6 +1833,87 @@
|
||||||
"x-stability": "Unstable"
|
"x-stability": "Unstable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/user/newevents": {
|
||||||
|
"get": {
|
||||||
|
"tags": [
|
||||||
|
"User"
|
||||||
|
],
|
||||||
|
"summary": "Get your unseen events",
|
||||||
|
"description": "Requires limited access key. <br>",
|
||||||
|
"operationId": "945b8ac03944ca79eb0ae8a640aeab3b",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiStripTagsFalse"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiTimestamp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiComment"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiKeyLimited"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Successful operation",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/UserNewEventsResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"api_key": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"x-stability": "Unstable"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/user/newmessages": {
|
||||||
|
"get": {
|
||||||
|
"tags": [
|
||||||
|
"User"
|
||||||
|
],
|
||||||
|
"summary": "Get your unseen messages",
|
||||||
|
"description": "Requires limited access key. <br>",
|
||||||
|
"operationId": "8859066800e0652740bfb17f8ecd15a2",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiTimestamp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiComment"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/ApiKeyLimited"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Successful operation",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/UserNewMessagesResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"api_key": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"x-stability": "Unstable"
|
||||||
|
}
|
||||||
|
},
|
||||||
"/user/organizedcrime": {
|
"/user/organizedcrime": {
|
||||||
"get": {
|
"get": {
|
||||||
"tags": [
|
"tags": [
|
||||||
|
|
@ -1773,7 +1959,7 @@
|
||||||
"User"
|
"User"
|
||||||
],
|
],
|
||||||
"summary": "Get your personal stats",
|
"summary": "Get your personal stats",
|
||||||
"description": "Requires public access key. <br>\n * UserPersonalStatsFull is returned only when this selection is requested with Limited, Full or Custom key access key.\n * UserPersonalStatsFullPublic is returned when the requested category is 'all'.\n * UserPersonalStatsPopular is returned when the requested category is 'popular'. Please try to use UserPersonalStatsPopular over UserPersonalStatsFullPublic wherever possible in order to reduce the server load.\n * Otherwise, UserPersonalStatsCategory is returned for the matched category.\n * It's possible to request specific stats via 'stat' parameter. In this case the response will vary depending on the stats requested. Private stats are still available only to the key owner (with Limited or higher key).\n * Additionally, historical stats can also be fetched via 'stat' query parameter, but 'timestamp' parameter must be provided as well. It's only possible to pass up to 10 historical stats at once (the rest is trimmed). When requesting historical stats the response will be of type UserPersonalStatsHistoric.",
|
"description": "Requires public access key. <br>\n * UserPersonalStatsFull is returned only when this selection is requested with Limited, Full or Custom key access key.\n * UserPersonalStatsFullPublic is returned when the requested category is 'all'.\n * UserPersonalStatsPopular is returned when the requested category is 'popular'. Please try to use UserPersonalStatsPopular over UserPersonalStatsFullPublic wherever possible in order to reduce the server load.\n * Otherwise, UserPersonalStatsCategory is returned for the matched category.\n * Historical stats can be fetched via 'stat' query parameter. It's only possible to pass up to 10 historical stats at once (the rest is trimmed). When requesting historical stats the response will be of type UserPersonalStatsHistoric.\n * Use 'timestamp' query parameter to get historical stats at the certain point in time. It's possible some historical stats didn't exist at the given timestamp, and for such stats you will not receive anything back.",
|
||||||
"operationId": "388e8008ae1c2645819af76d71ef92a5",
|
"operationId": "388e8008ae1c2645819af76d71ef92a5",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
|
@ -2673,6 +2859,20 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "legacy",
|
||||||
|
"in": "query",
|
||||||
|
"description": "Legacy selection names for which you want or expect API v1 response",
|
||||||
|
"required": false,
|
||||||
|
"style": "form",
|
||||||
|
"explode": false,
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/UserSelectionName"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/parameters/ApiLimit"
|
"$ref": "#/components/parameters/ApiLimit"
|
||||||
},
|
},
|
||||||
|
|
@ -2861,6 +3061,18 @@
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/UserBattleStatsResponse"
|
"$ref": "#/components/schemas/UserBattleStatsResponse"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/UserNewEventsResponse"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/UserEventsResponse"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/UserMessagesResponse"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/UserNewMessagesResponse"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/UserLookupResponse"
|
"$ref": "#/components/schemas/UserLookupResponse"
|
||||||
},
|
},
|
||||||
|
|
@ -4107,16 +4319,6 @@
|
||||||
"description": "Requires public access key. <br>",
|
"description": "Requires public access key. <br>",
|
||||||
"operationId": "4f5d624a86e2d389a7a738b6b3ce8c9e",
|
"operationId": "4f5d624a86e2d389a7a738b6b3ce8c9e",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
|
||||||
"name": "cat",
|
|
||||||
"in": "query",
|
|
||||||
"description": "This parameter is deprecated. The ranked wars list can now instead be fetched via 'faction' -> 'warfare' endpoint. This functionality will be removed on 1st of September 2025.",
|
|
||||||
"required": false,
|
|
||||||
"deprecated": true,
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/FactionRankedWarsCategoryEnum"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"$ref": "#/components/parameters/ApiFrom"
|
"$ref": "#/components/parameters/ApiFrom"
|
||||||
},
|
},
|
||||||
|
|
@ -4660,16 +4862,6 @@
|
||||||
"description": "Requires public access key. <br>",
|
"description": "Requires public access key. <br>",
|
||||||
"operationId": "0258963246159d1e3e54547c32aac7c8",
|
"operationId": "0258963246159d1e3e54547c32aac7c8",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
|
||||||
"name": "cat",
|
|
||||||
"in": "query",
|
|
||||||
"description": "This parameter is deprecated. The territory wars list can now instead be fetched via 'faction' -> 'warfare' endpoint. This functionality will be removed on 1st of September 2025.",
|
|
||||||
"required": false,
|
|
||||||
"deprecated": true,
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/FactionTerritoryWarsCategoryEnum"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"$ref": "#/components/parameters/ApiFrom"
|
"$ref": "#/components/parameters/ApiFrom"
|
||||||
},
|
},
|
||||||
|
|
@ -4698,7 +4890,7 @@
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/schemas/FactionTerritoryWarsResponse"
|
"$ref": "#/components/schemas/FactionTerritoryWarsHistoryResponse"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -5121,6 +5313,20 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "legacy",
|
||||||
|
"in": "query",
|
||||||
|
"description": "Legacy selection names for which you want or expect API v1 response",
|
||||||
|
"required": false,
|
||||||
|
"style": "form",
|
||||||
|
"explode": false,
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/FactionSelectionName"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/parameters/ApiLimit"
|
"$ref": "#/components/parameters/ApiLimit"
|
||||||
},
|
},
|
||||||
|
|
@ -5307,9 +5513,6 @@
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FactionStatsResponse"
|
"$ref": "#/components/schemas/FactionStatsResponse"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/FactionTerritoryWarsResponse"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/FactionContributorsResponse"
|
"$ref": "#/components/schemas/FactionContributorsResponse"
|
||||||
},
|
},
|
||||||
|
|
@ -6328,6 +6531,20 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "legacy",
|
||||||
|
"in": "query",
|
||||||
|
"description": "Legacy selection names for which you want or expect API v1 response",
|
||||||
|
"required": false,
|
||||||
|
"style": "form",
|
||||||
|
"explode": false,
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/MarketSelectionName"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "cat",
|
"name": "cat",
|
||||||
"in": "query",
|
"in": "query",
|
||||||
|
|
@ -8326,6 +8543,20 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "legacy",
|
||||||
|
"in": "query",
|
||||||
|
"description": "Legacy selection names for which you want or expect API v1 response",
|
||||||
|
"required": false,
|
||||||
|
"style": "form",
|
||||||
|
"explode": false,
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/TornSelectionName"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/parameters/ApiStripTags"
|
"$ref": "#/components/parameters/ApiStripTags"
|
||||||
},
|
},
|
||||||
|
|
@ -8480,6 +8711,15 @@
|
||||||
"Subscriber"
|
"Subscriber"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"UserMessageTypeEnum": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Company newsletter",
|
||||||
|
"Faction newsletter",
|
||||||
|
"Warning",
|
||||||
|
"User message"
|
||||||
|
]
|
||||||
|
},
|
||||||
"JobTypeEnum": {
|
"JobTypeEnum": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
|
@ -8499,6 +8739,28 @@
|
||||||
"Married"
|
"Married"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"UserPlaneImageTypeEnum": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"private_jet",
|
||||||
|
"light_aircraft",
|
||||||
|
"airliner"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"UserStatusStateEnum": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Abroad",
|
||||||
|
"Awoken",
|
||||||
|
"Dormant",
|
||||||
|
"Fallen",
|
||||||
|
"Federal",
|
||||||
|
"Hospital",
|
||||||
|
"Jail",
|
||||||
|
"Okay",
|
||||||
|
"Traveling"
|
||||||
|
]
|
||||||
|
},
|
||||||
"UserRoleEnum": {
|
"UserRoleEnum": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
|
@ -8565,7 +8827,8 @@
|
||||||
"Sage",
|
"Sage",
|
||||||
"Coward",
|
"Coward",
|
||||||
"Newcomer",
|
"Newcomer",
|
||||||
"Deserter"
|
"Deserter",
|
||||||
|
"Citizen"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"UserRankEnum": {
|
"UserRankEnum": {
|
||||||
|
|
@ -13389,6 +13652,13 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
|
"UserMessageId": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64"
|
||||||
|
},
|
||||||
|
"UserEventId": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"UserIconId": {
|
"UserIconId": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
|
|
@ -13559,7 +13829,8 @@
|
||||||
"Uncommon",
|
"Uncommon",
|
||||||
"Common",
|
"Common",
|
||||||
"Very Common",
|
"Very Common",
|
||||||
"Unknown"
|
"Unknown",
|
||||||
|
"Unknown Rarity"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Parameters": {
|
"Parameters": {
|
||||||
|
|
@ -14920,6 +15191,126 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"UserNewEventsResponse": {
|
||||||
|
"required": [
|
||||||
|
"events"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"events": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/UserEvent"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"UserEventsResponse": {
|
||||||
|
"required": [
|
||||||
|
"events",
|
||||||
|
"_metadata"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"events": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/UserEvent"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"_metadata": {
|
||||||
|
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"UserEvent": {
|
||||||
|
"required": [
|
||||||
|
"id",
|
||||||
|
"timestamp",
|
||||||
|
"event"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"$ref": "#/components/schemas/UserEventId"
|
||||||
|
},
|
||||||
|
"timestamp": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"event": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"UserMessagesResponse": {
|
||||||
|
"required": [
|
||||||
|
"messages",
|
||||||
|
"_metadata"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"messages": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/UserMessage"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"_metadata": {
|
||||||
|
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"UserNewMessagesResponse": {
|
||||||
|
"required": [
|
||||||
|
"messages"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"messages": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/UserMessage"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"UserMessage": {
|
||||||
|
"required": [
|
||||||
|
"id",
|
||||||
|
"sender",
|
||||||
|
"timestamp",
|
||||||
|
"topic",
|
||||||
|
"type",
|
||||||
|
"seen",
|
||||||
|
"read"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"$ref": "#/components/schemas/UserMessageId"
|
||||||
|
},
|
||||||
|
"sender": {
|
||||||
|
"$ref": "#/components/schemas/BasicUser"
|
||||||
|
},
|
||||||
|
"timestamp": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"topic": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"$ref": "#/components/schemas/UserMessageTypeEnum"
|
||||||
|
},
|
||||||
|
"seen": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"read": {
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"UserIconPublic": {
|
"UserIconPublic": {
|
||||||
"required": [
|
"required": [
|
||||||
"id",
|
"id",
|
||||||
|
|
@ -17686,7 +18077,7 @@
|
||||||
"UserSelectionName": {
|
"UserSelectionName": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','inventory','messages','missions','networth','newevents','newmessages','notifications','perks','refills','stocks','travel','weaponexp'.",
|
"description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','gym','inventory','missions','networth','notifications','perks','refills','stocks','travel','weaponexp'.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"attacks",
|
"attacks",
|
||||||
|
|
@ -17698,6 +18089,7 @@
|
||||||
"competition",
|
"competition",
|
||||||
"crimes",
|
"crimes",
|
||||||
"enlistedcars",
|
"enlistedcars",
|
||||||
|
"events",
|
||||||
"faction",
|
"faction",
|
||||||
"factionbalance",
|
"factionbalance",
|
||||||
"forumfeed",
|
"forumfeed",
|
||||||
|
|
@ -17717,7 +18109,10 @@
|
||||||
"lookup",
|
"lookup",
|
||||||
"medals",
|
"medals",
|
||||||
"merits",
|
"merits",
|
||||||
|
"messages",
|
||||||
"money",
|
"money",
|
||||||
|
"newevents",
|
||||||
|
"newmessages",
|
||||||
"organizedcrime",
|
"organizedcrime",
|
||||||
"personalstats",
|
"personalstats",
|
||||||
"profile",
|
"profile",
|
||||||
|
|
@ -17740,14 +18135,10 @@
|
||||||
"display",
|
"display",
|
||||||
"education",
|
"education",
|
||||||
"equipment",
|
"equipment",
|
||||||
"events",
|
|
||||||
"gym",
|
"gym",
|
||||||
"inventory",
|
"inventory",
|
||||||
"messages",
|
|
||||||
"missions",
|
"missions",
|
||||||
"networth",
|
"networth",
|
||||||
"newevents",
|
|
||||||
"newmessages",
|
|
||||||
"notifications",
|
"notifications",
|
||||||
"perks",
|
"perks",
|
||||||
"refills",
|
"refills",
|
||||||
|
|
@ -21520,31 +21911,6 @@
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"FactionTerritoryWarsResponse": {
|
|
||||||
"required": [
|
|
||||||
"territorywars"
|
|
||||||
],
|
|
||||||
"properties": {
|
|
||||||
"territorywars": {
|
|
||||||
"description": "If the chosen category is 'ongoing' the response will be of 'FactionTerritoryWarOngoing' type, otherwise, the type will be 'FactionTerritoryWarFinished'.",
|
|
||||||
"oneOf": [
|
|
||||||
{
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/components/schemas/FactionTerritoryWarOngoing"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/components/schemas/FactionTerritoryWarFinished"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"FactionTerritoryWarsHistoryResponse": {
|
"FactionTerritoryWarsHistoryResponse": {
|
||||||
"required": [
|
"required": [
|
||||||
"territorywars"
|
"territorywars"
|
||||||
|
|
@ -22234,7 +22600,14 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/UserStatusStateEnum"
|
||||||
|
},
|
||||||
|
{
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"color": {
|
"color": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|
@ -22251,8 +22624,13 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"travel_type": {
|
"travel_type": {
|
||||||
"description": "This field is populated only if the state is 'Traveling'.",
|
"description": "This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025.",
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"deprecated": true
|
||||||
|
},
|
||||||
|
"plane_image_type": {
|
||||||
|
"$ref": "#/components/schemas/UserPlaneImageTypeEnum",
|
||||||
|
"description": "This field is populated only if the state is 'Traveling'."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
|
@ -24802,33 +25180,9 @@
|
||||||
"faction": {
|
"faction": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"faction_id": {
|
|
||||||
"description": "This field is replaced with 'user'.'faction_id' field and will be removed on 1st of September 2025. Populated only if 'faction' field is true.",
|
|
||||||
"deprecated": true,
|
|
||||||
"oneOf": [
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/FactionId"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "null"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"company": {
|
"company": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"company_id": {
|
|
||||||
"description": "This field is replaced with 'user'.'company_id' field and will be removed on 1st of September 2025. Populated only if 'company' field is true.",
|
|
||||||
"deprecated": true,
|
|
||||||
"oneOf": [
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/CompanyId"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "null"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"log": {
|
"log": {
|
||||||
"required": [
|
"required": [
|
||||||
"custom_permissions",
|
"custom_permissions",
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ postgres = ["dep:sqlx", "dep:chrono", "dep:indoc"]
|
||||||
tokio-runtime = ["dep:tokio", "dep:rand", "dep:tokio-stream"]
|
tokio-runtime = ["dep:tokio", "dep:rand", "dep:tokio-stream"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
torn-api = { path = "../torn-api", default-features = false, version = "1.1.1" }
|
torn-api = { path = "../torn-api", default-features = false, version = "4.1.1" }
|
||||||
thiserror = "2"
|
thiserror = "2"
|
||||||
|
|
||||||
sqlx = { version = "0.8", features = [
|
sqlx = { version = "0.8", features = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue