@salesforce/lds-adapters-sfap-einstein-ai-gateway 1.266.0-dev5 → 1.266.0-dev6

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.
@@ -1002,7 +1002,10 @@ function createResourceRequest(config) {
1002
1002
  const adapterName = 'registerFeedback';
1003
1003
  const registerFeedback_ConfigPropertyMetadata = [
1004
1004
  generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
1005
- generateParamConfigMetadata('generation_id', true, 2 /* Body */, 0 /* String */),
1005
+ generateParamConfigMetadata('generation_id', false, 2 /* Body */, 0 /* String */),
1006
+ generateParamConfigMetadata('turn_id', false, 2 /* Body */, 0 /* String */),
1007
+ generateParamConfigMetadata('app_generation_id', false, 2 /* Body */, 0 /* String */),
1008
+ generateParamConfigMetadata('app_generation', false, 2 /* Body */, 0 /* String */),
1006
1009
  generateParamConfigMetadata('feedback', false, 2 /* Body */, 4 /* Unsupported */),
1007
1010
  generateParamConfigMetadata('feedback_text', false, 2 /* Body */, 0 /* String */),
1008
1011
  generateParamConfigMetadata('source', false, 2 /* Body */, 0 /* String */),
@@ -9,7 +9,10 @@ export interface RegisterFeedbackConfig {
9
9
  xClientFeatureId: string;
10
10
  xSfdcAppContext?: string;
11
11
  id: string;
12
- generation_id: string;
12
+ generation_id?: string;
13
+ turn_id?: string;
14
+ app_generation_id?: string;
15
+ app_generation?: string;
13
16
  feedback?: string | null;
14
17
  feedback_text?: string;
15
18
  source?: string;
@@ -3,7 +3,10 @@ import { FeedbackResponseRepresentation as types_FeedbackResponseRepresentation_
3
3
  export interface ResourceRequestConfig {
4
4
  body: {
5
5
  id: string;
6
- generation_id: string;
6
+ generation_id?: string;
7
+ turn_id?: string;
8
+ app_generation_id?: string;
9
+ app_generation?: string;
7
10
  feedback?: string | null;
8
11
  feedback_text?: string;
9
12
  source?: string;
@@ -1,5 +1,5 @@
1
1
  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';
2
- export declare const VERSION = "677aa3c947477cdf2196296053ea3a8d";
2
+ export declare const VERSION = "1ab8d6091197e3772731210a2d3678a9";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: FeedbackRequest, existing: FeedbackRequestNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeedbackRequestNormalized;
@@ -18,16 +18,22 @@ export interface FeedbackRequestNormalized {
18
18
  app_feedback?: {
19
19
  [key: string]: unknown;
20
20
  };
21
+ /** The app-specific generation text to support cases where the client further splits a generation into multiple generations. */
22
+ app_generation?: string;
23
+ /** The app-specific generation ID to support cases where client further split a generation into multiple generations. */
24
+ app_generation_id?: string;
21
25
  /** The feedback sentiment. Can be `null`. */
22
26
  feedback?: string | null;
23
27
  /** The textual representation of the feedback as provided by the user. */
24
28
  feedback_text?: string;
25
29
  /** The ID of the gateway's generation response. For example, `GenerationResponseGenerations.id`. */
26
- generation_id: string;
30
+ generation_id?: string;
27
31
  /** A unique ID for the feedback object. */
28
32
  id: string;
29
33
  /** The source of the feedback. For example, `human` or `app`. */
30
34
  source?: string;
35
+ /** The unique ID of a batch of generations to support to capture a single feedback for multiple generations. */
36
+ turn_id?: string;
31
37
  }
32
38
  /**
33
39
  *
@@ -39,9 +45,12 @@ export interface FeedbackRequest {
39
45
  app_feedback?: {
40
46
  [key: string]: unknown;
41
47
  };
48
+ app_generation?: string;
49
+ app_generation_id?: string;
42
50
  feedback?: string | null;
43
51
  feedback_text?: string;
44
- generation_id: string;
52
+ generation_id?: string;
45
53
  id: string;
46
54
  source?: string;
55
+ turn_id?: string;
47
56
  }
@@ -2,7 +2,10 @@ import type { ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio
2
2
  export interface ResourceRequestConfig {
3
3
  body: {
4
4
  id: string;
5
- generation_id: string;
5
+ generation_id?: string;
6
+ turn_id?: string;
7
+ app_generation_id?: string;
8
+ app_generation?: string;
6
9
  feedback?: string | null;
7
10
  feedback_text?: string;
8
11
  source?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-sfap-einstein-ai-gateway",
3
- "version": "1.266.0-dev5",
3
+ "version": "1.266.0-dev6",
4
4
  "description": "LLM Gateway API's",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/sfap-einstein-ai-gateway.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.266.0-dev5"
43
+ "@salesforce/lds-bindings": "^1.266.0-dev6"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.266.0-dev5"
46
+ "@salesforce/lds-compiler-plugins": "^1.266.0-dev6"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1011,7 +1011,10 @@ function createResourceRequest(config) {
1011
1011
  const adapterName = 'registerFeedback';
1012
1012
  const registerFeedback_ConfigPropertyMetadata = [
1013
1013
  generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
1014
- generateParamConfigMetadata('generation_id', true, 2 /* Body */, 0 /* String */),
1014
+ generateParamConfigMetadata('generation_id', false, 2 /* Body */, 0 /* String */),
1015
+ generateParamConfigMetadata('turn_id', false, 2 /* Body */, 0 /* String */),
1016
+ generateParamConfigMetadata('app_generation_id', false, 2 /* Body */, 0 /* String */),
1017
+ generateParamConfigMetadata('app_generation', false, 2 /* Body */, 0 /* String */),
1015
1018
  generateParamConfigMetadata('feedback', false, 2 /* Body */, 4 /* Unsupported */),
1016
1019
  generateParamConfigMetadata('feedback_text', false, 2 /* Body */, 0 /* String */),
1017
1020
  generateParamConfigMetadata('source', false, 2 /* Body */, 0 /* String */),
@@ -1111,4 +1114,4 @@ withDefaultLuvio((luvio) => {
1111
1114
  });
1112
1115
 
1113
1116
  export { getGenerations, registerFeedback };
1114
- // version: 1.266.0-dev5-5855d4d0a
1117
+ // version: 1.266.0-dev6-769774ed6
package/src/raml/api.raml CHANGED
@@ -468,9 +468,18 @@ types:
468
468
  id:
469
469
  description: A unique ID for the feedback object.
470
470
  type: string
471
- generation_id:
471
+ generation_id?:
472
472
  description: The ID of the gateway's generation response. For example, `GenerationResponseGenerations.id`.
473
473
  type: string
474
+ turn_id?:
475
+ description: The unique ID of a batch of generations to support to capture a single feedback for multiple generations.
476
+ type: string
477
+ app_generation_id?:
478
+ description: The app-specific generation ID to support cases where client further split a generation into multiple generations.
479
+ type: string
480
+ app_generation?:
481
+ description: The app-specific generation text to support cases where the client further splits a generation into multiple generations.
482
+ type: string
474
483
  feedback?:
475
484
  description: The feedback sentiment. Can be `null`.
476
485
  enum: