@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.
- package/dist/browser.d.ts +2 -50
- package/dist/builds/browser.js +1 -62
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +2 -2
- package/dist/builds/fetch.js +1 -62
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -62
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -62
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +2 -50
- package/dist/node.d.cts +2 -50
- package/dist/node.d.ts +2 -50
- package/dist/src/ingestionClient.cjs +1 -62
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +1 -62
- package/dist/src/ingestionClient.js.map +1 -1
- package/model/index.ts +0 -4
- package/package.json +5 -5
- package/model/generateTransformationCodePayload.ts +0 -9
- package/model/generateTransformationCodeResponse.ts +0 -5
- package/model/model.ts +0 -13
- package/model/transformationModels.ts +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/ingestionClient.ts
|
|
2
2
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
3
|
-
var apiClientVersion = "1.5.
|
|
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
|
*
|