@salesforce/lds-adapters-service-einsteinllm 1.266.0-dev1 → 1.266.0-dev10
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/es/es2018/service-einsteinllm.js +2 -1
- package/dist/es/es2018/types/src/generated/adapters/createGenerationsForPromptTemplate.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesGenerationsByPromptTemplateDevName.d.ts +3 -0
- package/package.json +4 -4
- package/sfdc/index.js +3 -2
- package/src/raml/api.raml +4 -0
|
@@ -1101,7 +1101,7 @@ function createResourceRequest(config) {
|
|
|
1101
1101
|
method: 'post',
|
|
1102
1102
|
body: config.body,
|
|
1103
1103
|
urlParams: config.urlParams,
|
|
1104
|
-
queryParams:
|
|
1104
|
+
queryParams: config.queryParams,
|
|
1105
1105
|
headers,
|
|
1106
1106
|
priority: 'normal',
|
|
1107
1107
|
};
|
|
@@ -1110,6 +1110,7 @@ function createResourceRequest(config) {
|
|
|
1110
1110
|
const adapterName = 'createGenerationsForPromptTemplate';
|
|
1111
1111
|
const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
|
|
1112
1112
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1113
|
+
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1113
1114
|
generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1114
1115
|
];
|
|
1115
1116
|
const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
@@ -8,6 +8,7 @@ export declare const createGenerationsForPromptTemplate_ConfigPropertyMetadata:
|
|
|
8
8
|
export declare const createGenerationsForPromptTemplate_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
9
|
export interface CreateGenerationsForPromptTemplateConfig {
|
|
10
10
|
promptTemplateDevName: string;
|
|
11
|
+
versionId?: string;
|
|
11
12
|
promptTemplateGenerationsInput: types_EinsteinPromptTemplateGenerationsInputRepresentation_EinsteinPromptTemplateGenerationsInputRepresentation;
|
|
12
13
|
}
|
|
13
14
|
export declare const createResourceParams: (config: CreateGenerationsForPromptTemplateConfig) => resources_postEinsteinPromptTemplatesGenerationsByPromptTemplateDevName_ResourceRequestConfig;
|
|
@@ -5,6 +5,9 @@ export interface ResourceRequestConfig {
|
|
|
5
5
|
urlParams: {
|
|
6
6
|
promptTemplateDevName: string;
|
|
7
7
|
};
|
|
8
|
+
queryParams: {
|
|
9
|
+
versionId?: string;
|
|
10
|
+
};
|
|
8
11
|
body: {
|
|
9
12
|
promptTemplateGenerationsInput: types_EinsteinPromptTemplateGenerationsInputRepresentation_EinsteinPromptTemplateGenerationsInputRepresentation;
|
|
10
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.266.0-
|
|
3
|
+
"version": "1.266.0-dev10",
|
|
4
4
|
"description": "Connect family for Einstein LLM generations",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-einsteinllm.js",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test": "nx build:karma && karma start --single-run"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@salesforce/lds-bindings": "^1.266.0-
|
|
46
|
+
"@salesforce/lds-bindings": "^1.266.0-dev10"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "^1.266.0-
|
|
50
|
-
"@salesforce/lds-karma": "^1.266.0-
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev10",
|
|
50
|
+
"@salesforce/lds-karma": "^1.266.0-dev10"
|
|
51
51
|
},
|
|
52
52
|
"nx": {
|
|
53
53
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1110,7 +1110,7 @@ function createResourceRequest(config) {
|
|
|
1110
1110
|
method: 'post',
|
|
1111
1111
|
body: config.body,
|
|
1112
1112
|
urlParams: config.urlParams,
|
|
1113
|
-
queryParams:
|
|
1113
|
+
queryParams: config.queryParams,
|
|
1114
1114
|
headers,
|
|
1115
1115
|
priority: 'normal',
|
|
1116
1116
|
};
|
|
@@ -1119,6 +1119,7 @@ function createResourceRequest(config) {
|
|
|
1119
1119
|
const adapterName = 'createGenerationsForPromptTemplate';
|
|
1120
1120
|
const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
|
|
1121
1121
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1122
|
+
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1122
1123
|
generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1123
1124
|
];
|
|
1124
1125
|
const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
@@ -1199,4 +1200,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1199
1200
|
});
|
|
1200
1201
|
|
|
1201
1202
|
export { createFeedback, createGenerations, createGenerationsForPromptTemplate };
|
|
1202
|
-
// version: 1.266.0-
|
|
1203
|
+
// version: 1.266.0-dev10-3275d4bf8
|
package/src/raml/api.raml
CHANGED
|
@@ -322,6 +322,10 @@ types:
|
|
|
322
322
|
body:
|
|
323
323
|
application/json:
|
|
324
324
|
type: EinsteinPromptTemplateGenerationsRepresentation
|
|
325
|
+
queryParameters:
|
|
326
|
+
versionId:
|
|
327
|
+
type: string
|
|
328
|
+
required: false
|
|
325
329
|
body:
|
|
326
330
|
application/json:
|
|
327
331
|
type: EinsteinPromptTemplateGenerationsInputWrapperRepresentation
|