@rebornteam/reborn-api 2.9.1 → 3.0.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.
@@ -12,6 +12,7 @@ docs/AdminApplyPunishmentResult.md
12
12
  docs/AdminClientCredentialResponse.md
13
13
  docs/AdminClientCredentialsApi.md
14
14
  docs/AdminConnectionBypassResponse.md
15
+ docs/AdminConnectionCheckResult.md
15
16
  docs/AdminConnectionsApi.md
16
17
  docs/AdminCreatePunishmentDraftRequest.md
17
18
  docs/AdminDashboardApi.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @rebornteam/reborn-api@2.9.1
1
+ ## @rebornteam/reborn-api@3.0.1
2
2
 
3
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
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @rebornteam/reborn-api@2.9.1 --save
39
+ npm install @rebornteam/reborn-api@3.0.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -61,6 +61,7 @@ Class | Method | HTTP request | Description
61
61
  *AdminConnectionsApi* | [**createBypass**](docs/AdminConnectionsApi.md#createbypass) | **POST** /admin/connection/bypass | Create connection bypass
62
62
  *AdminConnectionsApi* | [**listAllConnections**](docs/AdminConnectionsApi.md#listallconnections) | **GET** /admin/connection | List all connections (paginated)
63
63
  *AdminConnectionsApi* | [**listConnections**](docs/AdminConnectionsApi.md#listconnections) | **GET** /admin/connection/recent | List recent connections
64
+ *AdminConnectionsApi* | [**recheckService**](docs/AdminConnectionsApi.md#recheckservice) | **POST** /admin/connection/{connectionId}/recheck/{service} | Refresh a single VPN check
64
65
  *AdminDashboardApi* | [**dashboardStats**](docs/AdminDashboardApi.md#dashboardstats) | **GET** /admin/dashboard | Get dashboard statistics
65
66
  *AdminPlayersApi* | [**getPlayer**](docs/AdminPlayersApi.md#getplayer) | **GET** /admin/player/{uuid} | Get player detail
66
67
  *AdminPlayersApi* | [**listPlayers**](docs/AdminPlayersApi.md#listplayers) | **GET** /admin/player | List players
@@ -95,6 +96,7 @@ Class | Method | HTTP request | Description
95
96
  - [AdminApplyPunishmentResult](docs/AdminApplyPunishmentResult.md)
96
97
  - [AdminClientCredentialResponse](docs/AdminClientCredentialResponse.md)
97
98
  - [AdminConnectionBypassResponse](docs/AdminConnectionBypassResponse.md)
99
+ - [AdminConnectionCheckResult](docs/AdminConnectionCheckResult.md)
98
100
  - [AdminCreatePunishmentDraftRequest](docs/AdminCreatePunishmentDraftRequest.md)
99
101
  - [AdminDashboardConnectionResponse](docs/AdminDashboardConnectionResponse.md)
100
102
  - [AdminGetDashboardStats](docs/AdminGetDashboardStats.md)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
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 - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 2.9.1
7
+ * The version of the OpenAPI document: 3.0.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -165,6 +165,23 @@ export interface AdminConnectionBypassResponse {
165
165
  */
166
166
  'createdAt'?: string;
167
167
  }
168
+ /**
169
+ * Result from a single VPN detection service for a given IP address
170
+ */
171
+ export interface AdminConnectionCheckResult {
172
+ /**
173
+ * Service identifier
174
+ */
175
+ 'service'?: string;
176
+ /**
177
+ * Whether this service flagged the IP as a VPN, proxy, or Tor exit node
178
+ */
179
+ 'result'?: boolean;
180
+ /**
181
+ * When this check was last performed
182
+ */
183
+ 'checkedAt'?: string;
184
+ }
168
185
  /**
169
186
  * Request to evaluate the impact of a punishment across one or more targets before applying
170
187
  */
@@ -214,6 +231,10 @@ export interface AdminDashboardConnectionResponse {
214
231
  'lastSeen'?: string | null;
215
232
  'percentPositive': number;
216
233
  'numberOfChecks': number;
234
+ /**
235
+ * Results from each VPN detection service for this IP address
236
+ */
237
+ 'results'?: Array<AdminConnectionCheckResult>;
217
238
  }
218
239
  export interface AdminGetDashboardStats {
219
240
  'totalPlayers': number;
@@ -558,24 +579,31 @@ export interface ConnectionGetConnectionDetailsResponse {
558
579
  */
559
580
  'ipAddress'?: string;
560
581
  /**
561
- * Approximate geographic location of the IP address, typically in \'City, Country\' format. Returns \'Local, N/A\' for localhost or private IPs.
582
+ * Approximate geographic location of the IP address. Returns \'Local, N/A\' for localhost or private IPs.
562
583
  */
563
584
  'approximateLocation'?: string;
564
585
  /**
565
- * Confidence score representing the percentage of VPN detection services that flagged this IP as suspicious. Range: 0.0 (clean) to 100.0 (definitely VPN/proxy). Values above 50.0 suggest high probability of VPN usage.
586
+ * Confidence score representing the percentage of VPN detection services that flagged this IP as suspicious. Range: 0.0 (clean) to 100.0 (definitely VPN/proxy).
566
587
  */
567
588
  'percentPositive'?: number;
568
589
  /**
569
- * Total number of VPN detection services successfully queried during the last check. Higher numbers indicate more comprehensive analysis.
590
+ * Total number of VPN detection services successfully queried during the last check.
570
591
  */
571
592
  'numberOfChecks'?: number;
572
- 'bypassed'?: boolean;
573
593
  /**
574
- * Expiration timestamp for the bypass (ISO-8601 format). After this time, normal VPN detection rules will apply again. Null if not bypassed or bypass is permanent.
594
+ * Indicates if this IP address has been administratively bypassed.
595
+ */
596
+ 'isBypassed'?: boolean;
597
+ /**
598
+ * Expiration timestamp for the bypass (ISO-8601 format). Null if not bypassed or bypass is permanent.
575
599
  */
576
600
  'bypassedUntil'?: string | null;
577
601
  /**
578
- * Player information associated with this connection. Only populated when \'associate_uuid\' query parameter is provided. Contains first join status and login history.
602
+ * Results from each VPN detection service that checked this IP address
603
+ */
604
+ 'results'?: Array<AdminConnectionCheckResult>;
605
+ /**
606
+ * Player information associated with this connection. Only populated when \'associate_uuid\' query parameter is provided.
579
607
  */
580
608
  'playerInformation'?: PlayerGetPlayerInformation | null;
581
609
  /**
@@ -601,19 +629,19 @@ export interface CreateBypassRequest {
601
629
  */
602
630
  export interface PlayerGetPlayerInformation {
603
631
  /**
604
- * Timestamp of when the player first connected to the server (ISO-8601 format).
632
+ * Indicates whether this is the player\'s first time joining the server.
605
633
  */
606
- 'firstLogin'?: string;
634
+ 'firstJoin'?: boolean;
607
635
  /**
608
- * Indicates whether this is the player\'s first time joining the server. Useful for triggering welcome messages, tutorials, or first-join rewards.
636
+ * Timestamp of when the player first connected to the server (ISO-8601 format).
609
637
  */
610
- 'firstJoin'?: boolean;
638
+ 'firstLogin'?: string;
611
639
  /**
612
- * Raw punishment score calculated as: SUM((base_weight × severity/10)) where base_weight is 0.10 for WARNING, 0.30 for MUTE, 0.50 for BAN. Severity ranges 1-10. Used for tracking overall punishment severity.
640
+ * Raw punishment score calculated as: SUM((base_weight × severity/10)). Used for tracking overall punishment severity.
613
641
  */
614
642
  'punishmentPointsRaw'?: number;
615
643
  /**
616
- * Punishment score as a percentage (0-100). When this score is >100% BEFORE applying a new punishment, the new punishment should be made permanent. Check this value BEFORE issuing punishment, not after. Calculated as raw_score × 100.
644
+ * Punishment score as a percentage (0-100). When >100% before applying a new punishment, the new punishment should be made permanent.
617
645
  */
618
646
  'punishmentPointsPercent'?: number;
619
647
  }
@@ -1447,6 +1475,48 @@ export const AdminConnectionsApiAxiosParamCreator = function (configuration?: Co
1447
1475
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1448
1476
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1449
1477
 
1478
+ return {
1479
+ url: toPathString(localVarUrlObj),
1480
+ options: localVarRequestOptions,
1481
+ };
1482
+ },
1483
+ /**
1484
+ * Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
1485
+ * @summary Refresh a single VPN check
1486
+ * @param {number} connectionId
1487
+ * @param {string} service
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ */
1491
+ recheckService: async (connectionId: number, service: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1492
+ // verify required parameter 'connectionId' is not null or undefined
1493
+ assertParamExists('recheckService', 'connectionId', connectionId)
1494
+ // verify required parameter 'service' is not null or undefined
1495
+ assertParamExists('recheckService', 'service', service)
1496
+ const localVarPath = `/admin/connection/{connectionId}/recheck/{service}`
1497
+ .replace(`{${"connectionId"}}`, encodeURIComponent(String(connectionId)))
1498
+ .replace(`{${"service"}}`, encodeURIComponent(String(service)));
1499
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1500
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1501
+ let baseOptions;
1502
+ if (configuration) {
1503
+ baseOptions = configuration.baseOptions;
1504
+ }
1505
+
1506
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1507
+ const localVarHeaderParameter = {} as any;
1508
+ const localVarQueryParameter = {} as any;
1509
+
1510
+ // authentication DiscordAuth required
1511
+ // http bearer authentication required
1512
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1513
+
1514
+ localVarHeaderParameter['Accept'] = 'application/json';
1515
+
1516
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1518
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1519
+
1450
1520
  return {
1451
1521
  url: toPathString(localVarUrlObj),
1452
1522
  options: localVarRequestOptions,
@@ -1510,6 +1580,20 @@ export const AdminConnectionsApiFp = function(configuration?: Configuration) {
1510
1580
  const localVarOperationServerBasePath = operationServerMap['AdminConnectionsApi.listConnections']?.[localVarOperationServerIndex]?.url;
1511
1581
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1512
1582
  },
1583
+ /**
1584
+ * Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
1585
+ * @summary Refresh a single VPN check
1586
+ * @param {number} connectionId
1587
+ * @param {string} service
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ */
1591
+ async recheckService(connectionId: number, service: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminConnectionCheckResult>> {
1592
+ const localVarAxiosArgs = await localVarAxiosParamCreator.recheckService(connectionId, service, options);
1593
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1594
+ const localVarOperationServerBasePath = operationServerMap['AdminConnectionsApi.recheckService']?.[localVarOperationServerIndex]?.url;
1595
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1596
+ },
1513
1597
  }
1514
1598
  };
1515
1599
 
@@ -1559,6 +1643,17 @@ export const AdminConnectionsApiFactory = function (configuration?: Configuratio
1559
1643
  listConnections(createdAfter?: number | null, createdBefore?: number | null, ipAddress?: string | null, uuid?: string | null, isVpn?: boolean | null, page?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminDashboardConnectionResponse>> {
1560
1644
  return localVarFp.listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(axios, basePath));
1561
1645
  },
1646
+ /**
1647
+ * Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
1648
+ * @summary Refresh a single VPN check
1649
+ * @param {number} connectionId
1650
+ * @param {string} service
1651
+ * @param {*} [options] Override http request option.
1652
+ * @throws {RequiredError}
1653
+ */
1654
+ recheckService(connectionId: number, service: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminConnectionCheckResult> {
1655
+ return localVarFp.recheckService(connectionId, service, options).then((request) => request(axios, basePath));
1656
+ },
1562
1657
  };
1563
1658
  };
1564
1659
 
@@ -1608,6 +1703,18 @@ export class AdminConnectionsApi extends BaseAPI {
1608
1703
  public listConnections(createdAfter?: number | null, createdBefore?: number | null, ipAddress?: string | null, uuid?: string | null, isVpn?: boolean | null, page?: number | null, limit?: number | null, options?: RawAxiosRequestConfig) {
1609
1704
  return AdminConnectionsApiFp(this.configuration).listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(this.axios, this.basePath));
1610
1705
  }
1706
+
1707
+ /**
1708
+ * Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
1709
+ * @summary Refresh a single VPN check
1710
+ * @param {number} connectionId
1711
+ * @param {string} service
1712
+ * @param {*} [options] Override http request option.
1713
+ * @throws {RequiredError}
1714
+ */
1715
+ public recheckService(connectionId: number, service: string, options?: RawAxiosRequestConfig) {
1716
+ return AdminConnectionsApiFp(this.configuration).recheckService(connectionId, service, options).then((request) => request(this.axios, this.basePath));
1717
+ }
1611
1718
  }
1612
1719
 
1613
1720
 
@@ -1914,7 +2021,7 @@ export class AdminPlayersApi extends BaseAPI {
1914
2021
  export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Configuration) {
1915
2022
  return {
1916
2023
  /**
1917
- * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
2024
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
1918
2025
  * @summary Apply punishment
1919
2026
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1920
2027
  * @param {*} [options] Override http request option.
@@ -1953,7 +2060,7 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
1953
2060
  };
1954
2061
  },
1955
2062
  /**
1956
- * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
2063
+ * Preview the impact of a punishment across one or more targets. No changes are made.
1957
2064
  * @summary Evaluate punishment impact
1958
2065
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1959
2066
  * @param {*} [options] Override http request option.
@@ -2070,7 +2177,7 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
2070
2177
  };
2071
2178
  },
2072
2179
  /**
2073
- * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
2180
+ * Search for players by UUID or username, or look up all players associated with an IP address.
2074
2181
  * @summary Search punishment targets
2075
2182
  * @param {string} q UUID, username, or partial/full IP address to search for
2076
2183
  * @param {*} [options] Override http request option.
@@ -2120,7 +2227,7 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
2120
2227
  const localVarAxiosParamCreator = AdminPunishmentsApiAxiosParamCreator(configuration)
2121
2228
  return {
2122
2229
  /**
2123
- * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
2230
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
2124
2231
  * @summary Apply punishment
2125
2232
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
2126
2233
  * @param {*} [options] Override http request option.
@@ -2133,7 +2240,7 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
2133
2240
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2134
2241
  },
2135
2242
  /**
2136
- * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
2243
+ * Preview the impact of a punishment across one or more targets. No changes are made.
2137
2244
  * @summary Evaluate punishment impact
2138
2245
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
2139
2246
  * @param {*} [options] Override http request option.
@@ -2166,7 +2273,7 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
2166
2273
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2167
2274
  },
2168
2275
  /**
2169
- * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
2276
+ * Search for players by UUID or username, or look up all players associated with an IP address.
2170
2277
  * @summary Search punishment targets
2171
2278
  * @param {string} q UUID, username, or partial/full IP address to search for
2172
2279
  * @param {*} [options] Override http request option.
@@ -2188,7 +2295,7 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
2188
2295
  const localVarFp = AdminPunishmentsApiFp(configuration)
2189
2296
  return {
2190
2297
  /**
2191
- * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
2298
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
2192
2299
  * @summary Apply punishment
2193
2300
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
2194
2301
  * @param {*} [options] Override http request option.
@@ -2198,7 +2305,7 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
2198
2305
  return localVarFp.applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(axios, basePath));
2199
2306
  },
2200
2307
  /**
2201
- * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
2308
+ * Preview the impact of a punishment across one or more targets. No changes are made.
2202
2309
  * @summary Evaluate punishment impact
2203
2310
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
2204
2311
  * @param {*} [options] Override http request option.
@@ -2225,7 +2332,7 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
2225
2332
  return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
2226
2333
  },
2227
2334
  /**
2228
- * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
2335
+ * Search for players by UUID or username, or look up all players associated with an IP address.
2229
2336
  * @summary Search punishment targets
2230
2337
  * @param {string} q UUID, username, or partial/full IP address to search for
2231
2338
  * @param {*} [options] Override http request option.
@@ -2242,7 +2349,7 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
2242
2349
  */
2243
2350
  export class AdminPunishmentsApi extends BaseAPI {
2244
2351
  /**
2245
- * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
2352
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
2246
2353
  * @summary Apply punishment
2247
2354
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
2248
2355
  * @param {*} [options] Override http request option.
@@ -2253,7 +2360,7 @@ export class AdminPunishmentsApi extends BaseAPI {
2253
2360
  }
2254
2361
 
2255
2362
  /**
2256
- * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
2363
+ * Preview the impact of a punishment across one or more targets. No changes are made.
2257
2364
  * @summary Evaluate punishment impact
2258
2365
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
2259
2366
  * @param {*} [options] Override http request option.
@@ -2282,7 +2389,7 @@ export class AdminPunishmentsApi extends BaseAPI {
2282
2389
  }
2283
2390
 
2284
2391
  /**
2285
- * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
2392
+ * Search for players by UUID or username, or look up all players associated with an IP address.
2286
2393
  * @summary Search punishment targets
2287
2394
  * @param {string} q UUID, username, or partial/full IP address to search for
2288
2395
  * @param {*} [options] Override http request option.
@@ -2955,9 +3062,9 @@ export class ConnectionApi extends BaseAPI {
2955
3062
  export const PlayerApiAxiosParamCreator = function (configuration?: Configuration) {
2956
3063
  return {
2957
3064
  /**
2958
- * Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
3065
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
2959
3066
  * @summary Get player information
2960
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
3067
+ * @param {string} uuid
2961
3068
  * @param {*} [options] Override http request option.
2962
3069
  * @throws {RequiredError}
2963
3070
  */
@@ -2993,9 +3100,9 @@ export const PlayerApiAxiosParamCreator = function (configuration?: Configuratio
2993
3100
  };
2994
3101
  },
2995
3102
  /**
2996
- * 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.
3103
+ * 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 are omitted from the response.
2997
3104
  * @summary Batch resolve UUIDs to usernames
2998
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
3105
+ * @param {Array<string>} uuids List of player UUIDs to resolve
2999
3106
  * @param {*} [options] Override http request option.
3000
3107
  * @throws {RequiredError}
3001
3108
  */
@@ -3043,9 +3150,9 @@ export const PlayerApiFp = function(configuration?: Configuration) {
3043
3150
  const localVarAxiosParamCreator = PlayerApiAxiosParamCreator(configuration)
3044
3151
  return {
3045
3152
  /**
3046
- * Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
3153
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
3047
3154
  * @summary Get player information
3048
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
3155
+ * @param {string} uuid
3049
3156
  * @param {*} [options] Override http request option.
3050
3157
  * @throws {RequiredError}
3051
3158
  */
@@ -3056,9 +3163,9 @@ export const PlayerApiFp = function(configuration?: Configuration) {
3056
3163
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3057
3164
  },
3058
3165
  /**
3059
- * 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.
3166
+ * 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 are omitted from the response.
3060
3167
  * @summary Batch resolve UUIDs to usernames
3061
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
3168
+ * @param {Array<string>} uuids List of player UUIDs to resolve
3062
3169
  * @param {*} [options] Override http request option.
3063
3170
  * @throws {RequiredError}
3064
3171
  */
@@ -3078,9 +3185,9 @@ export const PlayerApiFactory = function (configuration?: Configuration, basePat
3078
3185
  const localVarFp = PlayerApiFp(configuration)
3079
3186
  return {
3080
3187
  /**
3081
- * Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
3188
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
3082
3189
  * @summary Get player information
3083
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
3190
+ * @param {string} uuid
3084
3191
  * @param {*} [options] Override http request option.
3085
3192
  * @throws {RequiredError}
3086
3193
  */
@@ -3088,9 +3195,9 @@ export const PlayerApiFactory = function (configuration?: Configuration, basePat
3088
3195
  return localVarFp.getPlayer1(uuid, options).then((request) => request(axios, basePath));
3089
3196
  },
3090
3197
  /**
3091
- * 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.
3198
+ * 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 are omitted from the response.
3092
3199
  * @summary Batch resolve UUIDs to usernames
3093
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
3200
+ * @param {Array<string>} uuids List of player UUIDs to resolve
3094
3201
  * @param {*} [options] Override http request option.
3095
3202
  * @throws {RequiredError}
3096
3203
  */
@@ -3105,9 +3212,9 @@ export const PlayerApiFactory = function (configuration?: Configuration, basePat
3105
3212
  */
3106
3213
  export class PlayerApi extends BaseAPI {
3107
3214
  /**
3108
- * Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
3215
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
3109
3216
  * @summary Get player information
3110
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
3217
+ * @param {string} uuid
3111
3218
  * @param {*} [options] Override http request option.
3112
3219
  * @throws {RequiredError}
3113
3220
  */
@@ -3116,9 +3223,9 @@ export class PlayerApi extends BaseAPI {
3116
3223
  }
3117
3224
 
3118
3225
  /**
3119
- * 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.
3226
+ * 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 are omitted from the response.
3120
3227
  * @summary Batch resolve UUIDs to usernames
3121
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
3228
+ * @param {Array<string>} uuids List of player UUIDs to resolve
3122
3229
  * @param {*} [options] Override http request option.
3123
3230
  * @throws {RequiredError}
3124
3231
  */
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
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 - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 2.9.1
7
+ * The version of the OpenAPI document: 3.0.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
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 - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 2.9.1
7
+ * The version of the OpenAPI document: 3.0.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Reborn API
4
4
  * 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 - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
5
5
  *
6
- * The version of the OpenAPI document: 2.9.1
6
+ * The version of the OpenAPI document: 3.0.1
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).