@seekora-ai/admin-api 1.0.99 → 1.1.0

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.js CHANGED
@@ -743,6 +743,38 @@ export const AccountSettingsApiAxiosParamCreator = function (configuration) {
743
743
  options: localVarRequestOptions,
744
744
  };
745
745
  }),
746
+ /**
747
+ * Allows user to set password only if not already set (Google/GitHub signup)
748
+ * @summary Set password for OAuth/new user
749
+ * @param {DataTypesSetPasswordRequest} dataTypesSetPasswordRequest Set password request
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ */
753
+ accountSettingsSetPasswordPut: (dataTypesSetPasswordRequest_1, ...args_1) => __awaiter(this, [dataTypesSetPasswordRequest_1, ...args_1], void 0, function* (dataTypesSetPasswordRequest, options = {}) {
754
+ // verify required parameter 'dataTypesSetPasswordRequest' is not null or undefined
755
+ assertParamExists('accountSettingsSetPasswordPut', 'dataTypesSetPasswordRequest', dataTypesSetPasswordRequest);
756
+ const localVarPath = `/account-settings/set-password`;
757
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
758
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
759
+ let baseOptions;
760
+ if (configuration) {
761
+ baseOptions = configuration.baseOptions;
762
+ }
763
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
764
+ const localVarHeaderParameter = {};
765
+ const localVarQueryParameter = {};
766
+ // authentication BearerAuth required
767
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
768
+ localVarHeaderParameter['Content-Type'] = 'application/json';
769
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
770
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
771
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
772
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSetPasswordRequest, localVarRequestOptions, configuration);
773
+ return {
774
+ url: toPathString(localVarUrlObj),
775
+ options: localVarRequestOptions,
776
+ };
777
+ }),
746
778
  };
747
779
  };
748
780
  /**
@@ -861,6 +893,22 @@ export const AccountSettingsApiFp = function (configuration) {
861
893
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
862
894
  });
863
895
  },
896
+ /**
897
+ * Allows user to set password only if not already set (Google/GitHub signup)
898
+ * @summary Set password for OAuth/new user
899
+ * @param {DataTypesSetPasswordRequest} dataTypesSetPasswordRequest Set password request
900
+ * @param {*} [options] Override http request option.
901
+ * @throws {RequiredError}
902
+ */
903
+ accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options) {
904
+ return __awaiter(this, void 0, void 0, function* () {
905
+ var _a, _b, _c;
906
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options);
907
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
908
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountSettingsApi.accountSettingsSetPasswordPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
909
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
910
+ });
911
+ },
864
912
  };
865
913
  };
866
914
  /**
@@ -937,6 +985,16 @@ export const AccountSettingsApiFactory = function (configuration, basePath, axio
937
985
  accountSettingsProfilePut(dataTypesUpdateProfileRequest, options) {
938
986
  return localVarFp.accountSettingsProfilePut(dataTypesUpdateProfileRequest, options).then((request) => request(axios, basePath));
939
987
  },
988
+ /**
989
+ * Allows user to set password only if not already set (Google/GitHub signup)
990
+ * @summary Set password for OAuth/new user
991
+ * @param {DataTypesSetPasswordRequest} dataTypesSetPasswordRequest Set password request
992
+ * @param {*} [options] Override http request option.
993
+ * @throws {RequiredError}
994
+ */
995
+ accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options) {
996
+ return localVarFp.accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options).then((request) => request(axios, basePath));
997
+ },
940
998
  };
941
999
  };
942
1000
  /**
@@ -1020,6 +1078,17 @@ export class AccountSettingsApi extends BaseAPI {
1020
1078
  accountSettingsProfilePut(dataTypesUpdateProfileRequest, options) {
1021
1079
  return AccountSettingsApiFp(this.configuration).accountSettingsProfilePut(dataTypesUpdateProfileRequest, options).then((request) => request(this.axios, this.basePath));
1022
1080
  }
1081
+ /**
1082
+ * Allows user to set password only if not already set (Google/GitHub signup)
1083
+ * @summary Set password for OAuth/new user
1084
+ * @param {DataTypesSetPasswordRequest} dataTypesSetPasswordRequest Set password request
1085
+ * @param {*} [options] Override http request option.
1086
+ * @throws {RequiredError}
1087
+ * @memberof AccountSettingsApi
1088
+ */
1089
+ accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options) {
1090
+ return AccountSettingsApiFp(this.configuration).accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
1091
+ }
1023
1092
  }
1024
1093
  /**
1025
1094
  * AnalyticsApi - axios parameter creator
@@ -2634,6 +2703,112 @@ export const AnalyticsApiAxiosParamCreator = function (configuration) {
2634
2703
  options: localVarRequestOptions,
2635
2704
  };
2636
2705
  }),
2706
+ /**
2707
+ * Retrieve API usage logs from ClickHouse system_events table with filtering and pagination
2708
+ * @summary Get API Usage Logs
2709
+ * @param {string} [startDate] Start date (ISO 8601 format)
2710
+ * @param {string} [endDate] End date (ISO 8601 format)
2711
+ * @param {string} [method] HTTP method filter
2712
+ * @param {string} [path] Path filter (partial match)
2713
+ * @param {string} [storeId] Store ID filter
2714
+ * @param {number} [page] Page number (default: 1)
2715
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
2716
+ * @param {*} [options] Override http request option.
2717
+ * @throws {RequiredError}
2718
+ */
2719
+ analyticsApiUsageGet: (startDate_1, endDate_1, method_1, path_1, storeId_1, page_1, perPage_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, method_1, path_1, storeId_1, page_1, perPage_1, ...args_1], void 0, function* (startDate, endDate, method, path, storeId, page, perPage, options = {}) {
2720
+ const localVarPath = `/analytics/api-usage`;
2721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2722
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2723
+ let baseOptions;
2724
+ if (configuration) {
2725
+ baseOptions = configuration.baseOptions;
2726
+ }
2727
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2728
+ const localVarHeaderParameter = {};
2729
+ const localVarQueryParameter = {};
2730
+ // authentication BearerAuth required
2731
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2732
+ if (startDate !== undefined) {
2733
+ localVarQueryParameter['start_date'] = startDate;
2734
+ }
2735
+ if (endDate !== undefined) {
2736
+ localVarQueryParameter['end_date'] = endDate;
2737
+ }
2738
+ if (method !== undefined) {
2739
+ localVarQueryParameter['method'] = method;
2740
+ }
2741
+ if (path !== undefined) {
2742
+ localVarQueryParameter['path'] = path;
2743
+ }
2744
+ if (storeId !== undefined) {
2745
+ localVarQueryParameter['store_id'] = storeId;
2746
+ }
2747
+ if (page !== undefined) {
2748
+ localVarQueryParameter['page'] = page;
2749
+ }
2750
+ if (perPage !== undefined) {
2751
+ localVarQueryParameter['per_page'] = perPage;
2752
+ }
2753
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2754
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2755
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2756
+ return {
2757
+ url: toPathString(localVarUrlObj),
2758
+ options: localVarRequestOptions,
2759
+ };
2760
+ }),
2761
+ /**
2762
+ * Retrieve API usage logs for a specific store from ClickHouse
2763
+ * @summary Get Store API Usage Logs
2764
+ * @param {string} storeId Store ID
2765
+ * @param {string} [startDate] Start date (ISO 8601 format)
2766
+ * @param {string} [endDate] End date (ISO 8601 format)
2767
+ * @param {string} [method] HTTP method filter
2768
+ * @param {number} [page] Page number (default: 1)
2769
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
2770
+ * @param {*} [options] Override http request option.
2771
+ * @throws {RequiredError}
2772
+ */
2773
+ analyticsApiUsageStoreStoreIdGet: (storeId_1, startDate_1, endDate_1, method_1, page_1, perPage_1, ...args_1) => __awaiter(this, [storeId_1, startDate_1, endDate_1, method_1, page_1, perPage_1, ...args_1], void 0, function* (storeId, startDate, endDate, method, page, perPage, options = {}) {
2774
+ // verify required parameter 'storeId' is not null or undefined
2775
+ assertParamExists('analyticsApiUsageStoreStoreIdGet', 'storeId', storeId);
2776
+ const localVarPath = `/analytics/api-usage/store/{storeId}`
2777
+ .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
2778
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2779
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2780
+ let baseOptions;
2781
+ if (configuration) {
2782
+ baseOptions = configuration.baseOptions;
2783
+ }
2784
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2785
+ const localVarHeaderParameter = {};
2786
+ const localVarQueryParameter = {};
2787
+ // authentication BearerAuth required
2788
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2789
+ if (startDate !== undefined) {
2790
+ localVarQueryParameter['start_date'] = startDate;
2791
+ }
2792
+ if (endDate !== undefined) {
2793
+ localVarQueryParameter['end_date'] = endDate;
2794
+ }
2795
+ if (method !== undefined) {
2796
+ localVarQueryParameter['method'] = method;
2797
+ }
2798
+ if (page !== undefined) {
2799
+ localVarQueryParameter['page'] = page;
2800
+ }
2801
+ if (perPage !== undefined) {
2802
+ localVarQueryParameter['per_page'] = perPage;
2803
+ }
2804
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2805
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2806
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2807
+ return {
2808
+ url: toPathString(localVarUrlObj),
2809
+ options: localVarRequestOptions,
2810
+ };
2811
+ }),
2637
2812
  };
2638
2813
  };
2639
2814
  /**
@@ -3194,6 +3369,49 @@ export const AnalyticsApiFp = function (configuration) {
3194
3369
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3195
3370
  });
3196
3371
  },
3372
+ /**
3373
+ * Retrieve API usage logs from ClickHouse system_events table with filtering and pagination
3374
+ * @summary Get API Usage Logs
3375
+ * @param {string} [startDate] Start date (ISO 8601 format)
3376
+ * @param {string} [endDate] End date (ISO 8601 format)
3377
+ * @param {string} [method] HTTP method filter
3378
+ * @param {string} [path] Path filter (partial match)
3379
+ * @param {string} [storeId] Store ID filter
3380
+ * @param {number} [page] Page number (default: 1)
3381
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
3382
+ * @param {*} [options] Override http request option.
3383
+ * @throws {RequiredError}
3384
+ */
3385
+ analyticsApiUsageGet(startDate, endDate, method, path, storeId, page, perPage, options) {
3386
+ return __awaiter(this, void 0, void 0, function* () {
3387
+ var _a, _b, _c;
3388
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.analyticsApiUsageGet(startDate, endDate, method, path, storeId, page, perPage, options);
3389
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3390
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsApi.analyticsApiUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3391
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3392
+ });
3393
+ },
3394
+ /**
3395
+ * Retrieve API usage logs for a specific store from ClickHouse
3396
+ * @summary Get Store API Usage Logs
3397
+ * @param {string} storeId Store ID
3398
+ * @param {string} [startDate] Start date (ISO 8601 format)
3399
+ * @param {string} [endDate] End date (ISO 8601 format)
3400
+ * @param {string} [method] HTTP method filter
3401
+ * @param {number} [page] Page number (default: 1)
3402
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
3403
+ * @param {*} [options] Override http request option.
3404
+ * @throws {RequiredError}
3405
+ */
3406
+ analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options) {
3407
+ return __awaiter(this, void 0, void 0, function* () {
3408
+ var _a, _b, _c;
3409
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options);
3410
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3411
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsApi.analyticsApiUsageStoreStoreIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3412
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3413
+ });
3414
+ },
3197
3415
  };
3198
3416
  };
3199
3417
  /**
@@ -3646,6 +3864,37 @@ export const AnalyticsApiFactory = function (configuration, basePath, axios) {
3646
3864
  adminAnalyticsStoreXStoreIDTagsSummaryGet(xStoreID, startTime, endTime, limit, offset, page, pageSize, sortBy, sortOrder, sort, options) {
3647
3865
  return localVarFp.adminAnalyticsStoreXStoreIDTagsSummaryGet(xStoreID, startTime, endTime, limit, offset, page, pageSize, sortBy, sortOrder, sort, options).then((request) => request(axios, basePath));
3648
3866
  },
3867
+ /**
3868
+ * Retrieve API usage logs from ClickHouse system_events table with filtering and pagination
3869
+ * @summary Get API Usage Logs
3870
+ * @param {string} [startDate] Start date (ISO 8601 format)
3871
+ * @param {string} [endDate] End date (ISO 8601 format)
3872
+ * @param {string} [method] HTTP method filter
3873
+ * @param {string} [path] Path filter (partial match)
3874
+ * @param {string} [storeId] Store ID filter
3875
+ * @param {number} [page] Page number (default: 1)
3876
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
3877
+ * @param {*} [options] Override http request option.
3878
+ * @throws {RequiredError}
3879
+ */
3880
+ analyticsApiUsageGet(startDate, endDate, method, path, storeId, page, perPage, options) {
3881
+ return localVarFp.analyticsApiUsageGet(startDate, endDate, method, path, storeId, page, perPage, options).then((request) => request(axios, basePath));
3882
+ },
3883
+ /**
3884
+ * Retrieve API usage logs for a specific store from ClickHouse
3885
+ * @summary Get Store API Usage Logs
3886
+ * @param {string} storeId Store ID
3887
+ * @param {string} [startDate] Start date (ISO 8601 format)
3888
+ * @param {string} [endDate] End date (ISO 8601 format)
3889
+ * @param {string} [method] HTTP method filter
3890
+ * @param {number} [page] Page number (default: 1)
3891
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
3892
+ * @param {*} [options] Override http request option.
3893
+ * @throws {RequiredError}
3894
+ */
3895
+ analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options) {
3896
+ return localVarFp.analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(axios, basePath));
3897
+ },
3649
3898
  };
3650
3899
  };
3651
3900
  /**
@@ -4116,6 +4365,39 @@ export class AnalyticsApi extends BaseAPI {
4116
4365
  adminAnalyticsStoreXStoreIDTagsSummaryGet(xStoreID, startTime, endTime, limit, offset, page, pageSize, sortBy, sortOrder, sort, options) {
4117
4366
  return AnalyticsApiFp(this.configuration).adminAnalyticsStoreXStoreIDTagsSummaryGet(xStoreID, startTime, endTime, limit, offset, page, pageSize, sortBy, sortOrder, sort, options).then((request) => request(this.axios, this.basePath));
4118
4367
  }
4368
+ /**
4369
+ * Retrieve API usage logs from ClickHouse system_events table with filtering and pagination
4370
+ * @summary Get API Usage Logs
4371
+ * @param {string} [startDate] Start date (ISO 8601 format)
4372
+ * @param {string} [endDate] End date (ISO 8601 format)
4373
+ * @param {string} [method] HTTP method filter
4374
+ * @param {string} [path] Path filter (partial match)
4375
+ * @param {string} [storeId] Store ID filter
4376
+ * @param {number} [page] Page number (default: 1)
4377
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
4378
+ * @param {*} [options] Override http request option.
4379
+ * @throws {RequiredError}
4380
+ * @memberof AnalyticsApi
4381
+ */
4382
+ analyticsApiUsageGet(startDate, endDate, method, path, storeId, page, perPage, options) {
4383
+ return AnalyticsApiFp(this.configuration).analyticsApiUsageGet(startDate, endDate, method, path, storeId, page, perPage, options).then((request) => request(this.axios, this.basePath));
4384
+ }
4385
+ /**
4386
+ * Retrieve API usage logs for a specific store from ClickHouse
4387
+ * @summary Get Store API Usage Logs
4388
+ * @param {string} storeId Store ID
4389
+ * @param {string} [startDate] Start date (ISO 8601 format)
4390
+ * @param {string} [endDate] End date (ISO 8601 format)
4391
+ * @param {string} [method] HTTP method filter
4392
+ * @param {number} [page] Page number (default: 1)
4393
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
4394
+ * @param {*} [options] Override http request option.
4395
+ * @throws {RequiredError}
4396
+ * @memberof AnalyticsApi
4397
+ */
4398
+ analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options) {
4399
+ return AnalyticsApiFp(this.configuration).analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(this.axios, this.basePath));
4400
+ }
4119
4401
  }
4120
4402
  /**
4121
4403
  * @export
@@ -7412,10 +7694,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7412
7694
  };
7413
7695
  }),
7414
7696
  /**
7415
- * Retrieves invoices with filtering options
7697
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
7416
7698
  * @summary Get invoices
7417
- * @param {number} [orgId] Organization ID
7418
- * @param {string} [status] Invoice status
7699
+ * @param {number} [orgId] Organization ID (defaults to user\'s org)
7700
+ * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
7419
7701
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
7420
7702
  * @param {string} [endDate] End date (YYYY-MM-DD format)
7421
7703
  * @param {number} [page] Page number (default: 1)
@@ -8187,10 +8469,10 @@ export const BillingDashboardApiFp = function (configuration) {
8187
8469
  });
8188
8470
  },
8189
8471
  /**
8190
- * Retrieves invoices with filtering options
8472
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
8191
8473
  * @summary Get invoices
8192
- * @param {number} [orgId] Organization ID
8193
- * @param {string} [status] Invoice status
8474
+ * @param {number} [orgId] Organization ID (defaults to user\'s org)
8475
+ * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
8194
8476
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8195
8477
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8196
8478
  * @param {number} [page] Page number (default: 1)
@@ -8590,10 +8872,10 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
8590
8872
  return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
8591
8873
  },
8592
8874
  /**
8593
- * Retrieves invoices with filtering options
8875
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
8594
8876
  * @summary Get invoices
8595
- * @param {number} [orgId] Organization ID
8596
- * @param {string} [status] Invoice status
8877
+ * @param {number} [orgId] Organization ID (defaults to user\'s org)
8878
+ * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
8597
8879
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8598
8880
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8599
8881
  * @param {number} [page] Page number (default: 1)
@@ -8914,10 +9196,10 @@ export class BillingDashboardApi extends BaseAPI {
8914
9196
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
8915
9197
  }
8916
9198
  /**
8917
- * Retrieves invoices with filtering options
9199
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
8918
9200
  * @summary Get invoices
8919
- * @param {number} [orgId] Organization ID
8920
- * @param {string} [status] Invoice status
9201
+ * @param {number} [orgId] Organization ID (defaults to user\'s org)
9202
+ * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
8921
9203
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8922
9204
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8923
9205
  * @param {number} [page] Page number (default: 1)
@@ -27139,6 +27421,96 @@ export const StoresApiAxiosParamCreator = function (configuration) {
27139
27421
  options: localVarRequestOptions,
27140
27422
  };
27141
27423
  }),
27424
+ /**
27425
+ * Retrieve detailed information for a specific API usage event including headers, request body, and response body
27426
+ * @summary Get Specific API Usage Event
27427
+ * @param {string} xStoreID Store ID
27428
+ * @param {string} eventID Event ID (UUID)
27429
+ * @param {*} [options] Override http request option.
27430
+ * @throws {RequiredError}
27431
+ */
27432
+ adminStoresXStoreIDApiUsageEventIDGet: (xStoreID_1, eventID_1, ...args_1) => __awaiter(this, [xStoreID_1, eventID_1, ...args_1], void 0, function* (xStoreID, eventID, options = {}) {
27433
+ // verify required parameter 'xStoreID' is not null or undefined
27434
+ assertParamExists('adminStoresXStoreIDApiUsageEventIDGet', 'xStoreID', xStoreID);
27435
+ // verify required parameter 'eventID' is not null or undefined
27436
+ assertParamExists('adminStoresXStoreIDApiUsageEventIDGet', 'eventID', eventID);
27437
+ const localVarPath = `/admin/Stores/{xStoreID}/api-usage/{eventID}`
27438
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
27439
+ .replace(`{${"eventID"}}`, encodeURIComponent(String(eventID)));
27440
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27441
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27442
+ let baseOptions;
27443
+ if (configuration) {
27444
+ baseOptions = configuration.baseOptions;
27445
+ }
27446
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
27447
+ const localVarHeaderParameter = {};
27448
+ const localVarQueryParameter = {};
27449
+ // authentication BearerAuth required
27450
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
27451
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27452
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27453
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27454
+ return {
27455
+ url: toPathString(localVarUrlObj),
27456
+ options: localVarRequestOptions,
27457
+ };
27458
+ }),
27459
+ /**
27460
+ * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
27461
+ * @summary Get API Usage Logs for Store
27462
+ * @param {string} xStoreID Store ID
27463
+ * @param {string} [startDate] Start date (ISO 8601 format)
27464
+ * @param {string} [endDate] End date (ISO 8601 format)
27465
+ * @param {string} [method] HTTP method filter
27466
+ * @param {string} [path] Path filter (partial match)
27467
+ * @param {number} [page] Page number (default: 1)
27468
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
27469
+ * @param {*} [options] Override http request option.
27470
+ * @throws {RequiredError}
27471
+ */
27472
+ adminStoresXStoreIDApiUsageGet: (xStoreID_1, startDate_1, endDate_1, method_1, path_1, page_1, perPage_1, ...args_1) => __awaiter(this, [xStoreID_1, startDate_1, endDate_1, method_1, path_1, page_1, perPage_1, ...args_1], void 0, function* (xStoreID, startDate, endDate, method, path, page, perPage, options = {}) {
27473
+ // verify required parameter 'xStoreID' is not null or undefined
27474
+ assertParamExists('adminStoresXStoreIDApiUsageGet', 'xStoreID', xStoreID);
27475
+ const localVarPath = `/admin/Stores/{xStoreID}/api-usage`
27476
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
27477
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27478
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27479
+ let baseOptions;
27480
+ if (configuration) {
27481
+ baseOptions = configuration.baseOptions;
27482
+ }
27483
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
27484
+ const localVarHeaderParameter = {};
27485
+ const localVarQueryParameter = {};
27486
+ // authentication BearerAuth required
27487
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
27488
+ if (startDate !== undefined) {
27489
+ localVarQueryParameter['start_date'] = startDate;
27490
+ }
27491
+ if (endDate !== undefined) {
27492
+ localVarQueryParameter['end_date'] = endDate;
27493
+ }
27494
+ if (method !== undefined) {
27495
+ localVarQueryParameter['method'] = method;
27496
+ }
27497
+ if (path !== undefined) {
27498
+ localVarQueryParameter['path'] = path;
27499
+ }
27500
+ if (page !== undefined) {
27501
+ localVarQueryParameter['page'] = page;
27502
+ }
27503
+ if (perPage !== undefined) {
27504
+ localVarQueryParameter['per_page'] = perPage;
27505
+ }
27506
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27508
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27509
+ return {
27510
+ url: toPathString(localVarUrlObj),
27511
+ options: localVarRequestOptions,
27512
+ };
27513
+ }),
27142
27514
  /**
27143
27515
  * Retrieves the store configuration using x-store ID
27144
27516
  * @summary Get Store Config
@@ -27331,10 +27703,10 @@ export const StoresApiAxiosParamCreator = function (configuration) {
27331
27703
  };
27332
27704
  }),
27333
27705
  /**
27334
- * Perform search on a specific store by xStoreID
27706
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
27335
27707
  * @summary Get store search results
27336
27708
  * @param {string} xStoreID X-Store ID
27337
- * @param {string} query Search query
27709
+ * @param {string} [query] Search query (empty returns all results)
27338
27710
  * @param {number} [page] Page number
27339
27711
  * @param {number} [pageSize] Page size
27340
27712
  * @param {*} [options] Override http request option.
@@ -27343,8 +27715,6 @@ export const StoresApiAxiosParamCreator = function (configuration) {
27343
27715
  adminStoresXStoreIDSearchGet: (xStoreID_1, query_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [xStoreID_1, query_1, page_1, pageSize_1, ...args_1], void 0, function* (xStoreID, query, page, pageSize, options = {}) {
27344
27716
  // verify required parameter 'xStoreID' is not null or undefined
27345
27717
  assertParamExists('adminStoresXStoreIDSearchGet', 'xStoreID', xStoreID);
27346
- // verify required parameter 'query' is not null or undefined
27347
- assertParamExists('adminStoresXStoreIDSearchGet', 'query', query);
27348
27718
  const localVarPath = `/admin/stores/{xStoreID}/search`
27349
27719
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
27350
27720
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -27536,6 +27906,45 @@ export const StoresApiFp = function (configuration) {
27536
27906
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27537
27907
  });
27538
27908
  },
27909
+ /**
27910
+ * Retrieve detailed information for a specific API usage event including headers, request body, and response body
27911
+ * @summary Get Specific API Usage Event
27912
+ * @param {string} xStoreID Store ID
27913
+ * @param {string} eventID Event ID (UUID)
27914
+ * @param {*} [options] Override http request option.
27915
+ * @throws {RequiredError}
27916
+ */
27917
+ adminStoresXStoreIDApiUsageEventIDGet(xStoreID, eventID, options) {
27918
+ return __awaiter(this, void 0, void 0, function* () {
27919
+ var _a, _b, _c;
27920
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDApiUsageEventIDGet(xStoreID, eventID, options);
27921
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27922
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDApiUsageEventIDGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27923
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27924
+ });
27925
+ },
27926
+ /**
27927
+ * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
27928
+ * @summary Get API Usage Logs for Store
27929
+ * @param {string} xStoreID Store ID
27930
+ * @param {string} [startDate] Start date (ISO 8601 format)
27931
+ * @param {string} [endDate] End date (ISO 8601 format)
27932
+ * @param {string} [method] HTTP method filter
27933
+ * @param {string} [path] Path filter (partial match)
27934
+ * @param {number} [page] Page number (default: 1)
27935
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
27936
+ * @param {*} [options] Override http request option.
27937
+ * @throws {RequiredError}
27938
+ */
27939
+ adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, page, perPage, options) {
27940
+ return __awaiter(this, void 0, void 0, function* () {
27941
+ var _a, _b, _c;
27942
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, page, perPage, options);
27943
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27944
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDApiUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27945
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27946
+ });
27947
+ },
27539
27948
  /**
27540
27949
  * Retrieves the store configuration using x-store ID
27541
27950
  * @summary Get Store Config
@@ -27634,10 +28043,10 @@ export const StoresApiFp = function (configuration) {
27634
28043
  });
27635
28044
  },
27636
28045
  /**
27637
- * Perform search on a specific store by xStoreID
28046
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
27638
28047
  * @summary Get store search results
27639
28048
  * @param {string} xStoreID X-Store ID
27640
- * @param {string} query Search query
28049
+ * @param {string} [query] Search query (empty returns all results)
27641
28050
  * @param {number} [page] Page number
27642
28051
  * @param {number} [pageSize] Page size
27643
28052
  * @param {*} [options] Override http request option.
@@ -27746,6 +28155,33 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
27746
28155
  adminStoresUpdateStatusIdStatusPut(id, status, options) {
27747
28156
  return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
27748
28157
  },
28158
+ /**
28159
+ * Retrieve detailed information for a specific API usage event including headers, request body, and response body
28160
+ * @summary Get Specific API Usage Event
28161
+ * @param {string} xStoreID Store ID
28162
+ * @param {string} eventID Event ID (UUID)
28163
+ * @param {*} [options] Override http request option.
28164
+ * @throws {RequiredError}
28165
+ */
28166
+ adminStoresXStoreIDApiUsageEventIDGet(xStoreID, eventID, options) {
28167
+ return localVarFp.adminStoresXStoreIDApiUsageEventIDGet(xStoreID, eventID, options).then((request) => request(axios, basePath));
28168
+ },
28169
+ /**
28170
+ * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
28171
+ * @summary Get API Usage Logs for Store
28172
+ * @param {string} xStoreID Store ID
28173
+ * @param {string} [startDate] Start date (ISO 8601 format)
28174
+ * @param {string} [endDate] End date (ISO 8601 format)
28175
+ * @param {string} [method] HTTP method filter
28176
+ * @param {string} [path] Path filter (partial match)
28177
+ * @param {number} [page] Page number (default: 1)
28178
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
28179
+ * @param {*} [options] Override http request option.
28180
+ * @throws {RequiredError}
28181
+ */
28182
+ adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, page, perPage, options) {
28183
+ return localVarFp.adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, page, perPage, options).then((request) => request(axios, basePath));
28184
+ },
27749
28185
  /**
27750
28186
  * Retrieves the store configuration using x-store ID
27751
28187
  * @summary Get Store Config
@@ -27808,10 +28244,10 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
27808
28244
  return localVarFp.adminStoresXStoreIDSchemaOptionsGet(xStoreID, options).then((request) => request(axios, basePath));
27809
28245
  },
27810
28246
  /**
27811
- * Perform search on a specific store by xStoreID
28247
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
27812
28248
  * @summary Get store search results
27813
28249
  * @param {string} xStoreID X-Store ID
27814
- * @param {string} query Search query
28250
+ * @param {string} [query] Search query (empty returns all results)
27815
28251
  * @param {number} [page] Page number
27816
28252
  * @param {number} [pageSize] Page size
27817
28253
  * @param {*} [options] Override http request option.
@@ -27907,6 +28343,35 @@ export class StoresApi extends BaseAPI {
27907
28343
  adminStoresUpdateStatusIdStatusPut(id, status, options) {
27908
28344
  return StoresApiFp(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
27909
28345
  }
28346
+ /**
28347
+ * Retrieve detailed information for a specific API usage event including headers, request body, and response body
28348
+ * @summary Get Specific API Usage Event
28349
+ * @param {string} xStoreID Store ID
28350
+ * @param {string} eventID Event ID (UUID)
28351
+ * @param {*} [options] Override http request option.
28352
+ * @throws {RequiredError}
28353
+ * @memberof StoresApi
28354
+ */
28355
+ adminStoresXStoreIDApiUsageEventIDGet(xStoreID, eventID, options) {
28356
+ return StoresApiFp(this.configuration).adminStoresXStoreIDApiUsageEventIDGet(xStoreID, eventID, options).then((request) => request(this.axios, this.basePath));
28357
+ }
28358
+ /**
28359
+ * Retrieve API usage logs for a specific store from ClickHouse with filtering and pagination
28360
+ * @summary Get API Usage Logs for Store
28361
+ * @param {string} xStoreID Store ID
28362
+ * @param {string} [startDate] Start date (ISO 8601 format)
28363
+ * @param {string} [endDate] End date (ISO 8601 format)
28364
+ * @param {string} [method] HTTP method filter
28365
+ * @param {string} [path] Path filter (partial match)
28366
+ * @param {number} [page] Page number (default: 1)
28367
+ * @param {number} [perPage] Results per page (default: 50, max: 1000)
28368
+ * @param {*} [options] Override http request option.
28369
+ * @throws {RequiredError}
28370
+ * @memberof StoresApi
28371
+ */
28372
+ adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, page, perPage, options) {
28373
+ return StoresApiFp(this.configuration).adminStoresXStoreIDApiUsageGet(xStoreID, startDate, endDate, method, path, page, perPage, options).then((request) => request(this.axios, this.basePath));
28374
+ }
27910
28375
  /**
27911
28376
  * Retrieves the store configuration using x-store ID
27912
28377
  * @summary Get Store Config
@@ -27975,10 +28440,10 @@ export class StoresApi extends BaseAPI {
27975
28440
  return StoresApiFp(this.configuration).adminStoresXStoreIDSchemaOptionsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
27976
28441
  }
27977
28442
  /**
27978
- * Perform search on a specific store by xStoreID
28443
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
27979
28444
  * @summary Get store search results
27980
28445
  * @param {string} xStoreID X-Store ID
27981
- * @param {string} query Search query
28446
+ * @param {string} [query] Search query (empty returns all results)
27982
28447
  * @param {number} [page] Page number
27983
28448
  * @param {number} [pageSize] Page size
27984
28449
  * @param {*} [options] Override http request option.