@vertesia/common 1.6.0-dev.20261009.095813Z → 1.6.0-dev.20261014.015055Z

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 (67) hide show
  1. package/lib/api-contract/components.generated.json +126 -13
  2. package/lib/api-schemas/agent-runs.d.ts +360 -0
  3. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  4. package/lib/api-schemas/agent-runs.js +7 -0
  5. package/lib/api-schemas/agent-runs.js.map +1 -1
  6. package/lib/api-schemas/app-runtime.d.ts +476 -0
  7. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  8. package/lib/api-schemas/content.d.ts +174 -0
  9. package/lib/api-schemas/content.d.ts.map +1 -1
  10. package/lib/api-schemas/content.js +14 -0
  11. package/lib/api-schemas/content.js.map +1 -1
  12. package/lib/api-schemas/data-store.d.ts +30 -0
  13. package/lib/api-schemas/data-store.d.ts.map +1 -1
  14. package/lib/api-schemas/data-store.js +8 -0
  15. package/lib/api-schemas/data-store.js.map +1 -1
  16. package/lib/api-schemas/document-processing.d.ts +102 -0
  17. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  18. package/lib/api-schemas/events.d.ts +306 -0
  19. package/lib/api-schemas/events.d.ts.map +1 -1
  20. package/lib/api-schemas/indexing.d.ts +1 -0
  21. package/lib/api-schemas/indexing.d.ts.map +1 -1
  22. package/lib/api-schemas/indexing.js +9 -0
  23. package/lib/api-schemas/indexing.js.map +1 -1
  24. package/lib/api-schemas/inference-profile.d.ts +204 -0
  25. package/lib/api-schemas/inference-profile.d.ts.map +1 -1
  26. package/lib/api-schemas/interaction.d.ts +2618 -0
  27. package/lib/api-schemas/interaction.d.ts.map +1 -1
  28. package/lib/api-schemas/process.d.ts +70 -0
  29. package/lib/api-schemas/process.d.ts.map +1 -1
  30. package/lib/api-schemas/process.js +17 -0
  31. package/lib/api-schemas/process.js.map +1 -1
  32. package/lib/api-schemas/project-configuration.d.ts +340 -0
  33. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  34. package/lib/api-schemas/project.d.ts +510 -0
  35. package/lib/api-schemas/project.d.ts.map +1 -1
  36. package/lib/api-schemas/registry.d.ts +21581 -276
  37. package/lib/api-schemas/registry.d.ts.map +1 -1
  38. package/lib/api-schemas/registry.js +5 -0
  39. package/lib/api-schemas/registry.js.map +1 -1
  40. package/lib/api-schemas/store.d.ts +1700 -0
  41. package/lib/api-schemas/store.d.ts.map +1 -1
  42. package/lib/api-schemas/workflow-runs.d.ts +68 -0
  43. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  44. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  45. package/lib/store/intake-policy-schema.generated.js +19 -0
  46. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  47. package/lib/store/store.d.ts +1 -0
  48. package/lib/store/store.d.ts.map +1 -1
  49. package/lib/store/store.js.map +1 -1
  50. package/lib/vertesia-common.js +2 -2
  51. package/lib/vertesia-common.js.map +1 -1
  52. package/lib/wire-types.generated.d.ts +15 -1
  53. package/lib/wire-types.generated.d.ts.map +1 -1
  54. package/lib/workflow-analytics.d.ts +19 -1
  55. package/lib/workflow-analytics.d.ts.map +1 -1
  56. package/package.json +6 -6
  57. package/src/api-contract/components.generated.json +126 -13
  58. package/src/api-schemas/agent-runs.ts +7 -0
  59. package/src/api-schemas/content.ts +16 -0
  60. package/src/api-schemas/data-store.ts +8 -0
  61. package/src/api-schemas/indexing.ts +10 -0
  62. package/src/api-schemas/process.ts +19 -0
  63. package/src/api-schemas/registry.ts +7 -6
  64. package/src/store/intake-policy-schema.generated.ts +19 -0
  65. package/src/store/store.ts +2 -0
  66. package/src/wire-types.generated.ts +19 -1
  67. package/src/workflow-analytics.ts +21 -1
@@ -2542,6 +2542,14 @@ export type AlterTableOperation =
2542
2542
  op: 'modify_column';
2543
2543
  column: string;
2544
2544
  updates: DataColumnUpdate;
2545
+ }
2546
+ | {
2547
+ op: 'add_foreign_key';
2548
+ foreign_key: DataForeignKey;
2549
+ }
2550
+ | {
2551
+ op: 'drop_foreign_key';
2552
+ column: string;
2545
2553
  };
2546
2554
  /**
2547
2555
  * Payload for altering a table schema.
@@ -5795,6 +5803,7 @@ export type StartProjectReindexPayload = {
5795
5803
  concurrency?: number | undefined;
5796
5804
  bulk_size_bytes?: number | undefined;
5797
5805
  bulk_concurrency?: number | undefined;
5806
+ modified_since?: string | undefined;
5798
5807
  };
5799
5808
  export type ReindexAgentRunsPayload = {
5800
5809
  recreate_index?: boolean | undefined;
@@ -7456,6 +7465,7 @@ export type StartProcessTestRunPayload = {
7456
7465
  suite_id: string;
7457
7466
  process_revision_id: string;
7458
7467
  scenario_ids?: string[] | undefined;
7468
+ idempotency_key?: string | undefined;
7459
7469
  };
7460
7470
  export type ProcessTestAssertionResult = {
7461
7471
  assertion: string;
@@ -7721,6 +7731,10 @@ export type ContentObjectUserPermissions = {
7721
7731
  export type ContentObjectTextResponse = {
7722
7732
  text?: string | undefined;
7723
7733
  };
7734
+ export type SetObjectTextPayload = {
7735
+ text: string;
7736
+ etag?: string | undefined;
7737
+ };
7724
7738
  export type DeleteContentObjectResult = {
7725
7739
  id: string;
7726
7740
  count: number;
@@ -9829,6 +9843,7 @@ export type ProcessTestTargetWithDefinitionWire = {
9829
9843
  export type SubmitProcessTestRunPayloadWire = {
9830
9844
  process: ProcessTestTargetWire;
9831
9845
  scenarios: ProcessTestScenario[];
9846
+ idempotency_key?: string | undefined;
9832
9847
  };
9833
9848
  export type CreateContentObjectPayloadWire = {
9834
9849
  text?: string | undefined;
@@ -10494,7 +10509,9 @@ export type TurnEvaluationFlagWire =
10494
10509
  | 'overhead'
10495
10510
  | 'followup_after_answer'
10496
10511
  | 'approval_denied'
10497
- | 'circuit_breaker';
10512
+ | 'circuit_breaker'
10513
+ | 'no_visible_answer'
10514
+ | 'answer_in_tool_preamble';
10498
10515
  export type ToolErrorClassWire = 'schema' | 'platform' | 'config' | 'environment' | 'other';
10499
10516
  export type EvaluationGateReasonWire = 'signal' | 'sample' | 'opt_in' | 'always_on';
10500
10517
  export type EvaluationOutcomeWire = 'evaluated' | 'skipped_unarchived' | 'failed';
@@ -11287,6 +11304,7 @@ export interface ApiComponentTypes {
11287
11304
  TranscriptSegment: TranscriptSegment;
11288
11305
  ContentObjectTypeArray: ContentObjectTypeArray;
11289
11306
  ContentObjectTextResponse: ContentObjectTextResponse;
11307
+ SetObjectTextPayload: SetObjectTextPayload;
11290
11308
  DeleteContentObjectResult: DeleteContentObjectResult;
11291
11309
  Transcript: Transcript;
11292
11310
  CreateContentObjectPayload: CreateContentObjectPayloadWire;
@@ -84,7 +84,9 @@ export type TurnEvaluationFlag =
84
84
  | 'overhead'
85
85
  | 'followup_after_answer'
86
86
  | 'approval_denied'
87
- | 'circuit_breaker';
87
+ | 'circuit_breaker'
88
+ | 'no_visible_answer'
89
+ | 'answer_in_tool_preamble';
88
90
 
89
91
  /** Coarse class of a tool error, derived from the error text. */
90
92
  export type ToolErrorClass = 'schema' | 'platform' | 'config' | 'environment' | 'other';
@@ -238,6 +240,14 @@ interface BaseLlmCallEvent extends BaseAgentEvent {
238
240
  streamingEnabled: boolean;
239
241
  /** Number of tool uses returned by the LLM */
240
242
  toolUseCount: number;
243
+ /** Provider stop reason, normalized by the driver (`stop`, `length`, `tool_use`, ...). Absent on failed calls. */
244
+ finishReason?: string;
245
+ /**
246
+ * Characters of visible output (text and JSON parts, trimmed; thoughts and media excluded).
247
+ * `0` with `toolUseCount: 0` and `finishReason: 'stop'` is a completion with nothing to show.
248
+ * Absent on failed calls and on events from producers that predate the field.
249
+ */
250
+ outputTextChars?: number;
241
251
  /** Type of call: 'start' for initial, 'resume_tools' for tool results, 'resume_user' for user message */
242
252
  callType: LlmCallType;
243
253
  /** Activity attempt number (for retries) */
@@ -415,6 +425,16 @@ export interface TurnEvaluationEvent extends BaseAgentEvent {
415
425
  stallCorrectives?: number;
416
426
  /** Stall circuit-breaker trips: the model ignored the corrective and the loop was stopped. Same caveat. */
417
427
  stallTrips?: number;
428
+ /**
429
+ * Characters of the answers posted in the turn. `0` with a `no_visible_answer` flag is a turn the
430
+ * user saw end without a reply. Absent on events from producers that predate the field.
431
+ */
432
+ answerChars?: number;
433
+ /**
434
+ * Characters of text the model sent alongside its last tool calls in the turn. Text sent with tool
435
+ * calls is shown as working prose, not as the answer. Same caveat.
436
+ */
437
+ finalToolCallTextChars?: number;
418
438
  /** An unprompted user message after an answer was followed by substantive tool work */
419
439
  followupAfterAnswer: boolean;
420
440
  severity: EvaluationSeverity;