diff --git a/Cargo.lock b/Cargo.lock
index 42deb4d..1014be3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2294,7 +2294,7 @@ dependencies = [
[[package]]
name = "torn-api"
-version = "1.7.3"
+version = "1.7.4"
dependencies = [
"bon",
"bytes",
diff --git a/torn-api/Cargo.toml b/torn-api/Cargo.toml
index 2158965..96e9144 100644
--- a/torn-api/Cargo.toml
+++ b/torn-api/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "torn-api"
-version = "1.7.4"
+version = "1.7.5"
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 28e86cc..c3f6ccf 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.6"
+ "version": "3.0.12"
},
"servers": [
{
@@ -120,6 +120,99 @@
"x-stability": "Stable"
}
},
+ "/user/basic": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your basic profile information",
+ "description": "Requires public access key.
",
+ "operationId": "310ed4d7970121be1c01fc6cb8c14f49",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserBasicResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
+ "/user/{id}/basic": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get basic profile information for a specific user",
+ "description": "Requires public access key.
",
+ "operationId": "a20c3fcd0afc00cc428f4a8c24467356",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "User id",
+ "required": true,
+ "schema": {
+ "$ref": "#/components/schemas/UserId"
+ }
+ },
+ {
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserBasicResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
"/user/bounties": {
"get": {
"tags": [
@@ -159,6 +252,45 @@
"x-stability": "Stable"
}
},
+ "/user/battlestats": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your battlestats",
+ "description": "Requires limited access key.
",
+ "operationId": "b2395a36b6f5668ade16f460a593b236",
+ "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/UserBattleStatsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
"/user/{id}/bounties": {
"get": {
"tags": [
@@ -246,6 +378,93 @@
"x-stability": "Stable"
}
},
+ "/user/competition": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your competition information",
+ "description": "Requires public access key.",
+ "operationId": "e9a7cd580a231f5a31212d4601a5f686",
+ "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/UserCompetitionResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
+ "/user/{id}/competition": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get competition information for a specific player",
+ "description": "Requires public access key.",
+ "operationId": "3ff933d6a90488c30fb55a9d25e0f2d8",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "User id",
+ "required": true,
+ "schema": {
+ "$ref": "#/components/schemas/UserId"
+ }
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserCompetitionResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
"/user/{crimeId}/crimes": {
"get": {
"tags": [
@@ -372,13 +591,100 @@
"x-stability": "Stable"
}
},
+ "/user/faction": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your faction information",
+ "description": "Requires public access key.",
+ "operationId": "c82d282102d0d4f54768a6a465639673",
+ "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/UserFactionResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
+ "/user/{id}/faction": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get faction information for a specific player",
+ "description": "Requires public access key.",
+ "operationId": "94dfc0c0663c9dc53241abbc59e39597",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "User id",
+ "required": true,
+ "schema": {
+ "$ref": "#/components/schemas/UserId"
+ }
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserFactionResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
"/user/factionbalance": {
"get": {
"tags": [
"User"
],
- "summary": "Get your current faction balance",
- "description": "Requires limited access key.
",
+ "summary": "Deprecated. Use user/money instead",
+ "description": "Will be removed on 1st of December 2025. Requires limited access key.
",
"operationId": "b7ebbeea51dc2ef56c3ed5fd9d94e680",
"parameters": [
{
@@ -403,12 +709,13 @@
}
}
},
+ "deprecated": true,
"security": [
{
"api_key": []
}
],
- "x-stability": "Stable"
+ "x-stability": "Deprecated"
}
},
"/user/forumfeed": {
@@ -843,6 +1150,132 @@
"x-stability": "Stable"
}
},
+ "/user/honors": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your achieved honors",
+ "description": "Requires minimal access key.
",
+ "operationId": "03bcd69dc16d287da5a5c1239b1e35ae",
+ "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/UserHonorsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
+ "/user/icons": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your icons information",
+ "description": "Requires public access key.
When requesting data for yourself with 'Custom', 'Limited' or 'Full' access keys, the response will be of type UserIconPrivate, otherwise UserIconPublic.",
+ "operationId": "40cf7455b4cf6e8cc08e1b82125fad53",
+ "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/UserIconsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
+ "/user/{id}/icons": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get icons information for a specific player",
+ "description": "Requires public access key.
When requesting data for yourself with 'Custom', 'Limited' or 'Full' access keys, the response will be of type UserIconPrivate, otherwise UserIconPublic.",
+ "operationId": "72c4c23b9d60172e696c9a104e56b7bd",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "User id",
+ "required": true,
+ "schema": {
+ "$ref": "#/components/schemas/UserId"
+ }
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserIconsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
"/user/itemmarket": {
"get": {
"tags": [
@@ -885,6 +1318,132 @@
"x-stability": "Stable"
}
},
+ "/user/job": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your job information",
+ "description": "Requires public access key.",
+ "operationId": "3ce15c1a0fa2f1c2c35a88f659f1f4b3",
+ "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/UserJobResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
+ "/user/{id}/job": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get job information for a specific player",
+ "description": "Requires public access key.",
+ "operationId": "3046478bdee661f77bace171f60de62f",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "User id",
+ "required": true,
+ "schema": {
+ "$ref": "#/components/schemas/UserId"
+ }
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserJobResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
+ "/user/jobpoints": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your jobpoints",
+ "description": "Requires minimal access key.
",
+ "operationId": "7d6d988f4aa00b9526c082c2b4247743",
+ "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/UserJobPointsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
"/user/jobranks": {
"get": {
"tags": [
@@ -1052,6 +1611,123 @@
"x-stability": "Unstable"
}
},
+ "/user/medals": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your achieved medals",
+ "description": "Requires minimal access key.
",
+ "operationId": "5c1d150273feb0c553f6cfb96071bf1b",
+ "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/UserMedalsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
+ "/user/merits": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your merits",
+ "description": "Requires minimal access key.
",
+ "operationId": "af17d832a1ff8c1d327f262886b39fec",
+ "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/UserMeritsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
+ "/user/money": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your current wealth",
+ "description": "Requires limited access key.
",
+ "operationId": "bcda13a4bb3c826ee6c79fb6209d7b69",
+ "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/UserMoneyResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
"/user/organizedcrime": {
"get": {
"tags": [
@@ -1238,6 +1914,99 @@
"x-stability": "Stable"
}
},
+ "/user/profile": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your own profile",
+ "description": "Requires public access key.",
+ "operationId": "e945ec5e68a2794a7a7310000fbfba99",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserProfileResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
+ "/user/{id}/profile": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get profile information for a specific player",
+ "description": "Requires public access key.",
+ "operationId": "dda77cdddd962fb60f1beed24330ca93",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "User id",
+ "required": true,
+ "schema": {
+ "$ref": "#/components/schemas/UserId"
+ }
+ },
+ {
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserProfileResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
"/user/properties": {
"get": {
"tags": [
@@ -1247,6 +2016,9 @@
"description": "Requires public access key.
Extended responses are available when requesting the data with Limited or higher access keys.",
"operationId": "574a416ca46717830f03a2f685955b87",
"parameters": [
+ {
+ "$ref": "#/components/parameters/ApiFiltersUserProperties"
+ },
{
"$ref": "#/components/parameters/ApiOffset"
},
@@ -1301,6 +2073,9 @@
"$ref": "#/components/schemas/UserId"
}
},
+ {
+ "$ref": "#/components/parameters/ApiFiltersUserProperties"
+ },
{
"$ref": "#/components/parameters/ApiOffset"
},
@@ -1700,6 +2475,84 @@
"x-stability": "Stable"
}
},
+ "/user/skills": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your skills",
+ "description": "Requires minimal access key.
",
+ "operationId": "242cd6844d92aec0223d9c5c88e66403",
+ "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/UserSkillsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Unstable"
+ }
+ },
+ "/user/workstats": {
+ "get": {
+ "tags": [
+ "User"
+ ],
+ "summary": "Get your working stats",
+ "description": "Requires minimal access key.
",
+ "operationId": "8c3acc9ecc8ec39baac5d2be8235d458",
+ "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/UserWorkStatsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
"/user/lookup": {
"get": {
"tags": [
@@ -1869,7 +2722,7 @@
}
},
{
- "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
+ "$ref": "#/components/parameters/ApiFiltersUser"
},
{
"$ref": "#/components/parameters/ApiStripTags"
@@ -1942,12 +2795,39 @@
{
"$ref": "#/components/schemas/UserFactionBalanceResponse"
},
+ {
+ "$ref": "#/components/schemas/UserBasicResponse"
+ },
{
"$ref": "#/components/schemas/RevivesResponse"
},
+ {
+ "$ref": "#/components/schemas/UserHonorsResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserMedalsResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserMeritsResponse"
+ },
{
"$ref": "#/components/schemas/RevivesFullResponse"
},
+ {
+ "$ref": "#/components/schemas/UserProfileResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserJobResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserFactionResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserCompetitionResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserIconsResponse"
+ },
{
"$ref": "#/components/schemas/UserItemMarketResponse"
},
@@ -1966,6 +2846,21 @@
{
"$ref": "#/components/schemas/FactionAttacksFullResponse"
},
+ {
+ "$ref": "#/components/schemas/UserMoneyResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserJobPointsResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserWorkStatsResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserSkillsResponse"
+ },
+ {
+ "$ref": "#/components/schemas/UserBattleStatsResponse"
+ },
{
"$ref": "#/components/schemas/UserLookupResponse"
},
@@ -4489,14 +5384,23 @@
"Forum"
],
"summary": "Get specific forum thread posts",
- "description": "Requires public access key.
Returns 20 posts per page for a specific thread.",
+ "description": "Requires public access key.
Returns 20 posts per page for a specific thread.
By default, it uses 'offset', but it's possible to filter posts with 'from' & 'to' parameters.",
"operationId": "9c5eeb1aebb102b7c62fab11974c359a",
"parameters": [
+ {
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
+ },
{
"$ref": "#/components/parameters/ApiOffsetNoDefault"
},
{
- "$ref": "#/components/parameters/ApiStripTagsTrue"
+ "$ref": "#/components/parameters/ApiSort"
+ },
+ {
+ "$ref": "#/components/parameters/ApiFrom"
+ },
+ {
+ "$ref": "#/components/parameters/ApiTo"
},
{
"name": "threadId",
@@ -6508,6 +7412,98 @@
"x-stability": "Unstable"
}
},
+ "/torn/honors": {
+ "get": {
+ "tags": [
+ "Torn"
+ ],
+ "summary": "Get all honors",
+ "description": "Requires public access key.
",
+ "operationId": "4b7322594732b4e263f2e612f648e6a4",
+ "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/TornHonorsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
+ "/torn/{ids}/honors": {
+ "get": {
+ "tags": [
+ "Torn"
+ ],
+ "summary": "Get specific honors",
+ "description": "Requires public access key.
",
+ "operationId": "bdbbefa4dc1cd7f146f500816ccbec1a",
+ "parameters": [
+ {
+ "name": "ids",
+ "in": "path",
+ "description": "Honor id or a list of honor ids (comma separated)",
+ "required": true,
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/HonorId"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TornHonorsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
"/torn/hof": {
"get": {
"tags": [
@@ -6873,6 +7869,137 @@
"x-stability": "Stable"
}
},
+ "/torn/medals": {
+ "get": {
+ "tags": [
+ "Torn"
+ ],
+ "summary": "Get all medals",
+ "description": "Requires public access key.
",
+ "operationId": "c6e00a242c309a53a98852b225de5e0b",
+ "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/TornMedalsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
+ "/torn/{ids}/medals": {
+ "get": {
+ "tags": [
+ "Torn"
+ ],
+ "summary": "Get specific medals",
+ "description": "Requires public access key.
",
+ "operationId": "a2f817c8fb95707aa71a7b28bed08a56",
+ "parameters": [
+ {
+ "name": "ids",
+ "in": "path",
+ "description": "Medal id or a list of medal ids (comma separated)",
+ "required": true,
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/MedalId"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/ApiTimestamp"
+ },
+ {
+ "$ref": "#/components/parameters/ApiComment"
+ },
+ {
+ "$ref": "#/components/parameters/ApiKeyPublic"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful operation",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TornMedalsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
+ "/torn/merits": {
+ "get": {
+ "tags": [
+ "Torn"
+ ],
+ "summary": "Get all merits",
+ "description": "Requires public access key.
",
+ "operationId": "06198712e3cfdee6b3d5ea11fb6754ef",
+ "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/TornMeritsResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "api_key": []
+ }
+ ],
+ "x-stability": "Stable"
+ }
+ },
"/torn/organizedcrimes": {
"get": {
"tags": [
@@ -7178,6 +8305,18 @@
"$ref": "#/components/schemas/ItemId"
}
},
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/MedalId"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/HonorId"
+ }
+ },
{
"type": "array",
"items": {
@@ -7268,6 +8407,15 @@
{
"$ref": "#/components/schemas/TornEducationResponse"
},
+ {
+ "$ref": "#/components/schemas/TornMeritsResponse"
+ },
+ {
+ "$ref": "#/components/schemas/TornHonorsResponse"
+ },
+ {
+ "$ref": "#/components/schemas/TornMedalsResponse"
+ },
{
"$ref": "#/components/schemas/TornBountiesResponse"
},
@@ -7325,6 +8473,152 @@
"E"
]
},
+ "JobTypeEnum": {
+ "type": "string",
+ "enum": [
+ "Army",
+ "Casino",
+ "Education",
+ "Grocer",
+ "Law",
+ "Medical"
+ ]
+ },
+ "UserMaritalStatusEnum": {
+ "type": "string",
+ "enum": [
+ "Engaged",
+ "Newlywed",
+ "Married"
+ ]
+ },
+ "UserRoleEnum": {
+ "type": "string",
+ "enum": [
+ "Admin",
+ "Officer",
+ "Moderator",
+ "Helper",
+ "Tester",
+ "NPC",
+ "Committee",
+ "Reporter",
+ "Wiki Contributor",
+ "Wiki Editor",
+ "Civilian"
+ ]
+ },
+ "UserTitleEnum": {
+ "type": "string",
+ "enum": [
+ "Alcoholic",
+ "Sharpshooter",
+ "Accomplice",
+ "Loser",
+ "Silent Killer",
+ "Killer",
+ "Merchant",
+ "Medalist",
+ "Tycoon",
+ "Damage Dealer",
+ "Slayer",
+ "Hired Gun",
+ "Egotist",
+ "Outcast",
+ "Punchbag",
+ "Tank",
+ "Antagonist",
+ "Druggy",
+ "Scavenger",
+ "Boxer",
+ "Importer",
+ "Looter",
+ "Samaritan",
+ "Felon",
+ "Socialite",
+ "Mercenary",
+ "Investor",
+ "Thief",
+ "One Hit Killer",
+ "Mobster",
+ "Addict",
+ "Bonds Agent",
+ "Buster",
+ "Hoarder",
+ "Racer",
+ "Soldier",
+ "Avenger",
+ "Healer",
+ "Booster",
+ "Intimidator",
+ "Trader",
+ "Jobsworth",
+ "Tourist",
+ "Nudist",
+ "Sage",
+ "Coward"
+ ]
+ },
+ "UserRankEnum": {
+ "type": "string",
+ "enum": [
+ "Absolute beginner",
+ "Beginner",
+ "Inexperienced",
+ "Rookie",
+ "Novice",
+ "Below average",
+ "Average",
+ "Reasonable",
+ "Above average",
+ "Competent",
+ "Highly competent",
+ "Veteran",
+ "Distinguished",
+ "Highly distinguished",
+ "Professional",
+ "Star",
+ "Master",
+ "Outstanding",
+ "Celebrity",
+ "Supreme",
+ "Idolized",
+ "Champion",
+ "Heroic",
+ "Legendary",
+ "Elite",
+ "Invincible"
+ ]
+ },
+ "UserRpsStatus": {
+ "type": "string",
+ "enum": [
+ "scissors",
+ "rock",
+ "paper"
+ ]
+ },
+ "UserSkillSlugEnum": {
+ "type": "string",
+ "enum": [
+ "hunting",
+ "racing",
+ "reviving",
+ "search_for_cash",
+ "bootlegging",
+ "graffiti",
+ "shoplifting",
+ "pickpocketing",
+ "card_skimming",
+ "burglary",
+ "hustling",
+ "disposal",
+ "cracking",
+ "forgery",
+ "scamming",
+ "arson"
+ ]
+ },
"CountryEnum": {
"type": "string",
"enum": [
@@ -12015,6 +13309,18 @@
"type": "integer",
"format": "int32"
},
+ "HonorId": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "MedalId": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "MeritId": {
+ "type": "integer",
+ "format": "int32"
+ },
"OrganizedCrimeName": {
"type": "string"
},
@@ -12074,6 +13380,10 @@
"type": "integer",
"format": "int32"
},
+ "UserIconId": {
+ "type": "integer",
+ "format": "int32"
+ },
"ReviveId": {
"type": "integer",
"format": "int32"
@@ -12097,6 +13407,10 @@
"type": "integer",
"format": "int32"
},
+ "CompanyTypeId": {
+ "type": "integer",
+ "format": "int32"
+ },
"EducationId": {
"type": "integer",
"format": "int32"
@@ -12218,6 +13532,27 @@
7
]
},
+ "UserGenderEnum": {
+ "type": "string",
+ "enum": [
+ "Male",
+ "Female",
+ "Enby"
+ ]
+ },
+ "HonorRarityEnum": {
+ "type": "string",
+ "enum": [
+ "Extremely Rare",
+ "Very Rare",
+ "Rare",
+ "Limited",
+ "Uncommon",
+ "Common",
+ "Very Common",
+ "Unknown"
+ ]
+ },
"Parameters": {
"oneOf": [
{
@@ -12363,6 +13698,42 @@
"Temporary"
]
},
+ "MedalTypeEnum": {
+ "type": "string",
+ "enum": [
+ "combat",
+ "commitment",
+ "crime",
+ "level",
+ "miscellaneous",
+ "networth",
+ "rank"
+ ]
+ },
+ "HonorTypeEnum": {
+ "type": "string",
+ "enum": [
+ "attacking",
+ "camo",
+ "weapons",
+ "education",
+ "crimes",
+ "drugs",
+ "jail",
+ "hospital",
+ "travel",
+ "gym",
+ "level",
+ "competitions",
+ "money",
+ "items",
+ "commitment",
+ "casino",
+ "missions",
+ "misc",
+ "default"
+ ]
+ },
"TornItemTypeEnum": {
"type": "string",
"enum": [
@@ -13540,6 +14911,891 @@
}
]
},
+ "UserIconPublic": {
+ "required": [
+ "id",
+ "title",
+ "description"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/UserIconId"
+ },
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "UserIconPrivate": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/UserIconPublic"
+ },
+ {
+ "required": [
+ "until"
+ ],
+ "properties": {
+ "until": {
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ "UserIconsResponse": {
+ "required": [
+ "icons"
+ ],
+ "properties": {
+ "icons": {
+ "oneOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UserIconPrivate"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UserIconPublic"
+ }
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "UserCompetitionHalloween": {
+ "required": [
+ "name",
+ "treats_collected",
+ "basket"
+ ],
+ "properties": {
+ "name": {
+ "type": "string",
+ "enum": [
+ "Halloween"
+ ]
+ },
+ "treats_collected": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "basket": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/ItemId"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "UserCompetitionEasterEggs": {
+ "required": [
+ "name",
+ "score",
+ "total"
+ ],
+ "properties": {
+ "name": {
+ "type": "string",
+ "enum": [
+ "Easter Egg Hunt"
+ ]
+ },
+ "score": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "total": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "UserCompetitionRps": {
+ "required": [
+ "name",
+ "status",
+ "hp"
+ ],
+ "properties": {
+ "name": {
+ "type": "string",
+ "enum": [
+ "Rock, Paper, Scissors"
+ ]
+ },
+ "status": {
+ "$ref": "#/components/schemas/UserRpsStatus"
+ },
+ "hp": {
+ "required": [
+ "current",
+ "maximum"
+ ],
+ "properties": {
+ "current": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "maximum": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "UserCompetitionResponse": {
+ "required": [
+ "competition"
+ ],
+ "properties": {
+ "competition": {
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/UserCompetitionHalloween"
+ },
+ {
+ "$ref": "#/components/schemas/UserCompetitionEasterEggs"
+ },
+ {
+ "$ref": "#/components/schemas/UserCompetitionRps"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "UserFaction": {
+ "required": [
+ "id",
+ "name",
+ "tag",
+ "tag_image",
+ "position",
+ "days_in_faction"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/FactionId"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ },
+ "tag_image": {
+ "type": "string"
+ },
+ "position": {
+ "type": "string"
+ },
+ "days_in_faction": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "UserFactionResponse": {
+ "required": [
+ "faction"
+ ],
+ "properties": {
+ "faction": {
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/UserFaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "UserJob": {
+ "required": [
+ "type",
+ "name",
+ "position"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "job"
+ ]
+ },
+ "name": {
+ "$ref": "#/components/schemas/JobTypeEnum"
+ },
+ "position": {
+ "description": "Position enum corresponds to the name enum.",
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/JobPositionArmyEnum"
+ },
+ {
+ "$ref": "#/components/schemas/JobPositionGrocerEnum"
+ },
+ {
+ "$ref": "#/components/schemas/JobPositionCasinoEnum"
+ },
+ {
+ "$ref": "#/components/schemas/JobPositionMedicalEnum"
+ },
+ {
+ "$ref": "#/components/schemas/JobPositionLawEnum"
+ },
+ {
+ "$ref": "#/components/schemas/JobPositionEducationEnum"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "UserCompany": {
+ "required": [
+ "type",
+ "id",
+ "type_id",
+ "name",
+ "position",
+ "days_in_company"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "company"
+ ]
+ },
+ "id": {
+ "$ref": "#/components/schemas/CompanyId"
+ },
+ "type_id": {
+ "$ref": "#/components/schemas/CompanyTypeId"
+ },
+ "name": {
+ "type": "string"
+ },
+ "position": {
+ "type": "string"
+ },
+ "days_in_company": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "UserJobResponse": {
+ "required": [
+ "job"
+ ],
+ "properties": {
+ "job": {
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/UserJob"
+ },
+ {
+ "$ref": "#/components/schemas/UserCompany"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "ProfileSpouse": {
+ "required": [
+ "id",
+ "name",
+ "status",
+ "days_married"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/UserId"
+ },
+ "name": {
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/components/schemas/UserMaritalStatusEnum"
+ },
+ "days_married": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "UserProfileResponse": {
+ "required": [
+ "profile"
+ ],
+ "properties": {
+ "profile": {
+ "required": [
+ "id",
+ "name",
+ "level",
+ "rank",
+ "title",
+ "age",
+ "signed_up",
+ "faction_id",
+ "honor_id",
+ "property",
+ "image",
+ "gender",
+ "revivable",
+ "role",
+ "status",
+ "spouse",
+ "awards",
+ "friends",
+ "enemies",
+ "forum_posts",
+ "karma",
+ "last_action",
+ "life"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/UserId"
+ },
+ "name": {
+ "type": "string"
+ },
+ "level": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "rank": {
+ "$ref": "#/components/schemas/UserRankEnum"
+ },
+ "title": {
+ "$ref": "#/components/schemas/UserTitleEnum"
+ },
+ "age": {
+ "description": "Age in days.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "signed_up": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "faction_id": {
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/FactionId"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "honor_id": {
+ "$ref": "#/components/schemas/HonorId"
+ },
+ "property": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/PropertyId"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "image": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "gender": {
+ "$ref": "#/components/schemas/UserGenderEnum"
+ },
+ "revivable": {
+ "type": "boolean"
+ },
+ "role": {
+ "$ref": "#/components/schemas/UserRoleEnum"
+ },
+ "status": {
+ "$ref": "#/components/schemas/UserStatus"
+ },
+ "spouse": {
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/ProfileSpouse"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "awards": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "friends": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "enemies": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "forum_posts": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "karma": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "last_action": {
+ "$ref": "#/components/schemas/UserLastAction"
+ },
+ "life": {
+ "required": [
+ "current",
+ "maximum"
+ ],
+ "properties": {
+ "current": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "maximum": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "UserMoneyResponse": {
+ "required": [
+ "money"
+ ],
+ "properties": {
+ "money": {
+ "required": [
+ "points",
+ "wallet",
+ "company",
+ "vault",
+ "cayman_bank",
+ "city_bank",
+ "faction",
+ "daily_networth"
+ ],
+ "properties": {
+ "points": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "wallet": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "company": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "vault": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "cayman_bank": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "city_bank": {
+ "required": [
+ "amount",
+ "until"
+ ],
+ "properties": {
+ "amount": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "until": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ "type": "object"
+ },
+ "faction": {
+ "required": [
+ "money",
+ "points"
+ ],
+ "properties": {
+ "money": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "points": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ "type": "object"
+ },
+ "daily_networth": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "UserSkillsResponse": {
+ "required": [
+ "skills"
+ ],
+ "properties": {
+ "skills": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UserSkillDetail"
+ }
+ }
+ },
+ "type": "object"
+ },
+ "UserSkillDetail": {
+ "required": [
+ "slug",
+ "name",
+ "level"
+ ],
+ "properties": {
+ "slug": {
+ "type": "string",
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/UserSkillSlugEnum"
+ },
+ {
+ "type": "string"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "level": {
+ "type": "number",
+ "format": "float"
+ }
+ },
+ "type": "object"
+ },
+ "UserJobPointsResponse": {
+ "required": [
+ "jobpoints"
+ ],
+ "properties": {
+ "jobpoints": {
+ "required": [
+ "jobs",
+ "companies"
+ ],
+ "properties": {
+ "jobs": {
+ "required": [
+ "army",
+ "casino",
+ "education",
+ "grocer",
+ "law",
+ "medical"
+ ],
+ "properties": {
+ "army": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "casino": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "education": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "grocer": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "law": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "medical": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "companies": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UserCompanyPoints"
+ }
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "UserCompanyPoints": {
+ "required": [
+ "company",
+ "points"
+ ],
+ "properties": {
+ "company": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/CompanyTypeId"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "points": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "UserWorkStatsResponse": {
+ "required": [
+ "workstats"
+ ],
+ "properties": {
+ "workstats": {
+ "required": [
+ "endurance",
+ "intelligence",
+ "manual_labor",
+ "total"
+ ],
+ "properties": {
+ "endurance": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "intelligence": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "manual_labor": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "total": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "UserBattleStatsResponse": {
+ "required": [
+ "battlestats"
+ ],
+ "properties": {
+ "battlestats": {
+ "required": [
+ "strength",
+ "defense",
+ "speed",
+ "dexterity",
+ "total"
+ ],
+ "properties": {
+ "strength": {
+ "$ref": "#/components/schemas/UserBattleStatDetail"
+ },
+ "defense": {
+ "$ref": "#/components/schemas/UserBattleStatDetail"
+ },
+ "speed": {
+ "$ref": "#/components/schemas/UserBattleStatDetail"
+ },
+ "dexterity": {
+ "$ref": "#/components/schemas/UserBattleStatDetail"
+ },
+ "total": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "UserBattleStatDetail": {
+ "required": [
+ "value",
+ "modifier",
+ "modifiers"
+ ],
+ "properties": {
+ "value": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "modifier": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "modifiers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UserBattleStatModifierDetail"
+ }
+ }
+ },
+ "type": "object"
+ },
+ "UserBattleStatModifierDetail": {
+ "required": [
+ "effect",
+ "value",
+ "type"
+ ],
+ "properties": {
+ "effect": {
+ "type": "string"
+ },
+ "value": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "UserBasic": {
+ "required": [
+ "id",
+ "name",
+ "level",
+ "gender",
+ "status"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/UserId"
+ },
+ "name": {
+ "type": "string"
+ },
+ "level": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "gender": {
+ "$ref": "#/components/schemas/UserGenderEnum"
+ },
+ "status": {
+ "$ref": "#/components/schemas/UserStatus"
+ }
+ },
+ "type": "object"
+ },
+ "UserBasicResponse": {
+ "required": [
+ "profile"
+ ],
+ "properties": {
+ "profile": {
+ "$ref": "#/components/schemas/UserBasic"
+ }
+ },
+ "type": "object"
+ },
"UserLog": {
"required": [
"id",
@@ -13788,7 +16044,8 @@
"cost",
"cost_per_day",
"rental_period",
- "rental_period_remaining"
+ "rental_period_remaining",
+ "lease_extension"
],
"properties": {
"used_by": {
@@ -13821,6 +16078,35 @@
},
"rented_by": {
"$ref": "#/components/schemas/BasicUser"
+ },
+ "lease_extension": {
+ "oneOf": [
+ {
+ "required": [
+ "cost",
+ "period",
+ "created_at"
+ ],
+ "properties": {
+ "cost": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "period": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "created_at": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"type": "object"
@@ -15353,15 +17639,19 @@
"UserSelectionName": {
"oneOf": [
{
- "description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','basic','battlestats','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','jobpoints','log','medals','merits','messages','missions','money','networth','newevents','newmessages','notifications','perks','profile','refills','reports','skills','stocks','travel','weaponexp','workstats'.",
+ "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'.",
"type": "string",
"enum": [
"attacks",
"attacksfull",
+ "basic",
+ "battlestats",
"bounties",
"calendar",
+ "competition",
"crimes",
"enlistedcars",
+ "faction",
"factionbalance",
"forumfeed",
"forumfriends",
@@ -15369,23 +17659,33 @@
"forumsubscribedthreads",
"forumthreads",
"hof",
+ "honors",
+ "icons",
"itemmarket",
+ "job",
+ "jobpoints",
"jobranks",
"list",
+ "log",
"lookup",
+ "medals",
+ "merits",
+ "money",
"organizedcrime",
"personalstats",
+ "profile",
"properties",
"property",
"races",
"racingrecords",
+ "reports",
"revives",
"revivesfull",
+ "skills",
"timestamp",
+ "workstats",
"ammo",
"bars",
- "basic",
- "battlestats",
"bazaar",
"cooldowns",
"criminalrecord",
@@ -15395,29 +17695,18 @@
"equipment",
"events",
"gym",
- "honors",
- "icons",
"inventory",
- "jobpoints",
- "log",
- "medals",
- "merits",
"messages",
"missions",
- "money",
"networth",
"newevents",
"newmessages",
"notifications",
"perks",
- "profile",
"refills",
- "reports",
- "skills",
"stocks",
"travel",
- "weaponexp",
- "workstats"
+ "weaponexp"
]
},
{
@@ -15439,6 +17728,127 @@
},
"type": "object"
},
+ "UserHonor": {
+ "required": [
+ "id",
+ "timestamp"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/HonorId"
+ },
+ "timestamp": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "UserHonorsResponse": {
+ "required": [
+ "honors"
+ ],
+ "properties": {
+ "honors": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UserHonor"
+ }
+ }
+ },
+ "type": "object"
+ },
+ "UserMedal": {
+ "required": [
+ "id",
+ "timestamp"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/MedalId"
+ },
+ "timestamp": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "UserMedalsResponse": {
+ "required": [
+ "medals"
+ ],
+ "properties": {
+ "medals": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UserMedal"
+ }
+ }
+ },
+ "type": "object"
+ },
+ "UserMeritUpgrade": {
+ "required": [
+ "id",
+ "level"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/MeritId"
+ },
+ "level": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "UserMerits": {
+ "required": [
+ "upgrades",
+ "available",
+ "used",
+ "medals",
+ "honors"
+ ],
+ "properties": {
+ "upgrades": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/UserMeritUpgrade"
+ }
+ },
+ "available": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "used": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "medals": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "honors": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ "type": "object"
+ },
+ "UserMeritsResponse": {
+ "required": [
+ "merits"
+ ],
+ "properties": {
+ "merits": {
+ "$ref": "#/components/schemas/UserMerits"
+ }
+ },
+ "type": "object"
+ },
"PersonalStatsOther": {
"required": [
"other"
@@ -19788,6 +22198,10 @@
"type": "null"
}
]
+ },
+ "travel_type": {
+ "description": "This field is populated only if the state is 'Traveling'.",
+ "type": "string"
}
},
"type": "object"
@@ -23748,6 +26162,160 @@
},
"type": "object"
},
+ "TornMerit": {
+ "required": [
+ "id",
+ "name",
+ "description"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/MeritId"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TornMeritsResponse": {
+ "required": [
+ "merits"
+ ],
+ "properties": {
+ "merits": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TornMerit"
+ }
+ }
+ },
+ "type": "object"
+ },
+ "TornHonor": {
+ "description": "Properties 'circulation', 'equipped' & 'rarity' are only populated for honors which do not have type.id value 1.",
+ "required": [
+ "id",
+ "name",
+ "description",
+ "type"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/HonorId"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "type": {
+ "required": [
+ "id",
+ "title"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "title": {
+ "$ref": "#/components/schemas/HonorTypeEnum"
+ }
+ },
+ "type": "object"
+ },
+ "circulation": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "equipped": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "rarity": {
+ "$ref": "#/components/schemas/HonorRarityEnum"
+ }
+ },
+ "type": "object"
+ },
+ "TornHonorsResponse": {
+ "required": [
+ "honors"
+ ],
+ "properties": {
+ "honors": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TornHonor"
+ }
+ }
+ },
+ "type": "object"
+ },
+ "TornMedal": {
+ "required": [
+ "id",
+ "name",
+ "description",
+ "type",
+ "circulation",
+ "equipped",
+ "rarity"
+ ],
+ "properties": {
+ "id": {
+ "$ref": "#/components/schemas/MedalId"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "type": {
+ "required": [
+ "id",
+ "title"
+ ],
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "title": {
+ "$ref": "#/components/schemas/MedalTypeEnum"
+ }
+ },
+ "type": "object"
+ },
+ "circulation": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "rarity": {
+ "$ref": "#/components/schemas/HonorRarityEnum"
+ }
+ },
+ "type": "object"
+ },
+ "TornMedalsResponse": {
+ "required": [
+ "medals"
+ ],
+ "properties": {
+ "medals": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TornMedal"
+ }
+ }
+ },
+ "type": "object"
+ },
"TornOrganizedCrimeResponse": {
"required": [
"organizedcrimes"
@@ -24389,7 +26957,7 @@
"format": "int32"
},
"rank_name": {
- "type": "string"
+ "$ref": "#/components/schemas/UserRankEnum"
},
"rank_number": {
"type": "integer",
@@ -25401,7 +27969,7 @@
"TornSelectionName": {
"oneOf": [
{
- "description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','honors','itemdetails','itemstats','medals','organisedcrimes','pawnshop','pokertables','rockpaperscissors','searchforcash','shoplifting','stats','stocks'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
+ "description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','itemdetails','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','searchforcash','shoplifting','stats','stocks'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
"type": "string",
"enum": [
"attacklog",
@@ -25412,12 +27980,15 @@
"factionhof",
"factiontree",
"hof",
+ "honors",
"itemammo",
"itemmods",
"items",
"logcategories",
"logtypes",
"lookup",
+ "medals",
+ "merits",
"organizedcrimes",
"properties",
"subcrimes",
@@ -25429,10 +28000,8 @@
"companies",
"competition",
"gyms",
- "honors",
"itemdetails",
"itemstats",
- "medals",
"organisedcrimes",
"pawnshop",
"pokertables",
@@ -25522,6 +28091,34 @@
]
}
},
+ "ApiFiltersUser": {
+ "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",
+ "ownedByUser",
+ "ownedBySpouse"
+ ]
+ }
+ },
+ "ApiFiltersUserProperties": {
+ "name": "filters",
+ "in": "query",
+ "description": "It's possible to use this query parameter to filter properties by the key owner or their spouse.",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "enum": [
+ "ownedByUser",
+ "ownedBySpouse"
+ ]
+ }
+ },
"ApiFactionSearchFilter": {
"name": "filters",
"in": "query",
diff --git a/torn-api/src/scopes.rs b/torn-api/src/scopes.rs
index 0f022d9..c7ab02e 100644
--- a/torn-api/src/scopes.rs
+++ b/torn-api/src/scopes.rs
@@ -872,6 +872,18 @@ pub(super) mod test {
.list(|b| b.cat(UserListEnum::Friends))
.await
.unwrap();
+
+ client
+ .user()
+ .list(|b| b.cat(UserListEnum::Enemies))
+ .await
+ .unwrap();
+
+ client
+ .user()
+ .list(|b| b.cat(UserListEnum::Targets))
+ .await
+ .unwrap();
}
#[tokio::test]
@@ -1127,6 +1139,13 @@ pub(super) mod test {
client.user().reports(|b| b).await.unwrap();
}
+ #[tokio::test]
+ async fn user_profile() {
+ let client = test_client().await;
+
+ client.user().profile(|b| b).await.unwrap();
+ }
+
#[tokio::test]
async fn key_info() {
let client = test_client().await;