tornapi-typescript 6.13.4 → 6.13.5

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
@@ -634,6 +634,7 @@ export interface UserTrade {
634
634
  id: TradeId;
635
635
  /** This field is depracted and replaced with 'completed_at' field. */
636
636
  timestamp?: number;
637
+ description: string;
637
638
  completed_at: number | null;
638
639
  expires_at: number | null;
639
640
  modified_at: number | null;
@@ -3778,16 +3779,22 @@ export interface TornStockDetailedResponse {
3778
3779
  export interface TornEliminationTeamLeader extends BasicUser {
3779
3780
  active: boolean;
3780
3781
  }
3782
+ export interface TornEliminationTeamAttacksSummary {
3783
+ team_id: EliminationTeamId;
3784
+ attacks: number;
3785
+ }
3781
3786
  export interface TornEliminationTeam {
3782
3787
  id: EliminationTeamId;
3783
3788
  name: string;
3784
3789
  participants: number;
3790
+ participants_left: number;
3785
3791
  position: number;
3786
3792
  score: number;
3787
3793
  lives: number;
3788
3794
  wins: number;
3789
3795
  losses: number;
3790
3796
  eliminated: boolean;
3797
+ attacking_summary: TornEliminationTeamAttacksSummary[];
3791
3798
  eliminated_timestamp: number | null;
3792
3799
  leaders: {
3793
3800
  captain: TornEliminationTeamLeader | null;
package/dist/index.ts CHANGED
@@ -5730,6 +5730,7 @@ export interface UserTrade {
5730
5730
  id: TradeId;
5731
5731
  /** This field is depracted and replaced with 'completed_at' field. */
5732
5732
  timestamp?: number;
5733
+ description: string;
5733
5734
  completed_at: number | null;
5734
5735
  expires_at: number | null;
5735
5736
  modified_at: number | null;
@@ -9637,16 +9638,23 @@ export interface TornEliminationTeamLeader extends BasicUser {
9637
9638
  active: boolean;
9638
9639
  }
9639
9640
 
9641
+ export interface TornEliminationTeamAttacksSummary {
9642
+ team_id: EliminationTeamId;
9643
+ attacks: number;
9644
+ }
9645
+
9640
9646
  export interface TornEliminationTeam {
9641
9647
  id: EliminationTeamId;
9642
9648
  name: string;
9643
9649
  participants: number;
9650
+ participants_left: number;
9644
9651
  position: number;
9645
9652
  score: number;
9646
9653
  lives: number;
9647
9654
  wins: number;
9648
9655
  losses: number;
9649
9656
  eliminated: boolean;
9657
+ attacking_summary: TornEliminationTeamAttacksSummary[];
9650
9658
  eliminated_timestamp: number | null;
9651
9659
  leaders: {
9652
9660
  captain: TornEliminationTeamLeader | null;
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": "6.13.4"
6
+ "version": "6.13.5"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -20127,7 +20127,8 @@
20127
20127
  "items",
20128
20128
  "completed_at",
20129
20129
  "expires_at",
20130
- "modified_at"
20130
+ "modified_at",
20131
+ "description"
20131
20132
  ],
20132
20133
  "properties": {
20133
20134
  "id": {
@@ -20139,6 +20140,9 @@
20139
20140
  "format": "int32",
20140
20141
  "deprecated": true
20141
20142
  },
20143
+ "description": {
20144
+ "type": "string"
20145
+ },
20142
20146
  "completed_at": {
20143
20147
  "description": "Populated when selected category is 'finished'.",
20144
20148
  "oneOf": [
@@ -35570,11 +35574,28 @@
35570
35574
  }
35571
35575
  ]
35572
35576
  },
35577
+ "TornEliminationTeamAttacksSummary": {
35578
+ "required": [
35579
+ "team_id",
35580
+ "attacks"
35581
+ ],
35582
+ "properties": {
35583
+ "team_id": {
35584
+ "$ref": "#/components/schemas/EliminationTeamId"
35585
+ },
35586
+ "attacks": {
35587
+ "type": "integer",
35588
+ "format": "int32"
35589
+ }
35590
+ },
35591
+ "type": "object"
35592
+ },
35573
35593
  "TornEliminationTeam": {
35574
35594
  "required": [
35575
35595
  "id",
35576
35596
  "name",
35577
35597
  "participants",
35598
+ "participants_left",
35578
35599
  "position",
35579
35600
  "score",
35580
35601
  "lives",
@@ -35582,7 +35603,8 @@
35582
35603
  "losses",
35583
35604
  "eliminated",
35584
35605
  "eliminated_timestamp",
35585
- "leaders"
35606
+ "leaders",
35607
+ "attacking_summary"
35586
35608
  ],
35587
35609
  "properties": {
35588
35610
  "id": {
@@ -35595,6 +35617,10 @@
35595
35617
  "type": "integer",
35596
35618
  "format": "int32"
35597
35619
  },
35620
+ "participants_left": {
35621
+ "type": "integer",
35622
+ "format": "int32"
35623
+ },
35598
35624
  "position": {
35599
35625
  "type": "integer",
35600
35626
  "format": "int32"
@@ -35618,6 +35644,12 @@
35618
35644
  "eliminated": {
35619
35645
  "type": "boolean"
35620
35646
  },
35647
+ "attacking_summary": {
35648
+ "type": "array",
35649
+ "items": {
35650
+ "$ref": "#/components/schemas/TornEliminationTeamAttacksSummary"
35651
+ }
35652
+ },
35621
35653
  "eliminated_timestamp": {
35622
35654
  "oneOf": [
35623
35655
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "6.13.4",
4
+ "version": "6.13.5",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "devDependencies": {
12
12
  "@scalar/openapi-types": "^0.9.5",
13
- "@types/node": "^25.9.5",
13
+ "@types/node": "^25.9.6",
14
14
  "prettier": "^3.9.6",
15
15
  "typeconv": "^2.3.1",
16
16
  "typescript": "^6.0.3"