@vellumai/plugin-api 0.12.5-staging.3 → 0.12.6-dev.202609292019.a6f6d85

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 +205 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2097,6 +2097,10 @@ declare const AssistantConfigSchema: z.ZodObject<{
2097
2097
  }, z.core.$strip>>;
2098
2098
  }, z.core.$strip>>;
2099
2099
  conversations: z.ZodDefault<z.ZodObject<{
2100
+ autoArchive: z.ZodDefault<z.ZodObject<{
2101
+ enabled: z.ZodDefault<z.ZodBoolean>;
2102
+ afterDays: z.ZodDefault<z.ZodLiteral<1 | 30 | 14 | 7>>;
2103
+ }, z.core.$strip>>;
2100
2104
  skipAutoRetitling: z.ZodDefault<z.ZodBoolean>;
2101
2105
  backgroundInjection: z.ZodDefault<z.ZodString>;
2102
2106
  resumeProcessingOnStartup: z.ZodDefault<z.ZodBoolean>;
@@ -2376,7 +2380,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
2376
2380
  sigkillGracePeriodMs: z.ZodDefault<z.ZodNumber>;
2377
2381
  standaloneRecording: z.ZodDefault<z.ZodBoolean>;
2378
2382
  }, z.core.$strip>>;
2379
- notifications: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
2383
+ notifications: z.ZodDefault<z.ZodObject<{
2384
+ newMessageEnabled: z.ZodDefault<z.ZodBoolean>;
2385
+ }, z.core.$strip>>;
2380
2386
  ui: z.ZodDefault<z.ZodObject<{
2381
2387
  userTimezone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
2382
2388
  detectedTimezone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
@@ -2959,12 +2965,15 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2959
2965
  surfaceId: z.ZodString;
2960
2966
  title: z.ZodString;
2961
2967
  initialContent: z.ZodString;
2968
+ revision: z.ZodOptional<z.ZodNumber>;
2962
2969
  }, z.core.$strip>, z.ZodObject<{
2963
2970
  type: z.ZodLiteral<"document_editor_update">;
2964
2971
  conversationId: z.ZodString;
2965
2972
  surfaceId: z.ZodString;
2966
2973
  markdown: z.ZodString;
2967
2974
  mode: z.ZodString;
2975
+ revision: z.ZodOptional<z.ZodNumber>;
2976
+ title: z.ZodOptional<z.ZodString>;
2968
2977
  }, z.core.$strip>, z.ZodObject<{
2969
2978
  type: z.ZodLiteral<"error">;
2970
2979
  message: z.ZodString;
@@ -3647,6 +3656,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
3647
3656
  searxng: "searxng";
3648
3657
  tinyfish: "tinyfish";
3649
3658
  exa: "exa";
3659
+ serply: "serply";
3650
3660
  }>;
3651
3661
  resultCount: z.ZodNumber;
3652
3662
  durationMs: z.ZodNumber;
@@ -3992,6 +4002,11 @@ export declare class AssistantEventHub {
3992
4002
  * `undefined` if no such subscriber exists.
3993
4003
  */
3994
4004
  getClientById(clientId: string): ClientEntry | undefined;
4005
+ /**
4006
+ * Whether `connectionId` is still an active client subscription, optionally
4007
+ * required to belong to `clientId`.
4008
+ */
4009
+ hasActiveClientConnection(connectionId: string, clientId?: string): boolean;
3995
4010
  /**
3996
4011
  * Return the verified actor principal id captured at SSE subscription time
3997
4012
  * for the given client, or `undefined` if the client is unknown or
@@ -4599,12 +4614,15 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4599
4614
  surfaceId: z.ZodString;
4600
4615
  title: z.ZodString;
4601
4616
  initialContent: z.ZodString;
4617
+ revision: z.ZodOptional<z.ZodNumber>;
4602
4618
  }, z.core.$strip>, z.ZodObject<{
4603
4619
  type: z.ZodLiteral<"document_editor_update">;
4604
4620
  conversationId: z.ZodString;
4605
4621
  surfaceId: z.ZodString;
4606
4622
  markdown: z.ZodString;
4607
4623
  mode: z.ZodString;
4624
+ revision: z.ZodOptional<z.ZodNumber>;
4625
+ title: z.ZodOptional<z.ZodString>;
4608
4626
  }, z.core.$strip>, z.ZodObject<{
4609
4627
  type: z.ZodLiteral<"error">;
4610
4628
  message: z.ZodString;
@@ -5287,6 +5305,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5287
5305
  searxng: "searxng";
5288
5306
  tinyfish: "tinyfish";
5289
5307
  exa: "exa";
5308
+ serply: "serply";
5290
5309
  }>;
5291
5310
  resultCount: z.ZodNumber;
5292
5311
  durationMs: z.ZodNumber;
@@ -5807,6 +5826,9 @@ export declare interface AudioEmbeddingInput {
5807
5826
  mimeType: string;
5808
5827
  }
5809
5828
 
5829
+ /** `profileSource` reported for a turn whose profile the Auto router chose. */
5830
+ declare const AUTO_PROFILE_SOURCE = "auto";
5831
+
5810
5832
  /**
5811
5833
  * Media payload for an image or file content block. One unified type covers
5812
5834
  * both blocks and both storage forms:
@@ -9383,6 +9405,23 @@ baseColumn: never;
9383
9405
  identity: undefined;
9384
9406
  generated: undefined;
9385
9407
  }, {}, {}>;
9408
+ lastReopenedAt: SQLiteColumn< {
9409
+ name: "last_reopened_at";
9410
+ tableName: "conversations";
9411
+ dataType: "number";
9412
+ columnType: "SQLiteInteger";
9413
+ data: number;
9414
+ driverParam: number;
9415
+ notNull: false;
9416
+ hasDefault: false;
9417
+ isPrimaryKey: false;
9418
+ isAutoincrement: false;
9419
+ hasRuntimeDefault: false;
9420
+ enumValues: undefined;
9421
+ baseColumn: never;
9422
+ identity: undefined;
9423
+ generated: undefined;
9424
+ }, {}, {}>;
9386
9425
  surfacedAt: SQLiteColumn< {
9387
9426
  name: "surfaced_at";
9388
9427
  tableName: "conversations";
@@ -11201,6 +11240,141 @@ generated: undefined;
11201
11240
  dialect: "sqlite";
11202
11241
  }>;
11203
11242
 
11243
+ declare const documentRevisions: SQLiteTableWithColumns< {
11244
+ name: "document_revisions";
11245
+ schema: undefined;
11246
+ columns: {
11247
+ surfaceId: SQLiteColumn< {
11248
+ name: "surface_id";
11249
+ tableName: "document_revisions";
11250
+ dataType: "string";
11251
+ columnType: "SQLiteText";
11252
+ data: string;
11253
+ driverParam: string;
11254
+ notNull: true;
11255
+ hasDefault: false;
11256
+ isPrimaryKey: false;
11257
+ isAutoincrement: false;
11258
+ hasRuntimeDefault: false;
11259
+ enumValues: [string, ...string[]];
11260
+ baseColumn: never;
11261
+ identity: undefined;
11262
+ generated: undefined;
11263
+ }, {}, {
11264
+ length: number | undefined;
11265
+ }>;
11266
+ revision: SQLiteColumn< {
11267
+ name: "revision";
11268
+ tableName: "document_revisions";
11269
+ dataType: "number";
11270
+ columnType: "SQLiteInteger";
11271
+ data: number;
11272
+ driverParam: number;
11273
+ notNull: true;
11274
+ hasDefault: false;
11275
+ isPrimaryKey: false;
11276
+ isAutoincrement: false;
11277
+ hasRuntimeDefault: false;
11278
+ enumValues: undefined;
11279
+ baseColumn: never;
11280
+ identity: undefined;
11281
+ generated: undefined;
11282
+ }, {}, {}>;
11283
+ title: SQLiteColumn< {
11284
+ name: "title";
11285
+ tableName: "document_revisions";
11286
+ dataType: "string";
11287
+ columnType: "SQLiteText";
11288
+ data: string;
11289
+ driverParam: string;
11290
+ notNull: true;
11291
+ hasDefault: false;
11292
+ isPrimaryKey: false;
11293
+ isAutoincrement: false;
11294
+ hasRuntimeDefault: false;
11295
+ enumValues: [string, ...string[]];
11296
+ baseColumn: never;
11297
+ identity: undefined;
11298
+ generated: undefined;
11299
+ }, {}, {
11300
+ length: number | undefined;
11301
+ }>;
11302
+ content: SQLiteColumn< {
11303
+ name: "content";
11304
+ tableName: "document_revisions";
11305
+ dataType: "string";
11306
+ columnType: "SQLiteText";
11307
+ data: string;
11308
+ driverParam: string;
11309
+ notNull: true;
11310
+ hasDefault: false;
11311
+ isPrimaryKey: false;
11312
+ isAutoincrement: false;
11313
+ hasRuntimeDefault: false;
11314
+ enumValues: [string, ...string[]];
11315
+ baseColumn: never;
11316
+ identity: undefined;
11317
+ generated: undefined;
11318
+ }, {}, {
11319
+ length: number | undefined;
11320
+ }>;
11321
+ wordCount: SQLiteColumn< {
11322
+ name: "word_count";
11323
+ tableName: "document_revisions";
11324
+ dataType: "number";
11325
+ columnType: "SQLiteInteger";
11326
+ data: number;
11327
+ driverParam: number;
11328
+ notNull: true;
11329
+ hasDefault: true;
11330
+ isPrimaryKey: false;
11331
+ isAutoincrement: false;
11332
+ hasRuntimeDefault: false;
11333
+ enumValues: undefined;
11334
+ baseColumn: never;
11335
+ identity: undefined;
11336
+ generated: undefined;
11337
+ }, {}, {}>;
11338
+ author: SQLiteColumn< {
11339
+ name: "author";
11340
+ tableName: "document_revisions";
11341
+ dataType: "string";
11342
+ columnType: "SQLiteText";
11343
+ data: string;
11344
+ driverParam: string;
11345
+ notNull: true;
11346
+ hasDefault: false;
11347
+ isPrimaryKey: false;
11348
+ isAutoincrement: false;
11349
+ hasRuntimeDefault: false;
11350
+ enumValues: [string, ...string[]];
11351
+ baseColumn: never;
11352
+ identity: undefined;
11353
+ generated: undefined;
11354
+ }, {}, {
11355
+ length: number | undefined;
11356
+ }>;
11357
+ createdAt: SQLiteColumn< {
11358
+ name: "created_at";
11359
+ tableName: "document_revisions";
11360
+ dataType: "number";
11361
+ columnType: "SQLiteInteger";
11362
+ data: number;
11363
+ driverParam: number;
11364
+ notNull: true;
11365
+ hasDefault: false;
11366
+ isPrimaryKey: false;
11367
+ isAutoincrement: false;
11368
+ hasRuntimeDefault: false;
11369
+ enumValues: undefined;
11370
+ baseColumn: never;
11371
+ identity: undefined;
11372
+ generated: undefined;
11373
+ }, {}, {}>;
11374
+ };
11375
+ dialect: "sqlite";
11376
+ }>;
11377
+
11204
11378
  declare const documents: SQLiteTableWithColumns< {
11205
11379
  name: "documents";
11206
11380
  schema: undefined;
@@ -11332,6 +11506,23 @@ baseColumn: never;
11332
11506
  identity: undefined;
11333
11507
  generated: undefined;
11334
11508
  }, {}, {}>;
11509
+ revision: SQLiteColumn< {
11510
+ name: "revision";
11511
+ tableName: "documents";
11512
+ dataType: "number";
11513
+ columnType: "SQLiteInteger";
11514
+ data: number;
11515
+ driverParam: number;
11516
+ notNull: true;
11517
+ hasDefault: true;
11518
+ isPrimaryKey: false;
11519
+ isAutoincrement: false;
11520
+ hasRuntimeDefault: false;
11521
+ enumValues: undefined;
11522
+ baseColumn: never;
11523
+ identity: undefined;
11524
+ generated: undefined;
11525
+ }, {}, {}>;
11335
11526
  workspacePath: SQLiteColumn< {
11336
11527
  name: "workspace_path";
11337
11528
  tableName: "documents";
@@ -21857,6 +22048,7 @@ declare namespace schema {
21857
22048
  documents,
21858
22049
  documentConversations,
21859
22050
  documentComments,
22051
+ documentRevisions,
21860
22052
  scopedApprovalGrants,
21861
22053
  providerConnections,
21862
22054
  ProviderConnectionRow,
@@ -22339,6 +22531,13 @@ export declare interface SendMessageConfig {
22339
22531
  * silently fall through.
22340
22532
  */
22341
22533
  overrideProfile?: string;
22534
+ /**
22535
+ * Who chose `overrideProfile`: `"auto"` when the Auto profile's router
22536
+ * picked it for the turn. Usage attribution reports it as the profile
22537
+ * source so a routed turn is not counted as a user pin. A routing-time
22538
+ * concern only; stripped before any provider wire request.
22539
+ */
22540
+ overrideProfileOrigin?: "auto";
22342
22541
  /**
22343
22542
  * When true, the resolver floats `overrideProfile` above the call-site
22344
22543
  * layers (named site profile + call-site override) for non-main-agent call
@@ -22398,8 +22597,9 @@ export declare interface SendMessageConfig {
22398
22597
  usageAttributionHeaders?: Record<string, string>;
22399
22598
  /**
22400
22599
  * Per-request HTTP headers merged onto the transport. `RetryProvider`
22401
- * stamps these for providers that need support-lookup headers (OpenCode
22402
- * `x-opencode-session` / `x-opencode-request`). Provider clients pass
22600
+ * stamps these for providers that need per-conversation routing headers
22601
+ * (OpenCode `x-opencode-session` / `x-opencode-request`, Fireworks
22602
+ * `x-session-affinity`). Provider clients pass
22403
22603
  * them through SDK request options only and must never include this
22404
22604
  * object in provider JSON request bodies.
22405
22605
  */
@@ -23671,6 +23871,7 @@ declare const ToolActivityMetadataSchema: z.ZodObject<{
23671
23871
  searxng: "searxng";
23672
23872
  tinyfish: "tinyfish";
23673
23873
  exa: "exa";
23874
+ serply: "serply";
23674
23875
  }>;
23675
23876
  resultCount: z.ZodNumber;
23676
23877
  durationMs: z.ZodNumber;
@@ -24645,7 +24846,7 @@ declare interface UiSurfaceContent {
24645
24846
  /** Merge the given keys into a message's metadata JSON. */
24646
24847
  export declare function updateMessageMetadata(messageId: string, updates: Record<string, unknown>): Promise<void>;
24647
24848
 
24648
- declare type UsageAttributionProfileSource = "call_site" | "conversation" | "active" | "default" | "unknown";
24849
+ declare type UsageAttributionProfileSource = "call_site" | "conversation" | "active" | "default" | typeof AUTO_PROFILE_SOURCE | "unknown";
24649
24850
 
24650
24851
  declare interface UsageAttributionSnapshot {
24651
24852
  callSite: LLMCallSite | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.12.5-staging.3",
3
+ "version": "0.12.6-dev.202609292019.a6f6d85",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",