@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.
Files changed (57) hide show
  1. package/dist/AgentWrap.vue_vue_type_script_setup_true_lang.js +1 -1
  2. package/dist/AgentWrap.vue_vue_type_script_setup_true_lang.js.map +1 -1
  3. package/package.json +28 -28
  4. package/dist/agent/AgentController.d.ts +0 -65
  5. package/dist/agent/index.d.ts +0 -10
  6. package/dist/agent/schema.d.ts +0 -41
  7. package/dist/agent/test/AgentController.test.d.ts +0 -1
  8. package/dist/agent/test/utils.test.d.ts +0 -1
  9. package/dist/agent/test/webhook.test.d.ts +0 -1
  10. package/dist/agent/ui/AgentChat.vue.d.ts +0 -28
  11. package/dist/agent/ui/AgentInputEmail.vue.d.ts +0 -9
  12. package/dist/agent/ui/AgentInputOneTimeCode.vue.d.ts +0 -13
  13. package/dist/agent/ui/AgentModal.vue.d.ts +0 -16
  14. package/dist/agent/ui/AgentProvider.vue.d.ts +0 -23
  15. package/dist/agent/ui/AgentSidebarClose.vue.d.ts +0 -6
  16. package/dist/agent/ui/AgentWidget.vue.d.ts +0 -17
  17. package/dist/agent/ui/AgentWrap.vue.d.ts +0 -50
  18. package/dist/agent/ui/ElAgentAbout.vue.d.ts +0 -7
  19. package/dist/agent/ui/ElAgentButton.vue.d.ts +0 -26
  20. package/dist/agent/ui/ElAgentChat.vue.d.ts +0 -21
  21. package/dist/agent/ui/ElAgentHeader.vue.d.ts +0 -7
  22. package/dist/agent/ui/ElAgentModeSidebar.vue.d.ts +0 -11
  23. package/dist/agent/ui/ElAgentSidebar.vue.d.ts +0 -14
  24. package/dist/agent/ui/ElAuthGate.vue.d.ts +0 -6
  25. package/dist/agent/ui/ElAuthPanel.vue.d.ts +0 -6
  26. package/dist/agent/ui/ElCreateAgent.vue.d.ts +0 -186
  27. package/dist/agent/ui/ElModeHeader.vue.d.ts +0 -9
  28. package/dist/agent/ui/ElProvisioningStatus.vue.d.ts +0 -13
  29. package/dist/agent/ui/ElSidebar.vue.d.ts +0 -30
  30. package/dist/agent/utils.d.ts +0 -35
  31. package/dist/api.d.ts +0 -28
  32. package/dist/clients/AgentClient.d.ts +0 -39
  33. package/dist/clients/AuthClient.d.ts +0 -23
  34. package/dist/clients/ChatClient.d.ts +0 -59
  35. package/dist/clients/UserClient.d.ts +0 -18
  36. package/dist/clients/types.d.ts +0 -21
  37. package/dist/constants/socialPlatforms.d.ts +0 -10
  38. package/dist/demo/index.d.ts +0 -104
  39. package/dist/index.d.ts +0 -12
  40. package/dist/sdkClient.d.ts +0 -689
  41. package/dist/sdkStorage.d.ts +0 -39
  42. package/dist/test/agent-client.test.d.ts +0 -4
  43. package/dist/test/api.test.d.ts +0 -1
  44. package/dist/test/build.test.d.ts +0 -1
  45. package/dist/test/chat-authenticated.test.d.ts +0 -1
  46. package/dist/test/derive-mode.test.d.ts +0 -1
  47. package/dist/types/SDKAppType.stub.d.ts +0 -6
  48. package/dist/vite.config.sdk.d.ts +0 -2
  49. package/dist/vitest.config.d.ts +0 -2
  50. package/dist/widget/PLWidget.d.ts +0 -64
  51. package/dist/widget/composables/usePLWidget.d.ts +0 -57
  52. package/dist/widget/composables/useWidgetState.d.ts +0 -280
  53. package/dist/widget/index.d.ts +0 -6
  54. package/dist/widget/ui/AgentWidgetInline.vue.d.ts +0 -17
  55. package/dist/widget/ui/AgentWidgetModal.vue.d.ts +0 -22
  56. package/dist/widget/ui/AgentWidgetOnboard.vue.d.ts +0 -7
  57. package/dist/widget/ui/AgentWidgetPopup.vue.d.ts +0 -22
@@ -1,186 +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, {
6
- created: (agent: {
7
- agentId?: string | undefined;
8
- handle?: string | undefined;
9
- ownerId?: string | undefined;
10
- orgId?: string | undefined;
11
- name?: string | undefined;
12
- emoji?: string | null | undefined;
13
- title?: string | null | undefined;
14
- summary?: string | null | undefined;
15
- entityType?: string | undefined;
16
- avatarId?: string | null | undefined;
17
- coverId?: string | null | undefined;
18
- avatar?: {
19
- mediaId?: string | undefined;
20
- userId?: string | undefined;
21
- orgId?: string | undefined;
22
- agentId?: string | null | undefined;
23
- filename?: string | undefined;
24
- mimeType?: string | undefined;
25
- size?: number | undefined;
26
- src?: string | undefined;
27
- alt?: string | undefined;
28
- context?: "avatar" | "cover" | "general" | undefined;
29
- status?: "processing" | "active" | "failed" | "deleted" | undefined;
30
- quality?: "high" | "low" | "standard" | undefined;
31
- createdAt?: string | undefined;
32
- updatedAt?: string | undefined;
33
- mediaType?: "image" | "video" | "audio" | undefined;
34
- className?: string | undefined;
35
- width?: number | undefined;
36
- height?: number | undefined;
37
- duration?: number | undefined;
38
- blurhash?: string | undefined;
39
- } | undefined;
40
- cover?: {
41
- mediaId?: string | undefined;
42
- userId?: string | undefined;
43
- orgId?: string | undefined;
44
- agentId?: string | null | undefined;
45
- filename?: string | undefined;
46
- mimeType?: string | undefined;
47
- size?: number | undefined;
48
- src?: string | undefined;
49
- alt?: string | undefined;
50
- context?: "avatar" | "cover" | "general" | undefined;
51
- status?: "processing" | "active" | "failed" | "deleted" | undefined;
52
- quality?: "high" | "low" | "standard" | undefined;
53
- createdAt?: string | undefined;
54
- updatedAt?: string | undefined;
55
- mediaType?: "image" | "video" | "audio" | undefined;
56
- className?: string | undefined;
57
- width?: number | undefined;
58
- height?: number | undefined;
59
- duration?: number | undefined;
60
- blurhash?: string | undefined;
61
- } | undefined;
62
- email?: string | null | undefined;
63
- website?: string | null | undefined;
64
- accounts?: {
65
- platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
66
- handle: string;
67
- }[] | null | undefined;
68
- model?: string | null | undefined;
69
- lastActivityAt?: string | null | undefined;
70
- lastMessageAt?: string | null | undefined;
71
- instanceId?: string | null | undefined;
72
- instanceProvider?: string | null | undefined;
73
- imageVersion?: string | null | undefined;
74
- deployEnv?: string | undefined;
75
- consecutiveRestarts?: number | null | undefined;
76
- lastRestartAt?: string | null | undefined;
77
- botServerUrl?: string | null | undefined;
78
- botLastPingAt?: string | null | undefined;
79
- desiredStatus?: "active" | "stopped" | null | undefined;
80
- onboardedAt?: string | null | undefined;
81
- org?: {
82
- orgId: string;
83
- handle: string;
84
- name: string;
85
- status: string;
86
- headline?: string | undefined;
87
- summary?: string | undefined;
88
- } | undefined;
89
- visibility?: "org" | "private" | "public" | undefined;
90
- status?: string | undefined;
91
- createdAt?: string | undefined;
92
- updatedAt?: string | undefined;
93
- isPrimary?: boolean | undefined;
94
- }) => any;
95
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
96
- onCreated?: ((agent: {
97
- agentId?: string | undefined;
98
- handle?: string | undefined;
99
- ownerId?: string | undefined;
100
- orgId?: string | undefined;
101
- name?: string | undefined;
102
- emoji?: string | null | undefined;
103
- title?: string | null | undefined;
104
- summary?: string | null | undefined;
105
- entityType?: string | undefined;
106
- avatarId?: string | null | undefined;
107
- coverId?: string | null | undefined;
108
- avatar?: {
109
- mediaId?: string | undefined;
110
- userId?: string | undefined;
111
- orgId?: string | undefined;
112
- agentId?: string | null | undefined;
113
- filename?: string | undefined;
114
- mimeType?: string | undefined;
115
- size?: number | undefined;
116
- src?: string | undefined;
117
- alt?: string | undefined;
118
- context?: "avatar" | "cover" | "general" | undefined;
119
- status?: "processing" | "active" | "failed" | "deleted" | undefined;
120
- quality?: "high" | "low" | "standard" | undefined;
121
- createdAt?: string | undefined;
122
- updatedAt?: string | undefined;
123
- mediaType?: "image" | "video" | "audio" | undefined;
124
- className?: string | undefined;
125
- width?: number | undefined;
126
- height?: number | undefined;
127
- duration?: number | undefined;
128
- blurhash?: string | undefined;
129
- } | undefined;
130
- cover?: {
131
- mediaId?: string | undefined;
132
- userId?: string | undefined;
133
- orgId?: string | undefined;
134
- agentId?: string | null | undefined;
135
- filename?: string | undefined;
136
- mimeType?: string | undefined;
137
- size?: number | undefined;
138
- src?: string | undefined;
139
- alt?: string | undefined;
140
- context?: "avatar" | "cover" | "general" | undefined;
141
- status?: "processing" | "active" | "failed" | "deleted" | undefined;
142
- quality?: "high" | "low" | "standard" | undefined;
143
- createdAt?: string | undefined;
144
- updatedAt?: string | undefined;
145
- mediaType?: "image" | "video" | "audio" | undefined;
146
- className?: string | undefined;
147
- width?: number | undefined;
148
- height?: number | undefined;
149
- duration?: number | undefined;
150
- blurhash?: string | undefined;
151
- } | undefined;
152
- email?: string | null | undefined;
153
- website?: string | null | undefined;
154
- accounts?: {
155
- platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
156
- handle: string;
157
- }[] | null | undefined;
158
- model?: string | null | undefined;
159
- lastActivityAt?: string | null | undefined;
160
- lastMessageAt?: string | null | undefined;
161
- instanceId?: string | null | undefined;
162
- instanceProvider?: string | null | undefined;
163
- imageVersion?: string | null | undefined;
164
- deployEnv?: string | undefined;
165
- consecutiveRestarts?: number | null | undefined;
166
- lastRestartAt?: string | null | undefined;
167
- botServerUrl?: string | null | undefined;
168
- botLastPingAt?: string | null | undefined;
169
- desiredStatus?: "active" | "stopped" | null | undefined;
170
- onboardedAt?: string | null | undefined;
171
- org?: {
172
- orgId: string;
173
- handle: string;
174
- name: string;
175
- status: string;
176
- headline?: string | undefined;
177
- summary?: string | undefined;
178
- } | undefined;
179
- visibility?: "org" | "private" | "public" | undefined;
180
- status?: string | undefined;
181
- createdAt?: string | undefined;
182
- updatedAt?: string | undefined;
183
- isPrimary?: boolean | undefined;
184
- }) => any) | undefined;
185
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
186
- export default _default;
@@ -1,9 +0,0 @@
1
- import { Agent } from '@pagelines/core';
2
- interface Props {
3
- agent: Agent;
4
- size?: 'md' | 'lg';
5
- isOnline?: boolean;
6
- layout?: 'centered' | 'horizontal';
7
- }
8
- 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, {}, HTMLDivElement>;
9
- export default _default;
@@ -1,13 +0,0 @@
1
- import { PageLinesSDK } from '../../sdkClient';
2
- type __VLS_Props = {
3
- sdk: PageLinesSDK;
4
- agentId: string;
5
- };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- error: (message: string) => any;
8
- ready: () => any;
9
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- onError?: ((message: string) => any) | undefined;
11
- onReady?: (() => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
- export default _default;
@@ -1,30 +0,0 @@
1
- import { NavItem } from '@pagelines/core';
2
- type __VLS_Props = {
3
- modelValue: boolean;
4
- items: NavItem[];
5
- position?: 'left' | 'right';
6
- title?: string;
7
- widthClasses?: string;
8
- };
9
- declare function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
12
- header?(_: {}): any;
13
- footer?(_: {}): any;
14
- };
15
- refs: {};
16
- rootEl: any;
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, {
20
- "update:modelValue": (value: boolean) => any;
21
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
23
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
- export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
27
- new (): {
28
- $slots: S;
29
- };
30
- };
@@ -1,35 +0,0 @@
1
- import { AgentConfig, getDefaultAvatarUrl } from '@pagelines/core';
2
- export { getDefaultAvatarUrl };
3
- export declare function getImageSrc(image: string | {
4
- src?: string;
5
- } | undefined): string;
6
- type AgentLike = Pick<AgentConfig, 'cover' | 'avatar' | 'name'>;
7
- export declare function getAgentAvatarUrl(agent: AgentLike): string;
8
- export declare function handleImageError(event: Event): void;
9
- export declare function parseVoiceMessage(args: {
10
- message: string;
11
- source: string;
12
- }): {
13
- text: string;
14
- sender: 'user' | 'agent';
15
- } | null;
16
- export declare function generateFirstMessage(args: {
17
- name: string;
18
- context?: string;
19
- }): string;
20
- /**
21
- * Parse button template string with self data variables
22
- * Supports: {name}, {title}, {handle}, {orgName}
23
- * Uses single braces to avoid conflicts with Vue {{}} or React JSX
24
- *
25
- * @example
26
- * parseButtonTemplate({ template: 'Talk to {name}', self })
27
- * // => 'Talk to Andrew'
28
- *
29
- * parseButtonTemplate({ template: 'Book a meeting with {title}', self })
30
- * // => 'Book a meeting with CEO & Co-Founder'
31
- */
32
- export declare function parseButtonTemplate(args: {
33
- template: string;
34
- agent: Pick<AgentConfig, 'name' | 'title' | 'handle' | 'org'>;
35
- }): string;
package/dist/api.d.ts DELETED
@@ -1,28 +0,0 @@
1
- import { Hono } from 'hono';
2
- import { hc } from 'hono/client';
3
- export interface ApiClientSettings {
4
- isDev: boolean;
5
- apiBase?: string;
6
- [key: string]: unknown;
7
- }
8
- /**
9
- * Resolve API base URL from settings.
10
- * Centralizes the isDev/apiBase/production URL logic used across SDK clients.
11
- */
12
- export declare function resolveApiBase(apiBase?: string, isDev?: boolean): string;
13
- /**
14
- * Create fully typed Hono RPC client for PageLines SDK
15
- *
16
- * @template TAppType - The Hono app type from the server (enables full type safety)
17
- * @param settings - Configuration for API base URL and environment
18
- * @param responseHandler - Optional handler to process ApiResponse for auto user/token updates
19
- * @returns Typed Hono client with response interceptor
20
- *
21
- * @example
22
- * ```typescript
23
- * import type { SDKAppType } from '@/modules/main/server'
24
- * const client = createApiClient<SDKAppType>({ isDev: true })
25
- * const response = await client.api.auth['check-email'].$post({ json: { email } })
26
- * ```
27
- */
28
- export declare function createApiClient<TAppType extends Hono = any>(settings: ApiClientSettings, responseHandler?: (response: any) => void): ReturnType<typeof hc<TAppType>>;
@@ -1,39 +0,0 @@
1
- import { AgentConfig } from '@pagelines/core';
2
- import { SDKContext } from './types';
3
- export declare class AgentClient {
4
- private ctx;
5
- constructor(ctx: SDKContext);
6
- create(args: {
7
- name: string;
8
- orgId?: string;
9
- }): Promise<AgentConfig>;
10
- getStatus(args: {
11
- agentId: string;
12
- }): Promise<{
13
- status: string;
14
- ready: boolean;
15
- error?: string;
16
- }>;
17
- waitUntilReady(args: {
18
- agentId: string;
19
- onStatus?: (message: string) => void;
20
- timeoutMs?: number;
21
- pollIntervalMs?: number;
22
- }): Promise<void>;
23
- /** Send a typed webhook event to a bot agent. No auth required — the proxy is public. */
24
- webhook<T = Record<string, unknown>>(args: {
25
- agentId: string;
26
- type: string;
27
- data: T;
28
- meta?: {
29
- source?: string;
30
- timestamp?: string;
31
- correlationId?: string;
32
- [key: string]: unknown;
33
- };
34
- }): Promise<{
35
- ok: boolean;
36
- error?: string;
37
- }>;
38
- private resolveOrgId;
39
- }
@@ -1,23 +0,0 @@
1
- import { EnrichedUser } from '@pagelines/core';
2
- import { SDKContext } from './types';
3
- export declare class AuthClient {
4
- private ctx;
5
- constructor(ctx: SDKContext);
6
- sendCode(email: string): Promise<void>;
7
- verifyCode(email: string, code: string): Promise<void>;
8
- logout(): Promise<void>;
9
- getCurrentUser(): Promise<EnrichedUser | undefined>;
10
- requestAuthCode(args: {
11
- email: string;
12
- }): Promise<boolean>;
13
- loginWithCode(args: {
14
- email: string;
15
- code: string;
16
- orgId?: string;
17
- autoCreateContact?: boolean;
18
- }): Promise<boolean>;
19
- loginWithGoogle(args?: {
20
- onSuccess?: (user: EnrichedUser) => void;
21
- onError?: (error: string) => void;
22
- }): void;
23
- }
@@ -1,59 +0,0 @@
1
- import { SDKContext } from './types';
2
- export declare class ChatClient {
3
- private ctx;
4
- constructor(ctx: SDKContext);
5
- chatStream(args: {
6
- handle: string;
7
- message: string;
8
- attachments?: Array<{
9
- type: string;
10
- url: string;
11
- name: string;
12
- mimeType: string;
13
- mediaId?: string;
14
- }>;
15
- conversationId?: string;
16
- history?: Array<{
17
- role: 'user' | 'assistant';
18
- content: string;
19
- }>;
20
- visitorId?: string;
21
- context?: string;
22
- onDelta: (text: string) => void;
23
- onDone: (conversationId: string) => void;
24
- onError: (error: string) => void;
25
- onStatus?: (status: string) => void;
26
- }): Promise<void>;
27
- chatStreamAuthenticated(args: {
28
- agentId: string;
29
- message: string;
30
- attachments?: Array<{
31
- type: string;
32
- url: string;
33
- name: string;
34
- mimeType: string;
35
- mediaId?: string;
36
- }>;
37
- conversationId?: string;
38
- history?: Array<{
39
- role: 'user' | 'assistant';
40
- content: string;
41
- }>;
42
- onDelta: (text: string) => void;
43
- onDone: (conversationId: string) => void;
44
- onError: (error: string) => void;
45
- onStatus?: (status: string) => void;
46
- }): Promise<void>;
47
- /** Shared SSE streaming logic for both public and authenticated chat */
48
- private _streamChat;
49
- chatMessage(args: {
50
- handle: string;
51
- message: string;
52
- conversationId?: string;
53
- visitorId?: string;
54
- context?: string;
55
- }): Promise<{
56
- conversationId: string;
57
- content: string;
58
- } | undefined>;
59
- }
@@ -1,18 +0,0 @@
1
- import { AgentConfig } from '@pagelines/core';
2
- import { SDKContext } from './types';
3
- export declare class UserClient {
4
- private ctx;
5
- constructor(ctx: SDKContext);
6
- getPublicAgent(args: {
7
- handle: string;
8
- }): Promise<AgentConfig | undefined>;
9
- getAgentByEmail(args: {
10
- email: string;
11
- }): Promise<AgentConfig | undefined>;
12
- generateAnonId(): string;
13
- track(args: {
14
- event: 'view_profile' | 'profile_interaction';
15
- agentId: string;
16
- properties?: Record<string, any>;
17
- }): void;
18
- }
@@ -1,21 +0,0 @@
1
- import { hc } from 'hono/client';
2
- import { SDKAppType } from '../types/SDKAppType.stub';
3
- import { AgentConfig, ApiResponse, EnrichedUser, LogHelper } from '@pagelines/core';
4
- import { ComputedRef, Ref } from 'vue';
5
- import { SDKStorage } from '../sdkStorage';
6
- export interface SDKContext {
7
- api: ReturnType<typeof hc<SDKAppType>> extends {
8
- api: infer A;
9
- } ? A : any;
10
- apiBase?: string;
11
- isDev: boolean;
12
- activeUser: Ref<EnrichedUser | undefined>;
13
- token: Ref<string | null>;
14
- loading: Ref<boolean>;
15
- error: Ref<string | null>;
16
- currentAgent: ComputedRef<AgentConfig | undefined>;
17
- storage: SDKStorage;
18
- sessionId: string;
19
- logger: LogHelper;
20
- processApiResponse: (response: ApiResponse<any>) => void;
21
- }
@@ -1,10 +0,0 @@
1
- import { SocialAccount } from '@pagelines/core';
2
- type Platform = SocialAccount['platform'];
3
- export declare const SOCIAL_PLATFORMS: Record<Platform, {
4
- label: string;
5
- icon: string;
6
- placeholder: string;
7
- getUrl: (handle: string) => string;
8
- }>;
9
- export type SocialPlatform = keyof typeof SOCIAL_PLATFORMS;
10
- export {};
@@ -1,104 +0,0 @@
1
- import { PageLinesSDK } from '../sdkClient';
2
- import { AgentConfig } from '@pagelines/core';
3
- export type { AgentConfig } from '@pagelines/core';
4
- export type { DemoAgentEntry } from '@/modules/agent/static/data';
5
- export { getStaticAgentByHandle } from '@/modules/agent/static';
6
- /**
7
- * Get demo agents - mix of static data and DB-fetched entries
8
- * @param sdk - PageLinesSDK instance for fetching handle-only entries
9
- * @returns Promise<Partial<AgentConfig>[]> - Array of demo agents (static + fetched)
10
- *
11
- * Handle-only entries (e.g., { handle: 'dan' }) are fetched in parallel via sdk.getPublicAgent()
12
- * Failed fetches are skipped silently with optional logging
13
- */
14
- export declare function getDemoAgents(sdk: PageLinesSDK): Promise<Partial<AgentConfig>[]>;
15
- export declare function getDemoAgentByHandle(handle: string): Partial<{
16
- agentId?: string | undefined;
17
- handle?: string | undefined;
18
- ownerId?: string | undefined;
19
- orgId?: string | undefined;
20
- name?: string | undefined;
21
- emoji?: string | null | undefined;
22
- title?: string | null | undefined;
23
- summary?: string | null | undefined;
24
- entityType?: string | undefined;
25
- avatarId?: string | null | undefined;
26
- coverId?: string | null | undefined;
27
- avatar?: {
28
- mediaId?: string | undefined;
29
- userId?: string | undefined;
30
- orgId?: string | undefined;
31
- agentId?: string | null | undefined;
32
- filename?: string | undefined;
33
- mimeType?: string | undefined;
34
- size?: number | undefined;
35
- src?: string | undefined;
36
- alt?: string | undefined;
37
- context?: "avatar" | "cover" | "general" | undefined;
38
- status?: "processing" | "active" | "failed" | "deleted" | undefined;
39
- quality?: "high" | "low" | "standard" | undefined;
40
- createdAt?: string | undefined;
41
- updatedAt?: string | undefined;
42
- mediaType?: "image" | "video" | "audio" | undefined;
43
- className?: string | undefined;
44
- width?: number | undefined;
45
- height?: number | undefined;
46
- duration?: number | undefined;
47
- blurhash?: string | undefined;
48
- } | undefined;
49
- cover?: {
50
- mediaId?: string | undefined;
51
- userId?: string | undefined;
52
- orgId?: string | undefined;
53
- agentId?: string | null | undefined;
54
- filename?: string | undefined;
55
- mimeType?: string | undefined;
56
- size?: number | undefined;
57
- src?: string | undefined;
58
- alt?: string | undefined;
59
- context?: "avatar" | "cover" | "general" | undefined;
60
- status?: "processing" | "active" | "failed" | "deleted" | undefined;
61
- quality?: "high" | "low" | "standard" | undefined;
62
- createdAt?: string | undefined;
63
- updatedAt?: string | undefined;
64
- mediaType?: "image" | "video" | "audio" | undefined;
65
- className?: string | undefined;
66
- width?: number | undefined;
67
- height?: number | undefined;
68
- duration?: number | undefined;
69
- blurhash?: string | undefined;
70
- } | undefined;
71
- email?: string | null | undefined;
72
- website?: string | null | undefined;
73
- accounts?: {
74
- platform: "email" | "website" | "linkedin" | "x" | "facebook" | "tiktok" | "youtube" | "github" | "instagram" | "threads" | "phone";
75
- handle: string;
76
- }[] | null | undefined;
77
- model?: string | null | undefined;
78
- lastActivityAt?: string | null | undefined;
79
- lastMessageAt?: string | null | undefined;
80
- instanceId?: string | null | undefined;
81
- instanceProvider?: string | null | undefined;
82
- imageVersion?: string | null | undefined;
83
- deployEnv?: string | undefined;
84
- consecutiveRestarts?: number | null | undefined;
85
- lastRestartAt?: string | null | undefined;
86
- botServerUrl?: string | null | undefined;
87
- botLastPingAt?: string | null | undefined;
88
- desiredStatus?: "active" | "stopped" | null | undefined;
89
- onboardedAt?: string | null | undefined;
90
- org?: {
91
- orgId: string;
92
- handle: string;
93
- name: string;
94
- status: string;
95
- headline?: string | undefined;
96
- summary?: string | undefined;
97
- } | undefined;
98
- visibility?: "org" | "private" | "public" | undefined;
99
- status?: string | undefined;
100
- createdAt?: string | undefined;
101
- updatedAt?: string | undefined;
102
- isPrimary?: boolean | undefined;
103
- }> | undefined;
104
- export { staticAgents } from '@/modules/agent/static/data';
package/dist/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { PageLinesSDK } from './sdkClient';
2
- export { PageLinesSDK };
3
- export type { PageLinesSDKSettings } from './sdkClient';
4
- export { AgentClient } from './clients/AgentClient';
5
- export { AuthClient } from './clients/AuthClient';
6
- export { ChatClient } from './clients/ChatClient';
7
- export { UserClient } from './clients/UserClient';
8
- export type { SDKContext } from './clients/types';
9
- export { MediaSchema } from '@pagelines/core';
10
- export type { Agent, User, EnrichedUser, MediaObject, ApiResponse, } from '@pagelines/core';
11
- export { SOCIAL_PLATFORMS } from './constants/socialPlatforms';
12
- export type { SocialPlatform } from './constants/socialPlatforms';