@epilot/automation-client 2.27.0-rc.1 → 2.27.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.d.ts +30 -2
- package/dist/openapi.json +72 -1
- package/package.json +2 -2
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
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})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -493,7 +493,7 @@ declare namespace Components {
|
|
|
493
493
|
* ```
|
|
494
494
|
*
|
|
495
495
|
*/
|
|
496
|
-
EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger | FlowsTrigger;
|
|
496
|
+
EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger | NewEmailThreadTrigger | FlowsTrigger;
|
|
497
497
|
export interface AnythingButCondition {
|
|
498
498
|
"anything-but"?: string[];
|
|
499
499
|
}
|
|
@@ -820,7 +820,7 @@ declare namespace Components {
|
|
|
820
820
|
* 2
|
|
821
821
|
*/
|
|
822
822
|
version?: number;
|
|
823
|
-
trigger_event?: TriggerEventManual | TriggerEventEntityActivity | TriggerEventEntityOperation | TriggerEventFlowAutomationTask;
|
|
823
|
+
trigger_event?: TriggerEventManual | TriggerEventEntityActivity | TriggerEventEntityOperation | TriggerEventFlowAutomationTask | TriggerEventMessaging;
|
|
824
824
|
workflow_context?: WorkflowExecutionContext;
|
|
825
825
|
}
|
|
826
826
|
/**
|
|
@@ -2799,6 +2799,17 @@ declare namespace Components {
|
|
|
2799
2799
|
*/
|
|
2800
2800
|
target_inbox_id?: string;
|
|
2801
2801
|
}
|
|
2802
|
+
export interface NewEmailThreadTrigger {
|
|
2803
|
+
/**
|
|
2804
|
+
* example:
|
|
2805
|
+
* 12d4f45a-1883-4841-a94c-5928cb338a94
|
|
2806
|
+
*/
|
|
2807
|
+
id?: string; // uuid
|
|
2808
|
+
type: "new_email_thread";
|
|
2809
|
+
configuration: {
|
|
2810
|
+
direction?: "INBOUND" | "OUTBOUND" | "BOTH";
|
|
2811
|
+
};
|
|
2812
|
+
}
|
|
2802
2813
|
export interface NumericCondition {
|
|
2803
2814
|
numeric?: (string | number)[];
|
|
2804
2815
|
}
|
|
@@ -3411,6 +3422,21 @@ declare namespace Components {
|
|
|
3411
3422
|
EntityId;
|
|
3412
3423
|
caller?: ApiCallerContext;
|
|
3413
3424
|
}
|
|
3425
|
+
export interface TriggerEventMessaging {
|
|
3426
|
+
type?: "new_email_thread";
|
|
3427
|
+
/**
|
|
3428
|
+
* example:
|
|
3429
|
+
* 123
|
|
3430
|
+
*/
|
|
3431
|
+
org_id: string;
|
|
3432
|
+
thread_id: string;
|
|
3433
|
+
message_id: string;
|
|
3434
|
+
entity_id: /**
|
|
3435
|
+
* example:
|
|
3436
|
+
* e3d3ebac-baab-4395-abf4-50b5bf1f8b74
|
|
3437
|
+
*/
|
|
3438
|
+
EntityId;
|
|
3439
|
+
}
|
|
3414
3440
|
export interface TriggerShareEntityAction {
|
|
3415
3441
|
id?: /**
|
|
3416
3442
|
* example:
|
|
@@ -4764,6 +4790,7 @@ export type MappingAttributeV2 = Components.Schemas.MappingAttributeV2;
|
|
|
4764
4790
|
export type MappingConfigRef = Components.Schemas.MappingConfigRef;
|
|
4765
4791
|
export type MoveThreadAction = Components.Schemas.MoveThreadAction;
|
|
4766
4792
|
export type MoveThreadConfig = Components.Schemas.MoveThreadConfig;
|
|
4793
|
+
export type NewEmailThreadTrigger = Components.Schemas.NewEmailThreadTrigger;
|
|
4767
4794
|
export type NumericCondition = Components.Schemas.NumericCondition;
|
|
4768
4795
|
export type OperationNode = Components.Schemas.OperationNode;
|
|
4769
4796
|
export type OperationObjectNode = Components.Schemas.OperationObjectNode;
|
|
@@ -4797,6 +4824,7 @@ export type TriggerEventEntityActivity = Components.Schemas.TriggerEventEntityAc
|
|
|
4797
4824
|
export type TriggerEventEntityOperation = Components.Schemas.TriggerEventEntityOperation;
|
|
4798
4825
|
export type TriggerEventFlowAutomationTask = Components.Schemas.TriggerEventFlowAutomationTask;
|
|
4799
4826
|
export type TriggerEventManual = Components.Schemas.TriggerEventManual;
|
|
4827
|
+
export type TriggerEventMessaging = Components.Schemas.TriggerEventMessaging;
|
|
4800
4828
|
export type TriggerShareEntityAction = Components.Schemas.TriggerShareEntityAction;
|
|
4801
4829
|
export type TriggerShareEntityActionConfig = Components.Schemas.TriggerShareEntityActionConfig;
|
|
4802
4830
|
export type TriggerShareEntityConfig = Components.Schemas.TriggerShareEntityConfig;
|
package/dist/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Automation API",
|
|
5
5
|
"description": "API Backend for epilot Automation Workflows feature",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.2.0"
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
9
9
|
{
|
|
@@ -1214,6 +1214,9 @@
|
|
|
1214
1214
|
{
|
|
1215
1215
|
"$ref": "#/components/schemas/ReceivedEmailTrigger"
|
|
1216
1216
|
},
|
|
1217
|
+
{
|
|
1218
|
+
"$ref": "#/components/schemas/NewEmailThreadTrigger"
|
|
1219
|
+
},
|
|
1217
1220
|
{
|
|
1218
1221
|
"$ref": "#/components/schemas/FlowsTrigger"
|
|
1219
1222
|
}
|
|
@@ -3172,6 +3175,9 @@
|
|
|
3172
3175
|
},
|
|
3173
3176
|
{
|
|
3174
3177
|
"$ref": "#/components/schemas/TriggerEventFlowAutomationTask"
|
|
3178
|
+
},
|
|
3179
|
+
{
|
|
3180
|
+
"$ref": "#/components/schemas/TriggerEventMessaging"
|
|
3175
3181
|
}
|
|
3176
3182
|
]
|
|
3177
3183
|
},
|
|
@@ -3317,6 +3323,36 @@
|
|
|
3317
3323
|
"activity_type"
|
|
3318
3324
|
]
|
|
3319
3325
|
},
|
|
3326
|
+
"TriggerEventMessaging": {
|
|
3327
|
+
"type": "object",
|
|
3328
|
+
"properties": {
|
|
3329
|
+
"type": {
|
|
3330
|
+
"type": "string",
|
|
3331
|
+
"enum": [
|
|
3332
|
+
"new_email_thread"
|
|
3333
|
+
]
|
|
3334
|
+
},
|
|
3335
|
+
"org_id": {
|
|
3336
|
+
"type": "string",
|
|
3337
|
+
"example": "123"
|
|
3338
|
+
},
|
|
3339
|
+
"thread_id": {
|
|
3340
|
+
"type": "string"
|
|
3341
|
+
},
|
|
3342
|
+
"message_id": {
|
|
3343
|
+
"type": "string"
|
|
3344
|
+
},
|
|
3345
|
+
"entity_id": {
|
|
3346
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
"required": [
|
|
3350
|
+
"org_id",
|
|
3351
|
+
"thread_id",
|
|
3352
|
+
"message_id",
|
|
3353
|
+
"entity_id"
|
|
3354
|
+
]
|
|
3355
|
+
},
|
|
3320
3356
|
"TriggerEventEntityOperation": {
|
|
3321
3357
|
"type": "object",
|
|
3322
3358
|
"properties": {
|
|
@@ -3918,6 +3954,41 @@
|
|
|
3918
3954
|
}
|
|
3919
3955
|
]
|
|
3920
3956
|
},
|
|
3957
|
+
"NewEmailThreadTrigger": {
|
|
3958
|
+
"allOf": [
|
|
3959
|
+
{
|
|
3960
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
3961
|
+
},
|
|
3962
|
+
{
|
|
3963
|
+
"type": "object",
|
|
3964
|
+
"properties": {
|
|
3965
|
+
"type": {
|
|
3966
|
+
"type": "string",
|
|
3967
|
+
"enum": [
|
|
3968
|
+
"new_email_thread"
|
|
3969
|
+
]
|
|
3970
|
+
},
|
|
3971
|
+
"configuration": {
|
|
3972
|
+
"type": "object",
|
|
3973
|
+
"properties": {
|
|
3974
|
+
"direction": {
|
|
3975
|
+
"type": "string",
|
|
3976
|
+
"enum": [
|
|
3977
|
+
"INBOUND",
|
|
3978
|
+
"OUTBOUND",
|
|
3979
|
+
"BOTH"
|
|
3980
|
+
]
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3984
|
+
},
|
|
3985
|
+
"required": [
|
|
3986
|
+
"type",
|
|
3987
|
+
"configuration"
|
|
3988
|
+
]
|
|
3989
|
+
}
|
|
3990
|
+
]
|
|
3991
|
+
},
|
|
3921
3992
|
"ReceivedEmailTrigger": {
|
|
3922
3993
|
"allOf": [
|
|
3923
3994
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/automation-client",
|
|
3
|
-
"version": "2.27.0
|
|
3
|
+
"version": "2.27.0",
|
|
4
4
|
"description": "Client library for epilot automation API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -76,4 +76,4 @@
|
|
|
76
76
|
"whatwg-url": "^11.0.0"
|
|
77
77
|
},
|
|
78
78
|
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
79
|
-
}
|
|
79
|
+
}
|