tornapi-typescript 6.13.4 → 6.13.6

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;
@@ -7723,7 +7730,7 @@ export interface UserV2 extends BaseSchema {
7723
7730
  };
7724
7731
  search: {
7725
7732
  response: UserSearchResponse;
7726
- params: "name" | "filters" | "offset" | "timestamp";
7733
+ params: "name" | "filters" | "offset" | "sort" | "cursor" | "timestamp";
7727
7734
  };
7728
7735
  snapshot: {
7729
7736
  response: 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;
@@ -13747,7 +13755,8 @@ export interface UserV2 extends BaseSchema {
13747
13755
  };
13748
13756
  search: {
13749
13757
  response: UserSearchResponse;
13750
- params: "name" | "filters" | "offset" | "timestamp";
13758
+ params:
13759
+ "name" | "filters" | "offset" | "sort" | "cursor" | "timestamp";
13751
13760
  };
13752
13761
  snapshot: {
13753
13762
  response: 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.6"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -3389,6 +3389,12 @@
3389
3389
  {
3390
3390
  "$ref": "#/components/parameters/ApiOffset"
3391
3391
  },
3392
+ {
3393
+ "$ref": "#/components/parameters/ApiSort"
3394
+ },
3395
+ {
3396
+ "$ref": "#/components/parameters/ApiCursor"
3397
+ },
3392
3398
  {
3393
3399
  "$ref": "#/components/parameters/ApiTimestamp"
3394
3400
  },
@@ -20127,7 +20133,8 @@
20127
20133
  "items",
20128
20134
  "completed_at",
20129
20135
  "expires_at",
20130
- "modified_at"
20136
+ "modified_at",
20137
+ "description"
20131
20138
  ],
20132
20139
  "properties": {
20133
20140
  "id": {
@@ -20139,6 +20146,9 @@
20139
20146
  "format": "int32",
20140
20147
  "deprecated": true
20141
20148
  },
20149
+ "description": {
20150
+ "type": "string"
20151
+ },
20142
20152
  "completed_at": {
20143
20153
  "description": "Populated when selected category is 'finished'.",
20144
20154
  "oneOf": [
@@ -35570,11 +35580,28 @@
35570
35580
  }
35571
35581
  ]
35572
35582
  },
35583
+ "TornEliminationTeamAttacksSummary": {
35584
+ "required": [
35585
+ "team_id",
35586
+ "attacks"
35587
+ ],
35588
+ "properties": {
35589
+ "team_id": {
35590
+ "$ref": "#/components/schemas/EliminationTeamId"
35591
+ },
35592
+ "attacks": {
35593
+ "type": "integer",
35594
+ "format": "int32"
35595
+ }
35596
+ },
35597
+ "type": "object"
35598
+ },
35573
35599
  "TornEliminationTeam": {
35574
35600
  "required": [
35575
35601
  "id",
35576
35602
  "name",
35577
35603
  "participants",
35604
+ "participants_left",
35578
35605
  "position",
35579
35606
  "score",
35580
35607
  "lives",
@@ -35582,7 +35609,8 @@
35582
35609
  "losses",
35583
35610
  "eliminated",
35584
35611
  "eliminated_timestamp",
35585
- "leaders"
35612
+ "leaders",
35613
+ "attacking_summary"
35586
35614
  ],
35587
35615
  "properties": {
35588
35616
  "id": {
@@ -35595,6 +35623,10 @@
35595
35623
  "type": "integer",
35596
35624
  "format": "int32"
35597
35625
  },
35626
+ "participants_left": {
35627
+ "type": "integer",
35628
+ "format": "int32"
35629
+ },
35598
35630
  "position": {
35599
35631
  "type": "integer",
35600
35632
  "format": "int32"
@@ -35618,6 +35650,12 @@
35618
35650
  "eliminated": {
35619
35651
  "type": "boolean"
35620
35652
  },
35653
+ "attacking_summary": {
35654
+ "type": "array",
35655
+ "items": {
35656
+ "$ref": "#/components/schemas/TornEliminationTeamAttacksSummary"
35657
+ }
35658
+ },
35621
35659
  "eliminated_timestamp": {
35622
35660
  "oneOf": [
35623
35661
  {
@@ -38174,6 +38212,15 @@
38174
38212
  ]
38175
38213
  }
38176
38214
  },
38215
+ "ApiCursor": {
38216
+ "name": "cursor",
38217
+ "in": "query",
38218
+ "description": "Opaque cursor from pagination links for searches without a name, in either sort direction. Offset is ignored for these searches.",
38219
+ "required": false,
38220
+ "schema": {
38221
+ "type": "string"
38222
+ }
38223
+ },
38177
38224
  "ApiSortDesc": {
38178
38225
  "name": "sort",
38179
38226
  "in": "query",
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.6",
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.7",
14
14
  "prettier": "^3.9.6",
15
15
  "typeconv": "^2.3.1",
16
16
  "typescript": "^6.0.3"