tornapi-typescript 1.11.3 → 1.11.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 CHANGED
@@ -6491,13 +6491,18 @@ export interface FactionTerritoryWarfare {
6491
6491
  result: string;
6492
6492
  }
6493
6493
 
6494
+ export interface FactionTerritoryWarFactionWallPlayers {
6495
+ id: UserId;
6496
+ name: string;
6497
+ }
6498
+
6494
6499
  /** The fields 'chain' and 'players_on_wall' exist only for wars with the result 'in_progress'. */
6495
6500
  export interface FactionTerritoryWarFaction {
6496
6501
  id: FactionId;
6497
6502
  name: string;
6498
6503
  score: number;
6499
6504
  chain?: number;
6500
- players_on_wall?: any[];
6505
+ players_on_wall?: FactionTerritoryWarFactionWallPlayers[];
6501
6506
  }
6502
6507
 
6503
6508
  export interface FactionTerritoryWarFinishedFaction {
@@ -7757,7 +7762,7 @@ export interface TornHof {
7757
7762
  position: number;
7758
7763
  signed_up: number;
7759
7764
  age_in_days: number;
7760
- value: any;
7765
+ value: number | string | number;
7761
7766
  rank: string;
7762
7767
  }
7763
7768
 
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": "1.11.3"
6
+ "version": "1.11.4"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -5393,9 +5393,6 @@
5393
5393
  {
5394
5394
  "$ref": "#/components/schemas/MarketPropertiesResponse"
5395
5395
  },
5396
- {
5397
- "$ref": "#/components/schemas/MarketItemMarketResponse"
5398
- },
5399
5396
  {
5400
5397
  "$ref": "#/components/schemas/MarketLookupResponse"
5401
5398
  },
@@ -6052,7 +6049,7 @@
6052
6049
  },
6053
6050
  {
6054
6051
  "name": "id",
6055
- "in": "path",
6052
+ "in": "query",
6056
6053
  "description": "Property id",
6057
6054
  "required": true,
6058
6055
  "schema": {
@@ -18485,6 +18482,21 @@
18485
18482
  },
18486
18483
  "type": "object"
18487
18484
  },
18485
+ "FactionTerritoryWarFactionWallPlayers": {
18486
+ "required": [
18487
+ "id",
18488
+ "name"
18489
+ ],
18490
+ "properties": {
18491
+ "id": {
18492
+ "$ref": "#/components/schemas/UserId"
18493
+ },
18494
+ "name": {
18495
+ "type": "string"
18496
+ }
18497
+ },
18498
+ "type": "object"
18499
+ },
18488
18500
  "FactionTerritoryWarFaction": {
18489
18501
  "description": "The fields 'chain' and 'players_on_wall' exist only for wars with the result 'in_progress'.",
18490
18502
  "required": [
@@ -18509,7 +18521,9 @@
18509
18521
  },
18510
18522
  "players_on_wall": {
18511
18523
  "type": "array",
18512
- "items": {}
18524
+ "items": {
18525
+ "$ref": "#/components/schemas/FactionTerritoryWarFactionWallPlayers"
18526
+ }
18513
18527
  }
18514
18528
  },
18515
18529
  "type": "object"
@@ -23818,7 +23832,20 @@
23818
23832
  "format": "int32"
23819
23833
  },
23820
23834
  "value": {
23821
- "description": "Value representing the chosen category. Traveltime is shown in seconds. If the chosen category is 'rank', the value is of type string. If the chosen category is 'racingskill', the value is of type float. Otherwise it is an integer."
23835
+ "description": "Value representing the chosen category. Traveltime is shown in seconds. If the chosen category is 'rank', the value is of type string. If the chosen category is 'racingskill', the value is of type float. Otherwise it is an integer.",
23836
+ "oneOf": [
23837
+ {
23838
+ "type": "integer",
23839
+ "format": "int32"
23840
+ },
23841
+ {
23842
+ "type": "string"
23843
+ },
23844
+ {
23845
+ "type": "number",
23846
+ "format": "float"
23847
+ }
23848
+ ]
23822
23849
  },
23823
23850
  "rank": {
23824
23851
  "type": "string"
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "1.11.3",
4
+ "version": "1.11.4",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },
8
8
  "devDependencies": {
9
- "@scalar/openapi-types": "^0.3.3",
10
- "@types/node": "^22.15.32",
11
- "prettier": "^3.5.3",
9
+ "@scalar/openapi-types": "^0.3.4",
10
+ "@types/node": "^22.15.33",
11
+ "prettier": "^3.6.2",
12
12
  "typeconv": "^2.3.1",
13
13
  "typescript": "^5.8.3"
14
14
  },