@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.
Files changed (57) hide show
  1. package/.gitkeep +0 -0
  2. package/.openapi-generator/FILES +36 -0
  3. package/.openapi-generator/VERSION +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/README.md +104 -0
  6. package/api.ts +2037 -0
  7. package/base.ts +62 -0
  8. package/common.ts +127 -0
  9. package/configuration.ts +121 -0
  10. package/dist/api.d.ts +1144 -0
  11. package/dist/api.js +1594 -0
  12. package/dist/base.d.ts +42 -0
  13. package/dist/base.js +46 -0
  14. package/dist/common.d.ts +34 -0
  15. package/dist/common.js +139 -0
  16. package/dist/configuration.d.ts +98 -0
  17. package/dist/configuration.js +44 -0
  18. package/dist/esm/api.d.ts +1144 -0
  19. package/dist/esm/api.js +1567 -0
  20. package/dist/esm/base.d.ts +42 -0
  21. package/dist/esm/base.js +41 -0
  22. package/dist/esm/common.d.ts +34 -0
  23. package/dist/esm/common.js +126 -0
  24. package/dist/esm/configuration.d.ts +98 -0
  25. package/dist/esm/configuration.js +40 -0
  26. package/dist/esm/index.d.ts +13 -0
  27. package/dist/esm/index.js +15 -0
  28. package/dist/index.d.ts +13 -0
  29. package/dist/index.js +31 -0
  30. package/docs/AdminClientCredentialResponse.md +33 -0
  31. package/docs/AdminClientCredentialsApi.md +390 -0
  32. package/docs/AdminConnectionBypassResponse.md +27 -0
  33. package/docs/AdminConnectionsApi.md +135 -0
  34. package/docs/AdminDashboardApi.md +54 -0
  35. package/docs/AdminDashboardConnectionResponse.md +38 -0
  36. package/docs/AdminGetDashboardStats.md +24 -0
  37. package/docs/ApplyPunishmentRequest.md +31 -0
  38. package/docs/ApplyPunishmentResponse.md +33 -0
  39. package/docs/ClientCredentialRequest.md +23 -0
  40. package/docs/ConnectionApi.md +69 -0
  41. package/docs/ConnectionGetConnectionDetailsResponse.md +35 -0
  42. package/docs/CreateBypassRequest.md +23 -0
  43. package/docs/CreatePunishmentDraftRequest.md +29 -0
  44. package/docs/PlayerApi.md +62 -0
  45. package/docs/PlayerGetPlayerInformation.md +27 -0
  46. package/docs/PunishmentApi.md +347 -0
  47. package/docs/PunishmentDraftResponse.md +39 -0
  48. package/docs/PunishmentGetPunishmentResponse.md +33 -0
  49. package/docs/PunishmentSeveritiesResponse.md +21 -0
  50. package/docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md +23 -0
  51. package/docs/PunishmentSeveritiesResponseSeverityInfo.md +23 -0
  52. package/docs/UpdateClientRequest.md +23 -0
  53. package/git_push.sh +57 -0
  54. package/index.ts +18 -0
  55. package/package.json +33 -0
  56. package/tsconfig.esm.json +7 -0
  57. package/tsconfig.json +18 -0
package/.gitkeep ADDED
File without changes
@@ -0,0 +1,36 @@
1
+ .gitignore
2
+ .npmignore
3
+ .openapi-generator-ignore
4
+ README.md
5
+ api.ts
6
+ base.ts
7
+ common.ts
8
+ configuration.ts
9
+ docs/AdminClientCredentialResponse.md
10
+ docs/AdminClientCredentialsApi.md
11
+ docs/AdminConnectionBypassResponse.md
12
+ docs/AdminConnectionsApi.md
13
+ docs/AdminDashboardApi.md
14
+ docs/AdminDashboardConnectionResponse.md
15
+ docs/AdminGetDashboardStats.md
16
+ docs/ApplyPunishmentRequest.md
17
+ docs/ApplyPunishmentResponse.md
18
+ docs/ClientCredentialRequest.md
19
+ docs/ConnectionApi.md
20
+ docs/ConnectionGetConnectionDetailsResponse.md
21
+ docs/CreateBypassRequest.md
22
+ docs/CreatePunishmentDraftRequest.md
23
+ docs/PlayerApi.md
24
+ docs/PlayerGetPlayerInformation.md
25
+ docs/PunishmentApi.md
26
+ docs/PunishmentDraftResponse.md
27
+ docs/PunishmentGetPunishmentResponse.md
28
+ docs/PunishmentSeveritiesResponse.md
29
+ docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md
30
+ docs/PunishmentSeveritiesResponseSeverityInfo.md
31
+ docs/UpdateClientRequest.md
32
+ git_push.sh
33
+ index.ts
34
+ package.json
35
+ tsconfig.esm.json
36
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.20.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md ADDED
@@ -0,0 +1,104 @@
1
+ ## @rebornteam/reborn-api@2.5.1
2
+
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
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run `npm publish`
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install @rebornteam/reborn-api@2.5.1 --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
47
+
48
+ ### Documentation for API Endpoints
49
+
50
+ All URIs are relative to *https://api.smsh.sh*
51
+
52
+ Class | Method | HTTP request | Description
53
+ ------------ | ------------- | ------------- | -------------
54
+ *AdminClientCredentialsApi* | [**disableClient**](docs/AdminClientCredentialsApi.md#disableclient) | **POST** /admin/client/{id}/disable | Disable client credentials
55
+ *AdminClientCredentialsApi* | [**enableClient**](docs/AdminClientCredentialsApi.md#enableclient) | **POST** /admin/client/{id}/enable | Enable client credentials
56
+ *AdminClientCredentialsApi* | [**generateClientCredentials**](docs/AdminClientCredentialsApi.md#generateclientcredentials) | **POST** /admin/client/generate | Generate new client credentials
57
+ *AdminClientCredentialsApi* | [**listClients**](docs/AdminClientCredentialsApi.md#listclients) | **GET** /admin/client | List client credentials
58
+ *AdminClientCredentialsApi* | [**revokeToken**](docs/AdminClientCredentialsApi.md#revoketoken) | **DELETE** /admin/client/{id} | Revoke client credentials
59
+ *AdminClientCredentialsApi* | [**rotateToken**](docs/AdminClientCredentialsApi.md#rotatetoken) | **POST** /admin/client/{id}/rotate | Rotate client credentials
60
+ *AdminClientCredentialsApi* | [**updateClient**](docs/AdminClientCredentialsApi.md#updateclient) | **PUT** /admin/client/{id} | Update client metadata
61
+ *AdminConnectionsApi* | [**createBypass**](docs/AdminConnectionsApi.md#createbypass) | **POST** /admin/connection/bypass | Create connection bypass
62
+ *AdminConnectionsApi* | [**listConnections**](docs/AdminConnectionsApi.md#listconnections) | **GET** /admin/connection/recent | List recent connections
63
+ *AdminDashboardApi* | [**dashboardStats**](docs/AdminDashboardApi.md#dashboardstats) | **GET** /admin/dashboard | Get dashboard statistics
64
+ *ConnectionApi* | [**getConnectionDetails**](docs/ConnectionApi.md#getconnectiondetails) | **GET** /v1/connection/get-connection-details/{ip} | Check Connection and Detect VPN/Proxy
65
+ *PlayerApi* | [**getPlayer**](docs/PlayerApi.md#getplayer) | **GET** /v1/player/{uuid} | Get Player Information
66
+ *PunishmentApi* | [**applyPunishment**](docs/PunishmentApi.md#applypunishment) | **POST** /v1/punishment/apply | Apply a punishment
67
+ *PunishmentApi* | [**createPunishmentDraft**](docs/PunishmentApi.md#createpunishmentdraft) | **POST** /v1/punishment/draft | Create a punishment draft
68
+ *PunishmentApi* | [**getPunishmentSeverities**](docs/PunishmentApi.md#getpunishmentseverities) | **GET** /v1/punishment/severities | Get punishment severities
69
+ *PunishmentApi* | [**getPunishments**](docs/PunishmentApi.md#getpunishments) | **GET** /v1/punishment | Get punishments by player
70
+ *PunishmentApi* | [**getPunishmentsByIp**](docs/PunishmentApi.md#getpunishmentsbyip) | **GET** /v1/punishment/ip | Get punishments by IP address
71
+ *PunishmentApi* | [**getRecentPunishments**](docs/PunishmentApi.md#getrecentpunishments) | **GET** /v1/punishment/recent | List recent punishments
72
+
73
+
74
+ ### Documentation For Models
75
+
76
+ - [AdminClientCredentialResponse](docs/AdminClientCredentialResponse.md)
77
+ - [AdminConnectionBypassResponse](docs/AdminConnectionBypassResponse.md)
78
+ - [AdminDashboardConnectionResponse](docs/AdminDashboardConnectionResponse.md)
79
+ - [AdminGetDashboardStats](docs/AdminGetDashboardStats.md)
80
+ - [ApplyPunishmentRequest](docs/ApplyPunishmentRequest.md)
81
+ - [ApplyPunishmentResponse](docs/ApplyPunishmentResponse.md)
82
+ - [ClientCredentialRequest](docs/ClientCredentialRequest.md)
83
+ - [ConnectionGetConnectionDetailsResponse](docs/ConnectionGetConnectionDetailsResponse.md)
84
+ - [CreateBypassRequest](docs/CreateBypassRequest.md)
85
+ - [CreatePunishmentDraftRequest](docs/CreatePunishmentDraftRequest.md)
86
+ - [PlayerGetPlayerInformation](docs/PlayerGetPlayerInformation.md)
87
+ - [PunishmentDraftResponse](docs/PunishmentDraftResponse.md)
88
+ - [PunishmentGetPunishmentResponse](docs/PunishmentGetPunishmentResponse.md)
89
+ - [PunishmentSeveritiesResponse](docs/PunishmentSeveritiesResponse.md)
90
+ - [PunishmentSeveritiesResponsePunishmentTypeInfo](docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md)
91
+ - [PunishmentSeveritiesResponseSeverityInfo](docs/PunishmentSeveritiesResponseSeverityInfo.md)
92
+ - [UpdateClientRequest](docs/UpdateClientRequest.md)
93
+
94
+
95
+ <a id="documentation-for-authorization"></a>
96
+ ## Documentation For Authorization
97
+
98
+
99
+ Authentication schemes defined for the API:
100
+ <a id="CognitoAuth"></a>
101
+ ### CognitoAuth
102
+
103
+ - **Type**: Bearer authentication (JWT)
104
+