torn-client 0.2.6 → 0.2.7
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.mts +131 -131
- package/dist/index.d.ts +131 -131
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -67,7 +67,7 @@ type Attack = {
|
|
|
67
67
|
code: AttackCode;
|
|
68
68
|
started: number;
|
|
69
69
|
ended: number;
|
|
70
|
-
attacker: AttackPlayer |
|
|
70
|
+
attacker: AttackPlayer | null;
|
|
71
71
|
defender: AttackPlayer;
|
|
72
72
|
result: FactionAttackResult;
|
|
73
73
|
respect_gain: number;
|
|
@@ -119,12 +119,12 @@ type AttackLog = {
|
|
|
119
119
|
item: {
|
|
120
120
|
id?: ItemId;
|
|
121
121
|
name?: string;
|
|
122
|
-
} |
|
|
123
|
-
} |
|
|
122
|
+
} | null;
|
|
123
|
+
} | null;
|
|
124
124
|
defender: {
|
|
125
125
|
id: UserId;
|
|
126
126
|
name: string;
|
|
127
|
-
} |
|
|
127
|
+
} | null;
|
|
128
128
|
attacker_item?: {
|
|
129
129
|
id: ItemId;
|
|
130
130
|
name: string;
|
|
@@ -142,8 +142,8 @@ type AttackLogResponse = {
|
|
|
142
142
|
|
|
143
143
|
/** @category Models */
|
|
144
144
|
type AttackLogSummary = {
|
|
145
|
-
id: UserId |
|
|
146
|
-
name: string |
|
|
145
|
+
id: UserId | null;
|
|
146
|
+
name: string | null;
|
|
147
147
|
hits: number;
|
|
148
148
|
misses: number;
|
|
149
149
|
damage: number;
|
|
@@ -154,7 +154,7 @@ type AttackPlayer = {
|
|
|
154
154
|
id: UserId;
|
|
155
155
|
name: string;
|
|
156
156
|
level: number;
|
|
157
|
-
faction: AttackPlayerFaction |
|
|
157
|
+
faction: AttackPlayerFaction | null;
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
/** @category Models */
|
|
@@ -166,7 +166,7 @@ type AttackPlayerFaction = {
|
|
|
166
166
|
/** @category Models */
|
|
167
167
|
type AttackPlayerSimplified = {
|
|
168
168
|
id: UserId;
|
|
169
|
-
faction_id: FactionId |
|
|
169
|
+
faction_id: FactionId | null;
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
/** @category Models */
|
|
@@ -175,7 +175,7 @@ type AttackSimplified = {
|
|
|
175
175
|
code: AttackCode;
|
|
176
176
|
started: number;
|
|
177
177
|
ended: number;
|
|
178
|
-
attacker: AttackPlayerSimplified |
|
|
178
|
+
attacker: AttackPlayerSimplified | null;
|
|
179
179
|
defender: AttackPlayerSimplified;
|
|
180
180
|
result: FactionAttackResult;
|
|
181
181
|
respect_gain: number;
|
|
@@ -273,10 +273,10 @@ type Bounty = {
|
|
|
273
273
|
target_id: UserId;
|
|
274
274
|
target_name: string;
|
|
275
275
|
target_level: number;
|
|
276
|
-
lister_id: UserId |
|
|
277
|
-
lister_name: string |
|
|
276
|
+
lister_id: UserId | null;
|
|
277
|
+
lister_name: string | null;
|
|
278
278
|
reward: number;
|
|
279
|
-
reason: string |
|
|
279
|
+
reason: string | null;
|
|
280
280
|
quantity: number;
|
|
281
281
|
is_anonymous: boolean;
|
|
282
282
|
valid_until: number;
|
|
@@ -337,9 +337,9 @@ type FactionApplication = {
|
|
|
337
337
|
speed: number;
|
|
338
338
|
dexterity: number;
|
|
339
339
|
defense: number;
|
|
340
|
-
} |
|
|
340
|
+
} | null;
|
|
341
341
|
};
|
|
342
|
-
message: string |
|
|
342
|
+
message: string | null;
|
|
343
343
|
valid_until: number;
|
|
344
344
|
status: FactionApplicationStatusEnum;
|
|
345
345
|
};
|
|
@@ -399,7 +399,7 @@ type FactionBasic = {
|
|
|
399
399
|
days_old: number;
|
|
400
400
|
capacity: number;
|
|
401
401
|
members: number;
|
|
402
|
-
is_enlisted: boolean |
|
|
402
|
+
is_enlisted: boolean | null;
|
|
403
403
|
rank: FactionRank;
|
|
404
404
|
best_chain: number;
|
|
405
405
|
};
|
|
@@ -536,17 +536,17 @@ type FactionContributorsResponse = {
|
|
|
536
536
|
/** @category Models */
|
|
537
537
|
type FactionCrime = {
|
|
538
538
|
id: FactionCrimeId;
|
|
539
|
-
previous_crime_id: FactionCrimeId |
|
|
539
|
+
previous_crime_id: FactionCrimeId | null;
|
|
540
540
|
name: OrganizedCrimeName;
|
|
541
541
|
difficulty: number;
|
|
542
542
|
status: FactionCrimeStatusEnum;
|
|
543
543
|
created_at: number;
|
|
544
|
-
planning_at: number |
|
|
545
|
-
ready_at: number |
|
|
544
|
+
planning_at: number | null;
|
|
545
|
+
ready_at: number | null;
|
|
546
546
|
expired_at: number;
|
|
547
|
-
executed_at: number |
|
|
547
|
+
executed_at: number | null;
|
|
548
548
|
slots: FactionCrimeSlot[];
|
|
549
|
-
rewards: FactionCrimeReward |
|
|
549
|
+
rewards: FactionCrimeReward | null;
|
|
550
550
|
};
|
|
551
551
|
|
|
552
552
|
/** @category Models */
|
|
@@ -566,7 +566,7 @@ type FactionCrimeReward = {
|
|
|
566
566
|
items: FactionCrimeRewardItem[];
|
|
567
567
|
respect: number;
|
|
568
568
|
scope: number;
|
|
569
|
-
payout: FactionCrimeRewardPayout |
|
|
569
|
+
payout: FactionCrimeRewardPayout | null;
|
|
570
570
|
};
|
|
571
571
|
|
|
572
572
|
/** @category Models */
|
|
@@ -592,8 +592,8 @@ type FactionCrimeSlot = {
|
|
|
592
592
|
id: ItemId;
|
|
593
593
|
is_reusable: boolean;
|
|
594
594
|
is_available: boolean;
|
|
595
|
-
} |
|
|
596
|
-
user: FactionCrimeUser |
|
|
595
|
+
} | null;
|
|
596
|
+
user: FactionCrimeUser | null;
|
|
597
597
|
checkpoint_pass_rate: number;
|
|
598
598
|
};
|
|
599
599
|
|
|
@@ -609,9 +609,9 @@ type FactionCrimeStatusEnum = "Recruiting" | "Planning" | "Successful" | "Failur
|
|
|
609
609
|
/** @category Models */
|
|
610
610
|
type FactionCrimeUser = {
|
|
611
611
|
id: UserId;
|
|
612
|
-
outcome: FactionCrimeUserOutcome |
|
|
613
|
-
outcome_duration?: number |
|
|
614
|
-
item_outcome: FactionCrimeUserItemOutcome |
|
|
612
|
+
outcome: FactionCrimeUserOutcome | null;
|
|
613
|
+
outcome_duration?: number | null;
|
|
614
|
+
item_outcome: FactionCrimeUserItemOutcome | null;
|
|
615
615
|
joined_at: number;
|
|
616
616
|
progress: number;
|
|
617
617
|
};
|
|
@@ -644,9 +644,9 @@ type FactionHofStats = {
|
|
|
644
644
|
|
|
645
645
|
/** @category Models */
|
|
646
646
|
type FactionHofValues = {
|
|
647
|
-
chain: number |
|
|
648
|
-
chain_duration: number |
|
|
649
|
-
respect: number |
|
|
647
|
+
chain: number | null;
|
|
648
|
+
chain_duration: number | null;
|
|
649
|
+
respect: number | null;
|
|
650
650
|
};
|
|
651
651
|
|
|
652
652
|
/** @category Models */
|
|
@@ -785,7 +785,7 @@ type FactionRaidsResponse = {
|
|
|
785
785
|
type FactionRaidWar = {
|
|
786
786
|
war_id: number;
|
|
787
787
|
start: number;
|
|
788
|
-
end: number |
|
|
788
|
+
end: number | null;
|
|
789
789
|
factions: FactionRaidWarParticipant[];
|
|
790
790
|
};
|
|
791
791
|
|
|
@@ -793,7 +793,7 @@ type FactionRaidWar = {
|
|
|
793
793
|
type FactionRaidWarfare = {
|
|
794
794
|
id: RaidWarId;
|
|
795
795
|
start: number;
|
|
796
|
-
end: number |
|
|
796
|
+
end: number | null;
|
|
797
797
|
aggressor: FactionRaidWarfareFaction;
|
|
798
798
|
defender: FactionRaidWarfareFaction;
|
|
799
799
|
};
|
|
@@ -836,9 +836,9 @@ type FactionRank = {
|
|
|
836
836
|
type FactionRankedWar = {
|
|
837
837
|
war_id: number;
|
|
838
838
|
start: number;
|
|
839
|
-
end: number |
|
|
839
|
+
end: number | null;
|
|
840
840
|
target: number;
|
|
841
|
-
winner: number |
|
|
841
|
+
winner: number | null;
|
|
842
842
|
factions: FactionRankedWarParticipant[];
|
|
843
843
|
};
|
|
844
844
|
|
|
@@ -848,7 +848,7 @@ type FactionRankedWarDetails = {
|
|
|
848
848
|
start: number;
|
|
849
849
|
end: number;
|
|
850
850
|
target: number;
|
|
851
|
-
winner: FactionId |
|
|
851
|
+
winner: FactionId | null;
|
|
852
852
|
factions: {
|
|
853
853
|
id: FactionId;
|
|
854
854
|
name: string;
|
|
@@ -924,10 +924,10 @@ type FactionSearch = {
|
|
|
924
924
|
respect: number;
|
|
925
925
|
members: number;
|
|
926
926
|
leader: FactionSearchLeader;
|
|
927
|
-
co_leader: FactionSearchLeader |
|
|
928
|
-
image: string |
|
|
929
|
-
tag_image: string |
|
|
930
|
-
tag: string |
|
|
927
|
+
co_leader: FactionSearchLeader | null;
|
|
928
|
+
image: string | null;
|
|
929
|
+
tag_image: string | null;
|
|
930
|
+
tag: string | null;
|
|
931
931
|
is_destroyed: boolean;
|
|
932
932
|
is_recruiting: boolean;
|
|
933
933
|
};
|
|
@@ -981,7 +981,7 @@ type FactionTerritory = {
|
|
|
981
981
|
slots: number;
|
|
982
982
|
respect: number;
|
|
983
983
|
coordinates: TornTerritoryCoordinates;
|
|
984
|
-
racket: TornRacket |
|
|
984
|
+
racket: TornRacket | null;
|
|
985
985
|
};
|
|
986
986
|
|
|
987
987
|
/** @category Models */
|
|
@@ -990,8 +990,8 @@ type FactionTerritoryEnum = "AAB" | "AAC" | "AAD" | "AAE" | "AAF" | "AAG" | "ABA
|
|
|
990
990
|
/** @category Models */
|
|
991
991
|
type FactionTerritoryOwnership = {
|
|
992
992
|
id: string;
|
|
993
|
-
owned_by: FactionId |
|
|
994
|
-
acquired_at: number |
|
|
993
|
+
owned_by: FactionId | null;
|
|
994
|
+
acquired_at: number | null;
|
|
995
995
|
};
|
|
996
996
|
|
|
997
997
|
/** @category Models */
|
|
@@ -999,9 +999,9 @@ type FactionTerritoryWar = {
|
|
|
999
999
|
war_id: number;
|
|
1000
1000
|
territory: string;
|
|
1001
1001
|
start: number;
|
|
1002
|
-
end: number |
|
|
1002
|
+
end: number | null;
|
|
1003
1003
|
target: number;
|
|
1004
|
-
winner?: FactionId |
|
|
1004
|
+
winner?: FactionId | null;
|
|
1005
1005
|
factions: FactionTerritoryWarParticipant[];
|
|
1006
1006
|
};
|
|
1007
1007
|
|
|
@@ -1163,7 +1163,7 @@ type FactionWarfareDirtyBomb = {
|
|
|
1163
1163
|
planted_at: number;
|
|
1164
1164
|
detonated_at: number;
|
|
1165
1165
|
faction: FactionWarfareDirtyBombTargetFaction;
|
|
1166
|
-
user: FactionWarfareDirtyBombPlanter |
|
|
1166
|
+
user: FactionWarfareDirtyBombPlanter | null;
|
|
1167
1167
|
};
|
|
1168
1168
|
|
|
1169
1169
|
/** @category Models */
|
|
@@ -1190,7 +1190,7 @@ type FactionWarfareTypeEnum = "ranked" | "territory" | "raid" | "chain" | "db";
|
|
|
1190
1190
|
|
|
1191
1191
|
/** @category Models */
|
|
1192
1192
|
type FactionWars = {
|
|
1193
|
-
ranked: FactionRankedWar |
|
|
1193
|
+
ranked: FactionRankedWar | null;
|
|
1194
1194
|
raids: FactionRaidWar[];
|
|
1195
1195
|
territory: FactionTerritoryWar[];
|
|
1196
1196
|
};
|
|
@@ -1267,9 +1267,9 @@ type ForumPost = {
|
|
|
1267
1267
|
is_edited: boolean;
|
|
1268
1268
|
is_pinned: boolean;
|
|
1269
1269
|
created_time: number;
|
|
1270
|
-
edited_by: UserId |
|
|
1270
|
+
edited_by: UserId | null;
|
|
1271
1271
|
has_quote: boolean;
|
|
1272
|
-
quoted_post_id: number |
|
|
1272
|
+
quoted_post_id: number | null;
|
|
1273
1273
|
content: string;
|
|
1274
1274
|
likes: number;
|
|
1275
1275
|
dislikes: number;
|
|
@@ -1321,9 +1321,9 @@ type ForumThreadBase = {
|
|
|
1321
1321
|
rating: number;
|
|
1322
1322
|
views: number;
|
|
1323
1323
|
author: ForumThreadAuthor;
|
|
1324
|
-
last_poster: ForumThreadAuthor |
|
|
1324
|
+
last_poster: ForumThreadAuthor | null;
|
|
1325
1325
|
first_post_time: number;
|
|
1326
|
-
last_post_time: number |
|
|
1326
|
+
last_post_time: number | null;
|
|
1327
1327
|
has_poll: boolean;
|
|
1328
1328
|
is_locked: boolean;
|
|
1329
1329
|
is_sticky: boolean;
|
|
@@ -1333,7 +1333,7 @@ type ForumThreadBase = {
|
|
|
1333
1333
|
type ForumThreadExtended = ForumThreadBase & {
|
|
1334
1334
|
content: string;
|
|
1335
1335
|
content_raw: string;
|
|
1336
|
-
poll: ForumPoll |
|
|
1336
|
+
poll: ForumPoll | null;
|
|
1337
1337
|
};
|
|
1338
1338
|
|
|
1339
1339
|
/** @category Models */
|
|
@@ -1352,7 +1352,7 @@ type ForumThreadsResponse = {
|
|
|
1352
1352
|
|
|
1353
1353
|
/** @category Models */
|
|
1354
1354
|
type ForumThreadUserExtended = ForumThreadBase & {
|
|
1355
|
-
new_posts: number |
|
|
1355
|
+
new_posts: number | null;
|
|
1356
1356
|
};
|
|
1357
1357
|
|
|
1358
1358
|
/** @category Models */
|
|
@@ -1370,7 +1370,7 @@ type HofValueFloat = {
|
|
|
1370
1370
|
/** @category Models */
|
|
1371
1371
|
type HofValueString = {
|
|
1372
1372
|
value: string;
|
|
1373
|
-
rank: number |
|
|
1373
|
+
rank: number | null;
|
|
1374
1374
|
};
|
|
1375
1375
|
|
|
1376
1376
|
/** @category Models */
|
|
@@ -1413,14 +1413,14 @@ type ItemMarketListingItemDetails = {
|
|
|
1413
1413
|
uid: ItemUid;
|
|
1414
1414
|
stats: ItemMarketListingItemStats;
|
|
1415
1415
|
bonuses: ItemMarketListingItemBonus[];
|
|
1416
|
-
rarity: "yellow" | "orange" | "red" |
|
|
1416
|
+
rarity: "yellow" | "orange" | "red" | null;
|
|
1417
1417
|
};
|
|
1418
1418
|
|
|
1419
1419
|
/** @category Models */
|
|
1420
1420
|
type ItemMarketListingItemStats = {
|
|
1421
|
-
damage: number |
|
|
1422
|
-
accuracy: number |
|
|
1423
|
-
armor: number |
|
|
1421
|
+
damage: number | null;
|
|
1422
|
+
accuracy: number | null;
|
|
1423
|
+
armor: number | null;
|
|
1424
1424
|
quality: number;
|
|
1425
1425
|
};
|
|
1426
1426
|
|
|
@@ -1485,8 +1485,8 @@ type KeyInfoResponse = {
|
|
|
1485
1485
|
key: KeySelectionName[];
|
|
1486
1486
|
};
|
|
1487
1487
|
user: {
|
|
1488
|
-
faction_id: FactionId |
|
|
1489
|
-
company_id: CompanyId |
|
|
1488
|
+
faction_id: FactionId | null;
|
|
1489
|
+
company_id: CompanyId | null;
|
|
1490
1490
|
id: UserId;
|
|
1491
1491
|
};
|
|
1492
1492
|
access: {
|
|
@@ -1508,8 +1508,8 @@ type KeyLogResponse = {
|
|
|
1508
1508
|
timestamp: number;
|
|
1509
1509
|
type: string;
|
|
1510
1510
|
selections: string;
|
|
1511
|
-
id: number | string |
|
|
1512
|
-
comment?: string |
|
|
1511
|
+
id: number | string | null;
|
|
1512
|
+
comment?: string | null;
|
|
1513
1513
|
ip: string;
|
|
1514
1514
|
}[];
|
|
1515
1515
|
};
|
|
@@ -2282,12 +2282,12 @@ type Race = {
|
|
|
2282
2282
|
join_from: number;
|
|
2283
2283
|
join_until: number;
|
|
2284
2284
|
start: number;
|
|
2285
|
-
end: number |
|
|
2285
|
+
end: number | null;
|
|
2286
2286
|
};
|
|
2287
2287
|
requirements: {
|
|
2288
|
-
car_class: RaceClassEnum |
|
|
2289
|
-
driver_class: RaceClassEnum |
|
|
2290
|
-
car_item_id: ItemId |
|
|
2288
|
+
car_class: RaceClassEnum | null;
|
|
2289
|
+
driver_class: RaceClassEnum | null;
|
|
2290
|
+
car_item_id: ItemId | null;
|
|
2291
2291
|
requires_stock_car: boolean;
|
|
2292
2292
|
requires_password: boolean;
|
|
2293
2293
|
join_fee: number;
|
|
@@ -2353,15 +2353,15 @@ type RaceId = number;
|
|
|
2353
2353
|
/** @category Models */
|
|
2354
2354
|
type RacerDetails = {
|
|
2355
2355
|
driver_id: UserId;
|
|
2356
|
-
position: number |
|
|
2356
|
+
position: number | null;
|
|
2357
2357
|
car_id: RaceCarId;
|
|
2358
2358
|
car_item_id: ItemId;
|
|
2359
2359
|
car_item_name: string;
|
|
2360
2360
|
car_class: RaceClassEnum;
|
|
2361
|
-
has_crashed: boolean |
|
|
2362
|
-
best_lap_time: number |
|
|
2363
|
-
race_time: number |
|
|
2364
|
-
time_ended: number |
|
|
2361
|
+
has_crashed: boolean | null;
|
|
2362
|
+
best_lap_time: number | null;
|
|
2363
|
+
race_time: number | null;
|
|
2364
|
+
time_ended: number | null;
|
|
2365
2365
|
};
|
|
2366
2366
|
|
|
2367
2367
|
/** @category Models */
|
|
@@ -2454,16 +2454,16 @@ type ReportAnonymousBounties = {
|
|
|
2454
2454
|
user: {
|
|
2455
2455
|
id: UserId;
|
|
2456
2456
|
name: string;
|
|
2457
|
-
} |
|
|
2457
|
+
} | null;
|
|
2458
2458
|
}[];
|
|
2459
2459
|
};
|
|
2460
2460
|
|
|
2461
2461
|
/** @category Models */
|
|
2462
2462
|
type ReportBase = {
|
|
2463
2463
|
type: ReportTypeEnum;
|
|
2464
|
-
target_id: UserId |
|
|
2464
|
+
target_id: UserId | null;
|
|
2465
2465
|
reporter_id: UserId;
|
|
2466
|
-
faction_id: FactionId |
|
|
2466
|
+
faction_id: FactionId | null;
|
|
2467
2467
|
timestamp: number;
|
|
2468
2468
|
};
|
|
2469
2469
|
|
|
@@ -2501,7 +2501,7 @@ type ReportHistoryCompany = {
|
|
|
2501
2501
|
id: CompanyId;
|
|
2502
2502
|
name: string;
|
|
2503
2503
|
joined: string;
|
|
2504
|
-
left: string |
|
|
2504
|
+
left: string | null;
|
|
2505
2505
|
};
|
|
2506
2506
|
|
|
2507
2507
|
/** @category Models */
|
|
@@ -2509,7 +2509,7 @@ type ReportHistoryFaction = {
|
|
|
2509
2509
|
id: FactionId;
|
|
2510
2510
|
name: string;
|
|
2511
2511
|
joined: string;
|
|
2512
|
-
left: string |
|
|
2512
|
+
left: string | null;
|
|
2513
2513
|
};
|
|
2514
2514
|
|
|
2515
2515
|
/** @category Models */
|
|
@@ -2542,11 +2542,11 @@ type ReportsResponse = {
|
|
|
2542
2542
|
|
|
2543
2543
|
/** @category Models */
|
|
2544
2544
|
type ReportStats = {
|
|
2545
|
-
strength: number |
|
|
2546
|
-
speed: number |
|
|
2547
|
-
dexterity: number |
|
|
2548
|
-
defense: number |
|
|
2549
|
-
total: number |
|
|
2545
|
+
strength: number | null;
|
|
2546
|
+
speed: number | null;
|
|
2547
|
+
dexterity: number | null;
|
|
2548
|
+
defense: number | null;
|
|
2549
|
+
total: number | null;
|
|
2550
2550
|
};
|
|
2551
2551
|
|
|
2552
2552
|
/** @category Models */
|
|
@@ -2558,7 +2558,7 @@ type ReportStockAnalysis = {
|
|
|
2558
2558
|
name: string;
|
|
2559
2559
|
price: number;
|
|
2560
2560
|
value: number;
|
|
2561
|
-
due: number |
|
|
2561
|
+
due: number | null;
|
|
2562
2562
|
};
|
|
2563
2563
|
trip_duration: number;
|
|
2564
2564
|
hourly_profit: number;
|
|
@@ -2582,8 +2582,8 @@ type ReportWarrantDetails = {
|
|
|
2582
2582
|
|
|
2583
2583
|
/** @category Models */
|
|
2584
2584
|
type RequestLinks = {
|
|
2585
|
-
next: string |
|
|
2586
|
-
prev: string |
|
|
2585
|
+
next: string | null;
|
|
2586
|
+
prev: string | null;
|
|
2587
2587
|
};
|
|
2588
2588
|
|
|
2589
2589
|
/** @category Models */
|
|
@@ -2611,8 +2611,8 @@ type Revive = {
|
|
|
2611
2611
|
faction: {
|
|
2612
2612
|
id: FactionId;
|
|
2613
2613
|
name: string;
|
|
2614
|
-
} |
|
|
2615
|
-
skill: number |
|
|
2614
|
+
} | null;
|
|
2615
|
+
skill: number | null;
|
|
2616
2616
|
};
|
|
2617
2617
|
target: {
|
|
2618
2618
|
id: UserId;
|
|
@@ -2620,7 +2620,7 @@ type Revive = {
|
|
|
2620
2620
|
faction: {
|
|
2621
2621
|
id: FactionId;
|
|
2622
2622
|
name: string;
|
|
2623
|
-
} |
|
|
2623
|
+
} | null;
|
|
2624
2624
|
hospital_reason: string;
|
|
2625
2625
|
early_discharge: boolean;
|
|
2626
2626
|
last_action: number;
|
|
@@ -2648,11 +2648,11 @@ type ReviveSimplified = {
|
|
|
2648
2648
|
id: ReviveId;
|
|
2649
2649
|
reviver: {
|
|
2650
2650
|
id: UserId;
|
|
2651
|
-
faction_id: FactionId |
|
|
2651
|
+
faction_id: FactionId | null;
|
|
2652
2652
|
};
|
|
2653
2653
|
target: {
|
|
2654
2654
|
id: UserId;
|
|
2655
|
-
faction_id: FactionId |
|
|
2655
|
+
faction_id: FactionId | null;
|
|
2656
2656
|
hospital_reason: string;
|
|
2657
2657
|
early_discharge: boolean;
|
|
2658
2658
|
last_action: number;
|
|
@@ -2755,12 +2755,12 @@ type TornEducationResponse = {
|
|
|
2755
2755
|
/** @category Models */
|
|
2756
2756
|
type TornEducationRewards = {
|
|
2757
2757
|
working_stats: {
|
|
2758
|
-
manual_labor: number |
|
|
2759
|
-
intelligence: number |
|
|
2760
|
-
endurance: number |
|
|
2758
|
+
manual_labor: number | null;
|
|
2759
|
+
intelligence: number | null;
|
|
2760
|
+
endurance: number | null;
|
|
2761
2761
|
};
|
|
2762
|
-
effect: string |
|
|
2763
|
-
honor: string |
|
|
2762
|
+
effect: string | null;
|
|
2763
|
+
honor: string | null;
|
|
2764
2764
|
};
|
|
2765
2765
|
|
|
2766
2766
|
/** @category Models */
|
|
@@ -2801,7 +2801,7 @@ type TornFactionTreeBranch = {
|
|
|
2801
2801
|
description: string;
|
|
2802
2802
|
amount_required: number;
|
|
2803
2803
|
stat: FactionStatEnum;
|
|
2804
|
-
} |
|
|
2804
|
+
} | null;
|
|
2805
2805
|
}[];
|
|
2806
2806
|
};
|
|
2807
2807
|
|
|
@@ -2870,11 +2870,11 @@ type TornItem = {
|
|
|
2870
2870
|
id: ItemId;
|
|
2871
2871
|
name: string;
|
|
2872
2872
|
description: string;
|
|
2873
|
-
effect: string |
|
|
2874
|
-
requirement: string |
|
|
2873
|
+
effect: string | null;
|
|
2874
|
+
requirement: string | null;
|
|
2875
2875
|
image: string;
|
|
2876
2876
|
type: TornItemTypeEnum;
|
|
2877
|
-
sub_type: TornItemWeaponTypeEnum |
|
|
2877
|
+
sub_type: TornItemWeaponTypeEnum | null;
|
|
2878
2878
|
is_masked: boolean;
|
|
2879
2879
|
is_tradable: boolean;
|
|
2880
2880
|
is_found_in_city: boolean;
|
|
@@ -2882,13 +2882,13 @@ type TornItem = {
|
|
|
2882
2882
|
vendor: {
|
|
2883
2883
|
country: string;
|
|
2884
2884
|
name: string;
|
|
2885
|
-
} |
|
|
2886
|
-
buy_price: number |
|
|
2887
|
-
sell_price: number |
|
|
2885
|
+
} | null;
|
|
2886
|
+
buy_price: number | null;
|
|
2887
|
+
sell_price: number | null;
|
|
2888
2888
|
market_price: number;
|
|
2889
2889
|
};
|
|
2890
2890
|
circulation: number;
|
|
2891
|
-
details: TornItemWeaponDetails | TornItemArmorDetails |
|
|
2891
|
+
details: TornItemWeaponDetails | TornItemArmorDetails | null;
|
|
2892
2892
|
};
|
|
2893
2893
|
|
|
2894
2894
|
/** @category Models */
|
|
@@ -2970,7 +2970,7 @@ type TornItemWeaponDetails = {
|
|
|
2970
2970
|
minimum: number;
|
|
2971
2971
|
maximum: number;
|
|
2972
2972
|
};
|
|
2973
|
-
} |
|
|
2973
|
+
} | null;
|
|
2974
2974
|
mods: ItemModId[];
|
|
2975
2975
|
};
|
|
2976
2976
|
|
|
@@ -3041,7 +3041,7 @@ type TornOrganizedCrime = {
|
|
|
3041
3041
|
difficulty: number;
|
|
3042
3042
|
spawn: TornOrganizedCrimeSpawn;
|
|
3043
3043
|
scope: TornOrganizedCrimeScope;
|
|
3044
|
-
prerequisite: OrganizedCrimeName |
|
|
3044
|
+
prerequisite: OrganizedCrimeName | null;
|
|
3045
3045
|
slots: TornOrganizedCrimeSlot[];
|
|
3046
3046
|
};
|
|
3047
3047
|
|
|
@@ -3070,7 +3070,7 @@ type TornOrganizedCrimeScope = {
|
|
|
3070
3070
|
type TornOrganizedCrimeSlot = {
|
|
3071
3071
|
id: TornOrganizedCrimePositionId;
|
|
3072
3072
|
name: string;
|
|
3073
|
-
required_item: TornOrganizedCrimeRequiredItem |
|
|
3073
|
+
required_item: TornOrganizedCrimeRequiredItem | null;
|
|
3074
3074
|
};
|
|
3075
3075
|
|
|
3076
3076
|
/** @category Models */
|
|
@@ -3106,7 +3106,7 @@ type TornRacket = {
|
|
|
3106
3106
|
type TornRacketReward = {
|
|
3107
3107
|
type: TornRacketType;
|
|
3108
3108
|
quantity: number;
|
|
3109
|
-
id: ItemId |
|
|
3109
|
+
id: ItemId | null;
|
|
3110
3110
|
};
|
|
3111
3111
|
|
|
3112
3112
|
/** @category Models */
|
|
@@ -3257,7 +3257,7 @@ type UserBars = {
|
|
|
3257
3257
|
nerve: UserBar;
|
|
3258
3258
|
happy: UserBar;
|
|
3259
3259
|
life: UserBar;
|
|
3260
|
-
chain: FactionOngoingChain |
|
|
3260
|
+
chain: FactionOngoingChain | null;
|
|
3261
3261
|
};
|
|
3262
3262
|
|
|
3263
3263
|
/** @category Models */
|
|
@@ -3388,7 +3388,7 @@ type UserCrime = {
|
|
|
3388
3388
|
rewards: UserCrimeRewards;
|
|
3389
3389
|
attempts: UserCrimeAttempts;
|
|
3390
3390
|
uniques: UserCrimeUniques[];
|
|
3391
|
-
miscellaneous: UserCrimeDetailsBootlegging | UserCrimeDetailsGraffiti | UserCrimeDetailsShoplifting | UserCrimeDetailsCardSkimming | UserCrimeDetailsHustling | UserCrimeDetailsCracking | UserCrimeDetailsScamming |
|
|
3391
|
+
miscellaneous: UserCrimeDetailsBootlegging | UserCrimeDetailsGraffiti | UserCrimeDetailsShoplifting | UserCrimeDetailsCardSkimming | UserCrimeDetailsHustling | UserCrimeDetailsCracking | UserCrimeDetailsScamming | null;
|
|
3392
3392
|
};
|
|
3393
3393
|
|
|
3394
3394
|
/** @category Models */
|
|
@@ -3536,8 +3536,8 @@ type UserCrimeUniques = {
|
|
|
3536
3536
|
/** @category Models */
|
|
3537
3537
|
type UserCrimeUniquesReward = {
|
|
3538
3538
|
items: UserCrimeRewardItem[];
|
|
3539
|
-
money: UserCrimeUniquesRewardMoney |
|
|
3540
|
-
ammo: UserCrimeUniquesRewardAmmo |
|
|
3539
|
+
money: UserCrimeUniquesRewardMoney | null;
|
|
3540
|
+
ammo: UserCrimeUniquesRewardAmmo | null;
|
|
3541
3541
|
};
|
|
3542
3542
|
|
|
3543
3543
|
/** @category Models */
|
|
@@ -3567,7 +3567,7 @@ type UserDonatorStatusEnum = "Donator" | "Subscriber";
|
|
|
3567
3567
|
/** @category Models */
|
|
3568
3568
|
type UserEducation = {
|
|
3569
3569
|
complete: EducationId[];
|
|
3570
|
-
current: UserCurrentEducation |
|
|
3570
|
+
current: UserCurrentEducation | null;
|
|
3571
3571
|
};
|
|
3572
3572
|
|
|
3573
3573
|
/** @category Models */
|
|
@@ -3614,12 +3614,12 @@ type UserFactionBalance = {
|
|
|
3614
3614
|
|
|
3615
3615
|
/** @category Models */
|
|
3616
3616
|
type UserFactionBalanceResponse = {
|
|
3617
|
-
factionBalance: UserFactionBalance |
|
|
3617
|
+
factionBalance: UserFactionBalance | null;
|
|
3618
3618
|
};
|
|
3619
3619
|
|
|
3620
3620
|
/** @category Models */
|
|
3621
3621
|
type UserFactionResponse = {
|
|
3622
|
-
faction: UserFaction |
|
|
3622
|
+
faction: UserFaction | null;
|
|
3623
3623
|
};
|
|
3624
3624
|
|
|
3625
3625
|
/** @category Models */
|
|
@@ -3676,7 +3676,7 @@ type UserHofStats = {
|
|
|
3676
3676
|
racing_wins: HofValue;
|
|
3677
3677
|
travel_time: HofValue;
|
|
3678
3678
|
working_stats: HofValue;
|
|
3679
|
-
battle_stats: HofValue |
|
|
3679
|
+
battle_stats: HofValue | null;
|
|
3680
3680
|
};
|
|
3681
3681
|
|
|
3682
3682
|
/** @category Models */
|
|
@@ -3695,7 +3695,7 @@ type UserIconId = number;
|
|
|
3695
3695
|
|
|
3696
3696
|
/** @category Models */
|
|
3697
3697
|
type UserIconPrivate = UserIconPublic & {
|
|
3698
|
-
until: number |
|
|
3698
|
+
until: number | null;
|
|
3699
3699
|
};
|
|
3700
3700
|
|
|
3701
3701
|
/** @category Models */
|
|
@@ -3718,9 +3718,9 @@ type UserItemMarkeListingItemDetails = {
|
|
|
3718
3718
|
id: number;
|
|
3719
3719
|
name: string;
|
|
3720
3720
|
type: string;
|
|
3721
|
-
rarity: "yellow" | "orange" | "red" |
|
|
3722
|
-
uid: ItemUid |
|
|
3723
|
-
stats: ItemMarketListingItemStats |
|
|
3721
|
+
rarity: "yellow" | "orange" | "red" | null;
|
|
3722
|
+
uid: ItemUid | null;
|
|
3723
|
+
stats: ItemMarketListingItemStats | null;
|
|
3724
3724
|
bonuses: ItemMarketListingItemBonus[];
|
|
3725
3725
|
};
|
|
3726
3726
|
|
|
@@ -3780,7 +3780,7 @@ type UserJobRanksResponse = {
|
|
|
3780
3780
|
|
|
3781
3781
|
/** @category Models */
|
|
3782
3782
|
type UserJobResponse = {
|
|
3783
|
-
job: UserJob | UserCompany |
|
|
3783
|
+
job: UserJob | UserCompany | null;
|
|
3784
3784
|
};
|
|
3785
3785
|
|
|
3786
3786
|
/**
|
|
@@ -3798,7 +3798,7 @@ type UserList = {
|
|
|
3798
3798
|
id: UserId;
|
|
3799
3799
|
name: string;
|
|
3800
3800
|
level: number;
|
|
3801
|
-
faction_id: FactionId |
|
|
3801
|
+
faction_id: FactionId | null;
|
|
3802
3802
|
last_action: UserLastAction;
|
|
3803
3803
|
status: UserStatus;
|
|
3804
3804
|
};
|
|
@@ -3944,7 +3944,7 @@ type UserOrganizedCrimeError = {
|
|
|
3944
3944
|
|
|
3945
3945
|
/** @category Models */
|
|
3946
3946
|
type UserOrganizedCrimeResponse = {
|
|
3947
|
-
organizedCrime: FactionCrime | UserOrganizedCrimeError |
|
|
3947
|
+
organizedCrime: FactionCrime | UserOrganizedCrimeError | null;
|
|
3948
3948
|
};
|
|
3949
3949
|
|
|
3950
3950
|
/**
|
|
@@ -3989,21 +3989,21 @@ type UserProfileResponse = {
|
|
|
3989
3989
|
level: number;
|
|
3990
3990
|
rank: UserRankEnum | string;
|
|
3991
3991
|
title: UserTitleEnum | string;
|
|
3992
|
-
donator_status: UserDonatorStatusEnum |
|
|
3992
|
+
donator_status: UserDonatorStatusEnum | null;
|
|
3993
3993
|
age: number;
|
|
3994
3994
|
signed_up: number;
|
|
3995
|
-
faction_id: FactionId |
|
|
3995
|
+
faction_id: FactionId | null;
|
|
3996
3996
|
honor_id: HonorId;
|
|
3997
3997
|
property: {
|
|
3998
3998
|
id: PropertyId;
|
|
3999
3999
|
name: string;
|
|
4000
4000
|
};
|
|
4001
|
-
image: string |
|
|
4001
|
+
image: string | null;
|
|
4002
4002
|
gender: UserGenderEnum;
|
|
4003
4003
|
revivable: boolean;
|
|
4004
4004
|
role: UserRoleEnum;
|
|
4005
4005
|
status: UserStatus;
|
|
4006
|
-
spouse: ProfileSpouse |
|
|
4006
|
+
spouse: ProfileSpouse | null;
|
|
4007
4007
|
awards: number;
|
|
4008
4008
|
friends: number;
|
|
4009
4009
|
enemies: number;
|
|
@@ -4082,7 +4082,7 @@ type UserPropertyDetailsExtendedRented = UserPropertyBasicDetails & {
|
|
|
4082
4082
|
cost: number;
|
|
4083
4083
|
period: number;
|
|
4084
4084
|
created_at: number;
|
|
4085
|
-
} |
|
|
4085
|
+
} | null;
|
|
4086
4086
|
};
|
|
4087
4087
|
|
|
4088
4088
|
/** @category Models */
|
|
@@ -4100,7 +4100,7 @@ type UserPropertyResponse = {
|
|
|
4100
4100
|
/** @category Models */
|
|
4101
4101
|
type UserRaceCarDetails = RaceCar & {
|
|
4102
4102
|
id: RaceCarId;
|
|
4103
|
-
name: string |
|
|
4103
|
+
name: string | null;
|
|
4104
4104
|
worth: number;
|
|
4105
4105
|
points_spent: number;
|
|
4106
4106
|
races_entered: number;
|
|
@@ -4176,10 +4176,10 @@ type UserSkillsResponse = {
|
|
|
4176
4176
|
*/
|
|
4177
4177
|
type UserStatus = {
|
|
4178
4178
|
description: string;
|
|
4179
|
-
details: string |
|
|
4179
|
+
details: string | null;
|
|
4180
4180
|
state: UserStatusStateEnum | string;
|
|
4181
4181
|
color: string;
|
|
4182
|
-
until: number |
|
|
4182
|
+
until: number | null;
|
|
4183
4183
|
travel_type?: string;
|
|
4184
4184
|
plane_image_type?: UserPlaneImageTypeEnum;
|
|
4185
4185
|
};
|
|
@@ -4202,9 +4202,9 @@ type UserTitleEnum = "Alcoholic" | "Sharpshooter" | "Accomplice" | "Loser" | "Si
|
|
|
4202
4202
|
type UserTravelResponse = {
|
|
4203
4203
|
travel: {
|
|
4204
4204
|
destination: CountryEnum;
|
|
4205
|
-
method: UserFlyMethodEnum |
|
|
4206
|
-
departed_at: number |
|
|
4207
|
-
arrival_at: number |
|
|
4205
|
+
method: UserFlyMethodEnum | null;
|
|
4206
|
+
departed_at: number | null;
|
|
4207
|
+
arrival_at: number | null;
|
|
4208
4208
|
time_left: number;
|
|
4209
4209
|
};
|
|
4210
4210
|
};
|
|
@@ -4220,7 +4220,7 @@ type UserVirus = {
|
|
|
4220
4220
|
|
|
4221
4221
|
/** @category Models */
|
|
4222
4222
|
type UserVirusResponse = {
|
|
4223
|
-
virus: UserVirus |
|
|
4223
|
+
virus: UserVirus | null;
|
|
4224
4224
|
};
|
|
4225
4225
|
|
|
4226
4226
|
/** @category Models */
|