@ancplua/qyl-api-schema 6.0.0 → 7.1.0

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.
@@ -1,7 +1,7 @@
1
1
  // <auto-generated/>
2
2
  // Generated by qyl's Weaver pipeline (emit_typespec_keys.py) from:
3
3
  // open-telemetry/semantic-conventions v1.43.0 (89aae438b3b3b0a8dd33003c9d70592baf7dbd0d)
4
- // open-telemetry/semantic-conventions-genai 64cfaa612a1af8472b2f063374fbe3c9e6cea2ab (64cfaa612a1af8472b2f063374fbe3c9e6cea2ab)
4
+ // open-telemetry/semantic-conventions-genai f77b9235f2ad49fe95b61e9809ca82bb08ef9d47 (f77b9235f2ad49fe95b61e9809ca82bb08ef9d47)
5
5
  // Schema: https://opentelemetry.io/schemas/1.43.0
6
6
  // GenAI schema: https://opentelemetry.io/schemas/gen-ai-dev/1.42.0-dev
7
7
  // Licensed under Apache-2.0 (inherited from OpenTelemetry upstream)
@@ -891,6 +891,8 @@ namespace Qyl.Telemetry.SemanticConventions.Keys.GenAi {
891
891
  const RequestStopSequences: string = "gen_ai.request.stop_sequences";
892
892
  /** Indicates whether the GenAI request was made in streaming mode. */
893
893
  const RequestStream: string = "gen_ai.request.stream";
894
+ /** The cursor identifying the last streamed event already received, used to resume a streamed response from that position. */
895
+ const RequestStreamCursor: string = "gen_ai.request.stream_cursor";
894
896
  /** The temperature setting for the GenAI request. */
895
897
  const RequestTemperature: string = "gen_ai.request.temperature";
896
898
  /** The top-K sampling setting for the GenAI request: restricts token generation at each step to the K most likely next tokens. */
@@ -903,6 +905,8 @@ namespace Qyl.Telemetry.SemanticConventions.Keys.GenAi {
903
905
  const ResponseId: string = "gen_ai.response.id";
904
906
  /** The name of the model that generated the response. */
905
907
  const ResponseModel: string = "gen_ai.response.model";
908
+ /** The lifecycle status of a generated response, as reported by the provider when the response is fetched or polled. */
909
+ const ResponseStatus: string = "gen_ai.response.status";
906
910
  /** Time to first chunk in a streaming response, measured from request issuance, in seconds. The value is measured from when the client issues the generation request to when the first chunk is received in the response stream. */
907
911
  const ResponseTimeToFirstChunk: string = "gen_ai.response.time_to_first_chunk";
908
912
  /** The documents retrieved. */
@@ -34,12 +34,21 @@ export type WorkbenchSuiteId = string & {
34
34
  export type WorkbenchEvaluationExportId = string & {
35
35
  readonly __brand: "WorkbenchEvaluationExportId";
36
36
  };
37
+ export type WorkflowGeneration = string & {
38
+ readonly __brand: "WorkflowGeneration";
39
+ };
40
+ export type WorkflowJournalPosition = string & {
41
+ readonly __brand: "WorkflowJournalPosition";
42
+ };
37
43
  export type WorkflowRunId = string & {
38
44
  readonly __brand: "WorkflowRunId";
39
45
  };
40
46
  export type WorkflowAttemptId = string & {
41
47
  readonly __brand: "WorkflowAttemptId";
42
48
  };
49
+ export type WorkflowRunCursor = string & {
50
+ readonly __brand: "WorkflowRunCursor";
51
+ };
43
52
  export type WorkflowContentRef = string & {
44
53
  readonly __brand: "WorkflowContentRef";
45
54
  };
@@ -55,9 +64,30 @@ export type WorkflowToolCallId = string & {
55
64
  export type WorkflowNodeId = string & {
56
65
  readonly __brand: "WorkflowNodeId";
57
66
  };
67
+ export type WorkflowEdgeId = string & {
68
+ readonly __brand: "WorkflowEdgeId";
69
+ };
70
+ export type WorkflowNodeCursor = string & {
71
+ readonly __brand: "WorkflowNodeCursor";
72
+ };
73
+ export type WorkflowEdgeCursor = string & {
74
+ readonly __brand: "WorkflowEdgeCursor";
75
+ };
58
76
  export type WorkflowCommandId = string & {
59
77
  readonly __brand: "WorkflowCommandId";
60
78
  };
79
+ export type AgentDiagnosticVariableName = string & {
80
+ readonly __brand: "AgentDiagnosticVariableName";
81
+ };
82
+ export type AgentDiagnosticCheckId = string & {
83
+ readonly __brand: "AgentDiagnosticCheckId";
84
+ };
85
+ export type AgentDiagnosticSnapshotId = string & {
86
+ readonly __brand: "AgentDiagnosticSnapshotId";
87
+ };
88
+ export type AgentDiagnosticProbeId = string & {
89
+ readonly __brand: "AgentDiagnosticProbeId";
90
+ };
61
91
  export declare const ProblemDetailsMediaType: "application/problem+json";
62
92
  export type ProblemDetailsMediaType = typeof ProblemDetailsMediaType;
63
93
  export declare const SortOrderValues: {
@@ -455,6 +485,18 @@ export declare const WorkflowControlStatusValues: {
455
485
  readonly failed: "failed";
456
486
  };
457
487
  export type WorkflowControlStatus = typeof WorkflowControlStatusValues[keyof typeof WorkflowControlStatusValues];
488
+ export declare const WorkflowCursorKindValues: {
489
+ readonly node: "node";
490
+ readonly edge: "edge";
491
+ };
492
+ export type WorkflowCursorKind = typeof WorkflowCursorKindValues[keyof typeof WorkflowCursorKindValues];
493
+ export declare const WorkflowCursorFailureReasonValues: {
494
+ readonly invalid: "invalid";
495
+ readonly wrongRun: "wrong_run";
496
+ readonly wrongGeneration: "wrong_generation";
497
+ readonly stale: "stale";
498
+ };
499
+ export type WorkflowCursorFailureReason = typeof WorkflowCursorFailureReasonValues[keyof typeof WorkflowCursorFailureReasonValues];
458
500
  export declare const WorkflowAttemptStatusValues: {
459
501
  readonly pending: "pending";
460
502
  readonly running: "running";
@@ -480,6 +522,56 @@ export declare const WorkflowToolCallStatusValues: {
480
522
  readonly rejected: "rejected";
481
523
  };
482
524
  export type WorkflowToolCallStatus = typeof WorkflowToolCallStatusValues[keyof typeof WorkflowToolCallStatusValues];
525
+ export declare const AgentDiagnosticValueTypeValues: {
526
+ readonly null: "null";
527
+ readonly boolean: "boolean";
528
+ readonly integer: "integer";
529
+ readonly number: "number";
530
+ readonly string: "string";
531
+ readonly json: "json";
532
+ };
533
+ export type AgentDiagnosticValueType = typeof AgentDiagnosticValueTypeValues[keyof typeof AgentDiagnosticValueTypeValues];
534
+ export declare const AgentDiagnosticClassificationValues: {
535
+ readonly public: "public";
536
+ readonly internal: "internal";
537
+ readonly sensitive: "sensitive";
538
+ readonly secret: "secret";
539
+ };
540
+ export type AgentDiagnosticClassification = typeof AgentDiagnosticClassificationValues[keyof typeof AgentDiagnosticClassificationValues];
541
+ export declare const AgentDiagnosticOperatorValues: {
542
+ readonly equal: "equal";
543
+ readonly notEqual: "not_equal";
544
+ readonly exists: "exists";
545
+ readonly typeIs: "type_is";
546
+ readonly contains: "contains";
547
+ readonly lessThan: "less_than";
548
+ readonly greaterThan: "greater_than";
549
+ };
550
+ export type AgentDiagnosticOperator = typeof AgentDiagnosticOperatorValues[keyof typeof AgentDiagnosticOperatorValues];
551
+ export declare const AgentDiagnosticCheckOutcomeValues: {
552
+ readonly pass: "pass";
553
+ readonly fail: "fail";
554
+ readonly unknownResult: "unknown";
555
+ };
556
+ export type AgentDiagnosticCheckOutcome = typeof AgentDiagnosticCheckOutcomeValues[keyof typeof AgentDiagnosticCheckOutcomeValues];
557
+ export declare const AgentDiagnosticExtensionIdValues: {
558
+ readonly snapshot: "qyl.agent.diagnostic.snapshot";
559
+ };
560
+ export type AgentDiagnosticExtensionId = typeof AgentDiagnosticExtensionIdValues[keyof typeof AgentDiagnosticExtensionIdValues];
561
+ export declare const AgentDiagnosticPhaseValues: {
562
+ readonly input: "input";
563
+ readonly output: "output";
564
+ readonly error: "error";
565
+ readonly checkpoint: "checkpoint";
566
+ };
567
+ export type AgentDiagnosticPhase = typeof AgentDiagnosticPhaseValues[keyof typeof AgentDiagnosticPhaseValues];
568
+ export declare const AgentDiagnosticOutcomeValues: {
569
+ readonly pass: "pass";
570
+ readonly fail: "fail";
571
+ readonly unknownResult: "unknown";
572
+ readonly notEvaluated: "not_evaluated";
573
+ };
574
+ export type AgentDiagnosticOutcome = typeof AgentDiagnosticOutcomeValues[keyof typeof AgentDiagnosticOutcomeValues];
483
575
  export declare const McpDataModeValues: {
484
576
  readonly live: "live";
485
577
  readonly demo: "demo";
@@ -510,7 +602,9 @@ export type WorkbenchEvaluationExportPayload = WorkbenchEvaluationJsonExportPayl
510
602
  export type WorkbenchProtocolEvents = WorkbenchProtocolEvent;
511
603
  export type WorkbenchExecutionUpdateEvents = WorkbenchExecutionRecord;
512
604
  export type WorkflowEdgeProvenance = RecordedWorkflowEdgeProvenance | DerivedWorkflowEdgeProvenance;
605
+ export type WorkflowProjectionStatus = CommittedWorkflowProjectionStatus | RebuildingWorkflowProjectionStatus | UnavailableWorkflowProjectionStatus | CorruptWorkflowProjectionStatus;
513
606
  export type WorkflowStreamEvents = WorkflowJournalEvent | WorkflowHeartbeatEvent | WorkflowCursorGapEvent;
607
+ export type AgentDiagnosticVariable = CapturedAgentDiagnosticVariable | RedactedAgentDiagnosticVariable | OmittedAgentDiagnosticVariable;
514
608
  export type LogEvents = LogStreamEvent | HeartbeatEvent;
515
609
  export interface AttributeBytesValue {
516
610
  "type": "bytes";
@@ -1355,14 +1449,36 @@ export interface WorkbenchEvaluationExportArtifact {
1355
1449
  export interface WorkbenchEvaluationExportAccepted {
1356
1450
  "export": WorkbenchEvaluationExport;
1357
1451
  }
1452
+ export interface CommittedWorkflowProjectionStatus {
1453
+ "state": "committed";
1454
+ "generation": WorkflowGeneration;
1455
+ "journal_position": WorkflowJournalPosition;
1456
+ }
1457
+ export interface RebuildingWorkflowProjectionStatus {
1458
+ "state": "rebuilding";
1459
+ "generation": WorkflowGeneration;
1460
+ "target_journal_position": WorkflowJournalPosition;
1461
+ "retry_after_ms": number;
1462
+ }
1463
+ export interface UnavailableWorkflowProjectionStatus {
1464
+ "state": "unavailable";
1465
+ "generation"?: WorkflowGeneration;
1466
+ "retry_after_ms": number;
1467
+ }
1468
+ export interface CorruptWorkflowProjectionStatus {
1469
+ "state": "corrupt";
1470
+ "generation"?: WorkflowGeneration;
1471
+ "reason": "corrupt_derived_state" | "incompatible_derived_state";
1472
+ }
1358
1473
  export interface WorkflowRun {
1359
1474
  "run_id": WorkflowRunId;
1475
+ "generation": WorkflowGeneration;
1360
1476
  "thread_id"?: string;
1361
1477
  "title"?: string;
1362
1478
  "status": WorkflowRunStatus;
1363
1479
  "started_at": string;
1364
1480
  "ended_at"?: string;
1365
- "latest_journal_sequence": string;
1481
+ "latest_journal_sequence": WorkflowJournalPosition;
1366
1482
  "active_attempt_id"?: WorkflowAttemptId;
1367
1483
  "metadata"?: Record<string, unknown>;
1368
1484
  }
@@ -1375,7 +1491,7 @@ export interface WorkflowRunCreateRequest {
1375
1491
  }
1376
1492
  export interface WorkflowRunPage {
1377
1493
  "items": WorkflowRun[];
1378
- "next_cursor"?: string;
1494
+ "next_cursor"?: WorkflowRunCursor;
1379
1495
  "has_more": boolean;
1380
1496
  }
1381
1497
  export interface WorkflowContentChunk {
@@ -1408,18 +1524,18 @@ export interface WorkflowEventBatchAppendResponse {
1408
1524
  "accepted_count": number;
1409
1525
  "duplicate_count": number;
1410
1526
  "acknowledged_source_sequence": string;
1411
- "first_journal_sequence"?: string;
1412
- "last_journal_sequence"?: string;
1527
+ "first_journal_sequence"?: WorkflowJournalPosition;
1528
+ "last_journal_sequence"?: WorkflowJournalPosition;
1413
1529
  }
1414
1530
  export interface WorkflowJournalEvent extends WorkflowEventAppend {
1415
1531
  "run_id": WorkflowRunId;
1416
1532
  "client_id": string;
1417
- "journal_sequence": string;
1533
+ "journal_sequence": WorkflowJournalPosition;
1418
1534
  }
1419
1535
  export interface WorkflowEventPage {
1420
1536
  "events": WorkflowJournalEvent[];
1421
- "next_sequence": string;
1422
- "high_water_mark": string;
1537
+ "next_sequence": WorkflowJournalPosition;
1538
+ "high_water_mark": WorkflowJournalPosition;
1423
1539
  "cursor_gap": boolean;
1424
1540
  }
1425
1541
  export interface RecordedWorkflowEdgeProvenance {
@@ -1446,7 +1562,7 @@ export interface WorkflowGraphNode {
1446
1562
  "attributes"?: Record<string, unknown>;
1447
1563
  }
1448
1564
  export interface WorkflowGraphEdge {
1449
- "edge_id": string;
1565
+ "edge_id": WorkflowEdgeId;
1450
1566
  "source_node_id": WorkflowNodeId;
1451
1567
  "target_node_id": WorkflowNodeId;
1452
1568
  "kind": WorkflowEdgeKind;
@@ -1463,12 +1579,13 @@ export interface WorkflowGraphStatistics {
1463
1579
  }
1464
1580
  export interface WorkflowGraphSnapshot {
1465
1581
  "run": WorkflowRun;
1582
+ "projection_status": WorkflowProjectionStatus;
1466
1583
  "nodes": WorkflowGraphNode[];
1467
1584
  "edges": WorkflowGraphEdge[];
1468
1585
  "statistics": WorkflowGraphStatistics;
1469
- "journal_sequence": string;
1470
- "next_node_cursor"?: string;
1471
- "next_edge_cursor"?: string;
1586
+ "journal_sequence": WorkflowJournalPosition;
1587
+ "next_node_cursor"?: WorkflowNodeCursor;
1588
+ "next_edge_cursor"?: WorkflowEdgeCursor;
1472
1589
  "has_more_nodes": boolean;
1473
1590
  "has_more_edges": boolean;
1474
1591
  "total_node_count": number;
@@ -1509,15 +1626,79 @@ export interface WorkflowControlStatusUpdateRequest {
1509
1626
  }
1510
1627
  export interface WorkflowHeartbeatEvent {
1511
1628
  "type": "heartbeat";
1512
- "high_water_mark": string;
1629
+ "high_water_mark": WorkflowJournalPosition;
1513
1630
  "timestamp": string;
1514
1631
  }
1515
1632
  export interface WorkflowCursorGapEvent {
1516
1633
  "type": "cursor_gap";
1517
- "oldest_available_sequence": string;
1518
- "high_water_mark": string;
1634
+ "oldest_available_sequence": WorkflowJournalPosition;
1635
+ "high_water_mark": WorkflowJournalPosition;
1519
1636
  "timestamp": string;
1520
1637
  }
1638
+ export interface WorkflowCursorError extends ProblemDetails {
1639
+ "title": "Invalid Workflow Cursor";
1640
+ "cursor_kind": WorkflowCursorKind;
1641
+ "reason": WorkflowCursorFailureReason;
1642
+ "current_generation"?: WorkflowGeneration;
1643
+ }
1644
+ export interface WorkflowRunDeletedError extends ProblemDetails {
1645
+ "title": "Workflow Run Deleted";
1646
+ "run_id": WorkflowRunId;
1647
+ }
1648
+ export interface WorkflowProjectionUnavailableError extends ProblemDetails {
1649
+ "title": "Workflow Projection Unavailable";
1650
+ "projection_status": WorkflowProjectionStatus;
1651
+ }
1652
+ export interface WorkflowProjectionCorruptError extends ProblemDetails {
1653
+ "title": "Workflow Projection Corrupt";
1654
+ "projection_status": WorkflowProjectionStatus;
1655
+ }
1656
+ export interface AgentDiagnosticVariableBase {
1657
+ "name": AgentDiagnosticVariableName;
1658
+ "type": AgentDiagnosticValueType;
1659
+ "classification": AgentDiagnosticClassification;
1660
+ }
1661
+ export interface CapturedAgentDiagnosticVariable extends AgentDiagnosticVariableBase {
1662
+ "capture": "value";
1663
+ "value": unknown | null;
1664
+ }
1665
+ export interface RedactedAgentDiagnosticVariable extends AgentDiagnosticVariableBase {
1666
+ "capture": "redacted";
1667
+ }
1668
+ export interface OmittedAgentDiagnosticVariable extends AgentDiagnosticVariableBase {
1669
+ "capture": "omitted";
1670
+ }
1671
+ export interface AgentDiagnosticCheckResult {
1672
+ "check_id": AgentDiagnosticCheckId;
1673
+ "operator": AgentDiagnosticOperator;
1674
+ "actual": AgentDiagnosticVariableName;
1675
+ "expected"?: AgentDiagnosticVariableName;
1676
+ "expected_type"?: AgentDiagnosticValueType;
1677
+ "outcome": AgentDiagnosticCheckOutcome;
1678
+ }
1679
+ export interface AgentDiagnosticSnapshot {
1680
+ "extension_id": AgentDiagnosticExtensionId;
1681
+ "format_version": number;
1682
+ "snapshot_id": AgentDiagnosticSnapshotId;
1683
+ "capture_nonce": string;
1684
+ "probe_id": AgentDiagnosticProbeId;
1685
+ "phase": AgentDiagnosticPhase;
1686
+ "variables": AgentDiagnosticVariable[];
1687
+ "checks": AgentDiagnosticCheckResult[];
1688
+ "outcome": AgentDiagnosticOutcome;
1689
+ }
1690
+ export interface AgentDiagnosticSnapshotSummary {
1691
+ "extension_id": AgentDiagnosticExtensionId;
1692
+ "format_version": number;
1693
+ "snapshot_id": AgentDiagnosticSnapshotId;
1694
+ "probe_id": AgentDiagnosticProbeId;
1695
+ "phase": AgentDiagnosticPhase;
1696
+ "outcome": AgentDiagnosticOutcome;
1697
+ "variable_count": number;
1698
+ "check_count": number;
1699
+ "failed_check_count": number;
1700
+ "content_ref": WorkflowContentRef;
1701
+ }
1521
1702
  export interface DisplayTracesInput {
1522
1703
  "trace_id"?: TraceId;
1523
1704
  "session_id"?: SessionId;
@@ -1647,22 +1828,57 @@ export interface FetchTelemetryOutput {
1647
1828
  "stats"?: McpDashboardStats;
1648
1829
  "mode": McpDataMode;
1649
1830
  }
1831
+ export interface GetActiveWorkflowRunInput {
1832
+ }
1833
+ export interface GetActiveWorkflowRunOutput {
1834
+ "active": boolean;
1835
+ "live_controls_available": boolean;
1836
+ "run_id"?: WorkflowRunId;
1837
+ "thread_id"?: string;
1838
+ "started_at"?: string;
1839
+ }
1840
+ export interface RecordDiagnosticSnapshotVariableInput {
1841
+ "name": AgentDiagnosticVariableName;
1842
+ "classification": AgentDiagnosticClassification;
1843
+ "value": unknown | null;
1844
+ }
1845
+ export interface RecordDiagnosticSnapshotCheckInput {
1846
+ "check_id": AgentDiagnosticCheckId;
1847
+ "operator": AgentDiagnosticOperator;
1848
+ "actual": AgentDiagnosticVariableName;
1849
+ "expected"?: AgentDiagnosticVariableName;
1850
+ "expected_type"?: AgentDiagnosticValueType;
1851
+ }
1852
+ export interface RecordDiagnosticSnapshotInput {
1853
+ "snapshot_id": AgentDiagnosticSnapshotId;
1854
+ "probe_id": AgentDiagnosticProbeId;
1855
+ "phase": AgentDiagnosticPhase;
1856
+ "variables": RecordDiagnosticSnapshotVariableInput[];
1857
+ "checks"?: RecordDiagnosticSnapshotCheckInput[];
1858
+ }
1859
+ export interface RecordDiagnosticSnapshotOutput {
1860
+ "recorded": boolean;
1861
+ "code": string;
1862
+ "snapshot_id": AgentDiagnosticSnapshotId;
1863
+ "event_id"?: WorkflowEventId;
1864
+ "field"?: string;
1865
+ }
1650
1866
  export interface ListWorkflowRunsInput {
1651
1867
  "status"?: WorkflowRunStatus;
1652
- "cursor"?: string;
1868
+ "cursor"?: WorkflowRunCursor;
1653
1869
  "limit"?: number;
1654
1870
  }
1655
1871
  export interface ListWorkflowRunsOutput {
1656
1872
  "runs": WorkflowRun[];
1657
- "next_cursor"?: string;
1873
+ "next_cursor"?: WorkflowRunCursor;
1658
1874
  "has_more": boolean;
1659
1875
  "mode": McpDataMode;
1660
1876
  }
1661
1877
  export interface GetWorkflowGraphInput {
1662
1878
  "run_id": WorkflowRunId;
1663
- "node_cursor"?: string;
1879
+ "node_cursor"?: WorkflowNodeCursor;
1664
1880
  "node_limit"?: number;
1665
- "edge_cursor"?: string;
1881
+ "edge_cursor"?: WorkflowEdgeCursor;
1666
1882
  "edge_limit"?: number;
1667
1883
  }
1668
1884
  export interface GetWorkflowGraphOutput {
@@ -1671,9 +1887,9 @@ export interface GetWorkflowGraphOutput {
1671
1887
  }
1672
1888
  export interface DisplayWorkflowGraphInput {
1673
1889
  "run_id"?: WorkflowRunId;
1674
- "node_cursor"?: string;
1890
+ "node_cursor"?: WorkflowNodeCursor;
1675
1891
  "node_limit"?: number;
1676
- "edge_cursor"?: string;
1892
+ "edge_cursor"?: WorkflowEdgeCursor;
1677
1893
  "edge_limit"?: number;
1678
1894
  }
1679
1895
  export interface DisplayWorkflowGraphOutput {
@@ -1683,12 +1899,12 @@ export interface DisplayWorkflowGraphOutput {
1683
1899
  }
1684
1900
  export interface FetchWorkflowGraphUpdatesInput {
1685
1901
  "run_id": WorkflowRunId;
1686
- "after_sequence": string;
1902
+ "after_sequence": WorkflowJournalPosition;
1687
1903
  "limit"?: number;
1688
1904
  "wait_ms"?: number;
1689
- "node_cursor"?: string;
1905
+ "node_cursor"?: WorkflowNodeCursor;
1690
1906
  "node_limit"?: number;
1691
- "edge_cursor"?: string;
1907
+ "edge_cursor"?: WorkflowEdgeCursor;
1692
1908
  "edge_limit"?: number;
1693
1909
  "content_ref"?: WorkflowContentRef;
1694
1910
  }
@@ -1698,6 +1914,17 @@ export interface FetchWorkflowGraphUpdatesOutput {
1698
1914
  "content"?: WorkflowContent;
1699
1915
  "mode": McpDataMode;
1700
1916
  }
1917
+ export interface InspectWorkflowEventsInput {
1918
+ "run_id": WorkflowRunId;
1919
+ "after_sequence": WorkflowJournalPosition;
1920
+ "limit"?: number;
1921
+ "content_ref"?: WorkflowContentRef;
1922
+ }
1923
+ export interface InspectWorkflowEventsOutput {
1924
+ "page": WorkflowEventPage;
1925
+ "content"?: WorkflowContent;
1926
+ "mode": McpDataMode;
1927
+ }
1701
1928
  export interface ControlWorkflowRunInput {
1702
1929
  "run_id": WorkflowRunId;
1703
1930
  "action": WorkflowControlAction;
@@ -353,6 +353,16 @@ export const WorkflowControlStatusValues = {
353
353
  "rejected": "rejected",
354
354
  "failed": "failed",
355
355
  };
356
+ export const WorkflowCursorKindValues = {
357
+ "node": "node",
358
+ "edge": "edge",
359
+ };
360
+ export const WorkflowCursorFailureReasonValues = {
361
+ "invalid": "invalid",
362
+ "wrongRun": "wrong_run",
363
+ "wrongGeneration": "wrong_generation",
364
+ "stale": "stale",
365
+ };
356
366
  export const WorkflowAttemptStatusValues = {
357
367
  "pending": "pending",
358
368
  "running": "running",
@@ -375,6 +385,49 @@ export const WorkflowToolCallStatusValues = {
375
385
  "failed": "failed",
376
386
  "rejected": "rejected",
377
387
  };
388
+ export const AgentDiagnosticValueTypeValues = {
389
+ "null": "null",
390
+ "boolean": "boolean",
391
+ "integer": "integer",
392
+ "number": "number",
393
+ "string": "string",
394
+ "json": "json",
395
+ };
396
+ export const AgentDiagnosticClassificationValues = {
397
+ "public": "public",
398
+ "internal": "internal",
399
+ "sensitive": "sensitive",
400
+ "secret": "secret",
401
+ };
402
+ export const AgentDiagnosticOperatorValues = {
403
+ "equal": "equal",
404
+ "notEqual": "not_equal",
405
+ "exists": "exists",
406
+ "typeIs": "type_is",
407
+ "contains": "contains",
408
+ "lessThan": "less_than",
409
+ "greaterThan": "greater_than",
410
+ };
411
+ export const AgentDiagnosticCheckOutcomeValues = {
412
+ "pass": "pass",
413
+ "fail": "fail",
414
+ "unknownResult": "unknown",
415
+ };
416
+ export const AgentDiagnosticExtensionIdValues = {
417
+ "snapshot": "qyl.agent.diagnostic.snapshot",
418
+ };
419
+ export const AgentDiagnosticPhaseValues = {
420
+ "input": "input",
421
+ "output": "output",
422
+ "error": "error",
423
+ "checkpoint": "checkpoint",
424
+ };
425
+ export const AgentDiagnosticOutcomeValues = {
426
+ "pass": "pass",
427
+ "fail": "fail",
428
+ "unknownResult": "unknown",
429
+ "notEvaluated": "not_evaluated",
430
+ };
378
431
  export const McpDataModeValues = {
379
432
  "live": "live",
380
433
  "demo": "demo",
@@ -392,4 +445,4 @@ export const FetchTelemetryViewValues = {
392
445
  };
393
446
  // --- contract revision (scripts/emit-contract-revision.mjs) ---
394
447
  /** Revision of the API contract these types were emitted from; compare against HealthReport.contract_revision. */
395
- export const CONTRACT_REVISION = "sha256:f32216c3a3172ab0";
448
+ export const CONTRACT_REVISION = "sha256:72545708596baccd";
package/index.tsp CHANGED
@@ -22,6 +22,7 @@ import "./models/health.tsp";
22
22
  import "./models/runner.tsp";
23
23
  import "./models/workbench.tsp";
24
24
  import "./models/workflow.tsp";
25
+ import "./models/diagnostics.tsp";
25
26
  import "./models/mcp-tools.tsp";
26
27
 
27
28
  import "./api/routes.tsp";