tornapi-typescript 3.0.11 → 3.0.12
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 +133 -2
- package/dist/index.ts +252 -2
- package/dist/openapi.json +1273 -161
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
* - {@link https://github.com/grantila/typeconv}
|
|
6
6
|
*/
|
|
7
7
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
8
|
+
export type JobTypeEnum = "Army" | "Casino" | "Education" | "Grocer" | "Law" | "Medical";
|
|
9
|
+
export type UserMaritalStatusEnum = "Engaged" | "Newlywed" | "Married";
|
|
10
|
+
export type UserRoleEnum = "Admin" | "Officer" | "Moderator" | "Helper" | "Tester" | "NPC" | "Committee" | "Reporter" | "Wiki Contributor" | "Wiki Editor" | "Civilian";
|
|
11
|
+
export type UserTitleEnum = "Alcoholic" | "Sharpshooter" | "Accomplice" | "Loser" | "Silent Killer" | "Killer" | "Merchant" | "Medalist" | "Tycoon" | "Damage Dealer" | "Slayer" | "Hired Gun" | "Egotist" | "Outcast" | "Punchbag" | "Tank" | "Antagonist" | "Druggy" | "Scavenger" | "Boxer" | "Importer" | "Looter" | "Samaritan" | "Felon" | "Socialite" | "Mercenary" | "Investor" | "Thief" | "One Hit Killer" | "Mobster" | "Addict" | "Bonds Agent" | "Buster" | "Hoarder" | "Racer" | "Soldier" | "Avenger" | "Healer" | "Booster" | "Intimidator" | "Trader" | "Jobsworth" | "Tourist" | "Nudist" | "Sage" | "Coward";
|
|
12
|
+
export type UserRankEnum = "Absolute beginner" | "Beginner" | "Inexperienced" | "Rookie" | "Novice" | "Below average" | "Average" | "Reasonable" | "Above average" | "Competent" | "Highly competent" | "Veteran" | "Distinguished" | "Highly distinguished" | "Professional" | "Star" | "Master" | "Outstanding" | "Celebrity" | "Supreme" | "Idolized" | "Champion" | "Heroic" | "Legendary" | "Elite" | "Invincible";
|
|
13
|
+
export type UserRpsStatus = "scissors" | "rock" | "paper";
|
|
8
14
|
export type UserSkillSlugEnum = "hunting" | "racing" | "reviving" | "search_for_cash" | "bootlegging" | "graffiti" | "shoplifting" | "pickpocketing" | "card_skimming" | "burglary" | "hustling" | "disposal" | "cracking" | "forgery" | "scamming" | "arson";
|
|
9
15
|
export type CountryEnum = "Mexico" | "Hawaii" | "South Africa" | "Japan" | "China" | "Argentina" | "Switzerland" | "Canada" | "United Kingdom" | "UAE" | "Cayman Islands";
|
|
10
16
|
export type ReportTypeEnum = "mostwanted" | "money" | "stats" | "references" | "friendorfoe" | "companyfinancials" | "truelevel" | "stockanalysis" | "anonymousbounties" | "investment";
|
|
@@ -62,6 +68,7 @@ export type TerritoryWarId = number;
|
|
|
62
68
|
export type RaidWarId = number;
|
|
63
69
|
export type ItemUid = number;
|
|
64
70
|
export type UserId = number;
|
|
71
|
+
export type UserIconId = number;
|
|
65
72
|
export type ReviveId = number;
|
|
66
73
|
export type LogId = number;
|
|
67
74
|
export type UserLogId = string;
|
|
@@ -338,6 +345,108 @@ export interface ReportsResponse {
|
|
|
338
345
|
_metadata: RequestMetadataWithLinks;
|
|
339
346
|
}
|
|
340
347
|
export type SelectionCategoryEnum = ReportTypeEnum | UserListEnum | PersonalStatsCategoryEnum | RacingRaceTypeEnum;
|
|
348
|
+
export interface UserIconPublic {
|
|
349
|
+
id: UserIconId;
|
|
350
|
+
title: string;
|
|
351
|
+
description: string;
|
|
352
|
+
}
|
|
353
|
+
export interface UserIconPrivate extends UserIconPublic {
|
|
354
|
+
until: number | null;
|
|
355
|
+
}
|
|
356
|
+
export interface UserIconsResponse {
|
|
357
|
+
icons: UserIconPrivate[] | UserIconPublic[];
|
|
358
|
+
}
|
|
359
|
+
export interface UserCompetitionHalloween {
|
|
360
|
+
name: "Halloween";
|
|
361
|
+
treats_collected: number;
|
|
362
|
+
basket: {
|
|
363
|
+
id: ItemId;
|
|
364
|
+
name: string;
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
export interface UserCompetitionEasterEggs {
|
|
368
|
+
name: "Easter Egg Hunt";
|
|
369
|
+
score: number;
|
|
370
|
+
total: number;
|
|
371
|
+
}
|
|
372
|
+
export interface UserCompetitionRps {
|
|
373
|
+
name: "Rock, Paper, Scissors";
|
|
374
|
+
status: UserRpsStatus;
|
|
375
|
+
hp: {
|
|
376
|
+
current: number;
|
|
377
|
+
maximum: number;
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
export interface UserCompetitionResponse {
|
|
381
|
+
competition: UserCompetitionHalloween | UserCompetitionEasterEggs | UserCompetitionRps;
|
|
382
|
+
}
|
|
383
|
+
export interface UserFaction {
|
|
384
|
+
id: FactionId;
|
|
385
|
+
name: string;
|
|
386
|
+
tag: string;
|
|
387
|
+
tag_image: string;
|
|
388
|
+
position: string;
|
|
389
|
+
days_in_faction: number;
|
|
390
|
+
}
|
|
391
|
+
export interface UserFactionResponse {
|
|
392
|
+
faction: UserFaction | null;
|
|
393
|
+
}
|
|
394
|
+
export interface UserJob {
|
|
395
|
+
type: "job";
|
|
396
|
+
name: JobTypeEnum;
|
|
397
|
+
position: JobPositionArmyEnum | JobPositionGrocerEnum | JobPositionCasinoEnum | JobPositionMedicalEnum | JobPositionLawEnum | JobPositionEducationEnum;
|
|
398
|
+
}
|
|
399
|
+
export interface UserCompany {
|
|
400
|
+
type: "company";
|
|
401
|
+
id: CompanyId;
|
|
402
|
+
type_id: CompanyTypeId;
|
|
403
|
+
name: string;
|
|
404
|
+
position: string;
|
|
405
|
+
days_in_company: number;
|
|
406
|
+
}
|
|
407
|
+
export interface UserJobResponse {
|
|
408
|
+
job: UserJob | UserCompany | null;
|
|
409
|
+
}
|
|
410
|
+
export interface ProfileSpouse {
|
|
411
|
+
id: UserId;
|
|
412
|
+
name: string;
|
|
413
|
+
status: UserMaritalStatusEnum;
|
|
414
|
+
days_married: number;
|
|
415
|
+
}
|
|
416
|
+
export interface UserProfileResponse {
|
|
417
|
+
profile: {
|
|
418
|
+
id: UserId;
|
|
419
|
+
name: string;
|
|
420
|
+
level: number;
|
|
421
|
+
rank: UserRankEnum;
|
|
422
|
+
title: UserTitleEnum;
|
|
423
|
+
/** Age in days. */
|
|
424
|
+
age: number;
|
|
425
|
+
signed_up: number;
|
|
426
|
+
faction_id: FactionId | null;
|
|
427
|
+
honor_id: HonorId;
|
|
428
|
+
property: {
|
|
429
|
+
id: PropertyId;
|
|
430
|
+
name: string;
|
|
431
|
+
};
|
|
432
|
+
image: string | null;
|
|
433
|
+
gender: UserGenderEnum;
|
|
434
|
+
revivable: boolean;
|
|
435
|
+
role: UserRoleEnum;
|
|
436
|
+
status: UserStatus;
|
|
437
|
+
spouse: ProfileSpouse | null;
|
|
438
|
+
awards: number;
|
|
439
|
+
friends: number;
|
|
440
|
+
enemies: number;
|
|
441
|
+
forum_posts: number;
|
|
442
|
+
karma: number;
|
|
443
|
+
last_action: UserLastAction;
|
|
444
|
+
life: {
|
|
445
|
+
current: number;
|
|
446
|
+
maximum: number;
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
}
|
|
341
450
|
export interface UserMoneyResponse {
|
|
342
451
|
money: {
|
|
343
452
|
points: number;
|
|
@@ -797,7 +906,7 @@ export interface UserListResponse {
|
|
|
797
906
|
list: UserList[];
|
|
798
907
|
_metadata: RequestMetadataWithLinks;
|
|
799
908
|
}
|
|
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','
|
|
909
|
+
/** 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','inventory','messages','missions','networth','newevents','newmessages','notifications','perks','refills','stocks','travel','weaponexp'. */
|
|
801
910
|
export type UserSelectionName = string;
|
|
802
911
|
export interface UserLookupResponse {
|
|
803
912
|
selections: UserSelectionName[];
|
|
@@ -1703,6 +1812,8 @@ export interface UserStatus {
|
|
|
1703
1812
|
details: string | null;
|
|
1704
1813
|
state: string;
|
|
1705
1814
|
until: number | null;
|
|
1815
|
+
/** This field is populated only if the state is 'Traveling'. */
|
|
1816
|
+
travel_type?: string;
|
|
1706
1817
|
}
|
|
1707
1818
|
export interface FactionMembersResponse {
|
|
1708
1819
|
members: FactionMember[];
|
|
@@ -2667,7 +2778,7 @@ export interface TornHofBasic {
|
|
|
2667
2778
|
faction_id: FactionId;
|
|
2668
2779
|
level: number;
|
|
2669
2780
|
last_action: number;
|
|
2670
|
-
rank_name:
|
|
2781
|
+
rank_name: UserRankEnum;
|
|
2671
2782
|
rank_number: number;
|
|
2672
2783
|
position: number;
|
|
2673
2784
|
signed_up: number;
|
|
@@ -6152,6 +6263,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6152
6263
|
response: UserCalendarResponse;
|
|
6153
6264
|
params: "timestamp";
|
|
6154
6265
|
};
|
|
6266
|
+
competition: {
|
|
6267
|
+
response: UserCompetitionResponse;
|
|
6268
|
+
params: "timestamp";
|
|
6269
|
+
};
|
|
6155
6270
|
crimes: {
|
|
6156
6271
|
response: UserCrimesResponse;
|
|
6157
6272
|
params: "crimeId" | "timestamp";
|
|
@@ -6164,6 +6279,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6164
6279
|
response: UserEnlistedCarsResponse;
|
|
6165
6280
|
params: "timestamp";
|
|
6166
6281
|
};
|
|
6282
|
+
faction: {
|
|
6283
|
+
response: UserFactionResponse;
|
|
6284
|
+
params: "timestamp";
|
|
6285
|
+
};
|
|
6167
6286
|
factionbalance: {
|
|
6168
6287
|
response: UserFactionBalanceResponse;
|
|
6169
6288
|
params: "timestamp";
|
|
@@ -6196,10 +6315,18 @@ export interface UserV2 extends BaseSchema {
|
|
|
6196
6315
|
response: UserHonorsResponse;
|
|
6197
6316
|
params: "timestamp";
|
|
6198
6317
|
};
|
|
6318
|
+
icons: {
|
|
6319
|
+
response: UserIconsResponse;
|
|
6320
|
+
params: "timestamp";
|
|
6321
|
+
};
|
|
6199
6322
|
itemmarket: {
|
|
6200
6323
|
response: UserItemMarketResponse;
|
|
6201
6324
|
params: "offset" | "timestamp";
|
|
6202
6325
|
};
|
|
6326
|
+
job: {
|
|
6327
|
+
response: UserJobResponse;
|
|
6328
|
+
params: "timestamp";
|
|
6329
|
+
};
|
|
6203
6330
|
jobpoints: {
|
|
6204
6331
|
response: UserJobPointsResponse;
|
|
6205
6332
|
params: "timestamp";
|
|
@@ -6236,6 +6363,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6236
6363
|
response: UserPersonalStatsResponse;
|
|
6237
6364
|
params: "cat" | "stat" | "timestamp";
|
|
6238
6365
|
};
|
|
6366
|
+
profile: {
|
|
6367
|
+
response: UserProfileResponse;
|
|
6368
|
+
params: "striptags" | "timestamp";
|
|
6369
|
+
};
|
|
6239
6370
|
properties: {
|
|
6240
6371
|
response: UserPropertiesResponse;
|
|
6241
6372
|
params: "filters" | "offset" | "limit" | "timestamp";
|
package/dist/index.ts
CHANGED
|
@@ -9,6 +9,107 @@
|
|
|
9
9
|
|
|
10
10
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
11
11
|
|
|
12
|
+
export type JobTypeEnum =
|
|
13
|
+
| "Army"
|
|
14
|
+
| "Casino"
|
|
15
|
+
| "Education"
|
|
16
|
+
| "Grocer"
|
|
17
|
+
| "Law"
|
|
18
|
+
| "Medical";
|
|
19
|
+
|
|
20
|
+
export type UserMaritalStatusEnum = "Engaged" | "Newlywed" | "Married";
|
|
21
|
+
|
|
22
|
+
export type UserRoleEnum =
|
|
23
|
+
| "Admin"
|
|
24
|
+
| "Officer"
|
|
25
|
+
| "Moderator"
|
|
26
|
+
| "Helper"
|
|
27
|
+
| "Tester"
|
|
28
|
+
| "NPC"
|
|
29
|
+
| "Committee"
|
|
30
|
+
| "Reporter"
|
|
31
|
+
| "Wiki Contributor"
|
|
32
|
+
| "Wiki Editor"
|
|
33
|
+
| "Civilian";
|
|
34
|
+
|
|
35
|
+
export type UserTitleEnum =
|
|
36
|
+
| "Alcoholic"
|
|
37
|
+
| "Sharpshooter"
|
|
38
|
+
| "Accomplice"
|
|
39
|
+
| "Loser"
|
|
40
|
+
| "Silent Killer"
|
|
41
|
+
| "Killer"
|
|
42
|
+
| "Merchant"
|
|
43
|
+
| "Medalist"
|
|
44
|
+
| "Tycoon"
|
|
45
|
+
| "Damage Dealer"
|
|
46
|
+
| "Slayer"
|
|
47
|
+
| "Hired Gun"
|
|
48
|
+
| "Egotist"
|
|
49
|
+
| "Outcast"
|
|
50
|
+
| "Punchbag"
|
|
51
|
+
| "Tank"
|
|
52
|
+
| "Antagonist"
|
|
53
|
+
| "Druggy"
|
|
54
|
+
| "Scavenger"
|
|
55
|
+
| "Boxer"
|
|
56
|
+
| "Importer"
|
|
57
|
+
| "Looter"
|
|
58
|
+
| "Samaritan"
|
|
59
|
+
| "Felon"
|
|
60
|
+
| "Socialite"
|
|
61
|
+
| "Mercenary"
|
|
62
|
+
| "Investor"
|
|
63
|
+
| "Thief"
|
|
64
|
+
| "One Hit Killer"
|
|
65
|
+
| "Mobster"
|
|
66
|
+
| "Addict"
|
|
67
|
+
| "Bonds Agent"
|
|
68
|
+
| "Buster"
|
|
69
|
+
| "Hoarder"
|
|
70
|
+
| "Racer"
|
|
71
|
+
| "Soldier"
|
|
72
|
+
| "Avenger"
|
|
73
|
+
| "Healer"
|
|
74
|
+
| "Booster"
|
|
75
|
+
| "Intimidator"
|
|
76
|
+
| "Trader"
|
|
77
|
+
| "Jobsworth"
|
|
78
|
+
| "Tourist"
|
|
79
|
+
| "Nudist"
|
|
80
|
+
| "Sage"
|
|
81
|
+
| "Coward";
|
|
82
|
+
|
|
83
|
+
export type UserRankEnum =
|
|
84
|
+
| "Absolute beginner"
|
|
85
|
+
| "Beginner"
|
|
86
|
+
| "Inexperienced"
|
|
87
|
+
| "Rookie"
|
|
88
|
+
| "Novice"
|
|
89
|
+
| "Below average"
|
|
90
|
+
| "Average"
|
|
91
|
+
| "Reasonable"
|
|
92
|
+
| "Above average"
|
|
93
|
+
| "Competent"
|
|
94
|
+
| "Highly competent"
|
|
95
|
+
| "Veteran"
|
|
96
|
+
| "Distinguished"
|
|
97
|
+
| "Highly distinguished"
|
|
98
|
+
| "Professional"
|
|
99
|
+
| "Star"
|
|
100
|
+
| "Master"
|
|
101
|
+
| "Outstanding"
|
|
102
|
+
| "Celebrity"
|
|
103
|
+
| "Supreme"
|
|
104
|
+
| "Idolized"
|
|
105
|
+
| "Champion"
|
|
106
|
+
| "Heroic"
|
|
107
|
+
| "Legendary"
|
|
108
|
+
| "Elite"
|
|
109
|
+
| "Invincible";
|
|
110
|
+
|
|
111
|
+
export type UserRpsStatus = "scissors" | "rock" | "paper";
|
|
112
|
+
|
|
12
113
|
export type UserSkillSlugEnum =
|
|
13
114
|
| "hunting"
|
|
14
115
|
| "racing"
|
|
@@ -4614,6 +4715,8 @@ export type ItemUid = number;
|
|
|
4614
4715
|
|
|
4615
4716
|
export type UserId = number;
|
|
4616
4717
|
|
|
4718
|
+
export type UserIconId = number;
|
|
4719
|
+
|
|
4617
4720
|
export type ReviveId = number;
|
|
4618
4721
|
|
|
4619
4722
|
export type LogId = number;
|
|
@@ -5152,6 +5255,131 @@ export type SelectionCategoryEnum =
|
|
|
5152
5255
|
| PersonalStatsCategoryEnum
|
|
5153
5256
|
| RacingRaceTypeEnum;
|
|
5154
5257
|
|
|
5258
|
+
export interface UserIconPublic {
|
|
5259
|
+
id: UserIconId;
|
|
5260
|
+
title: string;
|
|
5261
|
+
description: string;
|
|
5262
|
+
}
|
|
5263
|
+
|
|
5264
|
+
export interface UserIconPrivate extends UserIconPublic {
|
|
5265
|
+
until: number | null;
|
|
5266
|
+
}
|
|
5267
|
+
|
|
5268
|
+
export interface UserIconsResponse {
|
|
5269
|
+
icons: UserIconPrivate[] | UserIconPublic[];
|
|
5270
|
+
}
|
|
5271
|
+
|
|
5272
|
+
export interface UserCompetitionHalloween {
|
|
5273
|
+
name: "Halloween";
|
|
5274
|
+
treats_collected: number;
|
|
5275
|
+
basket: {
|
|
5276
|
+
id: ItemId;
|
|
5277
|
+
name: string;
|
|
5278
|
+
};
|
|
5279
|
+
}
|
|
5280
|
+
|
|
5281
|
+
export interface UserCompetitionEasterEggs {
|
|
5282
|
+
name: "Easter Egg Hunt";
|
|
5283
|
+
score: number;
|
|
5284
|
+
total: number;
|
|
5285
|
+
}
|
|
5286
|
+
|
|
5287
|
+
export interface UserCompetitionRps {
|
|
5288
|
+
name: "Rock, Paper, Scissors";
|
|
5289
|
+
status: UserRpsStatus;
|
|
5290
|
+
hp: {
|
|
5291
|
+
current: number;
|
|
5292
|
+
maximum: number;
|
|
5293
|
+
};
|
|
5294
|
+
}
|
|
5295
|
+
|
|
5296
|
+
export interface UserCompetitionResponse {
|
|
5297
|
+
competition:
|
|
5298
|
+
| UserCompetitionHalloween
|
|
5299
|
+
| UserCompetitionEasterEggs
|
|
5300
|
+
| UserCompetitionRps;
|
|
5301
|
+
}
|
|
5302
|
+
|
|
5303
|
+
export interface UserFaction {
|
|
5304
|
+
id: FactionId;
|
|
5305
|
+
name: string;
|
|
5306
|
+
tag: string;
|
|
5307
|
+
tag_image: string;
|
|
5308
|
+
position: string;
|
|
5309
|
+
days_in_faction: number;
|
|
5310
|
+
}
|
|
5311
|
+
|
|
5312
|
+
export interface UserFactionResponse {
|
|
5313
|
+
faction: UserFaction | null;
|
|
5314
|
+
}
|
|
5315
|
+
|
|
5316
|
+
export interface UserJob {
|
|
5317
|
+
type: "job";
|
|
5318
|
+
name: JobTypeEnum;
|
|
5319
|
+
position:
|
|
5320
|
+
| JobPositionArmyEnum
|
|
5321
|
+
| JobPositionGrocerEnum
|
|
5322
|
+
| JobPositionCasinoEnum
|
|
5323
|
+
| JobPositionMedicalEnum
|
|
5324
|
+
| JobPositionLawEnum
|
|
5325
|
+
| JobPositionEducationEnum;
|
|
5326
|
+
}
|
|
5327
|
+
|
|
5328
|
+
export interface UserCompany {
|
|
5329
|
+
type: "company";
|
|
5330
|
+
id: CompanyId;
|
|
5331
|
+
type_id: CompanyTypeId;
|
|
5332
|
+
name: string;
|
|
5333
|
+
position: string;
|
|
5334
|
+
days_in_company: number;
|
|
5335
|
+
}
|
|
5336
|
+
|
|
5337
|
+
export interface UserJobResponse {
|
|
5338
|
+
job: UserJob | UserCompany | null;
|
|
5339
|
+
}
|
|
5340
|
+
|
|
5341
|
+
export interface ProfileSpouse {
|
|
5342
|
+
id: UserId;
|
|
5343
|
+
name: string;
|
|
5344
|
+
status: UserMaritalStatusEnum;
|
|
5345
|
+
days_married: number;
|
|
5346
|
+
}
|
|
5347
|
+
|
|
5348
|
+
export interface UserProfileResponse {
|
|
5349
|
+
profile: {
|
|
5350
|
+
id: UserId;
|
|
5351
|
+
name: string;
|
|
5352
|
+
level: number;
|
|
5353
|
+
rank: UserRankEnum;
|
|
5354
|
+
title: UserTitleEnum;
|
|
5355
|
+
/** Age in days. */
|
|
5356
|
+
age: number;
|
|
5357
|
+
signed_up: number;
|
|
5358
|
+
faction_id: FactionId | null;
|
|
5359
|
+
honor_id: HonorId;
|
|
5360
|
+
property: {
|
|
5361
|
+
id: PropertyId;
|
|
5362
|
+
name: string;
|
|
5363
|
+
};
|
|
5364
|
+
image: string | null;
|
|
5365
|
+
gender: UserGenderEnum;
|
|
5366
|
+
revivable: boolean;
|
|
5367
|
+
role: UserRoleEnum;
|
|
5368
|
+
status: UserStatus;
|
|
5369
|
+
spouse: ProfileSpouse | null;
|
|
5370
|
+
awards: number;
|
|
5371
|
+
friends: number;
|
|
5372
|
+
enemies: number;
|
|
5373
|
+
forum_posts: number;
|
|
5374
|
+
karma: number;
|
|
5375
|
+
last_action: UserLastAction;
|
|
5376
|
+
life: {
|
|
5377
|
+
current: number;
|
|
5378
|
+
maximum: number;
|
|
5379
|
+
};
|
|
5380
|
+
};
|
|
5381
|
+
}
|
|
5382
|
+
|
|
5155
5383
|
export interface UserMoneyResponse {
|
|
5156
5384
|
money: {
|
|
5157
5385
|
points: number;
|
|
@@ -5700,7 +5928,7 @@ export interface UserListResponse {
|
|
|
5700
5928
|
_metadata: RequestMetadataWithLinks;
|
|
5701
5929
|
}
|
|
5702
5930
|
|
|
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','
|
|
5931
|
+
/** 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','inventory','messages','missions','networth','newevents','newmessages','notifications','perks','refills','stocks','travel','weaponexp'. */
|
|
5704
5932
|
export type UserSelectionName = string;
|
|
5705
5933
|
|
|
5706
5934
|
export interface UserLookupResponse {
|
|
@@ -7001,6 +7229,8 @@ export interface UserStatus {
|
|
|
7001
7229
|
details: string | null;
|
|
7002
7230
|
state: string;
|
|
7003
7231
|
until: number | null;
|
|
7232
|
+
/** This field is populated only if the state is 'Traveling'. */
|
|
7233
|
+
travel_type?: string;
|
|
7004
7234
|
}
|
|
7005
7235
|
|
|
7006
7236
|
export interface FactionMembersResponse {
|
|
@@ -8114,7 +8344,7 @@ export interface TornHofBasic {
|
|
|
8114
8344
|
faction_id: FactionId;
|
|
8115
8345
|
level: number;
|
|
8116
8346
|
last_action: number;
|
|
8117
|
-
rank_name:
|
|
8347
|
+
rank_name: UserRankEnum;
|
|
8118
8348
|
rank_number: number;
|
|
8119
8349
|
position: number;
|
|
8120
8350
|
signed_up: number;
|
|
@@ -11698,6 +11928,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11698
11928
|
response: UserCalendarResponse;
|
|
11699
11929
|
params: "timestamp";
|
|
11700
11930
|
};
|
|
11931
|
+
competition: {
|
|
11932
|
+
response: UserCompetitionResponse;
|
|
11933
|
+
params: "timestamp";
|
|
11934
|
+
};
|
|
11701
11935
|
crimes: {
|
|
11702
11936
|
response: UserCrimesResponse;
|
|
11703
11937
|
params: "crimeId" | "timestamp";
|
|
@@ -11710,6 +11944,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11710
11944
|
response: UserEnlistedCarsResponse;
|
|
11711
11945
|
params: "timestamp";
|
|
11712
11946
|
};
|
|
11947
|
+
faction: {
|
|
11948
|
+
response: UserFactionResponse;
|
|
11949
|
+
params: "timestamp";
|
|
11950
|
+
};
|
|
11713
11951
|
factionbalance: {
|
|
11714
11952
|
response: UserFactionBalanceResponse;
|
|
11715
11953
|
params: "timestamp";
|
|
@@ -11748,10 +11986,18 @@ export interface UserV2 extends BaseSchema {
|
|
|
11748
11986
|
response: UserHonorsResponse;
|
|
11749
11987
|
params: "timestamp";
|
|
11750
11988
|
};
|
|
11989
|
+
icons: {
|
|
11990
|
+
response: UserIconsResponse;
|
|
11991
|
+
params: "timestamp";
|
|
11992
|
+
};
|
|
11751
11993
|
itemmarket: {
|
|
11752
11994
|
response: UserItemMarketResponse;
|
|
11753
11995
|
params: "offset" | "timestamp";
|
|
11754
11996
|
};
|
|
11997
|
+
job: {
|
|
11998
|
+
response: UserJobResponse;
|
|
11999
|
+
params: "timestamp";
|
|
12000
|
+
};
|
|
11755
12001
|
jobpoints: {
|
|
11756
12002
|
response: UserJobPointsResponse;
|
|
11757
12003
|
params: "timestamp";
|
|
@@ -11788,6 +12034,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11788
12034
|
response: UserPersonalStatsResponse;
|
|
11789
12035
|
params: "cat" | "stat" | "timestamp";
|
|
11790
12036
|
};
|
|
12037
|
+
profile: {
|
|
12038
|
+
response: UserProfileResponse;
|
|
12039
|
+
params: "striptags" | "timestamp";
|
|
12040
|
+
};
|
|
11791
12041
|
properties: {
|
|
11792
12042
|
response: UserPropertiesResponse;
|
|
11793
12043
|
params: "filters" | "offset" | "limit" | "timestamp";
|