tornapi-typescript 3.0.5 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Torn API",
5
5
  "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.",
6
- "version": "3.0.5"
6
+ "version": "3.0.8"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -22,17 +22,7 @@
22
22
  "operationId": "3acc98a3016974b786cb01e04e1ced04",
23
23
  "parameters": [
24
24
  {
25
- "name": "filters",
26
- "in": "query",
27
- "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.",
28
- "required": false,
29
- "schema": {
30
- "type": "string",
31
- "enum": [
32
- "incoming",
33
- "outgoing"
34
- ]
35
- }
25
+ "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
36
26
  },
37
27
  {
38
28
  "$ref": "#/components/parameters/ApiLimit100"
@@ -86,17 +76,7 @@
86
76
  "operationId": "e995691fd9845c8b4a91f065ac9c8420",
87
77
  "parameters": [
88
78
  {
89
- "name": "filters",
90
- "in": "query",
91
- "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.",
92
- "required": false,
93
- "schema": {
94
- "type": "string",
95
- "enum": [
96
- "incoming",
97
- "outgoing"
98
- ]
99
- }
79
+ "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
100
80
  },
101
81
  {
102
82
  "$ref": "#/components/parameters/ApiLimit1000"
@@ -140,6 +120,99 @@
140
120
  "x-stability": "Stable"
141
121
  }
142
122
  },
123
+ "/user/basic": {
124
+ "get": {
125
+ "tags": [
126
+ "User"
127
+ ],
128
+ "summary": "Get your basic profile information",
129
+ "description": "Requires public access key. <br>",
130
+ "operationId": "310ed4d7970121be1c01fc6cb8c14f49",
131
+ "parameters": [
132
+ {
133
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
134
+ },
135
+ {
136
+ "$ref": "#/components/parameters/ApiTimestamp"
137
+ },
138
+ {
139
+ "$ref": "#/components/parameters/ApiComment"
140
+ },
141
+ {
142
+ "$ref": "#/components/parameters/ApiKeyPublic"
143
+ }
144
+ ],
145
+ "responses": {
146
+ "200": {
147
+ "description": "Successful operation",
148
+ "content": {
149
+ "application/json": {
150
+ "schema": {
151
+ "$ref": "#/components/schemas/UserBasicResponse"
152
+ }
153
+ }
154
+ }
155
+ }
156
+ },
157
+ "security": [
158
+ {
159
+ "api_key": []
160
+ }
161
+ ],
162
+ "x-stability": "Stable"
163
+ }
164
+ },
165
+ "/user/{id}/basic": {
166
+ "get": {
167
+ "tags": [
168
+ "User"
169
+ ],
170
+ "summary": "Get basic profile information for a specific user",
171
+ "description": "Requires public access key. <br>",
172
+ "operationId": "a20c3fcd0afc00cc428f4a8c24467356",
173
+ "parameters": [
174
+ {
175
+ "name": "id",
176
+ "in": "path",
177
+ "description": "User id",
178
+ "required": true,
179
+ "schema": {
180
+ "$ref": "#/components/schemas/UserId"
181
+ }
182
+ },
183
+ {
184
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
185
+ },
186
+ {
187
+ "$ref": "#/components/parameters/ApiTimestamp"
188
+ },
189
+ {
190
+ "$ref": "#/components/parameters/ApiComment"
191
+ },
192
+ {
193
+ "$ref": "#/components/parameters/ApiKeyPublic"
194
+ }
195
+ ],
196
+ "responses": {
197
+ "200": {
198
+ "description": "Successful operation",
199
+ "content": {
200
+ "application/json": {
201
+ "schema": {
202
+ "$ref": "#/components/schemas/UserBasicResponse"
203
+ }
204
+ }
205
+ }
206
+ }
207
+ },
208
+ "security": [
209
+ {
210
+ "api_key": []
211
+ }
212
+ ],
213
+ "x-stability": "Stable"
214
+ }
215
+ },
143
216
  "/user/bounties": {
144
217
  "get": {
145
218
  "tags": [
@@ -179,6 +252,45 @@
179
252
  "x-stability": "Stable"
180
253
  }
181
254
  },
255
+ "/user/battlestats": {
256
+ "get": {
257
+ "tags": [
258
+ "User"
259
+ ],
260
+ "summary": "Get your battlestats",
261
+ "description": "Requires limited access key. <br>",
262
+ "operationId": "b2395a36b6f5668ade16f460a593b236",
263
+ "parameters": [
264
+ {
265
+ "$ref": "#/components/parameters/ApiTimestamp"
266
+ },
267
+ {
268
+ "$ref": "#/components/parameters/ApiComment"
269
+ },
270
+ {
271
+ "$ref": "#/components/parameters/ApiKeyPublic"
272
+ }
273
+ ],
274
+ "responses": {
275
+ "200": {
276
+ "description": "Successful operation",
277
+ "content": {
278
+ "application/json": {
279
+ "schema": {
280
+ "$ref": "#/components/schemas/UserBattleStatsResponse"
281
+ }
282
+ }
283
+ }
284
+ }
285
+ },
286
+ "security": [
287
+ {
288
+ "api_key": []
289
+ }
290
+ ],
291
+ "x-stability": "Unstable"
292
+ }
293
+ },
182
294
  "/user/{id}/bounties": {
183
295
  "get": {
184
296
  "tags": [
@@ -397,8 +509,8 @@
397
509
  "tags": [
398
510
  "User"
399
511
  ],
400
- "summary": "Get your current faction balance",
401
- "description": "Requires limited access key. <br>",
512
+ "summary": "Deprecated. Use user/money instead",
513
+ "description": "Will be removed on 1st of December 2025. Requires limited access key. <br>",
402
514
  "operationId": "b7ebbeea51dc2ef56c3ed5fd9d94e680",
403
515
  "parameters": [
404
516
  {
@@ -423,12 +535,13 @@
423
535
  }
424
536
  }
425
537
  },
538
+ "deprecated": true,
426
539
  "security": [
427
540
  {
428
541
  "api_key": []
429
542
  }
430
543
  ],
431
- "x-stability": "Stable"
544
+ "x-stability": "Deprecated"
432
545
  }
433
546
  },
434
547
  "/user/forumfeed": {
@@ -905,6 +1018,45 @@
905
1018
  "x-stability": "Stable"
906
1019
  }
907
1020
  },
1021
+ "/user/jobpoints": {
1022
+ "get": {
1023
+ "tags": [
1024
+ "User"
1025
+ ],
1026
+ "summary": "Get your jobpoints",
1027
+ "description": "Requires minimal access key. <br>",
1028
+ "operationId": "7d6d988f4aa00b9526c082c2b4247743",
1029
+ "parameters": [
1030
+ {
1031
+ "$ref": "#/components/parameters/ApiTimestamp"
1032
+ },
1033
+ {
1034
+ "$ref": "#/components/parameters/ApiComment"
1035
+ },
1036
+ {
1037
+ "$ref": "#/components/parameters/ApiKeyPublic"
1038
+ }
1039
+ ],
1040
+ "responses": {
1041
+ "200": {
1042
+ "description": "Successful operation",
1043
+ "content": {
1044
+ "application/json": {
1045
+ "schema": {
1046
+ "$ref": "#/components/schemas/UserJobPointsResponse"
1047
+ }
1048
+ }
1049
+ }
1050
+ }
1051
+ },
1052
+ "security": [
1053
+ {
1054
+ "api_key": []
1055
+ }
1056
+ ],
1057
+ "x-stability": "Unstable"
1058
+ }
1059
+ },
908
1060
  "/user/jobranks": {
909
1061
  "get": {
910
1062
  "tags": [
@@ -1072,6 +1224,45 @@
1072
1224
  "x-stability": "Unstable"
1073
1225
  }
1074
1226
  },
1227
+ "/user/money": {
1228
+ "get": {
1229
+ "tags": [
1230
+ "User"
1231
+ ],
1232
+ "summary": "Get your current wealth",
1233
+ "description": "Requires limited access key. <br>",
1234
+ "operationId": "bcda13a4bb3c826ee6c79fb6209d7b69",
1235
+ "parameters": [
1236
+ {
1237
+ "$ref": "#/components/parameters/ApiTimestamp"
1238
+ },
1239
+ {
1240
+ "$ref": "#/components/parameters/ApiComment"
1241
+ },
1242
+ {
1243
+ "$ref": "#/components/parameters/ApiKeyPublic"
1244
+ }
1245
+ ],
1246
+ "responses": {
1247
+ "200": {
1248
+ "description": "Successful operation",
1249
+ "content": {
1250
+ "application/json": {
1251
+ "schema": {
1252
+ "$ref": "#/components/schemas/UserMoneyResponse"
1253
+ }
1254
+ }
1255
+ }
1256
+ }
1257
+ },
1258
+ "security": [
1259
+ {
1260
+ "api_key": []
1261
+ }
1262
+ ],
1263
+ "x-stability": "Unstable"
1264
+ }
1265
+ },
1075
1266
  "/user/organizedcrime": {
1076
1267
  "get": {
1077
1268
  "tags": [
@@ -1616,17 +1807,7 @@
1616
1807
  "operationId": "3c847eb1325040798f37a7492108e094",
1617
1808
  "parameters": [
1618
1809
  {
1619
- "name": "filters",
1620
- "in": "query",
1621
- "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.",
1622
- "required": false,
1623
- "schema": {
1624
- "type": "string",
1625
- "enum": [
1626
- "incoming",
1627
- "outgoing"
1628
- ]
1629
- }
1810
+ "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
1630
1811
  },
1631
1812
  {
1632
1813
  "$ref": "#/components/parameters/ApiLimit100Default20"
@@ -1683,17 +1864,7 @@
1683
1864
  "operationId": "8820cd889afde899353037ca5a0f9a07",
1684
1865
  "parameters": [
1685
1866
  {
1686
- "name": "filters",
1687
- "in": "query",
1688
- "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.",
1689
- "required": false,
1690
- "schema": {
1691
- "type": "string",
1692
- "enum": [
1693
- "incoming",
1694
- "outgoing"
1695
- ]
1696
- }
1867
+ "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
1697
1868
  },
1698
1869
  {
1699
1870
  "$ref": "#/components/parameters/ApiLimit1000Default20"
@@ -1740,14 +1911,14 @@
1740
1911
  "x-stability": "Stable"
1741
1912
  }
1742
1913
  },
1743
- "/user/lookup": {
1914
+ "/user/skills": {
1744
1915
  "get": {
1745
1916
  "tags": [
1746
1917
  "User"
1747
1918
  ],
1748
- "summary": "Get all available user selections",
1749
- "description": "Requires public access key. <br>",
1750
- "operationId": "c0a6c91697cd1683c39b3c0649a18ec8",
1919
+ "summary": "Get your skills",
1920
+ "description": "Requires minimal access key. <br>",
1921
+ "operationId": "242cd6844d92aec0223d9c5c88e66403",
1751
1922
  "parameters": [
1752
1923
  {
1753
1924
  "$ref": "#/components/parameters/ApiTimestamp"
@@ -1765,7 +1936,7 @@
1765
1936
  "content": {
1766
1937
  "application/json": {
1767
1938
  "schema": {
1768
- "$ref": "#/components/schemas/UserLookupResponse"
1939
+ "$ref": "#/components/schemas/UserSkillsResponse"
1769
1940
  }
1770
1941
  }
1771
1942
  }
@@ -1776,17 +1947,17 @@
1776
1947
  "api_key": []
1777
1948
  }
1778
1949
  ],
1779
- "x-stability": "Stable"
1950
+ "x-stability": "Unstable"
1780
1951
  }
1781
1952
  },
1782
- "/user/timestamp": {
1953
+ "/user/workstats": {
1783
1954
  "get": {
1784
1955
  "tags": [
1785
1956
  "User"
1786
1957
  ],
1787
- "summary": "Get current server time",
1788
- "description": "Requires public access key. <br>",
1789
- "operationId": "a72308321da0c4a2c31c60218acc7a85",
1958
+ "summary": "Get your working stats",
1959
+ "description": "Requires minimal access key. <br>",
1960
+ "operationId": "8c3acc9ecc8ec39baac5d2be8235d458",
1790
1961
  "parameters": [
1791
1962
  {
1792
1963
  "$ref": "#/components/parameters/ApiTimestamp"
@@ -1804,7 +1975,7 @@
1804
1975
  "content": {
1805
1976
  "application/json": {
1806
1977
  "schema": {
1807
- "$ref": "#/components/schemas/TimestampResponse"
1978
+ "$ref": "#/components/schemas/UserWorkStatsResponse"
1808
1979
  }
1809
1980
  }
1810
1981
  }
@@ -1818,18 +1989,96 @@
1818
1989
  "x-stability": "Stable"
1819
1990
  }
1820
1991
  },
1821
- "/user": {
1992
+ "/user/lookup": {
1822
1993
  "get": {
1823
1994
  "tags": [
1824
1995
  "User"
1825
1996
  ],
1826
- "summary": "Get any User selection",
1827
- "description": "Key access level depends on the required selections. <br>Choose one or more selections (comma separated).",
1828
- "operationId": "ce480599312126b8a5d77ced3ab8caa8",
1997
+ "summary": "Get all available user selections",
1998
+ "description": "Requires public access key. <br>",
1999
+ "operationId": "c0a6c91697cd1683c39b3c0649a18ec8",
1829
2000
  "parameters": [
1830
2001
  {
1831
- "name": "selections",
1832
- "in": "query",
2002
+ "$ref": "#/components/parameters/ApiTimestamp"
2003
+ },
2004
+ {
2005
+ "$ref": "#/components/parameters/ApiComment"
2006
+ },
2007
+ {
2008
+ "$ref": "#/components/parameters/ApiKeyPublic"
2009
+ }
2010
+ ],
2011
+ "responses": {
2012
+ "200": {
2013
+ "description": "Successful operation",
2014
+ "content": {
2015
+ "application/json": {
2016
+ "schema": {
2017
+ "$ref": "#/components/schemas/UserLookupResponse"
2018
+ }
2019
+ }
2020
+ }
2021
+ }
2022
+ },
2023
+ "security": [
2024
+ {
2025
+ "api_key": []
2026
+ }
2027
+ ],
2028
+ "x-stability": "Stable"
2029
+ }
2030
+ },
2031
+ "/user/timestamp": {
2032
+ "get": {
2033
+ "tags": [
2034
+ "User"
2035
+ ],
2036
+ "summary": "Get current server time",
2037
+ "description": "Requires public access key. <br>",
2038
+ "operationId": "a72308321da0c4a2c31c60218acc7a85",
2039
+ "parameters": [
2040
+ {
2041
+ "$ref": "#/components/parameters/ApiTimestamp"
2042
+ },
2043
+ {
2044
+ "$ref": "#/components/parameters/ApiComment"
2045
+ },
2046
+ {
2047
+ "$ref": "#/components/parameters/ApiKeyPublic"
2048
+ }
2049
+ ],
2050
+ "responses": {
2051
+ "200": {
2052
+ "description": "Successful operation",
2053
+ "content": {
2054
+ "application/json": {
2055
+ "schema": {
2056
+ "$ref": "#/components/schemas/TimestampResponse"
2057
+ }
2058
+ }
2059
+ }
2060
+ }
2061
+ },
2062
+ "security": [
2063
+ {
2064
+ "api_key": []
2065
+ }
2066
+ ],
2067
+ "x-stability": "Stable"
2068
+ }
2069
+ },
2070
+ "/user": {
2071
+ "get": {
2072
+ "tags": [
2073
+ "User"
2074
+ ],
2075
+ "summary": "Get any User selection",
2076
+ "description": "Key access level depends on the required selections. <br>Choose one or more selections (comma separated).",
2077
+ "operationId": "ce480599312126b8a5d77ced3ab8caa8",
2078
+ "parameters": [
2079
+ {
2080
+ "name": "selections",
2081
+ "in": "query",
1833
2082
  "description": "Selection names",
1834
2083
  "required": false,
1835
2084
  "style": "form",
@@ -1908,6 +2157,9 @@
1908
2157
  }
1909
2158
  }
1910
2159
  },
2160
+ {
2161
+ "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
2162
+ },
1911
2163
  {
1912
2164
  "$ref": "#/components/parameters/ApiStripTags"
1913
2165
  },
@@ -1979,6 +2231,9 @@
1979
2231
  {
1980
2232
  "$ref": "#/components/schemas/UserFactionBalanceResponse"
1981
2233
  },
2234
+ {
2235
+ "$ref": "#/components/schemas/UserBasicResponse"
2236
+ },
1982
2237
  {
1983
2238
  "$ref": "#/components/schemas/RevivesResponse"
1984
2239
  },
@@ -2003,6 +2258,21 @@
2003
2258
  {
2004
2259
  "$ref": "#/components/schemas/FactionAttacksFullResponse"
2005
2260
  },
2261
+ {
2262
+ "$ref": "#/components/schemas/UserMoneyResponse"
2263
+ },
2264
+ {
2265
+ "$ref": "#/components/schemas/UserJobPointsResponse"
2266
+ },
2267
+ {
2268
+ "$ref": "#/components/schemas/UserWorkStatsResponse"
2269
+ },
2270
+ {
2271
+ "$ref": "#/components/schemas/UserSkillsResponse"
2272
+ },
2273
+ {
2274
+ "$ref": "#/components/schemas/UserBattleStatsResponse"
2275
+ },
2006
2276
  {
2007
2277
  "$ref": "#/components/schemas/UserLookupResponse"
2008
2278
  },
@@ -2072,17 +2342,7 @@
2072
2342
  "operationId": "cb5b38ba64c389e706526df8bc8af9b6",
2073
2343
  "parameters": [
2074
2344
  {
2075
- "name": "filters",
2076
- "in": "query",
2077
- "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.",
2078
- "required": false,
2079
- "schema": {
2080
- "type": "string",
2081
- "enum": [
2082
- "incoming",
2083
- "outgoing"
2084
- ]
2085
- }
2345
+ "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
2086
2346
  },
2087
2347
  {
2088
2348
  "$ref": "#/components/parameters/ApiLimit100"
@@ -2136,17 +2396,7 @@
2136
2396
  "operationId": "8551280aaaf9819aa94be5c469a523de",
2137
2397
  "parameters": [
2138
2398
  {
2139
- "name": "filters",
2140
- "in": "query",
2141
- "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.",
2142
- "required": false,
2143
- "schema": {
2144
- "type": "string",
2145
- "enum": [
2146
- "incoming",
2147
- "outgoing"
2148
- ]
2149
- }
2399
+ "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
2150
2400
  },
2151
2401
  {
2152
2402
  "$ref": "#/components/parameters/ApiLimit1000"
@@ -3487,17 +3737,7 @@
3487
3737
  "operationId": "486fcda26ed1aa6aba8ec7091080723b",
3488
3738
  "parameters": [
3489
3739
  {
3490
- "name": "filters",
3491
- "in": "query",
3492
- "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.",
3493
- "required": false,
3494
- "schema": {
3495
- "type": "string",
3496
- "enum": [
3497
- "incoming",
3498
- "outgoing"
3499
- ]
3500
- }
3740
+ "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
3501
3741
  },
3502
3742
  {
3503
3743
  "$ref": "#/components/parameters/ApiLimit100"
@@ -3554,17 +3794,7 @@
3554
3794
  "operationId": "f17a4064779e8de5200238816c233c02",
3555
3795
  "parameters": [
3556
3796
  {
3557
- "name": "filters",
3558
- "in": "query",
3559
- "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.",
3560
- "required": false,
3561
- "schema": {
3562
- "type": "string",
3563
- "enum": [
3564
- "incoming",
3565
- "outgoing"
3566
- ]
3567
- }
3797
+ "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
3568
3798
  },
3569
3799
  {
3570
3800
  "$ref": "#/components/parameters/ApiLimit1000"
@@ -4376,7 +4606,9 @@
4376
4606
  "created_at",
4377
4607
  "executed_at",
4378
4608
  "ready_at",
4379
- "expired_at"
4609
+ "expired_at",
4610
+ "incoming",
4611
+ "outgoing"
4380
4612
  ]
4381
4613
  }
4382
4614
  },
@@ -7400,6 +7632,27 @@
7400
7632
  "E"
7401
7633
  ]
7402
7634
  },
7635
+ "UserSkillSlugEnum": {
7636
+ "type": "string",
7637
+ "enum": [
7638
+ "hunting",
7639
+ "racing",
7640
+ "reviving",
7641
+ "search_for_cash",
7642
+ "bootlegging",
7643
+ "graffiti",
7644
+ "shoplifting",
7645
+ "pickpocketing",
7646
+ "card_skimming",
7647
+ "burglary",
7648
+ "hustling",
7649
+ "disposal",
7650
+ "cracking",
7651
+ "forgery",
7652
+ "scamming",
7653
+ "arson"
7654
+ ]
7655
+ },
7403
7656
  "CountryEnum": {
7404
7657
  "type": "string",
7405
7658
  "enum": [
@@ -12172,6 +12425,10 @@
12172
12425
  "type": "integer",
12173
12426
  "format": "int32"
12174
12427
  },
12428
+ "CompanyTypeId": {
12429
+ "type": "integer",
12430
+ "format": "int32"
12431
+ },
12175
12432
  "EducationId": {
12176
12433
  "type": "integer",
12177
12434
  "format": "int32"
@@ -12293,6 +12550,14 @@
12293
12550
  7
12294
12551
  ]
12295
12552
  },
12553
+ "UserGenderEnum": {
12554
+ "type": "string",
12555
+ "enum": [
12556
+ "Male",
12557
+ "Female",
12558
+ "Enby"
12559
+ ]
12560
+ },
12296
12561
  "Parameters": {
12297
12562
  "oneOf": [
12298
12563
  {
@@ -13462,158 +13727,523 @@
13462
13727
  ]
13463
13728
  }
13464
13729
  },
13465
- "type": "object"
13466
- },
13467
- "trip_duration": {
13468
- "type": "integer",
13469
- "format": "int32"
13730
+ "type": "object"
13731
+ },
13732
+ "trip_duration": {
13733
+ "type": "integer",
13734
+ "format": "int32"
13735
+ },
13736
+ "hourly_profit": {
13737
+ "type": "integer",
13738
+ "format": "int32"
13739
+ }
13740
+ },
13741
+ "type": "object"
13742
+ }
13743
+ }
13744
+ },
13745
+ "type": "object"
13746
+ },
13747
+ "ReportAnonymousBounties": {
13748
+ "required": [
13749
+ "bounties"
13750
+ ],
13751
+ "properties": {
13752
+ "bounties": {
13753
+ "type": "array",
13754
+ "items": {
13755
+ "required": [
13756
+ "bounty",
13757
+ "user",
13758
+ "text"
13759
+ ],
13760
+ "properties": {
13761
+ "text": {
13762
+ "type": "string"
13763
+ },
13764
+ "bounty": {
13765
+ "type": "integer",
13766
+ "format": "int64"
13767
+ },
13768
+ "user": {
13769
+ "oneOf": [
13770
+ {
13771
+ "required": [
13772
+ "id",
13773
+ "name"
13774
+ ],
13775
+ "properties": {
13776
+ "id": {
13777
+ "$ref": "#/components/schemas/UserId"
13778
+ },
13779
+ "name": {
13780
+ "type": "string"
13781
+ }
13782
+ },
13783
+ "type": "object"
13784
+ },
13785
+ {
13786
+ "type": "null"
13787
+ }
13788
+ ]
13789
+ }
13790
+ },
13791
+ "type": "object"
13792
+ }
13793
+ }
13794
+ },
13795
+ "type": "object"
13796
+ },
13797
+ "ReportReport": {
13798
+ "required": [
13799
+ "report"
13800
+ ],
13801
+ "properties": {
13802
+ "report": {
13803
+ "oneOf": [
13804
+ {
13805
+ "$ref": "#/components/schemas/ReportMoney"
13806
+ },
13807
+ {
13808
+ "$ref": "#/components/schemas/ReportStats"
13809
+ },
13810
+ {
13811
+ "$ref": "#/components/schemas/ReportMostWanted"
13812
+ },
13813
+ {
13814
+ "$ref": "#/components/schemas/ReportHistory"
13815
+ },
13816
+ {
13817
+ "$ref": "#/components/schemas/ReportFriendOrFoe"
13818
+ },
13819
+ {
13820
+ "$ref": "#/components/schemas/ReportCompanyFinancials"
13821
+ },
13822
+ {
13823
+ "$ref": "#/components/schemas/ReportTrueLevel"
13824
+ },
13825
+ {
13826
+ "$ref": "#/components/schemas/ReportStockAnalysis"
13827
+ },
13828
+ {
13829
+ "$ref": "#/components/schemas/ReportAnonymousBounties"
13830
+ },
13831
+ {
13832
+ "$ref": "#/components/schemas/ReportInvestment"
13833
+ }
13834
+ ]
13835
+ }
13836
+ },
13837
+ "type": "object"
13838
+ },
13839
+ "Report": {
13840
+ "allOf": [
13841
+ {
13842
+ "$ref": "#/components/schemas/ReportBase"
13843
+ },
13844
+ {
13845
+ "$ref": "#/components/schemas/ReportReport"
13846
+ }
13847
+ ]
13848
+ },
13849
+ "ReportsResponse": {
13850
+ "required": [
13851
+ "reports",
13852
+ "_metadata"
13853
+ ],
13854
+ "properties": {
13855
+ "reports": {
13856
+ "type": "array",
13857
+ "items": {
13858
+ "$ref": "#/components/schemas/Report"
13859
+ }
13860
+ },
13861
+ "_metadata": {
13862
+ "$ref": "#/components/schemas/RequestMetadataWithLinks"
13863
+ }
13864
+ },
13865
+ "type": "object"
13866
+ },
13867
+ "SelectionCategoryEnum": {
13868
+ "oneOf": [
13869
+ {
13870
+ "$ref": "#/components/schemas/ReportTypeEnum"
13871
+ },
13872
+ {
13873
+ "$ref": "#/components/schemas/UserListEnum"
13874
+ },
13875
+ {
13876
+ "$ref": "#/components/schemas/PersonalStatsCategoryEnum"
13877
+ },
13878
+ {
13879
+ "$ref": "#/components/schemas/RacingRaceTypeEnum"
13880
+ }
13881
+ ]
13882
+ },
13883
+ "UserMoneyResponse": {
13884
+ "required": [
13885
+ "money"
13886
+ ],
13887
+ "properties": {
13888
+ "money": {
13889
+ "required": [
13890
+ "points",
13891
+ "wallet",
13892
+ "company",
13893
+ "vault",
13894
+ "cayman_bank",
13895
+ "city_bank",
13896
+ "faction",
13897
+ "daily_networth"
13898
+ ],
13899
+ "properties": {
13900
+ "points": {
13901
+ "type": "integer",
13902
+ "format": "int64"
13903
+ },
13904
+ "wallet": {
13905
+ "type": "integer",
13906
+ "format": "int64"
13907
+ },
13908
+ "company": {
13909
+ "type": "integer",
13910
+ "format": "int64"
13911
+ },
13912
+ "vault": {
13913
+ "type": "integer",
13914
+ "format": "int64"
13915
+ },
13916
+ "cayman_bank": {
13917
+ "type": "integer",
13918
+ "format": "int64"
13919
+ },
13920
+ "city_bank": {
13921
+ "required": [
13922
+ "amount",
13923
+ "until"
13924
+ ],
13925
+ "properties": {
13926
+ "amount": {
13927
+ "type": "integer",
13928
+ "format": "int64"
13929
+ },
13930
+ "until": {
13931
+ "type": "integer",
13932
+ "format": "int64"
13933
+ }
13934
+ },
13935
+ "type": "object"
13936
+ },
13937
+ "faction": {
13938
+ "required": [
13939
+ "money",
13940
+ "points"
13941
+ ],
13942
+ "properties": {
13943
+ "money": {
13944
+ "type": "integer",
13945
+ "format": "int64"
13946
+ },
13947
+ "points": {
13948
+ "type": "integer",
13949
+ "format": "int64"
13950
+ }
13951
+ },
13952
+ "type": "object"
13953
+ },
13954
+ "daily_networth": {
13955
+ "type": "integer",
13956
+ "format": "int64"
13957
+ }
13958
+ },
13959
+ "type": "object"
13960
+ }
13961
+ },
13962
+ "type": "object"
13963
+ },
13964
+ "UserSkillsResponse": {
13965
+ "required": [
13966
+ "skills"
13967
+ ],
13968
+ "properties": {
13969
+ "skills": {
13970
+ "type": "array",
13971
+ "items": {
13972
+ "$ref": "#/components/schemas/UserSkillDetail"
13973
+ }
13974
+ }
13975
+ },
13976
+ "type": "object"
13977
+ },
13978
+ "UserSkillDetail": {
13979
+ "required": [
13980
+ "slug",
13981
+ "name",
13982
+ "level"
13983
+ ],
13984
+ "properties": {
13985
+ "slug": {
13986
+ "type": "string",
13987
+ "oneOf": [
13988
+ {
13989
+ "$ref": "#/components/schemas/UserSkillSlugEnum"
13990
+ },
13991
+ {
13992
+ "type": "string"
13993
+ }
13994
+ ]
13995
+ },
13996
+ "name": {
13997
+ "type": "string"
13998
+ },
13999
+ "level": {
14000
+ "type": "number",
14001
+ "format": "float"
14002
+ }
14003
+ },
14004
+ "type": "object"
14005
+ },
14006
+ "UserJobPointsResponse": {
14007
+ "required": [
14008
+ "jobpoints"
14009
+ ],
14010
+ "properties": {
14011
+ "jobpoints": {
14012
+ "required": [
14013
+ "jobs",
14014
+ "companies"
14015
+ ],
14016
+ "properties": {
14017
+ "jobs": {
14018
+ "required": [
14019
+ "army",
14020
+ "casino",
14021
+ "education",
14022
+ "grocer",
14023
+ "law",
14024
+ "medical"
14025
+ ],
14026
+ "properties": {
14027
+ "army": {
14028
+ "type": "integer",
14029
+ "format": "int32"
14030
+ },
14031
+ "casino": {
14032
+ "type": "integer",
14033
+ "format": "int32"
14034
+ },
14035
+ "education": {
14036
+ "type": "integer",
14037
+ "format": "int32"
14038
+ },
14039
+ "grocer": {
14040
+ "type": "integer",
14041
+ "format": "int32"
14042
+ },
14043
+ "law": {
14044
+ "type": "integer",
14045
+ "format": "int32"
14046
+ },
14047
+ "medical": {
14048
+ "type": "integer",
14049
+ "format": "int32"
14050
+ }
13470
14051
  },
13471
- "hourly_profit": {
13472
- "type": "integer",
13473
- "format": "int32"
13474
- }
14052
+ "type": "object"
13475
14053
  },
13476
- "type": "object"
13477
- }
14054
+ "companies": {
14055
+ "type": "array",
14056
+ "items": {
14057
+ "$ref": "#/components/schemas/UserCompanyPoints"
14058
+ }
14059
+ }
14060
+ },
14061
+ "type": "object"
13478
14062
  }
13479
14063
  },
13480
14064
  "type": "object"
13481
14065
  },
13482
- "ReportAnonymousBounties": {
14066
+ "UserCompanyPoints": {
13483
14067
  "required": [
13484
- "bounties"
14068
+ "company",
14069
+ "points"
13485
14070
  ],
13486
14071
  "properties": {
13487
- "bounties": {
13488
- "type": "array",
13489
- "items": {
13490
- "required": [
13491
- "bounty",
13492
- "user",
13493
- "text"
13494
- ],
13495
- "properties": {
13496
- "text": {
13497
- "type": "string"
13498
- },
13499
- "bounty": {
13500
- "type": "integer",
13501
- "format": "int64"
13502
- },
13503
- "user": {
13504
- "oneOf": [
13505
- {
13506
- "required": [
13507
- "id",
13508
- "name"
13509
- ],
13510
- "properties": {
13511
- "id": {
13512
- "$ref": "#/components/schemas/UserId"
13513
- },
13514
- "name": {
13515
- "type": "string"
13516
- }
13517
- },
13518
- "type": "object"
13519
- },
13520
- {
13521
- "type": "null"
13522
- }
13523
- ]
13524
- }
14072
+ "company": {
14073
+ "required": [
14074
+ "id",
14075
+ "name"
14076
+ ],
14077
+ "properties": {
14078
+ "id": {
14079
+ "$ref": "#/components/schemas/CompanyTypeId"
13525
14080
  },
13526
- "type": "object"
13527
- }
14081
+ "name": {
14082
+ "type": "string"
14083
+ }
14084
+ },
14085
+ "type": "object"
14086
+ },
14087
+ "points": {
14088
+ "type": "integer",
14089
+ "format": "int32"
13528
14090
  }
13529
14091
  },
13530
14092
  "type": "object"
13531
14093
  },
13532
- "ReportReport": {
14094
+ "UserWorkStatsResponse": {
13533
14095
  "required": [
13534
- "report"
14096
+ "workstats"
13535
14097
  ],
13536
14098
  "properties": {
13537
- "report": {
13538
- "oneOf": [
13539
- {
13540
- "$ref": "#/components/schemas/ReportMoney"
13541
- },
13542
- {
13543
- "$ref": "#/components/schemas/ReportStats"
13544
- },
13545
- {
13546
- "$ref": "#/components/schemas/ReportMostWanted"
14099
+ "workstats": {
14100
+ "required": [
14101
+ "endurance",
14102
+ "intelligence",
14103
+ "manual_labor",
14104
+ "total"
14105
+ ],
14106
+ "properties": {
14107
+ "endurance": {
14108
+ "type": "integer",
14109
+ "format": "int32"
13547
14110
  },
13548
- {
13549
- "$ref": "#/components/schemas/ReportHistory"
14111
+ "intelligence": {
14112
+ "type": "integer",
14113
+ "format": "int32"
13550
14114
  },
13551
- {
13552
- "$ref": "#/components/schemas/ReportFriendOrFoe"
14115
+ "manual_labor": {
14116
+ "type": "integer",
14117
+ "format": "int32"
13553
14118
  },
13554
- {
13555
- "$ref": "#/components/schemas/ReportCompanyFinancials"
14119
+ "total": {
14120
+ "type": "integer",
14121
+ "format": "int32"
14122
+ }
14123
+ },
14124
+ "type": "object"
14125
+ }
14126
+ },
14127
+ "type": "object"
14128
+ },
14129
+ "UserBattleStatsResponse": {
14130
+ "required": [
14131
+ "battlestats"
14132
+ ],
14133
+ "properties": {
14134
+ "battlestats": {
14135
+ "required": [
14136
+ "strength",
14137
+ "defense",
14138
+ "speed",
14139
+ "dexterity",
14140
+ "total"
14141
+ ],
14142
+ "properties": {
14143
+ "strength": {
14144
+ "$ref": "#/components/schemas/UserBattleStatDetail"
13556
14145
  },
13557
- {
13558
- "$ref": "#/components/schemas/ReportTrueLevel"
14146
+ "defense": {
14147
+ "$ref": "#/components/schemas/UserBattleStatDetail"
13559
14148
  },
13560
- {
13561
- "$ref": "#/components/schemas/ReportStockAnalysis"
14149
+ "speed": {
14150
+ "$ref": "#/components/schemas/UserBattleStatDetail"
13562
14151
  },
13563
- {
13564
- "$ref": "#/components/schemas/ReportAnonymousBounties"
14152
+ "dexterity": {
14153
+ "$ref": "#/components/schemas/UserBattleStatDetail"
13565
14154
  },
13566
- {
13567
- "$ref": "#/components/schemas/ReportInvestment"
14155
+ "total": {
14156
+ "type": "integer",
14157
+ "format": "int64"
13568
14158
  }
13569
- ]
14159
+ },
14160
+ "type": "object"
13570
14161
  }
13571
14162
  },
13572
14163
  "type": "object"
13573
14164
  },
13574
- "Report": {
13575
- "allOf": [
13576
- {
13577
- "$ref": "#/components/schemas/ReportBase"
13578
- },
13579
- {
13580
- "$ref": "#/components/schemas/ReportReport"
13581
- }
13582
- ]
13583
- },
13584
- "ReportsResponse": {
14165
+ "UserBattleStatDetail": {
13585
14166
  "required": [
13586
- "reports",
13587
- "_metadata"
14167
+ "value",
14168
+ "modifier",
14169
+ "modifiers"
13588
14170
  ],
13589
14171
  "properties": {
13590
- "reports": {
14172
+ "value": {
14173
+ "type": "integer",
14174
+ "format": "int64"
14175
+ },
14176
+ "modifier": {
14177
+ "type": "integer",
14178
+ "format": "int32"
14179
+ },
14180
+ "modifiers": {
13591
14181
  "type": "array",
13592
14182
  "items": {
13593
- "$ref": "#/components/schemas/Report"
14183
+ "$ref": "#/components/schemas/UserBattleStatModifierDetail"
13594
14184
  }
14185
+ }
14186
+ },
14187
+ "type": "object"
14188
+ },
14189
+ "UserBattleStatModifierDetail": {
14190
+ "required": [
14191
+ "effect",
14192
+ "value",
14193
+ "type"
14194
+ ],
14195
+ "properties": {
14196
+ "effect": {
14197
+ "type": "string"
13595
14198
  },
13596
- "_metadata": {
13597
- "$ref": "#/components/schemas/RequestMetadataWithLinks"
14199
+ "value": {
14200
+ "type": "integer",
14201
+ "format": "int32"
14202
+ },
14203
+ "type": {
14204
+ "type": "string"
13598
14205
  }
13599
14206
  },
13600
14207
  "type": "object"
13601
14208
  },
13602
- "SelectionCategoryEnum": {
13603
- "oneOf": [
13604
- {
13605
- "$ref": "#/components/schemas/ReportTypeEnum"
14209
+ "UserBasic": {
14210
+ "required": [
14211
+ "id",
14212
+ "name",
14213
+ "level",
14214
+ "gender",
14215
+ "status"
14216
+ ],
14217
+ "properties": {
14218
+ "id": {
14219
+ "$ref": "#/components/schemas/UserId"
13606
14220
  },
13607
- {
13608
- "$ref": "#/components/schemas/UserListEnum"
14221
+ "name": {
14222
+ "type": "string"
13609
14223
  },
13610
- {
13611
- "$ref": "#/components/schemas/PersonalStatsCategoryEnum"
14224
+ "level": {
14225
+ "type": "integer",
14226
+ "format": "int32"
13612
14227
  },
13613
- {
13614
- "$ref": "#/components/schemas/RacingRaceTypeEnum"
14228
+ "gender": {
14229
+ "$ref": "#/components/schemas/UserGenderEnum"
14230
+ },
14231
+ "status": {
14232
+ "$ref": "#/components/schemas/UserStatus"
13615
14233
  }
13616
- ]
14234
+ },
14235
+ "type": "object"
14236
+ },
14237
+ "UserBasicResponse": {
14238
+ "required": [
14239
+ "profile"
14240
+ ],
14241
+ "properties": {
14242
+ "profile": {
14243
+ "$ref": "#/components/schemas/UserBasic"
14244
+ }
14245
+ },
14246
+ "type": "object"
13617
14247
  },
13618
14248
  "UserLog": {
13619
14249
  "required": [
@@ -15428,11 +16058,13 @@
15428
16058
  "UserSelectionName": {
15429
16059
  "oneOf": [
15430
16060
  {
15431
- "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'.",
16061
+ "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','honors','icons','inventory','log','medals','merits','messages','missions','networth','newevents','newmessages','notifications','perks','profile','refills','stocks','travel','weaponexp'.",
15432
16062
  "type": "string",
15433
16063
  "enum": [
15434
16064
  "attacks",
15435
16065
  "attacksfull",
16066
+ "basic",
16067
+ "battlestats",
15436
16068
  "bounties",
15437
16069
  "calendar",
15438
16070
  "crimes",
@@ -15445,22 +16077,25 @@
15445
16077
  "forumthreads",
15446
16078
  "hof",
15447
16079
  "itemmarket",
16080
+ "jobpoints",
15448
16081
  "jobranks",
15449
16082
  "list",
15450
16083
  "lookup",
16084
+ "money",
15451
16085
  "organizedcrime",
15452
16086
  "personalstats",
15453
16087
  "properties",
15454
16088
  "property",
15455
16089
  "races",
15456
16090
  "racingrecords",
16091
+ "reports",
15457
16092
  "revives",
15458
16093
  "revivesfull",
16094
+ "skills",
15459
16095
  "timestamp",
16096
+ "workstats",
15460
16097
  "ammo",
15461
16098
  "bars",
15462
- "basic",
15463
- "battlestats",
15464
16099
  "bazaar",
15465
16100
  "cooldowns",
15466
16101
  "criminalrecord",
@@ -15473,13 +16108,11 @@
15473
16108
  "honors",
15474
16109
  "icons",
15475
16110
  "inventory",
15476
- "jobpoints",
15477
16111
  "log",
15478
16112
  "medals",
15479
16113
  "merits",
15480
16114
  "messages",
15481
16115
  "missions",
15482
- "money",
15483
16116
  "networth",
15484
16117
  "newevents",
15485
16118
  "newmessages",
@@ -15487,12 +16120,9 @@
15487
16120
  "perks",
15488
16121
  "profile",
15489
16122
  "refills",
15490
- "reports",
15491
- "skills",
15492
16123
  "stocks",
15493
16124
  "travel",
15494
- "weaponexp",
15495
- "workstats"
16125
+ "weaponexp"
15496
16126
  ]
15497
16127
  },
15498
16128
  {
@@ -25584,6 +26214,19 @@
25584
26214
  "type": "string"
25585
26215
  }
25586
26216
  },
26217
+ "ApiFiltersIncomingOutgoing": {
26218
+ "name": "filters",
26219
+ "in": "query",
26220
+ "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.",
26221
+ "required": false,
26222
+ "schema": {
26223
+ "type": "string",
26224
+ "enum": [
26225
+ "incoming",
26226
+ "outgoing"
26227
+ ]
26228
+ }
26229
+ },
25587
26230
  "ApiFactionSearchFilter": {
25588
26231
  "name": "filters",
25589
26232
  "in": "query",