@seekora-ai/admin-api 1.1.94 → 1.1.96

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/api.js CHANGED
@@ -26317,6 +26317,33 @@ exports.FeatureLimitsApi = FeatureLimitsApi;
26317
26317
  */
26318
26318
  const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
26319
26319
  return {
26320
+ /**
26321
+ * Flushes all feature_limit:org_plan:* keys from Redis. Use after updating plan-level feature limits in the database so every org picks up the new limits on their next request.
26322
+ * @summary Invalidate all org plan caches (Admin)
26323
+ * @param {*} [options] Override http request option.
26324
+ * @throws {RequiredError}
26325
+ */
26326
+ adminV1FeatureLimitsCacheInvalidateAllPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
26327
+ const localVarPath = `/admin/v1/feature-limits/cache/invalidate-all`;
26328
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26329
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26330
+ let baseOptions;
26331
+ if (configuration) {
26332
+ baseOptions = configuration.baseOptions;
26333
+ }
26334
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
26335
+ const localVarHeaderParameter = {};
26336
+ const localVarQueryParameter = {};
26337
+ // authentication BearerAuth required
26338
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
26339
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26340
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26341
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26342
+ return {
26343
+ url: (0, common_1.toPathString)(localVarUrlObj),
26344
+ options: localVarRequestOptions,
26345
+ };
26346
+ }),
26320
26347
  /**
26321
26348
  * Invalidates the cached plan data for an organization
26322
26349
  * @summary Invalidate plan cache (Admin)
@@ -26418,6 +26445,21 @@ exports.FeatureLimitsAdminApiAxiosParamCreator = FeatureLimitsAdminApiAxiosParam
26418
26445
  const FeatureLimitsAdminApiFp = function (configuration) {
26419
26446
  const localVarAxiosParamCreator = (0, exports.FeatureLimitsAdminApiAxiosParamCreator)(configuration);
26420
26447
  return {
26448
+ /**
26449
+ * Flushes all feature_limit:org_plan:* keys from Redis. Use after updating plan-level feature limits in the database so every org picks up the new limits on their next request.
26450
+ * @summary Invalidate all org plan caches (Admin)
26451
+ * @param {*} [options] Override http request option.
26452
+ * @throws {RequiredError}
26453
+ */
26454
+ adminV1FeatureLimitsCacheInvalidateAllPost(options) {
26455
+ return __awaiter(this, void 0, void 0, function* () {
26456
+ var _a, _b, _c;
26457
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1FeatureLimitsCacheInvalidateAllPost(options);
26458
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26459
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsAdminApi.adminV1FeatureLimitsCacheInvalidateAllPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26460
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26461
+ });
26462
+ },
26421
26463
  /**
26422
26464
  * Invalidates the cached plan data for an organization
26423
26465
  * @summary Invalidate plan cache (Admin)
@@ -26475,6 +26517,15 @@ exports.FeatureLimitsAdminApiFp = FeatureLimitsAdminApiFp;
26475
26517
  const FeatureLimitsAdminApiFactory = function (configuration, basePath, axios) {
26476
26518
  const localVarFp = (0, exports.FeatureLimitsAdminApiFp)(configuration);
26477
26519
  return {
26520
+ /**
26521
+ * Flushes all feature_limit:org_plan:* keys from Redis. Use after updating plan-level feature limits in the database so every org picks up the new limits on their next request.
26522
+ * @summary Invalidate all org plan caches (Admin)
26523
+ * @param {*} [options] Override http request option.
26524
+ * @throws {RequiredError}
26525
+ */
26526
+ adminV1FeatureLimitsCacheInvalidateAllPost(options) {
26527
+ return localVarFp.adminV1FeatureLimitsCacheInvalidateAllPost(options).then((request) => request(axios, basePath));
26528
+ },
26478
26529
  /**
26479
26530
  * Invalidates the cached plan data for an organization
26480
26531
  * @summary Invalidate plan cache (Admin)
@@ -26514,6 +26565,16 @@ exports.FeatureLimitsAdminApiFactory = FeatureLimitsAdminApiFactory;
26514
26565
  * @extends {BaseAPI}
26515
26566
  */
26516
26567
  class FeatureLimitsAdminApi extends base_1.BaseAPI {
26568
+ /**
26569
+ * Flushes all feature_limit:org_plan:* keys from Redis. Use after updating plan-level feature limits in the database so every org picks up the new limits on their next request.
26570
+ * @summary Invalidate all org plan caches (Admin)
26571
+ * @param {*} [options] Override http request option.
26572
+ * @throws {RequiredError}
26573
+ * @memberof FeatureLimitsAdminApi
26574
+ */
26575
+ adminV1FeatureLimitsCacheInvalidateAllPost(options) {
26576
+ return (0, exports.FeatureLimitsAdminApiFp)(this.configuration).adminV1FeatureLimitsCacheInvalidateAllPost(options).then((request) => request(this.axios, this.basePath));
26577
+ }
26517
26578
  /**
26518
26579
  * Invalidates the cached plan data for an organization
26519
26580
  * @summary Invalidate plan cache (Admin)
@@ -43995,20 +44056,20 @@ const SearchApiAxiosParamCreator = function (configuration) {
43995
44056
  * @summary Search (POST)
43996
44057
  * @param {string} xStoreid Store ID (from dashboard)
43997
44058
  * @param {string} xStoresecret Store read secret (from dashboard)
43998
- * @param {DataTypesPublicSearchRequest} dataTypesPublicSearchRequest Search query, filters, pagination, and options
44059
+ * @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
43999
44060
  * @param {string} [xUserId] User ID for personalization
44000
44061
  * @param {string} [xAnonId] Anonymous user ID for personalization
44001
44062
  * @param {string} [xSessionId] Session ID for personalization
44002
44063
  * @param {*} [options] Override http request option.
44003
44064
  * @throws {RequiredError}
44004
44065
  */
44005
- v1SearchPost: (xStoreid_1, xStoresecret_1, dataTypesPublicSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, dataTypesPublicSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1], void 0, function* (xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options = {}) {
44066
+ v1SearchPost: (xStoreid_1, xStoresecret_1, dataTypesSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, dataTypesSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1], void 0, function* (xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options = {}) {
44006
44067
  // verify required parameter 'xStoreid' is not null or undefined
44007
44068
  (0, common_1.assertParamExists)('v1SearchPost', 'xStoreid', xStoreid);
44008
44069
  // verify required parameter 'xStoresecret' is not null or undefined
44009
44070
  (0, common_1.assertParamExists)('v1SearchPost', 'xStoresecret', xStoresecret);
44010
- // verify required parameter 'dataTypesPublicSearchRequest' is not null or undefined
44011
- (0, common_1.assertParamExists)('v1SearchPost', 'dataTypesPublicSearchRequest', dataTypesPublicSearchRequest);
44071
+ // verify required parameter 'dataTypesSearchRequest' is not null or undefined
44072
+ (0, common_1.assertParamExists)('v1SearchPost', 'dataTypesSearchRequest', dataTypesSearchRequest);
44012
44073
  const localVarPath = `/v1/search`;
44013
44074
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
44014
44075
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -44038,7 +44099,7 @@ const SearchApiAxiosParamCreator = function (configuration) {
44038
44099
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
44039
44100
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44040
44101
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
44041
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesPublicSearchRequest, localVarRequestOptions, configuration);
44102
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesSearchRequest, localVarRequestOptions, configuration);
44042
44103
  return {
44043
44104
  url: (0, common_1.toPathString)(localVarUrlObj),
44044
44105
  options: localVarRequestOptions,
@@ -44217,17 +44278,17 @@ const SearchApiFp = function (configuration) {
44217
44278
  * @summary Search (POST)
44218
44279
  * @param {string} xStoreid Store ID (from dashboard)
44219
44280
  * @param {string} xStoresecret Store read secret (from dashboard)
44220
- * @param {DataTypesPublicSearchRequest} dataTypesPublicSearchRequest Search query, filters, pagination, and options
44281
+ * @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
44221
44282
  * @param {string} [xUserId] User ID for personalization
44222
44283
  * @param {string} [xAnonId] Anonymous user ID for personalization
44223
44284
  * @param {string} [xSessionId] Session ID for personalization
44224
44285
  * @param {*} [options] Override http request option.
44225
44286
  * @throws {RequiredError}
44226
44287
  */
44227
- v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options) {
44288
+ v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
44228
44289
  return __awaiter(this, void 0, void 0, function* () {
44229
44290
  var _a, _b, _c;
44230
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options);
44291
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options);
44231
44292
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
44232
44293
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
44233
44294
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -44364,15 +44425,15 @@ const SearchApiFactory = function (configuration, basePath, axios) {
44364
44425
  * @summary Search (POST)
44365
44426
  * @param {string} xStoreid Store ID (from dashboard)
44366
44427
  * @param {string} xStoresecret Store read secret (from dashboard)
44367
- * @param {DataTypesPublicSearchRequest} dataTypesPublicSearchRequest Search query, filters, pagination, and options
44428
+ * @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
44368
44429
  * @param {string} [xUserId] User ID for personalization
44369
44430
  * @param {string} [xAnonId] Anonymous user ID for personalization
44370
44431
  * @param {string} [xSessionId] Session ID for personalization
44371
44432
  * @param {*} [options] Override http request option.
44372
44433
  * @throws {RequiredError}
44373
44434
  */
44374
- v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options) {
44375
- return localVarFp.v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(axios, basePath));
44435
+ v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
44436
+ return localVarFp.v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(axios, basePath));
44376
44437
  },
44377
44438
  };
44378
44439
  };
@@ -44512,7 +44573,7 @@ class SearchApi extends base_1.BaseAPI {
44512
44573
  * @summary Search (POST)
44513
44574
  * @param {string} xStoreid Store ID (from dashboard)
44514
44575
  * @param {string} xStoresecret Store read secret (from dashboard)
44515
- * @param {DataTypesPublicSearchRequest} dataTypesPublicSearchRequest Search query, filters, pagination, and options
44576
+ * @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
44516
44577
  * @param {string} [xUserId] User ID for personalization
44517
44578
  * @param {string} [xAnonId] Anonymous user ID for personalization
44518
44579
  * @param {string} [xSessionId] Session ID for personalization
@@ -44520,8 +44581,8 @@ class SearchApi extends base_1.BaseAPI {
44520
44581
  * @throws {RequiredError}
44521
44582
  * @memberof SearchApi
44522
44583
  */
44523
- v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options) {
44524
- return (0, exports.SearchApiFp)(this.configuration).v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(this.axios, this.basePath));
44584
+ v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
44585
+ return (0, exports.SearchApiFp)(this.configuration).v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(this.axios, this.basePath));
44525
44586
  }
44526
44587
  }
44527
44588
  exports.SearchApi = SearchApi;
@@ -46508,15 +46569,15 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
46508
46569
  * Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
46509
46570
  * @summary Create Store (Public SDK API)
46510
46571
  * @param {string} authorization Bearer JWT Token
46511
- * @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
46572
+ * @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
46512
46573
  * @param {*} [options] Override http request option.
46513
46574
  * @throws {RequiredError}
46514
46575
  */
46515
- apiV1StoresPost: (authorization_1, dataTypesPublicCreateStoreRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesPublicCreateStoreRequest_1, ...args_1], void 0, function* (authorization, dataTypesPublicCreateStoreRequest, options = {}) {
46576
+ apiV1StoresPost: (authorization_1, dataTypesCreateStoreRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesCreateStoreRequest_1, ...args_1], void 0, function* (authorization, dataTypesCreateStoreRequest, options = {}) {
46516
46577
  // verify required parameter 'authorization' is not null or undefined
46517
46578
  (0, common_1.assertParamExists)('apiV1StoresPost', 'authorization', authorization);
46518
- // verify required parameter 'dataTypesPublicCreateStoreRequest' is not null or undefined
46519
- (0, common_1.assertParamExists)('apiV1StoresPost', 'dataTypesPublicCreateStoreRequest', dataTypesPublicCreateStoreRequest);
46579
+ // verify required parameter 'dataTypesCreateStoreRequest' is not null or undefined
46580
+ (0, common_1.assertParamExists)('apiV1StoresPost', 'dataTypesCreateStoreRequest', dataTypesCreateStoreRequest);
46520
46581
  const localVarPath = `/api/v1/stores`;
46521
46582
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
46522
46583
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -46536,7 +46597,7 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
46536
46597
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
46537
46598
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46538
46599
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
46539
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesPublicCreateStoreRequest, localVarRequestOptions, configuration);
46600
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreateStoreRequest, localVarRequestOptions, configuration);
46540
46601
  return {
46541
46602
  url: (0, common_1.toPathString)(localVarUrlObj),
46542
46603
  options: localVarRequestOptions,
@@ -46591,19 +46652,19 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
46591
46652
  * @param {string} xStoreid Store ID (from dashboard)
46592
46653
  * @param {string} xStoreWriteSecret Store write secret
46593
46654
  * @param {string} xStoreID Store ID (must match x-storeid header)
46594
- * @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
46655
+ * @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
46595
46656
  * @param {*} [options] Override http request option.
46596
46657
  * @throws {RequiredError}
46597
46658
  */
46598
- apiV1StoresXStoreIDConfigPut: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesIndexConfig_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesIndexConfig_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options = {}) {
46659
+ apiV1StoresXStoreIDConfigPut: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesStoreConfigUpdateRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesStoreConfigUpdateRequest_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options = {}) {
46599
46660
  // verify required parameter 'xStoreid' is not null or undefined
46600
46661
  (0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'xStoreid', xStoreid);
46601
46662
  // verify required parameter 'xStoreWriteSecret' is not null or undefined
46602
46663
  (0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'xStoreWriteSecret', xStoreWriteSecret);
46603
46664
  // verify required parameter 'xStoreID' is not null or undefined
46604
46665
  (0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'xStoreID', xStoreID);
46605
- // verify required parameter 'dataTypesIndexConfig' is not null or undefined
46606
- (0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'dataTypesIndexConfig', dataTypesIndexConfig);
46666
+ // verify required parameter 'dataTypesStoreConfigUpdateRequest' is not null or undefined
46667
+ (0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'dataTypesStoreConfigUpdateRequest', dataTypesStoreConfigUpdateRequest);
46607
46668
  const localVarPath = `/api/v1/stores/{xStoreID}/config`
46608
46669
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
46609
46670
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -46627,7 +46688,7 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
46627
46688
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
46628
46689
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46629
46690
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
46630
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesIndexConfig, localVarRequestOptions, configuration);
46691
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesStoreConfigUpdateRequest, localVarRequestOptions, configuration);
46631
46692
  return {
46632
46693
  url: (0, common_1.toPathString)(localVarUrlObj),
46633
46694
  options: localVarRequestOptions,
@@ -47148,14 +47209,14 @@ const StoreManagementApiFp = function (configuration) {
47148
47209
  * Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
47149
47210
  * @summary Create Store (Public SDK API)
47150
47211
  * @param {string} authorization Bearer JWT Token
47151
- * @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
47212
+ * @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
47152
47213
  * @param {*} [options] Override http request option.
47153
47214
  * @throws {RequiredError}
47154
47215
  */
47155
- apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options) {
47216
+ apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options) {
47156
47217
  return __awaiter(this, void 0, void 0, function* () {
47157
47218
  var _a, _b, _c;
47158
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options);
47219
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options);
47159
47220
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
47160
47221
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreManagementApi.apiV1StoresPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
47161
47222
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -47185,14 +47246,14 @@ const StoreManagementApiFp = function (configuration) {
47185
47246
  * @param {string} xStoreid Store ID (from dashboard)
47186
47247
  * @param {string} xStoreWriteSecret Store write secret
47187
47248
  * @param {string} xStoreID Store ID (must match x-storeid header)
47188
- * @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
47249
+ * @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
47189
47250
  * @param {*} [options] Override http request option.
47190
47251
  * @throws {RequiredError}
47191
47252
  */
47192
- apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options) {
47253
+ apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options) {
47193
47254
  return __awaiter(this, void 0, void 0, function* () {
47194
47255
  var _a, _b, _c;
47195
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options);
47256
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options);
47196
47257
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
47197
47258
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreManagementApi.apiV1StoresXStoreIDConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
47198
47259
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -47416,12 +47477,12 @@ const StoreManagementApiFactory = function (configuration, basePath, axios) {
47416
47477
  * Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
47417
47478
  * @summary Create Store (Public SDK API)
47418
47479
  * @param {string} authorization Bearer JWT Token
47419
- * @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
47480
+ * @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
47420
47481
  * @param {*} [options] Override http request option.
47421
47482
  * @throws {RequiredError}
47422
47483
  */
47423
- apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options) {
47424
- return localVarFp.apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options).then((request) => request(axios, basePath));
47484
+ apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options) {
47485
+ return localVarFp.apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options).then((request) => request(axios, basePath));
47425
47486
  },
47426
47487
  /**
47427
47488
  * Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
@@ -47441,12 +47502,12 @@ const StoreManagementApiFactory = function (configuration, basePath, axios) {
47441
47502
  * @param {string} xStoreid Store ID (from dashboard)
47442
47503
  * @param {string} xStoreWriteSecret Store write secret
47443
47504
  * @param {string} xStoreID Store ID (must match x-storeid header)
47444
- * @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
47505
+ * @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
47445
47506
  * @param {*} [options] Override http request option.
47446
47507
  * @throws {RequiredError}
47447
47508
  */
47448
- apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options) {
47449
- return localVarFp.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options).then((request) => request(axios, basePath));
47509
+ apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options) {
47510
+ return localVarFp.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options).then((request) => request(axios, basePath));
47450
47511
  },
47451
47512
  /**
47452
47513
  * Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
@@ -47600,13 +47661,13 @@ class StoreManagementApi extends base_1.BaseAPI {
47600
47661
  * Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
47601
47662
  * @summary Create Store (Public SDK API)
47602
47663
  * @param {string} authorization Bearer JWT Token
47603
- * @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
47664
+ * @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
47604
47665
  * @param {*} [options] Override http request option.
47605
47666
  * @throws {RequiredError}
47606
47667
  * @memberof StoreManagementApi
47607
47668
  */
47608
- apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options) {
47609
- return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options).then((request) => request(this.axios, this.basePath));
47669
+ apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options) {
47670
+ return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options).then((request) => request(this.axios, this.basePath));
47610
47671
  }
47611
47672
  /**
47612
47673
  * Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
@@ -47627,13 +47688,13 @@ class StoreManagementApi extends base_1.BaseAPI {
47627
47688
  * @param {string} xStoreid Store ID (from dashboard)
47628
47689
  * @param {string} xStoreWriteSecret Store write secret
47629
47690
  * @param {string} xStoreID Store ID (must match x-storeid header)
47630
- * @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
47691
+ * @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
47631
47692
  * @param {*} [options] Override http request option.
47632
47693
  * @throws {RequiredError}
47633
47694
  * @memberof StoreManagementApi
47634
47695
  */
47635
- apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options) {
47636
- return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options).then((request) => request(this.axios, this.basePath));
47696
+ apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options) {
47697
+ return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options).then((request) => request(this.axios, this.basePath));
47637
47698
  }
47638
47699
  /**
47639
47700
  * Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
@@ -47913,6 +47974,37 @@ const StoresApiAxiosParamCreator = function (configuration) {
47913
47974
  options: localVarRequestOptions,
47914
47975
  };
47915
47976
  }),
47977
+ /**
47978
+ *
47979
+ * @summary Get store record size metrics
47980
+ * @param {number} storeID Store ID
47981
+ * @param {*} [options] Override http request option.
47982
+ * @throws {RequiredError}
47983
+ */
47984
+ adminStoresStoreIDMetricsRecordSizeGet: (storeID_1, ...args_1) => __awaiter(this, [storeID_1, ...args_1], void 0, function* (storeID, options = {}) {
47985
+ // verify required parameter 'storeID' is not null or undefined
47986
+ (0, common_1.assertParamExists)('adminStoresStoreIDMetricsRecordSizeGet', 'storeID', storeID);
47987
+ const localVarPath = `/admin/Stores/{storeID}/metrics/record-size`
47988
+ .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
47989
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47990
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
47991
+ let baseOptions;
47992
+ if (configuration) {
47993
+ baseOptions = configuration.baseOptions;
47994
+ }
47995
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
47996
+ const localVarHeaderParameter = {};
47997
+ const localVarQueryParameter = {};
47998
+ // authentication BearerAuth required
47999
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
48000
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
48001
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48002
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
48003
+ return {
48004
+ url: (0, common_1.toPathString)(localVarUrlObj),
48005
+ options: localVarRequestOptions,
48006
+ };
48007
+ }),
47916
48008
  /**
47917
48009
  * Updates store information by ID.
47918
48010
  * @summary Update an existing store
@@ -48767,6 +48859,22 @@ const StoresApiFp = function (configuration) {
48767
48859
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
48768
48860
  });
48769
48861
  },
48862
+ /**
48863
+ *
48864
+ * @summary Get store record size metrics
48865
+ * @param {number} storeID Store ID
48866
+ * @param {*} [options] Override http request option.
48867
+ * @throws {RequiredError}
48868
+ */
48869
+ adminStoresStoreIDMetricsRecordSizeGet(storeID, options) {
48870
+ return __awaiter(this, void 0, void 0, function* () {
48871
+ var _a, _b, _c;
48872
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDMetricsRecordSizeGet(storeID, options);
48873
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
48874
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDMetricsRecordSizeGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
48875
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
48876
+ });
48877
+ },
48770
48878
  /**
48771
48879
  * Updates store information by ID.
48772
48880
  * @summary Update an existing store
@@ -49191,6 +49299,16 @@ const StoresApiFactory = function (configuration, basePath, axios) {
49191
49299
  adminStoresStoreIDDocumentsDelete(storeID, options) {
49192
49300
  return localVarFp.adminStoresStoreIDDocumentsDelete(storeID, options).then((request) => request(axios, basePath));
49193
49301
  },
49302
+ /**
49303
+ *
49304
+ * @summary Get store record size metrics
49305
+ * @param {number} storeID Store ID
49306
+ * @param {*} [options] Override http request option.
49307
+ * @throws {RequiredError}
49308
+ */
49309
+ adminStoresStoreIDMetricsRecordSizeGet(storeID, options) {
49310
+ return localVarFp.adminStoresStoreIDMetricsRecordSizeGet(storeID, options).then((request) => request(axios, basePath));
49311
+ },
49194
49312
  /**
49195
49313
  * Updates store information by ID.
49196
49314
  * @summary Update an existing store
@@ -49487,6 +49605,17 @@ class StoresApi extends base_1.BaseAPI {
49487
49605
  adminStoresStoreIDDocumentsDelete(storeID, options) {
49488
49606
  return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDDocumentsDelete(storeID, options).then((request) => request(this.axios, this.basePath));
49489
49607
  }
49608
+ /**
49609
+ *
49610
+ * @summary Get store record size metrics
49611
+ * @param {number} storeID Store ID
49612
+ * @param {*} [options] Override http request option.
49613
+ * @throws {RequiredError}
49614
+ * @memberof StoresApi
49615
+ */
49616
+ adminStoresStoreIDMetricsRecordSizeGet(storeID, options) {
49617
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDMetricsRecordSizeGet(storeID, options).then((request) => request(this.axios, this.basePath));
49618
+ }
49490
49619
  /**
49491
49620
  * Updates store information by ID.
49492
49621
  * @summary Update an existing store