@x12i/graphenix-core 2.0.0 → 2.0.1
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 +245 -252
- package/dist/examples/validate-minimal.js +6 -6
- package/dist/examples/validate-minimal.js.map +1 -1
- package/dist/types.d.ts +22 -9
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/validate.js +2 -2
- package/package.json +48 -48
- package/schema/graphenix-format-2.0.0.schema.json +357 -348
- package/schema/graphenix-format-2.1.0.schema.json +372 -0
|
@@ -1,348 +1,357 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://graphenix.dev/schema/graphenix-format-2.0.0.json",
|
|
4
|
-
"title": "Graphenix Format 2.0.0",
|
|
5
|
-
"description": "JSON Schema for the Graphenix graph description format (version 2.0.0). Execution semantics are out of scope.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": ["formatVersion", "id", "graph"],
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"properties": {
|
|
10
|
-
"formatVersion": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"const": "2.0.0",
|
|
13
|
-
"description": "Graphenix format version. Must be `2.0.0`."
|
|
14
|
-
},
|
|
15
|
-
"id": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "Globally unique identifier for this graph within the system."
|
|
18
|
-
},
|
|
19
|
-
"revision": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "Version/revision of this specific graph document. Not the Graphenix format version."
|
|
22
|
-
},
|
|
23
|
-
"name": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"description": "Human-readable name for the graph."
|
|
26
|
-
},
|
|
27
|
-
"description": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "Free-form description of the graph."
|
|
30
|
-
},
|
|
31
|
-
"tags": {
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": { "type": "string" },
|
|
34
|
-
"description": "Tags for classification, search, and filtering."
|
|
35
|
-
},
|
|
36
|
-
"graph": {
|
|
37
|
-
"$ref": "#/$defs/Graph"
|
|
38
|
-
},
|
|
39
|
-
"types": {
|
|
40
|
-
"type": "array",
|
|
41
|
-
"items": { "$ref": "#/$defs/TypeDefinition" },
|
|
42
|
-
"description": "Custom logical types referenced by nodes and ports."
|
|
43
|
-
},
|
|
44
|
-
"subgraphs": {
|
|
45
|
-
"type": "array",
|
|
46
|
-
"items": { "$ref": "#/$defs/SubgraphDefinition" },
|
|
47
|
-
"description": "Inlined reusable graphs."
|
|
48
|
-
},
|
|
49
|
-
"metadata": {
|
|
50
|
-
"$ref": "#/$defs/DocumentMetadata"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"$defs": {
|
|
54
|
-
"GraphenixExtensions": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"description": "Namespaced extension object. Keys are extension namespace identifiers (e.g. `
|
|
57
|
-
"additionalProperties": true
|
|
58
|
-
},
|
|
59
|
-
"GraphenixMetadata": {
|
|
60
|
-
"type": "object",
|
|
61
|
-
"description": "Arbitrary metadata with optional namespaced extensions under `extensions`.",
|
|
62
|
-
"additionalProperties": true,
|
|
63
|
-
"properties": {
|
|
64
|
-
"extensions": {
|
|
65
|
-
"$ref": "#/$defs/GraphenixExtensions"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"DocumentMetadata": {
|
|
70
|
-
"allOf": [
|
|
71
|
-
{ "$ref": "#/$defs/GraphenixMetadata" },
|
|
72
|
-
{
|
|
73
|
-
"type": "object",
|
|
74
|
-
"description": "Document-level metadata including graph-level summary contracts.",
|
|
75
|
-
"properties": {
|
|
76
|
-
"graphEntry": { "$ref": "#/$defs/GraphEntryContract" },
|
|
77
|
-
"graphResponse": { "$ref": "#/$defs/GraphResponseContract" },
|
|
78
|
-
"catalogRequests": { "$ref": "#/$defs/WoroxCatalogRequests" }
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
"NodeMetadata": {
|
|
84
|
-
"allOf": [
|
|
85
|
-
{ "$ref": "#/$defs/GraphenixMetadata" },
|
|
86
|
-
{
|
|
87
|
-
"type": "object",
|
|
88
|
-
"properties": {
|
|
89
|
-
"catalogBinding": { "$ref": "#/$defs/WoroxCatalogBinding" },
|
|
90
|
-
"catalogRequest": { "$ref": "#/$defs/WoroxCatalogRequest" }
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"Graph": {
|
|
96
|
-
"type": "object",
|
|
97
|
-
"required": ["nodes", "edges", "inputs", "outputs"],
|
|
98
|
-
"additionalProperties": false,
|
|
99
|
-
"properties": {
|
|
100
|
-
"nodes": {
|
|
101
|
-
"type": "array",
|
|
102
|
-
"items": { "$ref": "#/$defs/Node" }
|
|
103
|
-
},
|
|
104
|
-
"edges": {
|
|
105
|
-
"type": "array",
|
|
106
|
-
"items": { "$ref": "#/$defs/Edge" }
|
|
107
|
-
},
|
|
108
|
-
"inputs": {
|
|
109
|
-
"type": "array",
|
|
110
|
-
"items": { "$ref": "#/$defs/GraphInput" }
|
|
111
|
-
},
|
|
112
|
-
"outputs": {
|
|
113
|
-
"type": "array",
|
|
114
|
-
"items": { "$ref": "#/$defs/GraphOutput" }
|
|
115
|
-
},
|
|
116
|
-
"metadata": {
|
|
117
|
-
"$ref": "#/$defs/GraphenixMetadata"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"Node": {
|
|
122
|
-
"type": "object",
|
|
123
|
-
"required": ["id", "kind"],
|
|
124
|
-
"additionalProperties": false,
|
|
125
|
-
"properties": {
|
|
126
|
-
"id": { "type": "string" },
|
|
127
|
-
"name": { "type": "string" },
|
|
128
|
-
"kind": { "type": "string" },
|
|
129
|
-
"inputs": {
|
|
130
|
-
"type": "array",
|
|
131
|
-
"items": { "$ref": "#/$defs/PortDefinition" },
|
|
132
|
-
"default": []
|
|
133
|
-
},
|
|
134
|
-
"outputs": {
|
|
135
|
-
"type": "array",
|
|
136
|
-
"items": { "$ref": "#/$defs/PortDefinition" },
|
|
137
|
-
"default": []
|
|
138
|
-
},
|
|
139
|
-
"parameters": {
|
|
140
|
-
"type": "object",
|
|
141
|
-
"additionalProperties": true,
|
|
142
|
-
"default": {}
|
|
143
|
-
},
|
|
144
|
-
"metadata": { "$ref": "#/$defs/NodeMetadata" }
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
"
|
|
172
|
-
"type": "object",
|
|
173
|
-
"required": ["
|
|
174
|
-
"additionalProperties": false,
|
|
175
|
-
"properties": {
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
"
|
|
215
|
-
"type": "object",
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
"
|
|
232
|
-
"
|
|
233
|
-
"
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
"
|
|
239
|
-
"
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
"
|
|
291
|
-
{ "
|
|
292
|
-
{ "
|
|
293
|
-
{ "
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
"
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
"
|
|
309
|
-
"
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
"
|
|
313
|
-
"
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
"
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
"
|
|
324
|
-
"
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
"
|
|
328
|
-
"type": "object",
|
|
329
|
-
"
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://graphenix.dev/schema/graphenix-format-2.0.0.json",
|
|
4
|
+
"title": "Graphenix Format 2.0.0",
|
|
5
|
+
"description": "JSON Schema for the Graphenix graph description format (version 2.0.0). Execution semantics are out of scope.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["formatVersion", "id", "graph"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"formatVersion": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "2.0.0",
|
|
13
|
+
"description": "Graphenix format version. Must be `2.0.0`."
|
|
14
|
+
},
|
|
15
|
+
"id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Globally unique identifier for this graph within the system."
|
|
18
|
+
},
|
|
19
|
+
"revision": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Version/revision of this specific graph document. Not the Graphenix format version."
|
|
22
|
+
},
|
|
23
|
+
"name": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Human-readable name for the graph."
|
|
26
|
+
},
|
|
27
|
+
"description": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Free-form description of the graph."
|
|
30
|
+
},
|
|
31
|
+
"tags": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": { "type": "string" },
|
|
34
|
+
"description": "Tags for classification, search, and filtering."
|
|
35
|
+
},
|
|
36
|
+
"graph": {
|
|
37
|
+
"$ref": "#/$defs/Graph"
|
|
38
|
+
},
|
|
39
|
+
"types": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": { "$ref": "#/$defs/TypeDefinition" },
|
|
42
|
+
"description": "Custom logical types referenced by nodes and ports."
|
|
43
|
+
},
|
|
44
|
+
"subgraphs": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": { "$ref": "#/$defs/SubgraphDefinition" },
|
|
47
|
+
"description": "Inlined reusable graphs."
|
|
48
|
+
},
|
|
49
|
+
"metadata": {
|
|
50
|
+
"$ref": "#/$defs/DocumentMetadata"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"$defs": {
|
|
54
|
+
"GraphenixExtensions": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"description": "Namespaced extension object. Keys are extension namespace identifiers (e.g. `graphenix.execution/v1`). Graphenix core does not interpret extension namespaces.",
|
|
57
|
+
"additionalProperties": true
|
|
58
|
+
},
|
|
59
|
+
"GraphenixMetadata": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"description": "Arbitrary metadata with optional namespaced extensions under `extensions`.",
|
|
62
|
+
"additionalProperties": true,
|
|
63
|
+
"properties": {
|
|
64
|
+
"extensions": {
|
|
65
|
+
"$ref": "#/$defs/GraphenixExtensions"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"DocumentMetadata": {
|
|
70
|
+
"allOf": [
|
|
71
|
+
{ "$ref": "#/$defs/GraphenixMetadata" },
|
|
72
|
+
{
|
|
73
|
+
"type": "object",
|
|
74
|
+
"description": "Document-level metadata including graph-level summary contracts.",
|
|
75
|
+
"properties": {
|
|
76
|
+
"graphEntry": { "$ref": "#/$defs/GraphEntryContract" },
|
|
77
|
+
"graphResponse": { "$ref": "#/$defs/GraphResponseContract" },
|
|
78
|
+
"catalogRequests": { "$ref": "#/$defs/WoroxCatalogRequests" }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"NodeMetadata": {
|
|
84
|
+
"allOf": [
|
|
85
|
+
{ "$ref": "#/$defs/GraphenixMetadata" },
|
|
86
|
+
{
|
|
87
|
+
"type": "object",
|
|
88
|
+
"properties": {
|
|
89
|
+
"catalogBinding": { "$ref": "#/$defs/WoroxCatalogBinding" },
|
|
90
|
+
"catalogRequest": { "$ref": "#/$defs/WoroxCatalogRequest" }
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"Graph": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"required": ["nodes", "edges", "inputs", "outputs"],
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"properties": {
|
|
100
|
+
"nodes": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"items": { "$ref": "#/$defs/Node" }
|
|
103
|
+
},
|
|
104
|
+
"edges": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": { "$ref": "#/$defs/Edge" }
|
|
107
|
+
},
|
|
108
|
+
"inputs": {
|
|
109
|
+
"type": "array",
|
|
110
|
+
"items": { "$ref": "#/$defs/GraphInput" }
|
|
111
|
+
},
|
|
112
|
+
"outputs": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"items": { "$ref": "#/$defs/GraphOutput" }
|
|
115
|
+
},
|
|
116
|
+
"metadata": {
|
|
117
|
+
"$ref": "#/$defs/GraphenixMetadata"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"Node": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"required": ["id", "kind"],
|
|
124
|
+
"additionalProperties": false,
|
|
125
|
+
"properties": {
|
|
126
|
+
"id": { "type": "string" },
|
|
127
|
+
"name": { "type": "string" },
|
|
128
|
+
"kind": { "type": "string" },
|
|
129
|
+
"inputs": {
|
|
130
|
+
"type": "array",
|
|
131
|
+
"items": { "$ref": "#/$defs/PortDefinition" },
|
|
132
|
+
"default": []
|
|
133
|
+
},
|
|
134
|
+
"outputs": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": { "$ref": "#/$defs/PortDefinition" },
|
|
137
|
+
"default": []
|
|
138
|
+
},
|
|
139
|
+
"parameters": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": true,
|
|
142
|
+
"default": {}
|
|
143
|
+
},
|
|
144
|
+
"metadata": { "$ref": "#/$defs/NodeMetadata" },
|
|
145
|
+
"layout": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"description": "Design-only canvas position; ignored at compile time.",
|
|
148
|
+
"properties": {
|
|
149
|
+
"x": { "type": "number" },
|
|
150
|
+
"y": { "type": "number" }
|
|
151
|
+
},
|
|
152
|
+
"additionalProperties": true
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"PortDefinition": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"required": ["id", "direction", "type"],
|
|
159
|
+
"additionalProperties": false,
|
|
160
|
+
"properties": {
|
|
161
|
+
"id": { "type": "string" },
|
|
162
|
+
"name": { "type": "string" },
|
|
163
|
+
"direction": { "type": "string", "enum": ["input", "output"] },
|
|
164
|
+
"type": { "type": "string" },
|
|
165
|
+
"required": { "type": "boolean", "default": false },
|
|
166
|
+
"default": {
|
|
167
|
+
"type": ["string", "number", "boolean", "array", "object", "null"]
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"EdgeEndpoint": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"required": ["nodeId", "portId"],
|
|
174
|
+
"additionalProperties": false,
|
|
175
|
+
"properties": {
|
|
176
|
+
"nodeId": { "type": "string" },
|
|
177
|
+
"portId": { "type": "string" }
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"Edge": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"required": ["id", "from", "to"],
|
|
183
|
+
"additionalProperties": false,
|
|
184
|
+
"properties": {
|
|
185
|
+
"id": { "type": "string" },
|
|
186
|
+
"from": { "$ref": "#/$defs/EdgeEndpoint" },
|
|
187
|
+
"to": { "$ref": "#/$defs/EdgeEndpoint" },
|
|
188
|
+
"metadata": { "$ref": "#/$defs/GraphenixMetadata" }
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"GraphInput": {
|
|
192
|
+
"type": "object",
|
|
193
|
+
"required": ["id", "type", "target"],
|
|
194
|
+
"additionalProperties": false,
|
|
195
|
+
"properties": {
|
|
196
|
+
"id": { "type": "string" },
|
|
197
|
+
"name": { "type": "string" },
|
|
198
|
+
"type": { "type": "string" },
|
|
199
|
+
"target": { "$ref": "#/$defs/EdgeEndpoint" },
|
|
200
|
+
"contract": { "$ref": "#/$defs/GraphInputContract" },
|
|
201
|
+
"metadata": { "$ref": "#/$defs/GraphenixMetadata" }
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"GraphInputContract": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"additionalProperties": true,
|
|
207
|
+
"properties": {
|
|
208
|
+
"semanticKind": { "type": "string" },
|
|
209
|
+
"required": { "type": "boolean", "default": false },
|
|
210
|
+
"schema": { "type": "object", "additionalProperties": true },
|
|
211
|
+
"resolver": { "$ref": "#/$defs/GraphInputResolver" }
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"GraphInputResolver": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"additionalProperties": true,
|
|
217
|
+
"properties": {
|
|
218
|
+
"kind": { "type": "string" },
|
|
219
|
+
"graphId": { "type": "string" },
|
|
220
|
+
"metadataFilter": { "type": "object", "additionalProperties": true }
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"GraphOutput": {
|
|
224
|
+
"type": "object",
|
|
225
|
+
"required": ["id", "type"],
|
|
226
|
+
"additionalProperties": false,
|
|
227
|
+
"properties": {
|
|
228
|
+
"id": { "type": "string" },
|
|
229
|
+
"name": { "type": "string" },
|
|
230
|
+
"type": { "type": "string" },
|
|
231
|
+
"source": { "$ref": "#/$defs/EdgeEndpoint" },
|
|
232
|
+
"contract": { "$ref": "#/$defs/GraphOutputContract" },
|
|
233
|
+
"metadata": { "$ref": "#/$defs/GraphenixMetadata" }
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"GraphOutputContract": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"additionalProperties": true,
|
|
239
|
+
"properties": {
|
|
240
|
+
"semanticKind": { "type": "string" },
|
|
241
|
+
"required": { "type": "boolean", "default": false },
|
|
242
|
+
"schema": { "type": "object", "additionalProperties": true },
|
|
243
|
+
"description": { "type": "string" }
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"TypeField": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"required": ["name", "type"],
|
|
249
|
+
"additionalProperties": false,
|
|
250
|
+
"properties": {
|
|
251
|
+
"name": { "type": "string" },
|
|
252
|
+
"type": { "type": "string" },
|
|
253
|
+
"required": { "type": "boolean", "default": false }
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"TypeObject": {
|
|
257
|
+
"type": "object",
|
|
258
|
+
"required": ["id", "kind", "fields"],
|
|
259
|
+
"additionalProperties": false,
|
|
260
|
+
"properties": {
|
|
261
|
+
"id": { "type": "string" },
|
|
262
|
+
"kind": { "const": "object" },
|
|
263
|
+
"description": { "type": "string" },
|
|
264
|
+
"fields": {
|
|
265
|
+
"type": "array",
|
|
266
|
+
"items": { "$ref": "#/$defs/TypeField" }
|
|
267
|
+
},
|
|
268
|
+
"metadata": { "$ref": "#/$defs/GraphenixMetadata" }
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"TypeUnion": {
|
|
272
|
+
"type": "object",
|
|
273
|
+
"required": ["id", "kind", "options"],
|
|
274
|
+
"additionalProperties": false,
|
|
275
|
+
"properties": {
|
|
276
|
+
"id": { "type": "string" },
|
|
277
|
+
"kind": { "const": "union" },
|
|
278
|
+
"description": { "type": "string" },
|
|
279
|
+
"options": {
|
|
280
|
+
"type": "array",
|
|
281
|
+
"items": { "type": "string" }
|
|
282
|
+
},
|
|
283
|
+
"metadata": { "$ref": "#/$defs/GraphenixMetadata" }
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"TypeAlias": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"required": ["id", "kind", "target"],
|
|
289
|
+
"additionalProperties": false,
|
|
290
|
+
"properties": {
|
|
291
|
+
"id": { "type": "string" },
|
|
292
|
+
"kind": { "const": "alias" },
|
|
293
|
+
"description": { "type": "string" },
|
|
294
|
+
"target": { "type": "string" },
|
|
295
|
+
"metadata": { "$ref": "#/$defs/GraphenixMetadata" }
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"TypeDefinition": {
|
|
299
|
+
"oneOf": [
|
|
300
|
+
{ "$ref": "#/$defs/TypeObject" },
|
|
301
|
+
{ "$ref": "#/$defs/TypeUnion" },
|
|
302
|
+
{ "$ref": "#/$defs/TypeAlias" }
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
"SubgraphDefinition": {
|
|
306
|
+
"type": "object",
|
|
307
|
+
"required": ["id", "graph"],
|
|
308
|
+
"additionalProperties": false,
|
|
309
|
+
"properties": {
|
|
310
|
+
"id": { "type": "string" },
|
|
311
|
+
"name": { "type": "string" },
|
|
312
|
+
"graph": { "$ref": "#/$defs/Graph" },
|
|
313
|
+
"metadata": { "$ref": "#/$defs/GraphenixMetadata" }
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"GraphEntryContract": {
|
|
317
|
+
"type": "object",
|
|
318
|
+
"description": "Graph-level summary contract for graph invocation.",
|
|
319
|
+
"additionalProperties": true,
|
|
320
|
+
"properties": {
|
|
321
|
+
"summary": { "type": "string" },
|
|
322
|
+
"requiredExecutionPaths": { "type": "array", "items": {} },
|
|
323
|
+
"executionSchema": { "type": "object", "additionalProperties": true },
|
|
324
|
+
"notableExecutionPaths": { "type": "array", "items": {} }
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"GraphResponseContract": {
|
|
328
|
+
"type": "object",
|
|
329
|
+
"description": "Graph-level summary contract for the final graph result.",
|
|
330
|
+
"additionalProperties": true,
|
|
331
|
+
"properties": {
|
|
332
|
+
"summary": { "type": "string" },
|
|
333
|
+
"finalOutputSchema": { "type": "object", "additionalProperties": true }
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"WoroxCatalogRequest": {
|
|
337
|
+
"type": "object",
|
|
338
|
+
"additionalProperties": true
|
|
339
|
+
},
|
|
340
|
+
"WoroxCatalogBinding": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"additionalProperties": true
|
|
343
|
+
},
|
|
344
|
+
"WoroxCatalogRequests": {
|
|
345
|
+
"oneOf": [
|
|
346
|
+
{
|
|
347
|
+
"type": "array",
|
|
348
|
+
"items": { "$ref": "#/$defs/WoroxCatalogRequest" }
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"type": "object",
|
|
352
|
+
"additionalProperties": { "$ref": "#/$defs/WoroxCatalogRequest" }
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|