@rebornteam/reborn-api 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +4 -2
- package/api.ts +83 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +46 -1
- package/dist/api.js +63 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +46 -1
- package/dist/esm/api.js +63 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AdminBackfillLocationResponse.md +25 -0
- package/docs/AdminConnectionsApi.md +47 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@ configuration.ts
|
|
|
9
9
|
docs/AdminApplyPunishmentRequest.md
|
|
10
10
|
docs/AdminApplyPunishmentResponse.md
|
|
11
11
|
docs/AdminApplyPunishmentResult.md
|
|
12
|
+
docs/AdminBackfillLocationResponse.md
|
|
12
13
|
docs/AdminClientCredentialResponse.md
|
|
13
14
|
docs/AdminClientCredentialsApi.md
|
|
14
15
|
docs/AdminConnectionBypassResponse.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @rebornteam/reborn-api@3.2.
|
|
1
|
+
## @rebornteam/reborn-api@3.2.1
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @rebornteam/reborn-api@3.2.
|
|
39
|
+
npm install @rebornteam/reborn-api@3.2.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -58,6 +58,7 @@ Class | Method | HTTP request | Description
|
|
|
58
58
|
*AdminClientCredentialsApi* | [**revokeToken**](docs/AdminClientCredentialsApi.md#revoketoken) | **DELETE** /admin/client/{id} | Revoke client credentials
|
|
59
59
|
*AdminClientCredentialsApi* | [**rotateToken**](docs/AdminClientCredentialsApi.md#rotatetoken) | **POST** /admin/client/{id}/rotate | Rotate client credentials
|
|
60
60
|
*AdminClientCredentialsApi* | [**updateClient**](docs/AdminClientCredentialsApi.md#updateclient) | **PUT** /admin/client/{id} | Update client metadata
|
|
61
|
+
*AdminConnectionsApi* | [**backfillLocation**](docs/AdminConnectionsApi.md#backfilllocation) | **POST** /admin/connection/backfill-location | Backfill missing location data
|
|
61
62
|
*AdminConnectionsApi* | [**createBypass**](docs/AdminConnectionsApi.md#createbypass) | **POST** /admin/connection/bypass | Create connection bypass
|
|
62
63
|
*AdminConnectionsApi* | [**listAllConnections**](docs/AdminConnectionsApi.md#listallconnections) | **GET** /admin/connection | List all connections (paginated)
|
|
63
64
|
*AdminConnectionsApi* | [**listConnections**](docs/AdminConnectionsApi.md#listconnections) | **GET** /admin/connection/recent | List recent connections
|
|
@@ -94,6 +95,7 @@ Class | Method | HTTP request | Description
|
|
|
94
95
|
- [AdminApplyPunishmentRequest](docs/AdminApplyPunishmentRequest.md)
|
|
95
96
|
- [AdminApplyPunishmentResponse](docs/AdminApplyPunishmentResponse.md)
|
|
96
97
|
- [AdminApplyPunishmentResult](docs/AdminApplyPunishmentResult.md)
|
|
98
|
+
- [AdminBackfillLocationResponse](docs/AdminBackfillLocationResponse.md)
|
|
97
99
|
- [AdminClientCredentialResponse](docs/AdminClientCredentialResponse.md)
|
|
98
100
|
- [AdminConnectionBypassResponse](docs/AdminConnectionBypassResponse.md)
|
|
99
101
|
- [AdminConnectionCheckResult](docs/AdminConnectionCheckResult.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 3.2.
|
|
7
|
+
* The version of the OpenAPI document: 3.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -102,6 +102,23 @@ export interface AdminApplyPunishmentResult {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Result of a location backfill run — rechecks every connection_check row missing both city and country, repopulating them from the VPN providers.
|
|
107
|
+
*/
|
|
108
|
+
export interface AdminBackfillLocationResponse {
|
|
109
|
+
/**
|
|
110
|
+
* Total checks attempted
|
|
111
|
+
*/
|
|
112
|
+
'processed': number;
|
|
113
|
+
/**
|
|
114
|
+
* Checks where the provider returned at least a city or country
|
|
115
|
+
*/
|
|
116
|
+
'succeeded': number;
|
|
117
|
+
/**
|
|
118
|
+
* Checks that errored or returned no location data
|
|
119
|
+
*/
|
|
120
|
+
'failed': number;
|
|
121
|
+
}
|
|
105
122
|
/**
|
|
106
123
|
* Client credential response
|
|
107
124
|
*/
|
|
@@ -1394,6 +1411,40 @@ export class AdminClientCredentialsApi extends BaseAPI {
|
|
|
1394
1411
|
*/
|
|
1395
1412
|
export const AdminConnectionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1396
1413
|
return {
|
|
1414
|
+
/**
|
|
1415
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1416
|
+
* @summary Backfill missing location data
|
|
1417
|
+
* @param {*} [options] Override http request option.
|
|
1418
|
+
* @throws {RequiredError}
|
|
1419
|
+
*/
|
|
1420
|
+
backfillLocation: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1421
|
+
const localVarPath = `/admin/connection/backfill-location`;
|
|
1422
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1423
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1424
|
+
let baseOptions;
|
|
1425
|
+
if (configuration) {
|
|
1426
|
+
baseOptions = configuration.baseOptions;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1430
|
+
const localVarHeaderParameter = {} as any;
|
|
1431
|
+
const localVarQueryParameter = {} as any;
|
|
1432
|
+
|
|
1433
|
+
// authentication DiscordAuth required
|
|
1434
|
+
// http bearer authentication required
|
|
1435
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1436
|
+
|
|
1437
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1438
|
+
|
|
1439
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1441
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1442
|
+
|
|
1443
|
+
return {
|
|
1444
|
+
url: toPathString(localVarUrlObj),
|
|
1445
|
+
options: localVarRequestOptions,
|
|
1446
|
+
};
|
|
1447
|
+
},
|
|
1397
1448
|
/**
|
|
1398
1449
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1399
1450
|
* @summary Create connection bypass
|
|
@@ -1612,6 +1663,18 @@ export const AdminConnectionsApiAxiosParamCreator = function (configuration?: Co
|
|
|
1612
1663
|
export const AdminConnectionsApiFp = function(configuration?: Configuration) {
|
|
1613
1664
|
const localVarAxiosParamCreator = AdminConnectionsApiAxiosParamCreator(configuration)
|
|
1614
1665
|
return {
|
|
1666
|
+
/**
|
|
1667
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1668
|
+
* @summary Backfill missing location data
|
|
1669
|
+
* @param {*} [options] Override http request option.
|
|
1670
|
+
* @throws {RequiredError}
|
|
1671
|
+
*/
|
|
1672
|
+
async backfillLocation(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminBackfillLocationResponse>> {
|
|
1673
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backfillLocation(options);
|
|
1674
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1675
|
+
const localVarOperationServerBasePath = operationServerMap['AdminConnectionsApi.backfillLocation']?.[localVarOperationServerIndex]?.url;
|
|
1676
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1677
|
+
},
|
|
1615
1678
|
/**
|
|
1616
1679
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1617
1680
|
* @summary Create connection bypass
|
|
@@ -1684,6 +1747,15 @@ export const AdminConnectionsApiFp = function(configuration?: Configuration) {
|
|
|
1684
1747
|
export const AdminConnectionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1685
1748
|
const localVarFp = AdminConnectionsApiFp(configuration)
|
|
1686
1749
|
return {
|
|
1750
|
+
/**
|
|
1751
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1752
|
+
* @summary Backfill missing location data
|
|
1753
|
+
* @param {*} [options] Override http request option.
|
|
1754
|
+
* @throws {RequiredError}
|
|
1755
|
+
*/
|
|
1756
|
+
backfillLocation(options?: RawAxiosRequestConfig): AxiosPromise<AdminBackfillLocationResponse> {
|
|
1757
|
+
return localVarFp.backfillLocation(options).then((request) => request(axios, basePath));
|
|
1758
|
+
},
|
|
1687
1759
|
/**
|
|
1688
1760
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1689
1761
|
* @summary Create connection bypass
|
|
@@ -1742,6 +1814,16 @@ export const AdminConnectionsApiFactory = function (configuration?: Configuratio
|
|
|
1742
1814
|
* AdminConnectionsApi - object-oriented interface
|
|
1743
1815
|
*/
|
|
1744
1816
|
export class AdminConnectionsApi extends BaseAPI {
|
|
1817
|
+
/**
|
|
1818
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1819
|
+
* @summary Backfill missing location data
|
|
1820
|
+
* @param {*} [options] Override http request option.
|
|
1821
|
+
* @throws {RequiredError}
|
|
1822
|
+
*/
|
|
1823
|
+
public backfillLocation(options?: RawAxiosRequestConfig) {
|
|
1824
|
+
return AdminConnectionsApiFp(this.configuration).backfillLocation(options).then((request) => request(this.axios, this.basePath));
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1745
1827
|
/**
|
|
1746
1828
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1747
1829
|
* @summary Create connection bypass
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 3.2.
|
|
7
|
+
* The version of the OpenAPI document: 3.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 3.2.
|
|
7
|
+
* The version of the OpenAPI document: 3.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Reborn API
|
|
4
4
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 3.2.
|
|
6
|
+
* The version of the OpenAPI document: 3.2.1
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -88,6 +88,23 @@ export interface AdminApplyPunishmentResult {
|
|
|
88
88
|
*/
|
|
89
89
|
'expiresAt'?: string | null;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Result of a location backfill run — rechecks every connection_check row missing both city and country, repopulating them from the VPN providers.
|
|
93
|
+
*/
|
|
94
|
+
export interface AdminBackfillLocationResponse {
|
|
95
|
+
/**
|
|
96
|
+
* Total checks attempted
|
|
97
|
+
*/
|
|
98
|
+
'processed': number;
|
|
99
|
+
/**
|
|
100
|
+
* Checks where the provider returned at least a city or country
|
|
101
|
+
*/
|
|
102
|
+
'succeeded': number;
|
|
103
|
+
/**
|
|
104
|
+
* Checks that errored or returned no location data
|
|
105
|
+
*/
|
|
106
|
+
'failed': number;
|
|
107
|
+
}
|
|
91
108
|
/**
|
|
92
109
|
* Client credential response
|
|
93
110
|
*/
|
|
@@ -1038,6 +1055,13 @@ export declare class AdminClientCredentialsApi extends BaseAPI {
|
|
|
1038
1055
|
* AdminConnectionsApi - axios parameter creator
|
|
1039
1056
|
*/
|
|
1040
1057
|
export declare const AdminConnectionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1058
|
+
/**
|
|
1059
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1060
|
+
* @summary Backfill missing location data
|
|
1061
|
+
* @param {*} [options] Override http request option.
|
|
1062
|
+
* @throws {RequiredError}
|
|
1063
|
+
*/
|
|
1064
|
+
backfillLocation: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1041
1065
|
/**
|
|
1042
1066
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1043
1067
|
* @summary Create connection bypass
|
|
@@ -1086,6 +1110,13 @@ export declare const AdminConnectionsApiAxiosParamCreator: (configuration?: Conf
|
|
|
1086
1110
|
* AdminConnectionsApi - functional programming interface
|
|
1087
1111
|
*/
|
|
1088
1112
|
export declare const AdminConnectionsApiFp: (configuration?: Configuration) => {
|
|
1113
|
+
/**
|
|
1114
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1115
|
+
* @summary Backfill missing location data
|
|
1116
|
+
* @param {*} [options] Override http request option.
|
|
1117
|
+
* @throws {RequiredError}
|
|
1118
|
+
*/
|
|
1119
|
+
backfillLocation(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminBackfillLocationResponse>>;
|
|
1089
1120
|
/**
|
|
1090
1121
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1091
1122
|
* @summary Create connection bypass
|
|
@@ -1134,6 +1165,13 @@ export declare const AdminConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
1134
1165
|
* AdminConnectionsApi - factory interface
|
|
1135
1166
|
*/
|
|
1136
1167
|
export declare const AdminConnectionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1168
|
+
/**
|
|
1169
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1170
|
+
* @summary Backfill missing location data
|
|
1171
|
+
* @param {*} [options] Override http request option.
|
|
1172
|
+
* @throws {RequiredError}
|
|
1173
|
+
*/
|
|
1174
|
+
backfillLocation(options?: RawAxiosRequestConfig): AxiosPromise<AdminBackfillLocationResponse>;
|
|
1137
1175
|
/**
|
|
1138
1176
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1139
1177
|
* @summary Create connection bypass
|
|
@@ -1182,6 +1220,13 @@ export declare const AdminConnectionsApiFactory: (configuration?: Configuration,
|
|
|
1182
1220
|
* AdminConnectionsApi - object-oriented interface
|
|
1183
1221
|
*/
|
|
1184
1222
|
export declare class AdminConnectionsApi extends BaseAPI {
|
|
1223
|
+
/**
|
|
1224
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1225
|
+
* @summary Backfill missing location data
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
*/
|
|
1229
|
+
backfillLocation(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminBackfillLocationResponse, any, {}>>;
|
|
1185
1230
|
/**
|
|
1186
1231
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1187
1232
|
* @summary Create connection bypass
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Reborn API
|
|
6
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 - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.2.
|
|
8
|
+
* The version of the OpenAPI document: 3.2.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -589,6 +589,35 @@ exports.AdminClientCredentialsApi = AdminClientCredentialsApi;
|
|
|
589
589
|
*/
|
|
590
590
|
const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
591
591
|
return {
|
|
592
|
+
/**
|
|
593
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
594
|
+
* @summary Backfill missing location data
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
backfillLocation: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
599
|
+
const localVarPath = `/admin/connection/backfill-location`;
|
|
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: 'POST' }, baseOptions), options);
|
|
607
|
+
const localVarHeaderParameter = {};
|
|
608
|
+
const localVarQueryParameter = {};
|
|
609
|
+
// authentication DiscordAuth required
|
|
610
|
+
// http bearer authentication required
|
|
611
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
612
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
613
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
614
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
615
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
616
|
+
return {
|
|
617
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
618
|
+
options: localVarRequestOptions,
|
|
619
|
+
};
|
|
620
|
+
}),
|
|
592
621
|
/**
|
|
593
622
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
594
623
|
* @summary Create connection bypass
|
|
@@ -775,6 +804,21 @@ exports.AdminConnectionsApiAxiosParamCreator = AdminConnectionsApiAxiosParamCrea
|
|
|
775
804
|
const AdminConnectionsApiFp = function (configuration) {
|
|
776
805
|
const localVarAxiosParamCreator = (0, exports.AdminConnectionsApiAxiosParamCreator)(configuration);
|
|
777
806
|
return {
|
|
807
|
+
/**
|
|
808
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
809
|
+
* @summary Backfill missing location data
|
|
810
|
+
* @param {*} [options] Override http request option.
|
|
811
|
+
* @throws {RequiredError}
|
|
812
|
+
*/
|
|
813
|
+
backfillLocation(options) {
|
|
814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
815
|
+
var _a, _b, _c;
|
|
816
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.backfillLocation(options);
|
|
817
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
818
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminConnectionsApi.backfillLocation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
819
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
820
|
+
});
|
|
821
|
+
},
|
|
778
822
|
/**
|
|
779
823
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
780
824
|
* @summary Create connection bypass
|
|
@@ -859,6 +903,15 @@ exports.AdminConnectionsApiFp = AdminConnectionsApiFp;
|
|
|
859
903
|
const AdminConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
860
904
|
const localVarFp = (0, exports.AdminConnectionsApiFp)(configuration);
|
|
861
905
|
return {
|
|
906
|
+
/**
|
|
907
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
908
|
+
* @summary Backfill missing location data
|
|
909
|
+
* @param {*} [options] Override http request option.
|
|
910
|
+
* @throws {RequiredError}
|
|
911
|
+
*/
|
|
912
|
+
backfillLocation(options) {
|
|
913
|
+
return localVarFp.backfillLocation(options).then((request) => request(axios, basePath));
|
|
914
|
+
},
|
|
862
915
|
/**
|
|
863
916
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
864
917
|
* @summary Create connection bypass
|
|
@@ -917,6 +970,15 @@ exports.AdminConnectionsApiFactory = AdminConnectionsApiFactory;
|
|
|
917
970
|
* AdminConnectionsApi - object-oriented interface
|
|
918
971
|
*/
|
|
919
972
|
class AdminConnectionsApi extends base_1.BaseAPI {
|
|
973
|
+
/**
|
|
974
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
975
|
+
* @summary Backfill missing location data
|
|
976
|
+
* @param {*} [options] Override http request option.
|
|
977
|
+
* @throws {RequiredError}
|
|
978
|
+
*/
|
|
979
|
+
backfillLocation(options) {
|
|
980
|
+
return (0, exports.AdminConnectionsApiFp)(this.configuration).backfillLocation(options).then((request) => request(this.axios, this.basePath));
|
|
981
|
+
}
|
|
920
982
|
/**
|
|
921
983
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
922
984
|
* @summary Create connection bypass
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Reborn API
|
|
6
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 - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.2.
|
|
8
|
+
* The version of the OpenAPI document: 3.2.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Reborn API
|
|
6
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 - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.2.
|
|
8
|
+
* The version of the OpenAPI document: 3.2.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 3.2.
|
|
7
|
+
* The version of the OpenAPI document: 3.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -88,6 +88,23 @@ export interface AdminApplyPunishmentResult {
|
|
|
88
88
|
*/
|
|
89
89
|
'expiresAt'?: string | null;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Result of a location backfill run — rechecks every connection_check row missing both city and country, repopulating them from the VPN providers.
|
|
93
|
+
*/
|
|
94
|
+
export interface AdminBackfillLocationResponse {
|
|
95
|
+
/**
|
|
96
|
+
* Total checks attempted
|
|
97
|
+
*/
|
|
98
|
+
'processed': number;
|
|
99
|
+
/**
|
|
100
|
+
* Checks where the provider returned at least a city or country
|
|
101
|
+
*/
|
|
102
|
+
'succeeded': number;
|
|
103
|
+
/**
|
|
104
|
+
* Checks that errored or returned no location data
|
|
105
|
+
*/
|
|
106
|
+
'failed': number;
|
|
107
|
+
}
|
|
91
108
|
/**
|
|
92
109
|
* Client credential response
|
|
93
110
|
*/
|
|
@@ -1038,6 +1055,13 @@ export declare class AdminClientCredentialsApi extends BaseAPI {
|
|
|
1038
1055
|
* AdminConnectionsApi - axios parameter creator
|
|
1039
1056
|
*/
|
|
1040
1057
|
export declare const AdminConnectionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1058
|
+
/**
|
|
1059
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1060
|
+
* @summary Backfill missing location data
|
|
1061
|
+
* @param {*} [options] Override http request option.
|
|
1062
|
+
* @throws {RequiredError}
|
|
1063
|
+
*/
|
|
1064
|
+
backfillLocation: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1041
1065
|
/**
|
|
1042
1066
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1043
1067
|
* @summary Create connection bypass
|
|
@@ -1086,6 +1110,13 @@ export declare const AdminConnectionsApiAxiosParamCreator: (configuration?: Conf
|
|
|
1086
1110
|
* AdminConnectionsApi - functional programming interface
|
|
1087
1111
|
*/
|
|
1088
1112
|
export declare const AdminConnectionsApiFp: (configuration?: Configuration) => {
|
|
1113
|
+
/**
|
|
1114
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1115
|
+
* @summary Backfill missing location data
|
|
1116
|
+
* @param {*} [options] Override http request option.
|
|
1117
|
+
* @throws {RequiredError}
|
|
1118
|
+
*/
|
|
1119
|
+
backfillLocation(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminBackfillLocationResponse>>;
|
|
1089
1120
|
/**
|
|
1090
1121
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1091
1122
|
* @summary Create connection bypass
|
|
@@ -1134,6 +1165,13 @@ export declare const AdminConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
1134
1165
|
* AdminConnectionsApi - factory interface
|
|
1135
1166
|
*/
|
|
1136
1167
|
export declare const AdminConnectionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1168
|
+
/**
|
|
1169
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1170
|
+
* @summary Backfill missing location data
|
|
1171
|
+
* @param {*} [options] Override http request option.
|
|
1172
|
+
* @throws {RequiredError}
|
|
1173
|
+
*/
|
|
1174
|
+
backfillLocation(options?: RawAxiosRequestConfig): AxiosPromise<AdminBackfillLocationResponse>;
|
|
1137
1175
|
/**
|
|
1138
1176
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1139
1177
|
* @summary Create connection bypass
|
|
@@ -1182,6 +1220,13 @@ export declare const AdminConnectionsApiFactory: (configuration?: Configuration,
|
|
|
1182
1220
|
* AdminConnectionsApi - object-oriented interface
|
|
1183
1221
|
*/
|
|
1184
1222
|
export declare class AdminConnectionsApi extends BaseAPI {
|
|
1223
|
+
/**
|
|
1224
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
1225
|
+
* @summary Backfill missing location data
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
*/
|
|
1229
|
+
backfillLocation(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminBackfillLocationResponse, any, {}>>;
|
|
1185
1230
|
/**
|
|
1186
1231
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
1187
1232
|
* @summary Create connection bypass
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 3.2.
|
|
7
|
+
* The version of the OpenAPI document: 3.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -581,6 +581,35 @@ export class AdminClientCredentialsApi extends BaseAPI {
|
|
|
581
581
|
*/
|
|
582
582
|
export const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
583
583
|
return {
|
|
584
|
+
/**
|
|
585
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
586
|
+
* @summary Backfill missing location data
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
*/
|
|
590
|
+
backfillLocation: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
591
|
+
const localVarPath = `/admin/connection/backfill-location`;
|
|
592
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
593
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
594
|
+
let baseOptions;
|
|
595
|
+
if (configuration) {
|
|
596
|
+
baseOptions = configuration.baseOptions;
|
|
597
|
+
}
|
|
598
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
599
|
+
const localVarHeaderParameter = {};
|
|
600
|
+
const localVarQueryParameter = {};
|
|
601
|
+
// authentication DiscordAuth required
|
|
602
|
+
// http bearer authentication required
|
|
603
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
604
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
605
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
606
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
607
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
608
|
+
return {
|
|
609
|
+
url: toPathString(localVarUrlObj),
|
|
610
|
+
options: localVarRequestOptions,
|
|
611
|
+
};
|
|
612
|
+
}),
|
|
584
613
|
/**
|
|
585
614
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
586
615
|
* @summary Create connection bypass
|
|
@@ -766,6 +795,21 @@ export const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
766
795
|
export const AdminConnectionsApiFp = function (configuration) {
|
|
767
796
|
const localVarAxiosParamCreator = AdminConnectionsApiAxiosParamCreator(configuration);
|
|
768
797
|
return {
|
|
798
|
+
/**
|
|
799
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
800
|
+
* @summary Backfill missing location data
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
*/
|
|
804
|
+
backfillLocation(options) {
|
|
805
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
806
|
+
var _a, _b, _c;
|
|
807
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.backfillLocation(options);
|
|
808
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
809
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectionsApi.backfillLocation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
810
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
811
|
+
});
|
|
812
|
+
},
|
|
769
813
|
/**
|
|
770
814
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
771
815
|
* @summary Create connection bypass
|
|
@@ -849,6 +893,15 @@ export const AdminConnectionsApiFp = function (configuration) {
|
|
|
849
893
|
export const AdminConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
850
894
|
const localVarFp = AdminConnectionsApiFp(configuration);
|
|
851
895
|
return {
|
|
896
|
+
/**
|
|
897
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
898
|
+
* @summary Backfill missing location data
|
|
899
|
+
* @param {*} [options] Override http request option.
|
|
900
|
+
* @throws {RequiredError}
|
|
901
|
+
*/
|
|
902
|
+
backfillLocation(options) {
|
|
903
|
+
return localVarFp.backfillLocation(options).then((request) => request(axios, basePath));
|
|
904
|
+
},
|
|
852
905
|
/**
|
|
853
906
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
854
907
|
* @summary Create connection bypass
|
|
@@ -906,6 +959,15 @@ export const AdminConnectionsApiFactory = function (configuration, basePath, axi
|
|
|
906
959
|
* AdminConnectionsApi - object-oriented interface
|
|
907
960
|
*/
|
|
908
961
|
export class AdminConnectionsApi extends BaseAPI {
|
|
962
|
+
/**
|
|
963
|
+
* Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
964
|
+
* @summary Backfill missing location data
|
|
965
|
+
* @param {*} [options] Override http request option.
|
|
966
|
+
* @throws {RequiredError}
|
|
967
|
+
*/
|
|
968
|
+
backfillLocation(options) {
|
|
969
|
+
return AdminConnectionsApiFp(this.configuration).backfillLocation(options).then((request) => request(this.axios, this.basePath));
|
|
970
|
+
}
|
|
909
971
|
/**
|
|
910
972
|
* Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
|
|
911
973
|
* @summary Create connection bypass
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 3.2.
|
|
7
|
+
* The version of the OpenAPI document: 3.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 3.2.
|
|
7
|
+
* The version of the OpenAPI document: 3.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Reborn API
|
|
4
4
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 3.2.
|
|
6
|
+
* The version of the OpenAPI document: 3.2.1
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 3.2.
|
|
7
|
+
* The version of the OpenAPI document: 3.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reborn API
|
|
3
3
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.2.
|
|
5
|
+
* The version of the OpenAPI document: 3.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Reborn API
|
|
6
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 - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.2.
|
|
8
|
+
* The version of the OpenAPI document: 3.2.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AdminBackfillLocationResponse
|
|
2
|
+
|
|
3
|
+
Result of a location backfill run — rechecks every connection_check row missing both city and country, repopulating them from the VPN providers.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**processed** | **number** | Total checks attempted | [default to undefined]
|
|
10
|
+
**succeeded** | **number** | Checks where the provider returned at least a city or country | [default to undefined]
|
|
11
|
+
**failed** | **number** | Checks that errored or returned no location data | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AdminBackfillLocationResponse } from '@rebornteam/reborn-api';
|
|
17
|
+
|
|
18
|
+
const instance: AdminBackfillLocationResponse = {
|
|
19
|
+
processed,
|
|
20
|
+
succeeded,
|
|
21
|
+
failed,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -4,11 +4,58 @@ All URIs are relative to *https://api.smsh.sh*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**backfillLocation**](#backfilllocation) | **POST** /admin/connection/backfill-location | Backfill missing location data|
|
|
7
8
|
|[**createBypass**](#createbypass) | **POST** /admin/connection/bypass | Create connection bypass|
|
|
8
9
|
|[**listAllConnections**](#listallconnections) | **GET** /admin/connection | List all connections (paginated)|
|
|
9
10
|
|[**listConnections**](#listconnections) | **GET** /admin/connection/recent | List recent connections|
|
|
10
11
|
|[**recheckService**](#recheckservice) | **POST** /admin/connection/{connectionId}/recheck/{service} | Refresh a single VPN check|
|
|
11
12
|
|
|
13
|
+
# **backfillLocation**
|
|
14
|
+
> AdminBackfillLocationResponse backfillLocation()
|
|
15
|
+
|
|
16
|
+
Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
AdminConnectionsApi,
|
|
23
|
+
Configuration
|
|
24
|
+
} from '@rebornteam/reborn-api';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new AdminConnectionsApi(configuration);
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.backfillLocation();
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
This endpoint does not have any parameters.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Return type
|
|
37
|
+
|
|
38
|
+
**AdminBackfillLocationResponse**
|
|
39
|
+
|
|
40
|
+
### Authorization
|
|
41
|
+
|
|
42
|
+
[DiscordAuth](../README.md#DiscordAuth)
|
|
43
|
+
|
|
44
|
+
### HTTP request headers
|
|
45
|
+
|
|
46
|
+
- **Content-Type**: Not defined
|
|
47
|
+
- **Accept**: application/json
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### HTTP response details
|
|
51
|
+
| Status code | Description | Response headers |
|
|
52
|
+
|-------------|-------------|------------------|
|
|
53
|
+
|**200** | Backfill completed | - |
|
|
54
|
+
|**401** | Unauthorized - Authentication required | - |
|
|
55
|
+
|**403** | Forbidden - Moderator role required | - |
|
|
56
|
+
|
|
57
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
58
|
+
|
|
12
59
|
# **createBypass**
|
|
13
60
|
> AdminConnectionBypassResponse createBypass(createBypassRequest)
|
|
14
61
|
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 3.2.
|
|
7
|
+
* The version of the OpenAPI document: 3.2.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|