@algolia/ingestion 1.5.0 → 1.5.2
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
package/dist/builds/node.cjs
CHANGED
|
@@ -32,7 +32,7 @@ var import_requester_node_http = require("@algolia/requester-node-http");
|
|
|
32
32
|
|
|
33
33
|
// src/ingestionClient.ts
|
|
34
34
|
var import_client_common = require("@algolia/client-common");
|
|
35
|
-
var apiClientVersion = "1.5.
|
|
35
|
+
var apiClientVersion = "1.5.2";
|
|
36
36
|
var REGIONS = ["eu", "us"];
|
|
37
37
|
function getDefaultHosts(region) {
|
|
38
38
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -672,45 +672,6 @@ function createIngestionClient({
|
|
|
672
672
|
};
|
|
673
673
|
return transporter.request(request, requestOptions);
|
|
674
674
|
},
|
|
675
|
-
/**
|
|
676
|
-
* Generates code for the selected model based on the given prompt.
|
|
677
|
-
*
|
|
678
|
-
* Required API Key ACLs:
|
|
679
|
-
* - addObject
|
|
680
|
-
* - deleteIndex
|
|
681
|
-
* - editSettings.
|
|
682
|
-
*
|
|
683
|
-
* @param generateTransformationCodePayload - The generateTransformationCodePayload object.
|
|
684
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
685
|
-
*/
|
|
686
|
-
generateTransformationCode(generateTransformationCodePayload, requestOptions) {
|
|
687
|
-
if (!generateTransformationCodePayload) {
|
|
688
|
-
throw new Error(
|
|
689
|
-
"Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`."
|
|
690
|
-
);
|
|
691
|
-
}
|
|
692
|
-
if (!generateTransformationCodePayload.id) {
|
|
693
|
-
throw new Error(
|
|
694
|
-
"Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`."
|
|
695
|
-
);
|
|
696
|
-
}
|
|
697
|
-
if (!generateTransformationCodePayload.userPrompt) {
|
|
698
|
-
throw new Error(
|
|
699
|
-
"Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`."
|
|
700
|
-
);
|
|
701
|
-
}
|
|
702
|
-
const requestPath = "/1/transformations/models";
|
|
703
|
-
const headers = {};
|
|
704
|
-
const queryParameters = {};
|
|
705
|
-
const request = {
|
|
706
|
-
method: "POST",
|
|
707
|
-
path: requestPath,
|
|
708
|
-
queryParameters,
|
|
709
|
-
headers,
|
|
710
|
-
data: generateTransformationCodePayload
|
|
711
|
-
};
|
|
712
|
-
return transporter.request(request, requestOptions);
|
|
713
|
-
},
|
|
714
675
|
/**
|
|
715
676
|
* Retrieves an authentication resource by its ID.
|
|
716
677
|
*
|
|
@@ -1317,28 +1278,6 @@ function createIngestionClient({
|
|
|
1317
1278
|
};
|
|
1318
1279
|
return transporter.request(request, requestOptions);
|
|
1319
1280
|
},
|
|
1320
|
-
/**
|
|
1321
|
-
* Retrieves a list of existing LLM transformation helpers.
|
|
1322
|
-
*
|
|
1323
|
-
* Required API Key ACLs:
|
|
1324
|
-
* - addObject
|
|
1325
|
-
* - deleteIndex
|
|
1326
|
-
* - editSettings.
|
|
1327
|
-
*
|
|
1328
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1329
|
-
*/
|
|
1330
|
-
listTransformationModels(requestOptions) {
|
|
1331
|
-
const requestPath = "/1/transformations/models";
|
|
1332
|
-
const headers = {};
|
|
1333
|
-
const queryParameters = {};
|
|
1334
|
-
const request = {
|
|
1335
|
-
method: "GET",
|
|
1336
|
-
path: requestPath,
|
|
1337
|
-
queryParameters,
|
|
1338
|
-
headers
|
|
1339
|
-
};
|
|
1340
|
-
return transporter.request(request, requestOptions);
|
|
1341
|
-
},
|
|
1342
1281
|
/**
|
|
1343
1282
|
* Retrieves a list of transformations.
|
|
1344
1283
|
*
|