@vellumai/plugin-api 0.10.11-dev.202607222029.495c516 → 0.10.11-dev.202607222226.fdf0e3d
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 +73 -68
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1658,37 +1658,30 @@ declare interface BaseSubscriberEntry {
|
|
|
1658
1658
|
connectionId: string;
|
|
1659
1659
|
}
|
|
1660
1660
|
|
|
1661
|
-
declare
|
|
1662
|
-
type: "bookmark.created";
|
|
1663
|
-
bookmark: BookmarkSummary;
|
|
1664
|
-
}
|
|
1661
|
+
declare type BookmarkCreatedEvent = z.infer<typeof BookmarkCreatedEventSchema>;
|
|
1665
1662
|
|
|
1666
|
-
declare
|
|
1667
|
-
type: "bookmark.
|
|
1668
|
-
|
|
1669
|
-
|
|
1663
|
+
declare const BookmarkCreatedEventSchema: z.ZodObject<{
|
|
1664
|
+
type: z.ZodLiteral<"bookmark.created">;
|
|
1665
|
+
bookmark: z.ZodObject<{
|
|
1666
|
+
id: z.ZodString;
|
|
1667
|
+
messageId: z.ZodString;
|
|
1668
|
+
conversationId: z.ZodString;
|
|
1669
|
+
conversationTitle: z.ZodNullable<z.ZodString>;
|
|
1670
|
+
messagePreview: z.ZodString;
|
|
1671
|
+
messageRole: z.ZodString;
|
|
1672
|
+
messageCreatedAt: z.ZodNumber;
|
|
1673
|
+
createdAt: z.ZodNumber;
|
|
1674
|
+
}, z.core.$strip>;
|
|
1675
|
+
}, z.core.$strip>;
|
|
1670
1676
|
|
|
1671
|
-
declare type
|
|
1677
|
+
declare type BookmarkDeletedEvent = z.infer<typeof BookmarkDeletedEventSchema>;
|
|
1672
1678
|
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
declare interface BookmarkSummary {
|
|
1680
|
-
id: string;
|
|
1681
|
-
messageId: string;
|
|
1682
|
-
conversationId: string;
|
|
1683
|
-
conversationTitle: string | null;
|
|
1684
|
-
messagePreview: string;
|
|
1685
|
-
/** "user" | "assistant" — kept as a free-form string so it round-trips raw. */
|
|
1686
|
-
messageRole: string;
|
|
1687
|
-
/** Unix milliseconds. */
|
|
1688
|
-
messageCreatedAt: number;
|
|
1689
|
-
/** Unix milliseconds. */
|
|
1690
|
-
createdAt: number;
|
|
1691
|
-
}
|
|
1679
|
+
declare const BookmarkDeletedEventSchema: z.ZodObject<{
|
|
1680
|
+
type: z.ZodLiteral<"bookmark.deleted">;
|
|
1681
|
+
messageId: z.ZodString;
|
|
1682
|
+
}, z.core.$strip>;
|
|
1683
|
+
|
|
1684
|
+
declare type _BookmarksServerMessages = BookmarkCreatedEvent | BookmarkDeletedEvent;
|
|
1692
1685
|
|
|
1693
1686
|
/**
|
|
1694
1687
|
* Build a model-facing excerpt of stored message content around a query,
|
|
@@ -4068,49 +4061,53 @@ declare const LLMCallSiteEnum: z.ZodEnum<{
|
|
|
4068
4061
|
|
|
4069
4062
|
declare type MediaSource_2 = Base64MediaSource | WorkspaceRefMediaSource;
|
|
4070
4063
|
|
|
4071
|
-
declare
|
|
4072
|
-
type: "memory_recalled";
|
|
4073
|
-
provider: string;
|
|
4074
|
-
model: string;
|
|
4075
|
-
degradation?: MemoryRecalledDegradation;
|
|
4076
|
-
semanticHits: number;
|
|
4077
|
-
tier1Count: number;
|
|
4078
|
-
tier2Count: number;
|
|
4079
|
-
hybridSearchLatencyMs: number;
|
|
4080
|
-
sparseVectorUsed: boolean;
|
|
4081
|
-
mergedCount: number;
|
|
4082
|
-
selectedCount: number;
|
|
4083
|
-
injectedTokens: number;
|
|
4084
|
-
latencyMs: number;
|
|
4085
|
-
topCandidates: MemoryRecalledCandidateDebug[];
|
|
4086
|
-
}
|
|
4087
|
-
|
|
4088
|
-
declare interface MemoryRecalledCandidateDebug {
|
|
4089
|
-
key: string;
|
|
4090
|
-
type: string;
|
|
4091
|
-
kind: string;
|
|
4092
|
-
finalScore: number;
|
|
4093
|
-
semantic: number;
|
|
4094
|
-
recency: number;
|
|
4095
|
-
}
|
|
4064
|
+
declare type MemoryRecalledEvent = z.infer<typeof MemoryRecalledEventSchema>;
|
|
4096
4065
|
|
|
4097
|
-
declare
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4066
|
+
declare const MemoryRecalledEventSchema: z.ZodObject<{
|
|
4067
|
+
type: z.ZodLiteral<"memory_recalled">;
|
|
4068
|
+
provider: z.ZodString;
|
|
4069
|
+
model: z.ZodString;
|
|
4070
|
+
degradation: z.ZodOptional<z.ZodObject<{
|
|
4071
|
+
semanticUnavailable: z.ZodBoolean;
|
|
4072
|
+
reason: z.ZodString;
|
|
4073
|
+
fallbackSources: z.ZodArray<z.ZodString>;
|
|
4074
|
+
}, z.core.$strip>>;
|
|
4075
|
+
semanticHits: z.ZodNumber;
|
|
4076
|
+
tier1Count: z.ZodNumber;
|
|
4077
|
+
tier2Count: z.ZodNumber;
|
|
4078
|
+
hybridSearchLatencyMs: z.ZodNumber;
|
|
4079
|
+
sparseVectorUsed: z.ZodBoolean;
|
|
4080
|
+
mergedCount: z.ZodNumber;
|
|
4081
|
+
selectedCount: z.ZodNumber;
|
|
4082
|
+
injectedTokens: z.ZodNumber;
|
|
4083
|
+
latencyMs: z.ZodNumber;
|
|
4084
|
+
topCandidates: z.ZodArray<z.ZodObject<{
|
|
4085
|
+
key: z.ZodString;
|
|
4086
|
+
type: z.ZodString;
|
|
4087
|
+
kind: z.ZodString;
|
|
4088
|
+
finalScore: z.ZodNumber;
|
|
4089
|
+
semantic: z.ZodNumber;
|
|
4090
|
+
recency: z.ZodNumber;
|
|
4091
|
+
}, z.core.$strip>>;
|
|
4092
|
+
}, z.core.$strip>;
|
|
4102
4093
|
|
|
4103
|
-
declare type _MemoryServerMessages =
|
|
4094
|
+
declare type _MemoryServerMessages = MemoryRecalledEvent | MemoryStatusEvent;
|
|
4104
4095
|
|
|
4105
|
-
declare
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4096
|
+
declare type MemoryStatusEvent = z.infer<typeof MemoryStatusEventSchema>;
|
|
4097
|
+
|
|
4098
|
+
declare const MemoryStatusEventSchema: z.ZodObject<{
|
|
4099
|
+
type: z.ZodLiteral<"memory_status">;
|
|
4100
|
+
enabled: z.ZodBoolean;
|
|
4101
|
+
degraded: z.ZodBoolean;
|
|
4102
|
+
degradation: z.ZodOptional<z.ZodObject<{
|
|
4103
|
+
semanticUnavailable: z.ZodBoolean;
|
|
4104
|
+
reason: z.ZodString;
|
|
4105
|
+
fallbackSources: z.ZodArray<z.ZodString>;
|
|
4106
|
+
}, z.core.$strip>>;
|
|
4107
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4108
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
4109
|
+
model: z.ZodOptional<z.ZodString>;
|
|
4110
|
+
}, z.core.$strip>;
|
|
4114
4111
|
|
|
4115
4112
|
export declare interface Message {
|
|
4116
4113
|
role: "user" | "assistant";
|
|
@@ -6562,6 +6559,14 @@ export declare interface ToolContext {
|
|
|
6562
6559
|
* @legacy
|
|
6563
6560
|
*/
|
|
6564
6561
|
requesterChatId?: string;
|
|
6562
|
+
/**
|
|
6563
|
+
* Channel-native id (`ts` for Slack) of the inbound message that started
|
|
6564
|
+
* the current turn. Lets tool-grant escalations link approval cards to
|
|
6565
|
+
* the exact triggering message.
|
|
6566
|
+
*/
|
|
6567
|
+
sourceMessageId?: string;
|
|
6568
|
+
/** Channel-native thread id of that message, when it arrived in a thread. */
|
|
6569
|
+
sourceThreadId?: string;
|
|
6565
6570
|
/**
|
|
6566
6571
|
* Human-readable identifier for the requester (e.g., @username).
|
|
6567
6572
|
* @legacy
|
package/package.json
CHANGED