tornapi-typescript 5.0.1 → 5.0.2

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 CHANGED
@@ -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
@@ -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.1"
6
+ "version": "5.0.2"
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": "5767dbbbd08f6ce35b7c10922afaf6fc",
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": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "5.0.1",
4
+ "version": "5.0.2",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },