You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0bc7538
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-workflows.json
+71-3Lines changed: 71 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -549,6 +549,7 @@
549
549
"fieldIssues": [],
550
550
"unresolvedReferences": [],
551
551
"tableFieldIssues": [],
552
+
"manualRunIssue": null,
552
553
"notes": []
553
554
}
554
555
}
@@ -722,9 +723,12 @@
722
723
],
723
724
"unresolvedReferences": [],
724
725
"tableFieldIssues": [],
726
+
"manualRunIssue": null,
725
727
"notes": []
726
728
},
727
-
"warnings": [],
729
+
"warnings": [
730
+
"Workflow lint found issues. Fix these before continuing: Blocks missing required fields: \"Triage\" (systemPrompt)"
731
+
],
728
732
"needsRedeployment": true,
729
733
"dryRun": false
730
734
}
@@ -2655,6 +2659,7 @@
2655
2659
"fieldIssues": [],
2656
2660
"unresolvedReferences": [],
2657
2661
"tableFieldIssues": [],
2662
+
"manualRunIssue": null,
2658
2663
"notes": []
2659
2664
}
2660
2665
}
@@ -8813,6 +8818,63 @@
8813
8818
},
8814
8819
"description": "Table block `filter` and `order` fields checked against the bound table's live schema that name no column (nor the implicit `id`, `createdAt`, `updatedAt`). Such a run fails inside the block's error edge. A filter holding a `<block.output>` reference, or one that is not JSON, is not checked."
"description": "Why a manual run from the editor's Run button would be refused before it starts: no enabled trigger it can start from, more than one API trigger, or a selected trigger with no outgoing connection. `null` when a manual run can begin. Not raised for a workflow only a chat trigger can start."
8877
+
},
8816
8878
"notes": {
8817
8879
"type": "array",
8818
8880
"items": {
@@ -8831,6 +8893,7 @@
8831
8893
"fieldIssues",
8832
8894
"unresolvedReferences",
8833
8895
"tableFieldIssues",
8896
+
"manualRunIssue",
8834
8897
"notes"
8835
8898
],
8836
8899
"additionalProperties": false,
@@ -8897,6 +8960,7 @@
8897
8960
"fieldIssues": [],
8898
8961
"unresolvedReferences": [],
8899
8962
"tableFieldIssues": [],
8963
+
"manualRunIssue": null,
8900
8964
"notes": []
8901
8965
}
8902
8966
}
@@ -9461,7 +9525,7 @@
9461
9525
"items": {
9462
9526
"type": "string"
9463
9527
},
9464
-
"description": "Non-fatal notes about blocks and edges that were normalized or dropped before persistence. Empty when there was nothing to report."
9528
+
"description": "Non-fatal notes about blocks and edges that were normalized or dropped before persistence and, when `lint` has findings, one summary of them, so the findings are not lost to a caller that reads only `warnings`. Empty when there is nothing to report."
9465
9529
},
9466
9530
"needsRedeployment": {
9467
9531
"type": "boolean",
@@ -9581,9 +9645,12 @@
9581
9645
],
9582
9646
"unresolvedReferences": [],
9583
9647
"tableFieldIssues": [],
9648
+
"manualRunIssue": null,
9584
9649
"notes": []
9585
9650
},
9586
-
"warnings": [],
9651
+
"warnings": [
9652
+
"Workflow lint found issues. Fix these before continuing: Blocks missing required fields: \"Triage\" (systemPrompt)"
Copy file name to clipboardExpand all lines: apps/sim/lib/api/contracts/v2/workflows.ts
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -439,6 +439,23 @@ const v2WorkflowLintSchema = z
439
439
.describe(
440
440
"Table block `filter` and `order` fields checked against the bound table's live schema that name no column (nor the implicit `id`, `createdAt`, `updatedAt`). Such a run fails inside the block's error edge. A filter holding a `<block.output>` reference, or one that is not JSON, is not checked."
message: z.string().describe('The error the manual run raises.'),
448
+
blockId: z
449
+
.string()
450
+
.nullable()
451
+
.describe('Trigger the run would start from, when the problem is that trigger.'),
452
+
blockName: z.string().nullable().describe('Display name of that trigger.'),
453
+
blockType: z.string().nullable().describe('Registered type of that trigger.'),
454
+
})
455
+
.nullable()
456
+
.describe(
457
+
"Why a manual run from the editor's Run button would be refused before it starts: no enabled trigger it can start from, more than one API trigger, or a selected trigger with no outgoing connection. `null` when a manual run can begin. Not raised for a workflow only a chat trigger can start."
458
+
),
442
459
notes: z.array(z.string()).describe('Advisory notes about the report itself.'),
'Dry run only: the provisional id the evaluation assigned to each block whose `block_id` was not already a UUID, keyed by the `block_id` you asked for. These are not the ids a committed apply produces — the real apply mints new ones — so never wire a later request against them. Wire edges by `block_id` within one batch, or by the `mintedBlockIds` the real apply returns.'
3627
3644
),
3628
3645
lint: v2WorkflowLintSchema,
3646
+
warnings: z
3647
+
.array(z.string())
3648
+
.describe(
3649
+
'Non-fatal notes about blocks and edges that were normalized or dropped before persistence and, when `lint` has findings, one summary of them, so the findings are not lost to a caller that reads only `warnings`. Empty when there is nothing to report.'
0 commit comments