tornapi-typescript 6.11.1 → 6.12.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 +37 -6
- package/dist/index.ts +51 -6
- package/dist/openapi.json +272 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* - {@link https://github.com/grantila/typeconv}
|
|
6
6
|
*/
|
|
7
7
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
8
|
+
export type FactionArmoryCategoryEnum = "weapons" | "armor" | "temporary" | "medical" | "consumables" | "drugs" | "boosters" | "utilities" | "loot";
|
|
8
9
|
export type MissionDifficultyEnum = "Very easy" | "Easy" | "Medium" | "Hard" | "Very hard" | "Expert";
|
|
9
10
|
export type MissionStatusEnum = "Accepted" | "Available" | "Failed" | "Completed";
|
|
10
11
|
export type MissionRewardUpgrade = "Item" | "Ammo" | "Upgrade";
|
|
@@ -2094,6 +2095,25 @@ export interface UserPersonalStatsFullPublic {
|
|
|
2094
2095
|
export type UserPersonalStatsResponse = UserPersonalStatsFull | UserPersonalStatsFullPublic | UserPersonalStatsPopular | UserPersonalStatsCategory | UserPersonalStatsHistoric;
|
|
2095
2096
|
export type PersonalStatsCategoryEnum = "all" | "popular" | "attacking" | "battle_stats" | "jobs" | "trading" | "jail" | "hospital" | "finishing_hits" | "communication" | "crimes" | "bounties" | "investments" | "items" | "travel" | "drugs" | "missions" | "racing" | "networth" | "other" | "itemmarketcustomers" | "itemmarketsales" | "itemmarketrevenue" | "itemmarketfees";
|
|
2096
2097
|
export type PersonalStatsStatName = "attackswon" | "attackslost" | "attacksdraw" | "attacksassisted" | "defendswon" | "defendslost" | "defendsstalemated" | "elo" | "yourunaway" | "theyrunaway" | "unarmoredwon" | "bestkillstreak" | "attackhits" | "attackmisses" | "attackdamage" | "bestdamage" | "onehitkills" | "attackcriticalhits" | "roundsfired" | "specialammoused" | "hollowammoused" | "tracerammoused" | "piercingammoused" | "incendiaryammoused" | "attacksstealthed" | "retals" | "moneymugged" | "largestmug" | "itemslooted" | "highestbeaten" | "respectforfaction" | "rankedwarhits" | "raidhits" | "territoryjoins" | "territoryclears" | "territorytime" | "jobpointsused" | "trainsreceived" | "marketitemsbought" | "auctionswon" | "auctionsells" | "itemssent" | "trades" | "cityitemsbought" | "pointsbought" | "pointssold" | "bazaarcustomers" | "bazaarsales" | "bazaarprofit" | "jailed" | "peoplebusted" | "failedbusts" | "peoplebought" | "peopleboughtspent" | "hospital" | "medicalitemsused" | "bloodwithdrawn" | "reviveskill" | "revives" | "revivesreceived" | "heavyhits" | "machinehits" | "riflehits" | "smghits" | "shotgunhits" | "pistolhits" | "temphits" | "piercinghits" | "slashinghits" | "clubbinghits" | "mechanicalhits" | "h2hhits" | "mailssent" | "friendmailssent" | "factionmailssent" | "companymailssent" | "spousemailssent" | "classifiedadsplaced" | "personalsplaced" | "criminaloffensesold" | "sellillegalgoods" | "theftold" | "autotheftcrime" | "drugdealscrime" | "computercrime" | "fraudold" | "murdercrime" | "othercrime" | "organizedcrimes" | "bountiesplaced" | "totalbountyspent" | "bountiescollected" | "totalbountyreward" | "bountiesreceived" | "receivedbountyvalue" | "cityfinds" | "dumpfinds" | "itemsdumped" | "booksread" | "boostersused" | "consumablesused" | "candyused" | "alcoholused" | "energydrinkused" | "statenhancersused" | "eastereggsfound" | "eastereggsused" | "virusescoded" | "traveltimes" | "timespenttraveling" | "itemsboughtabroad" | "attackswonabroad" | "defendslostabroad" | "argtravel" | "mextravel" | "uaetravel" | "hawtravel" | "japtravel" | "uktravel" | "satravel" | "switravel" | "chitravel" | "cantravel" | "caytravel" | "drugsused" | "overdosed" | "rehabs" | "rehabcost" | "cantaken" | "exttaken" | "kettaken" | "lsdtaken" | "opitaken" | "pcptaken" | "shrtaken" | "spetaken" | "victaken" | "xantaken" | "missionscompleted" | "contractscompleted" | "dukecontractscompleted" | "missioncreditsearned" | "racingskill" | "racingpointsearned" | "racesentered" | "raceswon" | "networth" | "timeplayed" | "activestreak" | "bestactivestreak" | "awards" | "refills" | "nerverefills" | "tokenrefills" | "meritsbought" | "daysbeendonator" | "criminaloffenses" | "vandalism" | "theft" | "counterfeiting" | "fraud" | "illicitservices" | "cybercrime" | "extortion" | "illegalproduction" | "currentkillstreak" | "strength" | "defense" | "speed" | "dexterity" | "totalstats" | "manuallabor" | "intelligence" | "endurance" | "totalworkingstats" | "moneyinvested" | "investedprofit" | "investamount" | "banktimeleft" | "stockprofits" | "stocklosses" | "stockfees" | "stocknetprofits" | "stockpayouts" | "networthwallet" | "networthvault" | "networthbank" | "networthcayman" | "networthpoints" | "networthitems" | "networthdisplaycase" | "networthbazaar" | "networthitemmarket" | "networthproperties" | "networthstockmarket" | "networthauctionhouse" | "networthbookie" | "networthcompany" | "networthenlistedcars" | "networthpiggybank" | "networthpending" | "networthloan" | "networthunpaidfees" | "huntingskill" | "searchforcashskill" | "bootleggingskill" | "graffitiskill" | "shopliftingskill" | "pickpocketingskill" | "cardskimmingskill" | "burglaryskill" | "hustlingskill" | "disposalskill" | "crackingskill" | "forgeryskill" | "scammingskill" | "arsonskill";
|
|
2098
|
+
export interface FactionCrimeExpResponse {
|
|
2099
|
+
crimeexp: UserId[];
|
|
2100
|
+
}
|
|
2101
|
+
export interface FactionInventoryItem {
|
|
2102
|
+
id: ItemId;
|
|
2103
|
+
name: string;
|
|
2104
|
+
type: MarketSpecializedBazaarCategoryEnum;
|
|
2105
|
+
amount: number;
|
|
2106
|
+
uids: ItemUid[];
|
|
2107
|
+
loaned: {
|
|
2108
|
+
id: UserId;
|
|
2109
|
+
name: string;
|
|
2110
|
+
} | null;
|
|
2111
|
+
}
|
|
2112
|
+
export interface FactionInventoryResponse {
|
|
2113
|
+
inventory_timestamp: number;
|
|
2114
|
+
inventory: FactionInventoryItem[];
|
|
2115
|
+
_metadata: RequestMetadataWithLinksAndTotal;
|
|
2116
|
+
}
|
|
2097
2117
|
export interface FactionRaidReport {
|
|
2098
2118
|
id: RaidWarId;
|
|
2099
2119
|
start: number;
|
|
@@ -2712,10 +2732,7 @@ export interface FactionBalance {
|
|
|
2712
2732
|
export interface FactionBalanceResponse {
|
|
2713
2733
|
balance: FactionBalance;
|
|
2714
2734
|
}
|
|
2715
|
-
/**
|
|
2716
|
-
* The following selections will fallback to API v1 and may change at any time: 'armor', 'boosters', 'caches', 'cesium', 'crimeexp', 'drugs', 'medical', 'utilities', 'temporary', 'weapons'.
|
|
2717
|
-
* * The following selections are not available in API v2: 'armorynews', 'attacknews', 'crimenews', 'currency', 'donations', 'fundsnews', 'mainnews', 'membershipnews', 'territorynews'.
|
|
2718
|
-
*/
|
|
2735
|
+
/** The following selections are not available in API v2: 'armorynews', 'attacknews', 'crimenews', 'currency', 'donations', 'fundsnews', 'mainnews', 'membershipnews', 'territorynews', 'armor', 'boosters', 'caches', 'cesium', 'drugs', 'medical', 'utilities', 'temporary', 'weapons'. */
|
|
2719
2736
|
export type FactionSelectionName = string;
|
|
2720
2737
|
export interface FactionLookupResponse {
|
|
2721
2738
|
selections: FactionSelectionName[];
|
|
@@ -3639,8 +3656,14 @@ export interface TornItemDetails extends ItemMarketListingItemDetails {
|
|
|
3639
3656
|
type: TornItemTypeEnum;
|
|
3640
3657
|
sub_type: TornItemWeaponTypeEnum | null;
|
|
3641
3658
|
}
|
|
3659
|
+
export interface TornItemDetailsDeprecated extends ItemMarketListingItemDetails {
|
|
3660
|
+
id: ItemId;
|
|
3661
|
+
name: string;
|
|
3662
|
+
type: TornItemTypeEnum;
|
|
3663
|
+
sub_type: TornItemWeaponTypeEnum | null;
|
|
3664
|
+
}
|
|
3642
3665
|
export interface TornItemDetailsResponse {
|
|
3643
|
-
itemdetails: TornItemDetails;
|
|
3666
|
+
itemdetails: TornItemDetails[] | TornItemDetailsDeprecated;
|
|
3644
3667
|
}
|
|
3645
3668
|
export interface TornMerit {
|
|
3646
3669
|
id: MeritId;
|
|
@@ -7622,6 +7645,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
7622
7645
|
response: FactionContributorsResponse;
|
|
7623
7646
|
params: "stat" | "cat" | "timestamp";
|
|
7624
7647
|
};
|
|
7648
|
+
crimeexp: {
|
|
7649
|
+
response: FactionCrimeExpResponse;
|
|
7650
|
+
params: "timestamp";
|
|
7651
|
+
};
|
|
7625
7652
|
crimes: {
|
|
7626
7653
|
response: FactionCrimesResponse;
|
|
7627
7654
|
params: "cat" | "filters" | "limit" | "offset" | "from" | "to" | "sort" | "timestamp";
|
|
@@ -7638,6 +7665,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
7638
7665
|
response: FactionHofResponse;
|
|
7639
7666
|
params: "timestamp";
|
|
7640
7667
|
};
|
|
7668
|
+
inventory: {
|
|
7669
|
+
response: FactionInventoryResponse;
|
|
7670
|
+
params: "cat" | "limit" | "offset" | "timestamp";
|
|
7671
|
+
};
|
|
7641
7672
|
members: {
|
|
7642
7673
|
response: FactionMembersResponse;
|
|
7643
7674
|
params: "striptags" | "timestamp";
|
|
@@ -7996,7 +8027,7 @@ export interface TornV2 extends BaseSchema {
|
|
|
7996
8027
|
};
|
|
7997
8028
|
itemdetails: {
|
|
7998
8029
|
response: TornItemDetailsResponse;
|
|
7999
|
-
params: "
|
|
8030
|
+
params: "ids" | "timestamp";
|
|
8000
8031
|
};
|
|
8001
8032
|
itemmods: {
|
|
8002
8033
|
response: TornItemModsResponse;
|
package/dist/index.ts
CHANGED
|
@@ -9,6 +9,17 @@
|
|
|
9
9
|
|
|
10
10
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
11
11
|
|
|
12
|
+
export type FactionArmoryCategoryEnum =
|
|
13
|
+
| "weapons"
|
|
14
|
+
| "armor"
|
|
15
|
+
| "temporary"
|
|
16
|
+
| "medical"
|
|
17
|
+
| "consumables"
|
|
18
|
+
| "drugs"
|
|
19
|
+
| "boosters"
|
|
20
|
+
| "utilities"
|
|
21
|
+
| "loot";
|
|
22
|
+
|
|
12
23
|
export type MissionDifficultyEnum =
|
|
13
24
|
"Very easy" | "Easy" | "Medium" | "Hard" | "Very hard" | "Expert";
|
|
14
25
|
|
|
@@ -7670,6 +7681,28 @@ export type PersonalStatsStatName =
|
|
|
7670
7681
|
| "scammingskill"
|
|
7671
7682
|
| "arsonskill";
|
|
7672
7683
|
|
|
7684
|
+
export interface FactionCrimeExpResponse {
|
|
7685
|
+
crimeexp: UserId[];
|
|
7686
|
+
}
|
|
7687
|
+
|
|
7688
|
+
export interface FactionInventoryItem {
|
|
7689
|
+
id: ItemId;
|
|
7690
|
+
name: string;
|
|
7691
|
+
type: MarketSpecializedBazaarCategoryEnum;
|
|
7692
|
+
amount: number;
|
|
7693
|
+
uids: ItemUid[];
|
|
7694
|
+
loaned: {
|
|
7695
|
+
id: UserId;
|
|
7696
|
+
name: string;
|
|
7697
|
+
} | null;
|
|
7698
|
+
}
|
|
7699
|
+
|
|
7700
|
+
export interface FactionInventoryResponse {
|
|
7701
|
+
inventory_timestamp: number;
|
|
7702
|
+
inventory: FactionInventoryItem[];
|
|
7703
|
+
_metadata: RequestMetadataWithLinksAndTotal;
|
|
7704
|
+
}
|
|
7705
|
+
|
|
7673
7706
|
export interface FactionRaidReport {
|
|
7674
7707
|
id: RaidWarId;
|
|
7675
7708
|
start: number;
|
|
@@ -8379,10 +8412,7 @@ export interface FactionBalanceResponse {
|
|
|
8379
8412
|
balance: FactionBalance;
|
|
8380
8413
|
}
|
|
8381
8414
|
|
|
8382
|
-
/**
|
|
8383
|
-
* The following selections will fallback to API v1 and may change at any time: 'armor', 'boosters', 'caches', 'cesium', 'crimeexp', 'drugs', 'medical', 'utilities', 'temporary', 'weapons'.
|
|
8384
|
-
* * The following selections are not available in API v2: 'armorynews', 'attacknews', 'crimenews', 'currency', 'donations', 'fundsnews', 'mainnews', 'membershipnews', 'territorynews'.
|
|
8385
|
-
*/
|
|
8415
|
+
/** The following selections are not available in API v2: 'armorynews', 'attacknews', 'crimenews', 'currency', 'donations', 'fundsnews', 'mainnews', 'membershipnews', 'territorynews', 'armor', 'boosters', 'caches', 'cesium', 'drugs', 'medical', 'utilities', 'temporary', 'weapons'. */
|
|
8386
8416
|
export type FactionSelectionName = string;
|
|
8387
8417
|
|
|
8388
8418
|
export interface FactionLookupResponse {
|
|
@@ -9462,8 +9492,15 @@ export interface TornItemDetails extends ItemMarketListingItemDetails {
|
|
|
9462
9492
|
sub_type: TornItemWeaponTypeEnum | null;
|
|
9463
9493
|
}
|
|
9464
9494
|
|
|
9495
|
+
export interface TornItemDetailsDeprecated extends ItemMarketListingItemDetails {
|
|
9496
|
+
id: ItemId;
|
|
9497
|
+
name: string;
|
|
9498
|
+
type: TornItemTypeEnum;
|
|
9499
|
+
sub_type: TornItemWeaponTypeEnum | null;
|
|
9500
|
+
}
|
|
9501
|
+
|
|
9465
9502
|
export interface TornItemDetailsResponse {
|
|
9466
|
-
itemdetails: TornItemDetails;
|
|
9503
|
+
itemdetails: TornItemDetails[] | TornItemDetailsDeprecated;
|
|
9467
9504
|
}
|
|
9468
9505
|
|
|
9469
9506
|
export interface TornMerit {
|
|
@@ -13604,6 +13641,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
13604
13641
|
response: FactionContributorsResponse;
|
|
13605
13642
|
params: "stat" | "cat" | "timestamp";
|
|
13606
13643
|
};
|
|
13644
|
+
crimeexp: {
|
|
13645
|
+
response: FactionCrimeExpResponse;
|
|
13646
|
+
params: "timestamp";
|
|
13647
|
+
};
|
|
13607
13648
|
crimes: {
|
|
13608
13649
|
response: FactionCrimesResponse;
|
|
13609
13650
|
params:
|
|
@@ -13628,6 +13669,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
13628
13669
|
response: FactionHofResponse;
|
|
13629
13670
|
params: "timestamp";
|
|
13630
13671
|
};
|
|
13672
|
+
inventory: {
|
|
13673
|
+
response: FactionInventoryResponse;
|
|
13674
|
+
params: "cat" | "limit" | "offset" | "timestamp";
|
|
13675
|
+
};
|
|
13631
13676
|
members: {
|
|
13632
13677
|
response: FactionMembersResponse;
|
|
13633
13678
|
params: "striptags" | "timestamp";
|
|
@@ -14024,7 +14069,7 @@ export interface TornV2 extends BaseSchema {
|
|
|
14024
14069
|
};
|
|
14025
14070
|
itemdetails: {
|
|
14026
14071
|
response: TornItemDetailsResponse;
|
|
14027
|
-
params: "
|
|
14072
|
+
params: "ids" | "timestamp";
|
|
14028
14073
|
};
|
|
14029
14074
|
itemmods: {
|
|
14030
14075
|
response: TornItemModsResponse;
|
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": "6.
|
|
6
|
+
"version": "6.12.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -4823,6 +4823,45 @@
|
|
|
4823
4823
|
"x-stability": "Stable"
|
|
4824
4824
|
}
|
|
4825
4825
|
},
|
|
4826
|
+
"/faction/crimeexp": {
|
|
4827
|
+
"get": {
|
|
4828
|
+
"tags": [
|
|
4829
|
+
"Faction"
|
|
4830
|
+
],
|
|
4831
|
+
"summary": "Get your faction members crime experience",
|
|
4832
|
+
"description": "Requires minimal access key. <br>Members are ordered descending, from highest crime experience to lowest.",
|
|
4833
|
+
"operationId": "getMyFactionCrimeExp",
|
|
4834
|
+
"parameters": [
|
|
4835
|
+
{
|
|
4836
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
4837
|
+
},
|
|
4838
|
+
{
|
|
4839
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
4840
|
+
},
|
|
4841
|
+
{
|
|
4842
|
+
"$ref": "#/components/parameters/ApiKeyMinimal"
|
|
4843
|
+
}
|
|
4844
|
+
],
|
|
4845
|
+
"responses": {
|
|
4846
|
+
"200": {
|
|
4847
|
+
"description": "Successful operation",
|
|
4848
|
+
"content": {
|
|
4849
|
+
"application/json": {
|
|
4850
|
+
"schema": {
|
|
4851
|
+
"$ref": "#/components/schemas/FactionCrimeExpResponse"
|
|
4852
|
+
}
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
}
|
|
4856
|
+
},
|
|
4857
|
+
"security": [
|
|
4858
|
+
{
|
|
4859
|
+
"api_key": []
|
|
4860
|
+
}
|
|
4861
|
+
],
|
|
4862
|
+
"x-stability": "Stable"
|
|
4863
|
+
}
|
|
4864
|
+
},
|
|
4826
4865
|
"/faction/crimes": {
|
|
4827
4866
|
"get": {
|
|
4828
4867
|
"tags": [
|
|
@@ -5085,6 +5124,60 @@
|
|
|
5085
5124
|
"x-stability": "Stable"
|
|
5086
5125
|
}
|
|
5087
5126
|
},
|
|
5127
|
+
"/faction/inventory": {
|
|
5128
|
+
"get": {
|
|
5129
|
+
"tags": [
|
|
5130
|
+
"Faction"
|
|
5131
|
+
],
|
|
5132
|
+
"summary": "Get your faction's inventory items.",
|
|
5133
|
+
"description": "<b>Cached selection (1 hour, all items cached at once).</b><br><br>Requires limited access key. <br> ",
|
|
5134
|
+
"operationId": "getMyFactionInventory",
|
|
5135
|
+
"parameters": [
|
|
5136
|
+
{
|
|
5137
|
+
"name": "cat",
|
|
5138
|
+
"in": "query",
|
|
5139
|
+
"description": "Armory category",
|
|
5140
|
+
"required": true,
|
|
5141
|
+
"schema": {
|
|
5142
|
+
"$ref": "#/components/schemas/FactionArmoryCategoryEnum"
|
|
5143
|
+
}
|
|
5144
|
+
},
|
|
5145
|
+
{
|
|
5146
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
5147
|
+
},
|
|
5148
|
+
{
|
|
5149
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
5150
|
+
},
|
|
5151
|
+
{
|
|
5152
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
5153
|
+
},
|
|
5154
|
+
{
|
|
5155
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
5156
|
+
},
|
|
5157
|
+
{
|
|
5158
|
+
"$ref": "#/components/parameters/ApiKeyLimited"
|
|
5159
|
+
}
|
|
5160
|
+
],
|
|
5161
|
+
"responses": {
|
|
5162
|
+
"200": {
|
|
5163
|
+
"description": "Successful operation",
|
|
5164
|
+
"content": {
|
|
5165
|
+
"application/json": {
|
|
5166
|
+
"schema": {
|
|
5167
|
+
"$ref": "#/components/schemas/FactionInventoryResponse"
|
|
5168
|
+
}
|
|
5169
|
+
}
|
|
5170
|
+
}
|
|
5171
|
+
}
|
|
5172
|
+
},
|
|
5173
|
+
"security": [
|
|
5174
|
+
{
|
|
5175
|
+
"api_key": []
|
|
5176
|
+
}
|
|
5177
|
+
],
|
|
5178
|
+
"x-stability": "Unstable"
|
|
5179
|
+
}
|
|
5180
|
+
},
|
|
5088
5181
|
"/faction/members": {
|
|
5089
5182
|
"get": {
|
|
5090
5183
|
"tags": [
|
|
@@ -6824,6 +6917,9 @@
|
|
|
6824
6917
|
{
|
|
6825
6918
|
"$ref": "#/components/schemas/FactionRankedWarsCategoryEnum"
|
|
6826
6919
|
},
|
|
6920
|
+
{
|
|
6921
|
+
"$ref": "#/components/schemas/FactionArmoryCategoryEnum"
|
|
6922
|
+
},
|
|
6827
6923
|
{
|
|
6828
6924
|
"$ref": "#/components/schemas/ReportTypeEnum"
|
|
6829
6925
|
},
|
|
@@ -6971,6 +7067,12 @@
|
|
|
6971
7067
|
{
|
|
6972
7068
|
"$ref": "#/components/schemas/FactionContributorsResponse"
|
|
6973
7069
|
},
|
|
7070
|
+
{
|
|
7071
|
+
"$ref": "#/components/schemas/FactionInventoryResponse"
|
|
7072
|
+
},
|
|
7073
|
+
{
|
|
7074
|
+
"$ref": "#/components/schemas/FactionCrimeExpResponse"
|
|
7075
|
+
},
|
|
6974
7076
|
{
|
|
6975
7077
|
"$ref": "#/components/schemas/FactionRacketsResponse"
|
|
6976
7078
|
},
|
|
@@ -10572,7 +10674,7 @@
|
|
|
10572
10674
|
"x-stability": "Stable"
|
|
10573
10675
|
}
|
|
10574
10676
|
},
|
|
10575
|
-
"/torn/{
|
|
10677
|
+
"/torn/{ids}/itemdetails": {
|
|
10576
10678
|
"get": {
|
|
10577
10679
|
"tags": [
|
|
10578
10680
|
"Torn"
|
|
@@ -10582,12 +10684,17 @@
|
|
|
10582
10684
|
"operationId": "getTornItemDetails",
|
|
10583
10685
|
"parameters": [
|
|
10584
10686
|
{
|
|
10585
|
-
"name": "
|
|
10687
|
+
"name": "ids",
|
|
10586
10688
|
"in": "path",
|
|
10587
|
-
"description": "Item uid",
|
|
10689
|
+
"description": "Item uid or a list of item uids (comma separated)",
|
|
10588
10690
|
"required": true,
|
|
10691
|
+
"style": "form",
|
|
10692
|
+
"explode": false,
|
|
10589
10693
|
"schema": {
|
|
10590
|
-
"
|
|
10694
|
+
"type": "array",
|
|
10695
|
+
"items": {
|
|
10696
|
+
"$ref": "#/components/schemas/ItemUid"
|
|
10697
|
+
}
|
|
10591
10698
|
}
|
|
10592
10699
|
},
|
|
10593
10700
|
{
|
|
@@ -11801,6 +11908,20 @@
|
|
|
11801
11908
|
"E"
|
|
11802
11909
|
]
|
|
11803
11910
|
},
|
|
11911
|
+
"FactionArmoryCategoryEnum": {
|
|
11912
|
+
"type": "string",
|
|
11913
|
+
"enum": [
|
|
11914
|
+
"weapons",
|
|
11915
|
+
"armor",
|
|
11916
|
+
"temporary",
|
|
11917
|
+
"medical",
|
|
11918
|
+
"consumables",
|
|
11919
|
+
"drugs",
|
|
11920
|
+
"boosters",
|
|
11921
|
+
"utilities",
|
|
11922
|
+
"loot"
|
|
11923
|
+
]
|
|
11924
|
+
},
|
|
11804
11925
|
"MissionDifficultyEnum": {
|
|
11805
11926
|
"type": "string",
|
|
11806
11927
|
"enum": [
|
|
@@ -27254,6 +27375,97 @@
|
|
|
27254
27375
|
"arsonskill"
|
|
27255
27376
|
]
|
|
27256
27377
|
},
|
|
27378
|
+
"FactionCrimeExpResponse": {
|
|
27379
|
+
"required": [
|
|
27380
|
+
"crimeexp"
|
|
27381
|
+
],
|
|
27382
|
+
"properties": {
|
|
27383
|
+
"crimeexp": {
|
|
27384
|
+
"type": "array",
|
|
27385
|
+
"items": {
|
|
27386
|
+
"$ref": "#/components/schemas/UserId"
|
|
27387
|
+
}
|
|
27388
|
+
}
|
|
27389
|
+
},
|
|
27390
|
+
"type": "object"
|
|
27391
|
+
},
|
|
27392
|
+
"FactionInventoryItem": {
|
|
27393
|
+
"required": [
|
|
27394
|
+
"id",
|
|
27395
|
+
"name",
|
|
27396
|
+
"type",
|
|
27397
|
+
"amount",
|
|
27398
|
+
"uids",
|
|
27399
|
+
"loaned"
|
|
27400
|
+
],
|
|
27401
|
+
"properties": {
|
|
27402
|
+
"id": {
|
|
27403
|
+
"$ref": "#/components/schemas/ItemId"
|
|
27404
|
+
},
|
|
27405
|
+
"name": {
|
|
27406
|
+
"type": "string"
|
|
27407
|
+
},
|
|
27408
|
+
"type": {
|
|
27409
|
+
"$ref": "#/components/schemas/MarketSpecializedBazaarCategoryEnum"
|
|
27410
|
+
},
|
|
27411
|
+
"amount": {
|
|
27412
|
+
"type": "integer",
|
|
27413
|
+
"format": "int32"
|
|
27414
|
+
},
|
|
27415
|
+
"uids": {
|
|
27416
|
+
"type": "array",
|
|
27417
|
+
"items": {
|
|
27418
|
+
"$ref": "#/components/schemas/ItemUid"
|
|
27419
|
+
}
|
|
27420
|
+
},
|
|
27421
|
+
"loaned": {
|
|
27422
|
+
"oneOf": [
|
|
27423
|
+
{
|
|
27424
|
+
"required": [
|
|
27425
|
+
"id",
|
|
27426
|
+
"name"
|
|
27427
|
+
],
|
|
27428
|
+
"properties": {
|
|
27429
|
+
"id": {
|
|
27430
|
+
"$ref": "#/components/schemas/UserId"
|
|
27431
|
+
},
|
|
27432
|
+
"name": {
|
|
27433
|
+
"type": "string"
|
|
27434
|
+
}
|
|
27435
|
+
},
|
|
27436
|
+
"type": "object"
|
|
27437
|
+
},
|
|
27438
|
+
{
|
|
27439
|
+
"type": "null"
|
|
27440
|
+
}
|
|
27441
|
+
]
|
|
27442
|
+
}
|
|
27443
|
+
},
|
|
27444
|
+
"type": "object"
|
|
27445
|
+
},
|
|
27446
|
+
"FactionInventoryResponse": {
|
|
27447
|
+
"required": [
|
|
27448
|
+
"inventory_timestamp",
|
|
27449
|
+
"inventory",
|
|
27450
|
+
"_metadata"
|
|
27451
|
+
],
|
|
27452
|
+
"properties": {
|
|
27453
|
+
"inventory_timestamp": {
|
|
27454
|
+
"type": "integer",
|
|
27455
|
+
"format": "int64"
|
|
27456
|
+
},
|
|
27457
|
+
"inventory": {
|
|
27458
|
+
"type": "array",
|
|
27459
|
+
"items": {
|
|
27460
|
+
"$ref": "#/components/schemas/FactionInventoryItem"
|
|
27461
|
+
}
|
|
27462
|
+
},
|
|
27463
|
+
"_metadata": {
|
|
27464
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinksAndTotal"
|
|
27465
|
+
}
|
|
27466
|
+
},
|
|
27467
|
+
"type": "object"
|
|
27468
|
+
},
|
|
27257
27469
|
"FactionRaidReport": {
|
|
27258
27470
|
"required": [
|
|
27259
27471
|
"id",
|
|
@@ -30076,7 +30288,7 @@
|
|
|
30076
30288
|
"FactionSelectionName": {
|
|
30077
30289
|
"oneOf": [
|
|
30078
30290
|
{
|
|
30079
|
-
"description": "The following selections
|
|
30291
|
+
"description": "The following selections are not available in API v2: 'armorynews', 'attacknews', 'crimenews', 'currency', 'donations', 'fundsnews', 'mainnews', 'membershipnews', 'territorynews', 'armor', 'boosters', 'caches', 'cesium', 'drugs', 'medical', 'utilities', 'temporary', 'weapons'.",
|
|
30080
30292
|
"type": "string",
|
|
30081
30293
|
"enum": [
|
|
30082
30294
|
"applications",
|
|
@@ -30090,6 +30302,7 @@
|
|
|
30090
30302
|
"contributors",
|
|
30091
30303
|
"crime",
|
|
30092
30304
|
"crimes",
|
|
30305
|
+
"crimeexp",
|
|
30093
30306
|
"dirtbombs",
|
|
30094
30307
|
"hof",
|
|
30095
30308
|
"lookup",
|
|
@@ -30116,17 +30329,7 @@
|
|
|
30116
30329
|
"warfareraids",
|
|
30117
30330
|
"warfareranked",
|
|
30118
30331
|
"warfareterritory",
|
|
30119
|
-
"wars"
|
|
30120
|
-
"armor",
|
|
30121
|
-
"boosters",
|
|
30122
|
-
"caches",
|
|
30123
|
-
"cesium",
|
|
30124
|
-
"crimeexp",
|
|
30125
|
-
"drugs",
|
|
30126
|
-
"medical",
|
|
30127
|
-
"utilities",
|
|
30128
|
-
"temporary",
|
|
30129
|
-
"weapons"
|
|
30332
|
+
"wars"
|
|
30130
30333
|
]
|
|
30131
30334
|
},
|
|
30132
30335
|
{
|
|
@@ -34616,13 +34819,64 @@
|
|
|
34616
34819
|
}
|
|
34617
34820
|
]
|
|
34618
34821
|
},
|
|
34822
|
+
"TornItemDetailsDeprecated": {
|
|
34823
|
+
"description": "This object is deprecated, and starting on 1st January 2027 it will be replaced with an array of TornItemDetails.",
|
|
34824
|
+
"deprecated": true,
|
|
34825
|
+
"allOf": [
|
|
34826
|
+
{
|
|
34827
|
+
"$ref": "#/components/schemas/ItemMarketListingItemDetails"
|
|
34828
|
+
},
|
|
34829
|
+
{
|
|
34830
|
+
"required": [
|
|
34831
|
+
"id",
|
|
34832
|
+
"name",
|
|
34833
|
+
"type",
|
|
34834
|
+
"sub_type"
|
|
34835
|
+
],
|
|
34836
|
+
"properties": {
|
|
34837
|
+
"id": {
|
|
34838
|
+
"$ref": "#/components/schemas/ItemId"
|
|
34839
|
+
},
|
|
34840
|
+
"name": {
|
|
34841
|
+
"type": "string"
|
|
34842
|
+
},
|
|
34843
|
+
"type": {
|
|
34844
|
+
"$ref": "#/components/schemas/TornItemTypeEnum"
|
|
34845
|
+
},
|
|
34846
|
+
"sub_type": {
|
|
34847
|
+
"oneOf": [
|
|
34848
|
+
{
|
|
34849
|
+
"$ref": "#/components/schemas/TornItemWeaponTypeEnum"
|
|
34850
|
+
},
|
|
34851
|
+
{
|
|
34852
|
+
"type": "null"
|
|
34853
|
+
}
|
|
34854
|
+
]
|
|
34855
|
+
}
|
|
34856
|
+
},
|
|
34857
|
+
"type": "object"
|
|
34858
|
+
}
|
|
34859
|
+
]
|
|
34860
|
+
},
|
|
34619
34861
|
"TornItemDetailsResponse": {
|
|
34620
34862
|
"required": [
|
|
34621
34863
|
"itemdetails"
|
|
34622
34864
|
],
|
|
34623
34865
|
"properties": {
|
|
34624
34866
|
"itemdetails": {
|
|
34625
|
-
"
|
|
34867
|
+
"description": "Starting 1st January 2027, this response will return only an array of TornItemDetails.",
|
|
34868
|
+
"oneOf": [
|
|
34869
|
+
{
|
|
34870
|
+
"type": "array",
|
|
34871
|
+
"items": {
|
|
34872
|
+
"$ref": "#/components/schemas/TornItemDetails"
|
|
34873
|
+
}
|
|
34874
|
+
},
|
|
34875
|
+
{
|
|
34876
|
+
"$ref": "#/components/schemas/TornItemDetailsDeprecated",
|
|
34877
|
+
"description": "This object is deprecated, and starting on 1st January 2027 it will be replaced with an array of TornItemDetails."
|
|
34878
|
+
}
|
|
34879
|
+
]
|
|
34626
34880
|
}
|
|
34627
34881
|
},
|
|
34628
34882
|
"type": "object"
|