@pagelines/sdk 1.0.478 → 1.0.479
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/AgentWrap.vue_vue_type_script_setup_true_lang.js +2 -4
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/clients/ChatClient.d.ts +10 -10
- package/dist/index.js +333 -317
- package/dist/index.js.map +1 -1
- package/dist/sdkClient.d.ts +1 -1
- package/dist/sdkClient.js +255 -246
- package/dist/sdkClient.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,13 +3,19 @@ export declare class ChatClient {
|
|
|
3
3
|
private ctx;
|
|
4
4
|
constructor(ctx: SDKContext);
|
|
5
5
|
/**
|
|
6
|
-
* Public/visitor chat — anonymous chat against an agent's public handle
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Public/visitor chat — anonymous chat against an agent's public handle,
|
|
7
|
+
* routed through the messaging substrate. Same SSE wire format as
|
|
8
|
+
* `chatStreamAuthenticated` — the only difference is the route (no auth,
|
|
9
|
+
* handle-based lookup, anonymousId instead of userId).
|
|
10
|
+
*
|
|
11
|
+
* The visitor identity is `anonymousId` — caller is responsible for
|
|
12
|
+
* generating + persisting it (typically `sdk.generateAnonId()` which
|
|
13
|
+
* stores a stable ID in localStorage).
|
|
9
14
|
*/
|
|
10
|
-
|
|
15
|
+
chatStreamPublic(args: {
|
|
11
16
|
handle: string;
|
|
12
17
|
message: string;
|
|
18
|
+
anonymousId: string;
|
|
13
19
|
attachments?: Array<{
|
|
14
20
|
type: string;
|
|
15
21
|
url: string;
|
|
@@ -17,12 +23,6 @@ export declare class ChatClient {
|
|
|
17
23
|
mimeType: string;
|
|
18
24
|
mediaId?: string;
|
|
19
25
|
}>;
|
|
20
|
-
conversationId?: string;
|
|
21
|
-
history?: Array<{
|
|
22
|
-
role: 'user' | 'assistant';
|
|
23
|
-
content: string;
|
|
24
|
-
}>;
|
|
25
|
-
visitorId?: string;
|
|
26
26
|
context?: string;
|
|
27
27
|
onDelta: (text: string) => void;
|
|
28
28
|
onDone: (conversationId: string) => void;
|