@burdenoff/fluidgrids-fe-sdk 2026.1115.7 → 2026.1115.9

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 (73) hide show
  1. package/dist/{AiStudioPage-tzv59pH4.js → AiStudioPage-CZTaVeQE.js} +4 -4
  2. package/dist/{DataSinkDashboardPage-BtWSidiD.js → DataSinkDashboardPage-CPq6-jZM.js} +1 -1
  3. package/dist/{ExecutionDetailPage-CO3BWG_V.js → ExecutionDetailPage-d29WPJDN.js} +92 -27
  4. package/dist/ExecutionSettingsFields-DzKJDOjU.js +1003 -0
  5. package/dist/{ExecutionsListPage-CaO9A4Ph.js → ExecutionsListPage-xQthHGAJ.js} +8 -26
  6. package/dist/{FailureTriagePanel-CBGgU4Tl.js → FailureTriagePanel-Cka9Rc1_.js} +1 -1
  7. package/dist/{FluidGridsProvider-Bemnt09v.js → FluidGridsProvider-BRC0WlAa.js} +248 -3045
  8. package/dist/{HistoryPage-DPGYma-Z.js → HistoryPage-Drdk9j_Q.js} +1 -1
  9. package/dist/{InsightsPage-C6b9WuBc.js → InsightsPage-mYWZvyGR.js} +5 -5
  10. package/dist/{OpenTemplateAsCodeButton-BemhA1u4.js → OpenTemplateAsCodeButton-CQV-YHlJ.js} +2 -2
  11. package/dist/{PaidTemplateConfirm-bNEOQ_Se.js → PaidTemplateConfirm-Dog5moZa.js} +1 -1
  12. package/dist/{agent-form-D0uLvzx4.js → RunLogAppendedDocument-D1_BfMZa.js} +1 -82
  13. package/dist/{SettingsPage-CTd4LQPW.js → SettingsPage-DFnqjkpT.js} +239 -894
  14. package/dist/{TaskQueuesPage-ESjeGUg3.js → TaskQueuesPage-CZQUO33o.js} +1 -1
  15. package/dist/{TemplateCard-D7jG3RaU.js → TemplateCard-D2zt-kXW.js} +5 -5
  16. package/dist/{TemplateConfigurationModal-DMyuHZ3O.js → TemplateConfigurationModal-D8eQsJXJ.js} +1 -1
  17. package/dist/{TemplatePreview-CNbCxOsc.js → TemplatePreview-BgdkcCF-.js} +5 -5
  18. package/dist/{TemplatesPage-DLOVSXa9.js → TemplatesPage-t7rGU-BP.js} +10 -10
  19. package/dist/{WorkflowBuilder-YJlFY071.js → WorkflowBuilder-BS9kVcgU.js} +3 -3
  20. package/dist/{WorkflowBuilder-DhvPS34U.js → WorkflowBuilder-CtTM79lP.js} +6 -5
  21. package/dist/{WorkflowSearchRedirect-vyY1d6nn.js → WorkflowSearchRedirect-Bqdxr833.js} +1 -1
  22. package/dist/WorkflowSettingsDrawer-BiqTf_tV.js +191 -0
  23. package/dist/WorkflowSettingsDrawer-MVU1BKfY.d.ts +18 -0
  24. package/dist/{WorkflowShareDialog-qyGW0cSr.js → WorkflowShareDialog-D_G3TUGQ.js} +1 -1
  25. package/dist/{WorkflowsList-DQq_-Gaq.js → WorkflowsList-DjKePEwo.js} +2035 -517
  26. package/dist/agent-form-Bfvm32j1.js +83 -0
  27. package/dist/{agentTools-uC7Kw2uc.js → agentTools-DrVlHNeP.js} +1 -1
  28. package/dist/{ai-usage-yzPWZgAC.js → ai-usage-DhSKp0tV.js} +1 -1
  29. package/dist/{api-o5UUDbr8.js → api-D1cWC1yx.js} +190 -1
  30. package/dist/{assert-rules-FOiGC7-z.js → assert-rules-D9PNDTMK.js} +1 -1
  31. package/dist/{canvasNoteTools-DedWIXHZ.js → canvasNoteTools-Bo2QldkD.js} +1 -1
  32. package/dist/executions.js +2 -2
  33. package/dist/{flow-builder-BfkigZeg.js → flow-builder-CWfNAFd8.js} +73 -18
  34. package/dist/{graphql-types-C2heV7ot.js → graphql-types-CxkVzQqA.js} +25 -1
  35. package/dist/history.js +1 -1
  36. package/dist/{index-CIRkv8Dr.d.ts → index-C2ehY2Ld.d.ts} +180 -10
  37. package/dist/index.d.ts +3 -3
  38. package/dist/index.js +45 -42
  39. package/dist/{node-detail-view-B-nHEP6Z.js → node-detail-view-D_N3kLtA.js} +7 -7
  40. package/dist/{node-editor-tab-body-CZHYnHmY.js → node-editor-tab-body-BQ9JZa72.js} +2 -2
  41. package/dist/observability.d.ts +1 -1
  42. package/dist/observability.js +2 -2
  43. package/dist/{useAgentDefinitions-CVBnPMnJ.js → operations-qq_bbgXP.js} +3 -223
  44. package/dist/{popover-C2ohJ0Rd.js → popover-DZdTN21a.js} +3 -3
  45. package/dist/{quick-config-panel-ButILqM4.js → quick-config-panel-BCUY4tQy.js} +3 -3
  46. package/dist/relative-time-Dxt8ZIIu.js +55 -0
  47. package/dist/{run-list-links-sTAexiqj.js → run-list-links-BwsCiBPB.js} +1 -1
  48. package/dist/{run-mode-DjXIqsz3.js → run-mode-vpIlmfgY.js} +1 -1
  49. package/dist/{schedule-panel-BZuH1ltc.js → schedule-panel-B6FrpX9d.js} +9 -8
  50. package/dist/settings.d.ts +2 -2
  51. package/dist/settings.js +3 -2
  52. package/dist/{sidebar-node-editor-B0-72udR.js → sidebar-node-editor-CWrmlFlZ.js} +3 -3
  53. package/dist/{template-code-DrS_vlf_.js → template-code-9dL1SUji.js} +1 -1
  54. package/dist/templates.js +2 -2
  55. package/dist/{use-workflow-code-editor-DfWsRWC7.js → use-workflow-code-editor-DJMH7-Xx.js} +1 -1
  56. package/dist/{use-workflow-tests-CVVKinFU.js → use-workflow-tests-C4e6aJZS.js} +2 -2
  57. package/dist/useAgentDefinitions-DX5GvEIp.js +223 -0
  58. package/dist/{useDurableParity-gnKk3TyL.js → useDurableParity-BtWk4d-i.js} +1 -1
  59. package/dist/{useExecutions-Dwa7jo1o.js → useExecutions-C9pVKexC.js} +3 -2
  60. package/dist/{useGlobalStoreClient-4BH2Xbru.js → useGlobalStoreClient-C2P50Gj5.js} +1 -1
  61. package/dist/{useObservability-Bp4LtS1S.js → useObservability-DsHX86Xl.js} +1 -1
  62. package/dist/{useRunHistory-Zqh59sXN.js → useRunHistory-DUNLNOKA.js} +2 -2
  63. package/dist/{useWorkflowCodeExport-C93cPJQ5.js → useWorkflowCodeExport-DSbfcehl.js} +13 -3
  64. package/dist/{useWorkflows-BodVSonO.js → useWorkflows-B13Cp8tk.js} +90 -10
  65. package/dist/workflow-builder.js +4 -4
  66. package/dist/{workflow-description-DxiRgyxy.js → workflow-description-F3inwvof.js} +1 -1
  67. package/dist/workflow-pages.d.ts +2 -2
  68. package/dist/workflow-pages.js +14 -14
  69. package/dist/workflow-save-state-DUE9lNwQ.js +2813 -0
  70. package/dist/{workflow-transfer-BlDyxa9L.js → workflow-transfer-CsXh0mIi.js} +1 -1
  71. package/dist/workflows-list.js +1 -1
  72. package/package.json +3 -3
  73. package/dist/SettingsPage-DMHQFj5-.d.ts +0 -9
@@ -11,11 +11,12 @@ import { o as throwIfResultError, t as describeOperationError } from "./errors-x
11
11
  import { t as WorkflowDefinitionDocument } from "./WorkflowDefinitionDocument-DZLbTPUZ.js";
12
12
  import { a as emitOperationErrorEvent, i as emitFluidGridsEvent, o as emitRunCompletedOnce } from "./token-refresh-link-BjN7H4qA.js";
13
13
  import { i as emitRunStarted, n as emitRunFailed, r as emitRunLimitHit, s as emitWorkflowCreated } from "./fluidgridsEvents-Dm5CaHtr.js";
14
- import { a as collectExtensions, n as QUOTA_EXHAUSTED_CODE, o as errorCodesOf, r as RUNS_QUOTA_NAME, s as findQuotaRefusal } from "./quota-Cdt8yz7N.js";
14
+ import { n as QUOTA_EXHAUSTED_CODE, r as RUNS_QUOTA_NAME, s as findQuotaRefusal } from "./quota-Cdt8yz7N.js";
15
15
  import { c as setFluidGridsConfig, l as validateTrustedOrigin, o as resetFluidGridsConfig, r as getFluidGridsConfig, s as resetFluidGridsExecutionState } from "./config-X97zrIvn.js";
16
+ import { C as TriggerWorkflowDocument, D as ExecutionDetailDocument, E as ExecutionsListDocument, O as RunFromNodeDocument, S as EventRegistrationsDocument, T as CreateWorkflowDefinitionDocument, _ as savesInPlace, b as writeAutosavePreference, d as mergeDefinitionJson, f as readAutosavePreference, g as saveFailureOf, i as canAutosave, k as ExecuteStepDocument, m as runPreparationOf, n as AUTOSAVE_PREFERENCE_KEY, o as createSaveQueue, s as editStateOf, u as leaveNeedsConfirmation, v as toastsSaveFailure, w as CreateWorkflowVersionDocument, x as NodeEndpointConfigsDocument, y as workflowFingerprint } from "./workflow-save-state-DUE9lNwQ.js";
16
17
  import { a as useFgAskableAction } from "./askAboutBridge-ByYsQams.js";
17
18
  import { i as readableNodeType } from "./run-display-UjLAoYqQ.js";
18
- import { Ww as NodeManifestDetail } from "./graphql-types-C2heV7ot.js";
19
+ import { Kw as NodeManifestDetail } from "./graphql-types-CxkVzQqA.js";
19
20
  import { t as provideNodeRegistryRefresh } from "./node-registry-refresh-s3okf83X.js";
20
21
  import { createContext, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
21
22
  import { useNavigate, useParams } from "react-router";
@@ -470,17 +471,37 @@ function useNodeDocsUrl(nodeType, nodeVersion) {
470
471
  return docsUrl;
471
472
  }
472
473
 
473
- // src/generated/documents/wspace/ExecuteStepDocument.ts
474
- const ExecuteStepDocument = {
474
+ // src/generated/documents/wspace/SaveWorkflowDraftDocument.ts
475
+ const SaveWorkflowDraftDocument = {
475
476
  "kind": "Document",
476
477
  "definitions": [{
477
478
  "kind": "OperationDefinition",
478
479
  "operation": "mutation",
479
480
  "name": {
480
481
  "kind": "Name",
481
- "value": "ExecuteStep"
482
+ "value": "SaveWorkflowDraft"
482
483
  },
483
484
  "variableDefinitions": [{
485
+ "kind": "VariableDefinition",
486
+ "variable": {
487
+ "kind": "Variable",
488
+ "name": {
489
+ "kind": "Name",
490
+ "value": "id"
491
+ }
492
+ },
493
+ "type": {
494
+ "kind": "NonNullType",
495
+ "type": {
496
+ "kind": "NamedType",
497
+ "name": {
498
+ "kind": "Name",
499
+ "value": "ID"
500
+ }
501
+ }
502
+ },
503
+ "directives": []
504
+ }, {
484
505
  "kind": "VariableDefinition",
485
506
  "variable": {
486
507
  "kind": "Variable",
@@ -495,7 +516,7 @@ const ExecuteStepDocument = {
495
516
  "kind": "NamedType",
496
517
  "name": {
497
518
  "kind": "Name",
498
- "value": "ExecuteStepInput"
519
+ "value": "UpdateWorkflowDefinitionInput"
499
520
  }
500
521
  }
501
522
  },
@@ -508,9 +529,22 @@ const ExecuteStepDocument = {
508
529
  "kind": "Field",
509
530
  "name": {
510
531
  "kind": "Name",
511
- "value": "executeStep"
532
+ "value": "updateWorkflowDefinition"
512
533
  },
513
534
  "arguments": [{
535
+ "kind": "Argument",
536
+ "name": {
537
+ "kind": "Name",
538
+ "value": "id"
539
+ },
540
+ "value": {
541
+ "kind": "Variable",
542
+ "name": {
543
+ "kind": "Name",
544
+ "value": "id"
545
+ }
546
+ }
547
+ }, {
514
548
  "kind": "Argument",
515
549
  "name": {
516
550
  "kind": "Name",
@@ -532,7 +566,7 @@ const ExecuteStepDocument = {
532
566
  "kind": "Field",
533
567
  "name": {
534
568
  "kind": "Name",
535
- "value": "runId"
569
+ "value": "id"
536
570
  },
537
571
  "arguments": [],
538
572
  "directives": []
@@ -541,7 +575,7 @@ const ExecuteStepDocument = {
541
575
  "kind": "Field",
542
576
  "name": {
543
577
  "kind": "Name",
544
- "value": "status"
578
+ "value": "workflowKey"
545
579
  },
546
580
  "arguments": [],
547
581
  "directives": []
@@ -550,7 +584,7 @@ const ExecuteStepDocument = {
550
584
  "kind": "Field",
551
585
  "name": {
552
586
  "kind": "Name",
553
- "value": "workflowKey"
587
+ "value": "version"
554
588
  },
555
589
  "arguments": [],
556
590
  "directives": []
@@ -559,7 +593,7 @@ const ExecuteStepDocument = {
559
593
  "kind": "Field",
560
594
  "name": {
561
595
  "kind": "Name",
562
- "value": "version"
596
+ "value": "name"
563
597
  },
564
598
  "arguments": [],
565
599
  "directives": []
@@ -568,7 +602,7 @@ const ExecuteStepDocument = {
568
602
  "kind": "Field",
569
603
  "name": {
570
604
  "kind": "Name",
571
- "value": "triggerNodeId"
605
+ "value": "description"
572
606
  },
573
607
  "arguments": [],
574
608
  "directives": []
@@ -577,78 +611,37 @@ const ExecuteStepDocument = {
577
611
  "kind": "Field",
578
612
  "name": {
579
613
  "kind": "Name",
580
- "value": "plan"
614
+ "value": "status"
581
615
  },
582
616
  "arguments": [],
583
- "directives": [],
584
- "selectionSet": {
585
- "kind": "SelectionSet",
586
- "selections": [
587
- {
588
- "kind": "Field",
589
- "name": {
590
- "kind": "Name",
591
- "value": "targetNodeId"
592
- },
593
- "arguments": [],
594
- "directives": []
595
- },
596
- {
597
- "kind": "Field",
598
- "name": {
599
- "kind": "Name",
600
- "value": "sourceRunId"
601
- },
602
- "arguments": [],
603
- "directives": []
604
- },
605
- {
606
- "kind": "Field",
607
- "name": {
608
- "kind": "Name",
609
- "value": "reusedNodeIds"
610
- },
611
- "arguments": [],
612
- "directives": []
613
- },
614
- {
615
- "kind": "Field",
616
- "name": {
617
- "kind": "Name",
618
- "value": "pinnedNodeIds"
619
- },
620
- "arguments": [],
621
- "directives": []
622
- },
623
- {
624
- "kind": "Field",
625
- "name": {
626
- "kind": "Name",
627
- "value": "executeNodeIds"
628
- },
629
- "arguments": [],
630
- "directives": []
631
- },
632
- {
633
- "kind": "Field",
634
- "name": {
635
- "kind": "Name",
636
- "value": "initialNodeIds"
637
- },
638
- "arguments": [],
639
- "directives": []
640
- },
641
- {
642
- "kind": "Field",
643
- "name": {
644
- "kind": "Name",
645
- "value": "blockers"
646
- },
647
- "arguments": [],
648
- "directives": []
649
- }
650
- ]
651
- }
617
+ "directives": []
618
+ },
619
+ {
620
+ "kind": "Field",
621
+ "name": {
622
+ "kind": "Name",
623
+ "value": "alias"
624
+ },
625
+ "arguments": [],
626
+ "directives": []
627
+ },
628
+ {
629
+ "kind": "Field",
630
+ "name": {
631
+ "kind": "Name",
632
+ "value": "updatedAt"
633
+ },
634
+ "arguments": [],
635
+ "directives": []
636
+ },
637
+ {
638
+ "kind": "Field",
639
+ "name": {
640
+ "kind": "Name",
641
+ "value": "revision"
642
+ },
643
+ "arguments": [],
644
+ "directives": []
652
645
  }
653
646
  ]
654
647
  }
@@ -657,15 +650,15 @@ const ExecuteStepDocument = {
657
650
  }]
658
651
  };
659
652
 
660
- // src/generated/documents/wspace/RunFromNodeDocument.ts
661
- const RunFromNodeDocument = {
653
+ // src/generated/documents/wspace/BuilderRunNodeDetailsDocument.ts
654
+ const BuilderRunNodeDetailsDocument = {
662
655
  "kind": "Document",
663
656
  "definitions": [{
664
657
  "kind": "OperationDefinition",
665
- "operation": "mutation",
658
+ "operation": "query",
666
659
  "name": {
667
660
  "kind": "Name",
668
- "value": "RunFromNode"
661
+ "value": "BuilderRunNodeDetails"
669
662
  },
670
663
  "variableDefinitions": [{
671
664
  "kind": "VariableDefinition",
@@ -673,7 +666,7 @@ const RunFromNodeDocument = {
673
666
  "kind": "Variable",
674
667
  "name": {
675
668
  "kind": "Name",
676
- "value": "input"
669
+ "value": "runId"
677
670
  }
678
671
  },
679
672
  "type": {
@@ -682,7 +675,33 @@ const RunFromNodeDocument = {
682
675
  "kind": "NamedType",
683
676
  "name": {
684
677
  "kind": "Name",
685
- "value": "RunFromNodeInput"
678
+ "value": "String"
679
+ }
680
+ }
681
+ },
682
+ "directives": []
683
+ }, {
684
+ "kind": "VariableDefinition",
685
+ "variable": {
686
+ "kind": "Variable",
687
+ "name": {
688
+ "kind": "Name",
689
+ "value": "ids"
690
+ }
691
+ },
692
+ "type": {
693
+ "kind": "NonNullType",
694
+ "type": {
695
+ "kind": "ListType",
696
+ "type": {
697
+ "kind": "NonNullType",
698
+ "type": {
699
+ "kind": "NamedType",
700
+ "name": {
701
+ "kind": "Name",
702
+ "value": "ID"
703
+ }
704
+ }
686
705
  }
687
706
  }
688
707
  },
@@ -695,19 +714,32 @@ const RunFromNodeDocument = {
695
714
  "kind": "Field",
696
715
  "name": {
697
716
  "kind": "Name",
698
- "value": "runFromNode"
717
+ "value": "nodeStates"
699
718
  },
700
719
  "arguments": [{
701
720
  "kind": "Argument",
702
721
  "name": {
703
722
  "kind": "Name",
704
- "value": "input"
723
+ "value": "runId"
705
724
  },
706
725
  "value": {
707
726
  "kind": "Variable",
708
727
  "name": {
709
728
  "kind": "Name",
710
- "value": "input"
729
+ "value": "runId"
730
+ }
731
+ }
732
+ }, {
733
+ "kind": "Argument",
734
+ "name": {
735
+ "kind": "Name",
736
+ "value": "ids"
737
+ },
738
+ "value": {
739
+ "kind": "Variable",
740
+ "name": {
741
+ "kind": "Name",
742
+ "value": "ids"
711
743
  }
712
744
  }
713
745
  }],
@@ -719,7 +751,7 @@ const RunFromNodeDocument = {
719
751
  "kind": "Field",
720
752
  "name": {
721
753
  "kind": "Name",
722
- "value": "runId"
754
+ "value": "id"
723
755
  },
724
756
  "arguments": [],
725
757
  "directives": []
@@ -728,7 +760,7 @@ const RunFromNodeDocument = {
728
760
  "kind": "Field",
729
761
  "name": {
730
762
  "kind": "Name",
731
- "value": "workflowKey"
763
+ "value": "nodeId"
732
764
  },
733
765
  "arguments": [],
734
766
  "directives": []
@@ -737,7 +769,7 @@ const RunFromNodeDocument = {
737
769
  "kind": "Field",
738
770
  "name": {
739
771
  "kind": "Name",
740
- "value": "version"
772
+ "value": "status"
741
773
  },
742
774
  "arguments": [],
743
775
  "directives": []
@@ -746,7 +778,7 @@ const RunFromNodeDocument = {
746
778
  "kind": "Field",
747
779
  "name": {
748
780
  "kind": "Name",
749
- "value": "triggerNodeId"
781
+ "value": "inputArgs"
750
782
  },
751
783
  "arguments": [],
752
784
  "directives": []
@@ -755,7 +787,16 @@ const RunFromNodeDocument = {
755
787
  "kind": "Field",
756
788
  "name": {
757
789
  "kind": "Name",
758
- "value": "status"
790
+ "value": "output"
791
+ },
792
+ "arguments": [],
793
+ "directives": []
794
+ },
795
+ {
796
+ "kind": "Field",
797
+ "name": {
798
+ "kind": "Name",
799
+ "value": "error"
759
800
  },
760
801
  "arguments": [],
761
802
  "directives": []
@@ -767,15 +808,15 @@ const RunFromNodeDocument = {
767
808
  }]
768
809
  };
769
810
 
770
- // src/generated/documents/wspace/ExecutionDetailDocument.ts
771
- const ExecutionDetailDocument = {
811
+ // src/generated/documents/wspace/BuilderRunStatusDocument.ts
812
+ const BuilderRunStatusDocument = {
772
813
  "kind": "Document",
773
814
  "definitions": [{
774
815
  "kind": "OperationDefinition",
775
816
  "operation": "query",
776
817
  "name": {
777
818
  "kind": "Name",
778
- "value": "ExecutionDetail"
819
+ "value": "BuilderRunStatus"
779
820
  },
780
821
  "variableDefinitions": [{
781
822
  "kind": "VariableDefinition",
@@ -834,15 +875,6 @@ const ExecutionDetailDocument = {
834
875
  "arguments": [],
835
876
  "directives": []
836
877
  },
837
- {
838
- "kind": "Field",
839
- "name": {
840
- "kind": "Name",
841
- "value": "workflowId"
842
- },
843
- "arguments": [],
844
- "directives": []
845
- },
846
878
  {
847
879
  "kind": "Field",
848
880
  "name": {
@@ -861,24 +893,6 @@ const ExecutionDetailDocument = {
861
893
  "arguments": [],
862
894
  "directives": []
863
895
  },
864
- {
865
- "kind": "Field",
866
- "name": {
867
- "kind": "Name",
868
- "value": "triggerNodeId"
869
- },
870
- "arguments": [],
871
- "directives": []
872
- },
873
- {
874
- "kind": "Field",
875
- "name": {
876
- "kind": "Name",
877
- "value": "triggerData"
878
- },
879
- "arguments": [],
880
- "directives": []
881
- },
882
896
  {
883
897
  "kind": "Field",
884
898
  "name": {
@@ -901,25 +915,7 @@ const ExecutionDetailDocument = {
901
915
  "kind": "Field",
902
916
  "name": {
903
917
  "kind": "Name",
904
- "value": "sourceRunId"
905
- },
906
- "arguments": [],
907
- "directives": []
908
- },
909
- {
910
- "kind": "Field",
911
- "name": {
912
- "kind": "Name",
913
- "value": "context"
914
- },
915
- "arguments": [],
916
- "directives": []
917
- },
918
- {
919
- "kind": "Field",
920
- "name": {
921
- "kind": "Name",
922
- "value": "triggeredById"
918
+ "value": "startedAt"
923
919
  },
924
920
  "arguments": [],
925
921
  "directives": []
@@ -928,7 +924,7 @@ const ExecutionDetailDocument = {
928
924
  "kind": "Field",
929
925
  "name": {
930
926
  "kind": "Name",
931
- "value": "parentRunId"
927
+ "value": "completedAt"
932
928
  },
933
929
  "arguments": [],
934
930
  "directives": []
@@ -937,7 +933,7 @@ const ExecutionDetailDocument = {
937
933
  "kind": "Field",
938
934
  "name": {
939
935
  "kind": "Name",
940
- "value": "createdAt"
936
+ "value": "duration"
941
937
  },
942
938
  "arguments": [],
943
939
  "directives": []
@@ -946,7 +942,7 @@ const ExecutionDetailDocument = {
946
942
  "kind": "Field",
947
943
  "name": {
948
944
  "kind": "Name",
949
- "value": "updatedAt"
945
+ "value": "errorType"
950
946
  },
951
947
  "arguments": [],
952
948
  "directives": []
@@ -955,409 +951,7 @@ const ExecutionDetailDocument = {
955
951
  "kind": "Field",
956
952
  "name": {
957
953
  "kind": "Name",
958
- "value": "startedAt"
959
- },
960
- "arguments": [],
961
- "directives": []
962
- },
963
- {
964
- "kind": "Field",
965
- "name": {
966
- "kind": "Name",
967
- "value": "completedAt"
968
- },
969
- "arguments": [],
970
- "directives": []
971
- },
972
- {
973
- "kind": "Field",
974
- "name": {
975
- "kind": "Name",
976
- "value": "dataPrunedAt"
977
- },
978
- "arguments": [],
979
- "directives": []
980
- },
981
- {
982
- "kind": "Field",
983
- "name": {
984
- "kind": "Name",
985
- "value": "budget"
986
- },
987
- "arguments": [],
988
- "directives": [],
989
- "selectionSet": {
990
- "kind": "SelectionSet",
991
- "selections": [
992
- {
993
- "kind": "Field",
994
- "name": {
995
- "kind": "Name",
996
- "value": "limits"
997
- },
998
- "arguments": [],
999
- "directives": [],
1000
- "selectionSet": {
1001
- "kind": "SelectionSet",
1002
- "selections": [
1003
- {
1004
- "kind": "Field",
1005
- "name": {
1006
- "kind": "Name",
1007
- "value": "maxSteps"
1008
- },
1009
- "arguments": [],
1010
- "directives": [],
1011
- "selectionSet": {
1012
- "kind": "SelectionSet",
1013
- "selections": [{
1014
- "kind": "Field",
1015
- "name": {
1016
- "kind": "Name",
1017
- "value": "limit"
1018
- },
1019
- "arguments": [],
1020
- "directives": []
1021
- }, {
1022
- "kind": "Field",
1023
- "name": {
1024
- "kind": "Name",
1025
- "value": "mode"
1026
- },
1027
- "arguments": [],
1028
- "directives": []
1029
- }]
1030
- }
1031
- },
1032
- {
1033
- "kind": "Field",
1034
- "name": {
1035
- "kind": "Name",
1036
- "value": "maxWallTimeSec"
1037
- },
1038
- "arguments": [],
1039
- "directives": [],
1040
- "selectionSet": {
1041
- "kind": "SelectionSet",
1042
- "selections": [{
1043
- "kind": "Field",
1044
- "name": {
1045
- "kind": "Name",
1046
- "value": "limit"
1047
- },
1048
- "arguments": [],
1049
- "directives": []
1050
- }, {
1051
- "kind": "Field",
1052
- "name": {
1053
- "kind": "Name",
1054
- "value": "mode"
1055
- },
1056
- "arguments": [],
1057
- "directives": []
1058
- }]
1059
- }
1060
- },
1061
- {
1062
- "kind": "Field",
1063
- "name": {
1064
- "kind": "Name",
1065
- "value": "maxTokens"
1066
- },
1067
- "arguments": [],
1068
- "directives": [],
1069
- "selectionSet": {
1070
- "kind": "SelectionSet",
1071
- "selections": [{
1072
- "kind": "Field",
1073
- "name": {
1074
- "kind": "Name",
1075
- "value": "limit"
1076
- },
1077
- "arguments": [],
1078
- "directives": []
1079
- }, {
1080
- "kind": "Field",
1081
- "name": {
1082
- "kind": "Name",
1083
- "value": "mode"
1084
- },
1085
- "arguments": [],
1086
- "directives": []
1087
- }]
1088
- }
1089
- },
1090
- {
1091
- "kind": "Field",
1092
- "name": {
1093
- "kind": "Name",
1094
- "value": "maxCostMicroUsd"
1095
- },
1096
- "arguments": [],
1097
- "directives": [],
1098
- "selectionSet": {
1099
- "kind": "SelectionSet",
1100
- "selections": [{
1101
- "kind": "Field",
1102
- "name": {
1103
- "kind": "Name",
1104
- "value": "limit"
1105
- },
1106
- "arguments": [],
1107
- "directives": []
1108
- }, {
1109
- "kind": "Field",
1110
- "name": {
1111
- "kind": "Name",
1112
- "value": "mode"
1113
- },
1114
- "arguments": [],
1115
- "directives": []
1116
- }]
1117
- }
1118
- }
1119
- ]
1120
- }
1121
- },
1122
- {
1123
- "kind": "Field",
1124
- "name": {
1125
- "kind": "Name",
1126
- "value": "usage"
1127
- },
1128
- "arguments": [],
1129
- "directives": [],
1130
- "selectionSet": {
1131
- "kind": "SelectionSet",
1132
- "selections": [
1133
- {
1134
- "kind": "Field",
1135
- "name": {
1136
- "kind": "Name",
1137
- "value": "steps"
1138
- },
1139
- "arguments": [],
1140
- "directives": []
1141
- },
1142
- {
1143
- "kind": "Field",
1144
- "name": {
1145
- "kind": "Name",
1146
- "value": "tokens"
1147
- },
1148
- "arguments": [],
1149
- "directives": []
1150
- },
1151
- {
1152
- "kind": "Field",
1153
- "name": {
1154
- "kind": "Name",
1155
- "value": "costMicroUsd"
1156
- },
1157
- "arguments": [],
1158
- "directives": []
1159
- },
1160
- {
1161
- "kind": "Field",
1162
- "name": {
1163
- "kind": "Name",
1164
- "value": "activeSeconds"
1165
- },
1166
- "arguments": [],
1167
- "directives": []
1168
- }
1169
- ]
1170
- }
1171
- },
1172
- {
1173
- "kind": "Field",
1174
- "name": {
1175
- "kind": "Name",
1176
- "value": "exceeded"
1177
- },
1178
- "arguments": [],
1179
- "directives": [],
1180
- "selectionSet": {
1181
- "kind": "SelectionSet",
1182
- "selections": [
1183
- {
1184
- "kind": "Field",
1185
- "name": {
1186
- "kind": "Name",
1187
- "value": "dimension"
1188
- },
1189
- "arguments": [],
1190
- "directives": []
1191
- },
1192
- {
1193
- "kind": "Field",
1194
- "name": {
1195
- "kind": "Name",
1196
- "value": "mode"
1197
- },
1198
- "arguments": [],
1199
- "directives": []
1200
- },
1201
- {
1202
- "kind": "Field",
1203
- "name": {
1204
- "kind": "Name",
1205
- "value": "limit"
1206
- },
1207
- "arguments": [],
1208
- "directives": []
1209
- },
1210
- {
1211
- "kind": "Field",
1212
- "name": {
1213
- "kind": "Name",
1214
- "value": "observed"
1215
- },
1216
- "arguments": [],
1217
- "directives": []
1218
- },
1219
- {
1220
- "kind": "Field",
1221
- "name": {
1222
- "kind": "Name",
1223
- "value": "at"
1224
- },
1225
- "arguments": [],
1226
- "directives": []
1227
- }
1228
- ]
1229
- }
1230
- }
1231
- ]
1232
- }
1233
- },
1234
- {
1235
- "kind": "Field",
1236
- "name": {
1237
- "kind": "Name",
1238
- "value": "duration"
1239
- },
1240
- "arguments": [],
1241
- "directives": []
1242
- },
1243
- {
1244
- "kind": "Field",
1245
- "name": {
1246
- "kind": "Name",
1247
- "value": "errorMessage"
1248
- },
1249
- "arguments": [],
1250
- "directives": []
1251
- },
1252
- {
1253
- "kind": "Field",
1254
- "name": {
1255
- "kind": "Name",
1256
- "value": "errorType"
1257
- },
1258
- "arguments": [],
1259
- "directives": []
1260
- },
1261
- {
1262
- "kind": "Field",
1263
- "name": {
1264
- "kind": "Name",
1265
- "value": "totalNodes"
1266
- },
1267
- "arguments": [],
1268
- "directives": []
1269
- },
1270
- {
1271
- "kind": "Field",
1272
- "name": {
1273
- "kind": "Name",
1274
- "value": "completedNodes"
1275
- },
1276
- "arguments": [],
1277
- "directives": []
1278
- },
1279
- {
1280
- "kind": "Field",
1281
- "name": {
1282
- "kind": "Name",
1283
- "value": "failedNodes"
1284
- },
1285
- "arguments": [],
1286
- "directives": []
1287
- },
1288
- {
1289
- "kind": "Field",
1290
- "name": {
1291
- "kind": "Name",
1292
- "value": "skippedNodes"
1293
- },
1294
- "arguments": [],
1295
- "directives": []
1296
- },
1297
- {
1298
- "kind": "Field",
1299
- "name": {
1300
- "kind": "Name",
1301
- "value": "progress"
1302
- },
1303
- "arguments": [],
1304
- "directives": []
1305
- },
1306
- {
1307
- "kind": "Field",
1308
- "name": {
1309
- "kind": "Name",
1310
- "value": "workflow"
1311
- },
1312
- "arguments": [],
1313
- "directives": [],
1314
- "selectionSet": {
1315
- "kind": "SelectionSet",
1316
- "selections": [
1317
- {
1318
- "kind": "Field",
1319
- "name": {
1320
- "kind": "Name",
1321
- "value": "id"
1322
- },
1323
- "arguments": [],
1324
- "directives": []
1325
- },
1326
- {
1327
- "kind": "Field",
1328
- "name": {
1329
- "kind": "Name",
1330
- "value": "name"
1331
- },
1332
- "arguments": [],
1333
- "directives": []
1334
- },
1335
- {
1336
- "kind": "Field",
1337
- "name": {
1338
- "kind": "Name",
1339
- "value": "description"
1340
- },
1341
- "arguments": [],
1342
- "directives": []
1343
- },
1344
- {
1345
- "kind": "Field",
1346
- "name": {
1347
- "kind": "Name",
1348
- "value": "definitionJson"
1349
- },
1350
- "arguments": [],
1351
- "directives": []
1352
- }
1353
- ]
1354
- }
1355
- },
1356
- {
1357
- "kind": "Field",
1358
- "name": {
1359
- "kind": "Name",
1360
- "value": "nodeStates"
954
+ "value": "nodeStates"
1361
955
  },
1362
956
  "arguments": [],
1363
957
  "directives": [],
@@ -1365,2168 +959,99 @@ const ExecutionDetailDocument = {
1365
959
  "kind": "SelectionSet",
1366
960
  "selections": [
1367
961
  {
1368
- "kind": "Field",
1369
- "name": {
1370
- "kind": "Name",
1371
- "value": "id"
1372
- },
1373
- "arguments": [],
1374
- "directives": []
1375
- },
1376
- {
1377
- "kind": "Field",
1378
- "name": {
1379
- "kind": "Name",
1380
- "value": "runId"
1381
- },
1382
- "arguments": [],
1383
- "directives": []
1384
- },
1385
- {
1386
- "kind": "Field",
1387
- "name": {
1388
- "kind": "Name",
1389
- "value": "nodeId"
1390
- },
1391
- "arguments": [],
1392
- "directives": []
1393
- },
1394
- {
1395
- "kind": "Field",
1396
- "name": {
1397
- "kind": "Name",
1398
- "value": "nodeType"
1399
- },
1400
- "arguments": [],
1401
- "directives": []
1402
- },
1403
- {
1404
- "kind": "Field",
1405
- "name": {
1406
- "kind": "Name",
1407
- "value": "nodeVersion"
1408
- },
1409
- "arguments": [],
1410
- "directives": []
1411
- },
1412
- {
1413
- "kind": "Field",
1414
- "name": {
1415
- "kind": "Name",
1416
- "value": "status"
1417
- },
1418
- "arguments": [],
1419
- "directives": []
1420
- },
1421
- {
1422
- "kind": "Field",
1423
- "name": {
1424
- "kind": "Name",
1425
- "value": "attemptCount"
1426
- },
1427
- "arguments": [],
1428
- "directives": []
1429
- },
1430
- {
1431
- "kind": "Field",
1432
- "name": {
1433
- "kind": "Name",
1434
- "value": "inputArgs"
1435
- },
1436
- "arguments": [],
1437
- "directives": []
1438
- },
1439
- {
1440
- "kind": "Field",
1441
- "name": {
1442
- "kind": "Name",
1443
- "value": "output"
1444
- },
1445
- "arguments": [],
1446
- "directives": []
1447
- },
1448
- {
1449
- "kind": "Field",
1450
- "name": {
1451
- "kind": "Name",
1452
- "value": "error"
1453
- },
1454
- "arguments": [],
1455
- "directives": []
1456
- },
1457
- {
1458
- "kind": "Field",
1459
- "name": {
1460
- "kind": "Name",
1461
- "value": "errorType"
1462
- },
1463
- "arguments": [],
1464
- "directives": []
1465
- },
1466
- {
1467
- "kind": "Field",
1468
- "name": {
1469
- "kind": "Name",
1470
- "value": "startTime"
1471
- },
1472
- "arguments": [],
1473
- "directives": []
1474
- },
1475
- {
1476
- "kind": "Field",
1477
- "name": {
1478
- "kind": "Name",
1479
- "value": "endTime"
1480
- },
1481
- "arguments": [],
1482
- "directives": []
1483
- },
1484
- {
1485
- "kind": "Field",
1486
- "name": {
1487
- "kind": "Name",
1488
- "value": "duration"
1489
- },
1490
- "arguments": [],
1491
- "directives": []
1492
- },
1493
- {
1494
- "kind": "Field",
1495
- "name": {
1496
- "kind": "Name",
1497
- "value": "resumeTime"
1498
- },
1499
- "arguments": [],
1500
- "directives": []
1501
- },
1502
- {
1503
- "kind": "Field",
1504
- "name": {
1505
- "kind": "Name",
1506
- "value": "childRunId"
1507
- },
1508
- "arguments": [],
1509
- "directives": []
1510
- },
1511
- {
1512
- "kind": "Field",
1513
- "name": {
1514
- "kind": "Name",
1515
- "value": "instanceKey"
1516
- },
1517
- "arguments": [],
1518
- "directives": []
1519
- },
1520
- {
1521
- "kind": "Field",
1522
- "name": {
1523
- "kind": "Name",
1524
- "value": "context"
1525
- },
1526
- "arguments": [],
1527
- "directives": []
1528
- },
1529
- {
1530
- "kind": "Field",
1531
- "name": {
1532
- "kind": "Name",
1533
- "value": "metadata"
1534
- },
1535
- "arguments": [],
1536
- "directives": []
1537
- },
1538
- {
1539
- "kind": "Field",
1540
- "name": {
1541
- "kind": "Name",
1542
- "value": "usedPinnedData"
1543
- },
1544
- "arguments": [],
1545
- "directives": []
1546
- },
1547
- {
1548
- "kind": "Field",
1549
- "name": {
1550
- "kind": "Name",
1551
- "value": "reusedFromRunId"
1552
- },
1553
- "arguments": [],
1554
- "directives": []
1555
- }
1556
- ]
1557
- }
1558
- }
1559
- ]
1560
- }
1561
- }]
1562
- }
1563
- }]
1564
- };
1565
-
1566
- // src/generated/documents/wspace/ExecutionsListDocument.ts
1567
- const ExecutionsListDocument = {
1568
- "kind": "Document",
1569
- "definitions": [{
1570
- "kind": "OperationDefinition",
1571
- "operation": "query",
1572
- "name": {
1573
- "kind": "Name",
1574
- "value": "ExecutionsList"
1575
- },
1576
- "variableDefinitions": [{
1577
- "kind": "VariableDefinition",
1578
- "variable": {
1579
- "kind": "Variable",
1580
- "name": {
1581
- "kind": "Name",
1582
- "value": "input"
1583
- }
1584
- },
1585
- "type": {
1586
- "kind": "NonNullType",
1587
- "type": {
1588
- "kind": "NamedType",
1589
- "name": {
1590
- "kind": "Name",
1591
- "value": "ListWorkflowRunsInput"
1592
- }
1593
- }
1594
- },
1595
- "directives": []
1596
- }],
1597
- "directives": [],
1598
- "selectionSet": {
1599
- "kind": "SelectionSet",
1600
- "selections": [{
1601
- "kind": "Field",
1602
- "name": {
1603
- "kind": "Name",
1604
- "value": "workflowRuns"
1605
- },
1606
- "arguments": [{
1607
- "kind": "Argument",
1608
- "name": {
1609
- "kind": "Name",
1610
- "value": "input"
1611
- },
1612
- "value": {
1613
- "kind": "Variable",
1614
- "name": {
1615
- "kind": "Name",
1616
- "value": "input"
1617
- }
1618
- }
1619
- }],
1620
- "directives": [],
1621
- "selectionSet": {
1622
- "kind": "SelectionSet",
1623
- "selections": [
1624
- {
1625
- "kind": "Field",
1626
- "name": {
1627
- "kind": "Name",
1628
- "value": "items"
1629
- },
1630
- "arguments": [],
1631
- "directives": [],
1632
- "selectionSet": {
1633
- "kind": "SelectionSet",
1634
- "selections": [
1635
- {
1636
- "kind": "Field",
1637
- "name": {
1638
- "kind": "Name",
1639
- "value": "id"
1640
- },
1641
- "arguments": [],
1642
- "directives": []
1643
- },
1644
- {
1645
- "kind": "Field",
1646
- "name": {
1647
- "kind": "Name",
1648
- "value": "workflowId"
1649
- },
1650
- "arguments": [],
1651
- "directives": []
1652
- },
1653
- {
1654
- "kind": "Field",
1655
- "name": {
1656
- "kind": "Name",
1657
- "value": "workflowKey"
1658
- },
1659
- "arguments": [],
1660
- "directives": []
1661
- },
1662
- {
1663
- "kind": "Field",
1664
- "name": {
1665
- "kind": "Name",
1666
- "value": "version"
1667
- },
1668
- "arguments": [],
1669
- "directives": []
1670
- },
1671
- {
1672
- "kind": "Field",
1673
- "name": {
1674
- "kind": "Name",
1675
- "value": "triggerNodeId"
1676
- },
1677
- "arguments": [],
1678
- "directives": []
1679
- },
1680
- {
1681
- "kind": "Field",
1682
- "name": {
1683
- "kind": "Name",
1684
- "value": "triggerData"
1685
- },
1686
- "arguments": [],
1687
- "directives": []
1688
- },
1689
- {
1690
- "kind": "Field",
1691
- "name": {
1692
- "kind": "Name",
1693
- "value": "status"
1694
- },
1695
- "arguments": [],
1696
- "directives": []
1697
- },
1698
- {
1699
- "kind": "Field",
1700
- "name": {
1701
- "kind": "Name",
1702
- "value": "mode"
1703
- },
1704
- "arguments": [],
1705
- "directives": []
1706
- },
1707
- {
1708
- "kind": "Field",
1709
- "name": {
1710
- "kind": "Name",
1711
- "value": "context"
1712
- },
1713
- "arguments": [],
1714
- "directives": []
1715
- },
1716
- {
1717
- "kind": "Field",
1718
- "name": {
1719
- "kind": "Name",
1720
- "value": "triggeredById"
1721
- },
1722
- "arguments": [],
1723
- "directives": []
1724
- },
1725
- {
1726
- "kind": "Field",
1727
- "name": {
1728
- "kind": "Name",
1729
- "value": "parentRunId"
1730
- },
1731
- "arguments": [],
1732
- "directives": []
1733
- },
1734
- {
1735
- "kind": "Field",
1736
- "name": {
1737
- "kind": "Name",
1738
- "value": "createdAt"
1739
- },
1740
- "arguments": [],
1741
- "directives": []
1742
- },
1743
- {
1744
- "kind": "Field",
1745
- "name": {
1746
- "kind": "Name",
1747
- "value": "updatedAt"
1748
- },
1749
- "arguments": [],
1750
- "directives": []
1751
- },
1752
- {
1753
- "kind": "Field",
1754
- "name": {
1755
- "kind": "Name",
1756
- "value": "startedAt"
1757
- },
1758
- "arguments": [],
1759
- "directives": []
1760
- },
1761
- {
1762
- "kind": "Field",
1763
- "name": {
1764
- "kind": "Name",
1765
- "value": "completedAt"
1766
- },
1767
- "arguments": [],
1768
- "directives": []
1769
- },
1770
- {
1771
- "kind": "Field",
1772
- "name": {
1773
- "kind": "Name",
1774
- "value": "duration"
1775
- },
1776
- "arguments": [],
1777
- "directives": []
1778
- },
1779
- {
1780
- "kind": "Field",
1781
- "name": {
1782
- "kind": "Name",
1783
- "value": "errorMessage"
1784
- },
1785
- "arguments": [],
1786
- "directives": []
1787
- },
1788
- {
1789
- "kind": "Field",
1790
- "name": {
1791
- "kind": "Name",
1792
- "value": "errorType"
1793
- },
1794
- "arguments": [],
1795
- "directives": []
1796
- },
1797
- {
1798
- "kind": "Field",
1799
- "name": {
1800
- "kind": "Name",
1801
- "value": "totalNodes"
1802
- },
1803
- "arguments": [],
1804
- "directives": []
1805
- },
1806
- {
1807
- "kind": "Field",
1808
- "name": {
1809
- "kind": "Name",
1810
- "value": "completedNodes"
1811
- },
1812
- "arguments": [],
1813
- "directives": []
1814
- },
1815
- {
1816
- "kind": "Field",
1817
- "name": {
1818
- "kind": "Name",
1819
- "value": "failedNodes"
1820
- },
1821
- "arguments": [],
1822
- "directives": []
1823
- },
1824
- {
1825
- "kind": "Field",
1826
- "name": {
1827
- "kind": "Name",
1828
- "value": "skippedNodes"
1829
- },
1830
- "arguments": [],
1831
- "directives": []
1832
- },
1833
- {
1834
- "kind": "Field",
1835
- "name": {
1836
- "kind": "Name",
1837
- "value": "progress"
1838
- },
1839
- "arguments": [],
1840
- "directives": []
1841
- },
1842
- {
1843
- "kind": "Field",
1844
- "name": {
1845
- "kind": "Name",
1846
- "value": "workflow"
1847
- },
1848
- "arguments": [],
1849
- "directives": [],
1850
- "selectionSet": {
1851
- "kind": "SelectionSet",
1852
- "selections": [
1853
- {
1854
- "kind": "Field",
1855
- "name": {
1856
- "kind": "Name",
1857
- "value": "id"
1858
- },
1859
- "arguments": [],
1860
- "directives": []
1861
- },
1862
- {
1863
- "kind": "Field",
1864
- "name": {
1865
- "kind": "Name",
1866
- "value": "name"
1867
- },
1868
- "arguments": [],
1869
- "directives": []
1870
- },
1871
- {
1872
- "kind": "Field",
1873
- "name": {
1874
- "kind": "Name",
1875
- "value": "description"
1876
- },
1877
- "arguments": [],
1878
- "directives": []
1879
- }
1880
- ]
1881
- }
1882
- }
1883
- ]
1884
- }
1885
- },
1886
- {
1887
- "kind": "Field",
1888
- "name": {
1889
- "kind": "Name",
1890
- "value": "total"
1891
- },
1892
- "arguments": [],
1893
- "directives": []
1894
- },
1895
- {
1896
- "kind": "Field",
1897
- "name": {
1898
- "kind": "Name",
1899
- "value": "hasMore"
1900
- },
1901
- "arguments": [],
1902
- "directives": []
1903
- },
1904
- {
1905
- "kind": "Field",
1906
- "name": {
1907
- "kind": "Name",
1908
- "value": "totalCapped"
1909
- },
1910
- "arguments": [],
1911
- "directives": []
1912
- }
1913
- ]
1914
- }
1915
- }]
1916
- }
1917
- }]
1918
- };
1919
-
1920
- // src/generated/documents/wspace/CreateWorkflowDefinitionDocument.ts
1921
- const CreateWorkflowDefinitionDocument = {
1922
- "kind": "Document",
1923
- "definitions": [{
1924
- "kind": "OperationDefinition",
1925
- "operation": "mutation",
1926
- "name": {
1927
- "kind": "Name",
1928
- "value": "CreateWorkflowDefinition"
1929
- },
1930
- "variableDefinitions": [{
1931
- "kind": "VariableDefinition",
1932
- "variable": {
1933
- "kind": "Variable",
1934
- "name": {
1935
- "kind": "Name",
1936
- "value": "input"
1937
- }
1938
- },
1939
- "type": {
1940
- "kind": "NonNullType",
1941
- "type": {
1942
- "kind": "NamedType",
1943
- "name": {
1944
- "kind": "Name",
1945
- "value": "CreateWorkflowDefinitionInput"
1946
- }
1947
- }
1948
- },
1949
- "directives": []
1950
- }],
1951
- "directives": [],
1952
- "selectionSet": {
1953
- "kind": "SelectionSet",
1954
- "selections": [{
1955
- "kind": "Field",
1956
- "name": {
1957
- "kind": "Name",
1958
- "value": "createWorkflowDefinition"
1959
- },
1960
- "arguments": [{
1961
- "kind": "Argument",
1962
- "name": {
1963
- "kind": "Name",
1964
- "value": "input"
1965
- },
1966
- "value": {
1967
- "kind": "Variable",
1968
- "name": {
1969
- "kind": "Name",
1970
- "value": "input"
1971
- }
1972
- }
1973
- }],
1974
- "directives": [],
1975
- "selectionSet": {
1976
- "kind": "SelectionSet",
1977
- "selections": [
1978
- {
1979
- "kind": "Field",
1980
- "name": {
1981
- "kind": "Name",
1982
- "value": "id"
1983
- },
1984
- "arguments": [],
1985
- "directives": []
1986
- },
1987
- {
1988
- "kind": "Field",
1989
- "name": {
1990
- "kind": "Name",
1991
- "value": "workflowKey"
1992
- },
1993
- "arguments": [],
1994
- "directives": []
1995
- },
1996
- {
1997
- "kind": "Field",
1998
- "name": {
1999
- "kind": "Name",
2000
- "value": "version"
2001
- },
2002
- "arguments": [],
2003
- "directives": []
2004
- },
2005
- {
2006
- "kind": "Field",
2007
- "name": {
2008
- "kind": "Name",
2009
- "value": "name"
2010
- },
2011
- "arguments": [],
2012
- "directives": []
2013
- },
2014
- {
2015
- "kind": "Field",
2016
- "name": {
2017
- "kind": "Name",
2018
- "value": "description"
2019
- },
2020
- "arguments": [],
2021
- "directives": []
2022
- },
2023
- {
2024
- "kind": "Field",
2025
- "name": {
2026
- "kind": "Name",
2027
- "value": "status"
2028
- },
2029
- "arguments": [],
2030
- "directives": []
2031
- },
2032
- {
2033
- "kind": "Field",
2034
- "name": {
2035
- "kind": "Name",
2036
- "value": "definitionJson"
2037
- },
2038
- "arguments": [],
2039
- "directives": []
2040
- },
2041
- {
2042
- "kind": "Field",
2043
- "name": {
2044
- "kind": "Name",
2045
- "value": "alias"
2046
- },
2047
- "arguments": [],
2048
- "directives": []
2049
- },
2050
- {
2051
- "kind": "Field",
2052
- "name": {
2053
- "kind": "Name",
2054
- "value": "createdAt"
2055
- },
2056
- "arguments": [],
2057
- "directives": []
2058
- },
2059
- {
2060
- "kind": "Field",
2061
- "name": {
2062
- "kind": "Name",
2063
- "value": "revision"
2064
- },
2065
- "arguments": [],
2066
- "directives": []
2067
- }
2068
- ]
2069
- }
2070
- }]
2071
- }
2072
- }]
2073
- };
2074
-
2075
- // src/generated/documents/wspace/CreateWorkflowVersionDocument.ts
2076
- const CreateWorkflowVersionDocument = {
2077
- "kind": "Document",
2078
- "definitions": [{
2079
- "kind": "OperationDefinition",
2080
- "operation": "mutation",
2081
- "name": {
2082
- "kind": "Name",
2083
- "value": "CreateWorkflowVersion"
2084
- },
2085
- "variableDefinitions": [{
2086
- "kind": "VariableDefinition",
2087
- "variable": {
2088
- "kind": "Variable",
2089
- "name": {
2090
- "kind": "Name",
2091
- "value": "workflowKey"
2092
- }
2093
- },
2094
- "type": {
2095
- "kind": "NonNullType",
2096
- "type": {
2097
- "kind": "NamedType",
2098
- "name": {
2099
- "kind": "Name",
2100
- "value": "String"
2101
- }
2102
- }
2103
- },
2104
- "directives": []
2105
- }, {
2106
- "kind": "VariableDefinition",
2107
- "variable": {
2108
- "kind": "Variable",
2109
- "name": {
2110
- "kind": "Name",
2111
- "value": "input"
2112
- }
2113
- },
2114
- "type": {
2115
- "kind": "NonNullType",
2116
- "type": {
2117
- "kind": "NamedType",
2118
- "name": {
2119
- "kind": "Name",
2120
- "value": "CreateWorkflowVersionInput"
2121
- }
2122
- }
2123
- },
2124
- "directives": []
2125
- }],
2126
- "directives": [],
2127
- "selectionSet": {
2128
- "kind": "SelectionSet",
2129
- "selections": [{
2130
- "kind": "Field",
2131
- "name": {
2132
- "kind": "Name",
2133
- "value": "createWorkflowVersion"
2134
- },
2135
- "arguments": [{
2136
- "kind": "Argument",
2137
- "name": {
2138
- "kind": "Name",
2139
- "value": "workflowKey"
2140
- },
2141
- "value": {
2142
- "kind": "Variable",
2143
- "name": {
2144
- "kind": "Name",
2145
- "value": "workflowKey"
2146
- }
2147
- }
2148
- }, {
2149
- "kind": "Argument",
2150
- "name": {
2151
- "kind": "Name",
2152
- "value": "input"
2153
- },
2154
- "value": {
2155
- "kind": "Variable",
2156
- "name": {
2157
- "kind": "Name",
2158
- "value": "input"
2159
- }
2160
- }
2161
- }],
2162
- "directives": [],
2163
- "selectionSet": {
2164
- "kind": "SelectionSet",
2165
- "selections": [
2166
- {
2167
- "kind": "Field",
2168
- "name": {
2169
- "kind": "Name",
2170
- "value": "success"
2171
- },
2172
- "arguments": [],
2173
- "directives": []
2174
- },
2175
- {
2176
- "kind": "Field",
2177
- "name": {
2178
- "kind": "Name",
2179
- "value": "message"
2180
- },
2181
- "arguments": [],
2182
- "directives": []
2183
- },
2184
- {
2185
- "kind": "Field",
2186
- "name": {
2187
- "kind": "Name",
2188
- "value": "workflow"
2189
- },
2190
- "arguments": [],
2191
- "directives": [],
2192
- "selectionSet": {
2193
- "kind": "SelectionSet",
2194
- "selections": [
2195
- {
2196
- "kind": "Field",
2197
- "name": {
2198
- "kind": "Name",
2199
- "value": "id"
2200
- },
2201
- "arguments": [],
2202
- "directives": []
2203
- },
2204
- {
2205
- "kind": "Field",
2206
- "name": {
2207
- "kind": "Name",
2208
- "value": "workflowKey"
2209
- },
2210
- "arguments": [],
2211
- "directives": []
2212
- },
2213
- {
2214
- "kind": "Field",
2215
- "name": {
2216
- "kind": "Name",
2217
- "value": "version"
2218
- },
2219
- "arguments": [],
2220
- "directives": []
2221
- },
2222
- {
2223
- "kind": "Field",
2224
- "name": {
2225
- "kind": "Name",
2226
- "value": "name"
2227
- },
2228
- "arguments": [],
2229
- "directives": []
2230
- },
2231
- {
2232
- "kind": "Field",
2233
- "name": {
2234
- "kind": "Name",
2235
- "value": "status"
2236
- },
2237
- "arguments": [],
2238
- "directives": []
2239
- },
2240
- {
2241
- "kind": "Field",
2242
- "name": {
2243
- "kind": "Name",
2244
- "value": "definitionJson"
2245
- },
2246
- "arguments": [],
2247
- "directives": []
2248
- },
2249
- {
2250
- "kind": "Field",
2251
- "name": {
2252
- "kind": "Name",
2253
- "value": "revision"
2254
- },
2255
- "arguments": [],
2256
- "directives": []
2257
- }
2258
- ]
2259
- }
2260
- }
2261
- ]
2262
- }
2263
- }]
2264
- }
2265
- }]
2266
- };
2267
-
2268
- // src/generated/documents/wspace/SaveWorkflowDraftDocument.ts
2269
- const SaveWorkflowDraftDocument = {
2270
- "kind": "Document",
2271
- "definitions": [{
2272
- "kind": "OperationDefinition",
2273
- "operation": "mutation",
2274
- "name": {
2275
- "kind": "Name",
2276
- "value": "SaveWorkflowDraft"
2277
- },
2278
- "variableDefinitions": [{
2279
- "kind": "VariableDefinition",
2280
- "variable": {
2281
- "kind": "Variable",
2282
- "name": {
2283
- "kind": "Name",
2284
- "value": "id"
2285
- }
2286
- },
2287
- "type": {
2288
- "kind": "NonNullType",
2289
- "type": {
2290
- "kind": "NamedType",
2291
- "name": {
2292
- "kind": "Name",
2293
- "value": "ID"
2294
- }
2295
- }
2296
- },
2297
- "directives": []
2298
- }, {
2299
- "kind": "VariableDefinition",
2300
- "variable": {
2301
- "kind": "Variable",
2302
- "name": {
2303
- "kind": "Name",
2304
- "value": "input"
2305
- }
2306
- },
2307
- "type": {
2308
- "kind": "NonNullType",
2309
- "type": {
2310
- "kind": "NamedType",
2311
- "name": {
2312
- "kind": "Name",
2313
- "value": "UpdateWorkflowDefinitionInput"
2314
- }
2315
- }
2316
- },
2317
- "directives": []
2318
- }],
2319
- "directives": [],
2320
- "selectionSet": {
2321
- "kind": "SelectionSet",
2322
- "selections": [{
2323
- "kind": "Field",
2324
- "name": {
2325
- "kind": "Name",
2326
- "value": "updateWorkflowDefinition"
2327
- },
2328
- "arguments": [{
2329
- "kind": "Argument",
2330
- "name": {
2331
- "kind": "Name",
2332
- "value": "id"
2333
- },
2334
- "value": {
2335
- "kind": "Variable",
2336
- "name": {
2337
- "kind": "Name",
2338
- "value": "id"
2339
- }
2340
- }
2341
- }, {
2342
- "kind": "Argument",
2343
- "name": {
2344
- "kind": "Name",
2345
- "value": "input"
2346
- },
2347
- "value": {
2348
- "kind": "Variable",
2349
- "name": {
2350
- "kind": "Name",
2351
- "value": "input"
2352
- }
2353
- }
2354
- }],
2355
- "directives": [],
2356
- "selectionSet": {
2357
- "kind": "SelectionSet",
2358
- "selections": [
2359
- {
2360
- "kind": "Field",
2361
- "name": {
2362
- "kind": "Name",
2363
- "value": "id"
2364
- },
2365
- "arguments": [],
2366
- "directives": []
2367
- },
2368
- {
2369
- "kind": "Field",
2370
- "name": {
2371
- "kind": "Name",
2372
- "value": "workflowKey"
2373
- },
2374
- "arguments": [],
2375
- "directives": []
2376
- },
2377
- {
2378
- "kind": "Field",
2379
- "name": {
2380
- "kind": "Name",
2381
- "value": "version"
2382
- },
2383
- "arguments": [],
2384
- "directives": []
2385
- },
2386
- {
2387
- "kind": "Field",
2388
- "name": {
2389
- "kind": "Name",
2390
- "value": "name"
2391
- },
2392
- "arguments": [],
2393
- "directives": []
2394
- },
2395
- {
2396
- "kind": "Field",
2397
- "name": {
2398
- "kind": "Name",
2399
- "value": "description"
2400
- },
2401
- "arguments": [],
2402
- "directives": []
2403
- },
2404
- {
2405
- "kind": "Field",
2406
- "name": {
2407
- "kind": "Name",
2408
- "value": "status"
2409
- },
2410
- "arguments": [],
2411
- "directives": []
2412
- },
2413
- {
2414
- "kind": "Field",
2415
- "name": {
2416
- "kind": "Name",
2417
- "value": "alias"
2418
- },
2419
- "arguments": [],
2420
- "directives": []
2421
- },
2422
- {
2423
- "kind": "Field",
2424
- "name": {
2425
- "kind": "Name",
2426
- "value": "updatedAt"
2427
- },
2428
- "arguments": [],
2429
- "directives": []
2430
- },
2431
- {
2432
- "kind": "Field",
2433
- "name": {
2434
- "kind": "Name",
2435
- "value": "revision"
2436
- },
2437
- "arguments": [],
2438
- "directives": []
2439
- }
2440
- ]
2441
- }
2442
- }]
2443
- }
2444
- }]
2445
- };
2446
-
2447
- // src/generated/documents/wspace/TriggerWorkflowDocument.ts
2448
- const TriggerWorkflowDocument = {
2449
- "kind": "Document",
2450
- "definitions": [{
2451
- "kind": "OperationDefinition",
2452
- "operation": "mutation",
2453
- "name": {
2454
- "kind": "Name",
2455
- "value": "TriggerWorkflow"
2456
- },
2457
- "variableDefinitions": [{
2458
- "kind": "VariableDefinition",
2459
- "variable": {
2460
- "kind": "Variable",
2461
- "name": {
2462
- "kind": "Name",
2463
- "value": "input"
2464
- }
2465
- },
2466
- "type": {
2467
- "kind": "NonNullType",
2468
- "type": {
2469
- "kind": "NamedType",
2470
- "name": {
2471
- "kind": "Name",
2472
- "value": "TriggerWorkflowInput"
2473
- }
2474
- }
2475
- },
2476
- "directives": []
2477
- }],
2478
- "directives": [],
2479
- "selectionSet": {
2480
- "kind": "SelectionSet",
2481
- "selections": [{
2482
- "kind": "Field",
2483
- "name": {
2484
- "kind": "Name",
2485
- "value": "triggerWorkflow"
2486
- },
2487
- "arguments": [{
2488
- "kind": "Argument",
2489
- "name": {
2490
- "kind": "Name",
2491
- "value": "input"
2492
- },
2493
- "value": {
2494
- "kind": "Variable",
2495
- "name": {
2496
- "kind": "Name",
2497
- "value": "input"
2498
- }
2499
- }
2500
- }],
2501
- "directives": [],
2502
- "selectionSet": {
2503
- "kind": "SelectionSet",
2504
- "selections": [
2505
- {
2506
- "kind": "Field",
2507
- "name": {
2508
- "kind": "Name",
2509
- "value": "runId"
2510
- },
2511
- "arguments": [],
2512
- "directives": []
2513
- },
2514
- {
2515
- "kind": "Field",
2516
- "name": {
2517
- "kind": "Name",
2518
- "value": "workflowKey"
2519
- },
2520
- "arguments": [],
2521
- "directives": []
2522
- },
2523
- {
2524
- "kind": "Field",
2525
- "name": {
2526
- "kind": "Name",
2527
- "value": "version"
2528
- },
2529
- "arguments": [],
2530
- "directives": []
2531
- },
2532
- {
2533
- "kind": "Field",
2534
- "name": {
2535
- "kind": "Name",
2536
- "value": "triggerNodeId"
2537
- },
2538
- "arguments": [],
2539
- "directives": []
2540
- },
2541
- {
2542
- "kind": "Field",
2543
- "name": {
2544
- "kind": "Name",
2545
- "value": "status"
2546
- },
2547
- "arguments": [],
2548
- "directives": []
2549
- }
2550
- ]
2551
- }
2552
- }]
2553
- }
2554
- }]
2555
- };
2556
-
2557
- // src/generated/documents/wspace/BuilderRunNodeDetailsDocument.ts
2558
- const BuilderRunNodeDetailsDocument = {
2559
- "kind": "Document",
2560
- "definitions": [{
2561
- "kind": "OperationDefinition",
2562
- "operation": "query",
2563
- "name": {
2564
- "kind": "Name",
2565
- "value": "BuilderRunNodeDetails"
2566
- },
2567
- "variableDefinitions": [{
2568
- "kind": "VariableDefinition",
2569
- "variable": {
2570
- "kind": "Variable",
2571
- "name": {
2572
- "kind": "Name",
2573
- "value": "runId"
2574
- }
2575
- },
2576
- "type": {
2577
- "kind": "NonNullType",
2578
- "type": {
2579
- "kind": "NamedType",
2580
- "name": {
2581
- "kind": "Name",
2582
- "value": "String"
2583
- }
2584
- }
2585
- },
2586
- "directives": []
2587
- }, {
2588
- "kind": "VariableDefinition",
2589
- "variable": {
2590
- "kind": "Variable",
2591
- "name": {
2592
- "kind": "Name",
2593
- "value": "ids"
2594
- }
2595
- },
2596
- "type": {
2597
- "kind": "NonNullType",
2598
- "type": {
2599
- "kind": "ListType",
2600
- "type": {
2601
- "kind": "NonNullType",
2602
- "type": {
2603
- "kind": "NamedType",
2604
- "name": {
2605
- "kind": "Name",
2606
- "value": "ID"
2607
- }
2608
- }
2609
- }
2610
- }
2611
- },
2612
- "directives": []
2613
- }],
2614
- "directives": [],
2615
- "selectionSet": {
2616
- "kind": "SelectionSet",
2617
- "selections": [{
2618
- "kind": "Field",
2619
- "name": {
2620
- "kind": "Name",
2621
- "value": "nodeStates"
2622
- },
2623
- "arguments": [{
2624
- "kind": "Argument",
2625
- "name": {
2626
- "kind": "Name",
2627
- "value": "runId"
2628
- },
2629
- "value": {
2630
- "kind": "Variable",
2631
- "name": {
2632
- "kind": "Name",
2633
- "value": "runId"
2634
- }
2635
- }
2636
- }, {
2637
- "kind": "Argument",
2638
- "name": {
2639
- "kind": "Name",
2640
- "value": "ids"
2641
- },
2642
- "value": {
2643
- "kind": "Variable",
2644
- "name": {
2645
- "kind": "Name",
2646
- "value": "ids"
2647
- }
2648
- }
2649
- }],
2650
- "directives": [],
2651
- "selectionSet": {
2652
- "kind": "SelectionSet",
2653
- "selections": [
2654
- {
2655
- "kind": "Field",
2656
- "name": {
2657
- "kind": "Name",
2658
- "value": "id"
2659
- },
2660
- "arguments": [],
2661
- "directives": []
2662
- },
2663
- {
2664
- "kind": "Field",
2665
- "name": {
2666
- "kind": "Name",
2667
- "value": "nodeId"
2668
- },
2669
- "arguments": [],
2670
- "directives": []
2671
- },
2672
- {
2673
- "kind": "Field",
2674
- "name": {
2675
- "kind": "Name",
2676
- "value": "status"
2677
- },
2678
- "arguments": [],
2679
- "directives": []
2680
- },
2681
- {
2682
- "kind": "Field",
2683
- "name": {
2684
- "kind": "Name",
2685
- "value": "inputArgs"
2686
- },
2687
- "arguments": [],
2688
- "directives": []
2689
- },
2690
- {
2691
- "kind": "Field",
2692
- "name": {
2693
- "kind": "Name",
2694
- "value": "output"
2695
- },
2696
- "arguments": [],
2697
- "directives": []
2698
- },
2699
- {
2700
- "kind": "Field",
2701
- "name": {
2702
- "kind": "Name",
2703
- "value": "error"
2704
- },
2705
- "arguments": [],
2706
- "directives": []
2707
- }
2708
- ]
2709
- }
2710
- }]
2711
- }
2712
- }]
2713
- };
2714
-
2715
- // src/generated/documents/wspace/BuilderRunStatusDocument.ts
2716
- const BuilderRunStatusDocument = {
2717
- "kind": "Document",
2718
- "definitions": [{
2719
- "kind": "OperationDefinition",
2720
- "operation": "query",
2721
- "name": {
2722
- "kind": "Name",
2723
- "value": "BuilderRunStatus"
2724
- },
2725
- "variableDefinitions": [{
2726
- "kind": "VariableDefinition",
2727
- "variable": {
2728
- "kind": "Variable",
2729
- "name": {
2730
- "kind": "Name",
2731
- "value": "id"
2732
- }
2733
- },
2734
- "type": {
2735
- "kind": "NonNullType",
2736
- "type": {
2737
- "kind": "NamedType",
2738
- "name": {
2739
- "kind": "Name",
2740
- "value": "ID"
2741
- }
2742
- }
2743
- },
2744
- "directives": []
2745
- }],
2746
- "directives": [],
2747
- "selectionSet": {
2748
- "kind": "SelectionSet",
2749
- "selections": [{
2750
- "kind": "Field",
2751
- "name": {
2752
- "kind": "Name",
2753
- "value": "workflowRun"
2754
- },
2755
- "arguments": [{
2756
- "kind": "Argument",
2757
- "name": {
2758
- "kind": "Name",
2759
- "value": "id"
2760
- },
2761
- "value": {
2762
- "kind": "Variable",
2763
- "name": {
2764
- "kind": "Name",
2765
- "value": "id"
2766
- }
2767
- }
2768
- }],
2769
- "directives": [],
2770
- "selectionSet": {
2771
- "kind": "SelectionSet",
2772
- "selections": [
2773
- {
2774
- "kind": "Field",
2775
- "name": {
2776
- "kind": "Name",
2777
- "value": "id"
2778
- },
2779
- "arguments": [],
2780
- "directives": []
2781
- },
2782
- {
2783
- "kind": "Field",
2784
- "name": {
2785
- "kind": "Name",
2786
- "value": "workflowKey"
2787
- },
2788
- "arguments": [],
2789
- "directives": []
2790
- },
2791
- {
2792
- "kind": "Field",
2793
- "name": {
2794
- "kind": "Name",
2795
- "value": "version"
2796
- },
2797
- "arguments": [],
2798
- "directives": []
2799
- },
2800
- {
2801
- "kind": "Field",
2802
- "name": {
2803
- "kind": "Name",
2804
- "value": "status"
2805
- },
2806
- "arguments": [],
2807
- "directives": []
2808
- },
2809
- {
2810
- "kind": "Field",
2811
- "name": {
2812
- "kind": "Name",
2813
- "value": "mode"
2814
- },
2815
- "arguments": [],
2816
- "directives": []
2817
- },
2818
- {
2819
- "kind": "Field",
2820
- "name": {
2821
- "kind": "Name",
2822
- "value": "startedAt"
2823
- },
2824
- "arguments": [],
2825
- "directives": []
2826
- },
2827
- {
2828
- "kind": "Field",
2829
- "name": {
2830
- "kind": "Name",
2831
- "value": "completedAt"
2832
- },
2833
- "arguments": [],
2834
- "directives": []
2835
- },
2836
- {
2837
- "kind": "Field",
2838
- "name": {
2839
- "kind": "Name",
2840
- "value": "duration"
2841
- },
2842
- "arguments": [],
2843
- "directives": []
2844
- },
2845
- {
2846
- "kind": "Field",
2847
- "name": {
2848
- "kind": "Name",
2849
- "value": "errorType"
2850
- },
2851
- "arguments": [],
2852
- "directives": []
2853
- },
2854
- {
2855
- "kind": "Field",
2856
- "name": {
2857
- "kind": "Name",
2858
- "value": "nodeStates"
2859
- },
2860
- "arguments": [],
2861
- "directives": [],
2862
- "selectionSet": {
2863
- "kind": "SelectionSet",
2864
- "selections": [
2865
- {
2866
- "kind": "Field",
2867
- "name": {
2868
- "kind": "Name",
2869
- "value": "id"
2870
- },
2871
- "arguments": [],
2872
- "directives": []
2873
- },
2874
- {
2875
- "kind": "Field",
2876
- "name": {
2877
- "kind": "Name",
2878
- "value": "nodeId"
2879
- },
2880
- "arguments": [],
2881
- "directives": []
2882
- },
2883
- {
2884
- "kind": "Field",
2885
- "name": {
2886
- "kind": "Name",
2887
- "value": "nodeType"
2888
- },
2889
- "arguments": [],
2890
- "directives": []
2891
- },
2892
- {
2893
- "kind": "Field",
2894
- "name": {
2895
- "kind": "Name",
2896
- "value": "status"
2897
- },
2898
- "arguments": [],
2899
- "directives": []
2900
- },
2901
- {
2902
- "kind": "Field",
2903
- "name": {
2904
- "kind": "Name",
2905
- "value": "error"
2906
- },
2907
- "arguments": [],
2908
- "directives": []
2909
- },
2910
- {
2911
- "kind": "Field",
2912
- "name": {
2913
- "kind": "Name",
2914
- "value": "startTime"
2915
- },
2916
- "arguments": [],
2917
- "directives": []
2918
- },
2919
- {
2920
- "kind": "Field",
2921
- "name": {
2922
- "kind": "Name",
2923
- "value": "endTime"
2924
- },
2925
- "arguments": [],
2926
- "directives": []
2927
- },
2928
- {
2929
- "kind": "Field",
2930
- "name": {
2931
- "kind": "Name",
2932
- "value": "duration"
2933
- },
2934
- "arguments": [],
2935
- "directives": []
2936
- },
2937
- {
2938
- "kind": "Field",
2939
- "name": {
2940
- "kind": "Name",
2941
- "value": "usedPinnedData"
2942
- },
2943
- "arguments": [],
2944
- "directives": []
2945
- },
2946
- {
2947
- "kind": "Field",
2948
- "name": {
2949
- "kind": "Name",
2950
- "value": "reusedFromRunId"
2951
- },
2952
- "arguments": [],
2953
- "directives": []
2954
- }
2955
- ]
2956
- }
2957
- }
2958
- ]
2959
- }
2960
- }]
2961
- }
2962
- }]
2963
- };
2964
-
2965
- // src/generated/documents/wspace/EventRegistrationsDocument.ts
2966
- const EventRegistrationsDocument = {
2967
- "kind": "Document",
2968
- "definitions": [{
2969
- "kind": "OperationDefinition",
2970
- "operation": "query",
2971
- "name": {
2972
- "kind": "Name",
2973
- "value": "EventRegistrations"
2974
- },
2975
- "variableDefinitions": [{
2976
- "kind": "VariableDefinition",
2977
- "variable": {
2978
- "kind": "Variable",
2979
- "name": {
2980
- "kind": "Name",
2981
- "value": "workflowKey"
2982
- }
2983
- },
2984
- "type": {
2985
- "kind": "NamedType",
2986
- "name": {
2987
- "kind": "Name",
2988
- "value": "String"
2989
- }
2990
- },
2991
- "directives": []
2992
- }, {
2993
- "kind": "VariableDefinition",
2994
- "variable": {
2995
- "kind": "Variable",
2996
- "name": {
2997
- "kind": "Name",
2998
- "value": "status"
2999
- }
3000
- },
3001
- "type": {
3002
- "kind": "NamedType",
3003
- "name": {
3004
- "kind": "Name",
3005
- "value": "EventStatus"
3006
- }
3007
- },
3008
- "directives": []
3009
- }],
3010
- "directives": [],
3011
- "selectionSet": {
3012
- "kind": "SelectionSet",
3013
- "selections": [{
3014
- "kind": "Field",
3015
- "name": {
3016
- "kind": "Name",
3017
- "value": "eventRegistrations"
3018
- },
3019
- "arguments": [{
3020
- "kind": "Argument",
3021
- "name": {
3022
- "kind": "Name",
3023
- "value": "workflowKey"
3024
- },
3025
- "value": {
3026
- "kind": "Variable",
3027
- "name": {
3028
- "kind": "Name",
3029
- "value": "workflowKey"
3030
- }
3031
- }
3032
- }, {
3033
- "kind": "Argument",
3034
- "name": {
3035
- "kind": "Name",
3036
- "value": "status"
3037
- },
3038
- "value": {
3039
- "kind": "Variable",
3040
- "name": {
3041
- "kind": "Name",
3042
- "value": "status"
3043
- }
3044
- }
3045
- }],
3046
- "directives": [],
3047
- "selectionSet": {
3048
- "kind": "SelectionSet",
3049
- "selections": [
3050
- {
3051
- "kind": "Field",
3052
- "name": {
3053
- "kind": "Name",
3054
- "value": "id"
3055
- },
3056
- "arguments": [],
3057
- "directives": []
3058
- },
3059
- {
3060
- "kind": "Field",
3061
- "name": {
3062
- "kind": "Name",
3063
- "value": "triggerNodeId"
3064
- },
3065
- "arguments": [],
3066
- "directives": []
3067
- },
3068
- {
3069
- "kind": "Field",
3070
- "name": {
3071
- "kind": "Name",
3072
- "value": "eventSource"
3073
- },
3074
- "arguments": [],
3075
- "directives": []
3076
- },
3077
- {
3078
- "kind": "Field",
3079
- "name": {
3080
- "kind": "Name",
3081
- "value": "eventType"
3082
- },
3083
- "arguments": [],
3084
- "directives": []
3085
- },
3086
- {
3087
- "kind": "Field",
3088
- "name": {
3089
- "kind": "Name",
3090
- "value": "isActive"
3091
- },
3092
- "arguments": [],
3093
- "directives": []
3094
- },
3095
- {
3096
- "kind": "Field",
3097
- "name": {
3098
- "kind": "Name",
3099
- "value": "status"
3100
- },
3101
- "arguments": [],
3102
- "directives": []
3103
- },
3104
- {
3105
- "kind": "Field",
3106
- "name": {
3107
- "kind": "Name",
3108
- "value": "webhookToken"
3109
- },
3110
- "arguments": [],
3111
- "directives": []
3112
- },
3113
- {
3114
- "kind": "Field",
3115
- "name": {
3116
- "kind": "Name",
3117
- "value": "webhookUrl"
3118
- },
3119
- "arguments": [],
3120
- "directives": []
3121
- },
3122
- {
3123
- "kind": "Field",
3124
- "name": {
3125
- "kind": "Name",
3126
- "value": "formUrl"
3127
- },
3128
- "arguments": [],
3129
- "directives": []
3130
- },
3131
- {
3132
- "kind": "Field",
3133
- "name": {
3134
- "kind": "Name",
3135
- "value": "totalTriggers"
3136
- },
3137
- "arguments": [],
3138
- "directives": []
3139
- },
3140
- {
3141
- "kind": "Field",
3142
- "name": {
3143
- "kind": "Name",
3144
- "value": "lastTriggeredAt"
3145
- },
3146
- "arguments": [],
3147
- "directives": []
3148
- }
3149
- ]
3150
- }
3151
- }]
3152
- }
3153
- }]
3154
- };
3155
-
3156
- // src/generated/documents/wspace/NodeEndpointConfigsDocument.ts
3157
- const NodeEndpointConfigsDocument = {
3158
- "kind": "Document",
3159
- "definitions": [{
3160
- "kind": "OperationDefinition",
3161
- "operation": "query",
3162
- "name": {
3163
- "kind": "Name",
3164
- "value": "NodeEndpointConfigs"
3165
- },
3166
- "variableDefinitions": [
3167
- {
3168
- "kind": "VariableDefinition",
3169
- "variable": {
3170
- "kind": "Variable",
3171
- "name": {
3172
- "kind": "Name",
3173
- "value": "pagination"
3174
- }
3175
- },
3176
- "type": {
3177
- "kind": "NamedType",
3178
- "name": {
3179
- "kind": "Name",
3180
- "value": "WorkflowPaginationInput"
3181
- }
3182
- },
3183
- "directives": []
3184
- },
3185
- {
3186
- "kind": "VariableDefinition",
3187
- "variable": {
3188
- "kind": "Variable",
3189
- "name": {
3190
- "kind": "Name",
3191
- "value": "status"
3192
- }
3193
- },
3194
- "type": {
3195
- "kind": "NamedType",
3196
- "name": {
3197
- "kind": "Name",
3198
- "value": "NodeConfigStatus"
3199
- }
3200
- },
3201
- "directives": []
3202
- },
3203
- {
3204
- "kind": "VariableDefinition",
3205
- "variable": {
3206
- "kind": "Variable",
3207
- "name": {
3208
- "kind": "Name",
3209
- "value": "publishType"
3210
- }
3211
- },
3212
- "type": {
3213
- "kind": "NamedType",
3214
- "name": {
3215
- "kind": "Name",
3216
- "value": "PublishType"
3217
- }
3218
- },
3219
- "directives": []
3220
- }
3221
- ],
3222
- "directives": [],
3223
- "selectionSet": {
3224
- "kind": "SelectionSet",
3225
- "selections": [{
3226
- "kind": "Field",
3227
- "name": {
3228
- "kind": "Name",
3229
- "value": "nodeEndpointConfigs"
3230
- },
3231
- "arguments": [
3232
- {
3233
- "kind": "Argument",
3234
- "name": {
3235
- "kind": "Name",
3236
- "value": "pagination"
3237
- },
3238
- "value": {
3239
- "kind": "Variable",
3240
- "name": {
3241
- "kind": "Name",
3242
- "value": "pagination"
3243
- }
3244
- }
3245
- },
3246
- {
3247
- "kind": "Argument",
3248
- "name": {
3249
- "kind": "Name",
3250
- "value": "status"
3251
- },
3252
- "value": {
3253
- "kind": "Variable",
3254
- "name": {
3255
- "kind": "Name",
3256
- "value": "status"
3257
- }
3258
- }
3259
- },
3260
- {
3261
- "kind": "Argument",
3262
- "name": {
3263
- "kind": "Name",
3264
- "value": "publishType"
3265
- },
3266
- "value": {
3267
- "kind": "Variable",
3268
- "name": {
3269
- "kind": "Name",
3270
- "value": "publishType"
3271
- }
3272
- }
3273
- }
3274
- ],
3275
- "directives": [],
3276
- "selectionSet": {
3277
- "kind": "SelectionSet",
3278
- "selections": [{
3279
- "kind": "Field",
3280
- "name": {
3281
- "kind": "Name",
3282
- "value": "configs"
3283
- },
3284
- "arguments": [],
3285
- "directives": [],
3286
- "selectionSet": {
3287
- "kind": "SelectionSet",
3288
- "selections": [
3289
- {
3290
- "kind": "Field",
3291
- "name": {
3292
- "kind": "Name",
3293
- "value": "id"
3294
- },
3295
- "arguments": [],
3296
- "directives": []
3297
- },
3298
- {
3299
- "kind": "Field",
3300
- "name": {
3301
- "kind": "Name",
3302
- "value": "nodeType"
3303
- },
3304
- "arguments": [],
3305
- "directives": []
3306
- },
3307
- {
3308
- "kind": "Field",
3309
- "name": {
3310
- "kind": "Name",
3311
- "value": "nodeVersion"
3312
- },
3313
- "arguments": [],
3314
- "directives": []
3315
- },
3316
- {
3317
- "kind": "Field",
3318
- "name": {
3319
- "kind": "Name",
3320
- "value": "name"
3321
- },
3322
- "arguments": [],
3323
- "directives": []
3324
- },
3325
- {
3326
- "kind": "Field",
3327
- "name": {
3328
- "kind": "Name",
3329
- "value": "description"
3330
- },
3331
- "arguments": [],
3332
- "directives": []
3333
- },
3334
- {
3335
- "kind": "Field",
3336
- "name": {
3337
- "kind": "Name",
3338
- "value": "icon"
3339
- },
3340
- "arguments": [],
3341
- "directives": []
3342
- },
3343
- {
3344
- "kind": "Field",
3345
- "name": {
3346
- "kind": "Name",
3347
- "value": "category"
3348
- },
3349
- "arguments": [],
3350
- "directives": []
3351
- },
3352
- {
3353
- "kind": "Field",
3354
- "name": {
3355
- "kind": "Name",
3356
- "value": "kind"
3357
- },
3358
- "arguments": [],
3359
- "directives": []
3360
- },
3361
- {
3362
- "kind": "Field",
3363
- "name": {
3364
- "kind": "Name",
3365
- "value": "operations"
3366
- },
3367
- "arguments": [],
3368
- "directives": []
3369
- },
3370
- {
3371
- "kind": "Field",
3372
- "name": {
3373
- "kind": "Name",
3374
- "value": "endpointUrl"
3375
- },
3376
- "arguments": [],
3377
- "directives": []
3378
- },
3379
- {
3380
- "kind": "Field",
3381
- "name": {
3382
- "kind": "Name",
3383
- "value": "status"
3384
- },
3385
- "arguments": [],
3386
- "directives": []
3387
- },
3388
- {
3389
- "kind": "Field",
3390
- "name": {
3391
- "kind": "Name",
3392
- "value": "publishType"
3393
- },
3394
- "arguments": [],
3395
- "directives": []
3396
- },
3397
- {
3398
- "kind": "Field",
3399
- "name": {
3400
- "kind": "Name",
3401
- "value": "isLatest"
3402
- },
3403
- "arguments": [],
3404
- "directives": []
3405
- },
3406
- {
3407
- "kind": "Field",
3408
- "name": {
3409
- "kind": "Name",
3410
- "value": "keywords"
3411
- },
3412
- "arguments": [],
3413
- "directives": []
3414
- },
3415
- {
3416
- "kind": "Field",
3417
- "name": {
3418
- "kind": "Name",
3419
- "value": "author"
3420
- },
3421
- "arguments": [],
3422
- "directives": []
3423
- },
3424
- {
3425
- "kind": "Field",
3426
- "name": {
3427
- "kind": "Name",
3428
- "value": "favicon"
3429
- },
3430
- "arguments": [],
3431
- "directives": []
3432
- },
3433
- {
3434
- "kind": "Field",
3435
- "name": {
3436
- "kind": "Name",
3437
- "value": "logo"
962
+ "kind": "Field",
963
+ "name": {
964
+ "kind": "Name",
965
+ "value": "id"
966
+ },
967
+ "arguments": [],
968
+ "directives": []
3438
969
  },
3439
- "arguments": [],
3440
- "directives": []
3441
- },
3442
- {
3443
- "kind": "Field",
3444
- "name": {
3445
- "kind": "Name",
3446
- "value": "alias"
970
+ {
971
+ "kind": "Field",
972
+ "name": {
973
+ "kind": "Name",
974
+ "value": "nodeId"
975
+ },
976
+ "arguments": [],
977
+ "directives": []
3447
978
  },
3448
- "arguments": [],
3449
- "directives": []
3450
- },
3451
- {
3452
- "kind": "Field",
3453
- "name": {
3454
- "kind": "Name",
3455
- "value": "healthCheckUrl"
979
+ {
980
+ "kind": "Field",
981
+ "name": {
982
+ "kind": "Name",
983
+ "value": "nodeType"
984
+ },
985
+ "arguments": [],
986
+ "directives": []
3456
987
  },
3457
- "arguments": [],
3458
- "directives": []
3459
- },
3460
- {
3461
- "kind": "Field",
3462
- "name": {
3463
- "kind": "Name",
3464
- "value": "createdAt"
988
+ {
989
+ "kind": "Field",
990
+ "name": {
991
+ "kind": "Name",
992
+ "value": "status"
993
+ },
994
+ "arguments": [],
995
+ "directives": []
3465
996
  },
3466
- "arguments": [],
3467
- "directives": []
3468
- },
3469
- {
3470
- "kind": "Field",
3471
- "name": {
3472
- "kind": "Name",
3473
- "value": "updatedAt"
997
+ {
998
+ "kind": "Field",
999
+ "name": {
1000
+ "kind": "Name",
1001
+ "value": "error"
1002
+ },
1003
+ "arguments": [],
1004
+ "directives": []
3474
1005
  },
3475
- "arguments": [],
3476
- "directives": []
3477
- }
3478
- ]
3479
- }
3480
- }, {
3481
- "kind": "Field",
3482
- "name": {
3483
- "kind": "Name",
3484
- "value": "pagination"
3485
- },
3486
- "arguments": [],
3487
- "directives": [],
3488
- "selectionSet": {
3489
- "kind": "SelectionSet",
3490
- "selections": [
3491
- {
3492
- "kind": "Field",
3493
- "name": {
3494
- "kind": "Name",
3495
- "value": "total"
1006
+ {
1007
+ "kind": "Field",
1008
+ "name": {
1009
+ "kind": "Name",
1010
+ "value": "startTime"
1011
+ },
1012
+ "arguments": [],
1013
+ "directives": []
3496
1014
  },
3497
- "arguments": [],
3498
- "directives": []
3499
- },
3500
- {
3501
- "kind": "Field",
3502
- "name": {
3503
- "kind": "Name",
3504
- "value": "limit"
1015
+ {
1016
+ "kind": "Field",
1017
+ "name": {
1018
+ "kind": "Name",
1019
+ "value": "endTime"
1020
+ },
1021
+ "arguments": [],
1022
+ "directives": []
3505
1023
  },
3506
- "arguments": [],
3507
- "directives": []
3508
- },
3509
- {
3510
- "kind": "Field",
3511
- "name": {
3512
- "kind": "Name",
3513
- "value": "offset"
1024
+ {
1025
+ "kind": "Field",
1026
+ "name": {
1027
+ "kind": "Name",
1028
+ "value": "duration"
1029
+ },
1030
+ "arguments": [],
1031
+ "directives": []
3514
1032
  },
3515
- "arguments": [],
3516
- "directives": []
3517
- },
3518
- {
3519
- "kind": "Field",
3520
- "name": {
3521
- "kind": "Name",
3522
- "value": "hasMore"
1033
+ {
1034
+ "kind": "Field",
1035
+ "name": {
1036
+ "kind": "Name",
1037
+ "value": "usedPinnedData"
1038
+ },
1039
+ "arguments": [],
1040
+ "directives": []
3523
1041
  },
3524
- "arguments": [],
3525
- "directives": []
3526
- }
3527
- ]
1042
+ {
1043
+ "kind": "Field",
1044
+ "name": {
1045
+ "kind": "Name",
1046
+ "value": "reusedFromRunId"
1047
+ },
1048
+ "arguments": [],
1049
+ "directives": []
1050
+ }
1051
+ ]
1052
+ }
3528
1053
  }
3529
- }]
1054
+ ]
3530
1055
  }
3531
1056
  }]
3532
1057
  }
@@ -5879,338 +3404,6 @@ function prepareNodeForSave$1(node, slimData) {
5879
3404
  };
5880
3405
  }
5881
3406
 
5882
- // src/builder/lib/workflow-save-state.ts
5883
- /**
5884
- * Pure pieces of builder autosave (BOFF-9724): what counts as an unsaved
5885
- * change, how saves queue, which failures are worth retrying, and whether a
5886
- * workflow may be saved without being asked.
5887
- *
5888
- * Kept free of React and the store so they run under `bun test` with no DOM.
5889
- */
5890
- /**
5891
- * Fields React Flow (or the canvas) writes on its own: selection, drag and
5892
- * resize flags, and the measured size. None of them is an edit, so a click
5893
- * or the first render after loading must not mark the workflow unsaved.
5894
- */
5895
- const VOLATILE_NODE_KEYS = /* @__PURE__ */ new Set([
5896
- "selected",
5897
- "dragging",
5898
- "resizing",
5899
- "measured",
5900
- "positionAbsolute"
5901
- ]);
5902
- const VOLATILE_EDGE_KEYS = /* @__PURE__ */ new Set(["selected"]);
5903
- function withoutKeys(value, keys) {
5904
- return Object.fromEntries(Object.entries(value).filter(([key]) => !keys.has(key)));
5905
- }
5906
- /** JSON with object keys sorted, so key order never changes the result. */
5907
- function stableStringify(value) {
5908
- return JSON.stringify(value, (_key, inner) => {
5909
- if (inner && typeof inner === "object" && !Array.isArray(inner)) return Object.fromEntries(Object.entries(inner).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0));
5910
- return inner;
5911
- });
5912
- }
5913
- /** cyrb53: a fast 53-bit string hash, so a fingerprint stays small. */
5914
- function hash53(text) {
5915
- let h1 = 3735928559;
5916
- let h2 = 1103547991;
5917
- for (let i = 0; i < text.length; i += 1) {
5918
- const ch = text.charCodeAt(i);
5919
- h1 = Math.imul(h1 ^ ch, 2654435761);
5920
- h2 = Math.imul(h2 ^ ch, 1597334677);
5921
- }
5922
- h1 = Math.imul(h1 ^ h1 >>> 16, 2246822507);
5923
- h1 ^= Math.imul(h2 ^ h2 >>> 13, 3266489909);
5924
- h2 = Math.imul(h2 ^ h2 >>> 16, 2246822507);
5925
- h2 ^= Math.imul(h1 ^ h1 >>> 13, 3266489909);
5926
- return (4294967296 * (2097151 & h2) + (h1 >>> 0)).toString(36);
5927
- }
5928
- /**
5929
- * A short fingerprint of what a save would write. Two workflows with the same
5930
- * fingerprint save the same definition; sticky notes count, since they live
5931
- * among the canvas nodes. A blank alias and no alias are the same thing.
5932
- */
5933
- function workflowFingerprint(workflow) {
5934
- return hash53(stableStringify({
5935
- name: workflow.name ?? "",
5936
- alias: workflow.alias?.trim() ?? "",
5937
- nodes: workflow.nodes.map((n) => withoutKeys(n, VOLATILE_NODE_KEYS)),
5938
- edges: workflow.edges.map((e) => withoutKeys(e, VOLATILE_EDGE_KEYS))
5939
- }));
5940
- }
5941
- /**
5942
- * The build a version runs, from its stored `definitionJson.code.buildId`
5943
- * (spec code-first 01 §5), or undefined for a version that runs no code.
5944
- * Read the way the service reads it, so the builder and the service agree on
5945
- * which versions are immutable.
5946
- */
5947
- function codeBuildIdOf(definitionJson) {
5948
- if (typeof definitionJson !== "object" || definitionJson === null || Array.isArray(definitionJson)) return;
5949
- const code = definitionJson.code;
5950
- if (typeof code !== "object" || code === null || Array.isArray(code)) return;
5951
- const buildId = code.buildId;
5952
- return typeof buildId === "string" && buildId !== "" ? buildId : void 0;
5953
- }
5954
- /**
5955
- * Whether a save writes the open version in place. Only a stored draft that
5956
- * runs no code is changed in place. A version that runs code is immutable
5957
- * (spec code-first 06 §1: the service refuses an in-place change with "create
5958
- * a new version"), and an active or archived version is kept as it was; both
5959
- * keep edits as a new draft version instead.
5960
- */
5961
- function savesInPlace(workflow) {
5962
- return !!workflow.dbId && (!workflow.status || workflow.status === "DRAFT") && !workflow.codeBuildId;
5963
- }
5964
- /**
5965
- * Only a version that saves in place is saved without being asked. Any other
5966
- * save creates a new draft version and reopens the editor on it, so doing
5967
- * that on every edit would pile up versions and wipe undo history.
5968
- */
5969
- function canAutosave(workflow) {
5970
- return savesInPlace(workflow);
5971
- }
5972
- /** Delays before each retry of a failed autosave; then it stops and says so. */
5973
- const AUTOSAVE_RETRY_DELAYS_MS = [
5974
- 2e3,
5975
- 5e3,
5976
- 15e3
5977
- ];
5978
- /** Quiet time after the last edit before an autosave starts. */
5979
- const AUTOSAVE_DEBOUNCE_MS = 2e3;
5980
- /**
5981
- * Error codes that mean "the same request will fail again": the input, the
5982
- * caller's rights or the workflow's state is wrong, not the network.
5983
- */
5984
- const PERMANENT_ERROR_CODES = /* @__PURE__ */ new Set([
5985
- "BAD_USER_INPUT",
5986
- "GRAPHQL_VALIDATION_FAILED",
5987
- "GRAPHQL_PARSE_FAILED",
5988
- "UNAUTHENTICATED",
5989
- "FORBIDDEN",
5990
- "NOT_FOUND",
5991
- "FAILED_PRECONDITION",
5992
- "CONFLICT"
5993
- ]);
5994
- function textOf(value) {
5995
- return typeof value === "string" && value.length > 0 ? value : null;
5996
- }
5997
- /** The conflict a refused save carries, or null when it was refused for another reason. */
5998
- function findSaveConflict(error) {
5999
- const extensions = collectExtensions(error).find((ext) => ext.code === "CONFLICT" && (ext.reason === "STALE_REVISION" || ext.reason === "EDIT_LEASE_HELD"));
6000
- if (!extensions) return null;
6001
- const revision = extensions.currentRevision;
6002
- return {
6003
- reason: extensions.reason,
6004
- currentRevision: typeof revision === "number" && Number.isFinite(revision) ? revision : null,
6005
- currentStatus: textOf(extensions.currentStatus),
6006
- updatedById: textOf(extensions.updatedById),
6007
- holderActorId: textOf(extensions.holderActorId)
6008
- };
6009
- }
6010
- /** Whether a failed save is worth retrying on its own. */
6011
- function classifySaveFailure(error) {
6012
- if (findQuotaRefusal(error)) return "quota";
6013
- if (findSaveConflict(error)) return "conflict";
6014
- if (errorCodesOf(error).some((code) => PERMANENT_ERROR_CODES.has(code))) return "permanent";
6015
- return "transient";
6016
- }
6017
- /**
6018
- * Read a failed save into what the editor shows about it.
6019
- *
6020
- * The message is the server's own: an Apollo 4 `ServerError` (the gateway's
6021
- * 429 quota refusal, any non-2xx GraphQL answer) only says "Response not
6022
- * successful: Received status code …", so the GraphQL error in its body is
6023
- * read instead (`describeOperationError`). The quota refusal and the conflict
6024
- * are looked up across the error and its `cause`, which is where
6025
- * `throwIfResultError` keeps the original.
6026
- */
6027
- function saveFailureOf(error) {
6028
- const quota = findQuotaRefusal(error);
6029
- const conflict = findSaveConflict(error);
6030
- return {
6031
- message: describeOperationError(error),
6032
- kind: classifySaveFailure(error),
6033
- ...conflict ? { conflict } : {},
6034
- ...quota ? { quota } : {}
6035
- };
6036
- }
6037
- /**
6038
- * Whether a failed save gets an error toast. A quota refusal is explained by
6039
- * the plan dialog and a conflict by the conflict dialog or the edit-lease
6040
- * banner; an autosave reports only in the header's save state.
6041
- */
6042
- function toastsSaveFailure(failure, silent) {
6043
- return !silent && failure.kind !== "quota" && failure.kind !== "conflict";
6044
- }
6045
- function saveFailureActionOf(failure) {
6046
- if (failure.conflict?.reason === "STALE_REVISION") return "resolve";
6047
- if (failure.quota) return "view-plans";
6048
- if (failure.kind === "transient") return "retry";
6049
- return "none";
6050
- }
6051
- /**
6052
- * One save at a time for the whole editor. A save asked for while another is
6053
- * running waits its turn. Queued saves of the same workflow (`key`, the load
6054
- * generation it was taken from) collapse into one that runs with the newest
6055
- * request's task, and every caller that asked gets that save's result; saves
6056
- * of different workflows never collapse, so leaving one workflow and opening
6057
- * another still saves the first. Two clicks therefore never send two
6058
- * overlapping writes, and an edit made during a save is still saved.
6059
- */
6060
- function createSaveQueue() {
6061
- let running = false;
6062
- const queued = [];
6063
- async function drain(task) {
6064
- running = true;
6065
- try {
6066
- return await task().catch(() => false);
6067
- } finally {
6068
- running = false;
6069
- const next = queued.shift();
6070
- if (next) drain(next.task).then((saved) => next.waiters.forEach((resolve) => resolve(saved)));
6071
- }
6072
- }
6073
- return {
6074
- run(task, key) {
6075
- if (!running) return drain(task);
6076
- return new Promise((resolve) => {
6077
- const last = queued[queued.length - 1];
6078
- if (last && last.key === key) {
6079
- last.task = task;
6080
- last.waiters.push(resolve);
6081
- } else queued.push({
6082
- key,
6083
- task,
6084
- waiters: [resolve]
6085
- });
6086
- });
6087
- },
6088
- get busy() {
6089
- return running;
6090
- }
6091
- };
6092
- }
6093
- /** Top-level `definitionJson` keys the builder writes on every save. */
6094
- const BUILDER_OWNED_DEFINITION_KEYS = [
6095
- "key",
6096
- "name",
6097
- "description",
6098
- "workflow_type",
6099
- "data",
6100
- "meta",
6101
- "tags"
6102
- ];
6103
- function isPlainRecord(value) {
6104
- return typeof value === "object" && value !== null && !Array.isArray(value);
6105
- }
6106
- /**
6107
- * The `definitionJson` a save writes: what the builder owns (the canvas under
6108
- * `data`, plus key/name/meta/tags) laid over the stored definition, so
6109
- * everything else survives the save. That matters for `config`, where the
6110
- * Settings page keeps the timeout, error workflow, data saving and retention,
6111
- * and for any `data` field the canvas does not hold.
6112
- */
6113
- function mergeDefinitionJson(existing, owned) {
6114
- const stored = isPlainRecord(existing) ? existing : {};
6115
- const kept = Object.fromEntries(Object.entries(stored).filter(([key]) => !BUILDER_OWNED_DEFINITION_KEYS.includes(key)));
6116
- const storedData = isPlainRecord(stored.data) ? stored.data : {};
6117
- return {
6118
- ...kept,
6119
- ...owned,
6120
- data: {
6121
- ...storedData,
6122
- ...owned.data
6123
- }
6124
- };
6125
- }
6126
- /** localStorage key of the per-browser "Auto-save drafts" preference. */
6127
- const AUTOSAVE_PREFERENCE_KEY = "fluidgrids.builder.autosaveDrafts";
6128
- /**
6129
- * Whether drafts save themselves. On unless the person turned it off; a
6130
- * storage that cannot be read (private window, blocked site data) keeps it on.
6131
- */
6132
- function readAutosavePreference(storage) {
6133
- try {
6134
- return storage?.getItem(AUTOSAVE_PREFERENCE_KEY) !== "false";
6135
- } catch {
6136
- return true;
6137
- }
6138
- }
6139
- /** Remember the choice; false when it could not be stored. */
6140
- function writeAutosavePreference(storage, enabled) {
6141
- try {
6142
- if (!storage) return false;
6143
- storage.setItem(AUTOSAVE_PREFERENCE_KEY, enabled ? "true" : "false");
6144
- return true;
6145
- } catch {
6146
- return false;
6147
- }
6148
- }
6149
- /**
6150
- * Whether leaving the editor needs the person's say-so. A draft that can
6151
- * save itself is saved on the way out instead; anything else with unsaved
6152
- * changes (an active version, autosave off, an incomplete flow, a failed
6153
- * save) would lose them.
6154
- */
6155
- function leaveNeedsConfirmation(state) {
6156
- return state.dirty && (!state.autosaveAllowed || state.incomplete || state.failed);
6157
- }
6158
- function runPreparationOf(state) {
6159
- if (!state.dirty) return "run";
6160
- return leaveNeedsConfirmation(state) ? "confirm" : "save-first";
6161
- }
6162
- /**
6163
- * The in-app path a link click goes to, or null when the click is not an
6164
- * in-app navigation away from the current page (another origin, a new tab,
6165
- * a download, the same page, or a modified click the browser handles).
6166
- */
6167
- function inAppLeaveTarget(link, click, location) {
6168
- if (click.button !== 0 || click.modified) return null;
6169
- if (link.download) return null;
6170
- if (link.target && link.target !== "_self") return null;
6171
- let url;
6172
- try {
6173
- url = new URL(link.href, location.origin);
6174
- } catch {
6175
- return null;
6176
- }
6177
- if (url.origin !== location.origin) return null;
6178
- if (url.pathname === location.pathname) return null;
6179
- return `${url.pathname}${url.search}${url.hash}`;
6180
- }
6181
- /**
6182
- * The baseline with its settle window open again, after the node registry
6183
- * redrew the canvas (BOFF-11754). The canvas is drawn before every node type
6184
- * on it is registered: an installed store node read after the workflow
6185
- * arrived, or one installed from the missing-nodes dialog, swaps its card for
6186
- * the real one, which measures and normalises itself as right after a load.
6187
- * Until the person edits (`editRevision` unchanged since the load), that is
6188
- * the canvas settling, not unsaved work. Null keeps the baseline as it is: no
6189
- * baseline, one from another load, or one taken after a save or an edit.
6190
- */
6191
- function resettledBaseline(baseline, current, now, settleMs) {
6192
- if (!baseline || baseline.generation !== current.generation) return null;
6193
- if (baseline.editRevision === void 0 || baseline.editRevision !== current.editRevision) return null;
6194
- return {
6195
- ...baseline,
6196
- settleUntil: Math.max(baseline.settleUntil ?? 0, now + settleMs)
6197
- };
6198
- }
6199
- /**
6200
- * Compare the canvas with the baseline (what was loaded or last saved).
6201
- *
6202
- * "settling": it differs, but only through changes the canvas made on its own
6203
- * right after the load (no edit since, and the settle window is still open),
6204
- * so the baseline should move instead. A baseline from another load
6205
- * generation says nothing about this canvas: "clean".
6206
- */
6207
- function editStateOf(baseline, current, now) {
6208
- if (!baseline || baseline.generation !== current.generation) return "clean";
6209
- if (current.fingerprint === baseline.fingerprint) return "clean";
6210
- if (baseline.settleUntil !== void 0 && now < baseline.settleUntil && current.editRevision === baseline.editRevision) return "settling";
6211
- return "dirty";
6212
- }
6213
-
6214
3407
  // src/builder/lib/workflow-revisions.ts
6215
3408
  /**
6216
3409
  * The revision of each saved workflow version this page has open (BOFF-9725).
@@ -6627,10 +3820,19 @@ function saveIndicatorOf(state) {
6627
3820
  const BLANK_WORKFLOW_NAME = "Untitled Workflow";
6628
3821
  /** The first version of a blank workflow. */
6629
3822
  const BLANK_WORKFLOW_VERSION = "v1";
3823
+ /**
3824
+ * The name a new workflow gets: the one typed (trimmed), else the blank name.
3825
+ * Navigation v2's create dialog asks for a name (BOFF-11843); every other
3826
+ * caller keeps the blank name.
3827
+ */
3828
+ function workflowCreateName(name) {
3829
+ const trimmed = name?.trim();
3830
+ return trimmed ? trimmed : BLANK_WORKFLOW_NAME;
3831
+ }
6630
3832
  /** The canvas state of a blank workflow (no nodes, the node store open). */
6631
- function blankWorkflowCanvas() {
3833
+ function blankWorkflowCanvas(name = BLANK_WORKFLOW_NAME) {
6632
3834
  return {
6633
- name: BLANK_WORKFLOW_NAME,
3835
+ name,
6634
3836
  edges: [],
6635
3837
  nodes: [],
6636
3838
  sidebar: {
@@ -6643,20 +3845,21 @@ function blankWorkflowCanvas() {
6643
3845
  * The `createWorkflowDefinition` input for a blank workflow at `key`/`version`.
6644
3846
  * The definition shape is the one the builder has always written for a new
6645
3847
  * workflow, so a workflow created here opens exactly like one created there.
3848
+ * `name` is the name typed in the create dialog; without one the workflow is
3849
+ * "Untitled Workflow".
6646
3850
  */
6647
- function blankWorkflowCreateInput(key, version = "v1") {
6648
- const canvas = blankWorkflowCanvas();
3851
+ function blankWorkflowCreateInput(key, version = "v1", name) {
3852
+ const workflowName = workflowCreateName(name);
6649
3853
  return {
6650
3854
  workflowKey: key,
6651
3855
  version,
6652
- name: BLANK_WORKFLOW_NAME,
3856
+ name: workflowName,
6653
3857
  definitionJson: {
6654
3858
  key,
6655
- name: BLANK_WORKFLOW_NAME,
6656
- description: BLANK_WORKFLOW_NAME,
3859
+ name: workflowName,
6657
3860
  workflow_type: "query-conditional",
6658
3861
  data: {
6659
- ...canvas,
3862
+ ...blankWorkflowCanvas(workflowName),
6660
3863
  id: key,
6661
3864
  workflowKey: key,
6662
3865
  version
@@ -6701,7 +3904,7 @@ async function createThenOpen(deps, options = {}) {
6701
3904
  let reported = null;
6702
3905
  let created = null;
6703
3906
  try {
6704
- created = await deps.create(blankWorkflowCreateInput(key), { onError: (error) => {
3907
+ created = await deps.create(blankWorkflowCreateInput(key, "v1", options.name), { onError: (error) => {
6705
3908
  reported = error;
6706
3909
  } });
6707
3910
  } catch (error) {
@@ -11713,4 +8916,4 @@ function useFluidGridsContext() {
11713
8916
  return context;
11714
8917
  }
11715
8918
 
11716
- export { resolveLoadOptionsSpec as $, resettledBaseline as $t, describeRunError as A, BuilderRunStatusDocument as An, useEditLeaseStore as At, coerceNumber as B, connectionsForAdapter as Bn, EDIT_SESSION_ID as Bt, getNodeMetadata as C, payloadFromCardValues as Cn, classifyCreateRefusal as Ct, runQuestions as D, NodeManifestsDocument as Dn, useSaveStatusStore as Dt, isFailedStatus as E, NodePaletteEntriesDocument as En, saveIndicatorOf as Et, useInsertNode as F, CreateWorkflowDefinitionDocument as Fn, phaseAfterAcquire as Ft, paramsFromOperation as G, getNodeDetail as Gn, rememberRevision as Gt, nodeSubtitle as H, matchesAdapterProvider as Hn, rememberSessionForReload as Ht, MissingParametersDialog as I, ExecutionsListDocument as In, phaseAfterTakeOver as It, resolveUiSpec as J, useMarkdownRenderer as Jn, AUTOSAVE_RETRY_DELAYS_MS as Jt, selectedOperationOf as K, buildStickyNode as Kn, revisionOf as Kt, useRunGuard as L, ExecutionDetailDocument as Ln, releasesOnClose as Lt, SENSITIVE_PARAM as M, TriggerWorkflowDocument as Mn, isLocked as Mt, buildOperationSeed as N, SaveWorkflowDraftDocument as Nn, leaseCallQueue as Nt, runStepQuestions as O, NodeEndpointConfigsDocument as On, workflowSaveQueue as Ot, createConfiguredNode as P, CreateWorkflowVersionDocument as Pn, leaseCallSequence as Pt, optionListValues as Q, inAppLeaveTarget as Qt, workflowParameterIssues as R, RunFromNodeDocument as Rn, shouldReleaseForIdle as Rt, fetchAllNodeEndpointConfigs as S, parseRawSignalPayload as Sn, builderPathOf as St, failureQuestions as T, signalPayloadCard as Tn, refusalOfQuota as Tt, nodeTitle as U, newConnectionProviderKey as Un, sessionBeforeReload as Ut, fixedParameterState as V, isOptionalAdapter as Vn, forgetSessionForReload as Vt, optionText as W, replaceAdapterConnections as Wn, rememberOwnStatusChange as Wt, isStringOptionList as X, codeBuildIdOf as Xt, stripSubmitActions as Y, canAutosave as Yt, optionListText as Z, findSaveConflict as Zt, registerNodeManifests as _, loadDefinitionJson as _n, watchLeavingLosesChanges as _t, NODES_METADATA as a, runDurationMs as an, latestNodeLog as at, scheduleNodePaletteLoad as b, declaredSignals as bn, useSaveWorkflow as bt, ensureInstalledNodeTypesLoaded as c, structuredParameterType as cn, useGuardedNavigate as ct, ensureNodeTypesLoaded as d, isParamVisible as dn, departingSave as dt, saveFailureActionOf as en, ConditionTreeBuilder as et, ensureRegistryNodeTypesLoaded as f, useFluidGridsAnalytics as fn, editStateFor as ft, refetchStoreNodes as g, clearCodeWorkflowDefinitionCache as gn, touchesSavedFields as gt, prefetchNodeType as h, useNodeRegistryRevision as hn, savedEverythingBeforeLeaving as ht, AVAILABLE_NODES as i, nodeStateDurationMs as in, parseMappingValue as it, describeRunStep as j, BuilderRunNodeDetailsDocument as jn, bannerOf as jt, describeRun as k, EventRegistrationsDocument as kn, useEditLeaseLocked as kt, ensureNodeConfigsLoaded as l, fieldsFromValue as ln, useManualSave as lt, onNodeTypesUpdate as m, useCanvasEdges as mn, leavingLosesChanges as mt, FluidGridsProvider as n, useNodeExecution as nn, casesFromRules as nt, NODE_CONFIGS as o, formatParameterValue as on, boundFieldsOf as ot, isNodeConfigsInitialized as p, openRunQuotaUpgradePrompt as pn, editingLeaseLocked as pt, useNodeConfig as q, loadMarkdown as qn, AUTOSAVE_DEBOUNCE_MS as qt, useFluidGridsContext as r, formatElapsedMs as rn, FieldTree as rt, NODE_TYPES as s, parseParameterValue as sn, missingRequiredParameters as st, FluidGridsContext as t, workflowFingerprint as tn, SwitchRulesEditor as tt, ensureNodeTypeReady as u, resolveNodeOperation as un, autosaveAllowedFor as ut, registerWorkflowNodeTypes as v, useCodeWorkflowInterface as vn, isFlowComplete as vt, useLatestFailedRun as w, runSignalTargets as wn, createThenOpen as wt, GetMyNodeInstallationsDocument as x, durableInterfaceOf as xn, blankWorkflowCreateInput as xt, registryNodeData as y, canSignalRun as yn, useFlowValidator as yt, asRecord as z, ExecuteStepDocument as zn, tickAction as zt };
8919
+ export { resolveLoadOptionsSpec as $, structuredParameterType as $t, describeRunError as A, useMarkdownRenderer as An, useEditLeaseStore as At, coerceNumber as B, EDIT_SESSION_ID as Bt, getNodeMetadata as C, isOptionalAdapter as Cn, classifyCreateRefusal as Ct, runQuestions as D, getNodeDetail as Dn, useSaveStatusStore as Dt, isFailedStatus as E, replaceAdapterConnections as En, saveIndicatorOf as Et, useInsertNode as F, phaseAfterAcquire as Ft, paramsFromOperation as G, rememberRevision as Gt, nodeSubtitle as H, rememberSessionForReload as Ht, MissingParametersDialog as I, phaseAfterTakeOver as It, resolveUiSpec as J, formatElapsedMs as Jt, selectedOperationOf as K, revisionOf as Kt, useRunGuard as L, releasesOnClose as Lt, SENSITIVE_PARAM as M, isLocked as Mt, buildOperationSeed as N, leaseCallQueue as Nt, runStepQuestions as O, buildStickyNode as On, workflowSaveQueue as Ot, createConfiguredNode as P, leaseCallSequence as Pt, optionListValues as Q, parseParameterValue as Qt, workflowParameterIssues as R, shouldReleaseForIdle as Rt, fetchAllNodeEndpointConfigs as S, connectionsForAdapter as Sn, builderPathOf as St, failureQuestions as T, newConnectionProviderKey as Tn, refusalOfQuota as Tt, nodeTitle as U, sessionBeforeReload as Ut, fixedParameterState as V, forgetSessionForReload as Vt, optionText as W, rememberOwnStatusChange as Wt, isStringOptionList as X, runDurationMs as Xt, stripSubmitActions as Y, nodeStateDurationMs as Yt, optionListText as Z, formatParameterValue as Zt, registerNodeManifests as _, NodePaletteEntriesDocument as _n, watchLeavingLosesChanges as _t, NODES_METADATA as a, useCanvasEdges as an, latestNodeLog as at, scheduleNodePaletteLoad as b, BuilderRunNodeDetailsDocument as bn, useSaveWorkflow as bt, ensureInstalledNodeTypesLoaded as c, loadDefinitionJson as cn, useGuardedNavigate as ct, ensureNodeTypesLoaded as d, declaredSignals as dn, departingSave as dt, fieldsFromValue as en, ConditionTreeBuilder as et, ensureRegistryNodeTypesLoaded as f, durableInterfaceOf as fn, editStateFor as ft, refetchStoreNodes as g, signalPayloadCard as gn, touchesSavedFields as gt, prefetchNodeType as h, runSignalTargets as hn, savedEverythingBeforeLeaving as ht, AVAILABLE_NODES as i, openRunQuotaUpgradePrompt as in, parseMappingValue as it, describeRunStep as j, bannerOf as jt, describeRun as k, loadMarkdown as kn, useEditLeaseLocked as kt, ensureNodeConfigsLoaded as l, useCodeWorkflowInterface as ln, useManualSave as lt, onNodeTypesUpdate as m, payloadFromCardValues as mn, leavingLosesChanges as mt, FluidGridsProvider as n, isParamVisible as nn, casesFromRules as nt, NODE_CONFIGS as o, useNodeRegistryRevision as on, boundFieldsOf as ot, isNodeConfigsInitialized as p, parseRawSignalPayload as pn, editingLeaseLocked as pt, useNodeConfig as q, useNodeExecution as qt, useFluidGridsContext as r, useFluidGridsAnalytics as rn, FieldTree as rt, NODE_TYPES as s, clearCodeWorkflowDefinitionCache as sn, missingRequiredParameters as st, FluidGridsContext as t, resolveNodeOperation as tn, SwitchRulesEditor as tt, ensureNodeTypeReady as u, canSignalRun as un, autosaveAllowedFor as ut, registerWorkflowNodeTypes as v, NodeManifestsDocument as vn, isFlowComplete as vt, useLatestFailedRun as w, matchesAdapterProvider as wn, createThenOpen as wt, GetMyNodeInstallationsDocument as x, SaveWorkflowDraftDocument as xn, blankWorkflowCreateInput as xt, registryNodeData as y, BuilderRunStatusDocument as yn, useFlowValidator as yt, asRecord as z, tickAction as zt };