@rebornteam/reborn-api 2.5.1
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/.gitkeep +0 -0
- package/.openapi-generator/FILES +36 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +104 -0
- package/api.ts +2037 -0
- package/base.ts +62 -0
- package/common.ts +127 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +1144 -0
- package/dist/api.js +1594 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +139 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +1144 -0
- package/dist/esm/api.js +1567 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +34 -0
- package/dist/esm/common.js +126 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AdminClientCredentialResponse.md +33 -0
- package/docs/AdminClientCredentialsApi.md +390 -0
- package/docs/AdminConnectionBypassResponse.md +27 -0
- package/docs/AdminConnectionsApi.md +135 -0
- package/docs/AdminDashboardApi.md +54 -0
- package/docs/AdminDashboardConnectionResponse.md +38 -0
- package/docs/AdminGetDashboardStats.md +24 -0
- package/docs/ApplyPunishmentRequest.md +31 -0
- package/docs/ApplyPunishmentResponse.md +33 -0
- package/docs/ClientCredentialRequest.md +23 -0
- package/docs/ConnectionApi.md +69 -0
- package/docs/ConnectionGetConnectionDetailsResponse.md +35 -0
- package/docs/CreateBypassRequest.md +23 -0
- package/docs/CreatePunishmentDraftRequest.md +29 -0
- package/docs/PlayerApi.md +62 -0
- package/docs/PlayerGetPlayerInformation.md +27 -0
- package/docs/PunishmentApi.md +347 -0
- package/docs/PunishmentDraftResponse.md +39 -0
- package/docs/PunishmentGetPunishmentResponse.md +33 -0
- package/docs/PunishmentSeveritiesResponse.md +21 -0
- package/docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md +23 -0
- package/docs/PunishmentSeveritiesResponseSeverityInfo.md +23 -0
- package/docs/UpdateClientRequest.md +23 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,39 @@
|
|
|
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)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# PunishmentGetPunishmentResponse
|
|
2
|
+
|
|
3
|
+
Punishment information including reason, type, creator, and expiration
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
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]
|
|
13
|
+
**createdBy** | **string** | Username or identifier of the person who created this punishment | [optional] [default to undefined]
|
|
14
|
+
**expiresAt** | **string** | Timestamp when the punishment expires (ISO-8601 format). Null for permanent punishments. | [optional] [default to undefined]
|
|
15
|
+
**createdAt** | **string** | Timestamp when the punishment was created (ISO-8601 format) | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { PunishmentGetPunishmentResponse } from '@rebornteam/reborn-api';
|
|
21
|
+
|
|
22
|
+
const instance: PunishmentGetPunishmentResponse = {
|
|
23
|
+
id,
|
|
24
|
+
reason,
|
|
25
|
+
type,
|
|
26
|
+
severity,
|
|
27
|
+
createdBy,
|
|
28
|
+
expiresAt,
|
|
29
|
+
createdAt,
|
|
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)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# PunishmentSeveritiesResponse
|
|
2
|
+
|
|
3
|
+
Response containing punishment severity durations for each type
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**punishmentTypes** | [**Array<PunishmentSeveritiesResponsePunishmentTypeInfo>**](PunishmentSeveritiesResponsePunishmentTypeInfo.md) | List of punishment types with their severity durations | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PunishmentSeveritiesResponse } from '@rebornteam/reborn-api';
|
|
15
|
+
|
|
16
|
+
const instance: PunishmentSeveritiesResponse = {
|
|
17
|
+
punishmentTypes,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[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,23 @@
|
|
|
1
|
+
# PunishmentSeveritiesResponsePunishmentTypeInfo
|
|
2
|
+
|
|
3
|
+
Punishment type with severity information
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**type** | **string** | Type of punishment | [optional] [default to undefined]
|
|
10
|
+
**severities** | [**Array<PunishmentSeveritiesResponseSeverityInfo>**](PunishmentSeveritiesResponseSeverityInfo.md) | List of severity levels with durations | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PunishmentSeveritiesResponsePunishmentTypeInfo } from '@rebornteam/reborn-api';
|
|
16
|
+
|
|
17
|
+
const instance: PunishmentSeveritiesResponsePunishmentTypeInfo = {
|
|
18
|
+
type,
|
|
19
|
+
severities,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[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,23 @@
|
|
|
1
|
+
# PunishmentSeveritiesResponseSeverityInfo
|
|
2
|
+
|
|
3
|
+
Severity level with duration information
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**severity** | **number** | Severity level | [optional] [default to undefined]
|
|
10
|
+
**durationSeconds** | **number** | Duration in seconds (0 means no duration) | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PunishmentSeveritiesResponseSeverityInfo } from '@rebornteam/reborn-api';
|
|
16
|
+
|
|
17
|
+
const instance: PunishmentSeveritiesResponseSeverityInfo = {
|
|
18
|
+
severity,
|
|
19
|
+
durationSeconds,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[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,23 @@
|
|
|
1
|
+
# UpdateClientRequest
|
|
2
|
+
|
|
3
|
+
Request to update client metadata
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | Human-readable name for the client | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | Optional description of the client\'s purpose | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UpdateClientRequest } from '@rebornteam/reborn-api';
|
|
16
|
+
|
|
17
|
+
const instance: UpdateClientRequest = {
|
|
18
|
+
name,
|
|
19
|
+
description,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[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/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
package/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Reborn API
|
|
5
|
+
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Cognito Bearer Token**: For admin endpoints requiring AWS Cognito authentication
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.5.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export * from "./api";
|
|
17
|
+
export * from "./configuration";
|
|
18
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rebornteam/reborn-api",
|
|
3
|
+
"version": "2.5.1",
|
|
4
|
+
"description": "OpenAPI client for @rebornteam/reborn-api",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"axios",
|
|
12
|
+
"typescript",
|
|
13
|
+
"openapi-client",
|
|
14
|
+
"openapi-generator",
|
|
15
|
+
"@rebornteam/reborn-api"
|
|
16
|
+
],
|
|
17
|
+
"license": "Unlicense",
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"typings": "./dist/index.d.ts",
|
|
20
|
+
"module": "./dist/esm/index.js",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
24
|
+
"prepare": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"axios": "^1.13.5"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/node": "12.11.5 - 12.20.42",
|
|
31
|
+
"typescript": "^4.0 || ^5.0"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"target": "ES6",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"rootDir": ".",
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"typeRoots": [
|
|
11
|
+
"node_modules/@types"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"exclude": [
|
|
15
|
+
"dist",
|
|
16
|
+
"node_modules"
|
|
17
|
+
]
|
|
18
|
+
}
|