-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay.yaml
95 lines (95 loc) · 3.93 KB
/
overlay.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
overlay: 1.0.0
info:
title: Overlay epilot automation to make a automation resource
version: 0.0.1
actions:
- target: $
update:
x-speakeasy-retries:
strategy: backoff
backoff:
initialInterval: 5000 # 5 seconds
maxInterval: 60000 # 60 seconds
maxElapsedTime: 3600000 # 5 minutes
exponent: 1.5
statusCodes:
- 5XX
retryConnectionErrors: true
- target: $["paths"]["/v1/automation/flows"]["post"]
update:
x-speakeasy-entity-operation: Flow#create
- target: $["paths"]["/v1/automation/flows/{flow_id}"]["get"]
update:
x-speakeasy-entity-operation: Flow#get
- target: $["paths"]["/v1/automation/flows/{flow_id}"]["put"]
update:
x-speakeasy-entity-operation: Flow#update
- target: $["paths"]["/v1/automation/flows/{flow_id}"]["delete"]
update:
x-speakeasy-entity-operation: Flow#delete
- target: $["paths"]["/v1/automation/flows/{flow_id}"]["get"]["parameters"][0]
update:
x-speakeasy-match: id
- target: $["paths"]["/v1/automation/flows/{flow_id}"]["put"]["parameters"][0]
update:
x-speakeasy-match: id
- target: $["paths"]["/v1/automation/flows/{flow_id}"]["delete"]["parameters"][0]
update:
x-speakeasy-match: id
- target: $["components"]["schemas"]["AutomationFlow"]
update:
x-speakeasy-entity: Flow
- target: $["components"]["schemas"]["FilterConditionOnEvent"]
remove: true
- target: $["components"]["schemas"]["TriggerWorkflowCondition"]
remove: true
- target: $["components"]["schemas"]["TriggerCondition"]
remove: true
- target: $["components"]["schemas"]["EntityOperationTrigger"]["allOf"][1]["properties"]["configuration"]["properties"]["filter_config"]["properties"]["operation"]["properties"]["diff"]
remove: true
- target: $["components"]["schemas"]["EntityOperationTrigger"]["allOf"][1]["properties"]["configuration"]["properties"]["filter_config"]["properties"]["operation"]["properties"]
update:
diff: {}
- target: $["components"]["schemas"]["OrCondition"]
remove: true
- target: $["components"]["schemas"]["OrConditionForDiff"]
remove: true
- target: $["components"]["schemas"]["ActivityTrigger"]
remove: true
- target: $["components"]["schemas"]
update:
FilterConditionOnEvent: {}
TriggerWorkflowCondition: {}
TriggerCondition: {}
OrCondition: {}
OrConditionForDiff: {}
ActivityTrigger: {} # @Todo: switch back to allOfs after speakeasy fixes a way to deal with unknown properties in anyOfs/allOfs
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["actions"]["readOnly"]
remove: true
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["actions"]["items"]
remove: true
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["actions"]
update:
items: {}
- target: $["components"]["schemas"]["ActivityTrigger"]["properties"]["configuration"]["properties"]["types"]["items"]
remove: true
- target: $["components"]["schemas"]["ActivityTrigger"]["properties"]["configuration"]["properties"]["types"]
update:
items: {}
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["created_at"]
remove: true
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["updated_at"]
remove: true
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["created_by"]
remove: true
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["last_updated_by"]
remove: true
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["org_id"]
remove: true
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["runs"]
remove: true
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]["schedules"]
remove: true
- target: $["components"]["schemas"]["AutomationFlow"]["properties"]
update:
schedules: {}