tornapi-typescript 6.8.2 → 6.10.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 +122 -13
- package/dist/index.ts +151 -13
- package/dist/openapi.json +820 -35
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -109,11 +109,13 @@ export type EducationId = number;
|
|
|
109
109
|
export type FactionBranchId = number;
|
|
110
110
|
export type FactionCrimeId = number;
|
|
111
111
|
export type TornCrimeId = number;
|
|
112
|
+
export type TornSubCrimeId = number;
|
|
112
113
|
export type ChainId = number;
|
|
113
114
|
export type AttackId = number;
|
|
114
115
|
export type AttackCode = string;
|
|
115
116
|
export type ForumId = number;
|
|
116
117
|
export type ForumThreadId = number;
|
|
118
|
+
export type GymId = number;
|
|
117
119
|
export type ForumPostId = number;
|
|
118
120
|
export interface RequestLinks {
|
|
119
121
|
next: string | null;
|
|
@@ -129,6 +131,11 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
129
131
|
links: RequestLinks;
|
|
130
132
|
total?: number;
|
|
131
133
|
}
|
|
134
|
+
export interface RequestMetadataWithLinksAndNanostamp {
|
|
135
|
+
links: RequestLinks;
|
|
136
|
+
/** Use to bypass system limitation when 100 or more logs were inserted within the same second. */
|
|
137
|
+
nanostamp?: string;
|
|
138
|
+
}
|
|
132
139
|
/**
|
|
133
140
|
* This represents the type of the activity. Values range from 1 to 8 where:
|
|
134
141
|
* * 1 = 'X posted on a thread',
|
|
@@ -140,6 +147,7 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
140
147
|
* * 7 = 'X quoted your post'.
|
|
141
148
|
*/
|
|
142
149
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
150
|
+
export type GymClassEnum = "Basic" | "Lightweight" | "Middleweight" | "Heavyweight" | "Specialist";
|
|
143
151
|
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
144
152
|
export type CompanyStaffRoomSizeEnum = "No staff room" | "Small staff room" | "Standard staff room" | "Large staff room" | "Very large staff room" | "Huge staff room" | "Colossal staff room";
|
|
145
153
|
export type CompanyStorageSizeEnum = "Small room" | "Standard room" | "Large room" | "Huge room" | "Warehouse" | "Large warehouse" | "Huge warehouse";
|
|
@@ -148,6 +156,7 @@ export type AwardCrimesVersionEnum = "v1" | "v2";
|
|
|
148
156
|
export type CompanySearchParameter = string;
|
|
149
157
|
export type UserSearchParameter = string;
|
|
150
158
|
export type Parameters = string;
|
|
159
|
+
export type TornShopliftingStatusTitleEnum = "One camera" | "Two cameras" | "Three cameras" | "Four cameras" | "Checkpoint" | "One guard" | "Two guards";
|
|
151
160
|
export type ReviveSetting = "Everyone" | "Friends & faction" | "No one" | "Unknown";
|
|
152
161
|
export type FactionWarfareTypeEnum = "ranked" | "territory" | "raid" | "chain" | "chainOngoing" | "db";
|
|
153
162
|
export type PropertyModificationEnum = "Hot Tub" | "Sauna" | "Open Bar" | "Small Pool" | "Medium Pool" | "Large Pool" | "Small Vault" | "Medium Vault" | "Large Vault" | "Extra Large Vault" | "Medical Facility" | "Advanced Shooting Range" | "Airstrip" | "Private Yacht" | "Sufficient Interior Modification" | "Superior Interior Modification";
|
|
@@ -507,6 +516,12 @@ export interface ErrorFileDoesNotExist {
|
|
|
507
516
|
error: string;
|
|
508
517
|
}
|
|
509
518
|
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;
|
|
519
|
+
export interface UserGymResponse {
|
|
520
|
+
gym: {
|
|
521
|
+
id: GymId;
|
|
522
|
+
name: string;
|
|
523
|
+
};
|
|
524
|
+
}
|
|
510
525
|
export interface UserSearch {
|
|
511
526
|
id: UserId;
|
|
512
527
|
name: string;
|
|
@@ -692,15 +707,16 @@ export interface UserStocksResponse {
|
|
|
692
707
|
export interface UserOrganizedCrimesResponse {
|
|
693
708
|
organizedcrimes: FactionCrime[];
|
|
694
709
|
}
|
|
710
|
+
export interface UserEquipmentAmmo {
|
|
711
|
+
id: AmmoId;
|
|
712
|
+
name: string;
|
|
713
|
+
quantity: number;
|
|
714
|
+
type: TornItemAmmoTypeEnum;
|
|
715
|
+
}
|
|
695
716
|
export type UserEquipment = TornItemDetails & {
|
|
696
717
|
slot: number;
|
|
697
718
|
mods: UserEquipmentItemMod[];
|
|
698
|
-
ammo:
|
|
699
|
-
id: AmmoId;
|
|
700
|
-
name: string;
|
|
701
|
-
quantity: number;
|
|
702
|
-
type: TornItemAmmoTypeEnum;
|
|
703
|
-
};
|
|
719
|
+
ammo: UserEquipmentAmmo | null;
|
|
704
720
|
};
|
|
705
721
|
export interface UserEquipmentItemMod {
|
|
706
722
|
id: ItemModId;
|
|
@@ -952,6 +968,7 @@ export interface UserProfileResponse {
|
|
|
952
968
|
signed_up: number;
|
|
953
969
|
faction_id: FactionId | null;
|
|
954
970
|
honor_id: HonorId;
|
|
971
|
+
revive_setting: ReviveSetting;
|
|
955
972
|
property: {
|
|
956
973
|
id: PropertyId;
|
|
957
974
|
name: string;
|
|
@@ -1090,7 +1107,7 @@ export interface UserLog {
|
|
|
1090
1107
|
}
|
|
1091
1108
|
export interface UserLogsResponse {
|
|
1092
1109
|
log: UserLog[];
|
|
1093
|
-
_metadata:
|
|
1110
|
+
_metadata: RequestMetadataWithLinksAndNanostamp;
|
|
1094
1111
|
}
|
|
1095
1112
|
export interface BasicUser {
|
|
1096
1113
|
id: UserId;
|
|
@@ -1264,7 +1281,7 @@ export interface UserCrimeDetailsScamming {
|
|
|
1264
1281
|
};
|
|
1265
1282
|
}
|
|
1266
1283
|
export interface UserSubcrime {
|
|
1267
|
-
id:
|
|
1284
|
+
id: TornSubCrimeId;
|
|
1268
1285
|
total: number;
|
|
1269
1286
|
success: number;
|
|
1270
1287
|
fail: number;
|
|
@@ -1325,7 +1342,7 @@ export interface UserRacesResponse {
|
|
|
1325
1342
|
}
|
|
1326
1343
|
export interface UserRaceCarDetails extends RaceCar {
|
|
1327
1344
|
id: RaceCarId;
|
|
1328
|
-
|
|
1345
|
+
car_name?: string | null;
|
|
1329
1346
|
worth: number;
|
|
1330
1347
|
points_spent: number;
|
|
1331
1348
|
races_entered: number;
|
|
@@ -1458,7 +1475,7 @@ export interface UserListResponse {
|
|
|
1458
1475
|
list: UserList[];
|
|
1459
1476
|
_metadata: RequestMetadataWithLinks;
|
|
1460
1477
|
}
|
|
1461
|
-
/** The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','
|
|
1478
|
+
/** The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','networth'. */
|
|
1462
1479
|
export type UserSelectionName = string;
|
|
1463
1480
|
export interface UserLookupResponse {
|
|
1464
1481
|
selections: UserSelectionName[];
|
|
@@ -2719,6 +2736,25 @@ export interface FactionRankedWarResponse {
|
|
|
2719
2736
|
rankedwars: FactionRankedWarDetails[];
|
|
2720
2737
|
_metadata: RequestMetadataWithLinks;
|
|
2721
2738
|
}
|
|
2739
|
+
export interface FactionWarfareRankedResponse {
|
|
2740
|
+
warfareranked: FactionRankedWarDetails[];
|
|
2741
|
+
_metadata: RequestMetadataWithLinks;
|
|
2742
|
+
}
|
|
2743
|
+
export interface FactionWarfareRaidsResponse {
|
|
2744
|
+
warfareraids: FactionRaidWarfare[];
|
|
2745
|
+
_metadata: RequestMetadataWithLinks;
|
|
2746
|
+
}
|
|
2747
|
+
export interface FactionWarfareTerritoryWarsResponse {
|
|
2748
|
+
warfareterritory: FactionTerritoryWarfare[];
|
|
2749
|
+
_metadata: RequestMetadataWithLinks;
|
|
2750
|
+
}
|
|
2751
|
+
export interface FactionWarfareChainsResponse {
|
|
2752
|
+
warfarechains: FactionChainWarfare[];
|
|
2753
|
+
_metadata: RequestMetadataWithLinks;
|
|
2754
|
+
}
|
|
2755
|
+
export interface FactionWarfareDirtyBombsResponse {
|
|
2756
|
+
dirtybombs: FactionWarfareDirtyBomb[];
|
|
2757
|
+
}
|
|
2722
2758
|
export interface FactionWarfareResponse {
|
|
2723
2759
|
warfare: FactionRankedWarDetails[] | FactionTerritoryWarfare[] | FactionChainWarfare[] | FactionRaidWarfare[] | FactionWarfareDirtyBomb[];
|
|
2724
2760
|
_metadata: RequestMetadataWithLinks;
|
|
@@ -3373,6 +3409,43 @@ export type PropertySelectionName = string;
|
|
|
3373
3409
|
export interface PropertyLookupResponse {
|
|
3374
3410
|
selections: PropertySelectionName[];
|
|
3375
3411
|
}
|
|
3412
|
+
export interface TornGymModifiers {
|
|
3413
|
+
strength: number;
|
|
3414
|
+
speed: number;
|
|
3415
|
+
defense: number;
|
|
3416
|
+
dexterity: number;
|
|
3417
|
+
}
|
|
3418
|
+
export interface TornGym {
|
|
3419
|
+
id: GymId;
|
|
3420
|
+
name: string;
|
|
3421
|
+
class: GymClassEnum;
|
|
3422
|
+
energy_cost: number;
|
|
3423
|
+
cost: number;
|
|
3424
|
+
modifiers: TornGymModifiers;
|
|
3425
|
+
note: string | null;
|
|
3426
|
+
}
|
|
3427
|
+
export interface TornGymsResponse {
|
|
3428
|
+
gyms: TornGym[];
|
|
3429
|
+
}
|
|
3430
|
+
export interface TornSearchForCash {
|
|
3431
|
+
id: TornSubCrimeId;
|
|
3432
|
+
title: string;
|
|
3433
|
+
percentage: number;
|
|
3434
|
+
}
|
|
3435
|
+
export interface TornSearchForCashResponse {
|
|
3436
|
+
searchforcash: TornSearchForCash[];
|
|
3437
|
+
}
|
|
3438
|
+
export interface TornShopliftingSecurityStatus {
|
|
3439
|
+
title: TornShopliftingStatusTitleEnum;
|
|
3440
|
+
disabled: boolean;
|
|
3441
|
+
}
|
|
3442
|
+
export interface TornShoplifting {
|
|
3443
|
+
id: TornSubCrimeId;
|
|
3444
|
+
status: TornShopliftingSecurityStatus[];
|
|
3445
|
+
}
|
|
3446
|
+
export interface TornShopliftingResponse {
|
|
3447
|
+
shoplifting: TornShoplifting[];
|
|
3448
|
+
}
|
|
3376
3449
|
export interface TornCompaniesResponse {
|
|
3377
3450
|
companies: TornCompany[];
|
|
3378
3451
|
}
|
|
@@ -3654,7 +3727,7 @@ export interface TornSubcrimesResponse {
|
|
|
3654
3727
|
subcrimes: TornSubcrime[];
|
|
3655
3728
|
}
|
|
3656
3729
|
export interface TornSubcrime {
|
|
3657
|
-
id:
|
|
3730
|
+
id: TornSubCrimeId;
|
|
3658
3731
|
name: string;
|
|
3659
3732
|
nerve_cost: number;
|
|
3660
3733
|
}
|
|
@@ -3899,7 +3972,7 @@ export interface TornFactionTreeResponse {
|
|
|
3899
3972
|
factionTree: TornFactionTree[];
|
|
3900
3973
|
}
|
|
3901
3974
|
/**
|
|
3902
|
-
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','
|
|
3975
|
+
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','stats'.
|
|
3903
3976
|
* * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.
|
|
3904
3977
|
*/
|
|
3905
3978
|
export type TornSelectionName = string;
|
|
@@ -7263,6 +7336,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
7263
7336
|
response: UserForumThreadsResponse;
|
|
7264
7337
|
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
7265
7338
|
};
|
|
7339
|
+
gym: {
|
|
7340
|
+
response: UserGymResponse;
|
|
7341
|
+
params: "timestamp";
|
|
7342
|
+
};
|
|
7266
7343
|
hof: {
|
|
7267
7344
|
response: UserHofResponse;
|
|
7268
7345
|
params: "timestamp";
|
|
@@ -7305,7 +7382,7 @@ export interface UserV2 extends BaseSchema {
|
|
|
7305
7382
|
};
|
|
7306
7383
|
log: {
|
|
7307
7384
|
response: UserLogsResponse;
|
|
7308
|
-
params: "log" | "cat" | "target" | "limit" | "to" | "from" | "timestamp";
|
|
7385
|
+
params: "log" | "cat" | "target" | "limit" | "to" | "from" | "timestamp" | "nanostamp";
|
|
7309
7386
|
};
|
|
7310
7387
|
medals: {
|
|
7311
7388
|
response: UserMedalsResponse;
|
|
@@ -7491,6 +7568,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
7491
7568
|
response: FactionCrimeResponse;
|
|
7492
7569
|
params: "crimeId" | "timestamp";
|
|
7493
7570
|
};
|
|
7571
|
+
dirtybombs: {
|
|
7572
|
+
response: FactionWarfareDirtyBombsResponse;
|
|
7573
|
+
params: "timestamp";
|
|
7574
|
+
};
|
|
7494
7575
|
hof: {
|
|
7495
7576
|
response: FactionHofResponse;
|
|
7496
7577
|
params: "timestamp";
|
|
@@ -7571,6 +7652,22 @@ export interface FactionV2 extends BaseSchema {
|
|
|
7571
7652
|
response: FactionUpgradesResponse;
|
|
7572
7653
|
params: "timestamp";
|
|
7573
7654
|
};
|
|
7655
|
+
warfarechains: {
|
|
7656
|
+
response: FactionWarfareChainsResponse;
|
|
7657
|
+
params: "cat" | "limit" | "sort" | "from" | "to" | "timestamp";
|
|
7658
|
+
};
|
|
7659
|
+
warfareraids: {
|
|
7660
|
+
response: FactionWarfareRaidsResponse;
|
|
7661
|
+
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
7662
|
+
};
|
|
7663
|
+
warfareranked: {
|
|
7664
|
+
response: FactionWarfareRankedResponse;
|
|
7665
|
+
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
7666
|
+
};
|
|
7667
|
+
warfareterritory: {
|
|
7668
|
+
response: FactionWarfareTerritoryWarsResponse;
|
|
7669
|
+
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
7670
|
+
};
|
|
7574
7671
|
warfare: {
|
|
7575
7672
|
response: FactionWarfareResponse;
|
|
7576
7673
|
params: "cat" | "limit" | "sort" | "from" | "to" | "timestamp";
|
|
@@ -7807,6 +7904,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
7807
7904
|
response: TornFactionTreeResponse;
|
|
7808
7905
|
params: "timestamp";
|
|
7809
7906
|
};
|
|
7907
|
+
gyms: {
|
|
7908
|
+
response: TornGymsResponse;
|
|
7909
|
+
params: "timestamp";
|
|
7910
|
+
};
|
|
7810
7911
|
honors: {
|
|
7811
7912
|
response: TornHonorsResponse;
|
|
7812
7913
|
params: "limit" | "offset" | "sort" | "timestamp";
|
|
@@ -7859,6 +7960,14 @@ export interface TornV2 extends BaseSchema {
|
|
|
7859
7960
|
response: TornProperties;
|
|
7860
7961
|
params: "timestamp";
|
|
7861
7962
|
};
|
|
7963
|
+
searchforcash: {
|
|
7964
|
+
response: TornSearchForCashResponse;
|
|
7965
|
+
params: "timestamp";
|
|
7966
|
+
};
|
|
7967
|
+
shoplifting: {
|
|
7968
|
+
response: TornShopliftingResponse;
|
|
7969
|
+
params: "timestamp";
|
|
7970
|
+
};
|
|
7862
7971
|
stocks: {
|
|
7863
7972
|
response: TornStocksResponse;
|
|
7864
7973
|
params: "timestamp";
|
package/dist/index.ts
CHANGED
|
@@ -4787,6 +4787,8 @@ export type FactionCrimeId = number;
|
|
|
4787
4787
|
|
|
4788
4788
|
export type TornCrimeId = number;
|
|
4789
4789
|
|
|
4790
|
+
export type TornSubCrimeId = number;
|
|
4791
|
+
|
|
4790
4792
|
export type ChainId = number;
|
|
4791
4793
|
|
|
4792
4794
|
export type AttackId = number;
|
|
@@ -4797,6 +4799,8 @@ export type ForumId = number;
|
|
|
4797
4799
|
|
|
4798
4800
|
export type ForumThreadId = number;
|
|
4799
4801
|
|
|
4802
|
+
export type GymId = number;
|
|
4803
|
+
|
|
4800
4804
|
export type ForumPostId = number;
|
|
4801
4805
|
|
|
4802
4806
|
export interface RequestLinks {
|
|
@@ -4817,6 +4821,12 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
4817
4821
|
total?: number;
|
|
4818
4822
|
}
|
|
4819
4823
|
|
|
4824
|
+
export interface RequestMetadataWithLinksAndNanostamp {
|
|
4825
|
+
links: RequestLinks;
|
|
4826
|
+
/** Use to bypass system limitation when 100 or more logs were inserted within the same second. */
|
|
4827
|
+
nanostamp?: string;
|
|
4828
|
+
}
|
|
4829
|
+
|
|
4820
4830
|
/**
|
|
4821
4831
|
* This represents the type of the activity. Values range from 1 to 8 where:
|
|
4822
4832
|
* * 1 = 'X posted on a thread',
|
|
@@ -4829,6 +4839,9 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
4829
4839
|
*/
|
|
4830
4840
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
4831
4841
|
|
|
4842
|
+
export type GymClassEnum =
|
|
4843
|
+
"Basic" | "Lightweight" | "Middleweight" | "Heavyweight" | "Specialist";
|
|
4844
|
+
|
|
4832
4845
|
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
4833
4846
|
|
|
4834
4847
|
export type CompanyStaffRoomSizeEnum =
|
|
@@ -4868,6 +4881,15 @@ export type UserSearchParameter = string;
|
|
|
4868
4881
|
|
|
4869
4882
|
export type Parameters = string;
|
|
4870
4883
|
|
|
4884
|
+
export type TornShopliftingStatusTitleEnum =
|
|
4885
|
+
| "One camera"
|
|
4886
|
+
| "Two cameras"
|
|
4887
|
+
| "Three cameras"
|
|
4888
|
+
| "Four cameras"
|
|
4889
|
+
| "Checkpoint"
|
|
4890
|
+
| "One guard"
|
|
4891
|
+
| "Two guards";
|
|
4892
|
+
|
|
4871
4893
|
export type ReviveSetting =
|
|
4872
4894
|
"Everyone" | "Friends & faction" | "No one" | "Unknown";
|
|
4873
4895
|
|
|
@@ -5523,6 +5545,13 @@ export type ApiError =
|
|
|
5523
5545
|
| ErrorCategorySelectionUnavailableForInteractionLogs
|
|
5524
5546
|
| ErrorFileDoesNotExist;
|
|
5525
5547
|
|
|
5548
|
+
export interface UserGymResponse {
|
|
5549
|
+
gym: {
|
|
5550
|
+
id: GymId;
|
|
5551
|
+
name: string;
|
|
5552
|
+
};
|
|
5553
|
+
}
|
|
5554
|
+
|
|
5526
5555
|
export interface UserSearch {
|
|
5527
5556
|
id: UserId;
|
|
5528
5557
|
name: string;
|
|
@@ -5740,15 +5769,17 @@ export interface UserOrganizedCrimesResponse {
|
|
|
5740
5769
|
organizedcrimes: FactionCrime[];
|
|
5741
5770
|
}
|
|
5742
5771
|
|
|
5772
|
+
export interface UserEquipmentAmmo {
|
|
5773
|
+
id: AmmoId;
|
|
5774
|
+
name: string;
|
|
5775
|
+
quantity: number;
|
|
5776
|
+
type: TornItemAmmoTypeEnum;
|
|
5777
|
+
}
|
|
5778
|
+
|
|
5743
5779
|
export type UserEquipment = TornItemDetails & {
|
|
5744
5780
|
slot: number;
|
|
5745
5781
|
mods: UserEquipmentItemMod[];
|
|
5746
|
-
ammo:
|
|
5747
|
-
id: AmmoId;
|
|
5748
|
-
name: string;
|
|
5749
|
-
quantity: number;
|
|
5750
|
-
type: TornItemAmmoTypeEnum;
|
|
5751
|
-
};
|
|
5782
|
+
ammo: UserEquipmentAmmo | null;
|
|
5752
5783
|
};
|
|
5753
5784
|
|
|
5754
5785
|
export interface UserEquipmentItemMod {
|
|
@@ -6053,6 +6084,7 @@ export interface UserProfileResponse {
|
|
|
6053
6084
|
signed_up: number;
|
|
6054
6085
|
faction_id: FactionId | null;
|
|
6055
6086
|
honor_id: HonorId;
|
|
6087
|
+
revive_setting: ReviveSetting;
|
|
6056
6088
|
property: {
|
|
6057
6089
|
id: PropertyId;
|
|
6058
6090
|
name: string;
|
|
@@ -6207,7 +6239,7 @@ export interface UserLog {
|
|
|
6207
6239
|
|
|
6208
6240
|
export interface UserLogsResponse {
|
|
6209
6241
|
log: UserLog[];
|
|
6210
|
-
_metadata:
|
|
6242
|
+
_metadata: RequestMetadataWithLinksAndNanostamp;
|
|
6211
6243
|
}
|
|
6212
6244
|
|
|
6213
6245
|
export interface BasicUser {
|
|
@@ -6409,7 +6441,7 @@ export interface UserCrimeDetailsScamming {
|
|
|
6409
6441
|
}
|
|
6410
6442
|
|
|
6411
6443
|
export interface UserSubcrime {
|
|
6412
|
-
id:
|
|
6444
|
+
id: TornSubCrimeId;
|
|
6413
6445
|
total: number;
|
|
6414
6446
|
success: number;
|
|
6415
6447
|
fail: number;
|
|
@@ -6490,7 +6522,7 @@ export interface UserRacesResponse {
|
|
|
6490
6522
|
|
|
6491
6523
|
export interface UserRaceCarDetails extends RaceCar {
|
|
6492
6524
|
id: RaceCarId;
|
|
6493
|
-
|
|
6525
|
+
car_name?: string | null;
|
|
6494
6526
|
worth: number;
|
|
6495
6527
|
points_spent: number;
|
|
6496
6528
|
races_entered: number;
|
|
@@ -6649,7 +6681,7 @@ export interface UserListResponse {
|
|
|
6649
6681
|
_metadata: RequestMetadataWithLinks;
|
|
6650
6682
|
}
|
|
6651
6683
|
|
|
6652
|
-
/** The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','
|
|
6684
|
+
/** The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','networth'. */
|
|
6653
6685
|
export type UserSelectionName = string;
|
|
6654
6686
|
|
|
6655
6687
|
export interface UserLookupResponse {
|
|
@@ -8354,6 +8386,30 @@ export interface FactionRankedWarResponse {
|
|
|
8354
8386
|
_metadata: RequestMetadataWithLinks;
|
|
8355
8387
|
}
|
|
8356
8388
|
|
|
8389
|
+
export interface FactionWarfareRankedResponse {
|
|
8390
|
+
warfareranked: FactionRankedWarDetails[];
|
|
8391
|
+
_metadata: RequestMetadataWithLinks;
|
|
8392
|
+
}
|
|
8393
|
+
|
|
8394
|
+
export interface FactionWarfareRaidsResponse {
|
|
8395
|
+
warfareraids: FactionRaidWarfare[];
|
|
8396
|
+
_metadata: RequestMetadataWithLinks;
|
|
8397
|
+
}
|
|
8398
|
+
|
|
8399
|
+
export interface FactionWarfareTerritoryWarsResponse {
|
|
8400
|
+
warfareterritory: FactionTerritoryWarfare[];
|
|
8401
|
+
_metadata: RequestMetadataWithLinks;
|
|
8402
|
+
}
|
|
8403
|
+
|
|
8404
|
+
export interface FactionWarfareChainsResponse {
|
|
8405
|
+
warfarechains: FactionChainWarfare[];
|
|
8406
|
+
_metadata: RequestMetadataWithLinks;
|
|
8407
|
+
}
|
|
8408
|
+
|
|
8409
|
+
export interface FactionWarfareDirtyBombsResponse {
|
|
8410
|
+
dirtybombs: FactionWarfareDirtyBomb[];
|
|
8411
|
+
}
|
|
8412
|
+
|
|
8357
8413
|
export interface FactionWarfareResponse {
|
|
8358
8414
|
warfare:
|
|
8359
8415
|
| FactionRankedWarDetails[]
|
|
@@ -9119,6 +9175,51 @@ export interface PropertyLookupResponse {
|
|
|
9119
9175
|
selections: PropertySelectionName[];
|
|
9120
9176
|
}
|
|
9121
9177
|
|
|
9178
|
+
export interface TornGymModifiers {
|
|
9179
|
+
strength: number;
|
|
9180
|
+
speed: number;
|
|
9181
|
+
defense: number;
|
|
9182
|
+
dexterity: number;
|
|
9183
|
+
}
|
|
9184
|
+
|
|
9185
|
+
export interface TornGym {
|
|
9186
|
+
id: GymId;
|
|
9187
|
+
name: string;
|
|
9188
|
+
class: GymClassEnum;
|
|
9189
|
+
energy_cost: number;
|
|
9190
|
+
cost: number;
|
|
9191
|
+
modifiers: TornGymModifiers;
|
|
9192
|
+
note: string | null;
|
|
9193
|
+
}
|
|
9194
|
+
|
|
9195
|
+
export interface TornGymsResponse {
|
|
9196
|
+
gyms: TornGym[];
|
|
9197
|
+
}
|
|
9198
|
+
|
|
9199
|
+
export interface TornSearchForCash {
|
|
9200
|
+
id: TornSubCrimeId;
|
|
9201
|
+
title: string;
|
|
9202
|
+
percentage: number;
|
|
9203
|
+
}
|
|
9204
|
+
|
|
9205
|
+
export interface TornSearchForCashResponse {
|
|
9206
|
+
searchforcash: TornSearchForCash[];
|
|
9207
|
+
}
|
|
9208
|
+
|
|
9209
|
+
export interface TornShopliftingSecurityStatus {
|
|
9210
|
+
title: TornShopliftingStatusTitleEnum;
|
|
9211
|
+
disabled: boolean;
|
|
9212
|
+
}
|
|
9213
|
+
|
|
9214
|
+
export interface TornShoplifting {
|
|
9215
|
+
id: TornSubCrimeId;
|
|
9216
|
+
status: TornShopliftingSecurityStatus[];
|
|
9217
|
+
}
|
|
9218
|
+
|
|
9219
|
+
export interface TornShopliftingResponse {
|
|
9220
|
+
shoplifting: TornShoplifting[];
|
|
9221
|
+
}
|
|
9222
|
+
|
|
9122
9223
|
export interface TornCompaniesResponse {
|
|
9123
9224
|
companies: TornCompany[];
|
|
9124
9225
|
}
|
|
@@ -9443,7 +9544,7 @@ export interface TornSubcrimesResponse {
|
|
|
9443
9544
|
}
|
|
9444
9545
|
|
|
9445
9546
|
export interface TornSubcrime {
|
|
9446
|
-
id:
|
|
9547
|
+
id: TornSubCrimeId;
|
|
9447
9548
|
name: string;
|
|
9448
9549
|
nerve_cost: number;
|
|
9449
9550
|
}
|
|
@@ -9725,7 +9826,7 @@ export interface TornFactionTreeResponse {
|
|
|
9725
9826
|
}
|
|
9726
9827
|
|
|
9727
9828
|
/**
|
|
9728
|
-
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','
|
|
9829
|
+
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','stats'.
|
|
9729
9830
|
* * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.
|
|
9730
9831
|
*/
|
|
9731
9832
|
export type TornSelectionName = string;
|
|
@@ -13162,6 +13263,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
13162
13263
|
response: UserForumThreadsResponse;
|
|
13163
13264
|
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
13164
13265
|
};
|
|
13266
|
+
gym: {
|
|
13267
|
+
response: UserGymResponse;
|
|
13268
|
+
params: "timestamp";
|
|
13269
|
+
};
|
|
13165
13270
|
hof: {
|
|
13166
13271
|
response: UserHofResponse;
|
|
13167
13272
|
params: "timestamp";
|
|
@@ -13212,7 +13317,8 @@ export interface UserV2 extends BaseSchema {
|
|
|
13212
13317
|
| "limit"
|
|
13213
13318
|
| "to"
|
|
13214
13319
|
| "from"
|
|
13215
|
-
| "timestamp"
|
|
13320
|
+
| "timestamp"
|
|
13321
|
+
| "nanostamp";
|
|
13216
13322
|
};
|
|
13217
13323
|
medals: {
|
|
13218
13324
|
response: UserMedalsResponse;
|
|
@@ -13421,6 +13527,10 @@ export interface FactionV2 extends BaseSchema {
|
|
|
13421
13527
|
response: FactionCrimeResponse;
|
|
13422
13528
|
params: "crimeId" | "timestamp";
|
|
13423
13529
|
};
|
|
13530
|
+
dirtybombs: {
|
|
13531
|
+
response: FactionWarfareDirtyBombsResponse;
|
|
13532
|
+
params: "timestamp";
|
|
13533
|
+
};
|
|
13424
13534
|
hof: {
|
|
13425
13535
|
response: FactionHofResponse;
|
|
13426
13536
|
params: "timestamp";
|
|
@@ -13523,6 +13633,22 @@ export interface FactionV2 extends BaseSchema {
|
|
|
13523
13633
|
response: FactionUpgradesResponse;
|
|
13524
13634
|
params: "timestamp";
|
|
13525
13635
|
};
|
|
13636
|
+
warfarechains: {
|
|
13637
|
+
response: FactionWarfareChainsResponse;
|
|
13638
|
+
params: "cat" | "limit" | "sort" | "from" | "to" | "timestamp";
|
|
13639
|
+
};
|
|
13640
|
+
warfareraids: {
|
|
13641
|
+
response: FactionWarfareRaidsResponse;
|
|
13642
|
+
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
13643
|
+
};
|
|
13644
|
+
warfareranked: {
|
|
13645
|
+
response: FactionWarfareRankedResponse;
|
|
13646
|
+
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
13647
|
+
};
|
|
13648
|
+
warfareterritory: {
|
|
13649
|
+
response: FactionWarfareTerritoryWarsResponse;
|
|
13650
|
+
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
13651
|
+
};
|
|
13526
13652
|
warfare: {
|
|
13527
13653
|
response: FactionWarfareResponse;
|
|
13528
13654
|
params: "cat" | "limit" | "sort" | "from" | "to" | "timestamp";
|
|
@@ -13775,6 +13901,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
13775
13901
|
response: TornFactionTreeResponse;
|
|
13776
13902
|
params: "timestamp";
|
|
13777
13903
|
};
|
|
13904
|
+
gyms: {
|
|
13905
|
+
response: TornGymsResponse;
|
|
13906
|
+
params: "timestamp";
|
|
13907
|
+
};
|
|
13778
13908
|
honors: {
|
|
13779
13909
|
response: TornHonorsResponse;
|
|
13780
13910
|
params: "limit" | "offset" | "sort" | "timestamp";
|
|
@@ -13827,6 +13957,14 @@ export interface TornV2 extends BaseSchema {
|
|
|
13827
13957
|
response: TornProperties;
|
|
13828
13958
|
params: "timestamp";
|
|
13829
13959
|
};
|
|
13960
|
+
searchforcash: {
|
|
13961
|
+
response: TornSearchForCashResponse;
|
|
13962
|
+
params: "timestamp";
|
|
13963
|
+
};
|
|
13964
|
+
shoplifting: {
|
|
13965
|
+
response: TornShopliftingResponse;
|
|
13966
|
+
params: "timestamp";
|
|
13967
|
+
};
|
|
13830
13968
|
stocks: {
|
|
13831
13969
|
response: TornStocksResponse;
|
|
13832
13970
|
params: "timestamp";
|