tornapi-typescript 4.7.0 → 5.0.0

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
@@ -477,10 +477,6 @@ export interface UserCooldownsResponse {
477
477
  export interface UserBar {
478
478
  current: number;
479
479
  maximum: number;
480
- increment: number;
481
- interval: number;
482
- tick_time: number;
483
- full_time: number;
484
480
  }
485
481
  export interface UserBars {
486
482
  energy: UserBar;
@@ -2011,8 +2007,6 @@ export interface UserStatus {
2011
2007
  state: UserStatusStateEnum | string;
2012
2008
  color: string;
2013
2009
  until: number | null;
2014
- /** This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025. */
2015
- travel_type?: string;
2016
2010
  plane_image_type?: UserPlaneImageTypeEnum;
2017
2011
  }
2018
2012
  export interface FactionMembersResponse {
@@ -6530,10 +6524,6 @@ export interface UserV2 extends BaseSchema {
6530
6524
  response: UserFactionResponse;
6531
6525
  params: "timestamp";
6532
6526
  };
6533
- factionbalance: {
6534
- response: UserFactionBalanceResponse;
6535
- params: "timestamp";
6536
- };
6537
6527
  forumfeed: {
6538
6528
  response: UserForumFeedResponse;
6539
6529
  params: "timestamp";
package/dist/index.ts CHANGED
@@ -5459,10 +5459,6 @@ export interface UserCooldownsResponse {
5459
5459
  export interface UserBar {
5460
5460
  current: number;
5461
5461
  maximum: number;
5462
- increment: number;
5463
- interval: number;
5464
- tick_time: number;
5465
- full_time: number;
5466
5462
  }
5467
5463
 
5468
5464
  export interface UserBars {
@@ -7509,8 +7505,6 @@ export interface UserStatus {
7509
7505
  state: UserStatusStateEnum | string;
7510
7506
  color: string;
7511
7507
  until: number | null;
7512
- /** This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025. */
7513
- travel_type?: string;
7514
7508
  plane_image_type?: UserPlaneImageTypeEnum;
7515
7509
  }
7516
7510
 
@@ -12274,10 +12268,6 @@ export interface UserV2 extends BaseSchema {
12274
12268
  response: UserFactionResponse;
12275
12269
  params: "timestamp";
12276
12270
  };
12277
- factionbalance: {
12278
- response: UserFactionBalanceResponse;
12279
- params: "timestamp";
12280
- };
12281
12271
  forumfeed: {
12282
12272
  response: UserForumFeedResponse;
12283
12273
  params: "timestamp";
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": "4.7.0"
6
+ "version": "5.0.0"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -972,46 +972,6 @@
972
972
  "x-stability": "Stable"
973
973
  }
974
974
  },
975
- "/user/factionbalance": {
976
- "get": {
977
- "tags": [
978
- "User"
979
- ],
980
- "summary": "Deprecated. Use user/money instead",
981
- "description": "Will be removed on 1st of December 2025. Requires limited access key. <br>",
982
- "operationId": "b7ebbeea51dc2ef56c3ed5fd9d94e680",
983
- "parameters": [
984
- {
985
- "$ref": "#/components/parameters/ApiTimestamp"
986
- },
987
- {
988
- "$ref": "#/components/parameters/ApiComment"
989
- },
990
- {
991
- "$ref": "#/components/parameters/ApiKeyLimited"
992
- }
993
- ],
994
- "responses": {
995
- "200": {
996
- "description": "Successful operation",
997
- "content": {
998
- "application/json": {
999
- "schema": {
1000
- "$ref": "#/components/schemas/UserFactionBalanceResponse"
1001
- }
1002
- }
1003
- }
1004
- }
1005
- },
1006
- "deprecated": true,
1007
- "security": [
1008
- {
1009
- "api_key": []
1010
- }
1011
- ],
1012
- "x-stability": "Deprecated"
1013
- }
1014
- },
1015
975
  "/user/forumfeed": {
1016
976
  "get": {
1017
977
  "tags": [
@@ -13831,7 +13791,6 @@
13831
13791
  "Newsletter Sending",
13832
13792
  "Announcement Changes",
13833
13793
  "Description Changes",
13834
- "Organised Crimes",
13835
13794
  "Utility Item Loaning",
13836
13795
  "Consumable Item Usage"
13837
13796
  ]
@@ -16462,11 +16421,7 @@
16462
16421
  "UserBar": {
16463
16422
  "required": [
16464
16423
  "current",
16465
- "maximum",
16466
- "increment",
16467
- "interval",
16468
- "tick_time",
16469
- "full_time"
16424
+ "maximum"
16470
16425
  ],
16471
16426
  "properties": {
16472
16427
  "current": {
@@ -16476,22 +16431,6 @@
16476
16431
  "maximum": {
16477
16432
  "type": "integer",
16478
16433
  "format": "int32"
16479
- },
16480
- "increment": {
16481
- "type": "integer",
16482
- "format": "int32"
16483
- },
16484
- "interval": {
16485
- "type": "integer",
16486
- "format": "int32"
16487
- },
16488
- "tick_time": {
16489
- "type": "integer",
16490
- "format": "int32"
16491
- },
16492
- "full_time": {
16493
- "type": "integer",
16494
- "format": "int32"
16495
16434
  }
16496
16435
  },
16497
16436
  "type": "object"
@@ -24067,11 +24006,6 @@
24067
24006
  }
24068
24007
  ]
24069
24008
  },
24070
- "travel_type": {
24071
- "description": "This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025.",
24072
- "type": "string",
24073
- "deprecated": true
24074
- },
24075
24009
  "plane_image_type": {
24076
24010
  "$ref": "#/components/schemas/UserPlaneImageTypeEnum",
24077
24011
  "description": "This field is populated only if the state is 'Traveling'."
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "4.7.0",
4
+ "version": "5.0.0",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },