tornapi-typescript 6.13.5 → 6.13.8

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
@@ -529,7 +529,11 @@ export interface ErrorEndpointClosedUntilAttackingPeriod {
529
529
  code: 32;
530
530
  error: string;
531
531
  }
532
- export type ApiError = ErrorUnknown | ErrorKeyEmpty | ErrorIncorrectKey | ErrorWrongType | ErrorWrongFields | ErrorTooManyRequests | ErrorIncorrectId | ErrorIncorrectIdEntityRelation | ErrorIpBlocked | ErrorApiDisabled | ErrorKeyOwnerInFederalJail | ErrorKeyChangeCooldown | ErrorKeyReadError | ErrorKeyTemporaryDisabled | ErrorDailyReadLimitReached | ErrorLogUnavailable | ErrorAccessLevelTooLow | ErrorBackendError | ErrorApiKeyPaused | ErrorMustMigrateToCrimesV2 | ErrorRaceNotFinished | ErrorIncorrectCategory | ErrorOnlyAvailableInApiV1 | ErrorOnlyAvailableInApiV2 | ErrorClosedTemporarily | ErrorInvalidStatRequested | ErrorOnlyCategoryOrStatsAllowed | ErrorMustMigrateToOrganizedCrimesV2 | ErrorIncorrectLogId | ErrorCategorySelectionUnavailableForInteractionLogs | ErrorFileDoesNotExist | ErrorCityStatsCronFailed | ErrorEndpointClosedUntilAttackingPeriod;
532
+ export interface ErrorNoCompetitionAvailable {
533
+ code: 33;
534
+ error: string;
535
+ }
536
+ export type ApiError = ErrorUnknown | ErrorKeyEmpty | ErrorIncorrectKey | ErrorWrongType | ErrorWrongFields | ErrorTooManyRequests | ErrorIncorrectId | ErrorIncorrectIdEntityRelation | ErrorIpBlocked | ErrorApiDisabled | ErrorKeyOwnerInFederalJail | ErrorKeyChangeCooldown | ErrorKeyReadError | ErrorKeyTemporaryDisabled | ErrorDailyReadLimitReached | ErrorLogUnavailable | ErrorAccessLevelTooLow | ErrorBackendError | ErrorApiKeyPaused | ErrorMustMigrateToCrimesV2 | ErrorRaceNotFinished | ErrorIncorrectCategory | ErrorOnlyAvailableInApiV1 | ErrorOnlyAvailableInApiV2 | ErrorClosedTemporarily | ErrorInvalidStatRequested | ErrorOnlyCategoryOrStatsAllowed | ErrorMustMigrateToOrganizedCrimesV2 | ErrorIncorrectLogId | ErrorCategorySelectionUnavailableForInteractionLogs | ErrorFileDoesNotExist | ErrorCityStatsCronFailed | ErrorEndpointClosedUntilAttackingPeriod | ErrorNoCompetitionAvailable;
533
537
  export interface UserGymResponse {
534
538
  gym: {
535
539
  id: GymId;
@@ -3776,7 +3780,7 @@ export interface TornStocksResponse {
3776
3780
  export interface TornStockDetailedResponse {
3777
3781
  stocks: TornStockDetailed;
3778
3782
  }
3779
- export interface TornEliminationTeamLeader extends BasicUser {
3783
+ export interface TornEliminationTeamCaptain extends BasicUser {
3780
3784
  active: boolean;
3781
3785
  }
3782
3786
  export interface TornEliminationTeamAttacksSummary {
@@ -3796,9 +3800,9 @@ export interface TornEliminationTeam {
3796
3800
  eliminated: boolean;
3797
3801
  attacking_summary: TornEliminationTeamAttacksSummary[];
3798
3802
  eliminated_timestamp: number | null;
3799
- leaders: {
3800
- captain: TornEliminationTeamLeader | null;
3801
- vice_captains: TornEliminationTeamLeader[];
3803
+ captains: {
3804
+ captain: TornEliminationTeamCaptain | null;
3805
+ vice_captains: TornEliminationTeamCaptain[];
3802
3806
  };
3803
3807
  }
3804
3808
  export interface TornEliminationTeamsResponse {
@@ -7730,7 +7734,7 @@ export interface UserV2 extends BaseSchema {
7730
7734
  };
7731
7735
  search: {
7732
7736
  response: UserSearchResponse;
7733
- params: "name" | "filters" | "offset" | "timestamp";
7737
+ params: "name" | "filters" | "offset" | "sort" | "cursor" | "timestamp";
7734
7738
  };
7735
7739
  snapshot: {
7736
7740
  response: null;
package/dist/index.ts CHANGED
@@ -5578,6 +5578,11 @@ export interface ErrorEndpointClosedUntilAttackingPeriod {
5578
5578
  error: string;
5579
5579
  }
5580
5580
 
5581
+ export interface ErrorNoCompetitionAvailable {
5582
+ code: 33;
5583
+ error: string;
5584
+ }
5585
+
5581
5586
  export type ApiError =
5582
5587
  | ErrorUnknown
5583
5588
  | ErrorKeyEmpty
@@ -5611,7 +5616,8 @@ export type ApiError =
5611
5616
  | ErrorCategorySelectionUnavailableForInteractionLogs
5612
5617
  | ErrorFileDoesNotExist
5613
5618
  | ErrorCityStatsCronFailed
5614
- | ErrorEndpointClosedUntilAttackingPeriod;
5619
+ | ErrorEndpointClosedUntilAttackingPeriod
5620
+ | ErrorNoCompetitionAvailable;
5615
5621
 
5616
5622
  export interface UserGymResponse {
5617
5623
  gym: {
@@ -9634,7 +9640,7 @@ export interface TornStockDetailedResponse {
9634
9640
  stocks: TornStockDetailed;
9635
9641
  }
9636
9642
 
9637
- export interface TornEliminationTeamLeader extends BasicUser {
9643
+ export interface TornEliminationTeamCaptain extends BasicUser {
9638
9644
  active: boolean;
9639
9645
  }
9640
9646
 
@@ -9656,9 +9662,9 @@ export interface TornEliminationTeam {
9656
9662
  eliminated: boolean;
9657
9663
  attacking_summary: TornEliminationTeamAttacksSummary[];
9658
9664
  eliminated_timestamp: number | null;
9659
- leaders: {
9660
- captain: TornEliminationTeamLeader | null;
9661
- vice_captains: TornEliminationTeamLeader[];
9665
+ captains: {
9666
+ captain: TornEliminationTeamCaptain | null;
9667
+ vice_captains: TornEliminationTeamCaptain[];
9662
9668
  };
9663
9669
  }
9664
9670
 
@@ -13755,7 +13761,8 @@ export interface UserV2 extends BaseSchema {
13755
13761
  };
13756
13762
  search: {
13757
13763
  response: UserSearchResponse;
13758
- params: "name" | "filters" | "offset" | "timestamp";
13764
+ params:
13765
+ "name" | "filters" | "offset" | "sort" | "cursor" | "timestamp";
13759
13766
  };
13760
13767
  snapshot: {
13761
13768
  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.5"
6
+ "version": "6.13.8"
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
  },
@@ -19549,6 +19555,25 @@
19549
19555
  },
19550
19556
  "type": "object"
19551
19557
  },
19558
+ "ErrorNoCompetitionAvailable": {
19559
+ "required": [
19560
+ "code",
19561
+ "error"
19562
+ ],
19563
+ "properties": {
19564
+ "code": {
19565
+ "type": "integer",
19566
+ "format": "int32",
19567
+ "enum": [
19568
+ 33
19569
+ ]
19570
+ },
19571
+ "error": {
19572
+ "type": "string"
19573
+ }
19574
+ },
19575
+ "type": "object"
19576
+ },
19552
19577
  "ApiError": {
19553
19578
  "oneOf": [
19554
19579
  {
@@ -19649,6 +19674,9 @@
19649
19674
  },
19650
19675
  {
19651
19676
  "$ref": "#/components/schemas/ErrorEndpointClosedUntilAttackingPeriod"
19677
+ },
19678
+ {
19679
+ "$ref": "#/components/schemas/ErrorNoCompetitionAvailable"
19652
19680
  }
19653
19681
  ]
19654
19682
  },
@@ -35556,7 +35584,7 @@
35556
35584
  },
35557
35585
  "type": "object"
35558
35586
  },
35559
- "TornEliminationTeamLeader": {
35587
+ "TornEliminationTeamCaptain": {
35560
35588
  "allOf": [
35561
35589
  {
35562
35590
  "$ref": "#/components/schemas/BasicUser"
@@ -35603,7 +35631,7 @@
35603
35631
  "losses",
35604
35632
  "eliminated",
35605
35633
  "eliminated_timestamp",
35606
- "leaders",
35634
+ "captains",
35607
35635
  "attacking_summary"
35608
35636
  ],
35609
35637
  "properties": {
@@ -35661,7 +35689,7 @@
35661
35689
  }
35662
35690
  ]
35663
35691
  },
35664
- "leaders": {
35692
+ "captains": {
35665
35693
  "required": [
35666
35694
  "captain",
35667
35695
  "vice_captains"
@@ -35670,7 +35698,7 @@
35670
35698
  "captain": {
35671
35699
  "oneOf": [
35672
35700
  {
35673
- "$ref": "#/components/schemas/TornEliminationTeamLeader"
35701
+ "$ref": "#/components/schemas/TornEliminationTeamCaptain"
35674
35702
  },
35675
35703
  {
35676
35704
  "type": "null"
@@ -35680,8 +35708,9 @@
35680
35708
  "vice_captains": {
35681
35709
  "type": "array",
35682
35710
  "items": {
35683
- "$ref": "#/components/schemas/TornEliminationTeamLeader"
35684
- }
35711
+ "$ref": "#/components/schemas/TornEliminationTeamCaptain"
35712
+ },
35713
+ "maxItems": 5
35685
35714
  }
35686
35715
  },
35687
35716
  "type": "object"
@@ -38206,6 +38235,15 @@
38206
38235
  ]
38207
38236
  }
38208
38237
  },
38238
+ "ApiCursor": {
38239
+ "name": "cursor",
38240
+ "in": "query",
38241
+ "description": "Opaque cursor from pagination links for searches without a name, in either sort direction. Offset is ignored for these searches.",
38242
+ "required": false,
38243
+ "schema": {
38244
+ "type": "string"
38245
+ }
38246
+ },
38209
38247
  "ApiSortDesc": {
38210
38248
  "name": "sort",
38211
38249
  "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.5",
4
+ "version": "6.13.8",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },
@@ -9,9 +9,9 @@
9
9
  "generate-types": "tsc && node build/index.js"
10
10
  },
11
11
  "devDependencies": {
12
- "@scalar/openapi-types": "^0.9.5",
13
- "@types/node": "^25.9.6",
14
- "prettier": "^3.9.6",
12
+ "@scalar/openapi-types": "^0.9.7",
13
+ "@types/node": "^25.9.9",
14
+ "prettier": "^3.9.9",
15
15
  "typeconv": "^2.3.1",
16
16
  "typescript": "^6.0.3"
17
17
  },