@salesforce/lds-adapters-service-einstein-copilot-bot 0.1.0-dev1
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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/service-einstein-copilot-bot.js +4895 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getAgents.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getBotId.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getCopilotObjects.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getFollowUpActions.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getRecommendedActions.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/adapters/getRecommendedPlanTemplates.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getRecommendedUtterances.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getWelcomeUtterances.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/sendMessage.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/submitFeedback.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +10 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectAgentforceAgentInfo.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectConversationRuntimeProxy.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectCopilotObjects.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedActions.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedPlanTemplatesByPageTypeAndObjectType.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedUtterances.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectWelcomeUtterances.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectConversationRuntimeProxy.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectCopilotFeedback.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectFollowUpActions.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoListRepresentation.d.ts +51 -0
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/CollectMessageRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyChoiceRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyInputRepresentation.d.ts +57 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyMessageRepresentation.d.ts +83 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyRepresentation.d.ts +63 -0
- package/dist/es/es2018/types/src/generated/types/CopilotBotInfoRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/CopilotFollowUpActionsRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/CopilotLLMFeedbackInputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/CopilotLLMFeedbackOutputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CopilotObjectInfoRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CopilotObjectListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/CopilotQuickActionRepresentation.d.ts +75 -0
- package/dist/es/es2018/types/src/generated/types/EsTypeMessageRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/FollowUpActionsDesignConfigRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/FollowUpActionsFilterConfigRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/FollowUpActionsInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/FollowUpActionsListInputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/FollowUpActionsRenditionConfigRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/FollowUpActionsRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FollowUpActionsSchemaConfigRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FollowUpActionsSourceDescriptorRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/PlanTemplateRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/RecommendedActionsRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/RecommendedPlanTemplatesRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/RecommendedUtterancesRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/VariableRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/WelcomeTopicSuggestedUtterancesRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/WelcomeUtterancesRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +5019 -0
- package/src/raml/api.raml +873 -0
- package/src/raml/luvio.raml +92 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EsTypeMessageRepresentation as types_EsTypeMessageRepresentation_EsTypeMessageRepresentation } from '../types/EsTypeMessageRepresentation';
|
|
2
|
+
import { VariableRepresentation as types_VariableRepresentation_VariableRepresentation } from '../types/VariableRepresentation';
|
|
3
|
+
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';
|
|
4
|
+
import { ConversationRuntimeProxyRepresentation as types_ConversationRuntimeProxyRepresentation_ConversationRuntimeProxyRepresentation } from '../types/ConversationRuntimeProxyRepresentation';
|
|
5
|
+
export interface ResourceRequestConfig {
|
|
6
|
+
queryParams: {
|
|
7
|
+
botId?: string;
|
|
8
|
+
botVersionId?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
sessionId?: string;
|
|
11
|
+
};
|
|
12
|
+
body: {
|
|
13
|
+
inReplyToMessageId?: string;
|
|
14
|
+
intent?: string;
|
|
15
|
+
messageType?: string;
|
|
16
|
+
planId?: string;
|
|
17
|
+
planTemplateVariables?: unknown;
|
|
18
|
+
reply?: Array<types_EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
19
|
+
text?: string;
|
|
20
|
+
type?: string;
|
|
21
|
+
variables?: Array<types_VariableRepresentation_VariableRepresentation>;
|
|
22
|
+
userUtterance?: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
26
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ConversationRuntimeProxyRepresentation_ConversationRuntimeProxyRepresentation): void;
|
|
27
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ConversationRuntimeProxyRepresentation_ConversationRuntimeProxyRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ConversationRuntimeProxyRepresentation_ConversationRuntimeProxyRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ConversationRuntimeProxyRepresentation_ConversationRuntimeProxyRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ConversationRuntimeProxyRepresentation_ConversationRuntimeProxyRepresentation, any>;
|
|
28
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
29
|
+
export default createResourceRequest;
|
|
@@ -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]: unknown;
|
|
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,17 @@
|
|
|
1
|
+
import { FollowUpActionsInputRepresentation as types_FollowUpActionsInputRepresentation_FollowUpActionsInputRepresentation } from '../types/FollowUpActionsInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { CopilotFollowUpActionsRepresentation as types_CopilotFollowUpActionsRepresentation_CopilotFollowUpActionsRepresentation } from '../types/CopilotFollowUpActionsRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
language?: string;
|
|
7
|
+
followUpActionsInputs: Array<types_FollowUpActionsInputRepresentation_FollowUpActionsInputRepresentation>;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CopilotFollowUpActionsRepresentation_CopilotFollowUpActionsRepresentation): void;
|
|
14
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CopilotFollowUpActionsRepresentation_CopilotFollowUpActionsRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CopilotFollowUpActionsRepresentation_CopilotFollowUpActionsRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CopilotFollowUpActionsRepresentation_CopilotFollowUpActionsRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CopilotFollowUpActionsRepresentation_CopilotFollowUpActionsRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CopilotFollowUpActionsRepresentation_CopilotFollowUpActionsRepresentation, any>;
|
|
15
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CopilotFollowUpActionsRepresentation_CopilotFollowUpActionsRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
16
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
17
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoListRepresentation.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AgentforceAgentBotInfoRepresentation as AgentforceAgentBotInfoRepresentation_AgentforceAgentBotInfoRepresentation } from './AgentforceAgentBotInfoRepresentation';
|
|
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 = 30000;
|
|
4
|
+
export declare const VERSION = "5b4c81cace1018ccf690bdfdf945fb37";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: AgentforceAgentBotInfoListRepresentation, existing: AgentforceAgentBotInfoListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentforceAgentBotInfoListRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: AgentforceAgentBotInfoListRepresentationNormalized, incoming: AgentforceAgentBotInfoListRepresentationNormalized): 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: AgentforceAgentBotInfoListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Represents the resultant list with agents per agent type including bot metadata
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentforceAgentBotInfoListRepresentationNormalized {
|
|
19
|
+
/** List of agents */
|
|
20
|
+
agents: Array<AgentforceAgentBotInfoRepresentation_AgentforceAgentBotInfoRepresentation>;
|
|
21
|
+
/** Target runtime API endpoint - send traffic here. can be a targeted MESH endpoint, or an SFAP URL */
|
|
22
|
+
apiEndpoint?: string;
|
|
23
|
+
/** Error message for the failed get operation. */
|
|
24
|
+
errorMessage?: string;
|
|
25
|
+
/** Indicates the falcon instance region code */
|
|
26
|
+
falconInstance?: string;
|
|
27
|
+
/** Success indicator of the get operation. */
|
|
28
|
+
isSuccess: boolean;
|
|
29
|
+
/** Indicates the SFAP Url */
|
|
30
|
+
sfapUrl?: string;
|
|
31
|
+
/** Target runtime region - pass through x-salesforce-region header for SFAP */
|
|
32
|
+
targetRegion?: string;
|
|
33
|
+
/** Core C2C tenant GUID - pass through x-sfdc-tenant-id header for SFAP */
|
|
34
|
+
tenantGuid?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Represents the resultant list with agents per agent type including bot metadata
|
|
38
|
+
*
|
|
39
|
+
* Keys:
|
|
40
|
+
* (none)
|
|
41
|
+
*/
|
|
42
|
+
export interface AgentforceAgentBotInfoListRepresentation {
|
|
43
|
+
agents: Array<AgentforceAgentBotInfoRepresentation_AgentforceAgentBotInfoRepresentation>;
|
|
44
|
+
apiEndpoint?: string;
|
|
45
|
+
errorMessage?: string;
|
|
46
|
+
falconInstance?: string;
|
|
47
|
+
isSuccess: boolean;
|
|
48
|
+
sfapUrl?: string;
|
|
49
|
+
targetRegion?: string;
|
|
50
|
+
tenantGuid?: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 = "fffa53e7ae99db49035d39bf934a0dfb";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: AgentforceAgentBotInfoRepresentation, existing: AgentforceAgentBotInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentforceAgentBotInfoRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: AgentforceAgentBotInfoRepresentationNormalized, incoming: AgentforceAgentBotInfoRepresentationNormalized): 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: AgentforceAgentBotInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* User defined Agent metadata per agent type
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface AgentforceAgentBotInfoRepresentationNormalized {
|
|
17
|
+
/** internal agent type api name */
|
|
18
|
+
agentType?: string;
|
|
19
|
+
/** ID of the internal Copilot bot ID - used in the URL when starting agent sessions */
|
|
20
|
+
botId?: string;
|
|
21
|
+
/** display description of the agent */
|
|
22
|
+
description?: string;
|
|
23
|
+
/** Error message for the failed get operation. */
|
|
24
|
+
errorMessage?: string;
|
|
25
|
+
/** Indicates weather the Agent is default */
|
|
26
|
+
isDefault?: boolean;
|
|
27
|
+
/** Success indicator of the get operation. */
|
|
28
|
+
isSuccess: boolean;
|
|
29
|
+
/** display label of the agent */
|
|
30
|
+
label?: string;
|
|
31
|
+
/** Indicates whether the Agent will show Recommended prompts */
|
|
32
|
+
stopRecPrompts?: boolean;
|
|
33
|
+
/** Indicates whether the Agent will show Welcome prompts */
|
|
34
|
+
stopWelcomePrompts?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* User defined Agent metadata per agent type
|
|
38
|
+
*
|
|
39
|
+
* Keys:
|
|
40
|
+
* (none)
|
|
41
|
+
*/
|
|
42
|
+
export interface AgentforceAgentBotInfoRepresentation {
|
|
43
|
+
agentType?: string;
|
|
44
|
+
botId?: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
errorMessage?: string;
|
|
47
|
+
isDefault?: boolean;
|
|
48
|
+
isSuccess: boolean;
|
|
49
|
+
label?: string;
|
|
50
|
+
stopRecPrompts?: boolean;
|
|
51
|
+
stopWelcomePrompts?: boolean;
|
|
52
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EsTypeMessageRepresentation as EsTypeMessageRepresentation_EsTypeMessageRepresentation } from './EsTypeMessageRepresentation';
|
|
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 = 30000;
|
|
4
|
+
export declare const VERSION = "477724425d0742c030025796c88ebf5d";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: CollectMessageRepresentation, existing: CollectMessageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CollectMessageRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: CollectMessageRepresentationNormalized, incoming: CollectMessageRepresentationNormalized): 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: CollectMessageRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Represents a collect message
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface CollectMessageRepresentationNormalized {
|
|
19
|
+
data?: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
20
|
+
/** Target property for the collect message. */
|
|
21
|
+
targetProperty?: string | null;
|
|
22
|
+
/** Target type for the collect message. */
|
|
23
|
+
targetType: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents a collect message
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface CollectMessageRepresentation {
|
|
32
|
+
data?: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
33
|
+
targetProperty?: string | null;
|
|
34
|
+
targetType: string;
|
|
35
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyChoiceRepresentation.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
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 = 30000;
|
|
3
|
+
export declare const VERSION = "4e28b61c3ea362f1c68b28897784111e";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: ConversationRuntimeProxyChoiceRepresentation, existing: ConversationRuntimeProxyChoiceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConversationRuntimeProxyChoiceRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: ConversationRuntimeProxyChoiceRepresentationNormalized, incoming: ConversationRuntimeProxyChoiceRepresentationNormalized): 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: ConversationRuntimeProxyChoiceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Represents a choice from the bot
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationRuntimeProxyChoiceRepresentationNormalized {
|
|
18
|
+
/** Alias to be used if menu/button ui elements cannot be used. */
|
|
19
|
+
alias: string;
|
|
20
|
+
/** Label for the choice menu/button text. */
|
|
21
|
+
label: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Represents a choice from the bot
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface ConversationRuntimeProxyChoiceRepresentation {
|
|
30
|
+
alias: string;
|
|
31
|
+
label: string;
|
|
32
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyInputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { EsTypeMessageRepresentation as EsTypeMessageRepresentation_EsTypeMessageRepresentation } from './EsTypeMessageRepresentation';
|
|
2
|
+
import { VariableRepresentation as VariableRepresentation_VariableRepresentation } from './VariableRepresentation';
|
|
3
|
+
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';
|
|
4
|
+
export declare const VERSION = "964d3e59ff1d38e4f1c8888fb0baa31d";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: ConversationRuntimeProxyInputRepresentation, existing: ConversationRuntimeProxyInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConversationRuntimeProxyInputRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: ConversationRuntimeProxyInputRepresentationNormalized, incoming: ConversationRuntimeProxyInputRepresentationNormalized): 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: ConversationRuntimeProxyInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Bot conversation input
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface ConversationRuntimeProxyInputRepresentationNormalized {
|
|
19
|
+
/** Message ID that this message is replying to */
|
|
20
|
+
inReplyToMessageId?: string;
|
|
21
|
+
/** Intent */
|
|
22
|
+
intent?: string;
|
|
23
|
+
/** Message type */
|
|
24
|
+
messageType?: string;
|
|
25
|
+
/** PlanId */
|
|
26
|
+
planId?: string;
|
|
27
|
+
/** Additional Plan Templates Variables */
|
|
28
|
+
planTemplateVariables?: unknown;
|
|
29
|
+
/** Reply */
|
|
30
|
+
reply?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
31
|
+
/** Text */
|
|
32
|
+
text?: string;
|
|
33
|
+
/** Type */
|
|
34
|
+
type?: string;
|
|
35
|
+
/** UserUtterance */
|
|
36
|
+
userUtterance?: string;
|
|
37
|
+
/** Variables */
|
|
38
|
+
variables?: Array<VariableRepresentation_VariableRepresentation>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Bot conversation input
|
|
42
|
+
*
|
|
43
|
+
* Keys:
|
|
44
|
+
* (none)
|
|
45
|
+
*/
|
|
46
|
+
export interface ConversationRuntimeProxyInputRepresentation {
|
|
47
|
+
inReplyToMessageId?: string;
|
|
48
|
+
intent?: string;
|
|
49
|
+
messageType?: string;
|
|
50
|
+
planId?: string;
|
|
51
|
+
planTemplateVariables?: unknown;
|
|
52
|
+
reply?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
53
|
+
text?: string;
|
|
54
|
+
type?: string;
|
|
55
|
+
userUtterance?: string;
|
|
56
|
+
variables?: Array<VariableRepresentation_VariableRepresentation>;
|
|
57
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyMessageRepresentation.d.ts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ConversationRuntimeProxyChoiceRepresentation as ConversationRuntimeProxyChoiceRepresentation_ConversationRuntimeProxyChoiceRepresentation } from './ConversationRuntimeProxyChoiceRepresentation';
|
|
2
|
+
import { CollectMessageRepresentation as CollectMessageRepresentation_CollectMessageRepresentation } from './CollectMessageRepresentation';
|
|
3
|
+
import { EsTypeMessageRepresentation as EsTypeMessageRepresentation_EsTypeMessageRepresentation } from './EsTypeMessageRepresentation';
|
|
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
|
+
export declare const TTL = 30000;
|
|
6
|
+
export declare const VERSION = "983ede912bc103cfd2e2c2758140c5c9";
|
|
7
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
|
+
export declare const RepresentationType: string;
|
|
9
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
export type ConversationRuntimeProxyMessageRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export type PartialConversationRuntimeProxyMessageRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ConversationRuntimeProxyMessageRepresentationNormalizedKeyMetadata;
|
|
16
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ConversationRuntimeProxyMessageRepresentation): string;
|
|
17
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ConversationRuntimeProxyMessageRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
18
|
+
export declare function normalize(input: ConversationRuntimeProxyMessageRepresentation, existing: ConversationRuntimeProxyMessageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConversationRuntimeProxyMessageRepresentationNormalized;
|
|
19
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
20
|
+
export declare function equals(existing: ConversationRuntimeProxyMessageRepresentationNormalized, incoming: ConversationRuntimeProxyMessageRepresentationNormalized): boolean;
|
|
21
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
22
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ConversationRuntimeProxyMessageRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
23
|
+
/**
|
|
24
|
+
* Represents a message from the bot
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* id (string): id
|
|
28
|
+
*/
|
|
29
|
+
export interface ConversationRuntimeProxyMessageRepresentationNormalized {
|
|
30
|
+
/** The choices for this message, if applicable for the type. */
|
|
31
|
+
choices?: Array<ConversationRuntimeProxyChoiceRepresentation_ConversationRuntimeProxyChoiceRepresentation>;
|
|
32
|
+
/** The collect response for an Inquire message. */
|
|
33
|
+
collect?: Array<CollectMessageRepresentation_CollectMessageRepresentation>;
|
|
34
|
+
/** The confirm response for a Confirm message. */
|
|
35
|
+
confirm?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
36
|
+
/** The errors for a Failure message. */
|
|
37
|
+
errors?: Array<string>;
|
|
38
|
+
/** The failure code for a Failure message. */
|
|
39
|
+
failureCode?: string | null;
|
|
40
|
+
/** Feedback ID for this generated message. */
|
|
41
|
+
feedbackId?: string | null;
|
|
42
|
+
/** Unique id of this message */
|
|
43
|
+
id: string;
|
|
44
|
+
/** Flag to indicate if content is safe */
|
|
45
|
+
isContentSafe?: boolean;
|
|
46
|
+
/** The message for an ES Type message. */
|
|
47
|
+
message?: string | null;
|
|
48
|
+
/** The message type for an ES Type message. */
|
|
49
|
+
messageType?: string | null;
|
|
50
|
+
/** Plan ID for the generated plan. */
|
|
51
|
+
planId?: string | null;
|
|
52
|
+
/** The result response for an Inform message. */
|
|
53
|
+
result?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
54
|
+
/** The message text, if applicable for the type. */
|
|
55
|
+
text?: string | null;
|
|
56
|
+
/** Type of the message */
|
|
57
|
+
type?: string;
|
|
58
|
+
/** Which widget, if the type is a choice. */
|
|
59
|
+
widget?: string | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Represents a message from the bot
|
|
63
|
+
*
|
|
64
|
+
* Keys:
|
|
65
|
+
* id (string): id
|
|
66
|
+
*/
|
|
67
|
+
export interface ConversationRuntimeProxyMessageRepresentation {
|
|
68
|
+
choices?: Array<ConversationRuntimeProxyChoiceRepresentation_ConversationRuntimeProxyChoiceRepresentation>;
|
|
69
|
+
collect?: Array<CollectMessageRepresentation_CollectMessageRepresentation>;
|
|
70
|
+
confirm?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
71
|
+
errors?: Array<string>;
|
|
72
|
+
failureCode?: string | null;
|
|
73
|
+
feedbackId?: string | null;
|
|
74
|
+
id: string;
|
|
75
|
+
isContentSafe?: boolean;
|
|
76
|
+
message?: string | null;
|
|
77
|
+
messageType?: string | null;
|
|
78
|
+
planId?: string | null;
|
|
79
|
+
result?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
80
|
+
text?: string | null;
|
|
81
|
+
type?: string;
|
|
82
|
+
widget?: string | null;
|
|
83
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
import { ConversationRuntimeProxyMessageRepresentation as ConversationRuntimeProxyMessageRepresentation_ConversationRuntimeProxyMessageRepresentation } from './ConversationRuntimeProxyMessageRepresentation';
|
|
3
|
+
export declare const TTL = 30000;
|
|
4
|
+
export declare const VERSION = "fe7024fb1132250f97d9616482f09f99";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export type ConversationRuntimeProxyRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialConversationRuntimeProxyRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ConversationRuntimeProxyRepresentationNormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ConversationRuntimeProxyRepresentation): string;
|
|
15
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ConversationRuntimeProxyRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function normalize(input: ConversationRuntimeProxyRepresentation, existing: ConversationRuntimeProxyRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConversationRuntimeProxyRepresentationNormalized;
|
|
17
|
+
export interface DynamicIngestParams {
|
|
18
|
+
messages: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
}
|
|
20
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ConversationRuntimeProxyRepresentation, existing: ConversationRuntimeProxyRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ConversationRuntimeProxyRepresentationNormalized;
|
|
21
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
22
|
+
export interface DynamicSelectParams {
|
|
23
|
+
messages?: $64$luvio_engine_LinkSelection;
|
|
24
|
+
}
|
|
25
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
26
|
+
export declare function equals(existing: ConversationRuntimeProxyRepresentationNormalized, incoming: ConversationRuntimeProxyRepresentationNormalized): boolean;
|
|
27
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
28
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ConversationRuntimeProxyRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
29
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
30
|
+
/**
|
|
31
|
+
* Represents the results of a conversation runtime proxy message request
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* id (string): requestId
|
|
35
|
+
*/
|
|
36
|
+
export interface ConversationRuntimeProxyRepresentationNormalized {
|
|
37
|
+
/** BotId of the bot the runtime is using for this conversation. */
|
|
38
|
+
botId: string;
|
|
39
|
+
/** BotVersion id of the bot version the runtime is using for this conversation. */
|
|
40
|
+
botVersion: string;
|
|
41
|
+
/** Messages returned by the bot for this request. */
|
|
42
|
+
messages: Array<$64$luvio_engine_StoreLink>;
|
|
43
|
+
/** SequenceIds that were processed in this transaction. */
|
|
44
|
+
processedSequenceIds: Array<string>;
|
|
45
|
+
/** Request ID for this request. */
|
|
46
|
+
requestId: string;
|
|
47
|
+
/** SessionId to be used in future messages sent to the runtime engine. Allows continuing a conversation. */
|
|
48
|
+
sessionId: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Represents the results of a conversation runtime proxy message request
|
|
52
|
+
*
|
|
53
|
+
* Keys:
|
|
54
|
+
* id (string): requestId
|
|
55
|
+
*/
|
|
56
|
+
export interface ConversationRuntimeProxyRepresentation {
|
|
57
|
+
botId: string;
|
|
58
|
+
botVersion: string;
|
|
59
|
+
messages: Array<ConversationRuntimeProxyMessageRepresentation_ConversationRuntimeProxyMessageRepresentation>;
|
|
60
|
+
processedSequenceIds: Array<string>;
|
|
61
|
+
requestId: string;
|
|
62
|
+
sessionId: string;
|
|
63
|
+
}
|
|
@@ -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 TTL = 30000;
|
|
3
|
+
export declare const VERSION = "c27669d0d0ba84ade6d5a4c97336c0ef";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CopilotBotInfoRepresentation, existing: CopilotBotInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CopilotBotInfoRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CopilotBotInfoRepresentationNormalized, incoming: CopilotBotInfoRepresentationNormalized): 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: CopilotBotInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Represents the results of a get internal copilot bot id request
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CopilotBotInfoRepresentationNormalized {
|
|
18
|
+
/** Target runtime API endpoint - send traffic here. can be a targeted MESH endpoint, or an SFAP URL */
|
|
19
|
+
apiEndpoint?: string;
|
|
20
|
+
/** ID of the internal Copilot bot ID - used in the URL when starting agent sessions */
|
|
21
|
+
botId?: string;
|
|
22
|
+
/** Error message for the failed get operation. */
|
|
23
|
+
errorMessage?: string;
|
|
24
|
+
/** Success indicator of the get operation. */
|
|
25
|
+
isSuccess: boolean;
|
|
26
|
+
/** Target runtime region - pass through x-salesforce-region header for SFAP */
|
|
27
|
+
targetRegion?: string;
|
|
28
|
+
/** Core C2C tenant GUID - pass through x-sfdc-tenant-id header for SFAP */
|
|
29
|
+
tenantGuid?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Represents the results of a get internal copilot bot id request
|
|
33
|
+
*
|
|
34
|
+
* Keys:
|
|
35
|
+
* (none)
|
|
36
|
+
*/
|
|
37
|
+
export interface CopilotBotInfoRepresentation {
|
|
38
|
+
apiEndpoint?: string;
|
|
39
|
+
botId?: string;
|
|
40
|
+
errorMessage?: string;
|
|
41
|
+
isSuccess: boolean;
|
|
42
|
+
targetRegion?: string;
|
|
43
|
+
tenantGuid?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FollowUpActionsRepresentation as FollowUpActionsRepresentation_FollowUpActionsRepresentation } from './FollowUpActionsRepresentation';
|
|
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 = "280b43a12fefd5d1adb432fd664b7def";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: CopilotFollowUpActionsRepresentation, existing: CopilotFollowUpActionsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CopilotFollowUpActionsRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: CopilotFollowUpActionsRepresentationNormalized, incoming: CopilotFollowUpActionsRepresentationNormalized): 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: CopilotFollowUpActionsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Copilot FollowUp Actions resource output
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface CopilotFollowUpActionsRepresentationNormalized {
|
|
19
|
+
/** list of actions. position in this list matches position of query in input FollowUpActionsListInputRepresentation. nil unless isSuccess = true. */
|
|
20
|
+
actions: Array<FollowUpActionsRepresentation_FollowUpActionsRepresentation>;
|
|
21
|
+
/** optional error message. present only if isSuccess = false. */
|
|
22
|
+
errorMessage?: string;
|
|
23
|
+
/** indicates success or failure */
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Copilot FollowUp Actions resource output
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface CopilotFollowUpActionsRepresentation {
|
|
33
|
+
actions: Array<FollowUpActionsRepresentation_FollowUpActionsRepresentation>;
|
|
34
|
+
errorMessage?: string;
|
|
35
|
+
isSuccess: boolean;
|
|
36
|
+
}
|
|
@@ -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 = "e07dd6d8cd7ae483d7776b2b775f7405";
|
|
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]: unknown;
|
|
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]: unknown;
|
|
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
|
+
}
|