@salesforce/lds-adapters-service-einsteinllm 1.427.0 → 1.428.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.
@@ -2673,7 +2673,7 @@ function validate$v(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
2673
2673
  }
2674
2674
 
2675
2675
  const TTL$7 = 300;
2676
- const VERSION$r = "d4824d8c6e7848df0de89295e6d9d434";
2676
+ const VERSION$r = "fa3851cb23dffdbba0de38938eecbcaa";
2677
2677
  function validate$u(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
2678
2678
  const v_error = (() => {
2679
2679
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2765,6 +2765,13 @@ function validate$u(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
2765
2765
  }
2766
2766
  }
2767
2767
  }
2768
+ if (obj.jinjaReferenceName !== undefined) {
2769
+ const obj_jinjaReferenceName = obj.jinjaReferenceName;
2770
+ const path_jinjaReferenceName = path + '.jinjaReferenceName';
2771
+ if (typeof obj_jinjaReferenceName !== 'string') {
2772
+ return new TypeError('Expected "string" but received "' + typeof obj_jinjaReferenceName + '" (at "' + path_jinjaReferenceName + '")');
2773
+ }
2774
+ }
2768
2775
  const obj_label = obj.label;
2769
2776
  const path_label = path + '.label';
2770
2777
  if (typeof obj_label !== 'string') {
@@ -5431,12 +5438,19 @@ function equals$k(existing, incoming) {
5431
5438
  return true;
5432
5439
  }
5433
5440
 
5434
- const VERSION$j = "b85a5621c60125d9f1644af130f67680";
5441
+ const VERSION$j = "9edc7f85ed953923f7b48f294886471a";
5435
5442
  function validate$j(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
5436
5443
  const v_error = (() => {
5437
5444
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5438
5445
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5439
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
+ }
5440
5454
  if (obj.exclusionInfo !== undefined) {
5441
5455
  const obj_exclusionInfo = obj.exclusionInfo;
5442
5456
  const path_exclusionInfo = path + '.exclusionInfo';
@@ -5484,6 +5498,11 @@ const select$m = function EinsteinPromptTemplateAttachmentRepresentationSelect()
5484
5498
  version: VERSION$j,
5485
5499
  private: [],
5486
5500
  selections: [
5501
+ {
5502
+ name: 'actualFileMimeType',
5503
+ kind: 'Scalar',
5504
+ required: false
5505
+ },
5487
5506
  {
5488
5507
  name: 'exclusionInfo',
5489
5508
  kind: 'Object',
@@ -5515,6 +5534,19 @@ const select$m = function EinsteinPromptTemplateAttachmentRepresentationSelect()
5515
5534
  };
5516
5535
  };
5517
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
+ }
5518
5550
  const existing_fileExtension = existing.fileExtension;
5519
5551
  const incoming_fileExtension = incoming.fileExtension;
5520
5552
  if (!(existing_fileExtension === incoming_fileExtension)) {
@@ -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 = "b85a5621c60125d9f1644af130f67680";
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;
@@ -2,7 +2,7 @@ import { PromptTemplateDataProviderOutputParamRepresentation as PromptTemplateDa
2
2
  import { PromptTemplateDataProviderInputParamRepresentation as PromptTemplateDataProviderInputParamRepresentation_PromptTemplateDataProviderInputParamRepresentation } from './PromptTemplateDataProviderInputParamRepresentation';
3
3
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
4
  export declare const TTL = 300;
5
- export declare const VERSION = "d4824d8c6e7848df0de89295e6d9d434";
5
+ export declare const VERSION = "fa3851cb23dffdbba0de38938eecbcaa";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export declare function normalize(input: PromptTemplateDataProviderInstanceConfigRepresentation, existing: PromptTemplateDataProviderInstanceConfigRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PromptTemplateDataProviderInstanceConfigRepresentationNormalized;
@@ -32,6 +32,8 @@ export interface PromptTemplateDataProviderInstanceConfigRepresentationNormalize
32
32
  groupName: string;
33
33
  /** The list of all input parameters for the data provider instance */
34
34
  inputParams?: Array<PromptTemplateDataProviderInputParamRepresentation_PromptTemplateDataProviderInputParamRepresentation>;
35
+ /** The Jinja format reference name for the data provider instance */
36
+ jinjaReferenceName?: string;
35
37
  /** The display label for the data provider instance */
36
38
  label: string;
37
39
  /** The mapped inputs for data provider */
@@ -65,6 +67,7 @@ export interface PromptTemplateDataProviderInstanceConfigRepresentation {
65
67
  description?: string | null;
66
68
  groupName: string;
67
69
  inputParams?: Array<PromptTemplateDataProviderInputParamRepresentation_PromptTemplateDataProviderInputParamRepresentation>;
70
+ jinjaReferenceName?: string;
68
71
  label: string;
69
72
  mappedInputs?: {
70
73
  [key: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.427.0",
3
+ "version": "1.428.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",
@@ -44,11 +44,11 @@
44
44
  "test:unit": "jest --config=./jest.config.js"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "^1.427.0"
47
+ "@salesforce/lds-bindings": "^1.428.0-dev10"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.427.0",
51
- "@salesforce/lds-karma": "^1.427.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.428.0-dev10",
51
+ "@salesforce/lds-karma": "^1.428.0-dev10"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -2245,12 +2245,19 @@ function equals$s(existing, incoming) {
2245
2245
  return true;
2246
2246
  }
2247
2247
 
2248
- const VERSION$r = "b85a5621c60125d9f1644af130f67680";
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)) {
@@ -4578,7 +4603,7 @@ function validate$f(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
4578
4603
  }
4579
4604
 
4580
4605
  const TTL$8 = 300;
4581
- const VERSION$c = "d4824d8c6e7848df0de89295e6d9d434";
4606
+ const VERSION$c = "fa3851cb23dffdbba0de38938eecbcaa";
4582
4607
  function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
4583
4608
  const v_error = (() => {
4584
4609
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4670,6 +4695,13 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
4670
4695
  }
4671
4696
  }
4672
4697
  }
4698
+ if (obj.jinjaReferenceName !== undefined) {
4699
+ const obj_jinjaReferenceName = obj.jinjaReferenceName;
4700
+ const path_jinjaReferenceName = path + '.jinjaReferenceName';
4701
+ if (typeof obj_jinjaReferenceName !== 'string') {
4702
+ return new TypeError('Expected "string" but received "' + typeof obj_jinjaReferenceName + '" (at "' + path_jinjaReferenceName + '")');
4703
+ }
4704
+ }
4673
4705
  const obj_label = obj.label;
4674
4706
  const path_label = path + '.label';
4675
4707
  if (typeof obj_label !== 'string') {
@@ -8240,4 +8272,4 @@ withDefaultLuvio((luvio) => {
8240
8272
  });
8241
8273
 
8242
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 };
8243
- // version: 1.427.0-d53a098e46
8275
+ // version: 1.428.0-dev10-109bf232e1
package/src/raml/api.raml CHANGED
@@ -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
@@ -941,6 +945,10 @@ types:
941
945
  required: false # TODO Hand-rolled W-18968514
942
946
  items:
943
947
  type: PromptTemplateDataProviderOutputParamRepresentation
948
+ jinjaReferenceName:
949
+ description: The Jinja format reference name for the data provider instance
950
+ type: string
951
+ required: false
944
952
  referenceName:
945
953
  description: The reference name for the data provider instance
946
954
  type: string