@pluno/product-agent-web 0.1.113 → 0.1.115
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 +1 -1
- package/dist/product-agent-sdk.js +708 -858
- package/dist/product-agent-widget.js +447 -437
- package/package.json +1 -1
- package/dist/scheduledChatContinuations.d.ts +0 -39
package/package.json
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare const SCHEDULED_CHAT_CONTINUATION_STORAGE_KEY_PREFIX = "pluno.productAgent.scheduledChatContinuation.";
|
|
2
|
-
export declare const SCHEDULED_CHAT_CONTINUATION_CHANGED_EVENT = "pluno:scheduled-chat-continuation-changed";
|
|
3
|
-
export declare const SCHEDULED_CHAT_CONTINUATION_EXPIRY_AFTER_DUE_MS: number;
|
|
4
|
-
export type ScheduledChatContinuationTask = {
|
|
5
|
-
id: string;
|
|
6
|
-
clientId: string;
|
|
7
|
-
sessionId: string;
|
|
8
|
-
prompt: string;
|
|
9
|
-
dueAt: number;
|
|
10
|
-
expiresAt: number;
|
|
11
|
-
};
|
|
12
|
-
export type ScheduledChatContinuationStorage = {
|
|
13
|
-
list: () => Promise<unknown[]>;
|
|
14
|
-
set: (task: ScheduledChatContinuationTask) => Promise<void>;
|
|
15
|
-
remove: (taskId: string) => Promise<void>;
|
|
16
|
-
subscribe?: (listener: () => void) => () => void;
|
|
17
|
-
};
|
|
18
|
-
type ScheduledChatContinuationSchedulerOptions = {
|
|
19
|
-
clientId: string;
|
|
20
|
-
canDeliver: (task: ScheduledChatContinuationTask) => boolean | Promise<boolean>;
|
|
21
|
-
deliver: (task: ScheduledChatContinuationTask) => Promise<void>;
|
|
22
|
-
storage?: ScheduledChatContinuationStorage | null;
|
|
23
|
-
onTasksChanged?: (tasks: ScheduledChatContinuationTask[]) => void;
|
|
24
|
-
};
|
|
25
|
-
export type ScheduledChatContinuationScheduler = {
|
|
26
|
-
processDueTasks: () => Promise<void>;
|
|
27
|
-
scheduleTask: (task: ScheduledChatContinuationTask) => Promise<boolean>;
|
|
28
|
-
acknowledgeTask: (taskId: string) => Promise<boolean>;
|
|
29
|
-
isAvailable: () => boolean;
|
|
30
|
-
destroy: () => void;
|
|
31
|
-
};
|
|
32
|
-
export declare function withScheduledChatContinuationContext(javascript: string, { clientId, sessionId, callId, }: {
|
|
33
|
-
clientId: string;
|
|
34
|
-
sessionId: string;
|
|
35
|
-
callId: string;
|
|
36
|
-
}): string;
|
|
37
|
-
export declare function createScheduledChatContinuationScheduler(options: ScheduledChatContinuationSchedulerOptions): ScheduledChatContinuationScheduler;
|
|
38
|
-
export declare function isScheduledChatContinuationTask(value: unknown): value is ScheduledChatContinuationTask;
|
|
39
|
-
export {};
|