@salesforce/lds-adapters-service-einstein-copilot-bot 1.294.0 → 1.296.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.
@@ -0,0 +1,21 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_postConnectCopilotFeedback_ResourceRequestConfig } from '../resources/postConnectCopilotFeedback';
4
+ import { CopilotLLMFeedbackOutputRepresentation as types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation } from '../types/CopilotLLMFeedbackOutputRepresentation';
5
+ export declare const adapterName = "submitFeedback";
6
+ export declare const submitFeedback_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const submitFeedback_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface SubmitFeedbackConfig {
9
+ details: {
10
+ [key: string]: {};
11
+ };
12
+ feedback: string;
13
+ feedbackId: string;
14
+ sessionId: string;
15
+ text: string;
16
+ }
17
+ export declare const createResourceParams: (config: SubmitFeedbackConfig) => resources_postConnectCopilotFeedback_ResourceRequestConfig;
18
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<SubmitFeedbackConfig>): adapter$45$utils_Untrusted<SubmitFeedbackConfig>;
19
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): SubmitFeedbackConfig | null;
20
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SubmitFeedbackConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation, any>>;
21
+ export declare const submitFeedbackAdapterFactory: $64$luvio_engine_AdapterFactory<SubmitFeedbackConfig, types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation>;
@@ -1,4 +1,5 @@
1
1
  export { getBotIdAdapterFactory } from '../adapters/getBotId';
2
2
  export { sendMessageAdapterFactory } from '../adapters/sendMessage';
3
3
  export { getRecommendedPlanTemplatesAdapterFactory } from '../adapters/getRecommendedPlanTemplates';
4
+ export { submitFeedbackAdapterFactory } from '../adapters/submitFeedback';
4
5
  export { getRecommendedActionsAdapterFactory } from '../adapters/getRecommendedActions';
@@ -2,7 +2,8 @@ declare let getBotId: any;
2
2
  declare let getRecommendedActions: any;
3
3
  declare let getRecommendedPlanTemplates: any;
4
4
  declare let sendMessage: any;
5
+ declare let submitFeedback: any;
5
6
  declare let getBotId_imperative: any;
6
7
  declare let getRecommendedActions_imperative: any;
7
8
  declare let getRecommendedPlanTemplates_imperative: any;
8
- export { getBotId, getRecommendedActions, getRecommendedPlanTemplates, sendMessage, getBotId_imperative, getRecommendedActions_imperative, getRecommendedPlanTemplates_imperative, };
9
+ export { getBotId, getRecommendedActions, getRecommendedPlanTemplates, sendMessage, submitFeedback, getBotId_imperative, getRecommendedActions_imperative, getRecommendedPlanTemplates_imperative, };
@@ -0,0 +1,18 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { CopilotLLMFeedbackOutputRepresentation as types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation } from '../types/CopilotLLMFeedbackOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ details: {
6
+ [key: string]: {};
7
+ };
8
+ feedback: string;
9
+ feedbackId: string;
10
+ sessionId: string;
11
+ text: string;
12
+ };
13
+ }
14
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
15
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation): void;
16
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CopilotLLMFeedbackOutputRepresentation_CopilotLLMFeedbackOutputRepresentation, any>;
17
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
+ export default createResourceRequest;
@@ -0,0 +1,44 @@
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 = "7d2c42c9d899d8de6cdcfc5cc3aef007";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CopilotLLMFeedbackInputRepresentation, existing: CopilotLLMFeedbackInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CopilotLLMFeedbackInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CopilotLLMFeedbackInputRepresentationNormalized, incoming: CopilotLLMFeedbackInputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CopilotLLMFeedbackInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Copilot LLM feedback input
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CopilotLLMFeedbackInputRepresentationNormalized {
17
+ /** details */
18
+ details: {
19
+ [key: string]: {};
20
+ };
21
+ /** Structured feedback enum, thumbs up/down, good/bad */
22
+ feedback: string;
23
+ /** Feedback ID */
24
+ feedbackId: string;
25
+ /** Session ID */
26
+ sessionId: string;
27
+ /** User provided long-form feedback */
28
+ text: string;
29
+ }
30
+ /**
31
+ * Copilot LLM feedback input
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface CopilotLLMFeedbackInputRepresentation {
37
+ details: {
38
+ [key: string]: {};
39
+ };
40
+ feedback: string;
41
+ feedbackId: string;
42
+ sessionId: string;
43
+ text: string;
44
+ }
@@ -0,0 +1,38 @@
1
+ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const TTL = 100;
3
+ export declare const VERSION = "7454bdd46af1622eb677a9bb9eac3a8b";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
7
+ id: string;
8
+ }
9
+ export type CopilotLLMFeedbackOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialCopilotLLMFeedbackOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): CopilotLLMFeedbackOutputRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CopilotLLMFeedbackOutputRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CopilotLLMFeedbackOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function normalize(input: CopilotLLMFeedbackOutputRepresentation, existing: CopilotLLMFeedbackOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CopilotLLMFeedbackOutputRepresentationNormalized;
16
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: CopilotLLMFeedbackOutputRepresentationNormalized, incoming: CopilotLLMFeedbackOutputRepresentationNormalized): boolean;
18
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
19
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CopilotLLMFeedbackOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ /**
21
+ * CopilotLLMFeedback
22
+ *
23
+ * Keys:
24
+ * id (string): submitFeedbackStatus
25
+ */
26
+ export interface CopilotLLMFeedbackOutputRepresentationNormalized {
27
+ /** Bot Runtime feedback response */
28
+ submitFeedbackStatus: string;
29
+ }
30
+ /**
31
+ * CopilotLLMFeedback
32
+ *
33
+ * Keys:
34
+ * id (string): submitFeedbackStatus
35
+ */
36
+ export interface CopilotLLMFeedbackOutputRepresentation {
37
+ submitFeedbackStatus: string;
38
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.294.0",
3
+ "version": "1.296.0",
4
4
  "description": "Einstein Copilot Bot API Family",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einstein-copilot-bot.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.294.0"
43
+ "@salesforce/lds-bindings": "^1.296.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.294.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.296.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {