tornapi-typescript 0.2.5 → 0.2.7
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 +47 -184
- package/dist/openapi.json +626 -229
- package/package.json +3 -3
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": "1.
|
|
6
|
+
"version": "1.8.1"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -1188,12 +1188,7 @@
|
|
|
1188
1188
|
"description": "Category of races returned",
|
|
1189
1189
|
"required": false,
|
|
1190
1190
|
"schema": {
|
|
1191
|
-
"
|
|
1192
|
-
"default": "custom",
|
|
1193
|
-
"enum": [
|
|
1194
|
-
"official",
|
|
1195
|
-
"custom"
|
|
1196
|
-
]
|
|
1191
|
+
"$ref": "#/components/schemas/RacingRaceTypeEnum"
|
|
1197
1192
|
}
|
|
1198
1193
|
},
|
|
1199
1194
|
{
|
|
@@ -1504,7 +1499,17 @@
|
|
|
1504
1499
|
"description": "selection id",
|
|
1505
1500
|
"required": false,
|
|
1506
1501
|
"schema": {
|
|
1507
|
-
"
|
|
1502
|
+
"oneOf": [
|
|
1503
|
+
{
|
|
1504
|
+
"$ref": "#/components/schemas/UserId"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"$ref": "#/components/schemas/TornCrimeId"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"type": "string"
|
|
1511
|
+
}
|
|
1512
|
+
]
|
|
1508
1513
|
}
|
|
1509
1514
|
},
|
|
1510
1515
|
{
|
|
@@ -1522,10 +1527,23 @@
|
|
|
1522
1527
|
{
|
|
1523
1528
|
"name": "cat",
|
|
1524
1529
|
"in": "query",
|
|
1525
|
-
"description": "Selection category",
|
|
1530
|
+
"description": "Selection category. Can belong to one of the specified types.",
|
|
1526
1531
|
"required": false,
|
|
1527
1532
|
"schema": {
|
|
1528
|
-
"
|
|
1533
|
+
"oneOf": [
|
|
1534
|
+
{
|
|
1535
|
+
"$ref": "#/components/schemas/ReportTypeEnum"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
"$ref": "#/components/schemas/UserListEnum"
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
"$ref": "#/components/schemas/PersonalStatsCategoryEnum"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"$ref": "#/components/schemas/RacingRaceTypeEnum"
|
|
1545
|
+
}
|
|
1546
|
+
]
|
|
1529
1547
|
}
|
|
1530
1548
|
},
|
|
1531
1549
|
{
|
|
@@ -1533,8 +1551,13 @@
|
|
|
1533
1551
|
"in": "query",
|
|
1534
1552
|
"description": "Selection stat",
|
|
1535
1553
|
"required": false,
|
|
1554
|
+
"style": "form",
|
|
1555
|
+
"explode": false,
|
|
1536
1556
|
"schema": {
|
|
1537
|
-
"type": "
|
|
1557
|
+
"type": "array",
|
|
1558
|
+
"items": {
|
|
1559
|
+
"$ref": "#/components/schemas/PersonalStatsStatName"
|
|
1560
|
+
}
|
|
1538
1561
|
}
|
|
1539
1562
|
},
|
|
1540
1563
|
{
|
|
@@ -3021,6 +3044,57 @@
|
|
|
3021
3044
|
"x-stability": "Stable"
|
|
3022
3045
|
}
|
|
3023
3046
|
},
|
|
3047
|
+
"/faction/search": {
|
|
3048
|
+
"get": {
|
|
3049
|
+
"tags": [
|
|
3050
|
+
"Faction"
|
|
3051
|
+
],
|
|
3052
|
+
"summary": "Search factions by name or other criteria",
|
|
3053
|
+
"description": "Requires public access key. <br>This selection is standalone and cannot be used together with other selections.",
|
|
3054
|
+
"operationId": "01c192f9b41ce29372df54667bea2b43",
|
|
3055
|
+
"parameters": [
|
|
3056
|
+
{
|
|
3057
|
+
"$ref": "#/components/parameters/ApiName"
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
"$ref": "#/components/parameters/ApiFactionSearchFilter"
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
"$ref": "#/components/parameters/ApiLimit20"
|
|
3064
|
+
},
|
|
3065
|
+
{
|
|
3066
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
3070
|
+
},
|
|
3071
|
+
{
|
|
3072
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
3073
|
+
},
|
|
3074
|
+
{
|
|
3075
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
3076
|
+
}
|
|
3077
|
+
],
|
|
3078
|
+
"responses": {
|
|
3079
|
+
"200": {
|
|
3080
|
+
"description": "Successful operation",
|
|
3081
|
+
"content": {
|
|
3082
|
+
"application/json": {
|
|
3083
|
+
"schema": {
|
|
3084
|
+
"$ref": "#/components/schemas/FactionSearchResponse"
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
"security": [
|
|
3091
|
+
{
|
|
3092
|
+
"api_key": []
|
|
3093
|
+
}
|
|
3094
|
+
],
|
|
3095
|
+
"x-stability": "Unstable"
|
|
3096
|
+
}
|
|
3097
|
+
},
|
|
3024
3098
|
"/faction/stats": {
|
|
3025
3099
|
"get": {
|
|
3026
3100
|
"tags": [
|
|
@@ -3579,7 +3653,23 @@
|
|
|
3579
3653
|
"description": "selection id",
|
|
3580
3654
|
"required": false,
|
|
3581
3655
|
"schema": {
|
|
3582
|
-
"
|
|
3656
|
+
"oneOf": [
|
|
3657
|
+
{
|
|
3658
|
+
"$ref": "#/components/schemas/FactionId"
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
"$ref": "#/components/schemas/FactionCrimeId"
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
"$ref": "#/components/schemas/ChainId"
|
|
3665
|
+
},
|
|
3666
|
+
{
|
|
3667
|
+
"$ref": "#/components/schemas/RankedWarId"
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
"$ref": "#/components/schemas/TerritoryWarId"
|
|
3671
|
+
}
|
|
3672
|
+
]
|
|
3583
3673
|
}
|
|
3584
3674
|
},
|
|
3585
3675
|
{
|
|
@@ -3597,7 +3687,40 @@
|
|
|
3597
3687
|
"description": "Selection category",
|
|
3598
3688
|
"required": false,
|
|
3599
3689
|
"schema": {
|
|
3600
|
-
"
|
|
3690
|
+
"oneOf": [
|
|
3691
|
+
{
|
|
3692
|
+
"type": "string",
|
|
3693
|
+
"enum": [
|
|
3694
|
+
"all",
|
|
3695
|
+
"current"
|
|
3696
|
+
]
|
|
3697
|
+
},
|
|
3698
|
+
{
|
|
3699
|
+
"type": "string",
|
|
3700
|
+
"enum": [
|
|
3701
|
+
"all",
|
|
3702
|
+
"recruiting",
|
|
3703
|
+
"planning",
|
|
3704
|
+
"failure",
|
|
3705
|
+
"successful",
|
|
3706
|
+
"expired",
|
|
3707
|
+
"available",
|
|
3708
|
+
"completed"
|
|
3709
|
+
]
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
"$ref": "#/components/schemas/FactionNewsCategory"
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
"$ref": "#/components/schemas/FactionRankedWarsCategoryEnum"
|
|
3716
|
+
},
|
|
3717
|
+
{
|
|
3718
|
+
"$ref": "#/components/schemas/ReportTypeEnum"
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
"$ref": "#/components/schemas/FactionTerritoryWarsCategoryEnum"
|
|
3722
|
+
}
|
|
3723
|
+
]
|
|
3601
3724
|
}
|
|
3602
3725
|
},
|
|
3603
3726
|
{
|
|
@@ -3606,7 +3729,7 @@
|
|
|
3606
3729
|
"description": "Stat category",
|
|
3607
3730
|
"required": false,
|
|
3608
3731
|
"schema": {
|
|
3609
|
-
"
|
|
3732
|
+
"$ref": "#/components/schemas/FactionStatEnum"
|
|
3610
3733
|
}
|
|
3611
3734
|
},
|
|
3612
3735
|
{
|
|
@@ -4103,7 +4226,17 @@
|
|
|
4103
4226
|
"description": "selection id",
|
|
4104
4227
|
"required": false,
|
|
4105
4228
|
"schema": {
|
|
4106
|
-
"
|
|
4229
|
+
"oneOf": [
|
|
4230
|
+
{
|
|
4231
|
+
"$ref": "#/components/schemas/ForumThreadId"
|
|
4232
|
+
},
|
|
4233
|
+
{
|
|
4234
|
+
"type": "array",
|
|
4235
|
+
"items": {
|
|
4236
|
+
"$ref": "#/components/schemas/ForumId"
|
|
4237
|
+
}
|
|
4238
|
+
}
|
|
4239
|
+
]
|
|
4107
4240
|
}
|
|
4108
4241
|
},
|
|
4109
4242
|
{
|
|
@@ -4489,7 +4622,7 @@
|
|
|
4489
4622
|
"description": "selection id",
|
|
4490
4623
|
"required": false,
|
|
4491
4624
|
"schema": {
|
|
4492
|
-
"
|
|
4625
|
+
"$ref": "#/components/schemas/ItemId"
|
|
4493
4626
|
}
|
|
4494
4627
|
},
|
|
4495
4628
|
{
|
|
@@ -4501,15 +4634,6 @@
|
|
|
4501
4634
|
"$ref": "#/components/schemas/WeaponBonusEnum"
|
|
4502
4635
|
}
|
|
4503
4636
|
},
|
|
4504
|
-
{
|
|
4505
|
-
"name": "cat",
|
|
4506
|
-
"in": "query",
|
|
4507
|
-
"description": "Selection category",
|
|
4508
|
-
"required": false,
|
|
4509
|
-
"schema": {
|
|
4510
|
-
"type": "string"
|
|
4511
|
-
}
|
|
4512
|
-
},
|
|
4513
4637
|
{
|
|
4514
4638
|
"name": "sort",
|
|
4515
4639
|
"in": "query",
|
|
@@ -4671,12 +4795,7 @@
|
|
|
4671
4795
|
"description": "Category of races returned",
|
|
4672
4796
|
"required": false,
|
|
4673
4797
|
"schema": {
|
|
4674
|
-
"
|
|
4675
|
-
"default": "custom",
|
|
4676
|
-
"enum": [
|
|
4677
|
-
"official",
|
|
4678
|
-
"custom"
|
|
4679
|
-
]
|
|
4798
|
+
"$ref": "#/components/schemas/RacingRaceTypeEnum"
|
|
4680
4799
|
}
|
|
4681
4800
|
},
|
|
4682
4801
|
{
|
|
@@ -4960,7 +5079,14 @@
|
|
|
4960
5079
|
"description": "selection id",
|
|
4961
5080
|
"required": false,
|
|
4962
5081
|
"schema": {
|
|
4963
|
-
"
|
|
5082
|
+
"oneOf": [
|
|
5083
|
+
{
|
|
5084
|
+
"$ref": "#/components/schemas/RaceId"
|
|
5085
|
+
},
|
|
5086
|
+
{
|
|
5087
|
+
"$ref": "#/components/schemas/RaceTrackId"
|
|
5088
|
+
}
|
|
5089
|
+
]
|
|
4964
5090
|
}
|
|
4965
5091
|
},
|
|
4966
5092
|
{
|
|
@@ -4981,7 +5107,14 @@
|
|
|
4981
5107
|
"description": "Selection category",
|
|
4982
5108
|
"required": false,
|
|
4983
5109
|
"schema": {
|
|
4984
|
-
"
|
|
5110
|
+
"oneOf": [
|
|
5111
|
+
{
|
|
5112
|
+
"$ref": "#/components/schemas/RacingRaceTypeEnum"
|
|
5113
|
+
},
|
|
5114
|
+
{
|
|
5115
|
+
"$ref": "#/components/schemas/RaceClassEnum"
|
|
5116
|
+
}
|
|
5117
|
+
]
|
|
4985
5118
|
}
|
|
4986
5119
|
},
|
|
4987
5120
|
{
|
|
@@ -5972,7 +6105,26 @@
|
|
|
5972
6105
|
"description": "selection id",
|
|
5973
6106
|
"required": false,
|
|
5974
6107
|
"schema": {
|
|
5975
|
-
"
|
|
6108
|
+
"oneOf": [
|
|
6109
|
+
{
|
|
6110
|
+
"$ref": "#/components/schemas/LogCategoryId"
|
|
6111
|
+
},
|
|
6112
|
+
{
|
|
6113
|
+
"$ref": "#/components/schemas/TornCrimeId"
|
|
6114
|
+
},
|
|
6115
|
+
{
|
|
6116
|
+
"type": "array",
|
|
6117
|
+
"items": {
|
|
6118
|
+
"$ref": "#/components/schemas/ItemId"
|
|
6119
|
+
}
|
|
6120
|
+
},
|
|
6121
|
+
{
|
|
6122
|
+
"type": "array",
|
|
6123
|
+
"items": {
|
|
6124
|
+
"$ref": "#/components/schemas/FactionTerritoryEnum"
|
|
6125
|
+
}
|
|
6126
|
+
}
|
|
6127
|
+
]
|
|
5976
6128
|
}
|
|
5977
6129
|
},
|
|
5978
6130
|
{
|
|
@@ -5996,7 +6148,17 @@
|
|
|
5996
6148
|
"description": "Selection category",
|
|
5997
6149
|
"required": false,
|
|
5998
6150
|
"schema": {
|
|
5999
|
-
"
|
|
6151
|
+
"oneOf": [
|
|
6152
|
+
{
|
|
6153
|
+
"$ref": "#/components/schemas/TornFactionHofCategory"
|
|
6154
|
+
},
|
|
6155
|
+
{
|
|
6156
|
+
"$ref": "#/components/schemas/TornHofCategory"
|
|
6157
|
+
},
|
|
6158
|
+
{
|
|
6159
|
+
"$ref": "#/components/schemas/TornItemCategory"
|
|
6160
|
+
}
|
|
6161
|
+
]
|
|
6000
6162
|
}
|
|
6001
6163
|
},
|
|
6002
6164
|
{
|
|
@@ -10310,6 +10472,13 @@
|
|
|
10310
10472
|
"peace"
|
|
10311
10473
|
]
|
|
10312
10474
|
},
|
|
10475
|
+
"RacingRaceTypeEnum": {
|
|
10476
|
+
"type": "string",
|
|
10477
|
+
"enum": [
|
|
10478
|
+
"official",
|
|
10479
|
+
"custom"
|
|
10480
|
+
]
|
|
10481
|
+
},
|
|
10313
10482
|
"FactionPositionAbilityEnum": {
|
|
10314
10483
|
"type": "string",
|
|
10315
10484
|
"enum": [
|
|
@@ -10908,6 +11077,23 @@
|
|
|
10908
11077
|
7
|
|
10909
11078
|
]
|
|
10910
11079
|
},
|
|
11080
|
+
"Parameters": {
|
|
11081
|
+
"oneOf": [
|
|
11082
|
+
{
|
|
11083
|
+
"type": "string",
|
|
11084
|
+
"enum": [
|
|
11085
|
+
"destroyed",
|
|
11086
|
+
"notDestroyed",
|
|
11087
|
+
"recruiting",
|
|
11088
|
+
"notRecruiting"
|
|
11089
|
+
]
|
|
11090
|
+
},
|
|
11091
|
+
{
|
|
11092
|
+
"type": "string",
|
|
11093
|
+
"pattern": "^(id|respect|members)(Equal|NotEqual|Less|LessOrEqual|GreaterOrEqual|Greater)\\d+$"
|
|
11094
|
+
}
|
|
11095
|
+
]
|
|
11096
|
+
},
|
|
10911
11097
|
"ReviveSetting": {
|
|
10912
11098
|
"type": "string",
|
|
10913
11099
|
"enum": [
|
|
@@ -12143,6 +12329,22 @@
|
|
|
12143
12329
|
},
|
|
12144
12330
|
"type": "object"
|
|
12145
12331
|
},
|
|
12332
|
+
"SelectionCategoryEnum": {
|
|
12333
|
+
"oneOf": [
|
|
12334
|
+
{
|
|
12335
|
+
"$ref": "#/components/schemas/ReportTypeEnum"
|
|
12336
|
+
},
|
|
12337
|
+
{
|
|
12338
|
+
"$ref": "#/components/schemas/UserListEnum"
|
|
12339
|
+
},
|
|
12340
|
+
{
|
|
12341
|
+
"$ref": "#/components/schemas/PersonalStatsCategoryEnum"
|
|
12342
|
+
},
|
|
12343
|
+
{
|
|
12344
|
+
"$ref": "#/components/schemas/RacingRaceTypeEnum"
|
|
12345
|
+
}
|
|
12346
|
+
]
|
|
12347
|
+
},
|
|
12146
12348
|
"UserCurrentEducation": {
|
|
12147
12349
|
"required": [
|
|
12148
12350
|
"id",
|
|
@@ -13538,69 +13740,76 @@
|
|
|
13538
13740
|
"type": "object"
|
|
13539
13741
|
},
|
|
13540
13742
|
"UserSelectionName": {
|
|
13541
|
-
"
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13743
|
+
"oneOf": [
|
|
13744
|
+
{
|
|
13745
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','basic','battlestats','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','jobpoints','log','medals','merits','messages','missions','money','networth','newevents','newmessages','notifications','perks','profile','properties','refills','reports','skills','stocks','travel','weaponexp','workstats'.",
|
|
13746
|
+
"type": "string",
|
|
13747
|
+
"enum": [
|
|
13748
|
+
"attacks",
|
|
13749
|
+
"attacksfull",
|
|
13750
|
+
"bounties",
|
|
13751
|
+
"calendar",
|
|
13752
|
+
"crimes",
|
|
13753
|
+
"enlistedcars",
|
|
13754
|
+
"factionbalance",
|
|
13755
|
+
"forumfeed",
|
|
13756
|
+
"forumfriends",
|
|
13757
|
+
"forumposts",
|
|
13758
|
+
"forumsubscribedthreads",
|
|
13759
|
+
"forumthreads",
|
|
13760
|
+
"hof",
|
|
13761
|
+
"itemmarket",
|
|
13762
|
+
"jobranks",
|
|
13763
|
+
"list",
|
|
13764
|
+
"lookup",
|
|
13765
|
+
"organizedcrime",
|
|
13766
|
+
"personalstats",
|
|
13767
|
+
"races",
|
|
13768
|
+
"revives",
|
|
13769
|
+
"revivesfull",
|
|
13770
|
+
"timestamp",
|
|
13771
|
+
"ammo",
|
|
13772
|
+
"bars",
|
|
13773
|
+
"basic",
|
|
13774
|
+
"battlestats",
|
|
13775
|
+
"bazaar",
|
|
13776
|
+
"cooldowns",
|
|
13777
|
+
"criminalrecord",
|
|
13778
|
+
"discord",
|
|
13779
|
+
"display",
|
|
13780
|
+
"education",
|
|
13781
|
+
"equipment",
|
|
13782
|
+
"events",
|
|
13783
|
+
"gym",
|
|
13784
|
+
"honors",
|
|
13785
|
+
"icons",
|
|
13786
|
+
"inventory",
|
|
13787
|
+
"jobpoints",
|
|
13788
|
+
"log",
|
|
13789
|
+
"medals",
|
|
13790
|
+
"merits",
|
|
13791
|
+
"messages",
|
|
13792
|
+
"missions",
|
|
13793
|
+
"money",
|
|
13794
|
+
"networth",
|
|
13795
|
+
"newevents",
|
|
13796
|
+
"newmessages",
|
|
13797
|
+
"notifications",
|
|
13798
|
+
"perks",
|
|
13799
|
+
"profile",
|
|
13800
|
+
"properties",
|
|
13801
|
+
"refills",
|
|
13802
|
+
"reports",
|
|
13803
|
+
"skills",
|
|
13804
|
+
"stocks",
|
|
13805
|
+
"travel",
|
|
13806
|
+
"weaponexp",
|
|
13807
|
+
"workstats"
|
|
13808
|
+
]
|
|
13809
|
+
},
|
|
13810
|
+
{
|
|
13811
|
+
"type": "string"
|
|
13812
|
+
}
|
|
13604
13813
|
]
|
|
13605
13814
|
},
|
|
13606
13815
|
"UserLookupResponse": {
|
|
@@ -16680,6 +16889,120 @@
|
|
|
16680
16889
|
},
|
|
16681
16890
|
"type": "object"
|
|
16682
16891
|
},
|
|
16892
|
+
"FactionSearchLeader": {
|
|
16893
|
+
"required": [
|
|
16894
|
+
"id",
|
|
16895
|
+
"name"
|
|
16896
|
+
],
|
|
16897
|
+
"properties": {
|
|
16898
|
+
"id": {
|
|
16899
|
+
"$ref": "#/components/schemas/UserId"
|
|
16900
|
+
},
|
|
16901
|
+
"name": {
|
|
16902
|
+
"type": "string"
|
|
16903
|
+
}
|
|
16904
|
+
},
|
|
16905
|
+
"type": "object"
|
|
16906
|
+
},
|
|
16907
|
+
"FactionSearch": {
|
|
16908
|
+
"required": [
|
|
16909
|
+
"id",
|
|
16910
|
+
"name",
|
|
16911
|
+
"respect",
|
|
16912
|
+
"members",
|
|
16913
|
+
"leader",
|
|
16914
|
+
"co_leader",
|
|
16915
|
+
"image",
|
|
16916
|
+
"tag_image",
|
|
16917
|
+
"tag",
|
|
16918
|
+
"is_destroyed",
|
|
16919
|
+
"is_recruiting"
|
|
16920
|
+
],
|
|
16921
|
+
"properties": {
|
|
16922
|
+
"id": {
|
|
16923
|
+
"$ref": "#/components/schemas/FactionId"
|
|
16924
|
+
},
|
|
16925
|
+
"name": {
|
|
16926
|
+
"type": "string"
|
|
16927
|
+
},
|
|
16928
|
+
"respect": {
|
|
16929
|
+
"type": "integer",
|
|
16930
|
+
"format": "int32"
|
|
16931
|
+
},
|
|
16932
|
+
"members": {
|
|
16933
|
+
"type": "integer",
|
|
16934
|
+
"format": "int32"
|
|
16935
|
+
},
|
|
16936
|
+
"leader": {
|
|
16937
|
+
"$ref": "#/components/schemas/FactionSearchLeader"
|
|
16938
|
+
},
|
|
16939
|
+
"co_leader": {
|
|
16940
|
+
"oneOf": [
|
|
16941
|
+
{
|
|
16942
|
+
"$ref": "#/components/schemas/FactionSearchLeader"
|
|
16943
|
+
},
|
|
16944
|
+
{
|
|
16945
|
+
"type": "null"
|
|
16946
|
+
}
|
|
16947
|
+
]
|
|
16948
|
+
},
|
|
16949
|
+
"image": {
|
|
16950
|
+
"oneOf": [
|
|
16951
|
+
{
|
|
16952
|
+
"type": "string"
|
|
16953
|
+
},
|
|
16954
|
+
{
|
|
16955
|
+
"type": "null"
|
|
16956
|
+
}
|
|
16957
|
+
]
|
|
16958
|
+
},
|
|
16959
|
+
"tag_image": {
|
|
16960
|
+
"oneOf": [
|
|
16961
|
+
{
|
|
16962
|
+
"type": "string"
|
|
16963
|
+
},
|
|
16964
|
+
{
|
|
16965
|
+
"type": "null"
|
|
16966
|
+
}
|
|
16967
|
+
]
|
|
16968
|
+
},
|
|
16969
|
+
"tag": {
|
|
16970
|
+
"oneOf": [
|
|
16971
|
+
{
|
|
16972
|
+
"type": "string"
|
|
16973
|
+
},
|
|
16974
|
+
{
|
|
16975
|
+
"type": "null"
|
|
16976
|
+
}
|
|
16977
|
+
]
|
|
16978
|
+
},
|
|
16979
|
+
"is_destroyed": {
|
|
16980
|
+
"type": "boolean"
|
|
16981
|
+
},
|
|
16982
|
+
"is_recruiting": {
|
|
16983
|
+
"type": "boolean"
|
|
16984
|
+
}
|
|
16985
|
+
},
|
|
16986
|
+
"type": "object"
|
|
16987
|
+
},
|
|
16988
|
+
"FactionSearchResponse": {
|
|
16989
|
+
"required": [
|
|
16990
|
+
"search",
|
|
16991
|
+
"_metadata"
|
|
16992
|
+
],
|
|
16993
|
+
"properties": {
|
|
16994
|
+
"search": {
|
|
16995
|
+
"type": "array",
|
|
16996
|
+
"items": {
|
|
16997
|
+
"$ref": "#/components/schemas/FactionSearch"
|
|
16998
|
+
}
|
|
16999
|
+
},
|
|
17000
|
+
"_metadata": {
|
|
17001
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
17002
|
+
}
|
|
17003
|
+
},
|
|
17004
|
+
"type": "object"
|
|
17005
|
+
},
|
|
16683
17006
|
"FactionTerritoryWarFinished": {
|
|
16684
17007
|
"required": [
|
|
16685
17008
|
"id",
|
|
@@ -18905,57 +19228,56 @@
|
|
|
18905
19228
|
"type": "object"
|
|
18906
19229
|
},
|
|
18907
19230
|
"FactionSelectionName": {
|
|
18908
|
-
"
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
|
|
18921
|
-
|
|
18922
|
-
|
|
18923
|
-
|
|
18924
|
-
|
|
18925
|
-
|
|
18926
|
-
|
|
18927
|
-
|
|
18928
|
-
|
|
18929
|
-
|
|
18930
|
-
|
|
18931
|
-
|
|
18932
|
-
|
|
18933
|
-
|
|
18934
|
-
|
|
18935
|
-
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
|
|
18939
|
-
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
18953
|
-
|
|
18954
|
-
|
|
18955
|
-
|
|
18956
|
-
|
|
18957
|
-
|
|
18958
|
-
"territorynews"
|
|
19231
|
+
"oneOf": [
|
|
19232
|
+
{
|
|
19233
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'armor', 'boosters', 'caches', 'cesium', 'crimeexp', 'drugs', 'medical', 'temporary', 'weapons'.\n * The following selections are not available in API v2: 'armorynews', 'attacknews', 'crimenews', 'currency', 'donations', 'fundsnews', 'mainnews', 'membershipnews', 'territorynews'.",
|
|
19234
|
+
"type": "string",
|
|
19235
|
+
"enum": [
|
|
19236
|
+
"applications",
|
|
19237
|
+
"attacks",
|
|
19238
|
+
"attacksfull",
|
|
19239
|
+
"balance",
|
|
19240
|
+
"basic",
|
|
19241
|
+
"chain",
|
|
19242
|
+
"chainreport",
|
|
19243
|
+
"chains",
|
|
19244
|
+
"contributors",
|
|
19245
|
+
"crime",
|
|
19246
|
+
"crimes",
|
|
19247
|
+
"hof",
|
|
19248
|
+
"lookup",
|
|
19249
|
+
"members",
|
|
19250
|
+
"news",
|
|
19251
|
+
"positions",
|
|
19252
|
+
"rackets",
|
|
19253
|
+
"rankedwars",
|
|
19254
|
+
"rankedwarreport",
|
|
19255
|
+
"reports",
|
|
19256
|
+
"revives",
|
|
19257
|
+
"revivesfull",
|
|
19258
|
+
"search",
|
|
19259
|
+
"stats",
|
|
19260
|
+
"territory",
|
|
19261
|
+
"territoryownership",
|
|
19262
|
+
"territorywarreport",
|
|
19263
|
+
"territorywars",
|
|
19264
|
+
"timestamp",
|
|
19265
|
+
"upgrades",
|
|
19266
|
+
"wars",
|
|
19267
|
+
"armor",
|
|
19268
|
+
"boosters",
|
|
19269
|
+
"caches",
|
|
19270
|
+
"cesium",
|
|
19271
|
+
"crimeexp",
|
|
19272
|
+
"drugs",
|
|
19273
|
+
"medical",
|
|
19274
|
+
"temporary",
|
|
19275
|
+
"weapons"
|
|
19276
|
+
]
|
|
19277
|
+
},
|
|
19278
|
+
{
|
|
19279
|
+
"type": "string"
|
|
19280
|
+
}
|
|
18959
19281
|
]
|
|
18960
19282
|
},
|
|
18961
19283
|
"FactionLookupResponse": {
|
|
@@ -19669,14 +19991,21 @@
|
|
|
19669
19991
|
"type": "object"
|
|
19670
19992
|
},
|
|
19671
19993
|
"ForumSelectionName": {
|
|
19672
|
-
"
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
|
|
19676
|
-
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19994
|
+
"oneOf": [
|
|
19995
|
+
{
|
|
19996
|
+
"type": "string",
|
|
19997
|
+
"enum": [
|
|
19998
|
+
"categories",
|
|
19999
|
+
"lookup",
|
|
20000
|
+
"posts",
|
|
20001
|
+
"thread",
|
|
20002
|
+
"threads",
|
|
20003
|
+
"timestamp"
|
|
20004
|
+
]
|
|
20005
|
+
},
|
|
20006
|
+
{
|
|
20007
|
+
"type": "string"
|
|
20008
|
+
}
|
|
19680
20009
|
]
|
|
19681
20010
|
},
|
|
19682
20011
|
"ForumLookupResponse": {
|
|
@@ -19725,6 +20054,9 @@
|
|
|
19725
20054
|
"type": "integer",
|
|
19726
20055
|
"format": "int64"
|
|
19727
20056
|
},
|
|
20057
|
+
{
|
|
20058
|
+
"type": "string"
|
|
20059
|
+
},
|
|
19728
20060
|
{
|
|
19729
20061
|
"type": "null"
|
|
19730
20062
|
}
|
|
@@ -19882,10 +20214,17 @@
|
|
|
19882
20214
|
"type": "object"
|
|
19883
20215
|
},
|
|
19884
20216
|
"KeySelectionName": {
|
|
19885
|
-
"
|
|
19886
|
-
|
|
19887
|
-
|
|
19888
|
-
|
|
20217
|
+
"oneOf": [
|
|
20218
|
+
{
|
|
20219
|
+
"type": "string",
|
|
20220
|
+
"enum": [
|
|
20221
|
+
"info",
|
|
20222
|
+
"log"
|
|
20223
|
+
]
|
|
20224
|
+
},
|
|
20225
|
+
{
|
|
20226
|
+
"type": "string"
|
|
20227
|
+
}
|
|
19889
20228
|
]
|
|
19890
20229
|
},
|
|
19891
20230
|
"ItemMarketListingItemBonus": {
|
|
@@ -20064,7 +20403,8 @@
|
|
|
20064
20403
|
"ItemMarket": {
|
|
20065
20404
|
"required": [
|
|
20066
20405
|
"item",
|
|
20067
|
-
"listings"
|
|
20406
|
+
"listings",
|
|
20407
|
+
"cache_timestamp"
|
|
20068
20408
|
],
|
|
20069
20409
|
"properties": {
|
|
20070
20410
|
"item": {
|
|
@@ -20082,6 +20422,11 @@
|
|
|
20082
20422
|
}
|
|
20083
20423
|
]
|
|
20084
20424
|
}
|
|
20425
|
+
},
|
|
20426
|
+
"cache_timestamp": {
|
|
20427
|
+
"description": "Timestamp when the data was globally cached at.",
|
|
20428
|
+
"type": "integer",
|
|
20429
|
+
"format": "int32"
|
|
20085
20430
|
}
|
|
20086
20431
|
},
|
|
20087
20432
|
"type": "object"
|
|
@@ -20102,14 +20447,21 @@
|
|
|
20102
20447
|
"type": "object"
|
|
20103
20448
|
},
|
|
20104
20449
|
"MarketSelectionName": {
|
|
20105
|
-
"
|
|
20106
|
-
|
|
20107
|
-
|
|
20108
|
-
|
|
20109
|
-
|
|
20110
|
-
|
|
20111
|
-
|
|
20112
|
-
|
|
20450
|
+
"oneOf": [
|
|
20451
|
+
{
|
|
20452
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'pointsmarket'.",
|
|
20453
|
+
"type": "string",
|
|
20454
|
+
"enum": [
|
|
20455
|
+
"itemmarket",
|
|
20456
|
+
"lookup",
|
|
20457
|
+
"timestamp",
|
|
20458
|
+
"pointsmarket",
|
|
20459
|
+
"bazaar"
|
|
20460
|
+
]
|
|
20461
|
+
},
|
|
20462
|
+
{
|
|
20463
|
+
"type": "string"
|
|
20464
|
+
}
|
|
20113
20465
|
]
|
|
20114
20466
|
},
|
|
20115
20467
|
"MarketLookupResponse": {
|
|
@@ -20650,16 +21002,23 @@
|
|
|
20650
21002
|
"type": "object"
|
|
20651
21003
|
},
|
|
20652
21004
|
"RacingSelectionName": {
|
|
20653
|
-
"
|
|
20654
|
-
|
|
20655
|
-
|
|
20656
|
-
|
|
20657
|
-
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
|
|
21005
|
+
"oneOf": [
|
|
21006
|
+
{
|
|
21007
|
+
"type": "string",
|
|
21008
|
+
"enum": [
|
|
21009
|
+
"cars",
|
|
21010
|
+
"carupgrades",
|
|
21011
|
+
"lookup",
|
|
21012
|
+
"race",
|
|
21013
|
+
"races",
|
|
21014
|
+
"records",
|
|
21015
|
+
"timestamp",
|
|
21016
|
+
"tracks"
|
|
21017
|
+
]
|
|
21018
|
+
},
|
|
21019
|
+
{
|
|
21020
|
+
"type": "string"
|
|
21021
|
+
}
|
|
20663
21022
|
]
|
|
20664
21023
|
},
|
|
20665
21024
|
"RacingLookupResponse": {
|
|
@@ -22078,55 +22437,55 @@
|
|
|
22078
22437
|
"type": "object"
|
|
22079
22438
|
},
|
|
22080
22439
|
"TornSelectionName": {
|
|
22081
|
-
"
|
|
22082
|
-
|
|
22083
|
-
|
|
22084
|
-
|
|
22085
|
-
|
|
22086
|
-
|
|
22087
|
-
|
|
22088
|
-
|
|
22089
|
-
|
|
22090
|
-
|
|
22091
|
-
|
|
22092
|
-
|
|
22093
|
-
|
|
22094
|
-
|
|
22095
|
-
|
|
22096
|
-
|
|
22097
|
-
|
|
22098
|
-
|
|
22099
|
-
|
|
22100
|
-
|
|
22101
|
-
|
|
22102
|
-
|
|
22103
|
-
|
|
22104
|
-
|
|
22105
|
-
|
|
22106
|
-
|
|
22107
|
-
|
|
22108
|
-
|
|
22109
|
-
|
|
22110
|
-
|
|
22111
|
-
|
|
22112
|
-
|
|
22113
|
-
|
|
22114
|
-
|
|
22115
|
-
|
|
22116
|
-
|
|
22117
|
-
|
|
22118
|
-
|
|
22119
|
-
|
|
22120
|
-
|
|
22121
|
-
|
|
22122
|
-
|
|
22123
|
-
|
|
22124
|
-
|
|
22125
|
-
|
|
22126
|
-
|
|
22127
|
-
|
|
22128
|
-
|
|
22129
|
-
|
|
22440
|
+
"oneOf": [
|
|
22441
|
+
{
|
|
22442
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','dirtybombs','gyms','honors','itemdetails','itemstats','medals','organisedcrimes','pawnshop','pokertables','properties','raidreport','raids','rockpaperscissors','searchforcash','shoplifting','stats','stocks'.\n * The following selections are not available in API v2: 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
|
|
22443
|
+
"type": "string",
|
|
22444
|
+
"enum": [
|
|
22445
|
+
"attacklog",
|
|
22446
|
+
"bounties",
|
|
22447
|
+
"calendar",
|
|
22448
|
+
"crimes",
|
|
22449
|
+
"education",
|
|
22450
|
+
"factionhof",
|
|
22451
|
+
"factiontree",
|
|
22452
|
+
"hof",
|
|
22453
|
+
"itemammo",
|
|
22454
|
+
"itemmods",
|
|
22455
|
+
"items",
|
|
22456
|
+
"logcategories",
|
|
22457
|
+
"logtypes",
|
|
22458
|
+
"lookup",
|
|
22459
|
+
"subcrimes",
|
|
22460
|
+
"territory",
|
|
22461
|
+
"timestamp",
|
|
22462
|
+
"bank",
|
|
22463
|
+
"cards",
|
|
22464
|
+
"cityshops",
|
|
22465
|
+
"companies",
|
|
22466
|
+
"competition",
|
|
22467
|
+
"dirtybombs",
|
|
22468
|
+
"gyms",
|
|
22469
|
+
"honors",
|
|
22470
|
+
"itemdetails",
|
|
22471
|
+
"itemstats",
|
|
22472
|
+
"medals",
|
|
22473
|
+
"organisedcrimes",
|
|
22474
|
+
"pawnshop",
|
|
22475
|
+
"pokertables",
|
|
22476
|
+
"properties",
|
|
22477
|
+
"raidreport",
|
|
22478
|
+
"raids",
|
|
22479
|
+
"rockpaperscissors",
|
|
22480
|
+
"searchforcash",
|
|
22481
|
+
"shoplifting",
|
|
22482
|
+
"stats",
|
|
22483
|
+
"stocks"
|
|
22484
|
+
]
|
|
22485
|
+
},
|
|
22486
|
+
{
|
|
22487
|
+
"type": "string"
|
|
22488
|
+
}
|
|
22130
22489
|
]
|
|
22131
22490
|
},
|
|
22132
22491
|
"TornLookupResponse": {
|
|
@@ -22181,6 +22540,35 @@
|
|
|
22181
22540
|
"type": "string"
|
|
22182
22541
|
}
|
|
22183
22542
|
},
|
|
22543
|
+
"ApiFactionSearchFilter": {
|
|
22544
|
+
"name": "filters",
|
|
22545
|
+
"in": "query",
|
|
22546
|
+
"description": "A filtering query parameter allowing a comma-separated list of filters. <br>\n * Each filter can be one of the following:\n * Fixed options: 'destroyed', 'notDestroyed', 'recruiting', 'notRecruiting'\n * Dynamic options: `fieldName`+`condition`+`number`, where:\n * * `fieldName` is one of: `id`, `respect`, `members`\n * * `condition` is one of: `Equal`, `NotEqual`, `Less`, `LessOrEqual`, `GreaterOrEqual`, `Greater`\n * * `number`: any integer value\n * Examples: `filters=destroyed`, `filters=notDestroyed,recruiting`, `filters=respectLessOrEqual20000,idGreater100,notRecruiting`",
|
|
22547
|
+
"required": false,
|
|
22548
|
+
"style": "form",
|
|
22549
|
+
"explode": false,
|
|
22550
|
+
"schema": {
|
|
22551
|
+
"type": "array",
|
|
22552
|
+
"items": {
|
|
22553
|
+
"schema": "Parameters",
|
|
22554
|
+
"oneOf": [
|
|
22555
|
+
{
|
|
22556
|
+
"type": "string",
|
|
22557
|
+
"enum": [
|
|
22558
|
+
"destroyed",
|
|
22559
|
+
"notDestroyed",
|
|
22560
|
+
"recruiting",
|
|
22561
|
+
"notRecruiting"
|
|
22562
|
+
]
|
|
22563
|
+
},
|
|
22564
|
+
{
|
|
22565
|
+
"type": "string",
|
|
22566
|
+
"pattern": "^(id|respect|members)(Equal|NotEqual|Less|LessOrEqual|GreaterOrEqual|Greater)\\d+$"
|
|
22567
|
+
}
|
|
22568
|
+
]
|
|
22569
|
+
}
|
|
22570
|
+
}
|
|
22571
|
+
},
|
|
22184
22572
|
"ApiComment": {
|
|
22185
22573
|
"name": "comment",
|
|
22186
22574
|
"in": "query",
|
|
@@ -22190,6 +22578,15 @@
|
|
|
22190
22578
|
"type": "string"
|
|
22191
22579
|
}
|
|
22192
22580
|
},
|
|
22581
|
+
"ApiName": {
|
|
22582
|
+
"name": "name",
|
|
22583
|
+
"in": "query",
|
|
22584
|
+
"description": "Name to search for.",
|
|
22585
|
+
"required": false,
|
|
22586
|
+
"schema": {
|
|
22587
|
+
"type": "string"
|
|
22588
|
+
}
|
|
22589
|
+
},
|
|
22193
22590
|
"ApiLimit20": {
|
|
22194
22591
|
"name": "limit",
|
|
22195
22592
|
"in": "query",
|