@epilot/cli 0.1.143 → 0.1.145
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 +1 -1
- package/definitions/app.json +251 -4
- package/definitions/automation.json +344 -12
- package/definitions/event-catalog.json +431 -12
- package/definitions/validation-rules.json +104 -5
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-4EODPJ5A.js → chunk-GNZOIBKX.js} +5 -1
- package/dist/{completion-HPDI7RNO.js → completion-RZ6CSKPV.js} +1 -1
- package/dist/{upgrade-7VYPWNEV.js → upgrade-4DRMPNCM.js} +1 -1
- package/package.json +1 -1
|
@@ -48,6 +48,39 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
+
},
|
|
52
|
+
"post": {
|
|
53
|
+
"operationId": "createCustomEvent",
|
|
54
|
+
"summary": "createCustomEvent",
|
|
55
|
+
"description": "Reserve an org-scoped custom event name and persist its immutable v1.0 draft definition.",
|
|
56
|
+
"tags": [
|
|
57
|
+
"Event Catalog"
|
|
58
|
+
],
|
|
59
|
+
"requestBody": {
|
|
60
|
+
"required": true,
|
|
61
|
+
"content": {
|
|
62
|
+
"application/json": {
|
|
63
|
+
"schema": {
|
|
64
|
+
"$ref": "#/components/schemas/CreateCustomEventPayload"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"responses": {
|
|
70
|
+
"201": {
|
|
71
|
+
"description": "Custom event draft created",
|
|
72
|
+
"content": {
|
|
73
|
+
"application/json": {
|
|
74
|
+
"schema": {
|
|
75
|
+
"$ref": "#/components/schemas/EventConfig"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"409": {
|
|
81
|
+
"description": "Name is reserved by a built-in or existing org event"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
51
84
|
}
|
|
52
85
|
},
|
|
53
86
|
"/v1/events/{event_name}": {
|
|
@@ -125,6 +158,127 @@
|
|
|
125
158
|
"description": "Event not found"
|
|
126
159
|
}
|
|
127
160
|
}
|
|
161
|
+
},
|
|
162
|
+
"delete": {
|
|
163
|
+
"operationId": "deprecateCustomEvent",
|
|
164
|
+
"summary": "deprecateCustomEvent",
|
|
165
|
+
"description": "Soft-deprecate an org-scoped custom event. Definitions and v1.0 history remain readable.",
|
|
166
|
+
"tags": [
|
|
167
|
+
"Event Catalog"
|
|
168
|
+
],
|
|
169
|
+
"parameters": [
|
|
170
|
+
{
|
|
171
|
+
"name": "event_name",
|
|
172
|
+
"in": "path",
|
|
173
|
+
"required": true,
|
|
174
|
+
"schema": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"responses": {
|
|
180
|
+
"204": {
|
|
181
|
+
"description": "Custom event deprecated"
|
|
182
|
+
},
|
|
183
|
+
"404": {
|
|
184
|
+
"description": "Event not found"
|
|
185
|
+
},
|
|
186
|
+
"409": {
|
|
187
|
+
"description": "Built-ins cannot be deprecated or lifecycle cannot transition"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"/v1/events/{event_name}:preview": {
|
|
193
|
+
"post": {
|
|
194
|
+
"operationId": "previewCustomEvent",
|
|
195
|
+
"summary": "previewCustomEvent",
|
|
196
|
+
"description": "Assemble and fully validate a persisted custom-event draft without publishing it.",
|
|
197
|
+
"tags": [
|
|
198
|
+
"Event Catalog"
|
|
199
|
+
],
|
|
200
|
+
"parameters": [
|
|
201
|
+
{
|
|
202
|
+
"name": "event_name",
|
|
203
|
+
"in": "path",
|
|
204
|
+
"required": true,
|
|
205
|
+
"schema": {
|
|
206
|
+
"type": "string"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"requestBody": {
|
|
211
|
+
"required": true,
|
|
212
|
+
"content": {
|
|
213
|
+
"application/json": {
|
|
214
|
+
"schema": {
|
|
215
|
+
"$ref": "#/components/schemas/TriggerEventPayload"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"responses": {
|
|
221
|
+
"200": {
|
|
222
|
+
"description": "Deterministic preview result",
|
|
223
|
+
"content": {
|
|
224
|
+
"application/json": {
|
|
225
|
+
"schema": {
|
|
226
|
+
"$ref": "#/components/schemas/PreviewEventResponse"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"400": {
|
|
232
|
+
"description": "Projection or schema validation failed"
|
|
233
|
+
},
|
|
234
|
+
"404": {
|
|
235
|
+
"description": "Custom event not found"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"/v1/events/{event_name}:publish": {
|
|
241
|
+
"post": {
|
|
242
|
+
"operationId": "publishCustomEventDefinition",
|
|
243
|
+
"summary": "publishCustomEventDefinition",
|
|
244
|
+
"description": "Conditionally activate an immutable custom-event v1.0 definition.",
|
|
245
|
+
"tags": [
|
|
246
|
+
"Event Catalog"
|
|
247
|
+
],
|
|
248
|
+
"parameters": [
|
|
249
|
+
{
|
|
250
|
+
"name": "event_name",
|
|
251
|
+
"in": "path",
|
|
252
|
+
"required": true,
|
|
253
|
+
"schema": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"requestBody": {
|
|
259
|
+
"content": {
|
|
260
|
+
"application/json": {
|
|
261
|
+
"schema": {
|
|
262
|
+
"$ref": "#/components/schemas/PublishCustomEventPayload"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"responses": {
|
|
268
|
+
"200": {
|
|
269
|
+
"description": "Published event configuration",
|
|
270
|
+
"content": {
|
|
271
|
+
"application/json": {
|
|
272
|
+
"schema": {
|
|
273
|
+
"$ref": "#/components/schemas/EventConfig"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"409": {
|
|
279
|
+
"description": "Definition is not a draft or base publication choice is invalid"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
128
282
|
}
|
|
129
283
|
},
|
|
130
284
|
"/v1/events/{event_name}/json_schema": {
|
|
@@ -437,7 +591,7 @@
|
|
|
437
591
|
"post": {
|
|
438
592
|
"operationId": "triggerEvent",
|
|
439
593
|
"summary": "triggerEvent",
|
|
440
|
-
"description": "Explicitly trigger an event by providing input field values and an optional entity seed\nfor graph hydration. The event must be enabled for the organization.\n\n- For events with an entity_graph, a seed (entity_id + node_id) is required\n- For events without an entity_graph, only fields are needed\n- Entity operation context fields (operation, trigger_entity, activity_id, activity_type)\n are not included when triggering via API\n",
|
|
594
|
+
"description": "Explicitly trigger an event by providing input field values and an optional entity seed\nfor graph hydration. The event must be enabled for the organization.\n\n- For events with an entity_graph, a seed (entity_id + node_id) is required\n- For events without an entity_graph, only fields are needed\n- Entity operation context fields (operation, trigger_entity, activity_id, activity_type)\n are not included when triggering via API\n- Events marked `automation_trigger_only` require `_trigger_source_type: automation` and a\n stable execution/action ID in `_trigger_source`; retries with that ID return the same\n logical event, including while durable delivery is pending\n",
|
|
441
595
|
"tags": [
|
|
442
596
|
"Event Catalog"
|
|
443
597
|
],
|
|
@@ -464,7 +618,7 @@
|
|
|
464
618
|
},
|
|
465
619
|
"responses": {
|
|
466
620
|
"200": {
|
|
467
|
-
"description": "Event
|
|
621
|
+
"description": "Event published successfully",
|
|
468
622
|
"content": {
|
|
469
623
|
"application/json": {
|
|
470
624
|
"schema": {
|
|
@@ -481,6 +635,33 @@
|
|
|
481
635
|
},
|
|
482
636
|
"404": {
|
|
483
637
|
"description": "Event not found"
|
|
638
|
+
},
|
|
639
|
+
"409": {
|
|
640
|
+
"description": "The Automation trigger source was already used with different trigger input, including a different entity seed"
|
|
641
|
+
},
|
|
642
|
+
"425": {
|
|
643
|
+
"description": "The hydrated entity graph is not ready yet, another request currently owns the\nidempotency lease, or a durably queued event (including an already-requested redrive)\nis awaiting publication. Automation must retry with the same trigger source and may\nadvance only after a 200 response.\n",
|
|
644
|
+
"headers": {
|
|
645
|
+
"Retry-After": {
|
|
646
|
+
"description": "Seconds before the Automation action should retry",
|
|
647
|
+
"schema": {
|
|
648
|
+
"type": "integer",
|
|
649
|
+
"minimum": 1
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
"503": {
|
|
655
|
+
"description": "Durable delivery exhausted its bounded automatic redrives. The same logical event is\nretained and no new event is created. An API retry with the same trigger source\nrequests a redrive of the existing Standard workflow from its failed task checkpoint\nand receives this retryable response. Subsequent retries receive 425 while that\nredrive is pending or running.\n",
|
|
656
|
+
"headers": {
|
|
657
|
+
"Retry-After": {
|
|
658
|
+
"description": "Seconds before the Automation action should retry",
|
|
659
|
+
"schema": {
|
|
660
|
+
"type": "integer",
|
|
661
|
+
"minimum": 1
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
484
665
|
}
|
|
485
666
|
}
|
|
486
667
|
}
|
|
@@ -594,6 +775,34 @@
|
|
|
594
775
|
"default": false,
|
|
595
776
|
"example": true
|
|
596
777
|
},
|
|
778
|
+
"automation_trigger_only": {
|
|
779
|
+
"type": "boolean",
|
|
780
|
+
"readOnly": true,
|
|
781
|
+
"description": "Whether explicit triggering is restricted to Automation. When true, callers must pass\n`_trigger_source_type: automation` and a stable `_trigger_source`. The trigger uses\nstrict entity readiness validation and the durable Automation outbox.\nRequires `automation_trigger: true` and cannot be combined with `entity_operation`.\n",
|
|
782
|
+
"default": false,
|
|
783
|
+
"example": true
|
|
784
|
+
},
|
|
785
|
+
"automation_trigger_seed_node": {
|
|
786
|
+
"type": "string",
|
|
787
|
+
"readOnly": true,
|
|
788
|
+
"description": "Required entity-graph seed node for an Automation-only trigger. When configured, an\nexplicit trigger using any other node is rejected before hydration.\n",
|
|
789
|
+
"example": "ticket"
|
|
790
|
+
},
|
|
791
|
+
"event_origin": {
|
|
792
|
+
"type": "string",
|
|
793
|
+
"readOnly": true,
|
|
794
|
+
"enum": [
|
|
795
|
+
"builtin",
|
|
796
|
+
"custom"
|
|
797
|
+
],
|
|
798
|
+
"description": "Definition ownership. Built-ins always win a name collision."
|
|
799
|
+
},
|
|
800
|
+
"mapping": {
|
|
801
|
+
"$ref": "#/components/schemas/EventMapping"
|
|
802
|
+
},
|
|
803
|
+
"lineage": {
|
|
804
|
+
"$ref": "#/components/schemas/CustomEventLineage"
|
|
805
|
+
},
|
|
597
806
|
"success_criteria": {
|
|
598
807
|
"type": "array",
|
|
599
808
|
"description": "Org-defined success criteria for this event: the entity attributes that an\norganization considers must be captured for an event change request to be\ntreated as complete (e.g. for telephony / self-service flows).\n\nAdvisory metadata — event-catalog does NOT require an org to define any and\ndoes NOT enforce them when an event is triggered or published. The org may\ndefine none (empty array or omitted). When provided, each entry is validated\nfor well-formedness on write (see SuccessCriterion).\n",
|
|
@@ -629,17 +838,187 @@
|
|
|
629
838
|
}
|
|
630
839
|
]
|
|
631
840
|
},
|
|
632
|
-
"
|
|
633
|
-
"
|
|
634
|
-
"
|
|
635
|
-
|
|
636
|
-
|
|
841
|
+
"CreateCustomEventPayload": {
|
|
842
|
+
"type": "object",
|
|
843
|
+
"description": "Complete immutable custom-event v1.0 definition. Publication is a separate conditional action.",
|
|
844
|
+
"properties": {
|
|
845
|
+
"event_name": {
|
|
846
|
+
"type": "string",
|
|
847
|
+
"pattern": "^[A-Z][A-Za-z0-9]{2,79}$"
|
|
637
848
|
},
|
|
638
|
-
{
|
|
639
|
-
"type": "
|
|
849
|
+
"event_title": {
|
|
850
|
+
"type": "string",
|
|
851
|
+
"minLength": 1,
|
|
852
|
+
"maxLength": 160
|
|
853
|
+
},
|
|
854
|
+
"event_description": {
|
|
855
|
+
"type": "string",
|
|
856
|
+
"maxLength": 2000
|
|
857
|
+
},
|
|
858
|
+
"event_tags": {
|
|
859
|
+
"type": "array",
|
|
860
|
+
"items": {
|
|
861
|
+
"type": "string"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"schema_fields": {
|
|
865
|
+
"type": "object",
|
|
866
|
+
"additionalProperties": {
|
|
867
|
+
"$ref": "#/components/schemas/CustomSchemaField"
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
"entity_graph": {
|
|
871
|
+
"$ref": "#/components/schemas/GraphDefinition"
|
|
872
|
+
},
|
|
873
|
+
"entity_operation": {
|
|
874
|
+
"$ref": "#/components/schemas/EntityOperationTrigger"
|
|
875
|
+
},
|
|
876
|
+
"automation_trigger": {
|
|
877
|
+
"type": "boolean",
|
|
878
|
+
"default": true
|
|
879
|
+
},
|
|
880
|
+
"mapping": {
|
|
881
|
+
"$ref": "#/components/schemas/EventMapping"
|
|
882
|
+
},
|
|
883
|
+
"lineage": {
|
|
884
|
+
"$ref": "#/components/schemas/CustomEventLineage"
|
|
885
|
+
},
|
|
886
|
+
"example": {
|
|
887
|
+
"type": "object",
|
|
888
|
+
"additionalProperties": true
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"required": [
|
|
892
|
+
"event_name",
|
|
893
|
+
"event_title",
|
|
894
|
+
"schema_fields"
|
|
895
|
+
]
|
|
896
|
+
},
|
|
897
|
+
"EventMapping": {
|
|
898
|
+
"type": "object",
|
|
899
|
+
"description": "Guided mappings use schema_fields graph_source expressions; raw mode evaluates one JSONata object transform.",
|
|
900
|
+
"properties": {
|
|
901
|
+
"mode": {
|
|
902
|
+
"type": "string",
|
|
903
|
+
"enum": [
|
|
904
|
+
"guided",
|
|
905
|
+
"jsonata"
|
|
906
|
+
],
|
|
907
|
+
"default": "guided"
|
|
908
|
+
},
|
|
909
|
+
"jsonata": {
|
|
910
|
+
"type": "string",
|
|
911
|
+
"minLength": 1,
|
|
912
|
+
"maxLength": 20000
|
|
640
913
|
}
|
|
914
|
+
},
|
|
915
|
+
"required": [
|
|
916
|
+
"mode"
|
|
641
917
|
]
|
|
642
918
|
},
|
|
919
|
+
"CustomEventLineage": {
|
|
920
|
+
"type": "object",
|
|
921
|
+
"description": "Optional catalog lineage to a separately named base event. It does not replace the base event.",
|
|
922
|
+
"properties": {
|
|
923
|
+
"base_event_name": {
|
|
924
|
+
"type": "string"
|
|
925
|
+
},
|
|
926
|
+
"base_event_version": {
|
|
927
|
+
"type": "string"
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
"required": [
|
|
931
|
+
"base_event_name",
|
|
932
|
+
"base_event_version"
|
|
933
|
+
]
|
|
934
|
+
},
|
|
935
|
+
"PurposeFilterSnapshot": {
|
|
936
|
+
"type": "object",
|
|
937
|
+
"properties": {
|
|
938
|
+
"id": {
|
|
939
|
+
"type": "string",
|
|
940
|
+
"minLength": 1
|
|
941
|
+
},
|
|
942
|
+
"display_name": {
|
|
943
|
+
"type": "string",
|
|
944
|
+
"minLength": 1
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"required": [
|
|
948
|
+
"id",
|
|
949
|
+
"display_name"
|
|
950
|
+
]
|
|
951
|
+
},
|
|
952
|
+
"PublishCustomEventPayload": {
|
|
953
|
+
"type": "object",
|
|
954
|
+
"properties": {
|
|
955
|
+
"enabled": {
|
|
956
|
+
"type": "boolean",
|
|
957
|
+
"default": true
|
|
958
|
+
},
|
|
959
|
+
"auto_trigger": {
|
|
960
|
+
"type": "boolean",
|
|
961
|
+
"default": true
|
|
962
|
+
},
|
|
963
|
+
"base_auto_trigger_enabled": {
|
|
964
|
+
"type": "boolean",
|
|
965
|
+
"description": "Optional publication choice. False disables only the named lineage base event's org auto-trigger overlay."
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
"ValidationIssue": {
|
|
970
|
+
"type": "object",
|
|
971
|
+
"properties": {
|
|
972
|
+
"path": {
|
|
973
|
+
"type": "string"
|
|
974
|
+
},
|
|
975
|
+
"message": {
|
|
976
|
+
"type": "string"
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
"required": [
|
|
980
|
+
"path",
|
|
981
|
+
"message"
|
|
982
|
+
]
|
|
983
|
+
},
|
|
984
|
+
"PreviewEventResponse": {
|
|
985
|
+
"type": "object",
|
|
986
|
+
"properties": {
|
|
987
|
+
"payload": {
|
|
988
|
+
"type": "object",
|
|
989
|
+
"additionalProperties": true
|
|
990
|
+
},
|
|
991
|
+
"errors": {
|
|
992
|
+
"type": "array",
|
|
993
|
+
"items": {
|
|
994
|
+
"$ref": "#/components/schemas/ValidationIssue"
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
"required": [
|
|
999
|
+
"payload",
|
|
1000
|
+
"errors"
|
|
1001
|
+
]
|
|
1002
|
+
},
|
|
1003
|
+
"UpdateEventPayload": {
|
|
1004
|
+
"type": "object",
|
|
1005
|
+
"description": "Mutable org activation overlay. Immutable event definition fields are not accepted.",
|
|
1006
|
+
"properties": {
|
|
1007
|
+
"enabled": {
|
|
1008
|
+
"type": "boolean"
|
|
1009
|
+
},
|
|
1010
|
+
"auto_trigger": {
|
|
1011
|
+
"type": "boolean"
|
|
1012
|
+
},
|
|
1013
|
+
"success_criteria": {
|
|
1014
|
+
"type": "array",
|
|
1015
|
+
"items": {
|
|
1016
|
+
"$ref": "#/components/schemas/SuccessCriterion"
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
"additionalProperties": false
|
|
1021
|
+
},
|
|
643
1022
|
"PrimitiveField": {
|
|
644
1023
|
"type": "object",
|
|
645
1024
|
"description": "A primitive JSON Schema field definition",
|
|
@@ -700,6 +1079,17 @@
|
|
|
700
1079
|
"items"
|
|
701
1080
|
]
|
|
702
1081
|
},
|
|
1082
|
+
"CustomSchemaField": {
|
|
1083
|
+
"description": "Custom v1 fields support JSON Schema values and context entities; attachment semantics are built-in-only.",
|
|
1084
|
+
"oneOf": [
|
|
1085
|
+
{
|
|
1086
|
+
"$ref": "#/components/schemas/PrimitiveField"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"$ref": "#/components/schemas/ContextEntity"
|
|
1090
|
+
}
|
|
1091
|
+
]
|
|
1092
|
+
},
|
|
703
1093
|
"SchemaField": {
|
|
704
1094
|
"oneOf": [
|
|
705
1095
|
{
|
|
@@ -982,6 +1372,13 @@
|
|
|
982
1372
|
"items": {
|
|
983
1373
|
"$ref": "#/components/schemas/InlineDowngradeStep"
|
|
984
1374
|
}
|
|
1375
|
+
},
|
|
1376
|
+
"_automation_chain": {
|
|
1377
|
+
"type": "array",
|
|
1378
|
+
"description": "Ordered automation flow ids that caused this event (at most 100), propagated verbatim from the trigger input or the originating entity operation. Internal loop-prevention transport for automation-api; svc-webhooks strips it before delivery.",
|
|
1379
|
+
"items": {
|
|
1380
|
+
"type": "string"
|
|
1381
|
+
}
|
|
985
1382
|
}
|
|
986
1383
|
},
|
|
987
1384
|
"required": [
|
|
@@ -1208,6 +1605,13 @@
|
|
|
1208
1605
|
"Kündigung",
|
|
1209
1606
|
"Umzug/Auszug"
|
|
1210
1607
|
]
|
|
1608
|
+
},
|
|
1609
|
+
"purpose_filters": {
|
|
1610
|
+
"type": "array",
|
|
1611
|
+
"description": "Stable purpose IDs plus immutable display-name snapshots for custom events.",
|
|
1612
|
+
"items": {
|
|
1613
|
+
"$ref": "#/components/schemas/PurposeFilterSnapshot"
|
|
1614
|
+
}
|
|
1211
1615
|
}
|
|
1212
1616
|
},
|
|
1213
1617
|
"required": [
|
|
@@ -1300,6 +1704,14 @@
|
|
|
1300
1704
|
"TriggerEventPayload": {
|
|
1301
1705
|
"type": "object",
|
|
1302
1706
|
"description": "Payload for explicitly triggering an event via API",
|
|
1707
|
+
"example": {
|
|
1708
|
+
"seed": {
|
|
1709
|
+
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1710
|
+
"node_id": "ticket"
|
|
1711
|
+
},
|
|
1712
|
+
"_trigger_source_type": "automation",
|
|
1713
|
+
"_trigger_source": "execution-id/action-id"
|
|
1714
|
+
},
|
|
1303
1715
|
"properties": {
|
|
1304
1716
|
"seed": {
|
|
1305
1717
|
"type": "object",
|
|
@@ -1338,7 +1750,14 @@
|
|
|
1338
1750
|
},
|
|
1339
1751
|
"_trigger_source": {
|
|
1340
1752
|
"type": "string",
|
|
1341
|
-
"description": "Identifier of the specific trigger source.\nExamples: user ID, automation execution ID, activity ID, portal user email\nDefaults to the calling user ID if not specified.\n"
|
|
1753
|
+
"description": "Identifier of the specific trigger source.\nExamples: user ID, automation execution ID, activity ID, portal user email\nDefaults to the calling user ID if not specified.\nRequired for events marked `automation_trigger_only` and must remain stable across\naction retries.\n"
|
|
1754
|
+
},
|
|
1755
|
+
"_automation_chain": {
|
|
1756
|
+
"type": "array",
|
|
1757
|
+
"description": "Ordered automation flow ids that caused this trigger (at most 100); propagated verbatim onto the published event for automation loop prevention.",
|
|
1758
|
+
"items": {
|
|
1759
|
+
"type": "string"
|
|
1760
|
+
}
|
|
1342
1761
|
}
|
|
1343
1762
|
}
|
|
1344
1763
|
},
|
|
@@ -1348,7 +1767,7 @@
|
|
|
1348
1767
|
"properties": {
|
|
1349
1768
|
"success": {
|
|
1350
1769
|
"type": "boolean",
|
|
1351
|
-
"description": "Whether the event was
|
|
1770
|
+
"description": "Whether the event was published successfully"
|
|
1352
1771
|
},
|
|
1353
1772
|
"event_id": {
|
|
1354
1773
|
"type": "string",
|
|
@@ -1356,7 +1775,7 @@
|
|
|
1356
1775
|
},
|
|
1357
1776
|
"event_bridge_event_id": {
|
|
1358
1777
|
"type": "string",
|
|
1359
|
-
"description": "EventBridge event ID
|
|
1778
|
+
"description": "EventBridge event ID when synchronous delivery or a completed retry provides it"
|
|
1360
1779
|
}
|
|
1361
1780
|
},
|
|
1362
1781
|
"required": [
|