@reeve-iot/workflow-client 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,979 @@
1
+ {
2
+ "formatVersion": 1,
3
+ "source": "ReeveWorkflow.Editor.WorkflowEditorApiEndpoints",
4
+ "endpoints": [
5
+ {
6
+ "operation": "createWorkflow",
7
+ "method": "POST",
8
+ "path": "api/workflows",
9
+ "pathParameters": [],
10
+ "queryParameters": [],
11
+ "requestBody": {
12
+ "type": "#CreateWorkflowRequest",
13
+ "required": true
14
+ },
15
+ "responses": [
16
+ {
17
+ "status": 201,
18
+ "type": "#WorkflowResponse"
19
+ },
20
+ {
21
+ "status": 400,
22
+ "type": "#ProblemDetails"
23
+ },
24
+ {
25
+ "status": 401,
26
+ "type": "#ProblemDetails"
27
+ },
28
+ {
29
+ "status": 409,
30
+ "type": "#ProblemDetails"
31
+ },
32
+ {
33
+ "status": 503,
34
+ "type": "#WorkflowSaveUnpublishedProblemDetails"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "operation": "analyzeDraft",
40
+ "method": "POST",
41
+ "path": "api/workflows/analysis",
42
+ "pathParameters": [],
43
+ "queryParameters": [],
44
+ "requestBody": {
45
+ "type": "#DraftAnalysisRequest",
46
+ "required": true
47
+ },
48
+ "responses": [
49
+ {
50
+ "status": 200,
51
+ "type": "#DraftAnalysisResponse"
52
+ },
53
+ {
54
+ "status": 400,
55
+ "type": "#ProblemDetails"
56
+ },
57
+ {
58
+ "status": 401,
59
+ "type": "#ProblemDetails"
60
+ },
61
+ {
62
+ "status": 404,
63
+ "type": "#ProblemDetails"
64
+ },
65
+ {
66
+ "status": 503,
67
+ "type": "#ProblemDetails"
68
+ }
69
+ ]
70
+ },
71
+ {
72
+ "operation": "getInvalidCompilations",
73
+ "method": "GET",
74
+ "path": "api/workflows/compilation/invalid",
75
+ "pathParameters": [],
76
+ "queryParameters": [
77
+ {
78
+ "name": "skip",
79
+ "type": "integer",
80
+ "required": false
81
+ },
82
+ {
83
+ "name": "take",
84
+ "type": "integer",
85
+ "required": false
86
+ }
87
+ ],
88
+ "responses": [
89
+ {
90
+ "status": 200,
91
+ "type": "#CompilationReportResponse"
92
+ },
93
+ {
94
+ "status": 401,
95
+ "type": "#ProblemDetails"
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "operation": "getPortTypes",
101
+ "method": "GET",
102
+ "path": "api/workflows/port-types",
103
+ "pathParameters": [],
104
+ "queryParameters": [],
105
+ "responses": [
106
+ {
107
+ "status": 200,
108
+ "type": "#PortTypeVocabularyResponse"
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ "operation": "deleteWorkflow",
114
+ "method": "DELETE",
115
+ "path": "api/workflows/{id:guid}",
116
+ "pathParameters": [
117
+ {
118
+ "name": "id",
119
+ "type": "uuid",
120
+ "required": true
121
+ }
122
+ ],
123
+ "queryParameters": [],
124
+ "responses": [
125
+ {
126
+ "status": 204
127
+ },
128
+ {
129
+ "status": 401,
130
+ "type": "#ProblemDetails"
131
+ },
132
+ {
133
+ "status": 404,
134
+ "type": "#ProblemDetails"
135
+ },
136
+ {
137
+ "status": 409,
138
+ "type": "#ProblemDetails"
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "operation": "updateWorkflow",
144
+ "method": "PUT",
145
+ "path": "api/workflows/{id:guid}",
146
+ "pathParameters": [
147
+ {
148
+ "name": "id",
149
+ "type": "uuid",
150
+ "required": true
151
+ }
152
+ ],
153
+ "queryParameters": [],
154
+ "requestBody": {
155
+ "type": "#UpdateWorkflowRequest",
156
+ "required": true
157
+ },
158
+ "responses": [
159
+ {
160
+ "status": 200,
161
+ "type": "#WorkflowResponse"
162
+ },
163
+ {
164
+ "status": 400,
165
+ "type": "#ProblemDetails"
166
+ },
167
+ {
168
+ "status": 401,
169
+ "type": "#ProblemDetails"
170
+ },
171
+ {
172
+ "status": 404,
173
+ "type": "#ProblemDetails"
174
+ },
175
+ {
176
+ "status": 409,
177
+ "type": "#ProblemDetails"
178
+ },
179
+ {
180
+ "status": 503,
181
+ "type": "#WorkflowSaveUnpublishedProblemDetails"
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "operation": "publishWorkflow",
187
+ "method": "POST",
188
+ "path": "api/workflows/{id:guid}/publish",
189
+ "pathParameters": [
190
+ {
191
+ "name": "id",
192
+ "type": "uuid",
193
+ "required": true
194
+ }
195
+ ],
196
+ "queryParameters": [],
197
+ "responses": [
198
+ {
199
+ "status": 200,
200
+ "type": "#WorkflowResponse"
201
+ },
202
+ {
203
+ "status": 400,
204
+ "type": "#CompilationProblemDetails"
205
+ },
206
+ {
207
+ "status": 401,
208
+ "type": "#ProblemDetails"
209
+ },
210
+ {
211
+ "status": 404,
212
+ "type": "#ProblemDetails"
213
+ },
214
+ {
215
+ "status": 409,
216
+ "type": "#ProblemDetails"
217
+ },
218
+ {
219
+ "status": 500,
220
+ "type": "#ProblemDetails"
221
+ },
222
+ {
223
+ "status": 503,
224
+ "type": "#ProblemDetails"
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "operation": "rollbackWorkflow",
230
+ "method": "POST",
231
+ "path": "api/workflows/{id:guid}/versions/{versionNumber:int}/rollback",
232
+ "pathParameters": [
233
+ {
234
+ "name": "id",
235
+ "type": "uuid",
236
+ "required": true
237
+ },
238
+ {
239
+ "name": "versionNumber",
240
+ "type": "integer",
241
+ "required": true
242
+ }
243
+ ],
244
+ "queryParameters": [],
245
+ "responses": [
246
+ {
247
+ "status": 200,
248
+ "type": "#WorkflowResponse"
249
+ },
250
+ {
251
+ "status": 400,
252
+ "type": "#CompilationProblemDetails"
253
+ },
254
+ {
255
+ "status": 401,
256
+ "type": "#ProblemDetails"
257
+ },
258
+ {
259
+ "status": 404,
260
+ "type": "#ProblemDetails"
261
+ },
262
+ {
263
+ "status": 409,
264
+ "type": "#ProblemDetails"
265
+ },
266
+ {
267
+ "status": 500,
268
+ "type": "#ProblemDetails"
269
+ },
270
+ {
271
+ "status": 503,
272
+ "type": "#ProblemDetails"
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "operation": "getVersionCompilation",
278
+ "method": "GET",
279
+ "path": "api/workflows/{versionId:guid}/compilation",
280
+ "pathParameters": [
281
+ {
282
+ "name": "versionId",
283
+ "type": "uuid",
284
+ "required": true
285
+ }
286
+ ],
287
+ "queryParameters": [],
288
+ "responses": [
289
+ {
290
+ "status": 200,
291
+ "type": "#WorkflowCompilationResponse"
292
+ },
293
+ {
294
+ "status": 401,
295
+ "type": "#ProblemDetails"
296
+ },
297
+ {
298
+ "status": 404,
299
+ "type": "#ProblemDetails"
300
+ },
301
+ {
302
+ "status": 503,
303
+ "type": "#ProblemDetails"
304
+ }
305
+ ]
306
+ }
307
+ ],
308
+ "types": [
309
+ {
310
+ "name": "CanvasPathSegment",
311
+ "properties": [
312
+ {
313
+ "name": "branchName",
314
+ "type": "string"
315
+ },
316
+ {
317
+ "name": "nodeId",
318
+ "type": "string"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "name": "CompilationDiagnostic",
324
+ "properties": [
325
+ {
326
+ "name": "blockSource",
327
+ "type": "string?"
328
+ },
329
+ {
330
+ "name": "canvasPath",
331
+ "type": "#CanvasPathSegment[]"
332
+ },
333
+ {
334
+ "name": "message",
335
+ "type": "string"
336
+ },
337
+ {
338
+ "name": "nodeId",
339
+ "type": "string?"
340
+ },
341
+ {
342
+ "name": "portName",
343
+ "type": "string?"
344
+ },
345
+ {
346
+ "name": "ruleId",
347
+ "type": "string"
348
+ }
349
+ ]
350
+ },
351
+ {
352
+ "name": "CompilationProblemDetails",
353
+ "properties": [
354
+ {
355
+ "name": "code",
356
+ "type": "string?"
357
+ },
358
+ {
359
+ "name": "detail",
360
+ "type": "string"
361
+ },
362
+ {
363
+ "name": "diagnostics",
364
+ "type": "#CompilationDiagnostic[]"
365
+ },
366
+ {
367
+ "name": "status",
368
+ "type": "integer"
369
+ },
370
+ {
371
+ "name": "title",
372
+ "type": "string"
373
+ },
374
+ {
375
+ "name": "type",
376
+ "type": "string"
377
+ }
378
+ ]
379
+ },
380
+ {
381
+ "name": "CompilationReportResponse",
382
+ "properties": [
383
+ {
384
+ "name": "failed",
385
+ "type": "#CompilationVersionResponse[]"
386
+ },
387
+ {
388
+ "name": "invalid",
389
+ "type": "#WorkflowCompilationResponse[]"
390
+ },
391
+ {
392
+ "name": "shared",
393
+ "type": "#CompilationSharedVersion[]"
394
+ },
395
+ {
396
+ "name": "skip",
397
+ "type": "integer"
398
+ },
399
+ {
400
+ "name": "take",
401
+ "type": "integer"
402
+ },
403
+ {
404
+ "name": "totalCount",
405
+ "type": "integer"
406
+ },
407
+ {
408
+ "name": "unsaved",
409
+ "type": "#CompilationVersionResponse[]"
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "name": "CompilationSharedVersion",
415
+ "properties": [
416
+ {
417
+ "name": "workflowIds",
418
+ "type": "uuid[]"
419
+ },
420
+ {
421
+ "name": "workflowVersionId",
422
+ "type": "uuid"
423
+ }
424
+ ]
425
+ },
426
+ {
427
+ "name": "CompilationVersionResponse",
428
+ "properties": [
429
+ {
430
+ "name": "workflowId",
431
+ "type": "uuid"
432
+ },
433
+ {
434
+ "name": "workflowVersionId",
435
+ "type": "uuid"
436
+ }
437
+ ]
438
+ },
439
+ {
440
+ "name": "CreateWorkflowRequest",
441
+ "properties": [
442
+ {
443
+ "name": "checkpointPolicyJson",
444
+ "type": "string?"
445
+ },
446
+ {
447
+ "name": "definitionJson",
448
+ "type": "string?"
449
+ },
450
+ {
451
+ "name": "description",
452
+ "type": "string?"
453
+ },
454
+ {
455
+ "name": "executionTimeoutSeconds",
456
+ "type": "integer?"
457
+ },
458
+ {
459
+ "name": "hostMetadata",
460
+ "type": "map\u003Cstring\u003E?"
461
+ },
462
+ {
463
+ "name": "importWarningsJson",
464
+ "type": "string?"
465
+ },
466
+ {
467
+ "name": "inputParametersJson",
468
+ "type": "string?"
469
+ },
470
+ {
471
+ "name": "maxConcurrentRuns",
472
+ "type": "integer?"
473
+ },
474
+ {
475
+ "name": "maxQueuedRuns",
476
+ "type": "integer?"
477
+ },
478
+ {
479
+ "name": "mode",
480
+ "type": "string?"
481
+ },
482
+ {
483
+ "name": "name",
484
+ "type": "string"
485
+ },
486
+ {
487
+ "name": "origin",
488
+ "type": "string?"
489
+ },
490
+ {
491
+ "name": "outputParametersJson",
492
+ "type": "string?"
493
+ },
494
+ {
495
+ "name": "overflowBehavior",
496
+ "type": "string?"
497
+ },
498
+ {
499
+ "name": "retryPolicyJson",
500
+ "type": "string?"
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "name": "DraftAnalysisRequest",
506
+ "properties": [
507
+ {
508
+ "name": "definitionJson",
509
+ "type": "string?"
510
+ },
511
+ {
512
+ "name": "inputParametersJson",
513
+ "type": "string?"
514
+ },
515
+ {
516
+ "name": "outputParametersJson",
517
+ "type": "string?"
518
+ },
519
+ {
520
+ "name": "revision",
521
+ "type": "integer"
522
+ },
523
+ {
524
+ "name": "workflowId",
525
+ "type": "uuid?"
526
+ }
527
+ ]
528
+ },
529
+ {
530
+ "name": "DraftAnalysisResponse",
531
+ "properties": [
532
+ {
533
+ "name": "diagnostics",
534
+ "type": "#CompilationDiagnostic[]"
535
+ },
536
+ {
537
+ "name": "nodes",
538
+ "type": "#NodeAnalysis[]"
539
+ },
540
+ {
541
+ "name": "registryGeneration",
542
+ "type": "integer"
543
+ },
544
+ {
545
+ "name": "revision",
546
+ "type": "integer"
547
+ }
548
+ ]
549
+ },
550
+ {
551
+ "name": "NodeAnalysis",
552
+ "properties": [
553
+ {
554
+ "name": "canvasPath",
555
+ "type": "#CanvasPathSegment[]"
556
+ },
557
+ {
558
+ "name": "inputs",
559
+ "type": "#PortAnalysis[]"
560
+ },
561
+ {
562
+ "name": "nodeId",
563
+ "type": "string"
564
+ },
565
+ {
566
+ "name": "outputs",
567
+ "type": "#PortAnalysis[]"
568
+ },
569
+ {
570
+ "name": "typeArguments",
571
+ "type": "map\u003Cstring?\u003E"
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ "name": "PortAnalysis",
577
+ "properties": [
578
+ {
579
+ "name": "declared",
580
+ "type": "string?"
581
+ },
582
+ {
583
+ "name": "effective",
584
+ "type": "string?"
585
+ },
586
+ {
587
+ "name": "expression",
588
+ "type": "string?"
589
+ },
590
+ {
591
+ "name": "name",
592
+ "type": "string"
593
+ },
594
+ {
595
+ "name": "projection",
596
+ "type": "string?"
597
+ },
598
+ {
599
+ "name": "state",
600
+ "type": "string"
601
+ },
602
+ {
603
+ "name": "unbound",
604
+ "type": "string[]"
605
+ }
606
+ ]
607
+ },
608
+ {
609
+ "name": "PortCapabilityDescriptor",
610
+ "properties": [
611
+ {
612
+ "name": "associated",
613
+ "type": "string[]?"
614
+ },
615
+ {
616
+ "name": "name",
617
+ "type": "string"
618
+ }
619
+ ]
620
+ },
621
+ {
622
+ "name": "PortLiteralDescriptor",
623
+ "properties": [
624
+ {
625
+ "name": "format",
626
+ "type": "string?"
627
+ },
628
+ {
629
+ "name": "gradedAs",
630
+ "type": "string"
631
+ }
632
+ ]
633
+ },
634
+ {
635
+ "name": "PortTypeConstructorDescriptor",
636
+ "properties": [
637
+ {
638
+ "name": "allowedArguments",
639
+ "type": "string[]?"
640
+ },
641
+ {
642
+ "name": "arity",
643
+ "type": "integer"
644
+ },
645
+ {
646
+ "name": "implements",
647
+ "type": "string[]"
648
+ },
649
+ {
650
+ "name": "key",
651
+ "type": "string?"
652
+ },
653
+ {
654
+ "name": "literal",
655
+ "type": "#PortLiteralDescriptor?"
656
+ },
657
+ {
658
+ "name": "name",
659
+ "type": "string"
660
+ },
661
+ {
662
+ "name": "owner",
663
+ "type": "string"
664
+ },
665
+ {
666
+ "name": "variance",
667
+ "type": "string"
668
+ }
669
+ ]
670
+ },
671
+ {
672
+ "name": "PortTypeDescriptor",
673
+ "properties": [
674
+ {
675
+ "name": "aliases",
676
+ "type": "string[]"
677
+ },
678
+ {
679
+ "name": "implements",
680
+ "type": "string[]"
681
+ },
682
+ {
683
+ "name": "literal",
684
+ "type": "#PortLiteralDescriptor?"
685
+ },
686
+ {
687
+ "name": "name",
688
+ "type": "string"
689
+ },
690
+ {
691
+ "name": "owner",
692
+ "type": "string"
693
+ },
694
+ {
695
+ "name": "widensTo",
696
+ "type": "string[]"
697
+ }
698
+ ]
699
+ },
700
+ {
701
+ "name": "PortTypeVocabularyResponse",
702
+ "properties": [
703
+ {
704
+ "name": "capabilities",
705
+ "type": "#PortCapabilityDescriptor[]"
706
+ },
707
+ {
708
+ "name": "constructors",
709
+ "type": "#PortTypeConstructorDescriptor[]"
710
+ },
711
+ {
712
+ "name": "generation",
713
+ "type": "integer"
714
+ },
715
+ {
716
+ "name": "secretCodec",
717
+ "type": "boolean"
718
+ },
719
+ {
720
+ "name": "types",
721
+ "type": "#PortTypeDescriptor[]"
722
+ }
723
+ ]
724
+ },
725
+ {
726
+ "name": "ProblemDetails",
727
+ "properties": [
728
+ {
729
+ "name": "detail",
730
+ "type": "string?"
731
+ },
732
+ {
733
+ "name": "instance",
734
+ "type": "string?"
735
+ },
736
+ {
737
+ "name": "status",
738
+ "type": "integer?"
739
+ },
740
+ {
741
+ "name": "title",
742
+ "type": "string?"
743
+ },
744
+ {
745
+ "name": "type",
746
+ "type": "string?"
747
+ }
748
+ ]
749
+ },
750
+ {
751
+ "name": "UpdateWorkflowRequest",
752
+ "properties": [
753
+ {
754
+ "name": "autoPublish",
755
+ "type": "boolean"
756
+ },
757
+ {
758
+ "name": "changeMessage",
759
+ "type": "string?"
760
+ },
761
+ {
762
+ "name": "checkpointPolicyJson",
763
+ "type": "string?"
764
+ },
765
+ {
766
+ "name": "definitionJson",
767
+ "type": "string?"
768
+ },
769
+ {
770
+ "name": "description",
771
+ "type": "string?"
772
+ },
773
+ {
774
+ "name": "executionTimeoutSeconds",
775
+ "type": "integer?"
776
+ },
777
+ {
778
+ "name": "expectedRevision",
779
+ "type": "integer?"
780
+ },
781
+ {
782
+ "name": "hostMetadata",
783
+ "type": "map\u003Cstring\u003E?"
784
+ },
785
+ {
786
+ "name": "inputParametersJson",
787
+ "type": "string?"
788
+ },
789
+ {
790
+ "name": "maxConcurrentRuns",
791
+ "type": "integer?"
792
+ },
793
+ {
794
+ "name": "maxQueuedRuns",
795
+ "type": "integer?"
796
+ },
797
+ {
798
+ "name": "mode",
799
+ "type": "string?"
800
+ },
801
+ {
802
+ "name": "name",
803
+ "type": "string"
804
+ },
805
+ {
806
+ "name": "outputParametersJson",
807
+ "type": "string?"
808
+ },
809
+ {
810
+ "name": "overflowBehavior",
811
+ "type": "string?"
812
+ },
813
+ {
814
+ "name": "retryPolicyJson",
815
+ "type": "string?"
816
+ }
817
+ ]
818
+ },
819
+ {
820
+ "name": "WorkflowCompilationResponse",
821
+ "properties": [
822
+ {
823
+ "name": "diagnostics",
824
+ "type": "#CompilationDiagnostic[]"
825
+ },
826
+ {
827
+ "name": "isValid",
828
+ "type": "boolean"
829
+ },
830
+ {
831
+ "name": "workflowId",
832
+ "type": "uuid"
833
+ },
834
+ {
835
+ "name": "workflowVersionId",
836
+ "type": "uuid"
837
+ }
838
+ ]
839
+ },
840
+ {
841
+ "name": "WorkflowResponse",
842
+ "properties": [
843
+ {
844
+ "name": "checkpointPolicyJson",
845
+ "type": "string?"
846
+ },
847
+ {
848
+ "name": "createdAtUtc",
849
+ "type": "date-time"
850
+ },
851
+ {
852
+ "name": "createdByUserId",
853
+ "type": "uuid"
854
+ },
855
+ {
856
+ "name": "currentVersionId",
857
+ "type": "uuid?"
858
+ },
859
+ {
860
+ "name": "currentVersionNumber",
861
+ "type": "integer?"
862
+ },
863
+ {
864
+ "name": "definitionJson",
865
+ "type": "string"
866
+ },
867
+ {
868
+ "name": "description",
869
+ "type": "string?"
870
+ },
871
+ {
872
+ "name": "documentsFrom",
873
+ "type": "string?"
874
+ },
875
+ {
876
+ "name": "draftVersionId",
877
+ "type": "uuid?"
878
+ },
879
+ {
880
+ "name": "draftVersionNumber",
881
+ "type": "integer?"
882
+ },
883
+ {
884
+ "name": "executionTimeoutSeconds",
885
+ "type": "integer?"
886
+ },
887
+ {
888
+ "name": "hasImportWarnings",
889
+ "type": "boolean"
890
+ },
891
+ {
892
+ "name": "hostMetadata",
893
+ "type": "map\u003Cstring\u003E?"
894
+ },
895
+ {
896
+ "name": "id",
897
+ "type": "uuid"
898
+ },
899
+ {
900
+ "name": "importWarningsJson",
901
+ "type": "string?"
902
+ },
903
+ {
904
+ "name": "inputParametersJson",
905
+ "type": "string?"
906
+ },
907
+ {
908
+ "name": "maxConcurrentRuns",
909
+ "type": "integer"
910
+ },
911
+ {
912
+ "name": "maxQueuedRuns",
913
+ "type": "integer"
914
+ },
915
+ {
916
+ "name": "mode",
917
+ "type": "string"
918
+ },
919
+ {
920
+ "name": "name",
921
+ "type": "string"
922
+ },
923
+ {
924
+ "name": "outputParametersJson",
925
+ "type": "string?"
926
+ },
927
+ {
928
+ "name": "overflowBehavior",
929
+ "type": "string"
930
+ },
931
+ {
932
+ "name": "retryPolicyJson",
933
+ "type": "string?"
934
+ },
935
+ {
936
+ "name": "revision",
937
+ "type": "integer"
938
+ },
939
+ {
940
+ "name": "updatedAtUtc",
941
+ "type": "date-time"
942
+ }
943
+ ]
944
+ },
945
+ {
946
+ "name": "WorkflowSaveUnpublishedProblemDetails",
947
+ "properties": [
948
+ {
949
+ "name": "detail",
950
+ "type": "string"
951
+ },
952
+ {
953
+ "name": "status",
954
+ "type": "integer"
955
+ },
956
+ {
957
+ "name": "title",
958
+ "type": "string"
959
+ },
960
+ {
961
+ "name": "type",
962
+ "type": "string"
963
+ },
964
+ {
965
+ "name": "versionId",
966
+ "type": "uuid"
967
+ },
968
+ {
969
+ "name": "versionNumber",
970
+ "type": "integer"
971
+ },
972
+ {
973
+ "name": "workflow",
974
+ "type": "#WorkflowResponse"
975
+ }
976
+ ]
977
+ }
978
+ ]
979
+ }