@seekora-ai/admin-api 1.0.98 → 1.0.100

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
@@ -7349,6 +7631,37 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7349
7631
  options: localVarRequestOptions,
7350
7632
  };
7351
7633
  }),
7634
+ /**
7635
+ * Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
7636
+ * @summary Generate invoices for an order
7637
+ * @param {number} orderId Order ID
7638
+ * @param {*} [options] Override http request option.
7639
+ * @throws {RequiredError}
7640
+ */
7641
+ adminBillingInvoicesGenerateForOrderOrderIdPost: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
7642
+ // verify required parameter 'orderId' is not null or undefined
7643
+ assertParamExists('adminBillingInvoicesGenerateForOrderOrderIdPost', 'orderId', orderId);
7644
+ const localVarPath = `/admin/billing/invoices/generate-for-order/{orderId}`
7645
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
7646
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7647
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7648
+ let baseOptions;
7649
+ if (configuration) {
7650
+ baseOptions = configuration.baseOptions;
7651
+ }
7652
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7653
+ const localVarHeaderParameter = {};
7654
+ const localVarQueryParameter = {};
7655
+ // authentication BearerAuth required
7656
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7657
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7658
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7659
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7660
+ return {
7661
+ url: toPathString(localVarUrlObj),
7662
+ options: localVarRequestOptions,
7663
+ };
7664
+ }),
7352
7665
  /**
7353
7666
  * Generates an invoice automatically from a completed payment
7354
7667
  * @summary Generate invoice from payment
@@ -7381,10 +7694,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7381
7694
  };
7382
7695
  }),
7383
7696
  /**
7384
- * 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.
7385
7698
  * @summary Get invoices
7386
- * @param {number} [orgId] Organization ID
7387
- * @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)
7388
7701
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
7389
7702
  * @param {string} [endDate] End date (YYYY-MM-DD format)
7390
7703
  * @param {number} [page] Page number (default: 1)
@@ -7560,6 +7873,40 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7560
7873
  options: localVarRequestOptions,
7561
7874
  };
7562
7875
  }),
7876
+ /**
7877
+ * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
7878
+ * @summary Pay a pending invoice
7879
+ * @param {string} invoiceId Invoice ID
7880
+ * @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
7881
+ * @param {*} [options] Override http request option.
7882
+ * @throws {RequiredError}
7883
+ */
7884
+ adminBillingInvoicesInvoiceIdPayPost: (invoiceId_1, dataTypesPayInvoiceRequest_1, ...args_1) => __awaiter(this, [invoiceId_1, dataTypesPayInvoiceRequest_1, ...args_1], void 0, function* (invoiceId, dataTypesPayInvoiceRequest, options = {}) {
7885
+ // verify required parameter 'invoiceId' is not null or undefined
7886
+ assertParamExists('adminBillingInvoicesInvoiceIdPayPost', 'invoiceId', invoiceId);
7887
+ const localVarPath = `/admin/billing/invoices/{invoice_id}/pay`
7888
+ .replace(`{${"invoice_id"}}`, encodeURIComponent(String(invoiceId)));
7889
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7890
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7891
+ let baseOptions;
7892
+ if (configuration) {
7893
+ baseOptions = configuration.baseOptions;
7894
+ }
7895
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7896
+ const localVarHeaderParameter = {};
7897
+ const localVarQueryParameter = {};
7898
+ // authentication BearerAuth required
7899
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7900
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7901
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7902
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7903
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7904
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesPayInvoiceRequest, localVarRequestOptions, configuration);
7905
+ return {
7906
+ url: toPathString(localVarUrlObj),
7907
+ options: localVarRequestOptions,
7908
+ };
7909
+ }),
7563
7910
  /**
7564
7911
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
7565
7912
  * @summary Get orders
@@ -7607,6 +7954,37 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7607
7954
  options: localVarRequestOptions,
7608
7955
  };
7609
7956
  }),
7957
+ /**
7958
+ * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
7959
+ * @summary Get single order with transactions and invoices
7960
+ * @param {number} id Order ID
7961
+ * @param {*} [options] Override http request option.
7962
+ * @throws {RequiredError}
7963
+ */
7964
+ adminBillingOrdersIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
7965
+ // verify required parameter 'id' is not null or undefined
7966
+ assertParamExists('adminBillingOrdersIdGet', 'id', id);
7967
+ const localVarPath = `/admin/billing/orders/{id}`
7968
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7969
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7970
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7971
+ let baseOptions;
7972
+ if (configuration) {
7973
+ baseOptions = configuration.baseOptions;
7974
+ }
7975
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7976
+ const localVarHeaderParameter = {};
7977
+ const localVarQueryParameter = {};
7978
+ // authentication BearerAuth required
7979
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7980
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7981
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7982
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7983
+ return {
7984
+ url: toPathString(localVarUrlObj),
7985
+ options: localVarRequestOptions,
7986
+ };
7987
+ }),
7610
7988
  /**
7611
7989
  * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
7612
7990
  * @summary Get org admin billing overview
@@ -8058,6 +8436,22 @@ export const BillingDashboardApiFp = function (configuration) {
8058
8436
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8059
8437
  });
8060
8438
  },
8439
+ /**
8440
+ * Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
8441
+ * @summary Generate invoices for an order
8442
+ * @param {number} orderId Order ID
8443
+ * @param {*} [options] Override http request option.
8444
+ * @throws {RequiredError}
8445
+ */
8446
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options) {
8447
+ return __awaiter(this, void 0, void 0, function* () {
8448
+ var _a, _b, _c;
8449
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options);
8450
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8451
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesGenerateForOrderOrderIdPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8452
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8453
+ });
8454
+ },
8061
8455
  /**
8062
8456
  * Generates an invoice automatically from a completed payment
8063
8457
  * @summary Generate invoice from payment
@@ -8075,10 +8469,10 @@ export const BillingDashboardApiFp = function (configuration) {
8075
8469
  });
8076
8470
  },
8077
8471
  /**
8078
- * 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.
8079
8473
  * @summary Get invoices
8080
- * @param {number} [orgId] Organization ID
8081
- * @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)
8082
8476
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8083
8477
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8084
8478
  * @param {number} [page] Page number (default: 1)
@@ -8160,6 +8554,23 @@ export const BillingDashboardApiFp = function (configuration) {
8160
8554
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8161
8555
  });
8162
8556
  },
8557
+ /**
8558
+ * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
8559
+ * @summary Pay a pending invoice
8560
+ * @param {string} invoiceId Invoice ID
8561
+ * @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
8562
+ * @param {*} [options] Override http request option.
8563
+ * @throws {RequiredError}
8564
+ */
8565
+ adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options) {
8566
+ return __awaiter(this, void 0, void 0, function* () {
8567
+ var _a, _b, _c;
8568
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options);
8569
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8570
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesInvoiceIdPayPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8571
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8572
+ });
8573
+ },
8163
8574
  /**
8164
8575
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8165
8576
  * @summary Get orders
@@ -8180,6 +8591,22 @@ export const BillingDashboardApiFp = function (configuration) {
8180
8591
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8181
8592
  });
8182
8593
  },
8594
+ /**
8595
+ * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
8596
+ * @summary Get single order with transactions and invoices
8597
+ * @param {number} id Order ID
8598
+ * @param {*} [options] Override http request option.
8599
+ * @throws {RequiredError}
8600
+ */
8601
+ adminBillingOrdersIdGet(id, options) {
8602
+ return __awaiter(this, void 0, void 0, function* () {
8603
+ var _a, _b, _c;
8604
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersIdGet(id, options);
8605
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8606
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingOrdersIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8607
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8608
+ });
8609
+ },
8183
8610
  /**
8184
8611
  * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
8185
8612
  * @summary Get org admin billing overview
@@ -8424,6 +8851,16 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
8424
8851
  adminBillingInvoicesAutoGeneratePost(options) {
8425
8852
  return localVarFp.adminBillingInvoicesAutoGeneratePost(options).then((request) => request(axios, basePath));
8426
8853
  },
8854
+ /**
8855
+ * Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
8856
+ * @summary Generate invoices for an order
8857
+ * @param {number} orderId Order ID
8858
+ * @param {*} [options] Override http request option.
8859
+ * @throws {RequiredError}
8860
+ */
8861
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options) {
8862
+ return localVarFp.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options).then((request) => request(axios, basePath));
8863
+ },
8427
8864
  /**
8428
8865
  * Generates an invoice automatically from a completed payment
8429
8866
  * @summary Generate invoice from payment
@@ -8435,10 +8872,10 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
8435
8872
  return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
8436
8873
  },
8437
8874
  /**
8438
- * 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.
8439
8876
  * @summary Get invoices
8440
- * @param {number} [orgId] Organization ID
8441
- * @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)
8442
8879
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8443
8880
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8444
8881
  * @param {number} [page] Page number (default: 1)
@@ -8490,6 +8927,17 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
8490
8927
  adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
8491
8928
  return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
8492
8929
  },
8930
+ /**
8931
+ * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
8932
+ * @summary Pay a pending invoice
8933
+ * @param {string} invoiceId Invoice ID
8934
+ * @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
8935
+ * @param {*} [options] Override http request option.
8936
+ * @throws {RequiredError}
8937
+ */
8938
+ adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options) {
8939
+ return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
8940
+ },
8493
8941
  /**
8494
8942
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8495
8943
  * @summary Get orders
@@ -8504,6 +8952,16 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
8504
8952
  adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
8505
8953
  return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
8506
8954
  },
8955
+ /**
8956
+ * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
8957
+ * @summary Get single order with transactions and invoices
8958
+ * @param {number} id Order ID
8959
+ * @param {*} [options] Override http request option.
8960
+ * @throws {RequiredError}
8961
+ */
8962
+ adminBillingOrdersIdGet(id, options) {
8963
+ return localVarFp.adminBillingOrdersIdGet(id, options).then((request) => request(axios, basePath));
8964
+ },
8507
8965
  /**
8508
8966
  * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
8509
8967
  * @summary Get org admin billing overview
@@ -8715,6 +9173,17 @@ export class BillingDashboardApi extends BaseAPI {
8715
9173
  adminBillingInvoicesAutoGeneratePost(options) {
8716
9174
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
8717
9175
  }
9176
+ /**
9177
+ * Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
9178
+ * @summary Generate invoices for an order
9179
+ * @param {number} orderId Order ID
9180
+ * @param {*} [options] Override http request option.
9181
+ * @throws {RequiredError}
9182
+ * @memberof BillingDashboardApi
9183
+ */
9184
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options) {
9185
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options).then((request) => request(this.axios, this.basePath));
9186
+ }
8718
9187
  /**
8719
9188
  * Generates an invoice automatically from a completed payment
8720
9189
  * @summary Generate invoice from payment
@@ -8727,10 +9196,10 @@ export class BillingDashboardApi extends BaseAPI {
8727
9196
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
8728
9197
  }
8729
9198
  /**
8730
- * 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.
8731
9200
  * @summary Get invoices
8732
- * @param {number} [orgId] Organization ID
8733
- * @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)
8734
9203
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8735
9204
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8736
9205
  * @param {number} [page] Page number (default: 1)
@@ -8787,6 +9256,18 @@ export class BillingDashboardApi extends BaseAPI {
8787
9256
  adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
8788
9257
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
8789
9258
  }
9259
+ /**
9260
+ * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
9261
+ * @summary Pay a pending invoice
9262
+ * @param {string} invoiceId Invoice ID
9263
+ * @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
9264
+ * @param {*} [options] Override http request option.
9265
+ * @throws {RequiredError}
9266
+ * @memberof BillingDashboardApi
9267
+ */
9268
+ adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options) {
9269
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
9270
+ }
8790
9271
  /**
8791
9272
  * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8792
9273
  * @summary Get orders
@@ -8802,6 +9283,17 @@ export class BillingDashboardApi extends BaseAPI {
8802
9283
  adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
8803
9284
  return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(this.axios, this.basePath));
8804
9285
  }
9286
+ /**
9287
+ * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
9288
+ * @summary Get single order with transactions and invoices
9289
+ * @param {number} id Order ID
9290
+ * @param {*} [options] Override http request option.
9291
+ * @throws {RequiredError}
9292
+ * @memberof BillingDashboardApi
9293
+ */
9294
+ adminBillingOrdersIdGet(id, options) {
9295
+ return BillingDashboardApiFp(this.configuration).adminBillingOrdersIdGet(id, options).then((request) => request(this.axios, this.basePath));
9296
+ }
8805
9297
  /**
8806
9298
  * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
8807
9299
  * @summary Get org admin billing overview
@@ -26929,6 +27421,96 @@ export const StoresApiAxiosParamCreator = function (configuration) {
26929
27421
  options: localVarRequestOptions,
26930
27422
  };
26931
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
+ }),
26932
27514
  /**
26933
27515
  * Retrieves the store configuration using x-store ID
26934
27516
  * @summary Get Store Config
@@ -27121,10 +27703,10 @@ export const StoresApiAxiosParamCreator = function (configuration) {
27121
27703
  };
27122
27704
  }),
27123
27705
  /**
27124
- * Perform search on a specific store by xStoreID
27706
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
27125
27707
  * @summary Get store search results
27126
27708
  * @param {string} xStoreID X-Store ID
27127
- * @param {string} query Search query
27709
+ * @param {string} [query] Search query (empty returns all results)
27128
27710
  * @param {number} [page] Page number
27129
27711
  * @param {number} [pageSize] Page size
27130
27712
  * @param {*} [options] Override http request option.
@@ -27133,8 +27715,6 @@ export const StoresApiAxiosParamCreator = function (configuration) {
27133
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 = {}) {
27134
27716
  // verify required parameter 'xStoreID' is not null or undefined
27135
27717
  assertParamExists('adminStoresXStoreIDSearchGet', 'xStoreID', xStoreID);
27136
- // verify required parameter 'query' is not null or undefined
27137
- assertParamExists('adminStoresXStoreIDSearchGet', 'query', query);
27138
27718
  const localVarPath = `/admin/stores/{xStoreID}/search`
27139
27719
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
27140
27720
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -27326,6 +27906,45 @@ export const StoresApiFp = function (configuration) {
27326
27906
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27327
27907
  });
27328
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
+ },
27329
27948
  /**
27330
27949
  * Retrieves the store configuration using x-store ID
27331
27950
  * @summary Get Store Config
@@ -27424,10 +28043,10 @@ export const StoresApiFp = function (configuration) {
27424
28043
  });
27425
28044
  },
27426
28045
  /**
27427
- * Perform search on a specific store by xStoreID
28046
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
27428
28047
  * @summary Get store search results
27429
28048
  * @param {string} xStoreID X-Store ID
27430
- * @param {string} query Search query
28049
+ * @param {string} [query] Search query (empty returns all results)
27431
28050
  * @param {number} [page] Page number
27432
28051
  * @param {number} [pageSize] Page size
27433
28052
  * @param {*} [options] Override http request option.
@@ -27536,6 +28155,33 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
27536
28155
  adminStoresUpdateStatusIdStatusPut(id, status, options) {
27537
28156
  return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
27538
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
+ },
27539
28185
  /**
27540
28186
  * Retrieves the store configuration using x-store ID
27541
28187
  * @summary Get Store Config
@@ -27598,10 +28244,10 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
27598
28244
  return localVarFp.adminStoresXStoreIDSchemaOptionsGet(xStoreID, options).then((request) => request(axios, basePath));
27599
28245
  },
27600
28246
  /**
27601
- * Perform search on a specific store by xStoreID
28247
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
27602
28248
  * @summary Get store search results
27603
28249
  * @param {string} xStoreID X-Store ID
27604
- * @param {string} query Search query
28250
+ * @param {string} [query] Search query (empty returns all results)
27605
28251
  * @param {number} [page] Page number
27606
28252
  * @param {number} [pageSize] Page size
27607
28253
  * @param {*} [options] Override http request option.
@@ -27697,6 +28343,35 @@ export class StoresApi extends BaseAPI {
27697
28343
  adminStoresUpdateStatusIdStatusPut(id, status, options) {
27698
28344
  return StoresApiFp(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
27699
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
+ }
27700
28375
  /**
27701
28376
  * Retrieves the store configuration using x-store ID
27702
28377
  * @summary Get Store Config
@@ -27765,10 +28440,10 @@ export class StoresApi extends BaseAPI {
27765
28440
  return StoresApiFp(this.configuration).adminStoresXStoreIDSchemaOptionsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
27766
28441
  }
27767
28442
  /**
27768
- * Perform search on a specific store by xStoreID
28443
+ * Perform search on a specific store by xStoreID. Empty query string returns all results.
27769
28444
  * @summary Get store search results
27770
28445
  * @param {string} xStoreID X-Store ID
27771
- * @param {string} query Search query
28446
+ * @param {string} [query] Search query (empty returns all results)
27772
28447
  * @param {number} [page] Page number
27773
28448
  * @param {number} [pageSize] Page size
27774
28449
  * @param {*} [options] Override http request option.