@epilot/automation-client 1.8.9 → 1.9.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.
@@ -0,0 +1,1744 @@
1
+ /* eslint-disable */
2
+ import type {
3
+ OpenAPIClient,
4
+ Parameters,
5
+ UnknownParamsObject,
6
+ OperationResponse,
7
+ AxiosRequestConfig,
8
+ } from 'openapi-client-axios';
9
+
10
+ declare namespace Components {
11
+ namespace Schemas {
12
+ /**
13
+ * example:
14
+ * {
15
+ * "target": {
16
+ * "schema": "contact",
17
+ * "tag": "primary",
18
+ * "key": "address",
19
+ * "value_json": "{\"_tags\": [\"billing\"],\"city\":\"steps[0][Adresse][city]\",\"country\":\"steps[0][Adresse][countryCode]\",\"postal_code\":\"steps[0][Adresse][zipCode]\",\"street\":\"steps[0][Adresse][streetName]\",\"street_number\":\"steps[0][Adresse][houseNumber]\",\"additional_info\":\"steps[0][Adresse][addressExtention]\"}",
20
+ * "target_unique": [
21
+ * "country",
22
+ * "city",
23
+ * "postal_code",
24
+ * "street",
25
+ * "street_number"
26
+ * ]
27
+ * },
28
+ * "reference": {
29
+ * "schema": "opportunity",
30
+ * "key": "billing_address"
31
+ * }
32
+ * }
33
+ */
34
+ export interface AddressMapper {
35
+ target: {
36
+ /**
37
+ * find target entity based on schema
38
+ */
39
+ schema: string;
40
+ /**
41
+ * find target entity based on entity tag
42
+ */
43
+ tag?: string;
44
+ /**
45
+ * find target entity based on relation tag on main entity relation
46
+ */
47
+ relation_tag?: string;
48
+ /**
49
+ * target field for where to store this address.
50
+ */
51
+ key: string;
52
+ /**
53
+ * stringified JSON for how to map address data
54
+ */
55
+ value_json: string;
56
+ /**
57
+ * Array of keys which should be used when checking for uniqueness. Eg: [country, city, postal_code]
58
+ *
59
+ */
60
+ target_unique?: string[];
61
+ };
62
+ reference: {
63
+ /**
64
+ * Schema of the entity where the reference will be stored.
65
+ */
66
+ schema: string;
67
+ /**
68
+ * Field location to store the reference.
69
+ */
70
+ key: string;
71
+ /**
72
+ * Optional relation labels to give meaning to this reference.
73
+ */
74
+ labels?: string[];
75
+ };
76
+ }
77
+ export type AnyAction = /**
78
+ * example:
79
+ * {
80
+ * "id": "2520gja-2sgmsaga-0asg-822jgal",
81
+ * "name": "Map Entity",
82
+ * "type": "map-entity",
83
+ * "config": {
84
+ * "target_schema": "contact",
85
+ * "target_unique": [
86
+ * "email.0.email"
87
+ * ],
88
+ * "relation_attributes": [
89
+ * {
90
+ * "target": "company",
91
+ * "mode": "append",
92
+ * "source_filter": {
93
+ * "schema": "account",
94
+ * "limit": 1
95
+ * }
96
+ * }
97
+ * ],
98
+ * "mapping_attributes": [
99
+ * {
100
+ * "target": "_tags",
101
+ * "operation": {
102
+ * "_append": [
103
+ * "primary",
104
+ * "payer"
105
+ * ],
106
+ * "_uniq": true
107
+ * }
108
+ * },
109
+ * {
110
+ * "target": "email",
111
+ * "operation": {
112
+ * "_append": [
113
+ * {
114
+ * "email": {
115
+ * "_copy": "billing_contact.email"
116
+ * }
117
+ * }
118
+ * ]
119
+ * }
120
+ * },
121
+ * {
122
+ * "target": "first_name",
123
+ * "operation": {
124
+ * "_copy": "billing_contact.first_name"
125
+ * }
126
+ * },
127
+ * {
128
+ * "target": "last_name",
129
+ * "operation": {
130
+ * "_copy": "billing_contact.last_name"
131
+ * }
132
+ * },
133
+ * {
134
+ * "target": "contact_type",
135
+ * "operation": {
136
+ * "_set": "customer"
137
+ * }
138
+ * },
139
+ * {
140
+ * "target": "address",
141
+ * "operation": {
142
+ * "_append": [
143
+ * {
144
+ * "_tags": [
145
+ * "billing",
146
+ * "primary"
147
+ * ],
148
+ * "street_name": {
149
+ * "_copy": "billing_contact.street_name"
150
+ * },
151
+ * "street_number": {
152
+ * "_copy": "billing_contact.street_number"
153
+ * },
154
+ * "city": {
155
+ * "_copy": "billing_contact.city"
156
+ * },
157
+ * "postal_code": {
158
+ * "_copy": "billing_contact.postal_code"
159
+ * },
160
+ * "country": {
161
+ * "_copy": "billing_contact.country"
162
+ * }
163
+ * },
164
+ * {
165
+ * "_tags": [
166
+ * "delivery"
167
+ * ],
168
+ * "street_name": {
169
+ * "_copy": "delivery_contact.street_name"
170
+ * },
171
+ * "street_number": {
172
+ * "_copy": "delivery_contact.street_number"
173
+ * },
174
+ * "city": {
175
+ * "_copy": "delivery_contact.city"
176
+ * },
177
+ * "postal_code": {
178
+ * "_copy": "delivery_contact.postal_code"
179
+ * },
180
+ * "country": {
181
+ * "_copy": "delivery_contact.country"
182
+ * }
183
+ * }
184
+ * ],
185
+ * "_uniq": [
186
+ * "street_name",
187
+ * "street_number",
188
+ * "postal_code",
189
+ * "country"
190
+ * ]
191
+ * }
192
+ * }
193
+ * ]
194
+ * }
195
+ * }
196
+ */
197
+ MapEntityAction | FillEntityAction | /**
198
+ * example:
199
+ * {
200
+ * "id": "08g988-ojt2jtaga-292h-8978gsaga",
201
+ * "name": "Trigger Workflow",
202
+ * "type": "trigger-workflow",
203
+ * "config": {
204
+ * "target_workflow": "mfptvUMH",
205
+ * "conditions": [
206
+ * {
207
+ * "schema": "ivy-opportunity",
208
+ * "source": "customer.type",
209
+ * "comparison": "equals",
210
+ * "value": "PRIVATE"
211
+ * }
212
+ * ],
213
+ * "assign_steps": [
214
+ * {
215
+ * "step_name": "Lead Sales",
216
+ * "user_ids": [
217
+ * 10010729
218
+ * ]
219
+ * },
220
+ * {
221
+ * "step_name": "Operations",
222
+ * "user_ids": [
223
+ * 10010728,
224
+ * 10010729
225
+ * ]
226
+ * }
227
+ * ]
228
+ * }
229
+ * }
230
+ */
231
+ TriggerWorkflowAction | /**
232
+ * example:
233
+ * {
234
+ * "id": "2520gja-2sgmsaga-0asg-822jgal",
235
+ * "name": "Trigger Webhook",
236
+ * "type": "trigger-webhook",
237
+ * "config": {
238
+ * "entity_sources": [
239
+ * "contact",
240
+ * "account"
241
+ * ],
242
+ * "target_webhook_id": "25jg9ag2ga"
243
+ * }
244
+ * }
245
+ */
246
+ TriggerWebhookAction | /**
247
+ * example:
248
+ * {
249
+ * "id": "08g988-ojt2jtaga-292h-8978gsaga",
250
+ * "name": "Create Document",
251
+ * "type": "create-document",
252
+ * "config": {
253
+ * "template_id": {
254
+ * "type": "string",
255
+ * "example": "112b08ba-789c-42f2-9940-43b302f641e8\""
256
+ * },
257
+ * "filename": {
258
+ * "type": "string",
259
+ * "example": "newsletter.pdf\""
260
+ * }
261
+ * }
262
+ * }
263
+ */
264
+ CreateDocumentAction | /**
265
+ * example:
266
+ * {
267
+ * "id": "25jga0-gkasl26-0asg-908sgaj2",
268
+ * "name": "Send Email",
269
+ * "type": "send-email",
270
+ * "config": {
271
+ * "email_template_id": "gasj02-29ug9asgm-29t9gsaghg2g-pkmbhx2",
272
+ * "language_code": "de"
273
+ * }
274
+ * }
275
+ */
276
+ SendEmailAction | /* Creates an order entity with prices from journey */ CartCheckoutAction | AutomationAction;
277
+ export type AnyTrigger = FrontendSubmitTrigger | JourneySubmitTrigger | ApiSubmissionTrigger | EntityOperationTrigger | EntityManualTrigger | ReceivedEmailTrigger;
278
+ export interface ApiSubmissionTrigger {
279
+ type: "api_submission";
280
+ configuration: {
281
+ source_id?: string;
282
+ };
283
+ }
284
+ export interface AppendValueMapper {
285
+ mode: /**
286
+ * - copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.
287
+ *
288
+ */
289
+ MappingAttributeMode;
290
+ /**
291
+ * JSON like target path for the attribute. Eg. last_name
292
+ */
293
+ target: string;
294
+ /**
295
+ * JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price
296
+ *
297
+ */
298
+ source?: string;
299
+ /**
300
+ * To be provided only when mapping json objects into a target attribute. Eg array of addresses.
301
+ *
302
+ */
303
+ value_json: string;
304
+ /**
305
+ * Array of keys which should be used when checking for uniqueness. Eg: [country, city, postal_code]
306
+ *
307
+ */
308
+ target_unique?: string[];
309
+ }
310
+ /**
311
+ * example:
312
+ * [
313
+ * {
314
+ * "step_id": "xyh9t2ha",
315
+ * "step_name": "Lead Sales",
316
+ * "user_ids": [
317
+ * 10010729
318
+ * ]
319
+ * },
320
+ * {
321
+ * "step_id": "29jgasl",
322
+ * "step_name": "Operations",
323
+ * "user_ids": [
324
+ * 10010728,
325
+ * 10010729
326
+ * ]
327
+ * }
328
+ * ]
329
+ */
330
+ export interface AssignUsersToStep {
331
+ step_id?: string;
332
+ step_name?: string;
333
+ user_ids?: number[];
334
+ }
335
+ export interface AutomationAction {
336
+ id?: /**
337
+ * example:
338
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
339
+ */
340
+ AutomationActionId;
341
+ flow_action_id?: /**
342
+ * example:
343
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
344
+ */
345
+ AutomationActionId;
346
+ name?: string;
347
+ type?: string;
348
+ config?: {
349
+ [name: string]: any;
350
+ };
351
+ execution_status?: ExecutionStatus;
352
+ started_at?: string;
353
+ updated_at?: string;
354
+ /**
355
+ * Whether to stop execution in a failed state if this action fails
356
+ */
357
+ allow_failure?: boolean;
358
+ /**
359
+ * Flag indicating whether the action was created automatically or manually
360
+ */
361
+ created_automatically?: boolean;
362
+ /**
363
+ * example:
364
+ * {}
365
+ */
366
+ outputs?: {
367
+ [name: string]: any;
368
+ };
369
+ error_output?: ErrorOutput;
370
+ }
371
+ /**
372
+ * example:
373
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
374
+ */
375
+ export type AutomationActionId = string;
376
+ export interface AutomationExecution {
377
+ id: /**
378
+ * example:
379
+ * 9baf184f-bc81-4128-bca3-d974c90a12c4
380
+ */
381
+ AutomationExecutionId;
382
+ execution_status?: ExecutionStatus;
383
+ entity_id: /**
384
+ * example:
385
+ * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
386
+ */
387
+ EntityId;
388
+ org_id: /**
389
+ * example:
390
+ * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
391
+ */
392
+ OrganizationId;
393
+ flow_id: /**
394
+ * example:
395
+ * 7791b04a-16d2-44a2-9af9-2d59c25c512f
396
+ */
397
+ AutomationFlowId;
398
+ /**
399
+ * example:
400
+ * Handle contact form
401
+ */
402
+ flow_name?: string;
403
+ created_at?: string; // date-time
404
+ updated_at?: string; // date-time
405
+ current_action_id?: /**
406
+ * example:
407
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
408
+ */
409
+ AutomationActionId;
410
+ actions: AnyAction[];
411
+ }
412
+ /**
413
+ * example:
414
+ * 9baf184f-bc81-4128-bca3-d974c90a12c4
415
+ */
416
+ export type AutomationExecutionId = string;
417
+ export interface AutomationFlow {
418
+ id?: /**
419
+ * example:
420
+ * 7791b04a-16d2-44a2-9af9-2d59c25c512f
421
+ */
422
+ AutomationFlowId;
423
+ /**
424
+ * A descriptive name for the Automation
425
+ * example:
426
+ * Handle contact form
427
+ */
428
+ flow_name: string;
429
+ /**
430
+ * Whether the automation is enabled or not
431
+ */
432
+ enabled?: boolean;
433
+ triggers: AnyTrigger[];
434
+ trigger_conditions?: /**
435
+ * example:
436
+ * {
437
+ * "source": "billing_contact.email",
438
+ * "comparison": "exists"
439
+ * }
440
+ */
441
+ TriggerCondition[];
442
+ /**
443
+ * The triggering entity schema
444
+ * example:
445
+ * submission
446
+ */
447
+ entity_schema?: string;
448
+ actions: AnyAction[];
449
+ /**
450
+ * Number of automation executions that ran
451
+ * example:
452
+ * 7
453
+ */
454
+ runs?: number;
455
+ created_at?: string; // date-time
456
+ updated_at?: string; // date-time
457
+ /**
458
+ * User / service who created automation flow
459
+ * example:
460
+ * user:123
461
+ */
462
+ created_by?: string;
463
+ /**
464
+ * User / service who last updated automation flow
465
+ * example:
466
+ * user:123
467
+ */
468
+ last_updated_by?: string;
469
+ }
470
+ /**
471
+ * example:
472
+ * 7791b04a-16d2-44a2-9af9-2d59c25c512f
473
+ */
474
+ export type AutomationFlowId = string;
475
+ /**
476
+ * Creates an order entity with prices from journey
477
+ */
478
+ export interface CartCheckoutAction {
479
+ id?: /**
480
+ * example:
481
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
482
+ */
483
+ AutomationActionId;
484
+ flow_action_id?: /**
485
+ * example:
486
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
487
+ */
488
+ AutomationActionId;
489
+ name?: string;
490
+ type?: "cart-checkout";
491
+ config?: CartCheckoutConfig;
492
+ execution_status?: ExecutionStatus;
493
+ started_at?: string;
494
+ updated_at?: string;
495
+ /**
496
+ * Whether to stop execution in a failed state if this action fails
497
+ */
498
+ allow_failure?: boolean;
499
+ /**
500
+ * Flag indicating whether the action was created automatically or manually
501
+ */
502
+ created_automatically?: boolean;
503
+ /**
504
+ * example:
505
+ * {}
506
+ */
507
+ outputs?: {
508
+ [name: string]: any;
509
+ };
510
+ error_output?: ErrorOutput;
511
+ }
512
+ export interface CartCheckoutConfig {
513
+ /**
514
+ * Version of the config
515
+ */
516
+ version?: string;
517
+ relation_attributes?: RelationAttribute[];
518
+ mapping_attributes?: (/**
519
+ * example:
520
+ * {
521
+ * "target": "_tags",
522
+ * "operation": {
523
+ * "_append": [
524
+ * "new",
525
+ * "tags"
526
+ * ],
527
+ * "_uniq": true
528
+ * }
529
+ * }
530
+ */
531
+ MappingAttributeV2 | MappingAttribute)[];
532
+ /**
533
+ * Relation attribute on the main entity where the target entity will be linked. Set to false to disable linkback
534
+ *
535
+ */
536
+ linkback_relation_attribute?: string;
537
+ /**
538
+ * Relation tags (labels) to include in main entity linkback relation attribute
539
+ */
540
+ linkback_relation_tags?: string[];
541
+ /**
542
+ * Unique key for target entity (see upsertEntity of Entity API)
543
+ */
544
+ target_unique?: string[];
545
+ }
546
+ export type Comparison = "equals" | "any_of" | "not_empty" | "is_empty";
547
+ export interface CopyValueMapper {
548
+ mode: /**
549
+ * - copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.
550
+ *
551
+ */
552
+ MappingAttributeMode;
553
+ /**
554
+ * JSON like target path for the attribute. Eg. last_name
555
+ */
556
+ target: string;
557
+ /**
558
+ * JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price
559
+ *
560
+ */
561
+ source: string;
562
+ }
563
+ /**
564
+ * example:
565
+ * {
566
+ * "id": "08g988-ojt2jtaga-292h-8978gsaga",
567
+ * "name": "Create Document",
568
+ * "type": "create-document",
569
+ * "config": {
570
+ * "template_id": {
571
+ * "type": "string",
572
+ * "example": "112b08ba-789c-42f2-9940-43b302f641e8\""
573
+ * },
574
+ * "filename": {
575
+ * "type": "string",
576
+ * "example": "newsletter.pdf\""
577
+ * }
578
+ * }
579
+ * }
580
+ */
581
+ export interface CreateDocumentAction {
582
+ id?: /**
583
+ * example:
584
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
585
+ */
586
+ AutomationActionId;
587
+ flow_action_id?: /**
588
+ * example:
589
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
590
+ */
591
+ AutomationActionId;
592
+ name?: string;
593
+ type?: "create-document";
594
+ config?: CreateDocumentConfig;
595
+ execution_status?: ExecutionStatus;
596
+ started_at?: string;
597
+ updated_at?: string;
598
+ /**
599
+ * Whether to stop execution in a failed state if this action fails
600
+ */
601
+ allow_failure?: boolean;
602
+ /**
603
+ * Flag indicating whether the action was created automatically or manually
604
+ */
605
+ created_automatically?: boolean;
606
+ /**
607
+ * example:
608
+ * {}
609
+ */
610
+ outputs?: {
611
+ [name: string]: any;
612
+ };
613
+ error_output?: ErrorOutput;
614
+ }
615
+ export interface CreateDocumentConfig {
616
+ template_id?: string;
617
+ filename?: string;
618
+ }
619
+ /**
620
+ * example:
621
+ * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
622
+ */
623
+ export type EntityId = string;
624
+ export interface EntityManualTrigger {
625
+ type: "entity_manual";
626
+ configuration: {
627
+ /**
628
+ * Which entity type can this automation be triggered from
629
+ * example:
630
+ * submission
631
+ */
632
+ schema?: string;
633
+ };
634
+ }
635
+ export interface EntityOperationTrigger {
636
+ type: "entity_operation";
637
+ configuration: {
638
+ /**
639
+ * example:
640
+ * submission
641
+ */
642
+ schema?: string;
643
+ operations?: ("createEntity" | "updateEntity" | "deleteEntity")[];
644
+ };
645
+ }
646
+ export type ErrorCode = "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "BAD_CONFIG" | "INTERNAL_ERROR";
647
+ export interface ErrorOutput {
648
+ error_code: ErrorCode;
649
+ error_reason: string;
650
+ }
651
+ export type ExecutionStatus = "pending" | "in_progress" | "success" | "failed" | "cancelled";
652
+ export interface FillEntityAction {
653
+ id?: /**
654
+ * example:
655
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
656
+ */
657
+ AutomationActionId;
658
+ flow_action_id?: /**
659
+ * example:
660
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
661
+ */
662
+ AutomationActionId;
663
+ name?: string;
664
+ type?: "fill-entity";
665
+ config: FillEntityConfig;
666
+ execution_status?: ExecutionStatus;
667
+ started_at?: string;
668
+ updated_at?: string;
669
+ /**
670
+ * Whether to stop execution in a failed state if this action fails
671
+ */
672
+ allow_failure?: boolean;
673
+ /**
674
+ * Flag indicating whether the action was created automatically or manually
675
+ */
676
+ created_automatically?: boolean;
677
+ /**
678
+ * example:
679
+ * {}
680
+ */
681
+ outputs?: {
682
+ [name: string]: any;
683
+ };
684
+ error_output?: ErrorOutput;
685
+ }
686
+ export interface FillEntityConfig {
687
+ mappings: /**
688
+ * example:
689
+ * {
690
+ * "target": {
691
+ * "schema": "contact",
692
+ * "tag": "primary",
693
+ * "key": "address",
694
+ * "value_json": "{\"_tags\": [\"billing\"],\"city\":\"steps[0][Adresse][city]\",\"country\":\"steps[0][Adresse][countryCode]\",\"postal_code\":\"steps[0][Adresse][zipCode]\",\"street\":\"steps[0][Adresse][streetName]\",\"street_number\":\"steps[0][Adresse][houseNumber]\",\"additional_info\":\"steps[0][Adresse][addressExtention]\"}",
695
+ * "target_unique": [
696
+ * "country",
697
+ * "city",
698
+ * "postal_code",
699
+ * "street",
700
+ * "street_number"
701
+ * ]
702
+ * },
703
+ * "reference": {
704
+ * "schema": "opportunity",
705
+ * "key": "billing_address"
706
+ * }
707
+ * }
708
+ */
709
+ AddressMapper[];
710
+ }
711
+ export interface FrontendSubmitTrigger {
712
+ type: "frontend_submission";
713
+ configuration: {
714
+ /**
715
+ * example:
716
+ * 99
717
+ */
718
+ source_id?: string;
719
+ };
720
+ }
721
+ export interface GetExecutionsResp {
722
+ total: number;
723
+ results: AutomationExecution[];
724
+ }
725
+ export interface JourneySubmitTrigger {
726
+ type: "journey_submission";
727
+ configuration: {
728
+ source_id: string; // uuid
729
+ };
730
+ }
731
+ /**
732
+ * example:
733
+ * {
734
+ * "id": "2520gja-2sgmsaga-0asg-822jgal",
735
+ * "name": "Map Entity",
736
+ * "type": "map-entity",
737
+ * "config": {
738
+ * "target_schema": "contact",
739
+ * "target_unique": [
740
+ * "email.0.email"
741
+ * ],
742
+ * "relation_attributes": [
743
+ * {
744
+ * "target": "company",
745
+ * "mode": "append",
746
+ * "source_filter": {
747
+ * "schema": "account",
748
+ * "limit": 1
749
+ * }
750
+ * }
751
+ * ],
752
+ * "mapping_attributes": [
753
+ * {
754
+ * "target": "_tags",
755
+ * "operation": {
756
+ * "_append": [
757
+ * "primary",
758
+ * "payer"
759
+ * ],
760
+ * "_uniq": true
761
+ * }
762
+ * },
763
+ * {
764
+ * "target": "email",
765
+ * "operation": {
766
+ * "_append": [
767
+ * {
768
+ * "email": {
769
+ * "_copy": "billing_contact.email"
770
+ * }
771
+ * }
772
+ * ]
773
+ * }
774
+ * },
775
+ * {
776
+ * "target": "first_name",
777
+ * "operation": {
778
+ * "_copy": "billing_contact.first_name"
779
+ * }
780
+ * },
781
+ * {
782
+ * "target": "last_name",
783
+ * "operation": {
784
+ * "_copy": "billing_contact.last_name"
785
+ * }
786
+ * },
787
+ * {
788
+ * "target": "contact_type",
789
+ * "operation": {
790
+ * "_set": "customer"
791
+ * }
792
+ * },
793
+ * {
794
+ * "target": "address",
795
+ * "operation": {
796
+ * "_append": [
797
+ * {
798
+ * "_tags": [
799
+ * "billing",
800
+ * "primary"
801
+ * ],
802
+ * "street_name": {
803
+ * "_copy": "billing_contact.street_name"
804
+ * },
805
+ * "street_number": {
806
+ * "_copy": "billing_contact.street_number"
807
+ * },
808
+ * "city": {
809
+ * "_copy": "billing_contact.city"
810
+ * },
811
+ * "postal_code": {
812
+ * "_copy": "billing_contact.postal_code"
813
+ * },
814
+ * "country": {
815
+ * "_copy": "billing_contact.country"
816
+ * }
817
+ * },
818
+ * {
819
+ * "_tags": [
820
+ * "delivery"
821
+ * ],
822
+ * "street_name": {
823
+ * "_copy": "delivery_contact.street_name"
824
+ * },
825
+ * "street_number": {
826
+ * "_copy": "delivery_contact.street_number"
827
+ * },
828
+ * "city": {
829
+ * "_copy": "delivery_contact.city"
830
+ * },
831
+ * "postal_code": {
832
+ * "_copy": "delivery_contact.postal_code"
833
+ * },
834
+ * "country": {
835
+ * "_copy": "delivery_contact.country"
836
+ * }
837
+ * }
838
+ * ],
839
+ * "_uniq": [
840
+ * "street_name",
841
+ * "street_number",
842
+ * "postal_code",
843
+ * "country"
844
+ * ]
845
+ * }
846
+ * }
847
+ * ]
848
+ * }
849
+ * }
850
+ */
851
+ export interface MapEntityAction {
852
+ id?: /**
853
+ * example:
854
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
855
+ */
856
+ AutomationActionId;
857
+ flow_action_id?: /**
858
+ * example:
859
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
860
+ */
861
+ AutomationActionId;
862
+ name?: string;
863
+ type?: "map-entity";
864
+ config?: MapEntityActionConfig;
865
+ execution_status?: ExecutionStatus;
866
+ started_at?: string;
867
+ updated_at?: string;
868
+ /**
869
+ * Whether to stop execution in a failed state if this action fails
870
+ */
871
+ allow_failure?: boolean;
872
+ /**
873
+ * Flag indicating whether the action was created automatically or manually
874
+ */
875
+ created_automatically?: boolean;
876
+ /**
877
+ * example:
878
+ * {}
879
+ */
880
+ outputs?: {
881
+ [name: string]: any;
882
+ };
883
+ error_output?: ErrorOutput;
884
+ }
885
+ export interface MapEntityActionConfig {
886
+ mapping_config?: {
887
+ /**
888
+ * Id of Entity Mapping Configuration to run for mapping.
889
+ */
890
+ config_id: string;
891
+ /**
892
+ * Id of TargetConfig to run for mapping.
893
+ */
894
+ target_id: string;
895
+ };
896
+ /**
897
+ * Schema of target entity
898
+ */
899
+ target_schema: string;
900
+ /**
901
+ * Unique key for target entity (see upsertEntity of Entity API)
902
+ */
903
+ target_unique?: string[];
904
+ /**
905
+ * Attribute mappings
906
+ */
907
+ mapping_attributes?: (/**
908
+ * example:
909
+ * {
910
+ * "target": "_tags",
911
+ * "operation": {
912
+ * "_append": [
913
+ * "new",
914
+ * "tags"
915
+ * ],
916
+ * "_uniq": true
917
+ * }
918
+ * }
919
+ */
920
+ MappingAttributeV2 | MappingAttribute)[];
921
+ /**
922
+ * Relation mappings
923
+ */
924
+ relation_attributes?: RelationAttribute[];
925
+ /**
926
+ * Relation attribute on the main entity where the target entity will be linked. Set to false to disable linkback
927
+ *
928
+ */
929
+ linkback_relation_attribute?: string;
930
+ /**
931
+ * Relation tags (labels) to include in main entity linkback relation attribute
932
+ */
933
+ linkback_relation_tags?: string[];
934
+ }
935
+ export type MappingAttribute = SetValueMapper | CopyValueMapper | AppendValueMapper;
936
+ /**
937
+ * - copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.
938
+ *
939
+ */
940
+ export type MappingAttributeMode = "copy_if_exists" | "append_if_exists" | "set_value";
941
+ /**
942
+ * example:
943
+ * {
944
+ * "target": "_tags",
945
+ * "operation": {
946
+ * "_append": [
947
+ * "new",
948
+ * "tags"
949
+ * ],
950
+ * "_uniq": true
951
+ * }
952
+ * }
953
+ */
954
+ export interface MappingAttributeV2 {
955
+ /**
956
+ * Target JSON path for the attribute to set
957
+ */
958
+ target?: string;
959
+ operation: /* Mapping operation nodes are either primitive values or operation node objects */ OperationNode;
960
+ }
961
+ /**
962
+ * Mapping operation nodes are either primitive values or operation node objects
963
+ */
964
+ export type OperationNode = /* Mapping operation nodes are either primitive values or operation node objects */ OperationObjectNode | /* Represents any primitive JSON value */ PrimitiveJSONValue;
965
+ export interface OperationObjectNode {
966
+ [name: string]: any;
967
+ _set?: /* Represents any primitive JSON value */ PrimitiveJSONValue;
968
+ /**
969
+ * Append to array
970
+ */
971
+ _append?: any;
972
+ /**
973
+ * Unique array
974
+ */
975
+ _uniq?: /* Unique array */ boolean | string[];
976
+ /**
977
+ * Copy JSONPath value from source entity context
978
+ * example:
979
+ * contact.first_name
980
+ */
981
+ _copy?: string;
982
+ }
983
+ /**
984
+ * example:
985
+ * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
986
+ */
987
+ export type OrganizationId = string;
988
+ /**
989
+ * Represents any primitive JSON value
990
+ */
991
+ export type PrimitiveJSONValue = /* Represents any primitive JSON value */ string | boolean | number | {
992
+ [name: string]: any;
993
+ } | any[];
994
+ export interface ReceivedEmailTrigger {
995
+ type: "received_email";
996
+ configuration: {
997
+ message_type?: "RECEIVED";
998
+ };
999
+ }
1000
+ export interface RelationAttribute {
1001
+ /**
1002
+ * Target attribute to store the relation in
1003
+ */
1004
+ target: string;
1005
+ /**
1006
+ * Relation tags (labels) to set for the stored relations
1007
+ */
1008
+ target_tags?: string[];
1009
+ /**
1010
+ * Include all relation tags (labels) present on the main entity relation
1011
+ */
1012
+ target_tags_include_source?: boolean;
1013
+ /**
1014
+ * A filter to identify which source entities to pick as relations from main entity
1015
+ */
1016
+ source_filter?: {
1017
+ /**
1018
+ * Limit relations to maximum number (default, all matched relations)
1019
+ */
1020
+ limit?: number;
1021
+ /**
1022
+ * Filter by specific schema
1023
+ */
1024
+ schema?: string;
1025
+ /**
1026
+ * Filter by a specific relation attribute on the main entity
1027
+ */
1028
+ attribute?: string;
1029
+ /**
1030
+ * Filter by relation tag (label) on the main entity
1031
+ */
1032
+ relation_tag?: string;
1033
+ /**
1034
+ * Filter by a specific tag on the related entity
1035
+ */
1036
+ tag?: string;
1037
+ /**
1038
+ * Picks main entity as relation (overrides other filters)
1039
+ */
1040
+ self?: boolean;
1041
+ };
1042
+ related_to?: {
1043
+ [name: string]: any;
1044
+ };
1045
+ mode: "append" | "prepend" | "set";
1046
+ }
1047
+ export interface SearchAutomationsResp {
1048
+ total: number;
1049
+ results: AutomationFlow[];
1050
+ }
1051
+ /**
1052
+ * example:
1053
+ * {
1054
+ * "id": "25jga0-gkasl26-0asg-908sgaj2",
1055
+ * "name": "Send Email",
1056
+ * "type": "send-email",
1057
+ * "config": {
1058
+ * "email_template_id": "gasj02-29ug9asgm-29t9gsaghg2g-pkmbhx2",
1059
+ * "language_code": "de"
1060
+ * }
1061
+ * }
1062
+ */
1063
+ export interface SendEmailAction {
1064
+ id?: /**
1065
+ * example:
1066
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
1067
+ */
1068
+ AutomationActionId;
1069
+ flow_action_id?: /**
1070
+ * example:
1071
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
1072
+ */
1073
+ AutomationActionId;
1074
+ name?: string;
1075
+ type?: "send-email";
1076
+ config?: SendEmailActionConfig;
1077
+ execution_status?: ExecutionStatus;
1078
+ started_at?: string;
1079
+ updated_at?: string;
1080
+ /**
1081
+ * Whether to stop execution in a failed state if this action fails
1082
+ */
1083
+ allow_failure?: boolean;
1084
+ /**
1085
+ * Flag indicating whether the action was created automatically or manually
1086
+ */
1087
+ created_automatically?: boolean;
1088
+ /**
1089
+ * example:
1090
+ * {}
1091
+ */
1092
+ outputs?: {
1093
+ [name: string]: any;
1094
+ };
1095
+ error_output?: ErrorOutput;
1096
+ }
1097
+ export interface SendEmailActionConfig {
1098
+ email_template_id?: string;
1099
+ language_code?: "de" | "en";
1100
+ /**
1101
+ * Include extra file attachments in sent email.
1102
+ *
1103
+ * Attachments in email template will be sent regardless of this configuration.
1104
+ *
1105
+ */
1106
+ attachments?: {
1107
+ /**
1108
+ * Specify filters to match file entities related to main entity
1109
+ */
1110
+ source_filter?: {
1111
+ /**
1112
+ * Limit files to maximum number (default, all matched file relations)
1113
+ * example:
1114
+ * 1
1115
+ */
1116
+ limit?: number;
1117
+ /**
1118
+ * Match by filename. Regex syntax supported
1119
+ * example:
1120
+ * .*
1121
+ */
1122
+ filename_regex?: string;
1123
+ /**
1124
+ * Filter by a specific relation attribute on the main entity
1125
+ * example:
1126
+ * _files
1127
+ */
1128
+ attribute?: string;
1129
+ /**
1130
+ * Filter by relation tag (label) on the main entity
1131
+ * example:
1132
+ * contract
1133
+ */
1134
+ relation_tag?: string;
1135
+ /**
1136
+ * Filter by a specific tag on the related file entity
1137
+ */
1138
+ tag?: string;
1139
+ /**
1140
+ * Filter by a specific document type (e.g. document)
1141
+ */
1142
+ document_type?: "document" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown";
1143
+ /**
1144
+ * Picks main entity as file (only works if source entity is a file)
1145
+ */
1146
+ self?: boolean;
1147
+ };
1148
+ }[];
1149
+ }
1150
+ export interface SetValueMapper {
1151
+ mode: /**
1152
+ * - copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.
1153
+ *
1154
+ */
1155
+ MappingAttributeMode;
1156
+ /**
1157
+ * JSON like target path for the attribute. Eg. last_name
1158
+ */
1159
+ target: string;
1160
+ /**
1161
+ * Any value to be set: string, number, string[], number[], JSON object, etc. It will override existing values, if any.
1162
+ *
1163
+ */
1164
+ value: any;
1165
+ }
1166
+ export interface StartExecutionRequest {
1167
+ entity_id?: /**
1168
+ * example:
1169
+ * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
1170
+ */
1171
+ EntityId;
1172
+ flow_id?: /**
1173
+ * example:
1174
+ * 7791b04a-16d2-44a2-9af9-2d59c25c512f
1175
+ */
1176
+ AutomationFlowId;
1177
+ }
1178
+ /**
1179
+ * example:
1180
+ * {
1181
+ * "source": "billing_contact.email",
1182
+ * "comparison": "exists"
1183
+ * }
1184
+ */
1185
+ export interface TriggerCondition {
1186
+ source: string;
1187
+ comparison: Comparison;
1188
+ value?: string | number | string[] | number[];
1189
+ }
1190
+ /**
1191
+ * example:
1192
+ * {
1193
+ * "id": "2520gja-2sgmsaga-0asg-822jgal",
1194
+ * "name": "Trigger Webhook",
1195
+ * "type": "trigger-webhook",
1196
+ * "config": {
1197
+ * "entity_sources": [
1198
+ * "contact",
1199
+ * "account"
1200
+ * ],
1201
+ * "target_webhook_id": "25jg9ag2ga"
1202
+ * }
1203
+ * }
1204
+ */
1205
+ export interface TriggerWebhookAction {
1206
+ id?: /**
1207
+ * example:
1208
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
1209
+ */
1210
+ AutomationActionId;
1211
+ flow_action_id?: /**
1212
+ * example:
1213
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
1214
+ */
1215
+ AutomationActionId;
1216
+ name?: string;
1217
+ type?: "trigger-webhook";
1218
+ config?: TriggerWebhookActionConfig;
1219
+ execution_status?: ExecutionStatus;
1220
+ started_at?: string;
1221
+ updated_at?: string;
1222
+ /**
1223
+ * Whether to stop execution in a failed state if this action fails
1224
+ */
1225
+ allow_failure?: boolean;
1226
+ /**
1227
+ * Flag indicating whether the action was created automatically or manually
1228
+ */
1229
+ created_automatically?: boolean;
1230
+ /**
1231
+ * example:
1232
+ * {}
1233
+ */
1234
+ outputs?: {
1235
+ [name: string]: any;
1236
+ };
1237
+ error_output?: ErrorOutput;
1238
+ }
1239
+ export interface TriggerWebhookActionConfig {
1240
+ entity_sources?: string[];
1241
+ target_webhook_id?: string;
1242
+ }
1243
+ /**
1244
+ * example:
1245
+ * {
1246
+ * "id": "08g988-ojt2jtaga-292h-8978gsaga",
1247
+ * "name": "Trigger Workflow",
1248
+ * "type": "trigger-workflow",
1249
+ * "config": {
1250
+ * "target_workflow": "mfptvUMH",
1251
+ * "conditions": [
1252
+ * {
1253
+ * "schema": "ivy-opportunity",
1254
+ * "source": "customer.type",
1255
+ * "comparison": "equals",
1256
+ * "value": "PRIVATE"
1257
+ * }
1258
+ * ],
1259
+ * "assign_steps": [
1260
+ * {
1261
+ * "step_name": "Lead Sales",
1262
+ * "user_ids": [
1263
+ * 10010729
1264
+ * ]
1265
+ * },
1266
+ * {
1267
+ * "step_name": "Operations",
1268
+ * "user_ids": [
1269
+ * 10010728,
1270
+ * 10010729
1271
+ * ]
1272
+ * }
1273
+ * ]
1274
+ * }
1275
+ * }
1276
+ */
1277
+ export interface TriggerWorkflowAction {
1278
+ id?: /**
1279
+ * example:
1280
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
1281
+ */
1282
+ AutomationActionId;
1283
+ flow_action_id?: /**
1284
+ * example:
1285
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
1286
+ */
1287
+ AutomationActionId;
1288
+ name?: string;
1289
+ type?: "trigger-workflow";
1290
+ config?: TriggerWorkflowConfig;
1291
+ execution_status?: ExecutionStatus;
1292
+ started_at?: string;
1293
+ updated_at?: string;
1294
+ /**
1295
+ * Whether to stop execution in a failed state if this action fails
1296
+ */
1297
+ allow_failure?: boolean;
1298
+ /**
1299
+ * Flag indicating whether the action was created automatically or manually
1300
+ */
1301
+ created_automatically?: boolean;
1302
+ /**
1303
+ * example:
1304
+ * {}
1305
+ */
1306
+ outputs?: {
1307
+ [name: string]: any;
1308
+ };
1309
+ error_output?: ErrorOutput;
1310
+ }
1311
+ /**
1312
+ * example:
1313
+ * {
1314
+ * "source": "email",
1315
+ * "comparison": "equals",
1316
+ * "schema": "contact",
1317
+ * "value": "test@epilot.cloud"
1318
+ * }
1319
+ */
1320
+ export interface TriggerWorkflowCondition {
1321
+ source: string;
1322
+ comparison: Comparison;
1323
+ value?: string | number | string[] | number[];
1324
+ schema: string;
1325
+ }
1326
+ export interface TriggerWorkflowConfig {
1327
+ target_workflow?: string;
1328
+ conditions?: /**
1329
+ * example:
1330
+ * {
1331
+ * "source": "email",
1332
+ * "comparison": "equals",
1333
+ * "schema": "contact",
1334
+ * "value": "test@epilot.cloud"
1335
+ * }
1336
+ */
1337
+ TriggerWorkflowCondition[];
1338
+ assignees?: string[];
1339
+ assign_steps?: /**
1340
+ * example:
1341
+ * [
1342
+ * {
1343
+ * "step_id": "xyh9t2ha",
1344
+ * "step_name": "Lead Sales",
1345
+ * "user_ids": [
1346
+ * 10010729
1347
+ * ]
1348
+ * },
1349
+ * {
1350
+ * "step_id": "29jgasl",
1351
+ * "step_name": "Operations",
1352
+ * "user_ids": [
1353
+ * 10010728,
1354
+ * 10010729
1355
+ * ]
1356
+ * }
1357
+ * ]
1358
+ */
1359
+ AssignUsersToStep[];
1360
+ }
1361
+ }
1362
+ }
1363
+ declare namespace Paths {
1364
+ namespace CancelExecution {
1365
+ namespace Parameters {
1366
+ export type ExecutionId = /**
1367
+ * example:
1368
+ * 9baf184f-bc81-4128-bca3-d974c90a12c4
1369
+ */
1370
+ Components.Schemas.AutomationExecutionId;
1371
+ }
1372
+ export interface PathParameters {
1373
+ execution_id: Parameters.ExecutionId;
1374
+ }
1375
+ namespace Responses {
1376
+ export type $200 = Components.Schemas.AutomationExecution;
1377
+ }
1378
+ }
1379
+ namespace CreateFlow {
1380
+ export type RequestBody = Components.Schemas.AutomationFlow;
1381
+ namespace Responses {
1382
+ export type $201 = Components.Schemas.AutomationFlow;
1383
+ }
1384
+ }
1385
+ namespace DeleteFlow {
1386
+ namespace Parameters {
1387
+ export type FlowId = /**
1388
+ * example:
1389
+ * 7791b04a-16d2-44a2-9af9-2d59c25c512f
1390
+ */
1391
+ Components.Schemas.AutomationFlowId;
1392
+ }
1393
+ export interface PathParameters {
1394
+ flow_id: Parameters.FlowId;
1395
+ }
1396
+ namespace Responses {
1397
+ export type $200 = Components.Schemas.AutomationFlow;
1398
+ }
1399
+ }
1400
+ namespace GetExecution {
1401
+ namespace Parameters {
1402
+ export type ExecutionId = /**
1403
+ * example:
1404
+ * 9baf184f-bc81-4128-bca3-d974c90a12c4
1405
+ */
1406
+ Components.Schemas.AutomationExecutionId;
1407
+ }
1408
+ export interface PathParameters {
1409
+ execution_id: Parameters.ExecutionId;
1410
+ }
1411
+ namespace Responses {
1412
+ export type $200 = Components.Schemas.AutomationExecution;
1413
+ }
1414
+ }
1415
+ namespace GetExecutions {
1416
+ namespace Parameters {
1417
+ export type EntityId = /**
1418
+ * example:
1419
+ * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
1420
+ */
1421
+ Components.Schemas.EntityId;
1422
+ export type From = number;
1423
+ export type Size = number;
1424
+ }
1425
+ export interface QueryParameters {
1426
+ entity_id?: Parameters.EntityId;
1427
+ size?: Parameters.Size;
1428
+ from?: Parameters.From;
1429
+ }
1430
+ namespace Responses {
1431
+ export type $200 = Components.Schemas.GetExecutionsResp;
1432
+ }
1433
+ }
1434
+ namespace GetFlow {
1435
+ namespace Parameters {
1436
+ export type FlowId = /**
1437
+ * example:
1438
+ * 7791b04a-16d2-44a2-9af9-2d59c25c512f
1439
+ */
1440
+ Components.Schemas.AutomationFlowId;
1441
+ }
1442
+ export interface PathParameters {
1443
+ flow_id: Parameters.FlowId;
1444
+ }
1445
+ namespace Responses {
1446
+ export type $200 = Components.Schemas.AutomationFlow;
1447
+ }
1448
+ }
1449
+ namespace PutFlow {
1450
+ namespace Parameters {
1451
+ export type FlowId = /**
1452
+ * example:
1453
+ * 7791b04a-16d2-44a2-9af9-2d59c25c512f
1454
+ */
1455
+ Components.Schemas.AutomationFlowId;
1456
+ }
1457
+ export interface PathParameters {
1458
+ flow_id: Parameters.FlowId;
1459
+ }
1460
+ export type RequestBody = Components.Schemas.AutomationFlow;
1461
+ namespace Responses {
1462
+ export type $200 = Components.Schemas.AutomationFlow;
1463
+ }
1464
+ }
1465
+ namespace RetriggerAction {
1466
+ namespace Parameters {
1467
+ export type ActionId = /**
1468
+ * example:
1469
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
1470
+ */
1471
+ Components.Schemas.AutomationActionId;
1472
+ export type ExecutionId = /**
1473
+ * example:
1474
+ * 9baf184f-bc81-4128-bca3-d974c90a12c4
1475
+ */
1476
+ Components.Schemas.AutomationExecutionId;
1477
+ }
1478
+ export interface PathParameters {
1479
+ execution_id: Parameters.ExecutionId;
1480
+ action_id: Parameters.ActionId;
1481
+ }
1482
+ namespace Responses {
1483
+ export interface $200 {
1484
+ }
1485
+ }
1486
+ }
1487
+ namespace SearchFlows {
1488
+ namespace Parameters {
1489
+ export type From = number;
1490
+ /**
1491
+ * example:
1492
+ * submission
1493
+ */
1494
+ export type Schema = string;
1495
+ export type Size = number;
1496
+ /**
1497
+ * example:
1498
+ * 600945fe-212e-4b97-acf7-391d64648384
1499
+ */
1500
+ export type TriggerSourceId = string;
1501
+ }
1502
+ export interface QueryParameters {
1503
+ schema?: /**
1504
+ * example:
1505
+ * submission
1506
+ */
1507
+ Parameters.Schema;
1508
+ size?: Parameters.Size;
1509
+ from?: Parameters.From;
1510
+ trigger_source_id?: /**
1511
+ * example:
1512
+ * 600945fe-212e-4b97-acf7-391d64648384
1513
+ */
1514
+ Parameters.TriggerSourceId;
1515
+ }
1516
+ namespace Responses {
1517
+ export type $200 = Components.Schemas.SearchAutomationsResp;
1518
+ }
1519
+ }
1520
+ namespace StartExecution {
1521
+ export type RequestBody = Components.Schemas.StartExecutionRequest;
1522
+ namespace Responses {
1523
+ export type $201 = Components.Schemas.AutomationExecution;
1524
+ }
1525
+ }
1526
+ }
1527
+
1528
+ export interface OperationMethods {
1529
+ /**
1530
+ * searchFlows - searchFlows
1531
+ *
1532
+ * Search available automation flows
1533
+ */
1534
+ 'searchFlows'(
1535
+ parameters?: Parameters<Paths.SearchFlows.QueryParameters> | null,
1536
+ data?: any,
1537
+ config?: AxiosRequestConfig
1538
+ ): OperationResponse<Paths.SearchFlows.Responses.$200>
1539
+ /**
1540
+ * createFlow - createFlow
1541
+ *
1542
+ * Create new automation flow
1543
+ */
1544
+ 'createFlow'(
1545
+ parameters?: Parameters<UnknownParamsObject> | null,
1546
+ data?: Paths.CreateFlow.RequestBody,
1547
+ config?: AxiosRequestConfig
1548
+ ): OperationResponse<Paths.CreateFlow.Responses.$201>
1549
+ /**
1550
+ * getFlow - getFlow
1551
+ *
1552
+ * List available automation flows
1553
+ */
1554
+ 'getFlow'(
1555
+ parameters?: Parameters<Paths.GetFlow.PathParameters> | null,
1556
+ data?: any,
1557
+ config?: AxiosRequestConfig
1558
+ ): OperationResponse<Paths.GetFlow.Responses.$200>
1559
+ /**
1560
+ * putFlow - putFlow
1561
+ *
1562
+ * Update automation flow by id
1563
+ */
1564
+ 'putFlow'(
1565
+ parameters?: Parameters<Paths.PutFlow.PathParameters> | null,
1566
+ data?: Paths.PutFlow.RequestBody,
1567
+ config?: AxiosRequestConfig
1568
+ ): OperationResponse<Paths.PutFlow.Responses.$200>
1569
+ /**
1570
+ * deleteFlow - deleteFlow
1571
+ *
1572
+ * Update automation flow by id
1573
+ */
1574
+ 'deleteFlow'(
1575
+ parameters?: Parameters<Paths.DeleteFlow.PathParameters> | null,
1576
+ data?: any,
1577
+ config?: AxiosRequestConfig
1578
+ ): OperationResponse<Paths.DeleteFlow.Responses.$200>
1579
+ /**
1580
+ * getExecutions - getExecutions
1581
+ *
1582
+ * List automation executions
1583
+ */
1584
+ 'getExecutions'(
1585
+ parameters?: Parameters<Paths.GetExecutions.QueryParameters> | null,
1586
+ data?: any,
1587
+ config?: AxiosRequestConfig
1588
+ ): OperationResponse<Paths.GetExecutions.Responses.$200>
1589
+ /**
1590
+ * startExecution - startExecution
1591
+ *
1592
+ * Start new automation execution
1593
+ */
1594
+ 'startExecution'(
1595
+ parameters?: Parameters<UnknownParamsObject> | null,
1596
+ data?: Paths.StartExecution.RequestBody,
1597
+ config?: AxiosRequestConfig
1598
+ ): OperationResponse<Paths.StartExecution.Responses.$201>
1599
+ /**
1600
+ * getExecution - getExecution
1601
+ *
1602
+ * Get automation execution
1603
+ */
1604
+ 'getExecution'(
1605
+ parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
1606
+ data?: any,
1607
+ config?: AxiosRequestConfig
1608
+ ): OperationResponse<Paths.GetExecution.Responses.$200>
1609
+ /**
1610
+ * cancelExecution - cancelExecution
1611
+ *
1612
+ * Cancel automation execution
1613
+ */
1614
+ 'cancelExecution'(
1615
+ parameters?: Parameters<Paths.CancelExecution.PathParameters> | null,
1616
+ data?: any,
1617
+ config?: AxiosRequestConfig
1618
+ ): OperationResponse<Paths.CancelExecution.Responses.$200>
1619
+ /**
1620
+ * retriggerAction - retriggerAction
1621
+ *
1622
+ * Retrigger a specific automation execution action
1623
+ */
1624
+ 'retriggerAction'(
1625
+ parameters?: Parameters<Paths.RetriggerAction.PathParameters> | null,
1626
+ data?: any,
1627
+ config?: AxiosRequestConfig
1628
+ ): OperationResponse<Paths.RetriggerAction.Responses.$200>
1629
+ }
1630
+
1631
+ export interface PathsDictionary {
1632
+ ['/v1/automation/flows']: {
1633
+ /**
1634
+ * searchFlows - searchFlows
1635
+ *
1636
+ * Search available automation flows
1637
+ */
1638
+ 'get'(
1639
+ parameters?: Parameters<Paths.SearchFlows.QueryParameters> | null,
1640
+ data?: any,
1641
+ config?: AxiosRequestConfig
1642
+ ): OperationResponse<Paths.SearchFlows.Responses.$200>
1643
+ /**
1644
+ * createFlow - createFlow
1645
+ *
1646
+ * Create new automation flow
1647
+ */
1648
+ 'post'(
1649
+ parameters?: Parameters<UnknownParamsObject> | null,
1650
+ data?: Paths.CreateFlow.RequestBody,
1651
+ config?: AxiosRequestConfig
1652
+ ): OperationResponse<Paths.CreateFlow.Responses.$201>
1653
+ }
1654
+ ['/v1/automation/flows/{flow_id}']: {
1655
+ /**
1656
+ * getFlow - getFlow
1657
+ *
1658
+ * List available automation flows
1659
+ */
1660
+ 'get'(
1661
+ parameters?: Parameters<Paths.GetFlow.PathParameters> | null,
1662
+ data?: any,
1663
+ config?: AxiosRequestConfig
1664
+ ): OperationResponse<Paths.GetFlow.Responses.$200>
1665
+ /**
1666
+ * putFlow - putFlow
1667
+ *
1668
+ * Update automation flow by id
1669
+ */
1670
+ 'put'(
1671
+ parameters?: Parameters<Paths.PutFlow.PathParameters> | null,
1672
+ data?: Paths.PutFlow.RequestBody,
1673
+ config?: AxiosRequestConfig
1674
+ ): OperationResponse<Paths.PutFlow.Responses.$200>
1675
+ /**
1676
+ * deleteFlow - deleteFlow
1677
+ *
1678
+ * Update automation flow by id
1679
+ */
1680
+ 'delete'(
1681
+ parameters?: Parameters<Paths.DeleteFlow.PathParameters> | null,
1682
+ data?: any,
1683
+ config?: AxiosRequestConfig
1684
+ ): OperationResponse<Paths.DeleteFlow.Responses.$200>
1685
+ }
1686
+ ['/v1/automation/executions']: {
1687
+ /**
1688
+ * getExecutions - getExecutions
1689
+ *
1690
+ * List automation executions
1691
+ */
1692
+ 'get'(
1693
+ parameters?: Parameters<Paths.GetExecutions.QueryParameters> | null,
1694
+ data?: any,
1695
+ config?: AxiosRequestConfig
1696
+ ): OperationResponse<Paths.GetExecutions.Responses.$200>
1697
+ /**
1698
+ * startExecution - startExecution
1699
+ *
1700
+ * Start new automation execution
1701
+ */
1702
+ 'post'(
1703
+ parameters?: Parameters<UnknownParamsObject> | null,
1704
+ data?: Paths.StartExecution.RequestBody,
1705
+ config?: AxiosRequestConfig
1706
+ ): OperationResponse<Paths.StartExecution.Responses.$201>
1707
+ }
1708
+ ['/v1/automation/executions/{execution_id}']: {
1709
+ /**
1710
+ * getExecution - getExecution
1711
+ *
1712
+ * Get automation execution
1713
+ */
1714
+ 'get'(
1715
+ parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
1716
+ data?: any,
1717
+ config?: AxiosRequestConfig
1718
+ ): OperationResponse<Paths.GetExecution.Responses.$200>
1719
+ /**
1720
+ * cancelExecution - cancelExecution
1721
+ *
1722
+ * Cancel automation execution
1723
+ */
1724
+ 'delete'(
1725
+ parameters?: Parameters<Paths.CancelExecution.PathParameters> | null,
1726
+ data?: any,
1727
+ config?: AxiosRequestConfig
1728
+ ): OperationResponse<Paths.CancelExecution.Responses.$200>
1729
+ }
1730
+ ['/v1/automation/executions/{execution_id}/{action_id}/retrigger']: {
1731
+ /**
1732
+ * retriggerAction - retriggerAction
1733
+ *
1734
+ * Retrigger a specific automation execution action
1735
+ */
1736
+ 'post'(
1737
+ parameters?: Parameters<Paths.RetriggerAction.PathParameters> | null,
1738
+ data?: any,
1739
+ config?: AxiosRequestConfig
1740
+ ): OperationResponse<Paths.RetriggerAction.Responses.$200>
1741
+ }
1742
+ }
1743
+
1744
+ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>