@epilot/automation-client 2.14.7 → 2.14.9
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/definition.js +1 -1
- package/dist/openapi-runtime.json +28 -29
- package/dist/openapi.d.ts +250 -4
- package/dist/openapi.json +179 -14
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,t,o){var
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(o(240));t.default=r.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v1/automation/flows":{"get":{"operationId":"searchFlows","parameters":[{"name":"schema","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"},{"name":"trigger_source_id","in":"query"}]},"post":{"operationId":"createFlow","requestBody":{"content":{"application/json":{}}}}},"/v1/automation/flows/{flow_id}":{"get":{"operationId":"getFlow","parameters":[{"name":"flow_id","in":"path","required":true}]},"put":{"operationId":"putFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteFlow","parameters":[{"name":"flow_id","in":"path","required":true}]}},"/v1/automation/executions":{"get":{"operationId":"getExecutions","parameters":[{"name":"entity_id","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"}]},"post":{"operationId":"startExecution","requestBody":{"content":{"application/json":{}}}}},"/v1/automation/executions/bulk-jobs":{"post":{"operationId":"bulkTriggerExecutions","requestBody":{"content":{"application/json":{}}}}},"/v1/automation/executions/bulk-jobs/{job_id}":{"get":{"operationId":"getBulkJob","parameters":[{"name":"job_id","in":"path","required":true}]},"patch":{"operationId":"patchBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}}},"/v1/automation/executions/{execution_id}":{"get":{"operationId":"getExecution","parameters":[{"name":"execution_id","in":"path","required":true}]},"delete":{"operationId":"cancelExecution","parameters":[{"name":"execution_id","in":"path","required":true}]}},"/v1/automation/executions/{execution_id}/{action_id}/retrigger":{"post":{"operationId":"retriggerAction","parameters":[{"name":"execution_id","in":"path","required":true},{"name":"action_id","in":"path","required":true}],"requestBody":{"required":false,"content":{"application/json":{}}}}},"/v1/automation/public/executions:resume":{"post":{"operationId":"resumeExecutionWithToken","requestBody":{"content":{"application/json":{}}}}}},"components":{"responses":{"NotFoundError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}}}},"servers":[{"url":"https://automation.sls.epilot.io"}]}')}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}(914),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"name": "trigger_source_id",
|
|
26
26
|
"in": "query"
|
|
27
27
|
}
|
|
28
|
-
]
|
|
29
|
-
"responses": {}
|
|
28
|
+
]
|
|
30
29
|
},
|
|
31
30
|
"post": {
|
|
32
31
|
"operationId": "createFlow",
|
|
@@ -34,8 +33,7 @@
|
|
|
34
33
|
"content": {
|
|
35
34
|
"application/json": {}
|
|
36
35
|
}
|
|
37
|
-
}
|
|
38
|
-
"responses": {}
|
|
36
|
+
}
|
|
39
37
|
}
|
|
40
38
|
},
|
|
41
39
|
"/v1/automation/flows/{flow_id}": {
|
|
@@ -47,8 +45,7 @@
|
|
|
47
45
|
"in": "path",
|
|
48
46
|
"required": true
|
|
49
47
|
}
|
|
50
|
-
]
|
|
51
|
-
"responses": {}
|
|
48
|
+
]
|
|
52
49
|
},
|
|
53
50
|
"put": {
|
|
54
51
|
"operationId": "putFlow",
|
|
@@ -63,8 +60,7 @@
|
|
|
63
60
|
"content": {
|
|
64
61
|
"application/json": {}
|
|
65
62
|
}
|
|
66
|
-
}
|
|
67
|
-
"responses": {}
|
|
63
|
+
}
|
|
68
64
|
},
|
|
69
65
|
"delete": {
|
|
70
66
|
"operationId": "deleteFlow",
|
|
@@ -74,8 +70,7 @@
|
|
|
74
70
|
"in": "path",
|
|
75
71
|
"required": true
|
|
76
72
|
}
|
|
77
|
-
]
|
|
78
|
-
"responses": {}
|
|
73
|
+
]
|
|
79
74
|
}
|
|
80
75
|
},
|
|
81
76
|
"/v1/automation/executions": {
|
|
@@ -94,8 +89,7 @@
|
|
|
94
89
|
"name": "from",
|
|
95
90
|
"in": "query"
|
|
96
91
|
}
|
|
97
|
-
]
|
|
98
|
-
"responses": {}
|
|
92
|
+
]
|
|
99
93
|
},
|
|
100
94
|
"post": {
|
|
101
95
|
"operationId": "startExecution",
|
|
@@ -103,8 +97,7 @@
|
|
|
103
97
|
"content": {
|
|
104
98
|
"application/json": {}
|
|
105
99
|
}
|
|
106
|
-
}
|
|
107
|
-
"responses": {}
|
|
100
|
+
}
|
|
108
101
|
}
|
|
109
102
|
},
|
|
110
103
|
"/v1/automation/executions/bulk-jobs": {
|
|
@@ -114,8 +107,7 @@
|
|
|
114
107
|
"content": {
|
|
115
108
|
"application/json": {}
|
|
116
109
|
}
|
|
117
|
-
}
|
|
118
|
-
"responses": {}
|
|
110
|
+
}
|
|
119
111
|
}
|
|
120
112
|
},
|
|
121
113
|
"/v1/automation/executions/bulk-jobs/{job_id}": {
|
|
@@ -127,8 +119,7 @@
|
|
|
127
119
|
"in": "path",
|
|
128
120
|
"required": true
|
|
129
121
|
}
|
|
130
|
-
]
|
|
131
|
-
"responses": {}
|
|
122
|
+
]
|
|
132
123
|
},
|
|
133
124
|
"patch": {
|
|
134
125
|
"operationId": "patchBulkJob",
|
|
@@ -143,8 +134,7 @@
|
|
|
143
134
|
"content": {
|
|
144
135
|
"application/json": {}
|
|
145
136
|
}
|
|
146
|
-
}
|
|
147
|
-
"responses": {}
|
|
137
|
+
}
|
|
148
138
|
}
|
|
149
139
|
},
|
|
150
140
|
"/v1/automation/executions/{execution_id}": {
|
|
@@ -156,8 +146,7 @@
|
|
|
156
146
|
"in": "path",
|
|
157
147
|
"required": true
|
|
158
148
|
}
|
|
159
|
-
]
|
|
160
|
-
"responses": {}
|
|
149
|
+
]
|
|
161
150
|
},
|
|
162
151
|
"delete": {
|
|
163
152
|
"operationId": "cancelExecution",
|
|
@@ -167,8 +156,7 @@
|
|
|
167
156
|
"in": "path",
|
|
168
157
|
"required": true
|
|
169
158
|
}
|
|
170
|
-
]
|
|
171
|
-
"responses": {}
|
|
159
|
+
]
|
|
172
160
|
}
|
|
173
161
|
},
|
|
174
162
|
"/v1/automation/executions/{execution_id}/{action_id}/retrigger": {
|
|
@@ -191,8 +179,7 @@
|
|
|
191
179
|
"content": {
|
|
192
180
|
"application/json": {}
|
|
193
181
|
}
|
|
194
|
-
}
|
|
195
|
-
"responses": {}
|
|
182
|
+
}
|
|
196
183
|
}
|
|
197
184
|
},
|
|
198
185
|
"/v1/automation/public/executions:resume": {
|
|
@@ -202,12 +189,24 @@
|
|
|
202
189
|
"content": {
|
|
203
190
|
"application/json": {}
|
|
204
191
|
}
|
|
205
|
-
}
|
|
206
|
-
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"components": {
|
|
197
|
+
"responses": {
|
|
198
|
+
"NotFoundError": {
|
|
199
|
+
"content": {
|
|
200
|
+
"application/json": {}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"ForbiddenError": {
|
|
204
|
+
"content": {
|
|
205
|
+
"application/json": {}
|
|
206
|
+
}
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
|
-
"components": {},
|
|
211
210
|
"servers": [
|
|
212
211
|
{
|
|
213
212
|
"url": "https://automation.sls.epilot.io"
|
package/dist/openapi.d.ts
CHANGED
|
@@ -9,6 +9,46 @@ import type {
|
|
|
9
9
|
} from 'openapi-client-axios';
|
|
10
10
|
|
|
11
11
|
declare namespace Components {
|
|
12
|
+
namespace Responses {
|
|
13
|
+
/**
|
|
14
|
+
* example:
|
|
15
|
+
* {
|
|
16
|
+
* "status": 403,
|
|
17
|
+
* "error": "Forbidden"
|
|
18
|
+
* }
|
|
19
|
+
*/
|
|
20
|
+
export interface ForbiddenError {
|
|
21
|
+
/**
|
|
22
|
+
* The HTTP status code of the error
|
|
23
|
+
* example:
|
|
24
|
+
* 400
|
|
25
|
+
*/
|
|
26
|
+
status?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The error message
|
|
29
|
+
*/
|
|
30
|
+
error?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* example:
|
|
34
|
+
* {
|
|
35
|
+
* "status": 404,
|
|
36
|
+
* "error": "Not Found"
|
|
37
|
+
* }
|
|
38
|
+
*/
|
|
39
|
+
export interface NotFoundError {
|
|
40
|
+
/**
|
|
41
|
+
* The HTTP status code of the error
|
|
42
|
+
* example:
|
|
43
|
+
* 400
|
|
44
|
+
*/
|
|
45
|
+
status?: number;
|
|
46
|
+
/**
|
|
47
|
+
* The error message
|
|
48
|
+
*/
|
|
49
|
+
error?: string;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
12
52
|
namespace Schemas {
|
|
13
53
|
export interface ActionCondition {
|
|
14
54
|
id?: string;
|
|
@@ -62,8 +102,8 @@ declare namespace Components {
|
|
|
62
102
|
*/
|
|
63
103
|
id: string;
|
|
64
104
|
origin: "trigger" | "action" | "action_task" | "automation";
|
|
65
|
-
schema
|
|
66
|
-
attribute
|
|
105
|
+
schema?: string;
|
|
106
|
+
attribute?: string;
|
|
67
107
|
}
|
|
68
108
|
/**
|
|
69
109
|
* example:
|
|
@@ -744,6 +784,16 @@ declare namespace Components {
|
|
|
744
784
|
* Whether the automation is enabled or not
|
|
745
785
|
*/
|
|
746
786
|
enabled?: boolean;
|
|
787
|
+
disable_details?: {
|
|
788
|
+
/**
|
|
789
|
+
* When the flow was disabled
|
|
790
|
+
*/
|
|
791
|
+
disabled_at: string; // date-time
|
|
792
|
+
/**
|
|
793
|
+
* Who disabled the flow (system or user)
|
|
794
|
+
*/
|
|
795
|
+
disabled_by: "system" | "user";
|
|
796
|
+
};
|
|
747
797
|
triggers: AnyTrigger[];
|
|
748
798
|
trigger_conditions?: /**
|
|
749
799
|
* example:
|
|
@@ -801,6 +851,10 @@ declare namespace Components {
|
|
|
801
851
|
* 2
|
|
802
852
|
*/
|
|
803
853
|
version?: number;
|
|
854
|
+
/**
|
|
855
|
+
* Source blueprint/manifest ID used when automation is created via blueprints.
|
|
856
|
+
*/
|
|
857
|
+
_manifest?: string /* uuid */[] | null;
|
|
804
858
|
}
|
|
805
859
|
/**
|
|
806
860
|
* example:
|
|
@@ -1479,6 +1533,18 @@ declare namespace Components {
|
|
|
1479
1533
|
context?: string;
|
|
1480
1534
|
id?: string;
|
|
1481
1535
|
}
|
|
1536
|
+
export interface ErrorObject {
|
|
1537
|
+
/**
|
|
1538
|
+
* The HTTP status code of the error
|
|
1539
|
+
* example:
|
|
1540
|
+
* 400
|
|
1541
|
+
*/
|
|
1542
|
+
status?: number;
|
|
1543
|
+
/**
|
|
1544
|
+
* The error message
|
|
1545
|
+
*/
|
|
1546
|
+
error?: string;
|
|
1547
|
+
}
|
|
1482
1548
|
export interface ErrorOutput {
|
|
1483
1549
|
error_code: ErrorCode;
|
|
1484
1550
|
error_reason: string;
|
|
@@ -1508,7 +1574,7 @@ declare namespace Components {
|
|
|
1508
1574
|
*/
|
|
1509
1575
|
error?: string;
|
|
1510
1576
|
}
|
|
1511
|
-
export type ExecutionStatus = "pending" | "in_progress" | "paused" | "success" | "failed" | "cancelled" | "skipped" | "scheduled";
|
|
1577
|
+
export type ExecutionStatus = "pending" | "in_progress" | "paused" | "success" | "failed" | "cancelled" | "skipped" | "scheduled" | "hot";
|
|
1512
1578
|
export interface ExistsCondition {
|
|
1513
1579
|
exists?: boolean;
|
|
1514
1580
|
}
|
|
@@ -2119,6 +2185,11 @@ declare namespace Components {
|
|
|
2119
2185
|
*/
|
|
2120
2186
|
schedule_id?: string;
|
|
2121
2187
|
}
|
|
2188
|
+
export interface SendEmailCondition {
|
|
2189
|
+
_exists?: {
|
|
2190
|
+
source?: string;
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2122
2193
|
export interface SendEmailConfig {
|
|
2123
2194
|
email_template_id?: string;
|
|
2124
2195
|
language_code?: "de" | "en";
|
|
@@ -2185,6 +2256,10 @@ declare namespace Components {
|
|
|
2185
2256
|
self?: boolean;
|
|
2186
2257
|
};
|
|
2187
2258
|
}[];
|
|
2259
|
+
/**
|
|
2260
|
+
* Conditions necessary to send out email. Otherwise it will be skipped
|
|
2261
|
+
*/
|
|
2262
|
+
conditions?: SendEmailCondition[];
|
|
2188
2263
|
}
|
|
2189
2264
|
export interface SetValueMapper {
|
|
2190
2265
|
mode: /**
|
|
@@ -2619,6 +2694,14 @@ declare namespace Paths {
|
|
|
2619
2694
|
export type RequestBody = Components.Schemas.BulkTriggerRequest;
|
|
2620
2695
|
namespace Responses {
|
|
2621
2696
|
export type $202 = Components.Schemas.BulkTriggerJob;
|
|
2697
|
+
export type $403 = /**
|
|
2698
|
+
* example:
|
|
2699
|
+
* {
|
|
2700
|
+
* "status": 403,
|
|
2701
|
+
* "error": "Forbidden"
|
|
2702
|
+
* }
|
|
2703
|
+
*/
|
|
2704
|
+
Components.Responses.ForbiddenError;
|
|
2622
2705
|
}
|
|
2623
2706
|
}
|
|
2624
2707
|
namespace CancelExecution {
|
|
@@ -2634,12 +2717,36 @@ declare namespace Paths {
|
|
|
2634
2717
|
}
|
|
2635
2718
|
namespace Responses {
|
|
2636
2719
|
export type $200 = Components.Schemas.AutomationExecution;
|
|
2720
|
+
export type $403 = /**
|
|
2721
|
+
* example:
|
|
2722
|
+
* {
|
|
2723
|
+
* "status": 403,
|
|
2724
|
+
* "error": "Forbidden"
|
|
2725
|
+
* }
|
|
2726
|
+
*/
|
|
2727
|
+
Components.Responses.ForbiddenError;
|
|
2728
|
+
export type $404 = /**
|
|
2729
|
+
* example:
|
|
2730
|
+
* {
|
|
2731
|
+
* "status": 404,
|
|
2732
|
+
* "error": "Not Found"
|
|
2733
|
+
* }
|
|
2734
|
+
*/
|
|
2735
|
+
Components.Responses.NotFoundError;
|
|
2637
2736
|
}
|
|
2638
2737
|
}
|
|
2639
2738
|
namespace CreateFlow {
|
|
2640
2739
|
export type RequestBody = Components.Schemas.AutomationFlow;
|
|
2641
2740
|
namespace Responses {
|
|
2642
2741
|
export type $201 = Components.Schemas.AutomationFlow;
|
|
2742
|
+
export type $403 = /**
|
|
2743
|
+
* example:
|
|
2744
|
+
* {
|
|
2745
|
+
* "status": 403,
|
|
2746
|
+
* "error": "Forbidden"
|
|
2747
|
+
* }
|
|
2748
|
+
*/
|
|
2749
|
+
Components.Responses.ForbiddenError;
|
|
2643
2750
|
}
|
|
2644
2751
|
}
|
|
2645
2752
|
namespace DeleteFlow {
|
|
@@ -2654,7 +2761,24 @@ declare namespace Paths {
|
|
|
2654
2761
|
flow_id: Parameters.FlowId;
|
|
2655
2762
|
}
|
|
2656
2763
|
namespace Responses {
|
|
2657
|
-
export
|
|
2764
|
+
export interface $200 {
|
|
2765
|
+
}
|
|
2766
|
+
export type $403 = /**
|
|
2767
|
+
* example:
|
|
2768
|
+
* {
|
|
2769
|
+
* "status": 403,
|
|
2770
|
+
* "error": "Forbidden"
|
|
2771
|
+
* }
|
|
2772
|
+
*/
|
|
2773
|
+
Components.Responses.ForbiddenError;
|
|
2774
|
+
export type $404 = /**
|
|
2775
|
+
* example:
|
|
2776
|
+
* {
|
|
2777
|
+
* "status": 404,
|
|
2778
|
+
* "error": "Not Found"
|
|
2779
|
+
* }
|
|
2780
|
+
*/
|
|
2781
|
+
Components.Responses.NotFoundError;
|
|
2658
2782
|
}
|
|
2659
2783
|
}
|
|
2660
2784
|
namespace GetBulkJob {
|
|
@@ -2671,6 +2795,22 @@ declare namespace Paths {
|
|
|
2671
2795
|
}
|
|
2672
2796
|
namespace Responses {
|
|
2673
2797
|
export type $200 = Components.Schemas.BulkTriggerJob;
|
|
2798
|
+
export type $403 = /**
|
|
2799
|
+
* example:
|
|
2800
|
+
* {
|
|
2801
|
+
* "status": 403,
|
|
2802
|
+
* "error": "Forbidden"
|
|
2803
|
+
* }
|
|
2804
|
+
*/
|
|
2805
|
+
Components.Responses.ForbiddenError;
|
|
2806
|
+
export type $404 = /**
|
|
2807
|
+
* example:
|
|
2808
|
+
* {
|
|
2809
|
+
* "status": 404,
|
|
2810
|
+
* "error": "Not Found"
|
|
2811
|
+
* }
|
|
2812
|
+
*/
|
|
2813
|
+
Components.Responses.NotFoundError;
|
|
2674
2814
|
}
|
|
2675
2815
|
}
|
|
2676
2816
|
namespace GetExecution {
|
|
@@ -2686,6 +2826,22 @@ declare namespace Paths {
|
|
|
2686
2826
|
}
|
|
2687
2827
|
namespace Responses {
|
|
2688
2828
|
export type $200 = Components.Schemas.AutomationExecution;
|
|
2829
|
+
export type $403 = /**
|
|
2830
|
+
* example:
|
|
2831
|
+
* {
|
|
2832
|
+
* "status": 403,
|
|
2833
|
+
* "error": "Forbidden"
|
|
2834
|
+
* }
|
|
2835
|
+
*/
|
|
2836
|
+
Components.Responses.ForbiddenError;
|
|
2837
|
+
export type $404 = /**
|
|
2838
|
+
* example:
|
|
2839
|
+
* {
|
|
2840
|
+
* "status": 404,
|
|
2841
|
+
* "error": "Not Found"
|
|
2842
|
+
* }
|
|
2843
|
+
*/
|
|
2844
|
+
Components.Responses.NotFoundError;
|
|
2689
2845
|
}
|
|
2690
2846
|
}
|
|
2691
2847
|
namespace GetExecutions {
|
|
@@ -2705,6 +2861,14 @@ declare namespace Paths {
|
|
|
2705
2861
|
}
|
|
2706
2862
|
namespace Responses {
|
|
2707
2863
|
export type $200 = Components.Schemas.GetExecutionsResp;
|
|
2864
|
+
export type $403 = /**
|
|
2865
|
+
* example:
|
|
2866
|
+
* {
|
|
2867
|
+
* "status": 403,
|
|
2868
|
+
* "error": "Forbidden"
|
|
2869
|
+
* }
|
|
2870
|
+
*/
|
|
2871
|
+
Components.Responses.ForbiddenError;
|
|
2708
2872
|
}
|
|
2709
2873
|
}
|
|
2710
2874
|
namespace GetFlow {
|
|
@@ -2720,6 +2884,22 @@ declare namespace Paths {
|
|
|
2720
2884
|
}
|
|
2721
2885
|
namespace Responses {
|
|
2722
2886
|
export type $200 = Components.Schemas.AutomationFlow;
|
|
2887
|
+
export type $403 = /**
|
|
2888
|
+
* example:
|
|
2889
|
+
* {
|
|
2890
|
+
* "status": 403,
|
|
2891
|
+
* "error": "Forbidden"
|
|
2892
|
+
* }
|
|
2893
|
+
*/
|
|
2894
|
+
Components.Responses.ForbiddenError;
|
|
2895
|
+
export type $404 = /**
|
|
2896
|
+
* example:
|
|
2897
|
+
* {
|
|
2898
|
+
* "status": 404,
|
|
2899
|
+
* "error": "Not Found"
|
|
2900
|
+
* }
|
|
2901
|
+
*/
|
|
2902
|
+
Components.Responses.NotFoundError;
|
|
2723
2903
|
}
|
|
2724
2904
|
}
|
|
2725
2905
|
namespace PatchBulkJob {
|
|
@@ -2737,6 +2917,22 @@ declare namespace Paths {
|
|
|
2737
2917
|
export type RequestBody = Components.Schemas.PatchBulkJobRequest;
|
|
2738
2918
|
namespace Responses {
|
|
2739
2919
|
export type $200 = Components.Schemas.BulkTriggerJob;
|
|
2920
|
+
export type $403 = /**
|
|
2921
|
+
* example:
|
|
2922
|
+
* {
|
|
2923
|
+
* "status": 403,
|
|
2924
|
+
* "error": "Forbidden"
|
|
2925
|
+
* }
|
|
2926
|
+
*/
|
|
2927
|
+
Components.Responses.ForbiddenError;
|
|
2928
|
+
export type $404 = /**
|
|
2929
|
+
* example:
|
|
2930
|
+
* {
|
|
2931
|
+
* "status": 404,
|
|
2932
|
+
* "error": "Not Found"
|
|
2933
|
+
* }
|
|
2934
|
+
*/
|
|
2935
|
+
Components.Responses.NotFoundError;
|
|
2740
2936
|
}
|
|
2741
2937
|
}
|
|
2742
2938
|
namespace PutFlow {
|
|
@@ -2753,6 +2949,14 @@ declare namespace Paths {
|
|
|
2753
2949
|
export type RequestBody = Components.Schemas.AutomationFlow;
|
|
2754
2950
|
namespace Responses {
|
|
2755
2951
|
export type $200 = Components.Schemas.AutomationFlow;
|
|
2952
|
+
export type $403 = /**
|
|
2953
|
+
* example:
|
|
2954
|
+
* {
|
|
2955
|
+
* "status": 403,
|
|
2956
|
+
* "error": "Forbidden"
|
|
2957
|
+
* }
|
|
2958
|
+
*/
|
|
2959
|
+
Components.Responses.ForbiddenError;
|
|
2756
2960
|
}
|
|
2757
2961
|
}
|
|
2758
2962
|
namespace ResumeExecutionWithToken {
|
|
@@ -2761,6 +2965,22 @@ declare namespace Paths {
|
|
|
2761
2965
|
export type $200 = Components.Schemas.ResumeResp;
|
|
2762
2966
|
export interface $400 {
|
|
2763
2967
|
}
|
|
2968
|
+
export type $403 = /**
|
|
2969
|
+
* example:
|
|
2970
|
+
* {
|
|
2971
|
+
* "status": 403,
|
|
2972
|
+
* "error": "Forbidden"
|
|
2973
|
+
* }
|
|
2974
|
+
*/
|
|
2975
|
+
Components.Responses.ForbiddenError;
|
|
2976
|
+
export type $404 = /**
|
|
2977
|
+
* example:
|
|
2978
|
+
* {
|
|
2979
|
+
* "status": 404,
|
|
2980
|
+
* "error": "Not Found"
|
|
2981
|
+
* }
|
|
2982
|
+
*/
|
|
2983
|
+
Components.Responses.NotFoundError;
|
|
2764
2984
|
}
|
|
2765
2985
|
}
|
|
2766
2986
|
namespace RetriggerAction {
|
|
@@ -2784,6 +3004,22 @@ declare namespace Paths {
|
|
|
2784
3004
|
namespace Responses {
|
|
2785
3005
|
export interface $200 {
|
|
2786
3006
|
}
|
|
3007
|
+
export type $403 = /**
|
|
3008
|
+
* example:
|
|
3009
|
+
* {
|
|
3010
|
+
* "status": 403,
|
|
3011
|
+
* "error": "Forbidden"
|
|
3012
|
+
* }
|
|
3013
|
+
*/
|
|
3014
|
+
Components.Responses.ForbiddenError;
|
|
3015
|
+
export type $404 = /**
|
|
3016
|
+
* example:
|
|
3017
|
+
* {
|
|
3018
|
+
* "status": 404,
|
|
3019
|
+
* "error": "Not Found"
|
|
3020
|
+
* }
|
|
3021
|
+
*/
|
|
3022
|
+
Components.Responses.NotFoundError;
|
|
2787
3023
|
}
|
|
2788
3024
|
}
|
|
2789
3025
|
namespace SearchFlows {
|
|
@@ -2823,6 +3059,14 @@ declare namespace Paths {
|
|
|
2823
3059
|
export type RequestBody = Components.Schemas.StartExecutionRequest;
|
|
2824
3060
|
namespace Responses {
|
|
2825
3061
|
export type $201 = Components.Schemas.AutomationExecution;
|
|
3062
|
+
export type $403 = /**
|
|
3063
|
+
* example:
|
|
3064
|
+
* {
|
|
3065
|
+
* "status": 403,
|
|
3066
|
+
* "error": "Forbidden"
|
|
3067
|
+
* }
|
|
3068
|
+
*/
|
|
3069
|
+
Components.Responses.ForbiddenError;
|
|
2826
3070
|
}
|
|
2827
3071
|
}
|
|
2828
3072
|
}
|
|
@@ -3186,6 +3430,7 @@ export type EntityRef = Components.Schemas.EntityRef;
|
|
|
3186
3430
|
export type EqualsIgnoreCaseCondition = Components.Schemas.EqualsIgnoreCaseCondition;
|
|
3187
3431
|
export type ErrorCode = Components.Schemas.ErrorCode;
|
|
3188
3432
|
export type ErrorDetail = Components.Schemas.ErrorDetail;
|
|
3433
|
+
export type ErrorObject = Components.Schemas.ErrorObject;
|
|
3189
3434
|
export type ErrorOutput = Components.Schemas.ErrorOutput;
|
|
3190
3435
|
export type ExecItem = Components.Schemas.ExecItem;
|
|
3191
3436
|
export type ExecutionStatus = Components.Schemas.ExecutionStatus;
|
|
@@ -3221,6 +3466,7 @@ export type RetryStrategy = Components.Schemas.RetryStrategy;
|
|
|
3221
3466
|
export type SearchAutomationsResp = Components.Schemas.SearchAutomationsResp;
|
|
3222
3467
|
export type SendEmailAction = Components.Schemas.SendEmailAction;
|
|
3223
3468
|
export type SendEmailActionConfig = Components.Schemas.SendEmailActionConfig;
|
|
3469
|
+
export type SendEmailCondition = Components.Schemas.SendEmailCondition;
|
|
3224
3470
|
export type SendEmailConfig = Components.Schemas.SendEmailConfig;
|
|
3225
3471
|
export type SetValueMapper = Components.Schemas.SetValueMapper;
|
|
3226
3472
|
export type StartExecutionRequest = Components.Schemas.StartExecutionRequest;
|
package/dist/openapi.json
CHANGED
|
@@ -111,6 +111,9 @@
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
},
|
|
115
|
+
"403": {
|
|
116
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
}
|
|
@@ -144,6 +147,12 @@
|
|
|
144
147
|
}
|
|
145
148
|
}
|
|
146
149
|
}
|
|
150
|
+
},
|
|
151
|
+
"403": {
|
|
152
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
153
|
+
},
|
|
154
|
+
"404": {
|
|
155
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
147
156
|
}
|
|
148
157
|
}
|
|
149
158
|
},
|
|
@@ -185,6 +194,9 @@
|
|
|
185
194
|
}
|
|
186
195
|
}
|
|
187
196
|
}
|
|
197
|
+
},
|
|
198
|
+
"403": {
|
|
199
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
188
200
|
}
|
|
189
201
|
}
|
|
190
202
|
},
|
|
@@ -208,14 +220,13 @@
|
|
|
208
220
|
],
|
|
209
221
|
"responses": {
|
|
210
222
|
"200": {
|
|
211
|
-
"description": "
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
223
|
+
"description": "Flow deleted successfully"
|
|
224
|
+
},
|
|
225
|
+
"403": {
|
|
226
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
227
|
+
},
|
|
228
|
+
"404": {
|
|
229
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
219
230
|
}
|
|
220
231
|
}
|
|
221
232
|
}
|
|
@@ -265,6 +276,9 @@
|
|
|
265
276
|
}
|
|
266
277
|
}
|
|
267
278
|
}
|
|
279
|
+
},
|
|
280
|
+
"403": {
|
|
281
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
268
282
|
}
|
|
269
283
|
}
|
|
270
284
|
},
|
|
@@ -295,6 +309,9 @@
|
|
|
295
309
|
}
|
|
296
310
|
}
|
|
297
311
|
}
|
|
312
|
+
},
|
|
313
|
+
"403": {
|
|
314
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
298
315
|
}
|
|
299
316
|
}
|
|
300
317
|
}
|
|
@@ -334,6 +351,9 @@
|
|
|
334
351
|
}
|
|
335
352
|
}
|
|
336
353
|
}
|
|
354
|
+
},
|
|
355
|
+
"403": {
|
|
356
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
337
357
|
}
|
|
338
358
|
}
|
|
339
359
|
}
|
|
@@ -366,6 +386,12 @@
|
|
|
366
386
|
}
|
|
367
387
|
}
|
|
368
388
|
}
|
|
389
|
+
},
|
|
390
|
+
"403": {
|
|
391
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
392
|
+
},
|
|
393
|
+
"404": {
|
|
394
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
369
395
|
}
|
|
370
396
|
}
|
|
371
397
|
},
|
|
@@ -409,6 +435,12 @@
|
|
|
409
435
|
}
|
|
410
436
|
}
|
|
411
437
|
}
|
|
438
|
+
},
|
|
439
|
+
"403": {
|
|
440
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
441
|
+
},
|
|
442
|
+
"404": {
|
|
443
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
412
444
|
}
|
|
413
445
|
}
|
|
414
446
|
}
|
|
@@ -441,6 +473,12 @@
|
|
|
441
473
|
}
|
|
442
474
|
}
|
|
443
475
|
}
|
|
476
|
+
},
|
|
477
|
+
"403": {
|
|
478
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
479
|
+
},
|
|
480
|
+
"404": {
|
|
481
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
444
482
|
}
|
|
445
483
|
}
|
|
446
484
|
},
|
|
@@ -471,6 +509,12 @@
|
|
|
471
509
|
}
|
|
472
510
|
}
|
|
473
511
|
}
|
|
512
|
+
},
|
|
513
|
+
"403": {
|
|
514
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
515
|
+
},
|
|
516
|
+
"404": {
|
|
517
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
474
518
|
}
|
|
475
519
|
}
|
|
476
520
|
}
|
|
@@ -517,6 +561,12 @@
|
|
|
517
561
|
"responses": {
|
|
518
562
|
"200": {
|
|
519
563
|
"description": "action re-triggered with success"
|
|
564
|
+
},
|
|
565
|
+
"403": {
|
|
566
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
567
|
+
},
|
|
568
|
+
"404": {
|
|
569
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
520
570
|
}
|
|
521
571
|
}
|
|
522
572
|
}
|
|
@@ -553,6 +603,12 @@
|
|
|
553
603
|
},
|
|
554
604
|
"400": {
|
|
555
605
|
"description": "execution could not be resumed"
|
|
606
|
+
},
|
|
607
|
+
"403": {
|
|
608
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
609
|
+
},
|
|
610
|
+
"404": {
|
|
611
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
556
612
|
}
|
|
557
613
|
}
|
|
558
614
|
}
|
|
@@ -589,8 +645,29 @@
|
|
|
589
645
|
},
|
|
590
646
|
"enabled": {
|
|
591
647
|
"type": "boolean",
|
|
592
|
-
"description": "Whether the automation is enabled or not"
|
|
593
|
-
|
|
648
|
+
"description": "Whether the automation is enabled or not"
|
|
649
|
+
},
|
|
650
|
+
"disable_details": {
|
|
651
|
+
"type": "object",
|
|
652
|
+
"properties": {
|
|
653
|
+
"disabled_at": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"format": "date-time",
|
|
656
|
+
"description": "When the flow was disabled"
|
|
657
|
+
},
|
|
658
|
+
"disabled_by": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"enum": [
|
|
661
|
+
"system",
|
|
662
|
+
"user"
|
|
663
|
+
],
|
|
664
|
+
"description": "Who disabled the flow (system or user)"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
"required": [
|
|
668
|
+
"disabled_at",
|
|
669
|
+
"disabled_by"
|
|
670
|
+
]
|
|
594
671
|
},
|
|
595
672
|
"triggers": {
|
|
596
673
|
"type": "array",
|
|
@@ -670,6 +747,16 @@
|
|
|
670
747
|
"type": "number",
|
|
671
748
|
"description": "Version of the flow",
|
|
672
749
|
"example": 2
|
|
750
|
+
},
|
|
751
|
+
"_manifest": {
|
|
752
|
+
"type": "array",
|
|
753
|
+
"description": "Source blueprint/manifest ID used when automation is created via blueprints.",
|
|
754
|
+
"items": {
|
|
755
|
+
"type": "string",
|
|
756
|
+
"format": "uuid",
|
|
757
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
758
|
+
},
|
|
759
|
+
"nullable": true
|
|
673
760
|
}
|
|
674
761
|
},
|
|
675
762
|
"required": [
|
|
@@ -1643,6 +1730,26 @@
|
|
|
1643
1730
|
"required": [
|
|
1644
1731
|
"email_template_id"
|
|
1645
1732
|
]
|
|
1733
|
+
},
|
|
1734
|
+
"conditions": {
|
|
1735
|
+
"type": "array",
|
|
1736
|
+
"description": "Conditions necessary to send out email. Otherwise it will be skipped",
|
|
1737
|
+
"items": {
|
|
1738
|
+
"$ref": "#/components/schemas/SendEmailCondition"
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
},
|
|
1743
|
+
"SendEmailCondition": {
|
|
1744
|
+
"type": "object",
|
|
1745
|
+
"properties": {
|
|
1746
|
+
"_exists": {
|
|
1747
|
+
"type": "object",
|
|
1748
|
+
"properties": {
|
|
1749
|
+
"source": {
|
|
1750
|
+
"type": "string"
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1646
1753
|
}
|
|
1647
1754
|
}
|
|
1648
1755
|
},
|
|
@@ -2106,9 +2213,7 @@
|
|
|
2106
2213
|
},
|
|
2107
2214
|
"required": [
|
|
2108
2215
|
"id",
|
|
2109
|
-
"origin"
|
|
2110
|
-
"schema",
|
|
2111
|
-
"attribute"
|
|
2216
|
+
"origin"
|
|
2112
2217
|
]
|
|
2113
2218
|
},
|
|
2114
2219
|
"ActionSchedule": {
|
|
@@ -2399,7 +2504,8 @@
|
|
|
2399
2504
|
"failed",
|
|
2400
2505
|
"cancelled",
|
|
2401
2506
|
"skipped",
|
|
2402
|
-
"scheduled"
|
|
2507
|
+
"scheduled",
|
|
2508
|
+
"hot"
|
|
2403
2509
|
]
|
|
2404
2510
|
},
|
|
2405
2511
|
"GetExecutionsResp": {
|
|
@@ -3274,10 +3380,69 @@
|
|
|
3274
3380
|
"execution",
|
|
3275
3381
|
"resumedAction"
|
|
3276
3382
|
]
|
|
3383
|
+
},
|
|
3384
|
+
"ErrorObject": {
|
|
3385
|
+
"type": "object",
|
|
3386
|
+
"properties": {
|
|
3387
|
+
"status": {
|
|
3388
|
+
"type": "integer",
|
|
3389
|
+
"description": "The HTTP status code of the error",
|
|
3390
|
+
"example": 400
|
|
3391
|
+
},
|
|
3392
|
+
"error": {
|
|
3393
|
+
"type": "string",
|
|
3394
|
+
"description": "The error message"
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
},
|
|
3399
|
+
"responses": {
|
|
3400
|
+
"NotFoundError": {
|
|
3401
|
+
"description": "The requested resource was not found",
|
|
3402
|
+
"content": {
|
|
3403
|
+
"application/json": {
|
|
3404
|
+
"schema": {
|
|
3405
|
+
"allOf": [
|
|
3406
|
+
{
|
|
3407
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
"example": {
|
|
3411
|
+
"status": 404,
|
|
3412
|
+
"error": "Not Found"
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
]
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
}
|
|
3419
|
+
},
|
|
3420
|
+
"ForbiddenError": {
|
|
3421
|
+
"description": "The requested resource is forbidden",
|
|
3422
|
+
"content": {
|
|
3423
|
+
"application/json": {
|
|
3424
|
+
"schema": {
|
|
3425
|
+
"allOf": [
|
|
3426
|
+
{
|
|
3427
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
3428
|
+
},
|
|
3429
|
+
{
|
|
3430
|
+
"example": {
|
|
3431
|
+
"status": 403,
|
|
3432
|
+
"error": "Forbidden"
|
|
3433
|
+
}
|
|
3434
|
+
}
|
|
3435
|
+
]
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3277
3439
|
}
|
|
3278
3440
|
}
|
|
3279
3441
|
},
|
|
3280
3442
|
"servers": [
|
|
3443
|
+
{
|
|
3444
|
+
"url": "https://automation.sls.epilot.io"
|
|
3445
|
+
},
|
|
3281
3446
|
{
|
|
3282
3447
|
"url": "https://automation.sls.epilot.io"
|
|
3283
3448
|
}
|