tornapi-typescript 1.10.2 → 1.11.2
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/index.d.ts +155 -1
- package/dist/openapi.json +1112 -101
- package/package.json +2 -2
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": "1.
|
|
6
|
+
"version": "1.11.2"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -1161,6 +1161,192 @@
|
|
|
1161
1161
|
"x-stability": "Stable"
|
|
1162
1162
|
}
|
|
1163
1163
|
},
|
|
1164
|
+
"/user/properties": {
|
|
1165
|
+
"get": {
|
|
1166
|
+
"tags": [
|
|
1167
|
+
"User"
|
|
1168
|
+
],
|
|
1169
|
+
"summary": "Get your own properties",
|
|
1170
|
+
"description": "Requires public access key. <br>Extended responses are available when requesting the data with Limited or higher access keys.",
|
|
1171
|
+
"operationId": "574a416ca46717830f03a2f685955b87",
|
|
1172
|
+
"parameters": [
|
|
1173
|
+
{
|
|
1174
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
1187
|
+
}
|
|
1188
|
+
],
|
|
1189
|
+
"responses": {
|
|
1190
|
+
"200": {
|
|
1191
|
+
"description": "Successful operation",
|
|
1192
|
+
"content": {
|
|
1193
|
+
"application/json": {
|
|
1194
|
+
"schema": {
|
|
1195
|
+
"$ref": "#/components/schemas/UserPropertiesResponse"
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
"security": [
|
|
1202
|
+
{
|
|
1203
|
+
"api_key": []
|
|
1204
|
+
}
|
|
1205
|
+
],
|
|
1206
|
+
"x-stability": "Unstable"
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
"/user/{id}/properties": {
|
|
1210
|
+
"get": {
|
|
1211
|
+
"tags": [
|
|
1212
|
+
"User"
|
|
1213
|
+
],
|
|
1214
|
+
"summary": "Get specific user's properties",
|
|
1215
|
+
"description": "Requires public access key. <br>Extended responses are available when requesting the data with Limited or higher access keys for yourself or your spouse.",
|
|
1216
|
+
"operationId": "601f7b38ac25e1ac47b33fb64120198b",
|
|
1217
|
+
"parameters": [
|
|
1218
|
+
{
|
|
1219
|
+
"name": "id",
|
|
1220
|
+
"in": "path",
|
|
1221
|
+
"description": "User id",
|
|
1222
|
+
"required": true,
|
|
1223
|
+
"schema": {
|
|
1224
|
+
"$ref": "#/components/schemas/UserId"
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1243
|
+
"responses": {
|
|
1244
|
+
"200": {
|
|
1245
|
+
"description": "Successful operation",
|
|
1246
|
+
"content": {
|
|
1247
|
+
"application/json": {
|
|
1248
|
+
"schema": {
|
|
1249
|
+
"$ref": "#/components/schemas/UserPropertiesResponse"
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
"security": [
|
|
1256
|
+
{
|
|
1257
|
+
"api_key": []
|
|
1258
|
+
}
|
|
1259
|
+
],
|
|
1260
|
+
"x-stability": "Unstable"
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
"/user/property": {
|
|
1264
|
+
"get": {
|
|
1265
|
+
"tags": [
|
|
1266
|
+
"User"
|
|
1267
|
+
],
|
|
1268
|
+
"summary": "Get your current property",
|
|
1269
|
+
"description": "Requires public access key. <br>",
|
|
1270
|
+
"operationId": "0452cb8fd031b80d3b7e9fcb7b0bdf09",
|
|
1271
|
+
"parameters": [
|
|
1272
|
+
{
|
|
1273
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
1280
|
+
}
|
|
1281
|
+
],
|
|
1282
|
+
"responses": {
|
|
1283
|
+
"200": {
|
|
1284
|
+
"description": "Successful operation",
|
|
1285
|
+
"content": {
|
|
1286
|
+
"application/json": {
|
|
1287
|
+
"schema": {
|
|
1288
|
+
"$ref": "#/components/schemas/UserPropertyResponse"
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
"security": [
|
|
1295
|
+
{
|
|
1296
|
+
"api_key": []
|
|
1297
|
+
}
|
|
1298
|
+
],
|
|
1299
|
+
"x-stability": "Unstable"
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
"/user/{id}/property": {
|
|
1303
|
+
"get": {
|
|
1304
|
+
"tags": [
|
|
1305
|
+
"User"
|
|
1306
|
+
],
|
|
1307
|
+
"summary": "Get specific user's property",
|
|
1308
|
+
"description": "Requires public access key. <br>",
|
|
1309
|
+
"operationId": "f36ce18449194dd9d2b62bccd4bb8343",
|
|
1310
|
+
"parameters": [
|
|
1311
|
+
{
|
|
1312
|
+
"name": "id",
|
|
1313
|
+
"in": "path",
|
|
1314
|
+
"description": "User id",
|
|
1315
|
+
"required": true,
|
|
1316
|
+
"schema": {
|
|
1317
|
+
"$ref": "#/components/schemas/UserId"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
1328
|
+
}
|
|
1329
|
+
],
|
|
1330
|
+
"responses": {
|
|
1331
|
+
"200": {
|
|
1332
|
+
"description": "Successful operation",
|
|
1333
|
+
"content": {
|
|
1334
|
+
"application/json": {
|
|
1335
|
+
"schema": {
|
|
1336
|
+
"$ref": "#/components/schemas/UserPropertyResponse"
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
},
|
|
1342
|
+
"security": [
|
|
1343
|
+
{
|
|
1344
|
+
"api_key": []
|
|
1345
|
+
}
|
|
1346
|
+
],
|
|
1347
|
+
"x-stability": "Unstable"
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1164
1350
|
"/user/races": {
|
|
1165
1351
|
"get": {
|
|
1166
1352
|
"tags": [
|
|
@@ -1622,6 +1808,9 @@
|
|
|
1622
1808
|
{
|
|
1623
1809
|
"$ref": "#/components/schemas/UserJobRanksResponse"
|
|
1624
1810
|
},
|
|
1811
|
+
{
|
|
1812
|
+
"$ref": "#/components/schemas/UserPropertiesResponse"
|
|
1813
|
+
},
|
|
1625
1814
|
{
|
|
1626
1815
|
"$ref": "#/components/schemas/UserFactionBalanceResponse"
|
|
1627
1816
|
},
|
|
@@ -2288,13 +2477,13 @@
|
|
|
2288
2477
|
"Faction"
|
|
2289
2478
|
],
|
|
2290
2479
|
"summary": "Get your faction's organized crimes",
|
|
2291
|
-
"description": "Requires minimal access key with faction API access permissions. <br> It's possible to get older entries either by timestamp range (from, to) or with offset.",
|
|
2480
|
+
"description": "Requires minimal access key with faction API access permissions. <br> It's possible to get older entries either by timestamp range (from, to) or with offset.<br> Crimes are ordered depending on the category chosen:\n * For categories 'all' & 'available', the ordering field is 'created_at'.\n * For categories 'successful', 'failed' & 'completed', the ordering field is 'executed_at'.\n * For categories 'recruiting' & 'expired', the ordering field is 'expired_at'.\n * For category 'planning', the ordering field is 'ready_at'.",
|
|
2292
2481
|
"operationId": "72e5db8a773908fedff4bb002f3f4406",
|
|
2293
2482
|
"parameters": [
|
|
2294
2483
|
{
|
|
2295
2484
|
"name": "cat",
|
|
2296
2485
|
"in": "query",
|
|
2297
|
-
"description": "Category of organized crimes returned. Category 'available' includes both 'recruiting' & 'planning', and category 'completed' includes both 'successful' & 'failure'<br>Default category is 'all'",
|
|
2486
|
+
"description": "Category of organized crimes returned. Category 'available' includes both 'recruiting' & 'planning', and category 'completed' includes both 'successful' & 'failure'<br>Default category is 'all'.",
|
|
2298
2487
|
"required": false,
|
|
2299
2488
|
"schema": {
|
|
2300
2489
|
"type": "string",
|
|
@@ -2310,6 +2499,21 @@
|
|
|
2310
2499
|
]
|
|
2311
2500
|
}
|
|
2312
2501
|
},
|
|
2502
|
+
{
|
|
2503
|
+
"name": "filters",
|
|
2504
|
+
"in": "query",
|
|
2505
|
+
"description": "It's possible to set this parameter to specify a field used for the sort, from & to query parameters. If not specified, the field will default to the category sorting as described above.",
|
|
2506
|
+
"required": false,
|
|
2507
|
+
"schema": {
|
|
2508
|
+
"type": "string",
|
|
2509
|
+
"enum": [
|
|
2510
|
+
"created_at",
|
|
2511
|
+
"executed_at",
|
|
2512
|
+
"ready_at",
|
|
2513
|
+
"expired_at"
|
|
2514
|
+
]
|
|
2515
|
+
}
|
|
2516
|
+
},
|
|
2313
2517
|
{
|
|
2314
2518
|
"$ref": "#/components/parameters/ApiOffset"
|
|
2315
2519
|
},
|
|
@@ -3206,7 +3410,7 @@
|
|
|
3206
3410
|
"$ref": "#/components/parameters/ApiFactionSearchFilter"
|
|
3207
3411
|
},
|
|
3208
3412
|
{
|
|
3209
|
-
"$ref": "#/components/parameters/
|
|
3413
|
+
"$ref": "#/components/parameters/ApiLimit50Default20"
|
|
3210
3414
|
},
|
|
3211
3415
|
{
|
|
3212
3416
|
"$ref": "#/components/parameters/ApiOffset"
|
|
@@ -3945,6 +4149,20 @@
|
|
|
3945
4149
|
"$ref": "#/components/schemas/FactionStatEnum"
|
|
3946
4150
|
}
|
|
3947
4151
|
},
|
|
4152
|
+
{
|
|
4153
|
+
"name": "filters",
|
|
4154
|
+
"in": "query",
|
|
4155
|
+
"required": false,
|
|
4156
|
+
"schema": {
|
|
4157
|
+
"type": "string",
|
|
4158
|
+
"enum": [
|
|
4159
|
+
"created_at",
|
|
4160
|
+
"executed_at",
|
|
4161
|
+
"ready_at",
|
|
4162
|
+
"expired_at"
|
|
4163
|
+
]
|
|
4164
|
+
}
|
|
4165
|
+
},
|
|
3948
4166
|
{
|
|
3949
4167
|
"$ref": "#/components/parameters/ApiStripTags"
|
|
3950
4168
|
},
|
|
@@ -4833,15 +5051,33 @@
|
|
|
4833
5051
|
"x-stability": "Unstable"
|
|
4834
5052
|
}
|
|
4835
5053
|
},
|
|
4836
|
-
"/market/
|
|
5054
|
+
"/market/{propertyTypeId}/properties": {
|
|
4837
5055
|
"get": {
|
|
4838
5056
|
"tags": [
|
|
4839
5057
|
"Market"
|
|
4840
5058
|
],
|
|
4841
|
-
"summary": "Get
|
|
5059
|
+
"summary": "Get properties market listings",
|
|
4842
5060
|
"description": "Requires public access key. <br>",
|
|
4843
|
-
"operationId": "
|
|
5061
|
+
"operationId": "17e406574ff1eb686891c0fb0e15343a",
|
|
4844
5062
|
"parameters": [
|
|
5063
|
+
{
|
|
5064
|
+
"name": "propertyTypeId",
|
|
5065
|
+
"in": "path",
|
|
5066
|
+
"description": "Property type id",
|
|
5067
|
+
"required": true,
|
|
5068
|
+
"schema": {
|
|
5069
|
+
"$ref": "#/components/schemas/PropertyTypeId"
|
|
5070
|
+
}
|
|
5071
|
+
},
|
|
5072
|
+
{
|
|
5073
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
5074
|
+
},
|
|
5075
|
+
{
|
|
5076
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
"$ref": "#/components/parameters/ApiSort"
|
|
5080
|
+
},
|
|
4845
5081
|
{
|
|
4846
5082
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
4847
5083
|
},
|
|
@@ -4858,7 +5094,7 @@
|
|
|
4858
5094
|
"content": {
|
|
4859
5095
|
"application/json": {
|
|
4860
5096
|
"schema": {
|
|
4861
|
-
"$ref": "#/components/schemas/
|
|
5097
|
+
"$ref": "#/components/schemas/MarketPropertiesResponse"
|
|
4862
5098
|
}
|
|
4863
5099
|
}
|
|
4864
5100
|
}
|
|
@@ -4869,18 +5105,36 @@
|
|
|
4869
5105
|
"api_key": []
|
|
4870
5106
|
}
|
|
4871
5107
|
],
|
|
4872
|
-
"x-stability": "
|
|
5108
|
+
"x-stability": "Unstable"
|
|
4873
5109
|
}
|
|
4874
5110
|
},
|
|
4875
|
-
"/market/
|
|
5111
|
+
"/market/{propertyTypeId}/rentals": {
|
|
4876
5112
|
"get": {
|
|
4877
5113
|
"tags": [
|
|
4878
5114
|
"Market"
|
|
4879
5115
|
],
|
|
4880
|
-
"summary": "Get
|
|
5116
|
+
"summary": "Get properties rental listings",
|
|
4881
5117
|
"description": "Requires public access key. <br>",
|
|
4882
|
-
"operationId": "
|
|
5118
|
+
"operationId": "38cd1a2c47e266a703a13e0dd401f4a9",
|
|
4883
5119
|
"parameters": [
|
|
5120
|
+
{
|
|
5121
|
+
"name": "propertyTypeId",
|
|
5122
|
+
"in": "path",
|
|
5123
|
+
"description": "Property type id",
|
|
5124
|
+
"required": true,
|
|
5125
|
+
"schema": {
|
|
5126
|
+
"$ref": "#/components/schemas/PropertyTypeId"
|
|
5127
|
+
}
|
|
5128
|
+
},
|
|
5129
|
+
{
|
|
5130
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
5131
|
+
},
|
|
5132
|
+
{
|
|
5133
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
5134
|
+
},
|
|
5135
|
+
{
|
|
5136
|
+
"$ref": "#/components/parameters/ApiSort"
|
|
5137
|
+
},
|
|
4884
5138
|
{
|
|
4885
5139
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
4886
5140
|
},
|
|
@@ -4897,7 +5151,7 @@
|
|
|
4897
5151
|
"content": {
|
|
4898
5152
|
"application/json": {
|
|
4899
5153
|
"schema": {
|
|
4900
|
-
"$ref": "#/components/schemas/
|
|
5154
|
+
"$ref": "#/components/schemas/MarketRentalsResponse"
|
|
4901
5155
|
}
|
|
4902
5156
|
}
|
|
4903
5157
|
}
|
|
@@ -4908,39 +5162,124 @@
|
|
|
4908
5162
|
"api_key": []
|
|
4909
5163
|
}
|
|
4910
5164
|
],
|
|
4911
|
-
"x-stability": "
|
|
5165
|
+
"x-stability": "Unstable"
|
|
4912
5166
|
}
|
|
4913
5167
|
},
|
|
4914
|
-
"/market": {
|
|
5168
|
+
"/market/lookup": {
|
|
4915
5169
|
"get": {
|
|
4916
5170
|
"tags": [
|
|
4917
5171
|
"Market"
|
|
4918
5172
|
],
|
|
4919
|
-
"summary": "Get
|
|
4920
|
-
"description": "Requires public access key. <br>
|
|
4921
|
-
"operationId": "
|
|
5173
|
+
"summary": "Get all available market selections",
|
|
5174
|
+
"description": "Requires public access key. <br>",
|
|
5175
|
+
"operationId": "22a00095ad734485b6dacdc12c1f62ff",
|
|
4922
5176
|
"parameters": [
|
|
4923
5177
|
{
|
|
4924
|
-
"
|
|
4925
|
-
"in": "query",
|
|
4926
|
-
"description": "Selection names",
|
|
4927
|
-
"required": false,
|
|
4928
|
-
"style": "form",
|
|
4929
|
-
"explode": false,
|
|
4930
|
-
"schema": {
|
|
4931
|
-
"type": "array",
|
|
4932
|
-
"items": {
|
|
4933
|
-
"$ref": "#/components/schemas/MarketSelectionName"
|
|
4934
|
-
}
|
|
4935
|
-
}
|
|
5178
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
4936
5179
|
},
|
|
4937
5180
|
{
|
|
4938
|
-
"
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
"
|
|
5181
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
5182
|
+
},
|
|
5183
|
+
{
|
|
5184
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
5185
|
+
}
|
|
5186
|
+
],
|
|
5187
|
+
"responses": {
|
|
5188
|
+
"200": {
|
|
5189
|
+
"description": "Successful operation",
|
|
5190
|
+
"content": {
|
|
5191
|
+
"application/json": {
|
|
5192
|
+
"schema": {
|
|
5193
|
+
"$ref": "#/components/schemas/MarketLookupResponse"
|
|
5194
|
+
}
|
|
5195
|
+
}
|
|
5196
|
+
}
|
|
5197
|
+
}
|
|
5198
|
+
},
|
|
5199
|
+
"security": [
|
|
5200
|
+
{
|
|
5201
|
+
"api_key": []
|
|
5202
|
+
}
|
|
5203
|
+
],
|
|
5204
|
+
"x-stability": "Stable"
|
|
5205
|
+
}
|
|
5206
|
+
},
|
|
5207
|
+
"/market/timestamp": {
|
|
5208
|
+
"get": {
|
|
5209
|
+
"tags": [
|
|
5210
|
+
"Market"
|
|
5211
|
+
],
|
|
5212
|
+
"summary": "Get current server time",
|
|
5213
|
+
"description": "Requires public access key. <br>",
|
|
5214
|
+
"operationId": "ad0c908328835d9672d157fe84eac884",
|
|
5215
|
+
"parameters": [
|
|
5216
|
+
{
|
|
5217
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
5218
|
+
},
|
|
5219
|
+
{
|
|
5220
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
5221
|
+
},
|
|
5222
|
+
{
|
|
5223
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
5224
|
+
}
|
|
5225
|
+
],
|
|
5226
|
+
"responses": {
|
|
5227
|
+
"200": {
|
|
5228
|
+
"description": "Successful operation",
|
|
5229
|
+
"content": {
|
|
5230
|
+
"application/json": {
|
|
5231
|
+
"schema": {
|
|
5232
|
+
"$ref": "#/components/schemas/TimestampResponse"
|
|
5233
|
+
}
|
|
5234
|
+
}
|
|
5235
|
+
}
|
|
5236
|
+
}
|
|
5237
|
+
},
|
|
5238
|
+
"security": [
|
|
5239
|
+
{
|
|
5240
|
+
"api_key": []
|
|
5241
|
+
}
|
|
5242
|
+
],
|
|
5243
|
+
"x-stability": "Stable"
|
|
5244
|
+
}
|
|
5245
|
+
},
|
|
5246
|
+
"/market": {
|
|
5247
|
+
"get": {
|
|
5248
|
+
"tags": [
|
|
5249
|
+
"Market"
|
|
5250
|
+
],
|
|
5251
|
+
"summary": "Get any Market selection",
|
|
5252
|
+
"description": "Requires public access key. <br>Choose one or more selections (comma separated).",
|
|
5253
|
+
"operationId": "8e78be3fa3d353f59f8654fcc1c2199c",
|
|
5254
|
+
"parameters": [
|
|
5255
|
+
{
|
|
5256
|
+
"name": "selections",
|
|
5257
|
+
"in": "query",
|
|
5258
|
+
"description": "Selection names",
|
|
5259
|
+
"required": false,
|
|
5260
|
+
"style": "form",
|
|
5261
|
+
"explode": false,
|
|
4942
5262
|
"schema": {
|
|
4943
|
-
"
|
|
5263
|
+
"type": "array",
|
|
5264
|
+
"items": {
|
|
5265
|
+
"$ref": "#/components/schemas/MarketSelectionName"
|
|
5266
|
+
}
|
|
5267
|
+
}
|
|
5268
|
+
},
|
|
5269
|
+
{
|
|
5270
|
+
"name": "id",
|
|
5271
|
+
"in": "query",
|
|
5272
|
+
"description": "selection id",
|
|
5273
|
+
"required": false,
|
|
5274
|
+
"schema": {
|
|
5275
|
+
"oneOf": [
|
|
5276
|
+
{
|
|
5277
|
+
"$ref": "#/components/schemas/ItemId"
|
|
5278
|
+
},
|
|
5279
|
+
{
|
|
5280
|
+
"$ref": "#/components/schemas/PropertyTypeId"
|
|
5281
|
+
}
|
|
5282
|
+
]
|
|
4944
5283
|
}
|
|
4945
5284
|
},
|
|
4946
5285
|
{
|
|
@@ -4977,6 +5316,9 @@
|
|
|
4977
5316
|
{
|
|
4978
5317
|
"$ref": "#/components/parameters/ApiOffsetNoDefault"
|
|
4979
5318
|
},
|
|
5319
|
+
{
|
|
5320
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
5321
|
+
},
|
|
4980
5322
|
{
|
|
4981
5323
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
4982
5324
|
},
|
|
@@ -5003,6 +5345,15 @@
|
|
|
5003
5345
|
{
|
|
5004
5346
|
"$ref": "#/components/schemas/MarketItemMarketResponse"
|
|
5005
5347
|
},
|
|
5348
|
+
{
|
|
5349
|
+
"$ref": "#/components/schemas/MarketRentalsResponse"
|
|
5350
|
+
},
|
|
5351
|
+
{
|
|
5352
|
+
"$ref": "#/components/schemas/MarketPropertiesResponse"
|
|
5353
|
+
},
|
|
5354
|
+
{
|
|
5355
|
+
"$ref": "#/components/schemas/MarketItemMarketResponse"
|
|
5356
|
+
},
|
|
5006
5357
|
{
|
|
5007
5358
|
"$ref": "#/components/schemas/MarketLookupResponse"
|
|
5008
5359
|
},
|
|
@@ -5508,6 +5859,54 @@
|
|
|
5508
5859
|
"x-stability": "Stable"
|
|
5509
5860
|
}
|
|
5510
5861
|
},
|
|
5862
|
+
"/property/{id}/property": {
|
|
5863
|
+
"get": {
|
|
5864
|
+
"tags": [
|
|
5865
|
+
"Property"
|
|
5866
|
+
],
|
|
5867
|
+
"summary": "Get a specific property",
|
|
5868
|
+
"description": "Requires public access key. <br>",
|
|
5869
|
+
"operationId": "87bd73ddaf3749bce7cbf5aa28e921e2",
|
|
5870
|
+
"parameters": [
|
|
5871
|
+
{
|
|
5872
|
+
"name": "id",
|
|
5873
|
+
"in": "path",
|
|
5874
|
+
"description": "Property id",
|
|
5875
|
+
"required": true,
|
|
5876
|
+
"schema": {
|
|
5877
|
+
"$ref": "#/components/schemas/PropertyId"
|
|
5878
|
+
}
|
|
5879
|
+
},
|
|
5880
|
+
{
|
|
5881
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
5882
|
+
},
|
|
5883
|
+
{
|
|
5884
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
5885
|
+
},
|
|
5886
|
+
{
|
|
5887
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
5888
|
+
}
|
|
5889
|
+
],
|
|
5890
|
+
"responses": {
|
|
5891
|
+
"200": {
|
|
5892
|
+
"description": "Successful operation",
|
|
5893
|
+
"content": {
|
|
5894
|
+
"application/json": {
|
|
5895
|
+
"schema": {
|
|
5896
|
+
"$ref": "#/components/schemas/UserPropertyResponse"
|
|
5897
|
+
}
|
|
5898
|
+
}
|
|
5899
|
+
}
|
|
5900
|
+
}
|
|
5901
|
+
},
|
|
5902
|
+
"security": [
|
|
5903
|
+
{
|
|
5904
|
+
"api_key": []
|
|
5905
|
+
}
|
|
5906
|
+
],
|
|
5907
|
+
"x-stability": "Unstable"
|
|
5908
|
+
}
|
|
5909
|
+
},
|
|
5511
5910
|
"/torn/attacklog": {
|
|
5512
5911
|
"get": {
|
|
5513
5912
|
"tags": [
|
|
@@ -6185,6 +6584,45 @@
|
|
|
6185
6584
|
"x-stability": "Stable"
|
|
6186
6585
|
}
|
|
6187
6586
|
},
|
|
6587
|
+
"/torn/properties": {
|
|
6588
|
+
"get": {
|
|
6589
|
+
"tags": [
|
|
6590
|
+
"Torn"
|
|
6591
|
+
],
|
|
6592
|
+
"summary": "Get properties details",
|
|
6593
|
+
"description": "Requires public access key. <br>",
|
|
6594
|
+
"operationId": "c44f572f4672071280a28e6f8217c3b6",
|
|
6595
|
+
"parameters": [
|
|
6596
|
+
{
|
|
6597
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
6598
|
+
},
|
|
6599
|
+
{
|
|
6600
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
6601
|
+
},
|
|
6602
|
+
{
|
|
6603
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
6604
|
+
}
|
|
6605
|
+
],
|
|
6606
|
+
"responses": {
|
|
6607
|
+
"200": {
|
|
6608
|
+
"description": "Successful operation",
|
|
6609
|
+
"content": {
|
|
6610
|
+
"application/json": {
|
|
6611
|
+
"schema": {
|
|
6612
|
+
"$ref": "#/components/schemas/TornProperties"
|
|
6613
|
+
}
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6616
|
+
}
|
|
6617
|
+
},
|
|
6618
|
+
"security": [
|
|
6619
|
+
{
|
|
6620
|
+
"api_key": []
|
|
6621
|
+
}
|
|
6622
|
+
],
|
|
6623
|
+
"x-stability": "Unstable"
|
|
6624
|
+
}
|
|
6625
|
+
},
|
|
6188
6626
|
"/torn/{crimeId}/subcrimes": {
|
|
6189
6627
|
"get": {
|
|
6190
6628
|
"tags": [
|
|
@@ -6508,6 +6946,9 @@
|
|
|
6508
6946
|
{
|
|
6509
6947
|
"$ref": "#/components/schemas/TornItemAmmoResponse"
|
|
6510
6948
|
},
|
|
6949
|
+
{
|
|
6950
|
+
"$ref": "#/components/schemas/TornProperties"
|
|
6951
|
+
},
|
|
6511
6952
|
{
|
|
6512
6953
|
"$ref": "#/components/schemas/TornFactionTreeResponse"
|
|
6513
6954
|
},
|
|
@@ -10734,6 +11175,7 @@
|
|
|
10734
11175
|
"gymtrains",
|
|
10735
11176
|
"gymstrength",
|
|
10736
11177
|
"gymspeed",
|
|
11178
|
+
"gymenergy",
|
|
10737
11179
|
"gymdefense",
|
|
10738
11180
|
"gymdexterity",
|
|
10739
11181
|
"candyused",
|
|
@@ -11220,6 +11662,14 @@
|
|
|
11220
11662
|
"type": "integer",
|
|
11221
11663
|
"format": "int32"
|
|
11222
11664
|
},
|
|
11665
|
+
"PropertyTypeId": {
|
|
11666
|
+
"type": "integer",
|
|
11667
|
+
"format": "int32"
|
|
11668
|
+
},
|
|
11669
|
+
"PropertyId": {
|
|
11670
|
+
"type": "integer",
|
|
11671
|
+
"format": "int64"
|
|
11672
|
+
},
|
|
11223
11673
|
"DirtyBombId": {
|
|
11224
11674
|
"type": "integer",
|
|
11225
11675
|
"format": "int32"
|
|
@@ -11445,6 +11895,37 @@
|
|
|
11445
11895
|
"db"
|
|
11446
11896
|
]
|
|
11447
11897
|
},
|
|
11898
|
+
"PropertyModificationEnum": {
|
|
11899
|
+
"type": "string",
|
|
11900
|
+
"enum": [
|
|
11901
|
+
"Hot Tub",
|
|
11902
|
+
"Sauna",
|
|
11903
|
+
"Open Bar",
|
|
11904
|
+
"Small Pool",
|
|
11905
|
+
"Medium Pool",
|
|
11906
|
+
"Large Pool",
|
|
11907
|
+
"Small Vault",
|
|
11908
|
+
"Medium Vault",
|
|
11909
|
+
"Large Vault",
|
|
11910
|
+
"Extra Large Vault",
|
|
11911
|
+
"Medical Facility",
|
|
11912
|
+
"Advanced Shooting Range",
|
|
11913
|
+
"Airstrip",
|
|
11914
|
+
"Private Yacht",
|
|
11915
|
+
"Sufficient Interior Modification",
|
|
11916
|
+
"Superior Interior Modification"
|
|
11917
|
+
]
|
|
11918
|
+
},
|
|
11919
|
+
"PropertyStaffEnum": {
|
|
11920
|
+
"type": "string",
|
|
11921
|
+
"enum": [
|
|
11922
|
+
"Maid",
|
|
11923
|
+
"Guard",
|
|
11924
|
+
"Doctor",
|
|
11925
|
+
"Pilot",
|
|
11926
|
+
"Butler"
|
|
11927
|
+
]
|
|
11928
|
+
},
|
|
11448
11929
|
"FactionCrimeStatusEnum": {
|
|
11449
11930
|
"type": "string",
|
|
11450
11931
|
"enum": [
|
|
@@ -12608,98 +13089,407 @@
|
|
|
12608
13089
|
]
|
|
12609
13090
|
}
|
|
12610
13091
|
},
|
|
12611
|
-
"type": "object"
|
|
12612
|
-
}
|
|
13092
|
+
"type": "object"
|
|
13093
|
+
}
|
|
13094
|
+
}
|
|
13095
|
+
},
|
|
13096
|
+
"type": "object"
|
|
13097
|
+
},
|
|
13098
|
+
"ReportReport": {
|
|
13099
|
+
"required": [
|
|
13100
|
+
"report"
|
|
13101
|
+
],
|
|
13102
|
+
"properties": {
|
|
13103
|
+
"report": {
|
|
13104
|
+
"oneOf": [
|
|
13105
|
+
{
|
|
13106
|
+
"$ref": "#/components/schemas/ReportMoney"
|
|
13107
|
+
},
|
|
13108
|
+
{
|
|
13109
|
+
"$ref": "#/components/schemas/ReportStats"
|
|
13110
|
+
},
|
|
13111
|
+
{
|
|
13112
|
+
"$ref": "#/components/schemas/ReportMostWanted"
|
|
13113
|
+
},
|
|
13114
|
+
{
|
|
13115
|
+
"$ref": "#/components/schemas/ReportHistory"
|
|
13116
|
+
},
|
|
13117
|
+
{
|
|
13118
|
+
"$ref": "#/components/schemas/ReportFriendOrFoe"
|
|
13119
|
+
},
|
|
13120
|
+
{
|
|
13121
|
+
"$ref": "#/components/schemas/ReportCompanyFinancials"
|
|
13122
|
+
},
|
|
13123
|
+
{
|
|
13124
|
+
"$ref": "#/components/schemas/ReportTrueLevel"
|
|
13125
|
+
},
|
|
13126
|
+
{
|
|
13127
|
+
"$ref": "#/components/schemas/ReportStockAnalysis"
|
|
13128
|
+
},
|
|
13129
|
+
{
|
|
13130
|
+
"$ref": "#/components/schemas/ReportAnonymousBounties"
|
|
13131
|
+
},
|
|
13132
|
+
{
|
|
13133
|
+
"$ref": "#/components/schemas/ReportInvestment"
|
|
13134
|
+
}
|
|
13135
|
+
]
|
|
13136
|
+
}
|
|
13137
|
+
},
|
|
13138
|
+
"type": "object"
|
|
13139
|
+
},
|
|
13140
|
+
"Report": {
|
|
13141
|
+
"allOf": [
|
|
13142
|
+
{
|
|
13143
|
+
"$ref": "#/components/schemas/ReportBase"
|
|
13144
|
+
},
|
|
13145
|
+
{
|
|
13146
|
+
"$ref": "#/components/schemas/ReportReport"
|
|
13147
|
+
}
|
|
13148
|
+
]
|
|
13149
|
+
},
|
|
13150
|
+
"ReportsResponse": {
|
|
13151
|
+
"required": [
|
|
13152
|
+
"reports",
|
|
13153
|
+
"_metadata"
|
|
13154
|
+
],
|
|
13155
|
+
"properties": {
|
|
13156
|
+
"reports": {
|
|
13157
|
+
"type": "array",
|
|
13158
|
+
"items": {
|
|
13159
|
+
"$ref": "#/components/schemas/Report"
|
|
13160
|
+
}
|
|
13161
|
+
},
|
|
13162
|
+
"_metadata": {
|
|
13163
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
13164
|
+
}
|
|
13165
|
+
},
|
|
13166
|
+
"type": "object"
|
|
13167
|
+
},
|
|
13168
|
+
"SelectionCategoryEnum": {
|
|
13169
|
+
"oneOf": [
|
|
13170
|
+
{
|
|
13171
|
+
"$ref": "#/components/schemas/ReportTypeEnum"
|
|
13172
|
+
},
|
|
13173
|
+
{
|
|
13174
|
+
"$ref": "#/components/schemas/UserListEnum"
|
|
13175
|
+
},
|
|
13176
|
+
{
|
|
13177
|
+
"$ref": "#/components/schemas/PersonalStatsCategoryEnum"
|
|
13178
|
+
},
|
|
13179
|
+
{
|
|
13180
|
+
"$ref": "#/components/schemas/RacingRaceTypeEnum"
|
|
13181
|
+
}
|
|
13182
|
+
]
|
|
13183
|
+
},
|
|
13184
|
+
"BasicUser": {
|
|
13185
|
+
"required": [
|
|
13186
|
+
"id",
|
|
13187
|
+
"name"
|
|
13188
|
+
],
|
|
13189
|
+
"properties": {
|
|
13190
|
+
"id": {
|
|
13191
|
+
"$ref": "#/components/schemas/UserId"
|
|
13192
|
+
},
|
|
13193
|
+
"name": {
|
|
13194
|
+
"type": "string"
|
|
13195
|
+
}
|
|
13196
|
+
},
|
|
13197
|
+
"type": "object"
|
|
13198
|
+
},
|
|
13199
|
+
"UserPropertyBasicDetails": {
|
|
13200
|
+
"required": [
|
|
13201
|
+
"id",
|
|
13202
|
+
"owner",
|
|
13203
|
+
"property",
|
|
13204
|
+
"happy",
|
|
13205
|
+
"upkeep",
|
|
13206
|
+
"market_price",
|
|
13207
|
+
"modifications",
|
|
13208
|
+
"staff"
|
|
13209
|
+
],
|
|
13210
|
+
"properties": {
|
|
13211
|
+
"id": {
|
|
13212
|
+
"$ref": "#/components/schemas/PropertyId"
|
|
13213
|
+
},
|
|
13214
|
+
"owner": {
|
|
13215
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13216
|
+
},
|
|
13217
|
+
"property": {
|
|
13218
|
+
"$ref": "#/components/schemas/BasicProperty"
|
|
13219
|
+
},
|
|
13220
|
+
"happy": {
|
|
13221
|
+
"type": "integer",
|
|
13222
|
+
"format": "int32"
|
|
13223
|
+
},
|
|
13224
|
+
"upkeep": {
|
|
13225
|
+
"required": [
|
|
13226
|
+
"property",
|
|
13227
|
+
"staff"
|
|
13228
|
+
],
|
|
13229
|
+
"properties": {
|
|
13230
|
+
"property": {
|
|
13231
|
+
"type": "integer",
|
|
13232
|
+
"format": "int32"
|
|
13233
|
+
},
|
|
13234
|
+
"staff": {
|
|
13235
|
+
"type": "integer",
|
|
13236
|
+
"format": "int32"
|
|
13237
|
+
}
|
|
13238
|
+
},
|
|
13239
|
+
"type": "object"
|
|
13240
|
+
},
|
|
13241
|
+
"market_price": {
|
|
13242
|
+
"type": "integer",
|
|
13243
|
+
"format": "int64"
|
|
13244
|
+
},
|
|
13245
|
+
"modifications": {
|
|
13246
|
+
"type": "array",
|
|
13247
|
+
"items": {
|
|
13248
|
+
"$ref": "#/components/schemas/PropertyModificationEnum"
|
|
13249
|
+
}
|
|
13250
|
+
},
|
|
13251
|
+
"staff": {
|
|
13252
|
+
"type": "array",
|
|
13253
|
+
"items": {
|
|
13254
|
+
"required": [
|
|
13255
|
+
"type",
|
|
13256
|
+
"amount"
|
|
13257
|
+
],
|
|
13258
|
+
"properties": {
|
|
13259
|
+
"type": {
|
|
13260
|
+
"$ref": "#/components/schemas/PropertyStaffEnum"
|
|
13261
|
+
},
|
|
13262
|
+
"amount": {
|
|
13263
|
+
"type": "integer",
|
|
13264
|
+
"format": "int32"
|
|
13265
|
+
}
|
|
13266
|
+
},
|
|
13267
|
+
"type": "object"
|
|
13268
|
+
}
|
|
13269
|
+
}
|
|
13270
|
+
},
|
|
13271
|
+
"type": "object"
|
|
13272
|
+
},
|
|
13273
|
+
"UserPropertyDetailsExtended": {
|
|
13274
|
+
"allOf": [
|
|
13275
|
+
{
|
|
13276
|
+
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
|
13277
|
+
},
|
|
13278
|
+
{
|
|
13279
|
+
"required": [
|
|
13280
|
+
"status",
|
|
13281
|
+
"used_by"
|
|
13282
|
+
],
|
|
13283
|
+
"properties": {
|
|
13284
|
+
"used_by": {
|
|
13285
|
+
"type": "array",
|
|
13286
|
+
"items": {
|
|
13287
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13288
|
+
}
|
|
13289
|
+
},
|
|
13290
|
+
"status": {
|
|
13291
|
+
"type": "string",
|
|
13292
|
+
"enum": [
|
|
13293
|
+
"none",
|
|
13294
|
+
"in_use"
|
|
13295
|
+
]
|
|
13296
|
+
}
|
|
13297
|
+
},
|
|
13298
|
+
"type": "object"
|
|
13299
|
+
}
|
|
13300
|
+
]
|
|
13301
|
+
},
|
|
13302
|
+
"UserPropertyDetails": {
|
|
13303
|
+
"allOf": [
|
|
13304
|
+
{
|
|
13305
|
+
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
|
13306
|
+
},
|
|
13307
|
+
{
|
|
13308
|
+
"required": [
|
|
13309
|
+
"used_by"
|
|
13310
|
+
],
|
|
13311
|
+
"properties": {
|
|
13312
|
+
"used_by": {
|
|
13313
|
+
"type": "array",
|
|
13314
|
+
"items": {
|
|
13315
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13316
|
+
}
|
|
13317
|
+
}
|
|
13318
|
+
},
|
|
13319
|
+
"type": "object"
|
|
13320
|
+
}
|
|
13321
|
+
]
|
|
13322
|
+
},
|
|
13323
|
+
"UserPropertyDetailsExtendedRented": {
|
|
13324
|
+
"allOf": [
|
|
13325
|
+
{
|
|
13326
|
+
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
|
13327
|
+
},
|
|
13328
|
+
{
|
|
13329
|
+
"required": [
|
|
13330
|
+
"status",
|
|
13331
|
+
"used_by",
|
|
13332
|
+
"cost",
|
|
13333
|
+
"cost_per_day",
|
|
13334
|
+
"rental_period",
|
|
13335
|
+
"rental_period_remaining"
|
|
13336
|
+
],
|
|
13337
|
+
"properties": {
|
|
13338
|
+
"used_by": {
|
|
13339
|
+
"type": "array",
|
|
13340
|
+
"items": {
|
|
13341
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13342
|
+
}
|
|
13343
|
+
},
|
|
13344
|
+
"status": {
|
|
13345
|
+
"type": "string",
|
|
13346
|
+
"enum": [
|
|
13347
|
+
"rented"
|
|
13348
|
+
]
|
|
13349
|
+
},
|
|
13350
|
+
"cost": {
|
|
13351
|
+
"type": "integer",
|
|
13352
|
+
"format": "int64"
|
|
13353
|
+
},
|
|
13354
|
+
"cost_per_day": {
|
|
13355
|
+
"type": "integer",
|
|
13356
|
+
"format": "int64"
|
|
13357
|
+
},
|
|
13358
|
+
"rental_period": {
|
|
13359
|
+
"type": "integer",
|
|
13360
|
+
"format": "int32"
|
|
13361
|
+
},
|
|
13362
|
+
"rental_period_remaining": {
|
|
13363
|
+
"type": "integer",
|
|
13364
|
+
"format": "int32"
|
|
13365
|
+
}
|
|
13366
|
+
},
|
|
13367
|
+
"type": "object"
|
|
13368
|
+
}
|
|
13369
|
+
]
|
|
13370
|
+
},
|
|
13371
|
+
"UserPropertyDetailsExtendedForRent": {
|
|
13372
|
+
"allOf": [
|
|
13373
|
+
{
|
|
13374
|
+
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
|
13375
|
+
},
|
|
13376
|
+
{
|
|
13377
|
+
"required": [
|
|
13378
|
+
"status",
|
|
13379
|
+
"used_by",
|
|
13380
|
+
"cost",
|
|
13381
|
+
"cost_per_day",
|
|
13382
|
+
"rental_period"
|
|
13383
|
+
],
|
|
13384
|
+
"properties": {
|
|
13385
|
+
"used_by": {
|
|
13386
|
+
"type": "array",
|
|
13387
|
+
"items": {
|
|
13388
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13389
|
+
}
|
|
13390
|
+
},
|
|
13391
|
+
"status": {
|
|
13392
|
+
"type": "string",
|
|
13393
|
+
"enum": [
|
|
13394
|
+
"for_rent"
|
|
13395
|
+
]
|
|
13396
|
+
},
|
|
13397
|
+
"cost": {
|
|
13398
|
+
"type": "integer",
|
|
13399
|
+
"format": "int64"
|
|
13400
|
+
},
|
|
13401
|
+
"cost_per_day": {
|
|
13402
|
+
"type": "integer",
|
|
13403
|
+
"format": "int64"
|
|
13404
|
+
},
|
|
13405
|
+
"rental_period": {
|
|
13406
|
+
"type": "integer",
|
|
13407
|
+
"format": "int32"
|
|
13408
|
+
},
|
|
13409
|
+
"renter_asked": {
|
|
13410
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13411
|
+
}
|
|
13412
|
+
},
|
|
13413
|
+
"type": "object"
|
|
13414
|
+
}
|
|
13415
|
+
]
|
|
13416
|
+
},
|
|
13417
|
+
"UserPropertyDetailsExtendedForSale": {
|
|
13418
|
+
"allOf": [
|
|
13419
|
+
{
|
|
13420
|
+
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
|
13421
|
+
},
|
|
13422
|
+
{
|
|
13423
|
+
"required": [
|
|
13424
|
+
"status",
|
|
13425
|
+
"used_by",
|
|
13426
|
+
"cost"
|
|
13427
|
+
],
|
|
13428
|
+
"properties": {
|
|
13429
|
+
"used_by": {
|
|
13430
|
+
"type": "array",
|
|
13431
|
+
"items": {
|
|
13432
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13433
|
+
}
|
|
13434
|
+
},
|
|
13435
|
+
"status": {
|
|
13436
|
+
"type": "string",
|
|
13437
|
+
"enum": [
|
|
13438
|
+
"for_sale"
|
|
13439
|
+
]
|
|
13440
|
+
},
|
|
13441
|
+
"cost": {
|
|
13442
|
+
"type": "integer",
|
|
13443
|
+
"format": "int64"
|
|
13444
|
+
}
|
|
13445
|
+
},
|
|
13446
|
+
"type": "object"
|
|
12613
13447
|
}
|
|
12614
|
-
|
|
12615
|
-
"type": "object"
|
|
13448
|
+
]
|
|
12616
13449
|
},
|
|
12617
|
-
"
|
|
13450
|
+
"UserPropertiesResponse": {
|
|
12618
13451
|
"required": [
|
|
12619
|
-
"
|
|
13452
|
+
"properties",
|
|
13453
|
+
"_metadata"
|
|
12620
13454
|
],
|
|
12621
13455
|
"properties": {
|
|
12622
|
-
"
|
|
13456
|
+
"properties": {
|
|
13457
|
+
"type": "object",
|
|
12623
13458
|
"oneOf": [
|
|
12624
13459
|
{
|
|
12625
|
-
"$ref": "#/components/schemas/
|
|
12626
|
-
},
|
|
12627
|
-
{
|
|
12628
|
-
"$ref": "#/components/schemas/ReportStats"
|
|
12629
|
-
},
|
|
12630
|
-
{
|
|
12631
|
-
"$ref": "#/components/schemas/ReportMostWanted"
|
|
12632
|
-
},
|
|
12633
|
-
{
|
|
12634
|
-
"$ref": "#/components/schemas/ReportHistory"
|
|
12635
|
-
},
|
|
12636
|
-
{
|
|
12637
|
-
"$ref": "#/components/schemas/ReportFriendOrFoe"
|
|
12638
|
-
},
|
|
12639
|
-
{
|
|
12640
|
-
"$ref": "#/components/schemas/ReportCompanyFinancials"
|
|
13460
|
+
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
|
12641
13461
|
},
|
|
12642
13462
|
{
|
|
12643
|
-
"$ref": "#/components/schemas/
|
|
13463
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtended"
|
|
12644
13464
|
},
|
|
12645
13465
|
{
|
|
12646
|
-
"$ref": "#/components/schemas/
|
|
13466
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtendedRented"
|
|
12647
13467
|
},
|
|
12648
13468
|
{
|
|
12649
|
-
"$ref": "#/components/schemas/
|
|
13469
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtendedForRent"
|
|
12650
13470
|
},
|
|
12651
13471
|
{
|
|
12652
|
-
"$ref": "#/components/schemas/
|
|
13472
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtendedForSale"
|
|
12653
13473
|
}
|
|
12654
13474
|
]
|
|
13475
|
+
},
|
|
13476
|
+
"_metadata": {
|
|
13477
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
12655
13478
|
}
|
|
12656
13479
|
},
|
|
12657
13480
|
"type": "object"
|
|
12658
13481
|
},
|
|
12659
|
-
"
|
|
12660
|
-
"allOf": [
|
|
12661
|
-
{
|
|
12662
|
-
"$ref": "#/components/schemas/ReportBase"
|
|
12663
|
-
},
|
|
12664
|
-
{
|
|
12665
|
-
"$ref": "#/components/schemas/ReportReport"
|
|
12666
|
-
}
|
|
12667
|
-
]
|
|
12668
|
-
},
|
|
12669
|
-
"ReportsResponse": {
|
|
13482
|
+
"UserPropertyResponse": {
|
|
12670
13483
|
"required": [
|
|
12671
|
-
"
|
|
12672
|
-
"_metadata"
|
|
13484
|
+
"property"
|
|
12673
13485
|
],
|
|
12674
13486
|
"properties": {
|
|
12675
|
-
"
|
|
12676
|
-
"
|
|
12677
|
-
"items": {
|
|
12678
|
-
"$ref": "#/components/schemas/Report"
|
|
12679
|
-
}
|
|
12680
|
-
},
|
|
12681
|
-
"_metadata": {
|
|
12682
|
-
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
13487
|
+
"property": {
|
|
13488
|
+
"$ref": "#/components/schemas/UserPropertyDetails"
|
|
12683
13489
|
}
|
|
12684
13490
|
},
|
|
12685
13491
|
"type": "object"
|
|
12686
13492
|
},
|
|
12687
|
-
"SelectionCategoryEnum": {
|
|
12688
|
-
"oneOf": [
|
|
12689
|
-
{
|
|
12690
|
-
"$ref": "#/components/schemas/ReportTypeEnum"
|
|
12691
|
-
},
|
|
12692
|
-
{
|
|
12693
|
-
"$ref": "#/components/schemas/UserListEnum"
|
|
12694
|
-
},
|
|
12695
|
-
{
|
|
12696
|
-
"$ref": "#/components/schemas/PersonalStatsCategoryEnum"
|
|
12697
|
-
},
|
|
12698
|
-
{
|
|
12699
|
-
"$ref": "#/components/schemas/RacingRaceTypeEnum"
|
|
12700
|
-
}
|
|
12701
|
-
]
|
|
12702
|
-
},
|
|
12703
13493
|
"UserCurrentEducation": {
|
|
12704
13494
|
"required": [
|
|
12705
13495
|
"id",
|
|
@@ -20977,6 +21767,159 @@
|
|
|
20977
21767
|
}
|
|
20978
21768
|
]
|
|
20979
21769
|
},
|
|
21770
|
+
"BasicProperty": {
|
|
21771
|
+
"required": [
|
|
21772
|
+
"id",
|
|
21773
|
+
"name"
|
|
21774
|
+
],
|
|
21775
|
+
"properties": {
|
|
21776
|
+
"id": {
|
|
21777
|
+
"$ref": "#/components/schemas/PropertyTypeId"
|
|
21778
|
+
},
|
|
21779
|
+
"name": {
|
|
21780
|
+
"type": "string"
|
|
21781
|
+
}
|
|
21782
|
+
},
|
|
21783
|
+
"type": "object"
|
|
21784
|
+
},
|
|
21785
|
+
"MarketRentalDetails": {
|
|
21786
|
+
"required": [
|
|
21787
|
+
"listings",
|
|
21788
|
+
"property"
|
|
21789
|
+
],
|
|
21790
|
+
"properties": {
|
|
21791
|
+
"listings": {
|
|
21792
|
+
"type": "array",
|
|
21793
|
+
"items": {
|
|
21794
|
+
"required": [
|
|
21795
|
+
"happy",
|
|
21796
|
+
"cost",
|
|
21797
|
+
"cost_per_day",
|
|
21798
|
+
"rental_period",
|
|
21799
|
+
"market_price",
|
|
21800
|
+
"upkeep",
|
|
21801
|
+
"modifications"
|
|
21802
|
+
],
|
|
21803
|
+
"properties": {
|
|
21804
|
+
"happy": {
|
|
21805
|
+
"type": "integer",
|
|
21806
|
+
"format": "int32"
|
|
21807
|
+
},
|
|
21808
|
+
"cost": {
|
|
21809
|
+
"type": "integer",
|
|
21810
|
+
"format": "int64"
|
|
21811
|
+
},
|
|
21812
|
+
"cost_per_day": {
|
|
21813
|
+
"type": "integer",
|
|
21814
|
+
"format": "int64"
|
|
21815
|
+
},
|
|
21816
|
+
"rental_period": {
|
|
21817
|
+
"type": "integer",
|
|
21818
|
+
"format": "int32"
|
|
21819
|
+
},
|
|
21820
|
+
"market_price": {
|
|
21821
|
+
"type": "integer",
|
|
21822
|
+
"format": "int64"
|
|
21823
|
+
},
|
|
21824
|
+
"upkeep": {
|
|
21825
|
+
"type": "integer",
|
|
21826
|
+
"format": "int32"
|
|
21827
|
+
},
|
|
21828
|
+
"modifications": {
|
|
21829
|
+
"type": "array",
|
|
21830
|
+
"items": {
|
|
21831
|
+
"$ref": "#/components/schemas/PropertyModificationEnum"
|
|
21832
|
+
}
|
|
21833
|
+
}
|
|
21834
|
+
},
|
|
21835
|
+
"type": "object"
|
|
21836
|
+
}
|
|
21837
|
+
},
|
|
21838
|
+
"property": {
|
|
21839
|
+
"$ref": "#/components/schemas/BasicProperty"
|
|
21840
|
+
}
|
|
21841
|
+
},
|
|
21842
|
+
"type": "object"
|
|
21843
|
+
},
|
|
21844
|
+
"MarketRentalsResponse": {
|
|
21845
|
+
"required": [
|
|
21846
|
+
"properties",
|
|
21847
|
+
"_metadata"
|
|
21848
|
+
],
|
|
21849
|
+
"properties": {
|
|
21850
|
+
"properties": {
|
|
21851
|
+
"$ref": "#/components/schemas/MarketRentalDetails"
|
|
21852
|
+
},
|
|
21853
|
+
"_metadata": {
|
|
21854
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
21855
|
+
}
|
|
21856
|
+
},
|
|
21857
|
+
"type": "object"
|
|
21858
|
+
},
|
|
21859
|
+
"MarketPropertyDetails": {
|
|
21860
|
+
"required": [
|
|
21861
|
+
"listings",
|
|
21862
|
+
"property"
|
|
21863
|
+
],
|
|
21864
|
+
"properties": {
|
|
21865
|
+
"listings": {
|
|
21866
|
+
"type": "array",
|
|
21867
|
+
"items": {
|
|
21868
|
+
"required": [
|
|
21869
|
+
"happy",
|
|
21870
|
+
"cost",
|
|
21871
|
+
"market_price",
|
|
21872
|
+
"upkeep",
|
|
21873
|
+
"modifications"
|
|
21874
|
+
],
|
|
21875
|
+
"properties": {
|
|
21876
|
+
"happy": {
|
|
21877
|
+
"type": "integer",
|
|
21878
|
+
"format": "int32"
|
|
21879
|
+
},
|
|
21880
|
+
"cost": {
|
|
21881
|
+
"type": "integer",
|
|
21882
|
+
"format": "int64"
|
|
21883
|
+
},
|
|
21884
|
+
"market_price": {
|
|
21885
|
+
"type": "integer",
|
|
21886
|
+
"format": "int64"
|
|
21887
|
+
},
|
|
21888
|
+
"upkeep": {
|
|
21889
|
+
"type": "integer",
|
|
21890
|
+
"format": "int32"
|
|
21891
|
+
},
|
|
21892
|
+
"modifications": {
|
|
21893
|
+
"type": "array",
|
|
21894
|
+
"items": {
|
|
21895
|
+
"$ref": "#/components/schemas/PropertyModificationEnum"
|
|
21896
|
+
}
|
|
21897
|
+
}
|
|
21898
|
+
},
|
|
21899
|
+
"type": "object"
|
|
21900
|
+
}
|
|
21901
|
+
},
|
|
21902
|
+
"property": {
|
|
21903
|
+
"$ref": "#/components/schemas/BasicProperty"
|
|
21904
|
+
}
|
|
21905
|
+
},
|
|
21906
|
+
"type": "object"
|
|
21907
|
+
},
|
|
21908
|
+
"MarketPropertiesResponse": {
|
|
21909
|
+
"required": [
|
|
21910
|
+
"properties",
|
|
21911
|
+
"_metadata"
|
|
21912
|
+
],
|
|
21913
|
+
"properties": {
|
|
21914
|
+
"properties": {
|
|
21915
|
+
"$ref": "#/components/schemas/MarketPropertyDetails"
|
|
21916
|
+
},
|
|
21917
|
+
"_metadata": {
|
|
21918
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
21919
|
+
}
|
|
21920
|
+
},
|
|
21921
|
+
"type": "object"
|
|
21922
|
+
},
|
|
20980
21923
|
"BazaarWeekly": {
|
|
20981
21924
|
"required": [
|
|
20982
21925
|
"busiest",
|
|
@@ -22067,6 +23010,58 @@
|
|
|
22067
23010
|
},
|
|
22068
23011
|
"type": "object"
|
|
22069
23012
|
},
|
|
23013
|
+
"TornProperties": {
|
|
23014
|
+
"properties": {
|
|
23015
|
+
"properties": {
|
|
23016
|
+
"type": "array",
|
|
23017
|
+
"items": {
|
|
23018
|
+
"required": [
|
|
23019
|
+
"id",
|
|
23020
|
+
"name",
|
|
23021
|
+
"cost",
|
|
23022
|
+
"happy",
|
|
23023
|
+
"upkeep",
|
|
23024
|
+
"modifications",
|
|
23025
|
+
"staff"
|
|
23026
|
+
],
|
|
23027
|
+
"properties": {
|
|
23028
|
+
"id": {
|
|
23029
|
+
"$ref": "#/components/schemas/PropertyTypeId"
|
|
23030
|
+
},
|
|
23031
|
+
"name": {
|
|
23032
|
+
"type": "string"
|
|
23033
|
+
},
|
|
23034
|
+
"cost": {
|
|
23035
|
+
"type": "integer",
|
|
23036
|
+
"format": "int32"
|
|
23037
|
+
},
|
|
23038
|
+
"happy": {
|
|
23039
|
+
"type": "integer",
|
|
23040
|
+
"format": "int32"
|
|
23041
|
+
},
|
|
23042
|
+
"upkeep": {
|
|
23043
|
+
"type": "integer",
|
|
23044
|
+
"format": "int32"
|
|
23045
|
+
},
|
|
23046
|
+
"modifications": {
|
|
23047
|
+
"type": "array",
|
|
23048
|
+
"items": {
|
|
23049
|
+
"$ref": "#/components/schemas/PropertyModificationEnum"
|
|
23050
|
+
}
|
|
23051
|
+
},
|
|
23052
|
+
"staff": {
|
|
23053
|
+
"type": "array",
|
|
23054
|
+
"items": {
|
|
23055
|
+
"$ref": "#/components/schemas/PropertyStaffEnum"
|
|
23056
|
+
}
|
|
23057
|
+
}
|
|
23058
|
+
},
|
|
23059
|
+
"type": "object"
|
|
23060
|
+
}
|
|
23061
|
+
}
|
|
23062
|
+
},
|
|
23063
|
+
"type": "object"
|
|
23064
|
+
},
|
|
22070
23065
|
"TornEducationRewards": {
|
|
22071
23066
|
"required": [
|
|
22072
23067
|
"working_stats",
|
|
@@ -23487,7 +24482,7 @@
|
|
|
23487
24482
|
"TornSelectionName": {
|
|
23488
24483
|
"oneOf": [
|
|
23489
24484
|
{
|
|
23490
|
-
"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','
|
|
24485
|
+
"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'.",
|
|
23491
24486
|
"type": "string",
|
|
23492
24487
|
"enum": [
|
|
23493
24488
|
"attacklog",
|
|
@@ -23504,6 +24499,7 @@
|
|
|
23504
24499
|
"logcategories",
|
|
23505
24500
|
"logtypes",
|
|
23506
24501
|
"lookup",
|
|
24502
|
+
"properties",
|
|
23507
24503
|
"subcrimes",
|
|
23508
24504
|
"territory",
|
|
23509
24505
|
"timestamp",
|
|
@@ -23520,7 +24516,6 @@
|
|
|
23520
24516
|
"organisedcrimes",
|
|
23521
24517
|
"pawnshop",
|
|
23522
24518
|
"pokertables",
|
|
23523
|
-
"properties",
|
|
23524
24519
|
"rockpaperscissors",
|
|
23525
24520
|
"searchforcash",
|
|
23526
24521
|
"shoplifting",
|
|
@@ -23680,6 +24675,18 @@
|
|
|
23680
24675
|
"minimum": 1
|
|
23681
24676
|
}
|
|
23682
24677
|
},
|
|
24678
|
+
"ApiLimit50Default20": {
|
|
24679
|
+
"name": "limit",
|
|
24680
|
+
"in": "query",
|
|
24681
|
+
"required": false,
|
|
24682
|
+
"schema": {
|
|
24683
|
+
"type": "integer",
|
|
24684
|
+
"format": "int32",
|
|
24685
|
+
"default": 20,
|
|
24686
|
+
"maximum": 50,
|
|
24687
|
+
"minimum": 1
|
|
24688
|
+
}
|
|
24689
|
+
},
|
|
23683
24690
|
"ApiLimit100": {
|
|
23684
24691
|
"name": "limit",
|
|
23685
24692
|
"in": "query",
|
|
@@ -23902,6 +24909,10 @@
|
|
|
23902
24909
|
"name": "Forum",
|
|
23903
24910
|
"description": "Part of Forum section"
|
|
23904
24911
|
},
|
|
24912
|
+
{
|
|
24913
|
+
"name": "Property",
|
|
24914
|
+
"description": "Part of Property section"
|
|
24915
|
+
},
|
|
23905
24916
|
{
|
|
23906
24917
|
"name": "Key",
|
|
23907
24918
|
"description": "Part of Key section"
|