tornapi-typescript 6.2.0 → 6.3.1

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
@@ -197,6 +197,8 @@ export interface Attack {
197
197
  is_stealthed: boolean;
198
198
  is_raid: boolean;
199
199
  is_ranked_war: boolean;
200
+ is_territory_war: boolean;
201
+ territory_war_id: TerritoryWarId | null;
200
202
  finishing_hit_effects: AttackingFinishingHitEffects[];
201
203
  modifiers: {
202
204
  fair_fight: number;
@@ -7280,6 +7282,10 @@ export interface UserV2 extends BaseSchema {
7280
7282
  response: UserSkillsResponse;
7281
7283
  params: "timestamp";
7282
7284
  };
7285
+ snapshot: {
7286
+ response: null;
7287
+ params: "timestamp";
7288
+ };
7283
7289
  stocks: {
7284
7290
  response: UserStocksResponse;
7285
7291
  params: "timestamp";
package/dist/index.ts CHANGED
@@ -5108,6 +5108,8 @@ export interface Attack {
5108
5108
  is_stealthed: boolean;
5109
5109
  is_raid: boolean;
5110
5110
  is_ranked_war: boolean;
5111
+ is_territory_war: boolean;
5112
+ territory_war_id: TerritoryWarId | null;
5111
5113
  finishing_hit_effects: AttackingFinishingHitEffects[];
5112
5114
  modifiers: {
5113
5115
  fair_fight: number;
@@ -13189,6 +13191,10 @@ export interface UserV2 extends BaseSchema {
13189
13191
  response: UserSkillsResponse;
13190
13192
  params: "timestamp";
13191
13193
  };
13194
+ snapshot: {
13195
+ response: null;
13196
+ params: "timestamp";
13197
+ };
13192
13198
  stocks: {
13193
13199
  response: UserStocksResponse;
13194
13200
  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.2.0"
6
+ "version": "6.3.1"
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": [
@@ -16485,6 +16525,8 @@
16485
16525
  "is_stealthed",
16486
16526
  "is_raid",
16487
16527
  "is_ranked_war",
16528
+ "is_territory_war",
16529
+ "territory_war_id",
16488
16530
  "finishing_hit_effects",
16489
16531
  "modifiers"
16490
16532
  ],
@@ -16546,6 +16588,19 @@
16546
16588
  "is_ranked_war": {
16547
16589
  "type": "boolean"
16548
16590
  },
16591
+ "is_territory_war": {
16592
+ "type": "boolean"
16593
+ },
16594
+ "territory_war_id": {
16595
+ "oneOf": [
16596
+ {
16597
+ "$ref": "#/components/schemas/TerritoryWarId"
16598
+ },
16599
+ {
16600
+ "type": "null"
16601
+ }
16602
+ ]
16603
+ },
16549
16604
  "finishing_hit_effects": {
16550
16605
  "type": "array",
16551
16606
  "items": {
@@ -22596,6 +22651,7 @@
22596
22651
  "revives",
22597
22652
  "revivesfull",
22598
22653
  "skills",
22654
+ "snapshot",
22599
22655
  "stocks",
22600
22656
  "trades",
22601
22657
  "trade",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "6.2.0",
4
+ "version": "6.3.1",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },