tornapi-typescript 6.8.2 → 6.10.0

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": "6.8.2"
6
+ "version": "6.10.0"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -1356,6 +1356,45 @@
1356
1356
  "x-stability": "Stable"
1357
1357
  }
1358
1358
  },
1359
+ "/user/gym": {
1360
+ "get": {
1361
+ "tags": [
1362
+ "User"
1363
+ ],
1364
+ "summary": "Get your currently active gym",
1365
+ "description": "Requires minimal access key. <br>",
1366
+ "operationId": "getMyGym",
1367
+ "parameters": [
1368
+ {
1369
+ "$ref": "#/components/parameters/ApiTimestamp"
1370
+ },
1371
+ {
1372
+ "$ref": "#/components/parameters/ApiComment"
1373
+ },
1374
+ {
1375
+ "$ref": "#/components/parameters/ApiKeyPublic"
1376
+ }
1377
+ ],
1378
+ "responses": {
1379
+ "200": {
1380
+ "description": "Successful operation",
1381
+ "content": {
1382
+ "application/json": {
1383
+ "schema": {
1384
+ "$ref": "#/components/schemas/UserGymResponse"
1385
+ }
1386
+ }
1387
+ }
1388
+ }
1389
+ },
1390
+ "security": [
1391
+ {
1392
+ "api_key": []
1393
+ }
1394
+ ],
1395
+ "x-stability": "Stable"
1396
+ }
1397
+ },
1359
1398
  "/user/hof": {
1360
1399
  "get": {
1361
1400
  "tags": [
@@ -1982,6 +2021,9 @@
1982
2021
  {
1983
2022
  "$ref": "#/components/parameters/ApiTimestamp"
1984
2023
  },
2024
+ {
2025
+ "$ref": "#/components/parameters/ApiNanostamp"
2026
+ },
1985
2027
  {
1986
2028
  "$ref": "#/components/parameters/ApiComment"
1987
2029
  },
@@ -4105,6 +4147,9 @@
4105
4147
  {
4106
4148
  "$ref": "#/components/schemas/UserBattleStatsResponse"
4107
4149
  },
4150
+ {
4151
+ "$ref": "#/components/schemas/UserGymResponse"
4152
+ },
4108
4153
  {
4109
4154
  "$ref": "#/components/schemas/UserTradeResponse"
4110
4155
  },
@@ -4914,6 +4959,45 @@
4914
4959
  "x-stability": "Stable"
4915
4960
  }
4916
4961
  },
4962
+ "/faction/dirtybombs": {
4963
+ "get": {
4964
+ "tags": [
4965
+ "Faction"
4966
+ ],
4967
+ "summary": "Get all dirty bombs",
4968
+ "description": "Requires public access key. <br>",
4969
+ "operationId": "getWarfareDirtyBombs",
4970
+ "parameters": [
4971
+ {
4972
+ "$ref": "#/components/parameters/ApiTimestamp"
4973
+ },
4974
+ {
4975
+ "$ref": "#/components/parameters/ApiComment"
4976
+ },
4977
+ {
4978
+ "$ref": "#/components/parameters/ApiKeyPublic"
4979
+ }
4980
+ ],
4981
+ "responses": {
4982
+ "200": {
4983
+ "description": "Successful operation",
4984
+ "content": {
4985
+ "application/json": {
4986
+ "schema": {
4987
+ "$ref": "#/components/schemas/FactionWarfareDirtyBombsResponse"
4988
+ }
4989
+ }
4990
+ }
4991
+ }
4992
+ },
4993
+ "security": [
4994
+ {
4995
+ "api_key": []
4996
+ }
4997
+ ],
4998
+ "x-stability": "Stable"
4999
+ }
5000
+ },
4917
5001
  "/faction/hof": {
4918
5002
  "get": {
4919
5003
  "tags": [
@@ -6193,13 +6277,229 @@
6193
6277
  "x-stability": "Stable"
6194
6278
  }
6195
6279
  },
6280
+ "/faction/warfarechains": {
6281
+ "get": {
6282
+ "tags": [
6283
+ "Faction"
6284
+ ],
6285
+ "summary": "Get all chains",
6286
+ "description": "Requires public access key. <br>By default, active chains are returned.",
6287
+ "operationId": "getWarfareChains",
6288
+ "parameters": [
6289
+ {
6290
+ "name": "cat",
6291
+ "in": "query",
6292
+ "required": true,
6293
+ "schema": {
6294
+ "type": "string",
6295
+ "enum": [
6296
+ "active",
6297
+ "complete"
6298
+ ]
6299
+ }
6300
+ },
6301
+ {
6302
+ "$ref": "#/components/parameters/ApiLimit100"
6303
+ },
6304
+ {
6305
+ "$ref": "#/components/parameters/ApiSort"
6306
+ },
6307
+ {
6308
+ "$ref": "#/components/parameters/ApiFrom"
6309
+ },
6310
+ {
6311
+ "$ref": "#/components/parameters/ApiTo"
6312
+ },
6313
+ {
6314
+ "$ref": "#/components/parameters/ApiTimestamp"
6315
+ },
6316
+ {
6317
+ "$ref": "#/components/parameters/ApiComment"
6318
+ },
6319
+ {
6320
+ "$ref": "#/components/parameters/ApiKeyPublic"
6321
+ }
6322
+ ],
6323
+ "responses": {
6324
+ "200": {
6325
+ "description": "Successful operation",
6326
+ "content": {
6327
+ "application/json": {
6328
+ "schema": {
6329
+ "$ref": "#/components/schemas/FactionWarfareChainsResponse"
6330
+ }
6331
+ }
6332
+ }
6333
+ }
6334
+ },
6335
+ "security": [
6336
+ {
6337
+ "api_key": []
6338
+ }
6339
+ ],
6340
+ "x-stability": "Stable"
6341
+ }
6342
+ },
6343
+ "/faction/warfareraids": {
6344
+ "get": {
6345
+ "tags": [
6346
+ "Faction"
6347
+ ],
6348
+ "summary": "Get all raids",
6349
+ "description": "Requires public access key. <br>",
6350
+ "operationId": "getWarfareRaids",
6351
+ "parameters": [
6352
+ {
6353
+ "$ref": "#/components/parameters/ApiLimit100"
6354
+ },
6355
+ {
6356
+ "$ref": "#/components/parameters/ApiSort"
6357
+ },
6358
+ {
6359
+ "$ref": "#/components/parameters/ApiFrom"
6360
+ },
6361
+ {
6362
+ "$ref": "#/components/parameters/ApiTo"
6363
+ },
6364
+ {
6365
+ "$ref": "#/components/parameters/ApiTimestamp"
6366
+ },
6367
+ {
6368
+ "$ref": "#/components/parameters/ApiComment"
6369
+ },
6370
+ {
6371
+ "$ref": "#/components/parameters/ApiKeyPublic"
6372
+ }
6373
+ ],
6374
+ "responses": {
6375
+ "200": {
6376
+ "description": "Successful operation",
6377
+ "content": {
6378
+ "application/json": {
6379
+ "schema": {
6380
+ "$ref": "#/components/schemas/FactionWarfareRaidsResponse"
6381
+ }
6382
+ }
6383
+ }
6384
+ }
6385
+ },
6386
+ "security": [
6387
+ {
6388
+ "api_key": []
6389
+ }
6390
+ ],
6391
+ "x-stability": "Stable"
6392
+ }
6393
+ },
6394
+ "/faction/warfareranked": {
6395
+ "get": {
6396
+ "tags": [
6397
+ "Faction"
6398
+ ],
6399
+ "summary": "Get all ranked wars",
6400
+ "description": "Requires public access key. <br>",
6401
+ "operationId": "getWarfareRankedWars",
6402
+ "parameters": [
6403
+ {
6404
+ "$ref": "#/components/parameters/ApiLimit100"
6405
+ },
6406
+ {
6407
+ "$ref": "#/components/parameters/ApiSort"
6408
+ },
6409
+ {
6410
+ "$ref": "#/components/parameters/ApiFrom"
6411
+ },
6412
+ {
6413
+ "$ref": "#/components/parameters/ApiTo"
6414
+ },
6415
+ {
6416
+ "$ref": "#/components/parameters/ApiTimestamp"
6417
+ },
6418
+ {
6419
+ "$ref": "#/components/parameters/ApiComment"
6420
+ },
6421
+ {
6422
+ "$ref": "#/components/parameters/ApiKeyPublic"
6423
+ }
6424
+ ],
6425
+ "responses": {
6426
+ "200": {
6427
+ "description": "Successful operation",
6428
+ "content": {
6429
+ "application/json": {
6430
+ "schema": {
6431
+ "$ref": "#/components/schemas/FactionWarfareRankedResponse"
6432
+ }
6433
+ }
6434
+ }
6435
+ }
6436
+ },
6437
+ "security": [
6438
+ {
6439
+ "api_key": []
6440
+ }
6441
+ ],
6442
+ "x-stability": "Stable"
6443
+ }
6444
+ },
6445
+ "/faction/warfareterritory": {
6446
+ "get": {
6447
+ "tags": [
6448
+ "Faction"
6449
+ ],
6450
+ "summary": "Get all territory wars",
6451
+ "description": "Requires public access key. <br>",
6452
+ "operationId": "getWarfareTerritoryWars",
6453
+ "parameters": [
6454
+ {
6455
+ "$ref": "#/components/parameters/ApiLimit100"
6456
+ },
6457
+ {
6458
+ "$ref": "#/components/parameters/ApiSort"
6459
+ },
6460
+ {
6461
+ "$ref": "#/components/parameters/ApiFrom"
6462
+ },
6463
+ {
6464
+ "$ref": "#/components/parameters/ApiTo"
6465
+ },
6466
+ {
6467
+ "$ref": "#/components/parameters/ApiTimestamp"
6468
+ },
6469
+ {
6470
+ "$ref": "#/components/parameters/ApiComment"
6471
+ },
6472
+ {
6473
+ "$ref": "#/components/parameters/ApiKeyPublic"
6474
+ }
6475
+ ],
6476
+ "responses": {
6477
+ "200": {
6478
+ "description": "Successful operation",
6479
+ "content": {
6480
+ "application/json": {
6481
+ "schema": {
6482
+ "$ref": "#/components/schemas/FactionWarfareTerritoryWarsResponse"
6483
+ }
6484
+ }
6485
+ }
6486
+ }
6487
+ },
6488
+ "security": [
6489
+ {
6490
+ "api_key": []
6491
+ }
6492
+ ],
6493
+ "x-stability": "Stable"
6494
+ }
6495
+ },
6196
6496
  "/faction/warfare": {
6197
6497
  "get": {
6198
6498
  "tags": [
6199
6499
  "Faction"
6200
6500
  ],
6201
6501
  "summary": "Get faction warfare",
6202
- "description": "Requires public access key. <br>The response depends on the selected category.",
6502
+ "description": "This selection is replaced by other warfare selections and 'faction' -> 'dirtybombs'.<br>This will be removed on 1st January 2027<b></b>.<br>Requires public access key. <br>The response depends on the selected category.",
6203
6503
  "operationId": "getWarfare",
6204
6504
  "parameters": [
6205
6505
  {
@@ -6244,6 +6544,7 @@
6244
6544
  }
6245
6545
  }
6246
6546
  },
6547
+ "deprecated": true,
6247
6548
  "security": [
6248
6549
  {
6249
6550
  "api_key": []
@@ -6679,6 +6980,21 @@
6679
6980
  {
6680
6981
  "$ref": "#/components/schemas/FactionLookupResponse"
6681
6982
  },
6983
+ {
6984
+ "$ref": "#/components/schemas/FactionWarfareDirtyBombsResponse"
6985
+ },
6986
+ {
6987
+ "$ref": "#/components/schemas/FactionWarfareChainsResponse"
6988
+ },
6989
+ {
6990
+ "$ref": "#/components/schemas/FactionWarfareTerritoryWarsResponse"
6991
+ },
6992
+ {
6993
+ "$ref": "#/components/schemas/FactionWarfareRaidsResponse"
6994
+ },
6995
+ {
6996
+ "$ref": "#/components/schemas/FactionWarfareRankedResponse"
6997
+ },
6682
6998
  {
6683
6999
  "$ref": "#/components/schemas/TimestampResponse"
6684
7000
  }
@@ -9858,6 +10174,45 @@
9858
10174
  "x-stability": "Stable"
9859
10175
  }
9860
10176
  },
10177
+ "/torn/gyms": {
10178
+ "get": {
10179
+ "tags": [
10180
+ "Torn"
10181
+ ],
10182
+ "summary": "Get all gyms",
10183
+ "description": "Requires public access key. <br>",
10184
+ "operationId": "getTornGyms",
10185
+ "parameters": [
10186
+ {
10187
+ "$ref": "#/components/parameters/ApiTimestamp"
10188
+ },
10189
+ {
10190
+ "$ref": "#/components/parameters/ApiComment"
10191
+ },
10192
+ {
10193
+ "$ref": "#/components/parameters/ApiKeyPublic"
10194
+ }
10195
+ ],
10196
+ "responses": {
10197
+ "200": {
10198
+ "description": "Successful operation",
10199
+ "content": {
10200
+ "application/json": {
10201
+ "schema": {
10202
+ "$ref": "#/components/schemas/TornGymsResponse"
10203
+ }
10204
+ }
10205
+ }
10206
+ }
10207
+ },
10208
+ "security": [
10209
+ {
10210
+ "api_key": []
10211
+ }
10212
+ ],
10213
+ "x-stability": "Unstable"
10214
+ }
10215
+ },
9861
10216
  "/torn/honors": {
9862
10217
  "get": {
9863
10218
  "tags": [
@@ -10620,6 +10975,84 @@
10620
10975
  "x-stability": "Stable"
10621
10976
  }
10622
10977
  },
10978
+ "/torn/searchforcash": {
10979
+ "get": {
10980
+ "tags": [
10981
+ "Torn"
10982
+ ],
10983
+ "summary": "Get search for cash crime statuses",
10984
+ "description": "Requires public access key. <br>",
10985
+ "operationId": "getTornSearchForCash",
10986
+ "parameters": [
10987
+ {
10988
+ "$ref": "#/components/parameters/ApiTimestamp"
10989
+ },
10990
+ {
10991
+ "$ref": "#/components/parameters/ApiComment"
10992
+ },
10993
+ {
10994
+ "$ref": "#/components/parameters/ApiKeyPublic"
10995
+ }
10996
+ ],
10997
+ "responses": {
10998
+ "200": {
10999
+ "description": "Successful operation",
11000
+ "content": {
11001
+ "application/json": {
11002
+ "schema": {
11003
+ "$ref": "#/components/schemas/TornSearchForCashResponse"
11004
+ }
11005
+ }
11006
+ }
11007
+ }
11008
+ },
11009
+ "security": [
11010
+ {
11011
+ "api_key": []
11012
+ }
11013
+ ],
11014
+ "x-stability": "Unstable"
11015
+ }
11016
+ },
11017
+ "/torn/shoplifting": {
11018
+ "get": {
11019
+ "tags": [
11020
+ "Torn"
11021
+ ],
11022
+ "summary": "Get shoplifting crime statuses",
11023
+ "description": "Requires public access key. <br>",
11024
+ "operationId": "getTornShoplifting",
11025
+ "parameters": [
11026
+ {
11027
+ "$ref": "#/components/parameters/ApiTimestamp"
11028
+ },
11029
+ {
11030
+ "$ref": "#/components/parameters/ApiComment"
11031
+ },
11032
+ {
11033
+ "$ref": "#/components/parameters/ApiKeyPublic"
11034
+ }
11035
+ ],
11036
+ "responses": {
11037
+ "200": {
11038
+ "description": "Successful operation",
11039
+ "content": {
11040
+ "application/json": {
11041
+ "schema": {
11042
+ "$ref": "#/components/schemas/TornShopliftingResponse"
11043
+ }
11044
+ }
11045
+ }
11046
+ }
11047
+ },
11048
+ "security": [
11049
+ {
11050
+ "api_key": []
11051
+ }
11052
+ ],
11053
+ "x-stability": "Unstable"
11054
+ }
11055
+ },
10623
11056
  "/torn/stocks": {
10624
11057
  "get": {
10625
11058
  "tags": [
@@ -11083,6 +11516,9 @@
11083
11516
  {
11084
11517
  "$ref": "#/components/schemas/TornBountiesResponse"
11085
11518
  },
11519
+ {
11520
+ "$ref": "#/components/schemas/TornGymsResponse"
11521
+ },
11086
11522
  {
11087
11523
  "$ref": "#/components/schemas/TornItemAmmoResponse"
11088
11524
  },
@@ -16278,6 +16714,10 @@
16278
16714
  "type": "integer",
16279
16715
  "format": "int32"
16280
16716
  },
16717
+ "TornSubCrimeId": {
16718
+ "type": "integer",
16719
+ "format": "int32"
16720
+ },
16281
16721
  "ChainId": {
16282
16722
  "type": "integer",
16283
16723
  "format": "int32"
@@ -16297,6 +16737,10 @@
16297
16737
  "type": "integer",
16298
16738
  "format": "int32"
16299
16739
  },
16740
+ "GymId": {
16741
+ "type": "integer",
16742
+ "format": "int32"
16743
+ },
16300
16744
  "ForumPostId": {
16301
16745
  "type": "integer",
16302
16746
  "format": "int32"
@@ -16369,6 +16813,21 @@
16369
16813
  },
16370
16814
  "type": "object"
16371
16815
  },
16816
+ "RequestMetadataWithLinksAndNanostamp": {
16817
+ "required": [
16818
+ "links"
16819
+ ],
16820
+ "properties": {
16821
+ "links": {
16822
+ "$ref": "#/components/schemas/RequestLinks"
16823
+ },
16824
+ "nanostamp": {
16825
+ "description": "Use to bypass system limitation when 100 or more logs were inserted within the same second.",
16826
+ "type": "string"
16827
+ }
16828
+ },
16829
+ "type": "object"
16830
+ },
16372
16831
  "ForumFeedTypeEnum": {
16373
16832
  "description": "This represents the type of the activity. Values range from 1 to 8 where:\n * 1 = 'X posted on a thread',\n * 2 = 'X created a thread',\n * 3 = 'X liked your thread',\n * 4 = 'X disliked your thread',\n * 5 = 'X liked your post',\n * 6 = 'X disliked your post',\n * 7 = 'X quoted your post'.",
16374
16833
  "type": "integer",
@@ -16383,6 +16842,16 @@
16383
16842
  7
16384
16843
  ]
16385
16844
  },
16845
+ "GymClassEnum": {
16846
+ "type": "string",
16847
+ "enum": [
16848
+ "Basic",
16849
+ "Lightweight",
16850
+ "Middleweight",
16851
+ "Heavyweight",
16852
+ "Specialist"
16853
+ ]
16854
+ },
16386
16855
  "UserGenderEnum": {
16387
16856
  "type": "string",
16388
16857
  "enum": [
@@ -16509,6 +16978,18 @@
16509
16978
  }
16510
16979
  ]
16511
16980
  },
16981
+ "TornShopliftingStatusTitleEnum": {
16982
+ "type": "string",
16983
+ "enum": [
16984
+ "One camera",
16985
+ "Two cameras",
16986
+ "Three cameras",
16987
+ "Four cameras",
16988
+ "Checkpoint",
16989
+ "One guard",
16990
+ "Two guards"
16991
+ ]
16992
+ },
16512
16993
  "ReviveSetting": {
16513
16994
  "type": "string",
16514
16995
  "enum": [
@@ -18582,6 +19063,29 @@
18582
19063
  }
18583
19064
  ]
18584
19065
  },
19066
+ "UserGymResponse": {
19067
+ "required": [
19068
+ "gym"
19069
+ ],
19070
+ "properties": {
19071
+ "gym": {
19072
+ "required": [
19073
+ "id",
19074
+ "name"
19075
+ ],
19076
+ "properties": {
19077
+ "id": {
19078
+ "$ref": "#/components/schemas/GymId"
19079
+ },
19080
+ "name": {
19081
+ "type": "string"
19082
+ }
19083
+ },
19084
+ "type": "object"
19085
+ }
19086
+ },
19087
+ "type": "object"
19088
+ },
18585
19089
  "UserSearch": {
18586
19090
  "required": [
18587
19091
  "id",
@@ -19482,6 +19986,30 @@
19482
19986
  },
19483
19987
  "type": "object"
19484
19988
  },
19989
+ "UserEquipmentAmmo": {
19990
+ "required": [
19991
+ "id",
19992
+ "name",
19993
+ "type",
19994
+ "quantity"
19995
+ ],
19996
+ "properties": {
19997
+ "id": {
19998
+ "$ref": "#/components/schemas/AmmoId"
19999
+ },
20000
+ "name": {
20001
+ "type": "string"
20002
+ },
20003
+ "quantity": {
20004
+ "type": "integer",
20005
+ "format": "int32"
20006
+ },
20007
+ "type": {
20008
+ "$ref": "#/components/schemas/TornItemAmmoTypeEnum"
20009
+ }
20010
+ },
20011
+ "type": "object"
20012
+ },
19485
20013
  "UserEquipment": {
19486
20014
  "allOf": [
19487
20015
  {
@@ -19505,28 +20033,14 @@
19505
20033
  }
19506
20034
  },
19507
20035
  "ammo": {
19508
- "required": [
19509
- "id",
19510
- "name",
19511
- "type",
19512
- "quantity"
19513
- ],
19514
- "properties": {
19515
- "id": {
19516
- "$ref": "#/components/schemas/AmmoId"
19517
- },
19518
- "name": {
19519
- "type": "string"
19520
- },
19521
- "quantity": {
19522
- "type": "integer",
19523
- "format": "int32"
20036
+ "oneOf": [
20037
+ {
20038
+ "$ref": "#/components/schemas/UserEquipmentAmmo"
19524
20039
  },
19525
- "type": {
19526
- "$ref": "#/components/schemas/TornItemAmmoTypeEnum"
20040
+ {
20041
+ "type": "null"
19527
20042
  }
19528
- },
19529
- "type": "object"
20043
+ ]
19530
20044
  }
19531
20045
  },
19532
20046
  "type": "object"
@@ -20736,7 +21250,8 @@
20736
21250
  "karma",
20737
21251
  "last_action",
20738
21252
  "life",
20739
- "donator_status"
21253
+ "donator_status",
21254
+ "revive_setting"
20740
21255
  ],
20741
21256
  "properties": {
20742
21257
  "id": {
@@ -20801,6 +21316,10 @@
20801
21316
  "honor_id": {
20802
21317
  "$ref": "#/components/schemas/HonorId"
20803
21318
  },
21319
+ "revive_setting": {
21320
+ "$ref": "#/components/schemas/ReviveSetting",
21321
+ "description": "This field is shown only for 'Limited' or 'Full' access keys and only for the key owner, otherwise, the status is 'Unknown'."
21322
+ },
20804
21323
  "property": {
20805
21324
  "required": [
20806
21325
  "id",
@@ -21406,7 +21925,7 @@
21406
21925
  }
21407
21926
  },
21408
21927
  "_metadata": {
21409
- "$ref": "#/components/schemas/RequestMetadataWithLinks"
21928
+ "$ref": "#/components/schemas/RequestMetadataWithLinksAndNanostamp"
21410
21929
  }
21411
21930
  },
21412
21931
  "type": "object"
@@ -22291,8 +22810,7 @@
22291
22810
  ],
22292
22811
  "properties": {
22293
22812
  "id": {
22294
- "type": "integer",
22295
- "format": "int32"
22813
+ "$ref": "#/components/schemas/TornSubCrimeId"
22296
22814
  },
22297
22815
  "total": {
22298
22816
  "type": "integer",
@@ -22601,7 +23119,9 @@
22601
23119
  "id": {
22602
23120
  "$ref": "#/components/schemas/RaceCarId"
22603
23121
  },
22604
- "name": {
23122
+ "car_name": {
23123
+ "description": "This field is deprecated and 'car_item_name' should be used instead.",
23124
+ "deprecated": true,
22605
23125
  "oneOf": [
22606
23126
  {
22607
23127
  "type": "string"
@@ -23224,7 +23744,7 @@
23224
23744
  "UserSelectionName": {
23225
23745
  "oneOf": [
23226
23746
  {
23227
- "description": "The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','gym','networth','perks'.",
23747
+ "description": "The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','networth'.",
23228
23748
  "type": "string",
23229
23749
  "enum": [
23230
23750
  "ammo",
@@ -23250,6 +23770,7 @@
23250
23770
  "forumposts",
23251
23771
  "forumsubscribedthreads",
23252
23772
  "forumthreads",
23773
+ "gym",
23253
23774
  "hof",
23254
23775
  "honors",
23255
23776
  "icons",
@@ -23295,7 +23816,6 @@
23295
23816
  "criminalrecord",
23296
23817
  "display",
23297
23818
  "education",
23298
- "gym",
23299
23819
  "perks"
23300
23820
  ]
23301
23821
  },
@@ -29320,6 +29840,7 @@
29320
29840
  "contributors",
29321
29841
  "crime",
29322
29842
  "crimes",
29843
+ "dirtbombs",
29323
29844
  "hof",
29324
29845
  "lookup",
29325
29846
  "members",
@@ -29341,7 +29862,10 @@
29341
29862
  "territorywars",
29342
29863
  "timestamp",
29343
29864
  "upgrades",
29344
- "warfare",
29865
+ "warfarechains",
29866
+ "warfareraids",
29867
+ "warfareranked",
29868
+ "warfareterritory",
29345
29869
  "wars",
29346
29870
  "armor",
29347
29871
  "boosters",
@@ -29460,6 +29984,92 @@
29460
29984
  },
29461
29985
  "type": "object"
29462
29986
  },
29987
+ "FactionWarfareRankedResponse": {
29988
+ "required": [
29989
+ "warfareranked",
29990
+ "_metadata"
29991
+ ],
29992
+ "properties": {
29993
+ "warfareranked": {
29994
+ "type": "array",
29995
+ "items": {
29996
+ "$ref": "#/components/schemas/FactionRankedWarDetails"
29997
+ }
29998
+ },
29999
+ "_metadata": {
30000
+ "$ref": "#/components/schemas/RequestMetadataWithLinks"
30001
+ }
30002
+ },
30003
+ "type": "object"
30004
+ },
30005
+ "FactionWarfareRaidsResponse": {
30006
+ "required": [
30007
+ "warfareraids",
30008
+ "_metadata"
30009
+ ],
30010
+ "properties": {
30011
+ "warfareraids": {
30012
+ "type": "array",
30013
+ "items": {
30014
+ "$ref": "#/components/schemas/FactionRaidWarfare"
30015
+ }
30016
+ },
30017
+ "_metadata": {
30018
+ "$ref": "#/components/schemas/RequestMetadataWithLinks"
30019
+ }
30020
+ },
30021
+ "type": "object"
30022
+ },
30023
+ "FactionWarfareTerritoryWarsResponse": {
30024
+ "required": [
30025
+ "warfareterritory",
30026
+ "_metadata"
30027
+ ],
30028
+ "properties": {
30029
+ "warfareterritory": {
30030
+ "type": "array",
30031
+ "items": {
30032
+ "$ref": "#/components/schemas/FactionTerritoryWarfare"
30033
+ }
30034
+ },
30035
+ "_metadata": {
30036
+ "$ref": "#/components/schemas/RequestMetadataWithLinks"
30037
+ }
30038
+ },
30039
+ "type": "object"
30040
+ },
30041
+ "FactionWarfareChainsResponse": {
30042
+ "required": [
30043
+ "warfarechains",
30044
+ "_metadata"
30045
+ ],
30046
+ "properties": {
30047
+ "warfarechains": {
30048
+ "type": "array",
30049
+ "items": {
30050
+ "$ref": "#/components/schemas/FactionChainWarfare"
30051
+ }
30052
+ },
30053
+ "_metadata": {
30054
+ "$ref": "#/components/schemas/RequestMetadataWithLinks"
30055
+ }
30056
+ },
30057
+ "type": "object"
30058
+ },
30059
+ "FactionWarfareDirtyBombsResponse": {
30060
+ "required": [
30061
+ "dirtybombs"
30062
+ ],
30063
+ "properties": {
30064
+ "dirtybombs": {
30065
+ "type": "array",
30066
+ "items": {
30067
+ "$ref": "#/components/schemas/FactionWarfareDirtyBomb"
30068
+ }
30069
+ }
30070
+ },
30071
+ "type": "object"
30072
+ },
29463
30073
  "FactionWarfareResponse": {
29464
30074
  "required": [
29465
30075
  "warfare",
@@ -32727,6 +33337,172 @@
32727
33337
  },
32728
33338
  "type": "object"
32729
33339
  },
33340
+ "TornGymModifiers": {
33341
+ "required": [
33342
+ "strength",
33343
+ "speed",
33344
+ "defense",
33345
+ "dexterity"
33346
+ ],
33347
+ "properties": {
33348
+ "strength": {
33349
+ "type": "number",
33350
+ "format": "float"
33351
+ },
33352
+ "speed": {
33353
+ "type": "number",
33354
+ "format": "float"
33355
+ },
33356
+ "defense": {
33357
+ "type": "number",
33358
+ "format": "float"
33359
+ },
33360
+ "dexterity": {
33361
+ "type": "number",
33362
+ "format": "float"
33363
+ }
33364
+ },
33365
+ "type": "object"
33366
+ },
33367
+ "TornGym": {
33368
+ "required": [
33369
+ "id",
33370
+ "name",
33371
+ "class",
33372
+ "energy_cost",
33373
+ "cost",
33374
+ "modifiers",
33375
+ "note"
33376
+ ],
33377
+ "properties": {
33378
+ "id": {
33379
+ "$ref": "#/components/schemas/GymId"
33380
+ },
33381
+ "name": {
33382
+ "type": "string"
33383
+ },
33384
+ "class": {
33385
+ "$ref": "#/components/schemas/GymClassEnum"
33386
+ },
33387
+ "energy_cost": {
33388
+ "type": "integer",
33389
+ "format": "int32"
33390
+ },
33391
+ "cost": {
33392
+ "type": "integer",
33393
+ "format": "int64"
33394
+ },
33395
+ "modifiers": {
33396
+ "$ref": "#/components/schemas/TornGymModifiers"
33397
+ },
33398
+ "note": {
33399
+ "oneOf": [
33400
+ {
33401
+ "type": "string"
33402
+ },
33403
+ {
33404
+ "type": "null"
33405
+ }
33406
+ ]
33407
+ }
33408
+ },
33409
+ "type": "object"
33410
+ },
33411
+ "TornGymsResponse": {
33412
+ "required": [
33413
+ "gyms"
33414
+ ],
33415
+ "properties": {
33416
+ "gyms": {
33417
+ "type": "array",
33418
+ "items": {
33419
+ "$ref": "#/components/schemas/TornGym"
33420
+ }
33421
+ }
33422
+ },
33423
+ "type": "object"
33424
+ },
33425
+ "TornSearchForCash": {
33426
+ "required": [
33427
+ "id",
33428
+ "title",
33429
+ "percentage"
33430
+ ],
33431
+ "properties": {
33432
+ "id": {
33433
+ "$ref": "#/components/schemas/TornSubCrimeId"
33434
+ },
33435
+ "title": {
33436
+ "type": "string"
33437
+ },
33438
+ "percentage": {
33439
+ "type": "integer",
33440
+ "format": "int32"
33441
+ }
33442
+ },
33443
+ "type": "object"
33444
+ },
33445
+ "TornSearchForCashResponse": {
33446
+ "required": [
33447
+ "searchforcash"
33448
+ ],
33449
+ "properties": {
33450
+ "searchforcash": {
33451
+ "type": "array",
33452
+ "items": {
33453
+ "$ref": "#/components/schemas/TornSearchForCash"
33454
+ }
33455
+ }
33456
+ },
33457
+ "type": "object"
33458
+ },
33459
+ "TornShopliftingSecurityStatus": {
33460
+ "required": [
33461
+ "title",
33462
+ "disabled"
33463
+ ],
33464
+ "properties": {
33465
+ "title": {
33466
+ "$ref": "#/components/schemas/TornShopliftingStatusTitleEnum"
33467
+ },
33468
+ "disabled": {
33469
+ "type": "boolean"
33470
+ }
33471
+ },
33472
+ "type": "object"
33473
+ },
33474
+ "TornShoplifting": {
33475
+ "required": [
33476
+ "id",
33477
+ "status"
33478
+ ],
33479
+ "properties": {
33480
+ "id": {
33481
+ "$ref": "#/components/schemas/TornSubCrimeId"
33482
+ },
33483
+ "status": {
33484
+ "type": "array",
33485
+ "items": {
33486
+ "$ref": "#/components/schemas/TornShopliftingSecurityStatus"
33487
+ }
33488
+ }
33489
+ },
33490
+ "type": "object"
33491
+ },
33492
+ "TornShopliftingResponse": {
33493
+ "required": [
33494
+ "shoplifting"
33495
+ ],
33496
+ "properties": {
33497
+ "shoplifting": {
33498
+ "type": "array",
33499
+ "items": {
33500
+ "$ref": "#/components/schemas/TornShoplifting"
33501
+ }
33502
+ }
33503
+ },
33504
+ "type": "object"
33505
+ },
32730
33506
  "TornCompaniesResponse": {
32731
33507
  "required": [
32732
33508
  "companies"
@@ -34029,8 +34805,7 @@
34029
34805
  ],
34030
34806
  "properties": {
34031
34807
  "id": {
34032
- "type": "integer",
34033
- "format": "int32"
34808
+ "$ref": "#/components/schemas/TornSubCrimeId"
34034
34809
  },
34035
34810
  "name": {
34036
34811
  "type": "string"
@@ -35227,7 +36002,7 @@
35227
36002
  "TornSelectionName": {
35228
36003
  "oneOf": [
35229
36004
  {
35230
- "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'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
36005
+ "description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','stats'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
35231
36006
  "type": "string",
35232
36007
  "enum": [
35233
36008
  "attacklog",
@@ -35239,6 +36014,7 @@
35239
36014
  "eliminationteam",
35240
36015
  "factionhof",
35241
36016
  "factiontree",
36017
+ "gyms",
35242
36018
  "hof",
35243
36019
  "honors",
35244
36020
  "itemammo",
@@ -35252,6 +36028,8 @@
35252
36028
  "museum",
35253
36029
  "organizedcrimes",
35254
36030
  "properties",
36031
+ "searchforcash",
36032
+ "shoplifting",
35255
36033
  "stocks",
35256
36034
  "subcrimes",
35257
36035
  "territory",
@@ -35268,8 +36046,6 @@
35268
36046
  "pawnshop",
35269
36047
  "pokertables",
35270
36048
  "rockpaperscissors",
35271
- "searchforcash",
35272
- "shoplifting",
35273
36049
  "stats"
35274
36050
  ]
35275
36051
  },
@@ -35444,6 +36220,15 @@
35444
36220
  ]
35445
36221
  }
35446
36222
  },
36223
+ "ApiNanostamp": {
36224
+ "name": "nanostamp",
36225
+ "in": "query",
36226
+ "description": "Timestamp in nanoseconds to bypass system limitation when using regular timestamps",
36227
+ "required": false,
36228
+ "schema": {
36229
+ "type": "string"
36230
+ }
36231
+ },
35447
36232
  "ApiFiltersIncomingOutgoing": {
35448
36233
  "name": "filters",
35449
36234
  "in": "query",