tornapi-typescript 5.2.3 → 5.4.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 +110 -6
- package/dist/index.ts +129 -9
- package/dist/openapi.json +599 -18
- package/package.json +2 -2
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": "5.
|
|
6
|
+
"version": "5.4.1"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -2243,6 +2243,45 @@
|
|
|
2243
2243
|
"x-stability": "Stable"
|
|
2244
2244
|
}
|
|
2245
2245
|
},
|
|
2246
|
+
"/user/organizedcrimes": {
|
|
2247
|
+
"get": {
|
|
2248
|
+
"tags": [
|
|
2249
|
+
"User"
|
|
2250
|
+
],
|
|
2251
|
+
"summary": "Get available slots for organized crimes with status 'Recruiting'",
|
|
2252
|
+
"description": "Requires minimal access key. <br>Unlike 'faction' -> 'crimes', this selection only shows empty slots, and only for crimes with the 'Recruiting' status.",
|
|
2253
|
+
"operationId": "getMyAvailableOrganizedCrimes",
|
|
2254
|
+
"parameters": [
|
|
2255
|
+
{
|
|
2256
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"$ref": "#/components/parameters/ApiKeyMinimal"
|
|
2263
|
+
}
|
|
2264
|
+
],
|
|
2265
|
+
"responses": {
|
|
2266
|
+
"200": {
|
|
2267
|
+
"description": "Successful operation",
|
|
2268
|
+
"content": {
|
|
2269
|
+
"application/json": {
|
|
2270
|
+
"schema": {
|
|
2271
|
+
"$ref": "#/components/schemas/UserOrganizedCrimesResponse"
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
},
|
|
2277
|
+
"security": [
|
|
2278
|
+
{
|
|
2279
|
+
"api_key": []
|
|
2280
|
+
}
|
|
2281
|
+
],
|
|
2282
|
+
"x-stability": "Stable"
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2246
2285
|
"/user/personalstats": {
|
|
2247
2286
|
"get": {
|
|
2248
2287
|
"tags": [
|
|
@@ -3032,6 +3071,45 @@
|
|
|
3032
3071
|
"x-stability": "Stable"
|
|
3033
3072
|
}
|
|
3034
3073
|
},
|
|
3074
|
+
"/user/stocks": {
|
|
3075
|
+
"get": {
|
|
3076
|
+
"tags": [
|
|
3077
|
+
"User"
|
|
3078
|
+
],
|
|
3079
|
+
"summary": "Get your stocks",
|
|
3080
|
+
"description": "Requires limited access key. <br>",
|
|
3081
|
+
"operationId": "getMyStocks",
|
|
3082
|
+
"parameters": [
|
|
3083
|
+
{
|
|
3084
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
3088
|
+
},
|
|
3089
|
+
{
|
|
3090
|
+
"$ref": "#/components/parameters/ApiKeyLimited"
|
|
3091
|
+
}
|
|
3092
|
+
],
|
|
3093
|
+
"responses": {
|
|
3094
|
+
"200": {
|
|
3095
|
+
"description": "Successful operation",
|
|
3096
|
+
"content": {
|
|
3097
|
+
"application/json": {
|
|
3098
|
+
"schema": {
|
|
3099
|
+
"$ref": "#/components/schemas/UserStocksResponse"
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3104
|
+
},
|
|
3105
|
+
"security": [
|
|
3106
|
+
{
|
|
3107
|
+
"api_key": []
|
|
3108
|
+
}
|
|
3109
|
+
],
|
|
3110
|
+
"x-stability": "Unstable"
|
|
3111
|
+
}
|
|
3112
|
+
},
|
|
3035
3113
|
"/user/travel": {
|
|
3036
3114
|
"get": {
|
|
3037
3115
|
"tags": [
|
|
@@ -3447,6 +3525,9 @@
|
|
|
3447
3525
|
{
|
|
3448
3526
|
"$ref": "#/components/schemas/UserEducationResponse"
|
|
3449
3527
|
},
|
|
3528
|
+
{
|
|
3529
|
+
"$ref": "#/components/schemas/UserStocksResponse"
|
|
3530
|
+
},
|
|
3450
3531
|
{
|
|
3451
3532
|
"$ref": "#/components/schemas/UserBountiesResponse"
|
|
3452
3533
|
},
|
|
@@ -9162,6 +9243,93 @@
|
|
|
9162
9243
|
"x-stability": "Stable"
|
|
9163
9244
|
}
|
|
9164
9245
|
},
|
|
9246
|
+
"/torn/stocks": {
|
|
9247
|
+
"get": {
|
|
9248
|
+
"tags": [
|
|
9249
|
+
"Torn"
|
|
9250
|
+
],
|
|
9251
|
+
"summary": "Get all stocks",
|
|
9252
|
+
"description": "Requires public access key. <br>",
|
|
9253
|
+
"operationId": "getTornStocks",
|
|
9254
|
+
"parameters": [
|
|
9255
|
+
{
|
|
9256
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
9257
|
+
},
|
|
9258
|
+
{
|
|
9259
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
9260
|
+
},
|
|
9261
|
+
{
|
|
9262
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
9263
|
+
}
|
|
9264
|
+
],
|
|
9265
|
+
"responses": {
|
|
9266
|
+
"200": {
|
|
9267
|
+
"description": "Successful operation",
|
|
9268
|
+
"content": {
|
|
9269
|
+
"application/json": {
|
|
9270
|
+
"schema": {
|
|
9271
|
+
"$ref": "#/components/schemas/TornStocksResponse"
|
|
9272
|
+
}
|
|
9273
|
+
}
|
|
9274
|
+
}
|
|
9275
|
+
}
|
|
9276
|
+
},
|
|
9277
|
+
"security": [
|
|
9278
|
+
{
|
|
9279
|
+
"api_key": []
|
|
9280
|
+
}
|
|
9281
|
+
],
|
|
9282
|
+
"x-stability": "Unstable"
|
|
9283
|
+
}
|
|
9284
|
+
},
|
|
9285
|
+
"/torn/{stockId}/stocks": {
|
|
9286
|
+
"get": {
|
|
9287
|
+
"tags": [
|
|
9288
|
+
"Torn"
|
|
9289
|
+
],
|
|
9290
|
+
"summary": "Get specific stock with chart history",
|
|
9291
|
+
"description": "Requires public access key. <br>",
|
|
9292
|
+
"operationId": "getSpecificTornStock",
|
|
9293
|
+
"parameters": [
|
|
9294
|
+
{
|
|
9295
|
+
"name": "stockId",
|
|
9296
|
+
"in": "path",
|
|
9297
|
+
"description": "Stock id",
|
|
9298
|
+
"required": true,
|
|
9299
|
+
"schema": {
|
|
9300
|
+
"$ref": "#/components/schemas/StockId"
|
|
9301
|
+
}
|
|
9302
|
+
},
|
|
9303
|
+
{
|
|
9304
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
9305
|
+
},
|
|
9306
|
+
{
|
|
9307
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
9308
|
+
},
|
|
9309
|
+
{
|
|
9310
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
9311
|
+
}
|
|
9312
|
+
],
|
|
9313
|
+
"responses": {
|
|
9314
|
+
"200": {
|
|
9315
|
+
"description": "Successful operation",
|
|
9316
|
+
"content": {
|
|
9317
|
+
"application/json": {
|
|
9318
|
+
"schema": {
|
|
9319
|
+
"$ref": "#/components/schemas/TornStockDetailedResponse"
|
|
9320
|
+
}
|
|
9321
|
+
}
|
|
9322
|
+
}
|
|
9323
|
+
}
|
|
9324
|
+
},
|
|
9325
|
+
"security": [
|
|
9326
|
+
{
|
|
9327
|
+
"api_key": []
|
|
9328
|
+
}
|
|
9329
|
+
],
|
|
9330
|
+
"x-stability": "Unstable"
|
|
9331
|
+
}
|
|
9332
|
+
},
|
|
9165
9333
|
"/torn/{crimeId}/subcrimes": {
|
|
9166
9334
|
"get": {
|
|
9167
9335
|
"tags": [
|
|
@@ -9383,6 +9551,9 @@
|
|
|
9383
9551
|
{
|
|
9384
9552
|
"$ref": "#/components/schemas/TornCrimeId"
|
|
9385
9553
|
},
|
|
9554
|
+
{
|
|
9555
|
+
"$ref": "#/components/schemas/StockId"
|
|
9556
|
+
},
|
|
9386
9557
|
{
|
|
9387
9558
|
"$ref": "#/components/schemas/EliminationTeamId"
|
|
9388
9559
|
},
|
|
@@ -9547,6 +9718,12 @@
|
|
|
9547
9718
|
{
|
|
9548
9719
|
"$ref": "#/components/schemas/AttackLogResponse"
|
|
9549
9720
|
},
|
|
9721
|
+
{
|
|
9722
|
+
"$ref": "#/components/schemas/TornStockDetailedResponse"
|
|
9723
|
+
},
|
|
9724
|
+
{
|
|
9725
|
+
"$ref": "#/components/schemas/TornStocksResponse"
|
|
9726
|
+
},
|
|
9550
9727
|
{
|
|
9551
9728
|
"$ref": "#/components/schemas/TornTerritoriesResponse"
|
|
9552
9729
|
},
|
|
@@ -14020,10 +14197,7 @@
|
|
|
14020
14197
|
"attacksdamaging",
|
|
14021
14198
|
"attacksrunaway",
|
|
14022
14199
|
"highestterritories",
|
|
14023
|
-
"territoryrespect"
|
|
14024
|
-
"membersamount",
|
|
14025
|
-
"factionage",
|
|
14026
|
-
"upgradesamount"
|
|
14200
|
+
"territoryrespect"
|
|
14027
14201
|
]
|
|
14028
14202
|
},
|
|
14029
14203
|
"FactionBranchStateEnum": {
|
|
@@ -14195,6 +14369,19 @@
|
|
|
14195
14369
|
"P6"
|
|
14196
14370
|
]
|
|
14197
14371
|
},
|
|
14372
|
+
"TornOrganizedCrimePositionIdDeprecated": {
|
|
14373
|
+
"description": "This field is now available in 'position_info' object as 'id' field.<br>This field will be removed on 1st of June 2026.",
|
|
14374
|
+
"type": "string",
|
|
14375
|
+
"enum": [
|
|
14376
|
+
"P1",
|
|
14377
|
+
"P2",
|
|
14378
|
+
"P3",
|
|
14379
|
+
"P4",
|
|
14380
|
+
"P5",
|
|
14381
|
+
"P6"
|
|
14382
|
+
],
|
|
14383
|
+
"deprecated": true
|
|
14384
|
+
},
|
|
14198
14385
|
"FactionTerritoryWarResultEnum": {
|
|
14199
14386
|
"type": "string",
|
|
14200
14387
|
"enum": [
|
|
@@ -14597,6 +14784,10 @@
|
|
|
14597
14784
|
"type": "integer",
|
|
14598
14785
|
"format": "int32"
|
|
14599
14786
|
},
|
|
14787
|
+
"StockId": {
|
|
14788
|
+
"type": "integer",
|
|
14789
|
+
"format": "int32"
|
|
14790
|
+
},
|
|
14600
14791
|
"DiscordId": {
|
|
14601
14792
|
"type": "string"
|
|
14602
14793
|
},
|
|
@@ -16825,6 +17016,115 @@
|
|
|
16825
17016
|
}
|
|
16826
17017
|
]
|
|
16827
17018
|
},
|
|
17019
|
+
"UserStockTransaction": {
|
|
17020
|
+
"required": [
|
|
17021
|
+
"id",
|
|
17022
|
+
"shares",
|
|
17023
|
+
"price",
|
|
17024
|
+
"timestamp"
|
|
17025
|
+
],
|
|
17026
|
+
"properties": {
|
|
17027
|
+
"id": {
|
|
17028
|
+
"type": "integer",
|
|
17029
|
+
"format": "int64"
|
|
17030
|
+
},
|
|
17031
|
+
"shares": {
|
|
17032
|
+
"type": "integer",
|
|
17033
|
+
"format": "int64"
|
|
17034
|
+
},
|
|
17035
|
+
"price": {
|
|
17036
|
+
"type": "integer",
|
|
17037
|
+
"format": "int64"
|
|
17038
|
+
},
|
|
17039
|
+
"timestamp": {
|
|
17040
|
+
"type": "integer",
|
|
17041
|
+
"format": "int32"
|
|
17042
|
+
}
|
|
17043
|
+
},
|
|
17044
|
+
"type": "object"
|
|
17045
|
+
},
|
|
17046
|
+
"UserStock": {
|
|
17047
|
+
"required": [
|
|
17048
|
+
"id",
|
|
17049
|
+
"shares",
|
|
17050
|
+
"bonus",
|
|
17051
|
+
"transactions"
|
|
17052
|
+
],
|
|
17053
|
+
"properties": {
|
|
17054
|
+
"id": {
|
|
17055
|
+
"$ref": "#/components/schemas/StockId"
|
|
17056
|
+
},
|
|
17057
|
+
"shares": {
|
|
17058
|
+
"type": "integer",
|
|
17059
|
+
"format": "int64"
|
|
17060
|
+
},
|
|
17061
|
+
"transactions": {
|
|
17062
|
+
"type": "array",
|
|
17063
|
+
"items": {
|
|
17064
|
+
"$ref": "#/components/schemas/UserStockTransaction"
|
|
17065
|
+
}
|
|
17066
|
+
},
|
|
17067
|
+
"bonus": {
|
|
17068
|
+
"required": [
|
|
17069
|
+
"available",
|
|
17070
|
+
"increment",
|
|
17071
|
+
"progress",
|
|
17072
|
+
"frequency"
|
|
17073
|
+
],
|
|
17074
|
+
"properties": {
|
|
17075
|
+
"available": {
|
|
17076
|
+
"type": "boolean"
|
|
17077
|
+
},
|
|
17078
|
+
"increment": {
|
|
17079
|
+
"type": "integer",
|
|
17080
|
+
"format": "int32"
|
|
17081
|
+
},
|
|
17082
|
+
"progress": {
|
|
17083
|
+
"type": "integer",
|
|
17084
|
+
"format": "int32"
|
|
17085
|
+
},
|
|
17086
|
+
"frequency": {
|
|
17087
|
+
"type": "integer",
|
|
17088
|
+
"format": "int32"
|
|
17089
|
+
}
|
|
17090
|
+
},
|
|
17091
|
+
"type": "object"
|
|
17092
|
+
}
|
|
17093
|
+
},
|
|
17094
|
+
"type": "object"
|
|
17095
|
+
},
|
|
17096
|
+
"UserStocksResponse": {
|
|
17097
|
+
"required": [
|
|
17098
|
+
"stocks"
|
|
17099
|
+
],
|
|
17100
|
+
"properties": {
|
|
17101
|
+
"stocks": {
|
|
17102
|
+
"type": "array",
|
|
17103
|
+
"items": {
|
|
17104
|
+
"$ref": "#/components/schemas/UserStock"
|
|
17105
|
+
}
|
|
17106
|
+
}
|
|
17107
|
+
},
|
|
17108
|
+
"type": "object"
|
|
17109
|
+
},
|
|
17110
|
+
"UserOrganizedCrimesResponse": {
|
|
17111
|
+
"required": [
|
|
17112
|
+
"organizedcrimes",
|
|
17113
|
+
"_metadata"
|
|
17114
|
+
],
|
|
17115
|
+
"properties": {
|
|
17116
|
+
"organizedcrimes": {
|
|
17117
|
+
"type": "array",
|
|
17118
|
+
"items": {
|
|
17119
|
+
"$ref": "#/components/schemas/FactionCrime"
|
|
17120
|
+
}
|
|
17121
|
+
},
|
|
17122
|
+
"_metadata": {
|
|
17123
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
17124
|
+
}
|
|
17125
|
+
},
|
|
17126
|
+
"type": "object"
|
|
17127
|
+
},
|
|
16828
17128
|
"UserEquipment": {
|
|
16829
17129
|
"allOf": [
|
|
16830
17130
|
{
|
|
@@ -20161,7 +20461,8 @@
|
|
|
20161
20461
|
},
|
|
20162
20462
|
"UserBountiesResponse": {
|
|
20163
20463
|
"required": [
|
|
20164
|
-
"bounties"
|
|
20464
|
+
"bounties",
|
|
20465
|
+
"bounties_timestamp"
|
|
20165
20466
|
],
|
|
20166
20467
|
"properties": {
|
|
20167
20468
|
"bounties": {
|
|
@@ -20169,6 +20470,10 @@
|
|
|
20169
20470
|
"items": {
|
|
20170
20471
|
"$ref": "#/components/schemas/Bounty"
|
|
20171
20472
|
}
|
|
20473
|
+
},
|
|
20474
|
+
"bounties_timestamp": {
|
|
20475
|
+
"type": "integer",
|
|
20476
|
+
"format": "int32"
|
|
20172
20477
|
}
|
|
20173
20478
|
},
|
|
20174
20479
|
"type": "object"
|
|
@@ -20474,7 +20779,7 @@
|
|
|
20474
20779
|
"UserSelectionName": {
|
|
20475
20780
|
"oneOf": [
|
|
20476
20781
|
{
|
|
20477
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','gym','inventory','networth','perks'
|
|
20782
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','gym','inventory','networth','perks'.",
|
|
20478
20783
|
"type": "string",
|
|
20479
20784
|
"enum": [
|
|
20480
20785
|
"ammo",
|
|
@@ -20529,6 +20834,7 @@
|
|
|
20529
20834
|
"revives",
|
|
20530
20835
|
"revivesfull",
|
|
20531
20836
|
"skills",
|
|
20837
|
+
"stocks",
|
|
20532
20838
|
"timestamp",
|
|
20533
20839
|
"travel",
|
|
20534
20840
|
"weaponexp",
|
|
@@ -20540,8 +20846,7 @@
|
|
|
20540
20846
|
"gym",
|
|
20541
20847
|
"inventory",
|
|
20542
20848
|
"networth",
|
|
20543
|
-
"perks"
|
|
20544
|
-
"stocks"
|
|
20849
|
+
"perks"
|
|
20545
20850
|
]
|
|
20546
20851
|
},
|
|
20547
20852
|
{
|
|
@@ -23758,6 +24063,26 @@
|
|
|
23758
24063
|
},
|
|
23759
24064
|
"type": "object"
|
|
23760
24065
|
},
|
|
24066
|
+
"FactionSlotPositionInfo": {
|
|
24067
|
+
"required": [
|
|
24068
|
+
"id",
|
|
24069
|
+
"label",
|
|
24070
|
+
"number"
|
|
24071
|
+
],
|
|
24072
|
+
"properties": {
|
|
24073
|
+
"id": {
|
|
24074
|
+
"$ref": "#/components/schemas/TornOrganizedCrimePositionId"
|
|
24075
|
+
},
|
|
24076
|
+
"label": {
|
|
24077
|
+
"type": "string"
|
|
24078
|
+
},
|
|
24079
|
+
"number": {
|
|
24080
|
+
"type": "integer",
|
|
24081
|
+
"format": "int32"
|
|
24082
|
+
}
|
|
24083
|
+
},
|
|
24084
|
+
"type": "object"
|
|
24085
|
+
},
|
|
23761
24086
|
"FactionRaidReportFaction": {
|
|
23762
24087
|
"required": [
|
|
23763
24088
|
"id",
|
|
@@ -26254,8 +26579,7 @@
|
|
|
26254
26579
|
"FactionCrimeSlot": {
|
|
26255
26580
|
"required": [
|
|
26256
26581
|
"position",
|
|
26257
|
-
"
|
|
26258
|
-
"position_number",
|
|
26582
|
+
"position_info",
|
|
26259
26583
|
"item_requirement",
|
|
26260
26584
|
"user",
|
|
26261
26585
|
"checkpoint_pass_rate"
|
|
@@ -26264,12 +26588,17 @@
|
|
|
26264
26588
|
"position": {
|
|
26265
26589
|
"type": "string"
|
|
26266
26590
|
},
|
|
26591
|
+
"position_info": {
|
|
26592
|
+
"$ref": "#/components/schemas/FactionSlotPositionInfo"
|
|
26593
|
+
},
|
|
26267
26594
|
"position_id": {
|
|
26268
|
-
"$ref": "#/components/schemas/
|
|
26595
|
+
"$ref": "#/components/schemas/TornOrganizedCrimePositionIdDeprecated"
|
|
26269
26596
|
},
|
|
26270
26597
|
"position_number": {
|
|
26598
|
+
"description": "This field is now available in 'position_info' object as 'number' field.<br>This field will be removed on 1st of June 2026.",
|
|
26271
26599
|
"type": "integer",
|
|
26272
|
-
"format": "int32"
|
|
26600
|
+
"format": "int32",
|
|
26601
|
+
"deprecated": true
|
|
26273
26602
|
},
|
|
26274
26603
|
"item_requirement": {
|
|
26275
26604
|
"description": "Details of item required for the slot, if applicable.",
|
|
@@ -27791,12 +28120,17 @@
|
|
|
27791
28120
|
"MarketRentalsResponse": {
|
|
27792
28121
|
"required": [
|
|
27793
28122
|
"rentals",
|
|
28123
|
+
"rentals_timestamp",
|
|
27794
28124
|
"_metadata"
|
|
27795
28125
|
],
|
|
27796
28126
|
"properties": {
|
|
27797
28127
|
"rentals": {
|
|
27798
28128
|
"$ref": "#/components/schemas/MarketRentalDetails"
|
|
27799
28129
|
},
|
|
28130
|
+
"rentals_timestamp": {
|
|
28131
|
+
"type": "integer",
|
|
28132
|
+
"format": "int32"
|
|
28133
|
+
},
|
|
27800
28134
|
"_metadata": {
|
|
27801
28135
|
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
27802
28136
|
}
|
|
@@ -27855,12 +28189,17 @@
|
|
|
27855
28189
|
"MarketPropertiesResponse": {
|
|
27856
28190
|
"required": [
|
|
27857
28191
|
"properties",
|
|
28192
|
+
"properties_timestamp",
|
|
27858
28193
|
"_metadata"
|
|
27859
28194
|
],
|
|
27860
28195
|
"properties": {
|
|
27861
28196
|
"properties": {
|
|
27862
28197
|
"$ref": "#/components/schemas/MarketPropertyDetails"
|
|
27863
28198
|
},
|
|
28199
|
+
"properties_timestamp": {
|
|
28200
|
+
"type": "integer",
|
|
28201
|
+
"format": "int32"
|
|
28202
|
+
},
|
|
27864
28203
|
"_metadata": {
|
|
27865
28204
|
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
27866
28205
|
}
|
|
@@ -29077,6 +29416,240 @@
|
|
|
29077
29416
|
},
|
|
29078
29417
|
"type": "object"
|
|
29079
29418
|
},
|
|
29419
|
+
"TornStock": {
|
|
29420
|
+
"required": [
|
|
29421
|
+
"id",
|
|
29422
|
+
"name",
|
|
29423
|
+
"images",
|
|
29424
|
+
"acronym",
|
|
29425
|
+
"market",
|
|
29426
|
+
"bonus"
|
|
29427
|
+
],
|
|
29428
|
+
"properties": {
|
|
29429
|
+
"id": {
|
|
29430
|
+
"$ref": "#/components/schemas/StockId"
|
|
29431
|
+
},
|
|
29432
|
+
"name": {
|
|
29433
|
+
"type": "string"
|
|
29434
|
+
},
|
|
29435
|
+
"acronym": {
|
|
29436
|
+
"type": "string"
|
|
29437
|
+
},
|
|
29438
|
+
"images": {
|
|
29439
|
+
"required": [
|
|
29440
|
+
"logo",
|
|
29441
|
+
"full"
|
|
29442
|
+
],
|
|
29443
|
+
"properties": {
|
|
29444
|
+
"logo": {
|
|
29445
|
+
"type": "string"
|
|
29446
|
+
},
|
|
29447
|
+
"full": {
|
|
29448
|
+
"type": "string"
|
|
29449
|
+
}
|
|
29450
|
+
},
|
|
29451
|
+
"type": "object"
|
|
29452
|
+
},
|
|
29453
|
+
"market": {
|
|
29454
|
+
"required": [
|
|
29455
|
+
"price",
|
|
29456
|
+
"cap",
|
|
29457
|
+
"shares",
|
|
29458
|
+
"investors"
|
|
29459
|
+
],
|
|
29460
|
+
"properties": {
|
|
29461
|
+
"price": {
|
|
29462
|
+
"type": "number",
|
|
29463
|
+
"format": "float"
|
|
29464
|
+
},
|
|
29465
|
+
"cap": {
|
|
29466
|
+
"type": "integer",
|
|
29467
|
+
"format": "int64"
|
|
29468
|
+
},
|
|
29469
|
+
"shares": {
|
|
29470
|
+
"type": "integer",
|
|
29471
|
+
"format": "int64"
|
|
29472
|
+
},
|
|
29473
|
+
"investors": {
|
|
29474
|
+
"type": "integer",
|
|
29475
|
+
"format": "int64"
|
|
29476
|
+
}
|
|
29477
|
+
},
|
|
29478
|
+
"type": "object"
|
|
29479
|
+
},
|
|
29480
|
+
"bonus": {
|
|
29481
|
+
"required": [
|
|
29482
|
+
"passive",
|
|
29483
|
+
"frequency",
|
|
29484
|
+
"requirement",
|
|
29485
|
+
"description"
|
|
29486
|
+
],
|
|
29487
|
+
"properties": {
|
|
29488
|
+
"passive": {
|
|
29489
|
+
"type": "boolean"
|
|
29490
|
+
},
|
|
29491
|
+
"frequency": {
|
|
29492
|
+
"type": "integer",
|
|
29493
|
+
"format": "int32"
|
|
29494
|
+
},
|
|
29495
|
+
"requirement": {
|
|
29496
|
+
"type": "integer",
|
|
29497
|
+
"format": "int64"
|
|
29498
|
+
},
|
|
29499
|
+
"description": {
|
|
29500
|
+
"type": "string"
|
|
29501
|
+
}
|
|
29502
|
+
},
|
|
29503
|
+
"type": "object"
|
|
29504
|
+
}
|
|
29505
|
+
},
|
|
29506
|
+
"type": "object"
|
|
29507
|
+
},
|
|
29508
|
+
"TornStockPerformance": {
|
|
29509
|
+
"required": [
|
|
29510
|
+
"change",
|
|
29511
|
+
"change_percentage",
|
|
29512
|
+
"start",
|
|
29513
|
+
"end",
|
|
29514
|
+
"high",
|
|
29515
|
+
"low"
|
|
29516
|
+
],
|
|
29517
|
+
"properties": {
|
|
29518
|
+
"change": {
|
|
29519
|
+
"type": "number",
|
|
29520
|
+
"format": "float"
|
|
29521
|
+
},
|
|
29522
|
+
"change_percentage": {
|
|
29523
|
+
"type": "number",
|
|
29524
|
+
"format": "float"
|
|
29525
|
+
},
|
|
29526
|
+
"start": {
|
|
29527
|
+
"type": "number",
|
|
29528
|
+
"format": "float"
|
|
29529
|
+
},
|
|
29530
|
+
"end": {
|
|
29531
|
+
"type": "number",
|
|
29532
|
+
"format": "float"
|
|
29533
|
+
},
|
|
29534
|
+
"high": {
|
|
29535
|
+
"type": "number",
|
|
29536
|
+
"format": "float"
|
|
29537
|
+
},
|
|
29538
|
+
"low": {
|
|
29539
|
+
"type": "number",
|
|
29540
|
+
"format": "float"
|
|
29541
|
+
}
|
|
29542
|
+
},
|
|
29543
|
+
"type": "object"
|
|
29544
|
+
},
|
|
29545
|
+
"TornStockHistory": {
|
|
29546
|
+
"required": [
|
|
29547
|
+
"price",
|
|
29548
|
+
"change",
|
|
29549
|
+
"timestamp"
|
|
29550
|
+
],
|
|
29551
|
+
"properties": {
|
|
29552
|
+
"price": {
|
|
29553
|
+
"type": "number",
|
|
29554
|
+
"format": "float"
|
|
29555
|
+
},
|
|
29556
|
+
"change": {
|
|
29557
|
+
"type": "number",
|
|
29558
|
+
"format": "float"
|
|
29559
|
+
},
|
|
29560
|
+
"timestamp": {
|
|
29561
|
+
"type": "integer",
|
|
29562
|
+
"format": "int32"
|
|
29563
|
+
}
|
|
29564
|
+
},
|
|
29565
|
+
"type": "object"
|
|
29566
|
+
},
|
|
29567
|
+
"TornStockDetailed": {
|
|
29568
|
+
"allOf": [
|
|
29569
|
+
{
|
|
29570
|
+
"$ref": "#/components/schemas/TornStock"
|
|
29571
|
+
},
|
|
29572
|
+
{
|
|
29573
|
+
"required": [
|
|
29574
|
+
"chart"
|
|
29575
|
+
],
|
|
29576
|
+
"properties": {
|
|
29577
|
+
"chart": {
|
|
29578
|
+
"required": [
|
|
29579
|
+
"performance",
|
|
29580
|
+
"history"
|
|
29581
|
+
],
|
|
29582
|
+
"properties": {
|
|
29583
|
+
"performance": {
|
|
29584
|
+
"required": [
|
|
29585
|
+
"last_hour",
|
|
29586
|
+
"last_day",
|
|
29587
|
+
"last_week",
|
|
29588
|
+
"last_month",
|
|
29589
|
+
"last_year",
|
|
29590
|
+
"all_time"
|
|
29591
|
+
],
|
|
29592
|
+
"properties": {
|
|
29593
|
+
"last_hour": {
|
|
29594
|
+
"$ref": "#/components/schemas/TornStockPerformance"
|
|
29595
|
+
},
|
|
29596
|
+
"last_day": {
|
|
29597
|
+
"$ref": "#/components/schemas/TornStockPerformance"
|
|
29598
|
+
},
|
|
29599
|
+
"last_week": {
|
|
29600
|
+
"$ref": "#/components/schemas/TornStockPerformance"
|
|
29601
|
+
},
|
|
29602
|
+
"last_month": {
|
|
29603
|
+
"$ref": "#/components/schemas/TornStockPerformance"
|
|
29604
|
+
},
|
|
29605
|
+
"last_year": {
|
|
29606
|
+
"$ref": "#/components/schemas/TornStockPerformance"
|
|
29607
|
+
},
|
|
29608
|
+
"all_time": {
|
|
29609
|
+
"$ref": "#/components/schemas/TornStockPerformance"
|
|
29610
|
+
}
|
|
29611
|
+
},
|
|
29612
|
+
"type": "object"
|
|
29613
|
+
},
|
|
29614
|
+
"history": {
|
|
29615
|
+
"type": "array",
|
|
29616
|
+
"items": {
|
|
29617
|
+
"$ref": "#/components/schemas/TornStockHistory"
|
|
29618
|
+
}
|
|
29619
|
+
}
|
|
29620
|
+
},
|
|
29621
|
+
"type": "object"
|
|
29622
|
+
}
|
|
29623
|
+
},
|
|
29624
|
+
"type": "object"
|
|
29625
|
+
}
|
|
29626
|
+
]
|
|
29627
|
+
},
|
|
29628
|
+
"TornStocksResponse": {
|
|
29629
|
+
"required": [
|
|
29630
|
+
"stocks"
|
|
29631
|
+
],
|
|
29632
|
+
"properties": {
|
|
29633
|
+
"stocks": {
|
|
29634
|
+
"type": "array",
|
|
29635
|
+
"items": {
|
|
29636
|
+
"$ref": "#/components/schemas/TornStock"
|
|
29637
|
+
}
|
|
29638
|
+
}
|
|
29639
|
+
},
|
|
29640
|
+
"type": "object"
|
|
29641
|
+
},
|
|
29642
|
+
"TornStockDetailedResponse": {
|
|
29643
|
+
"required": [
|
|
29644
|
+
"stocks"
|
|
29645
|
+
],
|
|
29646
|
+
"properties": {
|
|
29647
|
+
"stocks": {
|
|
29648
|
+
"$ref": "#/components/schemas/TornStockDetailed"
|
|
29649
|
+
}
|
|
29650
|
+
},
|
|
29651
|
+
"type": "object"
|
|
29652
|
+
},
|
|
29080
29653
|
"TornEliminationTeamLeader": {
|
|
29081
29654
|
"allOf": [
|
|
29082
29655
|
{
|
|
@@ -29538,13 +30111,16 @@
|
|
|
29538
30111
|
},
|
|
29539
30112
|
"TornOrganizedCrimeSlot": {
|
|
29540
30113
|
"required": [
|
|
29541
|
-
"
|
|
30114
|
+
"position_info",
|
|
29542
30115
|
"name",
|
|
29543
30116
|
"required_item"
|
|
29544
30117
|
],
|
|
29545
30118
|
"properties": {
|
|
29546
30119
|
"id": {
|
|
29547
|
-
"$ref": "#/components/schemas/
|
|
30120
|
+
"$ref": "#/components/schemas/TornOrganizedCrimePositionIdDeprecated"
|
|
30121
|
+
},
|
|
30122
|
+
"position_info": {
|
|
30123
|
+
"$ref": "#/components/schemas/FactionSlotPositionInfo"
|
|
29548
30124
|
},
|
|
29549
30125
|
"name": {
|
|
29550
30126
|
"type": "string"
|
|
@@ -30595,6 +31171,7 @@
|
|
|
30595
31171
|
"TornBountiesResponse": {
|
|
30596
31172
|
"required": [
|
|
30597
31173
|
"bounties",
|
|
31174
|
+
"bounties_timestamp",
|
|
30598
31175
|
"_metadata"
|
|
30599
31176
|
],
|
|
30600
31177
|
"properties": {
|
|
@@ -30604,6 +31181,10 @@
|
|
|
30604
31181
|
"$ref": "#/components/schemas/Bounty"
|
|
30605
31182
|
}
|
|
30606
31183
|
},
|
|
31184
|
+
"bounties_timestamp": {
|
|
31185
|
+
"type": "integer",
|
|
31186
|
+
"format": "int32"
|
|
31187
|
+
},
|
|
30607
31188
|
"_metadata": {
|
|
30608
31189
|
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
30609
31190
|
}
|
|
@@ -31100,7 +31681,7 @@
|
|
|
31100
31681
|
"TornSelectionName": {
|
|
31101
31682
|
"oneOf": [
|
|
31102
31683
|
{
|
|
31103
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','itemdetails','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','searchforcash','shoplifting','stats'
|
|
31684
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','itemdetails','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','searchforcash','shoplifting','stats'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
|
|
31104
31685
|
"type": "string",
|
|
31105
31686
|
"enum": [
|
|
31106
31687
|
"attacklog",
|
|
@@ -31124,6 +31705,7 @@
|
|
|
31124
31705
|
"merits",
|
|
31125
31706
|
"organizedcrimes",
|
|
31126
31707
|
"properties",
|
|
31708
|
+
"stocks",
|
|
31127
31709
|
"subcrimes",
|
|
31128
31710
|
"territory",
|
|
31129
31711
|
"timestamp",
|
|
@@ -31141,8 +31723,7 @@
|
|
|
31141
31723
|
"rockpaperscissors",
|
|
31142
31724
|
"searchforcash",
|
|
31143
31725
|
"shoplifting",
|
|
31144
|
-
"stats"
|
|
31145
|
-
"stocks"
|
|
31726
|
+
"stats"
|
|
31146
31727
|
]
|
|
31147
31728
|
},
|
|
31148
31729
|
{
|