@vellumai/plugin-api 0.11.1-dev.202608032226.351a4e2 → 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 +18 -0
- 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;
|
|
@@ -5412,6 +5422,8 @@ export declare interface Provider {
|
|
|
5412
5422
|
countInputTokens?(messages: Message[], systemPrompt: string, tools?: ToolDefinition_2[]): Promise<number>;
|
|
5413
5423
|
}
|
|
5414
5424
|
|
|
5425
|
+
declare type ProviderCredentialSource = "byok" | "no-auth" | "oauth-subscription" | "vellum-managed";
|
|
5426
|
+
|
|
5415
5427
|
export declare type ProviderEvent = {
|
|
5416
5428
|
type: "text_delta";
|
|
5417
5429
|
text: string;
|
|
@@ -5486,6 +5498,12 @@ declare interface ProviderRouteAttribution {
|
|
|
5486
5498
|
connectionName?: string;
|
|
5487
5499
|
profileName?: string;
|
|
5488
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;
|
|
5489
5507
|
}
|
|
5490
5508
|
|
|
5491
5509
|
/** Callback for proxy policy decisions requiring user confirmation. Returns true if approved. */
|
package/package.json
CHANGED