tornapi-typescript 5.1.0 → 5.1.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
@@ -2807,6 +2807,9 @@ export type PropertySelectionName = string;
2807
2807
  export interface PropertyLookupResponse {
2808
2808
  selections: PropertySelectionName[];
2809
2809
  }
2810
+ export interface TornEliminationTeamLeader extends BasicUser {
2811
+ active: boolean;
2812
+ }
2810
2813
  export interface TornEliminationTeam {
2811
2814
  id: EliminationTeamId;
2812
2815
  name: string;
@@ -2818,7 +2821,7 @@ export interface TornEliminationTeam {
2818
2821
  losses: number;
2819
2822
  eliminated: boolean;
2820
2823
  eliminated_timestamp: number | null;
2821
- leaders: BasicUser[];
2824
+ leaders: TornEliminationTeamLeader[];
2822
2825
  }
2823
2826
  export interface TornEliminationTeamsResponse {
2824
2827
  elimination: TornEliminationTeam[];
package/dist/index.ts CHANGED
@@ -8429,6 +8429,10 @@ export interface PropertyLookupResponse {
8429
8429
  selections: PropertySelectionName[];
8430
8430
  }
8431
8431
 
8432
+ export interface TornEliminationTeamLeader extends BasicUser {
8433
+ active: boolean;
8434
+ }
8435
+
8432
8436
  export interface TornEliminationTeam {
8433
8437
  id: EliminationTeamId;
8434
8438
  name: string;
@@ -8440,7 +8444,7 @@ export interface TornEliminationTeam {
8440
8444
  losses: number;
8441
8445
  eliminated: boolean;
8442
8446
  eliminated_timestamp: number | null;
8443
- leaders: BasicUser[];
8447
+ leaders: TornEliminationTeamLeader[];
8444
8448
  }
8445
8449
 
8446
8450
  export interface TornEliminationTeamsResponse {
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": "5.1.0"
6
+ "version": "5.1.1"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -28110,6 +28110,24 @@
28110
28110
  },
28111
28111
  "type": "object"
28112
28112
  },
28113
+ "TornEliminationTeamLeader": {
28114
+ "allOf": [
28115
+ {
28116
+ "$ref": "#/components/schemas/BasicUser"
28117
+ },
28118
+ {
28119
+ "required": [
28120
+ "active"
28121
+ ],
28122
+ "properties": {
28123
+ "active": {
28124
+ "type": "boolean"
28125
+ }
28126
+ },
28127
+ "type": "object"
28128
+ }
28129
+ ]
28130
+ },
28113
28131
  "TornEliminationTeam": {
28114
28132
  "required": [
28115
28133
  "id",
@@ -28172,7 +28190,7 @@
28172
28190
  "leaders": {
28173
28191
  "type": "array",
28174
28192
  "items": {
28175
- "$ref": "#/components/schemas/BasicUser"
28193
+ "$ref": "#/components/schemas/TornEliminationTeamLeader"
28176
28194
  }
28177
28195
  }
28178
28196
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "5.1.0",
4
+ "version": "5.1.1",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },
8
8
  "devDependencies": {
9
- "@scalar/openapi-types": "^0.5.2",
10
- "@types/node": "^24.10.2",
9
+ "@scalar/openapi-types": "^0.5.3",
10
+ "@types/node": "^24.10.3",
11
11
  "prettier": "^3.7.4",
12
12
  "typeconv": "^2.3.1",
13
13
  "typescript": "^5.9.3"