tornapi-typescript 6.8.0 → 6.8.2

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.
Files changed (2) hide show
  1. package/dist/openapi.json +57 -9
  2. package/package.json +1 -1
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.8.0"
6
+ "version": "6.8.2"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -1488,7 +1488,7 @@
1488
1488
  "User"
1489
1489
  ],
1490
1490
  "summary": "Get your icons information",
1491
- "description": "Requires public access key. <br> When requesting data for yourself with 'Custom', 'Limited' or 'Full' access keys, the response will be of type UserIconPrivate, otherwise UserIconPublic.",
1491
+ "description": "Requires public access key. <br> When requesting data for yourself with 'Limited' or 'Full' access keys, the response will be of type UserIconPrivate, otherwise UserIconPublic.",
1492
1492
  "operationId": "getMyIcons",
1493
1493
  "parameters": [
1494
1494
  {
@@ -1575,7 +1575,7 @@
1575
1575
  "User"
1576
1576
  ],
1577
1577
  "summary": "Get your inventory",
1578
- "description": "<b>Cached selection (1 hour per category).</b><br><br>Requires limited access key. <br>",
1578
+ "description": "<b>Cached selection (1 hour per category).</b><br><br>Requires minimal access key. <br>",
1579
1579
  "operationId": "getMyInventory",
1580
1580
  "parameters": [
1581
1581
  {
@@ -1600,7 +1600,7 @@
1600
1600
  "$ref": "#/components/parameters/ApiComment"
1601
1601
  },
1602
1602
  {
1603
- "$ref": "#/components/parameters/ApiKeyLimited"
1603
+ "$ref": "#/components/parameters/ApiKeyMinimal"
1604
1604
  }
1605
1605
  ],
1606
1606
  "responses": {
@@ -2014,8 +2014,8 @@
2014
2014
  "tags": [
2015
2015
  "User"
2016
2016
  ],
2017
- "summary": "Get your achieved medals",
2018
- "description": "Requires minimal access key. <br>",
2017
+ "summary": "Get all your achieved medals",
2018
+ "description": "Requires public access key. <br>",
2019
2019
  "operationId": "getMyMedals",
2020
2020
  "parameters": [
2021
2021
  {
@@ -2025,7 +2025,55 @@
2025
2025
  "$ref": "#/components/parameters/ApiComment"
2026
2026
  },
2027
2027
  {
2028
- "$ref": "#/components/parameters/ApiKeyMinimal"
2028
+ "$ref": "#/components/parameters/ApiKeyPublic"
2029
+ }
2030
+ ],
2031
+ "responses": {
2032
+ "200": {
2033
+ "description": "Successful operation",
2034
+ "content": {
2035
+ "application/json": {
2036
+ "schema": {
2037
+ "$ref": "#/components/schemas/UserMedalsResponse"
2038
+ }
2039
+ }
2040
+ }
2041
+ }
2042
+ },
2043
+ "security": [
2044
+ {
2045
+ "api_key": []
2046
+ }
2047
+ ],
2048
+ "x-stability": "Stable"
2049
+ }
2050
+ },
2051
+ "/user/{id}/medals": {
2052
+ "get": {
2053
+ "tags": [
2054
+ "User"
2055
+ ],
2056
+ "summary": "Get medals achieved by a specific player",
2057
+ "description": "Requires public access key.<br>Returns only highest medal in each category (just like profiles on site).",
2058
+ "operationId": "getUserMedals",
2059
+ "parameters": [
2060
+ {
2061
+ "name": "id",
2062
+ "in": "path",
2063
+ "description": "User id or user discord id",
2064
+ "required": true,
2065
+ "schema": {
2066
+ "$ref": "#/components/schemas/UserDiscordPathId"
2067
+ }
2068
+ },
2069
+ {
2070
+ "$ref": "#/components/parameters/ApiTimestamp"
2071
+ },
2072
+ {
2073
+ "$ref": "#/components/parameters/ApiComment"
2074
+ },
2075
+ {
2076
+ "$ref": "#/components/parameters/ApiKeyPublic"
2029
2077
  }
2030
2078
  ],
2031
2079
  "responses": {
@@ -6786,7 +6834,7 @@
6786
6834
  "Company"
6787
6835
  ],
6788
6836
  "summary": "Get your company's news details",
6789
- "description": "Requires minimal access key. <br>",
6837
+ "description": "Requires limited access key. <br>",
6790
6838
  "operationId": "getMyCompanyNews",
6791
6839
  "parameters": [
6792
6840
  {
@@ -6820,7 +6868,7 @@
6820
6868
  "$ref": "#/components/parameters/ApiComment"
6821
6869
  },
6822
6870
  {
6823
- "$ref": "#/components/parameters/ApiKeyMinimal"
6871
+ "$ref": "#/components/parameters/ApiKeyLimited"
6824
6872
  }
6825
6873
  ],
6826
6874
  "responses": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "6.8.0",
4
+ "version": "6.8.2",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },