tornapi-typescript 3.0.18 → 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";
@@ -409,11 +410,12 @@ export interface UserCompany {
409
410
  export interface UserJobResponse {
410
411
  job: UserJob | UserCompany | null;
411
412
  }
413
+ /** The property 'days_married' is not present if the status is 'Engaged' */
412
414
  export interface ProfileSpouse {
413
415
  id: UserId;
414
416
  name: string;
415
417
  status: UserMaritalStatusEnum;
416
- days_married: number;
418
+ days_married?: number;
417
419
  }
418
420
  export interface UserProfileResponse {
419
421
  profile: {
@@ -1820,8 +1822,9 @@ export interface UserStatus {
1820
1822
  state: string;
1821
1823
  color: string;
1822
1824
  until: number | null;
1823
- /** 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. */
1824
1826
  travel_type?: string;
1827
+ plane_image_type?: UserPlaneImageTypeEnum;
1825
1828
  }
1826
1829
  export interface FactionMembersResponse {
1827
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
 
@@ -5343,11 +5349,12 @@ export interface UserJobResponse {
5343
5349
  job: UserJob | UserCompany | null;
5344
5350
  }
5345
5351
 
5352
+ /** The property 'days_married' is not present if the status is 'Engaged' */
5346
5353
  export interface ProfileSpouse {
5347
5354
  id: UserId;
5348
5355
  name: string;
5349
5356
  status: UserMaritalStatusEnum;
5350
- days_married: number;
5357
+ days_married?: number;
5351
5358
  }
5352
5359
 
5353
5360
  export interface UserProfileResponse {
@@ -7241,8 +7248,9 @@ export interface UserStatus {
7241
7248
  state: string;
7242
7249
  color: string;
7243
7250
  until: number | null;
7244
- /** 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. */
7245
7252
  travel_type?: string;
7253
+ plane_image_type?: UserPlaneImageTypeEnum;
7246
7254
  }
7247
7255
 
7248
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.18"
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": {
@@ -15259,11 +15268,11 @@
15259
15268
  "type": "object"
15260
15269
  },
15261
15270
  "ProfileSpouse": {
15271
+ "description": "The property 'days_married' is not present if the status is 'Engaged'",
15262
15272
  "required": [
15263
15273
  "id",
15264
15274
  "name",
15265
- "status",
15266
- "days_married"
15275
+ "status"
15267
15276
  ],
15268
15277
  "properties": {
15269
15278
  "id": {
@@ -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.18",
4
+ "version": "3.0.20",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },