@seekora-ai/admin-api 1.0.13 → 1.0.15

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
@@ -897,12 +1031,24 @@ export interface DataTypesCreateUserRequestDto {
897
1031
  * @interface DataTypesCreateUserResponse
898
1032
  */
899
1033
  export interface DataTypesCreateUserResponse {
1034
+ /**
1035
+ *
1036
+ * @type {number}
1037
+ * @memberof DataTypesCreateUserResponse
1038
+ */
1039
+ 'can_resend_at'?: number;
900
1040
  /**
901
1041
  *
902
1042
  * @type {boolean}
903
1043
  * @memberof DataTypesCreateUserResponse
904
1044
  */
905
1045
  'otp_required'?: boolean;
1046
+ /**
1047
+ *
1048
+ * @type {number}
1049
+ * @memberof DataTypesCreateUserResponse
1050
+ */
1051
+ 'resend_cooldown_seconds'?: number;
906
1052
  /**
907
1053
  *
908
1054
  * @type {string}
@@ -1141,6 +1287,31 @@ export interface DataTypesIndexConfig {
1141
1287
  */
1142
1288
  'version'?: number;
1143
1289
  }
1290
+ /**
1291
+ *
1292
+ * @export
1293
+ * @interface DataTypesIndexConfigResponse
1294
+ */
1295
+ export interface DataTypesIndexConfigResponse {
1296
+ /**
1297
+ *
1298
+ * @type {DataTypesIndexConfig}
1299
+ * @memberof DataTypesIndexConfigResponse
1300
+ */
1301
+ 'data'?: DataTypesIndexConfig;
1302
+ /**
1303
+ *
1304
+ * @type {string}
1305
+ * @memberof DataTypesIndexConfigResponse
1306
+ */
1307
+ 'message'?: string;
1308
+ /**
1309
+ *
1310
+ * @type {number}
1311
+ * @memberof DataTypesIndexConfigResponse
1312
+ */
1313
+ 'status'?: number;
1314
+ }
1144
1315
  /**
1145
1316
  *
1146
1317
  * @export
@@ -1613,6 +1784,31 @@ export interface DataTypesMenuAccess {
1613
1784
  */
1614
1785
  'userCode'?: string;
1615
1786
  }
1787
+ /**
1788
+ *
1789
+ * @export
1790
+ * @interface DataTypesMenuAccessListResponse
1791
+ */
1792
+ export interface DataTypesMenuAccessListResponse {
1793
+ /**
1794
+ *
1795
+ * @type {Array<DataTypesMenuAccess>}
1796
+ * @memberof DataTypesMenuAccessListResponse
1797
+ */
1798
+ 'data'?: Array<DataTypesMenuAccess>;
1799
+ /**
1800
+ *
1801
+ * @type {string}
1802
+ * @memberof DataTypesMenuAccessListResponse
1803
+ */
1804
+ 'message'?: string;
1805
+ /**
1806
+ *
1807
+ * @type {number}
1808
+ * @memberof DataTypesMenuAccessListResponse
1809
+ */
1810
+ 'status'?: number;
1811
+ }
1616
1812
  /**
1617
1813
  *
1618
1814
  * @export
@@ -1919,6 +2115,105 @@ export interface DataTypesOTPPayload {
1919
2115
  */
1920
2116
  'otp'?: string;
1921
2117
  }
2118
+ /**
2119
+ *
2120
+ * @export
2121
+ * @interface DataTypesOfficialSearchResponse
2122
+ */
2123
+ export interface DataTypesOfficialSearchResponse {
2124
+ /**
2125
+ *
2126
+ * @type {object}
2127
+ * @memberof DataTypesOfficialSearchResponse
2128
+ */
2129
+ 'facets'?: object;
2130
+ /**
2131
+ *
2132
+ * @type {number}
2133
+ * @memberof DataTypesOfficialSearchResponse
2134
+ */
2135
+ 'page'?: number;
2136
+ /**
2137
+ *
2138
+ * @type {number}
2139
+ * @memberof DataTypesOfficialSearchResponse
2140
+ */
2141
+ 'per_page'?: number;
2142
+ /**
2143
+ *
2144
+ * @type {Array<DataTypesOfficialSearchResult>}
2145
+ * @memberof DataTypesOfficialSearchResponse
2146
+ */
2147
+ 'results'?: Array<DataTypesOfficialSearchResult>;
2148
+ /**
2149
+ *
2150
+ * @type {Array<DataTypesAutocompleteSuggestion>}
2151
+ * @memberof DataTypesOfficialSearchResponse
2152
+ */
2153
+ 'suggestions'?: Array<DataTypesAutocompleteSuggestion>;
2154
+ /**
2155
+ *
2156
+ * @type {number}
2157
+ * @memberof DataTypesOfficialSearchResponse
2158
+ */
2159
+ 'total_results'?: number;
2160
+ }
2161
+ /**
2162
+ *
2163
+ * @export
2164
+ * @interface DataTypesOfficialSearchResponseWrapper
2165
+ */
2166
+ export interface DataTypesOfficialSearchResponseWrapper {
2167
+ /**
2168
+ *
2169
+ * @type {DataTypesOfficialSearchResponse}
2170
+ * @memberof DataTypesOfficialSearchResponseWrapper
2171
+ */
2172
+ 'data'?: DataTypesOfficialSearchResponse;
2173
+ /**
2174
+ *
2175
+ * @type {string}
2176
+ * @memberof DataTypesOfficialSearchResponseWrapper
2177
+ */
2178
+ 'message'?: string;
2179
+ /**
2180
+ *
2181
+ * @type {number}
2182
+ * @memberof DataTypesOfficialSearchResponseWrapper
2183
+ */
2184
+ 'status'?: number;
2185
+ }
2186
+ /**
2187
+ *
2188
+ * @export
2189
+ * @interface DataTypesOfficialSearchResult
2190
+ */
2191
+ export interface DataTypesOfficialSearchResult {
2192
+ /**
2193
+ *
2194
+ * @type {{ [key: string]: any; }}
2195
+ * @memberof DataTypesOfficialSearchResult
2196
+ */
2197
+ 'document'?: { [key: string]: any; };
2198
+ /**
2199
+ *
2200
+ * @type {{ [key: string]: any; }}
2201
+ * @memberof DataTypesOfficialSearchResult
2202
+ */
2203
+ 'highlight'?: { [key: string]: any; };
2204
+ /**
2205
+ *
2206
+ * @type {string}
2207
+ * @memberof DataTypesOfficialSearchResult
2208
+ */
2209
+ 'id'?: string;
2210
+ /**
2211
+ *
2212
+ * @type {number}
2213
+ * @memberof DataTypesOfficialSearchResult
2214
+ */
2215
+ 'score'?: number;
2216
+ }
1922
2217
  /**
1923
2218
  *
1924
2219
  * @export
@@ -2628,6 +2923,67 @@ export interface DataTypesPlansListResponse {
2628
2923
  */
2629
2924
  'status'?: number;
2630
2925
  }
2926
+ /**
2927
+ *
2928
+ * @export
2929
+ * @interface DataTypesPublicSearchRequest
2930
+ */
2931
+ export interface DataTypesPublicSearchRequest {
2932
+ /**
2933
+ *
2934
+ * @type {string}
2935
+ * @memberof DataTypesPublicSearchRequest
2936
+ */
2937
+ 'facet_by'?: string;
2938
+ /**
2939
+ *
2940
+ * @type {string}
2941
+ * @memberof DataTypesPublicSearchRequest
2942
+ */
2943
+ 'filter'?: string;
2944
+ /**
2945
+ *
2946
+ * @type {boolean}
2947
+ * @memberof DataTypesPublicSearchRequest
2948
+ */
2949
+ 'include_suggestions'?: boolean;
2950
+ /**
2951
+ *
2952
+ * @type {number}
2953
+ * @memberof DataTypesPublicSearchRequest
2954
+ */
2955
+ 'max_facet_values'?: number;
2956
+ /**
2957
+ *
2958
+ * @type {number}
2959
+ * @memberof DataTypesPublicSearchRequest
2960
+ */
2961
+ 'page'?: number;
2962
+ /**
2963
+ *
2964
+ * @type {number}
2965
+ * @memberof DataTypesPublicSearchRequest
2966
+ */
2967
+ 'per_page'?: number;
2968
+ /**
2969
+ *
2970
+ * @type {string}
2971
+ * @memberof DataTypesPublicSearchRequest
2972
+ */
2973
+ 'q': string;
2974
+ /**
2975
+ *
2976
+ * @type {string}
2977
+ * @memberof DataTypesPublicSearchRequest
2978
+ */
2979
+ 'sort'?: string;
2980
+ /**
2981
+ *
2982
+ * @type {number}
2983
+ * @memberof DataTypesPublicSearchRequest
2984
+ */
2985
+ 'suggestions_limit'?: number;
2986
+ }
2631
2987
  /**
2632
2988
  *
2633
2989
  * @export
@@ -3008,6 +3364,12 @@ export interface DataTypesSampleDatasetResponse {
3008
3364
  * @memberof DataTypesSampleDatasetResponse
3009
3365
  */
3010
3366
  'storeName'?: string;
3367
+ /**
3368
+ *
3369
+ * @type {Array<string>}
3370
+ * @memberof DataTypesSampleDatasetResponse
3371
+ */
3372
+ 'tags'?: Array<string>;
3011
3373
  }
3012
3374
  /**
3013
3375
  *
@@ -3084,6 +3446,61 @@ export interface DataTypesSchemaOptionsResponseWrapper {
3084
3446
  */
3085
3447
  'status'?: number;
3086
3448
  }
3449
+ /**
3450
+ *
3451
+ * @export
3452
+ * @interface DataTypesSearchConfig
3453
+ */
3454
+ export interface DataTypesSearchConfig {
3455
+ /**
3456
+ *
3457
+ * @type {Array<string>}
3458
+ * @memberof DataTypesSearchConfig
3459
+ */
3460
+ 'attributesToHighlight'?: Array<string>;
3461
+ /**
3462
+ *
3463
+ * @type {Array<string>}
3464
+ * @memberof DataTypesSearchConfig
3465
+ */
3466
+ 'attributesToRetrieve'?: Array<string>;
3467
+ /**
3468
+ *
3469
+ * @type {{ [key: string]: any; }}
3470
+ * @memberof DataTypesSearchConfig
3471
+ */
3472
+ 'displayAttributes'?: { [key: string]: any; };
3473
+ /**
3474
+ *
3475
+ * @type {number}
3476
+ * @memberof DataTypesSearchConfig
3477
+ */
3478
+ 'hitsPerPage'?: number;
3479
+ /**
3480
+ *
3481
+ * @type {number}
3482
+ * @memberof DataTypesSearchConfig
3483
+ */
3484
+ 'maxNbHits'?: number;
3485
+ /**
3486
+ *
3487
+ * @type {string}
3488
+ * @memberof DataTypesSearchConfig
3489
+ */
3490
+ 'query_by'?: string;
3491
+ /**
3492
+ *
3493
+ * @type {Array<string>}
3494
+ * @memberof DataTypesSearchConfig
3495
+ */
3496
+ 'ranking'?: Array<string>;
3497
+ /**
3498
+ *
3499
+ * @type {Array<string>}
3500
+ * @memberof DataTypesSearchConfig
3501
+ */
3502
+ 'searchableAttributes'?: Array<string>;
3503
+ }
3087
3504
  /**
3088
3505
  *
3089
3506
  * @export
@@ -3512,6 +3929,12 @@ export interface DataTypesStore {
3512
3929
  * @memberof DataTypesStore
3513
3930
  */
3514
3931
  'StoreName'?: string;
3932
+ /**
3933
+ * Store alias
3934
+ * @type {string}
3935
+ * @memberof DataTypesStore
3936
+ */
3937
+ 'alias'?: string;
3515
3938
  }
3516
3939
  /**
3517
3940
  *
@@ -7289,6 +7712,39 @@ export const MenusApiAxiosParamCreator = function (configuration?: Configuration
7289
7712
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7290
7713
  localVarRequestOptions.data = serializeDataIfNeeded(menu, localVarRequestOptions, configuration)
7291
7714
 
7715
+ return {
7716
+ url: toPathString(localVarUrlObj),
7717
+ options: localVarRequestOptions,
7718
+ };
7719
+ },
7720
+ /**
7721
+ * Fetches hierarchical menu access for the currently logged-in user
7722
+ * @summary Fetches hierarchical menu access for logged-in user
7723
+ * @param {*} [options] Override http request option.
7724
+ * @throws {RequiredError}
7725
+ */
7726
+ miscMenusUserAccessGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7727
+ const localVarPath = `/misc/menus/user-access`;
7728
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7729
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7730
+ let baseOptions;
7731
+ if (configuration) {
7732
+ baseOptions = configuration.baseOptions;
7733
+ }
7734
+
7735
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7736
+ const localVarHeaderParameter = {} as any;
7737
+ const localVarQueryParameter = {} as any;
7738
+
7739
+ // authentication BearerAuth required
7740
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
7741
+
7742
+
7743
+
7744
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7745
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7746
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7747
+
7292
7748
  return {
7293
7749
  url: toPathString(localVarUrlObj),
7294
7750
  options: localVarRequestOptions,
@@ -7481,6 +7937,18 @@ export const MenusApiFp = function(configuration?: Configuration) {
7481
7937
  const localVarOperationServerBasePath = operationServerMap['MenusApi.miscMenusStoreStoreIdPost']?.[localVarOperationServerIndex]?.url;
7482
7938
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7483
7939
  },
7940
+ /**
7941
+ * Fetches hierarchical menu access for the currently logged-in user
7942
+ * @summary Fetches hierarchical menu access for logged-in user
7943
+ * @param {*} [options] Override http request option.
7944
+ * @throws {RequiredError}
7945
+ */
7946
+ async miscMenusUserAccessGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesMenuAccessListResponse>> {
7947
+ const localVarAxiosArgs = await localVarAxiosParamCreator.miscMenusUserAccessGet(options);
7948
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7949
+ const localVarOperationServerBasePath = operationServerMap['MenusApi.miscMenusUserAccessGet']?.[localVarOperationServerIndex]?.url;
7950
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7951
+ },
7484
7952
  }
7485
7953
  };
7486
7954
 
@@ -7629,6 +8097,15 @@ export const MenusApiFactory = function (configuration?: Configuration, basePath
7629
8097
  miscMenusStoreStoreIdPost(storeId: number, menu: DataTypesCreateMenuRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
7630
8098
  return localVarFp.miscMenusStoreStoreIdPost(storeId, menu, options).then((request) => request(axios, basePath));
7631
8099
  },
8100
+ /**
8101
+ * Fetches hierarchical menu access for the currently logged-in user
8102
+ * @summary Fetches hierarchical menu access for logged-in user
8103
+ * @param {*} [options] Override http request option.
8104
+ * @throws {RequiredError}
8105
+ */
8106
+ miscMenusUserAccessGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesMenuAccessListResponse> {
8107
+ return localVarFp.miscMenusUserAccessGet(options).then((request) => request(axios, basePath));
8108
+ },
7632
8109
  };
7633
8110
  };
7634
8111
 
@@ -7802,6 +8279,17 @@ export class MenusApi extends BaseAPI {
7802
8279
  public miscMenusStoreStoreIdPost(storeId: number, menu: DataTypesCreateMenuRequestDto, options?: RawAxiosRequestConfig) {
7803
8280
  return MenusApiFp(this.configuration).miscMenusStoreStoreIdPost(storeId, menu, options).then((request) => request(this.axios, this.basePath));
7804
8281
  }
8282
+
8283
+ /**
8284
+ * Fetches hierarchical menu access for the currently logged-in user
8285
+ * @summary Fetches hierarchical menu access for logged-in user
8286
+ * @param {*} [options] Override http request option.
8287
+ * @throws {RequiredError}
8288
+ * @memberof MenusApi
8289
+ */
8290
+ public miscMenusUserAccessGet(options?: RawAxiosRequestConfig) {
8291
+ return MenusApiFp(this.configuration).miscMenusUserAccessGet(options).then((request) => request(this.axios, this.basePath));
8292
+ }
7805
8293
  }
7806
8294
 
7807
8295
 
@@ -9347,13 +9835,13 @@ export const OnboardingApiAxiosParamCreator = function (configuration?: Configur
9347
9835
  /**
9348
9836
  * Upload source data
9349
9837
  * @summary Upload source data
9350
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
9838
+ * @param {File} file File
9351
9839
  * @param {*} [options] Override http request option.
9352
9840
  * @throws {RequiredError}
9353
9841
  */
9354
- adminV1UsersOnboardingUploaddataPost: async (adminV1UsersOnboardingUploaddataPostRequest: AdminV1UsersOnboardingUploaddataPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9355
- // verify required parameter 'adminV1UsersOnboardingUploaddataPostRequest' is not null or undefined
9356
- assertParamExists('adminV1UsersOnboardingUploaddataPost', 'adminV1UsersOnboardingUploaddataPostRequest', adminV1UsersOnboardingUploaddataPostRequest)
9842
+ adminV1UsersOnboardingUploaddataPost: async (file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9843
+ // verify required parameter 'file' is not null or undefined
9844
+ assertParamExists('adminV1UsersOnboardingUploaddataPost', 'file', file)
9357
9845
  const localVarPath = `/admin/v1/users/onboarding/uploaddata`;
9358
9846
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9359
9847
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -9365,18 +9853,23 @@ export const OnboardingApiAxiosParamCreator = function (configuration?: Configur
9365
9853
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9366
9854
  const localVarHeaderParameter = {} as any;
9367
9855
  const localVarQueryParameter = {} as any;
9856
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
9368
9857
 
9369
9858
  // authentication BearerAuth required
9370
9859
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
9371
9860
 
9372
9861
 
9862
+ if (file !== undefined) {
9863
+ localVarFormParams.append('File', file as any);
9864
+ }
9865
+
9866
+
9867
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
9373
9868
 
9374
- localVarHeaderParameter['Content-Type'] = 'application/json';
9375
-
9376
9869
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9377
9870
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9378
9871
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9379
- localVarRequestOptions.data = serializeDataIfNeeded(adminV1UsersOnboardingUploaddataPostRequest, localVarRequestOptions, configuration)
9872
+ localVarRequestOptions.data = localVarFormParams;
9380
9873
 
9381
9874
  return {
9382
9875
  url: toPathString(localVarUrlObj),
@@ -9517,12 +10010,12 @@ export const OnboardingApiFp = function(configuration?: Configuration) {
9517
10010
  /**
9518
10011
  * Upload source data
9519
10012
  * @summary Upload source data
9520
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
10013
+ * @param {File} file File
9521
10014
  * @param {*} [options] Override http request option.
9522
10015
  * @throws {RequiredError}
9523
10016
  */
9524
- async adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest: AdminV1UsersOnboardingUploaddataPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUploadSourceDataResponseWrapper>> {
9525
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options);
10017
+ async adminV1UsersOnboardingUploaddataPost(file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUploadSourceDataResponseWrapper>> {
10018
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1UsersOnboardingUploaddataPost(file, options);
9526
10019
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9527
10020
  const localVarOperationServerBasePath = operationServerMap['OnboardingApi.adminV1UsersOnboardingUploaddataPost']?.[localVarOperationServerIndex]?.url;
9528
10021
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9619,12 +10112,12 @@ export const OnboardingApiFactory = function (configuration?: Configuration, bas
9619
10112
  /**
9620
10113
  * Upload source data
9621
10114
  * @summary Upload source data
9622
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
10115
+ * @param {File} file File
9623
10116
  * @param {*} [options] Override http request option.
9624
10117
  * @throws {RequiredError}
9625
10118
  */
9626
- adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest: AdminV1UsersOnboardingUploaddataPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUploadSourceDataResponseWrapper> {
9627
- return localVarFp.adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(axios, basePath));
10119
+ adminV1UsersOnboardingUploaddataPost(file: File, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUploadSourceDataResponseWrapper> {
10120
+ return localVarFp.adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(axios, basePath));
9628
10121
  },
9629
10122
  /**
9630
10123
  * Get sample datasets
@@ -9729,13 +10222,13 @@ export class OnboardingApi extends BaseAPI {
9729
10222
  /**
9730
10223
  * Upload source data
9731
10224
  * @summary Upload source data
9732
- * @param {AdminV1UsersOnboardingUploaddataPostRequest} adminV1UsersOnboardingUploaddataPostRequest
10225
+ * @param {File} file File
9733
10226
  * @param {*} [options] Override http request option.
9734
10227
  * @throws {RequiredError}
9735
10228
  * @memberof OnboardingApi
9736
10229
  */
9737
- public adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest: AdminV1UsersOnboardingUploaddataPostRequest, options?: RawAxiosRequestConfig) {
9738
- return OnboardingApiFp(this.configuration).adminV1UsersOnboardingUploaddataPost(adminV1UsersOnboardingUploaddataPostRequest, options).then((request) => request(this.axios, this.basePath));
10230
+ public adminV1UsersOnboardingUploaddataPost(file: File, options?: RawAxiosRequestConfig) {
10231
+ return OnboardingApiFp(this.configuration).adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(this.axios, this.basePath));
9739
10232
  }
9740
10233
 
9741
10234
  /**
@@ -13154,22 +13647,22 @@ export class RolesApi extends BaseAPI {
13154
13647
  export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
13155
13648
  return {
13156
13649
  /**
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
13650
+ * Search documents with optional configuration override and autocomplete suggestions
13651
+ * @summary Admin Search API
13652
+ * @param {string} xStoreID Store ID for the selected store
13653
+ * @param {string} xStoreSecret Store Secret for the selected store
13654
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13162
13655
  * @param {*} [options] Override http request option.
13163
13656
  * @throws {RequiredError}
13164
13657
  */
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)
13658
+ adminV1SearchPost: async (xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13659
+ // verify required parameter 'xStoreID' is not null or undefined
13660
+ assertParamExists('adminV1SearchPost', 'xStoreID', xStoreID)
13661
+ // verify required parameter 'xStoreSecret' is not null or undefined
13662
+ assertParamExists('adminV1SearchPost', 'xStoreSecret', xStoreSecret)
13170
13663
  // verify required parameter 'body' is not null or undefined
13171
- assertParamExists('v1IndexConfigPost', 'body', body)
13172
- const localVarPath = `/v1/index/config`;
13664
+ assertParamExists('adminV1SearchPost', 'body', body)
13665
+ const localVarPath = `/admin/v1/search`;
13173
13666
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13174
13667
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13175
13668
  let baseOptions;
@@ -13181,15 +13674,18 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13181
13674
  const localVarHeaderParameter = {} as any;
13182
13675
  const localVarQueryParameter = {} as any;
13183
13676
 
13677
+ // authentication BearerAuth required
13678
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13679
+
13184
13680
 
13185
13681
 
13186
13682
  localVarHeaderParameter['Content-Type'] = 'application/json';
13187
13683
 
13188
- if (xStoreid != null) {
13189
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
13684
+ if (xStoreID != null) {
13685
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
13190
13686
  }
13191
- if (xStoresecret != null) {
13192
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
13687
+ if (xStoreSecret != null) {
13688
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
13193
13689
  }
13194
13690
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13195
13691
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -13202,26 +13698,17 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13202
13698
  };
13203
13699
  },
13204
13700
  /**
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
13701
+ * Get the current index configuration
13702
+ * @summary Get Index Config
13703
+ * @param {string} indexname Index Name
13211
13704
  * @param {*} [options] Override http request option.
13212
13705
  * @throws {RequiredError}
13213
13706
  */
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)));
13707
+ v1IndexIndexnameConfigGet: async (indexname: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13708
+ // verify required parameter 'indexname' is not null or undefined
13709
+ assertParamExists('v1IndexIndexnameConfigGet', 'indexname', indexname)
13710
+ const localVarPath = `/v1/index/{indexname}/config`
13711
+ .replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)));
13225
13712
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13226
13713
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13227
13714
  let baseOptions;
@@ -13229,24 +13716,15 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13229
13716
  baseOptions = configuration.baseOptions;
13230
13717
  }
13231
13718
 
13232
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13719
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13233
13720
  const localVarHeaderParameter = {} as any;
13234
13721
  const localVarQueryParameter = {} as any;
13235
13722
 
13236
13723
 
13237
13724
 
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
13725
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13247
13726
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13248
13727
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13249
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13250
13728
 
13251
13729
  return {
13252
13730
  url: toPathString(localVarUrlObj),
@@ -13256,18 +13734,12 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13256
13734
  /**
13257
13735
  * Configure the index for search
13258
13736
  * @summary Index Config
13259
- * @param {string} xStoreid Store ID
13260
- * @param {string} xStoresecret Store Secret
13261
13737
  * @param {string} indexname Index Name
13262
13738
  * @param {DataTypesIndexConfig} body Index configuration
13263
13739
  * @param {*} [options] Override http request option.
13264
13740
  * @throws {RequiredError}
13265
13741
  */
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)
13742
+ v1IndexIndexnameConfigPost: async (indexname: string, body: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13271
13743
  // verify required parameter 'indexname' is not null or undefined
13272
13744
  assertParamExists('v1IndexIndexnameConfigPost', 'indexname', indexname)
13273
13745
  // verify required parameter 'body' is not null or undefined
@@ -13289,12 +13761,6 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13289
13761
 
13290
13762
  localVarHeaderParameter['Content-Type'] = 'application/json';
13291
13763
 
13292
- if (xStoreid != null) {
13293
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
13294
- }
13295
- if (xStoresecret != null) {
13296
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
13297
- }
13298
13764
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13299
13765
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13300
13766
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13308,19 +13774,13 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13308
13774
  /**
13309
13775
  * Update a single property of the index configuration
13310
13776
  * @summary Update Index Config Property
13311
- * @param {string} xStoreid Store ID
13312
- * @param {string} xStoresecret Store Secret
13313
13777
  * @param {string} indexname Index Name
13314
13778
  * @param {string} property Property name
13315
13779
  * @param {object} body Property value
13316
13780
  * @param {*} [options] Override http request option.
13317
13781
  * @throws {RequiredError}
13318
13782
  */
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)
13783
+ v1IndexIndexnameConfigPropertyPatch: async (indexname: string, property: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13324
13784
  // verify required parameter 'indexname' is not null or undefined
13325
13785
  assertParamExists('v1IndexIndexnameConfigPropertyPatch', 'indexname', indexname)
13326
13786
  // verify required parameter 'property' is not null or undefined
@@ -13345,11 +13805,53 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13345
13805
 
13346
13806
  localVarHeaderParameter['Content-Type'] = 'application/json';
13347
13807
 
13348
- if (xStoreid != null) {
13349
- localVarHeaderParameter['x-storeid'] = String(xStoreid);
13808
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13809
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13810
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13811
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13812
+
13813
+ return {
13814
+ url: toPathString(localVarUrlObj),
13815
+ options: localVarRequestOptions,
13816
+ };
13817
+ },
13818
+ /**
13819
+ * Search documents using store credentials with optional autocomplete suggestions
13820
+ * @summary Public Search API
13821
+ * @param {string} xStoreID Store ID
13822
+ * @param {string} xStoreSecret Store Secret
13823
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
13824
+ * @param {*} [options] Override http request option.
13825
+ * @throws {RequiredError}
13826
+ */
13827
+ v1SearchPost: async (xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13828
+ // verify required parameter 'xStoreID' is not null or undefined
13829
+ assertParamExists('v1SearchPost', 'xStoreID', xStoreID)
13830
+ // verify required parameter 'xStoreSecret' is not null or undefined
13831
+ assertParamExists('v1SearchPost', 'xStoreSecret', xStoreSecret)
13832
+ // verify required parameter 'body' is not null or undefined
13833
+ assertParamExists('v1SearchPost', 'body', body)
13834
+ const localVarPath = `/v1/search`;
13835
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13836
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13837
+ let baseOptions;
13838
+ if (configuration) {
13839
+ baseOptions = configuration.baseOptions;
13840
+ }
13841
+
13842
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13843
+ const localVarHeaderParameter = {} as any;
13844
+ const localVarQueryParameter = {} as any;
13845
+
13846
+
13847
+
13848
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13849
+
13850
+ if (xStoreID != null) {
13851
+ localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
13350
13852
  }
13351
- if (xStoresecret != null) {
13352
- localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
13853
+ if (xStoreSecret != null) {
13854
+ localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
13353
13855
  }
13354
13856
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13355
13857
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -13372,48 +13874,43 @@ export const SearchApiFp = function(configuration?: Configuration) {
13372
13874
  const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
13373
13875
  return {
13374
13876
  /**
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
13877
+ * Search documents with optional configuration override and autocomplete suggestions
13878
+ * @summary Admin Search API
13879
+ * @param {string} xStoreID Store ID for the selected store
13880
+ * @param {string} xStoreSecret Store Secret for the selected store
13881
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13380
13882
  * @param {*} [options] Override http request option.
13381
13883
  * @throws {RequiredError}
13382
13884
  */
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);
13885
+ async adminV1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOfficialSearchResponseWrapper>> {
13886
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1SearchPost(xStoreID, xStoreSecret, body, options);
13385
13887
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13386
- const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexConfigPost']?.[localVarOperationServerIndex]?.url;
13888
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.adminV1SearchPost']?.[localVarOperationServerIndex]?.url;
13387
13889
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13388
13890
  },
13389
13891
  /**
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
13892
+ * Get the current index configuration
13893
+ * @summary Get Index Config
13894
+ * @param {string} indexname Index Name
13396
13895
  * @param {*} [options] Override http request option.
13397
13896
  * @throws {RequiredError}
13398
13897
  */
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);
13898
+ async v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesIndexConfigResponse>> {
13899
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigGet(indexname, options);
13401
13900
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13402
- const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexConfigPropertyPatch']?.[localVarOperationServerIndex]?.url;
13901
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigGet']?.[localVarOperationServerIndex]?.url;
13403
13902
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13404
13903
  },
13405
13904
  /**
13406
13905
  * Configure the index for search
13407
13906
  * @summary Index Config
13408
- * @param {string} xStoreid Store ID
13409
- * @param {string} xStoresecret Store Secret
13410
13907
  * @param {string} indexname Index Name
13411
13908
  * @param {DataTypesIndexConfig} body Index configuration
13412
13909
  * @param {*} [options] Override http request option.
13413
13910
  * @throws {RequiredError}
13414
13911
  */
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);
13912
+ async v1IndexIndexnameConfigPost(indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
13913
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigPost(indexname, body, options);
13417
13914
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13418
13915
  const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigPost']?.[localVarOperationServerIndex]?.url;
13419
13916
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13421,20 +13918,33 @@ export const SearchApiFp = function(configuration?: Configuration) {
13421
13918
  /**
13422
13919
  * Update a single property of the index configuration
13423
13920
  * @summary Update Index Config Property
13424
- * @param {string} xStoreid Store ID
13425
- * @param {string} xStoresecret Store Secret
13426
13921
  * @param {string} indexname Index Name
13427
13922
  * @param {string} property Property name
13428
13923
  * @param {object} body Property value
13429
13924
  * @param {*} [options] Override http request option.
13430
13925
  * @throws {RequiredError}
13431
13926
  */
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);
13927
+ async v1IndexIndexnameConfigPropertyPatch(indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
13928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options);
13434
13929
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13435
13930
  const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigPropertyPatch']?.[localVarOperationServerIndex]?.url;
13436
13931
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13437
13932
  },
13933
+ /**
13934
+ * Search documents using store credentials with optional autocomplete suggestions
13935
+ * @summary Public Search API
13936
+ * @param {string} xStoreID Store ID
13937
+ * @param {string} xStoreSecret Store Secret
13938
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
13939
+ * @param {*} [options] Override http request option.
13940
+ * @throws {RequiredError}
13941
+ */
13942
+ async v1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOfficialSearchResponseWrapper>> {
13943
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1SearchPost(xStoreID, xStoreSecret, body, options);
13944
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13945
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.v1SearchPost']?.[localVarOperationServerIndex]?.url;
13946
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13947
+ },
13438
13948
  }
13439
13949
  };
13440
13950
 
@@ -13446,56 +13956,61 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
13446
13956
  const localVarFp = SearchApiFp(configuration)
13447
13957
  return {
13448
13958
  /**
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
13959
+ * Search documents with optional configuration override and autocomplete suggestions
13960
+ * @summary Admin Search API
13961
+ * @param {string} xStoreID Store ID for the selected store
13962
+ * @param {string} xStoreSecret Store Secret for the selected store
13963
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13454
13964
  * @param {*} [options] Override http request option.
13455
13965
  * @throws {RequiredError}
13456
13966
  */
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));
13967
+ adminV1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOfficialSearchResponseWrapper> {
13968
+ return localVarFp.adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
13459
13969
  },
13460
13970
  /**
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
13971
+ * Get the current index configuration
13972
+ * @summary Get Index Config
13973
+ * @param {string} indexname Index Name
13467
13974
  * @param {*} [options] Override http request option.
13468
13975
  * @throws {RequiredError}
13469
13976
  */
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));
13977
+ v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesIndexConfigResponse> {
13978
+ return localVarFp.v1IndexIndexnameConfigGet(indexname, options).then((request) => request(axios, basePath));
13472
13979
  },
13473
13980
  /**
13474
13981
  * Configure the index for search
13475
13982
  * @summary Index Config
13476
- * @param {string} xStoreid Store ID
13477
- * @param {string} xStoresecret Store Secret
13478
13983
  * @param {string} indexname Index Name
13479
13984
  * @param {DataTypesIndexConfig} body Index configuration
13480
13985
  * @param {*} [options] Override http request option.
13481
13986
  * @throws {RequiredError}
13482
13987
  */
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));
13988
+ v1IndexIndexnameConfigPost(indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
13989
+ return localVarFp.v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(axios, basePath));
13485
13990
  },
13486
13991
  /**
13487
13992
  * Update a single property of the index configuration
13488
13993
  * @summary Update Index Config Property
13489
- * @param {string} xStoreid Store ID
13490
- * @param {string} xStoresecret Store Secret
13491
13994
  * @param {string} indexname Index Name
13492
13995
  * @param {string} property Property name
13493
13996
  * @param {object} body Property value
13494
13997
  * @param {*} [options] Override http request option.
13495
13998
  * @throws {RequiredError}
13496
13999
  */
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));
14000
+ v1IndexIndexnameConfigPropertyPatch(indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
14001
+ return localVarFp.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(axios, basePath));
14002
+ },
14003
+ /**
14004
+ * Search documents using store credentials with optional autocomplete suggestions
14005
+ * @summary Public Search API
14006
+ * @param {string} xStoreID Store ID
14007
+ * @param {string} xStoreSecret Store Secret
14008
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
14009
+ * @param {*} [options] Override http request option.
14010
+ * @throws {RequiredError}
14011
+ */
14012
+ v1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOfficialSearchResponseWrapper> {
14013
+ return localVarFp.v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
13499
14014
  },
13500
14015
  };
13501
14016
  };
@@ -13508,54 +14023,47 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
13508
14023
  */
13509
14024
  export class SearchApi extends BaseAPI {
13510
14025
  /**
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
14026
+ * Search documents with optional configuration override and autocomplete suggestions
14027
+ * @summary Admin Search API
14028
+ * @param {string} xStoreID Store ID for the selected store
14029
+ * @param {string} xStoreSecret Store Secret for the selected store
14030
+ * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13516
14031
  * @param {*} [options] Override http request option.
13517
14032
  * @throws {RequiredError}
13518
14033
  * @memberof SearchApi
13519
14034
  */
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));
14035
+ public adminV1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig) {
14036
+ return SearchApiFp(this.configuration).adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
13522
14037
  }
13523
14038
 
13524
14039
  /**
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
14040
+ * Get the current index configuration
14041
+ * @summary Get Index Config
14042
+ * @param {string} indexname Index Name
13531
14043
  * @param {*} [options] Override http request option.
13532
14044
  * @throws {RequiredError}
13533
14045
  * @memberof SearchApi
13534
14046
  */
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));
14047
+ public v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig) {
14048
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigGet(indexname, options).then((request) => request(this.axios, this.basePath));
13537
14049
  }
13538
14050
 
13539
14051
  /**
13540
14052
  * Configure the index for search
13541
14053
  * @summary Index Config
13542
- * @param {string} xStoreid Store ID
13543
- * @param {string} xStoresecret Store Secret
13544
14054
  * @param {string} indexname Index Name
13545
14055
  * @param {DataTypesIndexConfig} body Index configuration
13546
14056
  * @param {*} [options] Override http request option.
13547
14057
  * @throws {RequiredError}
13548
14058
  * @memberof SearchApi
13549
14059
  */
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));
14060
+ public v1IndexIndexnameConfigPost(indexname: string, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig) {
14061
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigPost(indexname, body, options).then((request) => request(this.axios, this.basePath));
13552
14062
  }
13553
14063
 
13554
14064
  /**
13555
14065
  * Update a single property of the index configuration
13556
14066
  * @summary Update Index Config Property
13557
- * @param {string} xStoreid Store ID
13558
- * @param {string} xStoresecret Store Secret
13559
14067
  * @param {string} indexname Index Name
13560
14068
  * @param {string} property Property name
13561
14069
  * @param {object} body Property value
@@ -13563,8 +14071,22 @@ export class SearchApi extends BaseAPI {
13563
14071
  * @throws {RequiredError}
13564
14072
  * @memberof SearchApi
13565
14073
  */
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));
14074
+ public v1IndexIndexnameConfigPropertyPatch(indexname: string, property: string, body: object, options?: RawAxiosRequestConfig) {
14075
+ return SearchApiFp(this.configuration).v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(this.axios, this.basePath));
14076
+ }
14077
+
14078
+ /**
14079
+ * Search documents using store credentials with optional autocomplete suggestions
14080
+ * @summary Public Search API
14081
+ * @param {string} xStoreID Store ID
14082
+ * @param {string} xStoreSecret Store Secret
14083
+ * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
14084
+ * @param {*} [options] Override http request option.
14085
+ * @throws {RequiredError}
14086
+ * @memberof SearchApi
14087
+ */
14088
+ public v1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig) {
14089
+ return SearchApiFp(this.configuration).v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
13568
14090
  }
13569
14091
  }
13570
14092