@vellumai/plugin-api 0.10.11-dev.202607221933.baa2119 → 0.10.11-dev.202607222129.31c06e5

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 (2) hide show
  1. package/index.d.ts +74 -65
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -4068,49 +4068,53 @@ declare const LLMCallSiteEnum: z.ZodEnum<{
4068
4068
 
4069
4069
  declare type MediaSource_2 = Base64MediaSource | WorkspaceRefMediaSource;
4070
4070
 
4071
- declare interface MemoryRecalled {
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
- }
4071
+ declare type MemoryRecalledEvent = z.infer<typeof MemoryRecalledEventSchema>;
4096
4072
 
4097
- declare interface MemoryRecalledDegradation {
4098
- semanticUnavailable: boolean;
4099
- reason: string;
4100
- fallbackSources: string[];
4101
- }
4073
+ declare const MemoryRecalledEventSchema: z.ZodObject<{
4074
+ type: z.ZodLiteral<"memory_recalled">;
4075
+ provider: z.ZodString;
4076
+ model: z.ZodString;
4077
+ degradation: z.ZodOptional<z.ZodObject<{
4078
+ semanticUnavailable: z.ZodBoolean;
4079
+ reason: z.ZodString;
4080
+ fallbackSources: z.ZodArray<z.ZodString>;
4081
+ }, z.core.$strip>>;
4082
+ semanticHits: z.ZodNumber;
4083
+ tier1Count: z.ZodNumber;
4084
+ tier2Count: z.ZodNumber;
4085
+ hybridSearchLatencyMs: z.ZodNumber;
4086
+ sparseVectorUsed: z.ZodBoolean;
4087
+ mergedCount: z.ZodNumber;
4088
+ selectedCount: z.ZodNumber;
4089
+ injectedTokens: z.ZodNumber;
4090
+ latencyMs: z.ZodNumber;
4091
+ topCandidates: z.ZodArray<z.ZodObject<{
4092
+ key: z.ZodString;
4093
+ type: z.ZodString;
4094
+ kind: z.ZodString;
4095
+ finalScore: z.ZodNumber;
4096
+ semantic: z.ZodNumber;
4097
+ recency: z.ZodNumber;
4098
+ }, z.core.$strip>>;
4099
+ }, z.core.$strip>;
4102
4100
 
4103
- declare type _MemoryServerMessages = MemoryRecalled | MemoryStatus;
4101
+ declare type _MemoryServerMessages = MemoryRecalledEvent | MemoryStatusEvent;
4104
4102
 
4105
- declare interface MemoryStatus {
4106
- type: "memory_status";
4107
- enabled: boolean;
4108
- degraded: boolean;
4109
- degradation?: MemoryRecalledDegradation;
4110
- reason?: string;
4111
- provider?: string;
4112
- model?: string;
4113
- }
4103
+ declare type MemoryStatusEvent = z.infer<typeof MemoryStatusEventSchema>;
4104
+
4105
+ declare const MemoryStatusEventSchema: z.ZodObject<{
4106
+ type: z.ZodLiteral<"memory_status">;
4107
+ enabled: z.ZodBoolean;
4108
+ degraded: z.ZodBoolean;
4109
+ degradation: z.ZodOptional<z.ZodObject<{
4110
+ semanticUnavailable: z.ZodBoolean;
4111
+ reason: z.ZodString;
4112
+ fallbackSources: z.ZodArray<z.ZodString>;
4113
+ }, z.core.$strip>>;
4114
+ reason: z.ZodOptional<z.ZodString>;
4115
+ provider: z.ZodOptional<z.ZodString>;
4116
+ model: z.ZodOptional<z.ZodString>;
4117
+ }, z.core.$strip>;
4114
4118
 
4115
4119
  export declare interface Message {
4116
4120
  role: "user" | "assistant";
@@ -5692,32 +5696,29 @@ export declare interface ServerToolUseContent {
5692
5696
  input: Record<string, unknown>;
5693
5697
  }
5694
5698
 
5695
- /** Broadcast to connected clients when a service group update has completed. */
5696
- declare interface ServiceGroupUpdateComplete {
5697
- type: "service_group_update_complete";
5698
- /** The version that was installed (may differ from target if rolled back). */
5699
- installedVersion: string;
5700
- /** Whether the update succeeded or rolled back. */
5701
- success: boolean;
5702
- /** If rolled back, the version reverted to. */
5703
- rolledBackToVersion?: string;
5704
- }
5699
+ declare type ServiceGroupUpdateCompleteEvent = z.infer<typeof ServiceGroupUpdateCompleteEventSchema>;
5705
5700
 
5706
- /** Broadcast to connected clients with a progress update during an upgrade or rollback. */
5707
- declare interface ServiceGroupUpdateProgress {
5708
- type: "service_group_update_progress";
5709
- /** A short, user-friendly status message describing what's happening right now. */
5710
- statusMessage: string;
5711
- }
5701
+ declare const ServiceGroupUpdateCompleteEventSchema: z.ZodObject<{
5702
+ type: z.ZodLiteral<"service_group_update_complete">;
5703
+ installedVersion: z.ZodString;
5704
+ success: z.ZodBoolean;
5705
+ rolledBackToVersion: z.ZodOptional<z.ZodString>;
5706
+ }, z.core.$strip>;
5712
5707
 
5713
- /** Broadcast to connected clients when a service group update is about to begin. */
5714
- declare interface ServiceGroupUpdateStarting {
5715
- type: "service_group_update_starting";
5716
- /** The version being upgraded to. */
5717
- targetVersion: string;
5718
- /** Estimated seconds of downtime. */
5719
- expectedDowntimeSeconds: number;
5720
- }
5708
+ declare type ServiceGroupUpdateProgressEvent = z.infer<typeof ServiceGroupUpdateProgressEventSchema>;
5709
+
5710
+ declare const ServiceGroupUpdateProgressEventSchema: z.ZodObject<{
5711
+ type: z.ZodLiteral<"service_group_update_progress">;
5712
+ statusMessage: z.ZodString;
5713
+ }, z.core.$strip>;
5714
+
5715
+ declare type ServiceGroupUpdateStartingEvent = z.infer<typeof ServiceGroupUpdateStartingEventSchema>;
5716
+
5717
+ declare const ServiceGroupUpdateStartingEventSchema: z.ZodObject<{
5718
+ type: z.ZodLiteral<"service_group_update_starting">;
5719
+ targetVersion: z.ZodString;
5720
+ expectedDowntimeSeconds: z.ZodNumber;
5721
+ }, z.core.$strip>;
5721
5722
 
5722
5723
  declare type _SettingsServerMessages = ClientSettingsUpdate | AvatarUpdatedEvent | ConfigChanged | SoundsConfigUpdated | GenerateAvatarResponse;
5723
5724
 
@@ -6565,6 +6566,14 @@ export declare interface ToolContext {
6565
6566
  * @legacy
6566
6567
  */
6567
6568
  requesterChatId?: string;
6569
+ /**
6570
+ * Channel-native id (`ts` for Slack) of the inbound message that started
6571
+ * the current turn. Lets tool-grant escalations link approval cards to
6572
+ * the exact triggering message.
6573
+ */
6574
+ sourceMessageId?: string;
6575
+ /** Channel-native thread id of that message, when it arrived in a thread. */
6576
+ sourceThreadId?: string;
6568
6577
  /**
6569
6578
  * Human-readable identifier for the requester (e.g., @username).
6570
6579
  * @legacy
@@ -7167,7 +7176,7 @@ declare interface UnpublishPageResponse {
7167
7176
  /** Merge the given keys into a message's metadata JSON. */
7168
7177
  export declare function updateMessageMetadata(messageId: string, updates: Record<string, unknown>): Promise<void>;
7169
7178
 
7170
- declare type _UpgradesServerMessages = ServiceGroupUpdateStarting | ServiceGroupUpdateProgress | ServiceGroupUpdateComplete;
7179
+ declare type _UpgradesServerMessages = ServiceGroupUpdateStartingEvent | ServiceGroupUpdateProgressEvent | ServiceGroupUpdateCompleteEvent;
7171
7180
 
7172
7181
  declare type UsageAttributionProfileSource = "call_site" | "conversation" | "active" | "default" | "unknown";
7173
7182
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.11-dev.202607221933.baa2119",
3
+ "version": "0.10.11-dev.202607222129.31c06e5",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",