@vellumai/plugin-api 0.10.11-dev.202607241308.39465e9 → 0.10.11-dev.202607241439.ab7e771
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/index.d.ts +67 -616
- package/index.js +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -152,9 +152,6 @@ export declare type AgentLoopExitReason =
|
|
|
152
152
|
/** An unhandled error ended the turn. */
|
|
153
153
|
| "error";
|
|
154
154
|
|
|
155
|
-
/** Any surface `data` payload, including the opaque (non-renderable) types. */
|
|
156
|
-
declare type AnySurfaceData = SurfaceDataByType[SurfaceType];
|
|
157
|
-
|
|
158
155
|
declare type AppFilesChangedEvent = z.infer<typeof AppFilesChangedEventSchema>;
|
|
159
156
|
|
|
160
157
|
declare const AppFilesChangedEventSchema: z.ZodObject<{
|
|
@@ -213,15 +210,6 @@ declare const AssistantActivityStateEventSchema: z.ZodObject<{
|
|
|
213
210
|
statusText: z.ZodOptional<z.ZodString>;
|
|
214
211
|
}, z.core.$strip>;
|
|
215
212
|
|
|
216
|
-
/** Attention state metadata for a conversation's latest assistant message. */
|
|
217
|
-
declare interface AssistantAttention {
|
|
218
|
-
hasUnseenLatestAssistantMessage: boolean;
|
|
219
|
-
latestAssistantMessageAt?: number;
|
|
220
|
-
lastSeenAssistantMessageAt?: number;
|
|
221
|
-
lastSeenConfidence?: string;
|
|
222
|
-
lastSeenSignalType?: string;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
213
|
declare type AssistantConfig = z.infer<typeof AssistantConfigSchema>;
|
|
226
214
|
|
|
227
215
|
declare const AssistantConfigSchema: z.ZodObject<{
|
|
@@ -1621,20 +1609,6 @@ declare type _BookmarksServerMessages = BookmarkCreatedEvent | BookmarkDeletedEv
|
|
|
1621
1609
|
*/
|
|
1622
1610
|
export declare function buildMessageExcerpt(rawContent: string, query: string): Promise<string>;
|
|
1623
1611
|
|
|
1624
|
-
declare type CardSurfaceData = z.infer<typeof CardSurfaceDataSchema>;
|
|
1625
|
-
|
|
1626
|
-
declare const CardSurfaceDataSchema: z.ZodObject<{
|
|
1627
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1628
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
1629
|
-
body: z.ZodOptional<z.ZodString>;
|
|
1630
|
-
metadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1631
|
-
label: z.ZodCoercedString<unknown>;
|
|
1632
|
-
value: z.ZodCoercedString<unknown>;
|
|
1633
|
-
}, z.core.$strip>>>;
|
|
1634
|
-
template: z.ZodOptional<z.ZodString>;
|
|
1635
|
-
templateData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1636
|
-
}, z.core.$strip>;
|
|
1637
|
-
|
|
1638
1612
|
/**
|
|
1639
1613
|
* Canonical channel-id vocabulary shared between the assistant daemon and the
|
|
1640
1614
|
* gateway.
|
|
@@ -1658,32 +1632,6 @@ declare const CardSurfaceDataSchema: z.ZodObject<{
|
|
|
1658
1632
|
*/
|
|
1659
1633
|
declare const CHANNEL_IDS: readonly ["telegram", "phone", "vellum", "whatsapp", "slack", "email", "platform", "a2a"];
|
|
1660
1634
|
|
|
1661
|
-
/** Channel binding metadata exposed in conversation list APIs. */
|
|
1662
|
-
declare interface ChannelBinding {
|
|
1663
|
-
sourceChannel: ChannelId;
|
|
1664
|
-
externalChatId: string;
|
|
1665
|
-
externalChatName?: string | null;
|
|
1666
|
-
externalThreadId?: string | null;
|
|
1667
|
-
externalUserId?: string | null;
|
|
1668
|
-
displayName?: string | null;
|
|
1669
|
-
username?: string | null;
|
|
1670
|
-
slackThread?: {
|
|
1671
|
-
channelId: string;
|
|
1672
|
-
threadTs: string;
|
|
1673
|
-
link?: {
|
|
1674
|
-
appUrl?: string;
|
|
1675
|
-
webUrl?: string;
|
|
1676
|
-
};
|
|
1677
|
-
};
|
|
1678
|
-
slackChannel?: {
|
|
1679
|
-
channelId: string;
|
|
1680
|
-
name?: string;
|
|
1681
|
-
link?: {
|
|
1682
|
-
webUrl?: string;
|
|
1683
|
-
};
|
|
1684
|
-
};
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
1635
|
declare type ChannelId = (typeof CHANNEL_IDS)[number];
|
|
1688
1636
|
|
|
1689
1637
|
declare interface ChannelVerificationSessionResponse {
|
|
@@ -1723,28 +1671,6 @@ declare interface ChannelVerificationSessionResponse {
|
|
|
1723
1671
|
pendingBootstrap?: boolean;
|
|
1724
1672
|
}
|
|
1725
1673
|
|
|
1726
|
-
declare type ChoiceSurfaceData = z.infer<typeof ChoiceSurfaceDataSchema>;
|
|
1727
|
-
|
|
1728
|
-
declare const ChoiceSurfaceDataSchema: z.ZodObject<{
|
|
1729
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1730
|
-
options: z.ZodPipe<z.ZodTransform<{
|
|
1731
|
-
id: string;
|
|
1732
|
-
title: string;
|
|
1733
|
-
}[], unknown>, z.ZodArray<z.ZodObject<{
|
|
1734
|
-
id: z.ZodString;
|
|
1735
|
-
title: z.ZodString;
|
|
1736
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1737
|
-
recommended: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
1738
|
-
data: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1739
|
-
}, z.core.$strip>>>;
|
|
1740
|
-
selectionMode: z.ZodPipe<z.ZodTransform<"single" | "multiple", unknown>, z.ZodEnum<{
|
|
1741
|
-
single: "single";
|
|
1742
|
-
multiple: "multiple";
|
|
1743
|
-
}>>;
|
|
1744
|
-
commitOnSelect: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
1745
|
-
submitLabel: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1746
|
-
}, z.core.$strip>;
|
|
1747
|
-
|
|
1748
1674
|
export declare const CLI_COMMAND_HELP: readonly CliCommandHelp[];
|
|
1749
1675
|
|
|
1750
1676
|
declare interface CliArgumentHelp {
|
|
@@ -1943,17 +1869,6 @@ declare const ConfirmationStateChangedEventSchema: z.ZodObject<{
|
|
|
1943
1869
|
toolUseId: z.ZodOptional<z.ZodString>;
|
|
1944
1870
|
}, z.core.$strip>;
|
|
1945
1871
|
|
|
1946
|
-
declare type ConfirmationSurfaceData = z.infer<typeof ConfirmationSurfaceDataSchema>;
|
|
1947
|
-
|
|
1948
|
-
declare const ConfirmationSurfaceDataSchema: z.ZodObject<{
|
|
1949
|
-
message: z.ZodCatch<z.ZodString>;
|
|
1950
|
-
detail: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1951
|
-
confirmLabel: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1952
|
-
confirmedLabel: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1953
|
-
cancelLabel: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1954
|
-
destructive: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
1955
|
-
}, z.core.$strip>;
|
|
1956
|
-
|
|
1957
1872
|
declare type ContactRequestEvent = z.infer<typeof ContactRequestEventSchema>;
|
|
1958
1873
|
|
|
1959
1874
|
declare const ContactRequestEventSchema: z.ZodObject<{
|
|
@@ -2059,12 +1974,6 @@ declare const ConversationErrorEventSchema: z.ZodObject<{
|
|
|
2059
1974
|
profileName: z.ZodOptional<z.ZodString>;
|
|
2060
1975
|
}, z.core.$strip>;
|
|
2061
1976
|
|
|
2062
|
-
declare interface ConversationForkParent {
|
|
2063
|
-
conversationId: string;
|
|
2064
|
-
messageId: string;
|
|
2065
|
-
title: string;
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
1977
|
declare type ConversationInferenceProfileUpdatedEvent = z.infer<typeof ConversationInferenceProfileUpdatedEventSchema>;
|
|
2069
1978
|
|
|
2070
1979
|
declare const ConversationInferenceProfileUpdatedEventSchema: z.ZodObject<{
|
|
@@ -2075,19 +1984,6 @@ declare const ConversationInferenceProfileUpdatedEventSchema: z.ZodObject<{
|
|
|
2075
1984
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2076
1985
|
}, z.core.$strip>;
|
|
2077
1986
|
|
|
2078
|
-
declare interface ConversationInfo {
|
|
2079
|
-
type: "conversation_info";
|
|
2080
|
-
conversationId: string;
|
|
2081
|
-
title: string;
|
|
2082
|
-
correlationId?: string;
|
|
2083
|
-
conversationType?: ConversationType;
|
|
2084
|
-
/**
|
|
2085
|
-
* Per-conversation override for the LLM inference profile. `undefined`
|
|
2086
|
-
* means the conversation inherits the workspace `llm.activeProfile`.
|
|
2087
|
-
*/
|
|
2088
|
-
inferenceProfile?: string;
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
1987
|
declare type ConversationListInvalidatedEvent = z.infer<typeof ConversationListInvalidatedEventSchema>;
|
|
2092
1988
|
|
|
2093
1989
|
declare const ConversationListInvalidatedEventSchema: z.ZodObject<{
|
|
@@ -2101,33 +1997,6 @@ declare const ConversationListInvalidatedEventSchema: z.ZodObject<{
|
|
|
2101
1997
|
}>;
|
|
2102
1998
|
}, z.core.$strip>;
|
|
2103
1999
|
|
|
2104
|
-
declare interface ConversationListResponse {
|
|
2105
|
-
type: "conversation_list_response";
|
|
2106
|
-
conversations: Array<{
|
|
2107
|
-
id: string;
|
|
2108
|
-
title: string;
|
|
2109
|
-
createdAt?: number;
|
|
2110
|
-
updatedAt: number;
|
|
2111
|
-
conversationType?: ConversationType;
|
|
2112
|
-
source?: string;
|
|
2113
|
-
scheduleJobId?: string;
|
|
2114
|
-
channelBinding?: ChannelBinding;
|
|
2115
|
-
conversationOriginChannel?: ChannelId;
|
|
2116
|
-
conversationOriginInterface?: InterfaceId;
|
|
2117
|
-
assistantAttention?: AssistantAttention;
|
|
2118
|
-
displayOrder?: number;
|
|
2119
|
-
isPinned?: boolean;
|
|
2120
|
-
forkParent?: ConversationForkParent;
|
|
2121
|
-
/**
|
|
2122
|
-
* Per-conversation override for the LLM inference profile. Omitted when
|
|
2123
|
-
* the conversation inherits the workspace `llm.activeProfile`.
|
|
2124
|
-
*/
|
|
2125
|
-
inferenceProfile?: string;
|
|
2126
|
-
}>;
|
|
2127
|
-
/** Whether more conversations exist beyond the returned page. */
|
|
2128
|
-
hasMore?: boolean;
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
2000
|
declare type ConversationNoticeEvent = z.infer<typeof ConversationNoticeEventSchema>;
|
|
2132
2001
|
|
|
2133
2002
|
declare const ConversationNoticeEventSchema: z.ZodObject<{
|
|
@@ -2205,7 +2074,7 @@ export declare interface ConversationRow {
|
|
|
2205
2074
|
*/
|
|
2206
2075
|
export declare type ConversationsClearedContext = BaseHookContext;
|
|
2207
2076
|
|
|
2208
|
-
declare type _ConversationsServerMessages = AssistantStatusEvent | GenerationCancelledEvent | GenerationHandoffEvent | ModelInfoEvent |
|
|
2077
|
+
declare type _ConversationsServerMessages = AssistantStatusEvent | GenerationCancelledEvent | GenerationHandoffEvent | ModelInfoEvent | UsageUpdateEvent | UsageProgressEvent | ContextCompactedEvent | CompactionCircuitOpenEvent | CompactionCircuitClosedEvent | ConversationErrorEvent | ConversationNoticeEvent | ConversationTitleUpdatedEvent | ConversationListInvalidatedEvent | ScheduleConversationCreatedEvent | OpenConversationEvent;
|
|
2209
2078
|
|
|
2210
2079
|
declare type ConversationTitleUpdatedEvent = z.infer<typeof ConversationTitleUpdatedEventSchema>;
|
|
2211
2080
|
|
|
@@ -2215,18 +2084,8 @@ declare const ConversationTitleUpdatedEventSchema: z.ZodObject<{
|
|
|
2215
2084
|
title: z.ZodString;
|
|
2216
2085
|
}, z.core.$strip>;
|
|
2217
2086
|
|
|
2218
|
-
declare type ConversationType = "standard" | "background" | "scheduled";
|
|
2219
|
-
|
|
2220
2087
|
/** Read-side alias of {@link ConversationCreateType}. */
|
|
2221
|
-
declare type
|
|
2222
|
-
|
|
2223
|
-
declare type CopyBlockSurfaceData = z.infer<typeof CopyBlockSurfaceDataSchema>;
|
|
2224
|
-
|
|
2225
|
-
declare const CopyBlockSurfaceDataSchema: z.ZodObject<{
|
|
2226
|
-
text: z.ZodCatch<z.ZodString>;
|
|
2227
|
-
label: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2228
|
-
language: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2229
|
-
}, z.core.$strip>;
|
|
2088
|
+
declare type ConversationType = ConversationCreateType;
|
|
2230
2089
|
|
|
2231
2090
|
/** Create a live voice connection bound to the caller's `send` transport. */
|
|
2232
2091
|
export declare function createLiveVoiceConnection(options: {
|
|
@@ -2382,16 +2241,6 @@ declare const DocumentEditorUpdateEventSchema: z.ZodObject<{
|
|
|
2382
2241
|
mode: z.ZodString;
|
|
2383
2242
|
}, z.core.$strip>;
|
|
2384
2243
|
|
|
2385
|
-
declare type DocumentPreviewSurfaceData = z.infer<typeof DocumentPreviewSurfaceDataSchema>;
|
|
2386
|
-
|
|
2387
|
-
declare const DocumentPreviewSurfaceDataSchema: z.ZodObject<{
|
|
2388
|
-
title: z.ZodCatch<z.ZodString>;
|
|
2389
|
-
surfaceId: z.ZodCatch<z.ZodString>;
|
|
2390
|
-
subtitle: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2391
|
-
content: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2392
|
-
mimeType: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2393
|
-
}, z.core.$strip>;
|
|
2394
|
-
|
|
2395
2244
|
declare type _DocumentsServerMessages = DocumentEditorShowEvent | DocumentEditorUpdateEvent;
|
|
2396
2245
|
|
|
2397
2246
|
/**
|
|
@@ -2403,33 +2252,6 @@ declare type _DocumentsServerMessages = DocumentEditorShowEvent | DocumentEditor
|
|
|
2403
2252
|
*/
|
|
2404
2253
|
export declare function doesSupportVision(modelOrProfile: ModelProfileInfo | string): boolean;
|
|
2405
2254
|
|
|
2406
|
-
declare type DynamicPageSurfaceData = z.infer<typeof DynamicPageSurfaceDataSchema>;
|
|
2407
|
-
|
|
2408
|
-
declare const DynamicPageSurfaceDataSchema: z.ZodObject<{
|
|
2409
|
-
html: z.ZodCatch<z.ZodString>;
|
|
2410
|
-
width: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
2411
|
-
height: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
2412
|
-
appId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2413
|
-
dirName: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2414
|
-
reloadGeneration: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
2415
|
-
status: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2416
|
-
preview: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
2417
|
-
title: z.ZodCatch<z.ZodString>;
|
|
2418
|
-
subtitle: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2419
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2420
|
-
icon: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2421
|
-
metrics: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2422
|
-
label: z.ZodCoercedString<unknown>;
|
|
2423
|
-
value: z.ZodCoercedString<unknown>;
|
|
2424
|
-
}, z.core.$strip>>>>;
|
|
2425
|
-
context: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
2426
|
-
app_create: "app_create";
|
|
2427
|
-
general: "general";
|
|
2428
|
-
}>>>;
|
|
2429
|
-
previewImage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2430
|
-
}, z.core.$strip>>>;
|
|
2431
|
-
}, z.core.$strip>;
|
|
2432
|
-
|
|
2433
2255
|
/** Embed a target and upsert its vector into the vector store. */
|
|
2434
2256
|
export declare function embedAndUpsert(targetType: EmbeddingTargetType, targetId: string, input: EmbeddingInput, extraPayload?: Record<string, unknown>): Promise<void>;
|
|
2435
2257
|
|
|
@@ -2481,74 +2303,6 @@ export declare interface FileContent {
|
|
|
2481
2303
|
_attachmentId?: string;
|
|
2482
2304
|
}
|
|
2483
2305
|
|
|
2484
|
-
declare type FileUploadSurfaceData = z.infer<typeof FileUploadSurfaceDataSchema>;
|
|
2485
|
-
|
|
2486
|
-
declare const FileUploadSurfaceDataSchema: z.ZodObject<{
|
|
2487
|
-
prompt: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
2488
|
-
acceptedTypes: z.ZodPipe<z.ZodTransform<string[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2489
|
-
maxFiles: z.ZodCatch<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
2490
|
-
maxSizeBytes: z.ZodCatch<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
2491
|
-
}, z.core.$strip>;
|
|
2492
|
-
|
|
2493
|
-
declare type FormSurfaceData = z.infer<typeof FormSurfaceDataSchema>;
|
|
2494
|
-
|
|
2495
|
-
declare const FormSurfaceDataSchema: z.ZodObject<{
|
|
2496
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2497
|
-
fields: z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
2498
|
-
id: z.ZodCatch<z.ZodString>;
|
|
2499
|
-
type: z.ZodCatch<z.ZodEnum<{
|
|
2500
|
-
number: "number";
|
|
2501
|
-
text: "text";
|
|
2502
|
-
textarea: "textarea";
|
|
2503
|
-
select: "select";
|
|
2504
|
-
toggle: "toggle";
|
|
2505
|
-
password: "password";
|
|
2506
|
-
}>>;
|
|
2507
|
-
label: z.ZodCatch<z.ZodString>;
|
|
2508
|
-
placeholder: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2509
|
-
required: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
2510
|
-
defaultValue: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2511
|
-
options: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2512
|
-
label: z.ZodCoercedString<unknown>;
|
|
2513
|
-
value: z.ZodCoercedString<unknown>;
|
|
2514
|
-
}, z.core.$strip>>>>;
|
|
2515
|
-
}, z.core.$strip>>>;
|
|
2516
|
-
submitLabel: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2517
|
-
pages: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
2518
|
-
id: z.ZodCatch<z.ZodString>;
|
|
2519
|
-
title: z.ZodCatch<z.ZodString>;
|
|
2520
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2521
|
-
fields: z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
2522
|
-
id: z.ZodCatch<z.ZodString>;
|
|
2523
|
-
type: z.ZodCatch<z.ZodEnum<{
|
|
2524
|
-
number: "number";
|
|
2525
|
-
text: "text";
|
|
2526
|
-
textarea: "textarea";
|
|
2527
|
-
select: "select";
|
|
2528
|
-
toggle: "toggle";
|
|
2529
|
-
password: "password";
|
|
2530
|
-
}>>;
|
|
2531
|
-
label: z.ZodCatch<z.ZodString>;
|
|
2532
|
-
placeholder: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2533
|
-
required: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
2534
|
-
defaultValue: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2535
|
-
options: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2536
|
-
label: z.ZodCoercedString<unknown>;
|
|
2537
|
-
value: z.ZodCoercedString<unknown>;
|
|
2538
|
-
}, z.core.$strip>>>>;
|
|
2539
|
-
}, z.core.$strip>>>;
|
|
2540
|
-
}, z.core.$strip>>>>>;
|
|
2541
|
-
pageLabels: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
2542
|
-
next: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2543
|
-
back: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2544
|
-
submit: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
2545
|
-
}, z.core.$strip>>>;
|
|
2546
|
-
progressStyle: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
2547
|
-
bar: "bar";
|
|
2548
|
-
tabs: "tabs";
|
|
2549
|
-
}>>>;
|
|
2550
|
-
}, z.core.$strip>;
|
|
2551
|
-
|
|
2552
2306
|
declare type GenerationCancelledEvent = z.infer<typeof GenerationCancelledEventSchema>;
|
|
2553
2307
|
|
|
2554
2308
|
declare const GenerationCancelledEventSchema: z.ZodObject<{
|
|
@@ -2669,99 +2423,6 @@ declare const HeartbeatConversationCreatedEventSchema: z.ZodObject<{
|
|
|
2669
2423
|
title: z.ZodString;
|
|
2670
2424
|
}, z.core.$strip>;
|
|
2671
2425
|
|
|
2672
|
-
declare interface HistoryResponse {
|
|
2673
|
-
type: "history_response";
|
|
2674
|
-
conversationId: string;
|
|
2675
|
-
messages: Array<{
|
|
2676
|
-
/** Database ID used by clients for the rendered message. */
|
|
2677
|
-
id?: string;
|
|
2678
|
-
role: string;
|
|
2679
|
-
text: string;
|
|
2680
|
-
timestamp: number;
|
|
2681
|
-
toolCalls?: HistoryResponseToolCall[];
|
|
2682
|
-
/** True when tool_use blocks appeared before any text block in the original content. */
|
|
2683
|
-
toolCallsBeforeText?: boolean;
|
|
2684
|
-
attachments?: UserMessageAttachment[];
|
|
2685
|
-
/** Text segments split by tool-call boundaries. Preserves interleaving order. */
|
|
2686
|
-
textSegments?: string[];
|
|
2687
|
-
/** Content block ordering using "text:N", "tool:N", "surface:N" encoding. */
|
|
2688
|
-
contentOrder?: string[];
|
|
2689
|
-
/** UI surfaces (widgets) embedded in the message. */
|
|
2690
|
-
surfaces?: HistoryResponseSurface[];
|
|
2691
|
-
/** Present when this message is a subagent lifecycle notification (running/completed/failed/aborted). */
|
|
2692
|
-
subagentNotification?: {
|
|
2693
|
-
subagentId: string;
|
|
2694
|
-
label: string;
|
|
2695
|
-
status: "running" | "completed" | "failed" | "aborted";
|
|
2696
|
-
error?: string;
|
|
2697
|
-
conversationId?: string;
|
|
2698
|
-
objective?: string;
|
|
2699
|
-
};
|
|
2700
|
-
/** True when text or tool result content was truncated due to maxTextChars/maxToolResultChars. */
|
|
2701
|
-
wasTruncated?: boolean;
|
|
2702
|
-
}>;
|
|
2703
|
-
/** Whether older messages exist beyond the returned page. */
|
|
2704
|
-
hasMore: boolean;
|
|
2705
|
-
/** Timestamp of the oldest message in the response (client uses as next pagination cursor). */
|
|
2706
|
-
oldestTimestamp?: number;
|
|
2707
|
-
/** ID of the oldest message in the response (tie-breaker for same-millisecond cursors). */
|
|
2708
|
-
oldestMessageId?: string;
|
|
2709
|
-
}
|
|
2710
|
-
|
|
2711
|
-
declare interface HistoryResponseSurface {
|
|
2712
|
-
surfaceId: string;
|
|
2713
|
-
surfaceType: string;
|
|
2714
|
-
title?: string;
|
|
2715
|
-
data: Record<string, unknown>;
|
|
2716
|
-
actions?: Array<{
|
|
2717
|
-
id: string;
|
|
2718
|
-
label: string;
|
|
2719
|
-
style?: string;
|
|
2720
|
-
data?: Record<string, unknown>;
|
|
2721
|
-
}>;
|
|
2722
|
-
display?: string;
|
|
2723
|
-
/** True when the surface was completed (e.g. form submitted, action taken). */
|
|
2724
|
-
completed?: boolean;
|
|
2725
|
-
/** Human-readable summary shown in the completion chip. */
|
|
2726
|
-
completionSummary?: string;
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
|
-
declare interface HistoryResponseToolCall {
|
|
2730
|
-
name: string;
|
|
2731
|
-
input: Record<string, unknown>;
|
|
2732
|
-
result?: string;
|
|
2733
|
-
isError?: boolean;
|
|
2734
|
-
/** Base64-encoded image data from tool contentBlocks (e.g. browser_screenshot). @deprecated Use imageDataList. */
|
|
2735
|
-
imageData?: string;
|
|
2736
|
-
/** Base64-encoded image data from tool contentBlocks (e.g. browser_screenshot, image generation). */
|
|
2737
|
-
imageDataList?: string[];
|
|
2738
|
-
/** Workspace attachment ids for tool-result images persisted as references; clients fetch bytes by id on render instead of embedding base64. */
|
|
2739
|
-
imageAttachmentIds?: string[];
|
|
2740
|
-
/** Unix ms when the tool started executing. */
|
|
2741
|
-
startedAt?: number;
|
|
2742
|
-
/** Unix ms when the tool completed. */
|
|
2743
|
-
completedAt?: number;
|
|
2744
|
-
/** Confirmation decision for this tool call: "approved" | "denied" | "timed_out". */
|
|
2745
|
-
confirmationDecision?: string;
|
|
2746
|
-
/** Friendly label for the confirmation (e.g. "Edit File", "Run Command"). */
|
|
2747
|
-
confirmationLabel?: string;
|
|
2748
|
-
/** Risk level at the time of invocation ("low" | "medium" | "high" | "unknown"). */
|
|
2749
|
-
riskLevel?: string;
|
|
2750
|
-
/** Human-readable reason for the risk classification. */
|
|
2751
|
-
riskReason?: string;
|
|
2752
|
-
/**
|
|
2753
|
-
* @deprecated Use `approvalMode` and `approvalReason` instead.
|
|
2754
|
-
* Kept for backward compatibility during the migration window.
|
|
2755
|
-
*/
|
|
2756
|
-
autoApproved?: boolean;
|
|
2757
|
-
/** How the approval decision was reached: prompted, auto, blocked, or unknown (legacy). */
|
|
2758
|
-
approvalMode?: string;
|
|
2759
|
-
/** Why the approval decision was reached (stable enum for client display). */
|
|
2760
|
-
approvalReason?: string;
|
|
2761
|
-
/** Snapshot of the auto-approve threshold at execution time. */
|
|
2762
|
-
riskThreshold?: string;
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
2426
|
declare type HomeFeedUpdatedEvent = z.infer<typeof HomeFeedUpdatedEventSchema>;
|
|
2766
2427
|
|
|
2767
2428
|
declare const HomeFeedUpdatedEventSchema: z.ZodObject<{
|
|
@@ -3303,7 +2964,7 @@ export declare function lastToolResultUserMessageIndex(history: Message[]): numb
|
|
|
3303
2964
|
export declare function listCatalogSkills(): Promise<ResolvedSkillEntry[]>;
|
|
3304
2965
|
|
|
3305
2966
|
/** List conversation rows, newest first. */
|
|
3306
|
-
export declare function listConversations(limit?: number, conversationType?:
|
|
2967
|
+
export declare function listConversations(limit?: number, conversationType?: ConversationType, offset?: number, archiveStatus?: ArchiveStatusFilter, originChannel?: string): Promise<ConversationRow[]>;
|
|
3307
2968
|
|
|
3308
2969
|
/**
|
|
3309
2970
|
* The locally installed skill catalog with resolved states. Includes every
|
|
@@ -3313,23 +2974,6 @@ export declare function listConversations(limit?: number, conversationType?: Con
|
|
|
3313
2974
|
*/
|
|
3314
2975
|
export declare function listInstalledSkills(): Promise<ResolvedSkillEntry[]>;
|
|
3315
2976
|
|
|
3316
|
-
declare type ListSurfaceData = z.infer<typeof ListSurfaceDataSchema>;
|
|
3317
|
-
|
|
3318
|
-
declare const ListSurfaceDataSchema: z.ZodObject<{
|
|
3319
|
-
items: z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
3320
|
-
id: z.ZodCatch<z.ZodString>;
|
|
3321
|
-
title: z.ZodCatch<z.ZodString>;
|
|
3322
|
-
subtitle: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
3323
|
-
icon: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
3324
|
-
selected: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
3325
|
-
}, z.core.$strip>>>;
|
|
3326
|
-
selectionMode: z.ZodCatch<z.ZodEnum<{
|
|
3327
|
-
none: "none";
|
|
3328
|
-
single: "single";
|
|
3329
|
-
multiple: "multiple";
|
|
3330
|
-
}>>;
|
|
3331
|
-
}, z.core.$strip>;
|
|
3332
|
-
|
|
3333
2977
|
declare const _LIVE_VOICE_SERVER_FRAME_TYPES: readonly ["ready", "busy", "speech_started", "utterance_end", "utterance_discarded", "stt_partial", "stt_final", "thinking", "assistant_text_delta", "tts_audio", "tts_done", "turn_cancelled", "metrics", "archived", "error"];
|
|
3334
2978
|
|
|
3335
2979
|
declare const LIVE_VOICE_TURN_DETECTION_MODES: readonly ["manual", "server_vad"];
|
|
@@ -3955,15 +3599,6 @@ declare const OAuthConnectResultEventSchema: z.ZodObject<{
|
|
|
3955
3599
|
error: z.ZodOptional<z.ZodString>;
|
|
3956
3600
|
}, z.core.$strip>;
|
|
3957
3601
|
|
|
3958
|
-
declare type OAuthConnectSurfaceData = z.infer<typeof OAuthConnectSurfaceDataSchema>;
|
|
3959
|
-
|
|
3960
|
-
declare const OAuthConnectSurfaceDataSchema: z.ZodObject<{
|
|
3961
|
-
providerKey: z.ZodCatch<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
3962
|
-
displayName: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
3963
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
3964
|
-
logoUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3965
|
-
}, z.core.$strip>;
|
|
3966
|
-
|
|
3967
3602
|
declare type OpenConversationEvent = z.infer<typeof OpenConversationEventSchema>;
|
|
3968
3603
|
|
|
3969
3604
|
declare const OpenConversationEventSchema: z.ZodObject<{
|
|
@@ -4522,6 +4157,17 @@ declare interface ProxyApprovalRequest {
|
|
|
4522
4157
|
|
|
4523
4158
|
declare type ProxyToolResolver = (toolName: string, input: Record<string, unknown>) => Promise<ToolExecutionResult>;
|
|
4524
4159
|
|
|
4160
|
+
/**
|
|
4161
|
+
* Publish a runtime event to the assistant's event hub. Resolves once fanout to
|
|
4162
|
+
* all subscribers has been attempted (a throwing subscriber never aborts
|
|
4163
|
+
* delivery to the rest). Rejects if the event is non-serializable or is a
|
|
4164
|
+
* host-proxy control event, which plugins may not publish.
|
|
4165
|
+
*/
|
|
4166
|
+
export declare function publishEvent(event: AssistantEvent, options?: PublishEventOptions): Promise<void>;
|
|
4167
|
+
|
|
4168
|
+
/** Publish options, mirroring the hub's `publish` options (targeting, self-echo suppression). */
|
|
4169
|
+
export declare type PublishEventOptions = NonNullable<Parameters<PluginEventHub["publish"]>[1]>;
|
|
4170
|
+
|
|
4525
4171
|
/**
|
|
4526
4172
|
* Remove every previously-refused exchange from a working history: for each
|
|
4527
4173
|
* assistant message that is exactly the refusal fallback, drop it together with
|
|
@@ -5080,7 +4726,7 @@ declare interface SensitiveOutputBinding {
|
|
|
5080
4726
|
|
|
5081
4727
|
declare type SensitiveOutputKind = "invite_code";
|
|
5082
4728
|
|
|
5083
|
-
declare type ServerMessage = _ConversationsServerMessages | _MessagesServerMessages | _SurfacesServerMessages | _SkillsServerMessages | _AppsServerMessages | _IntegrationsServerMessages | _ComputerUseServerMessages | _ContactsServerMessages | _SubagentsServerMessages | _DocumentsServerMessages | _DocumentCommentsServerMessages | _SyncInvalidationServerMessages | _HomeServerMessages | _HostAppControlServerMessages | _HostBashServerMessages | _HostBrowserServerMessages | _HostCuServerMessages | _HostFileServerMessages | _HostTransferServerMessages | _HostUiSnapshotServerMessages | _MemoryServerMessages | _WorkspaceServerMessages | _SchedulesServerMessages | _SettingsServerMessages | _NotificationsServerMessages | _UpgradesServerMessages | _AcpServerMessages | _BackgroundToolsServerMessages | _BookmarksServerMessages | _WorkflowsServerMessages | DiskPressureStatusChangedEvent | HookEvent |
|
|
4729
|
+
declare type ServerMessage = _ConversationsServerMessages | _MessagesServerMessages | _SurfacesServerMessages | _SkillsServerMessages | _AppsServerMessages | _IntegrationsServerMessages | _ComputerUseServerMessages | _ContactsServerMessages | _SubagentsServerMessages | _DocumentsServerMessages | _DocumentCommentsServerMessages | _SyncInvalidationServerMessages | _HomeServerMessages | _HostAppControlServerMessages | _HostBashServerMessages | _HostBrowserServerMessages | _HostCuServerMessages | _HostFileServerMessages | _HostTransferServerMessages | _HostUiSnapshotServerMessages | _MemoryServerMessages | _WorkspaceServerMessages | _SchedulesServerMessages | _SettingsServerMessages | _NotificationsServerMessages | _UpgradesServerMessages | _AcpServerMessages | _BackgroundToolsServerMessages | _BookmarksServerMessages | _WorkflowsServerMessages | DiskPressureStatusChangedEvent | HookEvent | SubagentEventEvent;
|
|
5084
4730
|
|
|
5085
4731
|
export declare interface ServerToolUseContent {
|
|
5086
4732
|
type: "server_tool_use";
|
|
@@ -5443,27 +5089,23 @@ export declare interface SttStreamServerPartialEvent {
|
|
|
5443
5089
|
readonly confidence?: number;
|
|
5444
5090
|
}
|
|
5445
5091
|
|
|
5446
|
-
declare
|
|
5447
|
-
type: "subagent_detail_response";
|
|
5448
|
-
subagentId: string;
|
|
5449
|
-
objective?: string;
|
|
5450
|
-
usage?: UsageStats;
|
|
5451
|
-
events: Array<{
|
|
5452
|
-
type: string;
|
|
5453
|
-
content: string;
|
|
5454
|
-
toolName?: string;
|
|
5455
|
-
isError?: boolean;
|
|
5456
|
-
messageId?: string;
|
|
5457
|
-
}>;
|
|
5458
|
-
}
|
|
5092
|
+
declare type SubagentEventEvent = z.infer<typeof SubagentEventEventSchema>;
|
|
5459
5093
|
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
subagentId:
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5094
|
+
declare const SubagentEventEventSchema: z.ZodObject<{
|
|
5095
|
+
type: z.ZodLiteral<"subagent_event">;
|
|
5096
|
+
conversationId: z.ZodString;
|
|
5097
|
+
subagentId: z.ZodString;
|
|
5098
|
+
event: z.ZodObject<{
|
|
5099
|
+
type: z.ZodString;
|
|
5100
|
+
content: z.ZodOptional<z.ZodString>;
|
|
5101
|
+
text: z.ZodOptional<z.ZodString>;
|
|
5102
|
+
result: z.ZodOptional<z.ZodString>;
|
|
5103
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5104
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
5105
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
5106
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
5107
|
+
}, z.core.$loose>;
|
|
5108
|
+
}, z.core.$strict>;
|
|
5467
5109
|
|
|
5468
5110
|
declare type SubagentSpawnedEvent = z.infer<typeof SubagentSpawnedEventSchema>;
|
|
5469
5111
|
|
|
@@ -5477,7 +5119,7 @@ declare const SubagentSpawnedEventSchema: z.ZodObject<{
|
|
|
5477
5119
|
parentToolUseId: z.ZodOptional<z.ZodString>;
|
|
5478
5120
|
}, z.core.$strict>;
|
|
5479
5121
|
|
|
5480
|
-
declare type _SubagentsServerMessages = SubagentSpawnedEvent | SubagentStatusChangedEvent
|
|
5122
|
+
declare type _SubagentsServerMessages = SubagentSpawnedEvent | SubagentStatusChangedEvent;
|
|
5481
5123
|
|
|
5482
5124
|
declare type SubagentStatusChangedEvent = z.infer<typeof SubagentStatusChangedEventSchema>;
|
|
5483
5125
|
|
|
@@ -5488,9 +5130,9 @@ declare const SubagentStatusChangedEventSchema: z.ZodObject<{
|
|
|
5488
5130
|
completed: "completed";
|
|
5489
5131
|
failed: "failed";
|
|
5490
5132
|
running: "running";
|
|
5491
|
-
aborted: "aborted";
|
|
5492
5133
|
pending: "pending";
|
|
5493
5134
|
awaiting_input: "awaiting_input";
|
|
5135
|
+
aborted: "aborted";
|
|
5494
5136
|
interrupted: "interrupted";
|
|
5495
5137
|
}>;
|
|
5496
5138
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -5509,70 +5151,7 @@ declare type SubscriberInput = DistributiveOmit<SubscriberEntry, "active" | "con
|
|
|
5509
5151
|
onEvict?: () => void;
|
|
5510
5152
|
};
|
|
5511
5153
|
|
|
5512
|
-
declare
|
|
5513
|
-
id: string;
|
|
5514
|
-
label: string;
|
|
5515
|
-
style?: "primary" | "secondary" | "destructive";
|
|
5516
|
-
/** Optional data payload returned to the daemon when this action is clicked. */
|
|
5517
|
-
data?: Record<string, unknown>;
|
|
5518
|
-
}
|
|
5519
|
-
|
|
5520
|
-
/**
|
|
5521
|
-
* Per-type `data` payload shapes, keyed by surface type. This is the
|
|
5522
|
-
* correlation source for everything that pairs a `surfaceType` with its
|
|
5523
|
-
* `data`: generic code indexes it (`SurfaceDataByType[K]`) so the compiler
|
|
5524
|
-
* tracks which data shape belongs to which type instead of collapsing to
|
|
5525
|
-
* the undiscriminated `SurfaceData` union.
|
|
5526
|
-
*
|
|
5527
|
-
* Several types are opaque records — they carry data the daemon persists
|
|
5528
|
-
* and serves verbatim but whose shape it does not model, which is why they
|
|
5529
|
-
* are absent from the renderable `SurfaceData` union: `channel_setup` (a
|
|
5530
|
-
* side-effect command forwarded to the setup panel), `task_preferences` (a
|
|
5531
|
-
* fixed grid that reads no data), and `skill_card` / `call_summary` (cards
|
|
5532
|
-
* the daemon appends to history directly — the memory retrospective and a
|
|
5533
|
-
* call summary — and whose data shape is owned by their client renderers).
|
|
5534
|
-
*/
|
|
5535
|
-
declare interface SurfaceDataByType {
|
|
5536
|
-
card: CardSurfaceData;
|
|
5537
|
-
channel_setup: Record<string, unknown>;
|
|
5538
|
-
choice: ChoiceSurfaceData;
|
|
5539
|
-
copy_block: CopyBlockSurfaceData;
|
|
5540
|
-
oauth_connect: OAuthConnectSurfaceData;
|
|
5541
|
-
form: FormSurfaceData;
|
|
5542
|
-
list: ListSurfaceData;
|
|
5543
|
-
table: TableSurfaceData;
|
|
5544
|
-
confirmation: ConfirmationSurfaceData;
|
|
5545
|
-
dynamic_page: DynamicPageSurfaceData;
|
|
5546
|
-
file_upload: FileUploadSurfaceData;
|
|
5547
|
-
document_preview: DocumentPreviewSurfaceData;
|
|
5548
|
-
task_preferences: Record<string, unknown>;
|
|
5549
|
-
work_result: WorkResultSurfaceData;
|
|
5550
|
-
skill_card: Record<string, unknown>;
|
|
5551
|
-
call_summary: Record<string, unknown>;
|
|
5552
|
-
}
|
|
5553
|
-
|
|
5554
|
-
declare type _SurfacesServerMessages = UiSurfaceShow | UiSurfaceUpdate | UISurfaceDismissEvent | UISurfaceCompleteEvent | UISurfaceUndoResultEvent;
|
|
5555
|
-
|
|
5556
|
-
declare type SurfaceType = z.infer<typeof SurfaceTypeSchema>;
|
|
5557
|
-
|
|
5558
|
-
declare const SurfaceTypeSchema: z.ZodEnum<{
|
|
5559
|
-
table: "table";
|
|
5560
|
-
card: "card";
|
|
5561
|
-
channel_setup: "channel_setup";
|
|
5562
|
-
choice: "choice";
|
|
5563
|
-
copy_block: "copy_block";
|
|
5564
|
-
oauth_connect: "oauth_connect";
|
|
5565
|
-
form: "form";
|
|
5566
|
-
list: "list";
|
|
5567
|
-
confirmation: "confirmation";
|
|
5568
|
-
dynamic_page: "dynamic_page";
|
|
5569
|
-
file_upload: "file_upload";
|
|
5570
|
-
document_preview: "document_preview";
|
|
5571
|
-
task_preferences: "task_preferences";
|
|
5572
|
-
work_result: "work_result";
|
|
5573
|
-
skill_card: "skill_card";
|
|
5574
|
-
call_summary: "call_summary";
|
|
5575
|
-
}>;
|
|
5154
|
+
declare type _SurfacesServerMessages = UISurfaceShowEvent | UISurfaceUpdateEvent | UISurfaceDismissEvent | UISurfaceCompleteEvent | UISurfaceUndoResultEvent;
|
|
5576
5155
|
|
|
5577
5156
|
/**
|
|
5578
5157
|
* Delete `graph_node` Qdrant points whose backing `memory_graph_nodes` row no
|
|
@@ -5638,32 +5217,6 @@ export declare interface SynthesizeTextOptions {
|
|
|
5638
5217
|
signal?: AbortSignal;
|
|
5639
5218
|
}
|
|
5640
5219
|
|
|
5641
|
-
declare type TableSurfaceData = z.infer<typeof TableSurfaceDataSchema>;
|
|
5642
|
-
|
|
5643
|
-
declare const TableSurfaceDataSchema: z.ZodObject<{
|
|
5644
|
-
columns: z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
5645
|
-
id: z.ZodCatch<z.ZodString>;
|
|
5646
|
-
label: z.ZodCatch<z.ZodString>;
|
|
5647
|
-
width: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
5648
|
-
}, z.core.$strip>>>;
|
|
5649
|
-
rows: z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
5650
|
-
id: z.ZodCatch<z.ZodString>;
|
|
5651
|
-
cells: z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
5652
|
-
text: z.ZodCatch<z.ZodCoercedString<unknown>>;
|
|
5653
|
-
icon: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
5654
|
-
iconColor: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
5655
|
-
}, z.core.$strip>]>>>>;
|
|
5656
|
-
selectable: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
5657
|
-
selected: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
5658
|
-
}, z.core.$strip>>>;
|
|
5659
|
-
selectionMode: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
5660
|
-
none: "none";
|
|
5661
|
-
single: "single";
|
|
5662
|
-
multiple: "multiple";
|
|
5663
|
-
}>>>;
|
|
5664
|
-
caption: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
5665
|
-
}, z.core.$strip>;
|
|
5666
|
-
|
|
5667
5220
|
export declare interface TextContent {
|
|
5668
5221
|
type: "text";
|
|
5669
5222
|
text: string;
|
|
@@ -6375,41 +5928,33 @@ declare const UISurfaceDismissEventSchema: z.ZodObject<{
|
|
|
6375
5928
|
surfaceId: z.ZodString;
|
|
6376
5929
|
}, z.core.$strip>;
|
|
6377
5930
|
|
|
6378
|
-
|
|
6379
|
-
* Discriminated union over every surface type, derived from
|
|
6380
|
-
* `SurfaceDataByType` so a type added there appears here automatically.
|
|
6381
|
-
* Includes the opaque types (`channel_setup`, `task_preferences`) — their
|
|
6382
|
-
* show events carry opaque record data.
|
|
6383
|
-
*/
|
|
6384
|
-
declare type UiSurfaceShow = {
|
|
6385
|
-
[K in SurfaceType]: UiSurfaceShowFor<K>;
|
|
6386
|
-
}[SurfaceType];
|
|
6387
|
-
|
|
6388
|
-
/** Common fields shared by all UiSurfaceShow variants. */
|
|
6389
|
-
declare interface UiSurfaceShowBase {
|
|
6390
|
-
type: "ui_surface_show";
|
|
6391
|
-
conversationId: string;
|
|
6392
|
-
surfaceId: string;
|
|
6393
|
-
title?: string;
|
|
6394
|
-
actions?: SurfaceAction[];
|
|
6395
|
-
display?: "inline" | "panel";
|
|
6396
|
-
/** The message ID that this surface belongs to (for history loading). */
|
|
6397
|
-
messageId?: string;
|
|
6398
|
-
/** When `true`, clicking an action does not dismiss the surface — the client keeps the card visible and only marks the clicked `actionId` as spent so siblings remain clickable. */
|
|
6399
|
-
persistent?: boolean;
|
|
6400
|
-
/** Id of the tool call that produced this surface (the `ui_show` proxy tool). Lets the client gate app previews on the tool result's arrival rather than whole-turn streaming state. */
|
|
6401
|
-
toolCallId?: string;
|
|
6402
|
-
}
|
|
5931
|
+
declare type UISurfaceShowEvent = z.infer<typeof UISurfaceShowEventSchema>;
|
|
6403
5932
|
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
5933
|
+
declare const UISurfaceShowEventSchema: z.ZodObject<{
|
|
5934
|
+
type: z.ZodLiteral<"ui_surface_show">;
|
|
5935
|
+
conversationId: z.ZodString;
|
|
5936
|
+
surfaceId: z.ZodString;
|
|
5937
|
+
surfaceType: z.ZodString;
|
|
5938
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5939
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5940
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5941
|
+
id: z.ZodString;
|
|
5942
|
+
label: z.ZodString;
|
|
5943
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
5944
|
+
primary: "primary";
|
|
5945
|
+
secondary: "secondary";
|
|
5946
|
+
destructive: "destructive";
|
|
5947
|
+
}>>;
|
|
5948
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5949
|
+
}, z.core.$strip>>>;
|
|
5950
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
5951
|
+
inline: "inline";
|
|
5952
|
+
panel: "panel";
|
|
5953
|
+
}>>;
|
|
5954
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
5955
|
+
persistent: z.ZodOptional<z.ZodBoolean>;
|
|
5956
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
5957
|
+
}, z.core.$strip>;
|
|
6413
5958
|
|
|
6414
5959
|
declare type UISurfaceUndoResultEvent = z.infer<typeof UISurfaceUndoResultEventSchema>;
|
|
6415
5960
|
|
|
@@ -6421,18 +5966,14 @@ declare const UISurfaceUndoResultEventSchema: z.ZodObject<{
|
|
|
6421
5966
|
remainingUndos: z.ZodNumber;
|
|
6422
5967
|
}, z.core.$strip>;
|
|
6423
5968
|
|
|
6424
|
-
declare
|
|
6425
|
-
type: "ui_surface_update";
|
|
6426
|
-
conversationId: string;
|
|
6427
|
-
surfaceId: string;
|
|
6428
|
-
data: Partial<AnySurfaceData>;
|
|
6429
|
-
}
|
|
5969
|
+
declare type UISurfaceUpdateEvent = z.infer<typeof UISurfaceUpdateEventSchema>;
|
|
6430
5970
|
|
|
6431
|
-
declare
|
|
6432
|
-
type: "
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
5971
|
+
declare const UISurfaceUpdateEventSchema: z.ZodObject<{
|
|
5972
|
+
type: z.ZodLiteral<"ui_surface_update">;
|
|
5973
|
+
conversationId: z.ZodString;
|
|
5974
|
+
surfaceId: z.ZodString;
|
|
5975
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5976
|
+
}, z.core.$strip>;
|
|
6436
5977
|
|
|
6437
5978
|
/** Merge the given keys into a message's metadata JSON. */
|
|
6438
5979
|
export declare function updateMessageMetadata(messageId: string, updates: Record<string, unknown>): Promise<void>;
|
|
@@ -6469,20 +6010,6 @@ declare const UsageProgressEventSchema: z.ZodObject<{
|
|
|
6469
6010
|
model: z.ZodString;
|
|
6470
6011
|
}, z.core.$strip>;
|
|
6471
6012
|
|
|
6472
|
-
declare interface UsageResponse {
|
|
6473
|
-
type: "usage_response";
|
|
6474
|
-
totalInputTokens: number;
|
|
6475
|
-
totalOutputTokens: number;
|
|
6476
|
-
estimatedCost: number;
|
|
6477
|
-
model: string;
|
|
6478
|
-
}
|
|
6479
|
-
|
|
6480
|
-
declare interface UsageStats {
|
|
6481
|
-
inputTokens: number;
|
|
6482
|
-
outputTokens: number;
|
|
6483
|
-
estimatedCost: number;
|
|
6484
|
-
}
|
|
6485
|
-
|
|
6486
6013
|
declare type UsageUpdateEvent = z.infer<typeof UsageUpdateEventSchema>;
|
|
6487
6014
|
|
|
6488
6015
|
declare const UsageUpdateEventSchema: z.ZodObject<{
|
|
@@ -6500,24 +6027,6 @@ declare const UsageUpdateEventSchema: z.ZodObject<{
|
|
|
6500
6027
|
contextWindowMaxTokens: z.ZodOptional<z.ZodNumber>;
|
|
6501
6028
|
}, z.core.$strip>;
|
|
6502
6029
|
|
|
6503
|
-
declare interface UserMessageAttachment {
|
|
6504
|
-
id?: string;
|
|
6505
|
-
filename: string;
|
|
6506
|
-
mimeType: string;
|
|
6507
|
-
data: string;
|
|
6508
|
-
/** Origin of the attachment on the daemon side, when known. */
|
|
6509
|
-
sourceType?: "sandbox_file" | "host_file" | "tool_block";
|
|
6510
|
-
extractedText?: string;
|
|
6511
|
-
/** Original file size in bytes. Present when data was omitted from history_response to reduce payload size. */
|
|
6512
|
-
sizeBytes?: number;
|
|
6513
|
-
/** Base64-encoded JPEG thumbnail. Generated server-side for video attachments. */
|
|
6514
|
-
thumbnailData?: string;
|
|
6515
|
-
/** Absolute path to the local file on disk. Present for file-backed attachments (e.g. recordings). */
|
|
6516
|
-
filePath?: string;
|
|
6517
|
-
/** True when the attachment is file-backed and clients should hydrate via the /content endpoint. */
|
|
6518
|
-
fileBacked?: boolean;
|
|
6519
|
-
}
|
|
6520
|
-
|
|
6521
6030
|
declare type UserMessageEchoEvent = z.infer<typeof UserMessageEchoEventSchema>;
|
|
6522
6031
|
|
|
6523
6032
|
declare const UserMessageEchoEventSchema: z.ZodObject<{
|
|
@@ -6766,64 +6275,6 @@ declare const WorkflowStartedEventSchema: z.ZodObject<{
|
|
|
6766
6275
|
label: z.ZodOptional<z.ZodString>;
|
|
6767
6276
|
}, z.core.$strict>;
|
|
6768
6277
|
|
|
6769
|
-
declare type WorkResultSurfaceData = z.infer<typeof WorkResultSurfaceDataSchema>;
|
|
6770
|
-
|
|
6771
|
-
declare const WorkResultSurfaceDataSchema: z.ZodObject<{
|
|
6772
|
-
eyebrow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6773
|
-
status: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
6774
|
-
completed: "completed";
|
|
6775
|
-
failed: "failed";
|
|
6776
|
-
partial: "partial";
|
|
6777
|
-
in_progress: "in_progress";
|
|
6778
|
-
}>>>;
|
|
6779
|
-
summary: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6780
|
-
metrics: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
6781
|
-
detail: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6782
|
-
tone: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
6783
|
-
neutral: "neutral";
|
|
6784
|
-
positive: "positive";
|
|
6785
|
-
warning: "warning";
|
|
6786
|
-
negative: "negative";
|
|
6787
|
-
}>>>;
|
|
6788
|
-
label: z.ZodCatch<z.ZodCoercedString<unknown>>;
|
|
6789
|
-
value: z.ZodCatch<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
6790
|
-
}, z.core.$strip>>>>>;
|
|
6791
|
-
sections: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
6792
|
-
id: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6793
|
-
title: z.ZodCatch<z.ZodCoercedString<unknown>>;
|
|
6794
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6795
|
-
type: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
6796
|
-
diff: "diff";
|
|
6797
|
-
items: "items";
|
|
6798
|
-
timeline: "timeline";
|
|
6799
|
-
artifacts: "artifacts";
|
|
6800
|
-
warnings: "warnings";
|
|
6801
|
-
}>>>;
|
|
6802
|
-
items: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
6803
|
-
id: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6804
|
-
title: z.ZodCatch<z.ZodCoercedString<unknown>>;
|
|
6805
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6806
|
-
status: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6807
|
-
tone: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
6808
|
-
neutral: "neutral";
|
|
6809
|
-
positive: "positive";
|
|
6810
|
-
warning: "warning";
|
|
6811
|
-
negative: "negative";
|
|
6812
|
-
}>>>;
|
|
6813
|
-
metadata: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
6814
|
-
label: z.ZodCatch<z.ZodCoercedString<unknown>>;
|
|
6815
|
-
value: z.ZodCatch<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
6816
|
-
}, z.core.$strip>>>>>;
|
|
6817
|
-
href: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6818
|
-
}, z.core.$strip>>>>>;
|
|
6819
|
-
diffs: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodTransform<Record<string, unknown>[], unknown>, z.ZodArray<z.ZodObject<{
|
|
6820
|
-
label: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6821
|
-
before: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6822
|
-
after: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6823
|
-
}, z.core.$strip>>>>>;
|
|
6824
|
-
}, z.core.$strip>>>>>;
|
|
6825
|
-
}, z.core.$strip>;
|
|
6826
|
-
|
|
6827
6278
|
declare interface WorkspaceFileReadResponse {
|
|
6828
6279
|
type: "workspace_file_read_response";
|
|
6829
6280
|
path: string;
|
package/index.js
CHANGED
|
@@ -33,6 +33,7 @@ export const listConversations = api.listConversations;
|
|
|
33
33
|
export const listInstalledSkills = api.listInstalledSkills;
|
|
34
34
|
export const openTranscriptionSession = api.openTranscriptionSession;
|
|
35
35
|
export const parseMessageMetadata = api.parseMessageMetadata;
|
|
36
|
+
export const publishEvent = api.publishEvent;
|
|
36
37
|
export const quarantineRefusedExchanges = api.quarantineRefusedExchanges;
|
|
37
38
|
export const resolveCredential = api.resolveCredential;
|
|
38
39
|
export const resolveMediaSourceData = api.resolveMediaSourceData;
|
package/package.json
CHANGED