tornapi-typescript 3.0.11 → 3.0.18
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 +142 -3
- package/dist/index.ts +265 -3
- package/dist/openapi.json +1313 -150
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
* - {@link https://github.com/grantila/typeconv}
|
|
6
6
|
*/
|
|
7
7
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
8
|
+
export type UserDonatorStatusEnum = "Donator" | "Subscriber";
|
|
9
|
+
export type JobTypeEnum = "Army" | "Casino" | "Education" | "Grocer" | "Law" | "Medical";
|
|
10
|
+
export type UserMaritalStatusEnum = "Engaged" | "Newlywed" | "Married";
|
|
11
|
+
export type UserRoleEnum = "Admin" | "Officer" | "Moderator" | "Helper" | "Tester" | "NPC" | "Committee" | "Reporter" | "Wiki Contributor" | "Wiki Editor" | "Civilian";
|
|
12
|
+
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" | "Newcomer" | "Deserter";
|
|
13
|
+
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";
|
|
14
|
+
export type UserRpsStatus = "scissors" | "rock" | "paper";
|
|
8
15
|
export type UserSkillSlugEnum = "hunting" | "racing" | "reviving" | "search_for_cash" | "bootlegging" | "graffiti" | "shoplifting" | "pickpocketing" | "card_skimming" | "burglary" | "hustling" | "disposal" | "cracking" | "forgery" | "scamming" | "arson";
|
|
9
16
|
export type CountryEnum = "Mexico" | "Hawaii" | "South Africa" | "Japan" | "China" | "Argentina" | "Switzerland" | "Canada" | "United Kingdom" | "UAE" | "Cayman Islands";
|
|
10
17
|
export type ReportTypeEnum = "mostwanted" | "money" | "stats" | "references" | "friendorfoe" | "companyfinancials" | "truelevel" | "stockanalysis" | "anonymousbounties" | "investment";
|
|
@@ -62,6 +69,7 @@ export type TerritoryWarId = number;
|
|
|
62
69
|
export type RaidWarId = number;
|
|
63
70
|
export type ItemUid = number;
|
|
64
71
|
export type UserId = number;
|
|
72
|
+
export type UserIconId = number;
|
|
65
73
|
export type ReviveId = number;
|
|
66
74
|
export type LogId = number;
|
|
67
75
|
export type UserLogId = string;
|
|
@@ -338,6 +346,110 @@ export interface ReportsResponse {
|
|
|
338
346
|
_metadata: RequestMetadataWithLinks;
|
|
339
347
|
}
|
|
340
348
|
export type SelectionCategoryEnum = ReportTypeEnum | UserListEnum | PersonalStatsCategoryEnum | RacingRaceTypeEnum;
|
|
349
|
+
export interface UserIconPublic {
|
|
350
|
+
id: UserIconId;
|
|
351
|
+
title: string;
|
|
352
|
+
description: string;
|
|
353
|
+
}
|
|
354
|
+
export interface UserIconPrivate extends UserIconPublic {
|
|
355
|
+
until: number | null;
|
|
356
|
+
}
|
|
357
|
+
export interface UserIconsResponse {
|
|
358
|
+
icons: UserIconPrivate[] | UserIconPublic[];
|
|
359
|
+
}
|
|
360
|
+
export interface UserCompetitionHalloween {
|
|
361
|
+
name: "Halloween";
|
|
362
|
+
treats_collected: number;
|
|
363
|
+
basket: {
|
|
364
|
+
id: ItemId;
|
|
365
|
+
name: string;
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
export interface UserCompetitionEasterEggs {
|
|
369
|
+
name: "Easter Egg Hunt";
|
|
370
|
+
score: number;
|
|
371
|
+
total: number;
|
|
372
|
+
}
|
|
373
|
+
export interface UserCompetitionRps {
|
|
374
|
+
name: "Rock, Paper, Scissors";
|
|
375
|
+
status: UserRpsStatus;
|
|
376
|
+
hp: {
|
|
377
|
+
current: number;
|
|
378
|
+
maximum: number;
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
export interface UserCompetitionResponse {
|
|
382
|
+
competition: UserCompetitionHalloween | UserCompetitionEasterEggs | UserCompetitionRps;
|
|
383
|
+
}
|
|
384
|
+
export interface UserFaction {
|
|
385
|
+
id: FactionId;
|
|
386
|
+
name: string;
|
|
387
|
+
tag: string;
|
|
388
|
+
tag_image: string;
|
|
389
|
+
position: string;
|
|
390
|
+
days_in_faction: number;
|
|
391
|
+
}
|
|
392
|
+
export interface UserFactionResponse {
|
|
393
|
+
faction: UserFaction | null;
|
|
394
|
+
}
|
|
395
|
+
export interface UserJob {
|
|
396
|
+
type: "job";
|
|
397
|
+
name: JobTypeEnum;
|
|
398
|
+
position: JobPositionArmyEnum | JobPositionGrocerEnum | JobPositionCasinoEnum | JobPositionMedicalEnum | JobPositionLawEnum | JobPositionEducationEnum;
|
|
399
|
+
}
|
|
400
|
+
export interface UserCompany {
|
|
401
|
+
type: "company";
|
|
402
|
+
id: CompanyId;
|
|
403
|
+
type_id: CompanyTypeId;
|
|
404
|
+
name: string;
|
|
405
|
+
rating: number;
|
|
406
|
+
position: string;
|
|
407
|
+
days_in_company: number;
|
|
408
|
+
}
|
|
409
|
+
export interface UserJobResponse {
|
|
410
|
+
job: UserJob | UserCompany | null;
|
|
411
|
+
}
|
|
412
|
+
export interface ProfileSpouse {
|
|
413
|
+
id: UserId;
|
|
414
|
+
name: string;
|
|
415
|
+
status: UserMaritalStatusEnum;
|
|
416
|
+
days_married: number;
|
|
417
|
+
}
|
|
418
|
+
export interface UserProfileResponse {
|
|
419
|
+
profile: {
|
|
420
|
+
id: UserId;
|
|
421
|
+
name: string;
|
|
422
|
+
level: number;
|
|
423
|
+
rank: UserRankEnum;
|
|
424
|
+
title: UserTitleEnum;
|
|
425
|
+
donator_status: UserDonatorStatusEnum | null;
|
|
426
|
+
/** Age in days. */
|
|
427
|
+
age: number;
|
|
428
|
+
signed_up: number;
|
|
429
|
+
faction_id: FactionId | null;
|
|
430
|
+
honor_id: HonorId;
|
|
431
|
+
property: {
|
|
432
|
+
id: PropertyId;
|
|
433
|
+
name: string;
|
|
434
|
+
};
|
|
435
|
+
image: string | null;
|
|
436
|
+
gender: UserGenderEnum;
|
|
437
|
+
revivable: boolean;
|
|
438
|
+
role: UserRoleEnum;
|
|
439
|
+
status: UserStatus;
|
|
440
|
+
spouse: ProfileSpouse | null;
|
|
441
|
+
awards: number;
|
|
442
|
+
friends: number;
|
|
443
|
+
enemies: number;
|
|
444
|
+
forum_posts: number;
|
|
445
|
+
karma: number;
|
|
446
|
+
last_action: UserLastAction;
|
|
447
|
+
life: {
|
|
448
|
+
current: number;
|
|
449
|
+
maximum: number;
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
}
|
|
341
453
|
export interface UserMoneyResponse {
|
|
342
454
|
money: {
|
|
343
455
|
points: number;
|
|
@@ -782,8 +894,12 @@ export interface UserFactionBalance {
|
|
|
782
894
|
export interface UserFactionBalanceResponse {
|
|
783
895
|
factionBalance: UserFactionBalance | null;
|
|
784
896
|
}
|
|
897
|
+
export interface UserOrganizedCrimeError {
|
|
898
|
+
code: 27;
|
|
899
|
+
error: string;
|
|
900
|
+
}
|
|
785
901
|
export interface UserOrganizedCrimeResponse {
|
|
786
|
-
organizedCrime: FactionCrime | null;
|
|
902
|
+
organizedCrime: FactionCrime | UserOrganizedCrimeError | null;
|
|
787
903
|
}
|
|
788
904
|
export interface UserList {
|
|
789
905
|
id: UserId;
|
|
@@ -797,7 +913,7 @@ export interface UserListResponse {
|
|
|
797
913
|
list: UserList[];
|
|
798
914
|
_metadata: RequestMetadataWithLinks;
|
|
799
915
|
}
|
|
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','
|
|
916
|
+
/** 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
917
|
export type UserSelectionName = string;
|
|
802
918
|
export interface UserLookupResponse {
|
|
803
919
|
selections: UserSelectionName[];
|
|
@@ -1702,7 +1818,10 @@ export interface UserStatus {
|
|
|
1702
1818
|
description: string;
|
|
1703
1819
|
details: string | null;
|
|
1704
1820
|
state: string;
|
|
1821
|
+
color: string;
|
|
1705
1822
|
until: number | null;
|
|
1823
|
+
/** This field is populated only if the state is 'Traveling'. */
|
|
1824
|
+
travel_type?: string;
|
|
1706
1825
|
}
|
|
1707
1826
|
export interface FactionMembersResponse {
|
|
1708
1827
|
members: FactionMember[];
|
|
@@ -2667,7 +2786,7 @@ export interface TornHofBasic {
|
|
|
2667
2786
|
faction_id: FactionId;
|
|
2668
2787
|
level: number;
|
|
2669
2788
|
last_action: number;
|
|
2670
|
-
rank_name:
|
|
2789
|
+
rank_name: UserRankEnum;
|
|
2671
2790
|
rank_number: number;
|
|
2672
2791
|
position: number;
|
|
2673
2792
|
signed_up: number;
|
|
@@ -6152,6 +6271,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6152
6271
|
response: UserCalendarResponse;
|
|
6153
6272
|
params: "timestamp";
|
|
6154
6273
|
};
|
|
6274
|
+
competition: {
|
|
6275
|
+
response: UserCompetitionResponse;
|
|
6276
|
+
params: "timestamp";
|
|
6277
|
+
};
|
|
6155
6278
|
crimes: {
|
|
6156
6279
|
response: UserCrimesResponse;
|
|
6157
6280
|
params: "crimeId" | "timestamp";
|
|
@@ -6164,6 +6287,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6164
6287
|
response: UserEnlistedCarsResponse;
|
|
6165
6288
|
params: "timestamp";
|
|
6166
6289
|
};
|
|
6290
|
+
faction: {
|
|
6291
|
+
response: UserFactionResponse;
|
|
6292
|
+
params: "timestamp";
|
|
6293
|
+
};
|
|
6167
6294
|
factionbalance: {
|
|
6168
6295
|
response: UserFactionBalanceResponse;
|
|
6169
6296
|
params: "timestamp";
|
|
@@ -6196,10 +6323,18 @@ export interface UserV2 extends BaseSchema {
|
|
|
6196
6323
|
response: UserHonorsResponse;
|
|
6197
6324
|
params: "timestamp";
|
|
6198
6325
|
};
|
|
6326
|
+
icons: {
|
|
6327
|
+
response: UserIconsResponse;
|
|
6328
|
+
params: "timestamp";
|
|
6329
|
+
};
|
|
6199
6330
|
itemmarket: {
|
|
6200
6331
|
response: UserItemMarketResponse;
|
|
6201
6332
|
params: "offset" | "timestamp";
|
|
6202
6333
|
};
|
|
6334
|
+
job: {
|
|
6335
|
+
response: UserJobResponse;
|
|
6336
|
+
params: "timestamp";
|
|
6337
|
+
};
|
|
6203
6338
|
jobpoints: {
|
|
6204
6339
|
response: UserJobPointsResponse;
|
|
6205
6340
|
params: "timestamp";
|
|
@@ -6236,6 +6371,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6236
6371
|
response: UserPersonalStatsResponse;
|
|
6237
6372
|
params: "cat" | "stat" | "timestamp";
|
|
6238
6373
|
};
|
|
6374
|
+
profile: {
|
|
6375
|
+
response: UserProfileResponse;
|
|
6376
|
+
params: "striptags" | "timestamp";
|
|
6377
|
+
};
|
|
6239
6378
|
properties: {
|
|
6240
6379
|
response: UserPropertiesResponse;
|
|
6241
6380
|
params: "filters" | "offset" | "limit" | "timestamp";
|
package/dist/index.ts
CHANGED
|
@@ -9,6 +9,111 @@
|
|
|
9
9
|
|
|
10
10
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
11
11
|
|
|
12
|
+
export type UserDonatorStatusEnum = "Donator" | "Subscriber";
|
|
13
|
+
|
|
14
|
+
export type JobTypeEnum =
|
|
15
|
+
| "Army"
|
|
16
|
+
| "Casino"
|
|
17
|
+
| "Education"
|
|
18
|
+
| "Grocer"
|
|
19
|
+
| "Law"
|
|
20
|
+
| "Medical";
|
|
21
|
+
|
|
22
|
+
export type UserMaritalStatusEnum = "Engaged" | "Newlywed" | "Married";
|
|
23
|
+
|
|
24
|
+
export type UserRoleEnum =
|
|
25
|
+
| "Admin"
|
|
26
|
+
| "Officer"
|
|
27
|
+
| "Moderator"
|
|
28
|
+
| "Helper"
|
|
29
|
+
| "Tester"
|
|
30
|
+
| "NPC"
|
|
31
|
+
| "Committee"
|
|
32
|
+
| "Reporter"
|
|
33
|
+
| "Wiki Contributor"
|
|
34
|
+
| "Wiki Editor"
|
|
35
|
+
| "Civilian";
|
|
36
|
+
|
|
37
|
+
export type UserTitleEnum =
|
|
38
|
+
| "Alcoholic"
|
|
39
|
+
| "Sharpshooter"
|
|
40
|
+
| "Accomplice"
|
|
41
|
+
| "Loser"
|
|
42
|
+
| "Silent Killer"
|
|
43
|
+
| "Killer"
|
|
44
|
+
| "Merchant"
|
|
45
|
+
| "Medalist"
|
|
46
|
+
| "Tycoon"
|
|
47
|
+
| "Damage Dealer"
|
|
48
|
+
| "Slayer"
|
|
49
|
+
| "Hired Gun"
|
|
50
|
+
| "Egotist"
|
|
51
|
+
| "Outcast"
|
|
52
|
+
| "Punchbag"
|
|
53
|
+
| "Tank"
|
|
54
|
+
| "Antagonist"
|
|
55
|
+
| "Druggy"
|
|
56
|
+
| "Scavenger"
|
|
57
|
+
| "Boxer"
|
|
58
|
+
| "Importer"
|
|
59
|
+
| "Looter"
|
|
60
|
+
| "Samaritan"
|
|
61
|
+
| "Felon"
|
|
62
|
+
| "Socialite"
|
|
63
|
+
| "Mercenary"
|
|
64
|
+
| "Investor"
|
|
65
|
+
| "Thief"
|
|
66
|
+
| "One Hit Killer"
|
|
67
|
+
| "Mobster"
|
|
68
|
+
| "Addict"
|
|
69
|
+
| "Bonds Agent"
|
|
70
|
+
| "Buster"
|
|
71
|
+
| "Hoarder"
|
|
72
|
+
| "Racer"
|
|
73
|
+
| "Soldier"
|
|
74
|
+
| "Avenger"
|
|
75
|
+
| "Healer"
|
|
76
|
+
| "Booster"
|
|
77
|
+
| "Intimidator"
|
|
78
|
+
| "Trader"
|
|
79
|
+
| "Jobsworth"
|
|
80
|
+
| "Tourist"
|
|
81
|
+
| "Nudist"
|
|
82
|
+
| "Sage"
|
|
83
|
+
| "Coward"
|
|
84
|
+
| "Newcomer"
|
|
85
|
+
| "Deserter";
|
|
86
|
+
|
|
87
|
+
export type UserRankEnum =
|
|
88
|
+
| "Absolute beginner"
|
|
89
|
+
| "Beginner"
|
|
90
|
+
| "Inexperienced"
|
|
91
|
+
| "Rookie"
|
|
92
|
+
| "Novice"
|
|
93
|
+
| "Below average"
|
|
94
|
+
| "Average"
|
|
95
|
+
| "Reasonable"
|
|
96
|
+
| "Above average"
|
|
97
|
+
| "Competent"
|
|
98
|
+
| "Highly competent"
|
|
99
|
+
| "Veteran"
|
|
100
|
+
| "Distinguished"
|
|
101
|
+
| "Highly distinguished"
|
|
102
|
+
| "Professional"
|
|
103
|
+
| "Star"
|
|
104
|
+
| "Master"
|
|
105
|
+
| "Outstanding"
|
|
106
|
+
| "Celebrity"
|
|
107
|
+
| "Supreme"
|
|
108
|
+
| "Idolized"
|
|
109
|
+
| "Champion"
|
|
110
|
+
| "Heroic"
|
|
111
|
+
| "Legendary"
|
|
112
|
+
| "Elite"
|
|
113
|
+
| "Invincible";
|
|
114
|
+
|
|
115
|
+
export type UserRpsStatus = "scissors" | "rock" | "paper";
|
|
116
|
+
|
|
12
117
|
export type UserSkillSlugEnum =
|
|
13
118
|
| "hunting"
|
|
14
119
|
| "racing"
|
|
@@ -4614,6 +4719,8 @@ export type ItemUid = number;
|
|
|
4614
4719
|
|
|
4615
4720
|
export type UserId = number;
|
|
4616
4721
|
|
|
4722
|
+
export type UserIconId = number;
|
|
4723
|
+
|
|
4617
4724
|
export type ReviveId = number;
|
|
4618
4725
|
|
|
4619
4726
|
export type LogId = number;
|
|
@@ -5152,6 +5259,133 @@ export type SelectionCategoryEnum =
|
|
|
5152
5259
|
| PersonalStatsCategoryEnum
|
|
5153
5260
|
| RacingRaceTypeEnum;
|
|
5154
5261
|
|
|
5262
|
+
export interface UserIconPublic {
|
|
5263
|
+
id: UserIconId;
|
|
5264
|
+
title: string;
|
|
5265
|
+
description: string;
|
|
5266
|
+
}
|
|
5267
|
+
|
|
5268
|
+
export interface UserIconPrivate extends UserIconPublic {
|
|
5269
|
+
until: number | null;
|
|
5270
|
+
}
|
|
5271
|
+
|
|
5272
|
+
export interface UserIconsResponse {
|
|
5273
|
+
icons: UserIconPrivate[] | UserIconPublic[];
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
export interface UserCompetitionHalloween {
|
|
5277
|
+
name: "Halloween";
|
|
5278
|
+
treats_collected: number;
|
|
5279
|
+
basket: {
|
|
5280
|
+
id: ItemId;
|
|
5281
|
+
name: string;
|
|
5282
|
+
};
|
|
5283
|
+
}
|
|
5284
|
+
|
|
5285
|
+
export interface UserCompetitionEasterEggs {
|
|
5286
|
+
name: "Easter Egg Hunt";
|
|
5287
|
+
score: number;
|
|
5288
|
+
total: number;
|
|
5289
|
+
}
|
|
5290
|
+
|
|
5291
|
+
export interface UserCompetitionRps {
|
|
5292
|
+
name: "Rock, Paper, Scissors";
|
|
5293
|
+
status: UserRpsStatus;
|
|
5294
|
+
hp: {
|
|
5295
|
+
current: number;
|
|
5296
|
+
maximum: number;
|
|
5297
|
+
};
|
|
5298
|
+
}
|
|
5299
|
+
|
|
5300
|
+
export interface UserCompetitionResponse {
|
|
5301
|
+
competition:
|
|
5302
|
+
| UserCompetitionHalloween
|
|
5303
|
+
| UserCompetitionEasterEggs
|
|
5304
|
+
| UserCompetitionRps;
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
export interface UserFaction {
|
|
5308
|
+
id: FactionId;
|
|
5309
|
+
name: string;
|
|
5310
|
+
tag: string;
|
|
5311
|
+
tag_image: string;
|
|
5312
|
+
position: string;
|
|
5313
|
+
days_in_faction: number;
|
|
5314
|
+
}
|
|
5315
|
+
|
|
5316
|
+
export interface UserFactionResponse {
|
|
5317
|
+
faction: UserFaction | null;
|
|
5318
|
+
}
|
|
5319
|
+
|
|
5320
|
+
export interface UserJob {
|
|
5321
|
+
type: "job";
|
|
5322
|
+
name: JobTypeEnum;
|
|
5323
|
+
position:
|
|
5324
|
+
| JobPositionArmyEnum
|
|
5325
|
+
| JobPositionGrocerEnum
|
|
5326
|
+
| JobPositionCasinoEnum
|
|
5327
|
+
| JobPositionMedicalEnum
|
|
5328
|
+
| JobPositionLawEnum
|
|
5329
|
+
| JobPositionEducationEnum;
|
|
5330
|
+
}
|
|
5331
|
+
|
|
5332
|
+
export interface UserCompany {
|
|
5333
|
+
type: "company";
|
|
5334
|
+
id: CompanyId;
|
|
5335
|
+
type_id: CompanyTypeId;
|
|
5336
|
+
name: string;
|
|
5337
|
+
rating: number;
|
|
5338
|
+
position: string;
|
|
5339
|
+
days_in_company: number;
|
|
5340
|
+
}
|
|
5341
|
+
|
|
5342
|
+
export interface UserJobResponse {
|
|
5343
|
+
job: UserJob | UserCompany | null;
|
|
5344
|
+
}
|
|
5345
|
+
|
|
5346
|
+
export interface ProfileSpouse {
|
|
5347
|
+
id: UserId;
|
|
5348
|
+
name: string;
|
|
5349
|
+
status: UserMaritalStatusEnum;
|
|
5350
|
+
days_married: number;
|
|
5351
|
+
}
|
|
5352
|
+
|
|
5353
|
+
export interface UserProfileResponse {
|
|
5354
|
+
profile: {
|
|
5355
|
+
id: UserId;
|
|
5356
|
+
name: string;
|
|
5357
|
+
level: number;
|
|
5358
|
+
rank: UserRankEnum;
|
|
5359
|
+
title: UserTitleEnum;
|
|
5360
|
+
donator_status: UserDonatorStatusEnum | null;
|
|
5361
|
+
/** Age in days. */
|
|
5362
|
+
age: number;
|
|
5363
|
+
signed_up: number;
|
|
5364
|
+
faction_id: FactionId | null;
|
|
5365
|
+
honor_id: HonorId;
|
|
5366
|
+
property: {
|
|
5367
|
+
id: PropertyId;
|
|
5368
|
+
name: string;
|
|
5369
|
+
};
|
|
5370
|
+
image: string | null;
|
|
5371
|
+
gender: UserGenderEnum;
|
|
5372
|
+
revivable: boolean;
|
|
5373
|
+
role: UserRoleEnum;
|
|
5374
|
+
status: UserStatus;
|
|
5375
|
+
spouse: ProfileSpouse | null;
|
|
5376
|
+
awards: number;
|
|
5377
|
+
friends: number;
|
|
5378
|
+
enemies: number;
|
|
5379
|
+
forum_posts: number;
|
|
5380
|
+
karma: number;
|
|
5381
|
+
last_action: UserLastAction;
|
|
5382
|
+
life: {
|
|
5383
|
+
current: number;
|
|
5384
|
+
maximum: number;
|
|
5385
|
+
};
|
|
5386
|
+
};
|
|
5387
|
+
}
|
|
5388
|
+
|
|
5155
5389
|
export interface UserMoneyResponse {
|
|
5156
5390
|
money: {
|
|
5157
5391
|
points: number;
|
|
@@ -5682,8 +5916,13 @@ export interface UserFactionBalanceResponse {
|
|
|
5682
5916
|
factionBalance: UserFactionBalance | null;
|
|
5683
5917
|
}
|
|
5684
5918
|
|
|
5919
|
+
export interface UserOrganizedCrimeError {
|
|
5920
|
+
code: 27;
|
|
5921
|
+
error: string;
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5685
5924
|
export interface UserOrganizedCrimeResponse {
|
|
5686
|
-
organizedCrime: FactionCrime | null;
|
|
5925
|
+
organizedCrime: FactionCrime | UserOrganizedCrimeError | null;
|
|
5687
5926
|
}
|
|
5688
5927
|
|
|
5689
5928
|
export interface UserList {
|
|
@@ -5700,7 +5939,7 @@ export interface UserListResponse {
|
|
|
5700
5939
|
_metadata: RequestMetadataWithLinks;
|
|
5701
5940
|
}
|
|
5702
5941
|
|
|
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','
|
|
5942
|
+
/** 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
5943
|
export type UserSelectionName = string;
|
|
5705
5944
|
|
|
5706
5945
|
export interface UserLookupResponse {
|
|
@@ -7000,7 +7239,10 @@ export interface UserStatus {
|
|
|
7000
7239
|
description: string;
|
|
7001
7240
|
details: string | null;
|
|
7002
7241
|
state: string;
|
|
7242
|
+
color: string;
|
|
7003
7243
|
until: number | null;
|
|
7244
|
+
/** This field is populated only if the state is 'Traveling'. */
|
|
7245
|
+
travel_type?: string;
|
|
7004
7246
|
}
|
|
7005
7247
|
|
|
7006
7248
|
export interface FactionMembersResponse {
|
|
@@ -8114,7 +8356,7 @@ export interface TornHofBasic {
|
|
|
8114
8356
|
faction_id: FactionId;
|
|
8115
8357
|
level: number;
|
|
8116
8358
|
last_action: number;
|
|
8117
|
-
rank_name:
|
|
8359
|
+
rank_name: UserRankEnum;
|
|
8118
8360
|
rank_number: number;
|
|
8119
8361
|
position: number;
|
|
8120
8362
|
signed_up: number;
|
|
@@ -11698,6 +11940,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11698
11940
|
response: UserCalendarResponse;
|
|
11699
11941
|
params: "timestamp";
|
|
11700
11942
|
};
|
|
11943
|
+
competition: {
|
|
11944
|
+
response: UserCompetitionResponse;
|
|
11945
|
+
params: "timestamp";
|
|
11946
|
+
};
|
|
11701
11947
|
crimes: {
|
|
11702
11948
|
response: UserCrimesResponse;
|
|
11703
11949
|
params: "crimeId" | "timestamp";
|
|
@@ -11710,6 +11956,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11710
11956
|
response: UserEnlistedCarsResponse;
|
|
11711
11957
|
params: "timestamp";
|
|
11712
11958
|
};
|
|
11959
|
+
faction: {
|
|
11960
|
+
response: UserFactionResponse;
|
|
11961
|
+
params: "timestamp";
|
|
11962
|
+
};
|
|
11713
11963
|
factionbalance: {
|
|
11714
11964
|
response: UserFactionBalanceResponse;
|
|
11715
11965
|
params: "timestamp";
|
|
@@ -11748,10 +11998,18 @@ export interface UserV2 extends BaseSchema {
|
|
|
11748
11998
|
response: UserHonorsResponse;
|
|
11749
11999
|
params: "timestamp";
|
|
11750
12000
|
};
|
|
12001
|
+
icons: {
|
|
12002
|
+
response: UserIconsResponse;
|
|
12003
|
+
params: "timestamp";
|
|
12004
|
+
};
|
|
11751
12005
|
itemmarket: {
|
|
11752
12006
|
response: UserItemMarketResponse;
|
|
11753
12007
|
params: "offset" | "timestamp";
|
|
11754
12008
|
};
|
|
12009
|
+
job: {
|
|
12010
|
+
response: UserJobResponse;
|
|
12011
|
+
params: "timestamp";
|
|
12012
|
+
};
|
|
11755
12013
|
jobpoints: {
|
|
11756
12014
|
response: UserJobPointsResponse;
|
|
11757
12015
|
params: "timestamp";
|
|
@@ -11788,6 +12046,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11788
12046
|
response: UserPersonalStatsResponse;
|
|
11789
12047
|
params: "cat" | "stat" | "timestamp";
|
|
11790
12048
|
};
|
|
12049
|
+
profile: {
|
|
12050
|
+
response: UserProfileResponse;
|
|
12051
|
+
params: "striptags" | "timestamp";
|
|
12052
|
+
};
|
|
11791
12053
|
properties: {
|
|
11792
12054
|
response: UserPropertiesResponse;
|
|
11793
12055
|
params: "filters" | "offset" | "limit" | "timestamp";
|