@salesforce/agents 0.9.5-preview.0 → 0.9.5-preview.1
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/lib/agentPreview.d.ts +13 -13
- package/lib/agentPreview.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/agentPreview.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ type ApiStatus = {
|
|
|
5
5
|
type Href = {
|
|
6
6
|
href: string;
|
|
7
7
|
};
|
|
8
|
-
type
|
|
8
|
+
export type AgentPreviewMessageLinks = {
|
|
9
9
|
self: Href | null;
|
|
10
10
|
messages: Href | null;
|
|
11
11
|
session: Href | null;
|
|
12
12
|
end: Href | null;
|
|
13
13
|
};
|
|
14
|
-
type
|
|
14
|
+
export type AgentPreviewMessage = {
|
|
15
15
|
type: string;
|
|
16
16
|
id: string;
|
|
17
17
|
feedbackId: string;
|
|
@@ -28,23 +28,23 @@ type Message = {
|
|
|
28
28
|
value: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
type
|
|
31
|
+
export type AgentPreviewStartResponse = {
|
|
32
32
|
sessionId: string;
|
|
33
|
-
_links:
|
|
34
|
-
messages:
|
|
33
|
+
_links: AgentPreviewMessageLinks;
|
|
34
|
+
messages: AgentPreviewMessage[];
|
|
35
35
|
};
|
|
36
|
-
type
|
|
37
|
-
messages:
|
|
38
|
-
_links:
|
|
36
|
+
export type AgentPreviewSendResponse = {
|
|
37
|
+
messages: AgentPreviewMessage[];
|
|
38
|
+
_links: AgentPreviewMessageLinks;
|
|
39
39
|
};
|
|
40
|
-
type
|
|
40
|
+
export type AgentPreviewEndResponse = {
|
|
41
41
|
messages: {
|
|
42
42
|
type: string;
|
|
43
43
|
id: string;
|
|
44
44
|
reason: string;
|
|
45
45
|
feedbackId: string;
|
|
46
46
|
};
|
|
47
|
-
_links:
|
|
47
|
+
_links: AgentPreviewMessageLinks;
|
|
48
48
|
};
|
|
49
49
|
type EndReason = 'UserRequest' | 'Transfer' | 'Expiration' | 'Error' | 'Other';
|
|
50
50
|
export declare class AgentPreview {
|
|
@@ -53,9 +53,9 @@ export declare class AgentPreview {
|
|
|
53
53
|
private instanceUrl;
|
|
54
54
|
private tempApiBase;
|
|
55
55
|
constructor(connection: Connection);
|
|
56
|
-
start(botId: string): Promise<
|
|
57
|
-
send(sessionId: string, message: string): Promise<
|
|
58
|
-
end(sessionId: string, reason: EndReason): Promise<
|
|
56
|
+
start(botId: string): Promise<AgentPreviewStartResponse>;
|
|
57
|
+
send(sessionId: string, message: string): Promise<AgentPreviewSendResponse>;
|
|
58
|
+
end(sessionId: string, reason: EndReason): Promise<AgentPreviewEndResponse>;
|
|
59
59
|
status(): Promise<ApiStatus>;
|
|
60
60
|
}
|
|
61
61
|
export {};
|
package/lib/agentPreview.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentPreview.js","sourceRoot":"","sources":["../src/agentPreview.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,uDAAmD;AAyDnD,MAAa,YAAY;IACf,GAAG,CAAiB;IACpB,OAAO,CAAC;IACR,WAAW,CAAS;IACpB,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAkC,CAAC;IAErE,YAAmB,UAAsB;QACvC,IAAI,CAAC,GAAG,GAAG,IAAI,gCAAc,EAAE,CAAC;QAChC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAiC,CAAC;QAC3D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,mBAA6B,CAAC;QAEtD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAE1C,IAAI,CAAC,OAAO,GAAG;YACb,kBAAkB,EAAE,QAAQ,GAAG,IAAI,UAAU,CAAC,iBAAiB,EAAE,CAAC,KAAe,EAAE;YACnF,qBAAqB,EAAE,OAAO,CAAC,GAAG,CAAC,s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AAM;SAC/B,CAAC,CAAC;IACL,CAAC;IAED,8CAA8C;IACvC,KAAK,CAAC,MAAM;QACjB,MAAM,IAAI,GAAG,iCAAiC,CAAC;QAC/C,MAAM,GAAG,GAAG,GAAG,IAAI,8BAA8B,CAAC;QAElD,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAY,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAvED,oCAuEC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { type AgentCreateConfig, type AgentCreateConfigV2, type AgentCreateResponse, type AgentCreateResponseV2, type AgentJobSpec, type AgentJobSpecV2, type AgentJobSpecCreateConfig, type AgentJobSpecCreateConfigV2, type AgentJobSpecCreateResponse, type DraftAgentTopics, type DraftAgentTopicsBody, type DraftAgentTopicsResponse, SfAgent, } from './types';
|
|
2
2
|
export { Agent, AgentCreateLifecycleStages, AgentCreateLifecycleStagesV2, generateAgentApiName } from './agent';
|
|
3
3
|
export { AgentTester, convertTestResultsToFormat, generateTestSpec, AgentTestCreateLifecycleStages, type AvailableDefinition, type AgentTestResultsResponse, type AgentTestStartResponse, type AgentTestStatusResponse, type TestCaseResult, type TestStatus, } from './agentTester';
|
|
4
|
-
export { AgentPreview } from './agentPreview';
|
|
4
|
+
export { AgentPreview, type AgentPreviewMessageLinks, type AgentPreviewMessage, type AgentPreviewStartResponse, type AgentPreviewSendResponse, type AgentPreviewEndResponse, } from './agentPreview';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAiBH,iCAAgH;AAAvG,8FAAA,KAAK,OAAA;AAAE,mHAAA,0BAA0B,OAAA;AAAE,qHAAA,4BAA4B,OAAA;AAAE,6GAAA,oBAAoB,OAAA;AAC9F,6CAWuB;AAVrB,0GAAA,WAAW,OAAA;AACX,yHAAA,0BAA0B,OAAA;AAC1B,+GAAA,gBAAgB,OAAA;AAChB,6HAAA,8BAA8B,OAAA;AAQhC,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAiBH,iCAAgH;AAAvG,8FAAA,KAAK,OAAA;AAAE,mHAAA,0BAA0B,OAAA;AAAE,qHAAA,4BAA4B,OAAA;AAAE,6GAAA,oBAAoB,OAAA;AAC9F,6CAWuB;AAVrB,0GAAA,WAAW,OAAA;AACX,yHAAA,0BAA0B,OAAA;AAC1B,+GAAA,gBAAgB,OAAA;AAChB,6HAAA,8BAA8B,OAAA;AAQhC,+CAOwB;AANtB,4GAAA,YAAY,OAAA"}
|
package/package.json
CHANGED