tornapi-typescript 6.0.4 → 6.1.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
@@ -7404,6 +7404,10 @@ export interface FactionV2 extends BaseSchema {
7404
7404
  response: FactionSearchResponse;
7405
7405
  params: "name" | "filters" | "limit" | "offset" | "timestamp";
7406
7406
  };
7407
+ snapshot: {
7408
+ response: null;
7409
+ params: "timestamp";
7410
+ };
7407
7411
  stats: {
7408
7412
  response: FactionStatsResponse;
7409
7413
  params: "timestamp";
package/dist/index.ts CHANGED
@@ -13341,6 +13341,10 @@ export interface FactionV2 extends BaseSchema {
13341
13341
  response: FactionSearchResponse;
13342
13342
  params: "name" | "filters" | "limit" | "offset" | "timestamp";
13343
13343
  };
13344
+ snapshot: {
13345
+ response: null;
13346
+ params: "timestamp";
13347
+ };
13344
13348
  stats: {
13345
13349
  response: FactionStatsResponse;
13346
13350
  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.0.4"
6
+ "version": "6.1.0"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -5564,6 +5564,46 @@
5564
5564
  "x-stability": "Stable"
5565
5565
  }
5566
5566
  },
5567
+ "/faction/snapshot": {
5568
+ "get": {
5569
+ "tags": [
5570
+ "Faction"
5571
+ ],
5572
+ "summary": "Get daily factions snapshot CSV",
5573
+ "description": "Requires public access key.<br>Returns a CSV daily snapshot of factions.<br>This selection is standalone and cannot be used together with other selections.<br>\nCSV columns: id, name, tag, tag_image, banner_image, leader_id, co_leader_id, respect, days_old, rank, members, members_max, member_list, recruiting, destroyed_timestamp",
5574
+ "operationId": "getFactionsSnapshot",
5575
+ "parameters": [
5576
+ {
5577
+ "$ref": "#/components/parameters/ApiTimestamp"
5578
+ },
5579
+ {
5580
+ "$ref": "#/components/parameters/ApiComment"
5581
+ },
5582
+ {
5583
+ "$ref": "#/components/parameters/ApiKeyPublic"
5584
+ }
5585
+ ],
5586
+ "responses": {
5587
+ "200": {
5588
+ "description": "Successful CSV response",
5589
+ "content": {
5590
+ "text/csv": {
5591
+ "schema": {
5592
+ "type": "string",
5593
+ "example": "id,name,tag,tag_image,banner_image,leader_id,co_leader_id,respect,days_old,rank,members,members_max,member_list,recruiting,destroyed_timestamp\\n33,Honour and Pride,H&P,33-0.png,861778851-33.jpg,68358,,132939,6657,13,3,20,[68358, 123013, 295496],1"
5594
+ }
5595
+ }
5596
+ }
5597
+ }
5598
+ },
5599
+ "security": [
5600
+ {
5601
+ "api_key": []
5602
+ }
5603
+ ],
5604
+ "x-stability": "Unstable"
5605
+ }
5606
+ },
5567
5607
  "/faction/stats": {
5568
5608
  "get": {
5569
5609
  "tags": [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "6.0.4",
4
+ "version": "6.1.0",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },
@@ -9,7 +9,7 @@
9
9
  "generate-types": "tsc && node build/index.js"
10
10
  },
11
11
  "devDependencies": {
12
- "@scalar/openapi-types": "^0.9.1",
12
+ "@scalar/openapi-types": "^0.9.2",
13
13
  "@types/node": "^25.9.5",
14
14
  "prettier": "^3.9.5",
15
15
  "typeconv": "^2.3.1",