@epilot/automation-client 2.22.5 → 2.23.0
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 +11 -0
- package/dist/openapi.d.ts +47 -0
- package/dist/openapi.json +47 -0
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={330: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(466));t.default=r.default},466: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"},{"name":"include_flows","in":"query"}],"responses":{}},"post":{"operationId":"createFlow","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/flows/{flow_id}":{"get":{"operationId":"getFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}}},"/v1/automation/executions":{"get":{"operationId":"getExecutions","parameters":[{"name":"entity_id","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"},{"name":"include_flows","in":"query"}],"responses":{}},"post":{"operationId":"startExecution","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs":{"post":{"operationId":"bulkTriggerExecutions","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs/{job_id}":{"get":{"operationId":"getBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"responses":{}},"patch":{"operationId":"patchBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/{execution_id}":{"get":{"operationId":"getExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"cancelExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}}},"/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":{}}},"responses":{}}},"/v1/automation/public/executions:resume":{"post":{"operationId":"resumeExecutionWithToken","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/{execution_id}/schedules/{schedule_id}":{"delete":{"operationId":"cancelSchedule","parameters":[{"name":"execution_id","in":"path","required":true},{"name":"schedule_id","in":"path","required":true}],"responses":{}}}},"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}(330),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={330: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(466));t.default=r.default},466: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"},{"name":"include_flows","in":"query"}],"responses":{}},"post":{"operationId":"createFlow","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/flows:batchGet":{"post":{"operationId":"batchGetFlows","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/flows/{flow_id}":{"get":{"operationId":"getFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}}},"/v1/automation/executions":{"get":{"operationId":"getExecutions","parameters":[{"name":"entity_id","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"},{"name":"include_flows","in":"query"}],"responses":{}},"post":{"operationId":"startExecution","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs":{"post":{"operationId":"bulkTriggerExecutions","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs/{job_id}":{"get":{"operationId":"getBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"responses":{}},"patch":{"operationId":"patchBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/{execution_id}":{"get":{"operationId":"getExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"cancelExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}}},"/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":{}}},"responses":{}}},"/v1/automation/public/executions:resume":{"post":{"operationId":"resumeExecutionWithToken","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/{execution_id}/schedules/{schedule_id}":{"delete":{"operationId":"cancelSchedule","parameters":[{"name":"execution_id","in":"path","required":true},{"name":"schedule_id","in":"path","required":true}],"responses":{}}}},"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}(330),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
@@ -42,6 +42,17 @@
|
|
|
42
42
|
"responses": {}
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
+
"/v1/automation/flows:batchGet": {
|
|
46
|
+
"post": {
|
|
47
|
+
"operationId": "batchGetFlows",
|
|
48
|
+
"requestBody": {
|
|
49
|
+
"content": {
|
|
50
|
+
"application/json": {}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"responses": {}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
45
56
|
"/v1/automation/flows/{flow_id}": {
|
|
46
57
|
"get": {
|
|
47
58
|
"operationId": "getFlow",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -3398,6 +3398,10 @@ declare namespace Components {
|
|
|
3398
3398
|
schedule_id?: string;
|
|
3399
3399
|
}
|
|
3400
3400
|
export interface TriggerWebhookConfig {
|
|
3401
|
+
/**
|
|
3402
|
+
* The latest webhook event_id for an execution of this action
|
|
3403
|
+
*/
|
|
3404
|
+
event_id?: string;
|
|
3401
3405
|
entity_sources?: string[];
|
|
3402
3406
|
target_webhook_id?: string;
|
|
3403
3407
|
/**
|
|
@@ -3629,6 +3633,27 @@ declare namespace Components {
|
|
|
3629
3633
|
}
|
|
3630
3634
|
}
|
|
3631
3635
|
declare namespace Paths {
|
|
3636
|
+
namespace BatchGetFlows {
|
|
3637
|
+
export interface RequestBody {
|
|
3638
|
+
ids?: /**
|
|
3639
|
+
* ID of the Automation Flow
|
|
3640
|
+
* example:
|
|
3641
|
+
* 7791b04a-16d2-44a2-9af9-2d59c25c512f
|
|
3642
|
+
*/
|
|
3643
|
+
Components.Schemas.AutomationFlowId[];
|
|
3644
|
+
}
|
|
3645
|
+
namespace Responses {
|
|
3646
|
+
export type $200 = Components.Schemas.SearchAutomationsResp;
|
|
3647
|
+
export type $403 = /**
|
|
3648
|
+
* example:
|
|
3649
|
+
* {
|
|
3650
|
+
* "status": 403,
|
|
3651
|
+
* "error": "Forbidden"
|
|
3652
|
+
* }
|
|
3653
|
+
*/
|
|
3654
|
+
Components.Responses.ForbiddenError;
|
|
3655
|
+
}
|
|
3656
|
+
}
|
|
3632
3657
|
namespace BulkTriggerExecutions {
|
|
3633
3658
|
export type RequestBody = Components.Schemas.BulkTriggerRequest;
|
|
3634
3659
|
namespace Responses {
|
|
@@ -4072,6 +4097,16 @@ export interface OperationMethods {
|
|
|
4072
4097
|
data?: Paths.CreateFlow.RequestBody,
|
|
4073
4098
|
config?: AxiosRequestConfig
|
|
4074
4099
|
): OperationResponse<Paths.CreateFlow.Responses.$201>
|
|
4100
|
+
/**
|
|
4101
|
+
* batchGetFlows - batchGetFlows
|
|
4102
|
+
*
|
|
4103
|
+
* Get multiple automation flows by their IDs
|
|
4104
|
+
*/
|
|
4105
|
+
'batchGetFlows'(
|
|
4106
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
4107
|
+
data?: Paths.BatchGetFlows.RequestBody,
|
|
4108
|
+
config?: AxiosRequestConfig
|
|
4109
|
+
): OperationResponse<Paths.BatchGetFlows.Responses.$200>
|
|
4075
4110
|
/**
|
|
4076
4111
|
* getFlow - getFlow
|
|
4077
4112
|
*
|
|
@@ -4232,6 +4267,18 @@ export interface PathsDictionary {
|
|
|
4232
4267
|
config?: AxiosRequestConfig
|
|
4233
4268
|
): OperationResponse<Paths.CreateFlow.Responses.$201>
|
|
4234
4269
|
}
|
|
4270
|
+
['/v1/automation/flows:batchGet']: {
|
|
4271
|
+
/**
|
|
4272
|
+
* batchGetFlows - batchGetFlows
|
|
4273
|
+
*
|
|
4274
|
+
* Get multiple automation flows by their IDs
|
|
4275
|
+
*/
|
|
4276
|
+
'post'(
|
|
4277
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
4278
|
+
data?: Paths.BatchGetFlows.RequestBody,
|
|
4279
|
+
config?: AxiosRequestConfig
|
|
4280
|
+
): OperationResponse<Paths.BatchGetFlows.Responses.$200>
|
|
4281
|
+
}
|
|
4235
4282
|
['/v1/automation/flows/{flow_id}']: {
|
|
4236
4283
|
/**
|
|
4237
4284
|
* getFlow - getFlow
|
package/dist/openapi.json
CHANGED
|
@@ -127,6 +127,49 @@
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
|
+
"/v1/automation/flows:batchGet": {
|
|
131
|
+
"post": {
|
|
132
|
+
"operationId": "batchGetFlows",
|
|
133
|
+
"summary": "batchGetFlows",
|
|
134
|
+
"description": "Get multiple automation flows by their IDs",
|
|
135
|
+
"tags": [
|
|
136
|
+
"flows"
|
|
137
|
+
],
|
|
138
|
+
"requestBody": {
|
|
139
|
+
"description": "List of flow IDs to retrieve",
|
|
140
|
+
"content": {
|
|
141
|
+
"application/json": {
|
|
142
|
+
"schema": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"ids": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"items": {
|
|
148
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"responses": {
|
|
157
|
+
"200": {
|
|
158
|
+
"description": "List of automation flows",
|
|
159
|
+
"content": {
|
|
160
|
+
"application/json": {
|
|
161
|
+
"schema": {
|
|
162
|
+
"$ref": "#/components/schemas/SearchAutomationsResp"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"403": {
|
|
168
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
130
173
|
"/v1/automation/flows/{flow_id}": {
|
|
131
174
|
"get": {
|
|
132
175
|
"operationId": "getFlow",
|
|
@@ -2531,6 +2574,10 @@
|
|
|
2531
2574
|
"TriggerWebhookConfig": {
|
|
2532
2575
|
"type": "object",
|
|
2533
2576
|
"properties": {
|
|
2577
|
+
"event_id": {
|
|
2578
|
+
"type": "string",
|
|
2579
|
+
"description": "The latest webhook event_id for an execution of this action"
|
|
2580
|
+
},
|
|
2534
2581
|
"entity_sources": {
|
|
2535
2582
|
"type": "array",
|
|
2536
2583
|
"items": {
|