@seekora-ai/admin-api 1.1.39 → 1.1.41

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/esm/api.d.ts CHANGED
@@ -1430,16 +1430,22 @@ export interface AnalyticsActivityLogEvent {
1430
1430
  'action_type'?: string;
1431
1431
  /**
1432
1432
  *
1433
- * @type {string}
1433
+ * @type {Array<string>}
1434
1434
  * @memberof AnalyticsActivityLogEvent
1435
1435
  */
1436
- 'changed_fields'?: string;
1436
+ 'changed_fields'?: Array<string>;
1437
1437
  /**
1438
1438
  *
1439
1439
  * @type {string}
1440
1440
  * @memberof AnalyticsActivityLogEvent
1441
1441
  */
1442
1442
  'description'?: string;
1443
+ /**
1444
+ *
1445
+ * @type {string}
1446
+ * @memberof AnalyticsActivityLogEvent
1447
+ */
1448
+ 'email'?: string;
1443
1449
  /**
1444
1450
  *
1445
1451
  * @type {string}
@@ -1466,16 +1472,20 @@ export interface AnalyticsActivityLogEvent {
1466
1472
  'resource_type'?: string;
1467
1473
  /**
1468
1474
  *
1469
- * @type {string}
1475
+ * @type {{ [key: string]: any; }}
1470
1476
  * @memberof AnalyticsActivityLogEvent
1471
1477
  */
1472
- 'state_after'?: string;
1478
+ 'state_after'?: {
1479
+ [key: string]: any;
1480
+ };
1473
1481
  /**
1474
1482
  *
1475
- * @type {string}
1483
+ * @type {{ [key: string]: any; }}
1476
1484
  * @memberof AnalyticsActivityLogEvent
1477
1485
  */
1478
- 'state_before'?: string;
1486
+ 'state_before'?: {
1487
+ [key: string]: any;
1488
+ };
1479
1489
  /**
1480
1490
  *
1481
1491
  * @type {string}
@@ -1488,6 +1498,12 @@ export interface AnalyticsActivityLogEvent {
1488
1498
  * @memberof AnalyticsActivityLogEvent
1489
1499
  */
1490
1500
  'user_agent'?: string;
1501
+ /**
1502
+ * NEW: User identity extracted from event payload
1503
+ * @type {string}
1504
+ * @memberof AnalyticsActivityLogEvent
1505
+ */
1506
+ 'username'?: string;
1491
1507
  }
1492
1508
  /**
1493
1509
  *
@@ -26184,16 +26200,19 @@ export declare class AccountSettingsApi extends BaseAPI {
26184
26200
  */
26185
26201
  export declare const ActivityLogsApiAxiosParamCreator: (configuration?: Configuration) => {
26186
26202
  /**
26187
- * Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
26203
+ * Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
26188
26204
  * @summary Get Activity Logs
26189
26205
  * @param {string} [startDate] Start date (ISO 8601 format)
26190
26206
  * @param {string} [endDate] End date (ISO 8601 format)
26207
+ * @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
26208
+ * @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
26209
+ * @param {string} [entity] Entity type filter
26191
26210
  * @param {number} [page] Page number (default: 1)
26192
26211
  * @param {number} [perPage] Results per page (default: 50, max: 1000)
26193
26212
  * @param {*} [options] Override http request option.
26194
26213
  * @throws {RequiredError}
26195
26214
  */
26196
- analyticsActivityLogsGet: (startDate?: string, endDate?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26215
+ analyticsActivityLogsGet: (startDate?: string, endDate?: string, search?: string, action?: AnalyticsActivityLogsGetActionEnum, entity?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26197
26216
  };
26198
26217
  /**
26199
26218
  * ActivityLogsApi - functional programming interface
@@ -26201,16 +26220,19 @@ export declare const ActivityLogsApiAxiosParamCreator: (configuration?: Configur
26201
26220
  */
26202
26221
  export declare const ActivityLogsApiFp: (configuration?: Configuration) => {
26203
26222
  /**
26204
- * Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
26223
+ * Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
26205
26224
  * @summary Get Activity Logs
26206
26225
  * @param {string} [startDate] Start date (ISO 8601 format)
26207
26226
  * @param {string} [endDate] End date (ISO 8601 format)
26227
+ * @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
26228
+ * @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
26229
+ * @param {string} [entity] Entity type filter
26208
26230
  * @param {number} [page] Page number (default: 1)
26209
26231
  * @param {number} [perPage] Results per page (default: 50, max: 1000)
26210
26232
  * @param {*} [options] Override http request option.
26211
26233
  * @throws {RequiredError}
26212
26234
  */
26213
- analyticsActivityLogsGet(startDate?: string, endDate?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsActivityLogResponse>>;
26235
+ analyticsActivityLogsGet(startDate?: string, endDate?: string, search?: string, action?: AnalyticsActivityLogsGetActionEnum, entity?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsActivityLogResponse>>;
26214
26236
  };
26215
26237
  /**
26216
26238
  * ActivityLogsApi - factory interface
@@ -26218,16 +26240,19 @@ export declare const ActivityLogsApiFp: (configuration?: Configuration) => {
26218
26240
  */
26219
26241
  export declare const ActivityLogsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
26220
26242
  /**
26221
- * Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
26243
+ * Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
26222
26244
  * @summary Get Activity Logs
26223
26245
  * @param {string} [startDate] Start date (ISO 8601 format)
26224
26246
  * @param {string} [endDate] End date (ISO 8601 format)
26247
+ * @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
26248
+ * @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
26249
+ * @param {string} [entity] Entity type filter
26225
26250
  * @param {number} [page] Page number (default: 1)
26226
26251
  * @param {number} [perPage] Results per page (default: 50, max: 1000)
26227
26252
  * @param {*} [options] Override http request option.
26228
26253
  * @throws {RequiredError}
26229
26254
  */
26230
- analyticsActivityLogsGet(startDate?: string, endDate?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsActivityLogResponse>;
26255
+ analyticsActivityLogsGet(startDate?: string, endDate?: string, search?: string, action?: AnalyticsActivityLogsGetActionEnum, entity?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsActivityLogResponse>;
26231
26256
  };
26232
26257
  /**
26233
26258
  * ActivityLogsApi - object-oriented interface
@@ -26237,18 +26262,31 @@ export declare const ActivityLogsApiFactory: (configuration?: Configuration, bas
26237
26262
  */
26238
26263
  export declare class ActivityLogsApi extends BaseAPI {
26239
26264
  /**
26240
- * Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
26265
+ * Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
26241
26266
  * @summary Get Activity Logs
26242
26267
  * @param {string} [startDate] Start date (ISO 8601 format)
26243
26268
  * @param {string} [endDate] End date (ISO 8601 format)
26269
+ * @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
26270
+ * @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
26271
+ * @param {string} [entity] Entity type filter
26244
26272
  * @param {number} [page] Page number (default: 1)
26245
26273
  * @param {number} [perPage] Results per page (default: 50, max: 1000)
26246
26274
  * @param {*} [options] Override http request option.
26247
26275
  * @throws {RequiredError}
26248
26276
  * @memberof ActivityLogsApi
26249
26277
  */
26250
- analyticsActivityLogsGet(startDate?: string, endDate?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsActivityLogResponse, any, {}>>;
26278
+ analyticsActivityLogsGet(startDate?: string, endDate?: string, search?: string, action?: AnalyticsActivityLogsGetActionEnum, entity?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsActivityLogResponse, any, {}>>;
26251
26279
  }
26280
+ /**
26281
+ * @export
26282
+ */
26283
+ export declare const AnalyticsActivityLogsGetActionEnum: {
26284
+ readonly Create: "create";
26285
+ readonly Update: "update";
26286
+ readonly Delete: "delete";
26287
+ readonly Upload: "upload";
26288
+ };
26289
+ export type AnalyticsActivityLogsGetActionEnum = typeof AnalyticsActivityLogsGetActionEnum[keyof typeof AnalyticsActivityLogsGetActionEnum];
26252
26290
  /**
26253
26291
  * AdminAnalyticsApi - axios parameter creator
26254
26292
  * @export
@@ -29392,6 +29430,15 @@ export declare const AnalyticsRulesApiAxiosParamCreator: (configuration?: Config
29392
29430
  * @throws {RequiredError}
29393
29431
  */
29394
29432
  adminV1AnalyticsRulesPost: (authorization: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29433
+ /**
29434
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
29435
+ * @summary Delete Analytics Rule
29436
+ * @param {string} authorization Bearer JWT token
29437
+ * @param {string} ruleId Rule ID
29438
+ * @param {*} [options] Override http request option.
29439
+ * @throws {RequiredError}
29440
+ */
29441
+ adminV1AnalyticsRulesRuleIdDelete: (authorization: string, ruleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29395
29442
  /**
29396
29443
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
29397
29444
  * @summary Get Analytics Rule
@@ -29469,6 +29516,16 @@ export declare const AnalyticsRulesApiAxiosParamCreator: (configuration?: Config
29469
29516
  * @throws {RequiredError}
29470
29517
  */
29471
29518
  adminV1StoresXstoreidAnalyticsRulesPost: (authorization: string, xstoreid: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29519
+ /**
29520
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
29521
+ * @summary Delete Analytics Rule
29522
+ * @param {string} authorization Bearer JWT token
29523
+ * @param {string} xstoreid Store ID (for store-specific routes)
29524
+ * @param {string} ruleId Rule ID
29525
+ * @param {*} [options] Override http request option.
29526
+ * @throws {RequiredError}
29527
+ */
29528
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete: (authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29472
29529
  /**
29473
29530
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
29474
29531
  * @summary Get Analytics Rule
@@ -29533,6 +29590,17 @@ export declare const AnalyticsRulesApiFp: (configuration?: Configuration) => {
29533
29590
  * @throws {RequiredError}
29534
29591
  */
29535
29592
  adminV1AnalyticsRulesPost(authorization: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleResponse>>;
29593
+ /**
29594
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
29595
+ * @summary Delete Analytics Rule
29596
+ * @param {string} authorization Bearer JWT token
29597
+ * @param {string} ruleId Rule ID
29598
+ * @param {*} [options] Override http request option.
29599
+ * @throws {RequiredError}
29600
+ */
29601
+ adminV1AnalyticsRulesRuleIdDelete(authorization: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
29602
+ [key: string]: any;
29603
+ }>>;
29536
29604
  /**
29537
29605
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
29538
29606
  * @summary Get Analytics Rule
@@ -29610,6 +29678,18 @@ export declare const AnalyticsRulesApiFp: (configuration?: Configuration) => {
29610
29678
  * @throws {RequiredError}
29611
29679
  */
29612
29680
  adminV1StoresXstoreidAnalyticsRulesPost(authorization: string, xstoreid: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesAnalyticsRuleResponse>>;
29681
+ /**
29682
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
29683
+ * @summary Delete Analytics Rule
29684
+ * @param {string} authorization Bearer JWT token
29685
+ * @param {string} xstoreid Store ID (for store-specific routes)
29686
+ * @param {string} ruleId Rule ID
29687
+ * @param {*} [options] Override http request option.
29688
+ * @throws {RequiredError}
29689
+ */
29690
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
29691
+ [key: string]: any;
29692
+ }>>;
29613
29693
  /**
29614
29694
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
29615
29695
  * @summary Get Analytics Rule
@@ -29674,6 +29754,17 @@ export declare const AnalyticsRulesApiFactory: (configuration?: Configuration, b
29674
29754
  * @throws {RequiredError}
29675
29755
  */
29676
29756
  adminV1AnalyticsRulesPost(authorization: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse>;
29757
+ /**
29758
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
29759
+ * @summary Delete Analytics Rule
29760
+ * @param {string} authorization Bearer JWT token
29761
+ * @param {string} ruleId Rule ID
29762
+ * @param {*} [options] Override http request option.
29763
+ * @throws {RequiredError}
29764
+ */
29765
+ adminV1AnalyticsRulesRuleIdDelete(authorization: string, ruleId: string, options?: RawAxiosRequestConfig): AxiosPromise<{
29766
+ [key: string]: any;
29767
+ }>;
29677
29768
  /**
29678
29769
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
29679
29770
  * @summary Get Analytics Rule
@@ -29751,6 +29842,18 @@ export declare const AnalyticsRulesApiFactory: (configuration?: Configuration, b
29751
29842
  * @throws {RequiredError}
29752
29843
  */
29753
29844
  adminV1StoresXstoreidAnalyticsRulesPost(authorization: string, xstoreid: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse>;
29845
+ /**
29846
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
29847
+ * @summary Delete Analytics Rule
29848
+ * @param {string} authorization Bearer JWT token
29849
+ * @param {string} xstoreid Store ID (for store-specific routes)
29850
+ * @param {string} ruleId Rule ID
29851
+ * @param {*} [options] Override http request option.
29852
+ * @throws {RequiredError}
29853
+ */
29854
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig): AxiosPromise<{
29855
+ [key: string]: any;
29856
+ }>;
29754
29857
  /**
29755
29858
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
29756
29859
  * @summary Get Analytics Rule
@@ -29819,6 +29922,18 @@ export declare class AnalyticsRulesApi extends BaseAPI {
29819
29922
  * @memberof AnalyticsRulesApi
29820
29923
  */
29821
29924
  adminV1AnalyticsRulesPost(authorization: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesAnalyticsRuleResponse, any, {}>>;
29925
+ /**
29926
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
29927
+ * @summary Delete Analytics Rule
29928
+ * @param {string} authorization Bearer JWT token
29929
+ * @param {string} ruleId Rule ID
29930
+ * @param {*} [options] Override http request option.
29931
+ * @throws {RequiredError}
29932
+ * @memberof AnalyticsRulesApi
29933
+ */
29934
+ adminV1AnalyticsRulesRuleIdDelete(authorization: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
29935
+ [key: string]: any;
29936
+ }, any, {}>>;
29822
29937
  /**
29823
29938
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
29824
29939
  * @summary Get Analytics Rule
@@ -29903,6 +30018,19 @@ export declare class AnalyticsRulesApi extends BaseAPI {
29903
30018
  * @memberof AnalyticsRulesApi
29904
30019
  */
29905
30020
  adminV1StoresXstoreidAnalyticsRulesPost(authorization: string, xstoreid: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesAnalyticsRuleResponse, any, {}>>;
30021
+ /**
30022
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
30023
+ * @summary Delete Analytics Rule
30024
+ * @param {string} authorization Bearer JWT token
30025
+ * @param {string} xstoreid Store ID (for store-specific routes)
30026
+ * @param {string} ruleId Rule ID
30027
+ * @param {*} [options] Override http request option.
30028
+ * @throws {RequiredError}
30029
+ * @memberof AnalyticsRulesApi
30030
+ */
30031
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
30032
+ [key: string]: any;
30033
+ }, any, {}>>;
29906
30034
  /**
29907
30035
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
29908
30036
  * @summary Get Analytics Rule
package/dist/esm/api.js CHANGED
@@ -1202,16 +1202,19 @@ export class AccountSettingsApi extends BaseAPI {
1202
1202
  export const ActivityLogsApiAxiosParamCreator = function (configuration) {
1203
1203
  return {
1204
1204
  /**
1205
- * Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
1205
+ * Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
1206
1206
  * @summary Get Activity Logs
1207
1207
  * @param {string} [startDate] Start date (ISO 8601 format)
1208
1208
  * @param {string} [endDate] End date (ISO 8601 format)
1209
+ * @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
1210
+ * @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
1211
+ * @param {string} [entity] Entity type filter
1209
1212
  * @param {number} [page] Page number (default: 1)
1210
1213
  * @param {number} [perPage] Results per page (default: 50, max: 1000)
1211
1214
  * @param {*} [options] Override http request option.
1212
1215
  * @throws {RequiredError}
1213
1216
  */
1214
- analyticsActivityLogsGet: (startDate_1, endDate_1, page_1, perPage_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, page_1, perPage_1, ...args_1], void 0, function* (startDate, endDate, page, perPage, options = {}) {
1217
+ analyticsActivityLogsGet: (startDate_1, endDate_1, search_1, action_1, entity_1, page_1, perPage_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, search_1, action_1, entity_1, page_1, perPage_1, ...args_1], void 0, function* (startDate, endDate, search, action, entity, page, perPage, options = {}) {
1215
1218
  const localVarPath = `/analytics/activity-logs`;
1216
1219
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1217
1220
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1230,6 +1233,15 @@ export const ActivityLogsApiAxiosParamCreator = function (configuration) {
1230
1233
  if (endDate !== undefined) {
1231
1234
  localVarQueryParameter['end_date'] = endDate;
1232
1235
  }
1236
+ if (search !== undefined) {
1237
+ localVarQueryParameter['search'] = search;
1238
+ }
1239
+ if (action !== undefined) {
1240
+ localVarQueryParameter['action'] = action;
1241
+ }
1242
+ if (entity !== undefined) {
1243
+ localVarQueryParameter['entity'] = entity;
1244
+ }
1233
1245
  if (page !== undefined) {
1234
1246
  localVarQueryParameter['page'] = page;
1235
1247
  }
@@ -1254,19 +1266,22 @@ export const ActivityLogsApiFp = function (configuration) {
1254
1266
  const localVarAxiosParamCreator = ActivityLogsApiAxiosParamCreator(configuration);
1255
1267
  return {
1256
1268
  /**
1257
- * Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
1269
+ * Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
1258
1270
  * @summary Get Activity Logs
1259
1271
  * @param {string} [startDate] Start date (ISO 8601 format)
1260
1272
  * @param {string} [endDate] End date (ISO 8601 format)
1273
+ * @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
1274
+ * @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
1275
+ * @param {string} [entity] Entity type filter
1261
1276
  * @param {number} [page] Page number (default: 1)
1262
1277
  * @param {number} [perPage] Results per page (default: 50, max: 1000)
1263
1278
  * @param {*} [options] Override http request option.
1264
1279
  * @throws {RequiredError}
1265
1280
  */
1266
- analyticsActivityLogsGet(startDate, endDate, page, perPage, options) {
1281
+ analyticsActivityLogsGet(startDate, endDate, search, action, entity, page, perPage, options) {
1267
1282
  return __awaiter(this, void 0, void 0, function* () {
1268
1283
  var _a, _b, _c;
1269
- const localVarAxiosArgs = yield localVarAxiosParamCreator.analyticsActivityLogsGet(startDate, endDate, page, perPage, options);
1284
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.analyticsActivityLogsGet(startDate, endDate, search, action, entity, page, perPage, options);
1270
1285
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1271
1286
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ActivityLogsApi.analyticsActivityLogsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1272
1287
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1282,17 +1297,20 @@ export const ActivityLogsApiFactory = function (configuration, basePath, axios)
1282
1297
  const localVarFp = ActivityLogsApiFp(configuration);
1283
1298
  return {
1284
1299
  /**
1285
- * Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
1300
+ * Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
1286
1301
  * @summary Get Activity Logs
1287
1302
  * @param {string} [startDate] Start date (ISO 8601 format)
1288
1303
  * @param {string} [endDate] End date (ISO 8601 format)
1304
+ * @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
1305
+ * @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
1306
+ * @param {string} [entity] Entity type filter
1289
1307
  * @param {number} [page] Page number (default: 1)
1290
1308
  * @param {number} [perPage] Results per page (default: 50, max: 1000)
1291
1309
  * @param {*} [options] Override http request option.
1292
1310
  * @throws {RequiredError}
1293
1311
  */
1294
- analyticsActivityLogsGet(startDate, endDate, page, perPage, options) {
1295
- return localVarFp.analyticsActivityLogsGet(startDate, endDate, page, perPage, options).then((request) => request(axios, basePath));
1312
+ analyticsActivityLogsGet(startDate, endDate, search, action, entity, page, perPage, options) {
1313
+ return localVarFp.analyticsActivityLogsGet(startDate, endDate, search, action, entity, page, perPage, options).then((request) => request(axios, basePath));
1296
1314
  },
1297
1315
  };
1298
1316
  };
@@ -1304,20 +1322,32 @@ export const ActivityLogsApiFactory = function (configuration, basePath, axios)
1304
1322
  */
1305
1323
  export class ActivityLogsApi extends BaseAPI {
1306
1324
  /**
1307
- * Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
1325
+ * Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
1308
1326
  * @summary Get Activity Logs
1309
1327
  * @param {string} [startDate] Start date (ISO 8601 format)
1310
1328
  * @param {string} [endDate] End date (ISO 8601 format)
1329
+ * @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
1330
+ * @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
1331
+ * @param {string} [entity] Entity type filter
1311
1332
  * @param {number} [page] Page number (default: 1)
1312
1333
  * @param {number} [perPage] Results per page (default: 50, max: 1000)
1313
1334
  * @param {*} [options] Override http request option.
1314
1335
  * @throws {RequiredError}
1315
1336
  * @memberof ActivityLogsApi
1316
1337
  */
1317
- analyticsActivityLogsGet(startDate, endDate, page, perPage, options) {
1318
- return ActivityLogsApiFp(this.configuration).analyticsActivityLogsGet(startDate, endDate, page, perPage, options).then((request) => request(this.axios, this.basePath));
1338
+ analyticsActivityLogsGet(startDate, endDate, search, action, entity, page, perPage, options) {
1339
+ return ActivityLogsApiFp(this.configuration).analyticsActivityLogsGet(startDate, endDate, search, action, entity, page, perPage, options).then((request) => request(this.axios, this.basePath));
1319
1340
  }
1320
1341
  }
1342
+ /**
1343
+ * @export
1344
+ */
1345
+ export const AnalyticsActivityLogsGetActionEnum = {
1346
+ Create: 'create',
1347
+ Update: 'update',
1348
+ Delete: 'delete',
1349
+ Upload: 'upload'
1350
+ };
1321
1351
  /**
1322
1352
  * AdminAnalyticsApi - axios parameter creator
1323
1353
  * @export
@@ -6953,6 +6983,43 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
6953
6983
  options: localVarRequestOptions,
6954
6984
  };
6955
6985
  }),
6986
+ /**
6987
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
6988
+ * @summary Delete Analytics Rule
6989
+ * @param {string} authorization Bearer JWT token
6990
+ * @param {string} ruleId Rule ID
6991
+ * @param {*} [options] Override http request option.
6992
+ * @throws {RequiredError}
6993
+ */
6994
+ adminV1AnalyticsRulesRuleIdDelete: (authorization_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, ...args_1], void 0, function* (authorization, ruleId, options = {}) {
6995
+ // verify required parameter 'authorization' is not null or undefined
6996
+ assertParamExists('adminV1AnalyticsRulesRuleIdDelete', 'authorization', authorization);
6997
+ // verify required parameter 'ruleId' is not null or undefined
6998
+ assertParamExists('adminV1AnalyticsRulesRuleIdDelete', 'ruleId', ruleId);
6999
+ const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
7000
+ .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
7001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7002
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7003
+ let baseOptions;
7004
+ if (configuration) {
7005
+ baseOptions = configuration.baseOptions;
7006
+ }
7007
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
7008
+ const localVarHeaderParameter = {};
7009
+ const localVarQueryParameter = {};
7010
+ // authentication BearerAuth required
7011
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7012
+ if (authorization != null) {
7013
+ localVarHeaderParameter['Authorization'] = String(authorization);
7014
+ }
7015
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7016
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7017
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7018
+ return {
7019
+ url: toPathString(localVarUrlObj),
7020
+ options: localVarRequestOptions,
7021
+ };
7022
+ }),
6956
7023
  /**
6957
7024
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
6958
7025
  * @summary Get Analytics Rule
@@ -7272,6 +7339,47 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
7272
7339
  options: localVarRequestOptions,
7273
7340
  };
7274
7341
  }),
7342
+ /**
7343
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
7344
+ * @summary Delete Analytics Rule
7345
+ * @param {string} authorization Bearer JWT token
7346
+ * @param {string} xstoreid Store ID (for store-specific routes)
7347
+ * @param {string} ruleId Rule ID
7348
+ * @param {*} [options] Override http request option.
7349
+ * @throws {RequiredError}
7350
+ */
7351
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete: (authorization_1, xstoreid_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, options = {}) {
7352
+ // verify required parameter 'authorization' is not null or undefined
7353
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'authorization', authorization);
7354
+ // verify required parameter 'xstoreid' is not null or undefined
7355
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'xstoreid', xstoreid);
7356
+ // verify required parameter 'ruleId' is not null or undefined
7357
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'ruleId', ruleId);
7358
+ const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
7359
+ .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
7360
+ .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
7361
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7362
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7363
+ let baseOptions;
7364
+ if (configuration) {
7365
+ baseOptions = configuration.baseOptions;
7366
+ }
7367
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
7368
+ const localVarHeaderParameter = {};
7369
+ const localVarQueryParameter = {};
7370
+ // authentication BearerAuth required
7371
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7372
+ if (authorization != null) {
7373
+ localVarHeaderParameter['Authorization'] = String(authorization);
7374
+ }
7375
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7376
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7377
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7378
+ return {
7379
+ url: toPathString(localVarUrlObj),
7380
+ options: localVarRequestOptions,
7381
+ };
7382
+ }),
7275
7383
  /**
7276
7384
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
7277
7385
  * @summary Get Analytics Rule
@@ -7453,6 +7561,23 @@ export const AnalyticsRulesApiFp = function (configuration) {
7453
7561
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7454
7562
  });
7455
7563
  },
7564
+ /**
7565
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
7566
+ * @summary Delete Analytics Rule
7567
+ * @param {string} authorization Bearer JWT token
7568
+ * @param {string} ruleId Rule ID
7569
+ * @param {*} [options] Override http request option.
7570
+ * @throws {RequiredError}
7571
+ */
7572
+ adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
7573
+ return __awaiter(this, void 0, void 0, function* () {
7574
+ var _a, _b, _c;
7575
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options);
7576
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7577
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7578
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7579
+ });
7580
+ },
7456
7581
  /**
7457
7582
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
7458
7583
  * @summary Get Analytics Rule
@@ -7586,6 +7711,24 @@ export const AnalyticsRulesApiFp = function (configuration) {
7586
7711
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7587
7712
  });
7588
7713
  },
7714
+ /**
7715
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
7716
+ * @summary Delete Analytics Rule
7717
+ * @param {string} authorization Bearer JWT token
7718
+ * @param {string} xstoreid Store ID (for store-specific routes)
7719
+ * @param {string} ruleId Rule ID
7720
+ * @param {*} [options] Override http request option.
7721
+ * @throws {RequiredError}
7722
+ */
7723
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
7724
+ return __awaiter(this, void 0, void 0, function* () {
7725
+ var _a, _b, _c;
7726
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options);
7727
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7728
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7729
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7730
+ });
7731
+ },
7589
7732
  /**
7590
7733
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
7591
7734
  * @summary Get Analytics Rule
@@ -7681,6 +7824,17 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
7681
7824
  adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
7682
7825
  return localVarFp.adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
7683
7826
  },
7827
+ /**
7828
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
7829
+ * @summary Delete Analytics Rule
7830
+ * @param {string} authorization Bearer JWT token
7831
+ * @param {string} ruleId Rule ID
7832
+ * @param {*} [options] Override http request option.
7833
+ * @throws {RequiredError}
7834
+ */
7835
+ adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
7836
+ return localVarFp.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(axios, basePath));
7837
+ },
7684
7838
  /**
7685
7839
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
7686
7840
  * @summary Get Analytics Rule
@@ -7772,6 +7926,18 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
7772
7926
  adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
7773
7927
  return localVarFp.adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
7774
7928
  },
7929
+ /**
7930
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
7931
+ * @summary Delete Analytics Rule
7932
+ * @param {string} authorization Bearer JWT token
7933
+ * @param {string} xstoreid Store ID (for store-specific routes)
7934
+ * @param {string} ruleId Rule ID
7935
+ * @param {*} [options] Override http request option.
7936
+ * @throws {RequiredError}
7937
+ */
7938
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
7939
+ return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
7940
+ },
7775
7941
  /**
7776
7942
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
7777
7943
  * @summary Get Analytics Rule
@@ -7851,6 +8017,18 @@ export class AnalyticsRulesApi extends BaseAPI {
7851
8017
  adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
7852
8018
  return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
7853
8019
  }
8020
+ /**
8021
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
8022
+ * @summary Delete Analytics Rule
8023
+ * @param {string} authorization Bearer JWT token
8024
+ * @param {string} ruleId Rule ID
8025
+ * @param {*} [options] Override http request option.
8026
+ * @throws {RequiredError}
8027
+ * @memberof AnalyticsRulesApi
8028
+ */
8029
+ adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
8030
+ return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
8031
+ }
7854
8032
  /**
7855
8033
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
7856
8034
  * @summary Get Analytics Rule
@@ -7949,6 +8127,19 @@ export class AnalyticsRulesApi extends BaseAPI {
7949
8127
  adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
7950
8128
  return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
7951
8129
  }
8130
+ /**
8131
+ * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
8132
+ * @summary Delete Analytics Rule
8133
+ * @param {string} authorization Bearer JWT token
8134
+ * @param {string} xstoreid Store ID (for store-specific routes)
8135
+ * @param {string} ruleId Rule ID
8136
+ * @param {*} [options] Override http request option.
8137
+ * @throws {RequiredError}
8138
+ * @memberof AnalyticsRulesApi
8139
+ */
8140
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
8141
+ return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
8142
+ }
7952
8143
  /**
7953
8144
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
7954
8145
  * @summary Get Analytics Rule
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.39",
3
+ "version": "1.1.41",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file