@pagelines/sdk 1.0.403 → 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/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagelines/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.405",
|
|
4
4
|
"description": "PageLines SDK for agent management, auth, and billing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/sdk.js",
|
|
7
7
|
"module": "./dist/sdk.js",
|
|
8
|
-
"types": "./
|
|
8
|
+
"types": "./index.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"types": "./index.ts",
|
|
12
|
+
"import": "./dist/sdk.js"
|
|
13
13
|
},
|
|
14
14
|
"./agent": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"types": "./agent/index.ts",
|
|
16
|
+
"import": "./dist/agent.js"
|
|
17
17
|
},
|
|
18
18
|
"./demo": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"types": "./demo/index.ts",
|
|
20
|
+
"import": "./dist/demo.js"
|
|
21
21
|
},
|
|
22
22
|
"./widget": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"types": "./widget/index.ts",
|
|
24
|
+
"import": "./dist/widget.js"
|
|
25
25
|
},
|
|
26
26
|
"./constants": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"types": "./constants/socialPlatforms.ts",
|
|
28
|
+
"import": "./dist/constants/socialPlatforms.js"
|
|
29
29
|
},
|
|
30
30
|
"./sdk.css": {
|
|
31
31
|
"import": "./dist/sdk.css",
|
|
@@ -55,30 +55,30 @@
|
|
|
55
55
|
"vue": "^3.5.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@nanostores/vue": "^1.0
|
|
59
|
-
"hono": "
|
|
60
|
-
"nanoid": "^5.1.
|
|
61
|
-
"nanostores": "^1.
|
|
58
|
+
"@nanostores/vue": "^1.1.0",
|
|
59
|
+
"hono": "4.12.9",
|
|
60
|
+
"nanoid": "^5.1.7",
|
|
61
|
+
"nanostores": "^1.2.0",
|
|
62
62
|
"zod": "^4.3.6",
|
|
63
63
|
"@pagelines/core": "1.0.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@antfu/eslint-config": "^7.7.
|
|
67
|
-
"@iconify-json/devicon": "^1.2.
|
|
66
|
+
"@antfu/eslint-config": "^7.7.3",
|
|
67
|
+
"@iconify-json/devicon": "^1.2.61",
|
|
68
68
|
"@iconify-json/heroicons": "^1.2.3",
|
|
69
|
-
"@iconify-json/logos": "^1.2.
|
|
70
|
-
"@iconify-json/lucide": "^1.2.
|
|
71
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
72
|
-
"@iconify-json/tabler": "^1.2.
|
|
73
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
74
|
-
"eslint": "^
|
|
75
|
-
"terser": "^5.46.
|
|
76
|
-
"typescript": "^
|
|
69
|
+
"@iconify-json/logos": "^1.2.11",
|
|
70
|
+
"@iconify-json/lucide": "^1.2.100",
|
|
71
|
+
"@iconify-json/simple-icons": "^1.2.75",
|
|
72
|
+
"@iconify-json/tabler": "^1.2.33",
|
|
73
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
74
|
+
"eslint": "^10.1.0",
|
|
75
|
+
"terser": "^5.46.1",
|
|
76
|
+
"typescript": "^6.0.2",
|
|
77
77
|
"vite": "^7.3.1",
|
|
78
78
|
"vite-plugin-dts": "^4.5.4",
|
|
79
|
-
"vitest": "^4.
|
|
79
|
+
"vitest": "^4.1.2",
|
|
80
80
|
"vue": "^3.5.31",
|
|
81
|
-
"vue-tsc": "^3.2.
|
|
81
|
+
"vue-tsc": "^3.2.6"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"dev": "WATCH=1 vite build --config vite.config.sdk.ts --watch",
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { AgentConfig, SettingsObject } from '@pagelines/core';
|
|
3
|
-
import { PageLinesSDK } from '../sdkClient';
|
|
4
|
-
import { AgentMode, ChatAttachment, ChatMessage, TextConnectionState, Agent } from './schema';
|
|
5
|
-
export type ChatStreamFn = (args: {
|
|
6
|
-
message: string;
|
|
7
|
-
attachments?: ChatAttachment[];
|
|
8
|
-
conversationId?: string;
|
|
9
|
-
history: Array<{
|
|
10
|
-
role: 'user' | 'assistant';
|
|
11
|
-
content: string;
|
|
12
|
-
}>;
|
|
13
|
-
onDelta: (text: string) => void;
|
|
14
|
-
onDone: (conversationId: string) => void;
|
|
15
|
-
onError: (error: string) => void;
|
|
16
|
-
onStatus?: (status: string) => void;
|
|
17
|
-
}) => Promise<void>;
|
|
18
|
-
type AgentChatControllerSettings = {
|
|
19
|
-
sdk?: PageLinesSDK;
|
|
20
|
-
agent: Agent | AgentConfig;
|
|
21
|
-
context?: string;
|
|
22
|
-
firstMessage?: string;
|
|
23
|
-
chatStreamFn?: ChatStreamFn;
|
|
24
|
-
};
|
|
25
|
-
/** @deprecated Use AgentChatControllerSettings */
|
|
26
|
-
export type AgentControllerSettings = AgentChatControllerSettings;
|
|
27
|
-
export declare class AgentChatController extends SettingsObject<AgentChatControllerSettings> {
|
|
28
|
-
private isTextMode;
|
|
29
|
-
private lastMessage;
|
|
30
|
-
private isConnecting;
|
|
31
|
-
private conversationId?;
|
|
32
|
-
textState: Ref<TextConnectionState>;
|
|
33
|
-
agentMode: Ref<AgentMode>;
|
|
34
|
-
sharedMessages: Ref<ChatMessage[]>;
|
|
35
|
-
private _agent;
|
|
36
|
-
constructor(settings: AgentChatControllerSettings);
|
|
37
|
-
get chatEnabled(): boolean;
|
|
38
|
-
get chatUnavailableReason(): string | undefined;
|
|
39
|
-
private mapChatError;
|
|
40
|
-
private isTransientError;
|
|
41
|
-
private isDuplicateMessage;
|
|
42
|
-
private addMessage;
|
|
43
|
-
getDynamicSettings(): {
|
|
44
|
-
context: string;
|
|
45
|
-
firstMessage: string;
|
|
46
|
-
};
|
|
47
|
-
private updateState;
|
|
48
|
-
private resetState;
|
|
49
|
-
private setupModeWatcher;
|
|
50
|
-
private handleError;
|
|
51
|
-
setMode(mode: AgentMode): Promise<void>;
|
|
52
|
-
startTextConversation(callbacks?: {
|
|
53
|
-
onConnect?: () => void;
|
|
54
|
-
}): Promise<void>;
|
|
55
|
-
endConversation(): Promise<void>;
|
|
56
|
-
sendChatMessage(message: string, attachments?: ChatAttachment[]): Promise<void>;
|
|
57
|
-
private buildHistory;
|
|
58
|
-
/** Seed the controller with previously-loaded messages (e.g. from a server thread). */
|
|
59
|
-
loadMessages(args: {
|
|
60
|
-
conversationId: string;
|
|
61
|
-
messages: ChatMessage[];
|
|
62
|
-
}): void;
|
|
63
|
-
destroy(): Promise<void>;
|
|
64
|
-
}
|
|
65
|
-
export {};
|
package/dist/agent/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as AgentChat } from './ui/AgentChat.vue';
|
|
2
|
-
import { default as AgentModal } from './ui/AgentModal.vue';
|
|
3
|
-
import { default as AgentProvider } from './ui/AgentProvider.vue';
|
|
4
|
-
import { default as AgentWidget } from './ui/AgentWidget.vue';
|
|
5
|
-
import { default as AgentWrap } from './ui/AgentWrap.vue';
|
|
6
|
-
import { default as ElAgentChat } from './ui/ElAgentChat.vue';
|
|
7
|
-
export { AgentChatController, AgentChatController as AgentController } from './AgentController';
|
|
8
|
-
export type { ChatStreamFn } from './AgentController';
|
|
9
|
-
export * from './schema';
|
|
10
|
-
export { AgentChat, AgentModal, AgentProvider, AgentWidget, AgentWrap, ElAgentChat };
|
package/dist/agent/schema.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export { Agent } from '@pagelines/core';
|
|
2
|
-
export type { AgentConfig } from '@pagelines/core';
|
|
3
|
-
export interface ChatAttachment {
|
|
4
|
-
type: 'image' | 'audio' | 'video' | 'file';
|
|
5
|
-
url: string;
|
|
6
|
-
name: string;
|
|
7
|
-
mimeType: string;
|
|
8
|
-
mediaId?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ChatMessage {
|
|
11
|
-
id: string;
|
|
12
|
-
text: string;
|
|
13
|
-
sender: 'user' | 'agent' | 'system';
|
|
14
|
-
timestamp: Date;
|
|
15
|
-
attachments?: ChatAttachment[];
|
|
16
|
-
}
|
|
17
|
-
export interface TextConnectionState {
|
|
18
|
-
isActive: boolean;
|
|
19
|
-
isConnected: boolean;
|
|
20
|
-
isThinking: boolean;
|
|
21
|
-
connectionStatus: 'connecting' | 'connected' | 'disconnected' | 'error';
|
|
22
|
-
error?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const AGENT_MODES: readonly [{
|
|
25
|
-
readonly mode: "self";
|
|
26
|
-
readonly label: "Overview";
|
|
27
|
-
readonly icon: "i-tabler-user-square-rounded";
|
|
28
|
-
}, {
|
|
29
|
-
readonly mode: "talk";
|
|
30
|
-
readonly label: "Talk";
|
|
31
|
-
readonly icon: "i-tabler-phone";
|
|
32
|
-
}, {
|
|
33
|
-
readonly mode: "chat";
|
|
34
|
-
readonly label: "Chat";
|
|
35
|
-
readonly icon: "i-tabler-message-circle";
|
|
36
|
-
}, {
|
|
37
|
-
readonly mode: "info";
|
|
38
|
-
readonly label: "About";
|
|
39
|
-
readonly icon: "i-tabler-user-circle";
|
|
40
|
-
}];
|
|
41
|
-
export type AgentMode = (typeof AGENT_MODES)[number]['mode'];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
import { ButtonIconPreset } from '../../widget/PLWidget';
|
|
3
|
-
import { ColorName } from '@pagelines/core';
|
|
4
|
-
import { Agent } from '../schema';
|
|
5
|
-
type __VLS_Props = {
|
|
6
|
-
sdk: PageLinesSDK;
|
|
7
|
-
agent: Agent;
|
|
8
|
-
context?: string;
|
|
9
|
-
firstMessage?: string;
|
|
10
|
-
buttonText?: string;
|
|
11
|
-
buttonIcon?: ButtonIconPreset;
|
|
12
|
-
hasClose?: boolean;
|
|
13
|
-
isActive?: boolean;
|
|
14
|
-
loading?: boolean;
|
|
15
|
-
theme?: ColorName;
|
|
16
|
-
requireAuth?: boolean;
|
|
17
|
-
chatOnly?: boolean;
|
|
18
|
-
};
|
|
19
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
error: (message: string) => any;
|
|
21
|
-
close: (value: string) => any;
|
|
22
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
-
onError?: ((message: string) => any) | undefined;
|
|
24
|
-
onClose?: ((value: string) => any) | undefined;
|
|
25
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
-
rootElement: HTMLDivElement;
|
|
27
|
-
}, HTMLDivElement>;
|
|
28
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
modelValue?: string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
-
"update:modelValue": (value: string) => any;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLInputElement>;
|
|
9
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
modelValue: string;
|
|
3
|
-
length: number;
|
|
4
|
-
focusFirst?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
-
"update:modelValue": (value: string) => any;
|
|
8
|
-
autoSubmit: (value: string) => any;
|
|
9
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
-
onAutoSubmit?: ((value: string) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
import { AgentConfig } from '../schema';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
vis?: boolean;
|
|
5
|
-
sdk?: PageLinesSDK;
|
|
6
|
-
agent?: AgentConfig;
|
|
7
|
-
handle?: string;
|
|
8
|
-
context?: string;
|
|
9
|
-
firstMessage?: string;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
"update:vis": (value: boolean) => any;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
"onUpdate:vis"?: ((value: boolean) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
import { ButtonIconPreset } from '../../widget/PLWidget';
|
|
3
|
-
import { AgentConfig } from '../schema';
|
|
4
|
-
type __VLS_Props = {
|
|
5
|
-
sdk?: PageLinesSDK;
|
|
6
|
-
agent?: AgentConfig;
|
|
7
|
-
handle?: string;
|
|
8
|
-
context?: string;
|
|
9
|
-
firstMessage?: string;
|
|
10
|
-
buttonText?: string;
|
|
11
|
-
buttonIcon?: ButtonIconPreset;
|
|
12
|
-
hasClose?: boolean;
|
|
13
|
-
chatOnly?: boolean;
|
|
14
|
-
apiBase?: string;
|
|
15
|
-
};
|
|
16
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
-
error: (message: string) => any;
|
|
18
|
-
close: (value: string) => any;
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
-
onError?: ((message: string) => any) | undefined;
|
|
21
|
-
onClose?: ((value: string) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
-
click: (event: MouseEvent) => any;
|
|
3
|
-
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLAnchorElement>;
|
|
6
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
interface Props {
|
|
3
|
-
sdk?: PageLinesSDK;
|
|
4
|
-
handle: string;
|
|
5
|
-
context?: string;
|
|
6
|
-
firstMessage?: string;
|
|
7
|
-
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
8
|
-
}
|
|
9
|
-
declare function toggle(): void;
|
|
10
|
-
declare function open(): void;
|
|
11
|
-
declare function close(): void;
|
|
12
|
-
declare const _default: import('vue').DefineComponent<Props, {
|
|
13
|
-
toggle: typeof toggle;
|
|
14
|
-
open: typeof open;
|
|
15
|
-
close: typeof close;
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
-
export default _default;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { AgentConfig } from '@pagelines/core';
|
|
2
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
3
|
-
import { ButtonIconPreset } from '../../widget/PLWidget';
|
|
4
|
-
import { Agent } from '../schema';
|
|
5
|
-
type __VLS_Props = {
|
|
6
|
-
sdk?: PageLinesSDK;
|
|
7
|
-
agent?: AgentConfig;
|
|
8
|
-
handle?: string;
|
|
9
|
-
context?: string;
|
|
10
|
-
firstMessage?: string;
|
|
11
|
-
buttonText?: string;
|
|
12
|
-
buttonIcon?: ButtonIconPreset;
|
|
13
|
-
hasClose?: boolean;
|
|
14
|
-
apiBase?: string;
|
|
15
|
-
};
|
|
16
|
-
declare function __VLS_template(): {
|
|
17
|
-
attrs: Partial<{}>;
|
|
18
|
-
slots: Readonly<{
|
|
19
|
-
default: (props: {
|
|
20
|
-
sdk: PageLinesSDK;
|
|
21
|
-
agent: Agent;
|
|
22
|
-
context?: string;
|
|
23
|
-
firstMessage?: string;
|
|
24
|
-
buttonText?: string;
|
|
25
|
-
buttonIcon?: ButtonIconPreset;
|
|
26
|
-
loading: boolean;
|
|
27
|
-
}) => any;
|
|
28
|
-
}> & {
|
|
29
|
-
default: (props: {
|
|
30
|
-
sdk: PageLinesSDK;
|
|
31
|
-
agent: Agent;
|
|
32
|
-
context?: string;
|
|
33
|
-
firstMessage?: string;
|
|
34
|
-
buttonText?: string;
|
|
35
|
-
buttonIcon?: ButtonIconPreset;
|
|
36
|
-
loading: boolean;
|
|
37
|
-
}) => any;
|
|
38
|
-
};
|
|
39
|
-
refs: {};
|
|
40
|
-
rootEl: HTMLDivElement;
|
|
41
|
-
};
|
|
42
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
43
|
-
declare const __VLS_component: 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>;
|
|
44
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
|
-
export default _default;
|
|
46
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
-
new (): {
|
|
48
|
-
$slots: S;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Agent } from '../schema';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
agent: Agent;
|
|
4
|
-
isOnline?: boolean;
|
|
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,26 +0,0 @@
|
|
|
1
|
-
type ButtonTheme = 'primary' | 'green' | 'red' | 'default';
|
|
2
|
-
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
theme?: ButtonTheme;
|
|
5
|
-
size?: ButtonSize;
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
icon?: string;
|
|
8
|
-
iconAfter?: string;
|
|
9
|
-
};
|
|
10
|
-
declare function __VLS_template(): {
|
|
11
|
-
attrs: Partial<{}>;
|
|
12
|
-
slots: {
|
|
13
|
-
default?(_: {}): any;
|
|
14
|
-
};
|
|
15
|
-
refs: {};
|
|
16
|
-
rootEl: HTMLButtonElement;
|
|
17
|
-
};
|
|
18
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
20
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
-
export default _default;
|
|
22
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
-
new (): {
|
|
24
|
-
$slots: S;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AgentChatController } from '../AgentController';
|
|
2
|
-
import { ChatAttachment } from '../schema';
|
|
3
|
-
import { Agent } from '@pagelines/core';
|
|
4
|
-
type ChatScope = 'private' | 'org' | 'public';
|
|
5
|
-
type __VLS_Props = {
|
|
6
|
-
chatController?: AgentChatController;
|
|
7
|
-
agent: Agent;
|
|
8
|
-
variant?: 'dark' | 'light';
|
|
9
|
-
scale?: 'md' | 'lg';
|
|
10
|
-
uploadFn?: (file: File) => Promise<ChatAttachment>;
|
|
11
|
-
scope?: ChatScope;
|
|
12
|
-
scopeName?: string;
|
|
13
|
-
setupHint?: string;
|
|
14
|
-
emptyStateMessage?: string;
|
|
15
|
-
};
|
|
16
|
-
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, {
|
|
17
|
-
messagesContainer: HTMLDivElement;
|
|
18
|
-
fileInput: HTMLInputElement;
|
|
19
|
-
textarea: HTMLTextAreaElement;
|
|
20
|
-
}, HTMLDivElement>;
|
|
21
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Agent } from '@pagelines/core';
|
|
2
|
-
interface Props {
|
|
3
|
-
agent: Agent;
|
|
4
|
-
isOnline?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AgentChatController } from '../AgentController';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
modelValue: boolean;
|
|
4
|
-
chatController?: AgentChatController;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (value: boolean) => any;
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
import { Agent } from '../schema';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
modelValue: boolean;
|
|
5
|
-
agent: Agent;
|
|
6
|
-
sdk: PageLinesSDK;
|
|
7
|
-
title?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
"update:modelValue": (value: boolean) => any;
|
|
11
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
sdk: PageLinesSDK;
|
|
4
|
-
};
|
|
5
|
-
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>;
|
|
6
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PageLinesSDK } from '../../sdkClient';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
sdk: PageLinesSDK;
|
|
4
|
-
};
|
|
5
|
-
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>;
|
|
6
|
-
export default _default;
|