@pagelines/sdk 1.0.878 → 1.0.879
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/README.md +68 -68
- package/dist/BotProvider.js +777 -0
- package/dist/BotProvider.js.map +1 -0
- package/dist/{AgentWidgetInline.js → BotWidgetInline.js} +8 -8
- package/dist/BotWidgetInline.js.map +1 -0
- package/dist/{AgentWidgetModal.js → BotWidgetModal.js} +7 -7
- package/dist/BotWidgetModal.js.map +1 -0
- package/dist/{AgentWrap.js → BotWrap.js} +1174 -1145
- package/dist/BotWrap.js.map +1 -0
- package/dist/{agent/AgentController.d.ts → bot/BotController.d.ts} +35 -18
- package/dist/bot/index.d.ts +14 -0
- package/dist/{agent → bot}/schema.d.ts +6 -6
- package/dist/{agent/ui/AgentAvatar.vue.d.ts → bot/ui/BotAvatar.vue.d.ts} +6 -6
- package/dist/{agent/ui/AgentChat.vue.d.ts → bot/ui/BotChat.vue.d.ts} +5 -5
- package/dist/{agent/ui/AgentProvider.vue.d.ts → bot/ui/BotProvider.vue.d.ts} +3 -3
- package/dist/{agent/ui/AgentWrap.vue.d.ts → bot/ui/BotWrap.vue.d.ts} +3 -4
- package/dist/{agent/ui/ElAgentAbout.vue.d.ts → bot/ui/ElBotAbout.vue.d.ts} +2 -2
- package/dist/{agent/ui/ElAgentChat.vue.d.ts → bot/ui/ElBotChat.vue.d.ts} +5 -5
- package/dist/{agent/ui/ElAgentChatPreview.vue.d.ts → bot/ui/ElBotChatPreview.vue.d.ts} +1 -1
- package/dist/{agent/ui/ElAgentHeader.vue.d.ts → bot/ui/ElBotHeader.vue.d.ts} +2 -2
- package/dist/{agent/ui/ElAgentModeSidebar.vue.d.ts → bot/ui/ElBotModeSidebar.vue.d.ts} +2 -2
- package/dist/{agent/ui/ElAgentSidebar.vue.d.ts → bot/ui/ElBotSidebar.vue.d.ts} +2 -2
- package/dist/bot/ui/ElCreateBot.vue.d.ts +12 -0
- package/dist/{agent → bot}/ui/ElModeHeader.vue.d.ts +2 -2
- package/dist/{agent → bot}/ui/ElProvisioningStatus.vue.d.ts +1 -1
- package/dist/{agent → bot}/ui/VoiceMode.vue.d.ts +4 -4
- package/dist/{agent → bot}/utils.d.ts +5 -5
- package/dist/{agent → bot}/voice/provider.d.ts +2 -2
- package/dist/{agent → bot}/voice/providers/livekit/provider.d.ts +4 -4
- package/dist/{agent → bot}/voice/voice-session-client.d.ts +1 -1
- package/dist/{agent → bot}/work-journal.d.ts +1 -1
- package/dist/{agent.js → bot.js} +83 -80
- package/dist/bot.js.map +1 -0
- package/dist/clients/BillingClient.d.ts +1 -1
- package/dist/clients/BotClient.d.ts +26 -0
- package/dist/clients/ChatClient.d.ts +6 -5
- package/dist/clients/ComputerClient.d.ts +16 -0
- package/dist/clients/UserClient.d.ts +4 -7
- package/dist/clients/types.d.ts +7 -2
- package/dist/contract/build.d.ts +1 -2
- package/dist/index.d.ts +3 -2
- package/dist/provider.js +1 -1
- package/dist/provider.js.map +1 -1
- package/dist/provider2.js +14 -14
- package/dist/provider2.js.map +1 -1
- package/dist/sdk.css +1 -1
- package/dist/sdk.js +4 -4
- package/dist/sdkClient.d.ts +33 -376
- package/dist/sdkClient.js +168 -170
- package/dist/sdkClient.js.map +1 -1
- package/dist/useWidgetState.js +9 -9
- package/dist/useWidgetState.js.map +1 -1
- package/dist/widget/PLWidget.d.ts +6 -6
- package/dist/widget/composables/useWidgetState.d.ts +3 -402
- package/dist/widget/index.d.ts +2 -2
- package/dist/widget/mode.d.ts +2 -2
- package/dist/widget/ui/{AgentWidgetInline.vue.d.ts → BotWidgetInline.vue.d.ts} +2 -2
- package/dist/widget/ui/{AgentWidgetModal.vue.d.ts → BotWidgetModal.vue.d.ts} +2 -2
- package/dist/widget/ui/{AgentWidgetPopup.vue.d.ts → BotWidgetPopup.vue.d.ts} +4 -4
- package/dist/widget.js +206 -206
- package/dist/widget.js.map +1 -1
- package/package.json +5 -5
- package/dist/AgentProvider.js +0 -764
- package/dist/AgentProvider.js.map +0 -1
- package/dist/AgentWidgetInline.js.map +0 -1
- package/dist/AgentWidgetModal.js.map +0 -1
- package/dist/AgentWrap.js.map +0 -1
- package/dist/agent/index.d.ts +0 -14
- package/dist/agent/ui/ElCreateAgent.vue.d.ts +0 -277
- package/dist/agent.js.map +0 -1
- package/dist/clients/AgentClient.d.ts +0 -48
- /package/dist/{agent → bot}/VoiceRecorderController.d.ts +0 -0
- /package/dist/{agent/ui/AgentInputEmail.vue.d.ts → bot/ui/BotInputEmail.vue.d.ts} +0 -0
- /package/dist/{agent/ui/AgentInputOneTimeCode.vue.d.ts → bot/ui/BotInputOneTimeCode.vue.d.ts} +0 -0
- /package/dist/{agent/ui/AgentSidebarClose.vue.d.ts → bot/ui/BotSidebarClose.vue.d.ts} +0 -0
- /package/dist/{agent/ui/AgentToolActivityGroup.vue.d.ts → bot/ui/BotToolActivityGroup.vue.d.ts} +0 -0
- /package/dist/{agent/ui/AgentWidget.vue.d.ts → bot/ui/BotWidget.vue.d.ts} +0 -0
- /package/dist/{agent → bot}/ui/ChatCardBlock.vue.d.ts +0 -0
- /package/dist/{agent → bot}/ui/ChatRichText.vue.d.ts +0 -0
- /package/dist/{agent → bot}/ui/ChatScroller.vue.d.ts +0 -0
- /package/dist/{agent → bot}/ui/ChatVisualBlock.vue.d.ts +0 -0
- /package/dist/{agent → bot}/ui/ElAuthGate.vue.d.ts +0 -0
- /package/dist/{agent → bot}/ui/ElAuthPanel.vue.d.ts +0 -0
- /package/dist/{agent/ui/ElAgentButton.vue.d.ts → bot/ui/ElBotButton.vue.d.ts} +0 -0
- /package/dist/{agent → bot}/ui/ElSidebar.vue.d.ts +0 -0
- /package/dist/{agent → bot}/ui/VoiceHistogramController.d.ts +0 -0
- /package/dist/{agent → bot}/ui/chat-diagram-layout.d.ts +0 -0
- /package/dist/{agent → bot}/ui/chat-visual-format.d.ts +0 -0
- /package/dist/{agent → bot}/ui/voice-mode-presentation.d.ts +0 -0
- /package/dist/{agent → bot}/voice/voice-error-copy.d.ts +0 -0
- /package/dist/{agent → bot}/voice/voice-work-state.d.ts +0 -0
- /package/dist/widget/ui/{AgentWidgetOnboard.vue.d.ts → BotWidgetOnboard.vue.d.ts} +0 -0
|
@@ -1,412 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bot } from '../../bot/schema';
|
|
2
2
|
import { ButtonIconPreset, WidgetUpdate } from '../PLWidget';
|
|
3
3
|
export declare function useWidgetState(props: {
|
|
4
|
-
|
|
4
|
+
bot?: Bot;
|
|
5
5
|
context?: string;
|
|
6
6
|
firstMessage?: string;
|
|
7
7
|
buttonText?: string;
|
|
8
8
|
buttonIcon?: ButtonIconPreset;
|
|
9
9
|
}): {
|
|
10
|
-
|
|
11
|
-
agentId?: string | undefined;
|
|
12
|
-
handle?: string | undefined;
|
|
13
|
-
ownerId?: string | undefined;
|
|
14
|
-
orgId?: string | undefined;
|
|
15
|
-
name?: string | undefined;
|
|
16
|
-
emoji?: string | null | undefined;
|
|
17
|
-
title?: string | null | undefined;
|
|
18
|
-
summary?: string | null | undefined;
|
|
19
|
-
entityType?: string | undefined;
|
|
20
|
-
avatarId?: string | null | undefined;
|
|
21
|
-
coverId?: string | null | undefined;
|
|
22
|
-
avatar?: {
|
|
23
|
-
mediaId?: string | undefined;
|
|
24
|
-
userId?: string | undefined;
|
|
25
|
-
orgId?: string | undefined;
|
|
26
|
-
agentId?: string | null | undefined;
|
|
27
|
-
filename?: string | undefined;
|
|
28
|
-
mimeType?: string | undefined;
|
|
29
|
-
size?: number | undefined;
|
|
30
|
-
src?: string | undefined;
|
|
31
|
-
alt?: string | undefined;
|
|
32
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
33
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
34
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
35
|
-
createdAt?: string | undefined;
|
|
36
|
-
updatedAt?: string | undefined;
|
|
37
|
-
type?: "audio" | "document" | "image" | "video" | undefined;
|
|
38
|
-
mediaType?: "audio" | "document" | "image" | "video" | undefined;
|
|
39
|
-
className?: string | undefined;
|
|
40
|
-
width?: number | undefined;
|
|
41
|
-
height?: number | undefined;
|
|
42
|
-
duration?: number | undefined;
|
|
43
|
-
blurhash?: string | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
cover?: {
|
|
46
|
-
mediaId?: string | undefined;
|
|
47
|
-
userId?: string | undefined;
|
|
48
|
-
orgId?: string | undefined;
|
|
49
|
-
agentId?: string | null | undefined;
|
|
50
|
-
filename?: string | undefined;
|
|
51
|
-
mimeType?: string | undefined;
|
|
52
|
-
size?: number | undefined;
|
|
53
|
-
src?: string | undefined;
|
|
54
|
-
alt?: string | undefined;
|
|
55
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
56
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
57
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
58
|
-
createdAt?: string | undefined;
|
|
59
|
-
updatedAt?: string | undefined;
|
|
60
|
-
type?: "audio" | "document" | "image" | "video" | undefined;
|
|
61
|
-
mediaType?: "audio" | "document" | "image" | "video" | undefined;
|
|
62
|
-
className?: string | undefined;
|
|
63
|
-
width?: number | undefined;
|
|
64
|
-
height?: number | undefined;
|
|
65
|
-
duration?: number | undefined;
|
|
66
|
-
blurhash?: string | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
email?: string | null | undefined;
|
|
69
|
-
website?: string | null | undefined;
|
|
70
|
-
accounts?: {
|
|
71
|
-
platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
|
|
72
|
-
handle: string;
|
|
73
|
-
}[] | null | undefined;
|
|
74
|
-
model?: string | null | undefined;
|
|
75
|
-
gender?: "woman" | "man" | undefined;
|
|
76
|
-
voiceKey?: "lauren" | "amy" | "eve" | "korina" | "tamsin" | "jessica" | "jude" | "adam" | "evan" | "jon" | "joe" | "julius" | "chuck" | null | undefined;
|
|
77
|
-
billingTier?: "essential" | "professional" | "business" | undefined;
|
|
78
|
-
lastActiveAt?: string | null | undefined;
|
|
79
|
-
lastMessageAt?: string | null | undefined;
|
|
80
|
-
runtime?: string | undefined;
|
|
81
|
-
timezone?: string | undefined;
|
|
82
|
-
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
83
|
-
routinePrimaryChannel?: string | undefined;
|
|
84
|
-
onboardingStage?: "identity" | "working-style" | "complete" | null | undefined;
|
|
85
|
-
onboardedAt?: string | null | undefined;
|
|
86
|
-
org?: {
|
|
87
|
-
orgId: string;
|
|
88
|
-
handle: string;
|
|
89
|
-
name: string;
|
|
90
|
-
status: string;
|
|
91
|
-
headline?: string | undefined;
|
|
92
|
-
summary?: string | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
owner?: {
|
|
95
|
-
userId: string;
|
|
96
|
-
fullName?: string | undefined;
|
|
97
|
-
avatar?: {
|
|
98
|
-
mediaId?: string | undefined;
|
|
99
|
-
userId?: string | undefined;
|
|
100
|
-
orgId?: string | undefined;
|
|
101
|
-
agentId?: string | null | undefined;
|
|
102
|
-
filename?: string | undefined;
|
|
103
|
-
mimeType?: string | undefined;
|
|
104
|
-
size?: number | undefined;
|
|
105
|
-
src?: string | undefined;
|
|
106
|
-
alt?: string | undefined;
|
|
107
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
108
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
109
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
110
|
-
createdAt?: string | undefined;
|
|
111
|
-
updatedAt?: string | undefined;
|
|
112
|
-
type?: "audio" | "document" | "image" | "video" | undefined;
|
|
113
|
-
mediaType?: "audio" | "document" | "image" | "video" | undefined;
|
|
114
|
-
className?: string | undefined;
|
|
115
|
-
width?: number | undefined;
|
|
116
|
-
height?: number | undefined;
|
|
117
|
-
duration?: number | undefined;
|
|
118
|
-
blurhash?: string | undefined;
|
|
119
|
-
} | undefined;
|
|
120
|
-
} | undefined;
|
|
121
|
-
visibility?: "org" | "private" | "public" | undefined;
|
|
122
|
-
status?: string | undefined;
|
|
123
|
-
createdAt?: string | undefined;
|
|
124
|
-
updatedAt?: string | undefined;
|
|
125
|
-
isPrimary?: boolean | undefined;
|
|
126
|
-
lifecycle?: "error" | "stopped" | "unknown" | "starting" | "running" | "degraded" | "unreachable" | "stopping" | undefined;
|
|
127
|
-
changedAt?: string | undefined;
|
|
128
|
-
detail?: string | undefined;
|
|
129
|
-
blocker?: {
|
|
130
|
-
bucket: "error" | "account";
|
|
131
|
-
code: "billing_no_plan" | "billing_seat_limit" | "billing_past_due" | "billing_runaway_cap" | "billing_budget_reached" | "billing_demo_spent" | "agent_deleted" | "agent_not_deployed" | "agent_boot_failed" | "agent_unreachable" | "agent_wake_timeout" | "stream_timeout" | "stream_disconnect" | "empty_stream" | "tool_protocol" | "rate_limit";
|
|
132
|
-
title: string;
|
|
133
|
-
actionLabel: string;
|
|
134
|
-
actionUrl: string;
|
|
135
|
-
help?: string | undefined;
|
|
136
|
-
} | undefined;
|
|
137
|
-
operation?: {
|
|
138
|
-
kind: "wake" | "sleep" | "restart" | "rebuild" | "config_apply" | "setup";
|
|
139
|
-
status: "failed" | "running" | "coalesced";
|
|
140
|
-
startedAt: string;
|
|
141
|
-
detail?: string | undefined;
|
|
142
|
-
} | undefined;
|
|
143
|
-
} | undefined, {
|
|
144
|
-
agentId?: string | undefined;
|
|
145
|
-
handle?: string | undefined;
|
|
146
|
-
ownerId?: string | undefined;
|
|
147
|
-
orgId?: string | undefined;
|
|
148
|
-
name?: string | undefined;
|
|
149
|
-
emoji?: string | null | undefined;
|
|
150
|
-
title?: string | null | undefined;
|
|
151
|
-
summary?: string | null | undefined;
|
|
152
|
-
entityType?: string | undefined;
|
|
153
|
-
avatarId?: string | null | undefined;
|
|
154
|
-
coverId?: string | null | undefined;
|
|
155
|
-
avatar?: {
|
|
156
|
-
mediaId?: string | undefined;
|
|
157
|
-
userId?: string | undefined;
|
|
158
|
-
orgId?: string | undefined;
|
|
159
|
-
agentId?: string | null | undefined;
|
|
160
|
-
filename?: string | undefined;
|
|
161
|
-
mimeType?: string | undefined;
|
|
162
|
-
size?: number | undefined;
|
|
163
|
-
src?: string | undefined;
|
|
164
|
-
alt?: string | undefined;
|
|
165
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
166
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
167
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
168
|
-
createdAt?: string | undefined;
|
|
169
|
-
updatedAt?: string | undefined;
|
|
170
|
-
type?: "audio" | "document" | "image" | "video" | undefined;
|
|
171
|
-
mediaType?: "audio" | "document" | "image" | "video" | undefined;
|
|
172
|
-
className?: string | undefined;
|
|
173
|
-
width?: number | undefined;
|
|
174
|
-
height?: number | undefined;
|
|
175
|
-
duration?: number | undefined;
|
|
176
|
-
blurhash?: string | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
cover?: {
|
|
179
|
-
mediaId?: string | undefined;
|
|
180
|
-
userId?: string | undefined;
|
|
181
|
-
orgId?: string | undefined;
|
|
182
|
-
agentId?: string | null | undefined;
|
|
183
|
-
filename?: string | undefined;
|
|
184
|
-
mimeType?: string | undefined;
|
|
185
|
-
size?: number | undefined;
|
|
186
|
-
src?: string | undefined;
|
|
187
|
-
alt?: string | undefined;
|
|
188
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
189
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
190
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
191
|
-
createdAt?: string | undefined;
|
|
192
|
-
updatedAt?: string | undefined;
|
|
193
|
-
type?: "audio" | "document" | "image" | "video" | undefined;
|
|
194
|
-
mediaType?: "audio" | "document" | "image" | "video" | undefined;
|
|
195
|
-
className?: string | undefined;
|
|
196
|
-
width?: number | undefined;
|
|
197
|
-
height?: number | undefined;
|
|
198
|
-
duration?: number | undefined;
|
|
199
|
-
blurhash?: string | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
email?: string | null | undefined;
|
|
202
|
-
website?: string | null | undefined;
|
|
203
|
-
accounts?: {
|
|
204
|
-
platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
|
|
205
|
-
handle: string;
|
|
206
|
-
}[] | null | undefined;
|
|
207
|
-
model?: string | null | undefined;
|
|
208
|
-
gender?: "woman" | "man" | undefined;
|
|
209
|
-
voiceKey?: "lauren" | "amy" | "eve" | "korina" | "tamsin" | "jessica" | "jude" | "adam" | "evan" | "jon" | "joe" | "julius" | "chuck" | null | undefined;
|
|
210
|
-
billingTier?: "essential" | "professional" | "business" | undefined;
|
|
211
|
-
lastActiveAt?: string | null | undefined;
|
|
212
|
-
lastMessageAt?: string | null | undefined;
|
|
213
|
-
runtime?: string | undefined;
|
|
214
|
-
timezone?: string | undefined;
|
|
215
|
-
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
216
|
-
routinePrimaryChannel?: string | undefined;
|
|
217
|
-
onboardingStage?: "identity" | "working-style" | "complete" | null | undefined;
|
|
218
|
-
onboardedAt?: string | null | undefined;
|
|
219
|
-
org?: {
|
|
220
|
-
orgId: string;
|
|
221
|
-
handle: string;
|
|
222
|
-
name: string;
|
|
223
|
-
status: string;
|
|
224
|
-
headline?: string | undefined;
|
|
225
|
-
summary?: string | undefined;
|
|
226
|
-
} | undefined;
|
|
227
|
-
owner?: {
|
|
228
|
-
userId: string;
|
|
229
|
-
fullName?: string | undefined;
|
|
230
|
-
avatar?: {
|
|
231
|
-
mediaId?: string | undefined;
|
|
232
|
-
userId?: string | undefined;
|
|
233
|
-
orgId?: string | undefined;
|
|
234
|
-
agentId?: string | null | undefined;
|
|
235
|
-
filename?: string | undefined;
|
|
236
|
-
mimeType?: string | undefined;
|
|
237
|
-
size?: number | undefined;
|
|
238
|
-
src?: string | undefined;
|
|
239
|
-
alt?: string | undefined;
|
|
240
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
241
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
242
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
243
|
-
createdAt?: string | undefined;
|
|
244
|
-
updatedAt?: string | undefined;
|
|
245
|
-
type?: "audio" | "document" | "image" | "video" | undefined;
|
|
246
|
-
mediaType?: "audio" | "document" | "image" | "video" | undefined;
|
|
247
|
-
className?: string | undefined;
|
|
248
|
-
width?: number | undefined;
|
|
249
|
-
height?: number | undefined;
|
|
250
|
-
duration?: number | undefined;
|
|
251
|
-
blurhash?: string | undefined;
|
|
252
|
-
} | undefined;
|
|
253
|
-
} | undefined;
|
|
254
|
-
visibility?: "org" | "private" | "public" | undefined;
|
|
255
|
-
status?: string | undefined;
|
|
256
|
-
createdAt?: string | undefined;
|
|
257
|
-
updatedAt?: string | undefined;
|
|
258
|
-
isPrimary?: boolean | undefined;
|
|
259
|
-
lifecycle?: "error" | "stopped" | "unknown" | "starting" | "running" | "degraded" | "unreachable" | "stopping" | undefined;
|
|
260
|
-
changedAt?: string | undefined;
|
|
261
|
-
detail?: string | undefined;
|
|
262
|
-
blocker?: {
|
|
263
|
-
bucket: "error" | "account";
|
|
264
|
-
code: "billing_no_plan" | "billing_seat_limit" | "billing_past_due" | "billing_runaway_cap" | "billing_budget_reached" | "billing_demo_spent" | "agent_deleted" | "agent_not_deployed" | "agent_boot_failed" | "agent_unreachable" | "agent_wake_timeout" | "stream_timeout" | "stream_disconnect" | "empty_stream" | "tool_protocol" | "rate_limit";
|
|
265
|
-
title: string;
|
|
266
|
-
actionLabel: string;
|
|
267
|
-
actionUrl: string;
|
|
268
|
-
help?: string | undefined;
|
|
269
|
-
} | undefined;
|
|
270
|
-
operation?: {
|
|
271
|
-
kind: "wake" | "sleep" | "restart" | "rebuild" | "config_apply" | "setup";
|
|
272
|
-
status: "failed" | "running" | "coalesced";
|
|
273
|
-
startedAt: string;
|
|
274
|
-
detail?: string | undefined;
|
|
275
|
-
} | undefined;
|
|
276
|
-
} | {
|
|
277
|
-
agentId?: string | undefined;
|
|
278
|
-
handle?: string | undefined;
|
|
279
|
-
ownerId?: string | undefined;
|
|
280
|
-
orgId?: string | undefined;
|
|
281
|
-
name?: string | undefined;
|
|
282
|
-
emoji?: string | null | undefined;
|
|
283
|
-
title?: string | null | undefined;
|
|
284
|
-
summary?: string | null | undefined;
|
|
285
|
-
entityType?: string | undefined;
|
|
286
|
-
avatarId?: string | null | undefined;
|
|
287
|
-
coverId?: string | null | undefined;
|
|
288
|
-
avatar?: {
|
|
289
|
-
mediaId?: string | undefined;
|
|
290
|
-
userId?: string | undefined;
|
|
291
|
-
orgId?: string | undefined;
|
|
292
|
-
agentId?: string | null | undefined;
|
|
293
|
-
filename?: string | undefined;
|
|
294
|
-
mimeType?: string | undefined;
|
|
295
|
-
size?: number | undefined;
|
|
296
|
-
src?: string | undefined;
|
|
297
|
-
alt?: string | undefined;
|
|
298
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
299
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
300
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
301
|
-
createdAt?: string | undefined;
|
|
302
|
-
updatedAt?: string | undefined;
|
|
303
|
-
type?: "audio" | "document" | "image" | "video" | undefined;
|
|
304
|
-
mediaType?: "audio" | "document" | "image" | "video" | undefined;
|
|
305
|
-
className?: string | undefined;
|
|
306
|
-
width?: number | undefined;
|
|
307
|
-
height?: number | undefined;
|
|
308
|
-
duration?: number | undefined;
|
|
309
|
-
blurhash?: string | undefined;
|
|
310
|
-
} | undefined;
|
|
311
|
-
cover?: {
|
|
312
|
-
mediaId?: string | undefined;
|
|
313
|
-
userId?: string | undefined;
|
|
314
|
-
orgId?: string | undefined;
|
|
315
|
-
agentId?: string | null | undefined;
|
|
316
|
-
filename?: string | undefined;
|
|
317
|
-
mimeType?: string | undefined;
|
|
318
|
-
size?: number | undefined;
|
|
319
|
-
src?: string | undefined;
|
|
320
|
-
alt?: string | undefined;
|
|
321
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
322
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
323
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
324
|
-
createdAt?: string | undefined;
|
|
325
|
-
updatedAt?: string | undefined;
|
|
326
|
-
type?: "audio" | "document" | "image" | "video" | undefined;
|
|
327
|
-
mediaType?: "audio" | "document" | "image" | "video" | undefined;
|
|
328
|
-
className?: string | undefined;
|
|
329
|
-
width?: number | undefined;
|
|
330
|
-
height?: number | undefined;
|
|
331
|
-
duration?: number | undefined;
|
|
332
|
-
blurhash?: string | undefined;
|
|
333
|
-
} | undefined;
|
|
334
|
-
email?: string | null | undefined;
|
|
335
|
-
website?: string | null | undefined;
|
|
336
|
-
accounts?: {
|
|
337
|
-
platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
|
|
338
|
-
handle: string;
|
|
339
|
-
}[] | null | undefined;
|
|
340
|
-
model?: string | null | undefined;
|
|
341
|
-
gender?: "woman" | "man" | undefined;
|
|
342
|
-
voiceKey?: "lauren" | "amy" | "eve" | "korina" | "tamsin" | "jessica" | "jude" | "adam" | "evan" | "jon" | "joe" | "julius" | "chuck" | null | undefined;
|
|
343
|
-
billingTier?: "essential" | "professional" | "business" | undefined;
|
|
344
|
-
lastActiveAt?: string | null | undefined;
|
|
345
|
-
lastMessageAt?: string | null | undefined;
|
|
346
|
-
runtime?: string | undefined;
|
|
347
|
-
timezone?: string | undefined;
|
|
348
|
-
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
349
|
-
routinePrimaryChannel?: string | undefined;
|
|
350
|
-
onboardingStage?: "identity" | "working-style" | "complete" | null | undefined;
|
|
351
|
-
onboardedAt?: string | null | undefined;
|
|
352
|
-
org?: {
|
|
353
|
-
orgId: string;
|
|
354
|
-
handle: string;
|
|
355
|
-
name: string;
|
|
356
|
-
status: string;
|
|
357
|
-
headline?: string | undefined;
|
|
358
|
-
summary?: string | undefined;
|
|
359
|
-
} | undefined;
|
|
360
|
-
owner?: {
|
|
361
|
-
userId: string;
|
|
362
|
-
fullName?: string | undefined;
|
|
363
|
-
avatar?: {
|
|
364
|
-
mediaId?: string | undefined;
|
|
365
|
-
userId?: string | undefined;
|
|
366
|
-
orgId?: string | undefined;
|
|
367
|
-
agentId?: string | null | undefined;
|
|
368
|
-
filename?: string | undefined;
|
|
369
|
-
mimeType?: string | undefined;
|
|
370
|
-
size?: number | undefined;
|
|
371
|
-
src?: string | undefined;
|
|
372
|
-
alt?: string | undefined;
|
|
373
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
374
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
375
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
376
|
-
createdAt?: string | undefined;
|
|
377
|
-
updatedAt?: string | undefined;
|
|
378
|
-
type?: "audio" | "document" | "image" | "video" | undefined;
|
|
379
|
-
mediaType?: "audio" | "document" | "image" | "video" | undefined;
|
|
380
|
-
className?: string | undefined;
|
|
381
|
-
width?: number | undefined;
|
|
382
|
-
height?: number | undefined;
|
|
383
|
-
duration?: number | undefined;
|
|
384
|
-
blurhash?: string | undefined;
|
|
385
|
-
} | undefined;
|
|
386
|
-
} | undefined;
|
|
387
|
-
visibility?: "org" | "private" | "public" | undefined;
|
|
388
|
-
status?: string | undefined;
|
|
389
|
-
createdAt?: string | undefined;
|
|
390
|
-
updatedAt?: string | undefined;
|
|
391
|
-
isPrimary?: boolean | undefined;
|
|
392
|
-
lifecycle?: "error" | "stopped" | "unknown" | "starting" | "running" | "degraded" | "unreachable" | "stopping" | undefined;
|
|
393
|
-
changedAt?: string | undefined;
|
|
394
|
-
detail?: string | undefined;
|
|
395
|
-
blocker?: {
|
|
396
|
-
bucket: "error" | "account";
|
|
397
|
-
code: "billing_no_plan" | "billing_seat_limit" | "billing_past_due" | "billing_runaway_cap" | "billing_budget_reached" | "billing_demo_spent" | "agent_deleted" | "agent_not_deployed" | "agent_boot_failed" | "agent_unreachable" | "agent_wake_timeout" | "stream_timeout" | "stream_disconnect" | "empty_stream" | "tool_protocol" | "rate_limit";
|
|
398
|
-
title: string;
|
|
399
|
-
actionLabel: string;
|
|
400
|
-
actionUrl: string;
|
|
401
|
-
help?: string | undefined;
|
|
402
|
-
} | undefined;
|
|
403
|
-
operation?: {
|
|
404
|
-
kind: "wake" | "sleep" | "restart" | "rebuild" | "config_apply" | "setup";
|
|
405
|
-
status: "failed" | "running" | "coalesced";
|
|
406
|
-
startedAt: string;
|
|
407
|
-
detail?: string | undefined;
|
|
408
|
-
} | undefined;
|
|
409
|
-
} | undefined>;
|
|
10
|
+
currentBot: import('vue').ShallowRef<Bot | undefined, Bot | undefined>;
|
|
410
11
|
currentContext: import('vue').Ref<string | undefined, string | undefined>;
|
|
411
12
|
currentFirstMessage: import('vue').Ref<string | undefined, string | undefined>;
|
|
412
13
|
currentButtonText: import('vue').Ref<string | undefined, string | undefined>;
|
package/dist/widget/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PLWidget } from './PLWidget';
|
|
2
2
|
export type { WidgetConfig, WidgetUpdate, WidgetMode, ButtonIconPreset } from './PLWidget';
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
3
|
+
export { default as BotWidgetPopup } from './ui/BotWidgetPopup.vue';
|
|
4
|
+
export { default as BotWidgetOnboard } from './ui/BotWidgetOnboard.vue';
|
package/dist/widget/mode.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type OnboardMode = 'auth' | 'create' | 'provisioning' | 'error' | 'chat';
|
|
2
2
|
export declare function deriveOnboardMode(args: {
|
|
3
3
|
hasToken: boolean;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
hasBot: boolean;
|
|
5
|
+
isNewBot: boolean;
|
|
6
6
|
botReady: boolean;
|
|
7
7
|
provisionError?: string;
|
|
8
8
|
}): OnboardMode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
import {
|
|
2
|
+
import { Bot } from '../../bot/schema';
|
|
3
3
|
import { ButtonIconPreset } from '../PLWidget';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
sdk?: PageLinesSDK;
|
|
6
6
|
handle?: string;
|
|
7
|
-
|
|
7
|
+
bot?: Bot;
|
|
8
8
|
context?: string;
|
|
9
9
|
firstMessage?: string;
|
|
10
10
|
buttonText?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
import {
|
|
2
|
+
import { Bot } from '../../bot/schema';
|
|
3
3
|
import { ButtonIconPreset } from '../PLWidget';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
sdk?: PageLinesSDK;
|
|
6
6
|
handle?: string;
|
|
7
|
-
|
|
7
|
+
bot?: Bot;
|
|
8
8
|
context?: string;
|
|
9
9
|
firstMessage?: string;
|
|
10
10
|
buttonText?: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BotChatController } from '../../bot/BotController';
|
|
2
2
|
import { PageLinesSDK } from '../../sdkClient';
|
|
3
|
-
import {
|
|
3
|
+
import { Bot } from '../../bot/schema';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
sdk?: PageLinesSDK;
|
|
6
6
|
handle?: string;
|
|
7
|
-
|
|
7
|
+
bot?: Bot;
|
|
8
8
|
context?: string;
|
|
9
9
|
firstMessage?: string;
|
|
10
10
|
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
11
|
-
chatController?:
|
|
11
|
+
chatController?: BotChatController;
|
|
12
12
|
};
|
|
13
13
|
declare function toggle(): void;
|
|
14
14
|
declare function open(): void;
|