tornapi-typescript 0.2.7 → 0.2.8

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
@@ -6026,8 +6026,8 @@ export interface UserPersonalStatsFullPublic {
6026
6026
  export type UserPersonalStatsResponse =
6027
6027
  | UserPersonalStatsFull
6028
6028
  | UserPersonalStatsFullPublic
6029
- | UserPersonalStatsCategory
6030
6029
  | UserPersonalStatsPopular
6030
+ | UserPersonalStatsCategory
6031
6031
  | UserPersonalStatsHistoric;
6032
6032
 
6033
6033
  export type PersonalStatsCategoryEnum =
@@ -7468,6 +7468,11 @@ export interface AttackLog {
7468
7468
  id: UserId;
7469
7469
  name: string;
7470
7470
  } | null;
7471
+ /** This field only exists if the attacker is stealthed and they used a temporary item. */
7472
+ attacker_item?: {
7473
+ id: ItemId;
7474
+ name: string;
7475
+ };
7471
7476
  }
7472
7477
 
7473
7478
  export interface AttackLogResponse {
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": "1.8.1"
6
+ "version": "1.8.3"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -5910,55 +5910,10 @@
5910
5910
  "operationId": "37f1828422f3080da21f9eb4aa576686",
5911
5911
  "parameters": [
5912
5912
  {
5913
- "$ref": "#/components/parameters/ApiOffset"
5914
- },
5915
- {
5916
- "$ref": "#/components/parameters/ApiLimit250Default20"
5917
- },
5918
- {
5919
- "$ref": "#/components/parameters/ApiTimestamp"
5920
- },
5921
- {
5922
- "$ref": "#/components/parameters/ApiComment"
5923
- },
5924
- {
5925
- "$ref": "#/components/parameters/ApiKeyPublic"
5926
- }
5927
- ],
5928
- "responses": {
5929
- "200": {
5930
- "description": "Successful operation",
5931
- "content": {
5932
- "application/json": {
5933
- "schema": {
5934
- "$ref": "#/components/schemas/TornTerritoriesResponse"
5935
- }
5936
- }
5937
- }
5938
- }
5939
- },
5940
- "security": [
5941
- {
5942
- "api_key": []
5943
- }
5944
- ],
5945
- "x-stability": "Unstable"
5946
- }
5947
- },
5948
- "/torn/{territoryIds}/territory": {
5949
- "get": {
5950
- "tags": [
5951
- "Torn"
5952
- ],
5953
- "summary": "Get territory details",
5954
- "description": "Requires public access key. <br>",
5955
- "operationId": "4e528387ddb78befed57cb4c84151399",
5956
- "parameters": [
5957
- {
5958
- "name": "territoryIds",
5959
- "in": "path",
5960
- "description": "Territory id or a list of territory ids (comma separated)",
5961
- "required": true,
5913
+ "name": "ids",
5914
+ "in": "query",
5915
+ "description": "Specific territory id or a list of territory ids (comma separated)",
5916
+ "required": false,
5962
5917
  "style": "form",
5963
5918
  "explode": false,
5964
5919
  "schema": {
@@ -5968,6 +5923,12 @@
5968
5923
  }
5969
5924
  }
5970
5925
  },
5926
+ {
5927
+ "$ref": "#/components/parameters/ApiOffset"
5928
+ },
5929
+ {
5930
+ "$ref": "#/components/parameters/ApiLimit250Default20"
5931
+ },
5971
5932
  {
5972
5933
  "$ref": "#/components/parameters/ApiTimestamp"
5973
5934
  },
@@ -16605,10 +16566,10 @@
16605
16566
  "$ref": "#/components/schemas/UserPersonalStatsFullPublic"
16606
16567
  },
16607
16568
  {
16608
- "$ref": "#/components/schemas/UserPersonalStatsCategory"
16569
+ "$ref": "#/components/schemas/UserPersonalStatsPopular"
16609
16570
  },
16610
16571
  {
16611
- "$ref": "#/components/schemas/UserPersonalStatsPopular"
16572
+ "$ref": "#/components/schemas/UserPersonalStatsCategory"
16612
16573
  },
16613
16574
  {
16614
16575
  "$ref": "#/components/schemas/UserPersonalStatsHistoric"
@@ -21894,6 +21855,22 @@
21894
21855
  "type": "null"
21895
21856
  }
21896
21857
  ]
21858
+ },
21859
+ "attacker_item": {
21860
+ "description": "This field only exists if the attacker is stealthed and they used a temporary item.",
21861
+ "required": [
21862
+ "id",
21863
+ "name"
21864
+ ],
21865
+ "properties": {
21866
+ "id": {
21867
+ "$ref": "#/components/schemas/ItemId"
21868
+ },
21869
+ "name": {
21870
+ "type": "string"
21871
+ }
21872
+ },
21873
+ "type": "object"
21897
21874
  }
21898
21875
  },
21899
21876
  "type": "object"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "0.2.7",
4
+ "version": "0.2.8",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },