tornapi-typescript 0.1.0 → 0.1.2
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 +182 -8
- package/dist/openapi.json +690 -20
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,76 @@
|
|
|
9
9
|
|
|
10
10
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
11
11
|
|
|
12
|
+
export type FactionStatEnum =
|
|
13
|
+
| "medicalitemsused"
|
|
14
|
+
| "criminaloffences"
|
|
15
|
+
| "organisedcrimerespect"
|
|
16
|
+
| "organisedcrimemoney"
|
|
17
|
+
| "organisedcrimesuccess"
|
|
18
|
+
| "organisedcrimefail"
|
|
19
|
+
| "attackswon"
|
|
20
|
+
| "attackslost"
|
|
21
|
+
| "attackschain"
|
|
22
|
+
| "attacksleave"
|
|
23
|
+
| "attacksmug"
|
|
24
|
+
| "attackshosp"
|
|
25
|
+
| "bestchain"
|
|
26
|
+
| "busts"
|
|
27
|
+
| "revives"
|
|
28
|
+
| "jails"
|
|
29
|
+
| "hosps"
|
|
30
|
+
| "medicalitemrecovery"
|
|
31
|
+
| "medicalcooldownused"
|
|
32
|
+
| "gymtrains"
|
|
33
|
+
| "gymstrength"
|
|
34
|
+
| "gymspeed"
|
|
35
|
+
| "gymdefense"
|
|
36
|
+
| "gymdexterity"
|
|
37
|
+
| "candyused"
|
|
38
|
+
| "alcoholused"
|
|
39
|
+
| "energydrinkused"
|
|
40
|
+
| "drugsused"
|
|
41
|
+
| "drugoverdoses"
|
|
42
|
+
| "rehabs"
|
|
43
|
+
| "caymaninterest"
|
|
44
|
+
| "traveltimes"
|
|
45
|
+
| "traveltime"
|
|
46
|
+
| "hunting"
|
|
47
|
+
| "attacksdamagehits"
|
|
48
|
+
| "attacksdamage"
|
|
49
|
+
| "hosptimegiven"
|
|
50
|
+
| "hosptimereceived"
|
|
51
|
+
| "attacksdamaging"
|
|
52
|
+
| "attacksrunaway"
|
|
53
|
+
| "highestterritories"
|
|
54
|
+
| "territoryrespect";
|
|
55
|
+
|
|
56
|
+
export type FactionBranchStateEnum = "war" | "peace";
|
|
57
|
+
|
|
58
|
+
export type FactionPositionAbilityEnum =
|
|
59
|
+
| "Medical Item Usage"
|
|
60
|
+
| "Booster Item Usage"
|
|
61
|
+
| "Drug Item Usage"
|
|
62
|
+
| "Energy Refill Usage"
|
|
63
|
+
| "Nerve Refill Usage"
|
|
64
|
+
| "Temporary Item Loaning"
|
|
65
|
+
| "Weapon & Armor Loaning"
|
|
66
|
+
| "Item Retrieving"
|
|
67
|
+
| "Organised Crimes"
|
|
68
|
+
| "Faction API Access"
|
|
69
|
+
| "Item Giving"
|
|
70
|
+
| "Money Giving"
|
|
71
|
+
| "Points Giving"
|
|
72
|
+
| "Forum Management"
|
|
73
|
+
| "Application Management"
|
|
74
|
+
| "Kick Members"
|
|
75
|
+
| "Balance Adjustment"
|
|
76
|
+
| "War Management"
|
|
77
|
+
| "Upgrade Management"
|
|
78
|
+
| "Newsletter Sending"
|
|
79
|
+
| "Announcement Changes"
|
|
80
|
+
| "Description Changes";
|
|
81
|
+
|
|
12
82
|
export type FactionOrganizedCrimePayoutType =
|
|
13
83
|
| "balance"
|
|
14
84
|
| "wallet"
|
|
@@ -318,6 +388,8 @@ export type LogCategoryId = number;
|
|
|
318
388
|
|
|
319
389
|
export type FactionId = number;
|
|
320
390
|
|
|
391
|
+
export type FactionBranchId = number;
|
|
392
|
+
|
|
321
393
|
export type FactionCrimeId = number;
|
|
322
394
|
|
|
323
395
|
export type ChainId = number;
|
|
@@ -622,6 +694,66 @@ export interface TimestampResponse {
|
|
|
622
694
|
timestamp: number;
|
|
623
695
|
}
|
|
624
696
|
|
|
697
|
+
export interface FactionPosition {
|
|
698
|
+
name: string;
|
|
699
|
+
is_default: boolean;
|
|
700
|
+
abilities: FactionPositionAbilityEnum[];
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
export interface FactionPositionsResponse {
|
|
704
|
+
positions: FactionPosition[];
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
export interface FactionUpgradeDetails {
|
|
708
|
+
id: FactionBranchId;
|
|
709
|
+
name: string;
|
|
710
|
+
ability: string;
|
|
711
|
+
level: number;
|
|
712
|
+
cost: number;
|
|
713
|
+
unlocked_at?: number;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export interface FactionBranchDetails {
|
|
717
|
+
name: string;
|
|
718
|
+
order: number;
|
|
719
|
+
/** Respect cost multiplier. */
|
|
720
|
+
multiplier: number;
|
|
721
|
+
upgrades: FactionUpgradeDetails[];
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export interface FactionUpgrades {
|
|
725
|
+
core: {
|
|
726
|
+
upgrades?: FactionUpgradeDetails[];
|
|
727
|
+
};
|
|
728
|
+
peace: FactionBranchDetails[];
|
|
729
|
+
war: FactionBranchDetails[];
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export interface FactionUpgradesResponse {
|
|
733
|
+
upgrades: FactionUpgrades;
|
|
734
|
+
state: FactionBranchStateEnum;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
export interface FactionStat {
|
|
738
|
+
name: FactionStatEnum;
|
|
739
|
+
value: number;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export interface FactionStatsResponse {
|
|
743
|
+
stats: FactionStat[];
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export interface FactionContributor {
|
|
747
|
+
id: UserId;
|
|
748
|
+
username: string;
|
|
749
|
+
value: number;
|
|
750
|
+
in_faction: boolean;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
export interface FactionContributorsResponse {
|
|
754
|
+
contributors: FactionContributor[];
|
|
755
|
+
}
|
|
756
|
+
|
|
625
757
|
export interface FactionHofStats {
|
|
626
758
|
rank: HofValueString;
|
|
627
759
|
respect: HofValue;
|
|
@@ -996,15 +1128,35 @@ export interface FactionCrimeResponse {
|
|
|
996
1128
|
crime: FactionCrime;
|
|
997
1129
|
}
|
|
998
1130
|
|
|
999
|
-
|
|
1131
|
+
export interface FactionBalance {
|
|
1132
|
+
faction: {
|
|
1133
|
+
money: number;
|
|
1134
|
+
points: number;
|
|
1135
|
+
scope: number;
|
|
1136
|
+
};
|
|
1137
|
+
members: {
|
|
1138
|
+
id: UserId;
|
|
1139
|
+
username: string;
|
|
1140
|
+
money: number;
|
|
1141
|
+
points: number;
|
|
1142
|
+
}[];
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
export interface FactionBalanceResponse {
|
|
1146
|
+
balance: FactionBalance;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/** The following selections will fallback to API v1 and may change at any time: 'armor', 'boosters', 'caches', 'cesium', 'crimeexp', 'drugs', 'medical', 'positions', 'reports', 'temporary', 'weapons'. */
|
|
1000
1150
|
export type FactionSelectionName =
|
|
1001
1151
|
| "applications"
|
|
1002
1152
|
| "attacks"
|
|
1003
1153
|
| "attacksfull"
|
|
1154
|
+
| "balance"
|
|
1004
1155
|
| "basic"
|
|
1005
1156
|
| "chain"
|
|
1006
1157
|
| "chainreport"
|
|
1007
1158
|
| "chains"
|
|
1159
|
+
| "contributors"
|
|
1008
1160
|
| "crime"
|
|
1009
1161
|
| "crimes"
|
|
1010
1162
|
| "hof"
|
|
@@ -1015,24 +1167,21 @@ export type FactionSelectionName =
|
|
|
1015
1167
|
| "rankedwarreport"
|
|
1016
1168
|
| "revives"
|
|
1017
1169
|
| "revivesfull"
|
|
1170
|
+
| "stats"
|
|
1018
1171
|
| "timestamp"
|
|
1172
|
+
| "upgrades"
|
|
1019
1173
|
| "wars"
|
|
1020
1174
|
| "armor"
|
|
1021
1175
|
| "boosters"
|
|
1022
1176
|
| "caches"
|
|
1023
1177
|
| "cesium"
|
|
1024
|
-
| "contributors"
|
|
1025
1178
|
| "crimeexp"
|
|
1026
|
-
| "currency"
|
|
1027
|
-
| "donations"
|
|
1028
1179
|
| "drugs"
|
|
1029
1180
|
| "medical"
|
|
1030
1181
|
| "positions"
|
|
1031
1182
|
| "reports"
|
|
1032
|
-
| "stats"
|
|
1033
1183
|
| "temporary"
|
|
1034
1184
|
| "territory"
|
|
1035
|
-
| "upgrades"
|
|
1036
1185
|
| "weapons";
|
|
1037
1186
|
|
|
1038
1187
|
export interface FactionLookupResponse {
|
|
@@ -1653,13 +1802,39 @@ export interface TornItemsResponse {
|
|
|
1653
1802
|
items: TornItem[];
|
|
1654
1803
|
}
|
|
1655
1804
|
|
|
1656
|
-
|
|
1805
|
+
export interface TornFactionTreeBranch {
|
|
1806
|
+
id: FactionBranchId;
|
|
1807
|
+
name: string;
|
|
1808
|
+
upgrades: {
|
|
1809
|
+
name: string;
|
|
1810
|
+
level: number;
|
|
1811
|
+
ability: string;
|
|
1812
|
+
cost: number;
|
|
1813
|
+
challenge: {
|
|
1814
|
+
description: string;
|
|
1815
|
+
amount_required: number;
|
|
1816
|
+
stat: FactionStatEnum;
|
|
1817
|
+
} | null;
|
|
1818
|
+
}[];
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
export interface TornFactionTree {
|
|
1822
|
+
name: string;
|
|
1823
|
+
branches: TornFactionTreeBranch[];
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
export interface TornFactionTreeResponse {
|
|
1827
|
+
factionTree: TornFactionTree;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
/** The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','dirtybombs','education','gyms','honors','itemdetails','itemstats','medals','organisedcrimes','pawnshop','pokertables','properties','rackets','raidreport','raids','rockpaperscissors','searchforcash','shoplifting','stats','stocks','territory','territorynames','territorywarreport','territorywars'. */
|
|
1657
1831
|
export type TornSelectionName =
|
|
1658
1832
|
| "attacklog"
|
|
1659
1833
|
| "bounties"
|
|
1660
1834
|
| "calendar"
|
|
1661
1835
|
| "crimes"
|
|
1662
1836
|
| "factionHof"
|
|
1837
|
+
| "factiontree"
|
|
1663
1838
|
| "hof"
|
|
1664
1839
|
| "itemammo"
|
|
1665
1840
|
| "itemmods"
|
|
@@ -1676,7 +1851,6 @@ export type TornSelectionName =
|
|
|
1676
1851
|
| "competition"
|
|
1677
1852
|
| "dirtybombs"
|
|
1678
1853
|
| "education"
|
|
1679
|
-
| "factiontree"
|
|
1680
1854
|
| "gyms"
|
|
1681
1855
|
| "honors"
|
|
1682
1856
|
| "itemdetails"
|
package/dist/openapi.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Torn API",
|
|
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.",
|
|
6
|
-
"version": "1.
|
|
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.2.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -1333,6 +1333,33 @@
|
|
|
1333
1333
|
"x-stability": "Stable"
|
|
1334
1334
|
}
|
|
1335
1335
|
},
|
|
1336
|
+
"/faction/balance": {
|
|
1337
|
+
"get": {
|
|
1338
|
+
"tags": [
|
|
1339
|
+
"Faction"
|
|
1340
|
+
],
|
|
1341
|
+
"summary": "Get your faction's & member's balance details",
|
|
1342
|
+
"description": "Requires limited access key with faction API access permissions. <br>",
|
|
1343
|
+
"responses": {
|
|
1344
|
+
"200": {
|
|
1345
|
+
"description": "Successful operation",
|
|
1346
|
+
"content": {
|
|
1347
|
+
"application/json": {
|
|
1348
|
+
"schema": {
|
|
1349
|
+
"$ref": "#/components/schemas/FactionBalanceResponse"
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
"security": [
|
|
1356
|
+
{
|
|
1357
|
+
"api_key": []
|
|
1358
|
+
}
|
|
1359
|
+
],
|
|
1360
|
+
"x-stability": "Stable"
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1336
1363
|
"/faction/basic": {
|
|
1337
1364
|
"get": {
|
|
1338
1365
|
"tags": [
|
|
@@ -1619,13 +1646,64 @@
|
|
|
1619
1646
|
"x-stability": "Stable"
|
|
1620
1647
|
}
|
|
1621
1648
|
},
|
|
1649
|
+
"/faction/contributors": {
|
|
1650
|
+
"get": {
|
|
1651
|
+
"tags": [
|
|
1652
|
+
"Faction"
|
|
1653
|
+
],
|
|
1654
|
+
"summary": "Get your faction's challenge contributors",
|
|
1655
|
+
"description": "Requires limiteed access key with faction API access permissions. <br>",
|
|
1656
|
+
"parameters": [
|
|
1657
|
+
{
|
|
1658
|
+
"name": "stat",
|
|
1659
|
+
"in": "query",
|
|
1660
|
+
"description": "Get contributors for this field.",
|
|
1661
|
+
"required": true,
|
|
1662
|
+
"schema": {
|
|
1663
|
+
"$ref": "#/components/schemas/FactionStatEnum"
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"name": "cat",
|
|
1668
|
+
"in": "query",
|
|
1669
|
+
"description": "By default, this selection will return only current faction's member contributions, and the option 'all' will return all contributors.",
|
|
1670
|
+
"required": false,
|
|
1671
|
+
"schema": {
|
|
1672
|
+
"type": "string",
|
|
1673
|
+
"enum": [
|
|
1674
|
+
"all",
|
|
1675
|
+
"current"
|
|
1676
|
+
]
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
],
|
|
1680
|
+
"responses": {
|
|
1681
|
+
"200": {
|
|
1682
|
+
"description": "Successful operation",
|
|
1683
|
+
"content": {
|
|
1684
|
+
"application/json": {
|
|
1685
|
+
"schema": {
|
|
1686
|
+
"$ref": "#/components/schemas/FactionContributorsResponse"
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
},
|
|
1692
|
+
"security": [
|
|
1693
|
+
{
|
|
1694
|
+
"api_key": []
|
|
1695
|
+
}
|
|
1696
|
+
],
|
|
1697
|
+
"x-stability": "Unstable"
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1622
1700
|
"/faction/crimes": {
|
|
1623
1701
|
"get": {
|
|
1624
1702
|
"tags": [
|
|
1625
1703
|
"Faction"
|
|
1626
1704
|
],
|
|
1627
1705
|
"summary": "Get your faction's organized crimes",
|
|
1628
|
-
"description": "Requires
|
|
1706
|
+
"description": "Requires minimal access key with faction API access permissions. <br> It's possible to get older entries either by timestamp range (from, to) or with offset.",
|
|
1629
1707
|
"parameters": [
|
|
1630
1708
|
{
|
|
1631
1709
|
"name": "cat",
|
|
@@ -1685,7 +1763,7 @@
|
|
|
1685
1763
|
"Faction"
|
|
1686
1764
|
],
|
|
1687
1765
|
"summary": "Get a specific organized crime",
|
|
1688
|
-
"description": "Requires
|
|
1766
|
+
"description": "Requires minimal access key with faction API access permissions. <br>",
|
|
1689
1767
|
"parameters": [
|
|
1690
1768
|
{
|
|
1691
1769
|
"name": "id",
|
|
@@ -1908,6 +1986,33 @@
|
|
|
1908
1986
|
"x-stability": "Stable"
|
|
1909
1987
|
}
|
|
1910
1988
|
},
|
|
1989
|
+
"/faction/positions": {
|
|
1990
|
+
"get": {
|
|
1991
|
+
"tags": [
|
|
1992
|
+
"Faction"
|
|
1993
|
+
],
|
|
1994
|
+
"summary": "Get your faction's positions details",
|
|
1995
|
+
"description": "Requires minimal access key with faction API access permissions. <br>",
|
|
1996
|
+
"responses": {
|
|
1997
|
+
"200": {
|
|
1998
|
+
"description": "Successful operation",
|
|
1999
|
+
"content": {
|
|
2000
|
+
"application/json": {
|
|
2001
|
+
"schema": {
|
|
2002
|
+
"$ref": "#/components/schemas/FactionPositionsResponse"
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
"security": [
|
|
2009
|
+
{
|
|
2010
|
+
"api_key": []
|
|
2011
|
+
}
|
|
2012
|
+
],
|
|
2013
|
+
"x-stability": "Unstable"
|
|
2014
|
+
}
|
|
2015
|
+
},
|
|
1911
2016
|
"/faction/rankedwars": {
|
|
1912
2017
|
"get": {
|
|
1913
2018
|
"tags": [
|
|
@@ -2119,6 +2224,60 @@
|
|
|
2119
2224
|
"x-stability": "Stable"
|
|
2120
2225
|
}
|
|
2121
2226
|
},
|
|
2227
|
+
"/faction/stats": {
|
|
2228
|
+
"get": {
|
|
2229
|
+
"tags": [
|
|
2230
|
+
"Faction"
|
|
2231
|
+
],
|
|
2232
|
+
"summary": "Get your faction's challenges stats",
|
|
2233
|
+
"description": "Requires minimal access key with faction API access permissions. <br>",
|
|
2234
|
+
"responses": {
|
|
2235
|
+
"200": {
|
|
2236
|
+
"description": "Successful operation",
|
|
2237
|
+
"content": {
|
|
2238
|
+
"application/json": {
|
|
2239
|
+
"schema": {
|
|
2240
|
+
"$ref": "#/components/schemas/FactionStatsResponse"
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
},
|
|
2246
|
+
"security": [
|
|
2247
|
+
{
|
|
2248
|
+
"api_key": []
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
"x-stability": "Unstable"
|
|
2252
|
+
}
|
|
2253
|
+
},
|
|
2254
|
+
"/faction/upgrades": {
|
|
2255
|
+
"get": {
|
|
2256
|
+
"tags": [
|
|
2257
|
+
"Faction"
|
|
2258
|
+
],
|
|
2259
|
+
"summary": "Get your faction's upgrades",
|
|
2260
|
+
"description": "Requires minimal access key with faction API access permissions. <br>",
|
|
2261
|
+
"responses": {
|
|
2262
|
+
"200": {
|
|
2263
|
+
"description": "Successful operation",
|
|
2264
|
+
"content": {
|
|
2265
|
+
"application/json": {
|
|
2266
|
+
"schema": {
|
|
2267
|
+
"$ref": "#/components/schemas/FactionUpgradesResponse"
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
},
|
|
2273
|
+
"security": [
|
|
2274
|
+
{
|
|
2275
|
+
"api_key": []
|
|
2276
|
+
}
|
|
2277
|
+
],
|
|
2278
|
+
"x-stability": "Unstable"
|
|
2279
|
+
}
|
|
2280
|
+
},
|
|
2122
2281
|
"/faction/wars": {
|
|
2123
2282
|
"get": {
|
|
2124
2283
|
"tags": [
|
|
@@ -2286,6 +2445,15 @@
|
|
|
2286
2445
|
"type": "string"
|
|
2287
2446
|
}
|
|
2288
2447
|
},
|
|
2448
|
+
{
|
|
2449
|
+
"name": "stat",
|
|
2450
|
+
"in": "query",
|
|
2451
|
+
"description": "Stat category",
|
|
2452
|
+
"required": false,
|
|
2453
|
+
"schema": {
|
|
2454
|
+
"type": "string"
|
|
2455
|
+
}
|
|
2456
|
+
},
|
|
2289
2457
|
{
|
|
2290
2458
|
"$ref": "#/components/parameters/ApiStripTags"
|
|
2291
2459
|
},
|
|
@@ -2345,6 +2513,15 @@
|
|
|
2345
2513
|
{
|
|
2346
2514
|
"$ref": "#/components/schemas/FactionRankedWarReportResponse"
|
|
2347
2515
|
},
|
|
2516
|
+
{
|
|
2517
|
+
"$ref": "#/components/schemas/FactionUpgradesResponse"
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
"$ref": "#/components/schemas/FactionStatsResponse"
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
"$ref": "#/components/schemas/FactionContributorsResponse"
|
|
2524
|
+
},
|
|
2348
2525
|
{
|
|
2349
2526
|
"$ref": "#/components/schemas/FactionLookupResponse"
|
|
2350
2527
|
},
|
|
@@ -3475,6 +3652,33 @@
|
|
|
3475
3652
|
"x-stability": "Stable"
|
|
3476
3653
|
}
|
|
3477
3654
|
},
|
|
3655
|
+
"/torn/factiontree": {
|
|
3656
|
+
"get": {
|
|
3657
|
+
"tags": [
|
|
3658
|
+
"Torn"
|
|
3659
|
+
],
|
|
3660
|
+
"summary": "Get full faction tree",
|
|
3661
|
+
"description": "Requires public access key. <br> ",
|
|
3662
|
+
"responses": {
|
|
3663
|
+
"200": {
|
|
3664
|
+
"description": "Successful operation",
|
|
3665
|
+
"content": {
|
|
3666
|
+
"application/json": {
|
|
3667
|
+
"schema": {
|
|
3668
|
+
"$ref": "#/components/schemas/TornFactionTreeResponse"
|
|
3669
|
+
}
|
|
3670
|
+
}
|
|
3671
|
+
}
|
|
3672
|
+
}
|
|
3673
|
+
},
|
|
3674
|
+
"security": [
|
|
3675
|
+
{
|
|
3676
|
+
"api_key": []
|
|
3677
|
+
}
|
|
3678
|
+
],
|
|
3679
|
+
"x-stability": "Unstable"
|
|
3680
|
+
}
|
|
3681
|
+
},
|
|
3478
3682
|
"/torn/hof": {
|
|
3479
3683
|
"get": {
|
|
3480
3684
|
"tags": [
|
|
@@ -3956,6 +4160,9 @@
|
|
|
3956
4160
|
{
|
|
3957
4161
|
"$ref": "#/components/schemas/TornItemAmmoResponse"
|
|
3958
4162
|
},
|
|
4163
|
+
{
|
|
4164
|
+
"$ref": "#/components/schemas/TornFactionTreeResponse"
|
|
4165
|
+
},
|
|
3959
4166
|
{
|
|
3960
4167
|
"$ref": "#/components/schemas/TornItemModsResponse"
|
|
3961
4168
|
},
|
|
@@ -3992,6 +4199,88 @@
|
|
|
3992
4199
|
"E"
|
|
3993
4200
|
]
|
|
3994
4201
|
},
|
|
4202
|
+
"FactionStatEnum": {
|
|
4203
|
+
"type": "string",
|
|
4204
|
+
"enum": [
|
|
4205
|
+
"medicalitemsused",
|
|
4206
|
+
"criminaloffences",
|
|
4207
|
+
"organisedcrimerespect",
|
|
4208
|
+
"organisedcrimemoney",
|
|
4209
|
+
"organisedcrimesuccess",
|
|
4210
|
+
"organisedcrimefail",
|
|
4211
|
+
"attackswon",
|
|
4212
|
+
"attackslost",
|
|
4213
|
+
"attackschain",
|
|
4214
|
+
"attacksleave",
|
|
4215
|
+
"attacksmug",
|
|
4216
|
+
"attackshosp",
|
|
4217
|
+
"bestchain",
|
|
4218
|
+
"busts",
|
|
4219
|
+
"revives",
|
|
4220
|
+
"jails",
|
|
4221
|
+
"hosps",
|
|
4222
|
+
"medicalitemrecovery",
|
|
4223
|
+
"medicalcooldownused",
|
|
4224
|
+
"gymtrains",
|
|
4225
|
+
"gymstrength",
|
|
4226
|
+
"gymspeed",
|
|
4227
|
+
"gymdefense",
|
|
4228
|
+
"gymdexterity",
|
|
4229
|
+
"candyused",
|
|
4230
|
+
"alcoholused",
|
|
4231
|
+
"energydrinkused",
|
|
4232
|
+
"drugsused",
|
|
4233
|
+
"drugoverdoses",
|
|
4234
|
+
"rehabs",
|
|
4235
|
+
"caymaninterest",
|
|
4236
|
+
"traveltimes",
|
|
4237
|
+
"traveltime",
|
|
4238
|
+
"hunting",
|
|
4239
|
+
"attacksdamagehits",
|
|
4240
|
+
"attacksdamage",
|
|
4241
|
+
"hosptimegiven",
|
|
4242
|
+
"hosptimereceived",
|
|
4243
|
+
"attacksdamaging",
|
|
4244
|
+
"attacksrunaway",
|
|
4245
|
+
"highestterritories",
|
|
4246
|
+
"territoryrespect"
|
|
4247
|
+
]
|
|
4248
|
+
},
|
|
4249
|
+
"FactionBranchStateEnum": {
|
|
4250
|
+
"type": "string",
|
|
4251
|
+
"enum": [
|
|
4252
|
+
"war",
|
|
4253
|
+
"peace"
|
|
4254
|
+
]
|
|
4255
|
+
},
|
|
4256
|
+
"FactionPositionAbilityEnum": {
|
|
4257
|
+
"type": "string",
|
|
4258
|
+
"enum": [
|
|
4259
|
+
"Medical Item Usage",
|
|
4260
|
+
"Booster Item Usage",
|
|
4261
|
+
"Drug Item Usage",
|
|
4262
|
+
"Energy Refill Usage",
|
|
4263
|
+
"Nerve Refill Usage",
|
|
4264
|
+
"Temporary Item Loaning",
|
|
4265
|
+
"Weapon & Armor Loaning",
|
|
4266
|
+
"Item Retrieving",
|
|
4267
|
+
"Organised Crimes",
|
|
4268
|
+
"Faction API Access",
|
|
4269
|
+
"Item Giving",
|
|
4270
|
+
"Money Giving",
|
|
4271
|
+
"Points Giving",
|
|
4272
|
+
"Forum Management",
|
|
4273
|
+
"Application Management",
|
|
4274
|
+
"Kick Members",
|
|
4275
|
+
"Balance Adjustment",
|
|
4276
|
+
"War Management",
|
|
4277
|
+
"Upgrade Management",
|
|
4278
|
+
"Newsletter Sending",
|
|
4279
|
+
"Announcement Changes",
|
|
4280
|
+
"Description Changes",
|
|
4281
|
+
"Organised Crimes"
|
|
4282
|
+
]
|
|
4283
|
+
},
|
|
3995
4284
|
"FactionOrganizedCrimePayoutType": {
|
|
3996
4285
|
"type": "string",
|
|
3997
4286
|
"enum": [
|
|
@@ -4408,6 +4697,10 @@
|
|
|
4408
4697
|
"type": "integer",
|
|
4409
4698
|
"format": "int32"
|
|
4410
4699
|
},
|
|
4700
|
+
"FactionBranchId": {
|
|
4701
|
+
"type": "integer",
|
|
4702
|
+
"format": "int32"
|
|
4703
|
+
},
|
|
4411
4704
|
"FactionCrimeId": {
|
|
4412
4705
|
"type": "integer",
|
|
4413
4706
|
"format": "int64"
|
|
@@ -5192,6 +5485,221 @@
|
|
|
5192
5485
|
},
|
|
5193
5486
|
"type": "object"
|
|
5194
5487
|
},
|
|
5488
|
+
"FactionPosition": {
|
|
5489
|
+
"required": [
|
|
5490
|
+
"name",
|
|
5491
|
+
"is_default",
|
|
5492
|
+
"abilities"
|
|
5493
|
+
],
|
|
5494
|
+
"properties": {
|
|
5495
|
+
"name": {
|
|
5496
|
+
"type": "string"
|
|
5497
|
+
},
|
|
5498
|
+
"is_default": {
|
|
5499
|
+
"type": "boolean"
|
|
5500
|
+
},
|
|
5501
|
+
"abilities": {
|
|
5502
|
+
"type": "array",
|
|
5503
|
+
"items": {
|
|
5504
|
+
"$ref": "#/components/schemas/FactionPositionAbilityEnum"
|
|
5505
|
+
}
|
|
5506
|
+
}
|
|
5507
|
+
},
|
|
5508
|
+
"type": "object"
|
|
5509
|
+
},
|
|
5510
|
+
"FactionPositionsResponse": {
|
|
5511
|
+
"required": [
|
|
5512
|
+
"positions"
|
|
5513
|
+
],
|
|
5514
|
+
"properties": {
|
|
5515
|
+
"positions": {
|
|
5516
|
+
"type": "array",
|
|
5517
|
+
"items": {
|
|
5518
|
+
"$ref": "#/components/schemas/FactionPosition"
|
|
5519
|
+
}
|
|
5520
|
+
}
|
|
5521
|
+
},
|
|
5522
|
+
"type": "object"
|
|
5523
|
+
},
|
|
5524
|
+
"FactionUpgradeDetails": {
|
|
5525
|
+
"required": [
|
|
5526
|
+
"id",
|
|
5527
|
+
"name",
|
|
5528
|
+
"ability",
|
|
5529
|
+
"level",
|
|
5530
|
+
"cost",
|
|
5531
|
+
"unlockedAt"
|
|
5532
|
+
],
|
|
5533
|
+
"properties": {
|
|
5534
|
+
"id": {
|
|
5535
|
+
"$ref": "#/components/schemas/FactionBranchId"
|
|
5536
|
+
},
|
|
5537
|
+
"name": {
|
|
5538
|
+
"type": "string"
|
|
5539
|
+
},
|
|
5540
|
+
"ability": {
|
|
5541
|
+
"type": "string"
|
|
5542
|
+
},
|
|
5543
|
+
"level": {
|
|
5544
|
+
"type": "integer",
|
|
5545
|
+
"format": "int32"
|
|
5546
|
+
},
|
|
5547
|
+
"cost": {
|
|
5548
|
+
"type": "integer",
|
|
5549
|
+
"format": "int32"
|
|
5550
|
+
},
|
|
5551
|
+
"unlocked_at": {
|
|
5552
|
+
"type": "integer",
|
|
5553
|
+
"format": "int32"
|
|
5554
|
+
}
|
|
5555
|
+
},
|
|
5556
|
+
"type": "object"
|
|
5557
|
+
},
|
|
5558
|
+
"FactionBranchDetails": {
|
|
5559
|
+
"required": [
|
|
5560
|
+
"name",
|
|
5561
|
+
"order",
|
|
5562
|
+
"multiplier",
|
|
5563
|
+
"upgrades"
|
|
5564
|
+
],
|
|
5565
|
+
"properties": {
|
|
5566
|
+
"name": {
|
|
5567
|
+
"type": "string"
|
|
5568
|
+
},
|
|
5569
|
+
"order": {
|
|
5570
|
+
"type": "integer",
|
|
5571
|
+
"format": "int32"
|
|
5572
|
+
},
|
|
5573
|
+
"multiplier": {
|
|
5574
|
+
"description": "Respect cost multiplier.",
|
|
5575
|
+
"type": "integer",
|
|
5576
|
+
"format": "int32"
|
|
5577
|
+
},
|
|
5578
|
+
"upgrades": {
|
|
5579
|
+
"type": "array",
|
|
5580
|
+
"items": {
|
|
5581
|
+
"$ref": "#/components/schemas/FactionUpgradeDetails"
|
|
5582
|
+
}
|
|
5583
|
+
}
|
|
5584
|
+
},
|
|
5585
|
+
"type": "object"
|
|
5586
|
+
},
|
|
5587
|
+
"FactionUpgrades": {
|
|
5588
|
+
"required": [
|
|
5589
|
+
"core",
|
|
5590
|
+
"peace",
|
|
5591
|
+
"war"
|
|
5592
|
+
],
|
|
5593
|
+
"properties": {
|
|
5594
|
+
"core": {
|
|
5595
|
+
"properties": {
|
|
5596
|
+
"upgrades": {
|
|
5597
|
+
"type": "array",
|
|
5598
|
+
"items": {
|
|
5599
|
+
"$ref": "#/components/schemas/FactionUpgradeDetails"
|
|
5600
|
+
}
|
|
5601
|
+
}
|
|
5602
|
+
},
|
|
5603
|
+
"type": "object"
|
|
5604
|
+
},
|
|
5605
|
+
"peace": {
|
|
5606
|
+
"type": "array",
|
|
5607
|
+
"items": {
|
|
5608
|
+
"$ref": "#/components/schemas/FactionBranchDetails"
|
|
5609
|
+
}
|
|
5610
|
+
},
|
|
5611
|
+
"war": {
|
|
5612
|
+
"type": "array",
|
|
5613
|
+
"items": {
|
|
5614
|
+
"$ref": "#/components/schemas/FactionBranchDetails"
|
|
5615
|
+
}
|
|
5616
|
+
}
|
|
5617
|
+
},
|
|
5618
|
+
"type": "object"
|
|
5619
|
+
},
|
|
5620
|
+
"FactionUpgradesResponse": {
|
|
5621
|
+
"required": [
|
|
5622
|
+
"upgrades",
|
|
5623
|
+
"state"
|
|
5624
|
+
],
|
|
5625
|
+
"properties": {
|
|
5626
|
+
"upgrades": {
|
|
5627
|
+
"$ref": "#/components/schemas/FactionUpgrades"
|
|
5628
|
+
},
|
|
5629
|
+
"state": {
|
|
5630
|
+
"$ref": "#/components/schemas/FactionBranchStateEnum"
|
|
5631
|
+
}
|
|
5632
|
+
},
|
|
5633
|
+
"type": "object"
|
|
5634
|
+
},
|
|
5635
|
+
"FactionStat": {
|
|
5636
|
+
"required": [
|
|
5637
|
+
"name",
|
|
5638
|
+
"value"
|
|
5639
|
+
],
|
|
5640
|
+
"properties": {
|
|
5641
|
+
"name": {
|
|
5642
|
+
"$ref": "#/components/schemas/FactionStatEnum"
|
|
5643
|
+
},
|
|
5644
|
+
"value": {
|
|
5645
|
+
"type": "integer",
|
|
5646
|
+
"format": "int64"
|
|
5647
|
+
}
|
|
5648
|
+
},
|
|
5649
|
+
"type": "object"
|
|
5650
|
+
},
|
|
5651
|
+
"FactionStatsResponse": {
|
|
5652
|
+
"required": [
|
|
5653
|
+
"stats"
|
|
5654
|
+
],
|
|
5655
|
+
"properties": {
|
|
5656
|
+
"stats": {
|
|
5657
|
+
"type": "array",
|
|
5658
|
+
"items": {
|
|
5659
|
+
"$ref": "#/components/schemas/FactionStat"
|
|
5660
|
+
}
|
|
5661
|
+
}
|
|
5662
|
+
},
|
|
5663
|
+
"type": "object"
|
|
5664
|
+
},
|
|
5665
|
+
"FactionContributor": {
|
|
5666
|
+
"required": [
|
|
5667
|
+
"id",
|
|
5668
|
+
"username",
|
|
5669
|
+
"value",
|
|
5670
|
+
"in_faction"
|
|
5671
|
+
],
|
|
5672
|
+
"properties": {
|
|
5673
|
+
"id": {
|
|
5674
|
+
"$ref": "#/components/schemas/UserId"
|
|
5675
|
+
},
|
|
5676
|
+
"username": {
|
|
5677
|
+
"type": "string"
|
|
5678
|
+
},
|
|
5679
|
+
"value": {
|
|
5680
|
+
"type": "integer",
|
|
5681
|
+
"format": "int64"
|
|
5682
|
+
},
|
|
5683
|
+
"in_faction": {
|
|
5684
|
+
"type": "boolean"
|
|
5685
|
+
}
|
|
5686
|
+
},
|
|
5687
|
+
"type": "object"
|
|
5688
|
+
},
|
|
5689
|
+
"FactionContributorsResponse": {
|
|
5690
|
+
"required": [
|
|
5691
|
+
"contributors"
|
|
5692
|
+
],
|
|
5693
|
+
"properties": {
|
|
5694
|
+
"contributors": {
|
|
5695
|
+
"type": "array",
|
|
5696
|
+
"items": {
|
|
5697
|
+
"$ref": "#/components/schemas/FactionContributor"
|
|
5698
|
+
}
|
|
5699
|
+
}
|
|
5700
|
+
},
|
|
5701
|
+
"type": "object"
|
|
5702
|
+
},
|
|
5195
5703
|
"FactionHofStats": {
|
|
5196
5704
|
"required": [
|
|
5197
5705
|
"rank",
|
|
@@ -6676,17 +7184,89 @@
|
|
|
6676
7184
|
},
|
|
6677
7185
|
"type": "object"
|
|
6678
7186
|
},
|
|
7187
|
+
"FactionBalance": {
|
|
7188
|
+
"required": [
|
|
7189
|
+
"faction",
|
|
7190
|
+
"members"
|
|
7191
|
+
],
|
|
7192
|
+
"properties": {
|
|
7193
|
+
"faction": {
|
|
7194
|
+
"required": [
|
|
7195
|
+
"money",
|
|
7196
|
+
"points",
|
|
7197
|
+
"scope"
|
|
7198
|
+
],
|
|
7199
|
+
"properties": {
|
|
7200
|
+
"money": {
|
|
7201
|
+
"type": "integer",
|
|
7202
|
+
"format": "int64"
|
|
7203
|
+
},
|
|
7204
|
+
"points": {
|
|
7205
|
+
"type": "integer",
|
|
7206
|
+
"format": "int64"
|
|
7207
|
+
},
|
|
7208
|
+
"scope": {
|
|
7209
|
+
"type": "integer",
|
|
7210
|
+
"format": "int32"
|
|
7211
|
+
}
|
|
7212
|
+
},
|
|
7213
|
+
"type": "object"
|
|
7214
|
+
},
|
|
7215
|
+
"members": {
|
|
7216
|
+
"type": "array",
|
|
7217
|
+
"items": {
|
|
7218
|
+
"required": [
|
|
7219
|
+
"id",
|
|
7220
|
+
"username",
|
|
7221
|
+
"money",
|
|
7222
|
+
"points"
|
|
7223
|
+
],
|
|
7224
|
+
"properties": {
|
|
7225
|
+
"id": {
|
|
7226
|
+
"$ref": "#/components/schemas/UserId"
|
|
7227
|
+
},
|
|
7228
|
+
"username": {
|
|
7229
|
+
"type": "string"
|
|
7230
|
+
},
|
|
7231
|
+
"money": {
|
|
7232
|
+
"type": "integer",
|
|
7233
|
+
"format": "int64"
|
|
7234
|
+
},
|
|
7235
|
+
"points": {
|
|
7236
|
+
"type": "integer",
|
|
7237
|
+
"format": "int64"
|
|
7238
|
+
}
|
|
7239
|
+
},
|
|
7240
|
+
"type": "object"
|
|
7241
|
+
}
|
|
7242
|
+
}
|
|
7243
|
+
},
|
|
7244
|
+
"type": "object"
|
|
7245
|
+
},
|
|
7246
|
+
"FactionBalanceResponse": {
|
|
7247
|
+
"required": [
|
|
7248
|
+
"balance"
|
|
7249
|
+
],
|
|
7250
|
+
"properties": {
|
|
7251
|
+
"balance": {
|
|
7252
|
+
"$ref": "#/components/schemas/FactionBalance"
|
|
7253
|
+
}
|
|
7254
|
+
},
|
|
7255
|
+
"type": "object"
|
|
7256
|
+
},
|
|
6679
7257
|
"FactionSelectionName": {
|
|
6680
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'armor', 'boosters', 'caches', 'cesium', '
|
|
7258
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'armor', 'boosters', 'caches', 'cesium', 'crimeexp', 'drugs', 'medical', 'positions', 'reports', 'temporary', 'weapons'.",
|
|
6681
7259
|
"type": "string",
|
|
6682
7260
|
"enum": [
|
|
6683
7261
|
"applications",
|
|
6684
7262
|
"attacks",
|
|
6685
7263
|
"attacksfull",
|
|
7264
|
+
"balance",
|
|
6686
7265
|
"basic",
|
|
6687
7266
|
"chain",
|
|
6688
7267
|
"chainreport",
|
|
6689
7268
|
"chains",
|
|
7269
|
+
"contributors",
|
|
6690
7270
|
"crime",
|
|
6691
7271
|
"crimes",
|
|
6692
7272
|
"hof",
|
|
@@ -6697,24 +7277,21 @@
|
|
|
6697
7277
|
"rankedwarreport",
|
|
6698
7278
|
"revives",
|
|
6699
7279
|
"revivesfull",
|
|
7280
|
+
"stats",
|
|
6700
7281
|
"timestamp",
|
|
7282
|
+
"upgrades",
|
|
6701
7283
|
"wars",
|
|
6702
7284
|
"armor",
|
|
6703
7285
|
"boosters",
|
|
6704
7286
|
"caches",
|
|
6705
7287
|
"cesium",
|
|
6706
|
-
"contributors",
|
|
6707
7288
|
"crimeexp",
|
|
6708
|
-
"currency",
|
|
6709
|
-
"donations",
|
|
6710
7289
|
"drugs",
|
|
6711
7290
|
"medical",
|
|
6712
7291
|
"positions",
|
|
6713
7292
|
"reports",
|
|
6714
|
-
"stats",
|
|
6715
7293
|
"temporary",
|
|
6716
7294
|
"territory",
|
|
6717
|
-
"upgrades",
|
|
6718
7295
|
"weapons"
|
|
6719
7296
|
]
|
|
6720
7297
|
},
|
|
@@ -9279,8 +9856,109 @@
|
|
|
9279
9856
|
},
|
|
9280
9857
|
"type": "object"
|
|
9281
9858
|
},
|
|
9859
|
+
"TornFactionTreeBranch": {
|
|
9860
|
+
"required": [
|
|
9861
|
+
"id",
|
|
9862
|
+
"name",
|
|
9863
|
+
"upgrades"
|
|
9864
|
+
],
|
|
9865
|
+
"properties": {
|
|
9866
|
+
"id": {
|
|
9867
|
+
"$ref": "#/components/schemas/FactionBranchId"
|
|
9868
|
+
},
|
|
9869
|
+
"name": {
|
|
9870
|
+
"type": "string"
|
|
9871
|
+
},
|
|
9872
|
+
"upgrades": {
|
|
9873
|
+
"type": "array",
|
|
9874
|
+
"items": {
|
|
9875
|
+
"required": [
|
|
9876
|
+
"name",
|
|
9877
|
+
"level",
|
|
9878
|
+
"ability",
|
|
9879
|
+
"challenge",
|
|
9880
|
+
"cost"
|
|
9881
|
+
],
|
|
9882
|
+
"properties": {
|
|
9883
|
+
"name": {
|
|
9884
|
+
"type": "string"
|
|
9885
|
+
},
|
|
9886
|
+
"level": {
|
|
9887
|
+
"type": "integer",
|
|
9888
|
+
"format": "int32"
|
|
9889
|
+
},
|
|
9890
|
+
"ability": {
|
|
9891
|
+
"type": "string"
|
|
9892
|
+
},
|
|
9893
|
+
"cost": {
|
|
9894
|
+
"type": "integer",
|
|
9895
|
+
"format": "int32"
|
|
9896
|
+
},
|
|
9897
|
+
"challenge": {
|
|
9898
|
+
"oneOf": [
|
|
9899
|
+
{
|
|
9900
|
+
"required": [
|
|
9901
|
+
"description",
|
|
9902
|
+
"amount_required",
|
|
9903
|
+
"stat"
|
|
9904
|
+
],
|
|
9905
|
+
"properties": {
|
|
9906
|
+
"description": {
|
|
9907
|
+
"type": "string"
|
|
9908
|
+
},
|
|
9909
|
+
"amount_required": {
|
|
9910
|
+
"type": "integer",
|
|
9911
|
+
"format": "int64"
|
|
9912
|
+
},
|
|
9913
|
+
"stat": {
|
|
9914
|
+
"$ref": "#/components/schemas/FactionStatEnum"
|
|
9915
|
+
}
|
|
9916
|
+
},
|
|
9917
|
+
"type": "object"
|
|
9918
|
+
},
|
|
9919
|
+
{
|
|
9920
|
+
"type": "null"
|
|
9921
|
+
}
|
|
9922
|
+
]
|
|
9923
|
+
}
|
|
9924
|
+
},
|
|
9925
|
+
"type": "object"
|
|
9926
|
+
}
|
|
9927
|
+
}
|
|
9928
|
+
},
|
|
9929
|
+
"type": "object"
|
|
9930
|
+
},
|
|
9931
|
+
"TornFactionTree": {
|
|
9932
|
+
"required": [
|
|
9933
|
+
"name",
|
|
9934
|
+
"branches"
|
|
9935
|
+
],
|
|
9936
|
+
"properties": {
|
|
9937
|
+
"name": {
|
|
9938
|
+
"type": "string"
|
|
9939
|
+
},
|
|
9940
|
+
"branches": {
|
|
9941
|
+
"type": "array",
|
|
9942
|
+
"items": {
|
|
9943
|
+
"$ref": "#/components/schemas/TornFactionTreeBranch"
|
|
9944
|
+
}
|
|
9945
|
+
}
|
|
9946
|
+
},
|
|
9947
|
+
"type": "object"
|
|
9948
|
+
},
|
|
9949
|
+
"TornFactionTreeResponse": {
|
|
9950
|
+
"required": [
|
|
9951
|
+
"factionTree"
|
|
9952
|
+
],
|
|
9953
|
+
"properties": {
|
|
9954
|
+
"factionTree": {
|
|
9955
|
+
"$ref": "#/components/schemas/TornFactionTree"
|
|
9956
|
+
}
|
|
9957
|
+
},
|
|
9958
|
+
"type": "object"
|
|
9959
|
+
},
|
|
9282
9960
|
"TornSelectionName": {
|
|
9283
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','dirtybombs','education','
|
|
9961
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','dirtybombs','education','gyms','honors','itemdetails','itemstats','medals','organisedcrimes','pawnshop','pokertables','properties','rackets','raidreport','raids','rockpaperscissors','searchforcash','shoplifting','stats','stocks','territory','territorynames','territorywarreport','territorywars'.",
|
|
9284
9962
|
"type": "string",
|
|
9285
9963
|
"enum": [
|
|
9286
9964
|
"attacklog",
|
|
@@ -9288,6 +9966,7 @@
|
|
|
9288
9966
|
"calendar",
|
|
9289
9967
|
"crimes",
|
|
9290
9968
|
"factionHof",
|
|
9969
|
+
"factiontree",
|
|
9291
9970
|
"hof",
|
|
9292
9971
|
"itemammo",
|
|
9293
9972
|
"itemmods",
|
|
@@ -9304,7 +9983,6 @@
|
|
|
9304
9983
|
"competition",
|
|
9305
9984
|
"dirtybombs",
|
|
9306
9985
|
"education",
|
|
9307
|
-
"factiontree",
|
|
9308
9986
|
"gyms",
|
|
9309
9987
|
"honors",
|
|
9310
9988
|
"itemdetails",
|
|
@@ -14007,14 +14685,6 @@
|
|
|
14007
14685
|
{
|
|
14008
14686
|
"name": "Torn",
|
|
14009
14687
|
"description": "Part of Torn section"
|
|
14010
|
-
},
|
|
14011
|
-
{
|
|
14012
|
-
"name": "Stable",
|
|
14013
|
-
"description": "Stable selections are not likely to undergo significant changes."
|
|
14014
|
-
},
|
|
14015
|
-
{
|
|
14016
|
-
"name": "Unstable",
|
|
14017
|
-
"description": "Future updates may result in sudden or significant changes."
|
|
14018
14688
|
}
|
|
14019
14689
|
]
|
|
14020
14690
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate-types": "tsc && node build/index.js"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@scalar/openapi-types": "^0.
|
|
10
|
-
"@types/node": "^22.
|
|
9
|
+
"@scalar/openapi-types": "^0.2.0",
|
|
10
|
+
"@types/node": "^22.14.1",
|
|
11
11
|
"prettier": "^3.5.3",
|
|
12
12
|
"typeconv": "^2.3.1",
|
|
13
|
-
"typescript": "^5.8.
|
|
13
|
+
"typescript": "^5.8.3"
|
|
14
14
|
},
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"files": [
|