@pagelines/sdk 1.0.511 → 1.0.512

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.
@@ -27,6 +27,7 @@ export type ChatStreamFn = (args: {
27
27
  content: string;
28
28
  }>;
29
29
  onDelta: (text: string, role?: 'assistant' | 'system') => void;
30
+ onMessage?: (message: ChatMessage) => void;
30
31
  onDone: (conversationId: string) => void;
31
32
  onError: (error: string | ChatStreamError) => void;
32
33
  onStatus?: (status: string) => void;
@@ -30,7 +30,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
30
30
  quality?: "high" | "low" | "standard" | undefined;
31
31
  createdAt?: string | undefined;
32
32
  updatedAt?: string | undefined;
33
- mediaType?: "image" | "video" | "audio" | undefined;
33
+ type?: "image" | "audio" | "video" | "document" | undefined;
34
+ mediaType?: "image" | "audio" | "video" | "document" | undefined;
34
35
  className?: string | undefined;
35
36
  width?: number | undefined;
36
37
  height?: number | undefined;
@@ -52,7 +53,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
52
53
  quality?: "high" | "low" | "standard" | undefined;
53
54
  createdAt?: string | undefined;
54
55
  updatedAt?: string | undefined;
55
- mediaType?: "image" | "video" | "audio" | undefined;
56
+ type?: "image" | "audio" | "video" | "document" | undefined;
57
+ mediaType?: "image" | "audio" | "video" | "document" | undefined;
56
58
  className?: string | undefined;
57
59
  width?: number | undefined;
58
60
  height?: number | undefined;
@@ -121,7 +123,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
121
123
  quality?: "high" | "low" | "standard" | undefined;
122
124
  createdAt?: string | undefined;
123
125
  updatedAt?: string | undefined;
124
- mediaType?: "image" | "video" | "audio" | undefined;
126
+ type?: "image" | "audio" | "video" | "document" | undefined;
127
+ mediaType?: "image" | "audio" | "video" | "document" | undefined;
125
128
  className?: string | undefined;
126
129
  width?: number | undefined;
127
130
  height?: number | undefined;
@@ -143,7 +146,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
143
146
  quality?: "high" | "low" | "standard" | undefined;
144
147
  createdAt?: string | undefined;
145
148
  updatedAt?: string | undefined;
146
- mediaType?: "image" | "video" | "audio" | undefined;
149
+ type?: "image" | "audio" | "video" | "document" | undefined;
150
+ mediaType?: "image" | "audio" | "video" | "document" | undefined;
147
151
  className?: string | undefined;
148
152
  width?: number | undefined;
149
153
  height?: number | undefined;
@@ -1,3 +1,4 @@
1
+ import { ChatMessage } from '../agent/schema';
1
2
  import { SDKContext } from './types';
2
3
  export declare class ChatClient {
3
4
  private ctx;
@@ -25,6 +26,7 @@ export declare class ChatClient {
25
26
  }>;
26
27
  context?: string;
27
28
  onDelta: (text: string, role?: 'assistant' | 'system') => void;
29
+ onMessage?: (message: ChatMessage) => void;
28
30
  onDone: (conversationId: string) => void;
29
31
  onError: (error: string) => void;
30
32
  onStatus?: (status: string) => void;
@@ -53,6 +55,7 @@ export declare class ChatClient {
53
55
  content: string;
54
56
  }>;
55
57
  onDelta: (text: string, role?: 'assistant' | 'system') => void;
58
+ onMessage?: (message: ChatMessage) => void;
56
59
  onDone: (conversationId: string) => void;
57
60
  onError: (error: string) => void;
58
61
  onStatus?: (status: string) => void;
@@ -25,8 +25,9 @@ export interface WireContract {
25
25
  * Schema discovery walks every export of `@pagelines/core`, picks values
26
26
  * that are Zod schemas, and derives the contract name from the export
27
27
  * name (`zStatusKey` → `StatusKey`, `EnrichedAgentSchema` →
28
- * `EnrichedAgent`). Anything else is ignored types, constants like
29
- * `ERROR_CODES`, helper functions all skip naturally.
28
+ * `EnrichedAgent`). `*Wire` namespace exports get the same treatment for
29
+ * their immediate children. Anything else is ignored — types, constants
30
+ * like `ERROR_CODES`, helper functions all skip naturally.
30
31
  */
31
32
  export declare function buildContract(args?: {
32
33
  now?: Date;
@@ -39,7 +39,8 @@ export declare function getDemoAgentByHandle(handle: string): Partial<{
39
39
  quality?: "high" | "low" | "standard" | undefined;
40
40
  createdAt?: string | undefined;
41
41
  updatedAt?: string | undefined;
42
- mediaType?: "image" | "video" | "audio" | undefined;
42
+ type?: "image" | "audio" | "video" | "document" | undefined;
43
+ mediaType?: "image" | "audio" | "video" | "document" | undefined;
43
44
  className?: string | undefined;
44
45
  width?: number | undefined;
45
46
  height?: number | undefined;
@@ -61,7 +62,8 @@ export declare function getDemoAgentByHandle(handle: string): Partial<{
61
62
  quality?: "high" | "low" | "standard" | undefined;
62
63
  createdAt?: string | undefined;
63
64
  updatedAt?: string | undefined;
64
- mediaType?: "image" | "video" | "audio" | undefined;
65
+ type?: "image" | "audio" | "video" | "document" | undefined;
66
+ mediaType?: "image" | "audio" | "video" | "document" | undefined;
65
67
  className?: string | undefined;
66
68
  width?: number | undefined;
67
69
  height?: number | undefined;