@seekora-ai/admin-api 1.0.13 → 1.0.14

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/api.ts CHANGED
@@ -23,19 +23,6 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
- /**
27
- *
28
- * @export
29
- * @interface AdminV1UsersOnboardingUploaddataPostRequest
30
- */
31
- export interface AdminV1UsersOnboardingUploaddataPostRequest {
32
- /**
33
- * File
34
- * @type {File}
35
- * @memberof AdminV1UsersOnboardingUploaddataPostRequest
36
- */
37
- 'File': File;
38
- }
39
26
  /**
40
27
  *
41
28
  * @export
@@ -121,6 +108,12 @@ export interface ApiSearchResultHit {
121
108
  * @memberof ApiSearchResultHit
122
109
  */
123
110
  'text_match'?: number;
111
+ /**
112
+ *
113
+ * @type {ApiSearchResultHitTextMatchInfo}
114
+ * @memberof ApiSearchResultHit
115
+ */
116
+ 'text_match_info'?: ApiSearchResultHitTextMatchInfo;
124
117
  /**
125
118
  * VectorDistance Distance between the query vector and matching document\'s vector value
126
119
  * @type {number}
@@ -128,6 +121,55 @@ export interface ApiSearchResultHit {
128
121
  */
129
122
  'vector_distance'?: number;
130
123
  }
124
+ /**
125
+ *
126
+ * @export
127
+ * @interface ApiSearchResultHitTextMatchInfo
128
+ */
129
+ export interface ApiSearchResultHitTextMatchInfo {
130
+ /**
131
+ *
132
+ * @type {string}
133
+ * @memberof ApiSearchResultHitTextMatchInfo
134
+ */
135
+ 'best_field_score'?: string;
136
+ /**
137
+ *
138
+ * @type {number}
139
+ * @memberof ApiSearchResultHitTextMatchInfo
140
+ */
141
+ 'best_field_weight'?: number;
142
+ /**
143
+ *
144
+ * @type {number}
145
+ * @memberof ApiSearchResultHitTextMatchInfo
146
+ */
147
+ 'fields_matched'?: number;
148
+ /**
149
+ *
150
+ * @type {number}
151
+ * @memberof ApiSearchResultHitTextMatchInfo
152
+ */
153
+ 'num_tokens_dropped'?: number;
154
+ /**
155
+ *
156
+ * @type {string}
157
+ * @memberof ApiSearchResultHitTextMatchInfo
158
+ */
159
+ 'score'?: string;
160
+ /**
161
+ *
162
+ * @type {number}
163
+ * @memberof ApiSearchResultHitTextMatchInfo
164
+ */
165
+ 'tokens_matched'?: number;
166
+ /**
167
+ *
168
+ * @type {number}
169
+ * @memberof ApiSearchResultHitTextMatchInfo
170
+ */
171
+ 'typo_prefix_score'?: number;
172
+ }
131
173
  /**
132
174
  *
133
175
  * @export
@@ -313,6 +355,98 @@ export interface DataTypesAPICallsListResponse {
313
355
  */
314
356
  'status'?: number;
315
357
  }
358
+ /**
359
+ *
360
+ * @export
361
+ * @interface DataTypesAdminSearchRequest
362
+ */
363
+ export interface DataTypesAdminSearchRequest {
364
+ /**
365
+ *
366
+ * @type {string}
367
+ * @memberof DataTypesAdminSearchRequest
368
+ */
369
+ 'facet_by'?: string;
370
+ /**
371
+ *
372
+ * @type {string}
373
+ * @memberof DataTypesAdminSearchRequest
374
+ */
375
+ 'filter'?: string;
376
+ /**
377
+ *
378
+ * @type {boolean}
379
+ * @memberof DataTypesAdminSearchRequest
380
+ */
381
+ 'include_suggestions'?: boolean;
382
+ /**
383
+ *
384
+ * @type {number}
385
+ * @memberof DataTypesAdminSearchRequest
386
+ */
387
+ 'max_facet_values'?: number;
388
+ /**
389
+ *
390
+ * @type {DataTypesSearchConfig}
391
+ * @memberof DataTypesAdminSearchRequest
392
+ */
393
+ 'override_config'?: DataTypesSearchConfig;
394
+ /**
395
+ *
396
+ * @type {number}
397
+ * @memberof DataTypesAdminSearchRequest
398
+ */
399
+ 'page'?: number;
400
+ /**
401
+ *
402
+ * @type {number}
403
+ * @memberof DataTypesAdminSearchRequest
404
+ */
405
+ 'per_page'?: number;
406
+ /**
407
+ *
408
+ * @type {string}
409
+ * @memberof DataTypesAdminSearchRequest
410
+ */
411
+ 'q': string;
412
+ /**
413
+ *
414
+ * @type {string}
415
+ * @memberof DataTypesAdminSearchRequest
416
+ */
417
+ 'sort'?: string;
418
+ /**
419
+ *
420
+ * @type {number}
421
+ * @memberof DataTypesAdminSearchRequest
422
+ */
423
+ 'suggestions_limit'?: number;
424
+ }
425
+ /**
426
+ *
427
+ * @export
428
+ * @interface DataTypesAutocompleteSuggestion
429
+ */
430
+ export interface DataTypesAutocompleteSuggestion {
431
+ /**
432
+ *
433
+ * @type {{ [key: string]: any; }}
434
+ * @memberof DataTypesAutocompleteSuggestion
435
+ */
436
+ 'highlight'?: { [key: string]: any; };
437
+ /**
438
+ *
439
+ * @type {number}
440
+ * @memberof DataTypesAutocompleteSuggestion
441
+ */
442
+ 'score'?: number;
443
+ /**
444
+ *
445
+ * @type {string}
446
+ * @memberof DataTypesAutocompleteSuggestion
447
+ */
448
+ 'text'?: string;
449
+ }
316
450
  /**
317
451
  *
318
452
  * @export
@@ -1141,6 +1275,31 @@ export interface DataTypesIndexConfig {
1141
1275
  */
1142
1276
  'version'?: number;
1143
1277
  }
1278
+ /**
1279
+ *
1280
+ * @export
1281
+ * @interface DataTypesIndexConfigResponse
1282
+ */
1283
+ export interface DataTypesIndexConfigResponse {
1284
+ /**
1285
+ *
1286
+ * @type {DataTypesIndexConfig}
1287
+ * @memberof DataTypesIndexConfigResponse
1288
+ */
1289
+ 'data'?: DataTypesIndexConfig;
1290
+ /**
1291
+ *
1292
+ * @type {string}
1293
+ * @memberof DataTypesIndexConfigResponse
1294
+ */
1295
+ 'message'?: string;
1296
+ /**
1297
+ *
1298
+ * @type {number}
1299
+ * @memberof DataTypesIndexConfigResponse
1300
+ */
1301
+ 'status'?: number;
1302
+ }
1144
1303
  /**
1145
1304
  *
1146
1305
  * @export
@@ -1919,6 +2078,105 @@ export interface DataTypesOTPPayload {
1919
2078
  */
1920
2079
  'otp'?: string;
1921
2080
  }
2081
+ /**
2082
+ *
2083
+ * @export
2084
+ * @interface DataTypesOfficialSearchResponse
2085
+ */
2086
+ export interface DataTypesOfficialSearchResponse {
2087
+ /**
2088
+ *
2089
+ * @type {object}
2090
+ * @memberof DataTypesOfficialSearchResponse
2091
+ */
2092
+ 'facets'?: object;
2093
+ /**
2094
+ *
2095
+ * @type {number}
2096
+ * @memberof DataTypesOfficialSearchResponse
2097
+ */
2098
+ 'page'?: number;
2099
+ /**
2100
+ *
2101
+ * @type {number}
2102
+ * @memberof DataTypesOfficialSearchResponse
2103
+ */
2104
+ 'per_page'?: number;
2105
+ /**
2106
+ *
2107
+ * @type {Array<DataTypesOfficialSearchResult>}
2108
+ * @memberof DataTypesOfficialSearchResponse
2109
+ */
2110
+ 'results'?: Array<DataTypesOfficialSearchResult>;
2111
+ /**
2112
+ *
2113
+ * @type {Array<DataTypesAutocompleteSuggestion>}
2114
+ * @memberof DataTypesOfficialSearchResponse
2115
+ */
2116
+ 'suggestions'?: Array<DataTypesAutocompleteSuggestion>;
2117
+ /**
2118
+ *
2119
+ * @type {number}
2120
+ * @memberof DataTypesOfficialSearchResponse
2121
+ */
2122
+ 'total_results'?: number;
2123
+ }
2124
+ /**
2125
+ *
2126
+ * @export
2127
+ * @interface DataTypesOfficialSearchResponseWrapper
2128
+ */
2129
+ export interface DataTypesOfficialSearchResponseWrapper {
2130
+ /**
2131
+ *
2132
+ * @type {DataTypesOfficialSearchResponse}
2133
+ * @memberof DataTypesOfficialSearchResponseWrapper
2134
+ */
2135
+ 'data'?: DataTypesOfficialSearchResponse;
2136
+ /**
2137
+ *
2138
+ * @type {string}
2139
+ * @memberof DataTypesOfficialSearchResponseWrapper
2140
+ */
2141
+ 'message'?: string;
2142
+ /**
2143
+ *
2144
+ * @type {number}
2145
+ * @memberof DataTypesOfficialSearchResponseWrapper
2146
+ */
2147
+ 'status'?: number;
2148
+ }
2149
+ /**
2150
+ *
2151
+ * @export
2152
+ * @interface DataTypesOfficialSearchResult
2153
+ */
2154
+ export interface DataTypesOfficialSearchResult {
2155
+ /**
2156
+ *
2157
+ * @type {{ [key: string]: any; }}
2158
+ * @memberof DataTypesOfficialSearchResult
2159
+ */
2160
+ 'document'?: { [key: string]: any; };
2161
+ /**
2162
+ *
2163
+ * @type {{ [key: string]: any; }}
2164
+ * @memberof DataTypesOfficialSearchResult
2165
+ */
2166
+ 'highlight'?: { [key: string]: any; };
2167
+ /**
2168
+ *
2169
+ * @type {string}
2170
+ * @memberof DataTypesOfficialSearchResult
2171
+ */
2172
+ 'id'?: string;
2173
+ /**
2174
+ *
2175
+ * @type {number}
2176
+ * @memberof DataTypesOfficialSearchResult
2177
+ */
2178
+ 'score'?: number;
2179
+ }
1922
2180
  /**
1923
2181
  *
1924
2182
  * @export
@@ -2628,6 +2886,67 @@ export interface DataTypesPlansListResponse {
2628
2886
  */
2629
2887
  'status'?: number;
2630
2888
  }
2889
+ /**
2890
+ *
2891
+ * @export
2892
+ * @interface DataTypesPublicSearchRequest
2893
+ */
2894
+ export interface DataTypesPublicSearchRequest {
2895
+ /**
2896
+ *
2897
+ * @type {string}
2898
+ * @memberof DataTypesPublicSearchRequest
2899
+ */
2900
+ 'facet_by'?: string;
2901
+ /**
2902
+ *
2903
+ * @type {string}
2904
+ * @memberof DataTypesPublicSearchRequest
2905
+ */
2906
+ 'filter'?: string;
2907
+ /**
2908
+ *
2909
+ * @type {boolean}
2910
+ * @memberof DataTypesPublicSearchRequest
2911
+ */
2912
+ 'include_suggestions'?: boolean;
2913
+ /**
2914
+ *
2915
+ * @type {number}
2916
+ * @memberof DataTypesPublicSearchRequest
2917
+ */
2918
+ 'max_facet_values'?: number;
2919
+ /**
2920
+ *
2921
+ * @type {number}
2922
+ * @memberof DataTypesPublicSearchRequest
2923
+ */
2924
+ 'page'?: number;
2925
+ /**
2926
+ *
2927
+ * @type {number}
2928
+ * @memberof DataTypesPublicSearchRequest
2929
+ */
2930
+ 'per_page'?: number;
2931
+ /**
2932
+ *
2933
+ * @type {string}
2934
+ * @memberof DataTypesPublicSearchRequest
2935
+ */
2936
+ 'q': string;
2937
+ /**
2938
+ *
2939
+ * @type {string}
2940
+ * @memberof DataTypesPublicSearchRequest
2941
+ */
2942
+ 'sort'?: string;
2943
+ /**
2944
+ *
2945
+ * @type {number}
2946
+ * @memberof DataTypesPublicSearchRequest
2947
+ */
2948
+ 'suggestions_limit'?: number;
2949
+ }
2631
2950
  /**
2632
2951
  *
2633
2952
  * @export
@@ -3008,6 +3327,12 @@ export interface DataTypesSampleDatasetResponse {
3008
3327
  * @memberof DataTypesSampleDatasetResponse
3009
3328
  */
3010
3329
  'storeName'?: string;
3330
+ /**
3331
+ *
3332
+ * @type {Array<string>}
3333
+ * @memberof DataTypesSampleDatasetResponse
3334
+ */
3335
+ 'tags'?: Array<string>;
3011
3336
  }
3012
3337
  /**
3013
3338
  *
@@ -3084,6 +3409,61 @@ export interface DataTypesSchemaOptionsResponseWrapper {
3084
3409
  */
3085
3410
  'status'?: number;
3086
3411
  }
3412
+ /**
3413
+ *
3414
+ * @export
3415
+ * @interface DataTypesSearchConfig
3416
+ */
3417
+ export interface DataTypesSearchConfig {
3418
+ /**
3419
+ *
3420
+ * @type {Array<string>}
3421
+ * @memberof DataTypesSearchConfig
3422
+ */
3423
+ 'attributesToHighlight'?: Array<string>;
3424
+ /**
3425
+ *
3426
+ * @type {Array<string>}
3427
+ * @memberof DataTypesSearchConfig
3428
+ */
3429
+ 'attributesToRetrieve'?: Array<string>;
3430
+ /**
3431
+ *
3432
+ * @type {{ [key: string]: any; }}
3433
+ * @memberof DataTypesSearchConfig
3434
+ */
3435
+ 'displayAttributes'?: { [key: string]: any; };
3436
+ /**
3437
+ *
3438
+ * @type {number}
3439
+ * @memberof DataTypesSearchConfig
3440
+ */
3441
+ 'hitsPerPage'?: number;
3442
+ /**
3443
+ *
3444
+ * @type {number}
3445
+ * @memberof DataTypesSearchConfig
3446
+ */
3447
+ 'maxNbHits'?: number;
3448
+ /**
3449
+ *
3450
+ * @type {string}
3451
+ * @memberof DataTypesSearchConfig
3452
+ */
3453
+ 'query_by'?: string;
3454
+ /**
3455
+ *
3456
+ * @type {Array<string>}
3457
+ * @memberof DataTypesSearchConfig
3458
+ */
3459
+ 'ranking'?: Array<string>;
3460
+ /**
3461
+ *
3462
+ * @type {Array<string>}
3463
+ * @memberof DataTypesSearchConfig
3464
+ */
3465
+ 'searchableAttributes'?: Array<string>;
3466
+ }
3087
3467
  /**
3088
3468
  *
3089
3469
  * @export
@@ -3512,6 +3892,12 @@ export interface DataTypesStore {
3512
3892
  * @memberof DataTypesStore
3513
3893
  */
3514
3894
  'StoreName'?: string;
3895
+ /**
3896
+ * Store alias
3897
+ * @type {string}
3898
+ * @memberof DataTypesStore
3899
+ */
3900
+ 'alias'?: string;
3515
3901
  }
3516
3902
  /**
3517
3903
  *
@@ -9347,13 +9733,13 @@ export const OnboardingApiAxiosParamCreator = function (configuration?: Configur
9347
9733
  /**
9348
9734
  * Upload source data
9349
9735
  * @summary Upload source data
9350
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
9736
+ * @param {File} file File
9351
9737
  * @param {*} [options] Override http request option.
9352
9738
  * @throws {RequiredError}
9353
9739
  */
9354
- adminV1UsersOnboardingUploaddataPost: async (adminV1UsersOnboardingUploaddataPostRequest: AdminV1UsersOnboardingUploaddataPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9355
- // verify required parameter 'adminV1UsersOnboardingUploaddataPostRequest' is not null or undefined
9356
- assertParamExists('adminV1UsersOnboardingUploaddataPost', 'adminV1UsersOnboardingUploaddataPostRequest', adminV1UsersOnboardingUploaddataPostRequest)
9740
+ adminV1UsersOnboardingUploaddataPost: async (file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9741
+ // verify required parameter 'file' is not null or undefined
9742
+ assertParamExists('adminV1UsersOnboardingUploaddataPost', 'file', file)
9357
9743
  const localVarPath = `/admin/v1/users/onboarding/uploaddata`;
9358
9744
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9359
9745
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -9365,18 +9751,23 @@ export const OnboardingApiAxiosParamCreator = function (configuration?: Configur
9365
9751
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9366
9752
  const localVarHeaderParameter = {} as any;
9367
9753
  const localVarQueryParameter = {} as any;
9754
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
9368
9755
 
9369
9756
  // authentication BearerAuth required
9370
9757
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
9371
9758
 
9372
9759
 
9760
+ if (file !== undefined) {
9761
+ localVarFormParams.append('File', file as any);
9762
+ }
9763
+
9764
+
9765
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
9373
9766
 
9374
- localVarHeaderParameter['Content-Type'] = 'application/json';
9375
-
9376
9767
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9377
9768
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9378
9769
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9379
- localVarRequestOptions.data = serializeDataIfNeeded(adminV1UsersOnboardingUploaddataPostRequest, localVarRequestOptions, configuration)
9770
+ localVarRequestOptions.data = localVarFormParams;
9380
9771
 
9381
9772
  return {
9382
9773
  url: toPathString(localVarUrlObj),
@@ -9517,12 +9908,12 @@ export const OnboardingApiFp = function(configuration?: Configuration) {
9517
9908
  /**
9518
9909
  * Upload source data
9519
9910
  * @summary Upload source data
9520
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
9911
+ * @param {File} file File
9521
9912
  * @param {*} [options] Override http request option.
9522
9913
  * @throws {RequiredError}
9523
9914
  */
9524
- async adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest: AdminV1UsersOnboardingUploaddataPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUploadSourceDataResponseWrapper>> {
9525
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options);
9915
+ async adminV1UsersOnboardingUploaddataPost(file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUploadSourceDataResponseWrapper>> {
9916
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(file, options);
9526
9917
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9527
9918
  const localVarOperationServerBasePath = operationServerMap['OnboardingApi.adminV1UsersOnboardingUploaddataPost']?.[localVarOperationServerIndex]?.url;
9528
9919
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9619,12 +10010,12 @@ export const OnboardingApiFactory = function (configuration?: Configuration, bas
9619
10010
  /**
9620
10011
  * Upload source data
9621
10012
  * @summary Upload source data
9622
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
10013
+ * @param {File} file File
9623
10014
  * @param {*} [options] Override http request option.
9624
10015
  * @throws {RequiredError}
9625
10016
  */
9626
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest: AdminV1UsersOnboardingUploaddataPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUploadSourceDataResponseWrapper> {
9627
- return localVarFp.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(axios, basePath));
10017
+ adminV1UsersOnboardingUploaddataPost(file: File, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUploadSourceDataResponseWrapper> {
10018
+ return localVarFp.adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(axios, basePath));
9628
10019
  },
9629
10020
  /**
9630
10021
  * Get sample datasets
@@ -9729,13 +10120,13 @@ export class OnboardingApi extends BaseAPI {
9729
10120
  /**
9730
10121
  * Upload source data
9731
10122
  * @summary Upload source data
9732
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
10123
+ * @param {File} file File
9733
10124
  * @param {*} [options] Override http request option.
9734
10125
  * @throws {RequiredError}
9735
10126
  * @memberof OnboardingApi
9736
10127
  */
9737
- public adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest: AdminV1UsersOnboardingUploaddataPostRequest, options?: RawAxiosRequestConfig) {
9738
- return OnboardingApiFp(this.configuration).adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(this.axios, this.basePath));
10128
+ public adminV1UsersOnboardingUploaddataPost(file: File, options?: RawAxiosRequestConfig) {
10129
+ return OnboardingApiFp(this.configuration).adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(this.axios, this.basePath));
9739
10130
  }
9740
10131
 
9741
10132
  /**
@@ -13154,22 +13545,22 @@ export class RolesApi extends BaseAPI {
13154
13545
  export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
13155
13546
  return {
13156
13547
  /**
13157
- * Configure the index for search
13158
- * @summary Index Config
13159
- * @param {string} xStoreid Store ID
13160
- * @param {string} xStoresecret Store Secret
13161
- * @param {DataTypesIndexConfig} body Index configuration
13548
+ * Search documents with optional configuration override and autocomplete suggestions
13549
+ * @summary Admin Search API
13550
+ * @param {string} xStoreID Store ID for the selected store
13551
+ * @param {string} xStoreSecret Store Secret for the selected store
13552
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13162
13553
  * @param {*} [options] Override http request option.
13163
13554
  * @throws {RequiredError}
13164
13555
  */
13165
- v1IndexConfigPost: async (xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13166
- // verify required parameter 'xStoreid' is not null or undefined
13167
- assertParamExists('v1IndexConfigPost', 'xStoreid', xStoreid)
13168
- // verify required parameter 'xStoresecret' is not null or undefined
13169
- assertParamExists('v1IndexConfigPost', 'xStoresecret', xStoresecret)
13556
+ adminV1SearchPost: async (xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13557
+ // verify required parameter 'xStoreID' is not null or undefined
13558
+ assertParamExists('adminV1SearchPost', 'xStoreID', xStoreID)
13559
+ // verify required parameter 'xStoreSecret' is not null or undefined
13560
+ assertParamExists('adminV1SearchPost', 'xStoreSecret', xStoreSecret)
13170
13561
  // verify required parameter 'body' is not null or undefined
13171
- assertParamExists('v1IndexConfigPost', 'body', body)
13172
- const localVarPath = `/v1/index/config`;
13562
+ assertParamExists('adminV1SearchPost', 'body', body)
13563
+ const localVarPath = `/admin/v1/search`;
13173
13564
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13174
13565
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13175
13566
  let baseOptions;
@@ -13181,15 +13572,18 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13181
13572
  const localVarHeaderParameter = {} as any;
13182
13573
  const localVarQueryParameter = {} as any;
13183
13574
 
13575
+ // authentication BearerAuth required
13576
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13577
+
13184
13578
 
13185
13579
 
13186
13580
  localVarHeaderParameter['Content-Type'] = 'application/json';
13187
13581
 
13188
- if (xStoreid != null) {
13189
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
13582
+ if (xStoreID != null) {
13583
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
13190
13584
  }
13191
- if (xStoresecret != null) {
13192
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
13585
+ if (xStoreSecret != null) {
13586
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
13193
13587
  }
13194
13588
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13195
13589
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -13202,26 +13596,17 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13202
13596
  };
13203
13597
  },
13204
13598
  /**
13205
- * Update a single property of the index configuration
13206
- * @summary Update Index Config Property
13207
- * @param {string} xStoreid Store ID
13208
- * @param {string} xStoresecret Store Secret
13209
- * @param {string} property Property name
13210
- * @param {object} body Property value
13599
+ * Get the current index configuration
13600
+ * @summary Get Index Config
13601
+ * @param {string} indexname Index Name
13211
13602
  * @param {*} [options] Override http request option.
13212
13603
  * @throws {RequiredError}
13213
13604
  */
13214
- v1IndexConfigPropertyPatch: async (xStoreid: string, xStoresecret: string, property: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13215
- // verify required parameter 'xStoreid' is not null or undefined
13216
- assertParamExists('v1IndexConfigPropertyPatch', 'xStoreid', xStoreid)
13217
- // verify required parameter 'xStoresecret' is not null or undefined
13218
- assertParamExists('v1IndexConfigPropertyPatch', 'xStoresecret', xStoresecret)
13219
- // verify required parameter 'property' is not null or undefined
13220
- assertParamExists('v1IndexConfigPropertyPatch', 'property', property)
13221
- // verify required parameter 'body' is not null or undefined
13222
- assertParamExists('v1IndexConfigPropertyPatch', 'body', body)
13223
- const localVarPath = `/v1/index/config/{property}`
13224
- .replace(`{${"property"}}`, encodeURIComponent(String(property)));
13605
+ v1IndexIndexnameConfigGet: async (indexname: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13606
+ // verify required parameter 'indexname' is not null or undefined
13607
+ assertParamExists('v1IndexIndexnameConfigGet', 'indexname', indexname)
13608
+ const localVarPath = `/v1/index/{indexname}/config`
13609
+ .replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)));
13225
13610
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13226
13611
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13227
13612
  let baseOptions;
@@ -13229,24 +13614,15 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13229
13614
  baseOptions = configuration.baseOptions;
13230
13615
  }
13231
13616
 
13232
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13617
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13233
13618
  const localVarHeaderParameter = {} as any;
13234
13619
  const localVarQueryParameter = {} as any;
13235
13620
 
13236
13621
 
13237
13622
 
13238
- localVarHeaderParameter['Content-Type'] = 'application/json';
13239
-
13240
- if (xStoreid != null) {
13241
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
13242
- }
13243
- if (xStoresecret != null) {
13244
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
13245
- }
13246
13623
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13247
13624
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13248
13625
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13249
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13250
13626
 
13251
13627
  return {
13252
13628
  url: toPathString(localVarUrlObj),
@@ -13256,18 +13632,12 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13256
13632
  /**
13257
13633
  * Configure the index for search
13258
13634
  * @summary Index Config
13259
- * @param {string} xStoreid Store ID
13260
- * @param {string} xStoresecret Store Secret
13261
13635
  * @param {string} indexname Index Name
13262
13636
  * @param {DataTypesIndexConfig} body Index configuration
13263
13637
  * @param {*} [options] Override http request option.
13264
13638
  * @throws {RequiredError}
13265
13639
  */
13266
- v1IndexIndexnameConfigPost: async (xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13267
- // verify required parameter 'xStoreid' is not null or undefined
13268
- assertParamExists('v1IndexIndexnameConfigPost', 'xStoreid', xStoreid)
13269
- // verify required parameter 'xStoresecret' is not null or undefined
13270
- assertParamExists('v1IndexIndexnameConfigPost', 'xStoresecret', xStoresecret)
13640
+ v1IndexIndexnameConfigPost: async (indexname: string, body: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13271
13641
  // verify required parameter 'indexname' is not null or undefined
13272
13642
  assertParamExists('v1IndexIndexnameConfigPost', 'indexname', indexname)
13273
13643
  // verify required parameter 'body' is not null or undefined
@@ -13289,12 +13659,6 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13289
13659
 
13290
13660
  localVarHeaderParameter['Content-Type'] = 'application/json';
13291
13661
 
13292
- if (xStoreid != null) {
13293
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
13294
- }
13295
- if (xStoresecret != null) {
13296
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
13297
- }
13298
13662
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13299
13663
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13300
13664
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13308,19 +13672,13 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13308
13672
  /**
13309
13673
  * Update a single property of the index configuration
13310
13674
  * @summary Update Index Config Property
13311
- * @param {string} xStoreid Store ID
13312
- * @param {string} xStoresecret Store Secret
13313
13675
  * @param {string} indexname Index Name
13314
13676
  * @param {string} property Property name
13315
13677
  * @param {object} body Property value
13316
13678
  * @param {*} [options] Override http request option.
13317
13679
  * @throws {RequiredError}
13318
13680
  */
13319
- v1IndexIndexnameConfigPropertyPatch: async (xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13320
- // verify required parameter 'xStoreid' is not null or undefined
13321
- assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'xStoreid', xStoreid)
13322
- // verify required parameter 'xStoresecret' is not null or undefined
13323
- assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'xStoresecret', xStoresecret)
13681
+ v1IndexIndexnameConfigPropertyPatch: async (indexname: string, property: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13324
13682
  // verify required parameter 'indexname' is not null or undefined
13325
13683
  assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'indexname', indexname)
13326
13684
  // verify required parameter 'property' is not null or undefined
@@ -13345,11 +13703,53 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13345
13703
 
13346
13704
  localVarHeaderParameter['Content-Type'] = 'application/json';
13347
13705
 
13348
- if (xStoreid != null) {
13349
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
13706
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13707
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13708
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13709
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13710
+
13711
+ return {
13712
+ url: toPathString(localVarUrlObj),
13713
+ options: localVarRequestOptions,
13714
+ };
13715
+ },
13716
+ /**
13717
+ * Search documents using store credentials with optional autocomplete suggestions
13718
+ * @summary Public Search API
13719
+ * @param {string} xStoreID Store ID
13720
+ * @param {string} xStoreSecret Store Secret
13721
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
13722
+ * @param {*} [options] Override http request option.
13723
+ * @throws {RequiredError}
13724
+ */
13725
+ v1SearchPost: async (xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13726
+ // verify required parameter 'xStoreID' is not null or undefined
13727
+ assertParamExists('v1SearchPost', 'xStoreID', xStoreID)
13728
+ // verify required parameter 'xStoreSecret' is not null or undefined
13729
+ assertParamExists('v1SearchPost', 'xStoreSecret', xStoreSecret)
13730
+ // verify required parameter 'body' is not null or undefined
13731
+ assertParamExists('v1SearchPost', 'body', body)
13732
+ const localVarPath = `/v1/search`;
13733
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13734
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13735
+ let baseOptions;
13736
+ if (configuration) {
13737
+ baseOptions = configuration.baseOptions;
13350
13738
  }
13351
- if (xStoresecret != null) {
13352
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
13739
+
13740
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13741
+ const localVarHeaderParameter = {} as any;
13742
+ const localVarQueryParameter = {} as any;
13743
+
13744
+
13745
+
13746
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13747
+
13748
+ if (xStoreID != null) {
13749
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
13750
+ }
13751
+ if (xStoreSecret != null) {
13752
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
13353
13753
  }
13354
13754
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13355
13755
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -13372,48 +13772,43 @@ export const SearchApiFp = function(configuration?: Configuration) {
13372
13772
  const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
13373
13773
  return {
13374
13774
  /**
13375
- * Configure the index for search
13376
- * @summary Index Config
13377
- * @param {string} xStoreid Store ID
13378
- * @param {string} xStoresecret Store Secret
13379
- * @param {DataTypesIndexConfig} body Index configuration
13775
+ * Search documents with optional configuration override and autocomplete suggestions
13776
+ * @summary Admin Search API
13777
+ * @param {string} xStoreID Store ID for the selected store
13778
+ * @param {string} xStoreSecret Store Secret for the selected store
13779
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13380
13780
  * @param {*} [options] Override http request option.
13381
13781
  * @throws {RequiredError}
13382
13782
  */
13383
- async v1IndexConfigPost(xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
13384
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexConfigPost(xStoreid, xStoresecret, body, options);
13783
+ async adminV1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOfficialSearchResponseWrapper>> {
13784
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1SearchPost(xStoreID, xStoreSecret, body, options);
13385
13785
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13386
- const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexConfigPost']?.[localVarOperationServerIndex]?.url;
13786
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.adminV1SearchPost']?.[localVarOperationServerIndex]?.url;
13387
13787
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13388
13788
  },
13389
13789
  /**
13390
- * Update a single property of the index configuration
13391
- * @summary Update Index Config Property
13392
- * @param {string} xStoreid Store ID
13393
- * @param {string} xStoresecret Store Secret
13394
- * @param {string} property Property name
13395
- * @param {object} body Property value
13790
+ * Get the current index configuration
13791
+ * @summary Get Index Config
13792
+ * @param {string} indexname Index Name
13396
13793
  * @param {*} [options] Override http request option.
13397
13794
  * @throws {RequiredError}
13398
13795
  */
13399
- async v1IndexConfigPropertyPatch(xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
13400
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options);
13796
+ async v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesIndexConfigResponse>> {
13797
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigGet(indexname, options);
13401
13798
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13402
- const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexConfigPropertyPatch']?.[localVarOperationServerIndex]?.url;
13799
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigGet']?.[localVarOperationServerIndex]?.url;
13403
13800
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13404
13801
  },
13405
13802
  /**
13406
13803
  * Configure the index for search
13407
13804
  * @summary Index Config
13408
- * @param {string} xStoreid Store ID
13409
- * @param {string} xStoresecret Store Secret
13410
13805
  * @param {string} indexname Index Name
13411
13806
  * @param {DataTypesIndexConfig} body Index configuration
13412
13807
  * @param {*} [options] Override http request option.
13413
13808
  * @throws {RequiredError}
13414
13809
  */
13415
- async v1IndexIndexnameConfigPost(xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
13416
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options);
13810
+ async v1IndexIndexnameConfigPost(indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
13811
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigPost(indexname, body, options);
13417
13812
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13418
13813
  const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigPost']?.[localVarOperationServerIndex]?.url;
13419
13814
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13421,20 +13816,33 @@ export const SearchApiFp = function(configuration?: Configuration) {
13421
13816
  /**
13422
13817
  * Update a single property of the index configuration
13423
13818
  * @summary Update Index Config Property
13424
- * @param {string} xStoreid Store ID
13425
- * @param {string} xStoresecret Store Secret
13426
13819
  * @param {string} indexname Index Name
13427
13820
  * @param {string} property Property name
13428
13821
  * @param {object} body Property value
13429
13822
  * @param {*} [options] Override http request option.
13430
13823
  * @throws {RequiredError}
13431
13824
  */
13432
- async v1IndexIndexnameConfigPropertyPatch(xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
13433
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options);
13825
+ async v1IndexIndexnameConfigPropertyPatch(indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
13826
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options);
13434
13827
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13435
13828
  const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigPropertyPatch']?.[localVarOperationServerIndex]?.url;
13436
13829
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13437
13830
  },
13831
+ /**
13832
+ * Search documents using store credentials with optional autocomplete suggestions
13833
+ * @summary Public Search API
13834
+ * @param {string} xStoreID Store ID
13835
+ * @param {string} xStoreSecret Store Secret
13836
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
13837
+ * @param {*} [options] Override http request option.
13838
+ * @throws {RequiredError}
13839
+ */
13840
+ async v1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOfficialSearchResponseWrapper>> {
13841
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1SearchPost(xStoreID, xStoreSecret, body, options);
13842
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13843
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.v1SearchPost']?.[localVarOperationServerIndex]?.url;
13844
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13845
+ },
13438
13846
  }
13439
13847
  };
13440
13848
 
@@ -13446,56 +13854,61 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
13446
13854
  const localVarFp = SearchApiFp(configuration)
13447
13855
  return {
13448
13856
  /**
13449
- * Configure the index for search
13450
- * @summary Index Config
13451
- * @param {string} xStoreid Store ID
13452
- * @param {string} xStoresecret Store Secret
13453
- * @param {DataTypesIndexConfig} body Index configuration
13857
+ * Search documents with optional configuration override and autocomplete suggestions
13858
+ * @summary Admin Search API
13859
+ * @param {string} xStoreID Store ID for the selected store
13860
+ * @param {string} xStoreSecret Store Secret for the selected store
13861
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13454
13862
  * @param {*} [options] Override http request option.
13455
13863
  * @throws {RequiredError}
13456
13864
  */
13457
- v1IndexConfigPost(xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
13458
- return localVarFp.v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(axios, basePath));
13865
+ adminV1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOfficialSearchResponseWrapper> {
13866
+ return localVarFp.adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
13459
13867
  },
13460
13868
  /**
13461
- * Update a single property of the index configuration
13462
- * @summary Update Index Config Property
13463
- * @param {string} xStoreid Store ID
13464
- * @param {string} xStoresecret Store Secret
13465
- * @param {string} property Property name
13466
- * @param {object} body Property value
13869
+ * Get the current index configuration
13870
+ * @summary Get Index Config
13871
+ * @param {string} indexname Index Name
13467
13872
  * @param {*} [options] Override http request option.
13468
13873
  * @throws {RequiredError}
13469
13874
  */
13470
- v1IndexConfigPropertyPatch(xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
13471
- return localVarFp.v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(axios, basePath));
13875
+ v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesIndexConfigResponse> {
13876
+ return localVarFp.v1IndexIndexnameConfigGet(indexname, options).then((request) => request(axios, basePath));
13472
13877
  },
13473
13878
  /**
13474
13879
  * Configure the index for search
13475
13880
  * @summary Index Config
13476
- * @param {string} xStoreid Store ID
13477
- * @param {string} xStoresecret Store Secret
13478
13881
  * @param {string} indexname Index Name
13479
13882
  * @param {DataTypesIndexConfig} body Index configuration
13480
13883
  * @param {*} [options] Override http request option.
13481
13884
  * @throws {RequiredError}
13482
13885
  */
13483
- v1IndexIndexnameConfigPost(xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
13484
- return localVarFp.v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(axios, basePath));
13886
+ v1IndexIndexnameConfigPost(indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
13887
+ return localVarFp.v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(axios, basePath));
13485
13888
  },
13486
13889
  /**
13487
13890
  * Update a single property of the index configuration
13488
13891
  * @summary Update Index Config Property
13489
- * @param {string} xStoreid Store ID
13490
- * @param {string} xStoresecret Store Secret
13491
13892
  * @param {string} indexname Index Name
13492
13893
  * @param {string} property Property name
13493
13894
  * @param {object} body Property value
13494
13895
  * @param {*} [options] Override http request option.
13495
13896
  * @throws {RequiredError}
13496
13897
  */
13497
- v1IndexIndexnameConfigPropertyPatch(xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
13498
- return localVarFp.v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(axios, basePath));
13898
+ v1IndexIndexnameConfigPropertyPatch(indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
13899
+ return localVarFp.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(axios, basePath));
13900
+ },
13901
+ /**
13902
+ * Search documents using store credentials with optional autocomplete suggestions
13903
+ * @summary Public Search API
13904
+ * @param {string} xStoreID Store ID
13905
+ * @param {string} xStoreSecret Store Secret
13906
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
13907
+ * @param {*} [options] Override http request option.
13908
+ * @throws {RequiredError}
13909
+ */
13910
+ v1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOfficialSearchResponseWrapper> {
13911
+ return localVarFp.v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
13499
13912
  },
13500
13913
  };
13501
13914
  };
@@ -13508,54 +13921,47 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
13508
13921
  */
13509
13922
  export class SearchApi extends BaseAPI {
13510
13923
  /**
13511
- * Configure the index for search
13512
- * @summary Index Config
13513
- * @param {string} xStoreid Store ID
13514
- * @param {string} xStoresecret Store Secret
13515
- * @param {DataTypesIndexConfig} body Index configuration
13924
+ * Search documents with optional configuration override and autocomplete suggestions
13925
+ * @summary Admin Search API
13926
+ * @param {string} xStoreID Store ID for the selected store
13927
+ * @param {string} xStoreSecret Store Secret for the selected store
13928
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13516
13929
  * @param {*} [options] Override http request option.
13517
13930
  * @throws {RequiredError}
13518
13931
  * @memberof SearchApi
13519
13932
  */
13520
- public v1IndexConfigPost(xStoreid: string, xStoresecret: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig) {
13521
- return SearchApiFp(this.configuration).v1IndexConfigPost(xStoreid, xStoresecret, body, options).then((request) => request(this.axios, this.basePath));
13933
+ public adminV1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig) {
13934
+ return SearchApiFp(this.configuration).adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
13522
13935
  }
13523
13936
 
13524
13937
  /**
13525
- * Update a single property of the index configuration
13526
- * @summary Update Index Config Property
13527
- * @param {string} xStoreid Store ID
13528
- * @param {string} xStoresecret Store Secret
13529
- * @param {string} property Property name
13530
- * @param {object} body Property value
13938
+ * Get the current index configuration
13939
+ * @summary Get Index Config
13940
+ * @param {string} indexname Index Name
13531
13941
  * @param {*} [options] Override http request option.
13532
13942
  * @throws {RequiredError}
13533
13943
  * @memberof SearchApi
13534
13944
  */
13535
- public v1IndexConfigPropertyPatch(xStoreid: string, xStoresecret: string, property: string, body: object, options?: RawAxiosRequestConfig) {
13536
- return SearchApiFp(this.configuration).v1IndexConfigPropertyPatch(xStoreid, xStoresecret, property, body, options).then((request) => request(this.axios, this.basePath));
13945
+ public v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig) {
13946
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigGet(indexname, options).then((request) => request(this.axios, this.basePath));
13537
13947
  }
13538
13948
 
13539
13949
  /**
13540
13950
  * Configure the index for search
13541
13951
  * @summary Index Config
13542
- * @param {string} xStoreid Store ID
13543
- * @param {string} xStoresecret Store Secret
13544
13952
  * @param {string} indexname Index Name
13545
13953
  * @param {DataTypesIndexConfig} body Index configuration
13546
13954
  * @param {*} [options] Override http request option.
13547
13955
  * @throws {RequiredError}
13548
13956
  * @memberof SearchApi
13549
13957
  */
13550
- public v1IndexIndexnameConfigPost(xStoreid: string, xStoresecret: string, indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig) {
13551
- return SearchApiFp(this.configuration).v1IndexIndexnameConfigPost(xStoreid, xStoresecret, indexname, body, options).then((request) => request(this.axios, this.basePath));
13958
+ public v1IndexIndexnameConfigPost(indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig) {
13959
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(this.axios, this.basePath));
13552
13960
  }
13553
13961
 
13554
13962
  /**
13555
13963
  * Update a single property of the index configuration
13556
13964
  * @summary Update Index Config Property
13557
- * @param {string} xStoreid Store ID
13558
- * @param {string} xStoresecret Store Secret
13559
13965
  * @param {string} indexname Index Name
13560
13966
  * @param {string} property Property name
13561
13967
  * @param {object} body Property value
@@ -13563,8 +13969,22 @@ export class SearchApi extends BaseAPI {
13563
13969
  * @throws {RequiredError}
13564
13970
  * @memberof SearchApi
13565
13971
  */
13566
- public v1IndexIndexnameConfigPropertyPatch(xStoreid: string, xStoresecret: string, indexname: string, property: string, body: object, options?: RawAxiosRequestConfig) {
13567
- return SearchApiFp(this.configuration).v1IndexIndexnameConfigPropertyPatch(xStoreid, xStoresecret, indexname, property, body, options).then((request) => request(this.axios, this.basePath));
13972
+ public v1IndexIndexnameConfigPropertyPatch(indexname: string, property: string, body: object, options?: RawAxiosRequestConfig) {
13973
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(this.axios, this.basePath));
13974
+ }
13975
+
13976
+ /**
13977
+ * Search documents using store credentials with optional autocomplete suggestions
13978
+ * @summary Public Search API
13979
+ * @param {string} xStoreID Store ID
13980
+ * @param {string} xStoreSecret Store Secret
13981
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
13982
+ * @param {*} [options] Override http request option.
13983
+ * @throws {RequiredError}
13984
+ * @memberof SearchApi
13985
+ */
13986
+ public v1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig) {
13987
+ return SearchApiFp(this.configuration).v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
13568
13988
  }
13569
13989
  }
13570
13990