@vellumai/plugin-api 0.11.1-dev.202608032226.351a4e2 → 0.11.1-dev.202608040007.969b6ee

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 +28 -0
  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;
@@ -1974,10 +1979,15 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1974
1979
  title: z.ZodString;
1975
1980
  body: z.ZodString;
1976
1981
  deliveryId: z.ZodOptional<z.ZodString>;
1982
+ correlationId: z.ZodOptional<z.ZodString>;
1977
1983
  deepLinkMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1978
1984
  targetGuardianPrincipalId: z.ZodOptional<z.ZodString>;
1979
1985
  silent: z.ZodOptional<z.ZodBoolean>;
1980
1986
  remotePushDispatched: z.ZodOptional<z.ZodBoolean>;
1987
+ remotePushPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1988
+ ios: "ios";
1989
+ android: "android";
1990
+ }>>>;
1981
1991
  }, z.core.$strip>, z.ZodObject<{
1982
1992
  type: z.ZodLiteral<"oauth_connect_result">;
1983
1993
  success: z.ZodBoolean;
@@ -2819,6 +2829,11 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2819
2829
  summaryCharCount: z.ZodOptional<z.ZodNumber>;
2820
2830
  summaryHeaderCount: z.ZodOptional<z.ZodNumber>;
2821
2831
  summaryHadMemoryEcho: z.ZodOptional<z.ZodBoolean>;
2832
+ }, z.core.$strip>, z.ZodObject<{
2833
+ type: z.ZodLiteral<"context_window_usage">;
2834
+ conversationId: z.ZodString;
2835
+ tokens: z.ZodNumber;
2836
+ maxTokens: z.ZodNumber;
2822
2837
  }, z.core.$strip>, z.ZodObject<{
2823
2838
  type: z.ZodLiteral<"conversation_error">;
2824
2839
  conversationId: z.ZodString;
@@ -3352,10 +3367,15 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3352
3367
  title: z.ZodString;
3353
3368
  body: z.ZodString;
3354
3369
  deliveryId: z.ZodOptional<z.ZodString>;
3370
+ correlationId: z.ZodOptional<z.ZodString>;
3355
3371
  deepLinkMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3356
3372
  targetGuardianPrincipalId: z.ZodOptional<z.ZodString>;
3357
3373
  silent: z.ZodOptional<z.ZodBoolean>;
3358
3374
  remotePushDispatched: z.ZodOptional<z.ZodBoolean>;
3375
+ remotePushPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3376
+ ios: "ios";
3377
+ android: "android";
3378
+ }>>>;
3359
3379
  }, z.core.$strip>, z.ZodObject<{
3360
3380
  type: z.ZodLiteral<"oauth_connect_result">;
3361
3381
  success: z.ZodBoolean;
@@ -5412,6 +5432,8 @@ export declare interface Provider {
5412
5432
  countInputTokens?(messages: Message[], systemPrompt: string, tools?: ToolDefinition_2[]): Promise<number>;
5413
5433
  }
5414
5434
 
5435
+ declare type ProviderCredentialSource = "byok" | "no-auth" | "oauth-subscription" | "vellum-managed";
5436
+
5415
5437
  export declare type ProviderEvent = {
5416
5438
  type: "text_delta";
5417
5439
  text: string;
@@ -5486,6 +5508,12 @@ declare interface ProviderRouteAttribution {
5486
5508
  connectionName?: string;
5487
5509
  profileName?: string;
5488
5510
  isManagedRoute?: boolean;
5511
+ /**
5512
+ * Credential surface used for this request. Finer than `isManagedRoute`:
5513
+ * it separates personal provider keys, keyless endpoints, and subscription
5514
+ * logins from each other so error copy can name what the user must fix.
5515
+ */
5516
+ credentialSource?: ProviderCredentialSource;
5489
5517
  }
5490
5518
 
5491
5519
  /** Callback for proxy policy decisions requiring user confirmation. Returns true if approved. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.1-dev.202608032226.351a4e2",
3
+ "version": "0.11.1-dev.202608040007.969b6ee",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",