@inf-monkeys-tech/monkeys 1.1.32 → 1.1.34
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.
- package/README.md +19 -0
- package/lib/contracts/index.d.ts +1 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +1 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/page-expression.d.ts +7 -0
- package/lib/contracts/page-expression.d.ts.map +1 -1
- package/lib/contracts/page-expression.js +13 -6
- package/lib/contracts/page-expression.js.map +1 -1
- package/lib/contracts/tenant.d.ts +3 -0
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +1 -0
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/contracts/workflow-canvas.d.ts +73 -0
- package/lib/contracts/workflow-canvas.d.ts.map +1 -0
- package/lib/contracts/workflow-canvas.js +33 -0
- package/lib/contracts/workflow-canvas.js.map +1 -0
- package/lib/contracts/workflow-definition.d.ts +537 -0
- package/lib/contracts/workflow-definition.d.ts.map +1 -1
- package/lib/contracts/workflow-definition.js +12 -2
- package/lib/contracts/workflow-definition.js.map +1 -1
- package/lib/esm/{chunk-COMJDE7H.mjs → chunk-DDEMQXTP.mjs} +3 -3
- package/lib/esm/{chunk-DMDJCNPT.mjs → chunk-EKT45BA4.mjs} +2 -2
- package/lib/esm/{chunk-O5YP4QQ7.mjs → chunk-IJ2W77NR.mjs} +2 -2
- package/lib/esm/{chunk-BQ77E4VU.mjs → chunk-L5CYU6K4.mjs} +390 -339
- package/lib/esm/chunk-L5CYU6K4.mjs.map +1 -0
- package/lib/esm/{chunk-HLCW3N47.mjs → chunk-UWGXMF6O.mjs} +2 -2
- package/lib/esm/{chunk-OL3X34S6.mjs → chunk-ZN3TO3U7.mjs} +17 -10
- package/lib/esm/{chunk-OL3X34S6.mjs.map → chunk-ZN3TO3U7.mjs.map} +1 -1
- package/lib/esm/contracts/index.mjs +16 -4
- package/lib/esm/index.mjs +18 -6
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +3 -3
- package/lib/esm/schemas/index.mjs +3 -3
- package/lib/json-schema/tenant-product-config.schema.json +4 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +4 -0
- package/lib/json-schema/workflow-definition.schema.json +195 -65
- package/lib/runtime/action-program-author.d.ts +7 -1
- package/lib/runtime/action-program-author.d.ts.map +1 -1
- package/lib/runtime/action-program-author.js.map +1 -1
- package/lib/runtime/page-expression.d.ts.map +1 -1
- package/lib/runtime/page-expression.js +16 -7
- package/lib/runtime/page-expression.js.map +1 -1
- package/lib/schemas/index.d.ts +44 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/esm/chunk-BQ77E4VU.mjs.map +0 -1
- /package/lib/esm/{chunk-COMJDE7H.mjs.map → chunk-DDEMQXTP.mjs.map} +0 -0
- /package/lib/esm/{chunk-DMDJCNPT.mjs.map → chunk-EKT45BA4.mjs.map} +0 -0
- /package/lib/esm/{chunk-O5YP4QQ7.mjs.map → chunk-IJ2W77NR.mjs.map} +0 -0
- /package/lib/esm/{chunk-HLCW3N47.mjs.map → chunk-UWGXMF6O.mjs.map} +0 -0
|
@@ -486,6 +486,48 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
486
486
|
presentation: z.ZodObject<{
|
|
487
487
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
488
488
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
489
|
+
canvas: z.ZodOptional<z.ZodObject<{
|
|
490
|
+
engine: z.ZodLiteral<"excalidraw">;
|
|
491
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
492
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
493
|
+
id: z.ZodString;
|
|
494
|
+
type: z.ZodEnum<{
|
|
495
|
+
image: "image";
|
|
496
|
+
text: "text";
|
|
497
|
+
iframe: "iframe";
|
|
498
|
+
rectangle: "rectangle";
|
|
499
|
+
diamond: "diamond";
|
|
500
|
+
ellipse: "ellipse";
|
|
501
|
+
arrow: "arrow";
|
|
502
|
+
line: "line";
|
|
503
|
+
freedraw: "freedraw";
|
|
504
|
+
frame: "frame";
|
|
505
|
+
magicframe: "magicframe";
|
|
506
|
+
embeddable: "embeddable";
|
|
507
|
+
}>;
|
|
508
|
+
x: z.ZodNumber;
|
|
509
|
+
y: z.ZodNumber;
|
|
510
|
+
width: z.ZodNumber;
|
|
511
|
+
height: z.ZodNumber;
|
|
512
|
+
customData: z.ZodOptional<z.ZodObject<{
|
|
513
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
514
|
+
nodeRef: z.ZodOptional<z.ZodString>;
|
|
515
|
+
edgeRef: z.ZodOptional<z.ZodString>;
|
|
516
|
+
}, z.core.$strict>>;
|
|
517
|
+
}, z.core.$strict>>;
|
|
518
|
+
}, z.core.$catchall<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>>;
|
|
519
|
+
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
520
|
+
reference: z.ZodString;
|
|
521
|
+
mimeType: z.ZodEnum<{
|
|
522
|
+
"image/webp": "image/webp";
|
|
523
|
+
"image/png": "image/png";
|
|
524
|
+
"image/jpeg": "image/jpeg";
|
|
525
|
+
"image/gif": "image/gif";
|
|
526
|
+
"image/svg+xml": "image/svg+xml";
|
|
527
|
+
}>;
|
|
528
|
+
created: z.ZodNumber;
|
|
529
|
+
}, z.core.$strict>>;
|
|
530
|
+
}, z.core.$strict>>;
|
|
489
531
|
}, z.core.$strict>;
|
|
490
532
|
ports: z.ZodObject<{
|
|
491
533
|
inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -654,6 +696,501 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
654
696
|
preferredAppId: z.ZodOptional<z.ZodString>;
|
|
655
697
|
}, z.core.$strict>;
|
|
656
698
|
}, z.core.$strict>;
|
|
699
|
+
export declare const WorkflowEditorCommandSchema: z.ZodObject<{
|
|
700
|
+
expectedRecordVersion: z.ZodNumber;
|
|
701
|
+
requestId: z.ZodString;
|
|
702
|
+
definition: z.ZodObject<{
|
|
703
|
+
contract: z.ZodLiteral<"WorkflowDefinition">;
|
|
704
|
+
metadata: z.ZodObject<{
|
|
705
|
+
id: z.ZodString;
|
|
706
|
+
version: z.ZodNumber;
|
|
707
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
708
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
709
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
710
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
711
|
+
role: z.ZodEnum<{
|
|
712
|
+
workflow: "workflow";
|
|
713
|
+
template: "template";
|
|
714
|
+
}>;
|
|
715
|
+
teamId: z.ZodString;
|
|
716
|
+
creatorRef: z.ZodObject<{
|
|
717
|
+
kind: z.ZodString;
|
|
718
|
+
id: z.ZodString;
|
|
719
|
+
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
720
|
+
ownerRepo: z.ZodOptional<z.ZodString>;
|
|
721
|
+
}, z.core.$strict>;
|
|
722
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
723
|
+
}, z.core.$strict>;
|
|
724
|
+
revision: z.ZodObject<{
|
|
725
|
+
kind: z.ZodEnum<{
|
|
726
|
+
release: "release";
|
|
727
|
+
backup: "backup";
|
|
728
|
+
}>;
|
|
729
|
+
recordVersion: z.ZodNumber;
|
|
730
|
+
sourceVersion: z.ZodOptional<z.ZodNumber>;
|
|
731
|
+
}, z.core.$strict>;
|
|
732
|
+
presentation: z.ZodObject<{
|
|
733
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
734
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
735
|
+
canvas: z.ZodOptional<z.ZodObject<{
|
|
736
|
+
engine: z.ZodLiteral<"excalidraw">;
|
|
737
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
738
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
739
|
+
id: z.ZodString;
|
|
740
|
+
type: z.ZodEnum<{
|
|
741
|
+
image: "image";
|
|
742
|
+
text: "text";
|
|
743
|
+
iframe: "iframe";
|
|
744
|
+
rectangle: "rectangle";
|
|
745
|
+
diamond: "diamond";
|
|
746
|
+
ellipse: "ellipse";
|
|
747
|
+
arrow: "arrow";
|
|
748
|
+
line: "line";
|
|
749
|
+
freedraw: "freedraw";
|
|
750
|
+
frame: "frame";
|
|
751
|
+
magicframe: "magicframe";
|
|
752
|
+
embeddable: "embeddable";
|
|
753
|
+
}>;
|
|
754
|
+
x: z.ZodNumber;
|
|
755
|
+
y: z.ZodNumber;
|
|
756
|
+
width: z.ZodNumber;
|
|
757
|
+
height: z.ZodNumber;
|
|
758
|
+
customData: z.ZodOptional<z.ZodObject<{
|
|
759
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
760
|
+
nodeRef: z.ZodOptional<z.ZodString>;
|
|
761
|
+
edgeRef: z.ZodOptional<z.ZodString>;
|
|
762
|
+
}, z.core.$strict>>;
|
|
763
|
+
}, z.core.$strict>>;
|
|
764
|
+
}, z.core.$catchall<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>>;
|
|
765
|
+
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
766
|
+
reference: z.ZodString;
|
|
767
|
+
mimeType: z.ZodEnum<{
|
|
768
|
+
"image/webp": "image/webp";
|
|
769
|
+
"image/png": "image/png";
|
|
770
|
+
"image/jpeg": "image/jpeg";
|
|
771
|
+
"image/gif": "image/gif";
|
|
772
|
+
"image/svg+xml": "image/svg+xml";
|
|
773
|
+
}>;
|
|
774
|
+
created: z.ZodNumber;
|
|
775
|
+
}, z.core.$strict>>;
|
|
776
|
+
}, z.core.$strict>>;
|
|
777
|
+
}, z.core.$strict>;
|
|
778
|
+
ports: z.ZodObject<{
|
|
779
|
+
inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
780
|
+
name: z.ZodString;
|
|
781
|
+
schemaRef: z.ZodString;
|
|
782
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
783
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
784
|
+
description: z.ZodOptional<z.ZodString>;
|
|
785
|
+
}, z.core.$strict>>>;
|
|
786
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
787
|
+
name: z.ZodString;
|
|
788
|
+
schemaRef: z.ZodString;
|
|
789
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
790
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
791
|
+
description: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$strict>>>;
|
|
793
|
+
}, z.core.$strict>;
|
|
794
|
+
parameters: z.ZodObject<{
|
|
795
|
+
variables: z.ZodDefault<z.ZodArray<z.ZodType<WorkflowParameter, unknown, z.core.$ZodTypeInternals<WorkflowParameter, unknown>>>>;
|
|
796
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
797
|
+
key: z.ZodString;
|
|
798
|
+
value: z.ZodString;
|
|
799
|
+
}, z.core.$strict>>>;
|
|
800
|
+
}, z.core.$strict>;
|
|
801
|
+
graph: z.ZodObject<{
|
|
802
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
803
|
+
id: z.ZodString;
|
|
804
|
+
referenceName: z.ZodString;
|
|
805
|
+
capabilityRef: z.ZodString;
|
|
806
|
+
capabilityVersion: z.ZodOptional<z.ZodString>;
|
|
807
|
+
inputBindings: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
808
|
+
configuration: z.ZodObject<{
|
|
809
|
+
executor: z.ZodLiteral<"conductor">;
|
|
810
|
+
task: z.ZodType<ConductorTaskDefinition, unknown, z.core.$ZodTypeInternals<ConductorTaskDefinition, unknown>>;
|
|
811
|
+
}, z.core.$strict>;
|
|
812
|
+
}, z.core.$strict>>;
|
|
813
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
814
|
+
from: z.ZodString;
|
|
815
|
+
to: z.ZodString;
|
|
816
|
+
outputPort: z.ZodOptional<z.ZodString>;
|
|
817
|
+
inputPort: z.ZodOptional<z.ZodString>;
|
|
818
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
819
|
+
}, z.core.$strict>>>;
|
|
820
|
+
}, z.core.$strict>;
|
|
821
|
+
execution: z.ZodObject<{
|
|
822
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
823
|
+
retries: z.ZodDefault<z.ZodNumber>;
|
|
824
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
825
|
+
idempotency: z.ZodEnum<{
|
|
826
|
+
none: "none";
|
|
827
|
+
required: "required";
|
|
828
|
+
supported: "supported";
|
|
829
|
+
}>;
|
|
830
|
+
rateLimit: z.ZodOptional<z.ZodObject<{
|
|
831
|
+
enabled: z.ZodBoolean;
|
|
832
|
+
max: z.ZodNumber;
|
|
833
|
+
windowMs: z.ZodNumber;
|
|
834
|
+
}, z.core.$strict>>;
|
|
835
|
+
conductor: z.ZodObject<{
|
|
836
|
+
ownerApp: z.ZodOptional<z.ZodString>;
|
|
837
|
+
createTime: z.ZodOptional<z.ZodNumber>;
|
|
838
|
+
updateTime: z.ZodOptional<z.ZodNumber>;
|
|
839
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
840
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
841
|
+
failureWorkflow: z.ZodOptional<z.ZodString>;
|
|
842
|
+
schemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
843
|
+
restartable: z.ZodOptional<z.ZodBoolean>;
|
|
844
|
+
workflowStatusListenerEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
845
|
+
ownerEmail: z.ZodOptional<z.ZodString>;
|
|
846
|
+
timeoutPolicy: z.ZodOptional<z.ZodEnum<{
|
|
847
|
+
TIME_OUT_WF: "TIME_OUT_WF";
|
|
848
|
+
ALERT_ONLY: "ALERT_ONLY";
|
|
849
|
+
}>>;
|
|
850
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
851
|
+
inputTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
852
|
+
}, z.core.$strict>;
|
|
853
|
+
}, z.core.$strict>;
|
|
854
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
855
|
+
id: z.ZodString;
|
|
856
|
+
type: z.ZodEnum<{
|
|
857
|
+
api: "api";
|
|
858
|
+
manual: "manual";
|
|
859
|
+
schedule: "schedule";
|
|
860
|
+
webhook: "webhook";
|
|
861
|
+
event: "event";
|
|
862
|
+
}>;
|
|
863
|
+
enabled: z.ZodBoolean;
|
|
864
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
865
|
+
cron: z.ZodString;
|
|
866
|
+
}, z.core.$strict>>;
|
|
867
|
+
webhook: z.ZodOptional<z.ZodObject<{
|
|
868
|
+
path: z.ZodOptional<z.ZodString>;
|
|
869
|
+
method: z.ZodEnum<{
|
|
870
|
+
GET: "GET";
|
|
871
|
+
POST: "POST";
|
|
872
|
+
PUT: "PUT";
|
|
873
|
+
PATCH: "PATCH";
|
|
874
|
+
DELETE: "DELETE";
|
|
875
|
+
OPTIONS: "OPTIONS";
|
|
876
|
+
HEAD: "HEAD";
|
|
877
|
+
}>;
|
|
878
|
+
auth: z.ZodEnum<{
|
|
879
|
+
NONE: "NONE";
|
|
880
|
+
BASIC: "BASIC";
|
|
881
|
+
CUSTOM_HEADER: "CUSTOM_HEADER";
|
|
882
|
+
}>;
|
|
883
|
+
basicAuth: z.ZodOptional<z.ZodObject<{
|
|
884
|
+
username: z.ZodString;
|
|
885
|
+
password: z.ZodString;
|
|
886
|
+
}, z.core.$strict>>;
|
|
887
|
+
headerAuth: z.ZodOptional<z.ZodObject<{
|
|
888
|
+
name: z.ZodString;
|
|
889
|
+
value: z.ZodString;
|
|
890
|
+
}, z.core.$strict>>;
|
|
891
|
+
responseUntil: z.ZodEnum<{
|
|
892
|
+
WORKFLOW_STARTED: "WORKFLOW_STARTED";
|
|
893
|
+
WORKFLOW_COMPLETED_OR_FINISHED: "WORKFLOW_COMPLETED_OR_FINISHED";
|
|
894
|
+
}>;
|
|
895
|
+
}, z.core.$strict>>;
|
|
896
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
897
|
+
eventType: z.ZodString;
|
|
898
|
+
configuration: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
899
|
+
}, z.core.$strict>>;
|
|
900
|
+
}, z.core.$strict>>>;
|
|
901
|
+
views: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
902
|
+
pageRef: z.ZodString;
|
|
903
|
+
placement: z.ZodOptional<z.ZodString>;
|
|
904
|
+
}, z.core.$strict>>>;
|
|
905
|
+
dataContracts: z.ZodObject<{
|
|
906
|
+
reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
907
|
+
writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
908
|
+
emits: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
909
|
+
}, z.core.$strict>;
|
|
910
|
+
governance: z.ZodObject<{
|
|
911
|
+
activated: z.ZodBoolean;
|
|
912
|
+
validated: z.ZodBoolean;
|
|
913
|
+
validationIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
914
|
+
taskReferenceName: z.ZodString;
|
|
915
|
+
issueType: z.ZodEnum<{
|
|
916
|
+
ERROR: "ERROR";
|
|
917
|
+
WARNING: "WARNING";
|
|
918
|
+
}>;
|
|
919
|
+
detailReason: z.ZodObject<{
|
|
920
|
+
type: z.ZodString;
|
|
921
|
+
name: z.ZodString;
|
|
922
|
+
detailInformation: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
923
|
+
}, z.core.$strict>;
|
|
924
|
+
humanMessage: z.ZodObject<{
|
|
925
|
+
en: z.ZodString;
|
|
926
|
+
zh: z.ZodString;
|
|
927
|
+
}, z.core.$strict>;
|
|
928
|
+
}, z.core.$strict>>>;
|
|
929
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
930
|
+
}, z.core.$strict>;
|
|
931
|
+
interfaces: z.ZodObject<{
|
|
932
|
+
openai: z.ZodObject<{
|
|
933
|
+
enabled: z.ZodBoolean;
|
|
934
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
935
|
+
}, z.core.$strict>;
|
|
936
|
+
shortcutRef: z.ZodOptional<z.ZodObject<{
|
|
937
|
+
kind: z.ZodString;
|
|
938
|
+
id: z.ZodString;
|
|
939
|
+
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
940
|
+
ownerRepo: z.ZodOptional<z.ZodString>;
|
|
941
|
+
}, z.core.$strict>>;
|
|
942
|
+
preferredAppId: z.ZodOptional<z.ZodString>;
|
|
943
|
+
}, z.core.$strict>;
|
|
944
|
+
}, z.core.$strict>;
|
|
945
|
+
}, z.core.$strict>;
|
|
946
|
+
export declare const WorkflowEditorDocumentSchema: z.ZodObject<{
|
|
947
|
+
recordVersion: z.ZodNumber;
|
|
948
|
+
definition: z.ZodObject<{
|
|
949
|
+
contract: z.ZodLiteral<"WorkflowDefinition">;
|
|
950
|
+
metadata: z.ZodObject<{
|
|
951
|
+
id: z.ZodString;
|
|
952
|
+
version: z.ZodNumber;
|
|
953
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
954
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
955
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
956
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
957
|
+
role: z.ZodEnum<{
|
|
958
|
+
workflow: "workflow";
|
|
959
|
+
template: "template";
|
|
960
|
+
}>;
|
|
961
|
+
teamId: z.ZodString;
|
|
962
|
+
creatorRef: z.ZodObject<{
|
|
963
|
+
kind: z.ZodString;
|
|
964
|
+
id: z.ZodString;
|
|
965
|
+
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
966
|
+
ownerRepo: z.ZodOptional<z.ZodString>;
|
|
967
|
+
}, z.core.$strict>;
|
|
968
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
969
|
+
}, z.core.$strict>;
|
|
970
|
+
revision: z.ZodObject<{
|
|
971
|
+
kind: z.ZodEnum<{
|
|
972
|
+
release: "release";
|
|
973
|
+
backup: "backup";
|
|
974
|
+
}>;
|
|
975
|
+
recordVersion: z.ZodNumber;
|
|
976
|
+
sourceVersion: z.ZodOptional<z.ZodNumber>;
|
|
977
|
+
}, z.core.$strict>;
|
|
978
|
+
presentation: z.ZodObject<{
|
|
979
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
980
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
981
|
+
canvas: z.ZodOptional<z.ZodObject<{
|
|
982
|
+
engine: z.ZodLiteral<"excalidraw">;
|
|
983
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
984
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
985
|
+
id: z.ZodString;
|
|
986
|
+
type: z.ZodEnum<{
|
|
987
|
+
image: "image";
|
|
988
|
+
text: "text";
|
|
989
|
+
iframe: "iframe";
|
|
990
|
+
rectangle: "rectangle";
|
|
991
|
+
diamond: "diamond";
|
|
992
|
+
ellipse: "ellipse";
|
|
993
|
+
arrow: "arrow";
|
|
994
|
+
line: "line";
|
|
995
|
+
freedraw: "freedraw";
|
|
996
|
+
frame: "frame";
|
|
997
|
+
magicframe: "magicframe";
|
|
998
|
+
embeddable: "embeddable";
|
|
999
|
+
}>;
|
|
1000
|
+
x: z.ZodNumber;
|
|
1001
|
+
y: z.ZodNumber;
|
|
1002
|
+
width: z.ZodNumber;
|
|
1003
|
+
height: z.ZodNumber;
|
|
1004
|
+
customData: z.ZodOptional<z.ZodObject<{
|
|
1005
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
1006
|
+
nodeRef: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
edgeRef: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
}, z.core.$strict>>;
|
|
1009
|
+
}, z.core.$strict>>;
|
|
1010
|
+
}, z.core.$catchall<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>>;
|
|
1011
|
+
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1012
|
+
reference: z.ZodString;
|
|
1013
|
+
mimeType: z.ZodEnum<{
|
|
1014
|
+
"image/webp": "image/webp";
|
|
1015
|
+
"image/png": "image/png";
|
|
1016
|
+
"image/jpeg": "image/jpeg";
|
|
1017
|
+
"image/gif": "image/gif";
|
|
1018
|
+
"image/svg+xml": "image/svg+xml";
|
|
1019
|
+
}>;
|
|
1020
|
+
created: z.ZodNumber;
|
|
1021
|
+
}, z.core.$strict>>;
|
|
1022
|
+
}, z.core.$strict>>;
|
|
1023
|
+
}, z.core.$strict>;
|
|
1024
|
+
ports: z.ZodObject<{
|
|
1025
|
+
inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1026
|
+
name: z.ZodString;
|
|
1027
|
+
schemaRef: z.ZodString;
|
|
1028
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1029
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
1030
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
}, z.core.$strict>>>;
|
|
1032
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1033
|
+
name: z.ZodString;
|
|
1034
|
+
schemaRef: z.ZodString;
|
|
1035
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1036
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
1037
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
}, z.core.$strict>>>;
|
|
1039
|
+
}, z.core.$strict>;
|
|
1040
|
+
parameters: z.ZodObject<{
|
|
1041
|
+
variables: z.ZodDefault<z.ZodArray<z.ZodType<WorkflowParameter, unknown, z.core.$ZodTypeInternals<WorkflowParameter, unknown>>>>;
|
|
1042
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1043
|
+
key: z.ZodString;
|
|
1044
|
+
value: z.ZodString;
|
|
1045
|
+
}, z.core.$strict>>>;
|
|
1046
|
+
}, z.core.$strict>;
|
|
1047
|
+
graph: z.ZodObject<{
|
|
1048
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1049
|
+
id: z.ZodString;
|
|
1050
|
+
referenceName: z.ZodString;
|
|
1051
|
+
capabilityRef: z.ZodString;
|
|
1052
|
+
capabilityVersion: z.ZodOptional<z.ZodString>;
|
|
1053
|
+
inputBindings: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1054
|
+
configuration: z.ZodObject<{
|
|
1055
|
+
executor: z.ZodLiteral<"conductor">;
|
|
1056
|
+
task: z.ZodType<ConductorTaskDefinition, unknown, z.core.$ZodTypeInternals<ConductorTaskDefinition, unknown>>;
|
|
1057
|
+
}, z.core.$strict>;
|
|
1058
|
+
}, z.core.$strict>>;
|
|
1059
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1060
|
+
from: z.ZodString;
|
|
1061
|
+
to: z.ZodString;
|
|
1062
|
+
outputPort: z.ZodOptional<z.ZodString>;
|
|
1063
|
+
inputPort: z.ZodOptional<z.ZodString>;
|
|
1064
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
}, z.core.$strict>>>;
|
|
1066
|
+
}, z.core.$strict>;
|
|
1067
|
+
execution: z.ZodObject<{
|
|
1068
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1069
|
+
retries: z.ZodDefault<z.ZodNumber>;
|
|
1070
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1071
|
+
idempotency: z.ZodEnum<{
|
|
1072
|
+
none: "none";
|
|
1073
|
+
required: "required";
|
|
1074
|
+
supported: "supported";
|
|
1075
|
+
}>;
|
|
1076
|
+
rateLimit: z.ZodOptional<z.ZodObject<{
|
|
1077
|
+
enabled: z.ZodBoolean;
|
|
1078
|
+
max: z.ZodNumber;
|
|
1079
|
+
windowMs: z.ZodNumber;
|
|
1080
|
+
}, z.core.$strict>>;
|
|
1081
|
+
conductor: z.ZodObject<{
|
|
1082
|
+
ownerApp: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
createTime: z.ZodOptional<z.ZodNumber>;
|
|
1084
|
+
updateTime: z.ZodOptional<z.ZodNumber>;
|
|
1085
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
failureWorkflow: z.ZodOptional<z.ZodString>;
|
|
1088
|
+
schemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
1089
|
+
restartable: z.ZodOptional<z.ZodBoolean>;
|
|
1090
|
+
workflowStatusListenerEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1091
|
+
ownerEmail: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
timeoutPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1093
|
+
TIME_OUT_WF: "TIME_OUT_WF";
|
|
1094
|
+
ALERT_ONLY: "ALERT_ONLY";
|
|
1095
|
+
}>>;
|
|
1096
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1097
|
+
inputTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1098
|
+
}, z.core.$strict>;
|
|
1099
|
+
}, z.core.$strict>;
|
|
1100
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1101
|
+
id: z.ZodString;
|
|
1102
|
+
type: z.ZodEnum<{
|
|
1103
|
+
api: "api";
|
|
1104
|
+
manual: "manual";
|
|
1105
|
+
schedule: "schedule";
|
|
1106
|
+
webhook: "webhook";
|
|
1107
|
+
event: "event";
|
|
1108
|
+
}>;
|
|
1109
|
+
enabled: z.ZodBoolean;
|
|
1110
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
1111
|
+
cron: z.ZodString;
|
|
1112
|
+
}, z.core.$strict>>;
|
|
1113
|
+
webhook: z.ZodOptional<z.ZodObject<{
|
|
1114
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
method: z.ZodEnum<{
|
|
1116
|
+
GET: "GET";
|
|
1117
|
+
POST: "POST";
|
|
1118
|
+
PUT: "PUT";
|
|
1119
|
+
PATCH: "PATCH";
|
|
1120
|
+
DELETE: "DELETE";
|
|
1121
|
+
OPTIONS: "OPTIONS";
|
|
1122
|
+
HEAD: "HEAD";
|
|
1123
|
+
}>;
|
|
1124
|
+
auth: z.ZodEnum<{
|
|
1125
|
+
NONE: "NONE";
|
|
1126
|
+
BASIC: "BASIC";
|
|
1127
|
+
CUSTOM_HEADER: "CUSTOM_HEADER";
|
|
1128
|
+
}>;
|
|
1129
|
+
basicAuth: z.ZodOptional<z.ZodObject<{
|
|
1130
|
+
username: z.ZodString;
|
|
1131
|
+
password: z.ZodString;
|
|
1132
|
+
}, z.core.$strict>>;
|
|
1133
|
+
headerAuth: z.ZodOptional<z.ZodObject<{
|
|
1134
|
+
name: z.ZodString;
|
|
1135
|
+
value: z.ZodString;
|
|
1136
|
+
}, z.core.$strict>>;
|
|
1137
|
+
responseUntil: z.ZodEnum<{
|
|
1138
|
+
WORKFLOW_STARTED: "WORKFLOW_STARTED";
|
|
1139
|
+
WORKFLOW_COMPLETED_OR_FINISHED: "WORKFLOW_COMPLETED_OR_FINISHED";
|
|
1140
|
+
}>;
|
|
1141
|
+
}, z.core.$strict>>;
|
|
1142
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
1143
|
+
eventType: z.ZodString;
|
|
1144
|
+
configuration: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
1145
|
+
}, z.core.$strict>>;
|
|
1146
|
+
}, z.core.$strict>>>;
|
|
1147
|
+
views: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1148
|
+
pageRef: z.ZodString;
|
|
1149
|
+
placement: z.ZodOptional<z.ZodString>;
|
|
1150
|
+
}, z.core.$strict>>>;
|
|
1151
|
+
dataContracts: z.ZodObject<{
|
|
1152
|
+
reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1153
|
+
writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1154
|
+
emits: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1155
|
+
}, z.core.$strict>;
|
|
1156
|
+
governance: z.ZodObject<{
|
|
1157
|
+
activated: z.ZodBoolean;
|
|
1158
|
+
validated: z.ZodBoolean;
|
|
1159
|
+
validationIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1160
|
+
taskReferenceName: z.ZodString;
|
|
1161
|
+
issueType: z.ZodEnum<{
|
|
1162
|
+
ERROR: "ERROR";
|
|
1163
|
+
WARNING: "WARNING";
|
|
1164
|
+
}>;
|
|
1165
|
+
detailReason: z.ZodObject<{
|
|
1166
|
+
type: z.ZodString;
|
|
1167
|
+
name: z.ZodString;
|
|
1168
|
+
detailInformation: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
1169
|
+
}, z.core.$strict>;
|
|
1170
|
+
humanMessage: z.ZodObject<{
|
|
1171
|
+
en: z.ZodString;
|
|
1172
|
+
zh: z.ZodString;
|
|
1173
|
+
}, z.core.$strict>;
|
|
1174
|
+
}, z.core.$strict>>>;
|
|
1175
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
1176
|
+
}, z.core.$strict>;
|
|
1177
|
+
interfaces: z.ZodObject<{
|
|
1178
|
+
openai: z.ZodObject<{
|
|
1179
|
+
enabled: z.ZodBoolean;
|
|
1180
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
}, z.core.$strict>;
|
|
1182
|
+
shortcutRef: z.ZodOptional<z.ZodObject<{
|
|
1183
|
+
kind: z.ZodString;
|
|
1184
|
+
id: z.ZodString;
|
|
1185
|
+
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1186
|
+
ownerRepo: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
}, z.core.$strict>>;
|
|
1188
|
+
preferredAppId: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
}, z.core.$strict>;
|
|
1190
|
+
}, z.core.$strict>;
|
|
1191
|
+
}, z.core.$strict>;
|
|
1192
|
+
export type WorkflowEditorCommand = z.infer<typeof WorkflowEditorCommandSchema>;
|
|
1193
|
+
export type WorkflowEditorDocument = z.infer<typeof WorkflowEditorDocumentSchema>;
|
|
657
1194
|
export type ConductorTaskType = z.infer<typeof ConductorTaskTypeSchema>;
|
|
658
1195
|
export type ConductorWorkflowDefinition = z.infer<typeof ConductorWorkflowDefinitionSchema>;
|
|
659
1196
|
export type WorkflowNode = z.infer<typeof WorkflowNodeSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-definition.d.ts","sourceRoot":"","sources":["../../src/contracts/workflow-definition.ts"],"names":[],"mappings":"AA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,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowDefinitionSchema = exports.WorkflowValidationIssueSchema = exports.WorkflowTriggerSchema = exports.WorkflowEdgeSchema = exports.WorkflowNodeSchema = exports.WorkflowOutputBindingSchema = exports.WorkflowParameterSchema = exports.WorkflowParameterTypeSchema = exports.ConductorWorkflowDefinitionSchema = exports.ConductorTaskDefinitionSchema = exports.ConductorTaskTypeSchema = void 0;
|
|
3
|
+
exports.WorkflowEditorDocumentSchema = exports.WorkflowEditorCommandSchema = exports.WorkflowDefinitionSchema = exports.WorkflowValidationIssueSchema = exports.WorkflowTriggerSchema = exports.WorkflowEdgeSchema = exports.WorkflowNodeSchema = exports.WorkflowOutputBindingSchema = exports.WorkflowParameterSchema = exports.WorkflowParameterTypeSchema = exports.ConductorWorkflowDefinitionSchema = exports.ConductorTaskDefinitionSchema = exports.ConductorTaskTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const workflow_canvas_1 = require("./workflow-canvas");
|
|
5
6
|
const capability_1 = require("./capability");
|
|
6
7
|
const common_1 = require("./common");
|
|
7
8
|
exports.ConductorTaskTypeSchema = zod_1.z.enum([
|
|
@@ -296,7 +297,7 @@ exports.WorkflowDefinitionSchema = zod_1.z.object({
|
|
|
296
297
|
if (revision.kind === 'backup' && revision.sourceVersion === undefined)
|
|
297
298
|
context.addIssue({ code: 'custom', path: ['sourceVersion'], message: 'Backup revisions require a sourceVersion.' });
|
|
298
299
|
}),
|
|
299
|
-
presentation: zod_1.z.object({ iconUrl: zod_1.z.string().optional(), thumbnail: zod_1.z.string().optional() }).strict(),
|
|
300
|
+
presentation: zod_1.z.object({ iconUrl: zod_1.z.string().optional(), thumbnail: zod_1.z.string().optional(), canvas: workflow_canvas_1.WorkflowCanvasSchema.optional() }).strict(),
|
|
300
301
|
ports: zod_1.z.object({ inputs: zod_1.z.array(capability_1.ContractPortSchema).default([]), outputs: zod_1.z.array(capability_1.ContractPortSchema).default([]) }).strict(),
|
|
301
302
|
parameters: zod_1.z.object({ variables: zod_1.z.array(exports.WorkflowParameterSchema).default([]), outputs: zod_1.z.array(exports.WorkflowOutputBindingSchema).default([]) }).strict(),
|
|
302
303
|
graph: zod_1.z.object({ nodes: zod_1.z.array(exports.WorkflowNodeSchema), edges: zod_1.z.array(exports.WorkflowEdgeSchema).default([]) }).strict(),
|
|
@@ -340,4 +341,13 @@ exports.WorkflowDefinitionSchema = zod_1.z.object({
|
|
|
340
341
|
if (definition.revision.kind === 'release' && definition.metadata.version !== definition.revision.recordVersion)
|
|
341
342
|
context.addIssue({ code: 'custom', path: ['revision', 'recordVersion'], message: 'Release recordVersion must equal metadata.version.' });
|
|
342
343
|
});
|
|
344
|
+
exports.WorkflowEditorCommandSchema = zod_1.z.object({
|
|
345
|
+
expectedRecordVersion: zod_1.z.number().int().positive(),
|
|
346
|
+
requestId: zod_1.z.string().min(1).max(128),
|
|
347
|
+
definition: exports.WorkflowDefinitionSchema,
|
|
348
|
+
}).strict();
|
|
349
|
+
exports.WorkflowEditorDocumentSchema = zod_1.z.object({
|
|
350
|
+
recordVersion: zod_1.z.number().int().positive(),
|
|
351
|
+
definition: exports.WorkflowDefinitionSchema,
|
|
352
|
+
}).strict();
|
|
343
353
|
//# sourceMappingURL=workflow-definition.js.map
|