@salesforce/lds-adapters-service-einstein-copilot-bot 1.341.0 → 1.342.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-einstein-copilot-bot.js +1160 -617
- package/dist/es/es2018/types/src/generated/adapters/getAgents.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectAgentforceAgentInfo.d.ts +15 -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 +43 -0
- package/package.json +3 -3
- package/sfdc/index.js +579 -28
- package/src/raml/api.raml +78 -0
- package/src/raml/luvio.raml +6 -0
|
@@ -0,0 +1,27 @@
|
|
|
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_getConnectAgentforceAgentInfo_ResourceRequestConfig } from '../resources/getConnectAgentforceAgentInfo';
|
|
4
|
+
import { AgentforceAgentBotInfoListRepresentation as types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation } from '../types/AgentforceAgentBotInfoListRepresentation';
|
|
5
|
+
export declare const adapterName = "getAgents";
|
|
6
|
+
export declare const getAgents_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getAgents_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetAgentsConfig {
|
|
9
|
+
agentType: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetAgentsConfig) => resources_getConnectAgentforceAgentInfo_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAgentsConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetAgentsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetAgentsConfig>): adapter$45$utils_Untrusted<GetAgentsConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetAgentsConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetAgentsConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAgentsConfig): $64$luvio_engine_Snapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetAgentsConfig, resourceParams: resources_getConnectAgentforceAgentInfo_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetAgentsConfig, resourceParams: resources_getConnectAgentforceAgentInfo_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAgentsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetAgentsConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation>): $64$luvio_engine_Snapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, any>;
|
|
27
|
+
export declare const getAgentsAdapterFactory: $64$luvio_engine_AdapterFactory<GetAgentsConfig, types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation>;
|
|
@@ -7,3 +7,4 @@ export { getFollowUpActionsAdapterFactory } from '../adapters/getFollowUpActions
|
|
|
7
7
|
export { getRecommendedUtterancesAdapterFactory } from '../adapters/getRecommendedUtterances';
|
|
8
8
|
export { getRecommendedActionsAdapterFactory } from '../adapters/getRecommendedActions';
|
|
9
9
|
export { getWelcomeUtterancesAdapterFactory } from '../adapters/getWelcomeUtterances';
|
|
10
|
+
export { getAgentsAdapterFactory } from '../adapters/getAgents';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare let getAgents: any;
|
|
1
2
|
declare let getBotId: any;
|
|
2
3
|
declare let getCopilotObjects: any;
|
|
3
4
|
declare let getFollowUpActions: any;
|
|
@@ -7,6 +8,7 @@ declare let getRecommendedUtterances: any;
|
|
|
7
8
|
declare let getWelcomeUtterances: any;
|
|
8
9
|
declare let sendMessage: any;
|
|
9
10
|
declare let submitFeedback: any;
|
|
11
|
+
declare let getAgents_imperative: any;
|
|
10
12
|
declare let getBotId_imperative: any;
|
|
11
13
|
declare let getCopilotObjects_imperative: any;
|
|
12
14
|
declare let getFollowUpActions_imperative: any;
|
|
@@ -14,4 +16,4 @@ declare let getRecommendedActions_imperative: any;
|
|
|
14
16
|
declare let getRecommendedPlanTemplates_imperative: any;
|
|
15
17
|
declare let getRecommendedUtterances_imperative: any;
|
|
16
18
|
declare let getWelcomeUtterances_imperative: any;
|
|
17
|
-
export { getBotId, getCopilotObjects, getFollowUpActions, getRecommendedActions, getRecommendedPlanTemplates, getRecommendedUtterances, getWelcomeUtterances, sendMessage, submitFeedback, getBotId_imperative, getCopilotObjects_imperative, getFollowUpActions_imperative, getRecommendedActions_imperative, getRecommendedPlanTemplates_imperative, getRecommendedUtterances_imperative, getWelcomeUtterances_imperative, };
|
|
19
|
+
export { getAgents, getBotId, getCopilotObjects, getFollowUpActions, getRecommendedActions, getRecommendedPlanTemplates, getRecommendedUtterances, getWelcomeUtterances, sendMessage, submitFeedback, getAgents_imperative, getBotId_imperative, getCopilotObjects_imperative, getFollowUpActions_imperative, getRecommendedActions_imperative, getRecommendedPlanTemplates_imperative, getRecommendedUtterances_imperative, getWelcomeUtterances_imperative, };
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { AgentforceAgentBotInfoListRepresentation as types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation } from '../types/AgentforceAgentBotInfoListRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
agentType: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_AgentforceAgentBotInfoListRepresentation_AgentforceAgentBotInfoListRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
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,43 @@
|
|
|
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 = "5cdcbe9b9b5307f4d285345d68c3236c";
|
|
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
|
+
/** Success indicator of the get operation. */
|
|
26
|
+
isSuccess: boolean;
|
|
27
|
+
/** display label of the agent */
|
|
28
|
+
label?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* User defined Agent metadata per agent type
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* (none)
|
|
35
|
+
*/
|
|
36
|
+
export interface AgentforceAgentBotInfoRepresentation {
|
|
37
|
+
agentType?: string;
|
|
38
|
+
botId?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
errorMessage?: string;
|
|
41
|
+
isSuccess: boolean;
|
|
42
|
+
label?: string;
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.342.0",
|
|
4
4
|
"description": "Einstein Copilot Bot API Family",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-einstein-copilot-bot.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.342.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.342.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|