tornapi-typescript 0.2.2 → 0.2.3
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 -14
- package/dist/openapi.json +27 -55
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4556,6 +4556,11 @@ export interface RequestMetadataWithLinks {
|
|
|
4556
4556
|
links: RequestLinks;
|
|
4557
4557
|
}
|
|
4558
4558
|
|
|
4559
|
+
export interface RequestMetadataWithLinksAndTotal {
|
|
4560
|
+
links: RequestLinks;
|
|
4561
|
+
total?: number;
|
|
4562
|
+
}
|
|
4563
|
+
|
|
4559
4564
|
/**
|
|
4560
4565
|
* This represents the type of the activity. Values range from 1 to 8 where:
|
|
4561
4566
|
* * 1 = 'X posted on a thread',
|
|
@@ -5040,7 +5045,6 @@ export interface FactionMember {
|
|
|
5040
5045
|
has_early_discharge: boolean;
|
|
5041
5046
|
last_action: UserLastAction;
|
|
5042
5047
|
status: UserStatus;
|
|
5043
|
-
life?: UserLife;
|
|
5044
5048
|
revive_setting: ReviveSetting;
|
|
5045
5049
|
}
|
|
5046
5050
|
|
|
@@ -5051,12 +5055,6 @@ export interface UserLastAction {
|
|
|
5051
5055
|
relative: string;
|
|
5052
5056
|
}
|
|
5053
5057
|
|
|
5054
|
-
/** Unfortunately, current life value is often shown incorrectly, and the calculation for each member is very resource heavy, so this field is deprecated and will be removed on 1st of May, 2025. */
|
|
5055
|
-
export interface UserLife {
|
|
5056
|
-
current?: number;
|
|
5057
|
-
maximum?: number;
|
|
5058
|
-
}
|
|
5059
|
-
|
|
5060
5058
|
/** Details about a user's status. */
|
|
5061
5059
|
export interface UserStatus {
|
|
5062
5060
|
description: string;
|
|
@@ -5260,7 +5258,7 @@ export interface FactionChainReport {
|
|
|
5260
5258
|
details: FactionChainReportDetails;
|
|
5261
5259
|
bonuses: FactionChainReportBonus[];
|
|
5262
5260
|
attackers: FactionChainReportAttacker[];
|
|
5263
|
-
/** This is replaced with '
|
|
5261
|
+
/** This is replaced with 'non_attackers' field and will be removed on 1st June 2025. */
|
|
5264
5262
|
"non-attackers"?: UserId[];
|
|
5265
5263
|
non_attackers: UserId[];
|
|
5266
5264
|
}
|
|
@@ -5356,12 +5354,7 @@ export interface FactionCrimeSlot {
|
|
|
5356
5354
|
/** Shows if user has the required item. */
|
|
5357
5355
|
is_available: boolean;
|
|
5358
5356
|
} | null;
|
|
5359
|
-
user_id?: UserId | null;
|
|
5360
5357
|
user: FactionCrimeUser | null;
|
|
5361
|
-
/** This field is replaced with 'checkpoint_pass_rate' field and will be removed on 1st of May 2025. */
|
|
5362
|
-
success_chance?: number;
|
|
5363
|
-
/** This field is replaced with 'checkpoint_pass_rate' field and will be removed on 1st of May 2025. */
|
|
5364
|
-
crime_pass_rate?: number;
|
|
5365
5358
|
/** Returns CPR for the player who joined the slot. If the slot is empty (availalbe), it shows your CPR for that slot. This value is 0 for expired crimes. */
|
|
5366
5359
|
checkpoint_pass_rate: number;
|
|
5367
5360
|
}
|
|
@@ -5655,6 +5648,7 @@ export interface KeyLogResponse {
|
|
|
5655
5648
|
type: string;
|
|
5656
5649
|
selections: string;
|
|
5657
5650
|
id: number | null;
|
|
5651
|
+
comment?: string | null;
|
|
5658
5652
|
ip: string;
|
|
5659
5653
|
}[];
|
|
5660
5654
|
}
|
|
@@ -5721,7 +5715,6 @@ export interface ItemMarketListingItemDetails {
|
|
|
5721
5715
|
export interface ItemMarketListingNonstackable {
|
|
5722
5716
|
price: number;
|
|
5723
5717
|
amount: number;
|
|
5724
|
-
itemDetails?: ItemMarketListingItemDetails;
|
|
5725
5718
|
item_details: ItemMarketListingItemDetails;
|
|
5726
5719
|
}
|
|
5727
5720
|
|
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": "1.
|
|
6
|
+
"version": "1.6.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -10613,6 +10613,21 @@
|
|
|
10613
10613
|
},
|
|
10614
10614
|
"type": "object"
|
|
10615
10615
|
},
|
|
10616
|
+
"RequestMetadataWithLinksAndTotal": {
|
|
10617
|
+
"required": [
|
|
10618
|
+
"links"
|
|
10619
|
+
],
|
|
10620
|
+
"properties": {
|
|
10621
|
+
"links": {
|
|
10622
|
+
"$ref": "#/components/schemas/RequestLinks"
|
|
10623
|
+
},
|
|
10624
|
+
"total": {
|
|
10625
|
+
"type": "integer",
|
|
10626
|
+
"format": "int64"
|
|
10627
|
+
}
|
|
10628
|
+
},
|
|
10629
|
+
"type": "object"
|
|
10630
|
+
},
|
|
10616
10631
|
"ForumFeedTypeEnum": {
|
|
10617
10632
|
"description": "This represents the type of the activity. Values range from 1 to 8 where:\n * 1 = 'X posted on a thread',\n * 2 = 'X created a thread',\n * 3 = 'X liked your thread',\n * 4 = 'X disliked your thread',\n * 5 = 'X liked your post',\n * 6 = 'X disliked your post',\n * 7 = 'X quoted your post'.",
|
|
10618
10633
|
"type": "integer",
|
|
@@ -12117,9 +12132,6 @@
|
|
|
12117
12132
|
"status": {
|
|
12118
12133
|
"$ref": "#/components/schemas/UserStatus"
|
|
12119
12134
|
},
|
|
12120
|
-
"life": {
|
|
12121
|
-
"$ref": "#/components/schemas/UserLife"
|
|
12122
|
-
},
|
|
12123
12135
|
"revive_setting": {
|
|
12124
12136
|
"$ref": "#/components/schemas/ReviveSetting"
|
|
12125
12137
|
}
|
|
@@ -12147,23 +12159,6 @@
|
|
|
12147
12159
|
},
|
|
12148
12160
|
"type": "object"
|
|
12149
12161
|
},
|
|
12150
|
-
"UserLife": {
|
|
12151
|
-
"description": "Unfortunately, current life value is often shown incorrectly, and the calculation for each member is very resource heavy, so this field is deprecated and will be removed on 1st of May, 2025.",
|
|
12152
|
-
"properties": {
|
|
12153
|
-
"current": {
|
|
12154
|
-
"type": "integer",
|
|
12155
|
-
"format": "int32",
|
|
12156
|
-
"deprecated": true
|
|
12157
|
-
},
|
|
12158
|
-
"maximum": {
|
|
12159
|
-
"type": "integer",
|
|
12160
|
-
"format": "int32",
|
|
12161
|
-
"deprecated": true
|
|
12162
|
-
}
|
|
12163
|
-
},
|
|
12164
|
-
"type": "object",
|
|
12165
|
-
"deprecated": true
|
|
12166
|
-
},
|
|
12167
12162
|
"UserStatus": {
|
|
12168
12163
|
"description": "Details about a user's status.",
|
|
12169
12164
|
"required": [
|
|
@@ -12970,7 +12965,7 @@
|
|
|
12970
12965
|
}
|
|
12971
12966
|
},
|
|
12972
12967
|
"non-attackers": {
|
|
12973
|
-
"description": "This is replaced with '
|
|
12968
|
+
"description": "This is replaced with 'non_attackers' field and will be removed on 1st June 2025.",
|
|
12974
12969
|
"type": "array",
|
|
12975
12970
|
"items": {
|
|
12976
12971
|
"$ref": "#/components/schemas/UserId"
|
|
@@ -13359,18 +13354,6 @@
|
|
|
13359
13354
|
}
|
|
13360
13355
|
]
|
|
13361
13356
|
},
|
|
13362
|
-
"user_id": {
|
|
13363
|
-
"description": "This field is replaced with the 'user.id' and will be removed on the 1st of May 2025.",
|
|
13364
|
-
"deprecated": true,
|
|
13365
|
-
"oneOf": [
|
|
13366
|
-
{
|
|
13367
|
-
"$ref": "#/components/schemas/UserId"
|
|
13368
|
-
},
|
|
13369
|
-
{
|
|
13370
|
-
"type": "null"
|
|
13371
|
-
}
|
|
13372
|
-
]
|
|
13373
|
-
},
|
|
13374
13357
|
"user": {
|
|
13375
13358
|
"description": "Details about the user joined the slot, if any.",
|
|
13376
13359
|
"oneOf": [
|
|
@@ -13382,18 +13365,6 @@
|
|
|
13382
13365
|
}
|
|
13383
13366
|
]
|
|
13384
13367
|
},
|
|
13385
|
-
"success_chance": {
|
|
13386
|
-
"description": "This field is replaced with 'checkpoint_pass_rate' field and will be removed on 1st of May 2025.",
|
|
13387
|
-
"type": "integer",
|
|
13388
|
-
"format": "int32",
|
|
13389
|
-
"deprecated": true
|
|
13390
|
-
},
|
|
13391
|
-
"crime_pass_rate": {
|
|
13392
|
-
"description": "This field is replaced with 'checkpoint_pass_rate' field and will be removed on 1st of May 2025.",
|
|
13393
|
-
"type": "integer",
|
|
13394
|
-
"format": "int32",
|
|
13395
|
-
"deprecated": true
|
|
13396
|
-
},
|
|
13397
13368
|
"checkpoint_pass_rate": {
|
|
13398
13369
|
"description": "Returns CPR for the player who joined the slot. If the slot is empty (availalbe), it shows your CPR for that slot. This value is 0 for expired crimes.",
|
|
13399
13370
|
"type": "integer",
|
|
@@ -14432,6 +14403,16 @@
|
|
|
14432
14403
|
}
|
|
14433
14404
|
]
|
|
14434
14405
|
},
|
|
14406
|
+
"comment": {
|
|
14407
|
+
"oneOf": [
|
|
14408
|
+
{
|
|
14409
|
+
"type": "string"
|
|
14410
|
+
},
|
|
14411
|
+
{
|
|
14412
|
+
"type": "null"
|
|
14413
|
+
}
|
|
14414
|
+
]
|
|
14415
|
+
},
|
|
14435
14416
|
"ip": {
|
|
14436
14417
|
"type": "string"
|
|
14437
14418
|
}
|
|
@@ -14747,15 +14728,6 @@
|
|
|
14747
14728
|
"type": "integer",
|
|
14748
14729
|
"format": "int32"
|
|
14749
14730
|
},
|
|
14750
|
-
"itemDetails": {
|
|
14751
|
-
"description": "This field used camelCase instead of snake_case by accident and is replaced with 'item_details' field. This will be removed on 1st of May 2025.",
|
|
14752
|
-
"deprecated": true,
|
|
14753
|
-
"allOf": [
|
|
14754
|
-
{
|
|
14755
|
-
"$ref": "#/components/schemas/ItemMarketListingItemDetails"
|
|
14756
|
-
}
|
|
14757
|
-
]
|
|
14758
|
-
},
|
|
14759
14731
|
"item_details": {
|
|
14760
14732
|
"$ref": "#/components/schemas/ItemMarketListingItemDetails"
|
|
14761
14733
|
}
|