@salesforce/lds-adapters-service-einsteinllm 1.431.0 → 1.433.0
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.
|
@@ -474,7 +474,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
|
474
474
|
function createResourceRequest$j(config) {
|
|
475
475
|
const headers = {};
|
|
476
476
|
return {
|
|
477
|
-
baseUri: '/services/data/
|
|
477
|
+
baseUri: '/services/data/v68.0',
|
|
478
478
|
basePath: '/einstein/llm/embeddings',
|
|
479
479
|
method: 'post',
|
|
480
480
|
body: config.body,
|
|
@@ -719,7 +719,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
719
719
|
function createResourceRequest$i(config) {
|
|
720
720
|
const headers = {};
|
|
721
721
|
return {
|
|
722
|
-
baseUri: '/services/data/
|
|
722
|
+
baseUri: '/services/data/v68.0',
|
|
723
723
|
basePath: '/einstein/llm/feedback',
|
|
724
724
|
method: 'post',
|
|
725
725
|
body: config.body,
|
|
@@ -1771,7 +1771,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
1771
1771
|
function createResourceRequest$h(config) {
|
|
1772
1772
|
const headers = {};
|
|
1773
1773
|
return {
|
|
1774
|
-
baseUri: '/services/data/
|
|
1774
|
+
baseUri: '/services/data/v68.0',
|
|
1775
1775
|
basePath: '/einstein/llm/prompt/generations',
|
|
1776
1776
|
method: 'post',
|
|
1777
1777
|
body: config.body,
|
|
@@ -2143,7 +2143,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
2143
2143
|
function createResourceRequest$g(config) {
|
|
2144
2144
|
const headers = {};
|
|
2145
2145
|
return {
|
|
2146
|
-
baseUri: '/services/data/
|
|
2146
|
+
baseUri: '/services/data/v68.0',
|
|
2147
2147
|
basePath: '/einstein/prompt-templates',
|
|
2148
2148
|
method: 'get',
|
|
2149
2149
|
body: null,
|
|
@@ -2520,7 +2520,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
2520
2520
|
function createResourceRequest$f(config) {
|
|
2521
2521
|
const headers = {};
|
|
2522
2522
|
return {
|
|
2523
|
-
baseUri: '/services/data/
|
|
2523
|
+
baseUri: '/services/data/v68.0',
|
|
2524
2524
|
basePath: '/einstein/prompt-templates',
|
|
2525
2525
|
method: 'post',
|
|
2526
2526
|
body: config.body,
|
|
@@ -3048,7 +3048,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
3048
3048
|
function createResourceRequest$e(config) {
|
|
3049
3049
|
const headers = {};
|
|
3050
3050
|
return {
|
|
3051
|
-
baseUri: '/services/data/
|
|
3051
|
+
baseUri: '/services/data/v68.0',
|
|
3052
3052
|
basePath: '/einstein/prompt-templates/data-providers/mapped',
|
|
3053
3053
|
method: 'post',
|
|
3054
3054
|
body: config.body,
|
|
@@ -3198,7 +3198,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
3198
3198
|
function createResourceRequest$d(config) {
|
|
3199
3199
|
const headers = {};
|
|
3200
3200
|
return {
|
|
3201
|
-
baseUri: '/services/data/
|
|
3201
|
+
baseUri: '/services/data/v68.0',
|
|
3202
3202
|
basePath: '/einstein/prompt-templates/data-providers/' + config.urlParams.templateType + '',
|
|
3203
3203
|
method: 'get',
|
|
3204
3204
|
body: null,
|
|
@@ -3338,7 +3338,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
3338
3338
|
function createResourceRequest$c(config) {
|
|
3339
3339
|
const headers = {};
|
|
3340
3340
|
return {
|
|
3341
|
-
baseUri: '/services/data/
|
|
3341
|
+
baseUri: '/services/data/v68.0',
|
|
3342
3342
|
basePath: '/einstein/prompt-templates/data-provider/describe',
|
|
3343
3343
|
method: 'post',
|
|
3344
3344
|
body: config.body,
|
|
@@ -3608,7 +3608,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
3608
3608
|
function createResourceRequest$b(config) {
|
|
3609
3609
|
const headers = {};
|
|
3610
3610
|
return {
|
|
3611
|
-
baseUri: '/services/data/
|
|
3611
|
+
baseUri: '/services/data/v68.0',
|
|
3612
3612
|
basePath: '/einstein/prompt-templates/data-provider-types/' + config.urlParams.templateType + '',
|
|
3613
3613
|
method: 'get',
|
|
3614
3614
|
body: null,
|
|
@@ -3746,7 +3746,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
3746
3746
|
function createResourceRequest$a(config) {
|
|
3747
3747
|
const headers = {};
|
|
3748
3748
|
return {
|
|
3749
|
-
baseUri: '/services/data/
|
|
3749
|
+
baseUri: '/services/data/v68.0',
|
|
3750
3750
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '',
|
|
3751
3751
|
method: 'get',
|
|
3752
3752
|
body: null,
|
|
@@ -4103,7 +4103,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
4103
4103
|
function createResourceRequest$9(config) {
|
|
4104
4104
|
const headers = {};
|
|
4105
4105
|
return {
|
|
4106
|
-
baseUri: '/services/data/
|
|
4106
|
+
baseUri: '/services/data/v68.0',
|
|
4107
4107
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/status',
|
|
4108
4108
|
method: 'put',
|
|
4109
4109
|
body: null,
|
|
@@ -4322,7 +4322,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
4322
4322
|
function createResourceRequest$8(config) {
|
|
4323
4323
|
const headers = {};
|
|
4324
4324
|
return {
|
|
4325
|
-
baseUri: '/services/data/
|
|
4325
|
+
baseUri: '/services/data/v68.0',
|
|
4326
4326
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/references',
|
|
4327
4327
|
method: 'get',
|
|
4328
4328
|
body: null,
|
|
@@ -4460,7 +4460,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
4460
4460
|
function createResourceRequest$7(config) {
|
|
4461
4461
|
const headers = {};
|
|
4462
4462
|
return {
|
|
4463
|
-
baseUri: '/services/data/
|
|
4463
|
+
baseUri: '/services/data/v68.0',
|
|
4464
4464
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
|
|
4465
4465
|
method: 'get',
|
|
4466
4466
|
body: null,
|
|
@@ -4585,7 +4585,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
4585
4585
|
function createResourceRequest$6(config) {
|
|
4586
4586
|
const headers = {};
|
|
4587
4587
|
return {
|
|
4588
|
-
baseUri: '/services/data/
|
|
4588
|
+
baseUri: '/services/data/v68.0',
|
|
4589
4589
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
|
|
4590
4590
|
method: 'post',
|
|
4591
4591
|
body: config.body,
|
|
@@ -4724,7 +4724,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
4724
4724
|
function createResourceRequest$5(config) {
|
|
4725
4725
|
const headers = {};
|
|
4726
4726
|
return {
|
|
4727
|
-
baseUri: '/services/data/
|
|
4727
|
+
baseUri: '/services/data/v68.0',
|
|
4728
4728
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
|
|
4729
4729
|
method: 'get',
|
|
4730
4730
|
body: null,
|
|
@@ -4850,7 +4850,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
4850
4850
|
function createResourceRequest$4(config) {
|
|
4851
4851
|
const headers = {};
|
|
4852
4852
|
return {
|
|
4853
|
-
baseUri: '/services/data/
|
|
4853
|
+
baseUri: '/services/data/v68.0',
|
|
4854
4854
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
|
|
4855
4855
|
method: 'put',
|
|
4856
4856
|
body: config.body,
|
|
@@ -4975,7 +4975,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
4975
4975
|
function createResourceRequest$3(config) {
|
|
4976
4976
|
const headers = {};
|
|
4977
4977
|
return {
|
|
4978
|
-
baseUri: '/services/data/
|
|
4978
|
+
baseUri: '/services/data/v68.0',
|
|
4979
4979
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '/status',
|
|
4980
4980
|
method: 'put',
|
|
4981
4981
|
body: null,
|
|
@@ -5438,12 +5438,19 @@ function equals$k(existing, incoming) {
|
|
|
5438
5438
|
return true;
|
|
5439
5439
|
}
|
|
5440
5440
|
|
|
5441
|
-
const VERSION$j = "
|
|
5441
|
+
const VERSION$j = "9edc7f85ed953923f7b48f294886471a";
|
|
5442
5442
|
function validate$j(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
|
|
5443
5443
|
const v_error = (() => {
|
|
5444
5444
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5445
5445
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5446
5446
|
}
|
|
5447
|
+
if (obj.actualFileMimeType !== undefined) {
|
|
5448
|
+
const obj_actualFileMimeType = obj.actualFileMimeType;
|
|
5449
|
+
const path_actualFileMimeType = path + '.actualFileMimeType';
|
|
5450
|
+
if (typeof obj_actualFileMimeType !== 'string') {
|
|
5451
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actualFileMimeType + '" (at "' + path_actualFileMimeType + '")');
|
|
5452
|
+
}
|
|
5453
|
+
}
|
|
5447
5454
|
if (obj.exclusionInfo !== undefined) {
|
|
5448
5455
|
const obj_exclusionInfo = obj.exclusionInfo;
|
|
5449
5456
|
const path_exclusionInfo = path + '.exclusionInfo';
|
|
@@ -5491,6 +5498,11 @@ const select$m = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
5491
5498
|
version: VERSION$j,
|
|
5492
5499
|
private: [],
|
|
5493
5500
|
selections: [
|
|
5501
|
+
{
|
|
5502
|
+
name: 'actualFileMimeType',
|
|
5503
|
+
kind: 'Scalar',
|
|
5504
|
+
required: false
|
|
5505
|
+
},
|
|
5494
5506
|
{
|
|
5495
5507
|
name: 'exclusionInfo',
|
|
5496
5508
|
kind: 'Object',
|
|
@@ -5522,6 +5534,19 @@ const select$m = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
5522
5534
|
};
|
|
5523
5535
|
};
|
|
5524
5536
|
function equals$j(existing, incoming) {
|
|
5537
|
+
const existing_actualFileMimeType = existing.actualFileMimeType;
|
|
5538
|
+
const incoming_actualFileMimeType = incoming.actualFileMimeType;
|
|
5539
|
+
// if at least one of these optionals is defined
|
|
5540
|
+
if (existing_actualFileMimeType !== undefined || incoming_actualFileMimeType !== undefined) {
|
|
5541
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5542
|
+
// not equal
|
|
5543
|
+
if (existing_actualFileMimeType === undefined || incoming_actualFileMimeType === undefined) {
|
|
5544
|
+
return false;
|
|
5545
|
+
}
|
|
5546
|
+
if (!(existing_actualFileMimeType === incoming_actualFileMimeType)) {
|
|
5547
|
+
return false;
|
|
5548
|
+
}
|
|
5549
|
+
}
|
|
5525
5550
|
const existing_fileExtension = existing.fileExtension;
|
|
5526
5551
|
const incoming_fileExtension = incoming.fileExtension;
|
|
5527
5552
|
if (!(existing_fileExtension === incoming_fileExtension)) {
|
|
@@ -7150,7 +7175,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
7150
7175
|
function createResourceRequest$2(config) {
|
|
7151
7176
|
const headers = {};
|
|
7152
7177
|
return {
|
|
7153
|
-
baseUri: '/services/data/
|
|
7178
|
+
baseUri: '/services/data/v68.0',
|
|
7154
7179
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/generations',
|
|
7155
7180
|
method: 'post',
|
|
7156
7181
|
body: config.body,
|
|
@@ -7574,7 +7599,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
7574
7599
|
function createResourceRequest$1(config) {
|
|
7575
7600
|
const headers = {};
|
|
7576
7601
|
return {
|
|
7577
|
-
baseUri: '/services/data/
|
|
7602
|
+
baseUri: '/services/data/v68.0',
|
|
7578
7603
|
basePath: '/einstein/prompt-template-types/' + config.urlParams.templateTypeName + '',
|
|
7579
7604
|
method: 'get',
|
|
7580
7605
|
body: null,
|
|
@@ -7966,7 +7991,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
7966
7991
|
function createResourceRequest(config) {
|
|
7967
7992
|
const headers = {};
|
|
7968
7993
|
return {
|
|
7969
|
-
baseUri: '/services/data/
|
|
7994
|
+
baseUri: '/services/data/v68.0',
|
|
7970
7995
|
basePath: '/einstein/prompt-template/' + config.urlParams.promptTemplateDevName + '/output-languages',
|
|
7971
7996
|
method: 'get',
|
|
7972
7997
|
body: null,
|
package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EinsteinPromptTemplateAttachmentExclusionInfoRepresentation as EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation } from './EinsteinPromptTemplateAttachmentExclusionInfoRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "9edc7f85ed953923f7b48f294886471a";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: EinsteinPromptTemplateAttachmentRepresentation, existing: EinsteinPromptTemplateAttachmentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateAttachmentRepresentationNormalized;
|
|
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface EinsteinPromptTemplateAttachmentRepresentationNormalized {
|
|
18
|
+
/** Actual detected MIME type when file is excluded due to MIME/extension mismatch */
|
|
19
|
+
actualFileMimeType?: string;
|
|
18
20
|
exclusionInfo?: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation;
|
|
19
21
|
/** extension of the file attachment */
|
|
20
22
|
fileExtension: string;
|
|
@@ -34,6 +36,7 @@ export interface EinsteinPromptTemplateAttachmentRepresentationNormalized {
|
|
|
34
36
|
* (none)
|
|
35
37
|
*/
|
|
36
38
|
export interface EinsteinPromptTemplateAttachmentRepresentation {
|
|
39
|
+
actualFileMimeType?: string;
|
|
37
40
|
exclusionInfo?: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation;
|
|
38
41
|
fileExtension: string;
|
|
39
42
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.433.0",
|
|
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",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest --config=./jest.config.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.433.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.433.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.433.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -484,7 +484,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
|
484
484
|
function createResourceRequest$j(config) {
|
|
485
485
|
const headers = {};
|
|
486
486
|
return {
|
|
487
|
-
baseUri: '/services/data/
|
|
487
|
+
baseUri: '/services/data/v68.0',
|
|
488
488
|
basePath: '/einstein/llm/embeddings',
|
|
489
489
|
method: 'post',
|
|
490
490
|
body: config.body,
|
|
@@ -729,7 +729,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
729
729
|
function createResourceRequest$i(config) {
|
|
730
730
|
const headers = {};
|
|
731
731
|
return {
|
|
732
|
-
baseUri: '/services/data/
|
|
732
|
+
baseUri: '/services/data/v68.0',
|
|
733
733
|
basePath: '/einstein/llm/feedback',
|
|
734
734
|
method: 'post',
|
|
735
735
|
body: config.body,
|
|
@@ -1781,7 +1781,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
1781
1781
|
function createResourceRequest$h(config) {
|
|
1782
1782
|
const headers = {};
|
|
1783
1783
|
return {
|
|
1784
|
-
baseUri: '/services/data/
|
|
1784
|
+
baseUri: '/services/data/v68.0',
|
|
1785
1785
|
basePath: '/einstein/llm/prompt/generations',
|
|
1786
1786
|
method: 'post',
|
|
1787
1787
|
body: config.body,
|
|
@@ -2245,12 +2245,19 @@ function equals$s(existing, incoming) {
|
|
|
2245
2245
|
return true;
|
|
2246
2246
|
}
|
|
2247
2247
|
|
|
2248
|
-
const VERSION$r = "
|
|
2248
|
+
const VERSION$r = "9edc7f85ed953923f7b48f294886471a";
|
|
2249
2249
|
function validate$v(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
|
|
2250
2250
|
const v_error = (() => {
|
|
2251
2251
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2252
2252
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2253
2253
|
}
|
|
2254
|
+
if (obj.actualFileMimeType !== undefined) {
|
|
2255
|
+
const obj_actualFileMimeType = obj.actualFileMimeType;
|
|
2256
|
+
const path_actualFileMimeType = path + '.actualFileMimeType';
|
|
2257
|
+
if (typeof obj_actualFileMimeType !== 'string') {
|
|
2258
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actualFileMimeType + '" (at "' + path_actualFileMimeType + '")');
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2254
2261
|
if (obj.exclusionInfo !== undefined) {
|
|
2255
2262
|
const obj_exclusionInfo = obj.exclusionInfo;
|
|
2256
2263
|
const path_exclusionInfo = path + '.exclusionInfo';
|
|
@@ -2298,6 +2305,11 @@ const select$I = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
2298
2305
|
version: VERSION$r,
|
|
2299
2306
|
private: [],
|
|
2300
2307
|
selections: [
|
|
2308
|
+
{
|
|
2309
|
+
name: 'actualFileMimeType',
|
|
2310
|
+
kind: 'Scalar',
|
|
2311
|
+
required: false
|
|
2312
|
+
},
|
|
2301
2313
|
{
|
|
2302
2314
|
name: 'exclusionInfo',
|
|
2303
2315
|
kind: 'Object',
|
|
@@ -2329,6 +2341,19 @@ const select$I = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
2329
2341
|
};
|
|
2330
2342
|
};
|
|
2331
2343
|
function equals$r(existing, incoming) {
|
|
2344
|
+
const existing_actualFileMimeType = existing.actualFileMimeType;
|
|
2345
|
+
const incoming_actualFileMimeType = incoming.actualFileMimeType;
|
|
2346
|
+
// if at least one of these optionals is defined
|
|
2347
|
+
if (existing_actualFileMimeType !== undefined || incoming_actualFileMimeType !== undefined) {
|
|
2348
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2349
|
+
// not equal
|
|
2350
|
+
if (existing_actualFileMimeType === undefined || incoming_actualFileMimeType === undefined) {
|
|
2351
|
+
return false;
|
|
2352
|
+
}
|
|
2353
|
+
if (!(existing_actualFileMimeType === incoming_actualFileMimeType)) {
|
|
2354
|
+
return false;
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2332
2357
|
const existing_fileExtension = existing.fileExtension;
|
|
2333
2358
|
const incoming_fileExtension = incoming.fileExtension;
|
|
2334
2359
|
if (!(existing_fileExtension === incoming_fileExtension)) {
|
|
@@ -3957,7 +3982,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
3957
3982
|
function createResourceRequest$g(config) {
|
|
3958
3983
|
const headers = {};
|
|
3959
3984
|
return {
|
|
3960
|
-
baseUri: '/services/data/
|
|
3985
|
+
baseUri: '/services/data/v68.0',
|
|
3961
3986
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/generations',
|
|
3962
3987
|
method: 'post',
|
|
3963
3988
|
body: config.body,
|
|
@@ -4301,7 +4326,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
4301
4326
|
function createResourceRequest$f(config) {
|
|
4302
4327
|
const headers = {};
|
|
4303
4328
|
return {
|
|
4304
|
-
baseUri: '/services/data/
|
|
4329
|
+
baseUri: '/services/data/v68.0',
|
|
4305
4330
|
basePath: '/einstein/prompt-templates',
|
|
4306
4331
|
method: 'post',
|
|
4307
4332
|
body: config.body,
|
|
@@ -4424,7 +4449,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
4424
4449
|
function createResourceRequest$e(config) {
|
|
4425
4450
|
const headers = {};
|
|
4426
4451
|
return {
|
|
4427
|
-
baseUri: '/services/data/
|
|
4452
|
+
baseUri: '/services/data/v68.0',
|
|
4428
4453
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
|
|
4429
4454
|
method: 'post',
|
|
4430
4455
|
body: config.body,
|
|
@@ -4888,7 +4913,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
4888
4913
|
function createResourceRequest$d(config) {
|
|
4889
4914
|
const headers = {};
|
|
4890
4915
|
return {
|
|
4891
|
-
baseUri: '/services/data/
|
|
4916
|
+
baseUri: '/services/data/v68.0',
|
|
4892
4917
|
basePath: '/einstein/prompt-templates/data-provider/describe',
|
|
4893
4918
|
method: 'post',
|
|
4894
4919
|
body: config.body,
|
|
@@ -5158,7 +5183,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
5158
5183
|
function createResourceRequest$c(config) {
|
|
5159
5184
|
const headers = {};
|
|
5160
5185
|
return {
|
|
5161
|
-
baseUri: '/services/data/
|
|
5186
|
+
baseUri: '/services/data/v68.0',
|
|
5162
5187
|
basePath: '/einstein/prompt-templates/data-provider-types/' + config.urlParams.templateType + '',
|
|
5163
5188
|
method: 'get',
|
|
5164
5189
|
body: null,
|
|
@@ -5361,7 +5386,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
5361
5386
|
function createResourceRequest$b(config) {
|
|
5362
5387
|
const headers = {};
|
|
5363
5388
|
return {
|
|
5364
|
-
baseUri: '/services/data/
|
|
5389
|
+
baseUri: '/services/data/v68.0',
|
|
5365
5390
|
basePath: '/einstein/prompt-templates/data-providers/' + config.urlParams.templateType + '',
|
|
5366
5391
|
method: 'get',
|
|
5367
5392
|
body: null,
|
|
@@ -5614,7 +5639,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
5614
5639
|
function createResourceRequest$a(config) {
|
|
5615
5640
|
const headers = {};
|
|
5616
5641
|
return {
|
|
5617
|
-
baseUri: '/services/data/
|
|
5642
|
+
baseUri: '/services/data/v68.0',
|
|
5618
5643
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/references',
|
|
5619
5644
|
method: 'get',
|
|
5620
5645
|
body: null,
|
|
@@ -5752,7 +5777,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
5752
5777
|
function createResourceRequest$9(config) {
|
|
5753
5778
|
const headers = {};
|
|
5754
5779
|
return {
|
|
5755
|
-
baseUri: '/services/data/
|
|
5780
|
+
baseUri: '/services/data/v68.0',
|
|
5756
5781
|
basePath: '/einstein/prompt-templates/data-providers/mapped',
|
|
5757
5782
|
method: 'post',
|
|
5758
5783
|
body: config.body,
|
|
@@ -6156,7 +6181,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
6156
6181
|
function createResourceRequest$8(config) {
|
|
6157
6182
|
const headers = {};
|
|
6158
6183
|
return {
|
|
6159
|
-
baseUri: '/services/data/
|
|
6184
|
+
baseUri: '/services/data/v68.0',
|
|
6160
6185
|
basePath: '/einstein/prompt-template/' + config.urlParams.promptTemplateDevName + '/output-languages',
|
|
6161
6186
|
method: 'get',
|
|
6162
6187
|
body: null,
|
|
@@ -6482,7 +6507,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
6482
6507
|
function createResourceRequest$7(config) {
|
|
6483
6508
|
const headers = {};
|
|
6484
6509
|
return {
|
|
6485
|
-
baseUri: '/services/data/
|
|
6510
|
+
baseUri: '/services/data/v68.0',
|
|
6486
6511
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '',
|
|
6487
6512
|
method: 'get',
|
|
6488
6513
|
body: null,
|
|
@@ -6621,7 +6646,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
6621
6646
|
function createResourceRequest$6(config) {
|
|
6622
6647
|
const headers = {};
|
|
6623
6648
|
return {
|
|
6624
|
-
baseUri: '/services/data/
|
|
6649
|
+
baseUri: '/services/data/v68.0',
|
|
6625
6650
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
|
|
6626
6651
|
method: 'get',
|
|
6627
6652
|
body: null,
|
|
@@ -6762,7 +6787,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
6762
6787
|
function createResourceRequest$5(config) {
|
|
6763
6788
|
const headers = {};
|
|
6764
6789
|
return {
|
|
6765
|
-
baseUri: '/services/data/
|
|
6790
|
+
baseUri: '/services/data/v68.0',
|
|
6766
6791
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
|
|
6767
6792
|
method: 'get',
|
|
6768
6793
|
body: null,
|
|
@@ -6979,7 +7004,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
6979
7004
|
function createResourceRequest$4(config) {
|
|
6980
7005
|
const headers = {};
|
|
6981
7006
|
return {
|
|
6982
|
-
baseUri: '/services/data/
|
|
7007
|
+
baseUri: '/services/data/v68.0',
|
|
6983
7008
|
basePath: '/einstein/prompt-templates',
|
|
6984
7009
|
method: 'get',
|
|
6985
7010
|
body: null,
|
|
@@ -7436,7 +7461,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
7436
7461
|
function createResourceRequest$3(config) {
|
|
7437
7462
|
const headers = {};
|
|
7438
7463
|
return {
|
|
7439
|
-
baseUri: '/services/data/
|
|
7464
|
+
baseUri: '/services/data/v68.0',
|
|
7440
7465
|
basePath: '/einstein/prompt-template-types/' + config.urlParams.templateTypeName + '',
|
|
7441
7466
|
method: 'get',
|
|
7442
7467
|
body: null,
|
|
@@ -7792,7 +7817,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
7792
7817
|
function createResourceRequest$2(config) {
|
|
7793
7818
|
const headers = {};
|
|
7794
7819
|
return {
|
|
7795
|
-
baseUri: '/services/data/
|
|
7820
|
+
baseUri: '/services/data/v68.0',
|
|
7796
7821
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/status',
|
|
7797
7822
|
method: 'put',
|
|
7798
7823
|
body: null,
|
|
@@ -7883,7 +7908,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
7883
7908
|
function createResourceRequest$1(config) {
|
|
7884
7909
|
const headers = {};
|
|
7885
7910
|
return {
|
|
7886
|
-
baseUri: '/services/data/
|
|
7911
|
+
baseUri: '/services/data/v68.0',
|
|
7887
7912
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '/status',
|
|
7888
7913
|
method: 'put',
|
|
7889
7914
|
body: null,
|
|
@@ -7976,7 +8001,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
7976
8001
|
function createResourceRequest(config) {
|
|
7977
8002
|
const headers = {};
|
|
7978
8003
|
return {
|
|
7979
|
-
baseUri: '/services/data/
|
|
8004
|
+
baseUri: '/services/data/v68.0',
|
|
7980
8005
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
|
|
7981
8006
|
method: 'put',
|
|
7982
8007
|
body: config.body,
|
|
@@ -8247,4 +8272,4 @@ withDefaultLuvio((luvio) => {
|
|
|
8247
8272
|
});
|
|
8248
8273
|
|
|
8249
8274
|
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getEinsteinPromptTemplateReferences, getEinsteinPromptTemplateReferences_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateStatus, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
8250
|
-
// version: 1.
|
|
8275
|
+
// version: 1.433.0-db129b48d2
|
package/src/raml/api.raml
CHANGED
|
@@ -6,7 +6,7 @@ version: '62.0'
|
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
9
|
-
baseUri: /services/data/
|
|
9
|
+
baseUri: /services/data/v68.0
|
|
10
10
|
securitySchemes:
|
|
11
11
|
OAuth2:
|
|
12
12
|
type: OAuth 2.0
|
|
@@ -580,6 +580,10 @@ types:
|
|
|
580
580
|
description: Representation of file data for prompt template attachments
|
|
581
581
|
type: object
|
|
582
582
|
properties:
|
|
583
|
+
actualFileMimeType:
|
|
584
|
+
description: Actual detected MIME type when file is excluded due to MIME/extension mismatch
|
|
585
|
+
type: string
|
|
586
|
+
required: false
|
|
583
587
|
exclusionInfo:
|
|
584
588
|
description: data for file exclusion from LLM request
|
|
585
589
|
type: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation
|