tornapi-typescript 6.1.2 → 6.3.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: {
@@ -7272,6 +7280,10 @@ export interface UserV2 extends BaseSchema {
7272
7280
  response: UserSkillsResponse;
7273
7281
  params: "timestamp";
7274
7282
  };
7283
+ snapshot: {
7284
+ response: null;
7285
+ params: "timestamp";
7286
+ };
7275
7287
  stocks: {
7276
7288
  response: UserStocksResponse;
7277
7289
  params: "timestamp";
@@ -7704,6 +7716,10 @@ export interface TornV2 extends BaseSchema {
7704
7716
  response: TornMeritsResponse;
7705
7717
  params: "timestamp";
7706
7718
  };
7719
+ museum: {
7720
+ response: TornMuseumResponse;
7721
+ params: "timestamp";
7722
+ };
7707
7723
  organizedcrimes: {
7708
7724
  response: TornOrganizedCrimeResponse;
7709
7725
  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: {
@@ -13179,6 +13189,10 @@ export interface UserV2 extends BaseSchema {
13179
13189
  response: UserSkillsResponse;
13180
13190
  params: "timestamp";
13181
13191
  };
13192
+ snapshot: {
13193
+ response: null;
13194
+ params: "timestamp";
13195
+ };
13182
13196
  stocks: {
13183
13197
  response: UserStocksResponse;
13184
13198
  params: "timestamp";
@@ -13657,6 +13671,10 @@ export interface TornV2 extends BaseSchema {
13657
13671
  response: TornMeritsResponse;
13658
13672
  params: "timestamp";
13659
13673
  };
13674
+ museum: {
13675
+ response: TornMuseumResponse;
13676
+ params: "timestamp";
13677
+ };
13660
13678
  organizedcrimes: {
13661
13679
  response: TornOrganizedCrimeResponse;
13662
13680
  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.3.0"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -3203,6 +3203,46 @@
3203
3203
  "x-stability": "Stable"
3204
3204
  }
3205
3205
  },
3206
+ "/user/snapshot": {
3207
+ "get": {
3208
+ "tags": [
3209
+ "User"
3210
+ ],
3211
+ "summary": "Get daily active players snapshot CSV",
3212
+ "description": "Requires public access key.<br>Returns a CSV daily snapshot of active players.<br>This selection is standalone and cannot be used together with other selections.<br>\nCSV columns: id, name, gender, role, signed_up, last_action, level, rank, donator, networth, faction, company, spouse, display_case, bazaar, location, fed, fed_reason",
3213
+ "operationId": "getUsersSnapshot",
3214
+ "parameters": [
3215
+ {
3216
+ "$ref": "#/components/parameters/ApiTimestamp"
3217
+ },
3218
+ {
3219
+ "$ref": "#/components/parameters/ApiComment"
3220
+ },
3221
+ {
3222
+ "$ref": "#/components/parameters/ApiKeyPublic"
3223
+ }
3224
+ ],
3225
+ "responses": {
3226
+ "200": {
3227
+ "description": "Successful CSV response",
3228
+ "content": {
3229
+ "text/csv": {
3230
+ "schema": {
3231
+ "type": "string",
3232
+ "example": "id,name,gender,role,signed_up,last_action,level,rank,donator,networth,faction,company,spouse,display_case,bazaar,location,fed,fed_reason\\n33,1,Chedburn,Male,Admin,1100521336,1785154349,15,Outstanding,1,299829600590,40992,79286,2103253,1,1,Torn,0,"
3233
+ }
3234
+ }
3235
+ }
3236
+ }
3237
+ },
3238
+ "security": [
3239
+ {
3240
+ "api_key": []
3241
+ }
3242
+ ],
3243
+ "x-stability": "Unstable"
3244
+ }
3245
+ },
3206
3246
  "/user/stocks": {
3207
3247
  "get": {
3208
3248
  "tags": [
@@ -10154,6 +10194,45 @@
10154
10194
  "x-stability": "Stable"
10155
10195
  }
10156
10196
  },
10197
+ "/torn/museum": {
10198
+ "get": {
10199
+ "tags": [
10200
+ "Torn"
10201
+ ],
10202
+ "summary": "Get all museum sets",
10203
+ "description": "Requires public access key. <br>",
10204
+ "operationId": "getTornMuseum",
10205
+ "parameters": [
10206
+ {
10207
+ "$ref": "#/components/parameters/ApiTimestamp"
10208
+ },
10209
+ {
10210
+ "$ref": "#/components/parameters/ApiComment"
10211
+ },
10212
+ {
10213
+ "$ref": "#/components/parameters/ApiKeyPublic"
10214
+ }
10215
+ ],
10216
+ "responses": {
10217
+ "200": {
10218
+ "description": "Successful operation",
10219
+ "content": {
10220
+ "application/json": {
10221
+ "schema": {
10222
+ "$ref": "#/components/schemas/TornMuseumResponse"
10223
+ }
10224
+ }
10225
+ }
10226
+ }
10227
+ },
10228
+ "security": [
10229
+ {
10230
+ "api_key": []
10231
+ }
10232
+ ],
10233
+ "x-stability": "Unstable"
10234
+ }
10235
+ },
10157
10236
  "/torn/organizedcrimes": {
10158
10237
  "get": {
10159
10238
  "tags": [
@@ -10707,6 +10786,9 @@
10707
10786
  {
10708
10787
  "$ref": "#/components/schemas/AttackLogResponse"
10709
10788
  },
10789
+ {
10790
+ "$ref": "#/components/schemas/TornMuseumResponse"
10791
+ },
10710
10792
  {
10711
10793
  "$ref": "#/components/schemas/TornStockDetailedResponse"
10712
10794
  },
@@ -22554,6 +22636,7 @@
22554
22636
  "revives",
22555
22637
  "revivesfull",
22556
22638
  "skills",
22639
+ "snapshot",
22557
22640
  "stocks",
22558
22641
  "trades",
22559
22642
  "trade",
@@ -32110,6 +32193,43 @@
32110
32193
  },
32111
32194
  "type": "object"
32112
32195
  },
32196
+ "TornMuseumSet": {
32197
+ "required": [
32198
+ "name",
32199
+ "points",
32200
+ "items"
32201
+ ],
32202
+ "properties": {
32203
+ "name": {
32204
+ "type": "string"
32205
+ },
32206
+ "points": {
32207
+ "type": "integer",
32208
+ "format": "int32"
32209
+ },
32210
+ "items": {
32211
+ "type": "array",
32212
+ "items": {
32213
+ "$ref": "#/components/schemas/ItemId"
32214
+ }
32215
+ }
32216
+ },
32217
+ "type": "object"
32218
+ },
32219
+ "TornMuseumResponse": {
32220
+ "required": [
32221
+ "museum"
32222
+ ],
32223
+ "properties": {
32224
+ "museum": {
32225
+ "type": "array",
32226
+ "items": {
32227
+ "$ref": "#/components/schemas/TornMuseumSet"
32228
+ }
32229
+ }
32230
+ },
32231
+ "type": "object"
32232
+ },
32113
32233
  "TornStockDetailed": {
32114
32234
  "allOf": [
32115
32235
  {
@@ -34256,6 +34376,7 @@
34256
34376
  "lookup",
34257
34377
  "medals",
34258
34378
  "merits",
34379
+ "museum",
34259
34380
  "organizedcrimes",
34260
34381
  "properties",
34261
34382
  "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.3.0",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },