tornapi-typescript 6.11.1 → 6.13.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.11.1"
6
+ "version": "6.13.0"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -4823,6 +4823,45 @@
4823
4823
  "x-stability": "Stable"
4824
4824
  }
4825
4825
  },
4826
+ "/faction/crimeexp": {
4827
+ "get": {
4828
+ "tags": [
4829
+ "Faction"
4830
+ ],
4831
+ "summary": "Get your faction members crime experience",
4832
+ "description": "Requires minimal access key. <br>Members are ordered descending, from highest crime experience to lowest.",
4833
+ "operationId": "getMyFactionCrimeExp",
4834
+ "parameters": [
4835
+ {
4836
+ "$ref": "#/components/parameters/ApiTimestamp"
4837
+ },
4838
+ {
4839
+ "$ref": "#/components/parameters/ApiComment"
4840
+ },
4841
+ {
4842
+ "$ref": "#/components/parameters/ApiKeyMinimal"
4843
+ }
4844
+ ],
4845
+ "responses": {
4846
+ "200": {
4847
+ "description": "Successful operation",
4848
+ "content": {
4849
+ "application/json": {
4850
+ "schema": {
4851
+ "$ref": "#/components/schemas/FactionCrimeExpResponse"
4852
+ }
4853
+ }
4854
+ }
4855
+ }
4856
+ },
4857
+ "security": [
4858
+ {
4859
+ "api_key": []
4860
+ }
4861
+ ],
4862
+ "x-stability": "Stable"
4863
+ }
4864
+ },
4826
4865
  "/faction/crimes": {
4827
4866
  "get": {
4828
4867
  "tags": [
@@ -5085,6 +5124,60 @@
5085
5124
  "x-stability": "Stable"
5086
5125
  }
5087
5126
  },
5127
+ "/faction/inventory": {
5128
+ "get": {
5129
+ "tags": [
5130
+ "Faction"
5131
+ ],
5132
+ "summary": "Get your faction's inventory items.",
5133
+ "description": "<b>Cached selection (1 hour, all items cached at once).</b><br><br>Requires limited access key. <br> ",
5134
+ "operationId": "getMyFactionInventory",
5135
+ "parameters": [
5136
+ {
5137
+ "name": "cat",
5138
+ "in": "query",
5139
+ "description": "Armory category",
5140
+ "required": true,
5141
+ "schema": {
5142
+ "$ref": "#/components/schemas/FactionArmoryCategoryEnum"
5143
+ }
5144
+ },
5145
+ {
5146
+ "$ref": "#/components/parameters/ApiLimit100Default20"
5147
+ },
5148
+ {
5149
+ "$ref": "#/components/parameters/ApiOffset"
5150
+ },
5151
+ {
5152
+ "$ref": "#/components/parameters/ApiTimestamp"
5153
+ },
5154
+ {
5155
+ "$ref": "#/components/parameters/ApiComment"
5156
+ },
5157
+ {
5158
+ "$ref": "#/components/parameters/ApiKeyLimited"
5159
+ }
5160
+ ],
5161
+ "responses": {
5162
+ "200": {
5163
+ "description": "Successful operation",
5164
+ "content": {
5165
+ "application/json": {
5166
+ "schema": {
5167
+ "$ref": "#/components/schemas/FactionInventoryResponse"
5168
+ }
5169
+ }
5170
+ }
5171
+ }
5172
+ },
5173
+ "security": [
5174
+ {
5175
+ "api_key": []
5176
+ }
5177
+ ],
5178
+ "x-stability": "Unstable"
5179
+ }
5180
+ },
5088
5181
  "/faction/members": {
5089
5182
  "get": {
5090
5183
  "tags": [
@@ -6824,6 +6917,9 @@
6824
6917
  {
6825
6918
  "$ref": "#/components/schemas/FactionRankedWarsCategoryEnum"
6826
6919
  },
6920
+ {
6921
+ "$ref": "#/components/schemas/FactionArmoryCategoryEnum"
6922
+ },
6827
6923
  {
6828
6924
  "$ref": "#/components/schemas/ReportTypeEnum"
6829
6925
  },
@@ -6971,6 +7067,12 @@
6971
7067
  {
6972
7068
  "$ref": "#/components/schemas/FactionContributorsResponse"
6973
7069
  },
7070
+ {
7071
+ "$ref": "#/components/schemas/FactionInventoryResponse"
7072
+ },
7073
+ {
7074
+ "$ref": "#/components/schemas/FactionCrimeExpResponse"
7075
+ },
6974
7076
  {
6975
7077
  "$ref": "#/components/schemas/FactionRacketsResponse"
6976
7078
  },
@@ -10572,22 +10674,27 @@
10572
10674
  "x-stability": "Stable"
10573
10675
  }
10574
10676
  },
10575
- "/torn/{id}/itemdetails": {
10677
+ "/torn/{ids}/itemdetails": {
10576
10678
  "get": {
10577
10679
  "tags": [
10578
10680
  "Torn"
10579
10681
  ],
10580
- "summary": "Get information about a specific item",
10682
+ "summary": "Get details for specific item(s)",
10581
10683
  "description": "Requires public key.",
10582
10684
  "operationId": "getTornItemDetails",
10583
10685
  "parameters": [
10584
10686
  {
10585
- "name": "id",
10687
+ "name": "ids",
10586
10688
  "in": "path",
10587
- "description": "Item uid",
10689
+ "description": "Item uid or a list of item uids (comma separated), 25 uids maximum",
10588
10690
  "required": true,
10691
+ "style": "form",
10692
+ "explode": false,
10589
10693
  "schema": {
10590
- "$ref": "#/components/schemas/ItemUid"
10694
+ "type": "array",
10695
+ "items": {
10696
+ "$ref": "#/components/schemas/ItemUid"
10697
+ }
10591
10698
  }
10592
10699
  },
10593
10700
  {
@@ -10659,6 +10766,59 @@
10659
10766
  "x-stability": "Stable"
10660
10767
  }
10661
10768
  },
10769
+ "/torn/{ids}/itemstats": {
10770
+ "get": {
10771
+ "tags": [
10772
+ "Torn"
10773
+ ],
10774
+ "summary": "Get specific item(s) stats",
10775
+ "description": "Requires public key.<br>",
10776
+ "operationId": "getTornItemStats",
10777
+ "parameters": [
10778
+ {
10779
+ "name": "ids",
10780
+ "in": "path",
10781
+ "description": "Item uid or a list of item uids (comma separated), 25 uids maximum",
10782
+ "required": true,
10783
+ "style": "form",
10784
+ "explode": false,
10785
+ "schema": {
10786
+ "type": "array",
10787
+ "items": {
10788
+ "$ref": "#/components/schemas/ItemUid"
10789
+ }
10790
+ }
10791
+ },
10792
+ {
10793
+ "$ref": "#/components/parameters/ApiTimestamp"
10794
+ },
10795
+ {
10796
+ "$ref": "#/components/parameters/ApiComment"
10797
+ },
10798
+ {
10799
+ "$ref": "#/components/parameters/ApiKeyPublic"
10800
+ }
10801
+ ],
10802
+ "responses": {
10803
+ "200": {
10804
+ "description": "Successful operation",
10805
+ "content": {
10806
+ "application/json": {
10807
+ "schema": {
10808
+ "$ref": "#/components/schemas/TornItemStatsResponse"
10809
+ }
10810
+ }
10811
+ }
10812
+ }
10813
+ },
10814
+ "security": [
10815
+ {
10816
+ "api_key": []
10817
+ }
10818
+ ],
10819
+ "x-stability": "Unstable"
10820
+ }
10821
+ },
10662
10822
  "/torn/items": {
10663
10823
  "get": {
10664
10824
  "tags": [
@@ -11179,6 +11339,45 @@
11179
11339
  "x-stability": "Stable"
11180
11340
  }
11181
11341
  },
11342
+ "/torn/rockpaperscissors": {
11343
+ "get": {
11344
+ "tags": [
11345
+ "Torn"
11346
+ ],
11347
+ "summary": "Get rock paper scissors competition stats",
11348
+ "description": "Requires public key.",
11349
+ "operationId": "getTornRps",
11350
+ "parameters": [
11351
+ {
11352
+ "$ref": "#/components/parameters/ApiTimestamp"
11353
+ },
11354
+ {
11355
+ "$ref": "#/components/parameters/ApiComment"
11356
+ },
11357
+ {
11358
+ "$ref": "#/components/parameters/ApiKeyPublic"
11359
+ }
11360
+ ],
11361
+ "responses": {
11362
+ "200": {
11363
+ "description": "Successful operation",
11364
+ "content": {
11365
+ "application/json": {
11366
+ "schema": {
11367
+ "$ref": "#/components/schemas/TornRockPaperScissorsResponse"
11368
+ }
11369
+ }
11370
+ }
11371
+ }
11372
+ },
11373
+ "security": [
11374
+ {
11375
+ "api_key": []
11376
+ }
11377
+ ],
11378
+ "x-stability": "Unstable"
11379
+ }
11380
+ },
11182
11381
  "/torn/searchforcash": {
11183
11382
  "get": {
11184
11383
  "tags": [
@@ -11257,6 +11456,45 @@
11257
11456
  "x-stability": "Unstable"
11258
11457
  }
11259
11458
  },
11459
+ "/torn/stats": {
11460
+ "get": {
11461
+ "tags": [
11462
+ "Torn"
11463
+ ],
11464
+ "summary": "Get daily city stats",
11465
+ "description": "Requires public key.",
11466
+ "operationId": "getTornCityStats",
11467
+ "parameters": [
11468
+ {
11469
+ "$ref": "#/components/parameters/ApiTimestamp"
11470
+ },
11471
+ {
11472
+ "$ref": "#/components/parameters/ApiComment"
11473
+ },
11474
+ {
11475
+ "$ref": "#/components/parameters/ApiKeyPublic"
11476
+ }
11477
+ ],
11478
+ "responses": {
11479
+ "200": {
11480
+ "description": "Successful operation",
11481
+ "content": {
11482
+ "application/json": {
11483
+ "schema": {
11484
+ "$ref": "#/components/schemas/TornCityStatsResponse"
11485
+ }
11486
+ }
11487
+ }
11488
+ }
11489
+ },
11490
+ "security": [
11491
+ {
11492
+ "api_key": []
11493
+ }
11494
+ ],
11495
+ "x-stability": "Unstable"
11496
+ }
11497
+ },
11260
11498
  "/torn/stocks": {
11261
11499
  "get": {
11262
11500
  "tags": [
@@ -11696,6 +11934,12 @@
11696
11934
  {
11697
11935
  "$ref": "#/components/schemas/TornItemsResponse"
11698
11936
  },
11937
+ {
11938
+ "$ref": "#/components/schemas/TornRockPaperScissorsResponse"
11939
+ },
11940
+ {
11941
+ "$ref": "#/components/schemas/TornCityStatsResponse"
11942
+ },
11699
11943
  {
11700
11944
  "$ref": "#/components/schemas/TornLogCategoriesResponse"
11701
11945
  },
@@ -11708,6 +11952,9 @@
11708
11952
  {
11709
11953
  "$ref": "#/components/schemas/TornOrganizedCrimeResponse"
11710
11954
  },
11955
+ {
11956
+ "$ref": "#/components/schemas/TornItemStatsResponse"
11957
+ },
11711
11958
  {
11712
11959
  "$ref": "#/components/schemas/TornHonorsResponse"
11713
11960
  },
@@ -11801,6 +12048,42 @@
11801
12048
  "E"
11802
12049
  ]
11803
12050
  },
12051
+ "TornItemStatTitleEnum": {
12052
+ "type": "string",
12053
+ "enum": [
12054
+ "Damage",
12055
+ "Rounds fired",
12056
+ "Hits",
12057
+ "Misses",
12058
+ "Damage taken",
12059
+ "Reloads",
12060
+ "Highest damage",
12061
+ "Hits received",
12062
+ "Most damage taken",
12063
+ "Damage mitigated",
12064
+ "Most damage mitigated",
12065
+ "Finishing hits",
12066
+ "Critical hits",
12067
+ "First owner",
12068
+ "First faction owner",
12069
+ "Time created",
12070
+ "Respect earned"
12071
+ ]
12072
+ },
12073
+ "FactionArmoryCategoryEnum": {
12074
+ "type": "string",
12075
+ "enum": [
12076
+ "weapons",
12077
+ "armor",
12078
+ "temporary",
12079
+ "medical",
12080
+ "consumables",
12081
+ "drugs",
12082
+ "boosters",
12083
+ "utilities",
12084
+ "loot"
12085
+ ]
12086
+ },
11804
12087
  "MissionDifficultyEnum": {
11805
12088
  "type": "string",
11806
12089
  "enum": [
@@ -16811,6 +17094,10 @@
16811
17094
  "type": "integer",
16812
17095
  "format": "int64"
16813
17096
  },
17097
+ "ItemStatId": {
17098
+ "type": "integer",
17099
+ "format": "int34"
17100
+ },
16814
17101
  "AuctionListingId": {
16815
17102
  "type": "integer",
16816
17103
  "format": "int32"
@@ -17661,8 +17948,16 @@
17661
17948
  "format": "float"
17662
17949
  },
17663
17950
  "chain": {
17664
- "type": "integer",
17665
- "format": "int32"
17951
+ "description": "Important! Starting January 1st, 2027, the value '0' will be replaced with 'null'.",
17952
+ "oneOf": [
17953
+ {
17954
+ "type": "integer",
17955
+ "format": "int32"
17956
+ },
17957
+ {
17958
+ "type": "null"
17959
+ }
17960
+ ]
17666
17961
  },
17667
17962
  "is_interrupted": {
17668
17963
  "description": "This is an experimental flag which should help determine 'assist' attacks which have not contributed to the chain. For example, attacks such as where the opponent lost to someoene else before the attacker could finish the attack. This flag might not work entirely correctly, so use with caution.",
@@ -19216,6 +19511,25 @@
19216
19511
  },
19217
19512
  "type": "object"
19218
19513
  },
19514
+ "ErrorCityStatsCronFailed": {
19515
+ "required": [
19516
+ "code",
19517
+ "error"
19518
+ ],
19519
+ "properties": {
19520
+ "code": {
19521
+ "type": "integer",
19522
+ "format": "int32",
19523
+ "enum": [
19524
+ 31
19525
+ ]
19526
+ },
19527
+ "error": {
19528
+ "type": "string"
19529
+ }
19530
+ },
19531
+ "type": "object"
19532
+ },
19219
19533
  "ApiError": {
19220
19534
  "oneOf": [
19221
19535
  {
@@ -19310,6 +19624,9 @@
19310
19624
  },
19311
19625
  {
19312
19626
  "$ref": "#/components/schemas/ErrorFileDoesNotExist"
19627
+ },
19628
+ {
19629
+ "$ref": "#/components/schemas/ErrorCityStatsCronFailed"
19313
19630
  }
19314
19631
  ]
19315
19632
  },
@@ -27254,6 +27571,97 @@
27254
27571
  "arsonskill"
27255
27572
  ]
27256
27573
  },
27574
+ "FactionCrimeExpResponse": {
27575
+ "required": [
27576
+ "crimeexp"
27577
+ ],
27578
+ "properties": {
27579
+ "crimeexp": {
27580
+ "type": "array",
27581
+ "items": {
27582
+ "$ref": "#/components/schemas/UserId"
27583
+ }
27584
+ }
27585
+ },
27586
+ "type": "object"
27587
+ },
27588
+ "FactionInventoryItem": {
27589
+ "required": [
27590
+ "id",
27591
+ "name",
27592
+ "type",
27593
+ "amount",
27594
+ "uids",
27595
+ "loaned"
27596
+ ],
27597
+ "properties": {
27598
+ "id": {
27599
+ "$ref": "#/components/schemas/ItemId"
27600
+ },
27601
+ "name": {
27602
+ "type": "string"
27603
+ },
27604
+ "type": {
27605
+ "$ref": "#/components/schemas/MarketSpecializedBazaarCategoryEnum"
27606
+ },
27607
+ "amount": {
27608
+ "type": "integer",
27609
+ "format": "int32"
27610
+ },
27611
+ "uids": {
27612
+ "type": "array",
27613
+ "items": {
27614
+ "$ref": "#/components/schemas/ItemUid"
27615
+ }
27616
+ },
27617
+ "loaned": {
27618
+ "oneOf": [
27619
+ {
27620
+ "required": [
27621
+ "id",
27622
+ "name"
27623
+ ],
27624
+ "properties": {
27625
+ "id": {
27626
+ "$ref": "#/components/schemas/UserId"
27627
+ },
27628
+ "name": {
27629
+ "type": "string"
27630
+ }
27631
+ },
27632
+ "type": "object"
27633
+ },
27634
+ {
27635
+ "type": "null"
27636
+ }
27637
+ ]
27638
+ }
27639
+ },
27640
+ "type": "object"
27641
+ },
27642
+ "FactionInventoryResponse": {
27643
+ "required": [
27644
+ "inventory_timestamp",
27645
+ "inventory",
27646
+ "_metadata"
27647
+ ],
27648
+ "properties": {
27649
+ "inventory_timestamp": {
27650
+ "type": "integer",
27651
+ "format": "int64"
27652
+ },
27653
+ "inventory": {
27654
+ "type": "array",
27655
+ "items": {
27656
+ "$ref": "#/components/schemas/FactionInventoryItem"
27657
+ }
27658
+ },
27659
+ "_metadata": {
27660
+ "$ref": "#/components/schemas/RequestMetadataWithLinksAndTotal"
27661
+ }
27662
+ },
27663
+ "type": "object"
27664
+ },
27257
27665
  "FactionRaidReport": {
27258
27666
  "required": [
27259
27667
  "id",
@@ -30076,7 +30484,7 @@
30076
30484
  "FactionSelectionName": {
30077
30485
  "oneOf": [
30078
30486
  {
30079
- "description": "The following selections will fallback to API v1 and may change at any time: 'armor', 'boosters', 'caches', 'cesium', 'crimeexp', 'drugs', 'medical', 'utilities', 'temporary', 'weapons'.\n * The following selections are not available in API v2: 'armorynews', 'attacknews', 'crimenews', 'currency', 'donations', 'fundsnews', 'mainnews', 'membershipnews', 'territorynews'.",
30487
+ "description": "The following selections are not available in API v2: 'armorynews', 'attacknews', 'crimenews', 'currency', 'donations', 'fundsnews', 'mainnews', 'membershipnews', 'territorynews', 'armor', 'boosters', 'caches', 'cesium', 'drugs', 'medical', 'utilities', 'temporary', 'weapons'.",
30080
30488
  "type": "string",
30081
30489
  "enum": [
30082
30490
  "applications",
@@ -30090,6 +30498,7 @@
30090
30498
  "contributors",
30091
30499
  "crime",
30092
30500
  "crimes",
30501
+ "crimeexp",
30093
30502
  "dirtbombs",
30094
30503
  "hof",
30095
30504
  "lookup",
@@ -30116,17 +30525,7 @@
30116
30525
  "warfareraids",
30117
30526
  "warfareranked",
30118
30527
  "warfareterritory",
30119
- "wars",
30120
- "armor",
30121
- "boosters",
30122
- "caches",
30123
- "cesium",
30124
- "crimeexp",
30125
- "drugs",
30126
- "medical",
30127
- "utilities",
30128
- "temporary",
30129
- "weapons"
30528
+ "wars"
30130
30529
  ]
30131
30530
  },
30132
30531
  {
@@ -33587,6 +33986,695 @@
33587
33986
  },
33588
33987
  "type": "object"
33589
33988
  },
33989
+ "TornItemStat": {
33990
+ "required": [
33991
+ "id",
33992
+ "title",
33993
+ "value"
33994
+ ],
33995
+ "properties": {
33996
+ "id": {
33997
+ "$ref": "#/components/schemas/ItemStatId"
33998
+ },
33999
+ "title": {
34000
+ "type": "string"
34001
+ },
34002
+ "value": {
34003
+ "type": "integer",
34004
+ "format": "int64"
34005
+ }
34006
+ },
34007
+ "type": "object"
34008
+ },
34009
+ "TornItemStats": {
34010
+ "required": [
34011
+ "id",
34012
+ "uid",
34013
+ "name",
34014
+ "type",
34015
+ "sub_type",
34016
+ "stats"
34017
+ ],
34018
+ "properties": {
34019
+ "id": {
34020
+ "$ref": "#/components/schemas/ItemId"
34021
+ },
34022
+ "uid": {
34023
+ "$ref": "#/components/schemas/ItemUid"
34024
+ },
34025
+ "name": {
34026
+ "$ref": "#/components/schemas/TornItemStatTitleEnum"
34027
+ },
34028
+ "type": {
34029
+ "$ref": "#/components/schemas/TornItemTypeEnum"
34030
+ },
34031
+ "sub_type": {
34032
+ "oneOf": [
34033
+ {
34034
+ "$ref": "#/components/schemas/TornItemWeaponTypeEnum"
34035
+ },
34036
+ {
34037
+ "type": "null"
34038
+ }
34039
+ ]
34040
+ },
34041
+ "stats": {
34042
+ "type": "array",
34043
+ "items": {
34044
+ "$ref": "#/components/schemas/TornItemStat"
34045
+ }
34046
+ }
34047
+ },
34048
+ "type": "object"
34049
+ },
34050
+ "TornItemStatsResponse": {
34051
+ "required": [
34052
+ "itemdetails"
34053
+ ],
34054
+ "properties": {
34055
+ "itemdetails": {
34056
+ "type": "array",
34057
+ "items": {
34058
+ "$ref": "#/components/schemas/TornItemStats"
34059
+ }
34060
+ }
34061
+ },
34062
+ "type": "object"
34063
+ },
34064
+ "TornRockPaperScissorsResponse": {
34065
+ "required": [
34066
+ "rockpaperscissors"
34067
+ ],
34068
+ "properties": {
34069
+ "rockpaperscissors": {
34070
+ "type": "array",
34071
+ "items": {
34072
+ "required": [
34073
+ "type",
34074
+ "count"
34075
+ ],
34076
+ "properties": {
34077
+ "type": {
34078
+ "type": "string",
34079
+ "enum": [
34080
+ "rock",
34081
+ "paper",
34082
+ "scissors"
34083
+ ]
34084
+ },
34085
+ "count": {
34086
+ "type": "integer",
34087
+ "format": "int64"
34088
+ }
34089
+ },
34090
+ "type": "object"
34091
+ }
34092
+ }
34093
+ },
34094
+ "type": "object"
34095
+ },
34096
+ "TornCityStatsResponse": {
34097
+ "required": [
34098
+ "stats"
34099
+ ],
34100
+ "properties": {
34101
+ "stats": {
34102
+ "required": [
34103
+ "users",
34104
+ "items",
34105
+ "trading",
34106
+ "currency",
34107
+ "attacking",
34108
+ "jobs",
34109
+ "jail",
34110
+ "hospital",
34111
+ "drugs",
34112
+ "traveling",
34113
+ "bounties",
34114
+ "crimes",
34115
+ "communication",
34116
+ "other"
34117
+ ],
34118
+ "properties": {
34119
+ "users": {
34120
+ "required": [
34121
+ "total",
34122
+ "male",
34123
+ "female",
34124
+ "enby",
34125
+ "married"
34126
+ ],
34127
+ "properties": {
34128
+ "total": {
34129
+ "type": "integer",
34130
+ "format": "int64"
34131
+ },
34132
+ "male": {
34133
+ "type": "integer",
34134
+ "format": "int64"
34135
+ },
34136
+ "female": {
34137
+ "type": "integer",
34138
+ "format": "int64"
34139
+ },
34140
+ "enby": {
34141
+ "type": "integer",
34142
+ "format": "int64"
34143
+ },
34144
+ "married": {
34145
+ "type": "integer",
34146
+ "format": "int64"
34147
+ }
34148
+ },
34149
+ "type": "object"
34150
+ },
34151
+ "items": {
34152
+ "required": [
34153
+ "found_in_city",
34154
+ "found_in_dump",
34155
+ "trashed",
34156
+ "total"
34157
+ ],
34158
+ "properties": {
34159
+ "found_in_city": {
34160
+ "type": "integer",
34161
+ "format": "int64"
34162
+ },
34163
+ "found_in_dump": {
34164
+ "type": "integer",
34165
+ "format": "int64"
34166
+ },
34167
+ "trashed": {
34168
+ "type": "integer",
34169
+ "format": "int64"
34170
+ },
34171
+ "total": {
34172
+ "type": "integer",
34173
+ "format": "int64"
34174
+ }
34175
+ },
34176
+ "type": "object"
34177
+ },
34178
+ "trading": {
34179
+ "required": [
34180
+ "sold_on_market",
34181
+ "sold_in_bazaar",
34182
+ "sold_points",
34183
+ "bazaar_profit",
34184
+ "auctions",
34185
+ "trades",
34186
+ "items_sent"
34187
+ ],
34188
+ "properties": {
34189
+ "sold_on_market": {
34190
+ "type": "integer",
34191
+ "format": "int64"
34192
+ },
34193
+ "sold_in_bazaar": {
34194
+ "type": "integer",
34195
+ "format": "int64"
34196
+ },
34197
+ "sold_points": {
34198
+ "type": "integer",
34199
+ "format": "int64"
34200
+ },
34201
+ "bazaar_profit": {
34202
+ "type": "integer",
34203
+ "format": "int64"
34204
+ },
34205
+ "auctions": {
34206
+ "type": "integer",
34207
+ "format": "int64"
34208
+ },
34209
+ "trades": {
34210
+ "type": "integer",
34211
+ "format": "int64"
34212
+ },
34213
+ "items_sent": {
34214
+ "type": "integer",
34215
+ "format": "int64"
34216
+ }
34217
+ },
34218
+ "type": "object"
34219
+ },
34220
+ "currency": {
34221
+ "required": [
34222
+ "money_on_hand",
34223
+ "money_on_hand_average",
34224
+ "money_in_bank",
34225
+ "points_total",
34226
+ "points_players",
34227
+ "points_factions",
34228
+ "points_market",
34229
+ "points_used"
34230
+ ],
34231
+ "properties": {
34232
+ "money_on_hand": {
34233
+ "type": "integer",
34234
+ "format": "int64"
34235
+ },
34236
+ "money_on_hand_average": {
34237
+ "type": "integer",
34238
+ "format": "int64"
34239
+ },
34240
+ "money_in_bank": {
34241
+ "type": "integer",
34242
+ "format": "int64"
34243
+ },
34244
+ "points_total": {
34245
+ "type": "integer",
34246
+ "format": "int64"
34247
+ },
34248
+ "points_players": {
34249
+ "type": "integer",
34250
+ "format": "int64"
34251
+ },
34252
+ "points_factions": {
34253
+ "type": "integer",
34254
+ "format": "int64"
34255
+ },
34256
+ "points_market": {
34257
+ "type": "integer",
34258
+ "format": "int64"
34259
+ },
34260
+ "points_used": {
34261
+ "type": "integer",
34262
+ "format": "int64"
34263
+ }
34264
+ },
34265
+ "type": "object"
34266
+ },
34267
+ "attacking": {
34268
+ "required": [
34269
+ "attacks_won",
34270
+ "attacks_lost",
34271
+ "attacks_stalemated",
34272
+ "attacks_stealthed",
34273
+ "escapes",
34274
+ "hits",
34275
+ "misses",
34276
+ "critical_hits",
34277
+ "rounds_fired",
34278
+ "money_mugged",
34279
+ "respect_gained"
34280
+ ],
34281
+ "properties": {
34282
+ "attacks_won": {
34283
+ "type": "integer",
34284
+ "format": "int64"
34285
+ },
34286
+ "attacks_lost": {
34287
+ "type": "integer",
34288
+ "format": "int64"
34289
+ },
34290
+ "attacks_stalemated": {
34291
+ "type": "integer",
34292
+ "format": "int64"
34293
+ },
34294
+ "attacks_stealthed": {
34295
+ "type": "integer",
34296
+ "format": "int64"
34297
+ },
34298
+ "escapes": {
34299
+ "type": "integer",
34300
+ "format": "int64"
34301
+ },
34302
+ "hits": {
34303
+ "type": "integer",
34304
+ "format": "int64"
34305
+ },
34306
+ "misses": {
34307
+ "type": "integer",
34308
+ "format": "int64"
34309
+ },
34310
+ "critical_hits": {
34311
+ "type": "integer",
34312
+ "format": "int64"
34313
+ },
34314
+ "rounds_fired": {
34315
+ "type": "integer",
34316
+ "format": "int64"
34317
+ },
34318
+ "money_mugged": {
34319
+ "type": "integer",
34320
+ "format": "int64"
34321
+ },
34322
+ "respect_gained": {
34323
+ "type": "integer",
34324
+ "format": "int64"
34325
+ }
34326
+ },
34327
+ "type": "object"
34328
+ },
34329
+ "jobs": {
34330
+ "required": [
34331
+ "army",
34332
+ "grocer",
34333
+ "casino",
34334
+ "education",
34335
+ "medical",
34336
+ "law",
34337
+ "company",
34338
+ "unemployed"
34339
+ ],
34340
+ "properties": {
34341
+ "army": {
34342
+ "type": "integer",
34343
+ "format": "int64"
34344
+ },
34345
+ "grocer": {
34346
+ "type": "integer",
34347
+ "format": "int64"
34348
+ },
34349
+ "casino": {
34350
+ "type": "integer",
34351
+ "format": "int64"
34352
+ },
34353
+ "education": {
34354
+ "type": "integer",
34355
+ "format": "int64"
34356
+ },
34357
+ "medical": {
34358
+ "type": "integer",
34359
+ "format": "int64"
34360
+ },
34361
+ "law": {
34362
+ "type": "integer",
34363
+ "format": "int64"
34364
+ },
34365
+ "company": {
34366
+ "type": "integer",
34367
+ "format": "int64"
34368
+ },
34369
+ "unemployed": {
34370
+ "type": "integer",
34371
+ "format": "int64"
34372
+ }
34373
+ },
34374
+ "type": "object"
34375
+ },
34376
+ "jail": {
34377
+ "required": [
34378
+ "jailings",
34379
+ "busts",
34380
+ "busts_failed",
34381
+ "bails",
34382
+ "bails_spent"
34383
+ ],
34384
+ "properties": {
34385
+ "jailings": {
34386
+ "type": "integer",
34387
+ "format": "int64"
34388
+ },
34389
+ "busts": {
34390
+ "type": "integer",
34391
+ "format": "int64"
34392
+ },
34393
+ "busts_failed": {
34394
+ "type": "integer",
34395
+ "format": "int64"
34396
+ },
34397
+ "bails": {
34398
+ "type": "integer",
34399
+ "format": "int64"
34400
+ },
34401
+ "bails_spent": {
34402
+ "type": "integer",
34403
+ "format": "int64"
34404
+ }
34405
+ },
34406
+ "type": "object"
34407
+ },
34408
+ "hospital": {
34409
+ "required": [
34410
+ "trips",
34411
+ "medical_items_used",
34412
+ "revives"
34413
+ ],
34414
+ "properties": {
34415
+ "trips": {
34416
+ "type": "integer",
34417
+ "format": "int64"
34418
+ },
34419
+ "medical_items_used": {
34420
+ "type": "integer",
34421
+ "format": "int64"
34422
+ },
34423
+ "revives": {
34424
+ "type": "integer",
34425
+ "format": "int64"
34426
+ }
34427
+ },
34428
+ "type": "object"
34429
+ },
34430
+ "drugs": {
34431
+ "required": [
34432
+ "total_used",
34433
+ "overdoses",
34434
+ "cannabis",
34435
+ "ecstasy",
34436
+ "ketamine",
34437
+ "lsd",
34438
+ "opium",
34439
+ "shrooms",
34440
+ "speed",
34441
+ "pcp",
34442
+ "xanax",
34443
+ "vicodin"
34444
+ ],
34445
+ "properties": {
34446
+ "total_used": {
34447
+ "type": "integer",
34448
+ "format": "int64"
34449
+ },
34450
+ "overdoses": {
34451
+ "type": "integer",
34452
+ "format": "int64"
34453
+ },
34454
+ "cannabis": {
34455
+ "type": "integer",
34456
+ "format": "int64"
34457
+ },
34458
+ "ecstasy": {
34459
+ "type": "integer",
34460
+ "format": "int64"
34461
+ },
34462
+ "ketamine": {
34463
+ "type": "integer",
34464
+ "format": "int64"
34465
+ },
34466
+ "lsd": {
34467
+ "type": "integer",
34468
+ "format": "int64"
34469
+ },
34470
+ "opium": {
34471
+ "type": "integer",
34472
+ "format": "int64"
34473
+ },
34474
+ "shrooms": {
34475
+ "type": "integer",
34476
+ "format": "int64"
34477
+ },
34478
+ "speed": {
34479
+ "type": "integer",
34480
+ "format": "int64"
34481
+ },
34482
+ "pcp": {
34483
+ "type": "integer",
34484
+ "format": "int64"
34485
+ },
34486
+ "xanax": {
34487
+ "type": "integer",
34488
+ "format": "int64"
34489
+ },
34490
+ "vicodin": {
34491
+ "type": "integer",
34492
+ "format": "int64"
34493
+ }
34494
+ },
34495
+ "type": "object"
34496
+ },
34497
+ "traveling": {
34498
+ "required": [
34499
+ "items_bought_abroad",
34500
+ "total_trips",
34501
+ "argentina",
34502
+ "mexico",
34503
+ "united_arab_emirates",
34504
+ "hawaii",
34505
+ "japan",
34506
+ "united_kingdom",
34507
+ "south_africa",
34508
+ "switzerland",
34509
+ "china",
34510
+ "cayman_islands"
34511
+ ],
34512
+ "properties": {
34513
+ "items_bought_abroad": {
34514
+ "type": "integer",
34515
+ "format": "int64"
34516
+ },
34517
+ "total_trips": {
34518
+ "type": "integer",
34519
+ "format": "int64"
34520
+ },
34521
+ "argentina": {
34522
+ "type": "integer",
34523
+ "format": "int64"
34524
+ },
34525
+ "mexico": {
34526
+ "type": "integer",
34527
+ "format": "int64"
34528
+ },
34529
+ "united_arab_emirates": {
34530
+ "type": "integer",
34531
+ "format": "int64"
34532
+ },
34533
+ "hawaii": {
34534
+ "type": "integer",
34535
+ "format": "int64"
34536
+ },
34537
+ "japan": {
34538
+ "type": "integer",
34539
+ "format": "int64"
34540
+ },
34541
+ "united_kingdom": {
34542
+ "type": "integer",
34543
+ "format": "int64"
34544
+ },
34545
+ "south_africa": {
34546
+ "type": "integer",
34547
+ "format": "int64"
34548
+ },
34549
+ "switzerland": {
34550
+ "type": "integer",
34551
+ "format": "int64"
34552
+ },
34553
+ "china": {
34554
+ "type": "integer",
34555
+ "format": "int64"
34556
+ },
34557
+ "cayman_islands": {
34558
+ "type": "integer",
34559
+ "format": "int64"
34560
+ }
34561
+ },
34562
+ "type": "object"
34563
+ },
34564
+ "bounties": {
34565
+ "required": [
34566
+ "placed",
34567
+ "money_spent"
34568
+ ],
34569
+ "properties": {
34570
+ "placed": {
34571
+ "type": "integer",
34572
+ "format": "int64"
34573
+ },
34574
+ "money_spent": {
34575
+ "type": "integer",
34576
+ "format": "int64"
34577
+ }
34578
+ },
34579
+ "type": "object"
34580
+ },
34581
+ "crimes": {
34582
+ "required": [
34583
+ "total",
34584
+ "jail_sentences"
34585
+ ],
34586
+ "properties": {
34587
+ "total": {
34588
+ "type": "integer",
34589
+ "format": "int64"
34590
+ },
34591
+ "jail_sentences": {
34592
+ "type": "integer",
34593
+ "format": "int64"
34594
+ }
34595
+ },
34596
+ "type": "object"
34597
+ },
34598
+ "communication": {
34599
+ "required": [
34600
+ "total_messages",
34601
+ "friends",
34602
+ "coworkers",
34603
+ "spouses",
34604
+ "classified_ads_placed",
34605
+ "personals_placed"
34606
+ ],
34607
+ "properties": {
34608
+ "total_messages": {
34609
+ "type": "integer",
34610
+ "format": "int64"
34611
+ },
34612
+ "friends": {
34613
+ "type": "integer",
34614
+ "format": "int64"
34615
+ },
34616
+ "coworkers": {
34617
+ "type": "integer",
34618
+ "format": "int64"
34619
+ },
34620
+ "spouses": {
34621
+ "type": "integer",
34622
+ "format": "int64"
34623
+ },
34624
+ "classified_ads_placed": {
34625
+ "type": "integer",
34626
+ "format": "int64"
34627
+ },
34628
+ "personals_placed": {
34629
+ "type": "integer",
34630
+ "format": "int64"
34631
+ }
34632
+ },
34633
+ "type": "object"
34634
+ },
34635
+ "other": {
34636
+ "required": [
34637
+ "logins",
34638
+ "years_played",
34639
+ "merits_bought",
34640
+ "energy_refills",
34641
+ "company_trains",
34642
+ "stat_enhancers_used"
34643
+ ],
34644
+ "properties": {
34645
+ "logins": {
34646
+ "type": "integer",
34647
+ "format": "int64"
34648
+ },
34649
+ "years_played": {
34650
+ "type": "integer",
34651
+ "format": "int64"
34652
+ },
34653
+ "merits_bought": {
34654
+ "type": "integer",
34655
+ "format": "int64"
34656
+ },
34657
+ "energy_refills": {
34658
+ "type": "integer",
34659
+ "format": "int64"
34660
+ },
34661
+ "company_trains": {
34662
+ "type": "integer",
34663
+ "format": "int64"
34664
+ },
34665
+ "stat_enhancers_used": {
34666
+ "type": "integer",
34667
+ "format": "int64"
34668
+ }
34669
+ },
34670
+ "type": "object"
34671
+ }
34672
+ },
34673
+ "type": "object"
34674
+ }
34675
+ },
34676
+ "type": "object"
34677
+ },
33590
34678
  "TornPokerTable": {
33591
34679
  "required": [
33592
34680
  "id",
@@ -34616,13 +35704,64 @@
34616
35704
  }
34617
35705
  ]
34618
35706
  },
35707
+ "TornItemDetailsDeprecated": {
35708
+ "description": "This object is deprecated, and starting on 1st January 2027 it will be replaced with an array of TornItemDetails.",
35709
+ "deprecated": true,
35710
+ "allOf": [
35711
+ {
35712
+ "$ref": "#/components/schemas/ItemMarketListingItemDetails"
35713
+ },
35714
+ {
35715
+ "required": [
35716
+ "id",
35717
+ "name",
35718
+ "type",
35719
+ "sub_type"
35720
+ ],
35721
+ "properties": {
35722
+ "id": {
35723
+ "$ref": "#/components/schemas/ItemId"
35724
+ },
35725
+ "name": {
35726
+ "type": "string"
35727
+ },
35728
+ "type": {
35729
+ "$ref": "#/components/schemas/TornItemTypeEnum"
35730
+ },
35731
+ "sub_type": {
35732
+ "oneOf": [
35733
+ {
35734
+ "$ref": "#/components/schemas/TornItemWeaponTypeEnum"
35735
+ },
35736
+ {
35737
+ "type": "null"
35738
+ }
35739
+ ]
35740
+ }
35741
+ },
35742
+ "type": "object"
35743
+ }
35744
+ ]
35745
+ },
34619
35746
  "TornItemDetailsResponse": {
34620
35747
  "required": [
34621
35748
  "itemdetails"
34622
35749
  ],
34623
35750
  "properties": {
34624
35751
  "itemdetails": {
34625
- "$ref": "#/components/schemas/TornItemDetails"
35752
+ "description": "Starting 1st January 2027, this response will return only an array of TornItemDetails.",
35753
+ "oneOf": [
35754
+ {
35755
+ "type": "array",
35756
+ "items": {
35757
+ "$ref": "#/components/schemas/TornItemDetails"
35758
+ }
35759
+ },
35760
+ {
35761
+ "$ref": "#/components/schemas/TornItemDetailsDeprecated",
35762
+ "description": "This object is deprecated, and starting on 1st January 2027 it will be replaced with an array of TornItemDetails."
35763
+ }
35764
+ ]
34626
35765
  }
34627
35766
  },
34628
35767
  "type": "object"
@@ -36509,7 +37648,7 @@
36509
37648
  "TornSelectionName": {
36510
37649
  "oneOf": [
36511
37650
  {
36512
- "description": "The following selections will fallback to API v1 and may change at any time:'competition','itemstats','organisedcrimes','rockpaperscissors','stats'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars', 'pawnshop'.",
37651
+ "description": "The following selections will fallback to API v1 and may change at any time:'competition','organisedcrimes'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars', 'pawnshop'.",
36513
37652
  "type": "string",
36514
37653
  "enum": [
36515
37654
  "attacklog",
@@ -36531,6 +37670,7 @@
36531
37670
  "itemammo",
36532
37671
  "itemdetails",
36533
37672
  "itemmods",
37673
+ "itemstats",
36534
37674
  "items",
36535
37675
  "logcategories",
36536
37676
  "logtypes",
@@ -36541,17 +37681,16 @@
36541
37681
  "organizedcrimes",
36542
37682
  "pokertables",
36543
37683
  "properties",
37684
+ "rockpaperscissors",
36544
37685
  "searchforcash",
36545
37686
  "shoplifting",
37687
+ "stats",
36546
37688
  "stocks",
36547
37689
  "subcrimes",
36548
37690
  "territory",
36549
37691
  "timestamp",
36550
37692
  "competition",
36551
- "itemstats",
36552
- "organisedcrimes",
36553
- "rockpaperscissors",
36554
- "stats"
37693
+ "organisedcrimes"
36555
37694
  ]
36556
37695
  },
36557
37696
  {