@rebornteam/reborn-api 2.5.1 → 2.6.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/.openapi-generator/FILES +9 -0
- package/README.md +18 -6
- package/api.ts +881 -67
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +480 -10
- package/dist/api.js +639 -38
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +480 -10
- package/dist/esm/api.js +626 -37
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/AdminClientCredentialResponse.md +2 -0
- package/docs/AdminClientCredentialsApi.md +17 -17
- package/docs/AdminConnectionsApi.md +70 -4
- package/docs/AdminDashboardApi.md +2 -2
- package/docs/AdminPagedConnectionResponse.md +29 -0
- package/docs/AdminPagedPlayerResponse.md +29 -0
- package/docs/AdminPagedPunishmentResponse.md +29 -0
- package/docs/AdminPlayerDetailResponse.md +37 -0
- package/docs/AdminPlayerSummary.md +35 -0
- package/docs/AdminPlayersApi.md +122 -0
- package/docs/AdminPunishmentsApi.md +82 -0
- package/docs/AdminUsernameHistoryEntry.md +23 -0
- package/docs/ClientCredentialRequest.md +2 -0
- package/docs/ConnectionApi.md +1 -1
- package/docs/DefaultApi.md +105 -0
- package/docs/PlayerApi.md +5 -5
- package/docs/PunishmentApi.md +10 -10
- package/index.ts +2 -2
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -13,6 +13,14 @@ docs/AdminConnectionsApi.md
|
|
|
13
13
|
docs/AdminDashboardApi.md
|
|
14
14
|
docs/AdminDashboardConnectionResponse.md
|
|
15
15
|
docs/AdminGetDashboardStats.md
|
|
16
|
+
docs/AdminPagedConnectionResponse.md
|
|
17
|
+
docs/AdminPagedPlayerResponse.md
|
|
18
|
+
docs/AdminPagedPunishmentResponse.md
|
|
19
|
+
docs/AdminPlayerDetailResponse.md
|
|
20
|
+
docs/AdminPlayerSummary.md
|
|
21
|
+
docs/AdminPlayersApi.md
|
|
22
|
+
docs/AdminPunishmentsApi.md
|
|
23
|
+
docs/AdminUsernameHistoryEntry.md
|
|
16
24
|
docs/ApplyPunishmentRequest.md
|
|
17
25
|
docs/ApplyPunishmentResponse.md
|
|
18
26
|
docs/ClientCredentialRequest.md
|
|
@@ -20,6 +28,7 @@ docs/ConnectionApi.md
|
|
|
20
28
|
docs/ConnectionGetConnectionDetailsResponse.md
|
|
21
29
|
docs/CreateBypassRequest.md
|
|
22
30
|
docs/CreatePunishmentDraftRequest.md
|
|
31
|
+
docs/DefaultApi.md
|
|
23
32
|
docs/PlayerApi.md
|
|
24
33
|
docs/PlayerGetPlayerInformation.md
|
|
25
34
|
docs/PunishmentApi.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @rebornteam/reborn-api@2.
|
|
1
|
+
## @rebornteam/reborn-api@2.6.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @rebornteam/reborn-api@2.
|
|
39
|
+
npm install @rebornteam/reborn-api@2.6.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -59,14 +59,20 @@ Class | Method | HTTP request | Description
|
|
|
59
59
|
*AdminClientCredentialsApi* | [**rotateToken**](docs/AdminClientCredentialsApi.md#rotatetoken) | **POST** /admin/client/{id}/rotate | Rotate client credentials
|
|
60
60
|
*AdminClientCredentialsApi* | [**updateClient**](docs/AdminClientCredentialsApi.md#updateclient) | **PUT** /admin/client/{id} | Update client metadata
|
|
61
61
|
*AdminConnectionsApi* | [**createBypass**](docs/AdminConnectionsApi.md#createbypass) | **POST** /admin/connection/bypass | Create connection bypass
|
|
62
|
+
*AdminConnectionsApi* | [**listAllConnections**](docs/AdminConnectionsApi.md#listallconnections) | **GET** /admin/connection | List all connections (paginated)
|
|
62
63
|
*AdminConnectionsApi* | [**listConnections**](docs/AdminConnectionsApi.md#listconnections) | **GET** /admin/connection/recent | List recent connections
|
|
63
64
|
*AdminDashboardApi* | [**dashboardStats**](docs/AdminDashboardApi.md#dashboardstats) | **GET** /admin/dashboard | Get dashboard statistics
|
|
65
|
+
*AdminPlayersApi* | [**getPlayer**](docs/AdminPlayersApi.md#getplayer) | **GET** /admin/player/{uuid} | Get player detail
|
|
66
|
+
*AdminPlayersApi* | [**listPlayers**](docs/AdminPlayersApi.md#listplayers) | **GET** /admin/player | List players
|
|
67
|
+
*AdminPunishmentsApi* | [**getPunishments**](docs/AdminPunishmentsApi.md#getpunishments) | **GET** /admin/punishment | List punishments
|
|
64
68
|
*ConnectionApi* | [**getConnectionDetails**](docs/ConnectionApi.md#getconnectiondetails) | **GET** /v1/connection/get-connection-details/{ip} | Check Connection and Detect VPN/Proxy
|
|
65
|
-
*
|
|
69
|
+
*DefaultApi* | [**callback**](docs/DefaultApi.md#callback) | **GET** /auth/discord/callback |
|
|
70
|
+
*DefaultApi* | [**initiateLogin**](docs/DefaultApi.md#initiatelogin) | **GET** /auth/discord |
|
|
71
|
+
*PlayerApi* | [**getPlayer1**](docs/PlayerApi.md#getplayer1) | **GET** /v1/player/{uuid} | Get Player Information
|
|
66
72
|
*PunishmentApi* | [**applyPunishment**](docs/PunishmentApi.md#applypunishment) | **POST** /v1/punishment/apply | Apply a punishment
|
|
67
73
|
*PunishmentApi* | [**createPunishmentDraft**](docs/PunishmentApi.md#createpunishmentdraft) | **POST** /v1/punishment/draft | Create a punishment draft
|
|
68
74
|
*PunishmentApi* | [**getPunishmentSeverities**](docs/PunishmentApi.md#getpunishmentseverities) | **GET** /v1/punishment/severities | Get punishment severities
|
|
69
|
-
*PunishmentApi* | [**
|
|
75
|
+
*PunishmentApi* | [**getPunishments1**](docs/PunishmentApi.md#getpunishments1) | **GET** /v1/punishment | Get punishments by player
|
|
70
76
|
*PunishmentApi* | [**getPunishmentsByIp**](docs/PunishmentApi.md#getpunishmentsbyip) | **GET** /v1/punishment/ip | Get punishments by IP address
|
|
71
77
|
*PunishmentApi* | [**getRecentPunishments**](docs/PunishmentApi.md#getrecentpunishments) | **GET** /v1/punishment/recent | List recent punishments
|
|
72
78
|
|
|
@@ -77,6 +83,12 @@ Class | Method | HTTP request | Description
|
|
|
77
83
|
- [AdminConnectionBypassResponse](docs/AdminConnectionBypassResponse.md)
|
|
78
84
|
- [AdminDashboardConnectionResponse](docs/AdminDashboardConnectionResponse.md)
|
|
79
85
|
- [AdminGetDashboardStats](docs/AdminGetDashboardStats.md)
|
|
86
|
+
- [AdminPagedConnectionResponse](docs/AdminPagedConnectionResponse.md)
|
|
87
|
+
- [AdminPagedPlayerResponse](docs/AdminPagedPlayerResponse.md)
|
|
88
|
+
- [AdminPagedPunishmentResponse](docs/AdminPagedPunishmentResponse.md)
|
|
89
|
+
- [AdminPlayerDetailResponse](docs/AdminPlayerDetailResponse.md)
|
|
90
|
+
- [AdminPlayerSummary](docs/AdminPlayerSummary.md)
|
|
91
|
+
- [AdminUsernameHistoryEntry](docs/AdminUsernameHistoryEntry.md)
|
|
80
92
|
- [ApplyPunishmentRequest](docs/ApplyPunishmentRequest.md)
|
|
81
93
|
- [ApplyPunishmentResponse](docs/ApplyPunishmentResponse.md)
|
|
82
94
|
- [ClientCredentialRequest](docs/ClientCredentialRequest.md)
|
|
@@ -97,8 +109,8 @@ Class | Method | HTTP request | Description
|
|
|
97
109
|
|
|
98
110
|
|
|
99
111
|
Authentication schemes defined for the API:
|
|
100
|
-
<a id="
|
|
101
|
-
###
|
|
112
|
+
<a id="DiscordAuth"></a>
|
|
113
|
+
### DiscordAuth
|
|
102
114
|
|
|
103
115
|
- **Type**: Bearer authentication (JWT)
|
|
104
116
|
|