tornapi-typescript 4.7.0 → 5.0.1
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 +7 -11
- package/dist/index.ts +9 -11
- package/dist/openapi.json +48 -69
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -477,10 +477,6 @@ export interface UserCooldownsResponse {
|
|
|
477
477
|
export interface UserBar {
|
|
478
478
|
current: number;
|
|
479
479
|
maximum: number;
|
|
480
|
-
increment: number;
|
|
481
|
-
interval: number;
|
|
482
|
-
tick_time: number;
|
|
483
|
-
full_time: number;
|
|
484
480
|
}
|
|
485
481
|
export interface UserBars {
|
|
486
482
|
energy: UserBar;
|
|
@@ -544,6 +540,12 @@ export interface UserCompetitionEasterEggs {
|
|
|
544
540
|
score: number;
|
|
545
541
|
total: number;
|
|
546
542
|
}
|
|
543
|
+
export interface UserCompetitionElimination {
|
|
544
|
+
name: "Elimination";
|
|
545
|
+
score: number;
|
|
546
|
+
team?: string;
|
|
547
|
+
attacks?: number;
|
|
548
|
+
}
|
|
547
549
|
export interface UserCompetitionRps {
|
|
548
550
|
name: "Rock, Paper, Scissors";
|
|
549
551
|
status: UserRpsStatus;
|
|
@@ -553,7 +555,7 @@ export interface UserCompetitionRps {
|
|
|
553
555
|
};
|
|
554
556
|
}
|
|
555
557
|
export interface UserCompetitionResponse {
|
|
556
|
-
competition: UserCompetitionHalloween | UserCompetitionEasterEggs | UserCompetitionRps;
|
|
558
|
+
competition: UserCompetitionHalloween | UserCompetitionEasterEggs | UserCompetitionRps | UserCompetitionElimination;
|
|
557
559
|
}
|
|
558
560
|
export interface UserFaction {
|
|
559
561
|
id: FactionId;
|
|
@@ -2011,8 +2013,6 @@ export interface UserStatus {
|
|
|
2011
2013
|
state: UserStatusStateEnum | string;
|
|
2012
2014
|
color: string;
|
|
2013
2015
|
until: number | null;
|
|
2014
|
-
/** This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025. */
|
|
2015
|
-
travel_type?: string;
|
|
2016
2016
|
plane_image_type?: UserPlaneImageTypeEnum;
|
|
2017
2017
|
}
|
|
2018
2018
|
export interface FactionMembersResponse {
|
|
@@ -6530,10 +6530,6 @@ export interface UserV2 extends BaseSchema {
|
|
|
6530
6530
|
response: UserFactionResponse;
|
|
6531
6531
|
params: "timestamp";
|
|
6532
6532
|
};
|
|
6533
|
-
factionbalance: {
|
|
6534
|
-
response: UserFactionBalanceResponse;
|
|
6535
|
-
params: "timestamp";
|
|
6536
|
-
};
|
|
6537
6533
|
forumfeed: {
|
|
6538
6534
|
response: UserForumFeedResponse;
|
|
6539
6535
|
params: "timestamp";
|
package/dist/index.ts
CHANGED
|
@@ -5459,10 +5459,6 @@ export interface UserCooldownsResponse {
|
|
|
5459
5459
|
export interface UserBar {
|
|
5460
5460
|
current: number;
|
|
5461
5461
|
maximum: number;
|
|
5462
|
-
increment: number;
|
|
5463
|
-
interval: number;
|
|
5464
|
-
tick_time: number;
|
|
5465
|
-
full_time: number;
|
|
5466
5462
|
}
|
|
5467
5463
|
|
|
5468
5464
|
export interface UserBars {
|
|
@@ -5540,6 +5536,13 @@ export interface UserCompetitionEasterEggs {
|
|
|
5540
5536
|
total: number;
|
|
5541
5537
|
}
|
|
5542
5538
|
|
|
5539
|
+
export interface UserCompetitionElimination {
|
|
5540
|
+
name: "Elimination";
|
|
5541
|
+
score: number;
|
|
5542
|
+
team?: string;
|
|
5543
|
+
attacks?: number;
|
|
5544
|
+
}
|
|
5545
|
+
|
|
5543
5546
|
export interface UserCompetitionRps {
|
|
5544
5547
|
name: "Rock, Paper, Scissors";
|
|
5545
5548
|
status: UserRpsStatus;
|
|
@@ -5553,7 +5556,8 @@ export interface UserCompetitionResponse {
|
|
|
5553
5556
|
competition:
|
|
5554
5557
|
| UserCompetitionHalloween
|
|
5555
5558
|
| UserCompetitionEasterEggs
|
|
5556
|
-
| UserCompetitionRps
|
|
5559
|
+
| UserCompetitionRps
|
|
5560
|
+
| UserCompetitionElimination;
|
|
5557
5561
|
}
|
|
5558
5562
|
|
|
5559
5563
|
export interface UserFaction {
|
|
@@ -7509,8 +7513,6 @@ export interface UserStatus {
|
|
|
7509
7513
|
state: UserStatusStateEnum | string;
|
|
7510
7514
|
color: string;
|
|
7511
7515
|
until: number | null;
|
|
7512
|
-
/** This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025. */
|
|
7513
|
-
travel_type?: string;
|
|
7514
7516
|
plane_image_type?: UserPlaneImageTypeEnum;
|
|
7515
7517
|
}
|
|
7516
7518
|
|
|
@@ -12274,10 +12276,6 @@ export interface UserV2 extends BaseSchema {
|
|
|
12274
12276
|
response: UserFactionResponse;
|
|
12275
12277
|
params: "timestamp";
|
|
12276
12278
|
};
|
|
12277
|
-
factionbalance: {
|
|
12278
|
-
response: UserFactionBalanceResponse;
|
|
12279
|
-
params: "timestamp";
|
|
12280
|
-
};
|
|
12281
12279
|
forumfeed: {
|
|
12282
12280
|
response: UserForumFeedResponse;
|
|
12283
12281
|
params: "timestamp";
|
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
|
+
"version": "5.0.1"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
"tags": [
|
|
423
423
|
"User"
|
|
424
424
|
],
|
|
425
|
-
"summary": "Get your
|
|
425
|
+
"summary": "Get your calendar events start time",
|
|
426
426
|
"description": "Requires minimal access key. <br>Only available to yourself.",
|
|
427
427
|
"operationId": "4cc4cc6fa3764f9732db9589e91d7739",
|
|
428
428
|
"parameters": [
|
|
@@ -972,46 +972,6 @@
|
|
|
972
972
|
"x-stability": "Stable"
|
|
973
973
|
}
|
|
974
974
|
},
|
|
975
|
-
"/user/factionbalance": {
|
|
976
|
-
"get": {
|
|
977
|
-
"tags": [
|
|
978
|
-
"User"
|
|
979
|
-
],
|
|
980
|
-
"summary": "Deprecated. Use user/money instead",
|
|
981
|
-
"description": "Will be removed on 1st of December 2025. Requires limited access key. <br>",
|
|
982
|
-
"operationId": "b7ebbeea51dc2ef56c3ed5fd9d94e680",
|
|
983
|
-
"parameters": [
|
|
984
|
-
{
|
|
985
|
-
"$ref": "#/components/parameters/ApiTimestamp"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"$ref": "#/components/parameters/ApiComment"
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
"$ref": "#/components/parameters/ApiKeyLimited"
|
|
992
|
-
}
|
|
993
|
-
],
|
|
994
|
-
"responses": {
|
|
995
|
-
"200": {
|
|
996
|
-
"description": "Successful operation",
|
|
997
|
-
"content": {
|
|
998
|
-
"application/json": {
|
|
999
|
-
"schema": {
|
|
1000
|
-
"$ref": "#/components/schemas/UserFactionBalanceResponse"
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
},
|
|
1006
|
-
"deprecated": true,
|
|
1007
|
-
"security": [
|
|
1008
|
-
{
|
|
1009
|
-
"api_key": []
|
|
1010
|
-
}
|
|
1011
|
-
],
|
|
1012
|
-
"x-stability": "Deprecated"
|
|
1013
|
-
}
|
|
1014
|
-
},
|
|
1015
975
|
"/user/forumfeed": {
|
|
1016
976
|
"get": {
|
|
1017
977
|
"tags": [
|
|
@@ -3466,6 +3426,12 @@
|
|
|
3466
3426
|
{
|
|
3467
3427
|
"$ref": "#/components/schemas/UserForumFriendsResponse"
|
|
3468
3428
|
},
|
|
3429
|
+
{
|
|
3430
|
+
"$ref": "#/components/schemas/UserPropertyResponse"
|
|
3431
|
+
},
|
|
3432
|
+
{
|
|
3433
|
+
"$ref": "#/components/schemas/ReportsResponse"
|
|
3434
|
+
},
|
|
3469
3435
|
{
|
|
3470
3436
|
"$ref": "#/components/schemas/UserHofResponse"
|
|
3471
3437
|
},
|
|
@@ -3529,6 +3495,9 @@
|
|
|
3529
3495
|
{
|
|
3530
3496
|
"$ref": "#/components/schemas/UserListResponse"
|
|
3531
3497
|
},
|
|
3498
|
+
{
|
|
3499
|
+
"$ref": "#/components/schemas/UserEquipmentResponse"
|
|
3500
|
+
},
|
|
3532
3501
|
{
|
|
3533
3502
|
"$ref": "#/components/schemas/UserMissionsResponse"
|
|
3534
3503
|
},
|
|
@@ -9263,9 +9232,15 @@
|
|
|
9263
9232
|
{
|
|
9264
9233
|
"$ref": "#/components/schemas/TornMeritsResponse"
|
|
9265
9234
|
},
|
|
9235
|
+
{
|
|
9236
|
+
"$ref": "#/components/schemas/TornOrganizedCrimeResponse"
|
|
9237
|
+
},
|
|
9266
9238
|
{
|
|
9267
9239
|
"$ref": "#/components/schemas/TornHonorsResponse"
|
|
9268
9240
|
},
|
|
9241
|
+
{
|
|
9242
|
+
"$ref": "#/components/schemas/TornItemDetailsResponse"
|
|
9243
|
+
},
|
|
9269
9244
|
{
|
|
9270
9245
|
"$ref": "#/components/schemas/TornMedalsResponse"
|
|
9271
9246
|
},
|
|
@@ -13831,7 +13806,6 @@
|
|
|
13831
13806
|
"Newsletter Sending",
|
|
13832
13807
|
"Announcement Changes",
|
|
13833
13808
|
"Description Changes",
|
|
13834
|
-
"Organised Crimes",
|
|
13835
13809
|
"Utility Item Loaning",
|
|
13836
13810
|
"Consumable Item Usage"
|
|
13837
13811
|
]
|
|
@@ -16462,11 +16436,7 @@
|
|
|
16462
16436
|
"UserBar": {
|
|
16463
16437
|
"required": [
|
|
16464
16438
|
"current",
|
|
16465
|
-
"maximum"
|
|
16466
|
-
"increment",
|
|
16467
|
-
"interval",
|
|
16468
|
-
"tick_time",
|
|
16469
|
-
"full_time"
|
|
16439
|
+
"maximum"
|
|
16470
16440
|
],
|
|
16471
16441
|
"properties": {
|
|
16472
16442
|
"current": {
|
|
@@ -16476,22 +16446,6 @@
|
|
|
16476
16446
|
"maximum": {
|
|
16477
16447
|
"type": "integer",
|
|
16478
16448
|
"format": "int32"
|
|
16479
|
-
},
|
|
16480
|
-
"increment": {
|
|
16481
|
-
"type": "integer",
|
|
16482
|
-
"format": "int32"
|
|
16483
|
-
},
|
|
16484
|
-
"interval": {
|
|
16485
|
-
"type": "integer",
|
|
16486
|
-
"format": "int32"
|
|
16487
|
-
},
|
|
16488
|
-
"tick_time": {
|
|
16489
|
-
"type": "integer",
|
|
16490
|
-
"format": "int32"
|
|
16491
|
-
},
|
|
16492
|
-
"full_time": {
|
|
16493
|
-
"type": "integer",
|
|
16494
|
-
"format": "int32"
|
|
16495
16449
|
}
|
|
16496
16450
|
},
|
|
16497
16451
|
"type": "object"
|
|
@@ -16789,6 +16743,33 @@
|
|
|
16789
16743
|
},
|
|
16790
16744
|
"type": "object"
|
|
16791
16745
|
},
|
|
16746
|
+
"UserCompetitionElimination": {
|
|
16747
|
+
"required": [
|
|
16748
|
+
"name",
|
|
16749
|
+
"score",
|
|
16750
|
+
"total"
|
|
16751
|
+
],
|
|
16752
|
+
"properties": {
|
|
16753
|
+
"name": {
|
|
16754
|
+
"type": "string",
|
|
16755
|
+
"enum": [
|
|
16756
|
+
"Elimination"
|
|
16757
|
+
]
|
|
16758
|
+
},
|
|
16759
|
+
"score": {
|
|
16760
|
+
"type": "integer",
|
|
16761
|
+
"format": "int32"
|
|
16762
|
+
},
|
|
16763
|
+
"team": {
|
|
16764
|
+
"type": "string"
|
|
16765
|
+
},
|
|
16766
|
+
"attacks": {
|
|
16767
|
+
"type": "integer",
|
|
16768
|
+
"format": "int32"
|
|
16769
|
+
}
|
|
16770
|
+
},
|
|
16771
|
+
"type": "object"
|
|
16772
|
+
},
|
|
16792
16773
|
"UserCompetitionRps": {
|
|
16793
16774
|
"required": [
|
|
16794
16775
|
"name",
|
|
@@ -16840,6 +16821,9 @@
|
|
|
16840
16821
|
},
|
|
16841
16822
|
{
|
|
16842
16823
|
"$ref": "#/components/schemas/UserCompetitionRps"
|
|
16824
|
+
},
|
|
16825
|
+
{
|
|
16826
|
+
"$ref": "#/components/schemas/UserCompetitionElimination"
|
|
16843
16827
|
}
|
|
16844
16828
|
]
|
|
16845
16829
|
}
|
|
@@ -24067,11 +24051,6 @@
|
|
|
24067
24051
|
}
|
|
24068
24052
|
]
|
|
24069
24053
|
},
|
|
24070
|
-
"travel_type": {
|
|
24071
|
-
"description": "This field is replaced by the 'plane_image_type' field and will be removed on October 1st 2025.",
|
|
24072
|
-
"type": "string",
|
|
24073
|
-
"deprecated": true
|
|
24074
|
-
},
|
|
24075
24054
|
"plane_image_type": {
|
|
24076
24055
|
"$ref": "#/components/schemas/UserPlaneImageTypeEnum",
|
|
24077
24056
|
"description": "This field is populated only if the state is 'Traveling'."
|