tornapi-typescript 5.0.0 → 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
@@ -540,6 +540,12 @@ export interface UserCompetitionEasterEggs {
540
540
  score: number;
541
541
  total: number;
542
542
  }
543
+ export interface UserCompetitionElimination {
544
+ name: "Elimination";
545
+ score: number;
546
+ team?: string;
547
+ attacks?: number;
548
+ }
543
549
  export interface UserCompetitionRps {
544
550
  name: "Rock, Paper, Scissors";
545
551
  status: UserRpsStatus;
@@ -549,7 +555,7 @@ export interface UserCompetitionRps {
549
555
  };
550
556
  }
551
557
  export interface UserCompetitionResponse {
552
- competition: UserCompetitionHalloween | UserCompetitionEasterEggs | UserCompetitionRps;
558
+ competition: UserCompetitionHalloween | UserCompetitionEasterEggs | UserCompetitionRps | UserCompetitionElimination;
553
559
  }
554
560
  export interface UserFaction {
555
561
  id: FactionId;
@@ -6990,7 +6996,7 @@ export interface TornV2 extends BaseSchema {
6990
6996
  };
6991
6997
  itemdetails: {
6992
6998
  response: TornItemDetailsResponse;
6993
- params: "timestamp";
6999
+ params: "id" | "timestamp";
6994
7000
  };
6995
7001
  itemmods: {
6996
7002
  response: TornItemModsResponse;
package/dist/index.ts CHANGED
@@ -5536,6 +5536,13 @@ export interface UserCompetitionEasterEggs {
5536
5536
  total: number;
5537
5537
  }
5538
5538
 
5539
+ export interface UserCompetitionElimination {
5540
+ name: "Elimination";
5541
+ score: number;
5542
+ team?: string;
5543
+ attacks?: number;
5544
+ }
5545
+
5539
5546
  export interface UserCompetitionRps {
5540
5547
  name: "Rock, Paper, Scissors";
5541
5548
  status: UserRpsStatus;
@@ -5549,7 +5556,8 @@ export interface UserCompetitionResponse {
5549
5556
  competition:
5550
5557
  | UserCompetitionHalloween
5551
5558
  | UserCompetitionEasterEggs
5552
- | UserCompetitionRps;
5559
+ | UserCompetitionRps
5560
+ | UserCompetitionElimination;
5553
5561
  }
5554
5562
 
5555
5563
  export interface UserFaction {
@@ -12812,7 +12820,7 @@ export interface TornV2 extends BaseSchema {
12812
12820
  };
12813
12821
  itemdetails: {
12814
12822
  response: TornItemDetailsResponse;
12815
- params: "timestamp";
12823
+ params: "id" | "timestamp";
12816
12824
  };
12817
12825
  itemmods: {
12818
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.0"
6
+ "version": "5.0.2"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -422,7 +422,7 @@
422
422
  "tags": [
423
423
  "User"
424
424
  ],
425
- "summary": "Get your competition's event start time",
425
+ "summary": "Get your calendar events start time",
426
426
  "description": "Requires minimal access key. <br>Only available to yourself.",
427
427
  "operationId": "4cc4cc6fa3764f9732db9589e91d7739",
428
428
  "parameters": [
@@ -3426,6 +3426,12 @@
3426
3426
  {
3427
3427
  "$ref": "#/components/schemas/UserForumFriendsResponse"
3428
3428
  },
3429
+ {
3430
+ "$ref": "#/components/schemas/UserPropertyResponse"
3431
+ },
3432
+ {
3433
+ "$ref": "#/components/schemas/ReportsResponse"
3434
+ },
3429
3435
  {
3430
3436
  "$ref": "#/components/schemas/UserHofResponse"
3431
3437
  },
@@ -3489,6 +3495,9 @@
3489
3495
  {
3490
3496
  "$ref": "#/components/schemas/UserListResponse"
3491
3497
  },
3498
+ {
3499
+ "$ref": "#/components/schemas/UserEquipmentResponse"
3500
+ },
3492
3501
  {
3493
3502
  "$ref": "#/components/schemas/UserMissionsResponse"
3494
3503
  },
@@ -8357,15 +8366,24 @@
8357
8366
  "x-stability": "Stable"
8358
8367
  }
8359
8368
  },
8360
- "/torn/itemdetails": {
8369
+ "/torn/{id}/itemdetails": {
8361
8370
  "get": {
8362
8371
  "tags": [
8363
8372
  "Torn"
8364
8373
  ],
8365
8374
  "summary": "Get information about a specific item",
8366
8375
  "description": "Requires public key.",
8367
- "operationId": "5767dbbbd08f6ce35b7c10922afaf6fc",
8376
+ "operationId": "bb6524988f52a1e75729c05a825b91c8",
8368
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
+ },
8369
8387
  {
8370
8388
  "$ref": "#/components/parameters/ApiTimestamp"
8371
8389
  },
@@ -9098,6 +9116,9 @@
9098
9116
  {
9099
9117
  "$ref": "#/components/schemas/TornCrimeId"
9100
9118
  },
9119
+ {
9120
+ "$ref": "#/components/schemas/ItemUid"
9121
+ },
9101
9122
  {
9102
9123
  "type": "array",
9103
9124
  "items": {
@@ -9223,9 +9244,15 @@
9223
9244
  {
9224
9245
  "$ref": "#/components/schemas/TornMeritsResponse"
9225
9246
  },
9247
+ {
9248
+ "$ref": "#/components/schemas/TornOrganizedCrimeResponse"
9249
+ },
9226
9250
  {
9227
9251
  "$ref": "#/components/schemas/TornHonorsResponse"
9228
9252
  },
9253
+ {
9254
+ "$ref": "#/components/schemas/TornItemDetailsResponse"
9255
+ },
9229
9256
  {
9230
9257
  "$ref": "#/components/schemas/TornMedalsResponse"
9231
9258
  },
@@ -16728,6 +16755,33 @@
16728
16755
  },
16729
16756
  "type": "object"
16730
16757
  },
16758
+ "UserCompetitionElimination": {
16759
+ "required": [
16760
+ "name",
16761
+ "score",
16762
+ "total"
16763
+ ],
16764
+ "properties": {
16765
+ "name": {
16766
+ "type": "string",
16767
+ "enum": [
16768
+ "Elimination"
16769
+ ]
16770
+ },
16771
+ "score": {
16772
+ "type": "integer",
16773
+ "format": "int32"
16774
+ },
16775
+ "team": {
16776
+ "type": "string"
16777
+ },
16778
+ "attacks": {
16779
+ "type": "integer",
16780
+ "format": "int32"
16781
+ }
16782
+ },
16783
+ "type": "object"
16784
+ },
16731
16785
  "UserCompetitionRps": {
16732
16786
  "required": [
16733
16787
  "name",
@@ -16779,6 +16833,9 @@
16779
16833
  },
16780
16834
  {
16781
16835
  "$ref": "#/components/schemas/UserCompetitionRps"
16836
+ },
16837
+ {
16838
+ "$ref": "#/components/schemas/UserCompetitionElimination"
16782
16839
  }
16783
16840
  ]
16784
16841
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "5.0.0",
4
+ "version": "5.0.2",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },