@rebornteam/reborn-api 2.6.0 → 2.6.4

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 (47) hide show
  1. package/.openapi-generator/FILES +11 -4
  2. package/README.md +16 -8
  3. package/api.ts +463 -262
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +329 -180
  8. package/dist/api.js +231 -146
  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 +329 -180
  16. package/dist/esm/api.js +230 -145
  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/PunishmentApi.md +0 -106
  41. package/docs/PunishmentGetPunishmentResponse.md +5 -3
  42. package/index.ts +1 -1
  43. package/package.json +1 -1
  44. package/docs/ApplyPunishmentRequest.md +0 -31
  45. package/docs/ApplyPunishmentResponse.md +0 -33
  46. package/docs/CreatePunishmentDraftRequest.md +0 -29
  47. package/docs/PunishmentDraftResponse.md +0 -39
@@ -1,31 +0,0 @@
1
- # ApplyPunishmentRequest
2
-
3
- Request to apply a punishment to a player
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **playerUuid** | **string** | Player UUID to punish | [default to undefined]
10
- **reason** | **string** | Reason for the punishment | [default to undefined]
11
- **type** | **string** | Type of punishment | [default to undefined]
12
- **severity** | **number** | Severity level of the punishment (1-10) | [default to undefined]
13
- **createdBy** | **string** | Staff member applying the punishment | [default to undefined]
14
- **durationSeconds** | **number** | Duration of the punishment in seconds. Null means permanent. | [optional] [default to undefined]
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import { ApplyPunishmentRequest } from '@rebornteam/reborn-api';
20
-
21
- const instance: ApplyPunishmentRequest = {
22
- playerUuid,
23
- reason,
24
- type,
25
- severity,
26
- createdBy,
27
- durationSeconds,
28
- };
29
- ```
30
-
31
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,33 +0,0 @@
1
- # ApplyPunishmentResponse
2
-
3
- Response after applying a punishment
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **punishmentId** | **number** | ID of the created punishment | [optional] [default to undefined]
10
- **playerUuid** | **string** | Player UUID punished | [optional] [default to undefined]
11
- **type** | **string** | Type of punishment applied | [optional] [default to undefined]
12
- **severity** | **number** | Severity level (1-10) | [optional] [default to undefined]
13
- **newScore** | **number** | New total punishment score after applying | [optional] [default to undefined]
14
- **isPermanent** | **boolean** | Whether this punishment is permanent | [optional] [default to undefined]
15
- **expiresAt** | **string** | Timestamp when punishment expires (ISO-8601 format, null if permanent) | [optional] [default to undefined]
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import { ApplyPunishmentResponse } from '@rebornteam/reborn-api';
21
-
22
- const instance: ApplyPunishmentResponse = {
23
- punishmentId,
24
- playerUuid,
25
- type,
26
- severity,
27
- newScore,
28
- isPermanent,
29
- expiresAt,
30
- };
31
- ```
32
-
33
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,29 +0,0 @@
1
- # CreatePunishmentDraftRequest
2
-
3
- Request to create a punishment draft for preview before applying
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **playerUuid** | **string** | Player UUID to punish | [default to undefined]
10
- **reason** | **string** | Reason for the punishment | [default to undefined]
11
- **type** | **string** | Type of punishment | [default to undefined]
12
- **severity** | **number** | Severity level of the punishment (1-10) | [default to undefined]
13
- **durationSeconds** | **number** | Duration of the punishment in seconds. Null means permanent. | [optional] [default to undefined]
14
-
15
- ## Example
16
-
17
- ```typescript
18
- import { CreatePunishmentDraftRequest } from '@rebornteam/reborn-api';
19
-
20
- const instance: CreatePunishmentDraftRequest = {
21
- playerUuid,
22
- reason,
23
- type,
24
- severity,
25
- durationSeconds,
26
- };
27
- ```
28
-
29
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,39 +0,0 @@
1
- # PunishmentDraftResponse
2
-
3
- Response containing punishment draft preview with calculated points and thresholds
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **playerUuid** | **string** | Player UUID this punishment would apply to | [optional] [default to undefined]
10
- **reason** | **string** | Reason for the punishment | [optional] [default to undefined]
11
- **type** | **string** | Type of punishment | [optional] [default to undefined]
12
- **severity** | **number** | Severity level (1-10) | [optional] [default to undefined]
13
- **currentScore** | **number** | Current total punishment score before applying this punishment | [optional] [default to undefined]
14
- **pointsToAdd** | **number** | Points this punishment would add | [optional] [default to undefined]
15
- **newScore** | **number** | New total score after applying this punishment | [optional] [default to undefined]
16
- **willBePermanent** | **boolean** | Whether this punishment will be permanent | [optional] [default to undefined]
17
- **durationSeconds** | **number** | Duration in seconds (null if permanent) | [optional] [default to undefined]
18
- **previousPunishmentCount** | **number** | Number of previous punishments for this player | [optional] [default to undefined]
19
-
20
- ## Example
21
-
22
- ```typescript
23
- import { PunishmentDraftResponse } from '@rebornteam/reborn-api';
24
-
25
- const instance: PunishmentDraftResponse = {
26
- playerUuid,
27
- reason,
28
- type,
29
- severity,
30
- currentScore,
31
- pointsToAdd,
32
- newScore,
33
- willBePermanent,
34
- durationSeconds,
35
- previousPunishmentCount,
36
- };
37
- ```
38
-
39
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)