@rebornteam/reborn-api 2.5.1

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