@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev16 → 1.266.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.
- package/dist/es/es2018/service-einstein-copilot-bot.js +160 -553
- package/dist/es/es2018/types/src/generated/adapters/sendMessage.d.ts +0 -4
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +1 -3
- package/dist/es/es2018/types/src/generated/resources/postConnectConversationRuntimeProxy.d.ts +0 -4
- package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyInputRepresentation.d.ts +1 -13
- package/dist/es/es2018/types/src/generated/types/VariableRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +38 -447
- package/src/raml/api.raml +0 -76
- package/src/raml/luvio.raml +0 -8
- package/dist/es/es2018/types/src/generated/adapters/getRecommendedPlanTemplates.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedPlanTemplatesByPageTypeAndObjectType.d.ts +0 -16
- package/dist/es/es2018/types/src/generated/types/PlanTemplateRepresentation.d.ts +0 -45
- package/dist/es/es2018/types/src/generated/types/RecommendedPlanTemplatesRepresentation.d.ts +0 -36
package/src/raml/api.raml
CHANGED
|
@@ -56,24 +56,12 @@ types:
|
|
|
56
56
|
description: Message ID that this message is replying to
|
|
57
57
|
type: string
|
|
58
58
|
required: false
|
|
59
|
-
intent:
|
|
60
|
-
description: Intent
|
|
61
|
-
type: string
|
|
62
|
-
required: false
|
|
63
59
|
messageType:
|
|
64
60
|
description: Message type
|
|
65
61
|
type: string
|
|
66
62
|
required: false
|
|
67
63
|
enum:
|
|
68
64
|
- Reply
|
|
69
|
-
planId:
|
|
70
|
-
description: PlanId
|
|
71
|
-
type: string
|
|
72
|
-
required: false
|
|
73
|
-
planTemplateVariables:
|
|
74
|
-
description: Additional Plan Templates Variables
|
|
75
|
-
type: any
|
|
76
|
-
required: false
|
|
77
65
|
reply:
|
|
78
66
|
description: Reply
|
|
79
67
|
type: array
|
|
@@ -91,13 +79,8 @@ types:
|
|
|
91
79
|
enum:
|
|
92
80
|
- Cancel
|
|
93
81
|
- EsMessage
|
|
94
|
-
- PlanTemplate
|
|
95
82
|
- SetVariables
|
|
96
83
|
- Text
|
|
97
|
-
userUtterance:
|
|
98
|
-
description: UserUtterance
|
|
99
|
-
type: string
|
|
100
|
-
required: false
|
|
101
84
|
variables:
|
|
102
85
|
description: Variables
|
|
103
86
|
type: array
|
|
@@ -247,48 +230,6 @@ types:
|
|
|
247
230
|
value:
|
|
248
231
|
description: Value of the variable
|
|
249
232
|
type: string
|
|
250
|
-
required: false
|
|
251
|
-
PlanTemplateRepresentation:
|
|
252
|
-
description: Represents a plan template which can be executed by a Copilot client.
|
|
253
|
-
type: object
|
|
254
|
-
properties:
|
|
255
|
-
intent:
|
|
256
|
-
description: Intent used by Planner when executing this plan template.
|
|
257
|
-
type: string
|
|
258
|
-
label:
|
|
259
|
-
description: Label to display when rendering this plan template in a Copilot
|
|
260
|
-
client.
|
|
261
|
-
type: string
|
|
262
|
-
planTemplateId:
|
|
263
|
-
description: ID of a plan template.
|
|
264
|
-
type: string
|
|
265
|
-
userUtterance:
|
|
266
|
-
description: User utterance to be recorded in conversation history by Planner
|
|
267
|
-
when executing this plan template.
|
|
268
|
-
type: string
|
|
269
|
-
variables:
|
|
270
|
-
description: Variables for executing this plan template.
|
|
271
|
-
type: object
|
|
272
|
-
properties:
|
|
273
|
-
//:
|
|
274
|
-
type: string
|
|
275
|
-
RecommendedPlanTemplatesRepresentation:
|
|
276
|
-
description: Represents the result of a get recommended plan templates request.
|
|
277
|
-
type: object
|
|
278
|
-
properties:
|
|
279
|
-
errorMessage:
|
|
280
|
-
description: Error message for the failed get operation.
|
|
281
|
-
type: string
|
|
282
|
-
required: false
|
|
283
|
-
isSuccess:
|
|
284
|
-
description: Success indicator of the get operation.
|
|
285
|
-
type: boolean
|
|
286
|
-
planTemplates:
|
|
287
|
-
description: Recommended plan templates.
|
|
288
|
-
type: array
|
|
289
|
-
items:
|
|
290
|
-
type: PlanTemplateRepresentation
|
|
291
|
-
|
|
292
233
|
/connect:
|
|
293
234
|
/conversation-runtime-proxy:
|
|
294
235
|
get:
|
|
@@ -326,20 +267,3 @@ types:
|
|
|
326
267
|
application/json:
|
|
327
268
|
type: ConversationRuntimeProxyInputRepresentation
|
|
328
269
|
(oas-body-name): postBody
|
|
329
|
-
/recommended-plan-templates/{pageType}/{objectType}:
|
|
330
|
-
get:
|
|
331
|
-
displayName: getRecommendedPlanTemplates
|
|
332
|
-
description: Gets a list of recommended plan templates based on the page/app
|
|
333
|
-
responses:
|
|
334
|
-
'200':
|
|
335
|
-
description: Success
|
|
336
|
-
body:
|
|
337
|
-
application/json:
|
|
338
|
-
type: RecommendedPlanTemplatesRepresentation
|
|
339
|
-
uriParameters:
|
|
340
|
-
pageType:
|
|
341
|
-
type: string
|
|
342
|
-
required: true
|
|
343
|
-
objectType:
|
|
344
|
-
type: string
|
|
345
|
-
required: true
|
package/src/raml/luvio.raml
CHANGED
|
@@ -25,10 +25,6 @@ types:
|
|
|
25
25
|
(luvio.ttl): 30000
|
|
26
26
|
VariableRepresentation:
|
|
27
27
|
(luvio.ttl): 30000
|
|
28
|
-
PlanTemplateRepresentation:
|
|
29
|
-
(luvio.ttl): 900000
|
|
30
|
-
RecommendedPlanTemplatesRepresentation:
|
|
31
|
-
(luvio.ttl): 900000
|
|
32
28
|
|
|
33
29
|
/connect:
|
|
34
30
|
/conversation-runtime-proxy:
|
|
@@ -38,7 +34,3 @@ types:
|
|
|
38
34
|
post:
|
|
39
35
|
(luvio.adapter):
|
|
40
36
|
name: sendMessage
|
|
41
|
-
/recommended-plan-templates/{pageType}/{objectType}:
|
|
42
|
-
get:
|
|
43
|
-
(luvio.adapter):
|
|
44
|
-
name: getRecommendedPlanTemplates
|
|
@@ -1,28 +0,0 @@
|
|
|
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_getConnectRecommendedPlanTemplatesByPageTypeAndObjectType_ResourceRequestConfig } from '../resources/getConnectRecommendedPlanTemplatesByPageTypeAndObjectType';
|
|
4
|
-
import { RecommendedPlanTemplatesRepresentation as types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation } from '../types/RecommendedPlanTemplatesRepresentation';
|
|
5
|
-
export declare const adapterName = "getRecommendedPlanTemplates";
|
|
6
|
-
export declare const getRecommendedPlanTemplates_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
-
export declare const getRecommendedPlanTemplates_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
-
export interface GetRecommendedPlanTemplatesConfig {
|
|
9
|
-
pageType: string;
|
|
10
|
-
objectType: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const createResourceParams: (config: GetRecommendedPlanTemplatesConfig) => resources_getConnectRecommendedPlanTemplatesByPageTypeAndObjectType_ResourceRequestConfig;
|
|
13
|
-
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetRecommendedPlanTemplatesConfig): string;
|
|
14
|
-
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetRecommendedPlanTemplatesConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
-
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetRecommendedPlanTemplatesConfig>): adapter$45$utils_Untrusted<GetRecommendedPlanTemplatesConfig>;
|
|
16
|
-
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetRecommendedPlanTemplatesConfig | null;
|
|
17
|
-
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetRecommendedPlanTemplatesConfig): $64$luvio_engine_Fragment;
|
|
18
|
-
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetRecommendedPlanTemplatesConfig): $64$luvio_engine_Snapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, any>;
|
|
19
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetRecommendedPlanTemplatesConfig, resourceParams: resources_getConnectRecommendedPlanTemplatesByPageTypeAndObjectType_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, any>>;
|
|
20
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetRecommendedPlanTemplatesConfig, resourceParams: resources_getConnectRecommendedPlanTemplatesByPageTypeAndObjectType_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetRecommendedPlanTemplatesConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, any>>;
|
|
22
|
-
export type BuildSnapshotContext = {
|
|
23
|
-
luvio: $64$luvio_engine_Luvio;
|
|
24
|
-
config: GetRecommendedPlanTemplatesConfig;
|
|
25
|
-
};
|
|
26
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, any>>;
|
|
27
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation>): $64$luvio_engine_Snapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, any>;
|
|
28
|
-
export declare const getRecommendedPlanTemplatesAdapterFactory: $64$luvio_engine_AdapterFactory<GetRecommendedPlanTemplatesConfig, types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation>;
|
|
@@ -1,16 +0,0 @@
|
|
|
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 { RecommendedPlanTemplatesRepresentation as types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation } from '../types/RecommendedPlanTemplatesRepresentation';
|
|
3
|
-
export interface ResourceRequestConfig {
|
|
4
|
-
urlParams: {
|
|
5
|
-
pageType: string;
|
|
6
|
-
objectType: 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_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation): void;
|
|
13
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation, any>;
|
|
14
|
-
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_RecommendedPlanTemplatesRepresentation_RecommendedPlanTemplatesRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
|
-
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
-
export default createResourceRequest;
|
|
@@ -1,45 +0,0 @@
|
|
|
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 = "504437088c2317480c651ac05a7565b5";
|
|
4
|
-
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
-
export declare const RepresentationType: string;
|
|
6
|
-
export declare function normalize(input: PlanTemplateRepresentation, existing: PlanTemplateRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PlanTemplateRepresentationNormalized;
|
|
7
|
-
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
-
export declare function equals(existing: PlanTemplateRepresentationNormalized, incoming: PlanTemplateRepresentationNormalized): 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: PlanTemplateRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
-
/**
|
|
12
|
-
* Represents a plan template which can be executed by a Copilot client.
|
|
13
|
-
*
|
|
14
|
-
* Keys:
|
|
15
|
-
* (none)
|
|
16
|
-
*/
|
|
17
|
-
export interface PlanTemplateRepresentationNormalized {
|
|
18
|
-
/** Intent used by Planner when executing this plan template. */
|
|
19
|
-
intent: string;
|
|
20
|
-
/** Label to display when rendering this plan template in a Copilot client. */
|
|
21
|
-
label: string;
|
|
22
|
-
/** ID of a plan template. */
|
|
23
|
-
planTemplateId: string;
|
|
24
|
-
/** User utterance to be recorded in conversation history by Planner when executing this plan template. */
|
|
25
|
-
userUtterance: string;
|
|
26
|
-
/** Variables for executing this plan template. */
|
|
27
|
-
variables: {
|
|
28
|
-
[key: string]: string;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Represents a plan template which can be executed by a Copilot client.
|
|
33
|
-
*
|
|
34
|
-
* Keys:
|
|
35
|
-
* (none)
|
|
36
|
-
*/
|
|
37
|
-
export interface PlanTemplateRepresentation {
|
|
38
|
-
intent: string;
|
|
39
|
-
label: string;
|
|
40
|
-
planTemplateId: string;
|
|
41
|
-
userUtterance: string;
|
|
42
|
-
variables: {
|
|
43
|
-
[key: string]: string;
|
|
44
|
-
};
|
|
45
|
-
}
|
package/dist/es/es2018/types/src/generated/types/RecommendedPlanTemplatesRepresentation.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { PlanTemplateRepresentation as PlanTemplateRepresentation_PlanTemplateRepresentation } from './PlanTemplateRepresentation';
|
|
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 = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
|
|
5
|
-
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
-
export declare const RepresentationType: string;
|
|
7
|
-
export declare function normalize(input: RecommendedPlanTemplatesRepresentation, existing: RecommendedPlanTemplatesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RecommendedPlanTemplatesRepresentationNormalized;
|
|
8
|
-
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
-
export declare function equals(existing: RecommendedPlanTemplatesRepresentationNormalized, incoming: RecommendedPlanTemplatesRepresentationNormalized): 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: RecommendedPlanTemplatesRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
-
/**
|
|
13
|
-
* Represents the result of a get recommended plan templates request.
|
|
14
|
-
*
|
|
15
|
-
* Keys:
|
|
16
|
-
* (none)
|
|
17
|
-
*/
|
|
18
|
-
export interface RecommendedPlanTemplatesRepresentationNormalized {
|
|
19
|
-
/** Error message for the failed get operation. */
|
|
20
|
-
errorMessage?: string;
|
|
21
|
-
/** Success indicator of the get operation. */
|
|
22
|
-
isSuccess: boolean;
|
|
23
|
-
/** Recommended plan templates. */
|
|
24
|
-
planTemplates: Array<PlanTemplateRepresentation_PlanTemplateRepresentation>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Represents the result of a get recommended plan templates request.
|
|
28
|
-
*
|
|
29
|
-
* Keys:
|
|
30
|
-
* (none)
|
|
31
|
-
*/
|
|
32
|
-
export interface RecommendedPlanTemplatesRepresentation {
|
|
33
|
-
errorMessage?: string;
|
|
34
|
-
isSuccess: boolean;
|
|
35
|
-
planTemplates: Array<PlanTemplateRepresentation_PlanTemplateRepresentation>;
|
|
36
|
-
}
|