tornapi-typescript 6.13.6 → 6.13.9
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 +9 -5
- package/dist/index.ts +11 -5
- package/dist/openapi.json +32 -9
- package/package.json +4 -4
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
|
|
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
|
|
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
|
-
|
|
3800
|
-
captain:
|
|
3801
|
-
vice_captains:
|
|
3803
|
+
captains: {
|
|
3804
|
+
captain: TornEliminationTeamCaptain | null;
|
|
3805
|
+
vice_captains: TornEliminationTeamCaptain[];
|
|
3802
3806
|
};
|
|
3803
3807
|
}
|
|
3804
3808
|
export interface TornEliminationTeamsResponse {
|
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
|
|
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
|
-
|
|
9660
|
-
captain:
|
|
9661
|
-
vice_captains:
|
|
9665
|
+
captains: {
|
|
9666
|
+
captain: TornEliminationTeamCaptain | null;
|
|
9667
|
+
vice_captains: TornEliminationTeamCaptain[];
|
|
9662
9668
|
};
|
|
9663
9669
|
}
|
|
9664
9670
|
|
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.
|
|
6
|
+
"version": "6.13.9"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -1614,7 +1614,7 @@
|
|
|
1614
1614
|
"User"
|
|
1615
1615
|
],
|
|
1616
1616
|
"summary": "Get your inventory",
|
|
1617
|
-
"description": "<b>Cached selection (
|
|
1617
|
+
"description": "<b>Cached selection (15 minutes per category).</b><br><br>Requires minimal access key. <br>",
|
|
1618
1618
|
"operationId": "getMyInventory",
|
|
1619
1619
|
"parameters": [
|
|
1620
1620
|
{
|
|
@@ -5136,7 +5136,7 @@
|
|
|
5136
5136
|
"Faction"
|
|
5137
5137
|
],
|
|
5138
5138
|
"summary": "Get your faction's inventory items.",
|
|
5139
|
-
"description": "<b>Cached selection (
|
|
5139
|
+
"description": "<b>Cached selection (5 minutes, all items cached at once).</b><br><br>Requires limited access key. <br> ",
|
|
5140
5140
|
"operationId": "getMyFactionInventory",
|
|
5141
5141
|
"parameters": [
|
|
5142
5142
|
{
|
|
@@ -19555,6 +19555,25 @@
|
|
|
19555
19555
|
},
|
|
19556
19556
|
"type": "object"
|
|
19557
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
|
+
},
|
|
19558
19577
|
"ApiError": {
|
|
19559
19578
|
"oneOf": [
|
|
19560
19579
|
{
|
|
@@ -19655,6 +19674,9 @@
|
|
|
19655
19674
|
},
|
|
19656
19675
|
{
|
|
19657
19676
|
"$ref": "#/components/schemas/ErrorEndpointClosedUntilAttackingPeriod"
|
|
19677
|
+
},
|
|
19678
|
+
{
|
|
19679
|
+
"$ref": "#/components/schemas/ErrorNoCompetitionAvailable"
|
|
19658
19680
|
}
|
|
19659
19681
|
]
|
|
19660
19682
|
},
|
|
@@ -35562,7 +35584,7 @@
|
|
|
35562
35584
|
},
|
|
35563
35585
|
"type": "object"
|
|
35564
35586
|
},
|
|
35565
|
-
"
|
|
35587
|
+
"TornEliminationTeamCaptain": {
|
|
35566
35588
|
"allOf": [
|
|
35567
35589
|
{
|
|
35568
35590
|
"$ref": "#/components/schemas/BasicUser"
|
|
@@ -35609,7 +35631,7 @@
|
|
|
35609
35631
|
"losses",
|
|
35610
35632
|
"eliminated",
|
|
35611
35633
|
"eliminated_timestamp",
|
|
35612
|
-
"
|
|
35634
|
+
"captains",
|
|
35613
35635
|
"attacking_summary"
|
|
35614
35636
|
],
|
|
35615
35637
|
"properties": {
|
|
@@ -35667,7 +35689,7 @@
|
|
|
35667
35689
|
}
|
|
35668
35690
|
]
|
|
35669
35691
|
},
|
|
35670
|
-
"
|
|
35692
|
+
"captains": {
|
|
35671
35693
|
"required": [
|
|
35672
35694
|
"captain",
|
|
35673
35695
|
"vice_captains"
|
|
@@ -35676,7 +35698,7 @@
|
|
|
35676
35698
|
"captain": {
|
|
35677
35699
|
"oneOf": [
|
|
35678
35700
|
{
|
|
35679
|
-
"$ref": "#/components/schemas/
|
|
35701
|
+
"$ref": "#/components/schemas/TornEliminationTeamCaptain"
|
|
35680
35702
|
},
|
|
35681
35703
|
{
|
|
35682
35704
|
"type": "null"
|
|
@@ -35686,8 +35708,9 @@
|
|
|
35686
35708
|
"vice_captains": {
|
|
35687
35709
|
"type": "array",
|
|
35688
35710
|
"items": {
|
|
35689
|
-
"$ref": "#/components/schemas/
|
|
35690
|
-
}
|
|
35711
|
+
"$ref": "#/components/schemas/TornEliminationTeamCaptain"
|
|
35712
|
+
},
|
|
35713
|
+
"maxItems": 5
|
|
35691
35714
|
}
|
|
35692
35715
|
},
|
|
35693
35716
|
"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.
|
|
4
|
+
"version": "6.13.9",
|
|
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.
|
|
13
|
-
"@types/node": "^25.9.
|
|
14
|
-
"prettier": "^3.9.
|
|
12
|
+
"@scalar/openapi-types": "^0.9.8",
|
|
13
|
+
"@types/node": "^25.9.9",
|
|
14
|
+
"prettier": "^3.9.10",
|
|
15
15
|
"typeconv": "^2.3.1",
|
|
16
16
|
"typescript": "^6.0.3"
|
|
17
17
|
},
|