tornapi-typescript 6.13.0 → 6.13.2

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
@@ -525,7 +525,11 @@ export interface ErrorCityStatsCronFailed {
525
525
  code: 31;
526
526
  error: string;
527
527
  }
528
- 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;
528
+ export interface ErrorEndpointClosedUntilAttackingPeriod {
529
+ code: 32;
530
+ error: string;
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;
529
533
  export interface UserGymResponse {
530
534
  gym: {
531
535
  id: GymId;
@@ -917,6 +921,7 @@ export interface UserCompetitionElimination {
917
921
  name: "Elimination";
918
922
  score: number;
919
923
  team: string;
924
+ team_id: EliminationTeamId | null;
920
925
  attacks: number;
921
926
  }
922
927
  export interface UserCompetitionRps {
@@ -2109,6 +2114,7 @@ export interface FactionInventoryItem {
2109
2114
  name: string;
2110
2115
  type: MarketSpecializedBazaarCategoryEnum;
2111
2116
  amount: number;
2117
+ /** Returns up to 250 uids. */
2112
2118
  uids: ItemUid[];
2113
2119
  loaned: {
2114
2120
  id: UserId;
@@ -3783,7 +3789,10 @@ export interface TornEliminationTeam {
3783
3789
  losses: number;
3784
3790
  eliminated: boolean;
3785
3791
  eliminated_timestamp: number | null;
3786
- leaders: TornEliminationTeamLeader[];
3792
+ leaders: {
3793
+ captain: TornEliminationTeamLeader | null;
3794
+ vice_captains: TornEliminationTeamLeader[];
3795
+ };
3787
3796
  }
3788
3797
  export interface TornEliminationTeamsResponse {
3789
3798
  elimination: TornEliminationTeam[];
package/dist/index.ts CHANGED
@@ -5573,6 +5573,11 @@ export interface ErrorCityStatsCronFailed {
5573
5573
  error: string;
5574
5574
  }
5575
5575
 
5576
+ export interface ErrorEndpointClosedUntilAttackingPeriod {
5577
+ code: 32;
5578
+ error: string;
5579
+ }
5580
+
5576
5581
  export type ApiError =
5577
5582
  | ErrorUnknown
5578
5583
  | ErrorKeyEmpty
@@ -5605,7 +5610,8 @@ export type ApiError =
5605
5610
  | ErrorIncorrectLogId
5606
5611
  | ErrorCategorySelectionUnavailableForInteractionLogs
5607
5612
  | ErrorFileDoesNotExist
5608
- | ErrorCityStatsCronFailed;
5613
+ | ErrorCityStatsCronFailed
5614
+ | ErrorEndpointClosedUntilAttackingPeriod;
5609
5615
 
5610
5616
  export interface UserGymResponse {
5611
5617
  gym: {
@@ -6066,6 +6072,7 @@ export interface UserCompetitionElimination {
6066
6072
  name: "Elimination";
6067
6073
  score: number;
6068
6074
  team: string;
6075
+ team_id: EliminationTeamId | null;
6069
6076
  attacks: number;
6070
6077
  }
6071
6078
 
@@ -7717,6 +7724,7 @@ export interface FactionInventoryItem {
7717
7724
  name: string;
7718
7725
  type: MarketSpecializedBazaarCategoryEnum;
7719
7726
  amount: number;
7727
+ /** Returns up to 250 uids. */
7720
7728
  uids: ItemUid[];
7721
7729
  loaned: {
7722
7730
  id: UserId;
@@ -9640,7 +9648,10 @@ export interface TornEliminationTeam {
9640
9648
  losses: number;
9641
9649
  eliminated: boolean;
9642
9650
  eliminated_timestamp: number | null;
9643
- leaders: TornEliminationTeamLeader[];
9651
+ leaders: {
9652
+ captain: TornEliminationTeamLeader | null;
9653
+ vice_captains: TornEliminationTeamLeader[];
9654
+ };
9644
9655
  }
9645
9656
 
9646
9657
  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": "6.13.0"
6
+ "version": "6.13.2"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -19530,6 +19530,25 @@
19530
19530
  },
19531
19531
  "type": "object"
19532
19532
  },
19533
+ "ErrorEndpointClosedUntilAttackingPeriod": {
19534
+ "required": [
19535
+ "code",
19536
+ "error"
19537
+ ],
19538
+ "properties": {
19539
+ "code": {
19540
+ "type": "integer",
19541
+ "format": "int32",
19542
+ "enum": [
19543
+ 32
19544
+ ]
19545
+ },
19546
+ "error": {
19547
+ "type": "string"
19548
+ }
19549
+ },
19550
+ "type": "object"
19551
+ },
19533
19552
  "ApiError": {
19534
19553
  "oneOf": [
19535
19554
  {
@@ -19627,6 +19646,9 @@
19627
19646
  },
19628
19647
  {
19629
19648
  "$ref": "#/components/schemas/ErrorCityStatsCronFailed"
19649
+ },
19650
+ {
19651
+ "$ref": "#/components/schemas/ErrorEndpointClosedUntilAttackingPeriod"
19630
19652
  }
19631
19653
  ]
19632
19654
  },
@@ -21527,7 +21549,8 @@
21527
21549
  "name",
21528
21550
  "score",
21529
21551
  "attacks",
21530
- "team"
21552
+ "team",
21553
+ "team_id"
21531
21554
  ],
21532
21555
  "properties": {
21533
21556
  "name": {
@@ -21543,6 +21566,16 @@
21543
21566
  "team": {
21544
21567
  "type": "string"
21545
21568
  },
21569
+ "team_id": {
21570
+ "oneOf": [
21571
+ {
21572
+ "$ref": "#/components/schemas/EliminationTeamId"
21573
+ },
21574
+ {
21575
+ "type": "null"
21576
+ }
21577
+ ]
21578
+ },
21546
21579
  "attacks": {
21547
21580
  "type": "integer",
21548
21581
  "format": "int32"
@@ -27609,6 +27642,7 @@
27609
27642
  "format": "int32"
27610
27643
  },
27611
27644
  "uids": {
27645
+ "description": "Returns up to 250 uids.",
27612
27646
  "type": "array",
27613
27647
  "items": {
27614
27648
  "$ref": "#/components/schemas/ItemUid"
@@ -35589,10 +35623,29 @@
35589
35623
  ]
35590
35624
  },
35591
35625
  "leaders": {
35592
- "type": "array",
35593
- "items": {
35594
- "$ref": "#/components/schemas/TornEliminationTeamLeader"
35595
- }
35626
+ "required": [
35627
+ "captain",
35628
+ "vice_captains"
35629
+ ],
35630
+ "properties": {
35631
+ "captain": {
35632
+ "oneOf": [
35633
+ {
35634
+ "$ref": "#/components/schemas/TornEliminationTeamLeader"
35635
+ },
35636
+ {
35637
+ "type": "null"
35638
+ }
35639
+ ]
35640
+ },
35641
+ "vice_captains": {
35642
+ "type": "array",
35643
+ "items": {
35644
+ "$ref": "#/components/schemas/TornEliminationTeamLeader"
35645
+ }
35646
+ }
35647
+ },
35648
+ "type": "object"
35596
35649
  }
35597
35650
  },
35598
35651
  "type": "object"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "6.13.0",
4
+ "version": "6.13.2",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },