@pagelines/sdk 1.0.404 → 1.0.405
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 +1 -1
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/package.json +28 -28
- package/dist/agent/AgentController.d.ts +0 -65
- package/dist/agent/index.d.ts +0 -10
- package/dist/agent/schema.d.ts +0 -41
- package/dist/agent/test/AgentController.test.d.ts +0 -1
- package/dist/agent/test/utils.test.d.ts +0 -1
- package/dist/agent/test/webhook.test.d.ts +0 -1
- package/dist/agent/ui/AgentChat.vue.d.ts +0 -28
- package/dist/agent/ui/AgentInputEmail.vue.d.ts +0 -9
- package/dist/agent/ui/AgentInputOneTimeCode.vue.d.ts +0 -13
- package/dist/agent/ui/AgentModal.vue.d.ts +0 -16
- package/dist/agent/ui/AgentProvider.vue.d.ts +0 -23
- package/dist/agent/ui/AgentSidebarClose.vue.d.ts +0 -6
- package/dist/agent/ui/AgentWidget.vue.d.ts +0 -17
- package/dist/agent/ui/AgentWrap.vue.d.ts +0 -50
- package/dist/agent/ui/ElAgentAbout.vue.d.ts +0 -7
- package/dist/agent/ui/ElAgentButton.vue.d.ts +0 -26
- package/dist/agent/ui/ElAgentChat.vue.d.ts +0 -21
- package/dist/agent/ui/ElAgentHeader.vue.d.ts +0 -7
- package/dist/agent/ui/ElAgentModeSidebar.vue.d.ts +0 -11
- package/dist/agent/ui/ElAgentSidebar.vue.d.ts +0 -14
- package/dist/agent/ui/ElAuthGate.vue.d.ts +0 -6
- package/dist/agent/ui/ElAuthPanel.vue.d.ts +0 -6
- package/dist/agent/ui/ElCreateAgent.vue.d.ts +0 -186
- package/dist/agent/ui/ElModeHeader.vue.d.ts +0 -9
- package/dist/agent/ui/ElProvisioningStatus.vue.d.ts +0 -13
- package/dist/agent/ui/ElSidebar.vue.d.ts +0 -30
- package/dist/agent/utils.d.ts +0 -35
- package/dist/api.d.ts +0 -28
- package/dist/clients/AgentClient.d.ts +0 -39
- package/dist/clients/AuthClient.d.ts +0 -23
- package/dist/clients/ChatClient.d.ts +0 -59
- package/dist/clients/UserClient.d.ts +0 -18
- package/dist/clients/types.d.ts +0 -21
- package/dist/constants/socialPlatforms.d.ts +0 -10
- package/dist/demo/index.d.ts +0 -104
- package/dist/index.d.ts +0 -12
- package/dist/sdkClient.d.ts +0 -689
- package/dist/sdkStorage.d.ts +0 -39
- package/dist/test/agent-client.test.d.ts +0 -4
- package/dist/test/api.test.d.ts +0 -1
- package/dist/test/build.test.d.ts +0 -1
- package/dist/test/chat-authenticated.test.d.ts +0 -1
- package/dist/test/derive-mode.test.d.ts +0 -1
- package/dist/types/SDKAppType.stub.d.ts +0 -6
- package/dist/vite.config.sdk.d.ts +0 -2
- package/dist/vitest.config.d.ts +0 -2
- package/dist/widget/PLWidget.d.ts +0 -64
- package/dist/widget/composables/usePLWidget.d.ts +0 -57
- package/dist/widget/composables/useWidgetState.d.ts +0 -280
- package/dist/widget/index.d.ts +0 -6
- package/dist/widget/ui/AgentWidgetInline.vue.d.ts +0 -17
- package/dist/widget/ui/AgentWidgetModal.vue.d.ts +0 -22
- package/dist/widget/ui/AgentWidgetOnboard.vue.d.ts +0 -7
- package/dist/widget/ui/AgentWidgetPopup.vue.d.ts +0 -22
package/dist/sdkStorage.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { EnrichedUser } from '@pagelines/core';
|
|
3
|
-
/**
|
|
4
|
-
* SDKStorage - Handles all storage, sync, and persistence for PageLinesSDK
|
|
5
|
-
*
|
|
6
|
-
* Extracted from PageLinesSDK to keep the main class focused on public API methods.
|
|
7
|
-
* Manages localStorage, cookies, and nanostor synchronization for state persistence.
|
|
8
|
-
*/
|
|
9
|
-
export declare class SDKStorage {
|
|
10
|
-
private logger;
|
|
11
|
-
/**
|
|
12
|
-
* Check if localStorage is fully functional (some test environments provide partial mocks)
|
|
13
|
-
*/
|
|
14
|
-
private isLocalStorageFunctional;
|
|
15
|
-
/**
|
|
16
|
-
* Sync Vue reactive refs with global nanostores for cross-page persistence
|
|
17
|
-
*/
|
|
18
|
-
syncWithGlobalStores(activeUser: Ref<EnrichedUser | undefined>, token: Ref<string | null>): void;
|
|
19
|
-
/**
|
|
20
|
-
* Load user and token from browser storage on initialization
|
|
21
|
-
*/
|
|
22
|
-
loadFromStorage(activeUser: Ref<EnrichedUser | undefined>, token: Ref<string | null>): void;
|
|
23
|
-
/**
|
|
24
|
-
* Save current user and token to browser storage
|
|
25
|
-
*/
|
|
26
|
-
saveToStorage(activeUser: Ref<EnrichedUser | undefined>, token: Ref<string | null>): void;
|
|
27
|
-
/**
|
|
28
|
-
* Clear all stored user data and tokens
|
|
29
|
-
*/
|
|
30
|
-
clearStorage(): void;
|
|
31
|
-
/**
|
|
32
|
-
* Generic localStorage getter
|
|
33
|
-
*/
|
|
34
|
-
getItem(key: string): string | null;
|
|
35
|
-
/**
|
|
36
|
-
* Generic localStorage setter
|
|
37
|
-
*/
|
|
38
|
-
setItem(key: string, value: string): void;
|
|
39
|
-
}
|
package/dist/test/api.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/vitest.config.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { AgentConfig } from '@pagelines/core';
|
|
2
|
-
import { AgentChatController } from '../agent/AgentController';
|
|
3
|
-
export type WidgetMode = 'inline' | 'button' | 'popup' | 'modal' | 'onboard';
|
|
4
|
-
export type ButtonIconPreset = 'phone' | 'calendar' | 'question' | 'message' | 'sparkles';
|
|
5
|
-
export interface WidgetConfig {
|
|
6
|
-
el?: HTMLElement;
|
|
7
|
-
mode: WidgetMode;
|
|
8
|
-
handle?: string;
|
|
9
|
-
agent?: AgentConfig;
|
|
10
|
-
context?: string;
|
|
11
|
-
firstMessage?: string;
|
|
12
|
-
buttonText?: string;
|
|
13
|
-
buttonIcon?: ButtonIconPreset;
|
|
14
|
-
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
15
|
-
chatOnly?: boolean;
|
|
16
|
-
chatController?: AgentChatController;
|
|
17
|
-
apiBase?: string;
|
|
18
|
-
onClose?: () => void;
|
|
19
|
-
}
|
|
20
|
-
export interface WidgetUpdate {
|
|
21
|
-
agent?: AgentConfig;
|
|
22
|
-
context?: string;
|
|
23
|
-
firstMessage?: string;
|
|
24
|
-
buttonText?: string;
|
|
25
|
-
buttonIcon?: ButtonIconPreset;
|
|
26
|
-
}
|
|
27
|
-
export declare class PLWidget {
|
|
28
|
-
private app;
|
|
29
|
-
private shadowRoot;
|
|
30
|
-
private widgetInstance;
|
|
31
|
-
private config;
|
|
32
|
-
private sdk;
|
|
33
|
-
private container;
|
|
34
|
-
private static modalInstances;
|
|
35
|
-
/**
|
|
36
|
-
* Auto-collect page context from the current document.
|
|
37
|
-
* Returns a concise summary string the agent can use to understand
|
|
38
|
-
* where the visitor is on the site.
|
|
39
|
-
*/
|
|
40
|
-
static collectPageContext(): string;
|
|
41
|
-
constructor(config: WidgetConfig);
|
|
42
|
-
private init;
|
|
43
|
-
private mountMode;
|
|
44
|
-
/**
|
|
45
|
-
* Update widget with new configuration without re-mounting
|
|
46
|
-
*/
|
|
47
|
-
update(updates: WidgetUpdate): void;
|
|
48
|
-
/**
|
|
49
|
-
* Toggle widget visibility (popup mode only)
|
|
50
|
-
*/
|
|
51
|
-
toggle(): void;
|
|
52
|
-
/**
|
|
53
|
-
* Open widget (popup mode only)
|
|
54
|
-
*/
|
|
55
|
-
open(): void;
|
|
56
|
-
/**
|
|
57
|
-
* Close widget (popup mode only)
|
|
58
|
-
*/
|
|
59
|
-
close(): void;
|
|
60
|
-
/**
|
|
61
|
-
* Destroy widget and cleanup
|
|
62
|
-
*/
|
|
63
|
-
destroy(): void;
|
|
64
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { MaybeRef } from 'vue';
|
|
2
|
-
import { AgentConfig } from '@pagelines/core';
|
|
3
|
-
import { WidgetConfig, WidgetUpdate, PLWidget } from '../PLWidget';
|
|
4
|
-
export interface UsePLWidgetConfig {
|
|
5
|
-
mode: WidgetConfig['mode'];
|
|
6
|
-
handle?: MaybeRef<string | undefined>;
|
|
7
|
-
agent?: MaybeRef<AgentConfig | null | undefined>;
|
|
8
|
-
context?: MaybeRef<string | undefined>;
|
|
9
|
-
firstMessage?: MaybeRef<string | undefined>;
|
|
10
|
-
apiBase?: string;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Composable for managing PLWidget lifecycle with automatic initialization,
|
|
15
|
-
* reactive updates, and cleanup.
|
|
16
|
-
*
|
|
17
|
-
* Benefits:
|
|
18
|
-
* - Eliminates manual DOM timing coordination (watch + nextTick)
|
|
19
|
-
* - Automatic cleanup on unmount
|
|
20
|
-
* - Reactive prop updates via widget.update()
|
|
21
|
-
* - Prevents double initialization
|
|
22
|
-
* - Clear loading/error states
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```vue
|
|
26
|
-
* <script setup>
|
|
27
|
-
* const agentRef = ref<Agent | null>(null)
|
|
28
|
-
* const { containerRef, loading, error } = usePLWidget({
|
|
29
|
-
* mode: 'inline',
|
|
30
|
-
* agent: agentRef,
|
|
31
|
-
* context: 'welcome'
|
|
32
|
-
* })
|
|
33
|
-
* </script>
|
|
34
|
-
*
|
|
35
|
-
* <template>
|
|
36
|
-
* <div ref="containerRef" class="w-full h-full" />
|
|
37
|
-
* </template>
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare function usePLWidget(config: UsePLWidgetConfig): {
|
|
41
|
-
containerRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
42
|
-
widget: import('vue').Ref<{
|
|
43
|
-
update: (updates: WidgetUpdate) => void;
|
|
44
|
-
toggle: () => void;
|
|
45
|
-
open: () => void;
|
|
46
|
-
close: () => void;
|
|
47
|
-
destroy: () => void;
|
|
48
|
-
} | null, PLWidget | {
|
|
49
|
-
update: (updates: WidgetUpdate) => void;
|
|
50
|
-
toggle: () => void;
|
|
51
|
-
open: () => void;
|
|
52
|
-
close: () => void;
|
|
53
|
-
destroy: () => void;
|
|
54
|
-
} | null>;
|
|
55
|
-
loading: import('vue').Ref<boolean, boolean>;
|
|
56
|
-
error: import('vue').Ref<string | null, string | null>;
|
|
57
|
-
};
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { AgentConfig } from '../../agent/schema';
|
|
2
|
-
import { ButtonIconPreset, WidgetUpdate } from '../PLWidget';
|
|
3
|
-
export declare function useWidgetState(props: {
|
|
4
|
-
agent?: AgentConfig;
|
|
5
|
-
context?: string;
|
|
6
|
-
firstMessage?: string;
|
|
7
|
-
buttonText?: string;
|
|
8
|
-
buttonIcon?: ButtonIconPreset;
|
|
9
|
-
}): {
|
|
10
|
-
currentAgent: import('vue').Ref<{
|
|
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
|
-
mediaType?: "image" | "video" | "audio" | undefined;
|
|
38
|
-
className?: string | undefined;
|
|
39
|
-
width?: number | undefined;
|
|
40
|
-
height?: number | undefined;
|
|
41
|
-
duration?: number | undefined;
|
|
42
|
-
blurhash?: string | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
cover?: {
|
|
45
|
-
mediaId?: string | undefined;
|
|
46
|
-
userId?: string | undefined;
|
|
47
|
-
orgId?: string | undefined;
|
|
48
|
-
agentId?: string | null | undefined;
|
|
49
|
-
filename?: string | undefined;
|
|
50
|
-
mimeType?: string | undefined;
|
|
51
|
-
size?: number | undefined;
|
|
52
|
-
src?: string | undefined;
|
|
53
|
-
alt?: string | undefined;
|
|
54
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
55
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
56
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
57
|
-
createdAt?: string | undefined;
|
|
58
|
-
updatedAt?: string | undefined;
|
|
59
|
-
mediaType?: "image" | "video" | "audio" | undefined;
|
|
60
|
-
className?: string | undefined;
|
|
61
|
-
width?: number | undefined;
|
|
62
|
-
height?: number | undefined;
|
|
63
|
-
duration?: number | undefined;
|
|
64
|
-
blurhash?: string | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
email?: string | null | undefined;
|
|
67
|
-
website?: string | null | undefined;
|
|
68
|
-
accounts?: {
|
|
69
|
-
platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
|
|
70
|
-
handle: string;
|
|
71
|
-
}[] | null | undefined;
|
|
72
|
-
model?: string | null | undefined;
|
|
73
|
-
lastActivityAt?: string | null | undefined;
|
|
74
|
-
lastMessageAt?: string | null | undefined;
|
|
75
|
-
instanceId?: string | null | undefined;
|
|
76
|
-
instanceProvider?: string | null | undefined;
|
|
77
|
-
imageVersion?: string | null | undefined;
|
|
78
|
-
deployEnv?: string | undefined;
|
|
79
|
-
consecutiveRestarts?: number | null | undefined;
|
|
80
|
-
lastRestartAt?: string | null | undefined;
|
|
81
|
-
botServerUrl?: string | null | undefined;
|
|
82
|
-
botLastPingAt?: string | null | undefined;
|
|
83
|
-
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
84
|
-
onboardedAt?: string | null | undefined;
|
|
85
|
-
org?: {
|
|
86
|
-
orgId: string;
|
|
87
|
-
handle: string;
|
|
88
|
-
name: string;
|
|
89
|
-
status: string;
|
|
90
|
-
headline?: string | undefined;
|
|
91
|
-
summary?: string | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
visibility?: "org" | "private" | "public" | undefined;
|
|
94
|
-
status?: string | undefined;
|
|
95
|
-
createdAt?: string | undefined;
|
|
96
|
-
updatedAt?: string | undefined;
|
|
97
|
-
isPrimary?: boolean | undefined;
|
|
98
|
-
} | undefined, {
|
|
99
|
-
agentId?: string | undefined;
|
|
100
|
-
handle?: string | undefined;
|
|
101
|
-
ownerId?: string | undefined;
|
|
102
|
-
orgId?: string | undefined;
|
|
103
|
-
name?: string | undefined;
|
|
104
|
-
emoji?: string | null | undefined;
|
|
105
|
-
title?: string | null | undefined;
|
|
106
|
-
summary?: string | null | undefined;
|
|
107
|
-
entityType?: string | undefined;
|
|
108
|
-
avatarId?: string | null | undefined;
|
|
109
|
-
coverId?: string | null | undefined;
|
|
110
|
-
avatar?: {
|
|
111
|
-
mediaId?: string | undefined;
|
|
112
|
-
userId?: string | undefined;
|
|
113
|
-
orgId?: string | undefined;
|
|
114
|
-
agentId?: string | null | undefined;
|
|
115
|
-
filename?: string | undefined;
|
|
116
|
-
mimeType?: string | undefined;
|
|
117
|
-
size?: number | undefined;
|
|
118
|
-
src?: string | undefined;
|
|
119
|
-
alt?: string | undefined;
|
|
120
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
121
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
122
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
123
|
-
createdAt?: string | undefined;
|
|
124
|
-
updatedAt?: string | undefined;
|
|
125
|
-
mediaType?: "image" | "video" | "audio" | undefined;
|
|
126
|
-
className?: string | undefined;
|
|
127
|
-
width?: number | undefined;
|
|
128
|
-
height?: number | undefined;
|
|
129
|
-
duration?: number | undefined;
|
|
130
|
-
blurhash?: string | undefined;
|
|
131
|
-
} | undefined;
|
|
132
|
-
cover?: {
|
|
133
|
-
mediaId?: string | undefined;
|
|
134
|
-
userId?: string | undefined;
|
|
135
|
-
orgId?: string | undefined;
|
|
136
|
-
agentId?: string | null | undefined;
|
|
137
|
-
filename?: string | undefined;
|
|
138
|
-
mimeType?: string | undefined;
|
|
139
|
-
size?: number | undefined;
|
|
140
|
-
src?: string | undefined;
|
|
141
|
-
alt?: string | undefined;
|
|
142
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
143
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
144
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
145
|
-
createdAt?: string | undefined;
|
|
146
|
-
updatedAt?: string | undefined;
|
|
147
|
-
mediaType?: "image" | "video" | "audio" | undefined;
|
|
148
|
-
className?: string | undefined;
|
|
149
|
-
width?: number | undefined;
|
|
150
|
-
height?: number | undefined;
|
|
151
|
-
duration?: number | undefined;
|
|
152
|
-
blurhash?: string | undefined;
|
|
153
|
-
} | undefined;
|
|
154
|
-
email?: string | null | undefined;
|
|
155
|
-
website?: string | null | undefined;
|
|
156
|
-
accounts?: {
|
|
157
|
-
platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
|
|
158
|
-
handle: string;
|
|
159
|
-
}[] | null | undefined;
|
|
160
|
-
model?: string | null | undefined;
|
|
161
|
-
lastActivityAt?: string | null | undefined;
|
|
162
|
-
lastMessageAt?: string | null | undefined;
|
|
163
|
-
instanceId?: string | null | undefined;
|
|
164
|
-
instanceProvider?: string | null | undefined;
|
|
165
|
-
imageVersion?: string | null | undefined;
|
|
166
|
-
deployEnv?: string | undefined;
|
|
167
|
-
consecutiveRestarts?: number | null | undefined;
|
|
168
|
-
lastRestartAt?: string | null | undefined;
|
|
169
|
-
botServerUrl?: string | null | undefined;
|
|
170
|
-
botLastPingAt?: string | null | undefined;
|
|
171
|
-
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
172
|
-
onboardedAt?: string | null | undefined;
|
|
173
|
-
org?: {
|
|
174
|
-
orgId: string;
|
|
175
|
-
handle: string;
|
|
176
|
-
name: string;
|
|
177
|
-
status: string;
|
|
178
|
-
headline?: string | undefined;
|
|
179
|
-
summary?: string | undefined;
|
|
180
|
-
} | undefined;
|
|
181
|
-
visibility?: "org" | "private" | "public" | undefined;
|
|
182
|
-
status?: string | undefined;
|
|
183
|
-
createdAt?: string | undefined;
|
|
184
|
-
updatedAt?: string | undefined;
|
|
185
|
-
isPrimary?: boolean | undefined;
|
|
186
|
-
} | {
|
|
187
|
-
agentId?: string | undefined;
|
|
188
|
-
handle?: string | undefined;
|
|
189
|
-
ownerId?: string | undefined;
|
|
190
|
-
orgId?: string | undefined;
|
|
191
|
-
name?: string | undefined;
|
|
192
|
-
emoji?: string | null | undefined;
|
|
193
|
-
title?: string | null | undefined;
|
|
194
|
-
summary?: string | null | undefined;
|
|
195
|
-
entityType?: string | undefined;
|
|
196
|
-
avatarId?: string | null | undefined;
|
|
197
|
-
coverId?: string | null | undefined;
|
|
198
|
-
avatar?: {
|
|
199
|
-
mediaId?: string | undefined;
|
|
200
|
-
userId?: string | undefined;
|
|
201
|
-
orgId?: string | undefined;
|
|
202
|
-
agentId?: string | null | undefined;
|
|
203
|
-
filename?: string | undefined;
|
|
204
|
-
mimeType?: string | undefined;
|
|
205
|
-
size?: number | undefined;
|
|
206
|
-
src?: string | undefined;
|
|
207
|
-
alt?: string | undefined;
|
|
208
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
209
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
210
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
211
|
-
createdAt?: string | undefined;
|
|
212
|
-
updatedAt?: string | undefined;
|
|
213
|
-
mediaType?: "image" | "video" | "audio" | undefined;
|
|
214
|
-
className?: string | undefined;
|
|
215
|
-
width?: number | undefined;
|
|
216
|
-
height?: number | undefined;
|
|
217
|
-
duration?: number | undefined;
|
|
218
|
-
blurhash?: string | undefined;
|
|
219
|
-
} | undefined;
|
|
220
|
-
cover?: {
|
|
221
|
-
mediaId?: string | undefined;
|
|
222
|
-
userId?: string | undefined;
|
|
223
|
-
orgId?: string | undefined;
|
|
224
|
-
agentId?: string | null | undefined;
|
|
225
|
-
filename?: string | undefined;
|
|
226
|
-
mimeType?: string | undefined;
|
|
227
|
-
size?: number | undefined;
|
|
228
|
-
src?: string | undefined;
|
|
229
|
-
alt?: string | undefined;
|
|
230
|
-
context?: "avatar" | "cover" | "general" | undefined;
|
|
231
|
-
status?: "processing" | "active" | "failed" | "deleted" | undefined;
|
|
232
|
-
quality?: "high" | "low" | "standard" | undefined;
|
|
233
|
-
createdAt?: string | undefined;
|
|
234
|
-
updatedAt?: string | undefined;
|
|
235
|
-
mediaType?: "image" | "video" | "audio" | undefined;
|
|
236
|
-
className?: string | undefined;
|
|
237
|
-
width?: number | undefined;
|
|
238
|
-
height?: number | undefined;
|
|
239
|
-
duration?: number | undefined;
|
|
240
|
-
blurhash?: string | undefined;
|
|
241
|
-
} | undefined;
|
|
242
|
-
email?: string | null | undefined;
|
|
243
|
-
website?: string | null | undefined;
|
|
244
|
-
accounts?: {
|
|
245
|
-
platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
|
|
246
|
-
handle: string;
|
|
247
|
-
}[] | null | undefined;
|
|
248
|
-
model?: string | null | undefined;
|
|
249
|
-
lastActivityAt?: string | null | undefined;
|
|
250
|
-
lastMessageAt?: string | null | undefined;
|
|
251
|
-
instanceId?: string | null | undefined;
|
|
252
|
-
instanceProvider?: string | null | undefined;
|
|
253
|
-
imageVersion?: string | null | undefined;
|
|
254
|
-
deployEnv?: string | undefined;
|
|
255
|
-
consecutiveRestarts?: number | null | undefined;
|
|
256
|
-
lastRestartAt?: string | null | undefined;
|
|
257
|
-
botServerUrl?: string | null | undefined;
|
|
258
|
-
botLastPingAt?: string | null | undefined;
|
|
259
|
-
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
260
|
-
onboardedAt?: string | null | undefined;
|
|
261
|
-
org?: {
|
|
262
|
-
orgId: string;
|
|
263
|
-
handle: string;
|
|
264
|
-
name: string;
|
|
265
|
-
status: string;
|
|
266
|
-
headline?: string | undefined;
|
|
267
|
-
summary?: string | undefined;
|
|
268
|
-
} | undefined;
|
|
269
|
-
visibility?: "org" | "private" | "public" | undefined;
|
|
270
|
-
status?: string | undefined;
|
|
271
|
-
createdAt?: string | undefined;
|
|
272
|
-
updatedAt?: string | undefined;
|
|
273
|
-
isPrimary?: boolean | undefined;
|
|
274
|
-
} | undefined>;
|
|
275
|
-
currentContext: import('vue').Ref<string | undefined, string | undefined>;
|
|
276
|
-
currentFirstMessage: import('vue').Ref<string | undefined, string | undefined>;
|
|
277
|
-
currentButtonText: import('vue').Ref<string | undefined, string | undefined>;
|
|
278
|
-
currentButtonIcon: import('vue').Ref<ButtonIconPreset | undefined, ButtonIconPreset | undefined>;
|
|
279
|
-
update: (updates: WidgetUpdate) => void;
|
|
280
|
-
};
|
package/dist/widget/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { PLWidget } from './PLWidget';
|
|
2
|
-
export type { WidgetConfig, WidgetUpdate, WidgetMode, ButtonIconPreset } from './PLWidget';
|
|
3
|
-
export { usePLWidget } from './composables/usePLWidget';
|
|
4
|
-
export type { UsePLWidgetConfig } from './composables/usePLWidget';
|
|
5
|
-
export { default as AgentWidgetPopup } from './ui/AgentWidgetPopup.vue';
|
|
6
|
-
export { default as AgentWidgetOnboard } from './ui/AgentWidgetOnboard.vue';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
import { AgentConfig } from '../../agent/schema';
|
|
3
|
-
import { ButtonIconPreset } from '../PLWidget';
|
|
4
|
-
type __VLS_Props = {
|
|
5
|
-
sdk?: PageLinesSDK;
|
|
6
|
-
handle?: string;
|
|
7
|
-
agent?: AgentConfig;
|
|
8
|
-
context?: string;
|
|
9
|
-
firstMessage?: string;
|
|
10
|
-
buttonText?: string;
|
|
11
|
-
buttonIcon?: ButtonIconPreset;
|
|
12
|
-
chatOnly?: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
15
|
-
update: (updates: import('..').WidgetUpdate) => void;
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
import { AgentConfig } from '../../agent/schema';
|
|
3
|
-
import { ButtonIconPreset } from '../PLWidget';
|
|
4
|
-
type __VLS_Props = {
|
|
5
|
-
sdk?: PageLinesSDK;
|
|
6
|
-
handle?: string;
|
|
7
|
-
agent?: AgentConfig;
|
|
8
|
-
context?: string;
|
|
9
|
-
firstMessage?: string;
|
|
10
|
-
buttonText?: string;
|
|
11
|
-
buttonIcon?: ButtonIconPreset;
|
|
12
|
-
chatOnly?: boolean;
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
};
|
|
15
|
-
declare function close(): void;
|
|
16
|
-
declare function open(): void;
|
|
17
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
18
|
-
update: (updates: import('..').WidgetUpdate) => void;
|
|
19
|
-
close: typeof close;
|
|
20
|
-
open: typeof open;
|
|
21
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
sdk?: PageLinesSDK;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AgentChatController } from '../../agent/AgentController';
|
|
2
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
3
|
-
import { AgentConfig } from '../../agent/schema';
|
|
4
|
-
type __VLS_Props = {
|
|
5
|
-
sdk?: PageLinesSDK;
|
|
6
|
-
handle?: string;
|
|
7
|
-
agent?: AgentConfig;
|
|
8
|
-
context?: string;
|
|
9
|
-
firstMessage?: string;
|
|
10
|
-
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
11
|
-
chatController?: AgentChatController;
|
|
12
|
-
};
|
|
13
|
-
declare function toggle(): void;
|
|
14
|
-
declare function open(): void;
|
|
15
|
-
declare function close(): void;
|
|
16
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
17
|
-
toggle: typeof toggle;
|
|
18
|
-
open: typeof open;
|
|
19
|
-
close: typeof close;
|
|
20
|
-
update: (updates: import('..').WidgetUpdate) => void;
|
|
21
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
-
export default _default;
|