@takaro/apiclient 0.0.0-dev.7ef2191 → 0.0.0-dev.814dfa1
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/dist/generated/api.d.ts +529 -0
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +184 -0
- package/dist/generated/api.js.map +1 -1
- package/dist/lib/baseClient.d.ts.map +1 -1
- package/dist/lib/baseClient.js +6 -1
- package/dist/lib/baseClient.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/api.ts +652 -0
- package/src/lib/baseClient.ts +7 -1
package/dist/generated/api.js
CHANGED
|
@@ -154,6 +154,52 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
154
154
|
PlayerDeath: 'player-death',
|
|
155
155
|
EntityKilled: 'entity-killed',
|
|
156
156
|
};
|
|
157
|
+
export const EventExploreFiltersDTOEventNameEnum = {
|
|
158
|
+
RoleAssigned: 'role-assigned',
|
|
159
|
+
RoleRemoved: 'role-removed',
|
|
160
|
+
RoleCreated: 'role-created',
|
|
161
|
+
RoleUpdated: 'role-updated',
|
|
162
|
+
RoleDeleted: 'role-deleted',
|
|
163
|
+
CommandExecuted: 'command-executed',
|
|
164
|
+
CommandExecutionDenied: 'command-execution-denied',
|
|
165
|
+
HookExecuted: 'hook-executed',
|
|
166
|
+
CronjobExecuted: 'cronjob-executed',
|
|
167
|
+
CurrencyAdded: 'currency-added',
|
|
168
|
+
CurrencyDeducted: 'currency-deducted',
|
|
169
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
170
|
+
SettingsSet: 'settings-set',
|
|
171
|
+
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
172
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
173
|
+
ServerStatusChanged: 'server-status-changed',
|
|
174
|
+
ModuleCreated: 'module-created',
|
|
175
|
+
ModuleUpdated: 'module-updated',
|
|
176
|
+
ModuleDeleted: 'module-deleted',
|
|
177
|
+
ModuleInstalled: 'module-installed',
|
|
178
|
+
ModuleUninstalled: 'module-uninstalled',
|
|
179
|
+
PlayerCreated: 'player-created',
|
|
180
|
+
ShopListingCreated: 'shop-listing-created',
|
|
181
|
+
ShopListingUpdated: 'shop-listing-updated',
|
|
182
|
+
ShopListingDeleted: 'shop-listing-deleted',
|
|
183
|
+
ShopOrderCreated: 'shop-order-created',
|
|
184
|
+
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
185
|
+
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
186
|
+
PlayerLinked: 'player-linked',
|
|
187
|
+
GameserverCreated: 'gameserver-created',
|
|
188
|
+
GameserverUpdated: 'gameserver-updated',
|
|
189
|
+
GameserverDeleted: 'gameserver-deleted',
|
|
190
|
+
PlayerBanned: 'player-banned',
|
|
191
|
+
PlayerUnbanned: 'player-unbanned',
|
|
192
|
+
PlayerDeleted: 'player-deleted',
|
|
193
|
+
ShopActionExecuted: 'shop-action-executed',
|
|
194
|
+
PlayerInventoryChanged: 'player-inventory-changed',
|
|
195
|
+
EventRateLimited: 'event-rate-limited',
|
|
196
|
+
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
197
|
+
PlayerConnected: 'player-connected',
|
|
198
|
+
PlayerDisconnected: 'player-disconnected',
|
|
199
|
+
ChatMessage: 'chat-message',
|
|
200
|
+
PlayerDeath: 'player-death',
|
|
201
|
+
EntityKilled: 'entity-killed',
|
|
202
|
+
};
|
|
157
203
|
export const EventOutputDTOEventNameEnum = {
|
|
158
204
|
RoleAssigned: 'role-assigned',
|
|
159
205
|
RoleRemoved: 'role-removed',
|
|
@@ -256,6 +302,10 @@ export const EventSearchInputDTOSortDirectionEnum = {
|
|
|
256
302
|
Asc: 'asc',
|
|
257
303
|
Desc: 'desc',
|
|
258
304
|
};
|
|
305
|
+
export const EventVolumeInputDTOGroupByEnum = {
|
|
306
|
+
EventName: 'eventName',
|
|
307
|
+
GameServerId: 'gameServerId',
|
|
308
|
+
};
|
|
259
309
|
export const FunctionSearchInputDTOExtendEnum = {
|
|
260
310
|
Version: 'version',
|
|
261
311
|
CronJob: 'cronJob',
|
|
@@ -6743,6 +6793,64 @@ export const EventApiAxiosParamCreator = function (configuration) {
|
|
|
6743
6793
|
options: localVarRequestOptions,
|
|
6744
6794
|
};
|
|
6745
6795
|
},
|
|
6796
|
+
/**
|
|
6797
|
+
* Cursor-paginated event search powered by ClickHouse. Rows are hydrated with current entity names (player, gameserver, module, user) from Postgres. Use the returned `nextCursor` to fetch older events; pass `cursor: null` (or omit) to start from the newest. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExplore`
|
|
6798
|
+
* @summary Explore events (ClickHouse-backed)
|
|
6799
|
+
* @param {EventExploreInputDTO} [eventExploreInputDTO] EventExploreInputDTO
|
|
6800
|
+
* @param {*} [options] Override http request option.
|
|
6801
|
+
* @throws {RequiredError}
|
|
6802
|
+
*/
|
|
6803
|
+
eventControllerExplore: async (eventExploreInputDTO, options = {}) => {
|
|
6804
|
+
const localVarPath = `/event/explore`;
|
|
6805
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6806
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6807
|
+
let baseOptions;
|
|
6808
|
+
if (configuration) {
|
|
6809
|
+
baseOptions = configuration.baseOptions;
|
|
6810
|
+
}
|
|
6811
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6812
|
+
const localVarHeaderParameter = {};
|
|
6813
|
+
const localVarQueryParameter = {};
|
|
6814
|
+
// authentication domainAuth required
|
|
6815
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6816
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6818
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6819
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventExploreInputDTO, localVarRequestOptions, configuration);
|
|
6820
|
+
return {
|
|
6821
|
+
url: toPathString(localVarUrlObj),
|
|
6822
|
+
options: localVarRequestOptions,
|
|
6823
|
+
};
|
|
6824
|
+
},
|
|
6825
|
+
/**
|
|
6826
|
+
* Returns time-bucketed event counts, optionally stacked by event name or game server. Accepts the same filter shape as `/event/explore` so the graph matches the stream. Bucket size adapts to the range. Caches preset-period queries with empty filters/metaFilters. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExploreVolume`
|
|
6827
|
+
* @summary Get event volume time-series with optional grouping
|
|
6828
|
+
* @param {EventVolumeInputDTO} [eventVolumeInputDTO] EventVolumeInputDTO
|
|
6829
|
+
* @param {*} [options] Override http request option.
|
|
6830
|
+
* @throws {RequiredError}
|
|
6831
|
+
*/
|
|
6832
|
+
eventControllerExploreVolume: async (eventVolumeInputDTO, options = {}) => {
|
|
6833
|
+
const localVarPath = `/event/explore/volume`;
|
|
6834
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6835
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6836
|
+
let baseOptions;
|
|
6837
|
+
if (configuration) {
|
|
6838
|
+
baseOptions = configuration.baseOptions;
|
|
6839
|
+
}
|
|
6840
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6841
|
+
const localVarHeaderParameter = {};
|
|
6842
|
+
const localVarQueryParameter = {};
|
|
6843
|
+
// authentication domainAuth required
|
|
6844
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6845
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6846
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6847
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6848
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventVolumeInputDTO, localVarRequestOptions, configuration);
|
|
6849
|
+
return {
|
|
6850
|
+
url: toPathString(localVarUrlObj),
|
|
6851
|
+
options: localVarRequestOptions,
|
|
6852
|
+
};
|
|
6853
|
+
},
|
|
6746
6854
|
/**
|
|
6747
6855
|
* Export events matching the search criteria to CSV format. Accepts the same parameters as the search endpoint. Maximum time range is 90 days. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExport`
|
|
6748
6856
|
* @summary Export events to CSV
|
|
@@ -6881,6 +6989,32 @@ export const EventApiFp = function (configuration) {
|
|
|
6881
6989
|
const localVarOperationServerBasePath = operationServerMap['EventApi.eventControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
6882
6990
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6883
6991
|
},
|
|
6992
|
+
/**
|
|
6993
|
+
* Cursor-paginated event search powered by ClickHouse. Rows are hydrated with current entity names (player, gameserver, module, user) from Postgres. Use the returned `nextCursor` to fetch older events; pass `cursor: null` (or omit) to start from the newest. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExplore`
|
|
6994
|
+
* @summary Explore events (ClickHouse-backed)
|
|
6995
|
+
* @param {EventExploreInputDTO} [eventExploreInputDTO] EventExploreInputDTO
|
|
6996
|
+
* @param {*} [options] Override http request option.
|
|
6997
|
+
* @throws {RequiredError}
|
|
6998
|
+
*/
|
|
6999
|
+
async eventControllerExplore(eventExploreInputDTO, options) {
|
|
7000
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerExplore(eventExploreInputDTO, options);
|
|
7001
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7002
|
+
const localVarOperationServerBasePath = operationServerMap['EventApi.eventControllerExplore']?.[localVarOperationServerIndex]?.url;
|
|
7003
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7004
|
+
},
|
|
7005
|
+
/**
|
|
7006
|
+
* Returns time-bucketed event counts, optionally stacked by event name or game server. Accepts the same filter shape as `/event/explore` so the graph matches the stream. Bucket size adapts to the range. Caches preset-period queries with empty filters/metaFilters. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExploreVolume`
|
|
7007
|
+
* @summary Get event volume time-series with optional grouping
|
|
7008
|
+
* @param {EventVolumeInputDTO} [eventVolumeInputDTO] EventVolumeInputDTO
|
|
7009
|
+
* @param {*} [options] Override http request option.
|
|
7010
|
+
* @throws {RequiredError}
|
|
7011
|
+
*/
|
|
7012
|
+
async eventControllerExploreVolume(eventVolumeInputDTO, options) {
|
|
7013
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerExploreVolume(eventVolumeInputDTO, options);
|
|
7014
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7015
|
+
const localVarOperationServerBasePath = operationServerMap['EventApi.eventControllerExploreVolume']?.[localVarOperationServerIndex]?.url;
|
|
7016
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7017
|
+
},
|
|
6884
7018
|
/**
|
|
6885
7019
|
* Export events matching the search criteria to CSV format. Accepts the same parameters as the search endpoint. Maximum time range is 90 days. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExport`
|
|
6886
7020
|
* @summary Export events to CSV
|
|
@@ -6952,6 +7086,30 @@ export const EventApiFactory = function (configuration, basePath, axios) {
|
|
|
6952
7086
|
eventControllerCreate(eventCreateDTO, options) {
|
|
6953
7087
|
return localVarFp.eventControllerCreate(eventCreateDTO, options).then((request) => request(axios, basePath));
|
|
6954
7088
|
},
|
|
7089
|
+
/**
|
|
7090
|
+
* Cursor-paginated event search powered by ClickHouse. Rows are hydrated with current entity names (player, gameserver, module, user) from Postgres. Use the returned `nextCursor` to fetch older events; pass `cursor: null` (or omit) to start from the newest. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExplore`
|
|
7091
|
+
* @summary Explore events (ClickHouse-backed)
|
|
7092
|
+
* @param {EventExploreInputDTO} [eventExploreInputDTO] EventExploreInputDTO
|
|
7093
|
+
* @param {*} [options] Override http request option.
|
|
7094
|
+
* @throws {RequiredError}
|
|
7095
|
+
*/
|
|
7096
|
+
eventControllerExplore(eventExploreInputDTO, options) {
|
|
7097
|
+
return localVarFp
|
|
7098
|
+
.eventControllerExplore(eventExploreInputDTO, options)
|
|
7099
|
+
.then((request) => request(axios, basePath));
|
|
7100
|
+
},
|
|
7101
|
+
/**
|
|
7102
|
+
* Returns time-bucketed event counts, optionally stacked by event name or game server. Accepts the same filter shape as `/event/explore` so the graph matches the stream. Bucket size adapts to the range. Caches preset-period queries with empty filters/metaFilters. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExploreVolume`
|
|
7103
|
+
* @summary Get event volume time-series with optional grouping
|
|
7104
|
+
* @param {EventVolumeInputDTO} [eventVolumeInputDTO] EventVolumeInputDTO
|
|
7105
|
+
* @param {*} [options] Override http request option.
|
|
7106
|
+
* @throws {RequiredError}
|
|
7107
|
+
*/
|
|
7108
|
+
eventControllerExploreVolume(eventVolumeInputDTO, options) {
|
|
7109
|
+
return localVarFp
|
|
7110
|
+
.eventControllerExploreVolume(eventVolumeInputDTO, options)
|
|
7111
|
+
.then((request) => request(axios, basePath));
|
|
7112
|
+
},
|
|
6955
7113
|
/**
|
|
6956
7114
|
* Export events matching the search criteria to CSV format. Accepts the same parameters as the search endpoint. Maximum time range is 90 days. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExport`
|
|
6957
7115
|
* @summary Export events to CSV
|
|
@@ -7016,6 +7174,32 @@ export class EventApi extends BaseAPI {
|
|
|
7016
7174
|
.eventControllerCreate(eventCreateDTO, options)
|
|
7017
7175
|
.then((request) => request(this.axios, this.basePath));
|
|
7018
7176
|
}
|
|
7177
|
+
/**
|
|
7178
|
+
* Cursor-paginated event search powered by ClickHouse. Rows are hydrated with current entity names (player, gameserver, module, user) from Postgres. Use the returned `nextCursor` to fetch older events; pass `cursor: null` (or omit) to start from the newest. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExplore`
|
|
7179
|
+
* @summary Explore events (ClickHouse-backed)
|
|
7180
|
+
* @param {EventExploreInputDTO} [eventExploreInputDTO] EventExploreInputDTO
|
|
7181
|
+
* @param {*} [options] Override http request option.
|
|
7182
|
+
* @throws {RequiredError}
|
|
7183
|
+
* @memberof EventApi
|
|
7184
|
+
*/
|
|
7185
|
+
eventControllerExplore(eventExploreInputDTO, options) {
|
|
7186
|
+
return EventApiFp(this.configuration)
|
|
7187
|
+
.eventControllerExplore(eventExploreInputDTO, options)
|
|
7188
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7189
|
+
}
|
|
7190
|
+
/**
|
|
7191
|
+
* Returns time-bucketed event counts, optionally stacked by event name or game server. Accepts the same filter shape as `/event/explore` so the graph matches the stream. Bucket size adapts to the range. Caches preset-period queries with empty filters/metaFilters. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExploreVolume`
|
|
7192
|
+
* @summary Get event volume time-series with optional grouping
|
|
7193
|
+
* @param {EventVolumeInputDTO} [eventVolumeInputDTO] EventVolumeInputDTO
|
|
7194
|
+
* @param {*} [options] Override http request option.
|
|
7195
|
+
* @throws {RequiredError}
|
|
7196
|
+
* @memberof EventApi
|
|
7197
|
+
*/
|
|
7198
|
+
eventControllerExploreVolume(eventVolumeInputDTO, options) {
|
|
7199
|
+
return EventApiFp(this.configuration)
|
|
7200
|
+
.eventControllerExploreVolume(eventVolumeInputDTO, options)
|
|
7201
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7202
|
+
}
|
|
7019
7203
|
/**
|
|
7020
7204
|
* Export events matching the search criteria to CSV format. Accepts the same parameters as the search endpoint. Maximum time range is 90 days. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExport`
|
|
7021
7205
|
* @summary Export events to CSV
|