tornapi-typescript 6.1.1 → 6.2.0
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 +17 -1
- package/dist/index.ts +19 -1
- package/dist/openapi.json +124 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -542,7 +542,11 @@ export interface UserTradeResponse {
|
|
|
542
542
|
}
|
|
543
543
|
export interface UserTrade {
|
|
544
544
|
id: TradeId;
|
|
545
|
-
|
|
545
|
+
/** This field is depracted and replaced with 'completed_at' field. */
|
|
546
|
+
timestamp?: number;
|
|
547
|
+
completed_at: number | null;
|
|
548
|
+
expires_at: number | null;
|
|
549
|
+
modified_at: number | null;
|
|
546
550
|
user: UserTradeParticipant;
|
|
547
551
|
trader: UserTradeParticipant;
|
|
548
552
|
}
|
|
@@ -3335,6 +3339,14 @@ export interface TornStockHistory {
|
|
|
3335
3339
|
change: number;
|
|
3336
3340
|
timestamp: number;
|
|
3337
3341
|
}
|
|
3342
|
+
export interface TornMuseumSet {
|
|
3343
|
+
name: string;
|
|
3344
|
+
points: number;
|
|
3345
|
+
items: ItemId[];
|
|
3346
|
+
}
|
|
3347
|
+
export interface TornMuseumResponse {
|
|
3348
|
+
museum: TornMuseumSet[];
|
|
3349
|
+
}
|
|
3338
3350
|
export interface TornStockDetailed extends TornStock {
|
|
3339
3351
|
chart: {
|
|
3340
3352
|
performance: {
|
|
@@ -7700,6 +7712,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
7700
7712
|
response: TornMeritsResponse;
|
|
7701
7713
|
params: "timestamp";
|
|
7702
7714
|
};
|
|
7715
|
+
museum: {
|
|
7716
|
+
response: TornMuseumResponse;
|
|
7717
|
+
params: "timestamp";
|
|
7718
|
+
};
|
|
7703
7719
|
organizedcrimes: {
|
|
7704
7720
|
response: TornOrganizedCrimeResponse;
|
|
7705
7721
|
params: "timestamp";
|
package/dist/index.ts
CHANGED
|
@@ -5563,7 +5563,11 @@ export interface UserTradeResponse {
|
|
|
5563
5563
|
|
|
5564
5564
|
export interface UserTrade {
|
|
5565
5565
|
id: TradeId;
|
|
5566
|
-
|
|
5566
|
+
/** This field is depracted and replaced with 'completed_at' field. */
|
|
5567
|
+
timestamp?: number;
|
|
5568
|
+
completed_at: number | null;
|
|
5569
|
+
expires_at: number | null;
|
|
5570
|
+
modified_at: number | null;
|
|
5567
5571
|
user: UserTradeParticipant;
|
|
5568
5572
|
trader: UserTradeParticipant;
|
|
5569
5573
|
}
|
|
@@ -9076,6 +9080,16 @@ export interface TornStockHistory {
|
|
|
9076
9080
|
timestamp: number;
|
|
9077
9081
|
}
|
|
9078
9082
|
|
|
9083
|
+
export interface TornMuseumSet {
|
|
9084
|
+
name: string;
|
|
9085
|
+
points: number;
|
|
9086
|
+
items: ItemId[];
|
|
9087
|
+
}
|
|
9088
|
+
|
|
9089
|
+
export interface TornMuseumResponse {
|
|
9090
|
+
museum: TornMuseumSet[];
|
|
9091
|
+
}
|
|
9092
|
+
|
|
9079
9093
|
export interface TornStockDetailed extends TornStock {
|
|
9080
9094
|
chart: {
|
|
9081
9095
|
performance: {
|
|
@@ -13653,6 +13667,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
13653
13667
|
response: TornMeritsResponse;
|
|
13654
13668
|
params: "timestamp";
|
|
13655
13669
|
};
|
|
13670
|
+
museum: {
|
|
13671
|
+
response: TornMuseumResponse;
|
|
13672
|
+
params: "timestamp";
|
|
13673
|
+
};
|
|
13656
13674
|
organizedcrimes: {
|
|
13657
13675
|
response: TornOrganizedCrimeResponse;
|
|
13658
13676
|
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.
|
|
6
|
+
"version": "6.2.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -10154,6 +10154,45 @@
|
|
|
10154
10154
|
"x-stability": "Stable"
|
|
10155
10155
|
}
|
|
10156
10156
|
},
|
|
10157
|
+
"/torn/museum": {
|
|
10158
|
+
"get": {
|
|
10159
|
+
"tags": [
|
|
10160
|
+
"Torn"
|
|
10161
|
+
],
|
|
10162
|
+
"summary": "Get all museum sets",
|
|
10163
|
+
"description": "Requires public access key. <br>",
|
|
10164
|
+
"operationId": "getTornMuseum",
|
|
10165
|
+
"parameters": [
|
|
10166
|
+
{
|
|
10167
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
10168
|
+
},
|
|
10169
|
+
{
|
|
10170
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
10171
|
+
},
|
|
10172
|
+
{
|
|
10173
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
10174
|
+
}
|
|
10175
|
+
],
|
|
10176
|
+
"responses": {
|
|
10177
|
+
"200": {
|
|
10178
|
+
"description": "Successful operation",
|
|
10179
|
+
"content": {
|
|
10180
|
+
"application/json": {
|
|
10181
|
+
"schema": {
|
|
10182
|
+
"$ref": "#/components/schemas/TornMuseumResponse"
|
|
10183
|
+
}
|
|
10184
|
+
}
|
|
10185
|
+
}
|
|
10186
|
+
}
|
|
10187
|
+
},
|
|
10188
|
+
"security": [
|
|
10189
|
+
{
|
|
10190
|
+
"api_key": []
|
|
10191
|
+
}
|
|
10192
|
+
],
|
|
10193
|
+
"x-stability": "Unstable"
|
|
10194
|
+
}
|
|
10195
|
+
},
|
|
10157
10196
|
"/torn/organizedcrimes": {
|
|
10158
10197
|
"get": {
|
|
10159
10198
|
"tags": [
|
|
@@ -10707,6 +10746,9 @@
|
|
|
10707
10746
|
{
|
|
10708
10747
|
"$ref": "#/components/schemas/AttackLogResponse"
|
|
10709
10748
|
},
|
|
10749
|
+
{
|
|
10750
|
+
"$ref": "#/components/schemas/TornMuseumResponse"
|
|
10751
|
+
},
|
|
10710
10752
|
{
|
|
10711
10753
|
"$ref": "#/components/schemas/TornStockDetailedResponse"
|
|
10712
10754
|
},
|
|
@@ -18301,18 +18343,58 @@
|
|
|
18301
18343
|
"UserTrade": {
|
|
18302
18344
|
"required": [
|
|
18303
18345
|
"id",
|
|
18304
|
-
"timestamp",
|
|
18305
18346
|
"user",
|
|
18306
18347
|
"trader",
|
|
18307
|
-
"items"
|
|
18348
|
+
"items",
|
|
18349
|
+
"completed_at",
|
|
18350
|
+
"expires_at",
|
|
18351
|
+
"modified_at"
|
|
18308
18352
|
],
|
|
18309
18353
|
"properties": {
|
|
18310
18354
|
"id": {
|
|
18311
18355
|
"$ref": "#/components/schemas/TradeId"
|
|
18312
18356
|
},
|
|
18313
18357
|
"timestamp": {
|
|
18358
|
+
"description": "This field is depracted and replaced with 'completed_at' field.",
|
|
18314
18359
|
"type": "integer",
|
|
18315
|
-
"format": "int32"
|
|
18360
|
+
"format": "int32",
|
|
18361
|
+
"deprecated": true
|
|
18362
|
+
},
|
|
18363
|
+
"completed_at": {
|
|
18364
|
+
"description": "Populated when selected category is 'finished'.",
|
|
18365
|
+
"oneOf": [
|
|
18366
|
+
{
|
|
18367
|
+
"type": "integer",
|
|
18368
|
+
"format": "int32"
|
|
18369
|
+
},
|
|
18370
|
+
{
|
|
18371
|
+
"type": "null"
|
|
18372
|
+
}
|
|
18373
|
+
]
|
|
18374
|
+
},
|
|
18375
|
+
"expires_at": {
|
|
18376
|
+
"description": "Populated when selected category is 'ongoing'.",
|
|
18377
|
+
"oneOf": [
|
|
18378
|
+
{
|
|
18379
|
+
"type": "integer",
|
|
18380
|
+
"format": "int32"
|
|
18381
|
+
},
|
|
18382
|
+
{
|
|
18383
|
+
"type": "null"
|
|
18384
|
+
}
|
|
18385
|
+
]
|
|
18386
|
+
},
|
|
18387
|
+
"modified_at": {
|
|
18388
|
+
"description": "Populated when selected category is 'ongoing'.",
|
|
18389
|
+
"oneOf": [
|
|
18390
|
+
{
|
|
18391
|
+
"type": "integer",
|
|
18392
|
+
"format": "int32"
|
|
18393
|
+
},
|
|
18394
|
+
{
|
|
18395
|
+
"type": "null"
|
|
18396
|
+
}
|
|
18397
|
+
]
|
|
18316
18398
|
},
|
|
18317
18399
|
"user": {
|
|
18318
18400
|
"$ref": "#/components/schemas/UserTradeParticipant"
|
|
@@ -32070,6 +32152,43 @@
|
|
|
32070
32152
|
},
|
|
32071
32153
|
"type": "object"
|
|
32072
32154
|
},
|
|
32155
|
+
"TornMuseumSet": {
|
|
32156
|
+
"required": [
|
|
32157
|
+
"name",
|
|
32158
|
+
"points",
|
|
32159
|
+
"items"
|
|
32160
|
+
],
|
|
32161
|
+
"properties": {
|
|
32162
|
+
"name": {
|
|
32163
|
+
"type": "string"
|
|
32164
|
+
},
|
|
32165
|
+
"points": {
|
|
32166
|
+
"type": "integer",
|
|
32167
|
+
"format": "int32"
|
|
32168
|
+
},
|
|
32169
|
+
"items": {
|
|
32170
|
+
"type": "array",
|
|
32171
|
+
"items": {
|
|
32172
|
+
"$ref": "#/components/schemas/ItemId"
|
|
32173
|
+
}
|
|
32174
|
+
}
|
|
32175
|
+
},
|
|
32176
|
+
"type": "object"
|
|
32177
|
+
},
|
|
32178
|
+
"TornMuseumResponse": {
|
|
32179
|
+
"required": [
|
|
32180
|
+
"museum"
|
|
32181
|
+
],
|
|
32182
|
+
"properties": {
|
|
32183
|
+
"museum": {
|
|
32184
|
+
"type": "array",
|
|
32185
|
+
"items": {
|
|
32186
|
+
"$ref": "#/components/schemas/TornMuseumSet"
|
|
32187
|
+
}
|
|
32188
|
+
}
|
|
32189
|
+
},
|
|
32190
|
+
"type": "object"
|
|
32191
|
+
},
|
|
32073
32192
|
"TornStockDetailed": {
|
|
32074
32193
|
"allOf": [
|
|
32075
32194
|
{
|
|
@@ -34216,6 +34335,7 @@
|
|
|
34216
34335
|
"lookup",
|
|
34217
34336
|
"medals",
|
|
34218
34337
|
"merits",
|
|
34338
|
+
"museum",
|
|
34219
34339
|
"organizedcrimes",
|
|
34220
34340
|
"properties",
|
|
34221
34341
|
"stocks",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
|
|
7
7
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@scalar/openapi-types": "^0.9.3",
|
|
13
13
|
"@types/node": "^25.9.5",
|
|
14
|
-
"prettier": "^3.9.
|
|
14
|
+
"prettier": "^3.9.6",
|
|
15
15
|
"typeconv": "^2.3.1",
|
|
16
16
|
"typescript": "^6.0.3"
|
|
17
17
|
},
|