@epilot/automation-client 0.2.0 → 0.2.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.
@@ -0,0 +1,814 @@
1
+ /* eslint-disable */
2
+ import {
3
+ OpenAPIClient,
4
+ Parameters,
5
+ UnknownParamsObject,
6
+ OperationResponse,
7
+ AxiosRequestConfig,
8
+ } from 'openapi-client-axios';
9
+
10
+ declare namespace Components {
11
+ namespace Schemas {
12
+ export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction | CreateDocumentAction | SendEmailAction | AutomationAction;
13
+ /**
14
+ * example:
15
+ * [
16
+ * {
17
+ * "step_name": "Lead Sales",
18
+ * "user_ids": [
19
+ * 10010729
20
+ * ]
21
+ * },
22
+ * {
23
+ * "step_name": "Operations",
24
+ * "user_ids": [
25
+ * 10010728,
26
+ * 10010729
27
+ * ]
28
+ * }
29
+ * ]
30
+ */
31
+ export interface AssignUsersToStep {
32
+ step_name?: string;
33
+ user_ids?: number[];
34
+ }
35
+ export interface AutomationAction {
36
+ id?: AutomationActionId;
37
+ name?: string;
38
+ type?: string;
39
+ config?: {
40
+ [name: string]: any;
41
+ };
42
+ execution_status?: ExecutionStatus;
43
+ started_at?: string;
44
+ updated_at?: string;
45
+ /**
46
+ * Flag indicating whether the action was created automatically or manually
47
+ */
48
+ created_automatically?: boolean;
49
+ outputs?: {
50
+ [name: string]: any;
51
+ };
52
+ error_output?: ErrorOutput;
53
+ }
54
+ /**
55
+ * example:
56
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
57
+ */
58
+ export type AutomationActionId = string;
59
+ export interface AutomationExecution {
60
+ id: AutomationExecutionId;
61
+ /**
62
+ * example:
63
+ * success
64
+ */
65
+ execution_status?: ExecutionStatus;
66
+ entity_id: EntityId;
67
+ org_id: OrganizationId;
68
+ flow_id: AutomationFlowId;
69
+ /**
70
+ * example:
71
+ * Handle contact form
72
+ */
73
+ flow_name?: string;
74
+ created_at?: string; // date-time
75
+ updated_at?: string; // date-time
76
+ current_action_id?: AutomationActionId;
77
+ actions: AnyAction[];
78
+ }
79
+ /**
80
+ * example:
81
+ * 9baf184f-bc81-4128-bca3-d974c90a12c4
82
+ */
83
+ export type AutomationExecutionId = string;
84
+ export interface AutomationFlow {
85
+ id?: AutomationFlowId;
86
+ /**
87
+ * example:
88
+ * Handle contact form
89
+ */
90
+ flow_name?: string;
91
+ /**
92
+ * Number of automation executions that ran
93
+ * example:
94
+ * 7
95
+ */
96
+ runs?: number;
97
+ triggers?: (FrontendSubmitTrigger | JourneySubmitTrigger | EntityOperationTrigger)[];
98
+ trigger_conditions?: TriggerCondition[];
99
+ /**
100
+ * The entity schema
101
+ * example:
102
+ * submission
103
+ */
104
+ entity_schema?: string;
105
+ actions?: AnyAction[];
106
+ created_at?: string; // date-time
107
+ updated_at?: string; // date-time
108
+ }
109
+ /**
110
+ * example:
111
+ * 7791b04a-16d2-44a2-9af9-2d59c25c512f
112
+ */
113
+ export type AutomationFlowId = string;
114
+ export type Comparison = "equals" | "any_of" | "not_empty" | "is_empty";
115
+ /**
116
+ * example:
117
+ * {
118
+ * "id": "08g988-ojt2jtaga-292h-8978gsaga",
119
+ * "name": "Create Document",
120
+ * "type": "create-document",
121
+ * "config": {
122
+ * "template_id": {
123
+ * "type": "string",
124
+ * "example": "112b08ba-789c-42f2-9940-43b302f641e8\""
125
+ * },
126
+ * "filename": {
127
+ * "type": "string",
128
+ * "example": "newsletter.pdf\""
129
+ * }
130
+ * }
131
+ * }
132
+ */
133
+ export interface CreateDocumentAction {
134
+ id?: AutomationActionId;
135
+ name?: string;
136
+ type?: string;
137
+ config?: CreateDocumentConfig;
138
+ execution_status?: ExecutionStatus;
139
+ started_at?: string;
140
+ updated_at?: string;
141
+ /**
142
+ * Flag indicating whether the action was created automatically or manually
143
+ */
144
+ created_automatically?: boolean;
145
+ outputs?: {
146
+ [name: string]: any;
147
+ };
148
+ error_output?: ErrorOutput;
149
+ }
150
+ export interface CreateDocumentConfig {
151
+ template_id?: string;
152
+ filename?: string;
153
+ }
154
+ /**
155
+ * example:
156
+ * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
157
+ */
158
+ export type EntityId = string;
159
+ export interface EntityOperationTrigger {
160
+ type: "entity_operation";
161
+ configuration: {
162
+ /**
163
+ * example:
164
+ * 210738fe-e1e6-446e-aaef-cce462d7d813
165
+ */
166
+ source_id?: string;
167
+ /**
168
+ * example:
169
+ * submission
170
+ */
171
+ schema?: string;
172
+ operations?: ("createEntity" | "updateEntity" | "deleteEntity")[];
173
+ };
174
+ }
175
+ export type ErrorCode = "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "INTERNAL_ERROR" | "EMAIL_TEMPLATE_MISSING_DATA_ERROR";
176
+ export interface ErrorOutput {
177
+ error_code: ErrorCode;
178
+ error_reason: string;
179
+ }
180
+ export type ExecutionStatus = "pending" | "in_progress" | "success" | "failed" | "cancelled";
181
+ export interface FrontendSubmitTrigger {
182
+ type: "frontend_submission";
183
+ configuration: {
184
+ /**
185
+ * example:
186
+ * 99
187
+ */
188
+ source_id?: string;
189
+ };
190
+ }
191
+ export interface GetExecutionsResp {
192
+ total: number;
193
+ results: AutomationExecution[];
194
+ }
195
+ export interface JourneySubmitTrigger {
196
+ type: "journey_submission";
197
+ configuration: {
198
+ source_id: string; // uuid
199
+ };
200
+ }
201
+ /**
202
+ * example:
203
+ * {
204
+ * "id": "2520gja-2sgmsaga-0asg-822jgal",
205
+ * "name": "Map Entity",
206
+ * "type": "map-entity",
207
+ * "config": {
208
+ * "target_schema": "contact",
209
+ * "target_unique": [
210
+ * "email.email"
211
+ * ],
212
+ * "mapping_attributes": [
213
+ * {
214
+ * "target": "email",
215
+ * "mode": "append_if_exists",
216
+ * "source": "billing_contact",
217
+ * "value_json": "{\n \"email\": \"billing_contact.email\"\n}"
218
+ * },
219
+ * {
220
+ * "target": "_tags",
221
+ * "mode": "set_value",
222
+ * "value": [
223
+ * "primary",
224
+ * "payer"
225
+ * ]
226
+ * },
227
+ * {
228
+ * "target": "first_name",
229
+ * "mode": "copy_if_exists",
230
+ * "source": "billing_contact.first_name"
231
+ * },
232
+ * {
233
+ * "target": "last_name",
234
+ * "mode": "copy_if_exists",
235
+ * "source": "billing_contact.last_name"
236
+ * },
237
+ * {
238
+ * "target": "contact_type",
239
+ * "mode": "set_value",
240
+ * "value": "customer"
241
+ * },
242
+ * {
243
+ * "target": "addresses",
244
+ * "mode": "append_if_exists",
245
+ * "source": "billing_contact",
246
+ * "value_json": "{\n \"street_name\": \"billing_contact.street_name\",\n \"street_number\": \"billing_contact.street_number\",\n \"city\": \"billing_contact.city\",\n \"postal_code\": \"billing_contact.postal_code\",\n \"country\": \"billing_contact.country\",\n \"_tags\": [\"billing\", \"primary\"]\n}"
247
+ * },
248
+ * {
249
+ * "target": "addresses",
250
+ * "mode": "append_if_exists",
251
+ * "source": "delivery_contact",
252
+ * "value_json": "{\n \"street_name\": \"delivery_contact.street_name\",\n \"street_number\": \"delivery_contact.street_number\",\n \"city\": \"delivery_contact.city\",\n \"postal_code\": \"delivery_contact.postal_code\",\n \"country\": \"delivery_contact.country\",\n \"_tags\": [\"delivery\", \"secondary\"]\n}"
253
+ * }
254
+ * ]
255
+ * }
256
+ * }
257
+ */
258
+ export interface MapEntityAction {
259
+ id?: AutomationActionId;
260
+ name?: string;
261
+ type?: string;
262
+ config?: MapEntityActionConfig;
263
+ execution_status?: ExecutionStatus;
264
+ started_at?: string;
265
+ updated_at?: string;
266
+ /**
267
+ * Flag indicating whether the action was created automatically or manually
268
+ */
269
+ created_automatically?: boolean;
270
+ outputs?: {
271
+ [name: string]: any;
272
+ };
273
+ error_output?: ErrorOutput;
274
+ }
275
+ export interface MapEntityActionConfig {
276
+ target_schema?: string;
277
+ target_unique?: string[];
278
+ mapping_attributes?: MappingAttribute[];
279
+ relation_attributes?: RelationAttribute[];
280
+ }
281
+ export interface MappingAttribute {
282
+ /**
283
+ * JSON like target path for the attribute. Eg. last_name
284
+ */
285
+ target: string;
286
+ /**
287
+ * - copy_if_exists - it replaces the target attribute with the source value
288
+ * - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute.
289
+ * - set_value - it sets a value to a predefined value. Must be used together with value property.
290
+ *
291
+ */
292
+ mode: "copy_if_exists" | "append_if_exists" | "set_value";
293
+ /**
294
+ * JSON source path for the value to be extracted from. Eg: steps[1].['Product Info'].price
295
+ *
296
+ */
297
+ source: string;
298
+ /**
299
+ * To be provided only when mapping json objects into a target attribute. Eg array of addresses.
300
+ *
301
+ */
302
+ value_json?: string;
303
+ /**
304
+ * Any value to be set: string, number, string[], number[], JSON object, etc. It will override existing values, if any.
305
+ *
306
+ */
307
+ value?: {
308
+ };
309
+ }
310
+ /**
311
+ * example:
312
+ * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
313
+ */
314
+ export type OrganizationId = string;
315
+ export interface RelationAttribute {
316
+ target: string;
317
+ target_tags: string[];
318
+ related_to: {
319
+ schema: string;
320
+ tag: string;
321
+ };
322
+ mode: "append" | "set";
323
+ }
324
+ export interface SearchAutomationsResp {
325
+ total: number;
326
+ results: AutomationFlow;
327
+ }
328
+ /**
329
+ * example:
330
+ * {
331
+ * "id": "25jga0-gkasl26-0asg-908sgaj2",
332
+ * "name": "Send Email",
333
+ * "type": "send-email",
334
+ * "config": {
335
+ * "email_template_id": "gasj02-29ug9asgm-29t9gsaghg2g-pkmbhx2",
336
+ * "language_code": "de"
337
+ * }
338
+ * }
339
+ */
340
+ export interface SendEmailAction {
341
+ id?: AutomationActionId;
342
+ name?: string;
343
+ type?: string;
344
+ config?: SendEmailActionConfig;
345
+ execution_status?: ExecutionStatus;
346
+ started_at?: string;
347
+ updated_at?: string;
348
+ /**
349
+ * Flag indicating whether the action was created automatically or manually
350
+ */
351
+ created_automatically?: boolean;
352
+ outputs?: {
353
+ [name: string]: any;
354
+ };
355
+ error_output?: ErrorOutput;
356
+ }
357
+ export interface SendEmailActionConfig {
358
+ email_template_id?: string;
359
+ language_code?: "de" | "en";
360
+ }
361
+ export interface StartExecutionRequest {
362
+ entity_id?: EntityId;
363
+ flow_id?: AutomationFlowId;
364
+ }
365
+ /**
366
+ * example:
367
+ * {
368
+ * "source": "billing_contact.email",
369
+ * "comparison": "exists"
370
+ * }
371
+ */
372
+ export interface TriggerCondition {
373
+ source: string;
374
+ comparison: Comparison;
375
+ value?: string | number | string[] | number[];
376
+ }
377
+ /**
378
+ * example:
379
+ * {
380
+ * "id": "2520gja-2sgmsaga-0asg-822jgal",
381
+ * "name": "Trigger Webhook",
382
+ * "type": "trigger-webhook",
383
+ * "config": {
384
+ * "entity_sources": [
385
+ * "contact",
386
+ * "account"
387
+ * ],
388
+ * "target_webhook_id": "25jg9ag2ga"
389
+ * }
390
+ * }
391
+ */
392
+ export interface TriggerWebhookAction {
393
+ id?: AutomationActionId;
394
+ name?: string;
395
+ type?: string;
396
+ config?: TriggerWebhookActionConfig;
397
+ execution_status?: ExecutionStatus;
398
+ started_at?: string;
399
+ updated_at?: string;
400
+ /**
401
+ * Flag indicating whether the action was created automatically or manually
402
+ */
403
+ created_automatically?: boolean;
404
+ outputs?: {
405
+ [name: string]: any;
406
+ };
407
+ error_output?: ErrorOutput;
408
+ }
409
+ export interface TriggerWebhookActionConfig {
410
+ entity_sources?: string[];
411
+ target_webhook_id?: string;
412
+ }
413
+ /**
414
+ * example:
415
+ * {
416
+ * "id": "08g988-ojt2jtaga-292h-8978gsaga",
417
+ * "name": "Trigger Workflow",
418
+ * "type": "trigger-workflow",
419
+ * "config": {
420
+ * "target_workflow": "mfptvUMH",
421
+ * "conditions": [
422
+ * {
423
+ * "schema": "ivy-opportunity",
424
+ * "source": "customer.type",
425
+ * "comparison": "equals",
426
+ * "value": "PRIVATE"
427
+ * }
428
+ * ],
429
+ * "assign_steps": [
430
+ * {
431
+ * "step_name": "Lead Sales",
432
+ * "user_ids": [
433
+ * 10010729
434
+ * ]
435
+ * },
436
+ * {
437
+ * "step_name": "Operations",
438
+ * "user_ids": [
439
+ * 10010728,
440
+ * 10010729
441
+ * ]
442
+ * }
443
+ * ]
444
+ * }
445
+ * }
446
+ */
447
+ export interface TriggerWorkflowAction {
448
+ id?: AutomationActionId;
449
+ name?: string;
450
+ type?: string;
451
+ config?: TriggerWorkflowConfig;
452
+ execution_status?: ExecutionStatus;
453
+ started_at?: string;
454
+ updated_at?: string;
455
+ /**
456
+ * Flag indicating whether the action was created automatically or manually
457
+ */
458
+ created_automatically?: boolean;
459
+ outputs?: {
460
+ [name: string]: any;
461
+ };
462
+ error_output?: ErrorOutput;
463
+ }
464
+ /**
465
+ * example:
466
+ * {
467
+ * "schema": "contact",
468
+ * "source": "billing_contact.email",
469
+ * "comparison": "exists",
470
+ * "value": "test@epilot.cloud"
471
+ * }
472
+ */
473
+ export interface TriggerWorkflowCondition {
474
+ source: string;
475
+ comparison: Comparison;
476
+ value?: string | number | string[] | number[];
477
+ schema: string;
478
+ }
479
+ export interface TriggerWorkflowConfig {
480
+ target_workflow?: string;
481
+ conditions?: TriggerWorkflowCondition[];
482
+ assignees?: string[];
483
+ assign_steps?: AssignUsersToStep[];
484
+ }
485
+ }
486
+ }
487
+ declare namespace Paths {
488
+ namespace CancelExecution {
489
+ namespace Parameters {
490
+ export type ExecutionId = Components.Schemas.AutomationExecutionId;
491
+ }
492
+ export interface PathParameters {
493
+ execution_id: Parameters.ExecutionId;
494
+ }
495
+ namespace Responses {
496
+ export type $200 = Components.Schemas.AutomationExecution;
497
+ }
498
+ }
499
+ namespace CreateFlow {
500
+ export type RequestBody = Components.Schemas.AutomationFlow;
501
+ namespace Responses {
502
+ export type $201 = Components.Schemas.AutomationFlow;
503
+ }
504
+ }
505
+ namespace DeleteFlow {
506
+ namespace Parameters {
507
+ export type FlowId = Components.Schemas.AutomationFlowId;
508
+ }
509
+ export interface PathParameters {
510
+ flow_id: Parameters.FlowId;
511
+ }
512
+ namespace Responses {
513
+ export type $200 = Components.Schemas.AutomationFlow;
514
+ }
515
+ }
516
+ namespace GetExecution {
517
+ namespace Parameters {
518
+ export type ExecutionId = Components.Schemas.AutomationExecutionId;
519
+ }
520
+ export interface PathParameters {
521
+ execution_id: Parameters.ExecutionId;
522
+ }
523
+ namespace Responses {
524
+ export type $200 = Components.Schemas.AutomationExecution;
525
+ }
526
+ }
527
+ namespace GetExecutions {
528
+ namespace Parameters {
529
+ export type EntityId = Components.Schemas.EntityId;
530
+ export type From = number;
531
+ export type Size = number;
532
+ }
533
+ export interface QueryParameters {
534
+ entity_id?: Parameters.EntityId;
535
+ size?: Parameters.Size;
536
+ from?: Parameters.From;
537
+ }
538
+ namespace Responses {
539
+ export type $200 = Components.Schemas.GetExecutionsResp;
540
+ }
541
+ }
542
+ namespace GetFlow {
543
+ namespace Parameters {
544
+ export type FlowId = Components.Schemas.AutomationFlowId;
545
+ }
546
+ export interface PathParameters {
547
+ flow_id: Parameters.FlowId;
548
+ }
549
+ namespace Responses {
550
+ export type $200 = Components.Schemas.AutomationFlow;
551
+ }
552
+ }
553
+ namespace PutFlow {
554
+ namespace Parameters {
555
+ export type FlowId = Components.Schemas.AutomationFlowId;
556
+ }
557
+ export interface PathParameters {
558
+ flow_id: Parameters.FlowId;
559
+ }
560
+ export type RequestBody = Components.Schemas.AutomationFlow;
561
+ namespace Responses {
562
+ export type $200 = Components.Schemas.AutomationFlow;
563
+ }
564
+ }
565
+ namespace SearchFlows {
566
+ namespace Parameters {
567
+ export type From = number;
568
+ /**
569
+ * example:
570
+ * submission
571
+ */
572
+ export type Schema = string;
573
+ export type Size = number;
574
+ /**
575
+ * example:
576
+ * 600945fe-212e-4b97-acf7-391d64648384
577
+ */
578
+ export type TriggerSourceId = string;
579
+ }
580
+ export interface QueryParameters {
581
+ schema?: Parameters.Schema;
582
+ size?: Parameters.Size;
583
+ from?: Parameters.From;
584
+ trigger_source_id?: Parameters.TriggerSourceId;
585
+ }
586
+ namespace Responses {
587
+ export type $200 = Components.Schemas.SearchAutomationsResp;
588
+ }
589
+ }
590
+ namespace StartExecution {
591
+ export type RequestBody = Components.Schemas.StartExecutionRequest;
592
+ namespace Responses {
593
+ export type $201 = Components.Schemas.AutomationExecution;
594
+ }
595
+ }
596
+ }
597
+
598
+ export interface OperationMethods {
599
+ /**
600
+ * searchFlows - searchFlows
601
+ *
602
+ * Search available automation flows
603
+ */
604
+ 'searchFlows'(
605
+ parameters?: Parameters<Paths.SearchFlows.QueryParameters> | null,
606
+ data?: any,
607
+ config?: AxiosRequestConfig
608
+ ): OperationResponse<Paths.SearchFlows.Responses.$200>
609
+ /**
610
+ * createFlow - createFlow
611
+ *
612
+ * Create new automation flow
613
+ */
614
+ 'createFlow'(
615
+ parameters?: Parameters<UnknownParamsObject> | null,
616
+ data?: Paths.CreateFlow.RequestBody,
617
+ config?: AxiosRequestConfig
618
+ ): OperationResponse<Paths.CreateFlow.Responses.$201>
619
+ /**
620
+ * getFlow - getFlow
621
+ *
622
+ * List available automation flows
623
+ */
624
+ 'getFlow'(
625
+ parameters?: Parameters<Paths.GetFlow.PathParameters> | null,
626
+ data?: any,
627
+ config?: AxiosRequestConfig
628
+ ): OperationResponse<Paths.GetFlow.Responses.$200>
629
+ /**
630
+ * putFlow - putFlow
631
+ *
632
+ * Update automation flow by id
633
+ */
634
+ 'putFlow'(
635
+ parameters?: Parameters<Paths.PutFlow.PathParameters> | null,
636
+ data?: Paths.PutFlow.RequestBody,
637
+ config?: AxiosRequestConfig
638
+ ): OperationResponse<Paths.PutFlow.Responses.$200>
639
+ /**
640
+ * deleteFlow - deleteFlow
641
+ *
642
+ * Update automation flow by id
643
+ */
644
+ 'deleteFlow'(
645
+ parameters?: Parameters<Paths.DeleteFlow.PathParameters> | null,
646
+ data?: any,
647
+ config?: AxiosRequestConfig
648
+ ): OperationResponse<Paths.DeleteFlow.Responses.$200>
649
+ /**
650
+ * getExecutions - getExecutions
651
+ *
652
+ * List automation executions
653
+ */
654
+ 'getExecutions'(
655
+ parameters?: Parameters<Paths.GetExecutions.QueryParameters> | null,
656
+ data?: any,
657
+ config?: AxiosRequestConfig
658
+ ): OperationResponse<Paths.GetExecutions.Responses.$200>
659
+ /**
660
+ * startExecution - startExecution
661
+ *
662
+ * Start new automation execution
663
+ */
664
+ 'startExecution'(
665
+ parameters?: Parameters<UnknownParamsObject> | null,
666
+ data?: Paths.StartExecution.RequestBody,
667
+ config?: AxiosRequestConfig
668
+ ): OperationResponse<Paths.StartExecution.Responses.$201>
669
+ /**
670
+ * getExecution - getExecution
671
+ *
672
+ * Get automation execution
673
+ */
674
+ 'getExecution'(
675
+ parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
676
+ data?: any,
677
+ config?: AxiosRequestConfig
678
+ ): OperationResponse<Paths.GetExecution.Responses.$200>
679
+ /**
680
+ * cancelExecution - cancelExecution
681
+ *
682
+ * Cancel automation execution
683
+ */
684
+ 'cancelExecution'(
685
+ parameters?: Parameters<Paths.CancelExecution.PathParameters> | null,
686
+ data?: any,
687
+ config?: AxiosRequestConfig
688
+ ): OperationResponse<Paths.CancelExecution.Responses.$200>
689
+ /**
690
+ * retriggerAction - retriggerAction
691
+ *
692
+ * Retrigger a specific automation execution action
693
+ */
694
+ 'retriggerAction'(
695
+ parameters?: Parameters<UnknownParamsObject> | null,
696
+ data?: any,
697
+ config?: AxiosRequestConfig
698
+ ): OperationResponse<any>
699
+ }
700
+
701
+ export interface PathsDictionary {
702
+ ['/v1/automation/flows']: {
703
+ /**
704
+ * searchFlows - searchFlows
705
+ *
706
+ * Search available automation flows
707
+ */
708
+ 'get'(
709
+ parameters?: Parameters<Paths.SearchFlows.QueryParameters> | null,
710
+ data?: any,
711
+ config?: AxiosRequestConfig
712
+ ): OperationResponse<Paths.SearchFlows.Responses.$200>
713
+ /**
714
+ * createFlow - createFlow
715
+ *
716
+ * Create new automation flow
717
+ */
718
+ 'post'(
719
+ parameters?: Parameters<UnknownParamsObject> | null,
720
+ data?: Paths.CreateFlow.RequestBody,
721
+ config?: AxiosRequestConfig
722
+ ): OperationResponse<Paths.CreateFlow.Responses.$201>
723
+ }
724
+ ['/v1/automation/flows/{flow_id}']: {
725
+ /**
726
+ * getFlow - getFlow
727
+ *
728
+ * List available automation flows
729
+ */
730
+ 'get'(
731
+ parameters?: Parameters<Paths.GetFlow.PathParameters> | null,
732
+ data?: any,
733
+ config?: AxiosRequestConfig
734
+ ): OperationResponse<Paths.GetFlow.Responses.$200>
735
+ /**
736
+ * putFlow - putFlow
737
+ *
738
+ * Update automation flow by id
739
+ */
740
+ 'put'(
741
+ parameters?: Parameters<Paths.PutFlow.PathParameters> | null,
742
+ data?: Paths.PutFlow.RequestBody,
743
+ config?: AxiosRequestConfig
744
+ ): OperationResponse<Paths.PutFlow.Responses.$200>
745
+ /**
746
+ * deleteFlow - deleteFlow
747
+ *
748
+ * Update automation flow by id
749
+ */
750
+ 'delete'(
751
+ parameters?: Parameters<Paths.DeleteFlow.PathParameters> | null,
752
+ data?: any,
753
+ config?: AxiosRequestConfig
754
+ ): OperationResponse<Paths.DeleteFlow.Responses.$200>
755
+ }
756
+ ['/v1/automation/executions']: {
757
+ /**
758
+ * getExecutions - getExecutions
759
+ *
760
+ * List automation executions
761
+ */
762
+ 'get'(
763
+ parameters?: Parameters<Paths.GetExecutions.QueryParameters> | null,
764
+ data?: any,
765
+ config?: AxiosRequestConfig
766
+ ): OperationResponse<Paths.GetExecutions.Responses.$200>
767
+ /**
768
+ * startExecution - startExecution
769
+ *
770
+ * Start new automation execution
771
+ */
772
+ 'post'(
773
+ parameters?: Parameters<UnknownParamsObject> | null,
774
+ data?: Paths.StartExecution.RequestBody,
775
+ config?: AxiosRequestConfig
776
+ ): OperationResponse<Paths.StartExecution.Responses.$201>
777
+ }
778
+ ['/v1/automation/executions/{execution_id}']: {
779
+ /**
780
+ * getExecution - getExecution
781
+ *
782
+ * Get automation execution
783
+ */
784
+ 'get'(
785
+ parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
786
+ data?: any,
787
+ config?: AxiosRequestConfig
788
+ ): OperationResponse<Paths.GetExecution.Responses.$200>
789
+ /**
790
+ * cancelExecution - cancelExecution
791
+ *
792
+ * Cancel automation execution
793
+ */
794
+ 'delete'(
795
+ parameters?: Parameters<Paths.CancelExecution.PathParameters> | null,
796
+ data?: any,
797
+ config?: AxiosRequestConfig
798
+ ): OperationResponse<Paths.CancelExecution.Responses.$200>
799
+ }
800
+ ['/v1/automation/executions/{execution_id}/{action_id}/retrigger']: {
801
+ /**
802
+ * retriggerAction - retriggerAction
803
+ *
804
+ * Retrigger a specific automation execution action
805
+ */
806
+ 'post'(
807
+ parameters?: Parameters<UnknownParamsObject> | null,
808
+ data?: any,
809
+ config?: AxiosRequestConfig
810
+ ): OperationResponse<any>
811
+ }
812
+ }
813
+
814
+ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>