@algolia/client-query-suggestions 5.55.1 → 5.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _algolia_client_common from '@algolia/client-common';
2
- import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';
2
+ import { CreateClientOptions, RequestOptions, AlgoliaHttpResponse, ClientOptions } from '@algolia/client-common';
3
3
 
4
4
  type BaseResponse = {
5
5
  /**
@@ -268,14 +268,14 @@ type UpdateConfigProps = {
268
268
  configuration: Configuration;
269
269
  };
270
270
 
271
- declare const apiClientVersion = "5.55.1";
271
+ declare const apiClientVersion = "5.56.0";
272
272
  declare const REGIONS: readonly ["eu", "us"];
273
273
  type Region = (typeof REGIONS)[number];
274
274
  type RegionOptions = {
275
275
  region: Region;
276
276
  };
277
277
  declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & RegionOptions): {
278
- transporter: _algolia_client_common.Transporter;
278
+ transporter: _algolia_client_common.TransporterWithHttpInfo;
279
279
  /**
280
280
  * The `appId` currently in use.
281
281
  */
@@ -317,6 +317,18 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
317
317
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
318
318
  */
319
319
  createConfig(configurationWithIndex: ConfigurationWithIndex, requestOptions?: RequestOptions): Promise<BaseResponse>;
320
+ /**
321
+ * Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
322
+ *
323
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
324
+ *
325
+ * Required API Key ACLs:
326
+ * - editSettings
327
+ * @param configurationWithIndex - The configurationWithIndex object.
328
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
329
+ * @see createConfig for the plain version.
330
+ */
331
+ createConfigWithHTTPInfo(configurationWithIndex: ConfigurationWithIndex, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<BaseResponse>>;
320
332
  /**
321
333
  * This method lets you send requests to the Algolia REST API.
322
334
  * @param customDelete - The customDelete object.
@@ -325,6 +337,17 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
325
337
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
326
338
  */
327
339
  customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
340
+ /**
341
+ * This method lets you send requests to the Algolia REST API.
342
+ *
343
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
344
+ * @param customDelete - The customDelete object.
345
+ * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
346
+ * @param customDelete.parameters - Query parameters to apply to the current query.
347
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
348
+ * @see customDelete for the plain version.
349
+ */
350
+ customDeleteWithHTTPInfo({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
328
351
  /**
329
352
  * This method lets you send requests to the Algolia REST API.
330
353
  * @param customGet - The customGet object.
@@ -333,6 +356,17 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
333
356
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
334
357
  */
335
358
  customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
359
+ /**
360
+ * This method lets you send requests to the Algolia REST API.
361
+ *
362
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
363
+ * @param customGet - The customGet object.
364
+ * @param customGet.path - Path of the endpoint, for example `1/newFeature`.
365
+ * @param customGet.parameters - Query parameters to apply to the current query.
366
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
367
+ * @see customGet for the plain version.
368
+ */
369
+ customGetWithHTTPInfo({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
336
370
  /**
337
371
  * This method lets you send requests to the Algolia REST API.
338
372
  * @param customPost - The customPost object.
@@ -342,6 +376,18 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
342
376
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
343
377
  */
344
378
  customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
379
+ /**
380
+ * This method lets you send requests to the Algolia REST API.
381
+ *
382
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
383
+ * @param customPost - The customPost object.
384
+ * @param customPost.path - Path of the endpoint, for example `1/newFeature`.
385
+ * @param customPost.parameters - Query parameters to apply to the current query.
386
+ * @param customPost.body - Parameters to send with the custom request.
387
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
388
+ * @see customPost for the plain version.
389
+ */
390
+ customPostWithHTTPInfo({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
345
391
  /**
346
392
  * This method lets you send requests to the Algolia REST API.
347
393
  * @param customPut - The customPut object.
@@ -351,6 +397,18 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
351
397
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
352
398
  */
353
399
  customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
400
+ /**
401
+ * This method lets you send requests to the Algolia REST API.
402
+ *
403
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
404
+ * @param customPut - The customPut object.
405
+ * @param customPut.path - Path of the endpoint, for example `1/newFeature`.
406
+ * @param customPut.parameters - Query parameters to apply to the current query.
407
+ * @param customPut.body - Parameters to send with the custom request.
408
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
409
+ * @see customPut for the plain version.
410
+ */
411
+ customPutWithHTTPInfo({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<Record<string, unknown>>>;
354
412
  /**
355
413
  * Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.
356
414
  *
@@ -361,6 +419,19 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
361
419
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
362
420
  */
363
421
  deleteConfig({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
422
+ /**
423
+ * Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.
424
+ *
425
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
426
+ *
427
+ * Required API Key ACLs:
428
+ * - editSettings
429
+ * @param deleteConfig - The deleteConfig object.
430
+ * @param deleteConfig.indexName - Query Suggestions index name.
431
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
432
+ * @see deleteConfig for the plain version.
433
+ */
434
+ deleteConfigWithHTTPInfo({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<BaseResponse>>;
364
435
  /**
365
436
  * Retrieves all Query Suggestions configurations of your Algolia application.
366
437
  *
@@ -369,6 +440,17 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
369
440
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
370
441
  */
371
442
  getAllConfigs(requestOptions?: RequestOptions | undefined): Promise<Array<ConfigurationResponse>>;
443
+ /**
444
+ * Retrieves all Query Suggestions configurations of your Algolia application.
445
+ *
446
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
447
+ *
448
+ * Required API Key ACLs:
449
+ * - settings
450
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
451
+ * @see getAllConfigs for the plain version.
452
+ */
453
+ getAllConfigsWithHTTPInfo(requestOptions?: RequestOptions | undefined): Promise<AlgoliaHttpResponse<Array<ConfigurationResponse>>>;
372
454
  /**
373
455
  * Retrieves a single Query Suggestions configuration by its index name.
374
456
  *
@@ -379,6 +461,19 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
379
461
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
380
462
  */
381
463
  getConfig({ indexName }: GetConfigProps, requestOptions?: RequestOptions): Promise<ConfigurationResponse>;
464
+ /**
465
+ * Retrieves a single Query Suggestions configuration by its index name.
466
+ *
467
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
468
+ *
469
+ * Required API Key ACLs:
470
+ * - settings
471
+ * @param getConfig - The getConfig object.
472
+ * @param getConfig.indexName - Query Suggestions index name.
473
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
474
+ * @see getConfig for the plain version.
475
+ */
476
+ getConfigWithHTTPInfo({ indexName }: GetConfigProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ConfigurationResponse>>;
382
477
  /**
383
478
  * Reports the status of a Query Suggestions index.
384
479
  *
@@ -389,6 +484,19 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
389
484
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
390
485
  */
391
486
  getConfigStatus({ indexName }: GetConfigStatusProps, requestOptions?: RequestOptions): Promise<ConfigStatus>;
487
+ /**
488
+ * Reports the status of a Query Suggestions index.
489
+ *
490
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
491
+ *
492
+ * Required API Key ACLs:
493
+ * - settings
494
+ * @param getConfigStatus - The getConfigStatus object.
495
+ * @param getConfigStatus.indexName - Query Suggestions index name.
496
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
497
+ * @see getConfigStatus for the plain version.
498
+ */
499
+ getConfigStatusWithHTTPInfo({ indexName }: GetConfigStatusProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<ConfigStatus>>;
392
500
  /**
393
501
  * Retrieves the logs for a single Query Suggestions index.
394
502
  *
@@ -399,6 +507,19 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
399
507
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
400
508
  */
401
509
  getLogFile({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<LogFile>;
510
+ /**
511
+ * Retrieves the logs for a single Query Suggestions index.
512
+ *
513
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
514
+ *
515
+ * Required API Key ACLs:
516
+ * - settings
517
+ * @param getLogFile - The getLogFile object.
518
+ * @param getLogFile.indexName - Query Suggestions index name.
519
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
520
+ * @see getLogFile for the plain version.
521
+ */
522
+ getLogFileWithHTTPInfo({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<LogFile>>;
402
523
  /**
403
524
  * Updates a QuerySuggestions configuration.
404
525
  *
@@ -410,6 +531,20 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
410
531
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
411
532
  */
412
533
  updateConfig({ indexName, configuration }: UpdateConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
534
+ /**
535
+ * Updates a QuerySuggestions configuration.
536
+ *
537
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
538
+ *
539
+ * Required API Key ACLs:
540
+ * - editSettings
541
+ * @param updateConfig - The updateConfig object.
542
+ * @param updateConfig.indexName - Query Suggestions index name.
543
+ * @param updateConfig.configuration - The configuration object.
544
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
545
+ * @see updateConfig for the plain version.
546
+ */
547
+ updateConfigWithHTTPInfo({ indexName, configuration }: UpdateConfigProps, requestOptions?: RequestOptions): Promise<AlgoliaHttpResponse<BaseResponse>>;
413
548
  };
414
549
 
415
550
  /**
@@ -26,7 +26,7 @@ __export(querySuggestionsClient_exports, {
26
26
  });
27
27
  module.exports = __toCommonJS(querySuggestionsClient_exports);
28
28
  var import_client_common = require("@algolia/client-common");
29
- var apiClientVersion = "5.55.1";
29
+ var apiClientVersion = "5.56.0";
30
30
  var REGIONS = ["eu", "us"];
31
31
  function getDefaultHosts(region) {
32
32
  const url = "query-suggestions.{region}.algolia.com".replace("{region}", region);
@@ -125,6 +125,31 @@ function createQuerySuggestionsClient({
125
125
  };
126
126
  return transporter.request(request, requestOptions);
127
127
  },
128
+ /**
129
+ * Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
130
+ *
131
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
132
+ *
133
+ * Required API Key ACLs:
134
+ * - editSettings
135
+ * @param configurationWithIndex - The configurationWithIndex object.
136
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
137
+ * @see createConfig for the plain version.
138
+ */
139
+ createConfigWithHTTPInfo(configurationWithIndex, requestOptions) {
140
+ (0, import_client_common.validateRequired)("configurationWithIndex", "createConfigWithHTTPInfo", configurationWithIndex);
141
+ const requestPath = "/1/configs";
142
+ const headers = {};
143
+ const queryParameters = {};
144
+ const request = {
145
+ method: "POST",
146
+ path: requestPath,
147
+ queryParameters,
148
+ headers,
149
+ data: configurationWithIndex
150
+ };
151
+ return transporter.requestWithHttpInfo(request, requestOptions);
152
+ },
128
153
  /**
129
154
  * This method lets you send requests to the Algolia REST API.
130
155
  * @param customDelete - The customDelete object.
@@ -145,6 +170,29 @@ function createQuerySuggestionsClient({
145
170
  };
146
171
  return transporter.request(request, requestOptions);
147
172
  },
173
+ /**
174
+ * This method lets you send requests to the Algolia REST API.
175
+ *
176
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
177
+ * @param customDelete - The customDelete object.
178
+ * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
179
+ * @param customDelete.parameters - Query parameters to apply to the current query.
180
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
181
+ * @see customDelete for the plain version.
182
+ */
183
+ customDeleteWithHTTPInfo({ path, parameters }, requestOptions) {
184
+ (0, import_client_common.validateRequired)("path", "customDeleteWithHTTPInfo", path);
185
+ const requestPath = "/{path}".replace("{path}", path);
186
+ const headers = {};
187
+ const queryParameters = parameters ? parameters : {};
188
+ const request = {
189
+ method: "DELETE",
190
+ path: requestPath,
191
+ queryParameters,
192
+ headers
193
+ };
194
+ return transporter.requestWithHttpInfo(request, requestOptions);
195
+ },
148
196
  /**
149
197
  * This method lets you send requests to the Algolia REST API.
150
198
  * @param customGet - The customGet object.
@@ -165,6 +213,29 @@ function createQuerySuggestionsClient({
165
213
  };
166
214
  return transporter.request(request, requestOptions);
167
215
  },
216
+ /**
217
+ * This method lets you send requests to the Algolia REST API.
218
+ *
219
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
220
+ * @param customGet - The customGet object.
221
+ * @param customGet.path - Path of the endpoint, for example `1/newFeature`.
222
+ * @param customGet.parameters - Query parameters to apply to the current query.
223
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
224
+ * @see customGet for the plain version.
225
+ */
226
+ customGetWithHTTPInfo({ path, parameters }, requestOptions) {
227
+ (0, import_client_common.validateRequired)("path", "customGetWithHTTPInfo", path);
228
+ const requestPath = "/{path}".replace("{path}", path);
229
+ const headers = {};
230
+ const queryParameters = parameters ? parameters : {};
231
+ const request = {
232
+ method: "GET",
233
+ path: requestPath,
234
+ queryParameters,
235
+ headers
236
+ };
237
+ return transporter.requestWithHttpInfo(request, requestOptions);
238
+ },
168
239
  /**
169
240
  * This method lets you send requests to the Algolia REST API.
170
241
  * @param customPost - The customPost object.
@@ -187,6 +258,31 @@ function createQuerySuggestionsClient({
187
258
  };
188
259
  return transporter.request(request, requestOptions);
189
260
  },
261
+ /**
262
+ * This method lets you send requests to the Algolia REST API.
263
+ *
264
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
265
+ * @param customPost - The customPost object.
266
+ * @param customPost.path - Path of the endpoint, for example `1/newFeature`.
267
+ * @param customPost.parameters - Query parameters to apply to the current query.
268
+ * @param customPost.body - Parameters to send with the custom request.
269
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
270
+ * @see customPost for the plain version.
271
+ */
272
+ customPostWithHTTPInfo({ path, parameters, body }, requestOptions) {
273
+ (0, import_client_common.validateRequired)("path", "customPostWithHTTPInfo", path);
274
+ const requestPath = "/{path}".replace("{path}", path);
275
+ const headers = {};
276
+ const queryParameters = parameters ? parameters : {};
277
+ const request = {
278
+ method: "POST",
279
+ path: requestPath,
280
+ queryParameters,
281
+ headers,
282
+ data: body ? body : {}
283
+ };
284
+ return transporter.requestWithHttpInfo(request, requestOptions);
285
+ },
190
286
  /**
191
287
  * This method lets you send requests to the Algolia REST API.
192
288
  * @param customPut - The customPut object.
@@ -209,6 +305,31 @@ function createQuerySuggestionsClient({
209
305
  };
210
306
  return transporter.request(request, requestOptions);
211
307
  },
308
+ /**
309
+ * This method lets you send requests to the Algolia REST API.
310
+ *
311
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
312
+ * @param customPut - The customPut object.
313
+ * @param customPut.path - Path of the endpoint, for example `1/newFeature`.
314
+ * @param customPut.parameters - Query parameters to apply to the current query.
315
+ * @param customPut.body - Parameters to send with the custom request.
316
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
317
+ * @see customPut for the plain version.
318
+ */
319
+ customPutWithHTTPInfo({ path, parameters, body }, requestOptions) {
320
+ (0, import_client_common.validateRequired)("path", "customPutWithHTTPInfo", path);
321
+ const requestPath = "/{path}".replace("{path}", path);
322
+ const headers = {};
323
+ const queryParameters = parameters ? parameters : {};
324
+ const request = {
325
+ method: "PUT",
326
+ path: requestPath,
327
+ queryParameters,
328
+ headers,
329
+ data: body ? body : {}
330
+ };
331
+ return transporter.requestWithHttpInfo(request, requestOptions);
332
+ },
212
333
  /**
213
334
  * Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.
214
335
  *
@@ -231,6 +352,31 @@ function createQuerySuggestionsClient({
231
352
  };
232
353
  return transporter.request(request, requestOptions);
233
354
  },
355
+ /**
356
+ * Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.
357
+ *
358
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
359
+ *
360
+ * Required API Key ACLs:
361
+ * - editSettings
362
+ * @param deleteConfig - The deleteConfig object.
363
+ * @param deleteConfig.indexName - Query Suggestions index name.
364
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
365
+ * @see deleteConfig for the plain version.
366
+ */
367
+ deleteConfigWithHTTPInfo({ indexName }, requestOptions) {
368
+ (0, import_client_common.validateRequired)("indexName", "deleteConfigWithHTTPInfo", indexName);
369
+ const requestPath = "/1/configs/{indexName}".replace("{indexName}", encodeURIComponent(indexName));
370
+ const headers = {};
371
+ const queryParameters = {};
372
+ const request = {
373
+ method: "DELETE",
374
+ path: requestPath,
375
+ queryParameters,
376
+ headers
377
+ };
378
+ return transporter.requestWithHttpInfo(request, requestOptions);
379
+ },
234
380
  /**
235
381
  * Retrieves all Query Suggestions configurations of your Algolia application.
236
382
  *
@@ -250,6 +396,28 @@ function createQuerySuggestionsClient({
250
396
  };
251
397
  return transporter.request(request, requestOptions);
252
398
  },
399
+ /**
400
+ * Retrieves all Query Suggestions configurations of your Algolia application.
401
+ *
402
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
403
+ *
404
+ * Required API Key ACLs:
405
+ * - settings
406
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
407
+ * @see getAllConfigs for the plain version.
408
+ */
409
+ getAllConfigsWithHTTPInfo(requestOptions) {
410
+ const requestPath = "/1/configs";
411
+ const headers = {};
412
+ const queryParameters = {};
413
+ const request = {
414
+ method: "GET",
415
+ path: requestPath,
416
+ queryParameters,
417
+ headers
418
+ };
419
+ return transporter.requestWithHttpInfo(request, requestOptions);
420
+ },
253
421
  /**
254
422
  * Retrieves a single Query Suggestions configuration by its index name.
255
423
  *
@@ -272,6 +440,31 @@ function createQuerySuggestionsClient({
272
440
  };
273
441
  return transporter.request(request, requestOptions);
274
442
  },
443
+ /**
444
+ * Retrieves a single Query Suggestions configuration by its index name.
445
+ *
446
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
447
+ *
448
+ * Required API Key ACLs:
449
+ * - settings
450
+ * @param getConfig - The getConfig object.
451
+ * @param getConfig.indexName - Query Suggestions index name.
452
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
453
+ * @see getConfig for the plain version.
454
+ */
455
+ getConfigWithHTTPInfo({ indexName }, requestOptions) {
456
+ (0, import_client_common.validateRequired)("indexName", "getConfigWithHTTPInfo", indexName);
457
+ const requestPath = "/1/configs/{indexName}".replace("{indexName}", encodeURIComponent(indexName));
458
+ const headers = {};
459
+ const queryParameters = {};
460
+ const request = {
461
+ method: "GET",
462
+ path: requestPath,
463
+ queryParameters,
464
+ headers
465
+ };
466
+ return transporter.requestWithHttpInfo(request, requestOptions);
467
+ },
275
468
  /**
276
469
  * Reports the status of a Query Suggestions index.
277
470
  *
@@ -294,6 +487,31 @@ function createQuerySuggestionsClient({
294
487
  };
295
488
  return transporter.request(request, requestOptions);
296
489
  },
490
+ /**
491
+ * Reports the status of a Query Suggestions index.
492
+ *
493
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
494
+ *
495
+ * Required API Key ACLs:
496
+ * - settings
497
+ * @param getConfigStatus - The getConfigStatus object.
498
+ * @param getConfigStatus.indexName - Query Suggestions index name.
499
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
500
+ * @see getConfigStatus for the plain version.
501
+ */
502
+ getConfigStatusWithHTTPInfo({ indexName }, requestOptions) {
503
+ (0, import_client_common.validateRequired)("indexName", "getConfigStatusWithHTTPInfo", indexName);
504
+ const requestPath = "/1/configs/{indexName}/status".replace("{indexName}", encodeURIComponent(indexName));
505
+ const headers = {};
506
+ const queryParameters = {};
507
+ const request = {
508
+ method: "GET",
509
+ path: requestPath,
510
+ queryParameters,
511
+ headers
512
+ };
513
+ return transporter.requestWithHttpInfo(request, requestOptions);
514
+ },
297
515
  /**
298
516
  * Retrieves the logs for a single Query Suggestions index.
299
517
  *
@@ -316,6 +534,31 @@ function createQuerySuggestionsClient({
316
534
  };
317
535
  return transporter.request(request, requestOptions);
318
536
  },
537
+ /**
538
+ * Retrieves the logs for a single Query Suggestions index.
539
+ *
540
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
541
+ *
542
+ * Required API Key ACLs:
543
+ * - settings
544
+ * @param getLogFile - The getLogFile object.
545
+ * @param getLogFile.indexName - Query Suggestions index name.
546
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
547
+ * @see getLogFile for the plain version.
548
+ */
549
+ getLogFileWithHTTPInfo({ indexName }, requestOptions) {
550
+ (0, import_client_common.validateRequired)("indexName", "getLogFileWithHTTPInfo", indexName);
551
+ const requestPath = "/1/logs/{indexName}".replace("{indexName}", encodeURIComponent(indexName));
552
+ const headers = {};
553
+ const queryParameters = {};
554
+ const request = {
555
+ method: "GET",
556
+ path: requestPath,
557
+ queryParameters,
558
+ headers
559
+ };
560
+ return transporter.requestWithHttpInfo(request, requestOptions);
561
+ },
319
562
  /**
320
563
  * Updates a QuerySuggestions configuration.
321
564
  *
@@ -341,6 +584,35 @@ function createQuerySuggestionsClient({
341
584
  data: configuration
342
585
  };
343
586
  return transporter.request(request, requestOptions);
587
+ },
588
+ /**
589
+ * Updates a QuerySuggestions configuration.
590
+ *
591
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
592
+ *
593
+ * Required API Key ACLs:
594
+ * - editSettings
595
+ * @param updateConfig - The updateConfig object.
596
+ * @param updateConfig.indexName - Query Suggestions index name.
597
+ * @param updateConfig.configuration - The configuration object.
598
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
599
+ * @see updateConfig for the plain version.
600
+ */
601
+ updateConfigWithHTTPInfo({ indexName, configuration }, requestOptions) {
602
+ (0, import_client_common.validateRequired)("indexName", "updateConfigWithHTTPInfo", indexName);
603
+ (0, import_client_common.validateRequired)("configuration", "updateConfigWithHTTPInfo", configuration);
604
+ (0, import_client_common.validateRequired)("configuration.sourceIndices", "updateConfigWithHTTPInfo", configuration.sourceIndices);
605
+ const requestPath = "/1/configs/{indexName}".replace("{indexName}", encodeURIComponent(indexName));
606
+ const headers = {};
607
+ const queryParameters = {};
608
+ const request = {
609
+ method: "PUT",
610
+ path: requestPath,
611
+ queryParameters,
612
+ headers,
613
+ data: configuration
614
+ };
615
+ return transporter.requestWithHttpInfo(request, requestOptions);
344
616
  }
345
617
  };
346
618
  }