@pagelines/sdk 1.0.438 → 1.0.439
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/agent/AgentController.d.ts +67 -0
- package/dist/agent/index.d.ts +10 -0
- package/dist/agent/schema.d.ts +41 -0
- package/dist/agent/test/AgentController.test.d.ts +1 -0
- package/dist/agent/test/utils.test.d.ts +1 -0
- package/dist/agent/test/webhook.test.d.ts +1 -0
- package/dist/agent/ui/AgentChat.vue.d.ts +28 -0
- package/dist/agent/ui/AgentInputEmail.vue.d.ts +9 -0
- package/dist/agent/ui/AgentInputOneTimeCode.vue.d.ts +13 -0
- package/dist/agent/ui/AgentModal.vue.d.ts +16 -0
- package/dist/agent/ui/AgentProvider.vue.d.ts +23 -0
- package/dist/agent/ui/AgentSidebarClose.vue.d.ts +6 -0
- package/dist/agent/ui/AgentWidget.vue.d.ts +17 -0
- package/dist/agent/ui/AgentWrap.vue.d.ts +50 -0
- package/dist/agent/ui/ElAgentAbout.vue.d.ts +7 -0
- package/dist/agent/ui/ElAgentButton.vue.d.ts +26 -0
- package/dist/agent/ui/ElAgentChat.vue.d.ts +20 -0
- package/dist/agent/ui/ElAgentHeader.vue.d.ts +7 -0
- package/dist/agent/ui/ElAgentModeSidebar.vue.d.ts +11 -0
- package/dist/agent/ui/ElAgentSidebar.vue.d.ts +14 -0
- package/dist/agent/ui/ElAuthGate.vue.d.ts +6 -0
- package/dist/agent/ui/ElAuthPanel.vue.d.ts +6 -0
- package/dist/agent/ui/ElCreateAgent.vue.d.ts +190 -0
- package/dist/agent/ui/ElModeHeader.vue.d.ts +9 -0
- package/dist/agent/ui/ElProvisioningStatus.vue.d.ts +13 -0
- package/dist/agent/ui/ElSidebar.vue.d.ts +30 -0
- package/dist/agent/ui/ElTrialGate.vue.d.ts +6 -0
- package/dist/agent/utils.d.ts +35 -0
- package/dist/api.d.ts +28 -0
- package/dist/clients/AgentClient.d.ts +39 -0
- package/dist/clients/AuthClient.d.ts +23 -0
- package/dist/clients/BillingClient.d.ts +22 -0
- package/dist/clients/ChatClient.d.ts +59 -0
- package/dist/clients/UserClient.d.ts +18 -0
- package/dist/clients/types.d.ts +21 -0
- package/dist/constants/socialPlatforms.d.ts +10 -0
- package/dist/demo/index.d.ts +106 -0
- package/dist/index.d.ts +12 -0
- package/dist/sdkClient.d.ts +702 -0
- package/dist/sdkStorage.d.ts +39 -0
- package/dist/test/agent-client.test.d.ts +4 -0
- package/dist/test/api.test.d.ts +1 -0
- package/dist/test/billing-client.test.d.ts +4 -0
- package/dist/test/build.test.d.ts +1 -0
- package/dist/test/chat-authenticated.test.d.ts +1 -0
- package/dist/test/derive-mode.test.d.ts +1 -0
- package/dist/types/SDKAppType.stub.d.ts +6 -0
- package/dist/vite.config.sdk.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/widget/PLWidget.d.ts +64 -0
- package/dist/widget/composables/usePLWidget.d.ts +57 -0
- package/dist/widget/composables/useWidgetState.d.ts +286 -0
- package/dist/widget/index.d.ts +6 -0
- package/dist/widget/ui/AgentWidgetInline.vue.d.ts +17 -0
- package/dist/widget/ui/AgentWidgetModal.vue.d.ts +22 -0
- package/dist/widget/ui/AgentWidgetOnboard.vue.d.ts +7 -0
- package/dist/widget/ui/AgentWidgetPopup.vue.d.ts +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
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;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SDKContext } from './types';
|
|
2
|
+
export interface BillingStatus {
|
|
3
|
+
plan?: string;
|
|
4
|
+
status: string;
|
|
5
|
+
hasActiveBilling: boolean;
|
|
6
|
+
maxAgents: number;
|
|
7
|
+
trialEnd?: string;
|
|
8
|
+
trialDaysRemaining?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class BillingClient {
|
|
11
|
+
private ctx;
|
|
12
|
+
constructor(ctx: SDKContext);
|
|
13
|
+
startTrial(args?: {
|
|
14
|
+
returnUrl?: string;
|
|
15
|
+
planKey?: string;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
confirmCheckout(_args?: {
|
|
18
|
+
sessionId?: string;
|
|
19
|
+
}): Promise<BillingStatus>;
|
|
20
|
+
getStatus(): Promise<BillingStatus>;
|
|
21
|
+
private resolveOrgId;
|
|
22
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
runtime?: string | undefined;
|
|
85
|
+
consecutiveRestarts?: number | null | undefined;
|
|
86
|
+
lastRestartAt?: string | null | undefined;
|
|
87
|
+
botServerUrl?: string | null | undefined;
|
|
88
|
+
botLastPingAt?: string | null | undefined;
|
|
89
|
+
desiredStatus?: "active" | "stopped" | null | undefined;
|
|
90
|
+
botLastError?: string | null | undefined;
|
|
91
|
+
onboardedAt?: string | null | undefined;
|
|
92
|
+
org?: {
|
|
93
|
+
orgId: string;
|
|
94
|
+
handle: string;
|
|
95
|
+
name: string;
|
|
96
|
+
status: string;
|
|
97
|
+
headline?: string | undefined;
|
|
98
|
+
summary?: string | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
visibility?: "org" | "private" | "public" | undefined;
|
|
101
|
+
status?: string | undefined;
|
|
102
|
+
createdAt?: string | undefined;
|
|
103
|
+
updatedAt?: string | undefined;
|
|
104
|
+
isPrimary?: boolean | undefined;
|
|
105
|
+
}> | undefined;
|
|
106
|
+
export { staticAgents } from '@/modules/agent/static/data';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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';
|