tornapi-typescript 6.1.2 → 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 CHANGED
@@ -3339,6 +3339,14 @@ export interface TornStockHistory {
3339
3339
  change: number;
3340
3340
  timestamp: number;
3341
3341
  }
3342
+ export interface TornMuseumSet {
3343
+ name: string;
3344
+ points: number;
3345
+ items: ItemId[];
3346
+ }
3347
+ export interface TornMuseumResponse {
3348
+ museum: TornMuseumSet[];
3349
+ }
3342
3350
  export interface TornStockDetailed extends TornStock {
3343
3351
  chart: {
3344
3352
  performance: {
@@ -7704,6 +7712,10 @@ export interface TornV2 extends BaseSchema {
7704
7712
  response: TornMeritsResponse;
7705
7713
  params: "timestamp";
7706
7714
  };
7715
+ museum: {
7716
+ response: TornMuseumResponse;
7717
+ params: "timestamp";
7718
+ };
7707
7719
  organizedcrimes: {
7708
7720
  response: TornOrganizedCrimeResponse;
7709
7721
  params: "timestamp";
package/dist/index.ts CHANGED
@@ -9080,6 +9080,16 @@ export interface TornStockHistory {
9080
9080
  timestamp: number;
9081
9081
  }
9082
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
+
9083
9093
  export interface TornStockDetailed extends TornStock {
9084
9094
  chart: {
9085
9095
  performance: {
@@ -13657,6 +13667,10 @@ export interface TornV2 extends BaseSchema {
13657
13667
  response: TornMeritsResponse;
13658
13668
  params: "timestamp";
13659
13669
  };
13670
+ museum: {
13671
+ response: TornMuseumResponse;
13672
+ params: "timestamp";
13673
+ };
13660
13674
  organizedcrimes: {
13661
13675
  response: TornOrganizedCrimeResponse;
13662
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.1.2"
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
  },
@@ -32110,6 +32152,43 @@
32110
32152
  },
32111
32153
  "type": "object"
32112
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
+ },
32113
32192
  "TornStockDetailed": {
32114
32193
  "allOf": [
32115
32194
  {
@@ -34256,6 +34335,7 @@
34256
34335
  "lookup",
34257
34336
  "medals",
34258
34337
  "merits",
34338
+ "museum",
34259
34339
  "organizedcrimes",
34260
34340
  "properties",
34261
34341
  "stocks",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "6.1.2",
4
+ "version": "6.2.0",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },