@epilot/automation-client 2.15.1 → 2.16.1
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 +1 -6
- package/dist/openapi.d.ts +201 -2
- package/dist/openapi.json +163 -6
- package/package.json +2 -2
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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"}],"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"}],"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":{}}}},"components":{"responses":{"NotFoundError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}}}}
|
|
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"}],"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"}],"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":{}}}},"components":{"responses":{"NotFoundError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}}}}}')}},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})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -126,7 +126,33 @@ declare namespace Components {
|
|
|
126
126
|
types?: (("CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" | "PortalUserResetPassword" | "PortalUserResetForgotPassword" | "SelfAssignmentFromPortal") | string)[];
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
export
|
|
129
|
+
export interface AdvancedCustomActionConfig {
|
|
130
|
+
/**
|
|
131
|
+
* Name of the custom action
|
|
132
|
+
*/
|
|
133
|
+
name?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Description of the custom action
|
|
136
|
+
*/
|
|
137
|
+
description?: string;
|
|
138
|
+
/**
|
|
139
|
+
* The ID of the app to fetch configuration from the app API
|
|
140
|
+
* example:
|
|
141
|
+
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
142
|
+
*/
|
|
143
|
+
app_id?: string;
|
|
144
|
+
/**
|
|
145
|
+
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
146
|
+
* example:
|
|
147
|
+
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
148
|
+
*/
|
|
149
|
+
component_id?: string;
|
|
150
|
+
type: "advanced";
|
|
151
|
+
advanced_settings?: {
|
|
152
|
+
[name: string]: any;
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction | CreateDocumentAction | SendEmailAction | /* Creates an order entity with prices from journey */ CartCheckoutAction | CustomAction | AutomationAction;
|
|
130
156
|
export type AnyActionConfig = /**
|
|
131
157
|
* example:
|
|
132
158
|
* {
|
|
@@ -326,7 +352,7 @@ declare namespace Components {
|
|
|
326
352
|
* }
|
|
327
353
|
* }
|
|
328
354
|
*/
|
|
329
|
-
SendEmailActionConfig | /* Creates an order entity with prices from journey */ CartCheckoutActionConfig | AutomationActionConfig;
|
|
355
|
+
SendEmailActionConfig | /* Creates an order entity with prices from journey */ CartCheckoutActionConfig | CustomActionConfig | AutomationActionConfig;
|
|
330
356
|
export type AnyTrigger = FrontendSubmitTrigger | JourneySubmitTrigger | ApiSubmissionTrigger | /**
|
|
331
357
|
* - If provides filter_config, executes an automation based on the filtered configuration when an entity event occurs.
|
|
332
358
|
* - The conditions on a filter follows the event bridge patterns - `https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html`
|
|
@@ -885,6 +911,64 @@ declare namespace Components {
|
|
|
885
911
|
*/
|
|
886
912
|
id?: string; // uuid
|
|
887
913
|
}
|
|
914
|
+
export interface BaseCustomActionConfig {
|
|
915
|
+
/**
|
|
916
|
+
* Name of the custom action
|
|
917
|
+
*/
|
|
918
|
+
name?: string;
|
|
919
|
+
/**
|
|
920
|
+
* Description of the custom action
|
|
921
|
+
*/
|
|
922
|
+
description?: string;
|
|
923
|
+
/**
|
|
924
|
+
* The ID of the app to fetch configuration from the app API
|
|
925
|
+
* example:
|
|
926
|
+
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
927
|
+
*/
|
|
928
|
+
app_id?: string;
|
|
929
|
+
/**
|
|
930
|
+
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
931
|
+
* example:
|
|
932
|
+
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
933
|
+
*/
|
|
934
|
+
component_id?: string;
|
|
935
|
+
}
|
|
936
|
+
export interface BasicCustomActionConfig {
|
|
937
|
+
/**
|
|
938
|
+
* Name of the custom action
|
|
939
|
+
*/
|
|
940
|
+
name?: string;
|
|
941
|
+
/**
|
|
942
|
+
* Description of the custom action
|
|
943
|
+
*/
|
|
944
|
+
description?: string;
|
|
945
|
+
/**
|
|
946
|
+
* The ID of the app to fetch configuration from the app API
|
|
947
|
+
* example:
|
|
948
|
+
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
949
|
+
*/
|
|
950
|
+
app_id?: string;
|
|
951
|
+
/**
|
|
952
|
+
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
953
|
+
* example:
|
|
954
|
+
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
955
|
+
*/
|
|
956
|
+
component_id?: string;
|
|
957
|
+
type: "basic";
|
|
958
|
+
basic_settings?: {
|
|
959
|
+
/**
|
|
960
|
+
* URL to call
|
|
961
|
+
*/
|
|
962
|
+
url?: string;
|
|
963
|
+
headers?: {
|
|
964
|
+
[name: string]: any;
|
|
965
|
+
};
|
|
966
|
+
/**
|
|
967
|
+
* SSM Reference to the auth token to use for the request
|
|
968
|
+
*/
|
|
969
|
+
auth_token_ref?: string;
|
|
970
|
+
};
|
|
971
|
+
}
|
|
888
972
|
export interface BulkTriggerJob {
|
|
889
973
|
job_id: /**
|
|
890
974
|
* Job ID for tracking the status of bulk trigger automation executions
|
|
@@ -1289,6 +1373,116 @@ declare namespace Components {
|
|
|
1289
1373
|
template_id?: string;
|
|
1290
1374
|
filename?: string;
|
|
1291
1375
|
}
|
|
1376
|
+
export interface CustomAction {
|
|
1377
|
+
id?: /**
|
|
1378
|
+
* example:
|
|
1379
|
+
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1380
|
+
*/
|
|
1381
|
+
AutomationActionId;
|
|
1382
|
+
flow_action_id?: /**
|
|
1383
|
+
* example:
|
|
1384
|
+
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1385
|
+
*/
|
|
1386
|
+
AutomationActionId;
|
|
1387
|
+
name?: string;
|
|
1388
|
+
type?: "custom-action";
|
|
1389
|
+
config?: BasicCustomActionConfig | AdvancedCustomActionConfig;
|
|
1390
|
+
/**
|
|
1391
|
+
* Whether to stop execution in a failed state if this action fails
|
|
1392
|
+
*/
|
|
1393
|
+
allow_failure?: boolean;
|
|
1394
|
+
/**
|
|
1395
|
+
* Flag indicating whether the action was created automatically or manually
|
|
1396
|
+
*/
|
|
1397
|
+
created_automatically?: boolean;
|
|
1398
|
+
/**
|
|
1399
|
+
* Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity
|
|
1400
|
+
*/
|
|
1401
|
+
is_bulk_action?: boolean;
|
|
1402
|
+
reason?: {
|
|
1403
|
+
/**
|
|
1404
|
+
* Why the action has to be skipped/failed
|
|
1405
|
+
* example:
|
|
1406
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
1407
|
+
*/
|
|
1408
|
+
message?: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1411
|
+
*/
|
|
1412
|
+
payload?: {
|
|
1413
|
+
[name: string]: any;
|
|
1414
|
+
};
|
|
1415
|
+
};
|
|
1416
|
+
/**
|
|
1417
|
+
* Condition Id to be checked before executing the action
|
|
1418
|
+
*/
|
|
1419
|
+
condition_id?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* Schedule Id which indicates the schedule of the action
|
|
1422
|
+
*/
|
|
1423
|
+
schedule_id?: string;
|
|
1424
|
+
execution_status?: ExecutionStatus;
|
|
1425
|
+
started_at?: string;
|
|
1426
|
+
updated_at?: string;
|
|
1427
|
+
/**
|
|
1428
|
+
* example:
|
|
1429
|
+
* {}
|
|
1430
|
+
*/
|
|
1431
|
+
outputs?: {
|
|
1432
|
+
[name: string]: any;
|
|
1433
|
+
};
|
|
1434
|
+
error_output?: ErrorOutput;
|
|
1435
|
+
retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
|
|
1436
|
+
}
|
|
1437
|
+
export interface CustomActionConfig {
|
|
1438
|
+
id?: /**
|
|
1439
|
+
* example:
|
|
1440
|
+
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1441
|
+
*/
|
|
1442
|
+
AutomationActionId;
|
|
1443
|
+
flow_action_id?: /**
|
|
1444
|
+
* example:
|
|
1445
|
+
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1446
|
+
*/
|
|
1447
|
+
AutomationActionId;
|
|
1448
|
+
name?: string;
|
|
1449
|
+
type?: "custom-action";
|
|
1450
|
+
config?: BasicCustomActionConfig | AdvancedCustomActionConfig;
|
|
1451
|
+
/**
|
|
1452
|
+
* Whether to stop execution in a failed state if this action fails
|
|
1453
|
+
*/
|
|
1454
|
+
allow_failure?: boolean;
|
|
1455
|
+
/**
|
|
1456
|
+
* Flag indicating whether the action was created automatically or manually
|
|
1457
|
+
*/
|
|
1458
|
+
created_automatically?: boolean;
|
|
1459
|
+
/**
|
|
1460
|
+
* Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity
|
|
1461
|
+
*/
|
|
1462
|
+
is_bulk_action?: boolean;
|
|
1463
|
+
reason?: {
|
|
1464
|
+
/**
|
|
1465
|
+
* Why the action has to be skipped/failed
|
|
1466
|
+
* example:
|
|
1467
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
1468
|
+
*/
|
|
1469
|
+
message?: string;
|
|
1470
|
+
/**
|
|
1471
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1472
|
+
*/
|
|
1473
|
+
payload?: {
|
|
1474
|
+
[name: string]: any;
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
/**
|
|
1478
|
+
* Condition Id to be checked before executing the action
|
|
1479
|
+
*/
|
|
1480
|
+
condition_id?: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* Schedule Id which indicates the schedule of the action
|
|
1483
|
+
*/
|
|
1484
|
+
schedule_id?: string;
|
|
1485
|
+
}
|
|
1292
1486
|
export type DiffAdded = FilterConditionOnEvent;
|
|
1293
1487
|
export type DiffDeleted = FilterConditionOnEvent;
|
|
1294
1488
|
export type DiffUpdated = FilterConditionOnEvent;
|
|
@@ -3408,6 +3602,7 @@ export type ActionSchedule = Components.Schemas.ActionSchedule;
|
|
|
3408
3602
|
export type ActionScheduleSource = Components.Schemas.ActionScheduleSource;
|
|
3409
3603
|
export type ActivityId = Components.Schemas.ActivityId;
|
|
3410
3604
|
export type ActivityTrigger = Components.Schemas.ActivityTrigger;
|
|
3605
|
+
export type AdvancedCustomActionConfig = Components.Schemas.AdvancedCustomActionConfig;
|
|
3411
3606
|
export type AnyAction = Components.Schemas.AnyAction;
|
|
3412
3607
|
export type AnyActionConfig = Components.Schemas.AnyActionConfig;
|
|
3413
3608
|
export type AnyTrigger = Components.Schemas.AnyTrigger;
|
|
@@ -3425,6 +3620,8 @@ export type AutomationExecutionId = Components.Schemas.AutomationExecutionId;
|
|
|
3425
3620
|
export type AutomationFlow = Components.Schemas.AutomationFlow;
|
|
3426
3621
|
export type AutomationFlowId = Components.Schemas.AutomationFlowId;
|
|
3427
3622
|
export type AutomationTrigger = Components.Schemas.AutomationTrigger;
|
|
3623
|
+
export type BaseCustomActionConfig = Components.Schemas.BaseCustomActionConfig;
|
|
3624
|
+
export type BasicCustomActionConfig = Components.Schemas.BasicCustomActionConfig;
|
|
3428
3625
|
export type BulkTriggerJob = Components.Schemas.BulkTriggerJob;
|
|
3429
3626
|
export type BulkTriggerRequest = Components.Schemas.BulkTriggerRequest;
|
|
3430
3627
|
export type CartCheckoutAction = Components.Schemas.CartCheckoutAction;
|
|
@@ -3436,6 +3633,8 @@ export type CopyValueMapper = Components.Schemas.CopyValueMapper;
|
|
|
3436
3633
|
export type CreateDocumentAction = Components.Schemas.CreateDocumentAction;
|
|
3437
3634
|
export type CreateDocumentActionConfig = Components.Schemas.CreateDocumentActionConfig;
|
|
3438
3635
|
export type CreateDocumentConfig = Components.Schemas.CreateDocumentConfig;
|
|
3636
|
+
export type CustomAction = Components.Schemas.CustomAction;
|
|
3637
|
+
export type CustomActionConfig = Components.Schemas.CustomActionConfig;
|
|
3439
3638
|
export type DiffAdded = Components.Schemas.DiffAdded;
|
|
3440
3639
|
export type DiffDeleted = Components.Schemas.DiffDeleted;
|
|
3441
3640
|
export type DiffUpdated = Components.Schemas.DiffUpdated;
|
package/dist/openapi.json
CHANGED
|
@@ -845,6 +845,9 @@
|
|
|
845
845
|
{
|
|
846
846
|
"$ref": "#/components/schemas/CartCheckoutAction"
|
|
847
847
|
},
|
|
848
|
+
{
|
|
849
|
+
"$ref": "#/components/schemas/CustomAction"
|
|
850
|
+
},
|
|
848
851
|
{
|
|
849
852
|
"$ref": "#/components/schemas/AutomationAction"
|
|
850
853
|
}
|
|
@@ -870,6 +873,9 @@
|
|
|
870
873
|
{
|
|
871
874
|
"$ref": "#/components/schemas/CartCheckoutActionConfig"
|
|
872
875
|
},
|
|
876
|
+
{
|
|
877
|
+
"$ref": "#/components/schemas/CustomActionConfig"
|
|
878
|
+
},
|
|
873
879
|
{
|
|
874
880
|
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
875
881
|
}
|
|
@@ -1999,6 +2005,162 @@
|
|
|
1999
2005
|
}
|
|
2000
2006
|
]
|
|
2001
2007
|
},
|
|
2008
|
+
"BaseCustomActionConfig": {
|
|
2009
|
+
"type": "object",
|
|
2010
|
+
"properties": {
|
|
2011
|
+
"name": {
|
|
2012
|
+
"type": "string",
|
|
2013
|
+
"description": "Name of the custom action"
|
|
2014
|
+
},
|
|
2015
|
+
"description": {
|
|
2016
|
+
"type": "string",
|
|
2017
|
+
"description": "Description of the custom action"
|
|
2018
|
+
},
|
|
2019
|
+
"app_id": {
|
|
2020
|
+
"type": "string",
|
|
2021
|
+
"description": "The ID of the app to fetch configuration from the app API",
|
|
2022
|
+
"example": "c451c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2023
|
+
},
|
|
2024
|
+
"component_id": {
|
|
2025
|
+
"type": "string",
|
|
2026
|
+
"description": "The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component",
|
|
2027
|
+
"example": "2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
},
|
|
2031
|
+
"BasicCustomActionConfig": {
|
|
2032
|
+
"allOf": [
|
|
2033
|
+
{
|
|
2034
|
+
"$ref": "#/components/schemas/BaseCustomActionConfig"
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
"type": "object",
|
|
2038
|
+
"properties": {
|
|
2039
|
+
"type": {
|
|
2040
|
+
"type": "string",
|
|
2041
|
+
"enum": [
|
|
2042
|
+
"basic"
|
|
2043
|
+
]
|
|
2044
|
+
},
|
|
2045
|
+
"basic_settings": {
|
|
2046
|
+
"type": "object",
|
|
2047
|
+
"properties": {
|
|
2048
|
+
"url": {
|
|
2049
|
+
"type": "string",
|
|
2050
|
+
"description": "URL to call"
|
|
2051
|
+
},
|
|
2052
|
+
"headers": {
|
|
2053
|
+
"type": "object",
|
|
2054
|
+
"additionalProperties": true
|
|
2055
|
+
},
|
|
2056
|
+
"auth_token_ref": {
|
|
2057
|
+
"type": "string",
|
|
2058
|
+
"description": "SSM Reference to the auth token to use for the request"
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
},
|
|
2063
|
+
"required": [
|
|
2064
|
+
"type"
|
|
2065
|
+
]
|
|
2066
|
+
}
|
|
2067
|
+
]
|
|
2068
|
+
},
|
|
2069
|
+
"AdvancedCustomActionConfig": {
|
|
2070
|
+
"allOf": [
|
|
2071
|
+
{
|
|
2072
|
+
"$ref": "#/components/schemas/BaseCustomActionConfig"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"type": "object",
|
|
2076
|
+
"properties": {
|
|
2077
|
+
"type": {
|
|
2078
|
+
"type": "string",
|
|
2079
|
+
"enum": [
|
|
2080
|
+
"advanced"
|
|
2081
|
+
]
|
|
2082
|
+
},
|
|
2083
|
+
"advanced_settings": {
|
|
2084
|
+
"type": "object",
|
|
2085
|
+
"additionalProperties": true
|
|
2086
|
+
}
|
|
2087
|
+
},
|
|
2088
|
+
"required": [
|
|
2089
|
+
"type"
|
|
2090
|
+
]
|
|
2091
|
+
}
|
|
2092
|
+
]
|
|
2093
|
+
},
|
|
2094
|
+
"CustomActionConfig": {
|
|
2095
|
+
"allOf": [
|
|
2096
|
+
{
|
|
2097
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
"type": "object",
|
|
2101
|
+
"properties": {
|
|
2102
|
+
"type": {
|
|
2103
|
+
"type": "string",
|
|
2104
|
+
"enum": [
|
|
2105
|
+
"custom-action"
|
|
2106
|
+
]
|
|
2107
|
+
},
|
|
2108
|
+
"config": {
|
|
2109
|
+
"oneOf": [
|
|
2110
|
+
{
|
|
2111
|
+
"$ref": "#/components/schemas/BasicCustomActionConfig"
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
"$ref": "#/components/schemas/AdvancedCustomActionConfig"
|
|
2115
|
+
}
|
|
2116
|
+
],
|
|
2117
|
+
"discriminator": {
|
|
2118
|
+
"propertyName": "type",
|
|
2119
|
+
"mapping": {
|
|
2120
|
+
"basic": "#/components/schemas/BasicCustomActionConfig",
|
|
2121
|
+
"advanced": "#/components/schemas/AdvancedCustomActionConfig"
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
]
|
|
2128
|
+
},
|
|
2129
|
+
"CustomAction": {
|
|
2130
|
+
"allOf": [
|
|
2131
|
+
{
|
|
2132
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"type": "object",
|
|
2136
|
+
"properties": {
|
|
2137
|
+
"type": {
|
|
2138
|
+
"type": "string",
|
|
2139
|
+
"enum": [
|
|
2140
|
+
"custom-action"
|
|
2141
|
+
]
|
|
2142
|
+
},
|
|
2143
|
+
"config": {
|
|
2144
|
+
"oneOf": [
|
|
2145
|
+
{
|
|
2146
|
+
"$ref": "#/components/schemas/BasicCustomActionConfig"
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
"$ref": "#/components/schemas/AdvancedCustomActionConfig"
|
|
2150
|
+
}
|
|
2151
|
+
],
|
|
2152
|
+
"discriminator": {
|
|
2153
|
+
"propertyName": "type",
|
|
2154
|
+
"mapping": {
|
|
2155
|
+
"basic": "#/components/schemas/BasicCustomActionConfig",
|
|
2156
|
+
"advanced": "#/components/schemas/AdvancedCustomActionConfig"
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
]
|
|
2163
|
+
},
|
|
2002
2164
|
"TriggerWebhookActionConfig": {
|
|
2003
2165
|
"allOf": [
|
|
2004
2166
|
{
|
|
@@ -3458,10 +3620,5 @@
|
|
|
3458
3620
|
}
|
|
3459
3621
|
}
|
|
3460
3622
|
}
|
|
3461
|
-
}
|
|
3462
|
-
"servers": [
|
|
3463
|
-
{
|
|
3464
|
-
"url": "https://automation.sls.epilot.io"
|
|
3465
|
-
}
|
|
3466
|
-
]
|
|
3623
|
+
}
|
|
3467
3624
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/automation-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.1",
|
|
4
4
|
"description": "Client library for epilot automation API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test": "jest",
|
|
25
25
|
"typescript": "tsc",
|
|
26
26
|
"bundle-definition": "webpack",
|
|
27
|
-
"openapi": "node ../../scripts/update-openapi.js
|
|
27
|
+
"openapi": "node ../../scripts/update-openapi.js ../../../backend/automation-api/lambda/ApiHandlerFunction/openapi.yml",
|
|
28
28
|
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
29
29
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
30
30
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|