@ancplua/qyl-api-schema 6.0.0 → 7.0.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.
@@ -1672,7 +1672,8 @@
1672
1672
  "$ref": "#/$defs/Workflow.WorkflowRunId"
1673
1673
  },
1674
1674
  "node_cursor": {
1675
- "type": "string"
1675
+ "$ref": "#/$defs/Workflow.WorkflowNodeCursor",
1676
+ "description": "Opaque node continuation. Reuse it unchanged from the preceding snapshot's next_node_cursor; do not parse, construct, or modify it."
1676
1677
  },
1677
1678
  "node_limit": {
1678
1679
  "type": "integer",
@@ -1682,7 +1683,8 @@
1682
1683
  "default": 250
1683
1684
  },
1684
1685
  "edge_cursor": {
1685
- "type": "string"
1686
+ "$ref": "#/$defs/Workflow.WorkflowEdgeCursor",
1687
+ "description": "Opaque edge continuation. Reuse it unchanged from the preceding snapshot's next_edge_cursor; do not parse, construct, or modify it."
1686
1688
  },
1687
1689
  "edge_limit": {
1688
1690
  "type": "integer",
@@ -1816,7 +1818,7 @@
1816
1818
  "$ref": "#/$defs/Workflow.WorkflowRunId"
1817
1819
  },
1818
1820
  "after_sequence": {
1819
- "$ref": "#/$defs/Workflow.WorkflowSequence"
1821
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
1820
1822
  },
1821
1823
  "limit": {
1822
1824
  "type": "integer",
@@ -1833,7 +1835,8 @@
1833
1835
  "default": 20000
1834
1836
  },
1835
1837
  "node_cursor": {
1836
- "type": "string"
1838
+ "$ref": "#/$defs/Workflow.WorkflowNodeCursor",
1839
+ "description": "Opaque node continuation. Reuse it unchanged from the preceding snapshot's next_node_cursor; do not parse, construct, or modify it."
1837
1840
  },
1838
1841
  "node_limit": {
1839
1842
  "type": "integer",
@@ -1843,7 +1846,8 @@
1843
1846
  "default": 250
1844
1847
  },
1845
1848
  "edge_cursor": {
1846
- "type": "string"
1849
+ "$ref": "#/$defs/Workflow.WorkflowEdgeCursor",
1850
+ "description": "Opaque edge continuation. Reuse it unchanged from the preceding snapshot's next_edge_cursor; do not parse, construct, or modify it."
1847
1851
  },
1848
1852
  "edge_limit": {
1849
1853
  "type": "integer",
@@ -1931,7 +1935,8 @@
1931
1935
  "$ref": "#/$defs/Workflow.WorkflowRunId"
1932
1936
  },
1933
1937
  "node_cursor": {
1934
- "type": "string"
1938
+ "$ref": "#/$defs/Workflow.WorkflowNodeCursor",
1939
+ "description": "Opaque node continuation. Reuse it unchanged from the preceding snapshot's next_node_cursor; do not parse, construct, or modify it."
1935
1940
  },
1936
1941
  "node_limit": {
1937
1942
  "type": "integer",
@@ -1941,7 +1946,8 @@
1941
1946
  "default": 250
1942
1947
  },
1943
1948
  "edge_cursor": {
1944
- "type": "string"
1949
+ "$ref": "#/$defs/Workflow.WorkflowEdgeCursor",
1950
+ "description": "Opaque edge continuation. Reuse it unchanged from the preceding snapshot's next_edge_cursor; do not parse, construct, or modify it."
1945
1951
  },
1946
1952
  "edge_limit": {
1947
1953
  "type": "integer",
@@ -2061,7 +2067,7 @@
2061
2067
  "$ref": "#/$defs/Workflow.WorkflowRunStatus"
2062
2068
  },
2063
2069
  "cursor": {
2064
- "type": "string"
2070
+ "$ref": "#/$defs/Workflow.WorkflowRunCursor"
2065
2071
  },
2066
2072
  "limit": {
2067
2073
  "type": "integer",
@@ -2091,7 +2097,7 @@
2091
2097
  }
2092
2098
  },
2093
2099
  "next_cursor": {
2094
- "type": "string"
2100
+ "$ref": "#/$defs/Workflow.WorkflowRunCursor"
2095
2101
  },
2096
2102
  "has_more": {
2097
2103
  "type": "boolean"
@@ -6139,6 +6145,61 @@
6139
6145
  },
6140
6146
  "description": "Request to update mutable MCP workbench workspace metadata."
6141
6147
  },
6148
+ "Workflow.CommittedWorkflowProjectionStatus": {
6149
+ "type": "object",
6150
+ "required": [
6151
+ "state",
6152
+ "generation",
6153
+ "journal_position"
6154
+ ],
6155
+ "properties": {
6156
+ "state": {
6157
+ "type": "string",
6158
+ "enum": [
6159
+ "committed"
6160
+ ]
6161
+ },
6162
+ "generation": {
6163
+ "$ref": "#/$defs/Workflow.WorkflowGeneration"
6164
+ },
6165
+ "journal_position": {
6166
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6167
+ }
6168
+ },
6169
+ "unevaluatedProperties": {
6170
+ "not": {}
6171
+ },
6172
+ "description": "A valid committed projection that can be served to readers."
6173
+ },
6174
+ "Workflow.CorruptWorkflowProjectionStatus": {
6175
+ "type": "object",
6176
+ "required": [
6177
+ "state",
6178
+ "reason"
6179
+ ],
6180
+ "properties": {
6181
+ "state": {
6182
+ "type": "string",
6183
+ "enum": [
6184
+ "corrupt"
6185
+ ]
6186
+ },
6187
+ "generation": {
6188
+ "$ref": "#/$defs/Workflow.WorkflowGeneration"
6189
+ },
6190
+ "reason": {
6191
+ "type": "string",
6192
+ "enum": [
6193
+ "corrupt_derived_state",
6194
+ "incompatible_derived_state"
6195
+ ]
6196
+ }
6197
+ },
6198
+ "unevaluatedProperties": {
6199
+ "not": {}
6200
+ },
6201
+ "description": "Derived projection state is corrupt or incompatible and cannot currently be served."
6202
+ },
6142
6203
  "Workflow.DerivedWorkflowEdgeProvenance": {
6143
6204
  "type": "object",
6144
6205
  "required": [
@@ -6173,6 +6234,38 @@
6173
6234
  },
6174
6235
  "description": "Derived edge provenance with explicit evidence and confidence."
6175
6236
  },
6237
+ "Workflow.RebuildingWorkflowProjectionStatus": {
6238
+ "type": "object",
6239
+ "required": [
6240
+ "state",
6241
+ "generation",
6242
+ "target_journal_position",
6243
+ "retry_after_ms"
6244
+ ],
6245
+ "properties": {
6246
+ "state": {
6247
+ "type": "string",
6248
+ "enum": [
6249
+ "rebuilding"
6250
+ ]
6251
+ },
6252
+ "generation": {
6253
+ "$ref": "#/$defs/Workflow.WorkflowGeneration"
6254
+ },
6255
+ "target_journal_position": {
6256
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6257
+ },
6258
+ "retry_after_ms": {
6259
+ "type": "integer",
6260
+ "format": "int32",
6261
+ "minimum": 1
6262
+ }
6263
+ },
6264
+ "unevaluatedProperties": {
6265
+ "not": {}
6266
+ },
6267
+ "description": "The requested generation is being reconstructed from its authoritative journal."
6268
+ },
6176
6269
  "Workflow.RecordedWorkflowEdgeProvenance": {
6177
6270
  "type": "object",
6178
6271
  "required": [
@@ -6199,6 +6292,33 @@
6199
6292
  },
6200
6293
  "description": "Recorded edge provenance directly observed from Codex."
6201
6294
  },
6295
+ "Workflow.UnavailableWorkflowProjectionStatus": {
6296
+ "type": "object",
6297
+ "required": [
6298
+ "state",
6299
+ "retry_after_ms"
6300
+ ],
6301
+ "properties": {
6302
+ "state": {
6303
+ "type": "string",
6304
+ "enum": [
6305
+ "unavailable"
6306
+ ]
6307
+ },
6308
+ "generation": {
6309
+ "$ref": "#/$defs/Workflow.WorkflowGeneration"
6310
+ },
6311
+ "retry_after_ms": {
6312
+ "type": "integer",
6313
+ "format": "int32",
6314
+ "minimum": 1
6315
+ }
6316
+ },
6317
+ "unevaluatedProperties": {
6318
+ "not": {}
6319
+ },
6320
+ "description": "Projection work is temporarily unavailable after a retryable storage failure."
6321
+ },
6202
6322
  "Workflow.WorkflowAgentId": {
6203
6323
  "type": "string",
6204
6324
  "minLength": 1,
@@ -6457,6 +6577,50 @@
6457
6577
  },
6458
6578
  "description": "Adapter acknowledgement or terminal result for one control command."
6459
6579
  },
6580
+ "Workflow.WorkflowCursorError": {
6581
+ "type": "object",
6582
+ "required": [
6583
+ "title",
6584
+ "cursor_kind",
6585
+ "reason"
6586
+ ],
6587
+ "properties": {
6588
+ "title": {
6589
+ "type": "string",
6590
+ "enum": [
6591
+ "Invalid Workflow Cursor"
6592
+ ]
6593
+ },
6594
+ "cursor_kind": {
6595
+ "$ref": "#/$defs/Workflow.WorkflowCursorKind"
6596
+ },
6597
+ "reason": {
6598
+ "$ref": "#/$defs/Workflow.WorkflowCursorFailureReason"
6599
+ },
6600
+ "current_generation": {
6601
+ "$ref": "#/$defs/Workflow.WorkflowGeneration"
6602
+ }
6603
+ },
6604
+ "unevaluatedProperties": {
6605
+ "not": {}
6606
+ },
6607
+ "allOf": [
6608
+ {
6609
+ "$ref": "#/$defs/Common.Errors.ProblemDetails"
6610
+ }
6611
+ ],
6612
+ "description": "Opaque graph cursor is malformed, belongs to another run, or targets a stale generation."
6613
+ },
6614
+ "Workflow.WorkflowCursorFailureReason": {
6615
+ "type": "string",
6616
+ "enum": [
6617
+ "invalid",
6618
+ "wrong_run",
6619
+ "wrong_generation",
6620
+ "stale"
6621
+ ],
6622
+ "description": "Why an opaque graph cursor cannot be reused for this request."
6623
+ },
6460
6624
  "Workflow.WorkflowCursorGapEvent": {
6461
6625
  "type": "object",
6462
6626
  "required": [
@@ -6473,10 +6637,10 @@
6473
6637
  ]
6474
6638
  },
6475
6639
  "oldest_available_sequence": {
6476
- "$ref": "#/$defs/Workflow.WorkflowSequence"
6640
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6477
6641
  },
6478
6642
  "high_water_mark": {
6479
- "$ref": "#/$defs/Workflow.WorkflowSequence"
6643
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6480
6644
  },
6481
6645
  "timestamp": {
6482
6646
  "type": "string",
@@ -6488,6 +6652,26 @@
6488
6652
  },
6489
6653
  "description": "Signals that the requested cursor predates retained workflow history."
6490
6654
  },
6655
+ "Workflow.WorkflowCursorKind": {
6656
+ "type": "string",
6657
+ "enum": [
6658
+ "node",
6659
+ "edge"
6660
+ ],
6661
+ "description": "Which opaque graph cursor was rejected."
6662
+ },
6663
+ "Workflow.WorkflowEdgeCursor": {
6664
+ "type": "string",
6665
+ "minLength": 1,
6666
+ "maxLength": 1536,
6667
+ "description": "Opaque edge-page continuation scoped to one workflow run and generation. Reuse it unchanged; clients must not parse or construct it."
6668
+ },
6669
+ "Workflow.WorkflowEdgeId": {
6670
+ "type": "string",
6671
+ "minLength": 1,
6672
+ "maxLength": 192,
6673
+ "description": "Stable identifier of one graph edge. Endpoint tuples preserve the nodes' structural run-versus-attempt scope and ordinal component boundaries, escape colon as \\c and backslash as \\\\, and never infer scope from a literal component value. A canonical identifier over 192 Unicode scalar values is replaced by its edge kind, a tilde, and the full lowercase 64-hex SHA-256 of the length-prefixed canonical tuple."
6674
+ },
6491
6675
  "Workflow.WorkflowEdgeKind": {
6492
6676
  "type": "string",
6493
6677
  "enum": [
@@ -6623,10 +6807,10 @@
6623
6807
  "$ref": "#/$defs/Workflow.WorkflowSequence"
6624
6808
  },
6625
6809
  "first_journal_sequence": {
6626
- "$ref": "#/$defs/Workflow.WorkflowSequence"
6810
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6627
6811
  },
6628
6812
  "last_journal_sequence": {
6629
- "$ref": "#/$defs/Workflow.WorkflowSequence"
6813
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6630
6814
  }
6631
6815
  },
6632
6816
  "unevaluatedProperties": {
@@ -6656,10 +6840,10 @@
6656
6840
  }
6657
6841
  },
6658
6842
  "next_sequence": {
6659
- "$ref": "#/$defs/Workflow.WorkflowSequence"
6843
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6660
6844
  },
6661
6845
  "high_water_mark": {
6662
- "$ref": "#/$defs/Workflow.WorkflowSequence"
6846
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6663
6847
  },
6664
6848
  "cursor_gap": {
6665
6849
  "type": "boolean"
@@ -6670,6 +6854,13 @@
6670
6854
  },
6671
6855
  "description": "A bounded page of workflow journal events."
6672
6856
  },
6857
+ "Workflow.WorkflowGeneration": {
6858
+ "type": "string",
6859
+ "minLength": 32,
6860
+ "maxLength": 32,
6861
+ "pattern": "^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$",
6862
+ "description": "Opaque incarnation identifier for one workflow run's projected state."
6863
+ },
6673
6864
  "Workflow.WorkflowGraphEdge": {
6674
6865
  "type": "object",
6675
6866
  "required": [
@@ -6681,7 +6872,7 @@
6681
6872
  ],
6682
6873
  "properties": {
6683
6874
  "edge_id": {
6684
- "type": "string"
6875
+ "$ref": "#/$defs/Workflow.WorkflowEdgeId"
6685
6876
  },
6686
6877
  "source_node_id": {
6687
6878
  "$ref": "#/$defs/Workflow.WorkflowNodeId"
@@ -6699,7 +6890,7 @@
6699
6890
  "unevaluatedProperties": {
6700
6891
  "not": {}
6701
6892
  },
6702
- "description": "One typed edge in the deterministic workflow graph projection."
6893
+ "description": "One typed edge in the deterministic workflow graph projection. Data, Control, and Gate edges are causal dependencies. Temporal edges describe observed order, Resource edges describe resource use, and Conflict edges describe contention; Temporal, Resource, and Conflict edges are excluded from critical-path causality."
6703
6894
  },
6704
6895
  "Workflow.WorkflowGraphNode": {
6705
6896
  "type": "object",
@@ -6759,6 +6950,7 @@
6759
6950
  "type": "object",
6760
6951
  "required": [
6761
6952
  "run",
6953
+ "projection_status",
6762
6954
  "nodes",
6763
6955
  "edges",
6764
6956
  "statistics",
@@ -6772,6 +6964,9 @@
6772
6964
  "run": {
6773
6965
  "$ref": "#/$defs/Workflow.WorkflowRun"
6774
6966
  },
6967
+ "projection_status": {
6968
+ "$ref": "#/$defs/Workflow.WorkflowProjectionStatus"
6969
+ },
6775
6970
  "nodes": {
6776
6971
  "type": "array",
6777
6972
  "items": {
@@ -6788,13 +6983,15 @@
6788
6983
  "$ref": "#/$defs/Workflow.WorkflowGraphStatistics"
6789
6984
  },
6790
6985
  "journal_sequence": {
6791
- "$ref": "#/$defs/Workflow.WorkflowSequence"
6986
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6792
6987
  },
6793
6988
  "next_node_cursor": {
6794
- "type": "string"
6989
+ "$ref": "#/$defs/Workflow.WorkflowNodeCursor",
6990
+ "description": "Opaque node continuation for the next page. Reuse it unchanged as node_cursor on the next graph request; do not parse, construct, or modify it."
6795
6991
  },
6796
6992
  "next_edge_cursor": {
6797
- "type": "string"
6993
+ "$ref": "#/$defs/Workflow.WorkflowEdgeCursor",
6994
+ "description": "Opaque edge continuation for the next page. Reuse it unchanged as edge_cursor on the next graph request; do not parse, construct, or modify it."
6798
6995
  },
6799
6996
  "has_more_nodes": {
6800
6997
  "type": "boolean"
@@ -6862,7 +7059,7 @@
6862
7059
  "unevaluatedProperties": {
6863
7060
  "not": {}
6864
7061
  },
6865
- "description": "Work and critical-path statistics for a workflow graph."
7062
+ "description": "Work and critical-path statistics for a workflow graph. Every ToolCall, Wait, Gate, and duration-bearing Message or Item contributes an independently weighted interval even when it has no Agent owner. An Agent contributes its own-work fragments: its interval minus the union of precisely owned child intervals clipped to the Agent interval. Precisely owned children are Control-linked Agent and ToolCall nodes, Temporal-linked Wait nodes, Gate-linked Gate nodes, and Data-linked duration-bearing Message or Item nodes. Peak concurrency sweeps every positive independently weighted or Agent own-work fragment. Critical-path analysis uses only Data, Control, and Gate edges, condenses each causal strongly connected component, charges every component member exactly once, and expands selected component members in ordinal node-id order."
6866
7063
  },
6867
7064
  "Workflow.WorkflowHeartbeatEvent": {
6868
7065
  "type": "object",
@@ -6879,7 +7076,7 @@
6879
7076
  ]
6880
7077
  },
6881
7078
  "high_water_mark": {
6882
- "$ref": "#/$defs/Workflow.WorkflowSequence"
7079
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6883
7080
  },
6884
7081
  "timestamp": {
6885
7082
  "type": "string",
@@ -6906,7 +7103,7 @@
6906
7103
  "type": "string"
6907
7104
  },
6908
7105
  "journal_sequence": {
6909
- "$ref": "#/$defs/Workflow.WorkflowSequence"
7106
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
6910
7107
  }
6911
7108
  },
6912
7109
  "unevaluatedProperties": {
@@ -6955,11 +7152,24 @@
6955
7152
  ],
6956
7153
  "description": "Immutable journal event kinds accepted from a Codex observer."
6957
7154
  },
7155
+ "Workflow.WorkflowJournalPosition": {
7156
+ "type": "string",
7157
+ "format": "uint64",
7158
+ "description": "Collector-assigned position in the authoritative workflow journal, encoded without JavaScript precision loss.",
7159
+ "pattern": "^(0|[1-9][0-9]*)$",
7160
+ "maxLength": 20
7161
+ },
7162
+ "Workflow.WorkflowNodeCursor": {
7163
+ "type": "string",
7164
+ "minLength": 1,
7165
+ "maxLength": 1536,
7166
+ "description": "Opaque node-page continuation scoped to one workflow run and generation. Reuse it unchanged; clients must not parse or construct it."
7167
+ },
6958
7168
  "Workflow.WorkflowNodeId": {
6959
7169
  "type": "string",
6960
7170
  "minLength": 1,
6961
7171
  "maxLength": 192,
6962
- "description": "Stable identifier of one graph node."
7172
+ "description": "Stable identifier of one graph node. Canonical tuples structurally distinguish run scope from attempt scope, escape colon as \\c and backslash as \\\\, and never infer scope from a literal component value. A canonical identifier over 192 Unicode scalar values is replaced by its kind, a tilde, and the full lowercase 64-hex SHA-256 of the length-prefixed canonical tuple."
6963
7173
  },
6964
7174
  "Workflow.WorkflowNodeKind": {
6965
7175
  "type": "string",
@@ -6976,10 +7186,82 @@
6976
7186
  ],
6977
7187
  "description": "Kinds of execution node in the deterministic workflow graph."
6978
7188
  },
7189
+ "Workflow.WorkflowProjectionCorruptError": {
7190
+ "type": "object",
7191
+ "required": [
7192
+ "title",
7193
+ "projection_status"
7194
+ ],
7195
+ "properties": {
7196
+ "title": {
7197
+ "type": "string",
7198
+ "enum": [
7199
+ "Workflow Projection Corrupt"
7200
+ ]
7201
+ },
7202
+ "projection_status": {
7203
+ "$ref": "#/$defs/Workflow.WorkflowProjectionStatus"
7204
+ }
7205
+ },
7206
+ "unevaluatedProperties": {
7207
+ "not": {}
7208
+ },
7209
+ "allOf": [
7210
+ {
7211
+ "$ref": "#/$defs/Common.Errors.ProblemDetails"
7212
+ }
7213
+ ],
7214
+ "description": "Workflow projection is non-retryably corrupt or incompatible. Internal storage details are intentionally omitted."
7215
+ },
7216
+ "Workflow.WorkflowProjectionStatus": {
7217
+ "anyOf": [
7218
+ {
7219
+ "$ref": "#/$defs/Workflow.CommittedWorkflowProjectionStatus"
7220
+ },
7221
+ {
7222
+ "$ref": "#/$defs/Workflow.RebuildingWorkflowProjectionStatus"
7223
+ },
7224
+ {
7225
+ "$ref": "#/$defs/Workflow.UnavailableWorkflowProjectionStatus"
7226
+ },
7227
+ {
7228
+ "$ref": "#/$defs/Workflow.CorruptWorkflowProjectionStatus"
7229
+ }
7230
+ ],
7231
+ "description": "Closed public availability state for one workflow projection. Storage paths, hashes, fingerprints, and database errors remain private."
7232
+ },
7233
+ "Workflow.WorkflowProjectionUnavailableError": {
7234
+ "type": "object",
7235
+ "required": [
7236
+ "title",
7237
+ "projection_status"
7238
+ ],
7239
+ "properties": {
7240
+ "title": {
7241
+ "type": "string",
7242
+ "enum": [
7243
+ "Workflow Projection Unavailable"
7244
+ ]
7245
+ },
7246
+ "projection_status": {
7247
+ "$ref": "#/$defs/Workflow.WorkflowProjectionStatus"
7248
+ }
7249
+ },
7250
+ "unevaluatedProperties": {
7251
+ "not": {}
7252
+ },
7253
+ "allOf": [
7254
+ {
7255
+ "$ref": "#/$defs/Common.Errors.ProblemDetails"
7256
+ }
7257
+ ],
7258
+ "description": "Workflow projection is rebuilding or temporarily unavailable after a retryable storage failure."
7259
+ },
6979
7260
  "Workflow.WorkflowRun": {
6980
7261
  "type": "object",
6981
7262
  "required": [
6982
7263
  "run_id",
7264
+ "generation",
6983
7265
  "status",
6984
7266
  "started_at",
6985
7267
  "latest_journal_sequence"
@@ -6988,6 +7270,9 @@
6988
7270
  "run_id": {
6989
7271
  "$ref": "#/$defs/Workflow.WorkflowRunId"
6990
7272
  },
7273
+ "generation": {
7274
+ "$ref": "#/$defs/Workflow.WorkflowGeneration"
7275
+ },
6991
7276
  "thread_id": {
6992
7277
  "type": "string"
6993
7278
  },
@@ -7006,7 +7291,7 @@
7006
7291
  "format": "date-time"
7007
7292
  },
7008
7293
  "latest_journal_sequence": {
7009
- "$ref": "#/$defs/Workflow.WorkflowSequence"
7294
+ "$ref": "#/$defs/Workflow.WorkflowJournalPosition"
7010
7295
  },
7011
7296
  "active_attempt_id": {
7012
7297
  "$ref": "#/$defs/Workflow.WorkflowAttemptId"
@@ -7051,6 +7336,39 @@
7051
7336
  },
7052
7337
  "description": "Request to create an observed workflow run before appending journal events."
7053
7338
  },
7339
+ "Workflow.WorkflowRunCursor": {
7340
+ "type": "string",
7341
+ "minLength": 1,
7342
+ "maxLength": 512,
7343
+ "description": "Opaque workflow-run list continuation scoped to the project and status filter. Reuse it unchanged; clients must not parse or construct it."
7344
+ },
7345
+ "Workflow.WorkflowRunDeletedError": {
7346
+ "type": "object",
7347
+ "required": [
7348
+ "title",
7349
+ "run_id"
7350
+ ],
7351
+ "properties": {
7352
+ "title": {
7353
+ "type": "string",
7354
+ "enum": [
7355
+ "Workflow Run Deleted"
7356
+ ]
7357
+ },
7358
+ "run_id": {
7359
+ "$ref": "#/$defs/Workflow.WorkflowRunId"
7360
+ }
7361
+ },
7362
+ "unevaluatedProperties": {
7363
+ "not": {}
7364
+ },
7365
+ "allOf": [
7366
+ {
7367
+ "$ref": "#/$defs/Common.Errors.ProblemDetails"
7368
+ }
7369
+ ],
7370
+ "description": "Workflow run was durably deleted and can no longer accept events or publish projections."
7371
+ },
7054
7372
  "Workflow.WorkflowRunId": {
7055
7373
  "type": "string",
7056
7374
  "minLength": 1,
@@ -7071,7 +7389,7 @@
7071
7389
  }
7072
7390
  },
7073
7391
  "next_cursor": {
7074
- "type": "string"
7392
+ "$ref": "#/$defs/Workflow.WorkflowRunCursor"
7075
7393
  },
7076
7394
  "has_more": {
7077
7395
  "type": "boolean"
@@ -8459,6 +8777,9 @@
8459
8777
  "Operations.WorkflowRunsApi_appendEvents.Response.409": {
8460
8778
  "$ref": "#/$defs/Common.Errors.ConflictError"
8461
8779
  },
8780
+ "Operations.WorkflowRunsApi_appendEvents.Response.410": {
8781
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8782
+ },
8462
8783
  "Operations.WorkflowRunsApi_appendEvents.Response.500": {
8463
8784
  "$ref": "#/$defs/Common.Errors.InternalServerError"
8464
8785
  },
@@ -8480,6 +8801,9 @@
8480
8801
  "Operations.WorkflowRunsApi_create.Response.409": {
8481
8802
  "$ref": "#/$defs/Common.Errors.ConflictError"
8482
8803
  },
8804
+ "Operations.WorkflowRunsApi_create.Response.410": {
8805
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8806
+ },
8483
8807
  "Operations.WorkflowRunsApi_create.Response.500": {
8484
8808
  "$ref": "#/$defs/Common.Errors.InternalServerError"
8485
8809
  },
@@ -8495,6 +8819,9 @@
8495
8819
  "Operations.WorkflowRunsApi_get.Response.404": {
8496
8820
  "$ref": "#/$defs/Common.Errors.NotFoundError"
8497
8821
  },
8822
+ "Operations.WorkflowRunsApi_get.Response.410": {
8823
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8824
+ },
8498
8825
  "Operations.WorkflowRunsApi_get.Response.500": {
8499
8826
  "$ref": "#/$defs/Common.Errors.InternalServerError"
8500
8827
  },
@@ -8510,6 +8837,9 @@
8510
8837
  "Operations.WorkflowRunsApi_getContent.Response.404": {
8511
8838
  "$ref": "#/$defs/Common.Errors.NotFoundError"
8512
8839
  },
8840
+ "Operations.WorkflowRunsApi_getContent.Response.410": {
8841
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8842
+ },
8513
8843
  "Operations.WorkflowRunsApi_getContent.Response.500": {
8514
8844
  "$ref": "#/$defs/Common.Errors.InternalServerError"
8515
8845
  },
@@ -8528,11 +8858,17 @@
8528
8858
  "Operations.WorkflowRunsApi_getGraph.Response.404": {
8529
8859
  "$ref": "#/$defs/Common.Errors.NotFoundError"
8530
8860
  },
8861
+ "Operations.WorkflowRunsApi_getGraph.Response.409": {
8862
+ "$ref": "#/$defs/Workflow.WorkflowCursorError"
8863
+ },
8864
+ "Operations.WorkflowRunsApi_getGraph.Response.410": {
8865
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8866
+ },
8531
8867
  "Operations.WorkflowRunsApi_getGraph.Response.500": {
8532
- "$ref": "#/$defs/Common.Errors.InternalServerError"
8868
+ "$ref": "#/$defs/Workflow.WorkflowProjectionCorruptError"
8533
8869
  },
8534
8870
  "Operations.WorkflowRunsApi_getGraph.Response.503": {
8535
- "$ref": "#/$defs/Common.Errors.ServiceUnavailableError"
8871
+ "$ref": "#/$defs/Workflow.WorkflowProjectionUnavailableError"
8536
8872
  },
8537
8873
  "Operations.WorkflowRunsApi_list.Response.200": {
8538
8874
  "$ref": "#/$defs/Workflow.WorkflowRunPage"
@@ -8561,6 +8897,9 @@
8561
8897
  "Operations.WorkflowRunsApi_pollControls.Response.404": {
8562
8898
  "$ref": "#/$defs/Common.Errors.NotFoundError"
8563
8899
  },
8900
+ "Operations.WorkflowRunsApi_pollControls.Response.410": {
8901
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8902
+ },
8564
8903
  "Operations.WorkflowRunsApi_pollControls.Response.500": {
8565
8904
  "$ref": "#/$defs/Common.Errors.InternalServerError"
8566
8905
  },
@@ -8579,6 +8918,9 @@
8579
8918
  "Operations.WorkflowRunsApi_readEvents.Response.404": {
8580
8919
  "$ref": "#/$defs/Common.Errors.NotFoundError"
8581
8920
  },
8921
+ "Operations.WorkflowRunsApi_readEvents.Response.410": {
8922
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8923
+ },
8582
8924
  "Operations.WorkflowRunsApi_readEvents.Response.500": {
8583
8925
  "$ref": "#/$defs/Common.Errors.InternalServerError"
8584
8926
  },
@@ -8594,6 +8936,9 @@
8594
8936
  "Operations.WorkflowRunsApi_stream.Response.404": {
8595
8937
  "$ref": "#/$defs/Common.Errors.NotFoundError"
8596
8938
  },
8939
+ "Operations.WorkflowRunsApi_stream.Response.410": {
8940
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8941
+ },
8597
8942
  "Operations.WorkflowRunsApi_stream.Response.500": {
8598
8943
  "$ref": "#/$defs/Common.Errors.InternalServerError"
8599
8944
  },
@@ -8618,6 +8963,9 @@
8618
8963
  "Operations.WorkflowRunsApi_submitControl.Response.409": {
8619
8964
  "$ref": "#/$defs/Common.Errors.ConflictError"
8620
8965
  },
8966
+ "Operations.WorkflowRunsApi_submitControl.Response.410": {
8967
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8968
+ },
8621
8969
  "Operations.WorkflowRunsApi_submitControl.Response.500": {
8622
8970
  "$ref": "#/$defs/Common.Errors.InternalServerError"
8623
8971
  },
@@ -8642,6 +8990,9 @@
8642
8990
  "Operations.WorkflowRunsApi_updateControl.Response.409": {
8643
8991
  "$ref": "#/$defs/Common.Errors.ConflictError"
8644
8992
  },
8993
+ "Operations.WorkflowRunsApi_updateControl.Response.410": {
8994
+ "$ref": "#/$defs/Workflow.WorkflowRunDeletedError"
8995
+ },
8645
8996
  "Operations.WorkflowRunsApi_updateControl.Response.500": {
8646
8997
  "$ref": "#/$defs/Common.Errors.InternalServerError"
8647
8998
  },