@epilot/journey-client 0.4.4 → 0.4.6

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,1564 @@
1
+ /* eslint-disable */
2
+
3
+ import type {
4
+ OpenAPIClient,
5
+ Parameters,
6
+ UnknownParamsObject,
7
+ OperationResponse,
8
+ AxiosRequestConfig,
9
+ } from 'openapi-client-axios';
10
+
11
+ declare namespace Components {
12
+ namespace Schemas {
13
+ /**
14
+ * A single button option data
15
+ */
16
+ export interface ButtonOption {
17
+ /**
18
+ * The value of the button
19
+ * example:
20
+ * Button Hidden Value
21
+ */
22
+ value?: string;
23
+ /**
24
+ * The label of the button
25
+ * example:
26
+ * Button Label
27
+ */
28
+ label?: string;
29
+ }
30
+ export interface GenerateDocumentRequest {
31
+ /**
32
+ * Entity id for the template being used
33
+ * example:
34
+ * 1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p
35
+ */
36
+ file_id: string;
37
+ /**
38
+ * Custom values for variables in the template. Takes the higher precedence than others.
39
+ */
40
+ context_data: {
41
+ additionalProperties?: string;
42
+ };
43
+ /**
44
+ * Language code for the document
45
+ * example:
46
+ * de
47
+ */
48
+ language?: string;
49
+ }
50
+ export interface GenerateDocumentResponse {
51
+ job_id?: string; // uuid
52
+ /**
53
+ * Status of the job
54
+ */
55
+ job_status?: "STARTED" | "PROCESSING" | "SUCCESS" | "FAILED";
56
+ /**
57
+ * A message explaining the progress
58
+ */
59
+ message?: string;
60
+ pdf_output?: {
61
+ /**
62
+ * Pre-signed S3 GET URL for PDF preview
63
+ * example:
64
+ * https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf
65
+ */
66
+ preview_url?: string;
67
+ /**
68
+ * example:
69
+ * {
70
+ * "s3ref": {
71
+ * "bucket": "document-api-preview-prod",
72
+ * "key": "preview/my-template.pdf"
73
+ * }
74
+ * }
75
+ */
76
+ output_document?: {
77
+ /**
78
+ * Generated document filename for PDF
79
+ * example:
80
+ * my-template-OR-001.pdf
81
+ */
82
+ filename?: string;
83
+ s3ref?: S3Reference;
84
+ };
85
+ };
86
+ docx_output?: {
87
+ /**
88
+ * Pre-signed S3 GET URL for DOCX preview
89
+ * example:
90
+ * https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx
91
+ */
92
+ preview_url?: string;
93
+ /**
94
+ * example:
95
+ * {
96
+ * "s3ref": {
97
+ * "bucket": "document-api-preview-prod",
98
+ * "key": "preview/my-template.docx"
99
+ * }
100
+ * }
101
+ */
102
+ output_document?: {
103
+ /**
104
+ * Generated document filename for DOCX
105
+ * example:
106
+ * my-template-OR-001.docx
107
+ */
108
+ filename?: string;
109
+ s3ref?: S3Reference;
110
+ };
111
+ };
112
+ /**
113
+ * List of variables and its corresponding replaced values from the document template
114
+ */
115
+ variable_payload?: {
116
+ additionalProperties?: string;
117
+ };
118
+ template_settings?: /* Template Settings for document generation */ TemplateSettings;
119
+ }
120
+ export interface GetJourneysResponse {
121
+ }
122
+ export interface GetSettingsForJourney {
123
+ /**
124
+ * ID of an organization in epilot platform
125
+ * example:
126
+ * 739224
127
+ */
128
+ organizationId?: string;
129
+ /**
130
+ * The canary flag controls update frequency of epilot application: when true, customers receive continuous updates; when false, they only get updates with new version releases.
131
+ * example:
132
+ * true
133
+ */
134
+ canary?: boolean;
135
+ }
136
+ export interface Journey {
137
+ [name: string]: any;
138
+ journeyId?: string;
139
+ organizationId: string;
140
+ brandId?: string;
141
+ name: string;
142
+ steps: {
143
+ showStepName?: boolean | null;
144
+ title?: string | null;
145
+ subTitle?: string | null;
146
+ showStepSubtitle?: boolean | null;
147
+ showStepper?: boolean | null;
148
+ showStepperLabels?: boolean | null;
149
+ hideNextButton?: boolean | null;
150
+ name: string;
151
+ stepId?: string;
152
+ schema: any;
153
+ uischema: any;
154
+ maxWidth?: "small" | "medium" | "large" | "extra large";
155
+ }[];
156
+ design?: {
157
+ logoUrl?: string | null;
158
+ theme?: {
159
+ [name: string]: any;
160
+ };
161
+ designTokens?: {
162
+ [key: string]: any;
163
+ };
164
+ };
165
+ rules?: {
166
+ type: "inject" | "injectWithKey";
167
+ sourceType: "journey" | "step" | "block";
168
+ source: string;
169
+ target: string;
170
+ }[];
171
+ logics?: {
172
+ autoGeneratedId?: string;
173
+ conditions: string[];
174
+ actions: string[];
175
+ }[];
176
+ contextSchema?: {
177
+ /**
178
+ * Unique identifier for the context schema item
179
+ */
180
+ id?: string; // uuid
181
+ /**
182
+ * Type of the parameter. It could be either an entity slug, or a text
183
+ */
184
+ type: string;
185
+ /**
186
+ * Expected key to be received in the context
187
+ */
188
+ paramKey: string;
189
+ /**
190
+ * Indicates if a value is expected to be provided
191
+ */
192
+ isRequired?: boolean;
193
+ /**
194
+ * If type is not text, we can instruct the journey to fetch the entity id we receive as value
195
+ */
196
+ shouldLoadEntity?: boolean;
197
+ }[];
198
+ /**
199
+ * Journey Template
200
+ * example:
201
+ * Sales template (Premium)
202
+ */
203
+ journey_type?: string;
204
+ settings?: {
205
+ embedOptions?: {
206
+ mode?: "full-screen" | "inline";
207
+ lang?: "de" | "en" | "fr";
208
+ width?: string;
209
+ topBar?: boolean;
210
+ scrollToTop?: boolean;
211
+ button?: {
212
+ text?: string | null;
213
+ align?: "left" | "center" | "right";
214
+ };
215
+ };
216
+ safeModeAutomation?: boolean;
217
+ /**
218
+ * DEPRECATED - This API will return hardcoded value of false. Please note that this field is internal to epilot and should not be used by external clients. If you wish to get the canary flag, please use the /v1/journey/{id}/settings API.
219
+ */
220
+ canary?: boolean;
221
+ designId: string;
222
+ templateId?: string;
223
+ entityId?: string | null;
224
+ mappingsAutomationId?: string;
225
+ targetedCustomer?: string;
226
+ description?: string | null;
227
+ organizationSettings?: {
228
+ [name: string]: boolean;
229
+ } | null;
230
+ publicToken?: string | null;
231
+ runtimeEntities?: ("ORDER" | "OPPORTUNITY")[];
232
+ filePurposes?: string[];
233
+ entityTags?: string[];
234
+ /**
235
+ * @deprecated Use addressSuggestionsFileId instead
236
+ */
237
+ addressSuggestionsFileUrl?: string | null;
238
+ addressSuggestionsFileId?: string | null;
239
+ /**
240
+ * This property is deprecated and will be removed in a future version
241
+ */
242
+ useNewDesign?: boolean;
243
+ /**
244
+ * If true, some journey input labels are in Austrian format
245
+ */
246
+ useAustrianLabels?: boolean;
247
+ /**
248
+ * If true, the journey shows an icon to toggle dark mode
249
+ */
250
+ enableDarkMode?: boolean;
251
+ accessMode?: "PUBLIC" | "PRIVATE";
252
+ isPublished?: boolean;
253
+ status?: string;
254
+ isActive?: boolean;
255
+ savingProgress?: {
256
+ savingMode?: "auto" | "local" | "remote" | "none";
257
+ supportedVersion?: number;
258
+ };
259
+ /**
260
+ * If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
261
+ */
262
+ thirdPartyCookies?: boolean;
263
+ };
264
+ validationRules?: /**
265
+ * References to validation rules organized by blocks and fields.
266
+ * Maps block IDs to either rule IDs (for block-level rules) or rule references (for field-level rules).
267
+ *
268
+ * example:
269
+ * {
270
+ * "block1": "rule123",
271
+ * "block2": {
272
+ * "field1": "rule456",
273
+ * "field2": "rule789"
274
+ * }
275
+ * }
276
+ */
277
+ ValidationRuleRef;
278
+ createdBy?: string;
279
+ /**
280
+ * If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
281
+ */
282
+ __lastModifiedAt?: string | null;
283
+ createdAt: string;
284
+ lastModifiedAt: string;
285
+ deletedAt?: string;
286
+ version: number;
287
+ revisions: number;
288
+ featureFlags?: {
289
+ [name: string]: any;
290
+ };
291
+ }
292
+ export interface JourneyAuditInfo {
293
+ createdAt: string;
294
+ lastModifiedAt: string;
295
+ deletedAt?: string;
296
+ version: number;
297
+ revisions: number;
298
+ }
299
+ export interface JourneyCreationRequest {
300
+ [name: string]: any;
301
+ journeyId?: string;
302
+ organizationId: string;
303
+ brandId?: string;
304
+ name: string;
305
+ steps: {
306
+ showStepName?: boolean | null;
307
+ title?: string | null;
308
+ subTitle?: string | null;
309
+ showStepSubtitle?: boolean | null;
310
+ showStepper?: boolean | null;
311
+ showStepperLabels?: boolean | null;
312
+ hideNextButton?: boolean | null;
313
+ name: string;
314
+ stepId?: string;
315
+ schema: any;
316
+ uischema: any;
317
+ maxWidth?: "small" | "medium" | "large" | "extra large";
318
+ }[];
319
+ design?: {
320
+ logoUrl?: string | null;
321
+ theme?: {
322
+ [name: string]: any;
323
+ };
324
+ designTokens?: {
325
+ [key: string]: any;
326
+ };
327
+ };
328
+ rules?: {
329
+ type: "inject" | "injectWithKey";
330
+ sourceType: "journey" | "step" | "block";
331
+ source: string;
332
+ target: string;
333
+ }[];
334
+ logics?: {
335
+ autoGeneratedId?: string;
336
+ conditions: string[];
337
+ actions: string[];
338
+ }[];
339
+ contextSchema?: {
340
+ /**
341
+ * Unique identifier for the context schema item
342
+ */
343
+ id?: string; // uuid
344
+ /**
345
+ * Type of the parameter. It could be either an entity slug, or a text
346
+ */
347
+ type: string;
348
+ /**
349
+ * Expected key to be received in the context
350
+ */
351
+ paramKey: string;
352
+ /**
353
+ * Indicates if a value is expected to be provided
354
+ */
355
+ isRequired?: boolean;
356
+ /**
357
+ * If type is not text, we can instruct the journey to fetch the entity id we receive as value
358
+ */
359
+ shouldLoadEntity?: boolean;
360
+ }[];
361
+ /**
362
+ * Journey Template
363
+ * example:
364
+ * Sales template (Premium)
365
+ */
366
+ journey_type?: string;
367
+ settings?: {
368
+ embedOptions?: {
369
+ mode?: "full-screen" | "inline";
370
+ lang?: "de" | "en" | "fr";
371
+ width?: string;
372
+ topBar?: boolean;
373
+ scrollToTop?: boolean;
374
+ button?: {
375
+ text?: string | null;
376
+ align?: "left" | "center" | "right";
377
+ };
378
+ };
379
+ safeModeAutomation?: boolean;
380
+ /**
381
+ * DEPRECATED - This API will return hardcoded value of false. Please note that this field is internal to epilot and should not be used by external clients. If you wish to get the canary flag, please use the /v1/journey/{id}/settings API.
382
+ */
383
+ canary?: boolean;
384
+ designId: string;
385
+ templateId?: string;
386
+ entityId?: string | null;
387
+ mappingsAutomationId?: string;
388
+ targetedCustomer?: string;
389
+ description?: string | null;
390
+ organizationSettings?: {
391
+ [name: string]: boolean;
392
+ } | null;
393
+ publicToken?: string | null;
394
+ runtimeEntities?: ("ORDER" | "OPPORTUNITY")[];
395
+ filePurposes?: string[];
396
+ entityTags?: string[];
397
+ /**
398
+ * @deprecated Use addressSuggestionsFileId instead
399
+ */
400
+ addressSuggestionsFileUrl?: string | null;
401
+ addressSuggestionsFileId?: string | null;
402
+ /**
403
+ * This property is deprecated and will be removed in a future version
404
+ */
405
+ useNewDesign?: boolean;
406
+ /**
407
+ * If true, some journey input labels are in Austrian format
408
+ */
409
+ useAustrianLabels?: boolean;
410
+ /**
411
+ * If true, the journey shows an icon to toggle dark mode
412
+ */
413
+ enableDarkMode?: boolean;
414
+ accessMode?: "PUBLIC" | "PRIVATE";
415
+ isPublished?: boolean;
416
+ status?: string;
417
+ isActive?: boolean;
418
+ savingProgress?: {
419
+ savingMode?: "auto" | "local" | "remote" | "none";
420
+ supportedVersion?: number;
421
+ };
422
+ /**
423
+ * If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
424
+ */
425
+ thirdPartyCookies?: boolean;
426
+ };
427
+ validationRules?: /**
428
+ * References to validation rules organized by blocks and fields.
429
+ * Maps block IDs to either rule IDs (for block-level rules) or rule references (for field-level rules).
430
+ *
431
+ * example:
432
+ * {
433
+ * "block1": "rule123",
434
+ * "block2": {
435
+ * "field1": "rule456",
436
+ * "field2": "rule789"
437
+ * }
438
+ * }
439
+ */
440
+ ValidationRuleRef;
441
+ createdBy?: string;
442
+ /**
443
+ * If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
444
+ */
445
+ __lastModifiedAt?: string | null;
446
+ }
447
+ export interface JourneyCreationRequestV2 {
448
+ journeyId?: string;
449
+ brandId?: string;
450
+ name: string;
451
+ steps: {
452
+ showStepName?: boolean | null;
453
+ title?: string | null;
454
+ subTitle?: string | null;
455
+ showStepSubtitle?: boolean | null;
456
+ showStepper?: boolean | null;
457
+ showStepperLabels?: boolean | null;
458
+ hideNextButton?: boolean | null;
459
+ name: string;
460
+ stepId?: string;
461
+ schema: any;
462
+ uischema: any;
463
+ maxWidth?: "small" | "medium" | "large" | "extra large";
464
+ }[];
465
+ design?: {
466
+ logoUrl?: string | null;
467
+ theme?: {
468
+ [name: string]: any;
469
+ };
470
+ designTokens?: {
471
+ [key: string]: any;
472
+ };
473
+ };
474
+ rules?: {
475
+ type: "inject" | "injectWithKey";
476
+ sourceType: "journey" | "step" | "block";
477
+ source: string;
478
+ target: string;
479
+ }[];
480
+ logics?: {
481
+ autoGeneratedId?: string;
482
+ conditions: string[];
483
+ actions: string[];
484
+ }[];
485
+ contextSchema?: {
486
+ /**
487
+ * Unique identifier for the context schema item
488
+ */
489
+ id?: string; // uuid
490
+ /**
491
+ * Type of the parameter. It could be either an entity slug, or a text
492
+ */
493
+ type: string;
494
+ /**
495
+ * Expected key to be received in the context
496
+ */
497
+ paramKey: string;
498
+ /**
499
+ * Indicates if a value is expected to be provided
500
+ */
501
+ isRequired?: boolean;
502
+ /**
503
+ * If type is not text, we can instruct the journey to fetch the entity id we receive as value
504
+ */
505
+ shouldLoadEntity?: boolean;
506
+ }[];
507
+ /**
508
+ * Journey Template
509
+ * example:
510
+ * Sales template (Premium)
511
+ */
512
+ journey_type?: string;
513
+ settings?: {
514
+ embedOptions?: {
515
+ mode?: "full-screen" | "inline";
516
+ lang?: "de" | "en" | "fr";
517
+ width?: string;
518
+ topBar?: boolean;
519
+ scrollToTop?: boolean;
520
+ button?: {
521
+ text?: string | null;
522
+ align?: "left" | "center" | "right";
523
+ };
524
+ };
525
+ safeModeAutomation?: boolean;
526
+ designId?: string;
527
+ entityId?: string | null;
528
+ mappingsAutomationId?: string;
529
+ templateId?: string;
530
+ targetedCustomer?: string;
531
+ description?: string | null;
532
+ publicToken?: string | null;
533
+ runtimeEntities?: ("ORDER" | "OPPORTUNITY")[];
534
+ filePurposes?: string[];
535
+ entityTags?: string[];
536
+ /**
537
+ * @deprecated Use addressSuggestionsFileId instead
538
+ */
539
+ addressSuggestionsFileUrl?: string | null;
540
+ addressSuggestionsFileId?: string | null;
541
+ /**
542
+ * This property is deprecated and will be removed in a future version
543
+ */
544
+ useNewDesign?: boolean;
545
+ /**
546
+ * If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
547
+ */
548
+ thirdPartyCookies?: boolean;
549
+ accessMode?: "PUBLIC" | "PRIVATE";
550
+ /**
551
+ * If true, the journey shows an icon to toggle dark mode
552
+ */
553
+ enableDarkMode?: boolean;
554
+ };
555
+ validationRules?: /**
556
+ * References to validation rules organized by blocks and fields.
557
+ * Maps block IDs to either rule IDs (for block-level rules) or rule references (for field-level rules).
558
+ *
559
+ * example:
560
+ * {
561
+ * "block1": "rule123",
562
+ * "block2": {
563
+ * "field1": "rule456",
564
+ * "field2": "rule789"
565
+ * }
566
+ * }
567
+ */
568
+ ValidationRuleRef;
569
+ /**
570
+ * Manifest/Blueprint ID used to create/update the entity
571
+ */
572
+ _manifest?: string /* uuid */[];
573
+ }
574
+ export interface JourneyFeatureFlags {
575
+ featureFlags?: {
576
+ [name: string]: any;
577
+ };
578
+ }
579
+ export type JourneyProductsResponse = {
580
+ type?: string;
581
+ _schema?: string;
582
+ _title?: string;
583
+ name?: string;
584
+ _id?: string;
585
+ _org?: string;
586
+ code?: string;
587
+ description?: string;
588
+ feature?: any[];
589
+ product_images?: any[];
590
+ legal_footnote?: string;
591
+ product_downloads?: any[];
592
+ price?: {
593
+ [key: string]: any;
594
+ };
595
+ }[];
596
+ export interface JourneyResponse {
597
+ createdJourney?: Journey;
598
+ }
599
+ /**
600
+ * Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
601
+ *
602
+ */
603
+ export interface PatchUpdateJourneyRequest {
604
+ [name: string]: any;
605
+ /**
606
+ * example:
607
+ * 509cdffe-424f-457a-95c2-9708c304ce77
608
+ */
609
+ journeyId: string; // uuid
610
+ /**
611
+ * If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
612
+ */
613
+ __lastModifiedAt?: string | null;
614
+ }
615
+ /**
616
+ * Field-level rule references within a block.
617
+ * Maps field names to rule IDs.
618
+ *
619
+ * example:
620
+ * {
621
+ * "firstName": "rule123",
622
+ * "lastName": "rule456",
623
+ * "email": "rule789"
624
+ * }
625
+ */
626
+ export interface RuleRef {
627
+ [name: string]: string;
628
+ }
629
+ export interface S3Reference {
630
+ /**
631
+ * example:
632
+ * document-api-prod
633
+ */
634
+ bucket: string;
635
+ /**
636
+ * example:
637
+ * uploads/my-template.pdf
638
+ */
639
+ key: string;
640
+ }
641
+ export interface SearchJourneysQueryRequest {
642
+ /**
643
+ * Lucene query syntax
644
+ * See https://lucene.apache.org/core/2_9_4/queryparsersyntax.html ; https://www.elastic.co/guide/en/kibana/current/lucene-query.html
645
+ *
646
+ * example:
647
+ * _tags:*Flex*
648
+ */
649
+ q?: string;
650
+ /**
651
+ * The offset of the first result to return.
652
+ * See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html
653
+ *
654
+ * example:
655
+ * 0
656
+ */
657
+ from?: number;
658
+ /**
659
+ * The maximum number of results to return.
660
+ * See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html
661
+ *
662
+ * example:
663
+ * 25
664
+ */
665
+ size?: number;
666
+ /**
667
+ * The sort order. Follows Lucene syntax.
668
+ *
669
+ * example:
670
+ * _created_at:desc
671
+ */
672
+ sort?: string;
673
+ }
674
+ export interface SearchJourneysResponse {
675
+ /**
676
+ * The total number of hits.
677
+ *
678
+ * example:
679
+ * 1
680
+ */
681
+ hits?: number;
682
+ /**
683
+ * The results.
684
+ *
685
+ */
686
+ results?: {
687
+ /**
688
+ * Journey Entity ID
689
+ * example:
690
+ * e0f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8
691
+ */
692
+ _id?: string; // uuid
693
+ /**
694
+ * Entity Schema (journey always in this case)
695
+ * example:
696
+ * journey
697
+ */
698
+ _schema?: string;
699
+ /**
700
+ * Journey Entity Title
701
+ * example:
702
+ * Journey Entity Title
703
+ */
704
+ _title?: string;
705
+ /**
706
+ * Organization ID
707
+ * example:
708
+ * 739224
709
+ */
710
+ _org?: string;
711
+ /**
712
+ * example:
713
+ * 2020-01-01T00:00:00.000Z
714
+ */
715
+ _created_at?: string; // date-time
716
+ /**
717
+ * example:
718
+ * 2020-01-01T00:00:00.000Z
719
+ */
720
+ _updated_at?: string; // date-time
721
+ _tags?: string[];
722
+ /**
723
+ * Manifest ID used to create/update the entity
724
+ */
725
+ _manifest?: string /* uuid */[];
726
+ /**
727
+ * Journey Name
728
+ * example:
729
+ * Journey Name
730
+ */
731
+ journey_name?: string;
732
+ /**
733
+ * Journey config ID
734
+ * example:
735
+ * de7df470-253e-11ed-9174-116b8a718c0a
736
+ */
737
+ journey_id?: string; // uuid
738
+ /**
739
+ * Journey Template
740
+ * example:
741
+ * Sales template
742
+ */
743
+ journey_type?: string;
744
+ /**
745
+ * Journey Design Name
746
+ * example:
747
+ * Design EPILOT
748
+ */
749
+ design?: string;
750
+ created_by?: {
751
+ /**
752
+ * User ID
753
+ * example:
754
+ * 12345
755
+ */
756
+ id?: string;
757
+ }[];
758
+ /**
759
+ * Journey Version
760
+ */
761
+ journey_version?: "Flex";
762
+ }[];
763
+ }
764
+ /**
765
+ * Template Settings for document generation
766
+ */
767
+ export interface TemplateSettings {
768
+ /**
769
+ * Custom margins for the document
770
+ */
771
+ custom_margins?: {
772
+ /**
773
+ * Top margin in cm
774
+ * example:
775
+ * 2.54
776
+ */
777
+ top?: number;
778
+ /**
779
+ * Bottom margin in cm
780
+ * example:
781
+ * 2.54
782
+ */
783
+ bottom?: number;
784
+ };
785
+ /**
786
+ * Suggested margins for the document
787
+ */
788
+ suggested_margins?: {
789
+ /**
790
+ * Top margin in cm
791
+ * example:
792
+ * 2.54
793
+ */
794
+ top?: number;
795
+ /**
796
+ * Bottom margin in cm
797
+ * example:
798
+ * 2.54
799
+ */
800
+ bottom?: number;
801
+ };
802
+ /**
803
+ * Display margin guidelines (applicable to partial generation only)
804
+ * example:
805
+ * true
806
+ */
807
+ display_margin_guidelines?: boolean;
808
+ /**
809
+ * Enable data table margin autofix
810
+ * example:
811
+ * false
812
+ */
813
+ enable_data_table_margin_autofix?: boolean;
814
+ /**
815
+ * A flag that indicates whether the template has 1 or more data tables in it
816
+ * example:
817
+ * false
818
+ */
819
+ template_with_datatable?: boolean;
820
+ /**
821
+ * Enables the persistance of template settings
822
+ * example:
823
+ * false
824
+ */
825
+ enabled_template_settings_persistence?: boolean;
826
+ /**
827
+ * An indication that the page margins are misconfigured
828
+ * example:
829
+ * false
830
+ */
831
+ misconfigured_margins?: boolean;
832
+ /**
833
+ * The file entity id, used when persisting a new template version with updated settings
834
+ * example:
835
+ * 1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p
836
+ */
837
+ file_entity_id?: string; // uuid
838
+ }
839
+ /**
840
+ * References to validation rules organized by blocks and fields.
841
+ * Maps block IDs to either rule IDs (for block-level rules) or rule references (for field-level rules).
842
+ *
843
+ * example:
844
+ * {
845
+ * "block1": "rule123",
846
+ * "block2": {
847
+ * "field1": "rule456",
848
+ * "field2": "rule789"
849
+ * }
850
+ * }
851
+ */
852
+ export interface ValidationRuleRef {
853
+ [name: string]: string | /**
854
+ * Field-level rule references within a block.
855
+ * Maps field names to rule IDs.
856
+ *
857
+ * example:
858
+ * {
859
+ * "firstName": "rule123",
860
+ * "lastName": "rule456",
861
+ * "email": "rule789"
862
+ * }
863
+ */
864
+ RuleRef;
865
+ }
866
+ }
867
+ }
868
+ declare namespace Paths {
869
+ namespace CreateJourney {
870
+ namespace Parameters {
871
+ /**
872
+ * example:
873
+ * true
874
+ */
875
+ export type SkipAutomation = string; // Yn
876
+ }
877
+ export interface QueryParameters {
878
+ skipAutomation?: /**
879
+ * example:
880
+ * true
881
+ */
882
+ Parameters.SkipAutomation /* Yn */;
883
+ }
884
+ export type RequestBody = Components.Schemas.JourneyCreationRequest;
885
+ namespace Responses {
886
+ export type $201 = Components.Schemas.Journey;
887
+ }
888
+ }
889
+ namespace CreateJourneyV2 {
890
+ namespace Parameters {
891
+ /**
892
+ * example:
893
+ * true
894
+ */
895
+ export type SkipAutomation = string; // Yn
896
+ }
897
+ export interface QueryParameters {
898
+ skipAutomation?: /**
899
+ * example:
900
+ * true
901
+ */
902
+ Parameters.SkipAutomation /* Yn */;
903
+ }
904
+ export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
905
+ namespace Responses {
906
+ export type $201 = Components.Schemas.JourneyCreationRequestV2;
907
+ }
908
+ }
909
+ namespace GenerateDocument {
910
+ export type RequestBody = Components.Schemas.GenerateDocumentRequest;
911
+ namespace Responses {
912
+ export type $200 = Components.Schemas.GenerateDocumentResponse;
913
+ }
914
+ }
915
+ namespace GetButtonOptions {
916
+ namespace Parameters {
917
+ /**
918
+ * example:
919
+ * 535ef74a-dd66-4d01-94a9-725016e70d1c
920
+ */
921
+ export type FileId = string;
922
+ }
923
+ export interface QueryParameters {
924
+ fileId: /**
925
+ * example:
926
+ * 535ef74a-dd66-4d01-94a9-725016e70d1c
927
+ */
928
+ Parameters.FileId;
929
+ }
930
+ namespace Responses {
931
+ export type $200 = /* A single button option data */ Components.Schemas.ButtonOption[];
932
+ export interface $400 {
933
+ /**
934
+ * example:
935
+ * UTF-8 encoding error while processing CSV content
936
+ */
937
+ message?: string;
938
+ /**
939
+ * example:
940
+ * Please ensure your CSV file is properly encoded in UTF-8 format
941
+ */
942
+ details?: string;
943
+ }
944
+ export interface $404 {
945
+ /**
946
+ * example:
947
+ * journey not found
948
+ */
949
+ message?: string;
950
+ }
951
+ export interface $500 {
952
+ /**
953
+ * example:
954
+ * Unknown API Error
955
+ */
956
+ message?: string;
957
+ }
958
+ }
959
+ }
960
+ namespace GetJourney {
961
+ namespace Parameters {
962
+ /**
963
+ * example:
964
+ * 509cdffe-424f-457a-95c2-9708c304ce77
965
+ */
966
+ export type Id = string; // uuid
967
+ export type OrgId = string;
968
+ export type Source = string;
969
+ }
970
+ export interface PathParameters {
971
+ id: /**
972
+ * example:
973
+ * 509cdffe-424f-457a-95c2-9708c304ce77
974
+ */
975
+ Parameters.Id /* uuid */;
976
+ }
977
+ export interface QueryParameters {
978
+ source?: Parameters.Source;
979
+ orgId?: Parameters.OrgId;
980
+ }
981
+ namespace Responses {
982
+ export type $200 = Components.Schemas.Journey;
983
+ }
984
+ }
985
+ namespace GetJourneyProducts {
986
+ namespace Parameters {
987
+ export type City = string;
988
+ /**
989
+ * example:
990
+ * 509cdffe-424f-457a-95c2-9708c304ce77
991
+ */
992
+ export type Id = string; // uuid
993
+ export type PostalCode = string;
994
+ export type Source = string;
995
+ export type Street = string;
996
+ export type StreetNumber = string;
997
+ }
998
+ export interface PathParameters {
999
+ id: /**
1000
+ * example:
1001
+ * 509cdffe-424f-457a-95c2-9708c304ce77
1002
+ */
1003
+ Parameters.Id /* uuid */;
1004
+ }
1005
+ export interface QueryParameters {
1006
+ source?: Parameters.Source;
1007
+ postal_code?: Parameters.PostalCode;
1008
+ city?: Parameters.City;
1009
+ street?: Parameters.Street;
1010
+ street_number?: Parameters.StreetNumber;
1011
+ }
1012
+ namespace Responses {
1013
+ export type $200 = Components.Schemas.JourneyProductsResponse;
1014
+ }
1015
+ }
1016
+ namespace GetJourneyV2 {
1017
+ namespace Parameters {
1018
+ /**
1019
+ * example:
1020
+ * 509cdffe-424f-457a-95c2-9708c304ce77
1021
+ */
1022
+ export type Id = string; // uuid
1023
+ }
1024
+ export interface PathParameters {
1025
+ id: /**
1026
+ * example:
1027
+ * 509cdffe-424f-457a-95c2-9708c304ce77
1028
+ */
1029
+ Parameters.Id /* uuid */;
1030
+ }
1031
+ namespace Responses {
1032
+ export type $200 = Components.Schemas.JourneyCreationRequestV2;
1033
+ }
1034
+ }
1035
+ namespace GetJourneysByOrgId {
1036
+ namespace Parameters {
1037
+ /**
1038
+ * example:
1039
+ * true
1040
+ */
1041
+ export type Hydrate = string;
1042
+ /**
1043
+ * example:
1044
+ * 123
1045
+ */
1046
+ export type Id = string;
1047
+ }
1048
+ export interface PathParameters {
1049
+ id: /**
1050
+ * example:
1051
+ * 123
1052
+ */
1053
+ Parameters.Id;
1054
+ }
1055
+ export interface QueryParameters {
1056
+ hydrate?: /**
1057
+ * example:
1058
+ * true
1059
+ */
1060
+ Parameters.Hydrate;
1061
+ }
1062
+ namespace Responses {
1063
+ export type $200 = Components.Schemas.GetJourneysResponse;
1064
+ }
1065
+ }
1066
+ namespace GetSettingsForJourney {
1067
+ namespace Parameters {
1068
+ /**
1069
+ * example:
1070
+ * 509cdffe-424f-457a-95c2-9708c304ce77
1071
+ */
1072
+ export type Id = string; // uuid
1073
+ }
1074
+ export interface PathParameters {
1075
+ id: /**
1076
+ * example:
1077
+ * 509cdffe-424f-457a-95c2-9708c304ce77
1078
+ */
1079
+ Parameters.Id /* uuid */;
1080
+ }
1081
+ namespace Responses {
1082
+ export type $200 = Components.Schemas.GetSettingsForJourney;
1083
+ export interface $404 {
1084
+ /**
1085
+ * example:
1086
+ * journey not found
1087
+ */
1088
+ message?: string;
1089
+ }
1090
+ export interface $500 {
1091
+ /**
1092
+ * example:
1093
+ * Unknown API Error
1094
+ */
1095
+ message?: string;
1096
+ }
1097
+ }
1098
+ }
1099
+ namespace PatchUpdateJourney {
1100
+ export type RequestBody = /**
1101
+ * Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
1102
+ *
1103
+ */
1104
+ Components.Schemas.PatchUpdateJourneyRequest;
1105
+ namespace Responses {
1106
+ export type $200 = Components.Schemas.JourneyResponse;
1107
+ }
1108
+ }
1109
+ namespace PatchUpdateJourneyV2 {
1110
+ export type RequestBody = /**
1111
+ * Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
1112
+ *
1113
+ */
1114
+ Components.Schemas.PatchUpdateJourneyRequest;
1115
+ namespace Responses {
1116
+ export type $200 = Components.Schemas.JourneyCreationRequestV2;
1117
+ }
1118
+ }
1119
+ namespace RemoveJourney {
1120
+ namespace Parameters {
1121
+ /**
1122
+ * example:
1123
+ * 509cdffe-424f-457a-95c2-9708c304ce77
1124
+ */
1125
+ export type Id = string; // uuid
1126
+ }
1127
+ export interface PathParameters {
1128
+ id: /**
1129
+ * example:
1130
+ * 509cdffe-424f-457a-95c2-9708c304ce77
1131
+ */
1132
+ Parameters.Id /* uuid */;
1133
+ }
1134
+ }
1135
+ namespace RemoveJourneyV2 {
1136
+ namespace Parameters {
1137
+ /**
1138
+ * example:
1139
+ * 509cdffe-424f-457a-95c2-9708c304ce77
1140
+ */
1141
+ export type Id = string; // uuid
1142
+ }
1143
+ export interface PathParameters {
1144
+ id: /**
1145
+ * example:
1146
+ * 509cdffe-424f-457a-95c2-9708c304ce77
1147
+ */
1148
+ Parameters.Id /* uuid */;
1149
+ }
1150
+ }
1151
+ namespace SearchJourneys {
1152
+ export type RequestBody = Components.Schemas.SearchJourneysQueryRequest;
1153
+ namespace Responses {
1154
+ export type $200 = Components.Schemas.SearchJourneysResponse;
1155
+ }
1156
+ }
1157
+ namespace UpdateJourney {
1158
+ export type RequestBody = Components.Schemas.JourneyCreationRequest;
1159
+ namespace Responses {
1160
+ export interface $204 {
1161
+ }
1162
+ export interface $409 {
1163
+ }
1164
+ }
1165
+ }
1166
+ namespace UpdateJourneyV2 {
1167
+ export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
1168
+ namespace Responses {
1169
+ export type $200 = Components.Schemas.JourneyCreationRequestV2;
1170
+ }
1171
+ }
1172
+ }
1173
+
1174
+
1175
+ export interface OperationMethods {
1176
+ /**
1177
+ * getJourneysByOrgId - getJourneysByOrgId
1178
+ *
1179
+ * Get all journeys by organization id
1180
+ */
1181
+ 'getJourneysByOrgId'(
1182
+ parameters?: Parameters<Paths.GetJourneysByOrgId.QueryParameters & Paths.GetJourneysByOrgId.PathParameters> | null,
1183
+ data?: any,
1184
+ config?: AxiosRequestConfig
1185
+ ): OperationResponse<Paths.GetJourneysByOrgId.Responses.$200>
1186
+ /**
1187
+ * getJourney - getJourney
1188
+ *
1189
+ * Get journey by id. Private journeys requires valid private token to be passed
1190
+ */
1191
+ 'getJourney'(
1192
+ parameters?: Parameters<Paths.GetJourney.QueryParameters & Paths.GetJourney.PathParameters> | null,
1193
+ data?: any,
1194
+ config?: AxiosRequestConfig
1195
+ ): OperationResponse<Paths.GetJourney.Responses.$200>
1196
+ /**
1197
+ * removeJourney - removeJourney
1198
+ *
1199
+ * Remove journey by id
1200
+ */
1201
+ 'removeJourney'(
1202
+ parameters?: Parameters<Paths.RemoveJourney.PathParameters> | null,
1203
+ data?: any,
1204
+ config?: AxiosRequestConfig
1205
+ ): OperationResponse<any>
1206
+ /**
1207
+ * getJourneyProducts - getJourneyProducts
1208
+ *
1209
+ * Get products available in the journey by id. requires public journey token to be passed.
1210
+ */
1211
+ 'getJourneyProducts'(
1212
+ parameters?: Parameters<Paths.GetJourneyProducts.QueryParameters & Paths.GetJourneyProducts.PathParameters> | null,
1213
+ data?: any,
1214
+ config?: AxiosRequestConfig
1215
+ ): OperationResponse<Paths.GetJourneyProducts.Responses.$200>
1216
+ /**
1217
+ * updateJourney - updateJourney
1218
+ *
1219
+ * Update a Journey
1220
+ */
1221
+ 'updateJourney'(
1222
+ parameters?: Parameters<UnknownParamsObject> | null,
1223
+ data?: Paths.UpdateJourney.RequestBody,
1224
+ config?: AxiosRequestConfig
1225
+ ): OperationResponse<Paths.UpdateJourney.Responses.$204>
1226
+ /**
1227
+ * createJourney - createJourney
1228
+ *
1229
+ * Create a Journey
1230
+ */
1231
+ 'createJourney'(
1232
+ parameters?: Parameters<Paths.CreateJourney.QueryParameters> | null,
1233
+ data?: Paths.CreateJourney.RequestBody,
1234
+ config?: AxiosRequestConfig
1235
+ ): OperationResponse<Paths.CreateJourney.Responses.$201>
1236
+ /**
1237
+ * patchUpdateJourney - patchUpdateJourney
1238
+ *
1239
+ * Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
1240
+ */
1241
+ 'patchUpdateJourney'(
1242
+ parameters?: Parameters<UnknownParamsObject> | null,
1243
+ data?: Paths.PatchUpdateJourney.RequestBody,
1244
+ config?: AxiosRequestConfig
1245
+ ): OperationResponse<Paths.PatchUpdateJourney.Responses.$200>
1246
+ /**
1247
+ * searchJourneys - searchJourneys
1248
+ *
1249
+ * Search Journeys
1250
+ */
1251
+ 'searchJourneys'(
1252
+ parameters?: Parameters<UnknownParamsObject> | null,
1253
+ data?: Paths.SearchJourneys.RequestBody,
1254
+ config?: AxiosRequestConfig
1255
+ ): OperationResponse<Paths.SearchJourneys.Responses.$200>
1256
+ /**
1257
+ * generateDocument - generateDocument
1258
+ *
1259
+ * Builds document generated from a template with journey values."
1260
+ *
1261
+ * Supported input document types:
1262
+ * - .docx
1263
+ *
1264
+ * Supported output document types:
1265
+ * - .pdf
1266
+ * - .docx but limited to only text based variables
1267
+ *
1268
+ * Uses [Document API](https://gitlab.com/e-pilot/product/file-management/document-api) to generate the document.
1269
+ * Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document.
1270
+ *
1271
+ */
1272
+ 'generateDocument'(
1273
+ parameters?: Parameters<UnknownParamsObject> | null,
1274
+ data?: Paths.GenerateDocument.RequestBody,
1275
+ config?: AxiosRequestConfig
1276
+ ): OperationResponse<Paths.GenerateDocument.Responses.$200>
1277
+ /**
1278
+ * updateJourneyV2 - updateJourneyV2
1279
+ *
1280
+ * Update a Journey
1281
+ */
1282
+ 'updateJourneyV2'(
1283
+ parameters?: Parameters<UnknownParamsObject> | null,
1284
+ data?: Paths.UpdateJourneyV2.RequestBody,
1285
+ config?: AxiosRequestConfig
1286
+ ): OperationResponse<Paths.UpdateJourneyV2.Responses.$200>
1287
+ /**
1288
+ * createJourneyV2 - createJourneyV2
1289
+ *
1290
+ * Create a Journey
1291
+ */
1292
+ 'createJourneyV2'(
1293
+ parameters?: Parameters<Paths.CreateJourneyV2.QueryParameters> | null,
1294
+ data?: Paths.CreateJourneyV2.RequestBody,
1295
+ config?: AxiosRequestConfig
1296
+ ): OperationResponse<Paths.CreateJourneyV2.Responses.$201>
1297
+ /**
1298
+ * patchUpdateJourneyV2 - patchUpdateJourneyV2
1299
+ *
1300
+ * Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
1301
+ */
1302
+ 'patchUpdateJourneyV2'(
1303
+ parameters?: Parameters<UnknownParamsObject> | null,
1304
+ data?: Paths.PatchUpdateJourneyV2.RequestBody,
1305
+ config?: AxiosRequestConfig
1306
+ ): OperationResponse<Paths.PatchUpdateJourneyV2.Responses.$200>
1307
+ /**
1308
+ * getJourneyV2 - getJourneyV2
1309
+ *
1310
+ * Get journey by id
1311
+ */
1312
+ 'getJourneyV2'(
1313
+ parameters?: Parameters<Paths.GetJourneyV2.PathParameters> | null,
1314
+ data?: any,
1315
+ config?: AxiosRequestConfig
1316
+ ): OperationResponse<Paths.GetJourneyV2.Responses.$200>
1317
+ /**
1318
+ * removeJourneyV2 - removeJourneyV2
1319
+ *
1320
+ * Remove journey by id
1321
+ */
1322
+ 'removeJourneyV2'(
1323
+ parameters?: Parameters<Paths.RemoveJourneyV2.PathParameters> | null,
1324
+ data?: any,
1325
+ config?: AxiosRequestConfig
1326
+ ): OperationResponse<any>
1327
+ /**
1328
+ * getSettingsForJourney - getSettingsForJourney
1329
+ *
1330
+ * Get settings related to the journey using journey ID.
1331
+ */
1332
+ 'getSettingsForJourney'(
1333
+ parameters?: Parameters<Paths.GetSettingsForJourney.PathParameters> | null,
1334
+ data?: any,
1335
+ config?: AxiosRequestConfig
1336
+ ): OperationResponse<Paths.GetSettingsForJourney.Responses.$200>
1337
+ /**
1338
+ * getButtonOptions - getButtonOptions
1339
+ *
1340
+ * Get button options from a csv file.
1341
+ */
1342
+ 'getButtonOptions'(
1343
+ parameters?: Parameters<Paths.GetButtonOptions.QueryParameters> | null,
1344
+ data?: any,
1345
+ config?: AxiosRequestConfig
1346
+ ): OperationResponse<Paths.GetButtonOptions.Responses.$200>
1347
+ }
1348
+
1349
+ export interface PathsDictionary {
1350
+ ['/v1/journey/organization/{id}']: {
1351
+ /**
1352
+ * getJourneysByOrgId - getJourneysByOrgId
1353
+ *
1354
+ * Get all journeys by organization id
1355
+ */
1356
+ 'get'(
1357
+ parameters?: Parameters<Paths.GetJourneysByOrgId.QueryParameters & Paths.GetJourneysByOrgId.PathParameters> | null,
1358
+ data?: any,
1359
+ config?: AxiosRequestConfig
1360
+ ): OperationResponse<Paths.GetJourneysByOrgId.Responses.$200>
1361
+ }
1362
+ ['/v1/journey/configuration/{id}']: {
1363
+ /**
1364
+ * getJourney - getJourney
1365
+ *
1366
+ * Get journey by id. Private journeys requires valid private token to be passed
1367
+ */
1368
+ 'get'(
1369
+ parameters?: Parameters<Paths.GetJourney.QueryParameters & Paths.GetJourney.PathParameters> | null,
1370
+ data?: any,
1371
+ config?: AxiosRequestConfig
1372
+ ): OperationResponse<Paths.GetJourney.Responses.$200>
1373
+ /**
1374
+ * removeJourney - removeJourney
1375
+ *
1376
+ * Remove journey by id
1377
+ */
1378
+ 'delete'(
1379
+ parameters?: Parameters<Paths.RemoveJourney.PathParameters> | null,
1380
+ data?: any,
1381
+ config?: AxiosRequestConfig
1382
+ ): OperationResponse<any>
1383
+ }
1384
+ ['/v1/journey/products/{id}']: {
1385
+ /**
1386
+ * getJourneyProducts - getJourneyProducts
1387
+ *
1388
+ * Get products available in the journey by id. requires public journey token to be passed.
1389
+ */
1390
+ 'get'(
1391
+ parameters?: Parameters<Paths.GetJourneyProducts.QueryParameters & Paths.GetJourneyProducts.PathParameters> | null,
1392
+ data?: any,
1393
+ config?: AxiosRequestConfig
1394
+ ): OperationResponse<Paths.GetJourneyProducts.Responses.$200>
1395
+ }
1396
+ ['/v1/journey/configuration']: {
1397
+ /**
1398
+ * createJourney - createJourney
1399
+ *
1400
+ * Create a Journey
1401
+ */
1402
+ 'post'(
1403
+ parameters?: Parameters<Paths.CreateJourney.QueryParameters> | null,
1404
+ data?: Paths.CreateJourney.RequestBody,
1405
+ config?: AxiosRequestConfig
1406
+ ): OperationResponse<Paths.CreateJourney.Responses.$201>
1407
+ /**
1408
+ * updateJourney - updateJourney
1409
+ *
1410
+ * Update a Journey
1411
+ */
1412
+ 'put'(
1413
+ parameters?: Parameters<UnknownParamsObject> | null,
1414
+ data?: Paths.UpdateJourney.RequestBody,
1415
+ config?: AxiosRequestConfig
1416
+ ): OperationResponse<Paths.UpdateJourney.Responses.$204>
1417
+ /**
1418
+ * patchUpdateJourney - patchUpdateJourney
1419
+ *
1420
+ * Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
1421
+ */
1422
+ 'patch'(
1423
+ parameters?: Parameters<UnknownParamsObject> | null,
1424
+ data?: Paths.PatchUpdateJourney.RequestBody,
1425
+ config?: AxiosRequestConfig
1426
+ ): OperationResponse<Paths.PatchUpdateJourney.Responses.$200>
1427
+ }
1428
+ ['/v1/journey/configuration/search']: {
1429
+ /**
1430
+ * searchJourneys - searchJourneys
1431
+ *
1432
+ * Search Journeys
1433
+ */
1434
+ 'post'(
1435
+ parameters?: Parameters<UnknownParamsObject> | null,
1436
+ data?: Paths.SearchJourneys.RequestBody,
1437
+ config?: AxiosRequestConfig
1438
+ ): OperationResponse<Paths.SearchJourneys.Responses.$200>
1439
+ }
1440
+ ['/v1/journey/document:generate']: {
1441
+ /**
1442
+ * generateDocument - generateDocument
1443
+ *
1444
+ * Builds document generated from a template with journey values."
1445
+ *
1446
+ * Supported input document types:
1447
+ * - .docx
1448
+ *
1449
+ * Supported output document types:
1450
+ * - .pdf
1451
+ * - .docx but limited to only text based variables
1452
+ *
1453
+ * Uses [Document API](https://gitlab.com/e-pilot/product/file-management/document-api) to generate the document.
1454
+ * Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document.
1455
+ *
1456
+ */
1457
+ 'post'(
1458
+ parameters?: Parameters<UnknownParamsObject> | null,
1459
+ data?: Paths.GenerateDocument.RequestBody,
1460
+ config?: AxiosRequestConfig
1461
+ ): OperationResponse<Paths.GenerateDocument.Responses.$200>
1462
+ }
1463
+ ['/v2/journey/configuration']: {
1464
+ /**
1465
+ * createJourneyV2 - createJourneyV2
1466
+ *
1467
+ * Create a Journey
1468
+ */
1469
+ 'post'(
1470
+ parameters?: Parameters<Paths.CreateJourneyV2.QueryParameters> | null,
1471
+ data?: Paths.CreateJourneyV2.RequestBody,
1472
+ config?: AxiosRequestConfig
1473
+ ): OperationResponse<Paths.CreateJourneyV2.Responses.$201>
1474
+ /**
1475
+ * updateJourneyV2 - updateJourneyV2
1476
+ *
1477
+ * Update a Journey
1478
+ */
1479
+ 'put'(
1480
+ parameters?: Parameters<UnknownParamsObject> | null,
1481
+ data?: Paths.UpdateJourneyV2.RequestBody,
1482
+ config?: AxiosRequestConfig
1483
+ ): OperationResponse<Paths.UpdateJourneyV2.Responses.$200>
1484
+ /**
1485
+ * patchUpdateJourneyV2 - patchUpdateJourneyV2
1486
+ *
1487
+ * Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
1488
+ */
1489
+ 'patch'(
1490
+ parameters?: Parameters<UnknownParamsObject> | null,
1491
+ data?: Paths.PatchUpdateJourneyV2.RequestBody,
1492
+ config?: AxiosRequestConfig
1493
+ ): OperationResponse<Paths.PatchUpdateJourneyV2.Responses.$200>
1494
+ }
1495
+ ['/v2/journey/configuration/{id}']: {
1496
+ /**
1497
+ * getJourneyV2 - getJourneyV2
1498
+ *
1499
+ * Get journey by id
1500
+ */
1501
+ 'get'(
1502
+ parameters?: Parameters<Paths.GetJourneyV2.PathParameters> | null,
1503
+ data?: any,
1504
+ config?: AxiosRequestConfig
1505
+ ): OperationResponse<Paths.GetJourneyV2.Responses.$200>
1506
+ /**
1507
+ * removeJourneyV2 - removeJourneyV2
1508
+ *
1509
+ * Remove journey by id
1510
+ */
1511
+ 'delete'(
1512
+ parameters?: Parameters<Paths.RemoveJourneyV2.PathParameters> | null,
1513
+ data?: any,
1514
+ config?: AxiosRequestConfig
1515
+ ): OperationResponse<any>
1516
+ }
1517
+ ['/v1/journey/{id}/settings']: {
1518
+ /**
1519
+ * getSettingsForJourney - getSettingsForJourney
1520
+ *
1521
+ * Get settings related to the journey using journey ID.
1522
+ */
1523
+ 'get'(
1524
+ parameters?: Parameters<Paths.GetSettingsForJourney.PathParameters> | null,
1525
+ data?: any,
1526
+ config?: AxiosRequestConfig
1527
+ ): OperationResponse<Paths.GetSettingsForJourney.Responses.$200>
1528
+ }
1529
+ ['/v1/journey/button-options']: {
1530
+ /**
1531
+ * getButtonOptions - getButtonOptions
1532
+ *
1533
+ * Get button options from a csv file.
1534
+ */
1535
+ 'get'(
1536
+ parameters?: Parameters<Paths.GetButtonOptions.QueryParameters> | null,
1537
+ data?: any,
1538
+ config?: AxiosRequestConfig
1539
+ ): OperationResponse<Paths.GetButtonOptions.Responses.$200>
1540
+ }
1541
+ }
1542
+
1543
+ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1544
+
1545
+
1546
+ export type ButtonOption = Components.Schemas.ButtonOption;
1547
+ export type GenerateDocumentRequest = Components.Schemas.GenerateDocumentRequest;
1548
+ export type GenerateDocumentResponse = Components.Schemas.GenerateDocumentResponse;
1549
+ export type GetJourneysResponse = Components.Schemas.GetJourneysResponse;
1550
+ export type GetSettingsForJourney = Components.Schemas.GetSettingsForJourney;
1551
+ export type Journey = Components.Schemas.Journey;
1552
+ export type JourneyAuditInfo = Components.Schemas.JourneyAuditInfo;
1553
+ export type JourneyCreationRequest = Components.Schemas.JourneyCreationRequest;
1554
+ export type JourneyCreationRequestV2 = Components.Schemas.JourneyCreationRequestV2;
1555
+ export type JourneyFeatureFlags = Components.Schemas.JourneyFeatureFlags;
1556
+ export type JourneyProductsResponse = Components.Schemas.JourneyProductsResponse;
1557
+ export type JourneyResponse = Components.Schemas.JourneyResponse;
1558
+ export type PatchUpdateJourneyRequest = Components.Schemas.PatchUpdateJourneyRequest;
1559
+ export type RuleRef = Components.Schemas.RuleRef;
1560
+ export type S3Reference = Components.Schemas.S3Reference;
1561
+ export type SearchJourneysQueryRequest = Components.Schemas.SearchJourneysQueryRequest;
1562
+ export type SearchJourneysResponse = Components.Schemas.SearchJourneysResponse;
1563
+ export type TemplateSettings = Components.Schemas.TemplateSettings;
1564
+ export type ValidationRuleRef = Components.Schemas.ValidationRuleRef;