@salesforce/lds-adapters-service-einsteinllm 1.428.0-dev3 → 1.428.0-dev5

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.
@@ -5438,12 +5438,19 @@ function equals$k(existing, incoming) {
5438
5438
  return true;
5439
5439
  }
5440
5440
 
5441
- const VERSION$j = "b85a5621c60125d9f1644af130f67680";
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)) {
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.428.0-dev3",
3
+ "version": "1.428.0-dev5",
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.428.0-dev3"
47
+ "@salesforce/lds-bindings": "^1.428.0-dev5"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.428.0-dev3",
51
- "@salesforce/lds-karma": "^1.428.0-dev3"
50
+ "@salesforce/lds-compiler-plugins": "^1.428.0-dev5",
51
+ "@salesforce/lds-karma": "^1.428.0-dev5"
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)) {
@@ -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.428.0-dev3-f678b7fe83
8275
+ // version: 1.428.0-dev5-c6fe0903b6
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