tornapi-typescript 5.0.1 → 5.0.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 +3 -3
- package/dist/index.ts +3 -3
- package/dist/openapi.json +17 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -543,8 +543,8 @@ export interface UserCompetitionEasterEggs {
|
|
|
543
543
|
export interface UserCompetitionElimination {
|
|
544
544
|
name: "Elimination";
|
|
545
545
|
score: number;
|
|
546
|
-
team
|
|
547
|
-
attacks
|
|
546
|
+
team: string;
|
|
547
|
+
attacks: number;
|
|
548
548
|
}
|
|
549
549
|
export interface UserCompetitionRps {
|
|
550
550
|
name: "Rock, Paper, Scissors";
|
|
@@ -6996,7 +6996,7 @@ export interface TornV2 extends BaseSchema {
|
|
|
6996
6996
|
};
|
|
6997
6997
|
itemdetails: {
|
|
6998
6998
|
response: TornItemDetailsResponse;
|
|
6999
|
-
params: "timestamp";
|
|
6999
|
+
params: "id" | "timestamp";
|
|
7000
7000
|
};
|
|
7001
7001
|
itemmods: {
|
|
7002
7002
|
response: TornItemModsResponse;
|
package/dist/index.ts
CHANGED
|
@@ -5539,8 +5539,8 @@ export interface UserCompetitionEasterEggs {
|
|
|
5539
5539
|
export interface UserCompetitionElimination {
|
|
5540
5540
|
name: "Elimination";
|
|
5541
5541
|
score: number;
|
|
5542
|
-
team
|
|
5543
|
-
attacks
|
|
5542
|
+
team: string;
|
|
5543
|
+
attacks: number;
|
|
5544
5544
|
}
|
|
5545
5545
|
|
|
5546
5546
|
export interface UserCompetitionRps {
|
|
@@ -12820,7 +12820,7 @@ export interface TornV2 extends BaseSchema {
|
|
|
12820
12820
|
};
|
|
12821
12821
|
itemdetails: {
|
|
12822
12822
|
response: TornItemDetailsResponse;
|
|
12823
|
-
params: "timestamp";
|
|
12823
|
+
params: "id" | "timestamp";
|
|
12824
12824
|
};
|
|
12825
12825
|
itemmods: {
|
|
12826
12826
|
response: TornItemModsResponse;
|
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.0.
|
|
6
|
+
"version": "5.0.3"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -8366,15 +8366,24 @@
|
|
|
8366
8366
|
"x-stability": "Stable"
|
|
8367
8367
|
}
|
|
8368
8368
|
},
|
|
8369
|
-
"/torn/itemdetails": {
|
|
8369
|
+
"/torn/{id}/itemdetails": {
|
|
8370
8370
|
"get": {
|
|
8371
8371
|
"tags": [
|
|
8372
8372
|
"Torn"
|
|
8373
8373
|
],
|
|
8374
8374
|
"summary": "Get information about a specific item",
|
|
8375
8375
|
"description": "Requires public key.",
|
|
8376
|
-
"operationId": "
|
|
8376
|
+
"operationId": "bb6524988f52a1e75729c05a825b91c8",
|
|
8377
8377
|
"parameters": [
|
|
8378
|
+
{
|
|
8379
|
+
"name": "id",
|
|
8380
|
+
"in": "path",
|
|
8381
|
+
"description": "Item uid",
|
|
8382
|
+
"required": true,
|
|
8383
|
+
"schema": {
|
|
8384
|
+
"$ref": "#/components/schemas/ItemUid"
|
|
8385
|
+
}
|
|
8386
|
+
},
|
|
8378
8387
|
{
|
|
8379
8388
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
8380
8389
|
},
|
|
@@ -9107,6 +9116,9 @@
|
|
|
9107
9116
|
{
|
|
9108
9117
|
"$ref": "#/components/schemas/TornCrimeId"
|
|
9109
9118
|
},
|
|
9119
|
+
{
|
|
9120
|
+
"$ref": "#/components/schemas/ItemUid"
|
|
9121
|
+
},
|
|
9110
9122
|
{
|
|
9111
9123
|
"type": "array",
|
|
9112
9124
|
"items": {
|
|
@@ -16747,7 +16759,8 @@
|
|
|
16747
16759
|
"required": [
|
|
16748
16760
|
"name",
|
|
16749
16761
|
"score",
|
|
16750
|
-
"
|
|
16762
|
+
"attacks",
|
|
16763
|
+
"team"
|
|
16751
16764
|
],
|
|
16752
16765
|
"properties": {
|
|
16753
16766
|
"name": {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.3",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate-types": "tsc && node build/index.js"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@scalar/openapi-types": "^0.5.
|
|
9
|
+
"@scalar/openapi-types": "^0.5.2",
|
|
10
10
|
"@types/node": "^24.10.1",
|
|
11
|
-
"prettier": "^3.7.
|
|
11
|
+
"prettier": "^3.7.4",
|
|
12
12
|
"typeconv": "^2.3.1",
|
|
13
13
|
"typescript": "^5.9.3"
|
|
14
14
|
},
|