@pluno/product-agent-web 0.1.142 → 0.1.144
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/index.d.ts +11 -0
- package/dist/product-agent-sdk.js +496 -456
- package/dist/product-agent-widget.js +1695 -1655
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,17 @@ export type ProductAgentWebSocket = {
|
|
|
149
149
|
close(): void;
|
|
150
150
|
};
|
|
151
151
|
export type ProductAgentWebSocketFactory = (url: string) => ProductAgentWebSocket;
|
|
152
|
+
export type ProductAgentTraceEvent = {
|
|
153
|
+
schemaVersion: 1;
|
|
154
|
+
traceId: string;
|
|
155
|
+
source: "web_sdk";
|
|
156
|
+
category: "client_event" | "server_event" | "state";
|
|
157
|
+
name: string;
|
|
158
|
+
sequence: number;
|
|
159
|
+
wallTime: string;
|
|
160
|
+
monotonicMs: number;
|
|
161
|
+
data: Record<string, string | number | boolean | null>;
|
|
162
|
+
};
|
|
152
163
|
export type ProductAgentEventMap = {
|
|
153
164
|
state: ProductAgentState;
|
|
154
165
|
message: ProductAgentMessage;
|