@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
@@ -0,0 +1,1567 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from './base';
29
+ /**
30
+ * AdminClientCredentialsApi - axios parameter creator
31
+ */
32
+ export const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Temporarily disables a client credential, preventing authentication. Can be re-enabled later.
36
+ * @summary Disable client credentials
37
+ * @param {number} id Client credential ID
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ disableClient: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
42
+ // verify required parameter 'id' is not null or undefined
43
+ assertParamExists('disableClient', 'id', id);
44
+ const localVarPath = `/admin/client/{id}/disable`
45
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication CognitoAuth required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
61
+ return {
62
+ url: toPathString(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ }),
66
+ /**
67
+ * Re-enables a previously disabled client credential, allowing authentication.
68
+ * @summary Enable client credentials
69
+ * @param {number} id Client credential ID
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ enableClient: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
74
+ // verify required parameter 'id' is not null or undefined
75
+ assertParamExists('enableClient', 'id', id);
76
+ const localVarPath = `/admin/client/{id}/enable`
77
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
85
+ const localVarHeaderParameter = {};
86
+ const localVarQueryParameter = {};
87
+ // authentication CognitoAuth required
88
+ // http bearer authentication required
89
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
90
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
91
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
92
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions,
96
+ };
97
+ }),
98
+ /**
99
+ * Creates a new API client with credentials for authentication. Returns the client ID and secret (only shown once).
100
+ * @summary Generate new client credentials
101
+ * @param {ClientCredentialRequest} clientCredentialRequest
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ generateClientCredentials: (clientCredentialRequest_1, ...args_1) => __awaiter(this, [clientCredentialRequest_1, ...args_1], void 0, function* (clientCredentialRequest, options = {}) {
106
+ // verify required parameter 'clientCredentialRequest' is not null or undefined
107
+ assertParamExists('generateClientCredentials', 'clientCredentialRequest', clientCredentialRequest);
108
+ const localVarPath = `/admin/client/generate`;
109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
111
+ let baseOptions;
112
+ if (configuration) {
113
+ baseOptions = configuration.baseOptions;
114
+ }
115
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
116
+ const localVarHeaderParameter = {};
117
+ const localVarQueryParameter = {};
118
+ // authentication CognitoAuth required
119
+ // http bearer authentication required
120
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
121
+ localVarHeaderParameter['Content-Type'] = 'application/json';
122
+ localVarHeaderParameter['Accept'] = 'application/json';
123
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
124
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
126
+ localVarRequestOptions.data = serializeDataIfNeeded(clientCredentialRequest, localVarRequestOptions, configuration);
127
+ return {
128
+ url: toPathString(localVarUrlObj),
129
+ options: localVarRequestOptions,
130
+ };
131
+ }),
132
+ /**
133
+ * Returns all client credentials. **Client secrets are never returned** from this endpoint.
134
+ * @summary List client credentials
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ listClients: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
139
+ const localVarPath = `/admin/client`;
140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
141
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
142
+ let baseOptions;
143
+ if (configuration) {
144
+ baseOptions = configuration.baseOptions;
145
+ }
146
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
147
+ const localVarHeaderParameter = {};
148
+ const localVarQueryParameter = {};
149
+ // authentication CognitoAuth required
150
+ // http bearer authentication required
151
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
152
+ localVarHeaderParameter['Accept'] = 'application/json';
153
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
155
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
156
+ return {
157
+ url: toPathString(localVarUrlObj),
158
+ options: localVarRequestOptions,
159
+ };
160
+ }),
161
+ /**
162
+ * Permanently deletes a client credential from the database, revoking all access.
163
+ * @summary Revoke client credentials
164
+ * @param {number} id Client credential ID
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ revokeToken: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
169
+ // verify required parameter 'id' is not null or undefined
170
+ assertParamExists('revokeToken', 'id', id);
171
+ const localVarPath = `/admin/client/{id}`
172
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
173
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
174
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
175
+ let baseOptions;
176
+ if (configuration) {
177
+ baseOptions = configuration.baseOptions;
178
+ }
179
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
180
+ const localVarHeaderParameter = {};
181
+ const localVarQueryParameter = {};
182
+ // authentication CognitoAuth required
183
+ // http bearer authentication required
184
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ return {
189
+ url: toPathString(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ }),
193
+ /**
194
+ * Generates new client ID and secret for an existing client. The old credentials will no longer work. Returns the new credentials (secret only shown once).
195
+ * @summary Rotate client credentials
196
+ * @param {number} id Client credential ID
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ rotateToken: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
201
+ // verify required parameter 'id' is not null or undefined
202
+ assertParamExists('rotateToken', 'id', id);
203
+ const localVarPath = `/admin/client/{id}/rotate`
204
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
+ let baseOptions;
208
+ if (configuration) {
209
+ baseOptions = configuration.baseOptions;
210
+ }
211
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
212
+ const localVarHeaderParameter = {};
213
+ const localVarQueryParameter = {};
214
+ // authentication CognitoAuth required
215
+ // http bearer authentication required
216
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
217
+ localVarHeaderParameter['Accept'] = 'application/json';
218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
221
+ return {
222
+ url: toPathString(localVarUrlObj),
223
+ options: localVarRequestOptions,
224
+ };
225
+ }),
226
+ /**
227
+ * Updates the name and/or description of a client credential. Does not affect the actual credentials.
228
+ * @summary Update client metadata
229
+ * @param {number} id Client credential ID
230
+ * @param {UpdateClientRequest} updateClientRequest
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ updateClient: (id_1, updateClientRequest_1, ...args_1) => __awaiter(this, [id_1, updateClientRequest_1, ...args_1], void 0, function* (id, updateClientRequest, options = {}) {
235
+ // verify required parameter 'id' is not null or undefined
236
+ assertParamExists('updateClient', 'id', id);
237
+ // verify required parameter 'updateClientRequest' is not null or undefined
238
+ assertParamExists('updateClient', 'updateClientRequest', updateClientRequest);
239
+ const localVarPath = `/admin/client/{id}`
240
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ }
247
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
248
+ const localVarHeaderParameter = {};
249
+ const localVarQueryParameter = {};
250
+ // authentication CognitoAuth required
251
+ // http bearer authentication required
252
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
253
+ localVarHeaderParameter['Content-Type'] = 'application/json';
254
+ localVarHeaderParameter['Accept'] = 'application/json';
255
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
256
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
257
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
258
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClientRequest, localVarRequestOptions, configuration);
259
+ return {
260
+ url: toPathString(localVarUrlObj),
261
+ options: localVarRequestOptions,
262
+ };
263
+ }),
264
+ };
265
+ };
266
+ /**
267
+ * AdminClientCredentialsApi - functional programming interface
268
+ */
269
+ export const AdminClientCredentialsApiFp = function (configuration) {
270
+ const localVarAxiosParamCreator = AdminClientCredentialsApiAxiosParamCreator(configuration);
271
+ return {
272
+ /**
273
+ * Temporarily disables a client credential, preventing authentication. Can be re-enabled later.
274
+ * @summary Disable client credentials
275
+ * @param {number} id Client credential ID
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ disableClient(id, options) {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ var _a, _b, _c;
282
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disableClient(id, options);
283
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
284
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClientCredentialsApi.disableClient']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
285
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
286
+ });
287
+ },
288
+ /**
289
+ * Re-enables a previously disabled client credential, allowing authentication.
290
+ * @summary Enable client credentials
291
+ * @param {number} id Client credential ID
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ */
295
+ enableClient(id, options) {
296
+ return __awaiter(this, void 0, void 0, function* () {
297
+ var _a, _b, _c;
298
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enableClient(id, options);
299
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
300
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClientCredentialsApi.enableClient']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
301
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
302
+ });
303
+ },
304
+ /**
305
+ * Creates a new API client with credentials for authentication. Returns the client ID and secret (only shown once).
306
+ * @summary Generate new client credentials
307
+ * @param {ClientCredentialRequest} clientCredentialRequest
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ generateClientCredentials(clientCredentialRequest, options) {
312
+ return __awaiter(this, void 0, void 0, function* () {
313
+ var _a, _b, _c;
314
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateClientCredentials(clientCredentialRequest, options);
315
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
316
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClientCredentialsApi.generateClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
317
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
318
+ });
319
+ },
320
+ /**
321
+ * Returns all client credentials. **Client secrets are never returned** from this endpoint.
322
+ * @summary List client credentials
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ listClients(options) {
327
+ return __awaiter(this, void 0, void 0, function* () {
328
+ var _a, _b, _c;
329
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(options);
330
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
331
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClientCredentialsApi.listClients']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
332
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
333
+ });
334
+ },
335
+ /**
336
+ * Permanently deletes a client credential from the database, revoking all access.
337
+ * @summary Revoke client credentials
338
+ * @param {number} id Client credential ID
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ revokeToken(id, options) {
343
+ return __awaiter(this, void 0, void 0, function* () {
344
+ var _a, _b, _c;
345
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.revokeToken(id, options);
346
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
347
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClientCredentialsApi.revokeToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
348
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
349
+ });
350
+ },
351
+ /**
352
+ * Generates new client ID and secret for an existing client. The old credentials will no longer work. Returns the new credentials (secret only shown once).
353
+ * @summary Rotate client credentials
354
+ * @param {number} id Client credential ID
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ rotateToken(id, options) {
359
+ return __awaiter(this, void 0, void 0, function* () {
360
+ var _a, _b, _c;
361
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rotateToken(id, options);
362
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
363
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClientCredentialsApi.rotateToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
364
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
365
+ });
366
+ },
367
+ /**
368
+ * Updates the name and/or description of a client credential. Does not affect the actual credentials.
369
+ * @summary Update client metadata
370
+ * @param {number} id Client credential ID
371
+ * @param {UpdateClientRequest} updateClientRequest
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ updateClient(id, updateClientRequest, options) {
376
+ return __awaiter(this, void 0, void 0, function* () {
377
+ var _a, _b, _c;
378
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClient(id, updateClientRequest, options);
379
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
380
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClientCredentialsApi.updateClient']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
381
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
382
+ });
383
+ },
384
+ };
385
+ };
386
+ /**
387
+ * AdminClientCredentialsApi - factory interface
388
+ */
389
+ export const AdminClientCredentialsApiFactory = function (configuration, basePath, axios) {
390
+ const localVarFp = AdminClientCredentialsApiFp(configuration);
391
+ return {
392
+ /**
393
+ * Temporarily disables a client credential, preventing authentication. Can be re-enabled later.
394
+ * @summary Disable client credentials
395
+ * @param {number} id Client credential ID
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ disableClient(id, options) {
400
+ return localVarFp.disableClient(id, options).then((request) => request(axios, basePath));
401
+ },
402
+ /**
403
+ * Re-enables a previously disabled client credential, allowing authentication.
404
+ * @summary Enable client credentials
405
+ * @param {number} id Client credential ID
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ enableClient(id, options) {
410
+ return localVarFp.enableClient(id, options).then((request) => request(axios, basePath));
411
+ },
412
+ /**
413
+ * Creates a new API client with credentials for authentication. Returns the client ID and secret (only shown once).
414
+ * @summary Generate new client credentials
415
+ * @param {ClientCredentialRequest} clientCredentialRequest
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ generateClientCredentials(clientCredentialRequest, options) {
420
+ return localVarFp.generateClientCredentials(clientCredentialRequest, options).then((request) => request(axios, basePath));
421
+ },
422
+ /**
423
+ * Returns all client credentials. **Client secrets are never returned** from this endpoint.
424
+ * @summary List client credentials
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ listClients(options) {
429
+ return localVarFp.listClients(options).then((request) => request(axios, basePath));
430
+ },
431
+ /**
432
+ * Permanently deletes a client credential from the database, revoking all access.
433
+ * @summary Revoke client credentials
434
+ * @param {number} id Client credential ID
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ revokeToken(id, options) {
439
+ return localVarFp.revokeToken(id, options).then((request) => request(axios, basePath));
440
+ },
441
+ /**
442
+ * Generates new client ID and secret for an existing client. The old credentials will no longer work. Returns the new credentials (secret only shown once).
443
+ * @summary Rotate client credentials
444
+ * @param {number} id Client credential ID
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ rotateToken(id, options) {
449
+ return localVarFp.rotateToken(id, options).then((request) => request(axios, basePath));
450
+ },
451
+ /**
452
+ * Updates the name and/or description of a client credential. Does not affect the actual credentials.
453
+ * @summary Update client metadata
454
+ * @param {number} id Client credential ID
455
+ * @param {UpdateClientRequest} updateClientRequest
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ */
459
+ updateClient(id, updateClientRequest, options) {
460
+ return localVarFp.updateClient(id, updateClientRequest, options).then((request) => request(axios, basePath));
461
+ },
462
+ };
463
+ };
464
+ /**
465
+ * AdminClientCredentialsApi - object-oriented interface
466
+ */
467
+ export class AdminClientCredentialsApi extends BaseAPI {
468
+ /**
469
+ * Temporarily disables a client credential, preventing authentication. Can be re-enabled later.
470
+ * @summary Disable client credentials
471
+ * @param {number} id Client credential ID
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ disableClient(id, options) {
476
+ return AdminClientCredentialsApiFp(this.configuration).disableClient(id, options).then((request) => request(this.axios, this.basePath));
477
+ }
478
+ /**
479
+ * Re-enables a previously disabled client credential, allowing authentication.
480
+ * @summary Enable client credentials
481
+ * @param {number} id Client credential ID
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ enableClient(id, options) {
486
+ return AdminClientCredentialsApiFp(this.configuration).enableClient(id, options).then((request) => request(this.axios, this.basePath));
487
+ }
488
+ /**
489
+ * Creates a new API client with credentials for authentication. Returns the client ID and secret (only shown once).
490
+ * @summary Generate new client credentials
491
+ * @param {ClientCredentialRequest} clientCredentialRequest
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ */
495
+ generateClientCredentials(clientCredentialRequest, options) {
496
+ return AdminClientCredentialsApiFp(this.configuration).generateClientCredentials(clientCredentialRequest, options).then((request) => request(this.axios, this.basePath));
497
+ }
498
+ /**
499
+ * Returns all client credentials. **Client secrets are never returned** from this endpoint.
500
+ * @summary List client credentials
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ listClients(options) {
505
+ return AdminClientCredentialsApiFp(this.configuration).listClients(options).then((request) => request(this.axios, this.basePath));
506
+ }
507
+ /**
508
+ * Permanently deletes a client credential from the database, revoking all access.
509
+ * @summary Revoke client credentials
510
+ * @param {number} id Client credential ID
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ revokeToken(id, options) {
515
+ return AdminClientCredentialsApiFp(this.configuration).revokeToken(id, options).then((request) => request(this.axios, this.basePath));
516
+ }
517
+ /**
518
+ * Generates new client ID and secret for an existing client. The old credentials will no longer work. Returns the new credentials (secret only shown once).
519
+ * @summary Rotate client credentials
520
+ * @param {number} id Client credential ID
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ rotateToken(id, options) {
525
+ return AdminClientCredentialsApiFp(this.configuration).rotateToken(id, options).then((request) => request(this.axios, this.basePath));
526
+ }
527
+ /**
528
+ * Updates the name and/or description of a client credential. Does not affect the actual credentials.
529
+ * @summary Update client metadata
530
+ * @param {number} id Client credential ID
531
+ * @param {UpdateClientRequest} updateClientRequest
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ */
535
+ updateClient(id, updateClientRequest, options) {
536
+ return AdminClientCredentialsApiFp(this.configuration).updateClient(id, updateClientRequest, options).then((request) => request(this.axios, this.basePath));
537
+ }
538
+ }
539
+ /**
540
+ * AdminConnectionsApi - axios parameter creator
541
+ */
542
+ export const AdminConnectionsApiAxiosParamCreator = function (configuration) {
543
+ return {
544
+ /**
545
+ * Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
546
+ * @summary Create connection bypass
547
+ * @param {CreateBypassRequest} createBypassRequest
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ createBypass: (createBypassRequest_1, ...args_1) => __awaiter(this, [createBypassRequest_1, ...args_1], void 0, function* (createBypassRequest, options = {}) {
552
+ // verify required parameter 'createBypassRequest' is not null or undefined
553
+ assertParamExists('createBypass', 'createBypassRequest', createBypassRequest);
554
+ const localVarPath = `/admin/connection/bypass`;
555
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
556
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
557
+ let baseOptions;
558
+ if (configuration) {
559
+ baseOptions = configuration.baseOptions;
560
+ }
561
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
562
+ const localVarHeaderParameter = {};
563
+ const localVarQueryParameter = {};
564
+ // authentication CognitoAuth required
565
+ // http bearer authentication required
566
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
567
+ localVarHeaderParameter['Content-Type'] = 'application/json';
568
+ localVarHeaderParameter['Accept'] = 'application/json';
569
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
570
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
571
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
572
+ localVarRequestOptions.data = serializeDataIfNeeded(createBypassRequest, localVarRequestOptions, configuration);
573
+ return {
574
+ url: toPathString(localVarUrlObj),
575
+ options: localVarRequestOptions,
576
+ };
577
+ }),
578
+ /**
579
+ * Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
580
+ * @summary List recent connections
581
+ * @param {number | null} [createdAfter] Filter connections after this epoch timestamp in milliseconds
582
+ * @param {number | null} [createdBefore] Filter connections before this epoch timestamp in milliseconds
583
+ * @param {string | null} [ipAddress] Filter by IP address
584
+ * @param {string | null} [uuid] Filter by player UUID
585
+ * @param {boolean | null} [isVpn] Filter by VPN status (true=VPN, false=not VPN)
586
+ * @param {number | null} [page] Page number for pagination
587
+ * @param {number | null} [limit] Maximum number of records to return
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ listConnections: (createdAfter_1, createdBefore_1, ipAddress_1, uuid_1, isVpn_1, page_1, limit_1, ...args_1) => __awaiter(this, [createdAfter_1, createdBefore_1, ipAddress_1, uuid_1, isVpn_1, page_1, limit_1, ...args_1], void 0, function* (createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options = {}) {
592
+ const localVarPath = `/admin/connection/recent`;
593
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
594
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
595
+ let baseOptions;
596
+ if (configuration) {
597
+ baseOptions = configuration.baseOptions;
598
+ }
599
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
600
+ const localVarHeaderParameter = {};
601
+ const localVarQueryParameter = {};
602
+ // authentication CognitoAuth required
603
+ // http bearer authentication required
604
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
605
+ if (createdAfter !== undefined) {
606
+ localVarQueryParameter['createdAfter'] = createdAfter;
607
+ }
608
+ if (createdBefore !== undefined) {
609
+ localVarQueryParameter['createdBefore'] = createdBefore;
610
+ }
611
+ if (ipAddress !== undefined) {
612
+ localVarQueryParameter['ipAddress'] = ipAddress;
613
+ }
614
+ if (uuid !== undefined) {
615
+ localVarQueryParameter['uuid'] = uuid;
616
+ }
617
+ if (isVpn !== undefined) {
618
+ localVarQueryParameter['isVpn'] = isVpn;
619
+ }
620
+ if (page !== undefined) {
621
+ localVarQueryParameter['page'] = page;
622
+ }
623
+ if (limit !== undefined) {
624
+ localVarQueryParameter['limit'] = limit;
625
+ }
626
+ localVarHeaderParameter['Accept'] = 'application/json';
627
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
628
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
629
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
630
+ return {
631
+ url: toPathString(localVarUrlObj),
632
+ options: localVarRequestOptions,
633
+ };
634
+ }),
635
+ };
636
+ };
637
+ /**
638
+ * AdminConnectionsApi - functional programming interface
639
+ */
640
+ export const AdminConnectionsApiFp = function (configuration) {
641
+ const localVarAxiosParamCreator = AdminConnectionsApiAxiosParamCreator(configuration);
642
+ return {
643
+ /**
644
+ * Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
645
+ * @summary Create connection bypass
646
+ * @param {CreateBypassRequest} createBypassRequest
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ createBypass(createBypassRequest, options) {
651
+ return __awaiter(this, void 0, void 0, function* () {
652
+ var _a, _b, _c;
653
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createBypass(createBypassRequest, options);
654
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
655
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectionsApi.createBypass']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
656
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
657
+ });
658
+ },
659
+ /**
660
+ * Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
661
+ * @summary List recent connections
662
+ * @param {number | null} [createdAfter] Filter connections after this epoch timestamp in milliseconds
663
+ * @param {number | null} [createdBefore] Filter connections before this epoch timestamp in milliseconds
664
+ * @param {string | null} [ipAddress] Filter by IP address
665
+ * @param {string | null} [uuid] Filter by player UUID
666
+ * @param {boolean | null} [isVpn] Filter by VPN status (true=VPN, false=not VPN)
667
+ * @param {number | null} [page] Page number for pagination
668
+ * @param {number | null} [limit] Maximum number of records to return
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options) {
673
+ return __awaiter(this, void 0, void 0, function* () {
674
+ var _a, _b, _c;
675
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options);
676
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
677
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectionsApi.listConnections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
678
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
679
+ });
680
+ },
681
+ };
682
+ };
683
+ /**
684
+ * AdminConnectionsApi - factory interface
685
+ */
686
+ export const AdminConnectionsApiFactory = function (configuration, basePath, axios) {
687
+ const localVarFp = AdminConnectionsApiFp(configuration);
688
+ return {
689
+ /**
690
+ * Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
691
+ * @summary Create connection bypass
692
+ * @param {CreateBypassRequest} createBypassRequest
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ */
696
+ createBypass(createBypassRequest, options) {
697
+ return localVarFp.createBypass(createBypassRequest, options).then((request) => request(axios, basePath));
698
+ },
699
+ /**
700
+ * Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
701
+ * @summary List recent connections
702
+ * @param {number | null} [createdAfter] Filter connections after this epoch timestamp in milliseconds
703
+ * @param {number | null} [createdBefore] Filter connections before this epoch timestamp in milliseconds
704
+ * @param {string | null} [ipAddress] Filter by IP address
705
+ * @param {string | null} [uuid] Filter by player UUID
706
+ * @param {boolean | null} [isVpn] Filter by VPN status (true=VPN, false=not VPN)
707
+ * @param {number | null} [page] Page number for pagination
708
+ * @param {number | null} [limit] Maximum number of records to return
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options) {
713
+ return localVarFp.listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(axios, basePath));
714
+ },
715
+ };
716
+ };
717
+ /**
718
+ * AdminConnectionsApi - object-oriented interface
719
+ */
720
+ export class AdminConnectionsApi extends BaseAPI {
721
+ /**
722
+ * Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
723
+ * @summary Create connection bypass
724
+ * @param {CreateBypassRequest} createBypassRequest
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ createBypass(createBypassRequest, options) {
729
+ return AdminConnectionsApiFp(this.configuration).createBypass(createBypassRequest, options).then((request) => request(this.axios, this.basePath));
730
+ }
731
+ /**
732
+ * Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
733
+ * @summary List recent connections
734
+ * @param {number | null} [createdAfter] Filter connections after this epoch timestamp in milliseconds
735
+ * @param {number | null} [createdBefore] Filter connections before this epoch timestamp in milliseconds
736
+ * @param {string | null} [ipAddress] Filter by IP address
737
+ * @param {string | null} [uuid] Filter by player UUID
738
+ * @param {boolean | null} [isVpn] Filter by VPN status (true=VPN, false=not VPN)
739
+ * @param {number | null} [page] Page number for pagination
740
+ * @param {number | null} [limit] Maximum number of records to return
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ */
744
+ listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options) {
745
+ return AdminConnectionsApiFp(this.configuration).listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(this.axios, this.basePath));
746
+ }
747
+ }
748
+ /**
749
+ * AdminDashboardApi - axios parameter creator
750
+ */
751
+ export const AdminDashboardApiAxiosParamCreator = function (configuration) {
752
+ return {
753
+ /**
754
+ * Returns aggregate counts for clients, connections, and players in the system.
755
+ * @summary Get dashboard statistics
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ */
759
+ dashboardStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
760
+ const localVarPath = `/admin/dashboard`;
761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
763
+ let baseOptions;
764
+ if (configuration) {
765
+ baseOptions = configuration.baseOptions;
766
+ }
767
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
768
+ const localVarHeaderParameter = {};
769
+ const localVarQueryParameter = {};
770
+ // authentication CognitoAuth required
771
+ // http bearer authentication required
772
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
773
+ localVarHeaderParameter['Accept'] = 'application/json';
774
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
775
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
776
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
777
+ return {
778
+ url: toPathString(localVarUrlObj),
779
+ options: localVarRequestOptions,
780
+ };
781
+ }),
782
+ };
783
+ };
784
+ /**
785
+ * AdminDashboardApi - functional programming interface
786
+ */
787
+ export const AdminDashboardApiFp = function (configuration) {
788
+ const localVarAxiosParamCreator = AdminDashboardApiAxiosParamCreator(configuration);
789
+ return {
790
+ /**
791
+ * Returns aggregate counts for clients, connections, and players in the system.
792
+ * @summary Get dashboard statistics
793
+ * @param {*} [options] Override http request option.
794
+ * @throws {RequiredError}
795
+ */
796
+ dashboardStats(options) {
797
+ return __awaiter(this, void 0, void 0, function* () {
798
+ var _a, _b, _c;
799
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dashboardStats(options);
800
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
801
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminDashboardApi.dashboardStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
802
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
803
+ });
804
+ },
805
+ };
806
+ };
807
+ /**
808
+ * AdminDashboardApi - factory interface
809
+ */
810
+ export const AdminDashboardApiFactory = function (configuration, basePath, axios) {
811
+ const localVarFp = AdminDashboardApiFp(configuration);
812
+ return {
813
+ /**
814
+ * Returns aggregate counts for clients, connections, and players in the system.
815
+ * @summary Get dashboard statistics
816
+ * @param {*} [options] Override http request option.
817
+ * @throws {RequiredError}
818
+ */
819
+ dashboardStats(options) {
820
+ return localVarFp.dashboardStats(options).then((request) => request(axios, basePath));
821
+ },
822
+ };
823
+ };
824
+ /**
825
+ * AdminDashboardApi - object-oriented interface
826
+ */
827
+ export class AdminDashboardApi extends BaseAPI {
828
+ /**
829
+ * Returns aggregate counts for clients, connections, and players in the system.
830
+ * @summary Get dashboard statistics
831
+ * @param {*} [options] Override http request option.
832
+ * @throws {RequiredError}
833
+ */
834
+ dashboardStats(options) {
835
+ return AdminDashboardApiFp(this.configuration).dashboardStats(options).then((request) => request(this.axios, this.basePath));
836
+ }
837
+ }
838
+ /**
839
+ * ConnectionApi - axios parameter creator
840
+ */
841
+ export const ConnectionApiAxiosParamCreator = function (configuration) {
842
+ return {
843
+ /**
844
+ * Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
845
+ * @summary Check Connection and Detect VPN/Proxy
846
+ * @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
847
+ * @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
848
+ * @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ getConnectionDetails: (ip_1, forceRecheck_1, associateUuid_1, ...args_1) => __awaiter(this, [ip_1, forceRecheck_1, associateUuid_1, ...args_1], void 0, function* (ip, forceRecheck, associateUuid, options = {}) {
853
+ // verify required parameter 'ip' is not null or undefined
854
+ assertParamExists('getConnectionDetails', 'ip', ip);
855
+ // verify required parameter 'forceRecheck' is not null or undefined
856
+ assertParamExists('getConnectionDetails', 'forceRecheck', forceRecheck);
857
+ const localVarPath = `/v1/connection/get-connection-details/{ip}`
858
+ .replace(`{${"ip"}}`, encodeURIComponent(String(ip)));
859
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
860
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
861
+ let baseOptions;
862
+ if (configuration) {
863
+ baseOptions = configuration.baseOptions;
864
+ }
865
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
866
+ const localVarHeaderParameter = {};
867
+ const localVarQueryParameter = {};
868
+ // authentication CognitoAuth required
869
+ // http bearer authentication required
870
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
871
+ if (forceRecheck !== undefined) {
872
+ localVarQueryParameter['force_recheck'] = forceRecheck;
873
+ }
874
+ if (associateUuid !== undefined) {
875
+ localVarQueryParameter['associate_uuid'] = associateUuid;
876
+ }
877
+ localVarHeaderParameter['Accept'] = 'application/json';
878
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
879
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
880
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
881
+ return {
882
+ url: toPathString(localVarUrlObj),
883
+ options: localVarRequestOptions,
884
+ };
885
+ }),
886
+ };
887
+ };
888
+ /**
889
+ * ConnectionApi - functional programming interface
890
+ */
891
+ export const ConnectionApiFp = function (configuration) {
892
+ const localVarAxiosParamCreator = ConnectionApiAxiosParamCreator(configuration);
893
+ return {
894
+ /**
895
+ * Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
896
+ * @summary Check Connection and Detect VPN/Proxy
897
+ * @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
898
+ * @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
899
+ * @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
900
+ * @param {*} [options] Override http request option.
901
+ * @throws {RequiredError}
902
+ */
903
+ getConnectionDetails(ip, forceRecheck, associateUuid, options) {
904
+ return __awaiter(this, void 0, void 0, function* () {
905
+ var _a, _b, _c;
906
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getConnectionDetails(ip, forceRecheck, associateUuid, options);
907
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
908
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ConnectionApi.getConnectionDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
909
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
910
+ });
911
+ },
912
+ };
913
+ };
914
+ /**
915
+ * ConnectionApi - factory interface
916
+ */
917
+ export const ConnectionApiFactory = function (configuration, basePath, axios) {
918
+ const localVarFp = ConnectionApiFp(configuration);
919
+ return {
920
+ /**
921
+ * Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
922
+ * @summary Check Connection and Detect VPN/Proxy
923
+ * @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
924
+ * @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
925
+ * @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
926
+ * @param {*} [options] Override http request option.
927
+ * @throws {RequiredError}
928
+ */
929
+ getConnectionDetails(ip, forceRecheck, associateUuid, options) {
930
+ return localVarFp.getConnectionDetails(ip, forceRecheck, associateUuid, options).then((request) => request(axios, basePath));
931
+ },
932
+ };
933
+ };
934
+ /**
935
+ * ConnectionApi - object-oriented interface
936
+ */
937
+ export class ConnectionApi extends BaseAPI {
938
+ /**
939
+ * Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
940
+ * @summary Check Connection and Detect VPN/Proxy
941
+ * @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
942
+ * @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
943
+ * @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
944
+ * @param {*} [options] Override http request option.
945
+ * @throws {RequiredError}
946
+ */
947
+ getConnectionDetails(ip, forceRecheck, associateUuid, options) {
948
+ return ConnectionApiFp(this.configuration).getConnectionDetails(ip, forceRecheck, associateUuid, options).then((request) => request(this.axios, this.basePath));
949
+ }
950
+ }
951
+ /**
952
+ * PlayerApi - axios parameter creator
953
+ */
954
+ export const PlayerApiAxiosParamCreator = function (configuration) {
955
+ return {
956
+ /**
957
+ * 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.
958
+ * @summary Get Player Information
959
+ * @param {string} uuid The Minecraft player UUID (with or without dashes)
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ */
963
+ getPlayer: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
964
+ // verify required parameter 'uuid' is not null or undefined
965
+ assertParamExists('getPlayer', 'uuid', uuid);
966
+ const localVarPath = `/v1/player/{uuid}`
967
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
968
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
969
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
970
+ let baseOptions;
971
+ if (configuration) {
972
+ baseOptions = configuration.baseOptions;
973
+ }
974
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
975
+ const localVarHeaderParameter = {};
976
+ const localVarQueryParameter = {};
977
+ // authentication CognitoAuth required
978
+ // http bearer authentication required
979
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
980
+ localVarHeaderParameter['Accept'] = 'application/json';
981
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
982
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
983
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
984
+ return {
985
+ url: toPathString(localVarUrlObj),
986
+ options: localVarRequestOptions,
987
+ };
988
+ }),
989
+ };
990
+ };
991
+ /**
992
+ * PlayerApi - functional programming interface
993
+ */
994
+ export const PlayerApiFp = function (configuration) {
995
+ const localVarAxiosParamCreator = PlayerApiAxiosParamCreator(configuration);
996
+ return {
997
+ /**
998
+ * 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.
999
+ * @summary Get Player Information
1000
+ * @param {string} uuid The Minecraft player UUID (with or without dashes)
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ */
1004
+ getPlayer(uuid, options) {
1005
+ return __awaiter(this, void 0, void 0, function* () {
1006
+ var _a, _b, _c;
1007
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayer(uuid, options);
1008
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1009
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlayerApi.getPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1010
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1011
+ });
1012
+ },
1013
+ };
1014
+ };
1015
+ /**
1016
+ * PlayerApi - factory interface
1017
+ */
1018
+ export const PlayerApiFactory = function (configuration, basePath, axios) {
1019
+ const localVarFp = PlayerApiFp(configuration);
1020
+ return {
1021
+ /**
1022
+ * 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.
1023
+ * @summary Get Player Information
1024
+ * @param {string} uuid The Minecraft player UUID (with or without dashes)
1025
+ * @param {*} [options] Override http request option.
1026
+ * @throws {RequiredError}
1027
+ */
1028
+ getPlayer(uuid, options) {
1029
+ return localVarFp.getPlayer(uuid, options).then((request) => request(axios, basePath));
1030
+ },
1031
+ };
1032
+ };
1033
+ /**
1034
+ * PlayerApi - object-oriented interface
1035
+ */
1036
+ export class PlayerApi extends BaseAPI {
1037
+ /**
1038
+ * 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.
1039
+ * @summary Get Player Information
1040
+ * @param {string} uuid The Minecraft player UUID (with or without dashes)
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ */
1044
+ getPlayer(uuid, options) {
1045
+ return PlayerApiFp(this.configuration).getPlayer(uuid, options).then((request) => request(this.axios, this.basePath));
1046
+ }
1047
+ }
1048
+ /**
1049
+ * PunishmentApi - axios parameter creator
1050
+ */
1051
+ export const PunishmentApiAxiosParamCreator = function (configuration) {
1052
+ return {
1053
+ /**
1054
+ * Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
1055
+ * @summary Apply a punishment
1056
+ * @param {ApplyPunishmentRequest} applyPunishmentRequest
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ */
1060
+ applyPunishment: (applyPunishmentRequest_1, ...args_1) => __awaiter(this, [applyPunishmentRequest_1, ...args_1], void 0, function* (applyPunishmentRequest, options = {}) {
1061
+ // verify required parameter 'applyPunishmentRequest' is not null or undefined
1062
+ assertParamExists('applyPunishment', 'applyPunishmentRequest', applyPunishmentRequest);
1063
+ const localVarPath = `/v1/punishment/apply`;
1064
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1065
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1066
+ let baseOptions;
1067
+ if (configuration) {
1068
+ baseOptions = configuration.baseOptions;
1069
+ }
1070
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1071
+ const localVarHeaderParameter = {};
1072
+ const localVarQueryParameter = {};
1073
+ // authentication CognitoAuth required
1074
+ // http bearer authentication required
1075
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1076
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1077
+ localVarHeaderParameter['Accept'] = 'application/json';
1078
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1079
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1080
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1081
+ localVarRequestOptions.data = serializeDataIfNeeded(applyPunishmentRequest, localVarRequestOptions, configuration);
1082
+ return {
1083
+ url: toPathString(localVarUrlObj),
1084
+ options: localVarRequestOptions,
1085
+ };
1086
+ }),
1087
+ /**
1088
+ * Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
1089
+ * @summary Create a punishment draft
1090
+ * @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ createPunishmentDraft: (createPunishmentDraftRequest_1, ...args_1) => __awaiter(this, [createPunishmentDraftRequest_1, ...args_1], void 0, function* (createPunishmentDraftRequest, options = {}) {
1095
+ // verify required parameter 'createPunishmentDraftRequest' is not null or undefined
1096
+ assertParamExists('createPunishmentDraft', 'createPunishmentDraftRequest', createPunishmentDraftRequest);
1097
+ const localVarPath = `/v1/punishment/draft`;
1098
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1099
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1100
+ let baseOptions;
1101
+ if (configuration) {
1102
+ baseOptions = configuration.baseOptions;
1103
+ }
1104
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1105
+ const localVarHeaderParameter = {};
1106
+ const localVarQueryParameter = {};
1107
+ // authentication CognitoAuth required
1108
+ // http bearer authentication required
1109
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1110
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1111
+ localVarHeaderParameter['Accept'] = 'application/json';
1112
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1114
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1115
+ localVarRequestOptions.data = serializeDataIfNeeded(createPunishmentDraftRequest, localVarRequestOptions, configuration);
1116
+ return {
1117
+ url: toPathString(localVarUrlObj),
1118
+ options: localVarRequestOptions,
1119
+ };
1120
+ }),
1121
+ /**
1122
+ * Retrieve duration information for each punishment type and severity level (1-10)
1123
+ * @summary Get punishment severities
1124
+ * @param {*} [options] Override http request option.
1125
+ * @throws {RequiredError}
1126
+ */
1127
+ getPunishmentSeverities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1128
+ const localVarPath = `/v1/punishment/severities`;
1129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1130
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1131
+ let baseOptions;
1132
+ if (configuration) {
1133
+ baseOptions = configuration.baseOptions;
1134
+ }
1135
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1136
+ const localVarHeaderParameter = {};
1137
+ const localVarQueryParameter = {};
1138
+ // authentication CognitoAuth required
1139
+ // http bearer authentication required
1140
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1141
+ localVarHeaderParameter['Accept'] = 'application/json';
1142
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1143
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1144
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1145
+ return {
1146
+ url: toPathString(localVarUrlObj),
1147
+ options: localVarRequestOptions,
1148
+ };
1149
+ }),
1150
+ /**
1151
+ * Retrieve all active punishments for a player by UUID or username, optionally filtered by type and time
1152
+ * @summary Get punishments by player
1153
+ * @param {string | null} [uuid] Player UUID
1154
+ * @param {string | null} [username] Player username
1155
+ * @param {Array<string> | null} [type] Filter by punishment types
1156
+ * @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
1157
+ * @param {*} [options] Override http request option.
1158
+ * @throws {RequiredError}
1159
+ */
1160
+ getPunishments: (uuid_1, username_1, type_1, since_1, ...args_1) => __awaiter(this, [uuid_1, username_1, type_1, since_1, ...args_1], void 0, function* (uuid, username, type, since, options = {}) {
1161
+ const localVarPath = `/v1/punishment`;
1162
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1163
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1164
+ let baseOptions;
1165
+ if (configuration) {
1166
+ baseOptions = configuration.baseOptions;
1167
+ }
1168
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1169
+ const localVarHeaderParameter = {};
1170
+ const localVarQueryParameter = {};
1171
+ // authentication CognitoAuth required
1172
+ // http bearer authentication required
1173
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1174
+ if (uuid !== undefined) {
1175
+ localVarQueryParameter['uuid'] = uuid;
1176
+ }
1177
+ if (username !== undefined) {
1178
+ localVarQueryParameter['username'] = username;
1179
+ }
1180
+ if (type) {
1181
+ localVarQueryParameter['type'] = type.join(COLLECTION_FORMATS.csv);
1182
+ }
1183
+ if (since !== undefined) {
1184
+ localVarQueryParameter['since'] = since;
1185
+ }
1186
+ localVarHeaderParameter['Accept'] = 'application/json';
1187
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1189
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1190
+ return {
1191
+ url: toPathString(localVarUrlObj),
1192
+ options: localVarRequestOptions,
1193
+ };
1194
+ }),
1195
+ /**
1196
+ * Retrieve all active punishments associated with an IP address
1197
+ * @summary Get punishments by IP address
1198
+ * @param {string} ip IP address
1199
+ * @param {*} [options] Override http request option.
1200
+ * @throws {RequiredError}
1201
+ */
1202
+ getPunishmentsByIp: (ip_1, ...args_1) => __awaiter(this, [ip_1, ...args_1], void 0, function* (ip, options = {}) {
1203
+ // verify required parameter 'ip' is not null or undefined
1204
+ assertParamExists('getPunishmentsByIp', 'ip', ip);
1205
+ const localVarPath = `/v1/punishment/ip`;
1206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1208
+ let baseOptions;
1209
+ if (configuration) {
1210
+ baseOptions = configuration.baseOptions;
1211
+ }
1212
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1213
+ const localVarHeaderParameter = {};
1214
+ const localVarQueryParameter = {};
1215
+ // authentication CognitoAuth required
1216
+ // http bearer authentication required
1217
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1218
+ if (ip !== undefined) {
1219
+ localVarQueryParameter['ip'] = ip;
1220
+ }
1221
+ localVarHeaderParameter['Accept'] = 'application/json';
1222
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1224
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1225
+ return {
1226
+ url: toPathString(localVarUrlObj),
1227
+ options: localVarRequestOptions,
1228
+ };
1229
+ }),
1230
+ /**
1231
+ * Returns a paginated list of recent punishments with optional filtering by issue date, expiration date, and type
1232
+ * @summary List recent punishments
1233
+ * @param {number} limit Maximum number of records to return
1234
+ * @param {number} page Page number for pagination
1235
+ * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (milliseconds)
1236
+ * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
1237
+ * @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
1238
+ * @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
1239
+ * @param {Array<string> | null} [type] Filter by punishment types
1240
+ * @param {string | null} [uuid] Filter by player UUID
1241
+ * @param {string | null} [ipAddress] Filter by IP address
1242
+ * @param {*} [options] Override http request option.
1243
+ * @throws {RequiredError}
1244
+ */
1245
+ getRecentPunishments: (limit_1, page_1, issuedAfter_1, issuedBefore_1, expiresAfter_1, expiresBefore_1, type_1, uuid_1, ipAddress_1, ...args_1) => __awaiter(this, [limit_1, page_1, issuedAfter_1, issuedBefore_1, expiresAfter_1, expiresBefore_1, type_1, uuid_1, ipAddress_1, ...args_1], void 0, function* (limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options = {}) {
1246
+ // verify required parameter 'limit' is not null or undefined
1247
+ assertParamExists('getRecentPunishments', 'limit', limit);
1248
+ // verify required parameter 'page' is not null or undefined
1249
+ assertParamExists('getRecentPunishments', 'page', page);
1250
+ const localVarPath = `/v1/punishment/recent`;
1251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1253
+ let baseOptions;
1254
+ if (configuration) {
1255
+ baseOptions = configuration.baseOptions;
1256
+ }
1257
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1258
+ const localVarHeaderParameter = {};
1259
+ const localVarQueryParameter = {};
1260
+ // authentication CognitoAuth required
1261
+ // http bearer authentication required
1262
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1263
+ if (issuedAfter !== undefined) {
1264
+ localVarQueryParameter['issuedAfter'] = issuedAfter;
1265
+ }
1266
+ if (issuedBefore !== undefined) {
1267
+ localVarQueryParameter['issuedBefore'] = issuedBefore;
1268
+ }
1269
+ if (expiresAfter !== undefined) {
1270
+ localVarQueryParameter['expiresAfter'] = expiresAfter;
1271
+ }
1272
+ if (expiresBefore !== undefined) {
1273
+ localVarQueryParameter['expiresBefore'] = expiresBefore;
1274
+ }
1275
+ if (type) {
1276
+ localVarQueryParameter['type'] = type.join(COLLECTION_FORMATS.csv);
1277
+ }
1278
+ if (uuid !== undefined) {
1279
+ localVarQueryParameter['uuid'] = uuid;
1280
+ }
1281
+ if (ipAddress !== undefined) {
1282
+ localVarQueryParameter['ipAddress'] = ipAddress;
1283
+ }
1284
+ if (limit !== undefined) {
1285
+ localVarQueryParameter['limit'] = limit;
1286
+ }
1287
+ if (page !== undefined) {
1288
+ localVarQueryParameter['page'] = page;
1289
+ }
1290
+ localVarHeaderParameter['Accept'] = 'application/json';
1291
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1292
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1293
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1294
+ return {
1295
+ url: toPathString(localVarUrlObj),
1296
+ options: localVarRequestOptions,
1297
+ };
1298
+ }),
1299
+ };
1300
+ };
1301
+ /**
1302
+ * PunishmentApi - functional programming interface
1303
+ */
1304
+ export const PunishmentApiFp = function (configuration) {
1305
+ const localVarAxiosParamCreator = PunishmentApiAxiosParamCreator(configuration);
1306
+ return {
1307
+ /**
1308
+ * Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
1309
+ * @summary Apply a punishment
1310
+ * @param {ApplyPunishmentRequest} applyPunishmentRequest
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ */
1314
+ applyPunishment(applyPunishmentRequest, options) {
1315
+ return __awaiter(this, void 0, void 0, function* () {
1316
+ var _a, _b, _c;
1317
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.applyPunishment(applyPunishmentRequest, options);
1318
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1319
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PunishmentApi.applyPunishment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1320
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1321
+ });
1322
+ },
1323
+ /**
1324
+ * Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
1325
+ * @summary Create a punishment draft
1326
+ * @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
1327
+ * @param {*} [options] Override http request option.
1328
+ * @throws {RequiredError}
1329
+ */
1330
+ createPunishmentDraft(createPunishmentDraftRequest, options) {
1331
+ return __awaiter(this, void 0, void 0, function* () {
1332
+ var _a, _b, _c;
1333
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPunishmentDraft(createPunishmentDraftRequest, options);
1334
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1335
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PunishmentApi.createPunishmentDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1336
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1337
+ });
1338
+ },
1339
+ /**
1340
+ * Retrieve duration information for each punishment type and severity level (1-10)
1341
+ * @summary Get punishment severities
1342
+ * @param {*} [options] Override http request option.
1343
+ * @throws {RequiredError}
1344
+ */
1345
+ getPunishmentSeverities(options) {
1346
+ return __awaiter(this, void 0, void 0, function* () {
1347
+ var _a, _b, _c;
1348
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishmentSeverities(options);
1349
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1350
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PunishmentApi.getPunishmentSeverities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1351
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1352
+ });
1353
+ },
1354
+ /**
1355
+ * Retrieve all active punishments for a player by UUID or username, optionally filtered by type and time
1356
+ * @summary Get punishments by player
1357
+ * @param {string | null} [uuid] Player UUID
1358
+ * @param {string | null} [username] Player username
1359
+ * @param {Array<string> | null} [type] Filter by punishment types
1360
+ * @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
1361
+ * @param {*} [options] Override http request option.
1362
+ * @throws {RequiredError}
1363
+ */
1364
+ getPunishments(uuid, username, type, since, options) {
1365
+ return __awaiter(this, void 0, void 0, function* () {
1366
+ var _a, _b, _c;
1367
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishments(uuid, username, type, since, options);
1368
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1369
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PunishmentApi.getPunishments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1370
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1371
+ });
1372
+ },
1373
+ /**
1374
+ * Retrieve all active punishments associated with an IP address
1375
+ * @summary Get punishments by IP address
1376
+ * @param {string} ip IP address
1377
+ * @param {*} [options] Override http request option.
1378
+ * @throws {RequiredError}
1379
+ */
1380
+ getPunishmentsByIp(ip, options) {
1381
+ return __awaiter(this, void 0, void 0, function* () {
1382
+ var _a, _b, _c;
1383
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishmentsByIp(ip, options);
1384
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1385
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PunishmentApi.getPunishmentsByIp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1386
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1387
+ });
1388
+ },
1389
+ /**
1390
+ * Returns a paginated list of recent punishments with optional filtering by issue date, expiration date, and type
1391
+ * @summary List recent punishments
1392
+ * @param {number} limit Maximum number of records to return
1393
+ * @param {number} page Page number for pagination
1394
+ * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (milliseconds)
1395
+ * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
1396
+ * @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
1397
+ * @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
1398
+ * @param {Array<string> | null} [type] Filter by punishment types
1399
+ * @param {string | null} [uuid] Filter by player UUID
1400
+ * @param {string | null} [ipAddress] Filter by IP address
1401
+ * @param {*} [options] Override http request option.
1402
+ * @throws {RequiredError}
1403
+ */
1404
+ getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options) {
1405
+ return __awaiter(this, void 0, void 0, function* () {
1406
+ var _a, _b, _c;
1407
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options);
1408
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1409
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PunishmentApi.getRecentPunishments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1410
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1411
+ });
1412
+ },
1413
+ };
1414
+ };
1415
+ /**
1416
+ * PunishmentApi - factory interface
1417
+ */
1418
+ export const PunishmentApiFactory = function (configuration, basePath, axios) {
1419
+ const localVarFp = PunishmentApiFp(configuration);
1420
+ return {
1421
+ /**
1422
+ * Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
1423
+ * @summary Apply a punishment
1424
+ * @param {ApplyPunishmentRequest} applyPunishmentRequest
1425
+ * @param {*} [options] Override http request option.
1426
+ * @throws {RequiredError}
1427
+ */
1428
+ applyPunishment(applyPunishmentRequest, options) {
1429
+ return localVarFp.applyPunishment(applyPunishmentRequest, options).then((request) => request(axios, basePath));
1430
+ },
1431
+ /**
1432
+ * Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
1433
+ * @summary Create a punishment draft
1434
+ * @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
1435
+ * @param {*} [options] Override http request option.
1436
+ * @throws {RequiredError}
1437
+ */
1438
+ createPunishmentDraft(createPunishmentDraftRequest, options) {
1439
+ return localVarFp.createPunishmentDraft(createPunishmentDraftRequest, options).then((request) => request(axios, basePath));
1440
+ },
1441
+ /**
1442
+ * Retrieve duration information for each punishment type and severity level (1-10)
1443
+ * @summary Get punishment severities
1444
+ * @param {*} [options] Override http request option.
1445
+ * @throws {RequiredError}
1446
+ */
1447
+ getPunishmentSeverities(options) {
1448
+ return localVarFp.getPunishmentSeverities(options).then((request) => request(axios, basePath));
1449
+ },
1450
+ /**
1451
+ * Retrieve all active punishments for a player by UUID or username, optionally filtered by type and time
1452
+ * @summary Get punishments by player
1453
+ * @param {string | null} [uuid] Player UUID
1454
+ * @param {string | null} [username] Player username
1455
+ * @param {Array<string> | null} [type] Filter by punishment types
1456
+ * @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
1457
+ * @param {*} [options] Override http request option.
1458
+ * @throws {RequiredError}
1459
+ */
1460
+ getPunishments(uuid, username, type, since, options) {
1461
+ return localVarFp.getPunishments(uuid, username, type, since, options).then((request) => request(axios, basePath));
1462
+ },
1463
+ /**
1464
+ * Retrieve all active punishments associated with an IP address
1465
+ * @summary Get punishments by IP address
1466
+ * @param {string} ip IP address
1467
+ * @param {*} [options] Override http request option.
1468
+ * @throws {RequiredError}
1469
+ */
1470
+ getPunishmentsByIp(ip, options) {
1471
+ return localVarFp.getPunishmentsByIp(ip, options).then((request) => request(axios, basePath));
1472
+ },
1473
+ /**
1474
+ * Returns a paginated list of recent punishments with optional filtering by issue date, expiration date, and type
1475
+ * @summary List recent punishments
1476
+ * @param {number} limit Maximum number of records to return
1477
+ * @param {number} page Page number for pagination
1478
+ * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (milliseconds)
1479
+ * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
1480
+ * @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
1481
+ * @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
1482
+ * @param {Array<string> | null} [type] Filter by punishment types
1483
+ * @param {string | null} [uuid] Filter by player UUID
1484
+ * @param {string | null} [ipAddress] Filter by IP address
1485
+ * @param {*} [options] Override http request option.
1486
+ * @throws {RequiredError}
1487
+ */
1488
+ getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options) {
1489
+ return localVarFp.getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options).then((request) => request(axios, basePath));
1490
+ },
1491
+ };
1492
+ };
1493
+ /**
1494
+ * PunishmentApi - object-oriented interface
1495
+ */
1496
+ export class PunishmentApi extends BaseAPI {
1497
+ /**
1498
+ * Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
1499
+ * @summary Apply a punishment
1500
+ * @param {ApplyPunishmentRequest} applyPunishmentRequest
1501
+ * @param {*} [options] Override http request option.
1502
+ * @throws {RequiredError}
1503
+ */
1504
+ applyPunishment(applyPunishmentRequest, options) {
1505
+ return PunishmentApiFp(this.configuration).applyPunishment(applyPunishmentRequest, options).then((request) => request(this.axios, this.basePath));
1506
+ }
1507
+ /**
1508
+ * Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
1509
+ * @summary Create a punishment draft
1510
+ * @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
1511
+ * @param {*} [options] Override http request option.
1512
+ * @throws {RequiredError}
1513
+ */
1514
+ createPunishmentDraft(createPunishmentDraftRequest, options) {
1515
+ return PunishmentApiFp(this.configuration).createPunishmentDraft(createPunishmentDraftRequest, options).then((request) => request(this.axios, this.basePath));
1516
+ }
1517
+ /**
1518
+ * Retrieve duration information for each punishment type and severity level (1-10)
1519
+ * @summary Get punishment severities
1520
+ * @param {*} [options] Override http request option.
1521
+ * @throws {RequiredError}
1522
+ */
1523
+ getPunishmentSeverities(options) {
1524
+ return PunishmentApiFp(this.configuration).getPunishmentSeverities(options).then((request) => request(this.axios, this.basePath));
1525
+ }
1526
+ /**
1527
+ * Retrieve all active punishments for a player by UUID or username, optionally filtered by type and time
1528
+ * @summary Get punishments by player
1529
+ * @param {string | null} [uuid] Player UUID
1530
+ * @param {string | null} [username] Player username
1531
+ * @param {Array<string> | null} [type] Filter by punishment types
1532
+ * @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
1533
+ * @param {*} [options] Override http request option.
1534
+ * @throws {RequiredError}
1535
+ */
1536
+ getPunishments(uuid, username, type, since, options) {
1537
+ return PunishmentApiFp(this.configuration).getPunishments(uuid, username, type, since, options).then((request) => request(this.axios, this.basePath));
1538
+ }
1539
+ /**
1540
+ * Retrieve all active punishments associated with an IP address
1541
+ * @summary Get punishments by IP address
1542
+ * @param {string} ip IP address
1543
+ * @param {*} [options] Override http request option.
1544
+ * @throws {RequiredError}
1545
+ */
1546
+ getPunishmentsByIp(ip, options) {
1547
+ return PunishmentApiFp(this.configuration).getPunishmentsByIp(ip, options).then((request) => request(this.axios, this.basePath));
1548
+ }
1549
+ /**
1550
+ * Returns a paginated list of recent punishments with optional filtering by issue date, expiration date, and type
1551
+ * @summary List recent punishments
1552
+ * @param {number} limit Maximum number of records to return
1553
+ * @param {number} page Page number for pagination
1554
+ * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (milliseconds)
1555
+ * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
1556
+ * @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
1557
+ * @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
1558
+ * @param {Array<string> | null} [type] Filter by punishment types
1559
+ * @param {string | null} [uuid] Filter by player UUID
1560
+ * @param {string | null} [ipAddress] Filter by IP address
1561
+ * @param {*} [options] Override http request option.
1562
+ * @throws {RequiredError}
1563
+ */
1564
+ getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options) {
1565
+ return PunishmentApiFp(this.configuration).getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options).then((request) => request(this.axios, this.basePath));
1566
+ }
1567
+ }