@xemahq/dsl 0.8.2 → 0.8.3
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/payload-codec/index.d.ts.map +1 -1
- package/dist/payload-codec/index.js.map +1 -1
- package/dist/payload-codec/lib/codec.d.ts.map +1 -1
- package/dist/payload-codec/lib/codec.js +2 -1
- package/dist/payload-codec/lib/codec.js.map +1 -1
- package/dist/payload-codec/lib/payload.d.ts.map +1 -1
- package/dist/schema/action.schema.json +205 -39
- package/dist/schema/workflow.schema.json +335 -88
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/lib/compiler/compile.js +1 -1
- package/dist/workflow/lib/compiler/compile.js.map +1 -1
- package/package.json +2 -17
- package/schema/action.schema.json +205 -39
- package/schema/workflow.schema.json +335 -88
- package/dist/payload-codec/temporal/index.d.ts +0 -5
- package/dist/payload-codec/temporal/index.d.ts.map +0 -1
- package/dist/payload-codec/temporal/index.js +0 -7
- package/dist/payload-codec/temporal/index.js.map +0 -1
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
"title": "Xema Workflow",
|
|
5
5
|
"description": "Authoring shape for a Xema workflow document (system or custom).",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"required": [
|
|
7
|
+
"required": [
|
|
8
|
+
"apiVersion",
|
|
9
|
+
"kind",
|
|
10
|
+
"metadata",
|
|
11
|
+
"on",
|
|
12
|
+
"jobs"
|
|
13
|
+
],
|
|
8
14
|
"additionalProperties": false,
|
|
9
15
|
"properties": {
|
|
10
16
|
"apiVersion": {
|
|
@@ -15,27 +21,45 @@
|
|
|
15
21
|
"type": "string",
|
|
16
22
|
"const": "Workflow"
|
|
17
23
|
},
|
|
18
|
-
"metadata": {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
24
|
+
"metadata": {
|
|
25
|
+
"$ref": "#/$defs/Metadata"
|
|
26
|
+
},
|
|
27
|
+
"on": {
|
|
28
|
+
"$ref": "#/$defs/Triggers"
|
|
29
|
+
},
|
|
30
|
+
"concurrency": {
|
|
31
|
+
"$ref": "#/$defs/Concurrency"
|
|
32
|
+
},
|
|
33
|
+
"defaults": {
|
|
34
|
+
"$ref": "#/$defs/Defaults"
|
|
35
|
+
},
|
|
36
|
+
"permissions": {
|
|
37
|
+
"$ref": "#/$defs/Permissions"
|
|
38
|
+
},
|
|
23
39
|
"vars": {
|
|
24
40
|
"type": "object",
|
|
25
41
|
"description": "Static key/value pairs bound into every job's expression context as `vars.*`.",
|
|
26
42
|
"additionalProperties": true
|
|
27
43
|
},
|
|
28
|
-
"requires": {
|
|
44
|
+
"requires": {
|
|
45
|
+
"$ref": "#/$defs/Requires"
|
|
46
|
+
},
|
|
29
47
|
"jobs": {
|
|
30
48
|
"type": "object",
|
|
31
49
|
"minProperties": 1,
|
|
32
|
-
"additionalProperties": {
|
|
33
|
-
|
|
50
|
+
"additionalProperties": {
|
|
51
|
+
"$ref": "#/$defs/Job"
|
|
52
|
+
},
|
|
53
|
+
"propertyNames": {
|
|
54
|
+
"$ref": "#/$defs/JobKey"
|
|
55
|
+
}
|
|
34
56
|
},
|
|
35
57
|
"outputs": {
|
|
36
58
|
"type": "object",
|
|
37
59
|
"description": "Workflow-level named outputs. Each key references a (job, outputName) pair via fromJob/fromOutput and declares the kind of value surfaced.",
|
|
38
|
-
"additionalProperties": {
|
|
60
|
+
"additionalProperties": {
|
|
61
|
+
"$ref": "#/$defs/WorkflowOutput"
|
|
62
|
+
},
|
|
39
63
|
"propertyNames": {
|
|
40
64
|
"type": "string",
|
|
41
65
|
"pattern": "^[a-z][a-z0-9_-]{0,62}$"
|
|
@@ -45,21 +69,39 @@
|
|
|
45
69
|
"$defs": {
|
|
46
70
|
"Metadata": {
|
|
47
71
|
"type": "object",
|
|
48
|
-
"required": [
|
|
72
|
+
"required": [
|
|
73
|
+
"name"
|
|
74
|
+
],
|
|
49
75
|
"additionalProperties": false,
|
|
50
76
|
"properties": {
|
|
51
|
-
"name": {
|
|
77
|
+
"name": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
80
|
+
},
|
|
52
81
|
"contractVersion": {
|
|
53
82
|
"type": "string",
|
|
54
83
|
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(-[A-Za-z0-9.-]+)?$",
|
|
55
84
|
"description": "Compatibility version for an explicitly reusable public workflow contract. Ordinary workflows omit this field."
|
|
56
85
|
},
|
|
57
|
-
"title": {
|
|
58
|
-
|
|
59
|
-
|
|
86
|
+
"title": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"maxLength": 120
|
|
89
|
+
},
|
|
90
|
+
"description": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"maxLength": 4000
|
|
93
|
+
},
|
|
94
|
+
"category": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1,
|
|
97
|
+
"maxLength": 120
|
|
98
|
+
},
|
|
60
99
|
"tags": {
|
|
61
100
|
"type": "array",
|
|
62
|
-
"items": {
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
104
|
+
},
|
|
63
105
|
"uniqueItems": true
|
|
64
106
|
}
|
|
65
107
|
}
|
|
@@ -92,7 +134,10 @@
|
|
|
92
134
|
"items": {
|
|
93
135
|
"type": "object",
|
|
94
136
|
"additionalProperties": false,
|
|
95
|
-
"required": [
|
|
137
|
+
"required": [
|
|
138
|
+
"adapterKind",
|
|
139
|
+
"capabilities"
|
|
140
|
+
],
|
|
96
141
|
"properties": {
|
|
97
142
|
"adapterKind": {
|
|
98
143
|
"type": "string",
|
|
@@ -124,32 +169,44 @@
|
|
|
124
169
|
"minProperties": 1,
|
|
125
170
|
"additionalProperties": false,
|
|
126
171
|
"properties": {
|
|
127
|
-
"workflow_dispatch": {
|
|
172
|
+
"workflow_dispatch": {
|
|
173
|
+
"$ref": "#/$defs/WorkflowDispatchTrigger"
|
|
174
|
+
},
|
|
128
175
|
"schedule": {
|
|
129
176
|
"type": "array",
|
|
130
177
|
"minItems": 1,
|
|
131
178
|
"maxItems": 16,
|
|
132
|
-
"items": {
|
|
179
|
+
"items": {
|
|
180
|
+
"$ref": "#/$defs/ScheduleTrigger"
|
|
181
|
+
}
|
|
133
182
|
},
|
|
134
183
|
"webhook": {
|
|
135
184
|
"type": "array",
|
|
136
185
|
"minItems": 1,
|
|
137
186
|
"maxItems": 32,
|
|
138
|
-
"items": {
|
|
187
|
+
"items": {
|
|
188
|
+
"$ref": "#/$defs/WebhookTrigger"
|
|
189
|
+
}
|
|
139
190
|
},
|
|
140
|
-
"workflow_call": {
|
|
191
|
+
"workflow_call": {
|
|
192
|
+
"$ref": "#/$defs/WorkflowCallTrigger"
|
|
193
|
+
}
|
|
141
194
|
}
|
|
142
195
|
},
|
|
143
196
|
"WorkflowDispatchTrigger": {
|
|
144
197
|
"type": "object",
|
|
145
198
|
"additionalProperties": false,
|
|
146
199
|
"properties": {
|
|
147
|
-
"inputs": {
|
|
200
|
+
"inputs": {
|
|
201
|
+
"$ref": "#/$defs/InputSchemaMap"
|
|
202
|
+
}
|
|
148
203
|
}
|
|
149
204
|
},
|
|
150
205
|
"ScheduleTrigger": {
|
|
151
206
|
"type": "object",
|
|
152
|
-
"required": [
|
|
207
|
+
"required": [
|
|
208
|
+
"cron"
|
|
209
|
+
],
|
|
153
210
|
"additionalProperties": false,
|
|
154
211
|
"properties": {
|
|
155
212
|
"cron": {
|
|
@@ -170,14 +227,24 @@
|
|
|
170
227
|
},
|
|
171
228
|
"WebhookTrigger": {
|
|
172
229
|
"type": "object",
|
|
173
|
-
"required": [
|
|
230
|
+
"required": [
|
|
231
|
+
"event"
|
|
232
|
+
],
|
|
174
233
|
"additionalProperties": false,
|
|
175
234
|
"properties": {
|
|
176
|
-
"event": {
|
|
177
|
-
|
|
235
|
+
"event": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"pattern": "^[a-z][a-z0-9._]*$"
|
|
238
|
+
},
|
|
239
|
+
"secretRef": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"minLength": 1
|
|
242
|
+
},
|
|
178
243
|
"filters": {
|
|
179
244
|
"type": "object",
|
|
180
|
-
"additionalProperties": {
|
|
245
|
+
"additionalProperties": {
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
181
248
|
}
|
|
182
249
|
}
|
|
183
250
|
},
|
|
@@ -185,42 +252,79 @@
|
|
|
185
252
|
"type": "object",
|
|
186
253
|
"additionalProperties": false,
|
|
187
254
|
"properties": {
|
|
188
|
-
"inputs": {
|
|
255
|
+
"inputs": {
|
|
256
|
+
"$ref": "#/$defs/InputSchemaMap"
|
|
257
|
+
},
|
|
189
258
|
"outputs": {
|
|
190
259
|
"type": "object",
|
|
191
|
-
"additionalProperties": {
|
|
260
|
+
"additionalProperties": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
}
|
|
192
263
|
}
|
|
193
264
|
}
|
|
194
265
|
},
|
|
195
266
|
"InputSchemaMap": {
|
|
196
267
|
"type": "object",
|
|
197
|
-
"additionalProperties": {
|
|
268
|
+
"additionalProperties": {
|
|
269
|
+
"$ref": "#/$defs/InputSchemaEntry"
|
|
270
|
+
}
|
|
198
271
|
},
|
|
199
272
|
"InputSchemaEntry": {
|
|
200
273
|
"type": "object",
|
|
201
|
-
"required": [
|
|
274
|
+
"required": [
|
|
275
|
+
"type"
|
|
276
|
+
],
|
|
202
277
|
"additionalProperties": false,
|
|
203
278
|
"properties": {
|
|
204
279
|
"type": {
|
|
205
280
|
"type": "string",
|
|
206
|
-
"enum": [
|
|
281
|
+
"enum": [
|
|
282
|
+
"string",
|
|
283
|
+
"number",
|
|
284
|
+
"integer",
|
|
285
|
+
"boolean",
|
|
286
|
+
"object",
|
|
287
|
+
"array"
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"required": {
|
|
291
|
+
"type": "boolean",
|
|
292
|
+
"default": false
|
|
207
293
|
},
|
|
208
|
-
"required": { "type": "boolean", "default": false },
|
|
209
294
|
"default": {},
|
|
210
|
-
"description": {
|
|
211
|
-
|
|
212
|
-
|
|
295
|
+
"description": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"maxLength": 1000
|
|
298
|
+
},
|
|
299
|
+
"enum": {
|
|
300
|
+
"type": "array",
|
|
301
|
+
"minItems": 1
|
|
302
|
+
},
|
|
303
|
+
"items": {
|
|
304
|
+
"type": "object"
|
|
305
|
+
}
|
|
213
306
|
}
|
|
214
307
|
},
|
|
215
308
|
"Concurrency": {
|
|
216
309
|
"type": "object",
|
|
217
|
-
"required": [
|
|
310
|
+
"required": [
|
|
311
|
+
"group",
|
|
312
|
+
"mode"
|
|
313
|
+
],
|
|
218
314
|
"additionalProperties": false,
|
|
219
315
|
"properties": {
|
|
220
|
-
"group": {
|
|
316
|
+
"group": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"minLength": 1
|
|
319
|
+
},
|
|
221
320
|
"mode": {
|
|
222
321
|
"type": "string",
|
|
223
|
-
"enum": [
|
|
322
|
+
"enum": [
|
|
323
|
+
"allow",
|
|
324
|
+
"queue",
|
|
325
|
+
"cancel_in_progress",
|
|
326
|
+
"skip"
|
|
327
|
+
]
|
|
224
328
|
}
|
|
225
329
|
}
|
|
226
330
|
},
|
|
@@ -228,9 +332,15 @@
|
|
|
228
332
|
"type": "object",
|
|
229
333
|
"additionalProperties": false,
|
|
230
334
|
"properties": {
|
|
231
|
-
"retry": {
|
|
232
|
-
|
|
233
|
-
|
|
335
|
+
"retry": {
|
|
336
|
+
"$ref": "#/$defs/RetryPolicy"
|
|
337
|
+
},
|
|
338
|
+
"timeout": {
|
|
339
|
+
"$ref": "#/$defs/Timeout"
|
|
340
|
+
},
|
|
341
|
+
"gate": {
|
|
342
|
+
"$ref": "#/$defs/GateDefaults"
|
|
343
|
+
}
|
|
234
344
|
}
|
|
235
345
|
},
|
|
236
346
|
"GateDefaults": {
|
|
@@ -268,17 +378,28 @@
|
|
|
268
378
|
"type": "object",
|
|
269
379
|
"additionalProperties": false,
|
|
270
380
|
"properties": {
|
|
271
|
-
"maxAttempts": {
|
|
272
|
-
|
|
381
|
+
"maxAttempts": {
|
|
382
|
+
"type": "integer",
|
|
383
|
+
"minimum": 1,
|
|
384
|
+
"maximum": 20
|
|
385
|
+
},
|
|
386
|
+
"initialInterval": {
|
|
387
|
+
"$ref": "#/$defs/Timeout"
|
|
388
|
+
},
|
|
273
389
|
"backoffCoefficient": {
|
|
274
390
|
"type": "number",
|
|
275
391
|
"minimum": 1.0,
|
|
276
392
|
"maximum": 10.0
|
|
277
393
|
},
|
|
278
|
-
"maximumInterval": {
|
|
394
|
+
"maximumInterval": {
|
|
395
|
+
"$ref": "#/$defs/Timeout"
|
|
396
|
+
},
|
|
279
397
|
"nonRetryableErrorTypes": {
|
|
280
398
|
"type": "array",
|
|
281
|
-
"items": {
|
|
399
|
+
"items": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"minLength": 1
|
|
402
|
+
}
|
|
282
403
|
}
|
|
283
404
|
}
|
|
284
405
|
},
|
|
@@ -286,47 +407,91 @@
|
|
|
286
407
|
"type": "object",
|
|
287
408
|
"additionalProperties": false,
|
|
288
409
|
"properties": {
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
"
|
|
293
|
-
|
|
294
|
-
|
|
410
|
+
"artifacts": {
|
|
411
|
+
"$ref": "#/$defs/PermissionScope"
|
|
412
|
+
},
|
|
413
|
+
"backlog": {
|
|
414
|
+
"$ref": "#/$defs/PermissionScope"
|
|
415
|
+
},
|
|
416
|
+
"connectors": {
|
|
417
|
+
"$ref": "#/$defs/PermissionScope"
|
|
418
|
+
},
|
|
419
|
+
"kb": {
|
|
420
|
+
"$ref": "#/$defs/PermissionScope"
|
|
421
|
+
},
|
|
422
|
+
"memory": {
|
|
423
|
+
"$ref": "#/$defs/PermissionScope"
|
|
424
|
+
},
|
|
425
|
+
"repos": {
|
|
426
|
+
"$ref": "#/$defs/PermissionScope"
|
|
427
|
+
}
|
|
295
428
|
}
|
|
296
429
|
},
|
|
297
430
|
"PermissionScope": {
|
|
298
431
|
"type": "string",
|
|
299
|
-
"enum": [
|
|
432
|
+
"enum": [
|
|
433
|
+
"none",
|
|
434
|
+
"read",
|
|
435
|
+
"limited",
|
|
436
|
+
"write"
|
|
437
|
+
]
|
|
300
438
|
},
|
|
301
439
|
"Job": {
|
|
302
440
|
"type": "object",
|
|
303
|
-
"required": [
|
|
441
|
+
"required": [
|
|
442
|
+
"uses"
|
|
443
|
+
],
|
|
304
444
|
"additionalProperties": false,
|
|
305
445
|
"properties": {
|
|
306
|
-
"title": {
|
|
446
|
+
"title": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"maxLength": 120
|
|
449
|
+
},
|
|
307
450
|
"needs": {
|
|
308
451
|
"type": "array",
|
|
309
|
-
"items": {
|
|
452
|
+
"items": {
|
|
453
|
+
"$ref": "#/$defs/JobKey"
|
|
454
|
+
},
|
|
310
455
|
"uniqueItems": true
|
|
311
456
|
},
|
|
312
|
-
"if": {
|
|
313
|
-
|
|
457
|
+
"if": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"minLength": 1
|
|
460
|
+
},
|
|
461
|
+
"strategy": {
|
|
462
|
+
"$ref": "#/$defs/Strategy"
|
|
463
|
+
},
|
|
314
464
|
"matrixGather": {
|
|
315
465
|
"type": "array",
|
|
316
466
|
"description": "List of upstream jobKeys whose per-entry outputs should be flattened. For each key listed here, `needs.<key>.outputs` is reshaped from `{ kind: 'matrix', outputs: [...] }` to the flat array `[...]` before the job's `with:` expressions and `if:` are evaluated. Authors use this for synthesizer / coordinator jobs that need to aggregate across a matrix. Each key must be a declared job with a matrix strategy; the compiler auto-adds every key here to `needs` so authors do not have to duplicate.",
|
|
317
|
-
"items": {
|
|
467
|
+
"items": {
|
|
468
|
+
"$ref": "#/$defs/JobKey"
|
|
469
|
+
},
|
|
318
470
|
"minItems": 1,
|
|
319
471
|
"uniqueItems": true
|
|
320
472
|
},
|
|
321
|
-
"uses": {
|
|
322
|
-
|
|
473
|
+
"uses": {
|
|
474
|
+
"$ref": "#/$defs/UsesRef"
|
|
475
|
+
},
|
|
476
|
+
"with": {
|
|
477
|
+
"type": "object",
|
|
478
|
+
"additionalProperties": true
|
|
479
|
+
},
|
|
323
480
|
"outputs": {
|
|
324
481
|
"type": "object",
|
|
325
|
-
"additionalProperties": {
|
|
482
|
+
"additionalProperties": {
|
|
483
|
+
"type": "string"
|
|
484
|
+
}
|
|
326
485
|
},
|
|
327
|
-
"retry": {
|
|
328
|
-
|
|
329
|
-
|
|
486
|
+
"retry": {
|
|
487
|
+
"$ref": "#/$defs/RetryPolicy"
|
|
488
|
+
},
|
|
489
|
+
"timeout": {
|
|
490
|
+
"$ref": "#/$defs/Timeout"
|
|
491
|
+
},
|
|
492
|
+
"permissions": {
|
|
493
|
+
"$ref": "#/$defs/Permissions"
|
|
494
|
+
}
|
|
330
495
|
}
|
|
331
496
|
},
|
|
332
497
|
"UsesRef": {
|
|
@@ -349,12 +514,25 @@
|
|
|
349
514
|
},
|
|
350
515
|
"dynamic": {
|
|
351
516
|
"type": "object",
|
|
352
|
-
"required": [
|
|
517
|
+
"required": [
|
|
518
|
+
"from",
|
|
519
|
+
"as"
|
|
520
|
+
],
|
|
353
521
|
"additionalProperties": false,
|
|
354
522
|
"properties": {
|
|
355
|
-
"from": {
|
|
356
|
-
|
|
357
|
-
|
|
523
|
+
"from": {
|
|
524
|
+
"type": "string",
|
|
525
|
+
"minLength": 1
|
|
526
|
+
},
|
|
527
|
+
"as": {
|
|
528
|
+
"type": "string",
|
|
529
|
+
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$"
|
|
530
|
+
},
|
|
531
|
+
"maxEntries": {
|
|
532
|
+
"type": "integer",
|
|
533
|
+
"minimum": 1,
|
|
534
|
+
"maximum": 64
|
|
535
|
+
},
|
|
358
536
|
"keyBy": {
|
|
359
537
|
"type": "string",
|
|
360
538
|
"minLength": 1,
|
|
@@ -362,26 +540,60 @@
|
|
|
362
540
|
}
|
|
363
541
|
}
|
|
364
542
|
},
|
|
365
|
-
"maxParallel": {
|
|
543
|
+
"maxParallel": {
|
|
544
|
+
"type": "integer",
|
|
545
|
+
"minimum": 1,
|
|
546
|
+
"maximum": 64
|
|
547
|
+
}
|
|
366
548
|
},
|
|
367
|
-
"oneOf": [
|
|
549
|
+
"oneOf": [
|
|
550
|
+
{
|
|
551
|
+
"required": [
|
|
552
|
+
"matrix"
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"required": [
|
|
557
|
+
"dynamic"
|
|
558
|
+
]
|
|
559
|
+
}
|
|
560
|
+
]
|
|
368
561
|
},
|
|
369
562
|
"WorkflowOutput": {
|
|
370
563
|
"type": "object",
|
|
371
|
-
"required": [
|
|
564
|
+
"required": [
|
|
565
|
+
"kind",
|
|
566
|
+
"slug",
|
|
567
|
+
"fromJob",
|
|
568
|
+
"fromOutput"
|
|
569
|
+
],
|
|
372
570
|
"oneOf": [
|
|
373
571
|
{
|
|
374
572
|
"additionalProperties": false,
|
|
375
573
|
"properties": {
|
|
376
|
-
"kind": {
|
|
377
|
-
|
|
574
|
+
"kind": {
|
|
575
|
+
"const": "deliverable"
|
|
576
|
+
},
|
|
577
|
+
"slug": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
580
|
+
},
|
|
378
581
|
"fromJob": {
|
|
379
582
|
"type": "string",
|
|
380
583
|
"pattern": "^[a-z][a-z0-9_-]{0,62}$"
|
|
381
584
|
},
|
|
382
|
-
"fromOutput": {
|
|
383
|
-
|
|
384
|
-
|
|
585
|
+
"fromOutput": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"minLength": 1
|
|
588
|
+
},
|
|
589
|
+
"description": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"maxLength": 4000
|
|
592
|
+
},
|
|
593
|
+
"deliverableSpecRef": {
|
|
594
|
+
"type": "string",
|
|
595
|
+
"minLength": 1
|
|
596
|
+
}
|
|
385
597
|
},
|
|
386
598
|
"required": [
|
|
387
599
|
"kind",
|
|
@@ -394,31 +606,66 @@
|
|
|
394
606
|
{
|
|
395
607
|
"additionalProperties": false,
|
|
396
608
|
"properties": {
|
|
397
|
-
"kind": {
|
|
398
|
-
|
|
609
|
+
"kind": {
|
|
610
|
+
"const": "structured"
|
|
611
|
+
},
|
|
612
|
+
"slug": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
615
|
+
},
|
|
399
616
|
"fromJob": {
|
|
400
617
|
"type": "string",
|
|
401
618
|
"pattern": "^[a-z][a-z0-9_-]{0,62}$"
|
|
402
619
|
},
|
|
403
|
-
"fromOutput": {
|
|
404
|
-
|
|
405
|
-
|
|
620
|
+
"fromOutput": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"minLength": 1
|
|
623
|
+
},
|
|
624
|
+
"description": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"maxLength": 4000
|
|
627
|
+
},
|
|
628
|
+
"schemaRef": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"minLength": 1
|
|
631
|
+
}
|
|
406
632
|
},
|
|
407
|
-
"required": [
|
|
633
|
+
"required": [
|
|
634
|
+
"kind",
|
|
635
|
+
"slug",
|
|
636
|
+
"fromJob",
|
|
637
|
+
"fromOutput"
|
|
638
|
+
]
|
|
408
639
|
},
|
|
409
640
|
{
|
|
410
641
|
"additionalProperties": false,
|
|
411
642
|
"properties": {
|
|
412
|
-
"kind": {
|
|
413
|
-
|
|
643
|
+
"kind": {
|
|
644
|
+
"const": "text"
|
|
645
|
+
},
|
|
646
|
+
"slug": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
649
|
+
},
|
|
414
650
|
"fromJob": {
|
|
415
651
|
"type": "string",
|
|
416
652
|
"pattern": "^[a-z][a-z0-9_-]{0,62}$"
|
|
417
653
|
},
|
|
418
|
-
"fromOutput": {
|
|
419
|
-
|
|
654
|
+
"fromOutput": {
|
|
655
|
+
"type": "string",
|
|
656
|
+
"minLength": 1
|
|
657
|
+
},
|
|
658
|
+
"description": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"maxLength": 4000
|
|
661
|
+
}
|
|
420
662
|
},
|
|
421
|
-
"required": [
|
|
663
|
+
"required": [
|
|
664
|
+
"kind",
|
|
665
|
+
"slug",
|
|
666
|
+
"fromJob",
|
|
667
|
+
"fromOutput"
|
|
668
|
+
]
|
|
422
669
|
}
|
|
423
670
|
]
|
|
424
671
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Payload as TemporalPayload, PayloadCodec as TemporalPayloadCodec } from '@temporalio/common';
|
|
2
|
-
import type { PayloadCodec } from '../lib/payload';
|
|
3
|
-
export declare function asTemporalPayloadCodec(codec: PayloadCodec): TemporalPayloadCodec;
|
|
4
|
-
export type { TemporalPayload, TemporalPayloadCodec };
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/payload-codec/temporal/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,OAAO,IAAI,eAAe,EAC1B,YAAY,IAAI,oBAAoB,EACrC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAYnD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,YAAY,GAClB,oBAAoB,CAEtB;AAED,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/payload-codec/temporal/index.ts"],"names":[],"mappings":";;AA6BA,wDAIC;AAJD,SAAgB,sBAAsB,CACpC,KAAmB;IAEnB,OAAO,KAAK,CAAC;AACf,CAAC"}
|