@epilot/sdk 2.9.0 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/definitions/access-token-runtime.json +1 -1
- package/definitions/access-token.json +155 -1
- package/definitions/automation.json +120 -0
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +571 -1
- package/definitions/integration-toolkit-runtime.json +1 -1
- package/definitions/integration-toolkit.json +557 -1
- package/definitions/journey.json +19 -2
- package/definitions/snapshot-runtime.json +1 -0
- package/definitions/snapshot.json +966 -0
- package/definitions/targeting.json +5 -4
- package/definitions/user-runtime.json +1 -1
- package/definitions/user.json +441 -0
- package/dist/README-NBWAQWQS.js +7 -0
- package/dist/README-XCIDDEAE.cjs +7 -0
- package/dist/{_index-DB2VV4PQ.cjs → _index-D5TTZP5F.cjs} +4 -1
- package/dist/{_index-5FB6F5YY.js → _index-UY46ZN47.js} +3 -0
- package/dist/access-token-GD6REL4U.js +7 -0
- package/dist/access-token-NQ5BLMOW.cjs +7 -0
- package/dist/{access-token-runtime-KCKGT4O7.js → access-token-runtime-2PSLN2U3.js} +1 -1
- package/dist/{access-token-runtime-NZWZJPWV.cjs → access-token-runtime-B6Z7JLUS.cjs} +2 -2
- package/dist/{access-token.d-CnmUTOlq.d.cts → access-token.d-CegaQmrK.d.cts} +165 -5
- package/dist/{access-token.d-CnmUTOlq.d.ts → access-token.d-CegaQmrK.d.ts} +165 -5
- package/dist/{ai-agents.d-OkXfr2bz.d.cts → ai-agents.d-CC5IjXrs.d.cts} +0 -2
- package/dist/{ai-agents.d-OkXfr2bz.d.ts → ai-agents.d-CC5IjXrs.d.ts} +0 -2
- package/dist/apis/access-token.cjs +8 -8
- package/dist/apis/access-token.d.cts +2 -2
- package/dist/apis/access-token.d.ts +2 -2
- package/dist/apis/access-token.js +2 -2
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.d.cts +2 -2
- package/dist/apis/ai-agents.d.ts +2 -2
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +8 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +2 -2
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +8 -8
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +2 -2
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +38 -0
- package/dist/apis/snapshot.d.cts +18 -0
- package/dist/apis/snapshot.d.ts +18 -0
- package/dist/apis/snapshot.js +38 -0
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +8 -8
- package/dist/apis/user.d.cts +2 -2
- package/dist/apis/user.d.ts +2 -2
- package/dist/apis/user.js +2 -2
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/automation-S6NFS5KU.cjs +7 -0
- package/dist/automation-W75XZG7B.js +7 -0
- package/dist/{automation.d-Du6-uiz5.d.cts → automation.d-DS_YXDE8.d.cts} +300 -1
- package/dist/{automation.d-Du6-uiz5.d.ts → automation.d-DS_YXDE8.d.ts} +300 -1
- package/dist/blueprint-manifest-WHYSBU66.cjs +7 -0
- package/dist/blueprint-manifest-WZVBTKUL.js +7 -0
- package/dist/{blueprint-manifest-runtime-FRLU3ZSF.js → blueprint-manifest-runtime-2344IUIE.js} +1 -1
- package/dist/{blueprint-manifest-runtime-EIDOROIQ.cjs → blueprint-manifest-runtime-WU5MWPVT.cjs} +2 -2
- package/dist/{blueprint-manifest.d-B8yDxagC.d.cts → blueprint-manifest.d-2-TORV8o.d.cts} +926 -4
- package/dist/{blueprint-manifest.d-B8yDxagC.d.ts → blueprint-manifest.d-2-TORV8o.d.ts} +926 -4
- package/dist/chunk-3CNCQJOJ.js +14 -0
- package/dist/chunk-54QNWEPZ.js +14 -0
- package/dist/{chunk-CULH5PIN.cjs → chunk-7EJWSCI2.cjs} +15 -13
- package/dist/{chunk-RZ4ABDOF.js → chunk-C3YPYVHI.js} +15 -13
- package/dist/chunk-ILIHCSNO.cjs +14 -0
- package/dist/chunk-NFIYEMMM.js +14 -0
- package/dist/{chunk-XSE4CFSM.js → chunk-OHHHS4HH.js} +1 -1
- package/dist/chunk-OWXEZ56F.cjs +14 -0
- package/dist/{chunk-OXJOO2YF.cjs → chunk-S5HBBTKM.cjs} +1 -1
- package/dist/{chunk-NGHCQ2FA.cjs → chunk-T57MT6J5.cjs} +1 -1
- package/dist/{chunk-4YBWMDFP.js → chunk-UWGWRGGB.js} +1 -1
- package/dist/chunk-YXJ4PBFQ.cjs +14 -0
- package/dist/index.cjs +26 -18
- package/dist/index.d.cts +24 -22
- package/dist/index.d.ts +24 -22
- package/dist/index.js +15 -7
- package/dist/integration-toolkit-TL3BQ6FJ.cjs +7 -0
- package/dist/integration-toolkit-X3Y4OFVW.js +7 -0
- package/dist/{integration-toolkit-runtime-FY7QVFL6.cjs → integration-toolkit-runtime-FR6RZS5O.cjs} +2 -2
- package/dist/{integration-toolkit-runtime-HCJ5QLCR.js → integration-toolkit-runtime-I2O6QP5G.js} +1 -1
- package/dist/{integration-toolkit.d-BSA9RRdq.d.cts → integration-toolkit.d-DUZ_fiuf.d.cts} +330 -1
- package/dist/{integration-toolkit.d-BSA9RRdq.d.ts → integration-toolkit.d-DUZ_fiuf.d.ts} +330 -1
- package/dist/journey-LHVSSVTG.cjs +7 -0
- package/dist/journey-NXL264XW.js +7 -0
- package/dist/{journey.d-BenIUWaO.d.ts → journey.d-B1sOeMHw.d.cts} +16 -3
- package/dist/{journey.d-BenIUWaO.d.cts → journey.d-B1sOeMHw.d.ts} +16 -3
- package/dist/snapshot-2HFERXRQ.js +7 -0
- package/dist/snapshot-UHCQAT4R.cjs +7 -0
- package/dist/snapshot-runtime-6DV42FVY.cjs +5 -0
- package/dist/snapshot-runtime-IW57MINC.js +5 -0
- package/dist/snapshot.d-CqefmvuB.d.cts +724 -0
- package/dist/snapshot.d-CqefmvuB.d.ts +724 -0
- package/dist/{targeting-DAFJBPIZ.cjs → targeting-WC62BBZN.cjs} +1 -1
- package/dist/{targeting-TGPCRRI6.js → targeting-X4Y2ODBT.js} +1 -1
- package/dist/{targeting.d-DxHQbn7-.d.cts → targeting.d-0rNF7ErD.d.cts} +11 -4
- package/dist/{targeting.d-DxHQbn7-.d.ts → targeting.d-0rNF7ErD.d.ts} +11 -4
- package/dist/user-3SLAEEVD.cjs +7 -0
- package/dist/user-PRUYBXQV.js +7 -0
- package/dist/{user-runtime-U4HYUWJU.js → user-runtime-6ICV2Y73.js} +1 -1
- package/dist/user-runtime-Y3227ETX.cjs +5 -0
- package/dist/{user.d-D18fe97W.d.cts → user.d-L-C7_K84.d.cts} +421 -1
- package/dist/{user.d-D18fe97W.d.ts → user.d-L-C7_K84.d.ts} +421 -1
- package/docs/access-token.md +111 -3
- package/docs/automation.md +180 -37
- package/docs/blueprint-manifest.md +421 -95
- package/docs/integration-toolkit.md +443 -83
- package/docs/journey.md +28 -8
- package/docs/snapshot.md +607 -0
- package/docs/targeting.md +6 -3
- package/docs/user.md +321 -8
- package/package.json +10 -1
- package/dist/README-46VYEGGW.js +0 -7
- package/dist/README-IVBISSWB.cjs +0 -7
- package/dist/access-token-6BJDZSFE.cjs +0 -7
- package/dist/access-token-GSQZLDXR.js +0 -7
- package/dist/automation-BMO7ZFTN.cjs +0 -7
- package/dist/automation-MEZTSUR3.js +0 -7
- package/dist/blueprint-manifest-6DEYW5MW.js +0 -7
- package/dist/blueprint-manifest-GCV7H74X.cjs +0 -7
- package/dist/chunk-3XKBB5AE.js +0 -14
- package/dist/chunk-7V7ECXTZ.js +0 -14
- package/dist/chunk-I53TWOTX.cjs +0 -14
- package/dist/chunk-Z5TVWG3I.cjs +0 -14
- package/dist/integration-toolkit-334NGEOE.cjs +0 -7
- package/dist/integration-toolkit-5VCY6CUN.js +0 -7
- package/dist/journey-4DIIPRU4.js +0 -7
- package/dist/journey-ATC3Y5AW.cjs +0 -7
- package/dist/user-7ZN2XO7G.cjs +0 -7
- package/dist/user-ZK7BK6VY.js +0 -7
- package/dist/user-runtime-7O2HLFVQ.cjs +0 -5
|
@@ -2880,6 +2880,37 @@ declare namespace Components {
|
|
|
2880
2880
|
*/
|
|
2881
2881
|
fields: IntegrationEntityField[];
|
|
2882
2882
|
}
|
|
2883
|
+
/**
|
|
2884
|
+
* Integration monitoring notification configuration. Rides Integration.settings.notifications (camelCase) and surfaces on both v1 and v2 GET/PUT. Unknown keys are stripped server-side to stay forward-compatible with deferred (V2) rule types.
|
|
2885
|
+
*/
|
|
2886
|
+
export interface IntegrationNotificationConfig {
|
|
2887
|
+
/**
|
|
2888
|
+
* Master switch for this integration's notifications.
|
|
2889
|
+
*/
|
|
2890
|
+
enabled: boolean;
|
|
2891
|
+
/**
|
|
2892
|
+
* epilot user ids notified for this integration. Same-org membership and per-user notification preferences are enforced at send time (Phases 3–5), not at config-write time.
|
|
2893
|
+
*/
|
|
2894
|
+
recipients: /* A configured recipient. Only the epilot user_id is stored. */ NotificationRecipient[];
|
|
2895
|
+
defaultChannels: /* Delivery channel toggles. New channels added in svc-notification-api inherit here. */ NotificationChannelSet;
|
|
2896
|
+
/**
|
|
2897
|
+
* Integration-level use-case include-filter; absent/empty means all use cases.
|
|
2898
|
+
*/
|
|
2899
|
+
monitoredUseCases?: string[];
|
|
2900
|
+
/**
|
|
2901
|
+
* Integration-level code scope; absent/empty resolves to ['_error_']. Accepts concrete monitoring error codes or group sentinels (_error_, _warning_, _success_, _info_, _any_, _parent_).
|
|
2902
|
+
*/
|
|
2903
|
+
monitoredCodes?: string[];
|
|
2904
|
+
/**
|
|
2905
|
+
* Enabled triggers and their params. A type MAY repeat; capped at 20 rules (enforced at the write boundary).
|
|
2906
|
+
*/
|
|
2907
|
+
rules: /* A single notification rule. Only the params relevant to a given type are set. The id is a server-minted ULID, preserved across edits. */ NotificationRule[];
|
|
2908
|
+
digest: /* Digest schedule and content configuration. */ NotificationDigestConfig;
|
|
2909
|
+
/**
|
|
2910
|
+
* ISO instant; snooze all non-digest alerts until this time.
|
|
2911
|
+
*/
|
|
2912
|
+
muteUntil?: string; // date-time
|
|
2913
|
+
}
|
|
2883
2914
|
export interface IntegrationObjectV1 {
|
|
2884
2915
|
/**
|
|
2885
2916
|
* Mapping of entity types to their unique identifier field mappings
|
|
@@ -2899,6 +2930,7 @@ declare namespace Components {
|
|
|
2899
2930
|
*/
|
|
2900
2931
|
export interface IntegrationSettings {
|
|
2901
2932
|
autoRefresh?: /* Auto-refresh settings for keeping integration data fresh */ AutoRefreshSettings;
|
|
2933
|
+
notifications?: /* Integration monitoring notification configuration. Rides Integration.settings.notifications (camelCase) and surfaces on both v1 and v2 GET/PUT. Unknown keys are stripped server-side to stay forward-compatible with deferred (V2) rule types. */ IntegrationNotificationConfig;
|
|
2902
2934
|
}
|
|
2903
2935
|
/**
|
|
2904
2936
|
* Integration with embedded use cases for atomic CRUD operations
|
|
@@ -3487,6 +3519,162 @@ declare namespace Components {
|
|
|
3487
3519
|
[name: string]: any;
|
|
3488
3520
|
}[];
|
|
3489
3521
|
}
|
|
3522
|
+
/**
|
|
3523
|
+
* Delivery channel toggles. New channels added in svc-notification-api inherit here.
|
|
3524
|
+
*/
|
|
3525
|
+
export interface NotificationChannelSet {
|
|
3526
|
+
email: boolean;
|
|
3527
|
+
in_app: boolean;
|
|
3528
|
+
}
|
|
3529
|
+
/**
|
|
3530
|
+
* Digest schedule and content configuration.
|
|
3531
|
+
*/
|
|
3532
|
+
export interface NotificationDigestConfig {
|
|
3533
|
+
enabled: boolean;
|
|
3534
|
+
frequency: "daily" | "weekly";
|
|
3535
|
+
/**
|
|
3536
|
+
* Weekly only. 0 = Sunday … 6 = Saturday.
|
|
3537
|
+
*/
|
|
3538
|
+
dayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
3539
|
+
/**
|
|
3540
|
+
* HH:mm
|
|
3541
|
+
*/
|
|
3542
|
+
timeOfDay: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* IANA timezone, e.g. 'Europe/Berlin'.
|
|
3545
|
+
*/
|
|
3546
|
+
timezone: string;
|
|
3547
|
+
channels: /* Delivery channel toggles. New channels added in svc-notification-api inherit here. */ NotificationChannelSet;
|
|
3548
|
+
/**
|
|
3549
|
+
* List all integrations vs. only ones with issues.
|
|
3550
|
+
*/
|
|
3551
|
+
includeHealthy: boolean;
|
|
3552
|
+
/**
|
|
3553
|
+
* Suppress the digest when nothing happened.
|
|
3554
|
+
*/
|
|
3555
|
+
skipIfEmpty: boolean;
|
|
3556
|
+
}
|
|
3557
|
+
/**
|
|
3558
|
+
* A single notification-history row (one real notification decision).
|
|
3559
|
+
*/
|
|
3560
|
+
export interface NotificationHistoryItem {
|
|
3561
|
+
/**
|
|
3562
|
+
* Stable history row id (ULID).
|
|
3563
|
+
*/
|
|
3564
|
+
id: string;
|
|
3565
|
+
/**
|
|
3566
|
+
* The notification/rule type (e.g. critical_error, error_threshold, integration_digest).
|
|
3567
|
+
*/
|
|
3568
|
+
type: string;
|
|
3569
|
+
/**
|
|
3570
|
+
* The state transition that produced this decision (e.g. OK->ALERTING), when applicable.
|
|
3571
|
+
*/
|
|
3572
|
+
state_transition?: string | null;
|
|
3573
|
+
/**
|
|
3574
|
+
* Severity of the decision.
|
|
3575
|
+
*/
|
|
3576
|
+
severity: "error" | "warning" | "info";
|
|
3577
|
+
/**
|
|
3578
|
+
* Human-readable title at decision time.
|
|
3579
|
+
*/
|
|
3580
|
+
title: string;
|
|
3581
|
+
/**
|
|
3582
|
+
* When the decision occurred (newest-first ordering key).
|
|
3583
|
+
*/
|
|
3584
|
+
occurred_at: string; // date-time
|
|
3585
|
+
/**
|
|
3586
|
+
* Whether the notification was actually sent (true) or suppressed (false).
|
|
3587
|
+
*/
|
|
3588
|
+
notified: boolean;
|
|
3589
|
+
/**
|
|
3590
|
+
* Why the notification was suppressed (only set when notified is false).
|
|
3591
|
+
*/
|
|
3592
|
+
suppressed_reason?: "muted" | "debounced" | "recipient_opt_out";
|
|
3593
|
+
/**
|
|
3594
|
+
* epilot user ids the notification was (or would have been) delivered to.
|
|
3595
|
+
*/
|
|
3596
|
+
recipients: string[];
|
|
3597
|
+
/**
|
|
3598
|
+
* Type-specific context captured at decision time.
|
|
3599
|
+
*/
|
|
3600
|
+
context: {
|
|
3601
|
+
[name: string]: any;
|
|
3602
|
+
};
|
|
3603
|
+
/**
|
|
3604
|
+
* When the history row was written.
|
|
3605
|
+
*/
|
|
3606
|
+
created_at: string; // date-time
|
|
3607
|
+
}
|
|
3608
|
+
export interface NotificationHistoryResponse {
|
|
3609
|
+
/**
|
|
3610
|
+
* Notification-history rows, newest first.
|
|
3611
|
+
*/
|
|
3612
|
+
history: /* A single notification-history row (one real notification decision). */ NotificationHistoryItem[];
|
|
3613
|
+
/**
|
|
3614
|
+
* Opaque base64 cursor for the next page, or null when there are no more rows.
|
|
3615
|
+
*/
|
|
3616
|
+
next_cursor?: string | null;
|
|
3617
|
+
}
|
|
3618
|
+
/**
|
|
3619
|
+
* A configured recipient. Only the epilot user_id is stored.
|
|
3620
|
+
*/
|
|
3621
|
+
export interface NotificationRecipient {
|
|
3622
|
+
/**
|
|
3623
|
+
* epilot user id. Same-org membership is enforced at send time (Phases 3–5), which re-validates each recipient against the integration's org before fanning out — it is not enforced at config-write time.
|
|
3624
|
+
*/
|
|
3625
|
+
user_id: string;
|
|
3626
|
+
}
|
|
3627
|
+
/**
|
|
3628
|
+
* A single notification rule. Only the params relevant to a given type are set. The id is a server-minted ULID, preserved across edits.
|
|
3629
|
+
*/
|
|
3630
|
+
export interface NotificationRule {
|
|
3631
|
+
/**
|
|
3632
|
+
* Stable server-minted ULID. AlertState + baseline key.
|
|
3633
|
+
*/
|
|
3634
|
+
id: string;
|
|
3635
|
+
/**
|
|
3636
|
+
* Optional human label disambiguating two rules of the same type.
|
|
3637
|
+
*/
|
|
3638
|
+
name?: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* Rule trigger type. V1 produces the first six; the remaining values are deferred (V2) catalog types accepted by the data model but not produced by any V1 producer.
|
|
3641
|
+
*/
|
|
3642
|
+
type: "critical_error" | "error_threshold" | "warning_threshold" | "success_rate_drop" | "recovery" | "silence" | "consecutive_failures" | "first_error" | "new_error_code" | "auth_expiry" | "ack_timeout" | "validation_surge";
|
|
3643
|
+
enabled: boolean;
|
|
3644
|
+
channels?: /* Delivery channel toggles. New channels added in svc-notification-api inherit here. */ NotificationChannelSet;
|
|
3645
|
+
/**
|
|
3646
|
+
* Per-rule code scope. Event-matching rules default to ['_parent_']; silence defaults to ['_any_']. success_rate_drop and recovery take no codes.
|
|
3647
|
+
*/
|
|
3648
|
+
codes?: string[];
|
|
3649
|
+
/**
|
|
3650
|
+
* Count or percentage; 'auto' selects anomaly-baseline mode.
|
|
3651
|
+
*/
|
|
3652
|
+
threshold?: /* Count or percentage; 'auto' selects anomaly-baseline mode. */ number | ("auto");
|
|
3653
|
+
/**
|
|
3654
|
+
* Band width for 'auto' mode.
|
|
3655
|
+
*/
|
|
3656
|
+
sensitivity?: "low" | "medium" | "high";
|
|
3657
|
+
/**
|
|
3658
|
+
* Static value used while the 'auto' baseline is immature (cold start).
|
|
3659
|
+
*/
|
|
3660
|
+
fallbackThreshold?: number;
|
|
3661
|
+
/**
|
|
3662
|
+
* Evaluation window, e.g. '15m', '1h', '24h'.
|
|
3663
|
+
*/
|
|
3664
|
+
window?: string;
|
|
3665
|
+
/**
|
|
3666
|
+
* success_rate_drop minimum sample size guard.
|
|
3667
|
+
*/
|
|
3668
|
+
minSampleSize?: number;
|
|
3669
|
+
/**
|
|
3670
|
+
* consecutive_failures count.
|
|
3671
|
+
*/
|
|
3672
|
+
consecutive?: number;
|
|
3673
|
+
/**
|
|
3674
|
+
* silence quiet period, e.g. '12h'.
|
|
3675
|
+
*/
|
|
3676
|
+
quietPeriod?: string;
|
|
3677
|
+
}
|
|
3490
3678
|
export interface OutboundConflict {
|
|
3491
3679
|
/**
|
|
3492
3680
|
* Type of conflict:
|
|
@@ -4941,6 +5129,38 @@ declare namespace Components {
|
|
|
4941
5129
|
*/
|
|
4942
5130
|
overwrite?: boolean;
|
|
4943
5131
|
}
|
|
5132
|
+
export interface TestNotificationRequest {
|
|
5133
|
+
/**
|
|
5134
|
+
* The kind of notification to render and send.
|
|
5135
|
+
*/
|
|
5136
|
+
kind: "alert" | "digest";
|
|
5137
|
+
/**
|
|
5138
|
+
* The alert type to render when kind=alert (e.g. critical_error, error_threshold).
|
|
5139
|
+
*/
|
|
5140
|
+
type?: string;
|
|
5141
|
+
/**
|
|
5142
|
+
* Delivery channels to use; defaults to the integration's configured channels.
|
|
5143
|
+
*/
|
|
5144
|
+
channels?: ("email" | "in_app")[];
|
|
5145
|
+
}
|
|
5146
|
+
export interface TestNotificationResponse {
|
|
5147
|
+
/**
|
|
5148
|
+
* Whether the test notification was accepted for delivery.
|
|
5149
|
+
*/
|
|
5150
|
+
sent: boolean;
|
|
5151
|
+
/**
|
|
5152
|
+
* The calling user id the test was sent to (the only recipient).
|
|
5153
|
+
*/
|
|
5154
|
+
recipient: string;
|
|
5155
|
+
/**
|
|
5156
|
+
* The channels the test was delivered on.
|
|
5157
|
+
*/
|
|
5158
|
+
channels: string[];
|
|
5159
|
+
/**
|
|
5160
|
+
* The svc-notification-api message id, or null when not returned.
|
|
5161
|
+
*/
|
|
5162
|
+
notification_id?: string | null;
|
|
5163
|
+
}
|
|
4944
5164
|
export interface TimeSeriesBreakdownItemV2 {
|
|
4945
5165
|
/**
|
|
4946
5166
|
* Present when grouping by use_case_type
|
|
@@ -5872,6 +6092,30 @@ declare namespace Paths {
|
|
|
5872
6092
|
export type $500 = Components.Responses.InternalServerError;
|
|
5873
6093
|
}
|
|
5874
6094
|
}
|
|
6095
|
+
namespace ListNotificationHistory {
|
|
6096
|
+
namespace Parameters {
|
|
6097
|
+
export type Cursor = string;
|
|
6098
|
+
export type IntegrationId = string; // uuid
|
|
6099
|
+
export type Limit = number;
|
|
6100
|
+
export type Type = string;
|
|
6101
|
+
}
|
|
6102
|
+
export interface PathParameters {
|
|
6103
|
+
integrationId: Parameters.IntegrationId /* uuid */;
|
|
6104
|
+
}
|
|
6105
|
+
export interface QueryParameters {
|
|
6106
|
+
cursor?: Parameters.Cursor;
|
|
6107
|
+
limit?: Parameters.Limit;
|
|
6108
|
+
type?: Parameters.Type;
|
|
6109
|
+
}
|
|
6110
|
+
namespace Responses {
|
|
6111
|
+
export type $200 = Components.Schemas.NotificationHistoryResponse;
|
|
6112
|
+
export type $400 = Components.Responses.BadRequest;
|
|
6113
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
6114
|
+
export type $403 = Components.Responses.Forbidden;
|
|
6115
|
+
export type $404 = Components.Responses.NotFound;
|
|
6116
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
6117
|
+
}
|
|
6118
|
+
}
|
|
5875
6119
|
namespace ListOutboundDlqMessages {
|
|
5876
6120
|
namespace Parameters {
|
|
5877
6121
|
export type IntegrationId = string; // uuid
|
|
@@ -6240,6 +6484,24 @@ declare namespace Paths {
|
|
|
6240
6484
|
export type $500 = Components.Responses.InternalServerError;
|
|
6241
6485
|
}
|
|
6242
6486
|
}
|
|
6487
|
+
namespace TestSendNotification {
|
|
6488
|
+
namespace Parameters {
|
|
6489
|
+
export type IntegrationId = string; // uuid
|
|
6490
|
+
}
|
|
6491
|
+
export interface PathParameters {
|
|
6492
|
+
integrationId: Parameters.IntegrationId /* uuid */;
|
|
6493
|
+
}
|
|
6494
|
+
export type RequestBody = Components.Schemas.TestNotificationRequest;
|
|
6495
|
+
namespace Responses {
|
|
6496
|
+
export type $202 = Components.Schemas.TestNotificationResponse;
|
|
6497
|
+
export type $400 = Components.Responses.BadRequest;
|
|
6498
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
6499
|
+
export type $403 = Components.Responses.Forbidden;
|
|
6500
|
+
export type $404 = Components.Responses.NotFound;
|
|
6501
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
6502
|
+
export type $502 = Components.Schemas.TestNotificationResponse;
|
|
6503
|
+
}
|
|
6504
|
+
}
|
|
6243
6505
|
namespace TriggerErp {
|
|
6244
6506
|
export type RequestBody = Components.Schemas.TriggerErpActionRequest;
|
|
6245
6507
|
namespace Responses {
|
|
@@ -6642,6 +6904,33 @@ interface OperationMethods {
|
|
|
6642
6904
|
data?: any,
|
|
6643
6905
|
config?: AxiosRequestConfig
|
|
6644
6906
|
): OperationResponse<Paths.DeleteIntegrationV2.Responses.$200>
|
|
6907
|
+
/**
|
|
6908
|
+
* listNotificationHistory - listNotificationHistory
|
|
6909
|
+
*
|
|
6910
|
+
* Returns the cursor-paginated, newest-first notification history for an
|
|
6911
|
+
* integration (every real notification decision — both fired and suppressed).
|
|
6912
|
+
* Requires the `integration:view` permission on the integration's organization.
|
|
6913
|
+
*
|
|
6914
|
+
*/
|
|
6915
|
+
'listNotificationHistory'(
|
|
6916
|
+
parameters?: Parameters<Paths.ListNotificationHistory.QueryParameters & Paths.ListNotificationHistory.PathParameters> | null,
|
|
6917
|
+
data?: any,
|
|
6918
|
+
config?: AxiosRequestConfig
|
|
6919
|
+
): OperationResponse<Paths.ListNotificationHistory.Responses.$200>
|
|
6920
|
+
/**
|
|
6921
|
+
* testSendNotification - testSendNotification
|
|
6922
|
+
*
|
|
6923
|
+
* Renders and sends ONE representative notification of the requested kind/type to
|
|
6924
|
+
* the CALLING USER ONLY (never any other recipient), so an operator can preview how
|
|
6925
|
+
* a notification looks. A test send does NOT write to the notification history.
|
|
6926
|
+
* Requires the `integration:manage` permission on the integration's organization.
|
|
6927
|
+
*
|
|
6928
|
+
*/
|
|
6929
|
+
'testSendNotification'(
|
|
6930
|
+
parameters?: Parameters<Paths.TestSendNotification.PathParameters> | null,
|
|
6931
|
+
data?: Paths.TestSendNotification.RequestBody,
|
|
6932
|
+
config?: AxiosRequestConfig
|
|
6933
|
+
): OperationResponse<Paths.TestSendNotification.Responses.$202>
|
|
6645
6934
|
/**
|
|
6646
6935
|
* getSecureProxyWhitelist - Get secure_proxy whitelist (admin portal only)
|
|
6647
6936
|
*
|
|
@@ -7320,6 +7609,37 @@ interface PathsDictionary {
|
|
|
7320
7609
|
config?: AxiosRequestConfig
|
|
7321
7610
|
): OperationResponse<Paths.DeleteIntegrationV2.Responses.$200>
|
|
7322
7611
|
}
|
|
7612
|
+
['/v2/integrations/{integrationId}/notifications/history']: {
|
|
7613
|
+
/**
|
|
7614
|
+
* listNotificationHistory - listNotificationHistory
|
|
7615
|
+
*
|
|
7616
|
+
* Returns the cursor-paginated, newest-first notification history for an
|
|
7617
|
+
* integration (every real notification decision — both fired and suppressed).
|
|
7618
|
+
* Requires the `integration:view` permission on the integration's organization.
|
|
7619
|
+
*
|
|
7620
|
+
*/
|
|
7621
|
+
'get'(
|
|
7622
|
+
parameters?: Parameters<Paths.ListNotificationHistory.QueryParameters & Paths.ListNotificationHistory.PathParameters> | null,
|
|
7623
|
+
data?: any,
|
|
7624
|
+
config?: AxiosRequestConfig
|
|
7625
|
+
): OperationResponse<Paths.ListNotificationHistory.Responses.$200>
|
|
7626
|
+
}
|
|
7627
|
+
['/v2/integrations/{integrationId}/notifications/test']: {
|
|
7628
|
+
/**
|
|
7629
|
+
* testSendNotification - testSendNotification
|
|
7630
|
+
*
|
|
7631
|
+
* Renders and sends ONE representative notification of the requested kind/type to
|
|
7632
|
+
* the CALLING USER ONLY (never any other recipient), so an operator can preview how
|
|
7633
|
+
* a notification looks. A test send does NOT write to the notification history.
|
|
7634
|
+
* Requires the `integration:manage` permission on the integration's organization.
|
|
7635
|
+
*
|
|
7636
|
+
*/
|
|
7637
|
+
'post'(
|
|
7638
|
+
parameters?: Parameters<Paths.TestSendNotification.PathParameters> | null,
|
|
7639
|
+
data?: Paths.TestSendNotification.RequestBody,
|
|
7640
|
+
config?: AxiosRequestConfig
|
|
7641
|
+
): OperationResponse<Paths.TestSendNotification.Responses.$202>
|
|
7642
|
+
}
|
|
7323
7643
|
['/v2/integrations/{integrationId}/use-cases/{useCaseId}/secure-proxy-whitelist']: {
|
|
7324
7644
|
/**
|
|
7325
7645
|
* getSecureProxyWhitelist - Get secure_proxy whitelist (admin portal only)
|
|
@@ -7804,6 +8124,7 @@ type IntegrationEntity = Components.Schemas.IntegrationEntity;
|
|
|
7804
8124
|
type IntegrationEntityField = Components.Schemas.IntegrationEntityField;
|
|
7805
8125
|
type IntegrationFieldV1 = Components.Schemas.IntegrationFieldV1;
|
|
7806
8126
|
type IntegrationMeterReading = Components.Schemas.IntegrationMeterReading;
|
|
8127
|
+
type IntegrationNotificationConfig = Components.Schemas.IntegrationNotificationConfig;
|
|
7807
8128
|
type IntegrationObjectV1 = Components.Schemas.IntegrationObjectV1;
|
|
7808
8129
|
type IntegrationSettings = Components.Schemas.IntegrationSettings;
|
|
7809
8130
|
type IntegrationWithUseCases = Components.Schemas.IntegrationWithUseCases;
|
|
@@ -7825,6 +8146,12 @@ type MeterUniqueIdsConfig = Components.Schemas.MeterUniqueIdsConfig;
|
|
|
7825
8146
|
type MonitoringEventV2 = Components.Schemas.MonitoringEventV2;
|
|
7826
8147
|
type MonitoringStats = Components.Schemas.MonitoringStats;
|
|
7827
8148
|
type MonitoringStatsV2 = Components.Schemas.MonitoringStatsV2;
|
|
8149
|
+
type NotificationChannelSet = Components.Schemas.NotificationChannelSet;
|
|
8150
|
+
type NotificationDigestConfig = Components.Schemas.NotificationDigestConfig;
|
|
8151
|
+
type NotificationHistoryItem = Components.Schemas.NotificationHistoryItem;
|
|
8152
|
+
type NotificationHistoryResponse = Components.Schemas.NotificationHistoryResponse;
|
|
8153
|
+
type NotificationRecipient = Components.Schemas.NotificationRecipient;
|
|
8154
|
+
type NotificationRule = Components.Schemas.NotificationRule;
|
|
7828
8155
|
type OutboundConflict = Components.Schemas.OutboundConflict;
|
|
7829
8156
|
type OutboundDlqListResponse = Components.Schemas.OutboundDlqListResponse;
|
|
7830
8157
|
type OutboundDlqMessage = Components.Schemas.OutboundDlqMessage;
|
|
@@ -7870,6 +8197,8 @@ type SecureProxyUseCaseHistoryEntry = Components.Schemas.SecureProxyUseCaseHisto
|
|
|
7870
8197
|
type SecureProxyWhitelist = Components.Schemas.SecureProxyWhitelist;
|
|
7871
8198
|
type SecureProxyWhitelistUpdate = Components.Schemas.SecureProxyWhitelistUpdate;
|
|
7872
8199
|
type SetIntegrationAppMappingRequest = Components.Schemas.SetIntegrationAppMappingRequest;
|
|
8200
|
+
type TestNotificationRequest = Components.Schemas.TestNotificationRequest;
|
|
8201
|
+
type TestNotificationResponse = Components.Schemas.TestNotificationResponse;
|
|
7873
8202
|
type TimeSeriesBreakdownItemV2 = Components.Schemas.TimeSeriesBreakdownItemV2;
|
|
7874
8203
|
type TimeSeriesBucket = Components.Schemas.TimeSeriesBucket;
|
|
7875
8204
|
type TimeSeriesBucketV2 = Components.Schemas.TimeSeriesBucketV2;
|
|
@@ -7896,4 +8225,4 @@ type UseCaseTypePreview = Components.Schemas.UseCaseTypePreview;
|
|
|
7896
8225
|
type WebhookDeliveryConfig = Components.Schemas.WebhookDeliveryConfig;
|
|
7897
8226
|
type WebhookStatus = Components.Schemas.WebhookStatus;
|
|
7898
8227
|
|
|
7899
|
-
export { type GetMonitoringStatsV2Request as $, type AccessLogEntry as A, type EnvironmentFieldConfig as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type EmbeddedFileProxyUseCaseRequest as E, type ErpEvent as F, type ErpEventV3 as G, type ErpUpdatesEventsV2Request as H, type ErpUpdatesEventsV3Request as I, type ErrorResponseBase as J, type FileProxyAuth as K, type FileProxyParam as L, type FileProxyResponseConfig as M, type FileProxySecureProxyAttachment as N, type OperationMethods as O, Paths as P, type FileProxyStep as Q, type FileProxyUrlConfig as R, type FileProxyUrlParam as S, type FileProxyUrlParams as T, type FileProxyUseCase as U, type FileProxyUseCaseConfiguration as V, type FileProxyUseCaseHistoryEntry as W, type GenerateTypesPreviewResponse as X, type GenerateTypesRequest as Y, type GenerateTypesResponse as Z, type GetMonitoringStatsRequest as _, Components as a, type
|
|
8228
|
+
export { type GetMonitoringStatsV2Request as $, type AccessLogEntry as A, type EnvironmentFieldConfig as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type EmbeddedFileProxyUseCaseRequest as E, type ErpEvent as F, type ErpEventV3 as G, type ErpUpdatesEventsV2Request as H, type ErpUpdatesEventsV3Request as I, type ErrorResponseBase as J, type FileProxyAuth as K, type FileProxyParam as L, type FileProxyResponseConfig as M, type FileProxySecureProxyAttachment as N, type OperationMethods as O, Paths as P, type FileProxyStep as Q, type FileProxyUrlConfig as R, type FileProxyUrlParam as S, type FileProxyUrlParams as T, type FileProxyUseCase as U, type FileProxyUseCaseConfiguration as V, type FileProxyUseCaseHistoryEntry as W, type GenerateTypesPreviewResponse as X, type GenerateTypesRequest as Y, type GenerateTypesResponse as Z, type GetMonitoringStatsRequest as _, Components as a, type QueryEventsRequest as a$, type GetMonitoringTimeSeriesRequest as a0, type GetMonitoringTimeSeriesV2Request as a1, type InboundIntegrationEventConfiguration as a2, type InboundMonitoringEvent as a3, type InboundUseCase as a4, type InboundUseCaseHistoryEntry as a5, type Integration as a6, type IntegrationAppMapping as a7, type IntegrationConfigurationV1 as a8, type IntegrationConfigurationV2 as a9, type MonitoringStatsV2 as aA, type NotificationChannelSet as aB, type NotificationDigestConfig as aC, type NotificationHistoryItem as aD, type NotificationHistoryResponse as aE, type NotificationRecipient as aF, type NotificationRule as aG, type OutboundConflict as aH, type OutboundDlqListResponse as aI, type OutboundDlqMessage as aJ, type OutboundIntegrationEventConfiguration as aK, type OutboundMapping as aL, type OutboundMessage as aM, type OutboundMonitoringEvent as aN, type OutboundPollStatus as aO, type OutboundStatusResponse as aP, type OutboundUseCase as aQ, type OutboundUseCaseHistoryEntry as aR, type OutboundUseCaseStatus as aS, type PollDeliveryConfig as aT, type PollOutboundMessagesRequest as aU, type PollOutboundMessagesResponse as aV, type PortalOrigin as aW, type PortalRefConfig as aX, type PortalRefFilter as aY, type PruneScopeConfig as aZ, type QueryAccessLogsRequest as a_, type IntegrationEditableFields as aa, type IntegrationEntity as ab, type IntegrationEntityField as ac, type IntegrationFieldV1 as ad, type IntegrationMeterReading as ae, type IntegrationNotificationConfig as af, type IntegrationObjectV1 as ag, type IntegrationSettings as ah, type IntegrationWithUseCases as ai, type ManagedCallAuth as aj, type ManagedCallErrorResponse as ak, type ManagedCallExecuteRequest as al, type ManagedCallExecuteResponse as am, type ManagedCallOperation as an, type ManagedCallOperationConfig as ao, type ManagedCallUseCase as ap, type ManagedCallUseCaseHistoryEntry as aq, type MappingSimulationRequest as ar, type MappingSimulationResponse as as, type MappingSimulationV2Request as at, type MappingSimulationWarning as au, type MeterReadingPruneScopeConfig as av, type MeterReadingUpdate as aw, type MeterUniqueIdsConfig as ax, type MonitoringEventV2 as ay, type MonitoringStats as az, type PathsDictionary as b, type QueryInboundMonitoringEventsRequest as b0, type QueryMonitoringEventsV2Request as b1, type QueryOutboundMonitoringEventsRequest as b2, type RedriveOutboundDlqRequest as b3, type RedriveOutboundDlqResponse as b4, type RedriveOutboundDlqResult as b5, type RelationConfig as b6, type RelationItemConfig as b7, type RelationRefItemConfig as b8, type RelationRefValueConfig as b9, type UpdateInboundUseCaseRequest as bA, type UpdateIntegrationRequest as bB, type UpdateManagedCallUseCaseRequest as bC, type UpdateOutboundUseCaseRequest as bD, type UpdateSecureProxyUseCaseRequest as bE, type UpdateUseCaseRequest as bF, type UpdateUseCaseRequestBase as bG, type UpsertIntegrationWithUseCasesRequest as bH, type UseCase as bI, type UseCaseBase as bJ, type UseCaseHistoryEntry as bK, type UseCaseHistoryEntryBase as bL, type UseCaseTypePreview as bM, type WebhookDeliveryConfig as bN, type WebhookStatus as bO, type RelationRefsConfig as ba, type RelationUniqueIdField as bb, type RepeatableFieldType as bc, type ReplayEventsRequest as bd, type SecureProxyRequest as be, type SecureProxyResponse as bf, type SecureProxySummary as bg, type SecureProxyUpstreamError as bh, type SecureProxyUseCase as bi, type SecureProxyUseCaseConfiguration as bj, type SecureProxyUseCaseHistoryEntry as bk, type SecureProxyWhitelist as bl, type SecureProxyWhitelistUpdate as bm, type SetIntegrationAppMappingRequest as bn, type TestNotificationRequest as bo, type TestNotificationResponse as bp, type TimeSeriesBreakdownItemV2 as bq, type TimeSeriesBucket as br, type TimeSeriesBucketV2 as bs, type TriggerErpActionRequest as bt, type TriggerWebhookResp as bu, type TypeAnnotations as bv, type TypeDescriptor as bw, type UnblockOutboundStreamRequest as bx, type UnblockOutboundStreamResponse as by, type UpdateFileProxyUseCaseRequest as bz, type AckOutboundMessagesRequest as c, type AckOutboundMessagesResponse as d, type AckResult as e, type AutoRefreshSettings as f, type CommitTypesRequest as g, type CommitTypesResponse as h, type ConnectorConfig as i, type CreateFileProxyUseCaseRequest as j, type CreateInboundUseCaseRequest as k, type CreateIntegrationRequest as l, type CreateManagedCallUseCaseRequest as m, type CreateOutboundUseCaseRequest as n, type CreateSecureProxyUseCaseRequest as o, type CreateUseCaseRequest as p, type CreateUseCaseRequestBase as q, type DeliveryConfig as r, type EmbeddedInboundUseCaseRequest as s, type EmbeddedManagedCallUseCaseRequest as t, type EmbeddedOutboundUseCaseRequest as u, type EmbeddedSecureProxyUseCaseRequest as v, type EmbeddedUseCaseRequest as w, type EmbeddedUseCaseRequestBase as x, type EntityUpdate as y, type EnvVarRefConfig as z };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
+
|
|
3
|
+
// src/docs/journey.json
|
|
4
|
+
var journey_default = '# Journey API\n\n- **Base URL:** `https://journey-config.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/journey](https://docs.epilot.io/api/journey)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.journey.getJourneysByOrgId(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/journey\'\n\nconst journeyClient = getClient()\nauthorize(journeyClient, () => \'<token>\')\nconst { data } = await journeyClient.getJourneysByOrgId(...)\n```\n\n## Operations\n\n**Journeys**\n- [`getJourneysByOrgId`](#getjourneysbyorgid)\n- [`getJourney`](#getjourney)\n- [`removeJourney`](#removejourney)\n- [`getJourneyProducts`](#getjourneyproducts)\n- [`createJourney`](#createjourney)\n- [`updateJourney`](#updatejourney)\n- [`patchUpdateJourney`](#patchupdatejourney)\n- [`searchJourneys`](#searchjourneys)\n- [`generateDocument`](#generatedocument)\n- [`getSettingsForJourney`](#getsettingsforjourney)\n- [`getButtonOptions`](#getbuttonoptions)\n\n**Journeys V2**\n- [`createJourneyV2`](#createjourneyv2)\n- [`updateJourneyV2`](#updatejourneyv2)\n- [`patchUpdateJourneyV2`](#patchupdatejourneyv2)\n- [`getJourneyV2`](#getjourneyv2)\n- [`removeJourneyV2`](#removejourneyv2)\n\n**Schemas**\n- [`GetJourneysResponse`](#getjourneysresponse)\n- [`JourneyResponse`](#journeyresponse)\n- [`JourneyProductsResponse`](#journeyproductsresponse)\n- [`PatchUpdateJourneyRequest`](#patchupdatejourneyrequest)\n- [`JourneyCreationRequest`](#journeycreationrequest)\n- [`JourneyCreationRequestV2`](#journeycreationrequestv2)\n- [`SearchJourneysQueryRequest`](#searchjourneysqueryrequest)\n- [`SearchJourneysResponse`](#searchjourneysresponse)\n- [`Journey`](#journey)\n- [`JourneyFeatureFlags`](#journeyfeatureflags)\n- [`JourneyAuditInfo`](#journeyauditinfo)\n- [`JourneyValidationResponse`](#journeyvalidationresponse)\n- [`JourneyValidationError`](#journeyvalidationerror)\n- [`S3Reference`](#s3reference)\n- [`TemplateSettings`](#templatesettings)\n- [`GenerateDocumentResponse`](#generatedocumentresponse)\n- [`GenerateDocumentRequest`](#generatedocumentrequest)\n- [`GetSettingsForJourney`](#getsettingsforjourney)\n- [`ButtonOption`](#buttonoption)\n- [`ValidationRuleRef`](#validationruleref)\n- [`RuleRef`](#ruleref)\n\n### `getJourneysByOrgId`\n\nGet all journeys by organization id\n\n`GET /v1/journey/organization/{id}`\n\n```ts\nconst { data } = await client.getJourneysByOrgId({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n hydrate: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{}\n```\n\n</details>\n\n---\n\n### `getJourney`\n\nGet journey by id. Private journeys requires valid private token to be passed\n\n`GET /v1/journey/configuration/{id}`\n\n```ts\nconst { data } = await client.getJourney({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n version: 1,\n source: \'example\',\n orgId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "journeyId": "string",\n "organizationId": "string",\n "brandId": "string",\n "name": "string",\n "steps": [\n {\n "showStepName": true,\n "title": "string",\n "subTitle": "string",\n "showStepSubtitle": true,\n "showStepper": true,\n "showStepperLabels": true,\n "hideNextButton": true,\n "name": "string",\n "stepId": "string",\n "schema": {},\n "uischema": {},\n "maxWidth": "small"\n }\n ],\n "design": {\n "logoUrl": "string",\n "theme": {},\n "designTokens": {}\n },\n "rules": [\n {\n "type": "inject",\n "sourceType": "journey",\n "source": "string",\n "target": "string"\n }\n ],\n "logics": [\n {\n "autoGeneratedId": "string",\n "conditions": ["string"],\n "actions": ["string"]\n }\n ],\n "logicsV4": {},\n "contextSchema": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "type": "string",\n "paramKey": "string",\n "isRequired": true,\n "shouldLoadEntity": true\n }\n ],\n "journey_type": "Sales template (Premium)",\n "protected": true,\n "protectedEditable": ["string"],\n "settings": {\n "embedOptions": {\n "mode": "full-screen",\n "lang": "de",\n "width": "string",\n "topBar": true,\n "scrollToTop": true,\n "button": {}\n },\n "safeModeAutomation": true,\n "canary": true,\n "designId": "string",\n "templateId": "string",\n "entityId": "string",\n "mappingsAutomationId": "string",\n "targetedCustomer": "string",\n "description": "string",\n "organizationSettings": {},\n "publicToken": "string",\n "runtimeEntities": ["ORDER"],\n "filePurposes": ["string"],\n "entityTags": ["string"],\n "addressSuggestionsFileUrl": "string",\n "addressSuggestionsFileId": "string",\n "addressSuggestionsCountryCode": "string",\n "addressSuggestionsEnableAutoComplete": true,\n "addressSuggestionsSource": ["string"],\n "addressSuggestionsEnableFreeText": true,\n "useNewDesign": true,\n "useAustrianLabels": true,\n "enableDarkMode": true,\n "accessMode": "PUBLIC",\n "isPublished": true,\n "status": "string",\n "isActive": true,\n "savingProgress": {\n "savingMode": "auto",\n "supportedVersion": 0\n },\n "thirdPartyCookies": true\n },\n "validationRules": {\n "block1": "rule123",\n "block2": {\n "field1": "rule456",\n "field2": "rule789"\n }\n },\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],\n "createdBy": "string",\n "updatedBy": "string",\n "__lastModifiedAt": "string",\n "createdAt": "string",\n "lastModifiedAt": "string",\n "deletedAt": "string",\n "version": 0,\n "revisions": 0,\n "featureFlags": {}\n}\n```\n\n</details>\n\n---\n\n### `removeJourney`\n\nRemove journey by id\n\n`DELETE /v1/journey/configuration/{id}`\n\n```ts\nconst { data } = await client.removeJourney({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `getJourneyProducts`\n\nGet products available in the journey by id. requires public journey token to be passed.\n\n`GET /v1/journey/products/{id}`\n\n```ts\nconst { data } = await client.getJourneyProducts({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n source: \'example\',\n postal_code: \'example\',\n city: \'example\',\n street: \'example\',\n street_number: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "type": "string",\n "_schema": "string",\n "_title": "string",\n "name": "string",\n "_id": "string",\n "_org": "string",\n "code": "string",\n "description": "string",\n "feature": [\n {}\n ],\n "product_images": [\n {}\n ],\n "legal_footnote": "string",\n "product_downloads": [\n {}\n ],\n "price": {}\n }\n]\n```\n\n</details>\n\n---\n\n### `createJourney`\n\nCreate a Journey\n\n`POST /v1/journey/configuration`\n\n```ts\nconst { data } = await client.createJourney(\n {\n skipAutomation: \'example\',\n },\n {\n journeyId: \'string\',\n organizationId: \'string\',\n brandId: \'string\',\n name: \'string\',\n steps: [\n {\n showStepName: true,\n title: \'string\',\n subTitle: \'string\',\n showStepSubtitle: true,\n showStepper: true,\n showStepperLabels: true,\n hideNextButton: true,\n name: \'string\',\n stepId: \'string\',\n schema: {},\n uischema: {},\n maxWidth: \'small\'\n }\n ],\n design: {\n logoUrl: \'string\',\n theme: {},\n designTokens: {}\n },\n rules: [\n {\n type: \'inject\',\n sourceType: \'journey\',\n source: \'string\',\n target: \'string\'\n }\n ],\n logics: [\n {\n autoGeneratedId: \'string\',\n conditions: [\'string\'],\n actions: [\'string\']\n }\n ],\n logicsV4: {},\n contextSchema: [\n {\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n type: \'string\',\n paramKey: \'string\',\n isRequired: true,\n shouldLoadEntity: true\n }\n ],\n journey_type: \'Sales template (Premium)\',\n protected: true,\n protectedEditable: [\'string\'],\n settings: {\n embedOptions: {\n mode: \'full-screen\',\n lang: \'de\',\n width: \'string\',\n topBar: true,\n scrollToTop: true,\n button: { /* ... */ }\n },\n safeModeAutomation: true,\n canary: true,\n designId: \'string\',\n templateId: \'string\',\n entityId: \'string\',\n mappingsAutomationId: \'string\',\n targetedCustomer: \'string\',\n description: \'string\',\n organizationSettings: {},\n publicToken: \'string\',\n runtimeEntities: [\'ORDER\'],\n filePurposes: [\'string\'],\n entityTags: [\'string\'],\n addressSuggestionsFileUrl: \'string\',\n addressSuggestionsFileId: \'string\',\n addressSuggestionsCountryCode: \'string\',\n addressSuggestionsEnableAutoComplete: true,\n addressSuggestionsSource: [\'string\'],\n addressSuggestionsEnableFreeText: true,\n useNewDesign: true,\n useAustrianLabels: true,\n enableDarkMode: true,\n accessMode: \'PUBLIC\',\n isPublished: true,\n status: \'string\',\n isActive: true,\n savingProgress: {\n savingMode: \'auto\',\n supportedVersion: 0\n },\n thirdPartyCookies: true\n },\n validationRules: {\n block1: \'rule123\',\n block2: {\n field1: \'rule456\',\n field2: \'rule789\'\n }\n },\n _manifest: [\'123e4567-e89b-12d3-a456-426614174000\'],\n createdBy: \'string\',\n updatedBy: \'string\',\n __lastModifiedAt: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "journeyId": "string",\n "organizationId": "string",\n "brandId": "string",\n "name": "string",\n "steps": [\n {\n "showStepName": true,\n "title": "string",\n "subTitle": "string",\n "showStepSubtitle": true,\n "showStepper": true,\n "showStepperLabels": true,\n "hideNextButton": true,\n "name": "string",\n "stepId": "string",\n "schema": {},\n "uischema": {},\n "maxWidth": "small"\n }\n ],\n "design": {\n "logoUrl": "string",\n "theme": {},\n "designTokens": {}\n },\n "rules": [\n {\n "type": "inject",\n "sourceType": "journey",\n "source": "string",\n "target": "string"\n }\n ],\n "logics": [\n {\n "autoGeneratedId": "string",\n "conditions": ["string"],\n "actions": ["string"]\n }\n ],\n "logicsV4": {},\n "contextSchema": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "type": "string",\n "paramKey": "string",\n "isRequired": true,\n "shouldLoadEntity": true\n }\n ],\n "journey_type": "Sales template (Premium)",\n "protected": true,\n "protectedEditable": ["string"],\n "settings": {\n "embedOptions": {\n "mode": "full-screen",\n "lang": "de",\n "width": "string",\n "topBar": true,\n "scrollToTop": true,\n "button": {}\n },\n "safeModeAutomation": true,\n "canary": true,\n "designId": "string",\n "templateId": "string",\n "entityId": "string",\n "mappingsAutomationId": "string",\n "targetedCustomer": "string",\n "description": "string",\n "organizationSettings": {},\n "publicToken": "string",\n "runtimeEntities": ["ORDER"],\n "filePurposes": ["string"],\n "entityTags": ["string"],\n "addressSuggestionsFileUrl": "string",\n "addressSuggestionsFileId": "string",\n "addressSuggestionsCountryCode": "string",\n "addressSuggestionsEnableAutoComplete": true,\n "addressSuggestionsSource": ["string"],\n "addressSuggestionsEnableFreeText": true,\n "useNewDesign": true,\n "useAustrianLabels": true,\n "enableDarkMode": true,\n "accessMode": "PUBLIC",\n "isPublished": true,\n "status": "string",\n "isActive": true,\n "savingProgress": {\n "savingMode": "auto",\n "supportedVersion": 0\n },\n "thirdPartyCookies": true\n },\n "validationRules": {\n "block1": "rule123",\n "block2": {\n "field1": "rule456",\n "field2": "rule789"\n }\n },\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],\n "createdBy": "string",\n "updatedBy": "string",\n "__lastModifiedAt": "string",\n "createdAt": "string",\n "lastModifiedAt": "string",\n "deletedAt": "string",\n "version": 0,\n "revisions": 0,\n "featureFlags": {}\n}\n```\n\n</details>\n\n---\n\n### `updateJourney`\n\nUpdate a Journey\n\n`PUT /v1/journey/configuration`\n\n```ts\nconst { data } = await client.updateJourney(\n null,\n {\n journeyId: \'string\',\n organizationId: \'string\',\n brandId: \'string\',\n name: \'string\',\n steps: [\n {\n showStepName: true,\n title: \'string\',\n subTitle: \'string\',\n showStepSubtitle: true,\n showStepper: true,\n showStepperLabels: true,\n hideNextButton: true,\n name: \'string\',\n stepId: \'string\',\n schema: {},\n uischema: {},\n maxWidth: \'small\'\n }\n ],\n design: {\n logoUrl: \'string\',\n theme: {},\n designTokens: {}\n },\n rules: [\n {\n type: \'inject\',\n sourceType: \'journey\',\n source: \'string\',\n target: \'string\'\n }\n ],\n logics: [\n {\n autoGeneratedId: \'string\',\n conditions: [\'string\'],\n actions: [\'string\']\n }\n ],\n logicsV4: {},\n contextSchema: [\n {\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n type: \'string\',\n paramKey: \'string\',\n isRequired: true,\n shouldLoadEntity: true\n }\n ],\n journey_type: \'Sales template (Premium)\',\n protected: true,\n protectedEditable: [\'string\'],\n settings: {\n embedOptions: {\n mode: \'full-screen\',\n lang: \'de\',\n width: \'string\',\n topBar: true,\n scrollToTop: true,\n button: { /* ... */ }\n },\n safeModeAutomation: true,\n canary: true,\n designId: \'string\',\n templateId: \'string\',\n entityId: \'string\',\n mappingsAutomationId: \'string\',\n targetedCustomer: \'string\',\n description: \'string\',\n organizationSettings: {},\n publicToken: \'string\',\n runtimeEntities: [\'ORDER\'],\n filePurposes: [\'string\'],\n entityTags: [\'string\'],\n addressSuggestionsFileUrl: \'string\',\n addressSuggestionsFileId: \'string\',\n addressSuggestionsCountryCode: \'string\',\n addressSuggestionsEnableAutoComplete: true,\n addressSuggestionsSource: [\'string\'],\n addressSuggestionsEnableFreeText: true,\n useNewDesign: true,\n useAustrianLabels: true,\n enableDarkMode: true,\n accessMode: \'PUBLIC\',\n isPublished: true,\n status: \'string\',\n isActive: true,\n savingProgress: {\n savingMode: \'auto\',\n supportedVersion: 0\n },\n thirdPartyCookies: true\n },\n validationRules: {\n block1: \'rule123\',\n block2: {\n field1: \'rule456\',\n field2: \'rule789\'\n }\n },\n _manifest: [\'123e4567-e89b-12d3-a456-426614174000\'],\n createdBy: \'string\',\n updatedBy: \'string\',\n __lastModifiedAt: \'string\'\n },\n)\n```\n\n---\n\n### `patchUpdateJourney`\n\nUpdate a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").\n\n`PATCH /v1/journey/configuration`\n\n```ts\nconst { data } = await client.patchUpdateJourney(\n null,\n {\n journeyId: \'509cdffe-424f-457a-95c2-9708c304ce77\',\n __lastModifiedAt: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "createdJourney": {\n "journeyId": "string",\n "organizationId": "string",\n "brandId": "string",\n "name": "string",\n "steps": [\n {}\n ],\n "design": {\n "logoUrl": "string",\n "theme": {},\n "designTokens": {}\n },\n "rules": [\n {}\n ],\n "logics": [\n {}\n ],\n "logicsV4": {},\n "contextSchema": [\n {}\n ],\n "journey_type": "Sales template (Premium)",\n "protected": true,\n "protectedEditable": ["string"],\n "settings": {\n "embedOptions": {},\n "safeModeAutomation": true,\n "canary": true,\n "designId": "string",\n "templateId": "string",\n "entityId": "string",\n "mappingsAutomationId": "string",\n "targetedCustomer": "string",\n "description": "string",\n "organizationSettings": {},\n "publicToken": "string",\n "runtimeEntities": ["ORDER"],\n "filePurposes": ["string"],\n "entityTags": ["string"],\n "addressSuggestionsFileUrl": "string",\n "addressSuggestionsFileId": "string",\n "addressSuggestionsCountryCode": "string",\n "addressSuggestionsEnableAutoComplete": true,\n "addressSuggestionsSource": ["string"],\n "addressSuggestionsEnableFreeText": true,\n "useNewDesign": true,\n "useAustrianLabels": true,\n "enableDarkMode": true,\n "accessMode": "PUBLIC",\n "isPublished": true,\n "status": "string",\n "isActive": true,\n "savingProgress": {},\n "thirdPartyCookies": true\n },\n "validationRules": {\n "block1": "rule123",\n "block2": {}\n },\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],\n "createdBy": "string",\n "updatedBy": "string",\n "__lastModifiedAt": "string",\n "createdAt": "string",\n "lastModifiedAt": "string",\n "deletedAt": "string",\n "version": 0,\n "revisions": 0,\n "featureFlags": {}\n }\n}\n```\n\n</details>\n\n---\n\n### `searchJourneys`\n\nSearch Journeys\n\n`POST /v1/journey/configuration/search`\n\n```ts\nconst { data } = await client.searchJourneys(\n null,\n {\n q: \'_tags:*Flex*\',\n from: 0,\n size: 25,\n sort: \'_created_at:desc\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "hits": 1,\n "results": [\n {\n "_id": "e0f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8",\n "_schema": "journey",\n "_title": "Journey Entity Title",\n "_org": "739224",\n "_created_at": "2020-01-01T00:00:00.000Z",\n "_updated_at": "2020-01-01T00:00:00.000Z",\n "_tags": ["Flex"],\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],\n "journey_name": "Journey Name",\n "journey_id": "de7df470-253e-11ed-9174-116b8a718c0a",\n "journey_type": "Sales template",\n "design": "Design EPILOT",\n "created_by": [\n {\n "id": "12345"\n }\n ],\n "journey_version": "Flex"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `generateDocument`\n\nBuilds document generated from a template with journey values."\n\n`POST /v1/journey/document:generate`\n\n```ts\nconst { data } = await client.generateDocument(\n null,\n {\n file_id: \'1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p\',\n context_data: {\n additionalProperties: \'string\'\n },\n language: \'de\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "job_status": "STARTED",\n "message": "string",\n "pdf_output": {\n "preview_url": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf",\n "output_document": {\n "s3ref": {\n "bucket": "document-api-preview-prod",\n "key": "preview/my-template.pdf"\n }\n }\n },\n "docx_output": {\n "preview_url": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx",\n "output_document": {\n "s3ref": {\n "bucket": "document-api-preview-prod",\n "key": "preview/my-template.docx"\n }\n }\n },\n "variable_payload": {\n "additionalProperties": "string"\n },\n "template_settings": {\n "custom_margins": {\n "top": 2.54,\n "bottom": 2.54\n },\n "suggested_margins": {\n "top": 2.54,\n "bottom": 2.54\n },\n "display_margin_guidelines": true,\n "enable_data_table_margin_autofix": false,\n "template_with_datatable": false,\n "enabled_template_settings_persistence": false,\n "misconfigured_margins": false,\n "file_entity_id": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"\n }\n}\n```\n\n</details>\n\n---\n\n### `createJourneyV2`\n\nCreate a Journey\n\n`POST /v2/journey/configuration`\n\n```ts\nconst { data } = await client.createJourneyV2(\n {\n skipAutomation: \'example\',\n },\n {\n journeyId: \'string\',\n brandId: \'string\',\n name: \'string\',\n steps: [\n {\n showStepName: true,\n title: \'string\',\n subTitle: \'string\',\n showStepSubtitle: true,\n showStepper: true,\n showStepperLabels: true,\n hideNextButton: true,\n name: \'string\',\n stepId: \'string\',\n schema: {},\n uischema: {},\n maxWidth: \'small\'\n }\n ],\n design: {\n logoUrl: \'string\',\n theme: {},\n designTokens: {}\n },\n rules: [\n {\n type: \'inject\',\n sourceType: \'journey\',\n source: \'string\',\n target: \'string\'\n }\n ],\n logics: [\n {\n autoGeneratedId: \'string\',\n conditions: [\'string\'],\n actions: [\'string\']\n }\n ],\n logicsV4: {},\n contextSchema: [\n {\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n type: \'string\',\n paramKey: \'string\',\n isRequired: true,\n shouldLoadEntity: true\n }\n ],\n journey_type: \'Sales template (Premium)\',\n protected: true,\n protectedEditable: [\'string\'],\n settings: {\n embedOptions: {\n mode: \'full-screen\',\n lang: \'de\',\n width: \'string\',\n topBar: true,\n scrollToTop: true,\n button: {\n text: \'string\',\n align: \'left\'\n }\n },\n safeModeAutomation: true,\n designId: \'string\',\n entityId: \'string\',\n mappingsAutomationId: \'string\',\n templateId: \'string\',\n targetedCustomer: \'string\',\n description: \'string\',\n publicToken: \'string\',\n runtimeEntities: [\'ORDER\'],\n filePurposes: [\'string\'],\n entityTags: [\'string\'],\n addressSuggestionsFileUrl: \'string\',\n addressSuggestionsFileId: \'string\',\n addressSuggestionsCountryCode: \'string\',\n addressSuggestionsEnableAutoComplete: true,\n addressSuggestionsSource: [\'string\'],\n addressSuggestionsEnableFreeText: true,\n useNewDesign: true,\n thirdPartyCookies: true,\n accessMode: \'PUBLIC\',\n enableDarkMode: true,\n isActive: true\n },\n validationRules: {\n block1: \'rule123\',\n block2: {\n field1: \'rule456\',\n field2: \'rule789\'\n }\n },\n _manifest: [\'123e4567-e89b-12d3-a456-426614174000\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "journeyId": "string",\n "brandId": "string",\n "name": "string",\n "steps": [\n {\n "showStepName": true,\n "title": "string",\n "subTitle": "string",\n "showStepSubtitle": true,\n "showStepper": true,\n "showStepperLabels": true,\n "hideNextButton": true,\n "name": "string",\n "stepId": "string",\n "schema": {},\n "uischema": {},\n "maxWidth": "small"\n }\n ],\n "design": {\n "logoUrl": "string",\n "theme": {},\n "designTokens": {}\n },\n "rules": [\n {\n "type": "inject",\n "sourceType": "journey",\n "source": "string",\n "target": "string"\n }\n ],\n "logics": [\n {\n "autoGeneratedId": "string",\n "conditions": ["string"],\n "actions": ["string"]\n }\n ],\n "logicsV4": {},\n "contextSchema": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "type": "string",\n "paramKey": "string",\n "isRequired": true,\n "shouldLoadEntity": true\n }\n ],\n "journey_type": "Sales template (Premium)",\n "protected": true,\n "protectedEditable": ["string"],\n "settings": {\n "embedOptions": {\n "mode": "full-screen",\n "lang": "de",\n "width": "string",\n "topBar": true,\n "scrollToTop": true,\n "button": {\n "text": "string",\n "align": "left"\n }\n },\n "safeModeAutomation": true,\n "designId": "string",\n "entityId": "string",\n "mappingsAutomationId": "string",\n "templateId": "string",\n "targetedCustomer": "string",\n "description": "string",\n "publicToken": "string",\n "runtimeEntities": ["ORDER"],\n "filePurposes": ["string"],\n "entityTags": ["string"],\n "addressSuggestionsFileUrl": "string",\n "addressSuggestionsFileId": "string",\n "addressSuggestionsCountryCode": "string",\n "addressSuggestionsEnableAutoComplete": true,\n "addressSuggestionsSource": ["string"],\n "addressSuggestionsEnableFreeText": true,\n "useNewDesign": true,\n "thirdPartyCookies": true,\n "accessMode": "PUBLIC",\n "enableDarkMode": true,\n "isActive": true\n },\n "validationRules": {\n "block1": "rule123",\n "block2": {\n "field1": "rule456",\n "field2": "rule789"\n }\n },\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"]\n}\n```\n\n</details>\n\n---\n\n### `updateJourneyV2`\n\nUpdate a Journey\n\n`PUT /v2/journey/configuration`\n\n```ts\nconst { data } = await client.updateJourneyV2(\n null,\n {\n journeyId: \'string\',\n brandId: \'string\',\n name: \'string\',\n steps: [\n {\n showStepName: true,\n title: \'string\',\n subTitle: \'string\',\n showStepSubtitle: true,\n showStepper: true,\n showStepperLabels: true,\n hideNextButton: true,\n name: \'string\',\n stepId: \'string\',\n schema: {},\n uischema: {},\n maxWidth: \'small\'\n }\n ],\n design: {\n logoUrl: \'string\',\n theme: {},\n designTokens: {}\n },\n rules: [\n {\n type: \'inject\',\n sourceType: \'journey\',\n source: \'string\',\n target: \'string\'\n }\n ],\n logics: [\n {\n autoGeneratedId: \'string\',\n conditions: [\'string\'],\n actions: [\'string\']\n }\n ],\n logicsV4: {},\n contextSchema: [\n {\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n type: \'string\',\n paramKey: \'string\',\n isRequired: true,\n shouldLoadEntity: true\n }\n ],\n journey_type: \'Sales template (Premium)\',\n protected: true,\n protectedEditable: [\'string\'],\n settings: {\n embedOptions: {\n mode: \'full-screen\',\n lang: \'de\',\n width: \'string\',\n topBar: true,\n scrollToTop: true,\n button: {\n text: \'string\',\n align: \'left\'\n }\n },\n safeModeAutomation: true,\n designId: \'string\',\n entityId: \'string\',\n mappingsAutomationId: \'string\',\n templateId: \'string\',\n targetedCustomer: \'string\',\n description: \'string\',\n publicToken: \'string\',\n runtimeEntities: [\'ORDER\'],\n filePurposes: [\'string\'],\n entityTags: [\'string\'],\n addressSuggestionsFileUrl: \'string\',\n addressSuggestionsFileId: \'string\',\n addressSuggestionsCountryCode: \'string\',\n addressSuggestionsEnableAutoComplete: true,\n addressSuggestionsSource: [\'string\'],\n addressSuggestionsEnableFreeText: true,\n useNewDesign: true,\n thirdPartyCookies: true,\n accessMode: \'PUBLIC\',\n enableDarkMode: true,\n isActive: true\n },\n validationRules: {\n block1: \'rule123\',\n block2: {\n field1: \'rule456\',\n field2: \'rule789\'\n }\n },\n _manifest: [\'123e4567-e89b-12d3-a456-426614174000\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "journeyId": "string",\n "brandId": "string",\n "name": "string",\n "steps": [\n {\n "showStepName": true,\n "title": "string",\n "subTitle": "string",\n "showStepSubtitle": true,\n "showStepper": true,\n "showStepperLabels": true,\n "hideNextButton": true,\n "name": "string",\n "stepId": "string",\n "schema": {},\n "uischema": {},\n "maxWidth": "small"\n }\n ],\n "design": {\n "logoUrl": "string",\n "theme": {},\n "designTokens": {}\n },\n "rules": [\n {\n "type": "inject",\n "sourceType": "journey",\n "source": "string",\n "target": "string"\n }\n ],\n "logics": [\n {\n "autoGeneratedId": "string",\n "conditions": ["string"],\n "actions": ["string"]\n }\n ],\n "logicsV4": {},\n "contextSchema": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "type": "string",\n "paramKey": "string",\n "isRequired": true,\n "shouldLoadEntity": true\n }\n ],\n "journey_type": "Sales template (Premium)",\n "protected": true,\n "protectedEditable": ["string"],\n "settings": {\n "embedOptions": {\n "mode": "full-screen",\n "lang": "de",\n "width": "string",\n "topBar": true,\n "scrollToTop": true,\n "button": {\n "text": "string",\n "align": "left"\n }\n },\n "safeModeAutomation": true,\n "designId": "string",\n "entityId": "string",\n "mappingsAutomationId": "string",\n "templateId": "string",\n "targetedCustomer": "string",\n "description": "string",\n "publicToken": "string",\n "runtimeEntities": ["ORDER"],\n "filePurposes": ["string"],\n "entityTags": ["string"],\n "addressSuggestionsFileUrl": "string",\n "addressSuggestionsFileId": "string",\n "addressSuggestionsCountryCode": "string",\n "addressSuggestionsEnableAutoComplete": true,\n "addressSuggestionsSource": ["string"],\n "addressSuggestionsEnableFreeText": true,\n "useNewDesign": true,\n "thirdPartyCookies": true,\n "accessMode": "PUBLIC",\n "enableDarkMode": true,\n "isActive": true\n },\n "validationRules": {\n "block1": "rule123",\n "block2": {\n "field1": "rule456",\n "field2": "rule789"\n }\n },\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"]\n}\n```\n\n</details>\n\n---\n\n### `patchUpdateJourneyV2`\n\nUpdate a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").\n\n`PATCH /v2/journey/configuration`\n\n```ts\nconst { data } = await client.patchUpdateJourneyV2(\n null,\n {\n journeyId: \'509cdffe-424f-457a-95c2-9708c304ce77\',\n __lastModifiedAt: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "journeyId": "string",\n "brandId": "string",\n "name": "string",\n "steps": [\n {\n "showStepName": true,\n "title": "string",\n "subTitle": "string",\n "showStepSubtitle": true,\n "showStepper": true,\n "showStepperLabels": true,\n "hideNextButton": true,\n "name": "string",\n "stepId": "string",\n "schema": {},\n "uischema": {},\n "maxWidth": "small"\n }\n ],\n "design": {\n "logoUrl": "string",\n "theme": {},\n "designTokens": {}\n },\n "rules": [\n {\n "type": "inject",\n "sourceType": "journey",\n "source": "string",\n "target": "string"\n }\n ],\n "logics": [\n {\n "autoGeneratedId": "string",\n "conditions": ["string"],\n "actions": ["string"]\n }\n ],\n "logicsV4": {},\n "contextSchema": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "type": "string",\n "paramKey": "string",\n "isRequired": true,\n "shouldLoadEntity": true\n }\n ],\n "journey_type": "Sales template (Premium)",\n "protected": true,\n "protectedEditable": ["string"],\n "settings": {\n "embedOptions": {\n "mode": "full-screen",\n "lang": "de",\n "width": "string",\n "topBar": true,\n "scrollToTop": true,\n "button": {\n "text": "string",\n "align": "left"\n }\n },\n "safeModeAutomation": true,\n "designId": "string",\n "entityId": "string",\n "mappingsAutomationId": "string",\n "templateId": "string",\n "targetedCustomer": "string",\n "description": "string",\n "publicToken": "string",\n "runtimeEntities": ["ORDER"],\n "filePurposes": ["string"],\n "entityTags": ["string"],\n "addressSuggestionsFileUrl": "string",\n "addressSuggestionsFileId": "string",\n "addressSuggestionsCountryCode": "string",\n "addressSuggestionsEnableAutoComplete": true,\n "addressSuggestionsSource": ["string"],\n "addressSuggestionsEnableFreeText": true,\n "useNewDesign": true,\n "thirdPartyCookies": true,\n "accessMode": "PUBLIC",\n "enableDarkMode": true,\n "isActive": true\n },\n "validationRules": {\n "block1": "rule123",\n "block2": {\n "field1": "rule456",\n "field2": "rule789"\n }\n },\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"]\n}\n```\n\n</details>\n\n---\n\n### `getJourneyV2`\n\nGet journey by id\n\n`GET /v2/journey/configuration/{id}`\n\n```ts\nconst { data } = await client.getJourneyV2({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n version: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "journeyId": "string",\n "brandId": "string",\n "name": "string",\n "steps": [\n {\n "showStepName": true,\n "title": "string",\n "subTitle": "string",\n "showStepSubtitle": true,\n "showStepper": true,\n "showStepperLabels": true,\n "hideNextButton": true,\n "name": "string",\n "stepId": "string",\n "schema": {},\n "uischema": {},\n "maxWidth": "small"\n }\n ],\n "design": {\n "logoUrl": "string",\n "theme": {},\n "designTokens": {}\n },\n "rules": [\n {\n "type": "inject",\n "sourceType": "journey",\n "source": "string",\n "target": "string"\n }\n ],\n "logics": [\n {\n "autoGeneratedId": "string",\n "conditions": ["string"],\n "actions": ["string"]\n }\n ],\n "logicsV4": {},\n "contextSchema": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "type": "string",\n "paramKey": "string",\n "isRequired": true,\n "shouldLoadEntity": true\n }\n ],\n "journey_type": "Sales template (Premium)",\n "protected": true,\n "protectedEditable": ["string"],\n "settings": {\n "embedOptions": {\n "mode": "full-screen",\n "lang": "de",\n "width": "string",\n "topBar": true,\n "scrollToTop": true,\n "button": {\n "text": "string",\n "align": "left"\n }\n },\n "safeModeAutomation": true,\n "designId": "string",\n "entityId": "string",\n "mappingsAutomationId": "string",\n "templateId": "string",\n "targetedCustomer": "string",\n "description": "string",\n "publicToken": "string",\n "runtimeEntities": ["ORDER"],\n "filePurposes": ["string"],\n "entityTags": ["string"],\n "addressSuggestionsFileUrl": "string",\n "addressSuggestionsFileId": "string",\n "addressSuggestionsCountryCode": "string",\n "addressSuggestionsEnableAutoComplete": true,\n "addressSuggestionsSource": ["string"],\n "addressSuggestionsEnableFreeText": true,\n "useNewDesign": true,\n "thirdPartyCookies": true,\n "accessMode": "PUBLIC",\n "enableDarkMode": true,\n "isActive": true\n },\n "validationRules": {\n "block1": "rule123",\n "block2": {\n "field1": "rule456",\n "field2": "rule789"\n }\n },\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"]\n}\n```\n\n</details>\n\n---\n\n### `removeJourneyV2`\n\nRemove journey by id\n\n`DELETE /v2/journey/configuration/{id}`\n\n```ts\nconst { data } = await client.removeJourneyV2({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `getSettingsForJourney`\n\nGet settings related to the journey using journey ID.\n\n`GET /v1/journey/{id}/settings`\n\n```ts\nconst { data } = await client.getSettingsForJourney({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "organizationId": "739224",\n "canary": true,\n "thirdPartyCookies": true\n}\n```\n\n</details>\n\n---\n\n### `getButtonOptions`\n\nGet button options from a csv file.\n\n`GET /v1/journey/button-options`\n\n```ts\nconst { data } = await client.getButtonOptions({\n fileId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "value": "Button Hidden Value",\n "label": "Button Label"\n }\n]\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `GetJourneysResponse`\n\n```ts\ntype GetJourneysResponse = object\n```\n\n### `JourneyResponse`\n\n```ts\ntype JourneyResponse = {\n createdJourney?: {\n journeyId?: string\n organizationId: string\n brandId?: string\n name: string\n steps: Array<{\n showStepName?: { ... }\n title?: { ... }\n subTitle?: { ... }\n showStepSubtitle?: { ... }\n showStepper?: { ... }\n showStepperLabels?: { ... }\n hideNextButton?: { ... }\n name: { ... }\n stepId?: { ... }\n schema: { ... }\n uischema: { ... }\n maxWidth?: { ... }\n }>\n design?: {\n logoUrl?: { ... }\n theme?: { ... }\n designTokens?: { ... }\n }\n rules?: Array<{\n type: { ... }\n sourceType: { ... }\n source: { ... }\n target: { ... }\n }>\n logics?: Array<{\n autoGeneratedId?: { ... }\n conditions: { ... }\n actions: { ... }\n }>\n logicsV4?: Record<string, {\n id?: { ... }\n protected?: { ... }\n action?: { ... }\n triggeredOn?: { ... }\n conditions?: { ... }\n settings?: { ... }\n }>\n contextSchema?: Array<{\n id?: { ... }\n type: { ... }\n paramKey: { ... }\n isRequired?: { ... }\n shouldLoadEntity?: { ... }\n }>\n journey_type?: string\n protected?: boolean\n protectedEditable?: string[]\n settings?: {\n embedOptions?: { ... }\n safeModeAutomation?: { ... }\n canary?: { ... }\n designId: { ... }\n templateId?: { ... }\n entityId?: { ... }\n mappingsAutomationId?: { ... }\n targetedCustomer?: { ... }\n description?: { ... }\n organizationSettings?: { ... }\n publicToken?: { ... }\n runtimeEntities?: { ... }\n filePurposes?: { ... }\n entityTags?: { ... }\n addressSuggestionsFileUrl?: { ... }\n addressSuggestionsFileId?: { ... }\n addressSuggestionsCountryCode?: { ... }\n addressSuggestionsEnableAutoComplete?: { ... }\n addressSuggestionsSource?: { ... }\n addressSuggestionsEnableFreeText?: { ... }\n useNewDesign?: { ... }\n useAustrianLabels?: { ... }\n enableDarkMode?: { ... }\n accessMode?: { ... }\n isPublished?: { ... }\n status?: { ... }\n isActive?: { ... }\n savingProgress?: { ... }\n thirdPartyCookies?: { ... }\n }\n validationRules?: Record<string, string | Record<string, string>>\n _manifest?: string // uuid[]\n createdBy?: string\n updatedBy?: string\n __lastModifiedAt?: string\n createdAt: string\n lastModifiedAt: string\n deletedAt?: string\n version: number\n revisions: number\n featureFlags?: Record<string, unknown>\n }\n}\n```\n\n### `JourneyProductsResponse`\n\n```ts\ntype JourneyProductsResponse = Array<{\n type?: string\n _schema?: string\n _title?: string\n name?: string\n _id?: string\n _org?: string\n code?: string\n description?: string\n feature?: unknown[]\n product_images?: unknown[]\n legal_footnote?: string\n product_downloads?: unknown[]\n price?: object\n}>\n```\n\n### `PatchUpdateJourneyRequest`\n\nPatch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.\n\n\n```ts\ntype PatchUpdateJourneyRequest = {\n journeyId: string // uuid\n __lastModifiedAt?: string\n}\n```\n\n### `JourneyCreationRequest`\n\n```ts\ntype JourneyCreationRequest = {\n journeyId?: string\n organizationId: string\n brandId?: string\n name: string\n steps: Array<{\n showStepName?: boolean\n title?: string\n subTitle?: string\n showStepSubtitle?: boolean\n showStepper?: boolean\n showStepperLabels?: boolean\n hideNextButton?: boolean\n name: string\n stepId?: string\n schema: unknown\n uischema: unknown\n maxWidth?: "small" | "medium" | "large" | "extra large"\n }>\n design?: {\n logoUrl?: string\n theme?: Record<string, unknown>\n designTokens?: object\n }\n rules?: Array<{\n type: "inject" | "injectWithKey"\n sourceType: "journey" | "step" | "block"\n source: string\n target: string\n }>\n logics?: Array<{\n autoGeneratedId?: string\n conditions: string[]\n actions: string[]\n }>\n logicsV4?: Record<string, {\n id?: string // uuid\n protected?: boolean\n action?: string\n triggeredOn?: string\n conditions?: Array<Array<{\n operator?: { ... }\n functionName?: { ... }\n fact?: { ... }\n value?: { ... }\n args?: { ... }\n }>>\n settings?: object\n }>\n contextSchema?: Array<{\n id?: string // uuid\n type: string\n paramKey: string\n isRequired?: boolean\n shouldLoadEntity?: boolean\n }>\n journey_type?: string\n protected?: boolean\n protectedEditable?: string[]\n settings?: {\n embedOptions?: {\n mode?: { ... }\n lang?: { ... }\n width?: { ... }\n topBar?: { ... }\n scrollToTop?: { ... }\n button?: { ... }\n }\n safeModeAutomation?: boolean\n canary?: boolean\n designId: string\n templateId?: string\n entityId?: string\n mappingsAutomationId?: string\n targetedCustomer?: string\n description?: string\n organizationSettings?: Record<string, boolean>\n publicToken?: string\n runtimeEntities?: "ORDER" | "OPPORTUNITY"[]\n filePurposes?: string[]\n entityTags?: string[]\n addressSuggestionsFileUrl?: string\n addressSuggestionsFileId?: string\n addressSuggestionsCountryCode?: string\n addressSuggestionsEnableAutoComplete?: boolean\n addressSuggestionsSource?: string[]\n addressSuggestionsEnableFreeText?: boolean\n useNewDesign?: boolean\n useAustrianLabels?: boolean\n enableDarkMode?: boolean\n accessMode?: "PUBLIC" | "PRIVATE"\n isPublished?: boolean\n status?: string\n isActive?: boolean\n savingProgress?: {\n savingMode?: { ... }\n supportedVersion?: { ... }\n }\n thirdPartyCookies?: boolean\n }\n // ...\n}\n```\n\n### `JourneyCreationRequestV2`\n\n```ts\ntype JourneyCreationRequestV2 = {\n journeyId?: string\n brandId?: string\n name: string\n steps: Array<{\n showStepName?: boolean\n title?: string\n subTitle?: string\n showStepSubtitle?: boolean\n showStepper?: boolean\n showStepperLabels?: boolean\n hideNextButton?: boolean\n name: string\n stepId?: string\n schema: unknown\n uischema: unknown\n maxWidth?: "small" | "medium" | "large" | "extra large"\n }>\n design?: {\n logoUrl?: string\n theme?: Record<string, unknown>\n designTokens?: object\n }\n rules?: Array<{\n type: "inject" | "injectWithKey"\n sourceType: "journey" | "step" | "block"\n source: string\n target: string\n }>\n logics?: Array<{\n autoGeneratedId?: string\n conditions: string[]\n actions: string[]\n }>\n logicsV4?: Record<string, {\n id?: string // uuid\n protected?: boolean\n action?: string\n triggeredOn?: string\n conditions?: Array<Array<{\n operator?: { ... }\n functionName?: { ... }\n fact?: { ... }\n value?: { ... }\n args?: { ... }\n }>>\n settings?: object\n }>\n contextSchema?: Array<{\n id?: string // uuid\n type: string\n paramKey: string\n isRequired?: boolean\n shouldLoadEntity?: boolean\n }>\n journey_type?: string\n protected?: boolean\n protectedEditable?: string[]\n settings?: {\n embedOptions?: {\n mode?: { ... }\n lang?: { ... }\n width?: { ... }\n topBar?: { ... }\n scrollToTop?: { ... }\n button?: { ... }\n }\n safeModeAutomation?: boolean\n designId?: string\n entityId?: string\n mappingsAutomationId?: string\n templateId?: string\n targetedCustomer?: string\n description?: string\n publicToken?: string\n runtimeEntities?: "ORDER" | "OPPORTUNITY"[]\n filePurposes?: string[]\n entityTags?: string[]\n addressSuggestionsFileUrl?: string\n addressSuggestionsFileId?: string\n addressSuggestionsCountryCode?: string\n addressSuggestionsEnableAutoComplete?: boolean\n addressSuggestionsSource?: string[]\n addressSuggestionsEnableFreeText?: boolean\n useNewDesign?: boolean\n thirdPartyCookies?: boolean\n accessMode?: "PUBLIC" | "PRIVATE"\n enableDarkMode?: boolean\n isActive?: boolean\n }\n validationRules?: Record<string, string | Record<string, string>>\n _manifest?: string // uuid[]\n}\n```\n\n### `SearchJourneysQueryRequest`\n\n```ts\ntype SearchJourneysQueryRequest = {\n q?: string\n from?: number\n size?: number\n sort?: string\n}\n```\n\n### `SearchJourneysResponse`\n\n```ts\ntype SearchJourneysResponse = {\n hits?: number\n results?: Array<{\n _id?: string // uuid\n _schema?: string\n _title?: string\n _org?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _tags?: string[]\n _manifest?: string // uuid[]\n journey_name?: string\n journey_id?: string // uuid\n journey_type?: string\n design?: string\n created_by?: Array<{\n id?: { ... }\n }>\n journey_version?: "Flex"\n }>\n}\n```\n\n### `Journey`\n\n```ts\ntype Journey = {\n journeyId?: string\n organizationId: string\n brandId?: string\n name: string\n steps: Array<{\n showStepName?: boolean\n title?: string\n subTitle?: string\n showStepSubtitle?: boolean\n showStepper?: boolean\n showStepperLabels?: boolean\n hideNextButton?: boolean\n name: string\n stepId?: string\n schema: unknown\n uischema: unknown\n maxWidth?: "small" | "medium" | "large" | "extra large"\n }>\n design?: {\n logoUrl?: string\n theme?: Record<string, unknown>\n designTokens?: object\n }\n rules?: Array<{\n type: "inject" | "injectWithKey"\n sourceType: "journey" | "step" | "block"\n source: string\n target: string\n }>\n logics?: Array<{\n autoGeneratedId?: string\n conditions: string[]\n actions: string[]\n }>\n logicsV4?: Record<string, {\n id?: string // uuid\n protected?: boolean\n action?: string\n triggeredOn?: string\n conditions?: Array<Array<{\n operator?: { ... }\n functionName?: { ... }\n fact?: { ... }\n value?: { ... }\n args?: { ... }\n }>>\n settings?: object\n }>\n contextSchema?: Array<{\n id?: string // uuid\n type: string\n paramKey: string\n isRequired?: boolean\n shouldLoadEntity?: boolean\n }>\n journey_type?: string\n protected?: boolean\n protectedEditable?: string[]\n settings?: {\n embedOptions?: {\n mode?: { ... }\n lang?: { ... }\n width?: { ... }\n topBar?: { ... }\n scrollToTop?: { ... }\n button?: { ... }\n }\n safeModeAutomation?: boolean\n canary?: boolean\n designId: string\n templateId?: string\n entityId?: string\n mappingsAutomationId?: string\n targetedCustomer?: string\n description?: string\n organizationSettings?: Record<string, boolean>\n publicToken?: string\n runtimeEntities?: "ORDER" | "OPPORTUNITY"[]\n filePurposes?: string[]\n entityTags?: string[]\n addressSuggestionsFileUrl?: string\n addressSuggestionsFileId?: string\n addressSuggestionsCountryCode?: string\n addressSuggestionsEnableAutoComplete?: boolean\n addressSuggestionsSource?: string[]\n addressSuggestionsEnableFreeText?: boolean\n useNewDesign?: boolean\n useAustrianLabels?: boolean\n enableDarkMode?: boolean\n accessMode?: "PUBLIC" | "PRIVATE"\n isPublished?: boolean\n status?: string\n isActive?: boolean\n savingProgress?: {\n savingMode?: { ... }\n supportedVersion?: { ... }\n }\n thirdPartyCookies?: boolean\n }\n // ...\n}\n```\n\n### `JourneyFeatureFlags`\n\n```ts\ntype JourneyFeatureFlags = {\n featureFlags?: Record<string, unknown>\n}\n```\n\n### `JourneyAuditInfo`\n\n```ts\ntype JourneyAuditInfo = {\n createdAt: string\n lastModifiedAt: string\n deletedAt?: string\n version: number\n revisions: number\n}\n```\n\n### `JourneyValidationResponse`\n\n```ts\ntype JourneyValidationResponse = {\n valid: boolean\n errors: Array<{\n type?: string\n severity?: "critical" | "high" | "medium" | "low"\n message?: string\n affectedStepIds?: string[]\n count?: number\n autoFix?: {\n feasible?: { ... }\n confidence?: { ... }\n reason?: { ... }\n details?: { ... }\n }\n }>\n warnings?: Array<{\n type?: string\n message?: string\n }>\n}\n```\n\n### `JourneyValidationError`\n\n```ts\ntype JourneyValidationError = {\n error: string\n message: string\n details: Array<{\n pattern?: string\n severity?: "critical" | "high" | "medium" | "low"\n message?: string\n count?: number\n }>\n}\n```\n\n### `S3Reference`\n\n```ts\ntype S3Reference = {\n bucket: string\n key: string\n}\n```\n\n### `TemplateSettings`\n\nTemplate Settings for document generation\n\n```ts\ntype TemplateSettings = {\n custom_margins?: {\n top?: number\n bottom?: number\n }\n suggested_margins?: {\n top?: number\n bottom?: number\n }\n display_margin_guidelines?: boolean\n enable_data_table_margin_autofix?: boolean\n template_with_datatable?: boolean\n enabled_template_settings_persistence?: boolean\n misconfigured_margins?: boolean\n file_entity_id?: string // uuid\n}\n```\n\n### `GenerateDocumentResponse`\n\n```ts\ntype GenerateDocumentResponse = {\n job_id?: string // uuid\n job_status?: "STARTED" | "PROCESSING" | "SUCCESS" | "FAILED"\n message?: string\n pdf_output?: {\n preview_url?: string\n output_document?: {\n filename?: { ... }\n s3ref?: { ... }\n }\n }\n docx_output?: {\n preview_url?: string\n output_document?: {\n filename?: { ... }\n s3ref?: { ... }\n }\n }\n variable_payload?: {\n additionalProperties?: string\n }\n template_settings?: {\n custom_margins?: {\n top?: { ... }\n bottom?: { ... }\n }\n suggested_margins?: {\n top?: { ... }\n bottom?: { ... }\n }\n display_margin_guidelines?: boolean\n enable_data_table_margin_autofix?: boolean\n template_with_datatable?: boolean\n enabled_template_settings_persistence?: boolean\n misconfigured_margins?: boolean\n file_entity_id?: string // uuid\n }\n}\n```\n\n### `GenerateDocumentRequest`\n\n```ts\ntype GenerateDocumentRequest = {\n file_id: string\n context_data: {\n additionalProperties?: string\n }\n language?: string\n}\n```\n\n### `GetSettingsForJourney`\n\n```ts\ntype GetSettingsForJourney = {\n organizationId?: string\n canary?: boolean\n thirdPartyCookies?: boolean\n}\n```\n\n### `ButtonOption`\n\nA single button option data\n\n```ts\ntype ButtonOption = {\n value?: string\n label?: string\n}\n```\n\n### `ValidationRuleRef`\n\nReferences to validation rules organized by blocks and fields.\nMaps block IDs to either rule IDs (for block-level rules) or rule references (for field-level rules).\n\n\n```ts\ntype ValidationRuleRef = Record<string, string | Record<string, string>>\n```\n\n### `RuleRef`\n\nField-level rule references within a block.\nMaps field names to rule IDs.\n\n\n```ts\ntype RuleRef = Record<string, string>\n```\n';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.default = journey_default;
|