@algolia/ingestion 1.5.1 → 1.5.3

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.
@@ -1,6 +1,6 @@
1
1
  // src/ingestionClient.ts
2
2
  import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
3
- var apiClientVersion = "1.5.1";
3
+ var apiClientVersion = "1.5.3";
4
4
  var REGIONS = ["eu", "us"];
5
5
  function getDefaultHosts(region) {
6
6
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -640,45 +640,6 @@ function createIngestionClient({
640
640
  };
641
641
  return transporter.request(request, requestOptions);
642
642
  },
643
- /**
644
- * Generates code for the selected model based on the given prompt.
645
- *
646
- * Required API Key ACLs:
647
- * - addObject
648
- * - deleteIndex
649
- * - editSettings.
650
- *
651
- * @param generateTransformationCodePayload - The generateTransformationCodePayload object.
652
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
653
- */
654
- generateTransformationCode(generateTransformationCodePayload, requestOptions) {
655
- if (!generateTransformationCodePayload) {
656
- throw new Error(
657
- "Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`."
658
- );
659
- }
660
- if (!generateTransformationCodePayload.id) {
661
- throw new Error(
662
- "Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`."
663
- );
664
- }
665
- if (!generateTransformationCodePayload.userPrompt) {
666
- throw new Error(
667
- "Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`."
668
- );
669
- }
670
- const requestPath = "/1/transformations/models";
671
- const headers = {};
672
- const queryParameters = {};
673
- const request = {
674
- method: "POST",
675
- path: requestPath,
676
- queryParameters,
677
- headers,
678
- data: generateTransformationCodePayload
679
- };
680
- return transporter.request(request, requestOptions);
681
- },
682
643
  /**
683
644
  * Retrieves an authentication resource by its ID.
684
645
  *
@@ -1285,28 +1246,6 @@ function createIngestionClient({
1285
1246
  };
1286
1247
  return transporter.request(request, requestOptions);
1287
1248
  },
1288
- /**
1289
- * Retrieves a list of existing LLM transformation helpers.
1290
- *
1291
- * Required API Key ACLs:
1292
- * - addObject
1293
- * - deleteIndex
1294
- * - editSettings.
1295
- *
1296
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1297
- */
1298
- listTransformationModels(requestOptions) {
1299
- const requestPath = "/1/transformations/models";
1300
- const headers = {};
1301
- const queryParameters = {};
1302
- const request = {
1303
- method: "GET",
1304
- path: requestPath,
1305
- queryParameters,
1306
- headers
1307
- };
1308
- return transporter.request(request, requestOptions);
1309
- },
1310
1249
  /**
1311
1250
  * Retrieves a list of transformations.
1312
1251
  *