@noetic-tools/core 5.19.1-next.1 → 5.19.2
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/dist/adapters/openrouter.js +5 -0
- package/dist/builders/control-flow-builders.d.ts +15 -6
- package/dist/builders/control-flow-builders.js +8 -0
- package/dist/builders/decide-builders.d.ts +2 -5
- package/dist/builders/dynamic-workflow.d.ts +16 -1
- package/dist/builders/dynamic-workflow.js +222 -11
- package/dist/builders/every.d.ts +3 -3
- package/dist/builders/every.js +2 -1
- package/dist/builders/provide-builder.d.ts +3 -2
- package/dist/builders/provide-builder.js +2 -1
- package/dist/builders/sequence.d.ts +14 -0
- package/dist/builders/sequence.js +103 -0
- package/dist/builders/spawn-builder.d.ts +3 -2
- package/dist/builders/spawn-builder.js +3 -2
- package/dist/builders/step-builders.d.ts +80 -1
- package/dist/builders/step-builders.js +115 -1
- package/dist/builders/verify-builder.d.ts +79 -0
- package/dist/builders/verify-builder.js +69 -0
- package/dist/builders/workflow-child-nodes.d.ts +21 -0
- package/dist/builders/workflow-child-nodes.js +335 -0
- package/dist/builders/workflow-connection-nodes.d.ts +17 -0
- package/dist/builders/workflow-connection-nodes.js +160 -0
- package/dist/builders/workflow-connections.d.ts +90 -0
- package/dist/builders/workflow-connections.js +560 -0
- package/dist/builders/workflow-control-nodes.d.ts +13 -0
- package/dist/builders/workflow-control-nodes.js +213 -0
- package/dist/builders/workflow-hydrator.d.ts +44 -3
- package/dist/builders/workflow-hydrator.js +53 -495
- package/dist/builders/workflow-verify.d.ts +19 -0
- package/dist/builders/workflow-verify.js +194 -0
- package/dist/conditions/conditions.d.ts +7 -5
- package/dist/conditions/conditions.js +7 -4
- package/dist/connections/blobs.d.ts +33 -0
- package/dist/connections/blobs.js +77 -0
- package/dist/connections/cron-schedule.d.ts +32 -0
- package/dist/connections/cron-schedule.js +213 -0
- package/dist/connections/durability.d.ts +65 -0
- package/dist/connections/durability.js +54 -0
- package/dist/connections/errors.d.ts +30 -0
- package/dist/connections/errors.js +100 -0
- package/dist/connections/event-stream.d.ts +24 -0
- package/dist/connections/event-stream.js +176 -0
- package/dist/connections/gates.d.ts +94 -0
- package/dist/connections/gates.js +271 -0
- package/dist/connections/glob.d.ts +10 -0
- package/dist/connections/glob.js +46 -0
- package/dist/connections/handle.d.ts +22 -0
- package/dist/connections/handle.js +84 -0
- package/dist/connections/harness-wiring.d.ts +52 -0
- package/dist/connections/harness-wiring.js +143 -0
- package/dist/connections/in-memory-connection.d.ts +147 -0
- package/dist/connections/in-memory-connection.js +593 -0
- package/dist/connections/index.d.ts +34 -0
- package/dist/connections/index.js +23 -0
- package/dist/connections/json-schema.d.ts +28 -0
- package/dist/connections/json-schema.js +338 -0
- package/dist/connections/model-tools.d.ts +46 -0
- package/dist/connections/model-tools.js +466 -0
- package/dist/connections/negotiation.d.ts +30 -0
- package/dist/connections/negotiation.js +159 -0
- package/dist/connections/policy.d.ts +21 -0
- package/dist/connections/policy.js +34 -0
- package/dist/connections/pool.d.ts +111 -0
- package/dist/connections/pool.js +339 -0
- package/dist/connections/refs.d.ts +74 -0
- package/dist/connections/refs.js +316 -0
- package/dist/connections/registry-types.d.ts +141 -0
- package/dist/connections/registry-types.js +14 -0
- package/dist/connections/registry.d.ts +125 -0
- package/dist/connections/registry.js +775 -0
- package/dist/connections/secrets.d.ts +59 -0
- package/dist/connections/secrets.js +153 -0
- package/dist/connections/settle.d.ts +9 -0
- package/dist/connections/settle.js +26 -0
- package/dist/connections/sources.d.ts +27 -0
- package/dist/connections/sources.js +300 -0
- package/dist/connections/triggers.d.ts +78 -0
- package/dist/connections/triggers.js +310 -0
- package/dist/connections/values.d.ts +26 -0
- package/dist/connections/values.js +93 -0
- package/dist/connections/views.d.ts +31 -0
- package/dist/connections/views.js +176 -0
- package/dist/expression/check.js +80 -1
- package/dist/expression/jsonata.d.ts +14 -4
- package/dist/expression/jsonata.js +27 -9
- package/dist/expression/step-outputs.d.ts +25 -0
- package/dist/expression/step-outputs.js +78 -0
- package/dist/harness/agent-harness.d.ts +69 -166
- package/dist/harness/agent-harness.js +170 -262
- package/dist/harness/call-span-collector.d.ts +33 -0
- package/dist/harness/call-span-collector.js +83 -0
- package/dist/harness/call-spend.d.ts +2 -0
- package/dist/harness/call-spend.js +10 -14
- package/dist/harness/connection-gate.d.ts +78 -0
- package/dist/harness/connection-gate.js +169 -0
- package/dist/harness/deps/interpreter.d.ts +1 -0
- package/dist/harness/deps/interpreter.js +1 -0
- package/dist/harness/deps/runtime.d.ts +1 -1
- package/dist/harness/deps/types.d.ts +1 -1
- package/dist/harness/harness-options.d.ts +153 -0
- package/dist/harness/harness-options.js +36 -0
- package/dist/harness/harness-tracing.d.ts +16 -0
- package/dist/harness/harness-tracing.js +35 -0
- package/dist/harness/llm-client.d.ts +71 -0
- package/dist/harness/llm-client.js +218 -0
- package/dist/harness/model-call.d.ts +2 -7
- package/dist/harness/model-call.js +141 -558
- package/dist/harness/model-request.d.ts +42 -0
- package/dist/harness/model-request.js +159 -0
- package/dist/harness/model-rounds.d.ts +18 -2
- package/dist/harness/model-rounds.js +39 -8
- package/dist/harness/model-stream.d.ts +39 -0
- package/dist/harness/model-stream.js +131 -0
- package/dist/harness/model-tool-round.d.ts +37 -0
- package/dist/harness/model-tool-round.js +197 -0
- package/dist/harness/spend.d.ts +2 -0
- package/dist/harness/spend.js +5 -1
- package/dist/index.d.ts +31 -6
- package/dist/index.js +18 -1
- package/dist/interpreter/connection-steps.d.ts +194 -0
- package/dist/interpreter/connection-steps.js +537 -0
- package/dist/interpreter/execute-action.d.ts +2 -8
- package/dist/interpreter/execute-action.js +3 -178
- package/dist/interpreter/execute-call.d.ts +19 -0
- package/dist/interpreter/execute-call.js +99 -0
- package/dist/interpreter/execute-control.d.ts +6 -1
- package/dist/interpreter/execute-control.js +14 -0
- package/dist/interpreter/execute-invoke-tool.d.ts +11 -0
- package/dist/interpreter/execute-invoke-tool.js +183 -0
- package/dist/interpreter/execute-verify.d.ts +21 -0
- package/dist/interpreter/execute-verify.js +391 -0
- package/dist/interpreter/execute-wait.d.ts +21 -0
- package/dist/interpreter/execute-wait.js +233 -0
- package/dist/interpreter/execute.js +24 -133
- package/dist/interpreter/step-kind-dispatch.d.ts +24 -0
- package/dist/interpreter/step-kind-dispatch.js +157 -0
- package/dist/interpreter/step-walk.d.ts +2 -0
- package/dist/interpreter/step-walk.js +24 -0
- package/dist/interpreter/verify-host.d.ts +40 -0
- package/dist/interpreter/verify-host.js +245 -0
- package/dist/runtime/durable/step-ledger.d.ts +34 -2
- package/dist/runtime/durable/step-ledger.js +97 -3
- package/dist/runtime/in-memory-artifact-store.d.ts +24 -0
- package/dist/runtime/in-memory-artifact-store.js +240 -0
- package/dist/schemas/workflow.d.ts +2 -2
- package/dist/schemas/workflow.js +1 -1
- package/dist/util/harness-internals.d.ts +23 -0
- package/dist/util/harness-internals.js +35 -0
- package/package.json +3 -3
- package/schema/noetic-workflow.schema.json +1170 -92
|
@@ -1,62 +1,117 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$id": "https://noetic.tools/schema/noetic-workflow.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"type": "number",
|
|
8
|
-
"const": 1
|
|
9
|
-
},
|
|
10
|
-
"customItems": {
|
|
4
|
+
"$ref": "#/$defs/WorkflowDocument",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"WorkflowDocument": {
|
|
11
7
|
"type": "object",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
"
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": {
|
|
10
|
+
"type": "number",
|
|
11
|
+
"const": 1
|
|
12
|
+
},
|
|
13
|
+
"customItems": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"propertyNames": {
|
|
20
16
|
"type": "string",
|
|
21
|
-
"
|
|
17
|
+
"minLength": 1
|
|
22
18
|
},
|
|
23
|
-
"
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"event": {
|
|
19
|
+
"additionalProperties": {
|
|
27
20
|
"type": "object",
|
|
28
|
-
"
|
|
29
|
-
"type":
|
|
21
|
+
"properties": {
|
|
22
|
+
"type": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^[^:]+:.+$"
|
|
25
|
+
},
|
|
26
|
+
"description": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"event": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"propertyNames": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": {}
|
|
35
|
+
},
|
|
36
|
+
"output": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"propertyNames": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": {}
|
|
42
|
+
}
|
|
30
43
|
},
|
|
31
|
-
"
|
|
44
|
+
"required": [
|
|
45
|
+
"type",
|
|
46
|
+
"output"
|
|
47
|
+
],
|
|
48
|
+
"additionalProperties": false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"connections": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"propertyNames": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
|
|
32
56
|
},
|
|
33
|
-
"
|
|
57
|
+
"additionalProperties": {
|
|
34
58
|
"type": "object",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
59
|
+
"properties": {
|
|
60
|
+
"profile": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"extensions": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"propertyNames": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"pattern": "^[a-z0-9-]+(\\.[a-z0-9-]+){2,}$"
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"events": {
|
|
74
|
+
"minItems": 1,
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"minLength": 1
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"from": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
|
|
84
|
+
},
|
|
85
|
+
"fresh": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": [
|
|
88
|
+
"run",
|
|
89
|
+
"path"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"setup": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"propertyNames": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": {}
|
|
98
|
+
}
|
|
37
99
|
},
|
|
38
|
-
"additionalProperties":
|
|
100
|
+
"additionalProperties": false
|
|
39
101
|
}
|
|
40
102
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
103
|
+
"root": {
|
|
104
|
+
"$ref": "#/$defs/WorkflowNode"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": [
|
|
108
|
+
"version",
|
|
109
|
+
"root"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"title": "WorkflowDocument",
|
|
113
|
+
"description": "A portable, JSON-safe representation of a Noetic step tree."
|
|
47
114
|
},
|
|
48
|
-
"root": {
|
|
49
|
-
"$ref": "#/$defs/WorkflowNode"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"required": [
|
|
53
|
-
"version",
|
|
54
|
-
"root"
|
|
55
|
-
],
|
|
56
|
-
"additionalProperties": false,
|
|
57
|
-
"title": "WorkflowDocument",
|
|
58
|
-
"description": "A portable, JSON-safe representation of a Noetic step tree.",
|
|
59
|
-
"$defs": {
|
|
60
115
|
"WorkflowNode": {
|
|
61
116
|
"oneOf": [
|
|
62
117
|
{
|
|
@@ -1571,8 +1626,20 @@
|
|
|
1571
1626
|
"$ref": "#/$defs/WorkflowNode"
|
|
1572
1627
|
},
|
|
1573
1628
|
"over": {
|
|
1574
|
-
"
|
|
1575
|
-
|
|
1629
|
+
"anyOf": [
|
|
1630
|
+
{
|
|
1631
|
+
"type": "string",
|
|
1632
|
+
"minLength": 1
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"minItems": 1,
|
|
1636
|
+
"type": "array",
|
|
1637
|
+
"items": {
|
|
1638
|
+
"type": "string",
|
|
1639
|
+
"minLength": 1
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
]
|
|
1576
1643
|
},
|
|
1577
1644
|
"merge": {
|
|
1578
1645
|
"type": "string",
|
|
@@ -2077,7 +2144,37 @@
|
|
|
2077
2144
|
"minItems": 1,
|
|
2078
2145
|
"type": "array",
|
|
2079
2146
|
"items": {
|
|
2080
|
-
"
|
|
2147
|
+
"anyOf": [
|
|
2148
|
+
{
|
|
2149
|
+
"$ref": "#/$defs/WorkflowNode"
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
"type": "object",
|
|
2153
|
+
"propertyNames": {
|
|
2154
|
+
"type": "string",
|
|
2155
|
+
"pattern": "^[A-Za-z0-9_-]+(\\.[A-Za-z0-9_-]+)+$"
|
|
2156
|
+
},
|
|
2157
|
+
"additionalProperties": {
|
|
2158
|
+
"anyOf": [
|
|
2159
|
+
{
|
|
2160
|
+
"type": "object",
|
|
2161
|
+
"properties": {
|
|
2162
|
+
"$expr": {
|
|
2163
|
+
"$ref": "#/$defs/Expression"
|
|
2164
|
+
}
|
|
2165
|
+
},
|
|
2166
|
+
"required": [
|
|
2167
|
+
"$expr"
|
|
2168
|
+
],
|
|
2169
|
+
"additionalProperties": false
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"$ref": "#/$defs/WorkflowValueObject"
|
|
2173
|
+
}
|
|
2174
|
+
]
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
]
|
|
2081
2178
|
}
|
|
2082
2179
|
}
|
|
2083
2180
|
},
|
|
@@ -2312,7 +2409,7 @@
|
|
|
2312
2409
|
}
|
|
2313
2410
|
},
|
|
2314
2411
|
"document": {
|
|
2315
|
-
"$ref": "
|
|
2412
|
+
"$ref": "#/$defs/WorkflowDocument"
|
|
2316
2413
|
},
|
|
2317
2414
|
"ref": {
|
|
2318
2415
|
"type": "string",
|
|
@@ -2702,52 +2799,155 @@
|
|
|
2702
2799
|
"prompt"
|
|
2703
2800
|
],
|
|
2704
2801
|
"additionalProperties": false
|
|
2705
|
-
}
|
|
2706
|
-
],
|
|
2707
|
-
"title": "WorkflowNode"
|
|
2708
|
-
},
|
|
2709
|
-
"Expression": {
|
|
2710
|
-
"type": "string",
|
|
2711
|
-
"minLength": 1,
|
|
2712
|
-
"title": "Expression",
|
|
2713
|
-
"description": "A JSONata expression (https://jsonata.org) evaluated against the node input, read as JSON when it parses."
|
|
2714
|
-
},
|
|
2715
|
-
"UntilPredicate": {
|
|
2716
|
-
"anyOf": [
|
|
2802
|
+
},
|
|
2717
2803
|
{
|
|
2718
2804
|
"type": "object",
|
|
2719
2805
|
"properties": {
|
|
2720
2806
|
"kind": {
|
|
2721
2807
|
"type": "string",
|
|
2722
|
-
"const": "
|
|
2808
|
+
"const": "call"
|
|
2723
2809
|
},
|
|
2724
|
-
"
|
|
2725
|
-
"type": "integer",
|
|
2726
|
-
"exclusiveMinimum": 0,
|
|
2727
|
-
"maximum": 9007199254740991
|
|
2728
|
-
}
|
|
2729
|
-
},
|
|
2730
|
-
"required": [
|
|
2731
|
-
"kind",
|
|
2732
|
-
"n"
|
|
2733
|
-
],
|
|
2734
|
-
"additionalProperties": false
|
|
2735
|
-
},
|
|
2736
|
-
{
|
|
2737
|
-
"type": "object",
|
|
2738
|
-
"properties": {
|
|
2739
|
-
"kind": {
|
|
2810
|
+
"id": {
|
|
2740
2811
|
"type": "string",
|
|
2741
|
-
"
|
|
2812
|
+
"minLength": 1
|
|
2742
2813
|
},
|
|
2743
|
-
"
|
|
2744
|
-
"type": "
|
|
2745
|
-
|
|
2814
|
+
"durable": {
|
|
2815
|
+
"type": "boolean"
|
|
2816
|
+
},
|
|
2817
|
+
"replayKey": {
|
|
2818
|
+
"anyOf": [
|
|
2819
|
+
{
|
|
2820
|
+
"type": "boolean",
|
|
2821
|
+
"const": true
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
"type": "object",
|
|
2825
|
+
"properties": {
|
|
2826
|
+
"from": {
|
|
2827
|
+
"minItems": 1,
|
|
2828
|
+
"type": "array",
|
|
2829
|
+
"items": {
|
|
2830
|
+
"type": "string",
|
|
2831
|
+
"minLength": 1
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
},
|
|
2835
|
+
"required": [
|
|
2836
|
+
"from"
|
|
2837
|
+
],
|
|
2838
|
+
"additionalProperties": false
|
|
2839
|
+
}
|
|
2840
|
+
]
|
|
2841
|
+
},
|
|
2842
|
+
"emitItems": {
|
|
2843
|
+
"anyOf": [
|
|
2844
|
+
{
|
|
2845
|
+
"type": "boolean"
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
"type": "object",
|
|
2849
|
+
"properties": {
|
|
2850
|
+
"item": {
|
|
2851
|
+
"type": "string",
|
|
2852
|
+
"minLength": 1
|
|
2853
|
+
},
|
|
2854
|
+
"onStart": {
|
|
2855
|
+
"$ref": "#/$defs/Expression"
|
|
2856
|
+
},
|
|
2857
|
+
"onDone": {
|
|
2858
|
+
"$ref": "#/$defs/Expression"
|
|
2859
|
+
}
|
|
2860
|
+
},
|
|
2861
|
+
"additionalProperties": false
|
|
2862
|
+
}
|
|
2863
|
+
]
|
|
2864
|
+
},
|
|
2865
|
+
"customItems": {
|
|
2866
|
+
"type": "object",
|
|
2867
|
+
"propertyNames": {
|
|
2868
|
+
"type": "string",
|
|
2869
|
+
"minLength": 1
|
|
2870
|
+
},
|
|
2871
|
+
"additionalProperties": {
|
|
2872
|
+
"type": "object",
|
|
2873
|
+
"properties": {
|
|
2874
|
+
"type": {
|
|
2875
|
+
"type": "string",
|
|
2876
|
+
"pattern": "^[^:]+:.+$"
|
|
2877
|
+
},
|
|
2878
|
+
"description": {
|
|
2879
|
+
"type": "string"
|
|
2880
|
+
},
|
|
2881
|
+
"event": {
|
|
2882
|
+
"type": "object",
|
|
2883
|
+
"propertyNames": {
|
|
2884
|
+
"type": "string"
|
|
2885
|
+
},
|
|
2886
|
+
"additionalProperties": {}
|
|
2887
|
+
},
|
|
2888
|
+
"output": {
|
|
2889
|
+
"type": "object",
|
|
2890
|
+
"propertyNames": {
|
|
2891
|
+
"type": "string"
|
|
2892
|
+
},
|
|
2893
|
+
"additionalProperties": {}
|
|
2894
|
+
}
|
|
2895
|
+
},
|
|
2896
|
+
"required": [
|
|
2897
|
+
"type",
|
|
2898
|
+
"output"
|
|
2899
|
+
],
|
|
2900
|
+
"additionalProperties": false
|
|
2901
|
+
}
|
|
2902
|
+
},
|
|
2903
|
+
"connection": {
|
|
2904
|
+
"anyOf": [
|
|
2905
|
+
{
|
|
2906
|
+
"type": "string",
|
|
2907
|
+
"minLength": 1
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
"type": "object",
|
|
2911
|
+
"properties": {
|
|
2912
|
+
"$expr": {
|
|
2913
|
+
"$ref": "#/$defs/Expression"
|
|
2914
|
+
}
|
|
2915
|
+
},
|
|
2916
|
+
"required": [
|
|
2917
|
+
"$expr"
|
|
2918
|
+
],
|
|
2919
|
+
"additionalProperties": false
|
|
2920
|
+
}
|
|
2921
|
+
]
|
|
2922
|
+
},
|
|
2923
|
+
"op": {
|
|
2924
|
+
"type": "string",
|
|
2925
|
+
"pattern": "^[A-Za-z0-9_-]+(\\.[A-Za-z0-9_-]+)+$"
|
|
2926
|
+
},
|
|
2927
|
+
"args": {
|
|
2928
|
+
"anyOf": [
|
|
2929
|
+
{
|
|
2930
|
+
"type": "object",
|
|
2931
|
+
"properties": {
|
|
2932
|
+
"$expr": {
|
|
2933
|
+
"$ref": "#/$defs/Expression"
|
|
2934
|
+
}
|
|
2935
|
+
},
|
|
2936
|
+
"required": [
|
|
2937
|
+
"$expr"
|
|
2938
|
+
],
|
|
2939
|
+
"additionalProperties": false
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
"$ref": "#/$defs/WorkflowValueObject"
|
|
2943
|
+
}
|
|
2944
|
+
]
|
|
2746
2945
|
}
|
|
2747
2946
|
},
|
|
2748
2947
|
"required": [
|
|
2749
2948
|
"kind",
|
|
2750
|
-
"
|
|
2949
|
+
"id",
|
|
2950
|
+
"op"
|
|
2751
2951
|
],
|
|
2752
2952
|
"additionalProperties": false
|
|
2753
2953
|
},
|
|
@@ -2756,16 +2956,745 @@
|
|
|
2756
2956
|
"properties": {
|
|
2757
2957
|
"kind": {
|
|
2758
2958
|
"type": "string",
|
|
2759
|
-
"const": "
|
|
2959
|
+
"const": "wait"
|
|
2760
2960
|
},
|
|
2761
|
-
"
|
|
2762
|
-
"type": "
|
|
2763
|
-
"
|
|
2764
|
-
}
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
"
|
|
2961
|
+
"id": {
|
|
2962
|
+
"type": "string",
|
|
2963
|
+
"minLength": 1
|
|
2964
|
+
},
|
|
2965
|
+
"durable": {
|
|
2966
|
+
"type": "boolean"
|
|
2967
|
+
},
|
|
2968
|
+
"replayKey": {
|
|
2969
|
+
"anyOf": [
|
|
2970
|
+
{
|
|
2971
|
+
"type": "boolean",
|
|
2972
|
+
"const": true
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"type": "object",
|
|
2976
|
+
"properties": {
|
|
2977
|
+
"from": {
|
|
2978
|
+
"minItems": 1,
|
|
2979
|
+
"type": "array",
|
|
2980
|
+
"items": {
|
|
2981
|
+
"type": "string",
|
|
2982
|
+
"minLength": 1
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
},
|
|
2986
|
+
"required": [
|
|
2987
|
+
"from"
|
|
2988
|
+
],
|
|
2989
|
+
"additionalProperties": false
|
|
2990
|
+
}
|
|
2991
|
+
]
|
|
2992
|
+
},
|
|
2993
|
+
"emitItems": {
|
|
2994
|
+
"anyOf": [
|
|
2995
|
+
{
|
|
2996
|
+
"type": "boolean"
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
"type": "object",
|
|
3000
|
+
"properties": {
|
|
3001
|
+
"item": {
|
|
3002
|
+
"type": "string",
|
|
3003
|
+
"minLength": 1
|
|
3004
|
+
},
|
|
3005
|
+
"onStart": {
|
|
3006
|
+
"$ref": "#/$defs/Expression"
|
|
3007
|
+
},
|
|
3008
|
+
"onDone": {
|
|
3009
|
+
"$ref": "#/$defs/Expression"
|
|
3010
|
+
}
|
|
3011
|
+
},
|
|
3012
|
+
"additionalProperties": false
|
|
3013
|
+
}
|
|
3014
|
+
]
|
|
3015
|
+
},
|
|
3016
|
+
"customItems": {
|
|
3017
|
+
"type": "object",
|
|
3018
|
+
"propertyNames": {
|
|
3019
|
+
"type": "string",
|
|
3020
|
+
"minLength": 1
|
|
3021
|
+
},
|
|
3022
|
+
"additionalProperties": {
|
|
3023
|
+
"type": "object",
|
|
3024
|
+
"properties": {
|
|
3025
|
+
"type": {
|
|
3026
|
+
"type": "string",
|
|
3027
|
+
"pattern": "^[^:]+:.+$"
|
|
3028
|
+
},
|
|
3029
|
+
"description": {
|
|
3030
|
+
"type": "string"
|
|
3031
|
+
},
|
|
3032
|
+
"event": {
|
|
3033
|
+
"type": "object",
|
|
3034
|
+
"propertyNames": {
|
|
3035
|
+
"type": "string"
|
|
3036
|
+
},
|
|
3037
|
+
"additionalProperties": {}
|
|
3038
|
+
},
|
|
3039
|
+
"output": {
|
|
3040
|
+
"type": "object",
|
|
3041
|
+
"propertyNames": {
|
|
3042
|
+
"type": "string"
|
|
3043
|
+
},
|
|
3044
|
+
"additionalProperties": {}
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
"required": [
|
|
3048
|
+
"type",
|
|
3049
|
+
"output"
|
|
3050
|
+
],
|
|
3051
|
+
"additionalProperties": false
|
|
3052
|
+
}
|
|
3053
|
+
},
|
|
3054
|
+
"connection": {
|
|
3055
|
+
"anyOf": [
|
|
3056
|
+
{
|
|
3057
|
+
"type": "string",
|
|
3058
|
+
"minLength": 1
|
|
3059
|
+
},
|
|
3060
|
+
{
|
|
3061
|
+
"type": "object",
|
|
3062
|
+
"properties": {
|
|
3063
|
+
"$expr": {
|
|
3064
|
+
"$ref": "#/$defs/Expression"
|
|
3065
|
+
}
|
|
3066
|
+
},
|
|
3067
|
+
"required": [
|
|
3068
|
+
"$expr"
|
|
3069
|
+
],
|
|
3070
|
+
"additionalProperties": false
|
|
3071
|
+
}
|
|
3072
|
+
]
|
|
3073
|
+
},
|
|
3074
|
+
"event": {
|
|
3075
|
+
"type": "string",
|
|
3076
|
+
"pattern": "^[A-Za-z0-9_.-]+$"
|
|
3077
|
+
},
|
|
3078
|
+
"filter": {
|
|
3079
|
+
"$ref": "#/$defs/Expression"
|
|
3080
|
+
},
|
|
3081
|
+
"around": {
|
|
3082
|
+
"anyOf": [
|
|
3083
|
+
{
|
|
3084
|
+
"anyOf": [
|
|
3085
|
+
{
|
|
3086
|
+
"$ref": "#/$defs/WorkflowNode"
|
|
3087
|
+
},
|
|
3088
|
+
{
|
|
3089
|
+
"type": "object",
|
|
3090
|
+
"propertyNames": {
|
|
3091
|
+
"type": "string",
|
|
3092
|
+
"pattern": "^[A-Za-z0-9_-]+(\\.[A-Za-z0-9_-]+)+$"
|
|
3093
|
+
},
|
|
3094
|
+
"additionalProperties": {
|
|
3095
|
+
"anyOf": [
|
|
3096
|
+
{
|
|
3097
|
+
"type": "object",
|
|
3098
|
+
"properties": {
|
|
3099
|
+
"$expr": {
|
|
3100
|
+
"$ref": "#/$defs/Expression"
|
|
3101
|
+
}
|
|
3102
|
+
},
|
|
3103
|
+
"required": [
|
|
3104
|
+
"$expr"
|
|
3105
|
+
],
|
|
3106
|
+
"additionalProperties": false
|
|
3107
|
+
},
|
|
3108
|
+
{
|
|
3109
|
+
"$ref": "#/$defs/WorkflowValueObject"
|
|
3110
|
+
}
|
|
3111
|
+
]
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
]
|
|
3115
|
+
},
|
|
3116
|
+
{
|
|
3117
|
+
"minItems": 1,
|
|
3118
|
+
"type": "array",
|
|
3119
|
+
"items": {
|
|
3120
|
+
"anyOf": [
|
|
3121
|
+
{
|
|
3122
|
+
"$ref": "#/$defs/WorkflowNode"
|
|
3123
|
+
},
|
|
3124
|
+
{
|
|
3125
|
+
"type": "object",
|
|
3126
|
+
"propertyNames": {
|
|
3127
|
+
"type": "string",
|
|
3128
|
+
"pattern": "^[A-Za-z0-9_-]+(\\.[A-Za-z0-9_-]+)+$"
|
|
3129
|
+
},
|
|
3130
|
+
"additionalProperties": {
|
|
3131
|
+
"anyOf": [
|
|
3132
|
+
{
|
|
3133
|
+
"type": "object",
|
|
3134
|
+
"properties": {
|
|
3135
|
+
"$expr": {
|
|
3136
|
+
"$ref": "#/$defs/Expression"
|
|
3137
|
+
}
|
|
3138
|
+
},
|
|
3139
|
+
"required": [
|
|
3140
|
+
"$expr"
|
|
3141
|
+
],
|
|
3142
|
+
"additionalProperties": false
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
"$ref": "#/$defs/WorkflowValueObject"
|
|
3146
|
+
}
|
|
3147
|
+
]
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
]
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3153
|
+
]
|
|
3154
|
+
},
|
|
3155
|
+
"timeoutMs": {
|
|
3156
|
+
"type": "number",
|
|
3157
|
+
"exclusiveMinimum": 0
|
|
3158
|
+
}
|
|
3159
|
+
},
|
|
3160
|
+
"required": [
|
|
3161
|
+
"kind",
|
|
3162
|
+
"id",
|
|
3163
|
+
"event",
|
|
3164
|
+
"timeoutMs"
|
|
3165
|
+
],
|
|
3166
|
+
"additionalProperties": false
|
|
3167
|
+
},
|
|
3168
|
+
{
|
|
3169
|
+
"type": "object",
|
|
3170
|
+
"properties": {
|
|
3171
|
+
"kind": {
|
|
3172
|
+
"type": "string",
|
|
3173
|
+
"const": "verify"
|
|
3174
|
+
},
|
|
3175
|
+
"id": {
|
|
3176
|
+
"type": "string",
|
|
3177
|
+
"minLength": 1
|
|
3178
|
+
},
|
|
3179
|
+
"durable": {
|
|
3180
|
+
"type": "boolean"
|
|
3181
|
+
},
|
|
3182
|
+
"replayKey": {
|
|
3183
|
+
"anyOf": [
|
|
3184
|
+
{
|
|
3185
|
+
"type": "boolean",
|
|
3186
|
+
"const": true
|
|
3187
|
+
},
|
|
3188
|
+
{
|
|
3189
|
+
"type": "object",
|
|
3190
|
+
"properties": {
|
|
3191
|
+
"from": {
|
|
3192
|
+
"minItems": 1,
|
|
3193
|
+
"type": "array",
|
|
3194
|
+
"items": {
|
|
3195
|
+
"type": "string",
|
|
3196
|
+
"minLength": 1
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
},
|
|
3200
|
+
"required": [
|
|
3201
|
+
"from"
|
|
3202
|
+
],
|
|
3203
|
+
"additionalProperties": false
|
|
3204
|
+
}
|
|
3205
|
+
]
|
|
3206
|
+
},
|
|
3207
|
+
"emitItems": {
|
|
3208
|
+
"anyOf": [
|
|
3209
|
+
{
|
|
3210
|
+
"type": "boolean"
|
|
3211
|
+
},
|
|
3212
|
+
{
|
|
3213
|
+
"type": "object",
|
|
3214
|
+
"properties": {
|
|
3215
|
+
"item": {
|
|
3216
|
+
"type": "string",
|
|
3217
|
+
"minLength": 1
|
|
3218
|
+
},
|
|
3219
|
+
"onStart": {
|
|
3220
|
+
"$ref": "#/$defs/Expression"
|
|
3221
|
+
},
|
|
3222
|
+
"onDone": {
|
|
3223
|
+
"$ref": "#/$defs/Expression"
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
"additionalProperties": false
|
|
3227
|
+
}
|
|
3228
|
+
]
|
|
3229
|
+
},
|
|
3230
|
+
"customItems": {
|
|
3231
|
+
"type": "object",
|
|
3232
|
+
"propertyNames": {
|
|
3233
|
+
"type": "string",
|
|
3234
|
+
"minLength": 1
|
|
3235
|
+
},
|
|
3236
|
+
"additionalProperties": {
|
|
3237
|
+
"type": "object",
|
|
3238
|
+
"properties": {
|
|
3239
|
+
"type": {
|
|
3240
|
+
"type": "string",
|
|
3241
|
+
"pattern": "^[^:]+:.+$"
|
|
3242
|
+
},
|
|
3243
|
+
"description": {
|
|
3244
|
+
"type": "string"
|
|
3245
|
+
},
|
|
3246
|
+
"event": {
|
|
3247
|
+
"type": "object",
|
|
3248
|
+
"propertyNames": {
|
|
3249
|
+
"type": "string"
|
|
3250
|
+
},
|
|
3251
|
+
"additionalProperties": {}
|
|
3252
|
+
},
|
|
3253
|
+
"output": {
|
|
3254
|
+
"type": "object",
|
|
3255
|
+
"propertyNames": {
|
|
3256
|
+
"type": "string"
|
|
3257
|
+
},
|
|
3258
|
+
"additionalProperties": {}
|
|
3259
|
+
}
|
|
3260
|
+
},
|
|
3261
|
+
"required": [
|
|
3262
|
+
"type",
|
|
3263
|
+
"output"
|
|
3264
|
+
],
|
|
3265
|
+
"additionalProperties": false
|
|
3266
|
+
}
|
|
3267
|
+
},
|
|
3268
|
+
"subject": {
|
|
3269
|
+
"anyOf": [
|
|
3270
|
+
{
|
|
3271
|
+
"type": "string",
|
|
3272
|
+
"minLength": 1
|
|
3273
|
+
},
|
|
3274
|
+
{
|
|
3275
|
+
"minItems": 1,
|
|
3276
|
+
"type": "array",
|
|
3277
|
+
"items": {
|
|
3278
|
+
"type": "string",
|
|
3279
|
+
"minLength": 1
|
|
3280
|
+
}
|
|
3281
|
+
},
|
|
3282
|
+
{
|
|
3283
|
+
"type": "object",
|
|
3284
|
+
"properties": {
|
|
3285
|
+
"$expr": {
|
|
3286
|
+
"$ref": "#/$defs/Expression"
|
|
3287
|
+
}
|
|
3288
|
+
},
|
|
3289
|
+
"required": [
|
|
3290
|
+
"$expr"
|
|
3291
|
+
],
|
|
3292
|
+
"additionalProperties": false
|
|
3293
|
+
}
|
|
3294
|
+
]
|
|
3295
|
+
},
|
|
3296
|
+
"expect": {
|
|
3297
|
+
"minItems": 1,
|
|
3298
|
+
"type": "array",
|
|
3299
|
+
"items": {
|
|
3300
|
+
"type": "object",
|
|
3301
|
+
"properties": {
|
|
3302
|
+
"count": {
|
|
3303
|
+
"type": "integer",
|
|
3304
|
+
"minimum": 0,
|
|
3305
|
+
"maximum": 9007199254740991
|
|
3306
|
+
},
|
|
3307
|
+
"atLeast": {
|
|
3308
|
+
"type": "integer",
|
|
3309
|
+
"minimum": 0,
|
|
3310
|
+
"maximum": 9007199254740991
|
|
3311
|
+
},
|
|
3312
|
+
"atMost": {
|
|
3313
|
+
"type": "integer",
|
|
3314
|
+
"minimum": 0,
|
|
3315
|
+
"maximum": 9007199254740991
|
|
3316
|
+
},
|
|
3317
|
+
"equals": {
|
|
3318
|
+
"type": [
|
|
3319
|
+
"number",
|
|
3320
|
+
"string",
|
|
3321
|
+
"boolean"
|
|
3322
|
+
]
|
|
3323
|
+
},
|
|
3324
|
+
"tolerance": {
|
|
3325
|
+
"type": "number",
|
|
3326
|
+
"minimum": 0
|
|
3327
|
+
}
|
|
3328
|
+
},
|
|
3329
|
+
"additionalProperties": {
|
|
3330
|
+
"type": "string",
|
|
3331
|
+
"minLength": 1
|
|
3332
|
+
}
|
|
3333
|
+
}
|
|
3334
|
+
},
|
|
3335
|
+
"never": {
|
|
3336
|
+
"type": "array",
|
|
3337
|
+
"items": {
|
|
3338
|
+
"type": "object",
|
|
3339
|
+
"properties": {
|
|
3340
|
+
"count": {
|
|
3341
|
+
"type": "integer",
|
|
3342
|
+
"minimum": 0,
|
|
3343
|
+
"maximum": 9007199254740991
|
|
3344
|
+
},
|
|
3345
|
+
"atLeast": {
|
|
3346
|
+
"type": "integer",
|
|
3347
|
+
"minimum": 0,
|
|
3348
|
+
"maximum": 9007199254740991
|
|
3349
|
+
},
|
|
3350
|
+
"atMost": {
|
|
3351
|
+
"type": "integer",
|
|
3352
|
+
"minimum": 0,
|
|
3353
|
+
"maximum": 9007199254740991
|
|
3354
|
+
},
|
|
3355
|
+
"equals": {
|
|
3356
|
+
"type": [
|
|
3357
|
+
"number",
|
|
3358
|
+
"string",
|
|
3359
|
+
"boolean"
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3362
|
+
"tolerance": {
|
|
3363
|
+
"type": "number",
|
|
3364
|
+
"minimum": 0
|
|
3365
|
+
}
|
|
3366
|
+
},
|
|
3367
|
+
"additionalProperties": {
|
|
3368
|
+
"type": "string",
|
|
3369
|
+
"minLength": 1
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
},
|
|
3373
|
+
"claims": {
|
|
3374
|
+
"minItems": 1,
|
|
3375
|
+
"type": "array",
|
|
3376
|
+
"items": {
|
|
3377
|
+
"type": "object",
|
|
3378
|
+
"properties": {
|
|
3379
|
+
"id": {
|
|
3380
|
+
"type": "string",
|
|
3381
|
+
"minLength": 1
|
|
3382
|
+
},
|
|
3383
|
+
"intent": {
|
|
3384
|
+
"type": "string"
|
|
3385
|
+
},
|
|
3386
|
+
"statement": {
|
|
3387
|
+
"type": "string",
|
|
3388
|
+
"minLength": 1
|
|
3389
|
+
},
|
|
3390
|
+
"declaredAt": {
|
|
3391
|
+
"type": "string",
|
|
3392
|
+
"enum": [
|
|
3393
|
+
"before-action",
|
|
3394
|
+
"after-action"
|
|
3395
|
+
]
|
|
3396
|
+
},
|
|
3397
|
+
"assertions": {
|
|
3398
|
+
"default": [],
|
|
3399
|
+
"type": "array",
|
|
3400
|
+
"items": {
|
|
3401
|
+
"type": "object",
|
|
3402
|
+
"properties": {
|
|
3403
|
+
"id": {
|
|
3404
|
+
"type": "string",
|
|
3405
|
+
"minLength": 1
|
|
3406
|
+
},
|
|
3407
|
+
"predicate": {},
|
|
3408
|
+
"reads": {
|
|
3409
|
+
"type": "string",
|
|
3410
|
+
"minLength": 1
|
|
3411
|
+
},
|
|
3412
|
+
"channels": {
|
|
3413
|
+
"minItems": 1,
|
|
3414
|
+
"type": "array",
|
|
3415
|
+
"items": {
|
|
3416
|
+
"anyOf": [
|
|
3417
|
+
{
|
|
3418
|
+
"type": "string",
|
|
3419
|
+
"enum": [
|
|
3420
|
+
"ui",
|
|
3421
|
+
"net",
|
|
3422
|
+
"state",
|
|
3423
|
+
"signal",
|
|
3424
|
+
"log",
|
|
3425
|
+
"route",
|
|
3426
|
+
"storage",
|
|
3427
|
+
"time",
|
|
3428
|
+
"visual"
|
|
3429
|
+
]
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
"type": "string",
|
|
3433
|
+
"pattern": "^x-[a-z0-9-]+$"
|
|
3434
|
+
}
|
|
3435
|
+
]
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
},
|
|
3439
|
+
"required": [
|
|
3440
|
+
"id",
|
|
3441
|
+
"reads",
|
|
3442
|
+
"channels"
|
|
3443
|
+
],
|
|
3444
|
+
"additionalProperties": false
|
|
3445
|
+
}
|
|
3446
|
+
}
|
|
3447
|
+
},
|
|
3448
|
+
"required": [
|
|
3449
|
+
"id",
|
|
3450
|
+
"statement",
|
|
3451
|
+
"declaredAt",
|
|
3452
|
+
"assertions"
|
|
3453
|
+
],
|
|
3454
|
+
"additionalProperties": false
|
|
3455
|
+
}
|
|
3456
|
+
},
|
|
3457
|
+
"constraints": {
|
|
3458
|
+
"type": "array",
|
|
3459
|
+
"items": {
|
|
3460
|
+
"type": "object",
|
|
3461
|
+
"properties": {
|
|
3462
|
+
"id": {
|
|
3463
|
+
"type": "string",
|
|
3464
|
+
"minLength": 1
|
|
3465
|
+
},
|
|
3466
|
+
"statement": {
|
|
3467
|
+
"type": "string",
|
|
3468
|
+
"minLength": 1
|
|
3469
|
+
},
|
|
3470
|
+
"predicate": {},
|
|
3471
|
+
"channels": {
|
|
3472
|
+
"minItems": 1,
|
|
3473
|
+
"type": "array",
|
|
3474
|
+
"items": {
|
|
3475
|
+
"anyOf": [
|
|
3476
|
+
{
|
|
3477
|
+
"type": "string",
|
|
3478
|
+
"enum": [
|
|
3479
|
+
"ui",
|
|
3480
|
+
"net",
|
|
3481
|
+
"state",
|
|
3482
|
+
"signal",
|
|
3483
|
+
"log",
|
|
3484
|
+
"route",
|
|
3485
|
+
"storage",
|
|
3486
|
+
"time",
|
|
3487
|
+
"visual"
|
|
3488
|
+
]
|
|
3489
|
+
},
|
|
3490
|
+
{
|
|
3491
|
+
"type": "string",
|
|
3492
|
+
"pattern": "^x-[a-z0-9-]+$"
|
|
3493
|
+
}
|
|
3494
|
+
]
|
|
3495
|
+
}
|
|
3496
|
+
},
|
|
3497
|
+
"severity": {
|
|
3498
|
+
"default": "blocking",
|
|
3499
|
+
"type": "string",
|
|
3500
|
+
"enum": [
|
|
3501
|
+
"blocking",
|
|
3502
|
+
"advisory"
|
|
3503
|
+
]
|
|
3504
|
+
}
|
|
3505
|
+
},
|
|
3506
|
+
"required": [
|
|
3507
|
+
"id",
|
|
3508
|
+
"statement",
|
|
3509
|
+
"channels",
|
|
3510
|
+
"severity"
|
|
3511
|
+
],
|
|
3512
|
+
"additionalProperties": false
|
|
3513
|
+
}
|
|
3514
|
+
},
|
|
3515
|
+
"act": {
|
|
3516
|
+
"anyOf": [
|
|
3517
|
+
{
|
|
3518
|
+
"anyOf": [
|
|
3519
|
+
{
|
|
3520
|
+
"$ref": "#/$defs/WorkflowNode"
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
"type": "object",
|
|
3524
|
+
"propertyNames": {
|
|
3525
|
+
"type": "string",
|
|
3526
|
+
"pattern": "^[A-Za-z0-9_-]+(\\.[A-Za-z0-9_-]+)+$"
|
|
3527
|
+
},
|
|
3528
|
+
"additionalProperties": {
|
|
3529
|
+
"anyOf": [
|
|
3530
|
+
{
|
|
3531
|
+
"type": "object",
|
|
3532
|
+
"properties": {
|
|
3533
|
+
"$expr": {
|
|
3534
|
+
"$ref": "#/$defs/Expression"
|
|
3535
|
+
}
|
|
3536
|
+
},
|
|
3537
|
+
"required": [
|
|
3538
|
+
"$expr"
|
|
3539
|
+
],
|
|
3540
|
+
"additionalProperties": false
|
|
3541
|
+
},
|
|
3542
|
+
{
|
|
3543
|
+
"$ref": "#/$defs/WorkflowValueObject"
|
|
3544
|
+
}
|
|
3545
|
+
]
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
]
|
|
3549
|
+
},
|
|
3550
|
+
{
|
|
3551
|
+
"minItems": 1,
|
|
3552
|
+
"type": "array",
|
|
3553
|
+
"items": {
|
|
3554
|
+
"anyOf": [
|
|
3555
|
+
{
|
|
3556
|
+
"$ref": "#/$defs/WorkflowNode"
|
|
3557
|
+
},
|
|
3558
|
+
{
|
|
3559
|
+
"type": "object",
|
|
3560
|
+
"propertyNames": {
|
|
3561
|
+
"type": "string",
|
|
3562
|
+
"pattern": "^[A-Za-z0-9_-]+(\\.[A-Za-z0-9_-]+)+$"
|
|
3563
|
+
},
|
|
3564
|
+
"additionalProperties": {
|
|
3565
|
+
"anyOf": [
|
|
3566
|
+
{
|
|
3567
|
+
"type": "object",
|
|
3568
|
+
"properties": {
|
|
3569
|
+
"$expr": {
|
|
3570
|
+
"$ref": "#/$defs/Expression"
|
|
3571
|
+
}
|
|
3572
|
+
},
|
|
3573
|
+
"required": [
|
|
3574
|
+
"$expr"
|
|
3575
|
+
],
|
|
3576
|
+
"additionalProperties": false
|
|
3577
|
+
},
|
|
3578
|
+
{
|
|
3579
|
+
"$ref": "#/$defs/WorkflowValueObject"
|
|
3580
|
+
}
|
|
3581
|
+
]
|
|
3582
|
+
}
|
|
3583
|
+
}
|
|
3584
|
+
]
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
]
|
|
3588
|
+
},
|
|
3589
|
+
"witnesses": {
|
|
3590
|
+
"type": "array",
|
|
3591
|
+
"items": {
|
|
3592
|
+
"type": "string",
|
|
3593
|
+
"minLength": 1
|
|
3594
|
+
}
|
|
3595
|
+
},
|
|
3596
|
+
"close": {
|
|
3597
|
+
"type": "object",
|
|
3598
|
+
"properties": {
|
|
3599
|
+
"until": {
|
|
3600
|
+
"type": "string",
|
|
3601
|
+
"enum": [
|
|
3602
|
+
"quiet",
|
|
3603
|
+
"event",
|
|
3604
|
+
"done",
|
|
3605
|
+
"exit"
|
|
3606
|
+
]
|
|
3607
|
+
},
|
|
3608
|
+
"event": {
|
|
3609
|
+
"type": "string",
|
|
3610
|
+
"minLength": 1
|
|
3611
|
+
},
|
|
3612
|
+
"quietMs": {
|
|
3613
|
+
"type": "number",
|
|
3614
|
+
"minimum": 0
|
|
3615
|
+
},
|
|
3616
|
+
"timeoutMs": {
|
|
3617
|
+
"type": "number",
|
|
3618
|
+
"exclusiveMinimum": 0
|
|
3619
|
+
}
|
|
3620
|
+
},
|
|
3621
|
+
"additionalProperties": false
|
|
3622
|
+
},
|
|
3623
|
+
"intent": {
|
|
3624
|
+
"type": "string"
|
|
3625
|
+
}
|
|
3626
|
+
},
|
|
3627
|
+
"required": [
|
|
3628
|
+
"kind",
|
|
3629
|
+
"id",
|
|
3630
|
+
"subject",
|
|
3631
|
+
"act"
|
|
3632
|
+
],
|
|
3633
|
+
"additionalProperties": false
|
|
3634
|
+
}
|
|
3635
|
+
],
|
|
3636
|
+
"title": "WorkflowNode"
|
|
3637
|
+
},
|
|
3638
|
+
"Expression": {
|
|
3639
|
+
"type": "string",
|
|
3640
|
+
"minLength": 1,
|
|
3641
|
+
"title": "Expression",
|
|
3642
|
+
"description": "A JSONata expression (https://jsonata.org) evaluated against the node input, read as JSON when it parses."
|
|
3643
|
+
},
|
|
3644
|
+
"UntilPredicate": {
|
|
3645
|
+
"anyOf": [
|
|
3646
|
+
{
|
|
3647
|
+
"type": "object",
|
|
3648
|
+
"properties": {
|
|
3649
|
+
"kind": {
|
|
3650
|
+
"type": "string",
|
|
3651
|
+
"const": "maxSteps"
|
|
3652
|
+
},
|
|
3653
|
+
"n": {
|
|
3654
|
+
"type": "integer",
|
|
3655
|
+
"exclusiveMinimum": 0,
|
|
3656
|
+
"maximum": 9007199254740991
|
|
3657
|
+
}
|
|
3658
|
+
},
|
|
3659
|
+
"required": [
|
|
3660
|
+
"kind",
|
|
3661
|
+
"n"
|
|
3662
|
+
],
|
|
3663
|
+
"additionalProperties": false
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
"type": "object",
|
|
3667
|
+
"properties": {
|
|
3668
|
+
"kind": {
|
|
3669
|
+
"type": "string",
|
|
3670
|
+
"const": "maxCost"
|
|
3671
|
+
},
|
|
3672
|
+
"usd": {
|
|
3673
|
+
"type": "number",
|
|
3674
|
+
"exclusiveMinimum": 0
|
|
3675
|
+
}
|
|
3676
|
+
},
|
|
3677
|
+
"required": [
|
|
3678
|
+
"kind",
|
|
3679
|
+
"usd"
|
|
3680
|
+
],
|
|
3681
|
+
"additionalProperties": false
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
"type": "object",
|
|
3685
|
+
"properties": {
|
|
3686
|
+
"kind": {
|
|
3687
|
+
"type": "string",
|
|
3688
|
+
"const": "maxDuration"
|
|
3689
|
+
},
|
|
3690
|
+
"duration": {
|
|
3691
|
+
"type": "number",
|
|
3692
|
+
"exclusiveMinimum": 0
|
|
3693
|
+
}
|
|
3694
|
+
},
|
|
3695
|
+
"required": [
|
|
3696
|
+
"kind",
|
|
3697
|
+
"duration"
|
|
2769
3698
|
],
|
|
2770
3699
|
"additionalProperties": false
|
|
2771
3700
|
},
|
|
@@ -3175,6 +4104,155 @@
|
|
|
3175
4104
|
}
|
|
3176
4105
|
],
|
|
3177
4106
|
"title": "UntilPredicate"
|
|
4107
|
+
},
|
|
4108
|
+
"WorkflowValueObject": {
|
|
4109
|
+
"type": "object",
|
|
4110
|
+
"propertyNames": {
|
|
4111
|
+
"type": "string",
|
|
4112
|
+
"pattern": "^(?!\\$)"
|
|
4113
|
+
},
|
|
4114
|
+
"additionalProperties": {
|
|
4115
|
+
"$ref": "#/$defs/WorkflowValue"
|
|
4116
|
+
},
|
|
4117
|
+
"title": "WorkflowValueObject",
|
|
4118
|
+
"description": "An object of connection argument values. Keys starting with '$' are reserved."
|
|
4119
|
+
},
|
|
4120
|
+
"WorkflowValue": {
|
|
4121
|
+
"title": "WorkflowValue",
|
|
4122
|
+
"description": "A connection argument: JSON, { $expr }, { $literal }, { $secret }, or a { $ref } / { $blob } as it was returned. Keys starting with '$' are reserved.",
|
|
4123
|
+
"anyOf": [
|
|
4124
|
+
{
|
|
4125
|
+
"type": "null"
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
"type": "boolean"
|
|
4129
|
+
},
|
|
4130
|
+
{
|
|
4131
|
+
"type": "number"
|
|
4132
|
+
},
|
|
4133
|
+
{
|
|
4134
|
+
"type": "string"
|
|
4135
|
+
},
|
|
4136
|
+
{
|
|
4137
|
+
"type": "array",
|
|
4138
|
+
"items": {
|
|
4139
|
+
"$ref": "#/$defs/WorkflowValue"
|
|
4140
|
+
}
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
"type": "object",
|
|
4144
|
+
"properties": {
|
|
4145
|
+
"$expr": {
|
|
4146
|
+
"$ref": "#/$defs/Expression"
|
|
4147
|
+
}
|
|
4148
|
+
},
|
|
4149
|
+
"required": [
|
|
4150
|
+
"$expr"
|
|
4151
|
+
],
|
|
4152
|
+
"additionalProperties": false
|
|
4153
|
+
},
|
|
4154
|
+
{
|
|
4155
|
+
"type": "object",
|
|
4156
|
+
"properties": {
|
|
4157
|
+
"$secret": {
|
|
4158
|
+
"type": "string",
|
|
4159
|
+
"minLength": 1
|
|
4160
|
+
}
|
|
4161
|
+
},
|
|
4162
|
+
"required": [
|
|
4163
|
+
"$secret"
|
|
4164
|
+
],
|
|
4165
|
+
"additionalProperties": false
|
|
4166
|
+
},
|
|
4167
|
+
{
|
|
4168
|
+
"type": "object",
|
|
4169
|
+
"properties": {
|
|
4170
|
+
"$ref": {
|
|
4171
|
+
"type": "object",
|
|
4172
|
+
"properties": {
|
|
4173
|
+
"connection": {
|
|
4174
|
+
"type": "string",
|
|
4175
|
+
"minLength": 1
|
|
4176
|
+
},
|
|
4177
|
+
"id": {
|
|
4178
|
+
"type": "string",
|
|
4179
|
+
"minLength": 1
|
|
4180
|
+
},
|
|
4181
|
+
"seal": {
|
|
4182
|
+
"type": "string",
|
|
4183
|
+
"minLength": 1
|
|
4184
|
+
},
|
|
4185
|
+
"kind": {
|
|
4186
|
+
"type": "string",
|
|
4187
|
+
"minLength": 1
|
|
4188
|
+
}
|
|
4189
|
+
},
|
|
4190
|
+
"required": [
|
|
4191
|
+
"connection",
|
|
4192
|
+
"id",
|
|
4193
|
+
"seal",
|
|
4194
|
+
"kind"
|
|
4195
|
+
],
|
|
4196
|
+
"additionalProperties": false
|
|
4197
|
+
}
|
|
4198
|
+
},
|
|
4199
|
+
"required": [
|
|
4200
|
+
"$ref"
|
|
4201
|
+
],
|
|
4202
|
+
"additionalProperties": false
|
|
4203
|
+
},
|
|
4204
|
+
{
|
|
4205
|
+
"type": "object",
|
|
4206
|
+
"properties": {
|
|
4207
|
+
"$blob": {
|
|
4208
|
+
"type": "object",
|
|
4209
|
+
"properties": {
|
|
4210
|
+
"uri": {
|
|
4211
|
+
"type": "string",
|
|
4212
|
+
"minLength": 1
|
|
4213
|
+
},
|
|
4214
|
+
"mimeType": {
|
|
4215
|
+
"type": "string",
|
|
4216
|
+
"minLength": 1
|
|
4217
|
+
},
|
|
4218
|
+
"bytes": {
|
|
4219
|
+
"type": "integer",
|
|
4220
|
+
"minimum": 0,
|
|
4221
|
+
"maximum": 9007199254740991
|
|
4222
|
+
},
|
|
4223
|
+
"sha256": {
|
|
4224
|
+
"type": "string",
|
|
4225
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
4226
|
+
}
|
|
4227
|
+
},
|
|
4228
|
+
"required": [
|
|
4229
|
+
"uri",
|
|
4230
|
+
"mimeType",
|
|
4231
|
+
"bytes",
|
|
4232
|
+
"sha256"
|
|
4233
|
+
],
|
|
4234
|
+
"additionalProperties": false
|
|
4235
|
+
}
|
|
4236
|
+
},
|
|
4237
|
+
"required": [
|
|
4238
|
+
"$blob"
|
|
4239
|
+
],
|
|
4240
|
+
"additionalProperties": false
|
|
4241
|
+
},
|
|
4242
|
+
{
|
|
4243
|
+
"$ref": "#/$defs/WorkflowValueObject"
|
|
4244
|
+
},
|
|
4245
|
+
{
|
|
4246
|
+
"type": "object",
|
|
4247
|
+
"properties": {
|
|
4248
|
+
"$literal": {}
|
|
4249
|
+
},
|
|
4250
|
+
"required": [
|
|
4251
|
+
"$literal"
|
|
4252
|
+
],
|
|
4253
|
+
"additionalProperties": false
|
|
4254
|
+
}
|
|
4255
|
+
]
|
|
3178
4256
|
}
|
|
3179
4257
|
}
|
|
3180
4258
|
}
|