tornapi-typescript 3.0.9 → 3.0.11
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 +98 -2
- package/dist/index.ts +151 -2
- package/dist/openapi.json +721 -14
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,9 @@ export type FactionCrimeUserOutcome = "Successful" | "Failed" | "Jailed" | "Inju
|
|
|
44
44
|
export type FactionCrimeUserItemOutcomeEnum = "user" | "faction";
|
|
45
45
|
export type FactionCrimeItemOutcomeEnum = "lost" | "used";
|
|
46
46
|
export type RaceId = number;
|
|
47
|
+
export type HonorId = number;
|
|
48
|
+
export type MedalId = number;
|
|
49
|
+
export type MeritId = number;
|
|
47
50
|
export type OrganizedCrimeName = string;
|
|
48
51
|
export type PropertyTypeId = number;
|
|
49
52
|
export type PropertyId = number;
|
|
@@ -102,6 +105,7 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
102
105
|
*/
|
|
103
106
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
104
107
|
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
108
|
+
export type HonorRarityEnum = "Extremely Rare" | "Very Rare" | "Rare" | "Limited" | "Uncommon" | "Common" | "Very Common" | "Unknown";
|
|
105
109
|
export type Parameters = string;
|
|
106
110
|
export type ReviveSetting = "Everyone" | "Friends & faction" | "No one" | "Unknown";
|
|
107
111
|
export type FactionWarfareTypeEnum = "ranked" | "territory" | "raid" | "chain" | "db";
|
|
@@ -112,6 +116,8 @@ export type AttackActionEnum = "attackerhosp" | "busy" | "critical hit" | "attac
|
|
|
112
116
|
export type TornItemAmmoTypeEnum = "Standard" | "Hollow Point" | "Piercing" | "Tracer" | "Incendiary";
|
|
113
117
|
export type TornItemWeaponTypeEnum = "Heavy artillery" | "Machine gun" | "Pistol" | "Rifle" | "Shotgun" | "SMG" | "Temporary" | "Clubbing" | "Piercing" | "Slashing" | "Mechanical";
|
|
114
118
|
export type TornItemWeaponCategoryEnum = "Melee" | "Secondary" | "Primary" | "Temporary";
|
|
119
|
+
export type MedalTypeEnum = "combat" | "commitment" | "crime" | "level" | "miscellaneous" | "networth" | "rank";
|
|
120
|
+
export type HonorTypeEnum = "attacking" | "camo" | "weapons" | "education" | "crimes" | "drugs" | "jail" | "hospital" | "travel" | "gym" | "level" | "competitions" | "money" | "items" | "commitment" | "casino" | "missions" | "misc" | "default";
|
|
115
121
|
export type TornItemTypeEnum = "Alcohol" | "Armor" | "Artifact" | "Book" | "Booster" | "Candy" | "Car" | "Clothing" | "Collectible" | "Drug" | "Energy Drink" | "Enhancer" | "Flower" | "Jewelry" | "Material" | "Medical" | "Other" | "Plushie" | "Special" | "Supply Pack" | "Tool" | "Unused" | "Weapon";
|
|
116
122
|
export type TornItemCategory = "All" | "Alcohol" | "Armor" | "Artifact" | "Book" | "Booster" | "Candy" | "Car" | "Clothing" | "Collectible" | "Defensive" | "Drug" | "Energy Drink" | "Enhancer" | "Flower" | "Jewelry" | "Material" | "Medical" | "Melee" | "Other" | "Plushie" | "Primary" | "Secondary" | "Special" | "Supply Pack" | "Temporary" | "Tool" | "Unused" | "Weapon";
|
|
117
123
|
export type TornItemArmorCoveragePartEnum = "Full Body" | "Heart" | "Stomach" | "Chest" | "Arm" | "Groin" | "Leg" | "Throat" | "Hand" | "Foot" | "Head";
|
|
@@ -791,11 +797,39 @@ export interface UserListResponse {
|
|
|
791
797
|
list: UserList[];
|
|
792
798
|
_metadata: RequestMetadataWithLinks;
|
|
793
799
|
}
|
|
794
|
-
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','
|
|
800
|
+
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','icons','inventory','messages','missions','networth','newevents','newmessages','notifications','perks','profile','refills','stocks','travel','weaponexp'. */
|
|
795
801
|
export type UserSelectionName = string;
|
|
796
802
|
export interface UserLookupResponse {
|
|
797
803
|
selections: UserSelectionName[];
|
|
798
804
|
}
|
|
805
|
+
export interface UserHonor {
|
|
806
|
+
id: HonorId;
|
|
807
|
+
timestamp: number;
|
|
808
|
+
}
|
|
809
|
+
export interface UserHonorsResponse {
|
|
810
|
+
honors: UserHonor[];
|
|
811
|
+
}
|
|
812
|
+
export interface UserMedal {
|
|
813
|
+
id: MedalId;
|
|
814
|
+
timestamp: number;
|
|
815
|
+
}
|
|
816
|
+
export interface UserMedalsResponse {
|
|
817
|
+
medals: UserMedal[];
|
|
818
|
+
}
|
|
819
|
+
export interface UserMeritUpgrade {
|
|
820
|
+
id: MeritId;
|
|
821
|
+
level: number;
|
|
822
|
+
}
|
|
823
|
+
export interface UserMerits {
|
|
824
|
+
upgrades: UserMeritUpgrade[];
|
|
825
|
+
available: number;
|
|
826
|
+
used: number;
|
|
827
|
+
medals: number;
|
|
828
|
+
honors: number;
|
|
829
|
+
}
|
|
830
|
+
export interface UserMeritsResponse {
|
|
831
|
+
merits: UserMerits;
|
|
832
|
+
}
|
|
799
833
|
export interface PersonalStatsOther {
|
|
800
834
|
other: {
|
|
801
835
|
activity: {
|
|
@@ -2463,6 +2497,44 @@ export type PropertySelectionName = string;
|
|
|
2463
2497
|
export interface PropertyLookupResponse {
|
|
2464
2498
|
selections: PropertySelectionName[];
|
|
2465
2499
|
}
|
|
2500
|
+
export interface TornMerit {
|
|
2501
|
+
id: MeritId;
|
|
2502
|
+
name: string;
|
|
2503
|
+
description: string;
|
|
2504
|
+
}
|
|
2505
|
+
export interface TornMeritsResponse {
|
|
2506
|
+
merits: TornMerit[];
|
|
2507
|
+
}
|
|
2508
|
+
/** Properties 'circulation', 'equipped' & 'rarity' are only populated for honors which do not have type.id value 1. */
|
|
2509
|
+
export interface TornHonor {
|
|
2510
|
+
id: HonorId;
|
|
2511
|
+
name: string;
|
|
2512
|
+
description: string;
|
|
2513
|
+
type: {
|
|
2514
|
+
id: number;
|
|
2515
|
+
title: HonorTypeEnum;
|
|
2516
|
+
};
|
|
2517
|
+
circulation?: number;
|
|
2518
|
+
equipped?: number;
|
|
2519
|
+
rarity?: HonorRarityEnum;
|
|
2520
|
+
}
|
|
2521
|
+
export interface TornHonorsResponse {
|
|
2522
|
+
honors: TornHonor[];
|
|
2523
|
+
}
|
|
2524
|
+
export interface TornMedal {
|
|
2525
|
+
id: MedalId;
|
|
2526
|
+
name: string;
|
|
2527
|
+
description: string;
|
|
2528
|
+
type: {
|
|
2529
|
+
id: string;
|
|
2530
|
+
title: MedalTypeEnum;
|
|
2531
|
+
};
|
|
2532
|
+
circulation: number;
|
|
2533
|
+
rarity: HonorRarityEnum;
|
|
2534
|
+
}
|
|
2535
|
+
export interface TornMedalsResponse {
|
|
2536
|
+
medals: TornMedal[];
|
|
2537
|
+
}
|
|
2466
2538
|
export interface TornOrganizedCrimeResponse {
|
|
2467
2539
|
organizedcrimes: TornOrganizedCrime[];
|
|
2468
2540
|
}
|
|
@@ -2796,7 +2868,7 @@ export interface TornFactionTreeResponse {
|
|
|
2796
2868
|
factionTree: TornFactionTree[];
|
|
2797
2869
|
}
|
|
2798
2870
|
/**
|
|
2799
|
-
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','
|
|
2871
|
+
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','itemdetails','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','searchforcash','shoplifting','stats','stocks'.
|
|
2800
2872
|
* * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.
|
|
2801
2873
|
*/
|
|
2802
2874
|
export type TornSelectionName = string;
|
|
@@ -6120,6 +6192,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6120
6192
|
response: UserHofResponse;
|
|
6121
6193
|
params: "timestamp";
|
|
6122
6194
|
};
|
|
6195
|
+
honors: {
|
|
6196
|
+
response: UserHonorsResponse;
|
|
6197
|
+
params: "timestamp";
|
|
6198
|
+
};
|
|
6123
6199
|
itemmarket: {
|
|
6124
6200
|
response: UserItemMarketResponse;
|
|
6125
6201
|
params: "offset" | "timestamp";
|
|
@@ -6140,6 +6216,14 @@ export interface UserV2 extends BaseSchema {
|
|
|
6140
6216
|
response: UserLogsResponse;
|
|
6141
6217
|
params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
|
|
6142
6218
|
};
|
|
6219
|
+
medals: {
|
|
6220
|
+
response: UserMedalsResponse;
|
|
6221
|
+
params: "timestamp";
|
|
6222
|
+
};
|
|
6223
|
+
merits: {
|
|
6224
|
+
response: UserMeritsResponse;
|
|
6225
|
+
params: "timestamp";
|
|
6226
|
+
};
|
|
6143
6227
|
money: {
|
|
6144
6228
|
response: UserMoneyResponse;
|
|
6145
6229
|
params: "timestamp";
|
|
@@ -6488,6 +6572,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
6488
6572
|
response: TornFactionTreeResponse;
|
|
6489
6573
|
params: "timestamp";
|
|
6490
6574
|
};
|
|
6575
|
+
honors: {
|
|
6576
|
+
response: TornHonorsResponse;
|
|
6577
|
+
params: "timestamp";
|
|
6578
|
+
};
|
|
6491
6579
|
hof: {
|
|
6492
6580
|
response: TornHofResponse;
|
|
6493
6581
|
params: "limit" | "offset" | "cat" | "timestamp";
|
|
@@ -6512,6 +6600,14 @@ export interface TornV2 extends BaseSchema {
|
|
|
6512
6600
|
response: TornLogTypesResponse;
|
|
6513
6601
|
params: "timestamp";
|
|
6514
6602
|
};
|
|
6603
|
+
medals: {
|
|
6604
|
+
response: TornMedalsResponse;
|
|
6605
|
+
params: "timestamp";
|
|
6606
|
+
};
|
|
6607
|
+
merits: {
|
|
6608
|
+
response: TornMeritsResponse;
|
|
6609
|
+
params: "timestamp";
|
|
6610
|
+
};
|
|
6515
6611
|
organizedcrimes: {
|
|
6516
6612
|
response: TornOrganizedCrimeResponse;
|
|
6517
6613
|
params: "timestamp";
|
package/dist/index.ts
CHANGED
|
@@ -4578,6 +4578,12 @@ export type FactionCrimeItemOutcomeEnum = "lost" | "used";
|
|
|
4578
4578
|
|
|
4579
4579
|
export type RaceId = number;
|
|
4580
4580
|
|
|
4581
|
+
export type HonorId = number;
|
|
4582
|
+
|
|
4583
|
+
export type MedalId = number;
|
|
4584
|
+
|
|
4585
|
+
export type MeritId = number;
|
|
4586
|
+
|
|
4581
4587
|
export type OrganizedCrimeName = string;
|
|
4582
4588
|
|
|
4583
4589
|
export type PropertyTypeId = number;
|
|
@@ -4674,6 +4680,16 @@ export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
|
4674
4680
|
|
|
4675
4681
|
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
4676
4682
|
|
|
4683
|
+
export type HonorRarityEnum =
|
|
4684
|
+
| "Extremely Rare"
|
|
4685
|
+
| "Very Rare"
|
|
4686
|
+
| "Rare"
|
|
4687
|
+
| "Limited"
|
|
4688
|
+
| "Uncommon"
|
|
4689
|
+
| "Common"
|
|
4690
|
+
| "Very Common"
|
|
4691
|
+
| "Unknown";
|
|
4692
|
+
|
|
4677
4693
|
export type Parameters = string;
|
|
4678
4694
|
|
|
4679
4695
|
export type ReviveSetting =
|
|
@@ -4777,6 +4793,36 @@ export type TornItemWeaponCategoryEnum =
|
|
|
4777
4793
|
| "Primary"
|
|
4778
4794
|
| "Temporary";
|
|
4779
4795
|
|
|
4796
|
+
export type MedalTypeEnum =
|
|
4797
|
+
| "combat"
|
|
4798
|
+
| "commitment"
|
|
4799
|
+
| "crime"
|
|
4800
|
+
| "level"
|
|
4801
|
+
| "miscellaneous"
|
|
4802
|
+
| "networth"
|
|
4803
|
+
| "rank";
|
|
4804
|
+
|
|
4805
|
+
export type HonorTypeEnum =
|
|
4806
|
+
| "attacking"
|
|
4807
|
+
| "camo"
|
|
4808
|
+
| "weapons"
|
|
4809
|
+
| "education"
|
|
4810
|
+
| "crimes"
|
|
4811
|
+
| "drugs"
|
|
4812
|
+
| "jail"
|
|
4813
|
+
| "hospital"
|
|
4814
|
+
| "travel"
|
|
4815
|
+
| "gym"
|
|
4816
|
+
| "level"
|
|
4817
|
+
| "competitions"
|
|
4818
|
+
| "money"
|
|
4819
|
+
| "items"
|
|
4820
|
+
| "commitment"
|
|
4821
|
+
| "casino"
|
|
4822
|
+
| "missions"
|
|
4823
|
+
| "misc"
|
|
4824
|
+
| "default";
|
|
4825
|
+
|
|
4780
4826
|
export type TornItemTypeEnum =
|
|
4781
4827
|
| "Alcohol"
|
|
4782
4828
|
| "Armor"
|
|
@@ -5654,13 +5700,48 @@ export interface UserListResponse {
|
|
|
5654
5700
|
_metadata: RequestMetadataWithLinks;
|
|
5655
5701
|
}
|
|
5656
5702
|
|
|
5657
|
-
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','
|
|
5703
|
+
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','icons','inventory','messages','missions','networth','newevents','newmessages','notifications','perks','profile','refills','stocks','travel','weaponexp'. */
|
|
5658
5704
|
export type UserSelectionName = string;
|
|
5659
5705
|
|
|
5660
5706
|
export interface UserLookupResponse {
|
|
5661
5707
|
selections: UserSelectionName[];
|
|
5662
5708
|
}
|
|
5663
5709
|
|
|
5710
|
+
export interface UserHonor {
|
|
5711
|
+
id: HonorId;
|
|
5712
|
+
timestamp: number;
|
|
5713
|
+
}
|
|
5714
|
+
|
|
5715
|
+
export interface UserHonorsResponse {
|
|
5716
|
+
honors: UserHonor[];
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5719
|
+
export interface UserMedal {
|
|
5720
|
+
id: MedalId;
|
|
5721
|
+
timestamp: number;
|
|
5722
|
+
}
|
|
5723
|
+
|
|
5724
|
+
export interface UserMedalsResponse {
|
|
5725
|
+
medals: UserMedal[];
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5728
|
+
export interface UserMeritUpgrade {
|
|
5729
|
+
id: MeritId;
|
|
5730
|
+
level: number;
|
|
5731
|
+
}
|
|
5732
|
+
|
|
5733
|
+
export interface UserMerits {
|
|
5734
|
+
upgrades: UserMeritUpgrade[];
|
|
5735
|
+
available: number;
|
|
5736
|
+
used: number;
|
|
5737
|
+
medals: number;
|
|
5738
|
+
honors: number;
|
|
5739
|
+
}
|
|
5740
|
+
|
|
5741
|
+
export interface UserMeritsResponse {
|
|
5742
|
+
merits: UserMerits;
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5664
5745
|
export interface PersonalStatsOther {
|
|
5665
5746
|
other: {
|
|
5666
5747
|
activity: {
|
|
@@ -7835,6 +7916,50 @@ export interface PropertyLookupResponse {
|
|
|
7835
7916
|
selections: PropertySelectionName[];
|
|
7836
7917
|
}
|
|
7837
7918
|
|
|
7919
|
+
export interface TornMerit {
|
|
7920
|
+
id: MeritId;
|
|
7921
|
+
name: string;
|
|
7922
|
+
description: string;
|
|
7923
|
+
}
|
|
7924
|
+
|
|
7925
|
+
export interface TornMeritsResponse {
|
|
7926
|
+
merits: TornMerit[];
|
|
7927
|
+
}
|
|
7928
|
+
|
|
7929
|
+
/** Properties 'circulation', 'equipped' & 'rarity' are only populated for honors which do not have type.id value 1. */
|
|
7930
|
+
export interface TornHonor {
|
|
7931
|
+
id: HonorId;
|
|
7932
|
+
name: string;
|
|
7933
|
+
description: string;
|
|
7934
|
+
type: {
|
|
7935
|
+
id: number;
|
|
7936
|
+
title: HonorTypeEnum;
|
|
7937
|
+
};
|
|
7938
|
+
circulation?: number;
|
|
7939
|
+
equipped?: number;
|
|
7940
|
+
rarity?: HonorRarityEnum;
|
|
7941
|
+
}
|
|
7942
|
+
|
|
7943
|
+
export interface TornHonorsResponse {
|
|
7944
|
+
honors: TornHonor[];
|
|
7945
|
+
}
|
|
7946
|
+
|
|
7947
|
+
export interface TornMedal {
|
|
7948
|
+
id: MedalId;
|
|
7949
|
+
name: string;
|
|
7950
|
+
description: string;
|
|
7951
|
+
type: {
|
|
7952
|
+
id: string;
|
|
7953
|
+
title: MedalTypeEnum;
|
|
7954
|
+
};
|
|
7955
|
+
circulation: number;
|
|
7956
|
+
rarity: HonorRarityEnum;
|
|
7957
|
+
}
|
|
7958
|
+
|
|
7959
|
+
export interface TornMedalsResponse {
|
|
7960
|
+
medals: TornMedal[];
|
|
7961
|
+
}
|
|
7962
|
+
|
|
7838
7963
|
export interface TornOrganizedCrimeResponse {
|
|
7839
7964
|
organizedcrimes: TornOrganizedCrime[];
|
|
7840
7965
|
}
|
|
@@ -8223,7 +8348,7 @@ export interface TornFactionTreeResponse {
|
|
|
8223
8348
|
}
|
|
8224
8349
|
|
|
8225
8350
|
/**
|
|
8226
|
-
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','
|
|
8351
|
+
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','itemdetails','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','searchforcash','shoplifting','stats','stocks'.
|
|
8227
8352
|
* * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.
|
|
8228
8353
|
*/
|
|
8229
8354
|
export type TornSelectionName = string;
|
|
@@ -11619,6 +11744,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11619
11744
|
response: UserHofResponse;
|
|
11620
11745
|
params: "timestamp";
|
|
11621
11746
|
};
|
|
11747
|
+
honors: {
|
|
11748
|
+
response: UserHonorsResponse;
|
|
11749
|
+
params: "timestamp";
|
|
11750
|
+
};
|
|
11622
11751
|
itemmarket: {
|
|
11623
11752
|
response: UserItemMarketResponse;
|
|
11624
11753
|
params: "offset" | "timestamp";
|
|
@@ -11639,6 +11768,14 @@ export interface UserV2 extends BaseSchema {
|
|
|
11639
11768
|
response: UserLogsResponse;
|
|
11640
11769
|
params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
|
|
11641
11770
|
};
|
|
11771
|
+
medals: {
|
|
11772
|
+
response: UserMedalsResponse;
|
|
11773
|
+
params: "timestamp";
|
|
11774
|
+
};
|
|
11775
|
+
merits: {
|
|
11776
|
+
response: UserMeritsResponse;
|
|
11777
|
+
params: "timestamp";
|
|
11778
|
+
};
|
|
11642
11779
|
money: {
|
|
11643
11780
|
response: UserMoneyResponse;
|
|
11644
11781
|
params: "timestamp";
|
|
@@ -12046,6 +12183,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
12046
12183
|
response: TornFactionTreeResponse;
|
|
12047
12184
|
params: "timestamp";
|
|
12048
12185
|
};
|
|
12186
|
+
honors: {
|
|
12187
|
+
response: TornHonorsResponse;
|
|
12188
|
+
params: "timestamp";
|
|
12189
|
+
};
|
|
12049
12190
|
hof: {
|
|
12050
12191
|
response: TornHofResponse;
|
|
12051
12192
|
params: "limit" | "offset" | "cat" | "timestamp";
|
|
@@ -12070,6 +12211,14 @@ export interface TornV2 extends BaseSchema {
|
|
|
12070
12211
|
response: TornLogTypesResponse;
|
|
12071
12212
|
params: "timestamp";
|
|
12072
12213
|
};
|
|
12214
|
+
medals: {
|
|
12215
|
+
response: TornMedalsResponse;
|
|
12216
|
+
params: "timestamp";
|
|
12217
|
+
};
|
|
12218
|
+
merits: {
|
|
12219
|
+
response: TornMeritsResponse;
|
|
12220
|
+
params: "timestamp";
|
|
12221
|
+
};
|
|
12073
12222
|
organizedcrimes: {
|
|
12074
12223
|
response: TornOrganizedCrimeResponse;
|
|
12075
12224
|
params: "timestamp";
|
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": "3.0.
|
|
6
|
+
"version": "3.0.11"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -976,6 +976,45 @@
|
|
|
976
976
|
"x-stability": "Stable"
|
|
977
977
|
}
|
|
978
978
|
},
|
|
979
|
+
"/user/honors": {
|
|
980
|
+
"get": {
|
|
981
|
+
"tags": [
|
|
982
|
+
"User"
|
|
983
|
+
],
|
|
984
|
+
"summary": "Get your achieved honors",
|
|
985
|
+
"description": "Requires minimal access key. <br>",
|
|
986
|
+
"operationId": "03bcd69dc16d287da5a5c1239b1e35ae",
|
|
987
|
+
"parameters": [
|
|
988
|
+
{
|
|
989
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
996
|
+
}
|
|
997
|
+
],
|
|
998
|
+
"responses": {
|
|
999
|
+
"200": {
|
|
1000
|
+
"description": "Successful operation",
|
|
1001
|
+
"content": {
|
|
1002
|
+
"application/json": {
|
|
1003
|
+
"schema": {
|
|
1004
|
+
"$ref": "#/components/schemas/UserHonorsResponse"
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
"security": [
|
|
1011
|
+
{
|
|
1012
|
+
"api_key": []
|
|
1013
|
+
}
|
|
1014
|
+
],
|
|
1015
|
+
"x-stability": "Stable"
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
979
1018
|
"/user/itemmarket": {
|
|
980
1019
|
"get": {
|
|
981
1020
|
"tags": [
|
|
@@ -1224,6 +1263,84 @@
|
|
|
1224
1263
|
"x-stability": "Unstable"
|
|
1225
1264
|
}
|
|
1226
1265
|
},
|
|
1266
|
+
"/user/medals": {
|
|
1267
|
+
"get": {
|
|
1268
|
+
"tags": [
|
|
1269
|
+
"User"
|
|
1270
|
+
],
|
|
1271
|
+
"summary": "Get your achieved medals",
|
|
1272
|
+
"description": "Requires minimal access key. <br>",
|
|
1273
|
+
"operationId": "5c1d150273feb0c553f6cfb96071bf1b",
|
|
1274
|
+
"parameters": [
|
|
1275
|
+
{
|
|
1276
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
1285
|
+
"responses": {
|
|
1286
|
+
"200": {
|
|
1287
|
+
"description": "Successful operation",
|
|
1288
|
+
"content": {
|
|
1289
|
+
"application/json": {
|
|
1290
|
+
"schema": {
|
|
1291
|
+
"$ref": "#/components/schemas/UserMedalsResponse"
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
"security": [
|
|
1298
|
+
{
|
|
1299
|
+
"api_key": []
|
|
1300
|
+
}
|
|
1301
|
+
],
|
|
1302
|
+
"x-stability": "Stable"
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
"/user/merits": {
|
|
1306
|
+
"get": {
|
|
1307
|
+
"tags": [
|
|
1308
|
+
"User"
|
|
1309
|
+
],
|
|
1310
|
+
"summary": "Get your merits",
|
|
1311
|
+
"description": "Requires minimal access key. <br>",
|
|
1312
|
+
"operationId": "af17d832a1ff8c1d327f262886b39fec",
|
|
1313
|
+
"parameters": [
|
|
1314
|
+
{
|
|
1315
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
1322
|
+
}
|
|
1323
|
+
],
|
|
1324
|
+
"responses": {
|
|
1325
|
+
"200": {
|
|
1326
|
+
"description": "Successful operation",
|
|
1327
|
+
"content": {
|
|
1328
|
+
"application/json": {
|
|
1329
|
+
"schema": {
|
|
1330
|
+
"$ref": "#/components/schemas/UserMeritsResponse"
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
"security": [
|
|
1337
|
+
{
|
|
1338
|
+
"api_key": []
|
|
1339
|
+
}
|
|
1340
|
+
],
|
|
1341
|
+
"x-stability": "Stable"
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1227
1344
|
"/user/money": {
|
|
1228
1345
|
"get": {
|
|
1229
1346
|
"tags": [
|
|
@@ -2243,6 +2360,15 @@
|
|
|
2243
2360
|
{
|
|
2244
2361
|
"$ref": "#/components/schemas/RevivesResponse"
|
|
2245
2362
|
},
|
|
2363
|
+
{
|
|
2364
|
+
"$ref": "#/components/schemas/UserHonorsResponse"
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
"$ref": "#/components/schemas/UserMedalsResponse"
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
"$ref": "#/components/schemas/UserMeritsResponse"
|
|
2371
|
+
},
|
|
2246
2372
|
{
|
|
2247
2373
|
"$ref": "#/components/schemas/RevivesFullResponse"
|
|
2248
2374
|
},
|
|
@@ -6830,6 +6956,98 @@
|
|
|
6830
6956
|
"x-stability": "Unstable"
|
|
6831
6957
|
}
|
|
6832
6958
|
},
|
|
6959
|
+
"/torn/honors": {
|
|
6960
|
+
"get": {
|
|
6961
|
+
"tags": [
|
|
6962
|
+
"Torn"
|
|
6963
|
+
],
|
|
6964
|
+
"summary": "Get all honors",
|
|
6965
|
+
"description": "Requires public access key. <br>",
|
|
6966
|
+
"operationId": "4b7322594732b4e263f2e612f648e6a4",
|
|
6967
|
+
"parameters": [
|
|
6968
|
+
{
|
|
6969
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
6970
|
+
},
|
|
6971
|
+
{
|
|
6972
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
6973
|
+
},
|
|
6974
|
+
{
|
|
6975
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
6976
|
+
}
|
|
6977
|
+
],
|
|
6978
|
+
"responses": {
|
|
6979
|
+
"200": {
|
|
6980
|
+
"description": "Successful operation",
|
|
6981
|
+
"content": {
|
|
6982
|
+
"application/json": {
|
|
6983
|
+
"schema": {
|
|
6984
|
+
"$ref": "#/components/schemas/TornHonorsResponse"
|
|
6985
|
+
}
|
|
6986
|
+
}
|
|
6987
|
+
}
|
|
6988
|
+
}
|
|
6989
|
+
},
|
|
6990
|
+
"security": [
|
|
6991
|
+
{
|
|
6992
|
+
"api_key": []
|
|
6993
|
+
}
|
|
6994
|
+
],
|
|
6995
|
+
"x-stability": "Stable"
|
|
6996
|
+
}
|
|
6997
|
+
},
|
|
6998
|
+
"/torn/{ids}/honors": {
|
|
6999
|
+
"get": {
|
|
7000
|
+
"tags": [
|
|
7001
|
+
"Torn"
|
|
7002
|
+
],
|
|
7003
|
+
"summary": "Get specific honors",
|
|
7004
|
+
"description": "Requires public access key. <br>",
|
|
7005
|
+
"operationId": "bdbbefa4dc1cd7f146f500816ccbec1a",
|
|
7006
|
+
"parameters": [
|
|
7007
|
+
{
|
|
7008
|
+
"name": "ids",
|
|
7009
|
+
"in": "path",
|
|
7010
|
+
"description": "Honor id or a list of honor ids (comma separated)",
|
|
7011
|
+
"required": true,
|
|
7012
|
+
"style": "form",
|
|
7013
|
+
"explode": false,
|
|
7014
|
+
"schema": {
|
|
7015
|
+
"type": "array",
|
|
7016
|
+
"items": {
|
|
7017
|
+
"$ref": "#/components/schemas/HonorId"
|
|
7018
|
+
}
|
|
7019
|
+
}
|
|
7020
|
+
},
|
|
7021
|
+
{
|
|
7022
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
7023
|
+
},
|
|
7024
|
+
{
|
|
7025
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
7026
|
+
},
|
|
7027
|
+
{
|
|
7028
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
7029
|
+
}
|
|
7030
|
+
],
|
|
7031
|
+
"responses": {
|
|
7032
|
+
"200": {
|
|
7033
|
+
"description": "Successful operation",
|
|
7034
|
+
"content": {
|
|
7035
|
+
"application/json": {
|
|
7036
|
+
"schema": {
|
|
7037
|
+
"$ref": "#/components/schemas/TornHonorsResponse"
|
|
7038
|
+
}
|
|
7039
|
+
}
|
|
7040
|
+
}
|
|
7041
|
+
}
|
|
7042
|
+
},
|
|
7043
|
+
"security": [
|
|
7044
|
+
{
|
|
7045
|
+
"api_key": []
|
|
7046
|
+
}
|
|
7047
|
+
],
|
|
7048
|
+
"x-stability": "Stable"
|
|
7049
|
+
}
|
|
7050
|
+
},
|
|
6833
7051
|
"/torn/hof": {
|
|
6834
7052
|
"get": {
|
|
6835
7053
|
"tags": [
|
|
@@ -7195,6 +7413,137 @@
|
|
|
7195
7413
|
"x-stability": "Stable"
|
|
7196
7414
|
}
|
|
7197
7415
|
},
|
|
7416
|
+
"/torn/medals": {
|
|
7417
|
+
"get": {
|
|
7418
|
+
"tags": [
|
|
7419
|
+
"Torn"
|
|
7420
|
+
],
|
|
7421
|
+
"summary": "Get all medals",
|
|
7422
|
+
"description": "Requires public access key. <br>",
|
|
7423
|
+
"operationId": "c6e00a242c309a53a98852b225de5e0b",
|
|
7424
|
+
"parameters": [
|
|
7425
|
+
{
|
|
7426
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
7427
|
+
},
|
|
7428
|
+
{
|
|
7429
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
7430
|
+
},
|
|
7431
|
+
{
|
|
7432
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
7433
|
+
}
|
|
7434
|
+
],
|
|
7435
|
+
"responses": {
|
|
7436
|
+
"200": {
|
|
7437
|
+
"description": "Successful operation",
|
|
7438
|
+
"content": {
|
|
7439
|
+
"application/json": {
|
|
7440
|
+
"schema": {
|
|
7441
|
+
"$ref": "#/components/schemas/TornMedalsResponse"
|
|
7442
|
+
}
|
|
7443
|
+
}
|
|
7444
|
+
}
|
|
7445
|
+
}
|
|
7446
|
+
},
|
|
7447
|
+
"security": [
|
|
7448
|
+
{
|
|
7449
|
+
"api_key": []
|
|
7450
|
+
}
|
|
7451
|
+
],
|
|
7452
|
+
"x-stability": "Stable"
|
|
7453
|
+
}
|
|
7454
|
+
},
|
|
7455
|
+
"/torn/{ids}/medals": {
|
|
7456
|
+
"get": {
|
|
7457
|
+
"tags": [
|
|
7458
|
+
"Torn"
|
|
7459
|
+
],
|
|
7460
|
+
"summary": "Get specific medals",
|
|
7461
|
+
"description": "Requires public access key. <br>",
|
|
7462
|
+
"operationId": "a2f817c8fb95707aa71a7b28bed08a56",
|
|
7463
|
+
"parameters": [
|
|
7464
|
+
{
|
|
7465
|
+
"name": "ids",
|
|
7466
|
+
"in": "path",
|
|
7467
|
+
"description": "Medal id or a list of medal ids (comma separated)",
|
|
7468
|
+
"required": true,
|
|
7469
|
+
"style": "form",
|
|
7470
|
+
"explode": false,
|
|
7471
|
+
"schema": {
|
|
7472
|
+
"type": "array",
|
|
7473
|
+
"items": {
|
|
7474
|
+
"$ref": "#/components/schemas/MedalId"
|
|
7475
|
+
}
|
|
7476
|
+
}
|
|
7477
|
+
},
|
|
7478
|
+
{
|
|
7479
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
7480
|
+
},
|
|
7481
|
+
{
|
|
7482
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
7483
|
+
},
|
|
7484
|
+
{
|
|
7485
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
7486
|
+
}
|
|
7487
|
+
],
|
|
7488
|
+
"responses": {
|
|
7489
|
+
"200": {
|
|
7490
|
+
"description": "Successful operation",
|
|
7491
|
+
"content": {
|
|
7492
|
+
"application/json": {
|
|
7493
|
+
"schema": {
|
|
7494
|
+
"$ref": "#/components/schemas/TornMedalsResponse"
|
|
7495
|
+
}
|
|
7496
|
+
}
|
|
7497
|
+
}
|
|
7498
|
+
}
|
|
7499
|
+
},
|
|
7500
|
+
"security": [
|
|
7501
|
+
{
|
|
7502
|
+
"api_key": []
|
|
7503
|
+
}
|
|
7504
|
+
],
|
|
7505
|
+
"x-stability": "Stable"
|
|
7506
|
+
}
|
|
7507
|
+
},
|
|
7508
|
+
"/torn/merits": {
|
|
7509
|
+
"get": {
|
|
7510
|
+
"tags": [
|
|
7511
|
+
"Torn"
|
|
7512
|
+
],
|
|
7513
|
+
"summary": "Get all merits",
|
|
7514
|
+
"description": "Requires public access key. <br>",
|
|
7515
|
+
"operationId": "06198712e3cfdee6b3d5ea11fb6754ef",
|
|
7516
|
+
"parameters": [
|
|
7517
|
+
{
|
|
7518
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
7519
|
+
},
|
|
7520
|
+
{
|
|
7521
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
7522
|
+
},
|
|
7523
|
+
{
|
|
7524
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
7525
|
+
}
|
|
7526
|
+
],
|
|
7527
|
+
"responses": {
|
|
7528
|
+
"200": {
|
|
7529
|
+
"description": "Successful operation",
|
|
7530
|
+
"content": {
|
|
7531
|
+
"application/json": {
|
|
7532
|
+
"schema": {
|
|
7533
|
+
"$ref": "#/components/schemas/TornMeritsResponse"
|
|
7534
|
+
}
|
|
7535
|
+
}
|
|
7536
|
+
}
|
|
7537
|
+
}
|
|
7538
|
+
},
|
|
7539
|
+
"security": [
|
|
7540
|
+
{
|
|
7541
|
+
"api_key": []
|
|
7542
|
+
}
|
|
7543
|
+
],
|
|
7544
|
+
"x-stability": "Stable"
|
|
7545
|
+
}
|
|
7546
|
+
},
|
|
7198
7547
|
"/torn/organizedcrimes": {
|
|
7199
7548
|
"get": {
|
|
7200
7549
|
"tags": [
|
|
@@ -7500,6 +7849,18 @@
|
|
|
7500
7849
|
"$ref": "#/components/schemas/ItemId"
|
|
7501
7850
|
}
|
|
7502
7851
|
},
|
|
7852
|
+
{
|
|
7853
|
+
"type": "array",
|
|
7854
|
+
"items": {
|
|
7855
|
+
"$ref": "#/components/schemas/MedalId"
|
|
7856
|
+
}
|
|
7857
|
+
},
|
|
7858
|
+
{
|
|
7859
|
+
"type": "array",
|
|
7860
|
+
"items": {
|
|
7861
|
+
"$ref": "#/components/schemas/HonorId"
|
|
7862
|
+
}
|
|
7863
|
+
},
|
|
7503
7864
|
{
|
|
7504
7865
|
"type": "array",
|
|
7505
7866
|
"items": {
|
|
@@ -7590,6 +7951,15 @@
|
|
|
7590
7951
|
{
|
|
7591
7952
|
"$ref": "#/components/schemas/TornEducationResponse"
|
|
7592
7953
|
},
|
|
7954
|
+
{
|
|
7955
|
+
"$ref": "#/components/schemas/TornMeritsResponse"
|
|
7956
|
+
},
|
|
7957
|
+
{
|
|
7958
|
+
"$ref": "#/components/schemas/TornHonorsResponse"
|
|
7959
|
+
},
|
|
7960
|
+
{
|
|
7961
|
+
"$ref": "#/components/schemas/TornMedalsResponse"
|
|
7962
|
+
},
|
|
7593
7963
|
{
|
|
7594
7964
|
"$ref": "#/components/schemas/TornBountiesResponse"
|
|
7595
7965
|
},
|
|
@@ -12358,6 +12728,18 @@
|
|
|
12358
12728
|
"type": "integer",
|
|
12359
12729
|
"format": "int32"
|
|
12360
12730
|
},
|
|
12731
|
+
"HonorId": {
|
|
12732
|
+
"type": "integer",
|
|
12733
|
+
"format": "int32"
|
|
12734
|
+
},
|
|
12735
|
+
"MedalId": {
|
|
12736
|
+
"type": "integer",
|
|
12737
|
+
"format": "int32"
|
|
12738
|
+
},
|
|
12739
|
+
"MeritId": {
|
|
12740
|
+
"type": "integer",
|
|
12741
|
+
"format": "int32"
|
|
12742
|
+
},
|
|
12361
12743
|
"OrganizedCrimeName": {
|
|
12362
12744
|
"type": "string"
|
|
12363
12745
|
},
|
|
@@ -12573,6 +12955,19 @@
|
|
|
12573
12955
|
"Enby"
|
|
12574
12956
|
]
|
|
12575
12957
|
},
|
|
12958
|
+
"HonorRarityEnum": {
|
|
12959
|
+
"type": "string",
|
|
12960
|
+
"enum": [
|
|
12961
|
+
"Extremely Rare",
|
|
12962
|
+
"Very Rare",
|
|
12963
|
+
"Rare",
|
|
12964
|
+
"Limited",
|
|
12965
|
+
"Uncommon",
|
|
12966
|
+
"Common",
|
|
12967
|
+
"Very Common",
|
|
12968
|
+
"Unknown"
|
|
12969
|
+
]
|
|
12970
|
+
},
|
|
12576
12971
|
"Parameters": {
|
|
12577
12972
|
"oneOf": [
|
|
12578
12973
|
{
|
|
@@ -12709,13 +13104,49 @@
|
|
|
12709
13104
|
"Mechanical"
|
|
12710
13105
|
]
|
|
12711
13106
|
},
|
|
12712
|
-
"TornItemWeaponCategoryEnum": {
|
|
13107
|
+
"TornItemWeaponCategoryEnum": {
|
|
13108
|
+
"type": "string",
|
|
13109
|
+
"enum": [
|
|
13110
|
+
"Melee",
|
|
13111
|
+
"Secondary",
|
|
13112
|
+
"Primary",
|
|
13113
|
+
"Temporary"
|
|
13114
|
+
]
|
|
13115
|
+
},
|
|
13116
|
+
"MedalTypeEnum": {
|
|
13117
|
+
"type": "string",
|
|
13118
|
+
"enum": [
|
|
13119
|
+
"combat",
|
|
13120
|
+
"commitment",
|
|
13121
|
+
"crime",
|
|
13122
|
+
"level",
|
|
13123
|
+
"miscellaneous",
|
|
13124
|
+
"networth",
|
|
13125
|
+
"rank"
|
|
13126
|
+
]
|
|
13127
|
+
},
|
|
13128
|
+
"HonorTypeEnum": {
|
|
12713
13129
|
"type": "string",
|
|
12714
13130
|
"enum": [
|
|
12715
|
-
"
|
|
12716
|
-
"
|
|
12717
|
-
"
|
|
12718
|
-
"
|
|
13131
|
+
"attacking",
|
|
13132
|
+
"camo",
|
|
13133
|
+
"weapons",
|
|
13134
|
+
"education",
|
|
13135
|
+
"crimes",
|
|
13136
|
+
"drugs",
|
|
13137
|
+
"jail",
|
|
13138
|
+
"hospital",
|
|
13139
|
+
"travel",
|
|
13140
|
+
"gym",
|
|
13141
|
+
"level",
|
|
13142
|
+
"competitions",
|
|
13143
|
+
"money",
|
|
13144
|
+
"items",
|
|
13145
|
+
"commitment",
|
|
13146
|
+
"casino",
|
|
13147
|
+
"missions",
|
|
13148
|
+
"misc",
|
|
13149
|
+
"default"
|
|
12719
13150
|
]
|
|
12720
13151
|
},
|
|
12721
13152
|
"TornItemTypeEnum": {
|
|
@@ -16103,7 +16534,7 @@
|
|
|
16103
16534
|
"UserSelectionName": {
|
|
16104
16535
|
"oneOf": [
|
|
16105
16536
|
{
|
|
16106
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','
|
|
16537
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','icons','inventory','messages','missions','networth','newevents','newmessages','notifications','perks','profile','refills','stocks','travel','weaponexp'.",
|
|
16107
16538
|
"type": "string",
|
|
16108
16539
|
"enum": [
|
|
16109
16540
|
"attacks",
|
|
@@ -16121,11 +16552,15 @@
|
|
|
16121
16552
|
"forumsubscribedthreads",
|
|
16122
16553
|
"forumthreads",
|
|
16123
16554
|
"hof",
|
|
16555
|
+
"honors",
|
|
16124
16556
|
"itemmarket",
|
|
16125
16557
|
"jobpoints",
|
|
16126
16558
|
"jobranks",
|
|
16127
16559
|
"list",
|
|
16560
|
+
"log",
|
|
16128
16561
|
"lookup",
|
|
16562
|
+
"medals",
|
|
16563
|
+
"merits",
|
|
16129
16564
|
"money",
|
|
16130
16565
|
"organizedcrime",
|
|
16131
16566
|
"personalstats",
|
|
@@ -16150,12 +16585,8 @@
|
|
|
16150
16585
|
"equipment",
|
|
16151
16586
|
"events",
|
|
16152
16587
|
"gym",
|
|
16153
|
-
"honors",
|
|
16154
16588
|
"icons",
|
|
16155
16589
|
"inventory",
|
|
16156
|
-
"log",
|
|
16157
|
-
"medals",
|
|
16158
|
-
"merits",
|
|
16159
16590
|
"messages",
|
|
16160
16591
|
"missions",
|
|
16161
16592
|
"networth",
|
|
@@ -16189,6 +16620,127 @@
|
|
|
16189
16620
|
},
|
|
16190
16621
|
"type": "object"
|
|
16191
16622
|
},
|
|
16623
|
+
"UserHonor": {
|
|
16624
|
+
"required": [
|
|
16625
|
+
"id",
|
|
16626
|
+
"timestamp"
|
|
16627
|
+
],
|
|
16628
|
+
"properties": {
|
|
16629
|
+
"id": {
|
|
16630
|
+
"$ref": "#/components/schemas/HonorId"
|
|
16631
|
+
},
|
|
16632
|
+
"timestamp": {
|
|
16633
|
+
"type": "integer",
|
|
16634
|
+
"format": "int32"
|
|
16635
|
+
}
|
|
16636
|
+
},
|
|
16637
|
+
"type": "object"
|
|
16638
|
+
},
|
|
16639
|
+
"UserHonorsResponse": {
|
|
16640
|
+
"required": [
|
|
16641
|
+
"honors"
|
|
16642
|
+
],
|
|
16643
|
+
"properties": {
|
|
16644
|
+
"honors": {
|
|
16645
|
+
"type": "array",
|
|
16646
|
+
"items": {
|
|
16647
|
+
"$ref": "#/components/schemas/UserHonor"
|
|
16648
|
+
}
|
|
16649
|
+
}
|
|
16650
|
+
},
|
|
16651
|
+
"type": "object"
|
|
16652
|
+
},
|
|
16653
|
+
"UserMedal": {
|
|
16654
|
+
"required": [
|
|
16655
|
+
"id",
|
|
16656
|
+
"timestamp"
|
|
16657
|
+
],
|
|
16658
|
+
"properties": {
|
|
16659
|
+
"id": {
|
|
16660
|
+
"$ref": "#/components/schemas/MedalId"
|
|
16661
|
+
},
|
|
16662
|
+
"timestamp": {
|
|
16663
|
+
"type": "integer",
|
|
16664
|
+
"format": "int32"
|
|
16665
|
+
}
|
|
16666
|
+
},
|
|
16667
|
+
"type": "object"
|
|
16668
|
+
},
|
|
16669
|
+
"UserMedalsResponse": {
|
|
16670
|
+
"required": [
|
|
16671
|
+
"medals"
|
|
16672
|
+
],
|
|
16673
|
+
"properties": {
|
|
16674
|
+
"medals": {
|
|
16675
|
+
"type": "array",
|
|
16676
|
+
"items": {
|
|
16677
|
+
"$ref": "#/components/schemas/UserMedal"
|
|
16678
|
+
}
|
|
16679
|
+
}
|
|
16680
|
+
},
|
|
16681
|
+
"type": "object"
|
|
16682
|
+
},
|
|
16683
|
+
"UserMeritUpgrade": {
|
|
16684
|
+
"required": [
|
|
16685
|
+
"id",
|
|
16686
|
+
"level"
|
|
16687
|
+
],
|
|
16688
|
+
"properties": {
|
|
16689
|
+
"id": {
|
|
16690
|
+
"$ref": "#/components/schemas/MeritId"
|
|
16691
|
+
},
|
|
16692
|
+
"level": {
|
|
16693
|
+
"type": "integer",
|
|
16694
|
+
"format": "int32"
|
|
16695
|
+
}
|
|
16696
|
+
},
|
|
16697
|
+
"type": "object"
|
|
16698
|
+
},
|
|
16699
|
+
"UserMerits": {
|
|
16700
|
+
"required": [
|
|
16701
|
+
"upgrades",
|
|
16702
|
+
"available",
|
|
16703
|
+
"used",
|
|
16704
|
+
"medals",
|
|
16705
|
+
"honors"
|
|
16706
|
+
],
|
|
16707
|
+
"properties": {
|
|
16708
|
+
"upgrades": {
|
|
16709
|
+
"type": "array",
|
|
16710
|
+
"items": {
|
|
16711
|
+
"$ref": "#/components/schemas/UserMeritUpgrade"
|
|
16712
|
+
}
|
|
16713
|
+
},
|
|
16714
|
+
"available": {
|
|
16715
|
+
"type": "integer",
|
|
16716
|
+
"format": "int32"
|
|
16717
|
+
},
|
|
16718
|
+
"used": {
|
|
16719
|
+
"type": "integer",
|
|
16720
|
+
"format": "int32"
|
|
16721
|
+
},
|
|
16722
|
+
"medals": {
|
|
16723
|
+
"type": "integer",
|
|
16724
|
+
"format": "int32"
|
|
16725
|
+
},
|
|
16726
|
+
"honors": {
|
|
16727
|
+
"type": "integer",
|
|
16728
|
+
"format": "int32"
|
|
16729
|
+
}
|
|
16730
|
+
},
|
|
16731
|
+
"type": "object"
|
|
16732
|
+
},
|
|
16733
|
+
"UserMeritsResponse": {
|
|
16734
|
+
"required": [
|
|
16735
|
+
"merits"
|
|
16736
|
+
],
|
|
16737
|
+
"properties": {
|
|
16738
|
+
"merits": {
|
|
16739
|
+
"$ref": "#/components/schemas/UserMerits"
|
|
16740
|
+
}
|
|
16741
|
+
},
|
|
16742
|
+
"type": "object"
|
|
16743
|
+
},
|
|
16192
16744
|
"PersonalStatsOther": {
|
|
16193
16745
|
"required": [
|
|
16194
16746
|
"other"
|
|
@@ -24498,6 +25050,160 @@
|
|
|
24498
25050
|
},
|
|
24499
25051
|
"type": "object"
|
|
24500
25052
|
},
|
|
25053
|
+
"TornMerit": {
|
|
25054
|
+
"required": [
|
|
25055
|
+
"id",
|
|
25056
|
+
"name",
|
|
25057
|
+
"description"
|
|
25058
|
+
],
|
|
25059
|
+
"properties": {
|
|
25060
|
+
"id": {
|
|
25061
|
+
"$ref": "#/components/schemas/MeritId"
|
|
25062
|
+
},
|
|
25063
|
+
"name": {
|
|
25064
|
+
"type": "string"
|
|
25065
|
+
},
|
|
25066
|
+
"description": {
|
|
25067
|
+
"type": "string"
|
|
25068
|
+
}
|
|
25069
|
+
},
|
|
25070
|
+
"type": "object"
|
|
25071
|
+
},
|
|
25072
|
+
"TornMeritsResponse": {
|
|
25073
|
+
"required": [
|
|
25074
|
+
"merits"
|
|
25075
|
+
],
|
|
25076
|
+
"properties": {
|
|
25077
|
+
"merits": {
|
|
25078
|
+
"type": "array",
|
|
25079
|
+
"items": {
|
|
25080
|
+
"$ref": "#/components/schemas/TornMerit"
|
|
25081
|
+
}
|
|
25082
|
+
}
|
|
25083
|
+
},
|
|
25084
|
+
"type": "object"
|
|
25085
|
+
},
|
|
25086
|
+
"TornHonor": {
|
|
25087
|
+
"description": "Properties 'circulation', 'equipped' & 'rarity' are only populated for honors which do not have type.id value 1.",
|
|
25088
|
+
"required": [
|
|
25089
|
+
"id",
|
|
25090
|
+
"name",
|
|
25091
|
+
"description",
|
|
25092
|
+
"type"
|
|
25093
|
+
],
|
|
25094
|
+
"properties": {
|
|
25095
|
+
"id": {
|
|
25096
|
+
"$ref": "#/components/schemas/HonorId"
|
|
25097
|
+
},
|
|
25098
|
+
"name": {
|
|
25099
|
+
"type": "string"
|
|
25100
|
+
},
|
|
25101
|
+
"description": {
|
|
25102
|
+
"type": "string"
|
|
25103
|
+
},
|
|
25104
|
+
"type": {
|
|
25105
|
+
"required": [
|
|
25106
|
+
"id",
|
|
25107
|
+
"title"
|
|
25108
|
+
],
|
|
25109
|
+
"properties": {
|
|
25110
|
+
"id": {
|
|
25111
|
+
"type": "integer",
|
|
25112
|
+
"format": "int32"
|
|
25113
|
+
},
|
|
25114
|
+
"title": {
|
|
25115
|
+
"$ref": "#/components/schemas/HonorTypeEnum"
|
|
25116
|
+
}
|
|
25117
|
+
},
|
|
25118
|
+
"type": "object"
|
|
25119
|
+
},
|
|
25120
|
+
"circulation": {
|
|
25121
|
+
"type": "integer",
|
|
25122
|
+
"format": "int32"
|
|
25123
|
+
},
|
|
25124
|
+
"equipped": {
|
|
25125
|
+
"type": "integer",
|
|
25126
|
+
"format": "int32"
|
|
25127
|
+
},
|
|
25128
|
+
"rarity": {
|
|
25129
|
+
"$ref": "#/components/schemas/HonorRarityEnum"
|
|
25130
|
+
}
|
|
25131
|
+
},
|
|
25132
|
+
"type": "object"
|
|
25133
|
+
},
|
|
25134
|
+
"TornHonorsResponse": {
|
|
25135
|
+
"required": [
|
|
25136
|
+
"honors"
|
|
25137
|
+
],
|
|
25138
|
+
"properties": {
|
|
25139
|
+
"honors": {
|
|
25140
|
+
"type": "array",
|
|
25141
|
+
"items": {
|
|
25142
|
+
"$ref": "#/components/schemas/TornHonor"
|
|
25143
|
+
}
|
|
25144
|
+
}
|
|
25145
|
+
},
|
|
25146
|
+
"type": "object"
|
|
25147
|
+
},
|
|
25148
|
+
"TornMedal": {
|
|
25149
|
+
"required": [
|
|
25150
|
+
"id",
|
|
25151
|
+
"name",
|
|
25152
|
+
"description",
|
|
25153
|
+
"type",
|
|
25154
|
+
"circulation",
|
|
25155
|
+
"equipped",
|
|
25156
|
+
"rarity"
|
|
25157
|
+
],
|
|
25158
|
+
"properties": {
|
|
25159
|
+
"id": {
|
|
25160
|
+
"$ref": "#/components/schemas/MedalId"
|
|
25161
|
+
},
|
|
25162
|
+
"name": {
|
|
25163
|
+
"type": "string"
|
|
25164
|
+
},
|
|
25165
|
+
"description": {
|
|
25166
|
+
"type": "string"
|
|
25167
|
+
},
|
|
25168
|
+
"type": {
|
|
25169
|
+
"required": [
|
|
25170
|
+
"id",
|
|
25171
|
+
"title"
|
|
25172
|
+
],
|
|
25173
|
+
"properties": {
|
|
25174
|
+
"id": {
|
|
25175
|
+
"type": "string"
|
|
25176
|
+
},
|
|
25177
|
+
"title": {
|
|
25178
|
+
"$ref": "#/components/schemas/MedalTypeEnum"
|
|
25179
|
+
}
|
|
25180
|
+
},
|
|
25181
|
+
"type": "object"
|
|
25182
|
+
},
|
|
25183
|
+
"circulation": {
|
|
25184
|
+
"type": "integer",
|
|
25185
|
+
"format": "int32"
|
|
25186
|
+
},
|
|
25187
|
+
"rarity": {
|
|
25188
|
+
"$ref": "#/components/schemas/HonorRarityEnum"
|
|
25189
|
+
}
|
|
25190
|
+
},
|
|
25191
|
+
"type": "object"
|
|
25192
|
+
},
|
|
25193
|
+
"TornMedalsResponse": {
|
|
25194
|
+
"required": [
|
|
25195
|
+
"medals"
|
|
25196
|
+
],
|
|
25197
|
+
"properties": {
|
|
25198
|
+
"medals": {
|
|
25199
|
+
"type": "array",
|
|
25200
|
+
"items": {
|
|
25201
|
+
"$ref": "#/components/schemas/TornMedal"
|
|
25202
|
+
}
|
|
25203
|
+
}
|
|
25204
|
+
},
|
|
25205
|
+
"type": "object"
|
|
25206
|
+
},
|
|
24501
25207
|
"TornOrganizedCrimeResponse": {
|
|
24502
25208
|
"required": [
|
|
24503
25209
|
"organizedcrimes"
|
|
@@ -26151,7 +26857,7 @@
|
|
|
26151
26857
|
"TornSelectionName": {
|
|
26152
26858
|
"oneOf": [
|
|
26153
26859
|
{
|
|
26154
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','
|
|
26860
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','itemdetails','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','searchforcash','shoplifting','stats','stocks'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
|
|
26155
26861
|
"type": "string",
|
|
26156
26862
|
"enum": [
|
|
26157
26863
|
"attacklog",
|
|
@@ -26162,12 +26868,15 @@
|
|
|
26162
26868
|
"factionhof",
|
|
26163
26869
|
"factiontree",
|
|
26164
26870
|
"hof",
|
|
26871
|
+
"honors",
|
|
26165
26872
|
"itemammo",
|
|
26166
26873
|
"itemmods",
|
|
26167
26874
|
"items",
|
|
26168
26875
|
"logcategories",
|
|
26169
26876
|
"logtypes",
|
|
26170
26877
|
"lookup",
|
|
26878
|
+
"medals",
|
|
26879
|
+
"merits",
|
|
26171
26880
|
"organizedcrimes",
|
|
26172
26881
|
"properties",
|
|
26173
26882
|
"subcrimes",
|
|
@@ -26179,10 +26888,8 @@
|
|
|
26179
26888
|
"companies",
|
|
26180
26889
|
"competition",
|
|
26181
26890
|
"gyms",
|
|
26182
|
-
"honors",
|
|
26183
26891
|
"itemdetails",
|
|
26184
26892
|
"itemstats",
|
|
26185
|
-
"medals",
|
|
26186
26893
|
"organisedcrimes",
|
|
26187
26894
|
"pawnshop",
|
|
26188
26895
|
"pokertables",
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.11",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate-types": "tsc && node build/index.js"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@scalar/openapi-types": "^0.3.7",
|
|
10
|
-
"@types/node": "^22.
|
|
10
|
+
"@types/node": "^22.18.0",
|
|
11
11
|
"prettier": "^3.6.2",
|
|
12
12
|
"typeconv": "^2.3.1",
|
|
13
13
|
"typescript": "^5.9.2"
|