@salesforce/lds-adapters-service-einstein-copilot-bot 1.287.0-dev15 → 1.287.0-dev17

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,28 @@
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_getConnectCopilotObjects_ResourceRequestConfig } from '../resources/getConnectCopilotObjects';
4
+ import { CopilotObjectListRepresentation as types_CopilotObjectListRepresentation_CopilotObjectListRepresentation } from '../types/CopilotObjectListRepresentation';
5
+ export declare const adapterName = "getCopilotObjects";
6
+ export declare const getCopilotObjects_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getCopilotObjects_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetCopilotObjectsConfig {
9
+ limit?: number;
10
+ searchTerm?: string;
11
+ }
12
+ export declare const createResourceParams: (config: GetCopilotObjectsConfig) => resources_getConnectCopilotObjects_ResourceRequestConfig;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetCopilotObjectsConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetCopilotObjectsConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetCopilotObjectsConfig>): adapter$45$utils_Untrusted<GetCopilotObjectsConfig>;
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetCopilotObjectsConfig | null;
17
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetCopilotObjectsConfig): $64$luvio_engine_Fragment;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetCopilotObjectsConfig): $64$luvio_engine_Snapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, any>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetCopilotObjectsConfig, resourceParams: resources_getConnectCopilotObjects_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, any>>;
20
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetCopilotObjectsConfig, resourceParams: resources_getConnectCopilotObjects_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetCopilotObjectsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, any>>;
22
+ export type BuildSnapshotContext = {
23
+ luvio: $64$luvio_engine_Luvio;
24
+ config: GetCopilotObjectsConfig;
25
+ };
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation>): $64$luvio_engine_Snapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, any>;
28
+ export declare const getCopilotObjectsAdapterFactory: $64$luvio_engine_AdapterFactory<GetCopilotObjectsConfig, types_CopilotObjectListRepresentation_CopilotObjectListRepresentation>;
@@ -7,12 +7,12 @@ export declare const getRecommendedActions_ConfigPropertyMetadata: $64$luvio_eng
7
7
  export declare const getRecommendedActions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface GetRecommendedActionsConfig {
9
9
  pageName?: string;
10
- pageType?: string;
10
+ pageType: string;
11
11
  actionName?: string;
12
12
  objectApiName?: string;
13
- customApplicationName?: string;
14
- sessionId?: string;
15
- formFactor?: string;
13
+ customApplicationName: string;
14
+ sessionId: string;
15
+ formFactor: string;
16
16
  }
17
17
  export declare const createResourceParams: (config: GetRecommendedActionsConfig) => resources_getConnectRecommendedActions_ResourceRequestConfig;
18
18
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetRecommendedActionsConfig): string;
@@ -2,5 +2,6 @@ export { getBotIdAdapterFactory } from '../adapters/getBotId';
2
2
  export { sendMessageAdapterFactory } from '../adapters/sendMessage';
3
3
  export { getRecommendedPlanTemplatesAdapterFactory } from '../adapters/getRecommendedPlanTemplates';
4
4
  export { submitFeedbackAdapterFactory } from '../adapters/submitFeedback';
5
+ export { getCopilotObjectsAdapterFactory } from '../adapters/getCopilotObjects';
5
6
  export { getFollowUpActionsAdapterFactory } from '../adapters/getFollowUpActions';
6
7
  export { getRecommendedActionsAdapterFactory } from '../adapters/getRecommendedActions';
@@ -1,11 +1,13 @@
1
1
  declare let getBotId: any;
2
+ declare let getCopilotObjects: any;
2
3
  declare let getFollowUpActions: any;
3
4
  declare let getRecommendedActions: any;
4
5
  declare let getRecommendedPlanTemplates: any;
5
6
  declare let sendMessage: any;
6
7
  declare let submitFeedback: any;
7
8
  declare let getBotId_imperative: any;
9
+ declare let getCopilotObjects_imperative: any;
8
10
  declare let getFollowUpActions_imperative: any;
9
11
  declare let getRecommendedActions_imperative: any;
10
12
  declare let getRecommendedPlanTemplates_imperative: any;
11
- export { getBotId, getFollowUpActions, getRecommendedActions, getRecommendedPlanTemplates, sendMessage, submitFeedback, getBotId_imperative, getFollowUpActions_imperative, getRecommendedActions_imperative, getRecommendedPlanTemplates_imperative, };
13
+ export { getBotId, getCopilotObjects, getFollowUpActions, getRecommendedActions, getRecommendedPlanTemplates, sendMessage, submitFeedback, getBotId_imperative, getCopilotObjects_imperative, getFollowUpActions_imperative, getRecommendedActions_imperative, getRecommendedPlanTemplates_imperative, };
@@ -0,0 +1,16 @@
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 { CopilotObjectListRepresentation as types_CopilotObjectListRepresentation_CopilotObjectListRepresentation } from '../types/CopilotObjectListRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ queryParams: {
5
+ limit?: number;
6
+ searchTerm?: string;
7
+ };
8
+ }
9
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
11
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CopilotObjectListRepresentation_CopilotObjectListRepresentation): void;
13
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation, any>;
14
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CopilotObjectListRepresentation_CopilotObjectListRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
+ export default createResourceRequest;
@@ -3,12 +3,12 @@ import { RecommendedActionsRepresentation as types_RecommendedActionsRepresentat
3
3
  export interface ResourceRequestConfig {
4
4
  queryParams: {
5
5
  pageName?: string;
6
- pageType?: string;
6
+ pageType: string;
7
7
  actionName?: string;
8
8
  objectApiName?: string;
9
- customApplicationName?: string;
10
- sessionId?: string;
11
- formFactor?: string;
9
+ customApplicationName: string;
10
+ sessionId: string;
11
+ formFactor: string;
12
12
  };
13
13
  }
14
14
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -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 = "983ede912bc103cfd2e2c2758140c5c9";
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
+ /** Flag to indicate if content is safe */
45
+ isContentSafe?: boolean;
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;
73
76
  message?: string | null;
74
77
  messageType?: string | null;
75
78
  planId?: string | null;
@@ -0,0 +1,31 @@
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 = "24d61d5f37ff09155ee4a9d90eb4fcb5";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CopilotObjectInfoRepresentation, existing: CopilotObjectInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CopilotObjectInfoRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CopilotObjectInfoRepresentationNormalized, incoming: CopilotObjectInfoRepresentationNormalized): 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: CopilotObjectInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Object information, includes object api name and label
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CopilotObjectInfoRepresentationNormalized {
17
+ /** The object API name */
18
+ apiName: string;
19
+ /** The object label */
20
+ label: string;
21
+ }
22
+ /**
23
+ * Object information, includes object api name and label
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface CopilotObjectInfoRepresentation {
29
+ apiName: string;
30
+ label: string;
31
+ }
@@ -0,0 +1,30 @@
1
+ import { CopilotObjectInfoRepresentation as CopilotObjectInfoRepresentation_CopilotObjectInfoRepresentation } from './CopilotObjectInfoRepresentation';
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 = "ca1aedcbd4e34795fadf2dcaf66e5825";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: CopilotObjectListRepresentation, existing: CopilotObjectListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CopilotObjectListRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: CopilotObjectListRepresentationNormalized, incoming: CopilotObjectListRepresentationNormalized): 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: CopilotObjectListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * List of objects that can be used within UI API end-points
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface CopilotObjectListRepresentationNormalized {
19
+ /** List of objects */
20
+ objects: Array<CopilotObjectInfoRepresentation_CopilotObjectInfoRepresentation>;
21
+ }
22
+ /**
23
+ * List of objects that can be used within UI API end-points
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface CopilotObjectListRepresentation {
29
+ objects: Array<CopilotObjectInfoRepresentation_CopilotObjectInfoRepresentation>;
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.287.0-dev15",
3
+ "version": "1.287.0-dev17",
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.287.0-dev15"
43
+ "@salesforce/lds-bindings": "^1.287.0-dev17"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.287.0-dev15"
46
+ "@salesforce/lds-compiler-plugins": "^1.287.0-dev17"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {