tornapi-typescript 4.1.0 → 4.2.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/index.d.ts +91 -5
- package/dist/index.ts +112 -5
- package/dist/openapi.json +617 -49
- package/package.json +2 -2
package/dist/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Torn API",
|
|
5
5
|
"description": "\n * The development of Torn's API v2 is still ongoing.\n * If selections remain unaltered, they will default to the API v1 version.\n * Unlike API v1, API v2 accepts both selections and IDs as path and query parameters.\n * If any discrepancies or errors are found, please submit a [bug report](https://www.torn.com/forums.php#/p=forums&f=19&b=0&a=0) on the Torn Forums.\n * In case you're using bots to check for changes on openapi.json file, make sure to specificy a custom user-agent header - CloudFlare sometimes prevents requests from default user-agents.",
|
|
6
|
-
"version": "4.
|
|
6
|
+
"version": "4.2.0"
|
|
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": [
|
|
@@ -288,7 +327,7 @@
|
|
|
288
327
|
"api_key": []
|
|
289
328
|
}
|
|
290
329
|
],
|
|
291
|
-
"x-stability": "
|
|
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": "
|
|
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": "
|
|
1573
|
+
"x-stability": "Stable"
|
|
1496
1574
|
}
|
|
1497
1575
|
},
|
|
1498
1576
|
"/user/jobranks": {
|
|
@@ -1552,6 +1630,9 @@
|
|
|
1552
1630
|
"$ref": "#/components/schemas/UserListEnum"
|
|
1553
1631
|
}
|
|
1554
1632
|
},
|
|
1633
|
+
{
|
|
1634
|
+
"$ref": "#/components/parameters/ApiStripTagsTrue"
|
|
1635
|
+
},
|
|
1555
1636
|
{
|
|
1556
1637
|
"$ref": "#/components/parameters/ApiLimit50"
|
|
1557
1638
|
},
|
|
@@ -1659,7 +1740,7 @@
|
|
|
1659
1740
|
"api_key": []
|
|
1660
1741
|
}
|
|
1661
1742
|
],
|
|
1662
|
-
"x-stability": "
|
|
1743
|
+
"x-stability": "Stable"
|
|
1663
1744
|
}
|
|
1664
1745
|
},
|
|
1665
1746
|
"/user/medals": {
|
|
@@ -1827,7 +1908,7 @@
|
|
|
1827
1908
|
"api_key": []
|
|
1828
1909
|
}
|
|
1829
1910
|
],
|
|
1830
|
-
"x-stability": "
|
|
1911
|
+
"x-stability": "Stable"
|
|
1831
1912
|
}
|
|
1832
1913
|
},
|
|
1833
1914
|
"/user/newevents": {
|
|
@@ -1911,6 +1992,45 @@
|
|
|
1911
1992
|
"x-stability": "Unstable"
|
|
1912
1993
|
}
|
|
1913
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
|
+
},
|
|
1914
2034
|
"/user/organizedcrime": {
|
|
1915
2035
|
"get": {
|
|
1916
2036
|
"tags": [
|
|
@@ -2235,7 +2355,7 @@
|
|
|
2235
2355
|
"api_key": []
|
|
2236
2356
|
}
|
|
2237
2357
|
],
|
|
2238
|
-
"x-stability": "
|
|
2358
|
+
"x-stability": "Stable"
|
|
2239
2359
|
}
|
|
2240
2360
|
},
|
|
2241
2361
|
"/user/{id}/properties": {
|
|
@@ -2292,7 +2412,7 @@
|
|
|
2292
2412
|
"api_key": []
|
|
2293
2413
|
}
|
|
2294
2414
|
],
|
|
2295
|
-
"x-stability": "
|
|
2415
|
+
"x-stability": "Stable"
|
|
2296
2416
|
}
|
|
2297
2417
|
},
|
|
2298
2418
|
"/user/property": {
|
|
@@ -2331,7 +2451,7 @@
|
|
|
2331
2451
|
"api_key": []
|
|
2332
2452
|
}
|
|
2333
2453
|
],
|
|
2334
|
-
"x-stability": "
|
|
2454
|
+
"x-stability": "Stable"
|
|
2335
2455
|
}
|
|
2336
2456
|
},
|
|
2337
2457
|
"/user/{id}/property": {
|
|
@@ -2379,7 +2499,7 @@
|
|
|
2379
2499
|
"api_key": []
|
|
2380
2500
|
}
|
|
2381
2501
|
],
|
|
2382
|
-
"x-stability": "
|
|
2502
|
+
"x-stability": "Stable"
|
|
2383
2503
|
}
|
|
2384
2504
|
},
|
|
2385
2505
|
"/user/races": {
|
|
@@ -2478,6 +2598,45 @@
|
|
|
2478
2598
|
"api_key": []
|
|
2479
2599
|
}
|
|
2480
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
|
+
],
|
|
2481
2640
|
"x-stability": "Unstable"
|
|
2482
2641
|
}
|
|
2483
2642
|
},
|
|
@@ -2541,7 +2700,7 @@
|
|
|
2541
2700
|
"api_key": []
|
|
2542
2701
|
}
|
|
2543
2702
|
],
|
|
2544
|
-
"x-stability": "
|
|
2703
|
+
"x-stability": "Stable"
|
|
2545
2704
|
}
|
|
2546
2705
|
},
|
|
2547
2706
|
"/user/revives": {
|
|
@@ -2694,6 +2853,84 @@
|
|
|
2694
2853
|
"api_key": []
|
|
2695
2854
|
}
|
|
2696
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
|
+
],
|
|
2697
2934
|
"x-stability": "Unstable"
|
|
2698
2935
|
}
|
|
2699
2936
|
},
|
|
@@ -3040,6 +3277,24 @@
|
|
|
3040
3277
|
{
|
|
3041
3278
|
"$ref": "#/components/schemas/FactionAttacksResponse"
|
|
3042
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
|
+
},
|
|
3043
3298
|
{
|
|
3044
3299
|
"$ref": "#/components/schemas/FactionAttacksFullResponse"
|
|
3045
3300
|
},
|
|
@@ -3706,7 +3961,7 @@
|
|
|
3706
3961
|
"api_key": []
|
|
3707
3962
|
}
|
|
3708
3963
|
],
|
|
3709
|
-
"x-stability": "
|
|
3964
|
+
"x-stability": "Stable"
|
|
3710
3965
|
}
|
|
3711
3966
|
},
|
|
3712
3967
|
"/faction/crimes": {
|
|
@@ -4121,7 +4376,7 @@
|
|
|
4121
4376
|
"api_key": []
|
|
4122
4377
|
}
|
|
4123
4378
|
],
|
|
4124
|
-
"x-stability": "
|
|
4379
|
+
"x-stability": "Stable"
|
|
4125
4380
|
}
|
|
4126
4381
|
},
|
|
4127
4382
|
"/faction/rackets": {
|
|
@@ -4160,7 +4415,7 @@
|
|
|
4160
4415
|
"api_key": []
|
|
4161
4416
|
}
|
|
4162
4417
|
],
|
|
4163
|
-
"x-stability": "
|
|
4418
|
+
"x-stability": "Stable"
|
|
4164
4419
|
}
|
|
4165
4420
|
},
|
|
4166
4421
|
"/faction/{raidWarId}/raidreport": {
|
|
@@ -4208,7 +4463,7 @@
|
|
|
4208
4463
|
"api_key": []
|
|
4209
4464
|
}
|
|
4210
4465
|
],
|
|
4211
|
-
"x-stability": "
|
|
4466
|
+
"x-stability": "Stable"
|
|
4212
4467
|
}
|
|
4213
4468
|
},
|
|
4214
4469
|
"/faction/raids": {
|
|
@@ -4256,7 +4511,7 @@
|
|
|
4256
4511
|
"api_key": []
|
|
4257
4512
|
}
|
|
4258
4513
|
],
|
|
4259
|
-
"x-stability": "
|
|
4514
|
+
"x-stability": "Stable"
|
|
4260
4515
|
}
|
|
4261
4516
|
},
|
|
4262
4517
|
"/faction/{id}/raids": {
|
|
@@ -4304,7 +4559,7 @@
|
|
|
4304
4559
|
"api_key": []
|
|
4305
4560
|
}
|
|
4306
4561
|
],
|
|
4307
|
-
"x-stability": "
|
|
4562
|
+
"x-stability": "Stable"
|
|
4308
4563
|
}
|
|
4309
4564
|
},
|
|
4310
4565
|
"/faction/rankedwars": {
|
|
@@ -4511,7 +4766,7 @@
|
|
|
4511
4766
|
"api_key": []
|
|
4512
4767
|
}
|
|
4513
4768
|
],
|
|
4514
|
-
"x-stability": "
|
|
4769
|
+
"x-stability": "Stable"
|
|
4515
4770
|
}
|
|
4516
4771
|
},
|
|
4517
4772
|
"/faction/revives": {
|
|
@@ -4676,7 +4931,7 @@
|
|
|
4676
4931
|
"api_key": []
|
|
4677
4932
|
}
|
|
4678
4933
|
],
|
|
4679
|
-
"x-stability": "
|
|
4934
|
+
"x-stability": "Stable"
|
|
4680
4935
|
}
|
|
4681
4936
|
},
|
|
4682
4937
|
"/faction/stats": {
|
|
@@ -4715,7 +4970,7 @@
|
|
|
4715
4970
|
"api_key": []
|
|
4716
4971
|
}
|
|
4717
4972
|
],
|
|
4718
|
-
"x-stability": "
|
|
4973
|
+
"x-stability": "Stable"
|
|
4719
4974
|
}
|
|
4720
4975
|
},
|
|
4721
4976
|
"/faction/territory": {
|
|
@@ -4754,7 +5009,7 @@
|
|
|
4754
5009
|
"api_key": []
|
|
4755
5010
|
}
|
|
4756
5011
|
],
|
|
4757
|
-
"x-stability": "
|
|
5012
|
+
"x-stability": "Stable"
|
|
4758
5013
|
}
|
|
4759
5014
|
},
|
|
4760
5015
|
"/faction/{id}/territory": {
|
|
@@ -4802,7 +5057,7 @@
|
|
|
4802
5057
|
"api_key": []
|
|
4803
5058
|
}
|
|
4804
5059
|
],
|
|
4805
|
-
"x-stability": "
|
|
5060
|
+
"x-stability": "Stable"
|
|
4806
5061
|
}
|
|
4807
5062
|
},
|
|
4808
5063
|
"/faction/territoryownership": {
|
|
@@ -4847,7 +5102,7 @@
|
|
|
4847
5102
|
"api_key": []
|
|
4848
5103
|
}
|
|
4849
5104
|
],
|
|
4850
|
-
"x-stability": "
|
|
5105
|
+
"x-stability": "Stable"
|
|
4851
5106
|
}
|
|
4852
5107
|
},
|
|
4853
5108
|
"/faction/territorywars": {
|
|
@@ -4898,7 +5153,7 @@
|
|
|
4898
5153
|
"api_key": []
|
|
4899
5154
|
}
|
|
4900
5155
|
],
|
|
4901
|
-
"x-stability": "
|
|
5156
|
+
"x-stability": "Stable"
|
|
4902
5157
|
}
|
|
4903
5158
|
},
|
|
4904
5159
|
"/faction/{id}/territorywars": {
|
|
@@ -4946,7 +5201,7 @@
|
|
|
4946
5201
|
"api_key": []
|
|
4947
5202
|
}
|
|
4948
5203
|
],
|
|
4949
|
-
"x-stability": "
|
|
5204
|
+
"x-stability": "Stable"
|
|
4950
5205
|
}
|
|
4951
5206
|
},
|
|
4952
5207
|
"/faction/{territoryWarId}/territorywarreport": {
|
|
@@ -4994,7 +5249,7 @@
|
|
|
4994
5249
|
"api_key": []
|
|
4995
5250
|
}
|
|
4996
5251
|
],
|
|
4997
|
-
"x-stability": "
|
|
5252
|
+
"x-stability": "Stable"
|
|
4998
5253
|
}
|
|
4999
5254
|
},
|
|
5000
5255
|
"/faction/upgrades": {
|
|
@@ -5033,7 +5288,7 @@
|
|
|
5033
5288
|
"api_key": []
|
|
5034
5289
|
}
|
|
5035
5290
|
],
|
|
5036
|
-
"x-stability": "
|
|
5291
|
+
"x-stability": "Stable"
|
|
5037
5292
|
}
|
|
5038
5293
|
},
|
|
5039
5294
|
"/faction/warfare": {
|
|
@@ -6034,7 +6289,7 @@
|
|
|
6034
6289
|
"api_key": []
|
|
6035
6290
|
}
|
|
6036
6291
|
],
|
|
6037
|
-
"x-stability": "
|
|
6292
|
+
"x-stability": "Stable"
|
|
6038
6293
|
}
|
|
6039
6294
|
},
|
|
6040
6295
|
"/key/info": {
|
|
@@ -6073,7 +6328,7 @@
|
|
|
6073
6328
|
"api_key": []
|
|
6074
6329
|
}
|
|
6075
6330
|
],
|
|
6076
|
-
"x-stability": "
|
|
6331
|
+
"x-stability": "Stable"
|
|
6077
6332
|
}
|
|
6078
6333
|
},
|
|
6079
6334
|
"/key": {
|
|
@@ -6186,7 +6441,7 @@
|
|
|
6186
6441
|
"api_key": []
|
|
6187
6442
|
}
|
|
6188
6443
|
],
|
|
6189
|
-
"x-stability": "
|
|
6444
|
+
"x-stability": "Stable"
|
|
6190
6445
|
}
|
|
6191
6446
|
},
|
|
6192
6447
|
"/market/{id}/bazaar": {
|
|
@@ -6234,7 +6489,7 @@
|
|
|
6234
6489
|
"api_key": []
|
|
6235
6490
|
}
|
|
6236
6491
|
],
|
|
6237
|
-
"x-stability": "
|
|
6492
|
+
"x-stability": "Stable"
|
|
6238
6493
|
}
|
|
6239
6494
|
},
|
|
6240
6495
|
"/market/{id}/itemmarket": {
|
|
@@ -6294,7 +6549,7 @@
|
|
|
6294
6549
|
"api_key": []
|
|
6295
6550
|
}
|
|
6296
6551
|
],
|
|
6297
|
-
"x-stability": "
|
|
6552
|
+
"x-stability": "Stable"
|
|
6298
6553
|
}
|
|
6299
6554
|
},
|
|
6300
6555
|
"/market/{propertyTypeId}/properties": {
|
|
@@ -6351,7 +6606,7 @@
|
|
|
6351
6606
|
"api_key": []
|
|
6352
6607
|
}
|
|
6353
6608
|
],
|
|
6354
|
-
"x-stability": "
|
|
6609
|
+
"x-stability": "Stable"
|
|
6355
6610
|
}
|
|
6356
6611
|
},
|
|
6357
6612
|
"/market/{propertyTypeId}/rentals": {
|
|
@@ -6408,7 +6663,7 @@
|
|
|
6408
6663
|
"api_key": []
|
|
6409
6664
|
}
|
|
6410
6665
|
],
|
|
6411
|
-
"x-stability": "
|
|
6666
|
+
"x-stability": "Stable"
|
|
6412
6667
|
}
|
|
6413
6668
|
},
|
|
6414
6669
|
"/market/lookup": {
|
|
@@ -7161,7 +7416,7 @@
|
|
|
7161
7416
|
"api_key": []
|
|
7162
7417
|
}
|
|
7163
7418
|
],
|
|
7164
|
-
"x-stability": "
|
|
7419
|
+
"x-stability": "Stable"
|
|
7165
7420
|
}
|
|
7166
7421
|
},
|
|
7167
7422
|
"/property/lookup": {
|
|
@@ -7530,7 +7785,7 @@
|
|
|
7530
7785
|
"api_key": []
|
|
7531
7786
|
}
|
|
7532
7787
|
],
|
|
7533
|
-
"x-stability": "
|
|
7788
|
+
"x-stability": "Stable"
|
|
7534
7789
|
}
|
|
7535
7790
|
},
|
|
7536
7791
|
"/torn/factionhof": {
|
|
@@ -7623,7 +7878,7 @@
|
|
|
7623
7878
|
"api_key": []
|
|
7624
7879
|
}
|
|
7625
7880
|
],
|
|
7626
|
-
"x-stability": "
|
|
7881
|
+
"x-stability": "Stable"
|
|
7627
7882
|
}
|
|
7628
7883
|
},
|
|
7629
7884
|
"/torn/honors": {
|
|
@@ -8250,7 +8505,7 @@
|
|
|
8250
8505
|
"api_key": []
|
|
8251
8506
|
}
|
|
8252
8507
|
],
|
|
8253
|
-
"x-stability": "
|
|
8508
|
+
"x-stability": "Stable"
|
|
8254
8509
|
}
|
|
8255
8510
|
},
|
|
8256
8511
|
"/torn/properties": {
|
|
@@ -8289,7 +8544,7 @@
|
|
|
8289
8544
|
"api_key": []
|
|
8290
8545
|
}
|
|
8291
8546
|
],
|
|
8292
|
-
"x-stability": "
|
|
8547
|
+
"x-stability": "Stable"
|
|
8293
8548
|
}
|
|
8294
8549
|
},
|
|
8295
8550
|
"/torn/{crimeId}/subcrimes": {
|
|
@@ -8396,7 +8651,7 @@
|
|
|
8396
8651
|
"api_key": []
|
|
8397
8652
|
}
|
|
8398
8653
|
],
|
|
8399
|
-
"x-stability": "
|
|
8654
|
+
"x-stability": "Stable"
|
|
8400
8655
|
}
|
|
8401
8656
|
},
|
|
8402
8657
|
"/torn/lookup": {
|
|
@@ -8744,6 +8999,15 @@
|
|
|
8744
8999
|
"airliner"
|
|
8745
9000
|
]
|
|
8746
9001
|
},
|
|
9002
|
+
"UserFlyMethodEnum": {
|
|
9003
|
+
"type": "string",
|
|
9004
|
+
"enum": [
|
|
9005
|
+
"Private",
|
|
9006
|
+
"Business",
|
|
9007
|
+
"Airstrip",
|
|
9008
|
+
"Standard"
|
|
9009
|
+
]
|
|
9010
|
+
},
|
|
8747
9011
|
"UserStatusStateEnum": {
|
|
8748
9012
|
"type": "string",
|
|
8749
9013
|
"enum": [
|
|
@@ -8901,7 +9165,8 @@
|
|
|
8901
9165
|
"Canada",
|
|
8902
9166
|
"United Kingdom",
|
|
8903
9167
|
"UAE",
|
|
8904
|
-
"Cayman Islands"
|
|
9168
|
+
"Cayman Islands",
|
|
9169
|
+
"Torn"
|
|
8905
9170
|
]
|
|
8906
9171
|
},
|
|
8907
9172
|
"ReportTypeEnum": {
|
|
@@ -15188,6 +15453,295 @@
|
|
|
15188
15453
|
}
|
|
15189
15454
|
]
|
|
15190
15455
|
},
|
|
15456
|
+
"UserVirus": {
|
|
15457
|
+
"required": [
|
|
15458
|
+
"item",
|
|
15459
|
+
"until"
|
|
15460
|
+
],
|
|
15461
|
+
"properties": {
|
|
15462
|
+
"item": {
|
|
15463
|
+
"required": [
|
|
15464
|
+
"id",
|
|
15465
|
+
"name"
|
|
15466
|
+
],
|
|
15467
|
+
"properties": {
|
|
15468
|
+
"id": {
|
|
15469
|
+
"$ref": "#/components/schemas/ItemId"
|
|
15470
|
+
},
|
|
15471
|
+
"name": {
|
|
15472
|
+
"type": "string"
|
|
15473
|
+
}
|
|
15474
|
+
},
|
|
15475
|
+
"type": "object"
|
|
15476
|
+
},
|
|
15477
|
+
"until": {
|
|
15478
|
+
"type": "integer",
|
|
15479
|
+
"format": "int32"
|
|
15480
|
+
}
|
|
15481
|
+
},
|
|
15482
|
+
"type": "object"
|
|
15483
|
+
},
|
|
15484
|
+
"UserVirusResponse": {
|
|
15485
|
+
"required": [
|
|
15486
|
+
"virus"
|
|
15487
|
+
],
|
|
15488
|
+
"properties": {
|
|
15489
|
+
"virus": {
|
|
15490
|
+
"description": "Null if the player is currently not programming a virus.",
|
|
15491
|
+
"oneOf": [
|
|
15492
|
+
{
|
|
15493
|
+
"$ref": "#/components/schemas/UserVirus"
|
|
15494
|
+
},
|
|
15495
|
+
{
|
|
15496
|
+
"type": "null"
|
|
15497
|
+
}
|
|
15498
|
+
]
|
|
15499
|
+
}
|
|
15500
|
+
},
|
|
15501
|
+
"type": "object"
|
|
15502
|
+
},
|
|
15503
|
+
"UserTravelResponse": {
|
|
15504
|
+
"required": [
|
|
15505
|
+
"travel"
|
|
15506
|
+
],
|
|
15507
|
+
"properties": {
|
|
15508
|
+
"travel": {
|
|
15509
|
+
"required": [
|
|
15510
|
+
"destination",
|
|
15511
|
+
"method",
|
|
15512
|
+
"departed_at",
|
|
15513
|
+
"arrival_at",
|
|
15514
|
+
"time_left"
|
|
15515
|
+
],
|
|
15516
|
+
"properties": {
|
|
15517
|
+
"destination": {
|
|
15518
|
+
"$ref": "#/components/schemas/CountryEnum"
|
|
15519
|
+
},
|
|
15520
|
+
"method": {
|
|
15521
|
+
"description": "Null if the player has never flown before.",
|
|
15522
|
+
"oneOf": [
|
|
15523
|
+
{
|
|
15524
|
+
"$ref": "#/components/schemas/UserFlyMethodEnum"
|
|
15525
|
+
},
|
|
15526
|
+
{
|
|
15527
|
+
"type": "null"
|
|
15528
|
+
}
|
|
15529
|
+
]
|
|
15530
|
+
},
|
|
15531
|
+
"departed_at": {
|
|
15532
|
+
"description": "Null if the player has never flown before.",
|
|
15533
|
+
"oneOf": [
|
|
15534
|
+
{
|
|
15535
|
+
"type": "integer",
|
|
15536
|
+
"format": "int32"
|
|
15537
|
+
},
|
|
15538
|
+
{
|
|
15539
|
+
"type": "null"
|
|
15540
|
+
}
|
|
15541
|
+
]
|
|
15542
|
+
},
|
|
15543
|
+
"arrival_at": {
|
|
15544
|
+
"description": "Null if the player has never flown before.",
|
|
15545
|
+
"oneOf": [
|
|
15546
|
+
{
|
|
15547
|
+
"type": "integer",
|
|
15548
|
+
"format": "int32"
|
|
15549
|
+
},
|
|
15550
|
+
{
|
|
15551
|
+
"type": "null"
|
|
15552
|
+
}
|
|
15553
|
+
]
|
|
15554
|
+
},
|
|
15555
|
+
"time_left": {
|
|
15556
|
+
"description": "Time left in seconds.",
|
|
15557
|
+
"type": "integer",
|
|
15558
|
+
"format": "int32"
|
|
15559
|
+
}
|
|
15560
|
+
},
|
|
15561
|
+
"type": "object"
|
|
15562
|
+
}
|
|
15563
|
+
},
|
|
15564
|
+
"type": "object"
|
|
15565
|
+
},
|
|
15566
|
+
"UserRefillsResponse": {
|
|
15567
|
+
"required": [
|
|
15568
|
+
"refills"
|
|
15569
|
+
],
|
|
15570
|
+
"properties": {
|
|
15571
|
+
"refills": {
|
|
15572
|
+
"required": [
|
|
15573
|
+
"energy",
|
|
15574
|
+
"nerve",
|
|
15575
|
+
"token",
|
|
15576
|
+
"special_count"
|
|
15577
|
+
],
|
|
15578
|
+
"properties": {
|
|
15579
|
+
"energy": {
|
|
15580
|
+
"type": "boolean"
|
|
15581
|
+
},
|
|
15582
|
+
"nerve": {
|
|
15583
|
+
"type": "boolean"
|
|
15584
|
+
},
|
|
15585
|
+
"token": {
|
|
15586
|
+
"type": "boolean"
|
|
15587
|
+
},
|
|
15588
|
+
"special_count": {
|
|
15589
|
+
"type": "integer",
|
|
15590
|
+
"format": "int32"
|
|
15591
|
+
}
|
|
15592
|
+
},
|
|
15593
|
+
"type": "object"
|
|
15594
|
+
}
|
|
15595
|
+
},
|
|
15596
|
+
"type": "object"
|
|
15597
|
+
},
|
|
15598
|
+
"UserNotificationsResponse": {
|
|
15599
|
+
"required": [
|
|
15600
|
+
"notifications"
|
|
15601
|
+
],
|
|
15602
|
+
"properties": {
|
|
15603
|
+
"notifications": {
|
|
15604
|
+
"required": [
|
|
15605
|
+
"messages",
|
|
15606
|
+
"events",
|
|
15607
|
+
"awards",
|
|
15608
|
+
"competition"
|
|
15609
|
+
],
|
|
15610
|
+
"properties": {
|
|
15611
|
+
"messages": {
|
|
15612
|
+
"type": "integer",
|
|
15613
|
+
"format": "int32"
|
|
15614
|
+
},
|
|
15615
|
+
"events": {
|
|
15616
|
+
"type": "integer",
|
|
15617
|
+
"format": "int32"
|
|
15618
|
+
},
|
|
15619
|
+
"awards": {
|
|
15620
|
+
"type": "integer",
|
|
15621
|
+
"format": "int32"
|
|
15622
|
+
},
|
|
15623
|
+
"competition": {
|
|
15624
|
+
"type": "integer",
|
|
15625
|
+
"format": "int32"
|
|
15626
|
+
}
|
|
15627
|
+
},
|
|
15628
|
+
"type": "object"
|
|
15629
|
+
}
|
|
15630
|
+
},
|
|
15631
|
+
"type": "object"
|
|
15632
|
+
},
|
|
15633
|
+
"UserCooldownsResponse": {
|
|
15634
|
+
"required": [
|
|
15635
|
+
"cooldowns"
|
|
15636
|
+
],
|
|
15637
|
+
"properties": {
|
|
15638
|
+
"cooldowns": {
|
|
15639
|
+
"required": [
|
|
15640
|
+
"drug",
|
|
15641
|
+
"medical",
|
|
15642
|
+
"booster"
|
|
15643
|
+
],
|
|
15644
|
+
"properties": {
|
|
15645
|
+
"drug": {
|
|
15646
|
+
"type": "integer",
|
|
15647
|
+
"format": "int32"
|
|
15648
|
+
},
|
|
15649
|
+
"medical": {
|
|
15650
|
+
"type": "integer",
|
|
15651
|
+
"format": "int32"
|
|
15652
|
+
},
|
|
15653
|
+
"booster": {
|
|
15654
|
+
"type": "integer",
|
|
15655
|
+
"format": "int32"
|
|
15656
|
+
}
|
|
15657
|
+
},
|
|
15658
|
+
"type": "object"
|
|
15659
|
+
}
|
|
15660
|
+
},
|
|
15661
|
+
"type": "object"
|
|
15662
|
+
},
|
|
15663
|
+
"UserBar": {
|
|
15664
|
+
"required": [
|
|
15665
|
+
"current",
|
|
15666
|
+
"maximum",
|
|
15667
|
+
"increment",
|
|
15668
|
+
"interval",
|
|
15669
|
+
"tick_time",
|
|
15670
|
+
"full_time"
|
|
15671
|
+
],
|
|
15672
|
+
"properties": {
|
|
15673
|
+
"current": {
|
|
15674
|
+
"type": "integer",
|
|
15675
|
+
"format": "int32"
|
|
15676
|
+
},
|
|
15677
|
+
"maximum": {
|
|
15678
|
+
"type": "integer",
|
|
15679
|
+
"format": "int32"
|
|
15680
|
+
},
|
|
15681
|
+
"increment": {
|
|
15682
|
+
"type": "integer",
|
|
15683
|
+
"format": "int32"
|
|
15684
|
+
},
|
|
15685
|
+
"interval": {
|
|
15686
|
+
"type": "integer",
|
|
15687
|
+
"format": "int32"
|
|
15688
|
+
},
|
|
15689
|
+
"tick_time": {
|
|
15690
|
+
"type": "integer",
|
|
15691
|
+
"format": "int32"
|
|
15692
|
+
},
|
|
15693
|
+
"full_time": {
|
|
15694
|
+
"type": "integer",
|
|
15695
|
+
"format": "int32"
|
|
15696
|
+
}
|
|
15697
|
+
},
|
|
15698
|
+
"type": "object"
|
|
15699
|
+
},
|
|
15700
|
+
"UserBars": {
|
|
15701
|
+
"required": [
|
|
15702
|
+
"energy",
|
|
15703
|
+
"nerve",
|
|
15704
|
+
"happy",
|
|
15705
|
+
"life",
|
|
15706
|
+
"chain"
|
|
15707
|
+
],
|
|
15708
|
+
"properties": {
|
|
15709
|
+
"energy": {
|
|
15710
|
+
"$ref": "#/components/schemas/UserBar"
|
|
15711
|
+
},
|
|
15712
|
+
"nerve": {
|
|
15713
|
+
"$ref": "#/components/schemas/UserBar"
|
|
15714
|
+
},
|
|
15715
|
+
"happy": {
|
|
15716
|
+
"$ref": "#/components/schemas/UserBar"
|
|
15717
|
+
},
|
|
15718
|
+
"life": {
|
|
15719
|
+
"$ref": "#/components/schemas/UserBar"
|
|
15720
|
+
},
|
|
15721
|
+
"chain": {
|
|
15722
|
+
"oneOf": [
|
|
15723
|
+
{
|
|
15724
|
+
"$ref": "#/components/schemas/FactionOngoingChain"
|
|
15725
|
+
},
|
|
15726
|
+
{
|
|
15727
|
+
"type": "null"
|
|
15728
|
+
}
|
|
15729
|
+
]
|
|
15730
|
+
}
|
|
15731
|
+
},
|
|
15732
|
+
"type": "object"
|
|
15733
|
+
},
|
|
15734
|
+
"UserBarsResponse": {
|
|
15735
|
+
"required": [
|
|
15736
|
+
"bars"
|
|
15737
|
+
],
|
|
15738
|
+
"properties": {
|
|
15739
|
+
"bars": {
|
|
15740
|
+
"$ref": "#/components/schemas/UserBars"
|
|
15741
|
+
}
|
|
15742
|
+
},
|
|
15743
|
+
"type": "object"
|
|
15744
|
+
},
|
|
15191
15745
|
"UserNewEventsResponse": {
|
|
15192
15746
|
"required": [
|
|
15193
15747
|
"events"
|
|
@@ -15714,10 +16268,24 @@
|
|
|
15714
16268
|
"format": "int32"
|
|
15715
16269
|
},
|
|
15716
16270
|
"rank": {
|
|
15717
|
-
"
|
|
16271
|
+
"oneOf": [
|
|
16272
|
+
{
|
|
16273
|
+
"$ref": "#/components/schemas/UserRankEnum"
|
|
16274
|
+
},
|
|
16275
|
+
{
|
|
16276
|
+
"type": "string"
|
|
16277
|
+
}
|
|
16278
|
+
]
|
|
15718
16279
|
},
|
|
15719
16280
|
"title": {
|
|
15720
|
-
"
|
|
16281
|
+
"oneOf": [
|
|
16282
|
+
{
|
|
16283
|
+
"$ref": "#/components/schemas/UserTitleEnum"
|
|
16284
|
+
},
|
|
16285
|
+
{
|
|
16286
|
+
"type": "string"
|
|
16287
|
+
}
|
|
16288
|
+
]
|
|
15721
16289
|
},
|
|
15722
16290
|
"donator_status": {
|
|
15723
16291
|
"oneOf": [
|
|
@@ -18074,16 +18642,18 @@
|
|
|
18074
18642
|
"UserSelectionName": {
|
|
18075
18643
|
"oneOf": [
|
|
18076
18644
|
{
|
|
18077
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'ammo','
|
|
18645
|
+
"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'.",
|
|
18078
18646
|
"type": "string",
|
|
18079
18647
|
"enum": [
|
|
18080
18648
|
"attacks",
|
|
18081
18649
|
"attacksfull",
|
|
18650
|
+
"bars",
|
|
18082
18651
|
"basic",
|
|
18083
18652
|
"battlestats",
|
|
18084
18653
|
"bounties",
|
|
18085
18654
|
"calendar",
|
|
18086
18655
|
"competition",
|
|
18656
|
+
"cooldowns",
|
|
18087
18657
|
"crimes",
|
|
18088
18658
|
"enlistedcars",
|
|
18089
18659
|
"events",
|
|
@@ -18110,6 +18680,7 @@
|
|
|
18110
18680
|
"money",
|
|
18111
18681
|
"newevents",
|
|
18112
18682
|
"newmessages",
|
|
18683
|
+
"notifications",
|
|
18113
18684
|
"organizedcrime",
|
|
18114
18685
|
"personalstats",
|
|
18115
18686
|
"profile",
|
|
@@ -18117,16 +18688,16 @@
|
|
|
18117
18688
|
"property",
|
|
18118
18689
|
"races",
|
|
18119
18690
|
"racingrecords",
|
|
18691
|
+
"refills",
|
|
18120
18692
|
"reports",
|
|
18121
18693
|
"revives",
|
|
18122
18694
|
"revivesfull",
|
|
18123
18695
|
"skills",
|
|
18124
18696
|
"timestamp",
|
|
18697
|
+
"travel",
|
|
18125
18698
|
"workstats",
|
|
18126
18699
|
"ammo",
|
|
18127
|
-
"bars",
|
|
18128
18700
|
"bazaar",
|
|
18129
|
-
"cooldowns",
|
|
18130
18701
|
"criminalrecord",
|
|
18131
18702
|
"discord",
|
|
18132
18703
|
"display",
|
|
@@ -18136,11 +18707,8 @@
|
|
|
18136
18707
|
"inventory",
|
|
18137
18708
|
"missions",
|
|
18138
18709
|
"networth",
|
|
18139
|
-
"notifications",
|
|
18140
18710
|
"perks",
|
|
18141
|
-
"refills",
|
|
18142
18711
|
"stocks",
|
|
18143
|
-
"travel",
|
|
18144
18712
|
"weaponexp"
|
|
18145
18713
|
]
|
|
18146
18714
|
},
|