@epilot/automation-client 2.14.8 → 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 +235 -3
- package/dist/openapi.json +144 -11
- 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:
|
|
@@ -1493,6 +1533,18 @@ declare namespace Components {
|
|
|
1493
1533
|
context?: string;
|
|
1494
1534
|
id?: string;
|
|
1495
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
|
+
}
|
|
1496
1548
|
export interface ErrorOutput {
|
|
1497
1549
|
error_code: ErrorCode;
|
|
1498
1550
|
error_reason: string;
|
|
@@ -2133,6 +2185,11 @@ declare namespace Components {
|
|
|
2133
2185
|
*/
|
|
2134
2186
|
schedule_id?: string;
|
|
2135
2187
|
}
|
|
2188
|
+
export interface SendEmailCondition {
|
|
2189
|
+
_exists?: {
|
|
2190
|
+
source?: string;
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2136
2193
|
export interface SendEmailConfig {
|
|
2137
2194
|
email_template_id?: string;
|
|
2138
2195
|
language_code?: "de" | "en";
|
|
@@ -2199,6 +2256,10 @@ declare namespace Components {
|
|
|
2199
2256
|
self?: boolean;
|
|
2200
2257
|
};
|
|
2201
2258
|
}[];
|
|
2259
|
+
/**
|
|
2260
|
+
* Conditions necessary to send out email. Otherwise it will be skipped
|
|
2261
|
+
*/
|
|
2262
|
+
conditions?: SendEmailCondition[];
|
|
2202
2263
|
}
|
|
2203
2264
|
export interface SetValueMapper {
|
|
2204
2265
|
mode: /**
|
|
@@ -2633,6 +2694,14 @@ declare namespace Paths {
|
|
|
2633
2694
|
export type RequestBody = Components.Schemas.BulkTriggerRequest;
|
|
2634
2695
|
namespace Responses {
|
|
2635
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;
|
|
2636
2705
|
}
|
|
2637
2706
|
}
|
|
2638
2707
|
namespace CancelExecution {
|
|
@@ -2648,12 +2717,36 @@ declare namespace Paths {
|
|
|
2648
2717
|
}
|
|
2649
2718
|
namespace Responses {
|
|
2650
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;
|
|
2651
2736
|
}
|
|
2652
2737
|
}
|
|
2653
2738
|
namespace CreateFlow {
|
|
2654
2739
|
export type RequestBody = Components.Schemas.AutomationFlow;
|
|
2655
2740
|
namespace Responses {
|
|
2656
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;
|
|
2657
2750
|
}
|
|
2658
2751
|
}
|
|
2659
2752
|
namespace DeleteFlow {
|
|
@@ -2668,7 +2761,24 @@ declare namespace Paths {
|
|
|
2668
2761
|
flow_id: Parameters.FlowId;
|
|
2669
2762
|
}
|
|
2670
2763
|
namespace Responses {
|
|
2671
|
-
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;
|
|
2672
2782
|
}
|
|
2673
2783
|
}
|
|
2674
2784
|
namespace GetBulkJob {
|
|
@@ -2685,6 +2795,22 @@ declare namespace Paths {
|
|
|
2685
2795
|
}
|
|
2686
2796
|
namespace Responses {
|
|
2687
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;
|
|
2688
2814
|
}
|
|
2689
2815
|
}
|
|
2690
2816
|
namespace GetExecution {
|
|
@@ -2700,6 +2826,22 @@ declare namespace Paths {
|
|
|
2700
2826
|
}
|
|
2701
2827
|
namespace Responses {
|
|
2702
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;
|
|
2703
2845
|
}
|
|
2704
2846
|
}
|
|
2705
2847
|
namespace GetExecutions {
|
|
@@ -2719,6 +2861,14 @@ declare namespace Paths {
|
|
|
2719
2861
|
}
|
|
2720
2862
|
namespace Responses {
|
|
2721
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;
|
|
2722
2872
|
}
|
|
2723
2873
|
}
|
|
2724
2874
|
namespace GetFlow {
|
|
@@ -2734,6 +2884,22 @@ declare namespace Paths {
|
|
|
2734
2884
|
}
|
|
2735
2885
|
namespace Responses {
|
|
2736
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;
|
|
2737
2903
|
}
|
|
2738
2904
|
}
|
|
2739
2905
|
namespace PatchBulkJob {
|
|
@@ -2751,6 +2917,22 @@ declare namespace Paths {
|
|
|
2751
2917
|
export type RequestBody = Components.Schemas.PatchBulkJobRequest;
|
|
2752
2918
|
namespace Responses {
|
|
2753
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;
|
|
2754
2936
|
}
|
|
2755
2937
|
}
|
|
2756
2938
|
namespace PutFlow {
|
|
@@ -2767,6 +2949,14 @@ declare namespace Paths {
|
|
|
2767
2949
|
export type RequestBody = Components.Schemas.AutomationFlow;
|
|
2768
2950
|
namespace Responses {
|
|
2769
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;
|
|
2770
2960
|
}
|
|
2771
2961
|
}
|
|
2772
2962
|
namespace ResumeExecutionWithToken {
|
|
@@ -2775,6 +2965,22 @@ declare namespace Paths {
|
|
|
2775
2965
|
export type $200 = Components.Schemas.ResumeResp;
|
|
2776
2966
|
export interface $400 {
|
|
2777
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;
|
|
2778
2984
|
}
|
|
2779
2985
|
}
|
|
2780
2986
|
namespace RetriggerAction {
|
|
@@ -2798,6 +3004,22 @@ declare namespace Paths {
|
|
|
2798
3004
|
namespace Responses {
|
|
2799
3005
|
export interface $200 {
|
|
2800
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;
|
|
2801
3023
|
}
|
|
2802
3024
|
}
|
|
2803
3025
|
namespace SearchFlows {
|
|
@@ -2837,6 +3059,14 @@ declare namespace Paths {
|
|
|
2837
3059
|
export type RequestBody = Components.Schemas.StartExecutionRequest;
|
|
2838
3060
|
namespace Responses {
|
|
2839
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;
|
|
2840
3070
|
}
|
|
2841
3071
|
}
|
|
2842
3072
|
}
|
|
@@ -3200,6 +3430,7 @@ export type EntityRef = Components.Schemas.EntityRef;
|
|
|
3200
3430
|
export type EqualsIgnoreCaseCondition = Components.Schemas.EqualsIgnoreCaseCondition;
|
|
3201
3431
|
export type ErrorCode = Components.Schemas.ErrorCode;
|
|
3202
3432
|
export type ErrorDetail = Components.Schemas.ErrorDetail;
|
|
3433
|
+
export type ErrorObject = Components.Schemas.ErrorObject;
|
|
3203
3434
|
export type ErrorOutput = Components.Schemas.ErrorOutput;
|
|
3204
3435
|
export type ExecItem = Components.Schemas.ExecItem;
|
|
3205
3436
|
export type ExecutionStatus = Components.Schemas.ExecutionStatus;
|
|
@@ -3235,6 +3466,7 @@ export type RetryStrategy = Components.Schemas.RetryStrategy;
|
|
|
3235
3466
|
export type SearchAutomationsResp = Components.Schemas.SearchAutomationsResp;
|
|
3236
3467
|
export type SendEmailAction = Components.Schemas.SendEmailAction;
|
|
3237
3468
|
export type SendEmailActionConfig = Components.Schemas.SendEmailActionConfig;
|
|
3469
|
+
export type SendEmailCondition = Components.Schemas.SendEmailCondition;
|
|
3238
3470
|
export type SendEmailConfig = Components.Schemas.SendEmailConfig;
|
|
3239
3471
|
export type SetValueMapper = Components.Schemas.SetValueMapper;
|
|
3240
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
|
}
|
|
@@ -1674,6 +1730,26 @@
|
|
|
1674
1730
|
"required": [
|
|
1675
1731
|
"email_template_id"
|
|
1676
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
|
+
}
|
|
1677
1753
|
}
|
|
1678
1754
|
}
|
|
1679
1755
|
},
|
|
@@ -2137,9 +2213,7 @@
|
|
|
2137
2213
|
},
|
|
2138
2214
|
"required": [
|
|
2139
2215
|
"id",
|
|
2140
|
-
"origin"
|
|
2141
|
-
"schema",
|
|
2142
|
-
"attribute"
|
|
2216
|
+
"origin"
|
|
2143
2217
|
]
|
|
2144
2218
|
},
|
|
2145
2219
|
"ActionSchedule": {
|
|
@@ -3306,10 +3380,69 @@
|
|
|
3306
3380
|
"execution",
|
|
3307
3381
|
"resumedAction"
|
|
3308
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
|
+
}
|
|
3309
3439
|
}
|
|
3310
3440
|
}
|
|
3311
3441
|
},
|
|
3312
3442
|
"servers": [
|
|
3443
|
+
{
|
|
3444
|
+
"url": "https://automation.sls.epilot.io"
|
|
3445
|
+
},
|
|
3313
3446
|
{
|
|
3314
3447
|
"url": "https://automation.sls.epilot.io"
|
|
3315
3448
|
}
|