@epilot/automation-client 2.16.2 → 2.16.4
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 +29 -152
- package/dist/openapi.json +20 -175
- package/package.json +1 -1
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,32 +126,6 @@ declare namespace Components {
|
|
|
126
126
|
types?: (("CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" | "PortalUserResetPassword" | "PortalUserResetForgotPassword" | "SelfAssignmentFromPortal") | string)[];
|
|
127
127
|
};
|
|
128
128
|
}
|
|
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
129
|
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction | CreateDocumentAction | SendEmailAction | /* Creates an order entity with prices from journey */ CartCheckoutAction | CustomAction | AutomationAction;
|
|
156
130
|
export type AnyActionConfig = /**
|
|
157
131
|
* example:
|
|
@@ -352,7 +326,7 @@ declare namespace Components {
|
|
|
352
326
|
* }
|
|
353
327
|
* }
|
|
354
328
|
*/
|
|
355
|
-
SendEmailActionConfig | /* Creates an order entity with prices from journey */ CartCheckoutActionConfig |
|
|
329
|
+
SendEmailActionConfig | /* Creates an order entity with prices from journey */ CartCheckoutActionConfig | CustomAction | AutomationActionConfig;
|
|
356
330
|
export type AnyTrigger = FrontendSubmitTrigger | JourneySubmitTrigger | ApiSubmissionTrigger | /**
|
|
357
331
|
* - If provides filter_config, executes an automation based on the filtered configuration when an entity event occurs.
|
|
358
332
|
* - The conditions on a filter follows the event bridge patterns - `https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html`
|
|
@@ -469,7 +443,7 @@ declare namespace Components {
|
|
|
469
443
|
* ```
|
|
470
444
|
*
|
|
471
445
|
*/
|
|
472
|
-
EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger
|
|
446
|
+
EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger;
|
|
473
447
|
export interface AnythingButCondition {
|
|
474
448
|
"anything-but"?: string[];
|
|
475
449
|
}
|
|
@@ -911,64 +885,6 @@ declare namespace Components {
|
|
|
911
885
|
*/
|
|
912
886
|
id?: string; // uuid
|
|
913
887
|
}
|
|
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
|
-
}
|
|
972
888
|
export interface BulkTriggerJob {
|
|
973
889
|
job_id: /**
|
|
974
890
|
* Job ID for tracking the status of bulk trigger automation executions
|
|
@@ -1386,7 +1302,33 @@ declare namespace Components {
|
|
|
1386
1302
|
AutomationActionId;
|
|
1387
1303
|
name?: string;
|
|
1388
1304
|
type?: "custom-action";
|
|
1389
|
-
config?:
|
|
1305
|
+
config?: {
|
|
1306
|
+
[name: string]: any;
|
|
1307
|
+
/**
|
|
1308
|
+
* The name of the custom action
|
|
1309
|
+
* example:
|
|
1310
|
+
* Credit Check
|
|
1311
|
+
*/
|
|
1312
|
+
name?: string;
|
|
1313
|
+
/**
|
|
1314
|
+
* The description of the custom action
|
|
1315
|
+
* example:
|
|
1316
|
+
* Check if the customer has a credit limit
|
|
1317
|
+
*/
|
|
1318
|
+
description?: string;
|
|
1319
|
+
/**
|
|
1320
|
+
* The ID of the app to fetch configuration from the app API
|
|
1321
|
+
* example:
|
|
1322
|
+
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
1323
|
+
*/
|
|
1324
|
+
app_id?: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* 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
|
|
1327
|
+
* example:
|
|
1328
|
+
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
1329
|
+
*/
|
|
1330
|
+
component_id?: string;
|
|
1331
|
+
};
|
|
1390
1332
|
/**
|
|
1391
1333
|
* Whether to stop execution in a failed state if this action fails
|
|
1392
1334
|
*/
|
|
@@ -1434,55 +1376,6 @@ declare namespace Components {
|
|
|
1434
1376
|
error_output?: ErrorOutput;
|
|
1435
1377
|
retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
|
|
1436
1378
|
}
|
|
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
|
-
}
|
|
1486
1379
|
export type DiffAdded = FilterConditionOnEvent;
|
|
1487
1380
|
export type DiffDeleted = FilterConditionOnEvent;
|
|
1488
1381
|
export type DiffUpdated = FilterConditionOnEvent;
|
|
@@ -1792,17 +1685,6 @@ declare namespace Components {
|
|
|
1792
1685
|
export type FilterConditionOnEvent = OrCondition | {
|
|
1793
1686
|
[name: string]: (string | EqualsIgnoreCaseCondition | AnythingButCondition | NumericCondition | ExistsCondition | PrefixCondition | SuffixCondition | WildcardCondition)[];
|
|
1794
1687
|
};
|
|
1795
|
-
export interface FlowsTrigger {
|
|
1796
|
-
/**
|
|
1797
|
-
* example:
|
|
1798
|
-
* 12d4f45a-1883-4841-a94c-5928cb338a94
|
|
1799
|
-
*/
|
|
1800
|
-
id?: string; // uuid
|
|
1801
|
-
type: "flows_trigger";
|
|
1802
|
-
configuration: {
|
|
1803
|
-
source_id: string; // uuid
|
|
1804
|
-
};
|
|
1805
|
-
}
|
|
1806
1688
|
export interface FrontendSubmitTrigger {
|
|
1807
1689
|
/**
|
|
1808
1690
|
* example:
|
|
@@ -3613,7 +3495,6 @@ export type ActionSchedule = Components.Schemas.ActionSchedule;
|
|
|
3613
3495
|
export type ActionScheduleSource = Components.Schemas.ActionScheduleSource;
|
|
3614
3496
|
export type ActivityId = Components.Schemas.ActivityId;
|
|
3615
3497
|
export type ActivityTrigger = Components.Schemas.ActivityTrigger;
|
|
3616
|
-
export type AdvancedCustomActionConfig = Components.Schemas.AdvancedCustomActionConfig;
|
|
3617
3498
|
export type AnyAction = Components.Schemas.AnyAction;
|
|
3618
3499
|
export type AnyActionConfig = Components.Schemas.AnyActionConfig;
|
|
3619
3500
|
export type AnyTrigger = Components.Schemas.AnyTrigger;
|
|
@@ -3631,8 +3512,6 @@ export type AutomationExecutionId = Components.Schemas.AutomationExecutionId;
|
|
|
3631
3512
|
export type AutomationFlow = Components.Schemas.AutomationFlow;
|
|
3632
3513
|
export type AutomationFlowId = Components.Schemas.AutomationFlowId;
|
|
3633
3514
|
export type AutomationTrigger = Components.Schemas.AutomationTrigger;
|
|
3634
|
-
export type BaseCustomActionConfig = Components.Schemas.BaseCustomActionConfig;
|
|
3635
|
-
export type BasicCustomActionConfig = Components.Schemas.BasicCustomActionConfig;
|
|
3636
3515
|
export type BulkTriggerJob = Components.Schemas.BulkTriggerJob;
|
|
3637
3516
|
export type BulkTriggerRequest = Components.Schemas.BulkTriggerRequest;
|
|
3638
3517
|
export type CartCheckoutAction = Components.Schemas.CartCheckoutAction;
|
|
@@ -3645,7 +3524,6 @@ export type CreateDocumentAction = Components.Schemas.CreateDocumentAction;
|
|
|
3645
3524
|
export type CreateDocumentActionConfig = Components.Schemas.CreateDocumentActionConfig;
|
|
3646
3525
|
export type CreateDocumentConfig = Components.Schemas.CreateDocumentConfig;
|
|
3647
3526
|
export type CustomAction = Components.Schemas.CustomAction;
|
|
3648
|
-
export type CustomActionConfig = Components.Schemas.CustomActionConfig;
|
|
3649
3527
|
export type DiffAdded = Components.Schemas.DiffAdded;
|
|
3650
3528
|
export type DiffDeleted = Components.Schemas.DiffDeleted;
|
|
3651
3529
|
export type DiffUpdated = Components.Schemas.DiffUpdated;
|
|
@@ -3664,7 +3542,6 @@ export type ExecItem = Components.Schemas.ExecItem;
|
|
|
3664
3542
|
export type ExecutionStatus = Components.Schemas.ExecutionStatus;
|
|
3665
3543
|
export type ExistsCondition = Components.Schemas.ExistsCondition;
|
|
3666
3544
|
export type FilterConditionOnEvent = Components.Schemas.FilterConditionOnEvent;
|
|
3667
|
-
export type FlowsTrigger = Components.Schemas.FlowsTrigger;
|
|
3668
3545
|
export type FrontendSubmitTrigger = Components.Schemas.FrontendSubmitTrigger;
|
|
3669
3546
|
export type GetExecutionsResp = Components.Schemas.GetExecutionsResp;
|
|
3670
3547
|
export type JobId = Components.Schemas.JobId;
|
package/dist/openapi.json
CHANGED
|
@@ -822,9 +822,6 @@
|
|
|
822
822
|
},
|
|
823
823
|
{
|
|
824
824
|
"$ref": "#/components/schemas/ReceivedEmailTrigger"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"$ref": "#/components/schemas/FlowsTrigger"
|
|
828
825
|
}
|
|
829
826
|
]
|
|
830
827
|
},
|
|
@@ -877,7 +874,7 @@
|
|
|
877
874
|
"$ref": "#/components/schemas/CartCheckoutActionConfig"
|
|
878
875
|
},
|
|
879
876
|
{
|
|
880
|
-
"$ref": "#/components/schemas/
|
|
877
|
+
"$ref": "#/components/schemas/CustomAction"
|
|
881
878
|
},
|
|
882
879
|
{
|
|
883
880
|
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
@@ -2008,33 +2005,10 @@
|
|
|
2008
2005
|
}
|
|
2009
2006
|
]
|
|
2010
2007
|
},
|
|
2011
|
-
"
|
|
2012
|
-
"type": "object",
|
|
2013
|
-
"properties": {
|
|
2014
|
-
"name": {
|
|
2015
|
-
"type": "string",
|
|
2016
|
-
"description": "Name of the custom action"
|
|
2017
|
-
},
|
|
2018
|
-
"description": {
|
|
2019
|
-
"type": "string",
|
|
2020
|
-
"description": "Description of the custom action"
|
|
2021
|
-
},
|
|
2022
|
-
"app_id": {
|
|
2023
|
-
"type": "string",
|
|
2024
|
-
"description": "The ID of the app to fetch configuration from the app API",
|
|
2025
|
-
"example": "c451c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2026
|
-
},
|
|
2027
|
-
"component_id": {
|
|
2028
|
-
"type": "string",
|
|
2029
|
-
"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",
|
|
2030
|
-
"example": "2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2031
|
-
}
|
|
2032
|
-
}
|
|
2033
|
-
},
|
|
2034
|
-
"BasicCustomActionConfig": {
|
|
2008
|
+
"CustomAction": {
|
|
2035
2009
|
"allOf": [
|
|
2036
2010
|
{
|
|
2037
|
-
"$ref": "#/components/schemas/
|
|
2011
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2038
2012
|
},
|
|
2039
2013
|
{
|
|
2040
2014
|
"type": "object",
|
|
@@ -2042,121 +2016,31 @@
|
|
|
2042
2016
|
"type": {
|
|
2043
2017
|
"type": "string",
|
|
2044
2018
|
"enum": [
|
|
2045
|
-
"
|
|
2019
|
+
"custom-action"
|
|
2046
2020
|
]
|
|
2047
2021
|
},
|
|
2048
|
-
"
|
|
2022
|
+
"config": {
|
|
2049
2023
|
"type": "object",
|
|
2050
2024
|
"properties": {
|
|
2051
|
-
"
|
|
2025
|
+
"name": {
|
|
2052
2026
|
"type": "string",
|
|
2053
|
-
"description": "
|
|
2054
|
-
|
|
2055
|
-
"headers": {
|
|
2056
|
-
"type": "object",
|
|
2057
|
-
"additionalProperties": true
|
|
2027
|
+
"description": "The name of the custom action",
|
|
2028
|
+
"example": "Credit Check"
|
|
2058
2029
|
},
|
|
2059
|
-
"
|
|
2030
|
+
"description": {
|
|
2060
2031
|
"type": "string",
|
|
2061
|
-
"description": "
|
|
2062
|
-
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
},
|
|
2066
|
-
"required": [
|
|
2067
|
-
"type"
|
|
2068
|
-
]
|
|
2069
|
-
}
|
|
2070
|
-
]
|
|
2071
|
-
},
|
|
2072
|
-
"AdvancedCustomActionConfig": {
|
|
2073
|
-
"allOf": [
|
|
2074
|
-
{
|
|
2075
|
-
"$ref": "#/components/schemas/BaseCustomActionConfig"
|
|
2076
|
-
},
|
|
2077
|
-
{
|
|
2078
|
-
"type": "object",
|
|
2079
|
-
"properties": {
|
|
2080
|
-
"type": {
|
|
2081
|
-
"type": "string",
|
|
2082
|
-
"enum": [
|
|
2083
|
-
"advanced"
|
|
2084
|
-
]
|
|
2085
|
-
},
|
|
2086
|
-
"advanced_settings": {
|
|
2087
|
-
"type": "object",
|
|
2088
|
-
"additionalProperties": true
|
|
2089
|
-
}
|
|
2090
|
-
},
|
|
2091
|
-
"required": [
|
|
2092
|
-
"type"
|
|
2093
|
-
]
|
|
2094
|
-
}
|
|
2095
|
-
]
|
|
2096
|
-
},
|
|
2097
|
-
"CustomActionConfig": {
|
|
2098
|
-
"allOf": [
|
|
2099
|
-
{
|
|
2100
|
-
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2101
|
-
},
|
|
2102
|
-
{
|
|
2103
|
-
"type": "object",
|
|
2104
|
-
"properties": {
|
|
2105
|
-
"type": {
|
|
2106
|
-
"type": "string",
|
|
2107
|
-
"enum": [
|
|
2108
|
-
"custom-action"
|
|
2109
|
-
]
|
|
2110
|
-
},
|
|
2111
|
-
"config": {
|
|
2112
|
-
"oneOf": [
|
|
2113
|
-
{
|
|
2114
|
-
"$ref": "#/components/schemas/BasicCustomActionConfig"
|
|
2032
|
+
"description": "The description of the custom action",
|
|
2033
|
+
"example": "Check if the customer has a credit limit"
|
|
2115
2034
|
},
|
|
2116
|
-
{
|
|
2117
|
-
"
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
"discriminator": {
|
|
2121
|
-
"propertyName": "type",
|
|
2122
|
-
"mapping": {
|
|
2123
|
-
"basic": "#/components/schemas/BasicCustomActionConfig",
|
|
2124
|
-
"advanced": "#/components/schemas/AdvancedCustomActionConfig"
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
]
|
|
2131
|
-
},
|
|
2132
|
-
"CustomAction": {
|
|
2133
|
-
"allOf": [
|
|
2134
|
-
{
|
|
2135
|
-
"$ref": "#/components/schemas/AutomationAction"
|
|
2136
|
-
},
|
|
2137
|
-
{
|
|
2138
|
-
"type": "object",
|
|
2139
|
-
"properties": {
|
|
2140
|
-
"type": {
|
|
2141
|
-
"type": "string",
|
|
2142
|
-
"enum": [
|
|
2143
|
-
"custom-action"
|
|
2144
|
-
]
|
|
2145
|
-
},
|
|
2146
|
-
"config": {
|
|
2147
|
-
"oneOf": [
|
|
2148
|
-
{
|
|
2149
|
-
"$ref": "#/components/schemas/BasicCustomActionConfig"
|
|
2035
|
+
"app_id": {
|
|
2036
|
+
"type": "string",
|
|
2037
|
+
"description": "The ID of the app to fetch configuration from the app API",
|
|
2038
|
+
"example": "c451c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2150
2039
|
},
|
|
2151
|
-
{
|
|
2152
|
-
"
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
"discriminator": {
|
|
2156
|
-
"propertyName": "type",
|
|
2157
|
-
"mapping": {
|
|
2158
|
-
"basic": "#/components/schemas/BasicCustomActionConfig",
|
|
2159
|
-
"advanced": "#/components/schemas/AdvancedCustomActionConfig"
|
|
2040
|
+
"component_id": {
|
|
2041
|
+
"type": "string",
|
|
2042
|
+
"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",
|
|
2043
|
+
"example": "2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2160
2044
|
}
|
|
2161
2045
|
}
|
|
2162
2046
|
}
|
|
@@ -2904,40 +2788,6 @@
|
|
|
2904
2788
|
}
|
|
2905
2789
|
}
|
|
2906
2790
|
},
|
|
2907
|
-
"FlowsTrigger": {
|
|
2908
|
-
"allOf": [
|
|
2909
|
-
{
|
|
2910
|
-
"$ref": "#/components/schemas/AutomationTrigger"
|
|
2911
|
-
},
|
|
2912
|
-
{
|
|
2913
|
-
"type": "object",
|
|
2914
|
-
"properties": {
|
|
2915
|
-
"type": {
|
|
2916
|
-
"type": "string",
|
|
2917
|
-
"enum": [
|
|
2918
|
-
"flows_trigger"
|
|
2919
|
-
]
|
|
2920
|
-
},
|
|
2921
|
-
"configuration": {
|
|
2922
|
-
"type": "object",
|
|
2923
|
-
"properties": {
|
|
2924
|
-
"source_id": {
|
|
2925
|
-
"type": "string",
|
|
2926
|
-
"format": "uuid"
|
|
2927
|
-
}
|
|
2928
|
-
},
|
|
2929
|
-
"required": [
|
|
2930
|
-
"source_id"
|
|
2931
|
-
]
|
|
2932
|
-
}
|
|
2933
|
-
},
|
|
2934
|
-
"required": [
|
|
2935
|
-
"type",
|
|
2936
|
-
"configuration"
|
|
2937
|
-
]
|
|
2938
|
-
}
|
|
2939
|
-
]
|
|
2940
|
-
},
|
|
2941
2791
|
"JourneySubmitTrigger": {
|
|
2942
2792
|
"allOf": [
|
|
2943
2793
|
{
|
|
@@ -3657,10 +3507,5 @@
|
|
|
3657
3507
|
}
|
|
3658
3508
|
}
|
|
3659
3509
|
}
|
|
3660
|
-
}
|
|
3661
|
-
"servers": [
|
|
3662
|
-
{
|
|
3663
|
-
"url": "https://automation.sls.epilot.io"
|
|
3664
|
-
}
|
|
3665
|
-
]
|
|
3510
|
+
}
|
|
3666
3511
|
}
|