@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.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createHttpRequester } from "@algolia/requester-node-http";
|
|
|
10
10
|
|
|
11
11
|
// src/ingestionClient.ts
|
|
12
12
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
13
|
-
var apiClientVersion = "1.5.
|
|
13
|
+
var apiClientVersion = "1.5.2";
|
|
14
14
|
var REGIONS = ["eu", "us"];
|
|
15
15
|
function getDefaultHosts(region) {
|
|
16
16
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -650,45 +650,6 @@ function createIngestionClient({
|
|
|
650
650
|
};
|
|
651
651
|
return transporter.request(request, requestOptions);
|
|
652
652
|
},
|
|
653
|
-
/**
|
|
654
|
-
* Generates code for the selected model based on the given prompt.
|
|
655
|
-
*
|
|
656
|
-
* Required API Key ACLs:
|
|
657
|
-
* - addObject
|
|
658
|
-
* - deleteIndex
|
|
659
|
-
* - editSettings.
|
|
660
|
-
*
|
|
661
|
-
* @param generateTransformationCodePayload - The generateTransformationCodePayload object.
|
|
662
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
663
|
-
*/
|
|
664
|
-
generateTransformationCode(generateTransformationCodePayload, requestOptions) {
|
|
665
|
-
if (!generateTransformationCodePayload) {
|
|
666
|
-
throw new Error(
|
|
667
|
-
"Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`."
|
|
668
|
-
);
|
|
669
|
-
}
|
|
670
|
-
if (!generateTransformationCodePayload.id) {
|
|
671
|
-
throw new Error(
|
|
672
|
-
"Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`."
|
|
673
|
-
);
|
|
674
|
-
}
|
|
675
|
-
if (!generateTransformationCodePayload.userPrompt) {
|
|
676
|
-
throw new Error(
|
|
677
|
-
"Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`."
|
|
678
|
-
);
|
|
679
|
-
}
|
|
680
|
-
const requestPath = "/1/transformations/models";
|
|
681
|
-
const headers = {};
|
|
682
|
-
const queryParameters = {};
|
|
683
|
-
const request = {
|
|
684
|
-
method: "POST",
|
|
685
|
-
path: requestPath,
|
|
686
|
-
queryParameters,
|
|
687
|
-
headers,
|
|
688
|
-
data: generateTransformationCodePayload
|
|
689
|
-
};
|
|
690
|
-
return transporter.request(request, requestOptions);
|
|
691
|
-
},
|
|
692
653
|
/**
|
|
693
654
|
* Retrieves an authentication resource by its ID.
|
|
694
655
|
*
|
|
@@ -1295,28 +1256,6 @@ function createIngestionClient({
|
|
|
1295
1256
|
};
|
|
1296
1257
|
return transporter.request(request, requestOptions);
|
|
1297
1258
|
},
|
|
1298
|
-
/**
|
|
1299
|
-
* Retrieves a list of existing LLM transformation helpers.
|
|
1300
|
-
*
|
|
1301
|
-
* Required API Key ACLs:
|
|
1302
|
-
* - addObject
|
|
1303
|
-
* - deleteIndex
|
|
1304
|
-
* - editSettings.
|
|
1305
|
-
*
|
|
1306
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1307
|
-
*/
|
|
1308
|
-
listTransformationModels(requestOptions) {
|
|
1309
|
-
const requestPath = "/1/transformations/models";
|
|
1310
|
-
const headers = {};
|
|
1311
|
-
const queryParameters = {};
|
|
1312
|
-
const request = {
|
|
1313
|
-
method: "GET",
|
|
1314
|
-
path: requestPath,
|
|
1315
|
-
queryParameters,
|
|
1316
|
-
headers
|
|
1317
|
-
};
|
|
1318
|
-
return transporter.request(request, requestOptions);
|
|
1319
|
-
},
|
|
1320
1259
|
/**
|
|
1321
1260
|
* Retrieves a list of transformations.
|
|
1322
1261
|
*
|