@vellumai/plugin-api 0.11.1-dev.202608032128.6f59e1c → 0.11.1-dev.202608032326.ca2b5a1
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 +48 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1441,6 +1441,11 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
1441
1441
|
summaryCharCount: z.ZodOptional<z.ZodNumber>;
|
|
1442
1442
|
summaryHeaderCount: z.ZodOptional<z.ZodNumber>;
|
|
1443
1443
|
summaryHadMemoryEcho: z.ZodOptional<z.ZodBoolean>;
|
|
1444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1445
|
+
type: z.ZodLiteral<"context_window_usage">;
|
|
1446
|
+
conversationId: z.ZodString;
|
|
1447
|
+
tokens: z.ZodNumber;
|
|
1448
|
+
maxTokens: z.ZodNumber;
|
|
1444
1449
|
}, z.core.$strip>, z.ZodObject<{
|
|
1445
1450
|
type: z.ZodLiteral<"conversation_error">;
|
|
1446
1451
|
conversationId: z.ZodString;
|
|
@@ -2819,6 +2824,11 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2819
2824
|
summaryCharCount: z.ZodOptional<z.ZodNumber>;
|
|
2820
2825
|
summaryHeaderCount: z.ZodOptional<z.ZodNumber>;
|
|
2821
2826
|
summaryHadMemoryEcho: z.ZodOptional<z.ZodBoolean>;
|
|
2827
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2828
|
+
type: z.ZodLiteral<"context_window_usage">;
|
|
2829
|
+
conversationId: z.ZodString;
|
|
2830
|
+
tokens: z.ZodNumber;
|
|
2831
|
+
maxTokens: z.ZodNumber;
|
|
2822
2832
|
}, z.core.$strip>, z.ZodObject<{
|
|
2823
2833
|
type: z.ZodLiteral<"conversation_error">;
|
|
2824
2834
|
conversationId: z.ZodString;
|
|
@@ -4503,10 +4513,30 @@ export declare function listConversations(limit?: number, conversationType?: Con
|
|
|
4503
4513
|
*/
|
|
4504
4514
|
export declare function listInstalledSkills(): Promise<ResolvedSkillEntry[]>;
|
|
4505
4515
|
|
|
4506
|
-
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", "minimize_room", "metrics", "archived", "error"];
|
|
4516
|
+
declare const _LIVE_VOICE_SERVER_FRAME_TYPES: readonly ["ready", "busy", "speech_started", "utterance_end", "utterance_discarded", "stt_partial", "stt_final", "thinking", "activity", "assistant_text_delta", "tts_audio", "tts_done", "turn_cancelled", "minimize_room", "metrics", "archived", "error"];
|
|
4507
4517
|
|
|
4508
4518
|
declare const LIVE_VOICE_TURN_DETECTION_MODES: readonly ["manual", "server_vad"];
|
|
4509
4519
|
|
|
4520
|
+
/**
|
|
4521
|
+
* What the assistant is doing inside a turn, as one short user-facing line.
|
|
4522
|
+
*
|
|
4523
|
+
* Exists because a live-voice turn can go silent for a long time while it
|
|
4524
|
+
* works, and the surfaces that show the session (the iOS Live Activity, and
|
|
4525
|
+
* the room) can otherwise only say "Thinking...". The label is composed here
|
|
4526
|
+
* rather than by each surface for the same reason phase wording is composed
|
|
4527
|
+
* once: the Live Activity has two independent drivers (this socket and an APNs
|
|
4528
|
+
* push the daemon dispatches), they must carry identical content, and the only
|
|
4529
|
+
* way to guarantee that is for both to be handed the same string.
|
|
4530
|
+
*
|
|
4531
|
+
* An empty `label` means "no current activity", which is what a turn's end
|
|
4532
|
+
* sends. Emitted only on change, never per tool result.
|
|
4533
|
+
*/
|
|
4534
|
+
declare interface LiveVoiceActivityServerFrame extends LiveVoiceServerFrameBase {
|
|
4535
|
+
readonly type: "activity";
|
|
4536
|
+
readonly turnId: string;
|
|
4537
|
+
readonly label: string;
|
|
4538
|
+
}
|
|
4539
|
+
|
|
4510
4540
|
declare interface LiveVoiceArchivedServerFrame extends LiveVoiceServerFrameBase {
|
|
4511
4541
|
readonly type: "archived";
|
|
4512
4542
|
readonly conversationId: string;
|
|
@@ -4642,7 +4672,7 @@ declare interface LiveVoiceReadyServerFrame extends LiveVoiceServerFrameBase {
|
|
|
4642
4672
|
readonly turnDetection?: LiveVoiceTurnDetectionMode;
|
|
4643
4673
|
}
|
|
4644
4674
|
|
|
4645
|
-
export declare type LiveVoiceServerFrame = LiveVoiceReadyServerFrame | LiveVoiceBusyServerFrame | LiveVoiceSpeechStartedServerFrame | LiveVoiceUtteranceEndServerFrame | LiveVoiceUtteranceDiscardedServerFrame | LiveVoiceSttPartialServerFrame | LiveVoiceSttFinalServerFrame | LiveVoiceThinkingServerFrame | LiveVoiceAssistantTextDeltaServerFrame | LiveVoiceTtsAudioServerFrame | LiveVoiceTtsDoneServerFrame | LiveVoiceTurnCancelledServerFrame | LiveVoiceMinimizeRoomServerFrame | LiveVoiceMetricsServerFrame | LiveVoiceArchivedServerFrame | LiveVoiceErrorServerFrame;
|
|
4675
|
+
export declare type LiveVoiceServerFrame = LiveVoiceReadyServerFrame | LiveVoiceBusyServerFrame | LiveVoiceSpeechStartedServerFrame | LiveVoiceUtteranceEndServerFrame | LiveVoiceUtteranceDiscardedServerFrame | LiveVoiceSttPartialServerFrame | LiveVoiceSttFinalServerFrame | LiveVoiceThinkingServerFrame | LiveVoiceActivityServerFrame | LiveVoiceAssistantTextDeltaServerFrame | LiveVoiceTtsAudioServerFrame | LiveVoiceTtsDoneServerFrame | LiveVoiceTurnCancelledServerFrame | LiveVoiceMinimizeRoomServerFrame | LiveVoiceMetricsServerFrame | LiveVoiceArchivedServerFrame | LiveVoiceErrorServerFrame;
|
|
4646
4676
|
|
|
4647
4677
|
declare interface LiveVoiceServerFrameBase {
|
|
4648
4678
|
readonly type: LiveVoiceServerFrameType;
|
|
@@ -5337,6 +5367,8 @@ declare interface ProcessEntry extends BaseSubscriberEntry {
|
|
|
5337
5367
|
|
|
5338
5368
|
export declare interface Provider {
|
|
5339
5369
|
name: string;
|
|
5370
|
+
/** Connection route whose credentials this provider instance uses. */
|
|
5371
|
+
routeAttribution?: ProviderRouteAttribution;
|
|
5340
5372
|
/**
|
|
5341
5373
|
* Provider key used by the local token estimator to select model-family
|
|
5342
5374
|
* specific rules (e.g. Anthropic's `width * height / 750` image sizing).
|
|
@@ -5390,6 +5422,8 @@ export declare interface Provider {
|
|
|
5390
5422
|
countInputTokens?(messages: Message[], systemPrompt: string, tools?: ToolDefinition_2[]): Promise<number>;
|
|
5391
5423
|
}
|
|
5392
5424
|
|
|
5425
|
+
declare type ProviderCredentialSource = "byok" | "no-auth" | "oauth-subscription" | "vellum-managed";
|
|
5426
|
+
|
|
5393
5427
|
export declare type ProviderEvent = {
|
|
5394
5428
|
type: "text_delta";
|
|
5395
5429
|
text: string;
|
|
@@ -5460,6 +5494,18 @@ export declare interface ProviderResponse {
|
|
|
5460
5494
|
rawResponse?: unknown;
|
|
5461
5495
|
}
|
|
5462
5496
|
|
|
5497
|
+
declare interface ProviderRouteAttribution {
|
|
5498
|
+
connectionName?: string;
|
|
5499
|
+
profileName?: string;
|
|
5500
|
+
isManagedRoute?: boolean;
|
|
5501
|
+
/**
|
|
5502
|
+
* Credential surface used for this request. Finer than `isManagedRoute`:
|
|
5503
|
+
* it separates personal provider keys, keyless endpoints, and subscription
|
|
5504
|
+
* logins from each other so error copy can name what the user must fix.
|
|
5505
|
+
*/
|
|
5506
|
+
credentialSource?: ProviderCredentialSource;
|
|
5507
|
+
}
|
|
5508
|
+
|
|
5463
5509
|
/** Callback for proxy policy decisions requiring user confirmation. Returns true if approved. */
|
|
5464
5510
|
declare type ProxyApprovalCallback = (request: ProxyApprovalRequest) => Promise<boolean>;
|
|
5465
5511
|
|
package/package.json
CHANGED