@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev21 → 1.266.0-dev23

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,33 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, 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_getConnectRecommendedActions_ResourceRequestConfig } from '../resources/getConnectRecommendedActions';
4
+ import { RecommendedActionsRepresentation as types_RecommendedActionsRepresentation_RecommendedActionsRepresentation } from '../types/RecommendedActionsRepresentation';
5
+ export declare const adapterName = "getRecommendedActions";
6
+ export declare const getRecommendedActions_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getRecommendedActions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetRecommendedActionsConfig {
9
+ pageName?: string;
10
+ pageType?: string;
11
+ actionName?: string;
12
+ objectApiName?: string;
13
+ customApplicationName?: string;
14
+ sessionId?: string;
15
+ formFactor?: string;
16
+ }
17
+ export declare const createResourceParams: (config: GetRecommendedActionsConfig) => resources_getConnectRecommendedActions_ResourceRequestConfig;
18
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetRecommendedActionsConfig): string;
19
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetRecommendedActionsConfig): $64$luvio_engine_NormalizedKeyMetadata;
20
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetRecommendedActionsConfig>): adapter$45$utils_Untrusted<GetRecommendedActionsConfig>;
21
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetRecommendedActionsConfig | null;
22
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetRecommendedActionsConfig): $64$luvio_engine_Fragment;
23
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetRecommendedActionsConfig): $64$luvio_engine_Snapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, any>;
24
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetRecommendedActionsConfig, resourceParams: resources_getConnectRecommendedActions_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, any>>;
25
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetRecommendedActionsConfig, resourceParams: resources_getConnectRecommendedActions_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
26
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetRecommendedActionsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, any>>;
27
+ export type BuildSnapshotContext = {
28
+ luvio: $64$luvio_engine_Luvio;
29
+ config: GetRecommendedActionsConfig;
30
+ };
31
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, any>>;
32
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation>): $64$luvio_engine_Snapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, any>;
33
+ export declare const getRecommendedActionsAdapterFactory: $64$luvio_engine_AdapterFactory<GetRecommendedActionsConfig, types_RecommendedActionsRepresentation_RecommendedActionsRepresentation>;
@@ -1,3 +1,4 @@
1
1
  export { getBotIdAdapterFactory } from '../adapters/getBotId';
2
2
  export { sendMessageAdapterFactory } from '../adapters/sendMessage';
3
3
  export { getRecommendedPlanTemplatesAdapterFactory } from '../adapters/getRecommendedPlanTemplates';
4
+ export { getRecommendedActionsAdapterFactory } from '../adapters/getRecommendedActions';
@@ -1,6 +1,8 @@
1
1
  declare let getBotId: any;
2
+ declare let getRecommendedActions: any;
2
3
  declare let getRecommendedPlanTemplates: any;
3
4
  declare let sendMessage: any;
4
5
  declare let getBotId_imperative: any;
6
+ declare let getRecommendedActions_imperative: any;
5
7
  declare let getRecommendedPlanTemplates_imperative: any;
6
- export { getBotId, getRecommendedPlanTemplates, sendMessage, getBotId_imperative, getRecommendedPlanTemplates_imperative, };
8
+ export { getBotId, getRecommendedActions, getRecommendedPlanTemplates, sendMessage, getBotId_imperative, getRecommendedActions_imperative, getRecommendedPlanTemplates_imperative, };
@@ -0,0 +1,21 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { RecommendedActionsRepresentation as types_RecommendedActionsRepresentation_RecommendedActionsRepresentation } from '../types/RecommendedActionsRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ queryParams: {
5
+ pageName?: string;
6
+ pageType?: string;
7
+ actionName?: string;
8
+ objectApiName?: string;
9
+ customApplicationName?: string;
10
+ sessionId?: string;
11
+ formFactor?: string;
12
+ };
13
+ }
14
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
15
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
16
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
17
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_RecommendedActionsRepresentation_RecommendedActionsRepresentation): void;
18
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation, any>;
19
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_RecommendedActionsRepresentation_RecommendedActionsRepresentation>): $64$luvio_engine_ErrorSnapshot;
20
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
21
+ export default createResourceRequest;
@@ -3,7 +3,7 @@ import { CollectMessageRepresentation as CollectMessageRepresentation_CollectMes
3
3
  import { EsTypeMessageRepresentation as EsTypeMessageRepresentation_EsTypeMessageRepresentation } from './EsTypeMessageRepresentation';
4
4
  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';
5
5
  export declare const TTL = 30000;
6
- export declare const VERSION = "55ac02bd055f57a2a12aa0fa4844d1a2";
6
+ export declare const VERSION = "205b55ee28d637afd2916e42363d735f";
7
7
  export declare function validate(obj: any, path?: string): TypeError | null;
8
8
  export declare const RepresentationType: string;
9
9
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -41,6 +41,8 @@ export interface ConversationRuntimeProxyMessageRepresentationNormalized {
41
41
  feedbackId?: string | null;
42
42
  /** Unique id of this message */
43
43
  id: string;
44
+ /** Boolean flag to indicate safety score. */
45
+ isContentSafe?: boolean | null;
44
46
  /** The message for an ES Type message. */
45
47
  message?: string | null;
46
48
  /** The message type for an ES Type message. */
@@ -70,6 +72,7 @@ export interface ConversationRuntimeProxyMessageRepresentation {
70
72
  failureCode?: string | null;
71
73
  feedbackId?: string | null;
72
74
  id: string;
75
+ isContentSafe?: boolean | null;
73
76
  message?: string | null;
74
77
  messageType?: string | null;
75
78
  planId?: string | null;
@@ -0,0 +1,75 @@
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 TTL = 900000;
3
+ export declare const VERSION = "3d8b52828ddd11f23f898b0bba8db802";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CopilotQuickActionRepresentation, existing: CopilotQuickActionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CopilotQuickActionRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CopilotQuickActionRepresentationNormalized, incoming: CopilotQuickActionRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CopilotQuickActionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents a Copilot QuickAction which can be executed by a Copilot client.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CopilotQuickActionRepresentationNormalized {
18
+ /** Api name of Copilot QuickAction. */
19
+ actionApiName?: string;
20
+ /** Creation date of Copilot QuickAction. */
21
+ createdDate?: string;
22
+ /** Description of Copilot QuickAction. */
23
+ description?: string;
24
+ /** Icon name for the Recommended Action to be used by the client when rendering the QuickAction in the UI. */
25
+ icon?: string;
26
+ /** Intent associated to the Copilot QuickAction which is used by the planner. */
27
+ intent?: string;
28
+ /** Is the copilot QuickAction global or not. */
29
+ isGlobal?: boolean;
30
+ /** Is the Copilot QuickAction a standard Action. */
31
+ isStandard?: boolean;
32
+ /** Label to display when rendering Copilot QuickAction. */
33
+ label?: string;
34
+ /** Last Modified date of Copilot QuickAction */
35
+ lastModifiedDate?: string;
36
+ /** Namespace of the Copilot QuickAction */
37
+ namespace?: string;
38
+ /** Level of Org access required for this QuickAction to be visible for the org. */
39
+ orgAccess?: string;
40
+ /** Plan TemplateId associated to the Copilot QuickAction. */
41
+ planTemplateId?: string;
42
+ /** Input Variables for executing this plan template. */
43
+ planTemplateInput?: {
44
+ [key: string]: string;
45
+ };
46
+ /** Type of Copilot QuickAction. */
47
+ type?: string;
48
+ /** User utterance to be recorded in conversation history by Planner when executing this Copilot Quick Action. */
49
+ userUtterance?: string;
50
+ }
51
+ /**
52
+ * Represents a Copilot QuickAction which can be executed by a Copilot client.
53
+ *
54
+ * Keys:
55
+ * (none)
56
+ */
57
+ export interface CopilotQuickActionRepresentation {
58
+ actionApiName?: string;
59
+ createdDate?: string;
60
+ description?: string;
61
+ icon?: string;
62
+ intent?: string;
63
+ isGlobal?: boolean;
64
+ isStandard?: boolean;
65
+ label?: string;
66
+ lastModifiedDate?: string;
67
+ namespace?: string;
68
+ orgAccess?: string;
69
+ planTemplateId?: string;
70
+ planTemplateInput?: {
71
+ [key: string]: string;
72
+ };
73
+ type?: string;
74
+ userUtterance?: string;
75
+ }
@@ -0,0 +1,36 @@
1
+ import { CopilotQuickActionRepresentation as CopilotQuickActionRepresentation_CopilotQuickActionRepresentation } from './CopilotQuickActionRepresentation';
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 TTL = 900000;
4
+ export declare const VERSION = "122e61b0db6dc38d244a87570efc5522";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: RecommendedActionsRepresentation, existing: RecommendedActionsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RecommendedActionsRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: RecommendedActionsRepresentationNormalized, incoming: RecommendedActionsRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: RecommendedActionsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Represents the result of a get recommended actions request.
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface RecommendedActionsRepresentationNormalized {
19
+ /** Recommended copilot Quick Actions. */
20
+ copilotQuickActions: Array<CopilotQuickActionRepresentation_CopilotQuickActionRepresentation>;
21
+ /** Error message for the failed get operation */
22
+ errorMessage?: string;
23
+ /** Success indicator of the get operation. */
24
+ isSuccess: boolean;
25
+ }
26
+ /**
27
+ * Represents the result of a get recommended actions request.
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface RecommendedActionsRepresentation {
33
+ copilotQuickActions: Array<CopilotQuickActionRepresentation_CopilotQuickActionRepresentation>;
34
+ errorMessage?: string;
35
+ isSuccess: boolean;
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.266.0-dev21",
3
+ "version": "1.266.0-dev23",
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.266.0-dev21"
43
+ "@salesforce/lds-bindings": "^1.266.0-dev23"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.266.0-dev21"
46
+ "@salesforce/lds-compiler-plugins": "^1.266.0-dev23"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {