tornapi-typescript 6.0.2 → 6.0.4
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 +20 -14
- package/dist/index.ts +21 -14
- package/dist/openapi.json +71 -33
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -626,7 +626,6 @@ export interface UserStocksResponse {
|
|
|
626
626
|
}
|
|
627
627
|
export interface UserOrganizedCrimesResponse {
|
|
628
628
|
organizedcrimes: FactionCrime[];
|
|
629
|
-
_metadata: RequestMetadataWithLinks;
|
|
630
629
|
}
|
|
631
630
|
export type UserEquipment = TornItemDetails & {
|
|
632
631
|
slot: number;
|
|
@@ -702,7 +701,7 @@ export interface UserMissionsResponse {
|
|
|
702
701
|
}[];
|
|
703
702
|
}[];
|
|
704
703
|
rewards: {
|
|
705
|
-
type: MissionRewardUpgrade;
|
|
704
|
+
type: MissionRewardUpgrade | string;
|
|
706
705
|
details: MissionRewardDetailsAmmo | MissionRewardDetailsUpgrade | MissionRewardDetailsItem;
|
|
707
706
|
amount: number;
|
|
708
707
|
cost: number;
|
|
@@ -756,6 +755,10 @@ export interface UserCooldownsResponse {
|
|
|
756
755
|
export interface UserBar {
|
|
757
756
|
current: number;
|
|
758
757
|
maximum: number;
|
|
758
|
+
increment: number;
|
|
759
|
+
interval: number;
|
|
760
|
+
tick_time: number;
|
|
761
|
+
full_time: number;
|
|
759
762
|
}
|
|
760
763
|
export interface UserBars {
|
|
761
764
|
energy: UserBar;
|
|
@@ -798,7 +801,7 @@ export interface UserMessage {
|
|
|
798
801
|
export interface UserIconPublic {
|
|
799
802
|
id: UserIconId;
|
|
800
803
|
title: string;
|
|
801
|
-
description: string;
|
|
804
|
+
description: string | null;
|
|
802
805
|
}
|
|
803
806
|
export interface UserIconPrivate extends UserIconPublic {
|
|
804
807
|
until: number | null;
|
|
@@ -1046,7 +1049,7 @@ export interface UserPropertyBasicDetails {
|
|
|
1046
1049
|
}
|
|
1047
1050
|
export interface UserPropertyDetailsExtended extends UserPropertyBasicDetails {
|
|
1048
1051
|
used_by: BasicUser[];
|
|
1049
|
-
status: "none" | "in_use";
|
|
1052
|
+
status: "none" | "in_use" | "for_sale" | "rented" | "for_rent";
|
|
1050
1053
|
}
|
|
1051
1054
|
export interface UserPropertyDetailsExtendedWithRent extends UserPropertyBasicDetails {
|
|
1052
1055
|
used_by: BasicUser[];
|
|
@@ -1257,7 +1260,7 @@ export interface UserRacesResponse {
|
|
|
1257
1260
|
}
|
|
1258
1261
|
export interface UserRaceCarDetails extends RaceCar {
|
|
1259
1262
|
id: RaceCarId;
|
|
1260
|
-
name
|
|
1263
|
+
name?: string | null;
|
|
1261
1264
|
worth: number;
|
|
1262
1265
|
points_spent: number;
|
|
1263
1266
|
races_entered: number;
|
|
@@ -1277,7 +1280,7 @@ export interface UserForumThreadsResponse {
|
|
|
1277
1280
|
_metadata: RequestMetadataWithLinks;
|
|
1278
1281
|
}
|
|
1279
1282
|
export interface UserForumSubscribedThreadsResponse {
|
|
1280
|
-
forumSubscribedThreads
|
|
1283
|
+
forumSubscribedThreads: ForumSubscribedThread[];
|
|
1281
1284
|
}
|
|
1282
1285
|
export interface UserForumFeedResponse {
|
|
1283
1286
|
forumFeed: ForumFeed[];
|
|
@@ -1821,7 +1824,7 @@ export interface PersonalStatsAttackingPublic {
|
|
|
1821
1824
|
elo: number;
|
|
1822
1825
|
unarmored_wins: number;
|
|
1823
1826
|
highest_level_beaten: number;
|
|
1824
|
-
escapes
|
|
1827
|
+
escapes: {
|
|
1825
1828
|
player: number;
|
|
1826
1829
|
foes: number;
|
|
1827
1830
|
};
|
|
@@ -2036,7 +2039,7 @@ export interface FactionRaidReportUser {
|
|
|
2036
2039
|
name: string;
|
|
2037
2040
|
}
|
|
2038
2041
|
export interface FactionRaidWarReportResponse {
|
|
2039
|
-
raidreport: FactionRaidReport
|
|
2042
|
+
raidreport: FactionRaidReport;
|
|
2040
2043
|
}
|
|
2041
2044
|
export interface FactionWarfareDirtyBomb {
|
|
2042
2045
|
id: DirtyBombId;
|
|
@@ -2173,7 +2176,7 @@ export interface FactionTerritoryWarReport {
|
|
|
2173
2176
|
factions: FactionTerritoryWarReportFaction[];
|
|
2174
2177
|
}
|
|
2175
2178
|
export interface FactionTerritoryWarReportResponse {
|
|
2176
|
-
territorywarreport: FactionTerritoryWarReport
|
|
2179
|
+
territorywarreport: FactionTerritoryWarReport;
|
|
2177
2180
|
}
|
|
2178
2181
|
export interface FactionTerritoryOwnership {
|
|
2179
2182
|
id: string;
|
|
@@ -2228,7 +2231,7 @@ export interface FactionUpgradeDetails {
|
|
|
2228
2231
|
ability: string;
|
|
2229
2232
|
level: number;
|
|
2230
2233
|
cost: number;
|
|
2231
|
-
unlocked_at
|
|
2234
|
+
unlocked_at: number;
|
|
2232
2235
|
}
|
|
2233
2236
|
export interface FactionBranchDetails {
|
|
2234
2237
|
name: string;
|
|
@@ -2532,7 +2535,7 @@ export interface FactionChainReportAttackerAttacks {
|
|
|
2532
2535
|
retaliations: number;
|
|
2533
2536
|
overseas: number;
|
|
2534
2537
|
draws: number;
|
|
2535
|
-
escapes
|
|
2538
|
+
escapes: number;
|
|
2536
2539
|
losses: number;
|
|
2537
2540
|
war: number;
|
|
2538
2541
|
bonuses: number;
|
|
@@ -2730,7 +2733,7 @@ export interface CompanyProfileExtended extends CompanyProfile {
|
|
|
2730
2733
|
export interface CompanyUpgrades {
|
|
2731
2734
|
staff_room: CompanyStaffRoomSizeEnum;
|
|
2732
2735
|
storage: string;
|
|
2733
|
-
storage_capacity:
|
|
2736
|
+
storage_capacity: number;
|
|
2734
2737
|
}
|
|
2735
2738
|
export interface CompanyProfile {
|
|
2736
2739
|
id: CompanyId;
|
|
@@ -3021,6 +3024,9 @@ export interface AuctionHouseListing {
|
|
|
3021
3024
|
bids: number;
|
|
3022
3025
|
item: AuctionHouseStackableItem | TornItemDetails;
|
|
3023
3026
|
}
|
|
3027
|
+
export interface AuctionHouseListingResponse {
|
|
3028
|
+
auctionhouselisting: AuctionHouseListing;
|
|
3029
|
+
}
|
|
3024
3030
|
export interface AuctionHouseResponse {
|
|
3025
3031
|
auctionhouse: AuctionHouseListing[];
|
|
3026
3032
|
_metadata: RequestMetadataWithLinks;
|
|
@@ -3477,7 +3483,7 @@ export interface TornEducationRewards {
|
|
|
3477
3483
|
endurance: number | null;
|
|
3478
3484
|
};
|
|
3479
3485
|
effect: string | null;
|
|
3480
|
-
honor:
|
|
3486
|
+
honor: number | null;
|
|
3481
3487
|
}
|
|
3482
3488
|
export interface TornEducationPrerequisites {
|
|
3483
3489
|
cost: number;
|
|
@@ -7527,7 +7533,7 @@ export interface KeyV2 extends BaseSchema {
|
|
|
7527
7533
|
export interface MarketV2 extends BaseSchema {
|
|
7528
7534
|
selections: {
|
|
7529
7535
|
auctionhouselisting: {
|
|
7530
|
-
response:
|
|
7536
|
+
response: AuctionHouseListingResponse;
|
|
7531
7537
|
params: "id" | "timestamp";
|
|
7532
7538
|
};
|
|
7533
7539
|
auctionhouse: {
|
package/dist/index.ts
CHANGED
|
@@ -5666,7 +5666,6 @@ export interface UserStocksResponse {
|
|
|
5666
5666
|
|
|
5667
5667
|
export interface UserOrganizedCrimesResponse {
|
|
5668
5668
|
organizedcrimes: FactionCrime[];
|
|
5669
|
-
_metadata: RequestMetadataWithLinks;
|
|
5670
5669
|
}
|
|
5671
5670
|
|
|
5672
5671
|
export type UserEquipment = TornItemDetails & {
|
|
@@ -5753,7 +5752,7 @@ export interface UserMissionsResponse {
|
|
|
5753
5752
|
}[];
|
|
5754
5753
|
}[];
|
|
5755
5754
|
rewards: {
|
|
5756
|
-
type: MissionRewardUpgrade;
|
|
5755
|
+
type: MissionRewardUpgrade | string;
|
|
5757
5756
|
details:
|
|
5758
5757
|
| MissionRewardDetailsAmmo
|
|
5759
5758
|
| MissionRewardDetailsUpgrade
|
|
@@ -5817,6 +5816,10 @@ export interface UserCooldownsResponse {
|
|
|
5817
5816
|
export interface UserBar {
|
|
5818
5817
|
current: number;
|
|
5819
5818
|
maximum: number;
|
|
5819
|
+
increment: number;
|
|
5820
|
+
interval: number;
|
|
5821
|
+
tick_time: number;
|
|
5822
|
+
full_time: number;
|
|
5820
5823
|
}
|
|
5821
5824
|
|
|
5822
5825
|
export interface UserBars {
|
|
@@ -5868,7 +5871,7 @@ export interface UserMessage {
|
|
|
5868
5871
|
export interface UserIconPublic {
|
|
5869
5872
|
id: UserIconId;
|
|
5870
5873
|
title: string;
|
|
5871
|
-
description: string;
|
|
5874
|
+
description: string | null;
|
|
5872
5875
|
}
|
|
5873
5876
|
|
|
5874
5877
|
export interface UserIconPrivate extends UserIconPublic {
|
|
@@ -6159,7 +6162,7 @@ export interface UserPropertyBasicDetails {
|
|
|
6159
6162
|
|
|
6160
6163
|
export interface UserPropertyDetailsExtended extends UserPropertyBasicDetails {
|
|
6161
6164
|
used_by: BasicUser[];
|
|
6162
|
-
status: "none" | "in_use";
|
|
6165
|
+
status: "none" | "in_use" | "for_sale" | "rented" | "for_rent";
|
|
6163
6166
|
}
|
|
6164
6167
|
|
|
6165
6168
|
export interface UserPropertyDetailsExtendedWithRent extends UserPropertyBasicDetails {
|
|
@@ -6415,7 +6418,7 @@ export interface UserRacesResponse {
|
|
|
6415
6418
|
|
|
6416
6419
|
export interface UserRaceCarDetails extends RaceCar {
|
|
6417
6420
|
id: RaceCarId;
|
|
6418
|
-
name
|
|
6421
|
+
name?: string | null;
|
|
6419
6422
|
worth: number;
|
|
6420
6423
|
points_spent: number;
|
|
6421
6424
|
races_entered: number;
|
|
@@ -6439,7 +6442,7 @@ export interface UserForumThreadsResponse {
|
|
|
6439
6442
|
}
|
|
6440
6443
|
|
|
6441
6444
|
export interface UserForumSubscribedThreadsResponse {
|
|
6442
|
-
forumSubscribedThreads
|
|
6445
|
+
forumSubscribedThreads: ForumSubscribedThread[];
|
|
6443
6446
|
}
|
|
6444
6447
|
|
|
6445
6448
|
export interface UserForumFeedResponse {
|
|
@@ -7039,7 +7042,7 @@ export interface PersonalStatsAttackingPublic {
|
|
|
7039
7042
|
elo: number;
|
|
7040
7043
|
unarmored_wins: number;
|
|
7041
7044
|
highest_level_beaten: number;
|
|
7042
|
-
escapes
|
|
7045
|
+
escapes: {
|
|
7043
7046
|
player: number;
|
|
7044
7047
|
foes: number;
|
|
7045
7048
|
};
|
|
@@ -7574,7 +7577,7 @@ export interface FactionRaidReportUser {
|
|
|
7574
7577
|
}
|
|
7575
7578
|
|
|
7576
7579
|
export interface FactionRaidWarReportResponse {
|
|
7577
|
-
raidreport: FactionRaidReport
|
|
7580
|
+
raidreport: FactionRaidReport;
|
|
7578
7581
|
}
|
|
7579
7582
|
|
|
7580
7583
|
export interface FactionWarfareDirtyBomb {
|
|
@@ -7731,7 +7734,7 @@ export interface FactionTerritoryWarReport {
|
|
|
7731
7734
|
}
|
|
7732
7735
|
|
|
7733
7736
|
export interface FactionTerritoryWarReportResponse {
|
|
7734
|
-
territorywarreport: FactionTerritoryWarReport
|
|
7737
|
+
territorywarreport: FactionTerritoryWarReport;
|
|
7735
7738
|
}
|
|
7736
7739
|
|
|
7737
7740
|
export interface FactionTerritoryOwnership {
|
|
@@ -7796,7 +7799,7 @@ export interface FactionUpgradeDetails {
|
|
|
7796
7799
|
ability: string;
|
|
7797
7800
|
level: number;
|
|
7798
7801
|
cost: number;
|
|
7799
|
-
unlocked_at
|
|
7802
|
+
unlocked_at: number;
|
|
7800
7803
|
}
|
|
7801
7804
|
|
|
7802
7805
|
export interface FactionBranchDetails {
|
|
@@ -8144,7 +8147,7 @@ export interface FactionChainReportAttackerAttacks {
|
|
|
8144
8147
|
retaliations: number;
|
|
8145
8148
|
overseas: number;
|
|
8146
8149
|
draws: number;
|
|
8147
|
-
escapes
|
|
8150
|
+
escapes: number;
|
|
8148
8151
|
losses: number;
|
|
8149
8152
|
war: number;
|
|
8150
8153
|
bonuses: number;
|
|
@@ -8373,7 +8376,7 @@ export interface CompanyProfileExtended extends CompanyProfile {
|
|
|
8373
8376
|
export interface CompanyUpgrades {
|
|
8374
8377
|
staff_room: CompanyStaffRoomSizeEnum;
|
|
8375
8378
|
storage: string;
|
|
8376
|
-
storage_capacity:
|
|
8379
|
+
storage_capacity: number;
|
|
8377
8380
|
}
|
|
8378
8381
|
|
|
8379
8382
|
export interface CompanyProfile {
|
|
@@ -8710,6 +8713,10 @@ export interface AuctionHouseListing {
|
|
|
8710
8713
|
item: AuctionHouseStackableItem | TornItemDetails;
|
|
8711
8714
|
}
|
|
8712
8715
|
|
|
8716
|
+
export interface AuctionHouseListingResponse {
|
|
8717
|
+
auctionhouselisting: AuctionHouseListing;
|
|
8718
|
+
}
|
|
8719
|
+
|
|
8713
8720
|
export interface AuctionHouseResponse {
|
|
8714
8721
|
auctionhouse: AuctionHouseListing[];
|
|
8715
8722
|
_metadata: RequestMetadataWithLinks;
|
|
@@ -9240,7 +9247,7 @@ export interface TornEducationRewards {
|
|
|
9240
9247
|
endurance: number | null;
|
|
9241
9248
|
};
|
|
9242
9249
|
effect: string | null;
|
|
9243
|
-
honor:
|
|
9250
|
+
honor: number | null;
|
|
9244
9251
|
}
|
|
9245
9252
|
|
|
9246
9253
|
export interface TornEducationPrerequisites {
|
|
@@ -13477,7 +13484,7 @@ export interface KeyV2 extends BaseSchema {
|
|
|
13477
13484
|
export interface MarketV2 extends BaseSchema {
|
|
13478
13485
|
selections: {
|
|
13479
13486
|
auctionhouselisting: {
|
|
13480
|
-
response:
|
|
13487
|
+
response: AuctionHouseListingResponse;
|
|
13481
13488
|
params: "id" | "timestamp";
|
|
13482
13489
|
};
|
|
13483
13490
|
auctionhouse: {
|
package/dist/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Torn API",
|
|
5
5
|
"description": "\n * The development of Torn's API v2 is still ongoing.\n * If selections remain unaltered, they will default to the API v1 version.\n * Unlike API v1, API v2 accepts both selections and IDs as path and query parameters.\n * If any discrepancies or errors are found, please submit a [bug report](https://www.torn.com/forums.php#/p=forums&f=19&b=0&a=0) on the Torn Forums.\n * In case you're using bots to check for changes on openapi.json file, make sure to specificy a custom user-agent header - CloudFlare sometimes prevents requests from default user-agents.",
|
|
6
|
-
"version": "6.0.
|
|
6
|
+
"version": "6.0.4"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -2380,7 +2380,7 @@
|
|
|
2380
2380
|
"tags": [
|
|
2381
2381
|
"User"
|
|
2382
2382
|
],
|
|
2383
|
-
"summary": "Get available slots for organized crimes with status 'Recruiting'",
|
|
2383
|
+
"summary": "Get your available slots for organized crimes with status 'Recruiting'",
|
|
2384
2384
|
"description": "Requires minimal access key. <br>Unlike 'faction' -> 'crimes', this selection only shows empty slots, and only for crimes with the 'Recruiting' status.",
|
|
2385
2385
|
"operationId": "getMyAvailableOrganizedCrimes",
|
|
2386
2386
|
"parameters": [
|
|
@@ -2851,7 +2851,7 @@
|
|
|
2851
2851
|
"tags": [
|
|
2852
2852
|
"User"
|
|
2853
2853
|
],
|
|
2854
|
-
"summary": "Get
|
|
2854
|
+
"summary": "Get your races",
|
|
2855
2855
|
"description": "Requires minimal access key. <br>Returns a list of user races, ordered by race start timestamp.",
|
|
2856
2856
|
"operationId": "getMyRaces",
|
|
2857
2857
|
"parameters": [
|
|
@@ -7754,7 +7754,7 @@
|
|
|
7754
7754
|
"content": {
|
|
7755
7755
|
"application/json": {
|
|
7756
7756
|
"schema": {
|
|
7757
|
-
"$ref": "#/components/schemas/
|
|
7757
|
+
"$ref": "#/components/schemas/AuctionHouseListingResponse"
|
|
7758
7758
|
}
|
|
7759
7759
|
}
|
|
7760
7760
|
}
|
|
@@ -8356,7 +8356,7 @@
|
|
|
8356
8356
|
"$ref": "#/components/schemas/AuctionHouseResponse"
|
|
8357
8357
|
},
|
|
8358
8358
|
{
|
|
8359
|
-
"$ref": "#/components/schemas/
|
|
8359
|
+
"$ref": "#/components/schemas/AuctionHouseListingResponse"
|
|
8360
8360
|
},
|
|
8361
8361
|
{
|
|
8362
8362
|
"$ref": "#/components/schemas/MarketPropertiesResponse"
|
|
@@ -18585,8 +18585,8 @@
|
|
|
18585
18585
|
"format": "int64"
|
|
18586
18586
|
},
|
|
18587
18587
|
"price": {
|
|
18588
|
-
"type": "
|
|
18589
|
-
"format": "
|
|
18588
|
+
"type": "number",
|
|
18589
|
+
"format": "float"
|
|
18590
18590
|
},
|
|
18591
18591
|
"timestamp": {
|
|
18592
18592
|
"type": "integer",
|
|
@@ -18661,8 +18661,7 @@
|
|
|
18661
18661
|
},
|
|
18662
18662
|
"UserOrganizedCrimesResponse": {
|
|
18663
18663
|
"required": [
|
|
18664
|
-
"organizedcrimes"
|
|
18665
|
-
"_metadata"
|
|
18664
|
+
"organizedcrimes"
|
|
18666
18665
|
],
|
|
18667
18666
|
"properties": {
|
|
18668
18667
|
"organizedcrimes": {
|
|
@@ -18670,9 +18669,6 @@
|
|
|
18670
18669
|
"items": {
|
|
18671
18670
|
"$ref": "#/components/schemas/FactionCrime"
|
|
18672
18671
|
}
|
|
18673
|
-
},
|
|
18674
|
-
"_metadata": {
|
|
18675
|
-
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
18676
18672
|
}
|
|
18677
18673
|
},
|
|
18678
18674
|
"type": "object"
|
|
@@ -19047,7 +19043,14 @@
|
|
|
19047
19043
|
],
|
|
19048
19044
|
"properties": {
|
|
19049
19045
|
"type": {
|
|
19050
|
-
"
|
|
19046
|
+
"oneOf": [
|
|
19047
|
+
{
|
|
19048
|
+
"$ref": "#/components/schemas/MissionRewardUpgrade"
|
|
19049
|
+
},
|
|
19050
|
+
{
|
|
19051
|
+
"type": "string"
|
|
19052
|
+
}
|
|
19053
|
+
]
|
|
19051
19054
|
},
|
|
19052
19055
|
"details": {
|
|
19053
19056
|
"description": "The response depends on the 'type' value.",
|
|
@@ -19295,7 +19298,11 @@
|
|
|
19295
19298
|
"UserBar": {
|
|
19296
19299
|
"required": [
|
|
19297
19300
|
"current",
|
|
19298
|
-
"maximum"
|
|
19301
|
+
"maximum",
|
|
19302
|
+
"increment",
|
|
19303
|
+
"interval",
|
|
19304
|
+
"tick_time",
|
|
19305
|
+
"full_time"
|
|
19299
19306
|
],
|
|
19300
19307
|
"properties": {
|
|
19301
19308
|
"current": {
|
|
@@ -19305,6 +19312,22 @@
|
|
|
19305
19312
|
"maximum": {
|
|
19306
19313
|
"type": "integer",
|
|
19307
19314
|
"format": "int32"
|
|
19315
|
+
},
|
|
19316
|
+
"increment": {
|
|
19317
|
+
"type": "integer",
|
|
19318
|
+
"format": "int32"
|
|
19319
|
+
},
|
|
19320
|
+
"interval": {
|
|
19321
|
+
"type": "integer",
|
|
19322
|
+
"format": "int32"
|
|
19323
|
+
},
|
|
19324
|
+
"tick_time": {
|
|
19325
|
+
"type": "integer",
|
|
19326
|
+
"format": "int32"
|
|
19327
|
+
},
|
|
19328
|
+
"full_time": {
|
|
19329
|
+
"type": "integer",
|
|
19330
|
+
"format": "int32"
|
|
19308
19331
|
}
|
|
19309
19332
|
},
|
|
19310
19333
|
"type": "object"
|
|
@@ -19488,7 +19511,14 @@
|
|
|
19488
19511
|
"type": "string"
|
|
19489
19512
|
},
|
|
19490
19513
|
"description": {
|
|
19491
|
-
"
|
|
19514
|
+
"oneOf": [
|
|
19515
|
+
{
|
|
19516
|
+
"type": "string"
|
|
19517
|
+
},
|
|
19518
|
+
{
|
|
19519
|
+
"type": "null"
|
|
19520
|
+
}
|
|
19521
|
+
]
|
|
19492
19522
|
}
|
|
19493
19523
|
},
|
|
19494
19524
|
"type": "object"
|
|
@@ -20682,7 +20712,10 @@
|
|
|
20682
20712
|
"type": "string",
|
|
20683
20713
|
"enum": [
|
|
20684
20714
|
"none",
|
|
20685
|
-
"in_use"
|
|
20715
|
+
"in_use",
|
|
20716
|
+
"for_sale",
|
|
20717
|
+
"rented",
|
|
20718
|
+
"for_rent"
|
|
20686
20719
|
]
|
|
20687
20720
|
}
|
|
20688
20721
|
},
|
|
@@ -21748,7 +21781,6 @@
|
|
|
21748
21781
|
{
|
|
21749
21782
|
"required": [
|
|
21750
21783
|
"id",
|
|
21751
|
-
"name",
|
|
21752
21784
|
"worth",
|
|
21753
21785
|
"points_spent",
|
|
21754
21786
|
"races_entered",
|
|
@@ -21852,7 +21884,7 @@
|
|
|
21852
21884
|
},
|
|
21853
21885
|
"UserForumSubscribedThreadsResponse": {
|
|
21854
21886
|
"required": [
|
|
21855
|
-
"
|
|
21887
|
+
"forumSubscribedThreads"
|
|
21856
21888
|
],
|
|
21857
21889
|
"properties": {
|
|
21858
21890
|
"forumSubscribedThreads": {
|
|
@@ -24310,7 +24342,7 @@
|
|
|
24310
24342
|
"elo",
|
|
24311
24343
|
"unarmored_wins",
|
|
24312
24344
|
"highest_level_beaten",
|
|
24313
|
-
"
|
|
24345
|
+
"escapes",
|
|
24314
24346
|
"killstreak",
|
|
24315
24347
|
"hits",
|
|
24316
24348
|
"damage",
|
|
@@ -25769,10 +25801,7 @@
|
|
|
25769
25801
|
],
|
|
25770
25802
|
"properties": {
|
|
25771
25803
|
"raidreport": {
|
|
25772
|
-
"
|
|
25773
|
-
"items": {
|
|
25774
|
-
"$ref": "#/components/schemas/FactionRaidReport"
|
|
25775
|
-
}
|
|
25804
|
+
"$ref": "#/components/schemas/FactionRaidReport"
|
|
25776
25805
|
}
|
|
25777
25806
|
},
|
|
25778
25807
|
"type": "object"
|
|
@@ -26391,10 +26420,7 @@
|
|
|
26391
26420
|
],
|
|
26392
26421
|
"properties": {
|
|
26393
26422
|
"territorywarreport": {
|
|
26394
|
-
"
|
|
26395
|
-
"items": {
|
|
26396
|
-
"$ref": "#/components/schemas/FactionTerritoryWarReport"
|
|
26397
|
-
}
|
|
26423
|
+
"$ref": "#/components/schemas/FactionTerritoryWarReport"
|
|
26398
26424
|
}
|
|
26399
26425
|
},
|
|
26400
26426
|
"type": "object"
|
|
@@ -26639,7 +26665,7 @@
|
|
|
26639
26665
|
"ability",
|
|
26640
26666
|
"level",
|
|
26641
26667
|
"cost",
|
|
26642
|
-
"
|
|
26668
|
+
"unlocked_at"
|
|
26643
26669
|
],
|
|
26644
26670
|
"properties": {
|
|
26645
26671
|
"id": {
|
|
@@ -27978,7 +28004,7 @@
|
|
|
27978
28004
|
"retaliations",
|
|
27979
28005
|
"overseas",
|
|
27980
28006
|
"draws",
|
|
27981
|
-
"
|
|
28007
|
+
"escapes",
|
|
27982
28008
|
"losses",
|
|
27983
28009
|
"war",
|
|
27984
28010
|
"bonuses"
|
|
@@ -29020,7 +29046,8 @@
|
|
|
29020
29046
|
"type": "string"
|
|
29021
29047
|
},
|
|
29022
29048
|
"storage_capacity": {
|
|
29023
|
-
"
|
|
29049
|
+
"type": "integer",
|
|
29050
|
+
"format": "int32"
|
|
29024
29051
|
}
|
|
29025
29052
|
},
|
|
29026
29053
|
"type": "object"
|
|
@@ -30429,6 +30456,17 @@
|
|
|
30429
30456
|
},
|
|
30430
30457
|
"type": "object"
|
|
30431
30458
|
},
|
|
30459
|
+
"AuctionHouseListingResponse": {
|
|
30460
|
+
"required": [
|
|
30461
|
+
"auctionhouselisting"
|
|
30462
|
+
],
|
|
30463
|
+
"properties": {
|
|
30464
|
+
"auctionhouselisting": {
|
|
30465
|
+
"$ref": "#/components/schemas/AuctionHouseListing"
|
|
30466
|
+
}
|
|
30467
|
+
},
|
|
30468
|
+
"type": "object"
|
|
30469
|
+
},
|
|
30432
30470
|
"AuctionHouseResponse": {
|
|
30433
30471
|
"required": [
|
|
30434
30472
|
"auctionhouse",
|
|
@@ -32387,7 +32425,6 @@
|
|
|
32387
32425
|
"description",
|
|
32388
32426
|
"type",
|
|
32389
32427
|
"circulation",
|
|
32390
|
-
"equipped",
|
|
32391
32428
|
"rarity"
|
|
32392
32429
|
],
|
|
32393
32430
|
"properties": {
|
|
@@ -32696,7 +32733,8 @@
|
|
|
32696
32733
|
"honor": {
|
|
32697
32734
|
"oneOf": [
|
|
32698
32735
|
{
|
|
32699
|
-
"type": "
|
|
32736
|
+
"type": "integer",
|
|
32737
|
+
"format": "int32"
|
|
32700
32738
|
},
|
|
32701
32739
|
{
|
|
32702
32740
|
"type": "null"
|
|
@@ -33111,7 +33149,7 @@
|
|
|
33111
33149
|
"oneOf": [
|
|
33112
33150
|
{
|
|
33113
33151
|
"type": "integer",
|
|
33114
|
-
"format": "
|
|
33152
|
+
"format": "int64"
|
|
33115
33153
|
},
|
|
33116
33154
|
{
|
|
33117
33155
|
"type": "string"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
|
|
7
7
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@scalar/openapi-types": "^0.9.1",
|
|
13
13
|
"@types/node": "^25.9.5",
|
|
14
|
-
"prettier": "^3.9.
|
|
14
|
+
"prettier": "^3.9.5",
|
|
15
15
|
"typeconv": "^2.3.1",
|
|
16
16
|
"typescript": "^6.0.3"
|
|
17
17
|
},
|