tornapi-typescript 4.1.1 → 4.2.1

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": "4.1.1"
6
+ "version": "4.2.1"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -120,6 +120,45 @@
120
120
  "x-stability": "Stable"
121
121
  }
122
122
  },
123
+ "/user/bars": {
124
+ "get": {
125
+ "tags": [
126
+ "User"
127
+ ],
128
+ "summary": "Get your bars information",
129
+ "description": "Requires minimal access key. <br>",
130
+ "operationId": "62b16119fb11b6a4d12864987f2a7223",
131
+ "parameters": [
132
+ {
133
+ "$ref": "#/components/parameters/ApiTimestamp"
134
+ },
135
+ {
136
+ "$ref": "#/components/parameters/ApiComment"
137
+ },
138
+ {
139
+ "$ref": "#/components/parameters/ApiKeyMinimal"
140
+ }
141
+ ],
142
+ "responses": {
143
+ "200": {
144
+ "description": "Successful operation",
145
+ "content": {
146
+ "application/json": {
147
+ "schema": {
148
+ "$ref": "#/components/schemas/UserBarsResponse"
149
+ }
150
+ }
151
+ }
152
+ }
153
+ },
154
+ "security": [
155
+ {
156
+ "api_key": []
157
+ }
158
+ ],
159
+ "x-stability": "Unstable"
160
+ }
161
+ },
123
162
  "/user/basic": {
124
163
  "get": {
125
164
  "tags": [
@@ -213,14 +252,14 @@
213
252
  "x-stability": "Stable"
214
253
  }
215
254
  },
216
- "/user/bounties": {
255
+ "/user/battlestats": {
217
256
  "get": {
218
257
  "tags": [
219
258
  "User"
220
259
  ],
221
- "summary": "Get bounties placed on you",
222
- "description": "Requires public access key. <br>",
223
- "operationId": "c85fd102a25aaec3aa98611d0da6c219",
260
+ "summary": "Get your battlestats",
261
+ "description": "Requires limited access key. <br>",
262
+ "operationId": "b2395a36b6f5668ade16f460a593b236",
224
263
  "parameters": [
225
264
  {
226
265
  "$ref": "#/components/parameters/ApiTimestamp"
@@ -238,7 +277,7 @@
238
277
  "content": {
239
278
  "application/json": {
240
279
  "schema": {
241
- "$ref": "#/components/schemas/UserBountiesResponse"
280
+ "$ref": "#/components/schemas/UserBattleStatsResponse"
242
281
  }
243
282
  }
244
283
  }
@@ -252,14 +291,14 @@
252
291
  "x-stability": "Stable"
253
292
  }
254
293
  },
255
- "/user/battlestats": {
294
+ "/user/bounties": {
256
295
  "get": {
257
296
  "tags": [
258
297
  "User"
259
298
  ],
260
- "summary": "Get your battlestats",
261
- "description": "Requires limited access key. <br>",
262
- "operationId": "b2395a36b6f5668ade16f460a593b236",
299
+ "summary": "Get bounties placed on you",
300
+ "description": "Requires public access key. <br>",
301
+ "operationId": "c85fd102a25aaec3aa98611d0da6c219",
263
302
  "parameters": [
264
303
  {
265
304
  "$ref": "#/components/parameters/ApiTimestamp"
@@ -277,7 +316,7 @@
277
316
  "content": {
278
317
  "application/json": {
279
318
  "schema": {
280
- "$ref": "#/components/schemas/UserBattleStatsResponse"
319
+ "$ref": "#/components/schemas/UserBountiesResponse"
281
320
  }
282
321
  }
283
322
  }
@@ -288,7 +327,7 @@
288
327
  "api_key": []
289
328
  }
290
329
  ],
291
- "x-stability": "Unstable"
330
+ "x-stability": "Stable"
292
331
  }
293
332
  },
294
333
  "/user/{id}/bounties": {
@@ -465,6 +504,45 @@
465
504
  "x-stability": "Unstable"
466
505
  }
467
506
  },
507
+ "/user/cooldowns": {
508
+ "get": {
509
+ "tags": [
510
+ "User"
511
+ ],
512
+ "summary": "Get your cooldowns information",
513
+ "description": "Requires minimal access key. <br>",
514
+ "operationId": "fe1a505c4c4b83c667fa9e7313045d8b",
515
+ "parameters": [
516
+ {
517
+ "$ref": "#/components/parameters/ApiTimestamp"
518
+ },
519
+ {
520
+ "$ref": "#/components/parameters/ApiComment"
521
+ },
522
+ {
523
+ "$ref": "#/components/parameters/ApiKeyMinimal"
524
+ }
525
+ ],
526
+ "responses": {
527
+ "200": {
528
+ "description": "Successful operation",
529
+ "content": {
530
+ "application/json": {
531
+ "schema": {
532
+ "$ref": "#/components/schemas/UserCooldownsResponse"
533
+ }
534
+ }
535
+ }
536
+ }
537
+ },
538
+ "security": [
539
+ {
540
+ "api_key": []
541
+ }
542
+ ],
543
+ "x-stability": "Unstable"
544
+ }
545
+ },
468
546
  "/user/{crimeId}/crimes": {
469
547
  "get": {
470
548
  "tags": [
@@ -549,7 +627,7 @@
549
627
  "api_key": []
550
628
  }
551
629
  ],
552
- "x-stability": "Unstable"
630
+ "x-stability": "Stable"
553
631
  }
554
632
  },
555
633
  "/user/enlistedcars": {
@@ -1492,7 +1570,7 @@
1492
1570
  "api_key": []
1493
1571
  }
1494
1572
  ],
1495
- "x-stability": "Unstable"
1573
+ "x-stability": "Stable"
1496
1574
  }
1497
1575
  },
1498
1576
  "/user/jobranks": {
@@ -1662,7 +1740,7 @@
1662
1740
  "api_key": []
1663
1741
  }
1664
1742
  ],
1665
- "x-stability": "Unstable"
1743
+ "x-stability": "Stable"
1666
1744
  }
1667
1745
  },
1668
1746
  "/user/medals": {
@@ -1830,7 +1908,7 @@
1830
1908
  "api_key": []
1831
1909
  }
1832
1910
  ],
1833
- "x-stability": "Unstable"
1911
+ "x-stability": "Stable"
1834
1912
  }
1835
1913
  },
1836
1914
  "/user/newevents": {
@@ -1914,6 +1992,45 @@
1914
1992
  "x-stability": "Unstable"
1915
1993
  }
1916
1994
  },
1995
+ "/user/notifications": {
1996
+ "get": {
1997
+ "tags": [
1998
+ "User"
1999
+ ],
2000
+ "summary": "Get your notifications",
2001
+ "description": "Requires minimal access key. <br>",
2002
+ "operationId": "6c73f06efc23903e15343c95e426b7ad",
2003
+ "parameters": [
2004
+ {
2005
+ "$ref": "#/components/parameters/ApiTimestamp"
2006
+ },
2007
+ {
2008
+ "$ref": "#/components/parameters/ApiComment"
2009
+ },
2010
+ {
2011
+ "$ref": "#/components/parameters/ApiKeyMinimal"
2012
+ }
2013
+ ],
2014
+ "responses": {
2015
+ "200": {
2016
+ "description": "Successful operation",
2017
+ "content": {
2018
+ "application/json": {
2019
+ "schema": {
2020
+ "$ref": "#/components/schemas/UserNotificationsResponse"
2021
+ }
2022
+ }
2023
+ }
2024
+ }
2025
+ },
2026
+ "security": [
2027
+ {
2028
+ "api_key": []
2029
+ }
2030
+ ],
2031
+ "x-stability": "Unstable"
2032
+ }
2033
+ },
1917
2034
  "/user/organizedcrime": {
1918
2035
  "get": {
1919
2036
  "tags": [
@@ -2238,7 +2355,7 @@
2238
2355
  "api_key": []
2239
2356
  }
2240
2357
  ],
2241
- "x-stability": "Unstable"
2358
+ "x-stability": "Stable"
2242
2359
  }
2243
2360
  },
2244
2361
  "/user/{id}/properties": {
@@ -2295,7 +2412,7 @@
2295
2412
  "api_key": []
2296
2413
  }
2297
2414
  ],
2298
- "x-stability": "Unstable"
2415
+ "x-stability": "Stable"
2299
2416
  }
2300
2417
  },
2301
2418
  "/user/property": {
@@ -2334,7 +2451,7 @@
2334
2451
  "api_key": []
2335
2452
  }
2336
2453
  ],
2337
- "x-stability": "Unstable"
2454
+ "x-stability": "Stable"
2338
2455
  }
2339
2456
  },
2340
2457
  "/user/{id}/property": {
@@ -2382,7 +2499,7 @@
2382
2499
  "api_key": []
2383
2500
  }
2384
2501
  ],
2385
- "x-stability": "Unstable"
2502
+ "x-stability": "Stable"
2386
2503
  }
2387
2504
  },
2388
2505
  "/user/races": {
@@ -2481,6 +2598,45 @@
2481
2598
  "api_key": []
2482
2599
  }
2483
2600
  ],
2601
+ "x-stability": "Stable"
2602
+ }
2603
+ },
2604
+ "/user/refills": {
2605
+ "get": {
2606
+ "tags": [
2607
+ "User"
2608
+ ],
2609
+ "summary": "Get your refills information",
2610
+ "description": "Requires minimal access key. <br>",
2611
+ "operationId": "f504d71a34f5cb3398bee32d6f67ee0e",
2612
+ "parameters": [
2613
+ {
2614
+ "$ref": "#/components/parameters/ApiTimestamp"
2615
+ },
2616
+ {
2617
+ "$ref": "#/components/parameters/ApiComment"
2618
+ },
2619
+ {
2620
+ "$ref": "#/components/parameters/ApiKeyMinimal"
2621
+ }
2622
+ ],
2623
+ "responses": {
2624
+ "200": {
2625
+ "description": "Successful operation",
2626
+ "content": {
2627
+ "application/json": {
2628
+ "schema": {
2629
+ "$ref": "#/components/schemas/UserRefillsResponse"
2630
+ }
2631
+ }
2632
+ }
2633
+ }
2634
+ },
2635
+ "security": [
2636
+ {
2637
+ "api_key": []
2638
+ }
2639
+ ],
2484
2640
  "x-stability": "Unstable"
2485
2641
  }
2486
2642
  },
@@ -2544,7 +2700,7 @@
2544
2700
  "api_key": []
2545
2701
  }
2546
2702
  ],
2547
- "x-stability": "Unstable"
2703
+ "x-stability": "Stable"
2548
2704
  }
2549
2705
  },
2550
2706
  "/user/revives": {
@@ -2697,6 +2853,84 @@
2697
2853
  "api_key": []
2698
2854
  }
2699
2855
  ],
2856
+ "x-stability": "Stable"
2857
+ }
2858
+ },
2859
+ "/user/travel": {
2860
+ "get": {
2861
+ "tags": [
2862
+ "User"
2863
+ ],
2864
+ "summary": "Get your travel information",
2865
+ "description": "Requires minimal access key. <br>",
2866
+ "operationId": "b129b86b2f3902d6f875da827d0dee17",
2867
+ "parameters": [
2868
+ {
2869
+ "$ref": "#/components/parameters/ApiTimestamp"
2870
+ },
2871
+ {
2872
+ "$ref": "#/components/parameters/ApiComment"
2873
+ },
2874
+ {
2875
+ "$ref": "#/components/parameters/ApiKeyMinimal"
2876
+ }
2877
+ ],
2878
+ "responses": {
2879
+ "200": {
2880
+ "description": "Successful operation",
2881
+ "content": {
2882
+ "application/json": {
2883
+ "schema": {
2884
+ "$ref": "#/components/schemas/UserTravelResponse"
2885
+ }
2886
+ }
2887
+ }
2888
+ }
2889
+ },
2890
+ "security": [
2891
+ {
2892
+ "api_key": []
2893
+ }
2894
+ ],
2895
+ "x-stability": "Unstable"
2896
+ }
2897
+ },
2898
+ "/user/virus": {
2899
+ "get": {
2900
+ "tags": [
2901
+ "User"
2902
+ ],
2903
+ "summary": "Get your virus information",
2904
+ "description": "Requires minimal access key. <br>",
2905
+ "operationId": "5e94a9ab2363bed4a7dfdef02ce135f6",
2906
+ "parameters": [
2907
+ {
2908
+ "$ref": "#/components/parameters/ApiTimestamp"
2909
+ },
2910
+ {
2911
+ "$ref": "#/components/parameters/ApiComment"
2912
+ },
2913
+ {
2914
+ "$ref": "#/components/parameters/ApiKeyMinimal"
2915
+ }
2916
+ ],
2917
+ "responses": {
2918
+ "200": {
2919
+ "description": "Successful operation",
2920
+ "content": {
2921
+ "application/json": {
2922
+ "schema": {
2923
+ "$ref": "#/components/schemas/UserVirusResponse"
2924
+ }
2925
+ }
2926
+ }
2927
+ }
2928
+ },
2929
+ "security": [
2930
+ {
2931
+ "api_key": []
2932
+ }
2933
+ ],
2700
2934
  "x-stability": "Unstable"
2701
2935
  }
2702
2936
  },
@@ -3043,6 +3277,24 @@
3043
3277
  {
3044
3278
  "$ref": "#/components/schemas/FactionAttacksResponse"
3045
3279
  },
3280
+ {
3281
+ "$ref": "#/components/schemas/UserBarsResponse"
3282
+ },
3283
+ {
3284
+ "$ref": "#/components/schemas/UserCooldownsResponse"
3285
+ },
3286
+ {
3287
+ "$ref": "#/components/schemas/UserNotificationsResponse"
3288
+ },
3289
+ {
3290
+ "$ref": "#/components/schemas/UserRefillsResponse"
3291
+ },
3292
+ {
3293
+ "$ref": "#/components/schemas/UserTravelResponse"
3294
+ },
3295
+ {
3296
+ "$ref": "#/components/schemas/UserVirusResponse"
3297
+ },
3046
3298
  {
3047
3299
  "$ref": "#/components/schemas/FactionAttacksFullResponse"
3048
3300
  },
@@ -3709,7 +3961,7 @@
3709
3961
  "api_key": []
3710
3962
  }
3711
3963
  ],
3712
- "x-stability": "Unstable"
3964
+ "x-stability": "Stable"
3713
3965
  }
3714
3966
  },
3715
3967
  "/faction/crimes": {
@@ -4124,7 +4376,7 @@
4124
4376
  "api_key": []
4125
4377
  }
4126
4378
  ],
4127
- "x-stability": "Unstable"
4379
+ "x-stability": "Stable"
4128
4380
  }
4129
4381
  },
4130
4382
  "/faction/rackets": {
@@ -4163,7 +4415,7 @@
4163
4415
  "api_key": []
4164
4416
  }
4165
4417
  ],
4166
- "x-stability": "Unstable"
4418
+ "x-stability": "Stable"
4167
4419
  }
4168
4420
  },
4169
4421
  "/faction/{raidWarId}/raidreport": {
@@ -4211,7 +4463,7 @@
4211
4463
  "api_key": []
4212
4464
  }
4213
4465
  ],
4214
- "x-stability": "Unstable"
4466
+ "x-stability": "Stable"
4215
4467
  }
4216
4468
  },
4217
4469
  "/faction/raids": {
@@ -4232,6 +4484,9 @@
4232
4484
  {
4233
4485
  "$ref": "#/components/parameters/ApiSortDesc"
4234
4486
  },
4487
+ {
4488
+ "$ref": "#/components/parameters/ApiLimit100Default20"
4489
+ },
4235
4490
  {
4236
4491
  "$ref": "#/components/parameters/ApiTimestamp"
4237
4492
  },
@@ -4259,7 +4514,7 @@
4259
4514
  "api_key": []
4260
4515
  }
4261
4516
  ],
4262
- "x-stability": "Unstable"
4517
+ "x-stability": "Stable"
4263
4518
  }
4264
4519
  },
4265
4520
  "/faction/{id}/raids": {
@@ -4280,6 +4535,18 @@
4280
4535
  "$ref": "#/components/schemas/FactionId"
4281
4536
  }
4282
4537
  },
4538
+ {
4539
+ "$ref": "#/components/parameters/ApiFrom"
4540
+ },
4541
+ {
4542
+ "$ref": "#/components/parameters/ApiTo"
4543
+ },
4544
+ {
4545
+ "$ref": "#/components/parameters/ApiSortDesc"
4546
+ },
4547
+ {
4548
+ "$ref": "#/components/parameters/ApiLimit100Default20"
4549
+ },
4283
4550
  {
4284
4551
  "$ref": "#/components/parameters/ApiTimestamp"
4285
4552
  },
@@ -4307,7 +4574,7 @@
4307
4574
  "api_key": []
4308
4575
  }
4309
4576
  ],
4310
- "x-stability": "Unstable"
4577
+ "x-stability": "Stable"
4311
4578
  }
4312
4579
  },
4313
4580
  "/faction/rankedwars": {
@@ -4316,17 +4583,26 @@
4316
4583
  "Faction"
4317
4584
  ],
4318
4585
  "summary": "Get ranked wars history for your faction",
4319
- "description": "Requires public access key. <br>",
4586
+ "description": "Requires public access key. <br> Use offset to get older results which are always ordered descending.",
4320
4587
  "operationId": "4f5d624a86e2d389a7a738b6b3ce8c9e",
4321
4588
  "parameters": [
4322
4589
  {
4323
- "$ref": "#/components/parameters/ApiFrom"
4590
+ "$ref": "#/components/parameters/ApiOffset"
4324
4591
  },
4325
4592
  {
4326
- "$ref": "#/components/parameters/ApiTo"
4593
+ "$ref": "#/components/parameters/ApiLimit100Default20"
4327
4594
  },
4328
4595
  {
4329
- "$ref": "#/components/parameters/ApiSortDesc"
4596
+ "$ref": "#/components/parameters/ApiFrom",
4597
+ "description": "No longer has any impact on results."
4598
+ },
4599
+ {
4600
+ "$ref": "#/components/parameters/ApiTo",
4601
+ "description": "No longer has any impact on results."
4602
+ },
4603
+ {
4604
+ "$ref": "#/components/parameters/ApiSortDesc",
4605
+ "description": "No longer has any impact on results."
4330
4606
  },
4331
4607
  {
4332
4608
  "$ref": "#/components/parameters/ApiTimestamp"
@@ -4364,7 +4640,7 @@
4364
4640
  "Faction"
4365
4641
  ],
4366
4642
  "summary": "Get a faction's ranked wars history",
4367
- "description": "Requires public access key. <br> ",
4643
+ "description": "Requires public access key. <br> Use offset to get older results which are always ordered descending.",
4368
4644
  "operationId": "5b6646714e5ae1cc397bdec877f55691",
4369
4645
  "parameters": [
4370
4646
  {
@@ -4376,6 +4652,12 @@
4376
4652
  "$ref": "#/components/schemas/FactionId"
4377
4653
  }
4378
4654
  },
4655
+ {
4656
+ "$ref": "#/components/parameters/ApiOffset"
4657
+ },
4658
+ {
4659
+ "$ref": "#/components/parameters/ApiLimit100Default20"
4660
+ },
4379
4661
  {
4380
4662
  "$ref": "#/components/parameters/ApiTimestamp"
4381
4663
  },
@@ -4514,7 +4796,7 @@
4514
4796
  "api_key": []
4515
4797
  }
4516
4798
  ],
4517
- "x-stability": "Unstable"
4799
+ "x-stability": "Stable"
4518
4800
  }
4519
4801
  },
4520
4802
  "/faction/revives": {
@@ -4679,7 +4961,7 @@
4679
4961
  "api_key": []
4680
4962
  }
4681
4963
  ],
4682
- "x-stability": "Unstable"
4964
+ "x-stability": "Stable"
4683
4965
  }
4684
4966
  },
4685
4967
  "/faction/stats": {
@@ -4718,7 +5000,7 @@
4718
5000
  "api_key": []
4719
5001
  }
4720
5002
  ],
4721
- "x-stability": "Unstable"
5003
+ "x-stability": "Stable"
4722
5004
  }
4723
5005
  },
4724
5006
  "/faction/territory": {
@@ -4757,7 +5039,7 @@
4757
5039
  "api_key": []
4758
5040
  }
4759
5041
  ],
4760
- "x-stability": "Unstable"
5042
+ "x-stability": "Stable"
4761
5043
  }
4762
5044
  },
4763
5045
  "/faction/{id}/territory": {
@@ -4805,7 +5087,7 @@
4805
5087
  "api_key": []
4806
5088
  }
4807
5089
  ],
4808
- "x-stability": "Unstable"
5090
+ "x-stability": "Stable"
4809
5091
  }
4810
5092
  },
4811
5093
  "/faction/territoryownership": {
@@ -4850,7 +5132,7 @@
4850
5132
  "api_key": []
4851
5133
  }
4852
5134
  ],
4853
- "x-stability": "Unstable"
5135
+ "x-stability": "Stable"
4854
5136
  }
4855
5137
  },
4856
5138
  "/faction/territorywars": {
@@ -4901,7 +5183,7 @@
4901
5183
  "api_key": []
4902
5184
  }
4903
5185
  ],
4904
- "x-stability": "Unstable"
5186
+ "x-stability": "Stable"
4905
5187
  }
4906
5188
  },
4907
5189
  "/faction/{id}/territorywars": {
@@ -4922,6 +5204,18 @@
4922
5204
  "$ref": "#/components/schemas/FactionId"
4923
5205
  }
4924
5206
  },
5207
+ {
5208
+ "$ref": "#/components/parameters/ApiFrom"
5209
+ },
5210
+ {
5211
+ "$ref": "#/components/parameters/ApiTo"
5212
+ },
5213
+ {
5214
+ "$ref": "#/components/parameters/ApiSortDesc"
5215
+ },
5216
+ {
5217
+ "$ref": "#/components/parameters/ApiLimit100"
5218
+ },
4925
5219
  {
4926
5220
  "$ref": "#/components/parameters/ApiTimestamp"
4927
5221
  },
@@ -4949,7 +5243,7 @@
4949
5243
  "api_key": []
4950
5244
  }
4951
5245
  ],
4952
- "x-stability": "Unstable"
5246
+ "x-stability": "Stable"
4953
5247
  }
4954
5248
  },
4955
5249
  "/faction/{territoryWarId}/territorywarreport": {
@@ -4997,7 +5291,7 @@
4997
5291
  "api_key": []
4998
5292
  }
4999
5293
  ],
5000
- "x-stability": "Unstable"
5294
+ "x-stability": "Stable"
5001
5295
  }
5002
5296
  },
5003
5297
  "/faction/upgrades": {
@@ -5036,7 +5330,7 @@
5036
5330
  "api_key": []
5037
5331
  }
5038
5332
  ],
5039
- "x-stability": "Unstable"
5333
+ "x-stability": "Stable"
5040
5334
  }
5041
5335
  },
5042
5336
  "/faction/warfare": {
@@ -6037,7 +6331,7 @@
6037
6331
  "api_key": []
6038
6332
  }
6039
6333
  ],
6040
- "x-stability": "Unstable"
6334
+ "x-stability": "Stable"
6041
6335
  }
6042
6336
  },
6043
6337
  "/key/info": {
@@ -6076,7 +6370,7 @@
6076
6370
  "api_key": []
6077
6371
  }
6078
6372
  ],
6079
- "x-stability": "Unstable"
6373
+ "x-stability": "Stable"
6080
6374
  }
6081
6375
  },
6082
6376
  "/key": {
@@ -6189,7 +6483,7 @@
6189
6483
  "api_key": []
6190
6484
  }
6191
6485
  ],
6192
- "x-stability": "Unstable"
6486
+ "x-stability": "Stable"
6193
6487
  }
6194
6488
  },
6195
6489
  "/market/{id}/bazaar": {
@@ -6237,7 +6531,7 @@
6237
6531
  "api_key": []
6238
6532
  }
6239
6533
  ],
6240
- "x-stability": "Unstable"
6534
+ "x-stability": "Stable"
6241
6535
  }
6242
6536
  },
6243
6537
  "/market/{id}/itemmarket": {
@@ -6267,6 +6561,9 @@
6267
6561
  "$ref": "#/components/schemas/WeaponBonusEnum"
6268
6562
  }
6269
6563
  },
6564
+ {
6565
+ "$ref": "#/components/parameters/ApiLimit100Default20"
6566
+ },
6270
6567
  {
6271
6568
  "$ref": "#/components/parameters/ApiOffset"
6272
6569
  },
@@ -6297,7 +6594,7 @@
6297
6594
  "api_key": []
6298
6595
  }
6299
6596
  ],
6300
- "x-stability": "Unstable"
6597
+ "x-stability": "Stable"
6301
6598
  }
6302
6599
  },
6303
6600
  "/market/{propertyTypeId}/properties": {
@@ -6354,7 +6651,7 @@
6354
6651
  "api_key": []
6355
6652
  }
6356
6653
  ],
6357
- "x-stability": "Unstable"
6654
+ "x-stability": "Stable"
6358
6655
  }
6359
6656
  },
6360
6657
  "/market/{propertyTypeId}/rentals": {
@@ -6411,7 +6708,7 @@
6411
6708
  "api_key": []
6412
6709
  }
6413
6710
  ],
6414
- "x-stability": "Unstable"
6711
+ "x-stability": "Stable"
6415
6712
  }
6416
6713
  },
6417
6714
  "/market/lookup": {
@@ -7164,7 +7461,7 @@
7164
7461
  "api_key": []
7165
7462
  }
7166
7463
  ],
7167
- "x-stability": "Unstable"
7464
+ "x-stability": "Stable"
7168
7465
  }
7169
7466
  },
7170
7467
  "/property/lookup": {
@@ -7533,7 +7830,7 @@
7533
7830
  "api_key": []
7534
7831
  }
7535
7832
  ],
7536
- "x-stability": "Unstable"
7833
+ "x-stability": "Stable"
7537
7834
  }
7538
7835
  },
7539
7836
  "/torn/factionhof": {
@@ -7626,7 +7923,7 @@
7626
7923
  "api_key": []
7627
7924
  }
7628
7925
  ],
7629
- "x-stability": "Unstable"
7926
+ "x-stability": "Stable"
7630
7927
  }
7631
7928
  },
7632
7929
  "/torn/honors": {
@@ -7638,6 +7935,15 @@
7638
7935
  "description": "Requires public access key. <br>",
7639
7936
  "operationId": "4b7322594732b4e263f2e612f648e6a4",
7640
7937
  "parameters": [
7938
+ {
7939
+ "$ref": "#/components/parameters/ApiLimitDefault20"
7940
+ },
7941
+ {
7942
+ "$ref": "#/components/parameters/ApiOffset"
7943
+ },
7944
+ {
7945
+ "$ref": "#/components/parameters/ApiSort"
7946
+ },
7641
7947
  {
7642
7948
  "$ref": "#/components/parameters/ApiTimestamp"
7643
7949
  },
@@ -8253,7 +8559,7 @@
8253
8559
  "api_key": []
8254
8560
  }
8255
8561
  ],
8256
- "x-stability": "Unstable"
8562
+ "x-stability": "Stable"
8257
8563
  }
8258
8564
  },
8259
8565
  "/torn/properties": {
@@ -8292,7 +8598,7 @@
8292
8598
  "api_key": []
8293
8599
  }
8294
8600
  ],
8295
- "x-stability": "Unstable"
8601
+ "x-stability": "Stable"
8296
8602
  }
8297
8603
  },
8298
8604
  "/torn/{crimeId}/subcrimes": {
@@ -8399,7 +8705,7 @@
8399
8705
  "api_key": []
8400
8706
  }
8401
8707
  ],
8402
- "x-stability": "Unstable"
8708
+ "x-stability": "Stable"
8403
8709
  }
8404
8710
  },
8405
8711
  "/torn/lookup": {
@@ -8747,6 +9053,15 @@
8747
9053
  "airliner"
8748
9054
  ]
8749
9055
  },
9056
+ "UserFlyMethodEnum": {
9057
+ "type": "string",
9058
+ "enum": [
9059
+ "Private",
9060
+ "Business",
9061
+ "Airstrip",
9062
+ "Standard"
9063
+ ]
9064
+ },
8750
9065
  "UserStatusStateEnum": {
8751
9066
  "type": "string",
8752
9067
  "enum": [
@@ -8904,7 +9219,8 @@
8904
9219
  "Canada",
8905
9220
  "United Kingdom",
8906
9221
  "UAE",
8907
- "Cayman Islands"
9222
+ "Cayman Islands",
9223
+ "Torn"
8908
9224
  ]
8909
9225
  },
8910
9226
  "ReportTypeEnum": {
@@ -15191,6 +15507,295 @@
15191
15507
  }
15192
15508
  ]
15193
15509
  },
15510
+ "UserVirus": {
15511
+ "required": [
15512
+ "item",
15513
+ "until"
15514
+ ],
15515
+ "properties": {
15516
+ "item": {
15517
+ "required": [
15518
+ "id",
15519
+ "name"
15520
+ ],
15521
+ "properties": {
15522
+ "id": {
15523
+ "$ref": "#/components/schemas/ItemId"
15524
+ },
15525
+ "name": {
15526
+ "type": "string"
15527
+ }
15528
+ },
15529
+ "type": "object"
15530
+ },
15531
+ "until": {
15532
+ "type": "integer",
15533
+ "format": "int32"
15534
+ }
15535
+ },
15536
+ "type": "object"
15537
+ },
15538
+ "UserVirusResponse": {
15539
+ "required": [
15540
+ "virus"
15541
+ ],
15542
+ "properties": {
15543
+ "virus": {
15544
+ "description": "Null if the player is currently not programming a virus.",
15545
+ "oneOf": [
15546
+ {
15547
+ "$ref": "#/components/schemas/UserVirus"
15548
+ },
15549
+ {
15550
+ "type": "null"
15551
+ }
15552
+ ]
15553
+ }
15554
+ },
15555
+ "type": "object"
15556
+ },
15557
+ "UserTravelResponse": {
15558
+ "required": [
15559
+ "travel"
15560
+ ],
15561
+ "properties": {
15562
+ "travel": {
15563
+ "required": [
15564
+ "destination",
15565
+ "method",
15566
+ "departed_at",
15567
+ "arrival_at",
15568
+ "time_left"
15569
+ ],
15570
+ "properties": {
15571
+ "destination": {
15572
+ "$ref": "#/components/schemas/CountryEnum"
15573
+ },
15574
+ "method": {
15575
+ "description": "Null if the player has never flown before.",
15576
+ "oneOf": [
15577
+ {
15578
+ "$ref": "#/components/schemas/UserFlyMethodEnum"
15579
+ },
15580
+ {
15581
+ "type": "null"
15582
+ }
15583
+ ]
15584
+ },
15585
+ "departed_at": {
15586
+ "description": "Null if the player has never flown before.",
15587
+ "oneOf": [
15588
+ {
15589
+ "type": "integer",
15590
+ "format": "int32"
15591
+ },
15592
+ {
15593
+ "type": "null"
15594
+ }
15595
+ ]
15596
+ },
15597
+ "arrival_at": {
15598
+ "description": "Null if the player has never flown before.",
15599
+ "oneOf": [
15600
+ {
15601
+ "type": "integer",
15602
+ "format": "int32"
15603
+ },
15604
+ {
15605
+ "type": "null"
15606
+ }
15607
+ ]
15608
+ },
15609
+ "time_left": {
15610
+ "description": "Time left in seconds.",
15611
+ "type": "integer",
15612
+ "format": "int32"
15613
+ }
15614
+ },
15615
+ "type": "object"
15616
+ }
15617
+ },
15618
+ "type": "object"
15619
+ },
15620
+ "UserRefillsResponse": {
15621
+ "required": [
15622
+ "refills"
15623
+ ],
15624
+ "properties": {
15625
+ "refills": {
15626
+ "required": [
15627
+ "energy",
15628
+ "nerve",
15629
+ "token",
15630
+ "special_count"
15631
+ ],
15632
+ "properties": {
15633
+ "energy": {
15634
+ "type": "boolean"
15635
+ },
15636
+ "nerve": {
15637
+ "type": "boolean"
15638
+ },
15639
+ "token": {
15640
+ "type": "boolean"
15641
+ },
15642
+ "special_count": {
15643
+ "type": "integer",
15644
+ "format": "int32"
15645
+ }
15646
+ },
15647
+ "type": "object"
15648
+ }
15649
+ },
15650
+ "type": "object"
15651
+ },
15652
+ "UserNotificationsResponse": {
15653
+ "required": [
15654
+ "notifications"
15655
+ ],
15656
+ "properties": {
15657
+ "notifications": {
15658
+ "required": [
15659
+ "messages",
15660
+ "events",
15661
+ "awards",
15662
+ "competition"
15663
+ ],
15664
+ "properties": {
15665
+ "messages": {
15666
+ "type": "integer",
15667
+ "format": "int32"
15668
+ },
15669
+ "events": {
15670
+ "type": "integer",
15671
+ "format": "int32"
15672
+ },
15673
+ "awards": {
15674
+ "type": "integer",
15675
+ "format": "int32"
15676
+ },
15677
+ "competition": {
15678
+ "type": "integer",
15679
+ "format": "int32"
15680
+ }
15681
+ },
15682
+ "type": "object"
15683
+ }
15684
+ },
15685
+ "type": "object"
15686
+ },
15687
+ "UserCooldownsResponse": {
15688
+ "required": [
15689
+ "cooldowns"
15690
+ ],
15691
+ "properties": {
15692
+ "cooldowns": {
15693
+ "required": [
15694
+ "drug",
15695
+ "medical",
15696
+ "booster"
15697
+ ],
15698
+ "properties": {
15699
+ "drug": {
15700
+ "type": "integer",
15701
+ "format": "int32"
15702
+ },
15703
+ "medical": {
15704
+ "type": "integer",
15705
+ "format": "int32"
15706
+ },
15707
+ "booster": {
15708
+ "type": "integer",
15709
+ "format": "int32"
15710
+ }
15711
+ },
15712
+ "type": "object"
15713
+ }
15714
+ },
15715
+ "type": "object"
15716
+ },
15717
+ "UserBar": {
15718
+ "required": [
15719
+ "current",
15720
+ "maximum",
15721
+ "increment",
15722
+ "interval",
15723
+ "tick_time",
15724
+ "full_time"
15725
+ ],
15726
+ "properties": {
15727
+ "current": {
15728
+ "type": "integer",
15729
+ "format": "int32"
15730
+ },
15731
+ "maximum": {
15732
+ "type": "integer",
15733
+ "format": "int32"
15734
+ },
15735
+ "increment": {
15736
+ "type": "integer",
15737
+ "format": "int32"
15738
+ },
15739
+ "interval": {
15740
+ "type": "integer",
15741
+ "format": "int32"
15742
+ },
15743
+ "tick_time": {
15744
+ "type": "integer",
15745
+ "format": "int32"
15746
+ },
15747
+ "full_time": {
15748
+ "type": "integer",
15749
+ "format": "int32"
15750
+ }
15751
+ },
15752
+ "type": "object"
15753
+ },
15754
+ "UserBars": {
15755
+ "required": [
15756
+ "energy",
15757
+ "nerve",
15758
+ "happy",
15759
+ "life",
15760
+ "chain"
15761
+ ],
15762
+ "properties": {
15763
+ "energy": {
15764
+ "$ref": "#/components/schemas/UserBar"
15765
+ },
15766
+ "nerve": {
15767
+ "$ref": "#/components/schemas/UserBar"
15768
+ },
15769
+ "happy": {
15770
+ "$ref": "#/components/schemas/UserBar"
15771
+ },
15772
+ "life": {
15773
+ "$ref": "#/components/schemas/UserBar"
15774
+ },
15775
+ "chain": {
15776
+ "oneOf": [
15777
+ {
15778
+ "$ref": "#/components/schemas/FactionOngoingChain"
15779
+ },
15780
+ {
15781
+ "type": "null"
15782
+ }
15783
+ ]
15784
+ }
15785
+ },
15786
+ "type": "object"
15787
+ },
15788
+ "UserBarsResponse": {
15789
+ "required": [
15790
+ "bars"
15791
+ ],
15792
+ "properties": {
15793
+ "bars": {
15794
+ "$ref": "#/components/schemas/UserBars"
15795
+ }
15796
+ },
15797
+ "type": "object"
15798
+ },
15194
15799
  "UserNewEventsResponse": {
15195
15800
  "required": [
15196
15801
  "events"
@@ -15717,10 +16322,24 @@
15717
16322
  "format": "int32"
15718
16323
  },
15719
16324
  "rank": {
15720
- "$ref": "#/components/schemas/UserRankEnum"
16325
+ "oneOf": [
16326
+ {
16327
+ "$ref": "#/components/schemas/UserRankEnum"
16328
+ },
16329
+ {
16330
+ "type": "string"
16331
+ }
16332
+ ]
15721
16333
  },
15722
16334
  "title": {
15723
- "$ref": "#/components/schemas/UserTitleEnum"
16335
+ "oneOf": [
16336
+ {
16337
+ "$ref": "#/components/schemas/UserTitleEnum"
16338
+ },
16339
+ {
16340
+ "type": "string"
16341
+ }
16342
+ ]
15724
16343
  },
15725
16344
  "donator_status": {
15726
16345
  "oneOf": [
@@ -18077,16 +18696,18 @@
18077
18696
  "UserSelectionName": {
18078
18697
  "oneOf": [
18079
18698
  {
18080
- "description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','gym','inventory','missions','networth','notifications','perks','refills','stocks','travel','weaponexp'.",
18699
+ "description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bazaar','criminalrecord','discord','display','equipment','gym','inventory','missions','networth','perks','stocks','weaponexp'.",
18081
18700
  "type": "string",
18082
18701
  "enum": [
18083
18702
  "attacks",
18084
18703
  "attacksfull",
18704
+ "bars",
18085
18705
  "basic",
18086
18706
  "battlestats",
18087
18707
  "bounties",
18088
18708
  "calendar",
18089
18709
  "competition",
18710
+ "cooldowns",
18090
18711
  "crimes",
18091
18712
  "enlistedcars",
18092
18713
  "events",
@@ -18113,6 +18734,7 @@
18113
18734
  "money",
18114
18735
  "newevents",
18115
18736
  "newmessages",
18737
+ "notifications",
18116
18738
  "organizedcrime",
18117
18739
  "personalstats",
18118
18740
  "profile",
@@ -18120,16 +18742,16 @@
18120
18742
  "property",
18121
18743
  "races",
18122
18744
  "racingrecords",
18745
+ "refills",
18123
18746
  "reports",
18124
18747
  "revives",
18125
18748
  "revivesfull",
18126
18749
  "skills",
18127
18750
  "timestamp",
18751
+ "travel",
18128
18752
  "workstats",
18129
18753
  "ammo",
18130
- "bars",
18131
18754
  "bazaar",
18132
- "cooldowns",
18133
18755
  "criminalrecord",
18134
18756
  "discord",
18135
18757
  "display",
@@ -18139,11 +18761,8 @@
18139
18761
  "inventory",
18140
18762
  "missions",
18141
18763
  "networth",
18142
- "notifications",
18143
18764
  "perks",
18144
- "refills",
18145
18765
  "stocks",
18146
- "travel",
18147
18766
  "weaponexp"
18148
18767
  ]
18149
18768
  },
@@ -28689,6 +29308,17 @@
28689
29308
  "minimum": 1
28690
29309
  }
28691
29310
  },
29311
+ "ApiLimitDefault20": {
29312
+ "name": "limit",
29313
+ "in": "query",
29314
+ "required": false,
29315
+ "schema": {
29316
+ "type": "integer",
29317
+ "format": "int32",
29318
+ "default": 20,
29319
+ "minimum": 1
29320
+ }
29321
+ },
28692
29322
  "ApiTarget": {
28693
29323
  "name": "target",
28694
29324
  "in": "query",