tornapi-typescript 3.0.19 → 3.0.20

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
@@ -8,6 +8,7 @@ export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
8
8
  export type UserDonatorStatusEnum = "Donator" | "Subscriber";
9
9
  export type JobTypeEnum = "Army" | "Casino" | "Education" | "Grocer" | "Law" | "Medical";
10
10
  export type UserMaritalStatusEnum = "Engaged" | "Newlywed" | "Married";
11
+ export type UserPlaneImageTypeEnum = "private_jet" | "light_aircraft" | "airliner";
11
12
  export type UserRoleEnum = "Admin" | "Officer" | "Moderator" | "Helper" | "Tester" | "NPC" | "Committee" | "Reporter" | "Wiki Contributor" | "Wiki Editor" | "Civilian";
12
13
  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
14
  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";
@@ -113,7 +114,7 @@ export interface RequestMetadataWithLinksAndTotal {
113
114
  */
114
115
  export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
115
116
  export type UserGenderEnum = "Male" | "Female" | "Enby";
116
- export type HonorRarityEnum = "Extremely Rare" | "Very Rare" | "Rare" | "Limited" | "Uncommon" | "Common" | "Very Common" | "Unknown";
117
+ export type HonorRarityEnum = "Extremely Rare" | "Very Rare" | "Rare" | "Limited" | "Uncommon" | "Common" | "Very Common" | "Unknown" | "Unknown Rarity";
117
118
  export type Parameters = string;
118
119
  export type ReviveSetting = "Everyone" | "Friends & faction" | "No one" | "Unknown";
119
120
  export type FactionWarfareTypeEnum = "ranked" | "territory" | "raid" | "chain" | "db";
@@ -1821,8 +1822,9 @@ export interface UserStatus {
1821
1822
  state: string;
1822
1823
  color: string;
1823
1824
  until: number | null;
1824
- /** This field is populated only if the state is 'Traveling'. */
1825
+ /** This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025. */
1825
1826
  travel_type?: string;
1827
+ plane_image_type?: UserPlaneImageTypeEnum;
1826
1828
  }
1827
1829
  export interface FactionMembersResponse {
1828
1830
  members: FactionMember[];
package/dist/index.ts CHANGED
@@ -21,6 +21,11 @@ export type JobTypeEnum =
21
21
 
22
22
  export type UserMaritalStatusEnum = "Engaged" | "Newlywed" | "Married";
23
23
 
24
+ export type UserPlaneImageTypeEnum =
25
+ | "private_jet"
26
+ | "light_aircraft"
27
+ | "airliner";
28
+
24
29
  export type UserRoleEnum =
25
30
  | "Admin"
26
31
  | "Officer"
@@ -4795,7 +4800,8 @@ export type HonorRarityEnum =
4795
4800
  | "Uncommon"
4796
4801
  | "Common"
4797
4802
  | "Very Common"
4798
- | "Unknown";
4803
+ | "Unknown"
4804
+ | "Unknown Rarity";
4799
4805
 
4800
4806
  export type Parameters = string;
4801
4807
 
@@ -7242,8 +7248,9 @@ export interface UserStatus {
7242
7248
  state: string;
7243
7249
  color: string;
7244
7250
  until: number | null;
7245
- /** This field is populated only if the state is 'Traveling'. */
7251
+ /** This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025. */
7246
7252
  travel_type?: string;
7253
+ plane_image_type?: UserPlaneImageTypeEnum;
7247
7254
  }
7248
7255
 
7249
7256
  export interface FactionMembersResponse {
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": "3.0.19"
6
+ "version": "3.0.20"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -8499,6 +8499,14 @@
8499
8499
  "Married"
8500
8500
  ]
8501
8501
  },
8502
+ "UserPlaneImageTypeEnum": {
8503
+ "type": "string",
8504
+ "enum": [
8505
+ "private_jet",
8506
+ "light_aircraft",
8507
+ "airliner"
8508
+ ]
8509
+ },
8502
8510
  "UserRoleEnum": {
8503
8511
  "type": "string",
8504
8512
  "enum": [
@@ -13559,7 +13567,8 @@
13559
13567
  "Uncommon",
13560
13568
  "Common",
13561
13569
  "Very Common",
13562
- "Unknown"
13570
+ "Unknown",
13571
+ "Unknown Rarity"
13563
13572
  ]
13564
13573
  },
13565
13574
  "Parameters": {
@@ -22251,8 +22260,13 @@
22251
22260
  ]
22252
22261
  },
22253
22262
  "travel_type": {
22254
- "description": "This field is populated only if the state is 'Traveling'.",
22255
- "type": "string"
22263
+ "description": "This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025.",
22264
+ "type": "string",
22265
+ "deprecated": true
22266
+ },
22267
+ "plane_image_type": {
22268
+ "$ref": "#/components/schemas/UserPlaneImageTypeEnum",
22269
+ "description": "This field is populated only if the state is 'Traveling'."
22256
22270
  }
22257
22271
  },
22258
22272
  "type": "object"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "3.0.19",
4
+ "version": "3.0.20",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },