@rebornteam/reborn-api 2.6.0 → 2.7.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.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +19 -5
  2. package/README.md +33 -11
  3. package/api.ts +1572 -588
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +776 -248
  8. package/dist/api.js +1264 -467
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +776 -248
  16. package/dist/esm/api.js +1243 -454
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AdminApplyPunishmentRequest.md +33 -0
  28. package/docs/AdminApplyPunishmentResponse.md +21 -0
  29. package/docs/AdminApplyPunishmentResult.md +33 -0
  30. package/docs/AdminCreatePunishmentDraftRequest.md +31 -0
  31. package/docs/AdminIpSearchResult.md +23 -0
  32. package/docs/AdminPagedPunishmentResponse.md +1 -1
  33. package/docs/AdminPlayerSearchResult.md +23 -0
  34. package/docs/AdminPunishmentDraftResponse.md +21 -0
  35. package/docs/AdminPunishmentEvaluation.md +39 -0
  36. package/docs/AdminPunishmentListItem.md +42 -0
  37. package/docs/AdminPunishmentSearchResponse.md +25 -0
  38. package/docs/AdminPunishmentTarget.md +23 -0
  39. package/docs/AdminPunishmentsApi.md +168 -2
  40. package/docs/AuthenticationApi.md +167 -0
  41. package/docs/ChatApi.md +121 -0
  42. package/docs/ChatMessageDTO.md +30 -0
  43. package/docs/ChatMessageRequest.md +26 -0
  44. package/docs/PlayerApi.md +56 -3
  45. package/docs/PunishmentApi.md +0 -106
  46. package/docs/PunishmentGetPunishmentResponse.md +5 -3
  47. package/docs/ServerRegisterRequest.md +24 -0
  48. package/docs/ServerSessionDTO.md +36 -0
  49. package/docs/ServerSessionsApi.md +261 -0
  50. package/docs/TokenRequest.md +24 -0
  51. package/index.ts +1 -1
  52. package/package.json +1 -1
  53. package/docs/ApplyPunishmentRequest.md +0 -31
  54. package/docs/ApplyPunishmentResponse.md +0 -33
  55. package/docs/CreatePunishmentDraftRequest.md +0 -29
  56. package/docs/DefaultApi.md +0 -105
  57. package/docs/PunishmentDraftResponse.md +0 -39
@@ -0,0 +1,167 @@
1
+ # AuthenticationApi
2
+
3
+ All URIs are relative to *https://api.smsh.sh*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**callback**](#callback) | **GET** /auth/discord/callback | Discord - OAuth2 callback|
8
+ |[**initiateLogin**](#initiatelogin) | **GET** /auth/discord | Discord - Initiate login|
9
+ |[**token**](#token) | **POST** /oauth/token | Service - Exchange client credentials for token|
10
+
11
+ # **callback**
12
+ > callback()
13
+
14
+ Receives the authorization code from Discord after the user approves the OAuth2 prompt. Exchanges the code for an access token, verifies the user holds an admin guild role, then redirects back to the admin frontend with a signed JWT in the query string (`?token=...`). On failure, redirects with `?error=<reason>` instead.
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ AuthenticationApi,
21
+ Configuration
22
+ } from '@rebornteam/reborn-api';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new AuthenticationApi(configuration);
26
+
27
+ let code: string; //Authorization code provided by Discord on successful approval (optional) (default to undefined)
28
+ let error: string; //Error code provided by Discord if the user denied access (optional) (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.callback(
31
+ code,
32
+ error
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **code** | [**string**] | Authorization code provided by Discord on successful approval | (optional) defaults to undefined|
41
+ | **error** | [**string**] | Error code provided by Discord if the user denied access | (optional) defaults to undefined|
42
+
43
+
44
+ ### Return type
45
+
46
+ void (empty response body)
47
+
48
+ ### Authorization
49
+
50
+ [DiscordAuth](../README.md#DiscordAuth)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: Not defined
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**302** | Redirect to admin frontend with &#x60;?token&#x3D;&lt;jwt&gt;&#x60; on success or &#x60;?error&#x3D;&lt;reason&gt;&#x60; on failure | - |
62
+
63
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
64
+
65
+ # **initiateLogin**
66
+ > initiateLogin()
67
+
68
+ Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly — the admin frontend navigates to this URL to begin the login flow.
69
+
70
+ ### Example
71
+
72
+ ```typescript
73
+ import {
74
+ AuthenticationApi,
75
+ Configuration
76
+ } from '@rebornteam/reborn-api';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new AuthenticationApi(configuration);
80
+
81
+ const { status, data } = await apiInstance.initiateLogin();
82
+ ```
83
+
84
+ ### Parameters
85
+ This endpoint does not have any parameters.
86
+
87
+
88
+ ### Return type
89
+
90
+ void (empty response body)
91
+
92
+ ### Authorization
93
+
94
+ [DiscordAuth](../README.md#DiscordAuth)
95
+
96
+ ### HTTP request headers
97
+
98
+ - **Content-Type**: Not defined
99
+ - **Accept**: Not defined
100
+
101
+
102
+ ### HTTP response details
103
+ | Status code | Description | Response headers |
104
+ |-------------|-------------|------------------|
105
+ |**302** | Redirect to Discord authorization URL | - |
106
+
107
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
108
+
109
+ # **token**
110
+ > object token()
111
+
112
+ Exchange service client credentials for a Bearer JWT using the OAuth2 client_credentials grant. Used by game server plugins to authenticate against the API.
113
+
114
+ ### Example
115
+
116
+ ```typescript
117
+ import {
118
+ AuthenticationApi,
119
+ Configuration
120
+ } from '@rebornteam/reborn-api';
121
+
122
+ const configuration = new Configuration();
123
+ const apiInstance = new AuthenticationApi(configuration);
124
+
125
+ let grantType: string; // (optional) (default to undefined)
126
+ let clientId: string; // (optional) (default to undefined)
127
+ let clientSecret: string; // (optional) (default to undefined)
128
+
129
+ const { status, data } = await apiInstance.token(
130
+ grantType,
131
+ clientId,
132
+ clientSecret
133
+ );
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ |Name | Type | Description | Notes|
139
+ |------------- | ------------- | ------------- | -------------|
140
+ | **grantType** | [**string**] | | (optional) defaults to undefined|
141
+ | **clientId** | [**string**] | | (optional) defaults to undefined|
142
+ | **clientSecret** | [**string**] | | (optional) defaults to undefined|
143
+
144
+
145
+ ### Return type
146
+
147
+ **object**
148
+
149
+ ### Authorization
150
+
151
+ [DiscordAuth](../README.md#DiscordAuth)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: application/x-www-form-urlencoded, application/json
156
+ - **Accept**: application/json
157
+
158
+
159
+ ### HTTP response details
160
+ | Status code | Description | Response headers |
161
+ |-------------|-------------|------------------|
162
+ |**200** | Token generated successfully | - |
163
+ |**400** | Invalid request | - |
164
+ |**401** | Invalid credentials | - |
165
+
166
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
167
+
@@ -0,0 +1,121 @@
1
+ # ChatApi
2
+
3
+ All URIs are relative to *https://api.smsh.sh*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**history**](#history) | **GET** /v1/chat | Get chat history|
8
+ |[**ingest**](#ingest) | **POST** /v1/chat | Ingest a chat message|
9
+
10
+ # **history**
11
+ > Array<ChatMessageDTO> history()
12
+
13
+ Returns up to `limit` chat messages before the given `before` timestamp (keyset pagination). Results are returned in ascending chronological order. Omit `before` to start from the current time. Scroll back through history by passing the `sentAt` of the oldest message received as the next `before` value.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ ChatApi,
20
+ Configuration
21
+ } from '@rebornteam/reborn-api';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new ChatApi(configuration);
25
+
26
+ let limit: number; //Maximum number of messages to return (1–100) (default to 50)
27
+ let sessionId: string; //Filter to a specific server session. Omit for global history. (optional) (default to undefined)
28
+ let before: string; //ISO-8601 timestamp cursor — return messages sent before this time. Omit to start from now. (optional) (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.history(
31
+ limit,
32
+ sessionId,
33
+ before
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **limit** | [**number**] | Maximum number of messages to return (1–100) | defaults to 50|
42
+ | **sessionId** | [**string**] | Filter to a specific server session. Omit for global history. | (optional) defaults to undefined|
43
+ | **before** | [**string**] | ISO-8601 timestamp cursor — return messages sent before this time. Omit to start from now. | (optional) defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **Array<ChatMessageDTO>**
49
+
50
+ ### Authorization
51
+
52
+ [DiscordAuth](../README.md#DiscordAuth)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | List of chat messages in ascending chronological order | - |
64
+ |**401** | Unauthorized | - |
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
67
+
68
+ # **ingest**
69
+ > ChatMessageDTO ingest(chatMessageRequest)
70
+
71
+ Stores a chat message from a game server and fans it out to all connected WebSocket clients via PostgreSQL LISTEN/NOTIFY. The session must be currently online. Only the player UUID is stored — usernames are resolved on the web UI from the player database cache.
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ ChatApi,
78
+ Configuration,
79
+ ChatMessageRequest
80
+ } from '@rebornteam/reborn-api';
81
+
82
+ const configuration = new Configuration();
83
+ const apiInstance = new ChatApi(configuration);
84
+
85
+ let chatMessageRequest: ChatMessageRequest; //
86
+
87
+ const { status, data } = await apiInstance.ingest(
88
+ chatMessageRequest
89
+ );
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ |Name | Type | Description | Notes|
95
+ |------------- | ------------- | ------------- | -------------|
96
+ | **chatMessageRequest** | **ChatMessageRequest**| | |
97
+
98
+
99
+ ### Return type
100
+
101
+ **ChatMessageDTO**
102
+
103
+ ### Authorization
104
+
105
+ [DiscordAuth](../README.md#DiscordAuth)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: application/json
110
+ - **Accept**: application/json
111
+
112
+
113
+ ### HTTP response details
114
+ | Status code | Description | Response headers |
115
+ |-------------|-------------|------------------|
116
+ |**201** | Message ingested | - |
117
+ |**400** | Bad request — unknown session ID or validation failure | - |
118
+ |**401** | Unauthorized | - |
119
+
120
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
121
+
@@ -0,0 +1,30 @@
1
+ # ChatMessageDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [default to undefined]
9
+ **sentAt** | **string** | | [default to undefined]
10
+ **sessionId** | **string** | | [default to undefined]
11
+ **playerUuid** | **string** | | [default to undefined]
12
+ **message** | **string** | | [default to undefined]
13
+ **channel** | **string** | | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ChatMessageDTO } from '@rebornteam/reborn-api';
19
+
20
+ const instance: ChatMessageDTO = {
21
+ id,
22
+ sentAt,
23
+ sessionId,
24
+ playerUuid,
25
+ message,
26
+ channel,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # ChatMessageRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sessionId** | **string** | | [default to undefined]
9
+ **playerUuid** | **string** | | [default to undefined]
10
+ **message** | **string** | | [default to undefined]
11
+ **channel** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ChatMessageRequest } from '@rebornteam/reborn-api';
17
+
18
+ const instance: ChatMessageRequest = {
19
+ sessionId,
20
+ playerUuid,
21
+ message,
22
+ channel,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/PlayerApi.md CHANGED
@@ -4,7 +4,8 @@ All URIs are relative to *https://api.smsh.sh*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getPlayer1**](#getplayer1) | **GET** /v1/player/{uuid} | Get Player Information|
7
+ |[**getPlayer1**](#getplayer1) | **GET** /v1/player/{uuid} | Get player information|
8
+ |[**getUsernames**](#getusernames) | **GET** /v1/player/usernames | Batch resolve UUIDs to usernames|
8
9
 
9
10
  # **getPlayer1**
10
11
  > PlayerGetPlayerInformation getPlayer1()
@@ -54,9 +55,61 @@ const { status, data } = await apiInstance.getPlayer1(
54
55
  | Status code | Description | Response headers |
55
56
  |-------------|-------------|------------------|
56
57
  |**200** | Player information retrieved successfully | - |
57
- |**401** | Unauthorized - Invalid or missing authentication token | - |
58
- |**400** | Bad Request - Invalid UUID format | - |
58
+ |**401** | Unauthorized invalid or missing authentication token | - |
59
+ |**400** | Bad request invalid UUID format | - |
59
60
  |**404** | Player not found | - |
60
61
 
61
62
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
62
63
 
64
+ # **getUsernames**
65
+ > getUsernames()
66
+
67
+ Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record (e.g. players who have never joined) are omitted from the response. Used by the web UI to display player names in the chat log.
68
+
69
+ ### Example
70
+
71
+ ```typescript
72
+ import {
73
+ PlayerApi,
74
+ Configuration
75
+ } from '@rebornteam/reborn-api';
76
+
77
+ const configuration = new Configuration();
78
+ const apiInstance = new PlayerApi(configuration);
79
+
80
+ let uuids: Array<string>; //List of player UUIDs to resolve (repeatable query param) (default to undefined)
81
+
82
+ const { status, data } = await apiInstance.getUsernames(
83
+ uuids
84
+ );
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ |Name | Type | Description | Notes|
90
+ |------------- | ------------- | ------------- | -------------|
91
+ | **uuids** | **Array&lt;string&gt;** | List of player UUIDs to resolve (repeatable query param) | defaults to undefined|
92
+
93
+
94
+ ### Return type
95
+
96
+ void (empty response body)
97
+
98
+ ### Authorization
99
+
100
+ [DiscordAuth](../README.md#DiscordAuth)
101
+
102
+ ### HTTP request headers
103
+
104
+ - **Content-Type**: Not defined
105
+ - **Accept**: application/json
106
+
107
+
108
+ ### HTTP response details
109
+ | Status code | Description | Response headers |
110
+ |-------------|-------------|------------------|
111
+ |**200** | Map of UUID → username for all resolved players | - |
112
+ |**401** | Unauthorized | - |
113
+
114
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
115
+
@@ -4,117 +4,11 @@ All URIs are relative to *https://api.smsh.sh*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**applyPunishment**](#applypunishment) | **POST** /v1/punishment/apply | Apply a punishment|
8
- |[**createPunishmentDraft**](#createpunishmentdraft) | **POST** /v1/punishment/draft | Create a punishment draft|
9
7
  |[**getPunishmentSeverities**](#getpunishmentseverities) | **GET** /v1/punishment/severities | Get punishment severities|
10
8
  |[**getPunishments1**](#getpunishments1) | **GET** /v1/punishment | Get punishments by player|
11
9
  |[**getPunishmentsByIp**](#getpunishmentsbyip) | **GET** /v1/punishment/ip | Get punishments by IP address|
12
10
  |[**getRecentPunishments**](#getrecentpunishments) | **GET** /v1/punishment/recent | List recent punishments|
13
11
 
14
- # **applyPunishment**
15
- > ApplyPunishmentResponse applyPunishment(applyPunishmentRequest)
16
-
17
- Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
18
-
19
- ### Example
20
-
21
- ```typescript
22
- import {
23
- PunishmentApi,
24
- Configuration,
25
- ApplyPunishmentRequest
26
- } from '@rebornteam/reborn-api';
27
-
28
- const configuration = new Configuration();
29
- const apiInstance = new PunishmentApi(configuration);
30
-
31
- let applyPunishmentRequest: ApplyPunishmentRequest; //
32
-
33
- const { status, data } = await apiInstance.applyPunishment(
34
- applyPunishmentRequest
35
- );
36
- ```
37
-
38
- ### Parameters
39
-
40
- |Name | Type | Description | Notes|
41
- |------------- | ------------- | ------------- | -------------|
42
- | **applyPunishmentRequest** | **ApplyPunishmentRequest**| | |
43
-
44
-
45
- ### Return type
46
-
47
- **ApplyPunishmentResponse**
48
-
49
- ### Authorization
50
-
51
- [DiscordAuth](../README.md#DiscordAuth)
52
-
53
- ### HTTP request headers
54
-
55
- - **Content-Type**: application/json
56
- - **Accept**: application/json
57
-
58
-
59
- ### HTTP response details
60
- | Status code | Description | Response headers |
61
- |-------------|-------------|------------------|
62
- |**200** | Punishment successfully applied | - |
63
-
64
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
65
-
66
- # **createPunishmentDraft**
67
- > PunishmentDraftResponse createPunishmentDraft(createPunishmentDraftRequest)
68
-
69
- Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
70
-
71
- ### Example
72
-
73
- ```typescript
74
- import {
75
- PunishmentApi,
76
- Configuration,
77
- CreatePunishmentDraftRequest
78
- } from '@rebornteam/reborn-api';
79
-
80
- const configuration = new Configuration();
81
- const apiInstance = new PunishmentApi(configuration);
82
-
83
- let createPunishmentDraftRequest: CreatePunishmentDraftRequest; //
84
-
85
- const { status, data } = await apiInstance.createPunishmentDraft(
86
- createPunishmentDraftRequest
87
- );
88
- ```
89
-
90
- ### Parameters
91
-
92
- |Name | Type | Description | Notes|
93
- |------------- | ------------- | ------------- | -------------|
94
- | **createPunishmentDraftRequest** | **CreatePunishmentDraftRequest**| | |
95
-
96
-
97
- ### Return type
98
-
99
- **PunishmentDraftResponse**
100
-
101
- ### Authorization
102
-
103
- [DiscordAuth](../README.md#DiscordAuth)
104
-
105
- ### HTTP request headers
106
-
107
- - **Content-Type**: application/json
108
- - **Accept**: application/json
109
-
110
-
111
- ### HTTP response details
112
- | Status code | Description | Response headers |
113
- |-------------|-------------|------------------|
114
- |**200** | Punishment draft with calculated impact | - |
115
-
116
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
117
-
118
12
  # **getPunishmentSeverities**
119
13
  > PunishmentSeveritiesResponse getPunishmentSeverities()
120
14
 
@@ -7,9 +7,10 @@ Punishment information including reason, type, creator, and expiration
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **id** | **number** | Unique identifier for the punishment | [optional] [default to undefined]
10
- **reason** | **string** | Reason for the punishment | [optional] [default to undefined]
11
- **type** | **string** | Type of punishment (e.g., BAN, MUTE, KICK, WARNING) | [optional] [default to undefined]
12
- **severity** | **number** | Severity level of the punishment (1-10, where 10 is most severe) | [optional] [default to undefined]
10
+ **reason** | **string** | Reason for the punishment, shown to the punished player | [optional] [default to undefined]
11
+ **notes** | **string** | Internal administrator notes not shown to the punished player | [optional] [default to undefined]
12
+ **type** | **string** | Type of punishment (BAN, MUTE, WARNING) | [optional] [default to undefined]
13
+ **severity** | **number** | Severity level (1&#x3D;Minor, 2&#x3D;Moderate, 3&#x3D;Severe, 4&#x3D;Critical) | [optional] [default to undefined]
13
14
  **createdBy** | **string** | Username or identifier of the person who created this punishment | [optional] [default to undefined]
14
15
  **expiresAt** | **string** | Timestamp when the punishment expires (ISO-8601 format). Null for permanent punishments. | [optional] [default to undefined]
15
16
  **createdAt** | **string** | Timestamp when the punishment was created (ISO-8601 format) | [optional] [default to undefined]
@@ -22,6 +23,7 @@ import { PunishmentGetPunishmentResponse } from '@rebornteam/reborn-api';
22
23
  const instance: PunishmentGetPunishmentResponse = {
23
24
  id,
24
25
  reason,
26
+ notes,
25
27
  type,
26
28
  severity,
27
29
  createdBy,
@@ -0,0 +1,24 @@
1
+ # ServerRegisterRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **region** | **string** | | [default to undefined]
9
+ **gameType** | **string** | | [default to undefined]
10
+ **containerId** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ServerRegisterRequest } from '@rebornteam/reborn-api';
16
+
17
+ const instance: ServerRegisterRequest = {
18
+ region,
19
+ gameType,
20
+ containerId,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,36 @@
1
+ # ServerSessionDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **region** | **string** | | [default to undefined]
10
+ **gameType** | **string** | | [default to undefined]
11
+ **instanceName** | **string** | | [default to undefined]
12
+ **containerId** | **string** | | [optional] [default to undefined]
13
+ **startedAt** | **string** | | [default to undefined]
14
+ **lastHeartbeat** | **string** | | [default to undefined]
15
+ **endedAt** | **string** | | [optional] [default to undefined]
16
+ **online** | **boolean** | | [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { ServerSessionDTO } from '@rebornteam/reborn-api';
22
+
23
+ const instance: ServerSessionDTO = {
24
+ id,
25
+ region,
26
+ gameType,
27
+ instanceName,
28
+ containerId,
29
+ startedAt,
30
+ lastHeartbeat,
31
+ endedAt,
32
+ online,
33
+ };
34
+ ```
35
+
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)