linkbreakers 1.195.6

Official Rust SDK for the Linkbreakers API
Documentation
/*
 * Linkbreakers API
 *
 * This is a documentation of all the APIs of Linkbreakers  ## Entry points  `GET https://api.linkbreakers.com/` and `GET https://api.linkbreakers.com/v1` answer without credentials with the API's name, version and links. This document is served at `https://api.linkbreakers.com/openapi.json`.  ## Rate limits  Every response describes where the caller stands in the IETF `RateLimit-Policy` and `RateLimit` header fields (draft-ietf-httpapi-ratelimit-headers), and in `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` and `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (a Unix timestamp) for clients that read those. A request past the limit gets `429 Too Many Requests` with `Retry-After` in seconds.  - Workspace API token: 720 requests per 60 seconds, per token. - Dashboard session or OAuth token: 600 requests per 60 seconds, per token. - No credentials: 300 requests per 60 seconds, per client IP.  Each plan also includes a number of API calls per billing cycle. Past it, calls answer `429` with the code `MAX_PUBLIC_API_QUERIED_REACHED` until the cycle renews or the plan changes.  ## Pagination  Every list pages with opaque cursors (AIP-158). Pass `pageSize`, then send the `nextPageToken` of each response back as `pageToken` (or its alias `cursor`) to get the next page. An empty or absent `nextPageToken` means the list is complete. Each list operation describes this in `x-pagination`.  ## Batches and background jobs  `POST /v1/links/bulk` creates up to 250 links in one transactional request; `POST /v1/links/batch` takes the same links as a bare JSON array. `POST /v1/links/bulk/jobs` accepts the same batch and answers `202 Accepted` at once with a job and a `Location` header; poll `GET /v1/jobs/{id}` until `status` is `JOB_STATUS_SUCCEEDED` (the created link ids are in `linksBulkCreate.linkIds`) or `JOB_STATUS_FAILED` (`error` says why, and nothing was created). Jobs can be read for 24 hours after they finish.  ## Versioning and deprecation  The version is in the path: every operation lives under `/v1`. Within a version, changes are additive only: new operations, new optional request fields, new response fields and new enum values. Clients should ignore fields and enum values they do not know. Anything that would break an existing client ships under a new path version instead.  An operation is retired in two steps. First it is deprecated: it keeps working, is flagged `deprecated: true` in this document, and every response carries a `Deprecation` header field (RFC 9745) with the time it was deprecated and a `Link` with `rel=\"deprecation\"` to the policy. Then, at least 180 days later, it may be removed; that date is announced in advance in a `Sunset` header field (RFC 8594) and as `x-sunset` on the operation. The full policy: https://linkbreakers.com/help/article/api-versioning-and-deprecation-policy  ## Idempotent retries  Every POST, PUT and PATCH accepts an optional `Idempotency-Key` header (draft-ietf-httpapi-idempotency-key-header). Send a new unique value, such as a UUID, with each logical request and reuse it only to retry that request. A retry with the same key and the same request returns the first response, marked `Idempotent-Replayed: true`, instead of running again. Keys are scoped to the token and kept for 24 hours. The same key with a different request is refused with `422`, and a retry while the first request is still running gets `409` with `Retry-After`. Server errors (5xx) and refusals such as 401, 403 and 429 are not stored, so retrying them runs the request again.  ## Identifying your client  Send a `Linkbreakers-Client` request header saying which client made the call: `<client>/<version> (<details>)`, for example `my-integration/1.2.0 (python 3.12; linux)`. The official SDKs, the CLI and the MCP bridge set it for you, as `sdk-python/2.3.1 (python 3.12.4; linux)` or `cli/1.4.0 (darwin arm64)`. It is optional and changes nothing about how a request is handled; it tells us which clients and versions are in use, so we know what can be retired and what to fix first. Keep the details short and free of personal data. Browsers may send it too: it is allowed by CORS.
 *
 * The version of the OpenAPI document: 1.195.6
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// WorkflowStep : Models a node in the Linkbreakers workflow canvas, defining what should occur after a scan (redirects, gates, forms) and how it connects to other steps in the visitor journey.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorkflowStep {
    /// What this step saves to the visitor's profile when a visitor goes through it. Absent when the step has never been configured to save anything.
    #[serde(rename = "attributeCapture", skip_serializing_if = "Option::is_none")]
    pub attribute_capture: Option<Box<models::AttributeCapture>>,
    /// The page's optional back button, which returns the visitor to the page they came from (such as the menu) without wiring a connection. Absent when it has never been configured. Only page steps carry one.
    #[serde(rename = "backButton", skip_serializing_if = "Option::is_none")]
    pub back_button: Option<Box<models::BackButton>>,
    /// Whether this step's back_button can ever show: the step is a page and some visitor reaches it after already seeing another page (a menu, a form, a password page). False on a page that comes straight after the scan, even through conditions, because a visitor there has no page to go back to. A back_button stored on a step where this is false is kept, so it shows again once the wiring puts a page before the step.
    #[serde(rename = "backButtonAvailable", skip_serializing_if = "Option::is_none")]
    pub back_button_available: Option<bool>,
    /// Every exit of this step, with its current destination.  This is the vocabulary for connecting the step: pass one of these branch_ids to workflow_steps_connect. An atomic step has exactly one branch, \"next\". A composite step has one per button, option or range, plus \"else\" for a condition's fallback. An exit step has none.
    #[serde(rename = "branches", skip_serializing_if = "Option::is_none")]
    pub branches: Option<Vec<models::WorkflowStepBranch>>,
    #[serde(rename = "canvasPosition", skip_serializing_if = "Option::is_none")]
    pub canvas_position: Option<Box<models::CanvasPosition>>,
    #[serde(rename = "childStepIds", skip_serializing_if = "Option::is_none")]
    pub child_step_ids: Option<Vec<String>>,
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// - EVENT_ACTION_UNSPECIFIED: Event action not specified  - EVENT_ACTION_CLIENT_REDIRECT: Redirect visitors to a destination URL  - EVENT_ACTION_LINK_VISIT: Entry step triggered when the link is visited.  - EVENT_ACTION_PASSWORD_VERIFY: Require visitors to enter a password before proceeding  - EVENT_ACTION_FORM_SUBMIT: Present a data collection form to visitors  - EVENT_ACTION_CONTACT_CARD: Generate a vCard (VCF) response with contact information  - EVENT_ACTION_MULTI_LINK: A page of buttons where each one continues into more workflow: the button leads to a next step, not straight out. Records which button the visitor pressed, so use it over SOCIAL_LINKS_PAGE when that choice is worth measuring or when a branch needs to do more than redirect. This is the menu step: for several documents or PDFs, give each one a button connected to an OPEN_MEDIA step for media uploaded to the media library, or to a CLIENT_REDIRECT when the document is already hosted at a URL.  - EVENT_ACTION_VISIT_TYPE_CONDITION: Route visitors based on whether it's a first or returning visit  - EVENT_ACTION_COUNTRY_CONDITION: Route visitors based on their country location  - EVENT_ACTION_DAY_OF_WEEK_CONDITION: Route visitors based on day of week  - EVENT_ACTION_TIME_OF_DAY_CONDITION: Route visitors based on time of day  - EVENT_ACTION_DAY_OF_MONTH_CONDITION: Route visitors based on day of month  - EVENT_ACTION_SPECIFIC_DATE_CONDITION: Route visitors based on specific calendar dates  - EVENT_ACTION_SOCIAL_LINKS_PAGE: A page of buttons that each leave for an external URL. Social profiles are the common case, not the only one: app stores, docs, booking pages and storefronts all work, and the name is the only thing about it that is social. It is an exit step, so the visitor leaves from here.  - EVENT_ACTION_DEVICE_TYPE_CONDITION: Route visitors based on device type (e.g. MOBILE, DESKTOP, TABLET)  - EVENT_ACTION_DEVICE_PLATFORM_CONDITION: Route visitors based on device platform / operating system (e.g. iOS, Android, macOS)  - EVENT_ACTION_DEVICE_BROWSER_CONDITION: Route visitors based on their browser: a browser family (Chrome, Safari, Firefox...) or the in-app browser of the app a link was opened in (Instagram, TikTok, Facebook, LinkedIn...)  - EVENT_ACTION_DEVICE_BRAND_CONDITION: Route visitors based on hardware brand (e.g. Apple, Samsung, Google)  - EVENT_ACTION_DEVICE_ACTOR_CONDITION: Route visitors based on actor classification: HUMAN, BOT, AGENT, AUTOMATED or UNKNOWN. AGENT is an AI agent that names itself (GPTBot, Claude-User, Perplexity-User...). AUTOMATED is a browser driven by software, whoever is behind it: headless Chrome from its request, and a visible browser under automation once a link with the Advanced data collection level has read navigator.webdriver, from that device's next visit on.  - EVENT_ACTION_VISITOR_DATA_CONDITION: Route visitors based on their profile data or custom attributes  - EVENT_ACTION_THANK_YOU_PAGE: Display a final thank you / completion message (exit step)  - EVENT_ACTION_MESSAGE_PAGE: Text with ONE way onward: a single button, or a timer that moves the visitor automatically. It carries no list of destinations, so a page that should offer a choice between two or more places is not this step. Use SOCIAL_LINKS_PAGE when the choices leave for external URLs, or MULTI_LINK when each choice continues into more workflow. Never put links, documents or PDFs on it: it is a message, nothing else.  - EVENT_ACTION_OPEN_MEDIA: Hand the visitor one piece of uploaded media, opened in their browser (exit step): a PDF, an image (PNG, JPEG, WebP, SVG) or an MP4 video. The visitor is sent straight to the media, with no page of its own. Any media of the library can be opened: it is uploaded once and referenced by its media_id; swapping it means pointing the step at another media item, and the QR code never changes.  - EVENT_ACTION_LOCATION_REQUEST: Ask the visitor for their precise location (GPS) through the browser, with their permission (composite: two branches, \"location\" when it was shared, \"else\" when it was refused, skipped or is unavailable).  - EVENT_ACTION_LANGUAGE_CONDITION: Route visitors based on their phone or browser language (the first language it sends, matched on its two-letter ISO 639-1 base, so \"fr\" catches fr-FR and fr-CA)  - EVENT_ACTION_CHAT_BOT: A conversation with one of the workspace's agents that collects visitor attributes (composite: two branches, \"completed\" when every required objective is known, \"else\" otherwise)  - EVENT_ACTION_TRAFFIC_SPLIT: Split visitors between 2 to 20 variants by percentage, for an A/B test (composite: one branch per variant, no \"else\"). Assignment is deterministic and sticky per device by default. See TrafficSplitPayload.
    #[serde(rename = "eventAction", skip_serializing_if = "Option::is_none")]
    pub event_action: Option<EventAction>,
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// - KIND_UNSPECIFIED: Workflow step kind not specified  - KIND_ENTRY: Entry steps are automatically triggered when a visitor reaches the workflow  - KIND_EXIT: Exit steps finalize the workflow (commonly a redirect)  - KIND_INTERACTION: Interaction steps require visitor input (forms, passwords, etc.)  - KIND_CONDITION: Condition steps evaluate logic and route to different next steps
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<Kind>,
    #[serde(rename = "linkId", skip_serializing_if = "Option::is_none")]
    pub link_id: Option<String>,
    /// Whether a page added after this step could show a back button: this step is a page, or a page comes before it. False for a step no visitor reaches.
    #[serde(rename = "nextCanGoBack", skip_serializing_if = "Option::is_none")]
    pub next_can_go_back: Option<bool>,
    /// The node type says how many exits a step has. Whatever the answer, you connect every one of them the same way, with workflow_steps_connect: name the branch, name the step it leads to. Read a step's branches field for its branch ids.  Example: a multi-link with 3 buttons has 3 branches, with the buttons' ids. A redirect has one branch, \"next\". A country condition has one branch per country plus \"else\".   - NODE_TYPE_UNSPECIFIED: Workflow step node type not specified  - NODE_TYPE_COMPOSITE: Composite steps have one exit per button, option or range, plus \"else\" for a condition's fallback. Examples: MULTI_LINK, VISIT_TYPE_CONDITION, COUNTRY_CONDITION, DAY_OF_WEEK_CONDITION, TIME_OF_DAY_CONDITION, DAY_OF_MONTH_CONDITION, SPECIFIC_DATE_CONDITION, DEVICE_*_CONDITION, VISITOR_DATA_CONDITION  - NODE_TYPE_ATOMIC: Atomic steps have exactly one exit, branch id \"next\". Exit steps (THANK_YOU_PAGE, CONTACT_CARD, SOCIAL_LINKS_PAGE, CLIENT_REDIRECT) are atomic but end the journey, so they have no branches at all. Examples: LINK_VISIT, PASSWORD_VERIFY, FORM_SUBMIT, MESSAGE_PAGE
    #[serde(rename = "nodeType", skip_serializing_if = "Option::is_none")]
    pub node_type: Option<NodeType>,
    #[serde(rename = "parentStepIds", skip_serializing_if = "Option::is_none")]
    pub parent_step_ids: Option<Vec<String>>,
    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
    pub payload: Option<Box<models::WorkflowStepPayload>>,
    /// Whether visitors see this step as a page. Page steps take the options every page has, such as back_button; redirects and conditions do not.
    #[serde(rename = "rendersPage", skip_serializing_if = "Option::is_none")]
    pub renders_page: Option<bool>,
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
}

impl WorkflowStep {
    /// Models a node in the Linkbreakers workflow canvas, defining what should occur after a scan (redirects, gates, forms) and how it connects to other steps in the visitor journey.
    pub fn new() -> WorkflowStep {
        WorkflowStep {
            attribute_capture: None,
            back_button: None,
            back_button_available: None,
            branches: None,
            canvas_position: None,
            child_step_ids: None,
            created_at: None,
            event_action: None,
            id: None,
            kind: None,
            link_id: None,
            next_can_go_back: None,
            node_type: None,
            parent_step_ids: None,
            payload: None,
            renders_page: None,
            updated_at: None,
        }
    }
}
/// - EVENT_ACTION_UNSPECIFIED: Event action not specified  - EVENT_ACTION_CLIENT_REDIRECT: Redirect visitors to a destination URL  - EVENT_ACTION_LINK_VISIT: Entry step triggered when the link is visited.  - EVENT_ACTION_PASSWORD_VERIFY: Require visitors to enter a password before proceeding  - EVENT_ACTION_FORM_SUBMIT: Present a data collection form to visitors  - EVENT_ACTION_CONTACT_CARD: Generate a vCard (VCF) response with contact information  - EVENT_ACTION_MULTI_LINK: A page of buttons where each one continues into more workflow: the button leads to a next step, not straight out. Records which button the visitor pressed, so use it over SOCIAL_LINKS_PAGE when that choice is worth measuring or when a branch needs to do more than redirect. This is the menu step: for several documents or PDFs, give each one a button connected to an OPEN_MEDIA step for media uploaded to the media library, or to a CLIENT_REDIRECT when the document is already hosted at a URL.  - EVENT_ACTION_VISIT_TYPE_CONDITION: Route visitors based on whether it's a first or returning visit  - EVENT_ACTION_COUNTRY_CONDITION: Route visitors based on their country location  - EVENT_ACTION_DAY_OF_WEEK_CONDITION: Route visitors based on day of week  - EVENT_ACTION_TIME_OF_DAY_CONDITION: Route visitors based on time of day  - EVENT_ACTION_DAY_OF_MONTH_CONDITION: Route visitors based on day of month  - EVENT_ACTION_SPECIFIC_DATE_CONDITION: Route visitors based on specific calendar dates  - EVENT_ACTION_SOCIAL_LINKS_PAGE: A page of buttons that each leave for an external URL. Social profiles are the common case, not the only one: app stores, docs, booking pages and storefronts all work, and the name is the only thing about it that is social. It is an exit step, so the visitor leaves from here.  - EVENT_ACTION_DEVICE_TYPE_CONDITION: Route visitors based on device type (e.g. MOBILE, DESKTOP, TABLET)  - EVENT_ACTION_DEVICE_PLATFORM_CONDITION: Route visitors based on device platform / operating system (e.g. iOS, Android, macOS)  - EVENT_ACTION_DEVICE_BROWSER_CONDITION: Route visitors based on their browser: a browser family (Chrome, Safari, Firefox...) or the in-app browser of the app a link was opened in (Instagram, TikTok, Facebook, LinkedIn...)  - EVENT_ACTION_DEVICE_BRAND_CONDITION: Route visitors based on hardware brand (e.g. Apple, Samsung, Google)  - EVENT_ACTION_DEVICE_ACTOR_CONDITION: Route visitors based on actor classification: HUMAN, BOT, AGENT, AUTOMATED or UNKNOWN. AGENT is an AI agent that names itself (GPTBot, Claude-User, Perplexity-User...). AUTOMATED is a browser driven by software, whoever is behind it: headless Chrome from its request, and a visible browser under automation once a link with the Advanced data collection level has read navigator.webdriver, from that device's next visit on.  - EVENT_ACTION_VISITOR_DATA_CONDITION: Route visitors based on their profile data or custom attributes  - EVENT_ACTION_THANK_YOU_PAGE: Display a final thank you / completion message (exit step)  - EVENT_ACTION_MESSAGE_PAGE: Text with ONE way onward: a single button, or a timer that moves the visitor automatically. It carries no list of destinations, so a page that should offer a choice between two or more places is not this step. Use SOCIAL_LINKS_PAGE when the choices leave for external URLs, or MULTI_LINK when each choice continues into more workflow. Never put links, documents or PDFs on it: it is a message, nothing else.  - EVENT_ACTION_OPEN_MEDIA: Hand the visitor one piece of uploaded media, opened in their browser (exit step): a PDF, an image (PNG, JPEG, WebP, SVG) or an MP4 video. The visitor is sent straight to the media, with no page of its own. Any media of the library can be opened: it is uploaded once and referenced by its media_id; swapping it means pointing the step at another media item, and the QR code never changes.  - EVENT_ACTION_LOCATION_REQUEST: Ask the visitor for their precise location (GPS) through the browser, with their permission (composite: two branches, \"location\" when it was shared, \"else\" when it was refused, skipped or is unavailable).  - EVENT_ACTION_LANGUAGE_CONDITION: Route visitors based on their phone or browser language (the first language it sends, matched on its two-letter ISO 639-1 base, so \"fr\" catches fr-FR and fr-CA)  - EVENT_ACTION_CHAT_BOT: A conversation with one of the workspace's agents that collects visitor attributes (composite: two branches, \"completed\" when every required objective is known, \"else\" otherwise)  - EVENT_ACTION_TRAFFIC_SPLIT: Split visitors between 2 to 20 variants by percentage, for an A/B test (composite: one branch per variant, no \"else\"). Assignment is deterministic and sticky per device by default. See TrafficSplitPayload.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum EventAction {
    #[serde(rename = "EVENT_ACTION_UNSPECIFIED")]
    EventActionUnspecified,
    #[serde(rename = "EVENT_ACTION_CLIENT_REDIRECT")]
    EventActionClientRedirect,
    #[serde(rename = "EVENT_ACTION_LINK_VISIT")]
    EventActionLinkVisit,
    #[serde(rename = "EVENT_ACTION_PASSWORD_VERIFY")]
    EventActionPasswordVerify,
    #[serde(rename = "EVENT_ACTION_FORM_SUBMIT")]
    EventActionFormSubmit,
    #[serde(rename = "EVENT_ACTION_CONTACT_CARD")]
    EventActionContactCard,
    #[serde(rename = "EVENT_ACTION_MULTI_LINK")]
    EventActionMultiLink,
    #[serde(rename = "EVENT_ACTION_VISIT_TYPE_CONDITION")]
    EventActionVisitTypeCondition,
    #[serde(rename = "EVENT_ACTION_COUNTRY_CONDITION")]
    EventActionCountryCondition,
    #[serde(rename = "EVENT_ACTION_DAY_OF_WEEK_CONDITION")]
    EventActionDayOfWeekCondition,
    #[serde(rename = "EVENT_ACTION_TIME_OF_DAY_CONDITION")]
    EventActionTimeOfDayCondition,
    #[serde(rename = "EVENT_ACTION_DAY_OF_MONTH_CONDITION")]
    EventActionDayOfMonthCondition,
    #[serde(rename = "EVENT_ACTION_SPECIFIC_DATE_CONDITION")]
    EventActionSpecificDateCondition,
    #[serde(rename = "EVENT_ACTION_SOCIAL_LINKS_PAGE")]
    EventActionSocialLinksPage,
    #[serde(rename = "EVENT_ACTION_DEVICE_TYPE_CONDITION")]
    EventActionDeviceTypeCondition,
    #[serde(rename = "EVENT_ACTION_DEVICE_PLATFORM_CONDITION")]
    EventActionDevicePlatformCondition,
    #[serde(rename = "EVENT_ACTION_DEVICE_BROWSER_CONDITION")]
    EventActionDeviceBrowserCondition,
    #[serde(rename = "EVENT_ACTION_DEVICE_BRAND_CONDITION")]
    EventActionDeviceBrandCondition,
    #[serde(rename = "EVENT_ACTION_DEVICE_ACTOR_CONDITION")]
    EventActionDeviceActorCondition,
    #[serde(rename = "EVENT_ACTION_VISITOR_DATA_CONDITION")]
    EventActionVisitorDataCondition,
    #[serde(rename = "EVENT_ACTION_THANK_YOU_PAGE")]
    EventActionThankYouPage,
    #[serde(rename = "EVENT_ACTION_MESSAGE_PAGE")]
    EventActionMessagePage,
    #[serde(rename = "EVENT_ACTION_OPEN_MEDIA")]
    EventActionOpenMedia,
    #[serde(rename = "EVENT_ACTION_LOCATION_REQUEST")]
    EventActionLocationRequest,
    #[serde(rename = "EVENT_ACTION_LANGUAGE_CONDITION")]
    EventActionLanguageCondition,
    #[serde(rename = "EVENT_ACTION_CHAT_BOT")]
    EventActionChatBot,
    #[serde(rename = "EVENT_ACTION_TRAFFIC_SPLIT")]
    EventActionTrafficSplit,
}

impl Default for EventAction {
    fn default() -> EventAction {
        Self::EventActionUnspecified
    }
}
/// - KIND_UNSPECIFIED: Workflow step kind not specified  - KIND_ENTRY: Entry steps are automatically triggered when a visitor reaches the workflow  - KIND_EXIT: Exit steps finalize the workflow (commonly a redirect)  - KIND_INTERACTION: Interaction steps require visitor input (forms, passwords, etc.)  - KIND_CONDITION: Condition steps evaluate logic and route to different next steps
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Kind {
    #[serde(rename = "KIND_UNSPECIFIED")]
    KindUnspecified,
    #[serde(rename = "KIND_ENTRY")]
    KindEntry,
    #[serde(rename = "KIND_EXIT")]
    KindExit,
    #[serde(rename = "KIND_INTERACTION")]
    KindInteraction,
    #[serde(rename = "KIND_CONDITION")]
    KindCondition,
}

impl Default for Kind {
    fn default() -> Kind {
        Self::KindUnspecified
    }
}
/// The node type says how many exits a step has. Whatever the answer, you connect every one of them the same way, with workflow_steps_connect: name the branch, name the step it leads to. Read a step's branches field for its branch ids.  Example: a multi-link with 3 buttons has 3 branches, with the buttons' ids. A redirect has one branch, \"next\". A country condition has one branch per country plus \"else\".   - NODE_TYPE_UNSPECIFIED: Workflow step node type not specified  - NODE_TYPE_COMPOSITE: Composite steps have one exit per button, option or range, plus \"else\" for a condition's fallback. Examples: MULTI_LINK, VISIT_TYPE_CONDITION, COUNTRY_CONDITION, DAY_OF_WEEK_CONDITION, TIME_OF_DAY_CONDITION, DAY_OF_MONTH_CONDITION, SPECIFIC_DATE_CONDITION, DEVICE_*_CONDITION, VISITOR_DATA_CONDITION  - NODE_TYPE_ATOMIC: Atomic steps have exactly one exit, branch id \"next\". Exit steps (THANK_YOU_PAGE, CONTACT_CARD, SOCIAL_LINKS_PAGE, CLIENT_REDIRECT) are atomic but end the journey, so they have no branches at all. Examples: LINK_VISIT, PASSWORD_VERIFY, FORM_SUBMIT, MESSAGE_PAGE
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum NodeType {
    #[serde(rename = "NODE_TYPE_UNSPECIFIED")]
    NodeTypeUnspecified,
    #[serde(rename = "NODE_TYPE_COMPOSITE")]
    NodeTypeComposite,
    #[serde(rename = "NODE_TYPE_ATOMIC")]
    NodeTypeAtomic,
}

impl Default for NodeType {
    fn default() -> NodeType {
        Self::NodeTypeUnspecified
    }
}