tornapi-typescript 5.7.1 → 5.8.1

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 CHANGED
@@ -55,7 +55,7 @@ export type JobPositionMedicalEnum = "Medical Student" | "Houseman" | "Senior Ho
55
55
  export type JobPositionLawEnum = "Law Student" | "Paralegal" | "Probate Lawyer" | "Trial Lawyer" | "Circuit Court Judge" | "Federal Judge";
56
56
  export type JobPositionEducationEnum = "Recess Supervisor" | "Substitute Teacher" | "Elementary Teacher" | "Secondary Teacher" | "Professor" | "Vice-Principal" | "Principal";
57
57
  export type RaceCarUpgradeSubCategory = "Engine Cooling" | "Front Diffuser" | "Rear Diffuser" | "Spoiler" | "Brake Accessory" | "Brake Control" | "Callipers" | "Discs" | "Brake Cooling" | "Fluid" | "Rear Control Arms" | "Springs" | "Upper Front Brace" | "Clutch" | "Differential" | "Flywheel" | "Gearbox" | "Shifting" | "Boot" | "Hood" | "Interior" | "Roof" | "Steering wheel" | "Strip out" | "Windows" | "Tyres" | "Wheels" | "Rear Bushes" | "Rear Brace" | "Lower Front Brace" | "Front Tie Rods" | "Front Bushes" | "Seat" | "Safety Accessory" | "Roll cage" | "Overalls" | "Helmet" | "Fire Extinguisher" | "Cut-off" | "Fuel" | "Manifold" | "Exhaust" | "Air Filter" | "Turbo" | "Pistons" | "Intercooler" | "Gasket" | "Fuel Pump" | "Engine Porting" | "Engine Cleaning" | "Computer" | "Camshaft" | "Pads";
58
- export type FactionApplicationStatusEnum = "accepted" | "declined" | "withdrawn" | "active";
58
+ export type ApplicationStatusEnum = "accepted" | "declined" | "withdrawn" | "active";
59
59
  export type FactionRankedWarsCategoryEnum = "all" | "ongoing";
60
60
  export type FactionTerritoryWarsCategoryEnum = "finsihed" | "ongoing";
61
61
  /**
@@ -86,6 +86,7 @@ export type TerritoryWarId = number;
86
86
  export type RaidWarId = number;
87
87
  export type ItemUid = number;
88
88
  export type UserId = number;
89
+ export type CompanyPositionId = number;
89
90
  export type TradeId = number;
90
91
  export type StockId = number;
91
92
  export type DiscordId = string;
@@ -137,6 +138,8 @@ export interface RequestMetadataWithLinksAndTotal {
137
138
  */
138
139
  export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
139
140
  export type UserGenderEnum = "Male" | "Female" | "Enby";
141
+ export type CompanyStaffRoomSizeEnum = "No staff room" | "Small staff room" | "Standard staff room" | "Large staff room" | "Very large staff room" | "Huge staff room" | "Colossal staff room";
142
+ export type CompanyStorageSizeEnum = "Small room" | "Standard room" | "Large room" | "Huge room" | "Warehouse" | "Large warehouse" | "Huge warehouse";
140
143
  export type HonorRarityEnum = "Extremely Rare" | "Very Rare" | "Rare" | "Limited" | "Uncommon" | "Common" | "Very Common" | "Unknown" | "Unknown Rarity";
141
144
  export type AwardCrimesVersionEnum = "v1" | "v2";
142
145
  export type Parameters = string;
@@ -493,6 +496,15 @@ export interface ErrorCategorySelectionUnavailableForInteractionLogs {
493
496
  error: string;
494
497
  }
495
498
  export type ApiError = ErrorUnknown | ErrorKeyEmpty | ErrorIncorrectKey | ErrorWrongType | ErrorWrongFields | ErrorTooManyRequests | ErrorIncorrectId | ErrorIncorrectIdEntityRelation | ErrorIpBlocked | ErrorApiDisabled | ErrorKeyOwnerInFederalJail | ErrorKeyChangeCooldown | ErrorKeyReadError | ErrorKeyTemporaryDisabled | ErrorDailyReadLimitReached | ErrorLogUnavailable | ErrorAccessLevelTooLow | ErrorBackendError | ErrorApiKeyPaused | ErrorMustMigrateToCrimesV2 | ErrorRaceNotFinished | ErrorIncorrectCategory | ErrorOnlyAvailableInApiV1 | ErrorOnlyAvailableInApiV2 | ErrorClosedTemporarily | ErrorInvalidStatRequested | ErrorOnlyCategoryOrStatsAllowed | ErrorMustMigrateToOrganizedCrimesV2 | ErrorIncorrectLogId | ErrorCategorySelectionUnavailableForInteractionLogs;
499
+ export interface UserItemMod {
500
+ id: ItemModId;
501
+ title: string;
502
+ equipped: boolean;
503
+ equipped_item_uid: ItemUid | null;
504
+ }
505
+ export interface UserItemModsResponse {
506
+ itemmods: UserItemMod[];
507
+ }
496
508
  export interface UserTradesResponse {
497
509
  trades: UserTrade[];
498
510
  _metadata: RequestMetadataWithLinks;
@@ -612,7 +624,18 @@ export interface UserOrganizedCrimesResponse {
612
624
  }
613
625
  export type UserEquipment = TornItemDetails & {
614
626
  slot: number;
627
+ mods: UserEquipmentItemMod[];
628
+ ammo: {
629
+ id: AmmoId;
630
+ name: string;
631
+ quantity: number;
632
+ type: TornItemAmmoTypeEnum;
633
+ };
615
634
  };
635
+ export interface UserEquipmentItemMod {
636
+ id: ItemModId;
637
+ name: string;
638
+ }
616
639
  export interface UserClothing {
617
640
  id: ItemId;
618
641
  name: string;
@@ -2409,7 +2432,7 @@ export interface FactionApplication {
2409
2432
  };
2410
2433
  message: string | null;
2411
2434
  valid_until: number;
2412
- status: FactionApplicationStatusEnum;
2435
+ status: ApplicationStatusEnum;
2413
2436
  }
2414
2437
  export interface FactionApplicationsResponse {
2415
2438
  applications: FactionApplication[];
@@ -2664,6 +2687,152 @@ export interface FactionRankedWarReportResponse {
2664
2687
  }[];
2665
2688
  };
2666
2689
  }
2690
+ /**
2691
+ * The following selections will fallback to API v1 and may change at any time: 'companies', 'news', 'search'.
2692
+ * * The following selections are not available in API v2: 'details'.
2693
+ */
2694
+ export type CompanySelectionName = string;
2695
+ export interface CompanyLookupResponse {
2696
+ selections: CompanySelectionName[];
2697
+ }
2698
+ export interface CompanyProfileResponse {
2699
+ profile: CompanyProfile;
2700
+ }
2701
+ export interface CompanyProfileExtendedResponse {
2702
+ profile: CompanyProfileExtended;
2703
+ }
2704
+ export interface CompanyProfileResponseMixed {
2705
+ profile: CompanyProfile | CompanyProfileExtended;
2706
+ }
2707
+ export interface CompanyProfileExtended extends CompanyProfile {
2708
+ funds: number;
2709
+ popularity: number;
2710
+ efficiency: number;
2711
+ environment: number;
2712
+ trains: number;
2713
+ applications_allowed: boolean;
2714
+ advertisement_budget: number;
2715
+ upgrades: CompanyUpgrades;
2716
+ value: number;
2717
+ }
2718
+ export interface CompanyUpgrades {
2719
+ staff_room: CompanyStaffRoomSizeEnum;
2720
+ storage: string;
2721
+ storage_capacity: CompanyStorageSizeEnum;
2722
+ }
2723
+ export interface CompanyProfile {
2724
+ id: CompanyId;
2725
+ name: string;
2726
+ created_at: number;
2727
+ days_old: number;
2728
+ image: string;
2729
+ type: CompanyType;
2730
+ rating: number;
2731
+ director: CompanyDirector;
2732
+ employees: CompanyEmployees;
2733
+ income: CompanyIncome;
2734
+ customers: CompanyCustomers;
2735
+ }
2736
+ export interface CompanyType {
2737
+ id: CompanyTypeId;
2738
+ name: string;
2739
+ }
2740
+ export interface CompanyDirector {
2741
+ id: UserId;
2742
+ name: string;
2743
+ status: UserStatus;
2744
+ last_action: UserLastAction;
2745
+ }
2746
+ export interface CompanyEmployees {
2747
+ hired: number;
2748
+ capacity: number;
2749
+ }
2750
+ export interface CompanyIncome {
2751
+ daily: number;
2752
+ weekly: number;
2753
+ }
2754
+ export interface CompanyCustomers {
2755
+ daily: number;
2756
+ weekly: number;
2757
+ }
2758
+ export interface CompanyEmployeesResponse {
2759
+ employees: (CompanyEmployee | CompanyEmployeeExtended | CompanyEmployeeFull)[];
2760
+ }
2761
+ export interface CompanyEmployeesResponseBasic {
2762
+ employees: CompanyEmployee[];
2763
+ }
2764
+ export interface CompanyEmployeeExtended extends CompanyEmployee {
2765
+ stats: CompanyEmployeeStats;
2766
+ effectiveness: CompanyEmployeeEffectiveness;
2767
+ }
2768
+ export type CompanyEmployeeFull = CompanyEmployeeExtended & {
2769
+ joined_at: number;
2770
+ wage: number;
2771
+ value: number | null;
2772
+ };
2773
+ export interface CompanyEmployeeStats {
2774
+ manual_labor: number;
2775
+ intelligence: number;
2776
+ endurance: number;
2777
+ }
2778
+ export interface CompanyEmployeeEffectiveness {
2779
+ working_stats: number;
2780
+ settled_in: number;
2781
+ book: number;
2782
+ merits: number;
2783
+ director_education: number;
2784
+ management: number;
2785
+ wrong_gender: number;
2786
+ addiction: number;
2787
+ inactivity: number;
2788
+ total: number;
2789
+ }
2790
+ export interface CompanyEmployee {
2791
+ id: UserId;
2792
+ name: string;
2793
+ position: CompanyEmployeePosition;
2794
+ days_in_company: number;
2795
+ status: UserStatus;
2796
+ last_action: UserLastAction;
2797
+ }
2798
+ export interface CompanyEmployeePosition {
2799
+ id: CompanyPositionId;
2800
+ name: string;
2801
+ }
2802
+ export interface CompanyStockResponse {
2803
+ stock: CompanyStockItem[];
2804
+ }
2805
+ export interface CompanyStockItem {
2806
+ name: string;
2807
+ id: number;
2808
+ cost: number;
2809
+ rrp: number;
2810
+ price: number;
2811
+ in_stock: number;
2812
+ on_order: number;
2813
+ sold_amount: number;
2814
+ sold_worth: number;
2815
+ }
2816
+ export interface CompanyApplicationsResponse {
2817
+ applications: CompanyApplication[];
2818
+ }
2819
+ export interface CompanyApplication {
2820
+ player: CompanyApplicationPlayer;
2821
+ message: string | null;
2822
+ expires_at: number;
2823
+ status: ApplicationStatusEnum;
2824
+ }
2825
+ export interface CompanyApplicationPlayer {
2826
+ id: UserId;
2827
+ name: string;
2828
+ level: number;
2829
+ stats: CompanyApplicationPlayerStats;
2830
+ }
2831
+ export interface CompanyApplicationPlayerStats {
2832
+ manual_labor: number;
2833
+ intelligence: number;
2834
+ endurance: number;
2835
+ }
2667
2836
  export interface ForumCategoriesResponse {
2668
2837
  categories: {
2669
2838
  id: ForumId;
@@ -2851,7 +3020,7 @@ export interface MarketRentalsResponse {
2851
3020
  rentals_timestamp: number;
2852
3021
  /** The minimum amount of time needed before the cache timestamp can change. */
2853
3022
  rentals_delay?: number;
2854
- _metadata: RequestMetadataWithLinks;
3023
+ _metadata: RequestMetadataWithLinksAndTotal;
2855
3024
  }
2856
3025
  export interface MarketPropertyDetails {
2857
3026
  listings: {
@@ -2868,7 +3037,7 @@ export interface MarketPropertiesResponse {
2868
3037
  properties_timestamp: number;
2869
3038
  /** The minimum amount of time needed before the cache timestamp can change. */
2870
3039
  properties_delay?: number;
2871
- _metadata: RequestMetadataWithLinks;
3040
+ _metadata: RequestMetadataWithLinksAndTotal;
2872
3041
  }
2873
3042
  export interface BazaarWeekly {
2874
3043
  busiest: BazaarWeeklyCustomers[];
@@ -2961,7 +3130,7 @@ export interface ItemMarket {
2961
3130
  }
2962
3131
  export interface MarketItemMarketResponse {
2963
3132
  itemmarket: ItemMarket;
2964
- _metadata: RequestMetadataWithLinks;
3133
+ _metadata: RequestMetadataWithLinksAndTotal;
2965
3134
  }
2966
3135
  /** The following selections will fallback to API v1 and may change at any time: 'pointsmarket'. */
2967
3136
  export type MarketSelectionName = string;
@@ -3486,6 +3655,7 @@ export interface TornItemAmmoResponse {
3486
3655
  export interface TornItemMods {
3487
3656
  id: ItemModId;
3488
3657
  name: string;
3658
+ image: string;
3489
3659
  description: string;
3490
3660
  /** Whether the upgrade fits on dual weapons. */
3491
3661
  dual_fit: boolean;
@@ -6957,6 +7127,10 @@ export interface UserV2 extends BaseSchema {
6957
7127
  response: UserItemMarketResponse;
6958
7128
  params: "offset" | "timestamp";
6959
7129
  };
7130
+ itemmods: {
7131
+ response: UserItemModsResponse;
7132
+ params: "timestamp";
7133
+ };
6960
7134
  job: {
6961
7135
  response: UserJobResponse;
6962
7136
  params: "timestamp";
@@ -7239,6 +7413,34 @@ export interface FactionV2 extends BaseSchema {
7239
7413
  };
7240
7414
  };
7241
7415
  }
7416
+ export interface CompanyV2 extends BaseSchema {
7417
+ selections: {
7418
+ applications: {
7419
+ response: CompanyApplicationsResponse;
7420
+ params: "timestamp";
7421
+ };
7422
+ employees: {
7423
+ response: CompanyEmployeesResponse;
7424
+ params: "striptags" | "timestamp";
7425
+ };
7426
+ profile: {
7427
+ response: CompanyProfileResponseMixed;
7428
+ params: "striptags" | "timestamp";
7429
+ };
7430
+ stock: {
7431
+ response: CompanyStockResponse;
7432
+ params: "timestamp";
7433
+ };
7434
+ lookup: {
7435
+ response: CompanyLookupResponse;
7436
+ params: "timestamp";
7437
+ };
7438
+ timestamp: {
7439
+ response: TimestampResponse;
7440
+ params: "timestamp";
7441
+ };
7442
+ };
7443
+ }
7242
7444
  export interface ForumV2 extends BaseSchema {
7243
7445
  selections: {
7244
7446
  categories: {
@@ -7478,6 +7680,7 @@ export interface TornV2 extends BaseSchema {
7478
7680
  export interface SectionsV2Map {
7479
7681
  user: UserV2;
7480
7682
  faction: FactionV2;
7683
+ company: CompanyV2;
7481
7684
  forum: ForumV2;
7482
7685
  key: KeyV2;
7483
7686
  market: MarketV2;
package/dist/index.ts CHANGED
@@ -4722,7 +4722,7 @@ export type RaceCarUpgradeSubCategory =
4722
4722
  | "Camshaft"
4723
4723
  | "Pads";
4724
4724
 
4725
- export type FactionApplicationStatusEnum =
4725
+ export type ApplicationStatusEnum =
4726
4726
  | "accepted"
4727
4727
  | "declined"
4728
4728
  | "withdrawn"
@@ -4789,6 +4789,8 @@ export type ItemUid = number;
4789
4789
 
4790
4790
  export type UserId = number;
4791
4791
 
4792
+ export type CompanyPositionId = number;
4793
+
4792
4794
  export type TradeId = number;
4793
4795
 
4794
4796
  export type StockId = number;
@@ -4871,6 +4873,24 @@ export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
4871
4873
 
4872
4874
  export type UserGenderEnum = "Male" | "Female" | "Enby";
4873
4875
 
4876
+ export type CompanyStaffRoomSizeEnum =
4877
+ | "No staff room"
4878
+ | "Small staff room"
4879
+ | "Standard staff room"
4880
+ | "Large staff room"
4881
+ | "Very large staff room"
4882
+ | "Huge staff room"
4883
+ | "Colossal staff room";
4884
+
4885
+ export type CompanyStorageSizeEnum =
4886
+ | "Small room"
4887
+ | "Standard room"
4888
+ | "Large room"
4889
+ | "Huge room"
4890
+ | "Warehouse"
4891
+ | "Large warehouse"
4892
+ | "Huge warehouse";
4893
+
4874
4894
  export type HonorRarityEnum =
4875
4895
  | "Extremely Rare"
4876
4896
  | "Very Rare"
@@ -5556,6 +5576,17 @@ export type ApiError =
5556
5576
  | ErrorIncorrectLogId
5557
5577
  | ErrorCategorySelectionUnavailableForInteractionLogs;
5558
5578
 
5579
+ export interface UserItemMod {
5580
+ id: ItemModId;
5581
+ title: string;
5582
+ equipped: boolean;
5583
+ equipped_item_uid: ItemUid | null;
5584
+ }
5585
+
5586
+ export interface UserItemModsResponse {
5587
+ itemmods: UserItemMod[];
5588
+ }
5589
+
5559
5590
  export interface UserTradesResponse {
5560
5591
  trades: UserTrade[];
5561
5592
  _metadata: RequestMetadataWithLinks;
@@ -5701,8 +5732,20 @@ export interface UserOrganizedCrimesResponse {
5701
5732
 
5702
5733
  export type UserEquipment = TornItemDetails & {
5703
5734
  slot: number;
5735
+ mods: UserEquipmentItemMod[];
5736
+ ammo: {
5737
+ id: AmmoId;
5738
+ name: string;
5739
+ quantity: number;
5740
+ type: TornItemAmmoTypeEnum;
5741
+ };
5704
5742
  };
5705
5743
 
5744
+ export interface UserEquipmentItemMod {
5745
+ id: ItemModId;
5746
+ name: string;
5747
+ }
5748
+
5706
5749
  export interface UserClothing {
5707
5750
  id: ItemId;
5708
5751
  name: string;
@@ -8055,7 +8098,7 @@ export interface FactionApplication {
8055
8098
  };
8056
8099
  message: string | null;
8057
8100
  valid_until: number;
8058
- status: FactionApplicationStatusEnum;
8101
+ status: ApplicationStatusEnum;
8059
8102
  }
8060
8103
 
8061
8104
  export interface FactionApplicationsResponse {
@@ -8346,6 +8389,183 @@ export interface FactionRankedWarReportResponse {
8346
8389
  };
8347
8390
  }
8348
8391
 
8392
+ /**
8393
+ * The following selections will fallback to API v1 and may change at any time: 'companies', 'news', 'search'.
8394
+ * * The following selections are not available in API v2: 'details'.
8395
+ */
8396
+ export type CompanySelectionName = string;
8397
+
8398
+ export interface CompanyLookupResponse {
8399
+ selections: CompanySelectionName[];
8400
+ }
8401
+
8402
+ export interface CompanyProfileResponse {
8403
+ profile: CompanyProfile;
8404
+ }
8405
+
8406
+ export interface CompanyProfileExtendedResponse {
8407
+ profile: CompanyProfileExtended;
8408
+ }
8409
+
8410
+ export interface CompanyProfileResponseMixed {
8411
+ profile: CompanyProfile | CompanyProfileExtended;
8412
+ }
8413
+
8414
+ export interface CompanyProfileExtended extends CompanyProfile {
8415
+ funds: number;
8416
+ popularity: number;
8417
+ efficiency: number;
8418
+ environment: number;
8419
+ trains: number;
8420
+ applications_allowed: boolean;
8421
+ advertisement_budget: number;
8422
+ upgrades: CompanyUpgrades;
8423
+ value: number;
8424
+ }
8425
+
8426
+ export interface CompanyUpgrades {
8427
+ staff_room: CompanyStaffRoomSizeEnum;
8428
+ storage: string;
8429
+ storage_capacity: CompanyStorageSizeEnum;
8430
+ }
8431
+
8432
+ export interface CompanyProfile {
8433
+ id: CompanyId;
8434
+ name: string;
8435
+ created_at: number;
8436
+ days_old: number;
8437
+ image: string;
8438
+ type: CompanyType;
8439
+ rating: number;
8440
+ director: CompanyDirector;
8441
+ employees: CompanyEmployees;
8442
+ income: CompanyIncome;
8443
+ customers: CompanyCustomers;
8444
+ }
8445
+
8446
+ export interface CompanyType {
8447
+ id: CompanyTypeId;
8448
+ name: string;
8449
+ }
8450
+
8451
+ export interface CompanyDirector {
8452
+ id: UserId;
8453
+ name: string;
8454
+ status: UserStatus;
8455
+ last_action: UserLastAction;
8456
+ }
8457
+
8458
+ export interface CompanyEmployees {
8459
+ hired: number;
8460
+ capacity: number;
8461
+ }
8462
+
8463
+ export interface CompanyIncome {
8464
+ daily: number;
8465
+ weekly: number;
8466
+ }
8467
+
8468
+ export interface CompanyCustomers {
8469
+ daily: number;
8470
+ weekly: number;
8471
+ }
8472
+
8473
+ export interface CompanyEmployeesResponse {
8474
+ employees: (
8475
+ | CompanyEmployee
8476
+ | CompanyEmployeeExtended
8477
+ | CompanyEmployeeFull
8478
+ )[];
8479
+ }
8480
+
8481
+ export interface CompanyEmployeesResponseBasic {
8482
+ employees: CompanyEmployee[];
8483
+ }
8484
+
8485
+ export interface CompanyEmployeeExtended extends CompanyEmployee {
8486
+ stats: CompanyEmployeeStats;
8487
+ effectiveness: CompanyEmployeeEffectiveness;
8488
+ }
8489
+
8490
+ export type CompanyEmployeeFull = CompanyEmployeeExtended & {
8491
+ joined_at: number;
8492
+ wage: number;
8493
+ value: number | null;
8494
+ };
8495
+
8496
+ export interface CompanyEmployeeStats {
8497
+ manual_labor: number;
8498
+ intelligence: number;
8499
+ endurance: number;
8500
+ }
8501
+
8502
+ export interface CompanyEmployeeEffectiveness {
8503
+ working_stats: number;
8504
+ settled_in: number;
8505
+ book: number;
8506
+ merits: number;
8507
+ director_education: number;
8508
+ management: number;
8509
+ wrong_gender: number;
8510
+ addiction: number;
8511
+ inactivity: number;
8512
+ total: number;
8513
+ }
8514
+
8515
+ export interface CompanyEmployee {
8516
+ id: UserId;
8517
+ name: string;
8518
+ position: CompanyEmployeePosition;
8519
+ days_in_company: number;
8520
+ status: UserStatus;
8521
+ last_action: UserLastAction;
8522
+ }
8523
+
8524
+ export interface CompanyEmployeePosition {
8525
+ id: CompanyPositionId;
8526
+ name: string;
8527
+ }
8528
+
8529
+ export interface CompanyStockResponse {
8530
+ stock: CompanyStockItem[];
8531
+ }
8532
+
8533
+ export interface CompanyStockItem {
8534
+ name: string;
8535
+ id: number;
8536
+ cost: number;
8537
+ rrp: number;
8538
+ price: number;
8539
+ in_stock: number;
8540
+ on_order: number;
8541
+ sold_amount: number;
8542
+ sold_worth: number;
8543
+ }
8544
+
8545
+ export interface CompanyApplicationsResponse {
8546
+ applications: CompanyApplication[];
8547
+ }
8548
+
8549
+ export interface CompanyApplication {
8550
+ player: CompanyApplicationPlayer;
8551
+ message: string | null;
8552
+ expires_at: number;
8553
+ status: ApplicationStatusEnum;
8554
+ }
8555
+
8556
+ export interface CompanyApplicationPlayer {
8557
+ id: UserId;
8558
+ name: string;
8559
+ level: number;
8560
+ stats: CompanyApplicationPlayerStats;
8561
+ }
8562
+
8563
+ export interface CompanyApplicationPlayerStats {
8564
+ manual_labor: number;
8565
+ intelligence: number;
8566
+ endurance: number;
8567
+ }
8568
+
8349
8569
  export interface ForumCategoriesResponse {
8350
8570
  categories: {
8351
8571
  id: ForumId;
@@ -8558,7 +8778,7 @@ export interface MarketRentalsResponse {
8558
8778
  rentals_timestamp: number;
8559
8779
  /** The minimum amount of time needed before the cache timestamp can change. */
8560
8780
  rentals_delay?: number;
8561
- _metadata: RequestMetadataWithLinks;
8781
+ _metadata: RequestMetadataWithLinksAndTotal;
8562
8782
  }
8563
8783
 
8564
8784
  export interface MarketPropertyDetails {
@@ -8577,7 +8797,7 @@ export interface MarketPropertiesResponse {
8577
8797
  properties_timestamp: number;
8578
8798
  /** The minimum amount of time needed before the cache timestamp can change. */
8579
8799
  properties_delay?: number;
8580
- _metadata: RequestMetadataWithLinks;
8800
+ _metadata: RequestMetadataWithLinksAndTotal;
8581
8801
  }
8582
8802
 
8583
8803
  export interface BazaarWeekly {
@@ -8691,7 +8911,7 @@ export interface ItemMarket {
8691
8911
 
8692
8912
  export interface MarketItemMarketResponse {
8693
8913
  itemmarket: ItemMarket;
8694
- _metadata: RequestMetadataWithLinks;
8914
+ _metadata: RequestMetadataWithLinksAndTotal;
8695
8915
  }
8696
8916
 
8697
8917
  /** The following selections will fallback to API v1 and may change at any time: 'pointsmarket'. */
@@ -9301,6 +9521,7 @@ export interface TornItemAmmoResponse {
9301
9521
  export interface TornItemMods {
9302
9522
  id: ItemModId;
9303
9523
  name: string;
9524
+ image: string;
9304
9525
  description: string;
9305
9526
  /** Whether the upgrade fits on dual weapons. */
9306
9527
  dual_fit: boolean;
@@ -12870,6 +13091,10 @@ export interface UserV2 extends BaseSchema {
12870
13091
  response: UserItemMarketResponse;
12871
13092
  params: "offset" | "timestamp";
12872
13093
  };
13094
+ itemmods: {
13095
+ response: UserItemModsResponse;
13096
+ params: "timestamp";
13097
+ };
12873
13098
  job: {
12874
13099
  response: UserJobResponse;
12875
13100
  params: "timestamp";
@@ -13220,6 +13445,34 @@ export interface FactionV2 extends BaseSchema {
13220
13445
  };
13221
13446
  };
13222
13447
  }
13448
+ export interface CompanyV2 extends BaseSchema {
13449
+ selections: {
13450
+ applications: {
13451
+ response: CompanyApplicationsResponse;
13452
+ params: "timestamp";
13453
+ };
13454
+ employees: {
13455
+ response: CompanyEmployeesResponse;
13456
+ params: "striptags" | "timestamp";
13457
+ };
13458
+ profile: {
13459
+ response: CompanyProfileResponseMixed;
13460
+ params: "striptags" | "timestamp";
13461
+ };
13462
+ stock: {
13463
+ response: CompanyStockResponse;
13464
+ params: "timestamp";
13465
+ };
13466
+ lookup: {
13467
+ response: CompanyLookupResponse;
13468
+ params: "timestamp";
13469
+ };
13470
+ timestamp: {
13471
+ response: TimestampResponse;
13472
+ params: "timestamp";
13473
+ };
13474
+ };
13475
+ }
13223
13476
  export interface ForumV2 extends BaseSchema {
13224
13477
  selections: {
13225
13478
  categories: {
@@ -13476,6 +13729,7 @@ export interface TornV2 extends BaseSchema {
13476
13729
  export interface SectionsV2Map {
13477
13730
  user: UserV2;
13478
13731
  faction: FactionV2;
13732
+ company: CompanyV2;
13479
13733
  forum: ForumV2;
13480
13734
  key: KeyV2;
13481
13735
  market: MarketV2;