tornapi-typescript 6.11.1 → 6.13.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 +203 -9
- package/dist/index.ts +243 -9
- package/dist/openapi.json +1165 -26
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* - {@link https://github.com/grantila/typeconv}
|
|
6
6
|
*/
|
|
7
7
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
8
|
+
export type TornItemStatTitleEnum = "Damage" | "Rounds fired" | "Hits" | "Misses" | "Damage taken" | "Reloads" | "Highest damage" | "Hits received" | "Most damage taken" | "Damage mitigated" | "Most damage mitigated" | "Finishing hits" | "Critical hits" | "First owner" | "First faction owner" | "Time created" | "Respect earned";
|
|
9
|
+
export type FactionArmoryCategoryEnum = "weapons" | "armor" | "temporary" | "medical" | "consumables" | "drugs" | "boosters" | "utilities" | "loot";
|
|
8
10
|
export type MissionDifficultyEnum = "Very easy" | "Easy" | "Medium" | "Hard" | "Very hard" | "Expert";
|
|
9
11
|
export type MissionStatusEnum = "Accepted" | "Available" | "Failed" | "Completed";
|
|
10
12
|
export type MissionRewardUpgrade = "Item" | "Ammo" | "Upgrade";
|
|
@@ -79,6 +81,7 @@ export type RaceTrackId = number;
|
|
|
79
81
|
export type RaceCarId = number;
|
|
80
82
|
export type RaceCarUpgradeId = number;
|
|
81
83
|
export type ItemId = number;
|
|
84
|
+
export type ItemStatId = number;
|
|
82
85
|
export type AuctionListingId = number;
|
|
83
86
|
export type ItemModId = number;
|
|
84
87
|
export type CityShopId = number;
|
|
@@ -206,7 +209,7 @@ export interface Attack {
|
|
|
206
209
|
result: FactionAttackResult;
|
|
207
210
|
respect_gain: number;
|
|
208
211
|
respect_loss: number;
|
|
209
|
-
chain: number;
|
|
212
|
+
chain: number | null;
|
|
210
213
|
/** This is an experimental flag which should help determine 'assist' attacks which have not contributed to the chain. For example, attacks such as where the opponent lost to someoene else before the attacker could finish the attack. This flag might not work entirely correctly, so use with caution. */
|
|
211
214
|
is_interrupted: boolean;
|
|
212
215
|
is_stealthed: boolean;
|
|
@@ -518,7 +521,11 @@ export interface ErrorFileDoesNotExist {
|
|
|
518
521
|
code: 30;
|
|
519
522
|
error: string;
|
|
520
523
|
}
|
|
521
|
-
export
|
|
524
|
+
export interface ErrorCityStatsCronFailed {
|
|
525
|
+
code: 31;
|
|
526
|
+
error: string;
|
|
527
|
+
}
|
|
528
|
+
export type ApiError = ErrorUnknown | ErrorKeyEmpty | ErrorIncorrectKey | ErrorWrongType | ErrorWrongFields | ErrorTooManyRequests | ErrorIncorrectId | ErrorIncorrectIdEntityRelation | ErrorIpBlocked | ErrorApiDisabled | ErrorKeyOwnerInFederalJail | ErrorKeyChangeCooldown | ErrorKeyReadError | ErrorKeyTemporaryDisabled | ErrorDailyReadLimitReached | ErrorLogUnavailable | ErrorAccessLevelTooLow | ErrorBackendError | ErrorApiKeyPaused | ErrorMustMigrateToCrimesV2 | ErrorRaceNotFinished | ErrorIncorrectCategory | ErrorOnlyAvailableInApiV1 | ErrorOnlyAvailableInApiV2 | ErrorClosedTemporarily | ErrorInvalidStatRequested | ErrorOnlyCategoryOrStatsAllowed | ErrorMustMigrateToOrganizedCrimesV2 | ErrorIncorrectLogId | ErrorCategorySelectionUnavailableForInteractionLogs | ErrorFileDoesNotExist | ErrorCityStatsCronFailed;
|
|
522
529
|
export interface UserGymResponse {
|
|
523
530
|
gym: {
|
|
524
531
|
id: GymId;
|
|
@@ -2094,6 +2101,25 @@ export interface UserPersonalStatsFullPublic {
|
|
|
2094
2101
|
export type UserPersonalStatsResponse = UserPersonalStatsFull | UserPersonalStatsFullPublic | UserPersonalStatsPopular | UserPersonalStatsCategory | UserPersonalStatsHistoric;
|
|
2095
2102
|
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
2103
|
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";
|
|
2104
|
+
export interface FactionCrimeExpResponse {
|
|
2105
|
+
crimeexp: UserId[];
|
|
2106
|
+
}
|
|
2107
|
+
export interface FactionInventoryItem {
|
|
2108
|
+
id: ItemId;
|
|
2109
|
+
name: string;
|
|
2110
|
+
type: MarketSpecializedBazaarCategoryEnum;
|
|
2111
|
+
amount: number;
|
|
2112
|
+
uids: ItemUid[];
|
|
2113
|
+
loaned: {
|
|
2114
|
+
id: UserId;
|
|
2115
|
+
name: string;
|
|
2116
|
+
} | null;
|
|
2117
|
+
}
|
|
2118
|
+
export interface FactionInventoryResponse {
|
|
2119
|
+
inventory_timestamp: number;
|
|
2120
|
+
inventory: FactionInventoryItem[];
|
|
2121
|
+
_metadata: RequestMetadataWithLinksAndTotal;
|
|
2122
|
+
}
|
|
2097
2123
|
export interface FactionRaidReport {
|
|
2098
2124
|
id: RaidWarId;
|
|
2099
2125
|
start: number;
|
|
@@ -2712,10 +2738,7 @@ export interface FactionBalance {
|
|
|
2712
2738
|
export interface FactionBalanceResponse {
|
|
2713
2739
|
balance: FactionBalance;
|
|
2714
2740
|
}
|
|
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
|
-
*/
|
|
2741
|
+
/** 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
2742
|
export type FactionSelectionName = string;
|
|
2720
2743
|
export interface FactionLookupResponse {
|
|
2721
2744
|
selections: FactionSelectionName[];
|
|
@@ -3412,6 +3435,151 @@ export type PropertySelectionName = string;
|
|
|
3412
3435
|
export interface PropertyLookupResponse {
|
|
3413
3436
|
selections: PropertySelectionName[];
|
|
3414
3437
|
}
|
|
3438
|
+
export interface TornItemStat {
|
|
3439
|
+
id: ItemStatId;
|
|
3440
|
+
title: string;
|
|
3441
|
+
value: number;
|
|
3442
|
+
}
|
|
3443
|
+
export interface TornItemStats {
|
|
3444
|
+
id: ItemId;
|
|
3445
|
+
uid: ItemUid;
|
|
3446
|
+
name: TornItemStatTitleEnum;
|
|
3447
|
+
type: TornItemTypeEnum;
|
|
3448
|
+
sub_type: TornItemWeaponTypeEnum | null;
|
|
3449
|
+
stats: TornItemStat[];
|
|
3450
|
+
}
|
|
3451
|
+
export interface TornItemStatsResponse {
|
|
3452
|
+
itemdetails: TornItemStats[];
|
|
3453
|
+
}
|
|
3454
|
+
export interface TornRockPaperScissorsResponse {
|
|
3455
|
+
rockpaperscissors: {
|
|
3456
|
+
type: "rock" | "paper" | "scissors";
|
|
3457
|
+
count: number;
|
|
3458
|
+
}[];
|
|
3459
|
+
}
|
|
3460
|
+
export interface TornCityStatsResponse {
|
|
3461
|
+
stats: {
|
|
3462
|
+
users: {
|
|
3463
|
+
total: number;
|
|
3464
|
+
male: number;
|
|
3465
|
+
female: number;
|
|
3466
|
+
enby: number;
|
|
3467
|
+
married: number;
|
|
3468
|
+
};
|
|
3469
|
+
items: {
|
|
3470
|
+
found_in_city: number;
|
|
3471
|
+
found_in_dump: number;
|
|
3472
|
+
trashed: number;
|
|
3473
|
+
total: number;
|
|
3474
|
+
};
|
|
3475
|
+
trading: {
|
|
3476
|
+
sold_on_market: number;
|
|
3477
|
+
sold_in_bazaar: number;
|
|
3478
|
+
sold_points: number;
|
|
3479
|
+
bazaar_profit: number;
|
|
3480
|
+
auctions: number;
|
|
3481
|
+
trades: number;
|
|
3482
|
+
items_sent: number;
|
|
3483
|
+
};
|
|
3484
|
+
currency: {
|
|
3485
|
+
money_on_hand: number;
|
|
3486
|
+
money_on_hand_average: number;
|
|
3487
|
+
money_in_bank: number;
|
|
3488
|
+
points_total: number;
|
|
3489
|
+
points_players: number;
|
|
3490
|
+
points_factions: number;
|
|
3491
|
+
points_market: number;
|
|
3492
|
+
points_used: number;
|
|
3493
|
+
};
|
|
3494
|
+
attacking: {
|
|
3495
|
+
attacks_won: number;
|
|
3496
|
+
attacks_lost: number;
|
|
3497
|
+
attacks_stalemated: number;
|
|
3498
|
+
attacks_stealthed: number;
|
|
3499
|
+
escapes: number;
|
|
3500
|
+
hits: number;
|
|
3501
|
+
misses: number;
|
|
3502
|
+
critical_hits: number;
|
|
3503
|
+
rounds_fired: number;
|
|
3504
|
+
money_mugged: number;
|
|
3505
|
+
respect_gained: number;
|
|
3506
|
+
};
|
|
3507
|
+
jobs: {
|
|
3508
|
+
army: number;
|
|
3509
|
+
grocer: number;
|
|
3510
|
+
casino: number;
|
|
3511
|
+
education: number;
|
|
3512
|
+
medical: number;
|
|
3513
|
+
law: number;
|
|
3514
|
+
company: number;
|
|
3515
|
+
unemployed: number;
|
|
3516
|
+
};
|
|
3517
|
+
jail: {
|
|
3518
|
+
jailings: number;
|
|
3519
|
+
busts: number;
|
|
3520
|
+
busts_failed: number;
|
|
3521
|
+
bails: number;
|
|
3522
|
+
bails_spent: number;
|
|
3523
|
+
};
|
|
3524
|
+
hospital: {
|
|
3525
|
+
trips: number;
|
|
3526
|
+
medical_items_used: number;
|
|
3527
|
+
revives: number;
|
|
3528
|
+
};
|
|
3529
|
+
drugs: {
|
|
3530
|
+
total_used: number;
|
|
3531
|
+
overdoses: number;
|
|
3532
|
+
cannabis: number;
|
|
3533
|
+
ecstasy: number;
|
|
3534
|
+
ketamine: number;
|
|
3535
|
+
lsd: number;
|
|
3536
|
+
opium: number;
|
|
3537
|
+
shrooms: number;
|
|
3538
|
+
speed: number;
|
|
3539
|
+
pcp: number;
|
|
3540
|
+
xanax: number;
|
|
3541
|
+
vicodin: number;
|
|
3542
|
+
};
|
|
3543
|
+
traveling: {
|
|
3544
|
+
items_bought_abroad: number;
|
|
3545
|
+
total_trips: number;
|
|
3546
|
+
argentina: number;
|
|
3547
|
+
mexico: number;
|
|
3548
|
+
united_arab_emirates: number;
|
|
3549
|
+
hawaii: number;
|
|
3550
|
+
japan: number;
|
|
3551
|
+
united_kingdom: number;
|
|
3552
|
+
south_africa: number;
|
|
3553
|
+
switzerland: number;
|
|
3554
|
+
china: number;
|
|
3555
|
+
cayman_islands: number;
|
|
3556
|
+
};
|
|
3557
|
+
bounties: {
|
|
3558
|
+
placed: number;
|
|
3559
|
+
money_spent: number;
|
|
3560
|
+
};
|
|
3561
|
+
crimes: {
|
|
3562
|
+
total: number;
|
|
3563
|
+
jail_sentences: number;
|
|
3564
|
+
};
|
|
3565
|
+
communication: {
|
|
3566
|
+
total_messages: number;
|
|
3567
|
+
friends: number;
|
|
3568
|
+
coworkers: number;
|
|
3569
|
+
spouses: number;
|
|
3570
|
+
classified_ads_placed: number;
|
|
3571
|
+
personals_placed: number;
|
|
3572
|
+
};
|
|
3573
|
+
other: {
|
|
3574
|
+
logins: number;
|
|
3575
|
+
years_played: number;
|
|
3576
|
+
merits_bought: number;
|
|
3577
|
+
energy_refills: number;
|
|
3578
|
+
company_trains: number;
|
|
3579
|
+
stat_enhancers_used: number;
|
|
3580
|
+
};
|
|
3581
|
+
};
|
|
3582
|
+
}
|
|
3415
3583
|
export interface TornPokerTable {
|
|
3416
3584
|
id: PokerTableId;
|
|
3417
3585
|
name: string;
|
|
@@ -3639,8 +3807,14 @@ export interface TornItemDetails extends ItemMarketListingItemDetails {
|
|
|
3639
3807
|
type: TornItemTypeEnum;
|
|
3640
3808
|
sub_type: TornItemWeaponTypeEnum | null;
|
|
3641
3809
|
}
|
|
3810
|
+
export interface TornItemDetailsDeprecated extends ItemMarketListingItemDetails {
|
|
3811
|
+
id: ItemId;
|
|
3812
|
+
name: string;
|
|
3813
|
+
type: TornItemTypeEnum;
|
|
3814
|
+
sub_type: TornItemWeaponTypeEnum | null;
|
|
3815
|
+
}
|
|
3642
3816
|
export interface TornItemDetailsResponse {
|
|
3643
|
-
itemdetails: TornItemDetails;
|
|
3817
|
+
itemdetails: TornItemDetails[] | TornItemDetailsDeprecated;
|
|
3644
3818
|
}
|
|
3645
3819
|
export interface TornMerit {
|
|
3646
3820
|
id: MeritId;
|
|
@@ -4030,7 +4204,7 @@ export interface TornFactionTreeResponse {
|
|
|
4030
4204
|
factionTree: TornFactionTree[];
|
|
4031
4205
|
}
|
|
4032
4206
|
/**
|
|
4033
|
-
* The following selections will fallback to API v1 and may change at any time:'competition','
|
|
4207
|
+
* The following selections will fallback to API v1 and may change at any time:'competition','organisedcrimes'.
|
|
4034
4208
|
* * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars', 'pawnshop'.
|
|
4035
4209
|
*/
|
|
4036
4210
|
export type TornSelectionName = string;
|
|
@@ -7622,6 +7796,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
7622
7796
|
response: FactionContributorsResponse;
|
|
7623
7797
|
params: "stat" | "cat" | "timestamp";
|
|
7624
7798
|
};
|
|
7799
|
+
crimeexp: {
|
|
7800
|
+
response: FactionCrimeExpResponse;
|
|
7801
|
+
params: "timestamp";
|
|
7802
|
+
};
|
|
7625
7803
|
crimes: {
|
|
7626
7804
|
response: FactionCrimesResponse;
|
|
7627
7805
|
params: "cat" | "filters" | "limit" | "offset" | "from" | "to" | "sort" | "timestamp";
|
|
@@ -7638,6 +7816,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
7638
7816
|
response: FactionHofResponse;
|
|
7639
7817
|
params: "timestamp";
|
|
7640
7818
|
};
|
|
7819
|
+
inventory: {
|
|
7820
|
+
response: FactionInventoryResponse;
|
|
7821
|
+
params: "cat" | "limit" | "offset" | "timestamp";
|
|
7822
|
+
};
|
|
7641
7823
|
members: {
|
|
7642
7824
|
response: FactionMembersResponse;
|
|
7643
7825
|
params: "striptags" | "timestamp";
|
|
@@ -7996,12 +8178,16 @@ export interface TornV2 extends BaseSchema {
|
|
|
7996
8178
|
};
|
|
7997
8179
|
itemdetails: {
|
|
7998
8180
|
response: TornItemDetailsResponse;
|
|
7999
|
-
params: "
|
|
8181
|
+
params: "ids" | "timestamp";
|
|
8000
8182
|
};
|
|
8001
8183
|
itemmods: {
|
|
8002
8184
|
response: TornItemModsResponse;
|
|
8003
8185
|
params: "timestamp";
|
|
8004
8186
|
};
|
|
8187
|
+
itemstats: {
|
|
8188
|
+
response: TornItemStatsResponse;
|
|
8189
|
+
params: "ids" | "timestamp";
|
|
8190
|
+
};
|
|
8005
8191
|
items: {
|
|
8006
8192
|
response: TornItemsResponse;
|
|
8007
8193
|
params: "cat" | "sort" | "timestamp";
|
|
@@ -8038,6 +8224,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
8038
8224
|
response: TornProperties;
|
|
8039
8225
|
params: "timestamp";
|
|
8040
8226
|
};
|
|
8227
|
+
rockpaperscissors: {
|
|
8228
|
+
response: TornRockPaperScissorsResponse;
|
|
8229
|
+
params: "timestamp";
|
|
8230
|
+
};
|
|
8041
8231
|
searchforcash: {
|
|
8042
8232
|
response: TornSearchForCashResponse;
|
|
8043
8233
|
params: "timestamp";
|
|
@@ -8046,6 +8236,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
8046
8236
|
response: TornShopliftingResponse;
|
|
8047
8237
|
params: "timestamp";
|
|
8048
8238
|
};
|
|
8239
|
+
stats: {
|
|
8240
|
+
response: TornCityStatsResponse;
|
|
8241
|
+
params: "timestamp";
|
|
8242
|
+
};
|
|
8049
8243
|
stocks: {
|
|
8050
8244
|
response: TornStocksResponse;
|
|
8051
8245
|
params: "timestamp";
|
package/dist/index.ts
CHANGED
|
@@ -9,6 +9,36 @@
|
|
|
9
9
|
|
|
10
10
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
11
11
|
|
|
12
|
+
export type TornItemStatTitleEnum =
|
|
13
|
+
| "Damage"
|
|
14
|
+
| "Rounds fired"
|
|
15
|
+
| "Hits"
|
|
16
|
+
| "Misses"
|
|
17
|
+
| "Damage taken"
|
|
18
|
+
| "Reloads"
|
|
19
|
+
| "Highest damage"
|
|
20
|
+
| "Hits received"
|
|
21
|
+
| "Most damage taken"
|
|
22
|
+
| "Damage mitigated"
|
|
23
|
+
| "Most damage mitigated"
|
|
24
|
+
| "Finishing hits"
|
|
25
|
+
| "Critical hits"
|
|
26
|
+
| "First owner"
|
|
27
|
+
| "First faction owner"
|
|
28
|
+
| "Time created"
|
|
29
|
+
| "Respect earned";
|
|
30
|
+
|
|
31
|
+
export type FactionArmoryCategoryEnum =
|
|
32
|
+
| "weapons"
|
|
33
|
+
| "armor"
|
|
34
|
+
| "temporary"
|
|
35
|
+
| "medical"
|
|
36
|
+
| "consumables"
|
|
37
|
+
| "drugs"
|
|
38
|
+
| "boosters"
|
|
39
|
+
| "utilities"
|
|
40
|
+
| "loot";
|
|
41
|
+
|
|
12
42
|
export type MissionDifficultyEnum =
|
|
13
43
|
"Very easy" | "Easy" | "Medium" | "Hard" | "Very hard" | "Expert";
|
|
14
44
|
|
|
@@ -4728,6 +4758,8 @@ export type RaceCarUpgradeId = number;
|
|
|
4728
4758
|
|
|
4729
4759
|
export type ItemId = number;
|
|
4730
4760
|
|
|
4761
|
+
export type ItemStatId = number;
|
|
4762
|
+
|
|
4731
4763
|
export type AuctionListingId = number;
|
|
4732
4764
|
|
|
4733
4765
|
export type ItemModId = number;
|
|
@@ -5154,7 +5186,7 @@ export interface Attack {
|
|
|
5154
5186
|
result: FactionAttackResult;
|
|
5155
5187
|
respect_gain: number;
|
|
5156
5188
|
respect_loss: number;
|
|
5157
|
-
chain: number;
|
|
5189
|
+
chain: number | null;
|
|
5158
5190
|
/** This is an experimental flag which should help determine 'assist' attacks which have not contributed to the chain. For example, attacks such as where the opponent lost to someoene else before the attacker could finish the attack. This flag might not work entirely correctly, so use with caution. */
|
|
5159
5191
|
is_interrupted: boolean;
|
|
5160
5192
|
is_stealthed: boolean;
|
|
@@ -5536,6 +5568,11 @@ export interface ErrorFileDoesNotExist {
|
|
|
5536
5568
|
error: string;
|
|
5537
5569
|
}
|
|
5538
5570
|
|
|
5571
|
+
export interface ErrorCityStatsCronFailed {
|
|
5572
|
+
code: 31;
|
|
5573
|
+
error: string;
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5539
5576
|
export type ApiError =
|
|
5540
5577
|
| ErrorUnknown
|
|
5541
5578
|
| ErrorKeyEmpty
|
|
@@ -5567,7 +5604,8 @@ export type ApiError =
|
|
|
5567
5604
|
| ErrorMustMigrateToOrganizedCrimesV2
|
|
5568
5605
|
| ErrorIncorrectLogId
|
|
5569
5606
|
| ErrorCategorySelectionUnavailableForInteractionLogs
|
|
5570
|
-
| ErrorFileDoesNotExist
|
|
5607
|
+
| ErrorFileDoesNotExist
|
|
5608
|
+
| ErrorCityStatsCronFailed;
|
|
5571
5609
|
|
|
5572
5610
|
export interface UserGymResponse {
|
|
5573
5611
|
gym: {
|
|
@@ -7670,6 +7708,28 @@ export type PersonalStatsStatName =
|
|
|
7670
7708
|
| "scammingskill"
|
|
7671
7709
|
| "arsonskill";
|
|
7672
7710
|
|
|
7711
|
+
export interface FactionCrimeExpResponse {
|
|
7712
|
+
crimeexp: UserId[];
|
|
7713
|
+
}
|
|
7714
|
+
|
|
7715
|
+
export interface FactionInventoryItem {
|
|
7716
|
+
id: ItemId;
|
|
7717
|
+
name: string;
|
|
7718
|
+
type: MarketSpecializedBazaarCategoryEnum;
|
|
7719
|
+
amount: number;
|
|
7720
|
+
uids: ItemUid[];
|
|
7721
|
+
loaned: {
|
|
7722
|
+
id: UserId;
|
|
7723
|
+
name: string;
|
|
7724
|
+
} | null;
|
|
7725
|
+
}
|
|
7726
|
+
|
|
7727
|
+
export interface FactionInventoryResponse {
|
|
7728
|
+
inventory_timestamp: number;
|
|
7729
|
+
inventory: FactionInventoryItem[];
|
|
7730
|
+
_metadata: RequestMetadataWithLinksAndTotal;
|
|
7731
|
+
}
|
|
7732
|
+
|
|
7673
7733
|
export interface FactionRaidReport {
|
|
7674
7734
|
id: RaidWarId;
|
|
7675
7735
|
start: number;
|
|
@@ -8379,10 +8439,7 @@ export interface FactionBalanceResponse {
|
|
|
8379
8439
|
balance: FactionBalance;
|
|
8380
8440
|
}
|
|
8381
8441
|
|
|
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
|
-
*/
|
|
8442
|
+
/** 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
8443
|
export type FactionSelectionName = string;
|
|
8387
8444
|
|
|
8388
8445
|
export interface FactionLookupResponse {
|
|
@@ -9199,6 +9256,156 @@ export interface PropertyLookupResponse {
|
|
|
9199
9256
|
selections: PropertySelectionName[];
|
|
9200
9257
|
}
|
|
9201
9258
|
|
|
9259
|
+
export interface TornItemStat {
|
|
9260
|
+
id: ItemStatId;
|
|
9261
|
+
title: string;
|
|
9262
|
+
value: number;
|
|
9263
|
+
}
|
|
9264
|
+
|
|
9265
|
+
export interface TornItemStats {
|
|
9266
|
+
id: ItemId;
|
|
9267
|
+
uid: ItemUid;
|
|
9268
|
+
name: TornItemStatTitleEnum;
|
|
9269
|
+
type: TornItemTypeEnum;
|
|
9270
|
+
sub_type: TornItemWeaponTypeEnum | null;
|
|
9271
|
+
stats: TornItemStat[];
|
|
9272
|
+
}
|
|
9273
|
+
|
|
9274
|
+
export interface TornItemStatsResponse {
|
|
9275
|
+
itemdetails: TornItemStats[];
|
|
9276
|
+
}
|
|
9277
|
+
|
|
9278
|
+
export interface TornRockPaperScissorsResponse {
|
|
9279
|
+
rockpaperscissors: {
|
|
9280
|
+
type: "rock" | "paper" | "scissors";
|
|
9281
|
+
count: number;
|
|
9282
|
+
}[];
|
|
9283
|
+
}
|
|
9284
|
+
|
|
9285
|
+
export interface TornCityStatsResponse {
|
|
9286
|
+
stats: {
|
|
9287
|
+
users: {
|
|
9288
|
+
total: number;
|
|
9289
|
+
male: number;
|
|
9290
|
+
female: number;
|
|
9291
|
+
enby: number;
|
|
9292
|
+
married: number;
|
|
9293
|
+
};
|
|
9294
|
+
items: {
|
|
9295
|
+
found_in_city: number;
|
|
9296
|
+
found_in_dump: number;
|
|
9297
|
+
trashed: number;
|
|
9298
|
+
total: number;
|
|
9299
|
+
};
|
|
9300
|
+
trading: {
|
|
9301
|
+
sold_on_market: number;
|
|
9302
|
+
sold_in_bazaar: number;
|
|
9303
|
+
sold_points: number;
|
|
9304
|
+
bazaar_profit: number;
|
|
9305
|
+
auctions: number;
|
|
9306
|
+
trades: number;
|
|
9307
|
+
items_sent: number;
|
|
9308
|
+
};
|
|
9309
|
+
currency: {
|
|
9310
|
+
money_on_hand: number;
|
|
9311
|
+
money_on_hand_average: number;
|
|
9312
|
+
money_in_bank: number;
|
|
9313
|
+
points_total: number;
|
|
9314
|
+
points_players: number;
|
|
9315
|
+
points_factions: number;
|
|
9316
|
+
points_market: number;
|
|
9317
|
+
points_used: number;
|
|
9318
|
+
};
|
|
9319
|
+
attacking: {
|
|
9320
|
+
attacks_won: number;
|
|
9321
|
+
attacks_lost: number;
|
|
9322
|
+
attacks_stalemated: number;
|
|
9323
|
+
attacks_stealthed: number;
|
|
9324
|
+
escapes: number;
|
|
9325
|
+
hits: number;
|
|
9326
|
+
misses: number;
|
|
9327
|
+
critical_hits: number;
|
|
9328
|
+
rounds_fired: number;
|
|
9329
|
+
money_mugged: number;
|
|
9330
|
+
respect_gained: number;
|
|
9331
|
+
};
|
|
9332
|
+
jobs: {
|
|
9333
|
+
army: number;
|
|
9334
|
+
grocer: number;
|
|
9335
|
+
casino: number;
|
|
9336
|
+
education: number;
|
|
9337
|
+
medical: number;
|
|
9338
|
+
law: number;
|
|
9339
|
+
company: number;
|
|
9340
|
+
unemployed: number;
|
|
9341
|
+
};
|
|
9342
|
+
jail: {
|
|
9343
|
+
jailings: number;
|
|
9344
|
+
busts: number;
|
|
9345
|
+
busts_failed: number;
|
|
9346
|
+
bails: number;
|
|
9347
|
+
bails_spent: number;
|
|
9348
|
+
};
|
|
9349
|
+
hospital: {
|
|
9350
|
+
trips: number;
|
|
9351
|
+
medical_items_used: number;
|
|
9352
|
+
revives: number;
|
|
9353
|
+
};
|
|
9354
|
+
drugs: {
|
|
9355
|
+
total_used: number;
|
|
9356
|
+
overdoses: number;
|
|
9357
|
+
cannabis: number;
|
|
9358
|
+
ecstasy: number;
|
|
9359
|
+
ketamine: number;
|
|
9360
|
+
lsd: number;
|
|
9361
|
+
opium: number;
|
|
9362
|
+
shrooms: number;
|
|
9363
|
+
speed: number;
|
|
9364
|
+
pcp: number;
|
|
9365
|
+
xanax: number;
|
|
9366
|
+
vicodin: number;
|
|
9367
|
+
};
|
|
9368
|
+
traveling: {
|
|
9369
|
+
items_bought_abroad: number;
|
|
9370
|
+
total_trips: number;
|
|
9371
|
+
argentina: number;
|
|
9372
|
+
mexico: number;
|
|
9373
|
+
united_arab_emirates: number;
|
|
9374
|
+
hawaii: number;
|
|
9375
|
+
japan: number;
|
|
9376
|
+
united_kingdom: number;
|
|
9377
|
+
south_africa: number;
|
|
9378
|
+
switzerland: number;
|
|
9379
|
+
china: number;
|
|
9380
|
+
cayman_islands: number;
|
|
9381
|
+
};
|
|
9382
|
+
bounties: {
|
|
9383
|
+
placed: number;
|
|
9384
|
+
money_spent: number;
|
|
9385
|
+
};
|
|
9386
|
+
crimes: {
|
|
9387
|
+
total: number;
|
|
9388
|
+
jail_sentences: number;
|
|
9389
|
+
};
|
|
9390
|
+
communication: {
|
|
9391
|
+
total_messages: number;
|
|
9392
|
+
friends: number;
|
|
9393
|
+
coworkers: number;
|
|
9394
|
+
spouses: number;
|
|
9395
|
+
classified_ads_placed: number;
|
|
9396
|
+
personals_placed: number;
|
|
9397
|
+
};
|
|
9398
|
+
other: {
|
|
9399
|
+
logins: number;
|
|
9400
|
+
years_played: number;
|
|
9401
|
+
merits_bought: number;
|
|
9402
|
+
energy_refills: number;
|
|
9403
|
+
company_trains: number;
|
|
9404
|
+
stat_enhancers_used: number;
|
|
9405
|
+
};
|
|
9406
|
+
};
|
|
9407
|
+
}
|
|
9408
|
+
|
|
9202
9409
|
export interface TornPokerTable {
|
|
9203
9410
|
id: PokerTableId;
|
|
9204
9411
|
name: string;
|
|
@@ -9462,8 +9669,15 @@ export interface TornItemDetails extends ItemMarketListingItemDetails {
|
|
|
9462
9669
|
sub_type: TornItemWeaponTypeEnum | null;
|
|
9463
9670
|
}
|
|
9464
9671
|
|
|
9672
|
+
export interface TornItemDetailsDeprecated extends ItemMarketListingItemDetails {
|
|
9673
|
+
id: ItemId;
|
|
9674
|
+
name: string;
|
|
9675
|
+
type: TornItemTypeEnum;
|
|
9676
|
+
sub_type: TornItemWeaponTypeEnum | null;
|
|
9677
|
+
}
|
|
9678
|
+
|
|
9465
9679
|
export interface TornItemDetailsResponse {
|
|
9466
|
-
itemdetails: TornItemDetails;
|
|
9680
|
+
itemdetails: TornItemDetails[] | TornItemDetailsDeprecated;
|
|
9467
9681
|
}
|
|
9468
9682
|
|
|
9469
9683
|
export interface TornMerit {
|
|
@@ -9915,7 +10129,7 @@ export interface TornFactionTreeResponse {
|
|
|
9915
10129
|
}
|
|
9916
10130
|
|
|
9917
10131
|
/**
|
|
9918
|
-
* The following selections will fallback to API v1 and may change at any time:'competition','
|
|
10132
|
+
* The following selections will fallback to API v1 and may change at any time:'competition','organisedcrimes'.
|
|
9919
10133
|
* * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars', 'pawnshop'.
|
|
9920
10134
|
*/
|
|
9921
10135
|
export type TornSelectionName = string;
|
|
@@ -13604,6 +13818,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
13604
13818
|
response: FactionContributorsResponse;
|
|
13605
13819
|
params: "stat" | "cat" | "timestamp";
|
|
13606
13820
|
};
|
|
13821
|
+
crimeexp: {
|
|
13822
|
+
response: FactionCrimeExpResponse;
|
|
13823
|
+
params: "timestamp";
|
|
13824
|
+
};
|
|
13607
13825
|
crimes: {
|
|
13608
13826
|
response: FactionCrimesResponse;
|
|
13609
13827
|
params:
|
|
@@ -13628,6 +13846,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
13628
13846
|
response: FactionHofResponse;
|
|
13629
13847
|
params: "timestamp";
|
|
13630
13848
|
};
|
|
13849
|
+
inventory: {
|
|
13850
|
+
response: FactionInventoryResponse;
|
|
13851
|
+
params: "cat" | "limit" | "offset" | "timestamp";
|
|
13852
|
+
};
|
|
13631
13853
|
members: {
|
|
13632
13854
|
response: FactionMembersResponse;
|
|
13633
13855
|
params: "striptags" | "timestamp";
|
|
@@ -14024,12 +14246,16 @@ export interface TornV2 extends BaseSchema {
|
|
|
14024
14246
|
};
|
|
14025
14247
|
itemdetails: {
|
|
14026
14248
|
response: TornItemDetailsResponse;
|
|
14027
|
-
params: "
|
|
14249
|
+
params: "ids" | "timestamp";
|
|
14028
14250
|
};
|
|
14029
14251
|
itemmods: {
|
|
14030
14252
|
response: TornItemModsResponse;
|
|
14031
14253
|
params: "timestamp";
|
|
14032
14254
|
};
|
|
14255
|
+
itemstats: {
|
|
14256
|
+
response: TornItemStatsResponse;
|
|
14257
|
+
params: "ids" | "timestamp";
|
|
14258
|
+
};
|
|
14033
14259
|
items: {
|
|
14034
14260
|
response: TornItemsResponse;
|
|
14035
14261
|
params: "cat" | "sort" | "timestamp";
|
|
@@ -14066,6 +14292,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
14066
14292
|
response: TornProperties;
|
|
14067
14293
|
params: "timestamp";
|
|
14068
14294
|
};
|
|
14295
|
+
rockpaperscissors: {
|
|
14296
|
+
response: TornRockPaperScissorsResponse;
|
|
14297
|
+
params: "timestamp";
|
|
14298
|
+
};
|
|
14069
14299
|
searchforcash: {
|
|
14070
14300
|
response: TornSearchForCashResponse;
|
|
14071
14301
|
params: "timestamp";
|
|
@@ -14074,6 +14304,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
14074
14304
|
response: TornShopliftingResponse;
|
|
14075
14305
|
params: "timestamp";
|
|
14076
14306
|
};
|
|
14307
|
+
stats: {
|
|
14308
|
+
response: TornCityStatsResponse;
|
|
14309
|
+
params: "timestamp";
|
|
14310
|
+
};
|
|
14077
14311
|
stocks: {
|
|
14078
14312
|
response: TornStocksResponse;
|
|
14079
14313
|
params: "timestamp";
|