tornapi-typescript 4.1.1 → 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 +90 -4
- package/dist/index.ts +105 -4
- package/dist/openapi.json +614 -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": {
|
|
@@ -1662,7 +1740,7 @@
|
|
|
1662
1740
|
"api_key": []
|
|
1663
1741
|
}
|
|
1664
1742
|
],
|
|
1665
|
-
"x-stability": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
4466
|
+
"x-stability": "Stable"
|
|
4215
4467
|
}
|
|
4216
4468
|
},
|
|
4217
4469
|
"/faction/raids": {
|
|
@@ -4259,7 +4511,7 @@
|
|
|
4259
4511
|
"api_key": []
|
|
4260
4512
|
}
|
|
4261
4513
|
],
|
|
4262
|
-
"x-stability": "
|
|
4514
|
+
"x-stability": "Stable"
|
|
4263
4515
|
}
|
|
4264
4516
|
},
|
|
4265
4517
|
"/faction/{id}/raids": {
|
|
@@ -4307,7 +4559,7 @@
|
|
|
4307
4559
|
"api_key": []
|
|
4308
4560
|
}
|
|
4309
4561
|
],
|
|
4310
|
-
"x-stability": "
|
|
4562
|
+
"x-stability": "Stable"
|
|
4311
4563
|
}
|
|
4312
4564
|
},
|
|
4313
4565
|
"/faction/rankedwars": {
|
|
@@ -4514,7 +4766,7 @@
|
|
|
4514
4766
|
"api_key": []
|
|
4515
4767
|
}
|
|
4516
4768
|
],
|
|
4517
|
-
"x-stability": "
|
|
4769
|
+
"x-stability": "Stable"
|
|
4518
4770
|
}
|
|
4519
4771
|
},
|
|
4520
4772
|
"/faction/revives": {
|
|
@@ -4679,7 +4931,7 @@
|
|
|
4679
4931
|
"api_key": []
|
|
4680
4932
|
}
|
|
4681
4933
|
],
|
|
4682
|
-
"x-stability": "
|
|
4934
|
+
"x-stability": "Stable"
|
|
4683
4935
|
}
|
|
4684
4936
|
},
|
|
4685
4937
|
"/faction/stats": {
|
|
@@ -4718,7 +4970,7 @@
|
|
|
4718
4970
|
"api_key": []
|
|
4719
4971
|
}
|
|
4720
4972
|
],
|
|
4721
|
-
"x-stability": "
|
|
4973
|
+
"x-stability": "Stable"
|
|
4722
4974
|
}
|
|
4723
4975
|
},
|
|
4724
4976
|
"/faction/territory": {
|
|
@@ -4757,7 +5009,7 @@
|
|
|
4757
5009
|
"api_key": []
|
|
4758
5010
|
}
|
|
4759
5011
|
],
|
|
4760
|
-
"x-stability": "
|
|
5012
|
+
"x-stability": "Stable"
|
|
4761
5013
|
}
|
|
4762
5014
|
},
|
|
4763
5015
|
"/faction/{id}/territory": {
|
|
@@ -4805,7 +5057,7 @@
|
|
|
4805
5057
|
"api_key": []
|
|
4806
5058
|
}
|
|
4807
5059
|
],
|
|
4808
|
-
"x-stability": "
|
|
5060
|
+
"x-stability": "Stable"
|
|
4809
5061
|
}
|
|
4810
5062
|
},
|
|
4811
5063
|
"/faction/territoryownership": {
|
|
@@ -4850,7 +5102,7 @@
|
|
|
4850
5102
|
"api_key": []
|
|
4851
5103
|
}
|
|
4852
5104
|
],
|
|
4853
|
-
"x-stability": "
|
|
5105
|
+
"x-stability": "Stable"
|
|
4854
5106
|
}
|
|
4855
5107
|
},
|
|
4856
5108
|
"/faction/territorywars": {
|
|
@@ -4901,7 +5153,7 @@
|
|
|
4901
5153
|
"api_key": []
|
|
4902
5154
|
}
|
|
4903
5155
|
],
|
|
4904
|
-
"x-stability": "
|
|
5156
|
+
"x-stability": "Stable"
|
|
4905
5157
|
}
|
|
4906
5158
|
},
|
|
4907
5159
|
"/faction/{id}/territorywars": {
|
|
@@ -4949,7 +5201,7 @@
|
|
|
4949
5201
|
"api_key": []
|
|
4950
5202
|
}
|
|
4951
5203
|
],
|
|
4952
|
-
"x-stability": "
|
|
5204
|
+
"x-stability": "Stable"
|
|
4953
5205
|
}
|
|
4954
5206
|
},
|
|
4955
5207
|
"/faction/{territoryWarId}/territorywarreport": {
|
|
@@ -4997,7 +5249,7 @@
|
|
|
4997
5249
|
"api_key": []
|
|
4998
5250
|
}
|
|
4999
5251
|
],
|
|
5000
|
-
"x-stability": "
|
|
5252
|
+
"x-stability": "Stable"
|
|
5001
5253
|
}
|
|
5002
5254
|
},
|
|
5003
5255
|
"/faction/upgrades": {
|
|
@@ -5036,7 +5288,7 @@
|
|
|
5036
5288
|
"api_key": []
|
|
5037
5289
|
}
|
|
5038
5290
|
],
|
|
5039
|
-
"x-stability": "
|
|
5291
|
+
"x-stability": "Stable"
|
|
5040
5292
|
}
|
|
5041
5293
|
},
|
|
5042
5294
|
"/faction/warfare": {
|
|
@@ -6037,7 +6289,7 @@
|
|
|
6037
6289
|
"api_key": []
|
|
6038
6290
|
}
|
|
6039
6291
|
],
|
|
6040
|
-
"x-stability": "
|
|
6292
|
+
"x-stability": "Stable"
|
|
6041
6293
|
}
|
|
6042
6294
|
},
|
|
6043
6295
|
"/key/info": {
|
|
@@ -6076,7 +6328,7 @@
|
|
|
6076
6328
|
"api_key": []
|
|
6077
6329
|
}
|
|
6078
6330
|
],
|
|
6079
|
-
"x-stability": "
|
|
6331
|
+
"x-stability": "Stable"
|
|
6080
6332
|
}
|
|
6081
6333
|
},
|
|
6082
6334
|
"/key": {
|
|
@@ -6189,7 +6441,7 @@
|
|
|
6189
6441
|
"api_key": []
|
|
6190
6442
|
}
|
|
6191
6443
|
],
|
|
6192
|
-
"x-stability": "
|
|
6444
|
+
"x-stability": "Stable"
|
|
6193
6445
|
}
|
|
6194
6446
|
},
|
|
6195
6447
|
"/market/{id}/bazaar": {
|
|
@@ -6237,7 +6489,7 @@
|
|
|
6237
6489
|
"api_key": []
|
|
6238
6490
|
}
|
|
6239
6491
|
],
|
|
6240
|
-
"x-stability": "
|
|
6492
|
+
"x-stability": "Stable"
|
|
6241
6493
|
}
|
|
6242
6494
|
},
|
|
6243
6495
|
"/market/{id}/itemmarket": {
|
|
@@ -6297,7 +6549,7 @@
|
|
|
6297
6549
|
"api_key": []
|
|
6298
6550
|
}
|
|
6299
6551
|
],
|
|
6300
|
-
"x-stability": "
|
|
6552
|
+
"x-stability": "Stable"
|
|
6301
6553
|
}
|
|
6302
6554
|
},
|
|
6303
6555
|
"/market/{propertyTypeId}/properties": {
|
|
@@ -6354,7 +6606,7 @@
|
|
|
6354
6606
|
"api_key": []
|
|
6355
6607
|
}
|
|
6356
6608
|
],
|
|
6357
|
-
"x-stability": "
|
|
6609
|
+
"x-stability": "Stable"
|
|
6358
6610
|
}
|
|
6359
6611
|
},
|
|
6360
6612
|
"/market/{propertyTypeId}/rentals": {
|
|
@@ -6411,7 +6663,7 @@
|
|
|
6411
6663
|
"api_key": []
|
|
6412
6664
|
}
|
|
6413
6665
|
],
|
|
6414
|
-
"x-stability": "
|
|
6666
|
+
"x-stability": "Stable"
|
|
6415
6667
|
}
|
|
6416
6668
|
},
|
|
6417
6669
|
"/market/lookup": {
|
|
@@ -7164,7 +7416,7 @@
|
|
|
7164
7416
|
"api_key": []
|
|
7165
7417
|
}
|
|
7166
7418
|
],
|
|
7167
|
-
"x-stability": "
|
|
7419
|
+
"x-stability": "Stable"
|
|
7168
7420
|
}
|
|
7169
7421
|
},
|
|
7170
7422
|
"/property/lookup": {
|
|
@@ -7533,7 +7785,7 @@
|
|
|
7533
7785
|
"api_key": []
|
|
7534
7786
|
}
|
|
7535
7787
|
],
|
|
7536
|
-
"x-stability": "
|
|
7788
|
+
"x-stability": "Stable"
|
|
7537
7789
|
}
|
|
7538
7790
|
},
|
|
7539
7791
|
"/torn/factionhof": {
|
|
@@ -7626,7 +7878,7 @@
|
|
|
7626
7878
|
"api_key": []
|
|
7627
7879
|
}
|
|
7628
7880
|
],
|
|
7629
|
-
"x-stability": "
|
|
7881
|
+
"x-stability": "Stable"
|
|
7630
7882
|
}
|
|
7631
7883
|
},
|
|
7632
7884
|
"/torn/honors": {
|
|
@@ -8253,7 +8505,7 @@
|
|
|
8253
8505
|
"api_key": []
|
|
8254
8506
|
}
|
|
8255
8507
|
],
|
|
8256
|
-
"x-stability": "
|
|
8508
|
+
"x-stability": "Stable"
|
|
8257
8509
|
}
|
|
8258
8510
|
},
|
|
8259
8511
|
"/torn/properties": {
|
|
@@ -8292,7 +8544,7 @@
|
|
|
8292
8544
|
"api_key": []
|
|
8293
8545
|
}
|
|
8294
8546
|
],
|
|
8295
|
-
"x-stability": "
|
|
8547
|
+
"x-stability": "Stable"
|
|
8296
8548
|
}
|
|
8297
8549
|
},
|
|
8298
8550
|
"/torn/{crimeId}/subcrimes": {
|
|
@@ -8399,7 +8651,7 @@
|
|
|
8399
8651
|
"api_key": []
|
|
8400
8652
|
}
|
|
8401
8653
|
],
|
|
8402
|
-
"x-stability": "
|
|
8654
|
+
"x-stability": "Stable"
|
|
8403
8655
|
}
|
|
8404
8656
|
},
|
|
8405
8657
|
"/torn/lookup": {
|
|
@@ -8747,6 +8999,15 @@
|
|
|
8747
8999
|
"airliner"
|
|
8748
9000
|
]
|
|
8749
9001
|
},
|
|
9002
|
+
"UserFlyMethodEnum": {
|
|
9003
|
+
"type": "string",
|
|
9004
|
+
"enum": [
|
|
9005
|
+
"Private",
|
|
9006
|
+
"Business",
|
|
9007
|
+
"Airstrip",
|
|
9008
|
+
"Standard"
|
|
9009
|
+
]
|
|
9010
|
+
},
|
|
8750
9011
|
"UserStatusStateEnum": {
|
|
8751
9012
|
"type": "string",
|
|
8752
9013
|
"enum": [
|
|
@@ -8904,7 +9165,8 @@
|
|
|
8904
9165
|
"Canada",
|
|
8905
9166
|
"United Kingdom",
|
|
8906
9167
|
"UAE",
|
|
8907
|
-
"Cayman Islands"
|
|
9168
|
+
"Cayman Islands",
|
|
9169
|
+
"Torn"
|
|
8908
9170
|
]
|
|
8909
9171
|
},
|
|
8910
9172
|
"ReportTypeEnum": {
|
|
@@ -15191,6 +15453,295 @@
|
|
|
15191
15453
|
}
|
|
15192
15454
|
]
|
|
15193
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
|
+
},
|
|
15194
15745
|
"UserNewEventsResponse": {
|
|
15195
15746
|
"required": [
|
|
15196
15747
|
"events"
|
|
@@ -15717,10 +16268,24 @@
|
|
|
15717
16268
|
"format": "int32"
|
|
15718
16269
|
},
|
|
15719
16270
|
"rank": {
|
|
15720
|
-
"
|
|
16271
|
+
"oneOf": [
|
|
16272
|
+
{
|
|
16273
|
+
"$ref": "#/components/schemas/UserRankEnum"
|
|
16274
|
+
},
|
|
16275
|
+
{
|
|
16276
|
+
"type": "string"
|
|
16277
|
+
}
|
|
16278
|
+
]
|
|
15721
16279
|
},
|
|
15722
16280
|
"title": {
|
|
15723
|
-
"
|
|
16281
|
+
"oneOf": [
|
|
16282
|
+
{
|
|
16283
|
+
"$ref": "#/components/schemas/UserTitleEnum"
|
|
16284
|
+
},
|
|
16285
|
+
{
|
|
16286
|
+
"type": "string"
|
|
16287
|
+
}
|
|
16288
|
+
]
|
|
15724
16289
|
},
|
|
15725
16290
|
"donator_status": {
|
|
15726
16291
|
"oneOf": [
|
|
@@ -18077,16 +18642,18 @@
|
|
|
18077
18642
|
"UserSelectionName": {
|
|
18078
18643
|
"oneOf": [
|
|
18079
18644
|
{
|
|
18080
|
-
"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'.",
|
|
18081
18646
|
"type": "string",
|
|
18082
18647
|
"enum": [
|
|
18083
18648
|
"attacks",
|
|
18084
18649
|
"attacksfull",
|
|
18650
|
+
"bars",
|
|
18085
18651
|
"basic",
|
|
18086
18652
|
"battlestats",
|
|
18087
18653
|
"bounties",
|
|
18088
18654
|
"calendar",
|
|
18089
18655
|
"competition",
|
|
18656
|
+
"cooldowns",
|
|
18090
18657
|
"crimes",
|
|
18091
18658
|
"enlistedcars",
|
|
18092
18659
|
"events",
|
|
@@ -18113,6 +18680,7 @@
|
|
|
18113
18680
|
"money",
|
|
18114
18681
|
"newevents",
|
|
18115
18682
|
"newmessages",
|
|
18683
|
+
"notifications",
|
|
18116
18684
|
"organizedcrime",
|
|
18117
18685
|
"personalstats",
|
|
18118
18686
|
"profile",
|
|
@@ -18120,16 +18688,16 @@
|
|
|
18120
18688
|
"property",
|
|
18121
18689
|
"races",
|
|
18122
18690
|
"racingrecords",
|
|
18691
|
+
"refills",
|
|
18123
18692
|
"reports",
|
|
18124
18693
|
"revives",
|
|
18125
18694
|
"revivesfull",
|
|
18126
18695
|
"skills",
|
|
18127
18696
|
"timestamp",
|
|
18697
|
+
"travel",
|
|
18128
18698
|
"workstats",
|
|
18129
18699
|
"ammo",
|
|
18130
|
-
"bars",
|
|
18131
18700
|
"bazaar",
|
|
18132
|
-
"cooldowns",
|
|
18133
18701
|
"criminalrecord",
|
|
18134
18702
|
"discord",
|
|
18135
18703
|
"display",
|
|
@@ -18139,11 +18707,8 @@
|
|
|
18139
18707
|
"inventory",
|
|
18140
18708
|
"missions",
|
|
18141
18709
|
"networth",
|
|
18142
|
-
"notifications",
|
|
18143
18710
|
"perks",
|
|
18144
|
-
"refills",
|
|
18145
18711
|
"stocks",
|
|
18146
|
-
"travel",
|
|
18147
18712
|
"weaponexp"
|
|
18148
18713
|
]
|
|
18149
18714
|
},
|