@rebornteam/reborn-api 3.2.1 → 4.5.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 +70 -4
- package/README.md +103 -8
- package/api.ts +4362 -455
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2735 -394
- package/dist/api.js +3171 -444
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +2735 -394
- package/dist/esm/api.js +3146 -439
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AdminAltAccount.md +27 -0
- package/docs/AdminAltExemption.md +31 -0
- package/docs/AdminAltGraph.md +27 -0
- package/docs/AdminAltGraphEdge.md +25 -0
- package/docs/AdminAltGraphNode.md +29 -0
- package/docs/AdminApplyPunishmentResult.md +4 -4
- package/docs/AdminAsyncJob.md +49 -0
- package/docs/AdminAsyncJobArtifactMeta.md +23 -0
- package/docs/AdminAsyncJobStartResponse.md +21 -0
- package/docs/AdminAuditLogApi.md +141 -0
- package/docs/AdminAuditLogEntry.md +33 -0
- package/docs/AdminBulkRevokeRequest.md +25 -0
- package/docs/AdminBulkRevokeResponse.md +21 -0
- package/docs/AdminConnectionCheckResult.md +4 -0
- package/docs/AdminConnectionsApi.md +154 -39
- package/docs/AdminCreateAltExemptionRequest.md +23 -0
- package/docs/AdminCreatePlayerNoteRequest.md +21 -0
- package/docs/AdminDashboardConnectionResponse.md +4 -2
- package/docs/AdminJobsApi.md +230 -0
- package/docs/AdminPlayerDetailResponse.md +4 -4
- package/docs/AdminPlayerNote.md +31 -0
- package/docs/AdminPlayerPunishmentResponse.md +51 -0
- package/docs/AdminPlayerReport.md +39 -0
- package/docs/AdminPlayerSession.md +31 -0
- package/docs/AdminPlayerSessionStats.md +29 -0
- package/docs/AdminPlayerSummary.md +2 -4
- package/docs/AdminPlayersApi.md +1043 -19
- package/docs/AdminPunishmentEvaluation.md +4 -8
- package/docs/AdminPunishmentTargets.md +23 -0
- package/docs/AdminPunishmentsApi.md +179 -21
- package/docs/AdminReportTarget.md +23 -0
- package/docs/AdminReportsApi.md +123 -0
- package/docs/AdminResolveReportRequest.md +21 -0
- package/docs/AdminSetAggressiveModeImmunityRequest.md +21 -0
- package/docs/AdminTrustFactorBreakdown.md +61 -0
- package/docs/AdminTrustFactorHistoryEntry.md +23 -0
- package/docs/AdminTrustFactorImpact.md +23 -0
- package/docs/AdminUpdatePunishmentRequest.md +35 -0
- package/docs/ChatApi.md +4 -4
- package/docs/ConnectionApi.md +4 -4
- package/docs/ConnectionGetConnectionDetailsResponse.md +5 -1
- package/docs/ConnectionResult.md +1 -1
- package/docs/CreateReportRequest.md +27 -0
- package/docs/CreateReportResponse.md +23 -0
- package/docs/CursoredPageAdminAuditLogEntry.md +38 -0
- package/docs/CursoredPageable.md +30 -0
- package/docs/JobStatus.md +17 -0
- package/docs/PageAdminAltAccount.md +36 -0
- package/docs/PageAdminAltExemption.md +36 -0
- package/docs/PageAdminAsyncJob.md +36 -0
- package/docs/PageAdminAuditLogEntry.md +36 -0
- package/docs/PageAdminDashboardConnectionResponse.md +36 -0
- package/docs/PageAdminPlayerNote.md +36 -0
- package/docs/PageAdminPlayerPunishmentResponse.md +36 -0
- package/docs/PageAdminPlayerReport.md +36 -0
- package/docs/PageAdminPlayerSession.md +36 -0
- package/docs/PageAdminPlayerSummary.md +36 -0
- package/docs/PageAdminPunishmentListItem.md +36 -0
- package/docs/PagePunishmentGetPunishmentResponse.md +36 -0
- package/docs/Pageable.md +28 -0
- package/docs/PageableMode.md +12 -0
- package/docs/PlayerGetPlayerInformation.md +5 -3
- package/docs/PlayerSessionEndRequest.md +23 -0
- package/docs/PlayerSessionStartRequest.md +27 -0
- package/docs/PlayerSessionStartResponse.md +51 -0
- package/docs/PlayerSessionsApi.md +116 -0
- package/docs/PunishmentApi.md +22 -24
- package/docs/PunishmentSource.md +11 -0
- package/docs/PunishmentType.md +1 -0
- package/docs/ReportApi.md +64 -0
- package/docs/ReportCategory.md +17 -0
- package/docs/SliceAdminAltAccount.md +32 -0
- package/docs/SliceAdminAltExemption.md +32 -0
- package/docs/SliceAdminAsyncJob.md +32 -0
- package/docs/SliceAdminAuditLogEntry.md +32 -0
- package/docs/SliceAdminDashboardConnectionResponse.md +32 -0
- package/docs/SliceAdminPlayerNote.md +32 -0
- package/docs/SliceAdminPlayerPunishmentResponse.md +32 -0
- package/docs/SliceAdminPlayerReport.md +32 -0
- package/docs/SliceAdminPlayerSession.md +32 -0
- package/docs/SliceAdminPlayerSummary.md +32 -0
- package/docs/SliceAdminPunishmentListItem.md +32 -0
- package/docs/SlicePunishmentGetPunishmentResponse.md +32 -0
- package/docs/Sort.md +20 -0
- package/docs/SortOrder.md +26 -0
- package/docs/SortOrderDirection.md +10 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AdminBackfillLocationResponse.md +0 -25
- package/docs/AdminPagedConnectionResponse.md +0 -29
- package/docs/AdminPagedPlayerResponse.md +0 -29
- package/docs/AdminPagedPunishmentResponse.md +0 -29
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# AdminPlayerReport
|
|
2
|
+
|
|
3
|
+
One peer report. May target one or more players.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | Report id | [default to undefined]
|
|
10
|
+
**reporterUuid** | **string** | Reporter\'s UUID | [default to undefined]
|
|
11
|
+
**reporterUsername** | **string** | Reporter\'s username at the time of the report (last-known if changed) | [optional] [default to undefined]
|
|
12
|
+
**reportedTargets** | [**Array<AdminReportTarget>**](AdminReportTarget.md) | All players this report flags. At least one entry. | [default to undefined]
|
|
13
|
+
**category** | **string** | Category | [default to undefined]
|
|
14
|
+
**reason** | **string** | Reason text | [default to undefined]
|
|
15
|
+
**createdAt** | **string** | When created (ISO-8601) | [default to undefined]
|
|
16
|
+
**resolvedAt** | **string** | When resolved by staff. Null = open. | [optional] [default to undefined]
|
|
17
|
+
**resolvedBy** | **string** | Staff member who resolved it | [optional] [default to undefined]
|
|
18
|
+
**resolutionNote** | **string** | Staff\'s resolution note | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { AdminPlayerReport } from '@rebornteam/reborn-api';
|
|
24
|
+
|
|
25
|
+
const instance: AdminPlayerReport = {
|
|
26
|
+
id,
|
|
27
|
+
reporterUuid,
|
|
28
|
+
reporterUsername,
|
|
29
|
+
reportedTargets,
|
|
30
|
+
category,
|
|
31
|
+
reason,
|
|
32
|
+
createdAt,
|
|
33
|
+
resolvedAt,
|
|
34
|
+
resolvedBy,
|
|
35
|
+
resolutionNote,
|
|
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)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# AdminPlayerSession
|
|
2
|
+
|
|
3
|
+
A single player session — one visit by one player to one game server. Active sessions have null endedAt and durationSeconds; closed sessions have both populated.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Session id (UUID) | [default to undefined]
|
|
10
|
+
**playerUuid** | **string** | Player Minecraft UUID | [default to undefined]
|
|
11
|
+
**serverSessionId** | **string** | Game server session id this session is associated with. Nullable when the server record has been deleted. | [optional] [default to undefined]
|
|
12
|
+
**startedAt** | **string** | When the player joined (ISO-8601) | [default to undefined]
|
|
13
|
+
**endedAt** | **string** | When the player disconnected (ISO-8601). Null while the session is still active. | [optional] [default to undefined]
|
|
14
|
+
**durationSeconds** | **number** | Closed session duration in seconds (ended_at − started_at). Null while active. | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { AdminPlayerSession } from '@rebornteam/reborn-api';
|
|
20
|
+
|
|
21
|
+
const instance: AdminPlayerSession = {
|
|
22
|
+
id,
|
|
23
|
+
playerUuid,
|
|
24
|
+
serverSessionId,
|
|
25
|
+
startedAt,
|
|
26
|
+
endedAt,
|
|
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)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# AdminPlayerSessionStats
|
|
2
|
+
|
|
3
|
+
Aggregate session statistics for one player. Computed on demand from player_session.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**totalSecondsPlayed** | **number** | Sum of duration_seconds across all closed sessions | [default to undefined]
|
|
10
|
+
**sessionCount** | **number** | Total number of session rows for this player (active + closed) | [default to undefined]
|
|
11
|
+
**distinctDaysActive** | **number** | Distinct calendar days (UTC) on which this player had at least one session | [default to undefined]
|
|
12
|
+
**lastStartedAt** | **string** | Most recent session start time (ISO-8601). Null if the player has never connected. | [optional] [default to undefined]
|
|
13
|
+
**currentlyOnline** | **boolean** | True when the player has at least one currently-active (ended_at IS NULL) session. | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { AdminPlayerSessionStats } from '@rebornteam/reborn-api';
|
|
19
|
+
|
|
20
|
+
const instance: AdminPlayerSessionStats = {
|
|
21
|
+
totalSecondsPlayed,
|
|
22
|
+
sessionCount,
|
|
23
|
+
distinctDaysActive,
|
|
24
|
+
lastStartedAt,
|
|
25
|
+
currentlyOnline,
|
|
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)
|
|
@@ -12,8 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**firstJoin** | **boolean** | Whether this player still has first-join status | [default to undefined]
|
|
13
13
|
**firstLogin** | **string** | Timestamp of first connection (ISO-8601) | [default to undefined]
|
|
14
14
|
**lastUsedAt** | **string** | Timestamp of most recent connection (ISO-8601) | [optional] [default to undefined]
|
|
15
|
-
**
|
|
16
|
-
**punishmentPointsPercent** | **number** | Punishment score as a percentage. Values above 100 indicate future punishments should be permanent. | [default to undefined]
|
|
15
|
+
**trustFactor** | **number** | Trust factor (0-100, higher = more trusted). Informational only — does NOT auto-escalate punishments. See compute_trust_factor in the database for the formula. | [default to undefined]
|
|
17
16
|
|
|
18
17
|
## Example
|
|
19
18
|
|
|
@@ -27,8 +26,7 @@ const instance: AdminPlayerSummary = {
|
|
|
27
26
|
firstJoin,
|
|
28
27
|
firstLogin,
|
|
29
28
|
lastUsedAt,
|
|
30
|
-
|
|
31
|
-
punishmentPointsPercent,
|
|
29
|
+
trustFactor,
|
|
32
30
|
};
|
|
33
31
|
```
|
|
34
32
|
|