{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"redocly_category":"Treasure Code","product_name":"Treasure Code","type":"markdown"},"seo":{"title":"tdx segment - CDP Segment Management | Treasure Data","description":"Manage CDP segments with YAML files. Pull, push, validate segments and configure activations.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]},"image":"/assets/og-image.ba836864a30434f560a4f7720f8a09019ad30ff828b20c5052ae933ba7121524.d7ef4821.png"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"segment-commands","__idx":0},"children":["Segment Commands"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Manage CDP segments for audiences and activations."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"Alias"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg"]}," is an alias for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx segment"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"commands","__idx":1},"children":["Commands"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"navigation--discovery","__idx":2},"children":["Navigation & Discovery"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Command"},"children":["Command"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#use"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["use"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Set parent segment context"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#list"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["List folders and segments"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#view"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["view"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Show segment details"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#desc"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["desc"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Show segment schema (column types)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#show"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["show"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Execute segment SQL and show results"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#sql"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sql"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Get SQL query for segment"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#fields"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fields"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["List available fields for segmentation"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"yaml-sync","__idx":3},"children":["YAML Sync"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Command"},"children":["Command"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#pull"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pull"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Pull child segments to YAML files"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#push"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["push"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Push YAML files to TD as child segments"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#validate"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["validate"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Validate segment and journey YAML files locally"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"typical-usage","__idx":4},"children":["Typical Usage"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# 0. List available parent segments\ntdx ps list\n\n# 1. Pull all child segments from a parent to YAML files\n#    (this also sets parent_segment context)\ntdx sg pull \"My Audience\"\n# Creates: segments/my-audience/\n\n# 2. Edit YAML files locally (add/modify segments and activations)\n# Edit segments/my-audience/high-value-customers.yml with your text editor\n\n# 3. Push changes back to TD (syncs segments and activations)\ntdx sg push\n\n# 4. Review segments in TD (context already set by pull)\ntdx sg list -r\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The pull/push workflow enables version control and code review for segment definitions:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Work from any subdirectory - push finds tdx.json automatically\ncd segments/my-audience/marketing\n# Edit newsletter-subs.yml\ntdx sg push                # Push all changes from root\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"how-it-works","__idx":5},"children":["How It Works"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Child segments"]}," define filtered audiences within a parent segment. They use rules (conditions) to filter customers from the parent segment's enriched data. Each child segment can have one or more ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["activations"]}," that export the filtered audience to external systems."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg"]}," commands help you manage child segments as local YAML files. You can ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pull"]}," existing segments from Treasure AI, edit them locally, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["push"]}," changes back. The YAML files include both segment rules and activation configurations."]},{"$$mdtype":"Tag","name":"Diagram","attributes":{"data-language":"mermaid","diagramType":"mermaid","diagramSource":"flowchart TB\n    subgraph LOCAL[\"Local\"]\n        YAML[\"segments/&lt;parent&gt;/*.yml\"]\n        CLI[\"tdx sg desc/show/sql\"]\n    end\n\n    subgraph TD[\"Treasure AI\"]\n        API[\"CDP API\"]\n        subgraph PS[\"Parent Segment\"]\n            PARENT[(\"Enriched<br/>Customer Data\")]\n        end\n        CHILD[\"Child Segments\"]\n        ACT[\"Activations\"]\n        EXT[\"External Systems<br/>(S3, Salesforce, etc.)\"]\n    end\n\n    YAML <-->|\"pull / push\"| API\n    CLI -.->|\"query\"| CHILD\n    API --> CHILD\n    PARENT -->|\"filtered by rules\"| CHILD\n    CHILD -->|\"activations\"| ACT\n    ACT -->|\"export\"| EXT\n","diagramHtml":"<svg id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 754.375px;\" viewBox=\"0 0 754.375 802.8735961914062\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd{font-family:\"Redocly Mermaid Sans\",sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .error-icon{fill:#552222;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .error-text{fill:#552222;stroke:#552222;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edge-thickness-normal{stroke-width:1px;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edge-thickness-thick{stroke-width:3.5px;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edge-pattern-solid{stroke-dasharray:0;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edge-pattern-dashed{stroke-dasharray:3;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edge-pattern-dotted{stroke-dasharray:2;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .marker{fill:#333333;stroke:#333333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .marker.cross{stroke:#333333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd svg{font-family:\"Redocly Mermaid Sans\",sans-serif;font-size:16px;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd p{margin:0;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .label{font-family:\"Redocly Mermaid Sans\",sans-serif;color:#333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .cluster-label text{fill:#333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .cluster-label span{color:#333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .cluster-label span p{background-color:transparent;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .label text,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd span{fill:#333;color:#333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node rect,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node circle,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node ellipse,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node polygon,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .rough-node .label text,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node .label text,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .image-shape .label,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .icon-shape .label{text-anchor:middle;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .rough-node .label,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node .label,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .image-shape .label,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .icon-shape .label{text-align:center;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node.clickable{cursor:pointer;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .arrowheadPath{fill:#333333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edgePath .path{stroke:#333333;stroke-width:1px;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .flowchart-link{stroke:#333333;fill:none;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .cluster text{fill:#333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .cluster span{color:#333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd rect.text{fill:none;stroke-width:0;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .icon-shape,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .icon-shape p,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .icon-shape .label rect,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd .node .neo-node{stroke:#9370DB;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].node rect,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].cluster rect,#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].node path{stroke:#9370DB;stroke-width:1px;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].node .neo-line path{stroke:#9370DB;filter:none;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd [data-look=\"neo\"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd :root{--mermaid-font-family:\"Redocly Mermaid Sans\",sans-serif;}#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd :root{--mermaid-font-family:\"Redocly Mermaid Sans\",sans-serif;}</style><g><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-TD\" data-look=\"classic\"><rect style=\"\" x=\"99.23828125\" y=\"186\" width=\"647.13671875\" height=\"608.8735885620117\"></rect><g class=\"cluster-label\" transform=\"translate(381.041015625, 186)\"><foreignObject width=\"83.53125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Treasure AI</p></span></div></foreignObject></g></g><g class=\"cluster\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-LOCAL\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"586.890625\" height=\"104\"></rect><g class=\"cluster-label\" transform=\"translate(282.1796875, 8)\"><foreignObject width=\"38.53125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Local</p></span></div></foreignObject></g></g><g class=\"cluster\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-PS\" data-look=\"classic\"><rect style=\"\" x=\"528.859375\" y=\"211\" width=\"197.515625\" height=\"150.87358856201172\"></rect><g class=\"cluster-label\" transform=\"translate(568.015625, 211)\"><foreignObject width=\"119.203125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Parent Segment</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M433.977,91L433.977,94.5C433.977,98,433.977,105,433.977,114.667C433.977,124.333,433.977,136.667,433.977,149C433.977,161.333,433.977,173.667,433.977,184C433.977,194.333,433.977,202.667,433.977,214.239C433.977,225.812,433.977,240.625,433.977,248.031L433.977,255.437\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-L_YAML_API_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_YAML_API_0\" data-points=\"W3sieCI6NDMzLjk3NjU2MjUsInkiOjg3fSx7IngiOjQzMy45NzY1NjI1LCJ5IjoxMTJ9LHsieCI6NDMzLjk3NjU2MjUsInkiOjE0OX0seyJ4Ijo0MzMuOTc2NTYyNSwieSI6MTg2fSx7IngiOjQzMy45NzY1NjI1LCJ5IjoyMTF9LHsieCI6NDMzLjk3NjU2MjUsInkiOjI1OS40MzY3OTQyODEwMDU4Nn1d\" data-look=\"classic\" marker-start=\"url(#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointStart)\" marker-end=\"url(#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointEnd)\"></path><path d=\"M150.531,87L150.531,91.167C150.531,95.333,150.531,103.667,150.531,114C150.531,124.333,150.531,136.667,150.531,149C150.531,161.333,150.531,173.667,150.531,184C150.531,194.333,150.531,202.667,150.531,219.406C150.531,236.146,150.531,261.291,150.531,286.437C150.531,311.582,150.531,336.728,150.531,355.467C150.531,374.207,150.531,386.54,182.501,399.925C214.47,413.311,278.409,427.748,310.379,434.966L342.348,442.185\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-L_CLI_CHILD_0\" class=\"edge-thickness-normal edge-pattern-dotted edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CLI_CHILD_0\" data-points=\"W3sieCI6MTUwLjUzMTI1LCJ5Ijo4N30seyJ4IjoxNTAuNTMxMjUsInkiOjExMn0seyJ4IjoxNTAuNTMxMjUsInkiOjE0OX0seyJ4IjoxNTAuNTMxMjUsInkiOjE4Nn0seyJ4IjoxNTAuNTMxMjUsInkiOjIxMX0seyJ4IjoxNTAuNTMxMjUsInkiOjI4Ni40MzY3OTQyODEwMDU4Nn0seyJ4IjoxNTAuNTMxMjUsInkiOjM2MS44NzM1ODg1NjIwMTE3fSx7IngiOjE1MC41MzEyNSwieSI6Mzk4Ljg3MzU4ODU2MjAxMTd9LHsieCI6MzQ2LjI1LCJ5Ijo0NDMuMDY1NTM0NzU5NzQ2MX1d\" data-look=\"classic\" marker-end=\"url(#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointEnd)\"></path><path d=\"M433.977,313.437L433.977,321.51C433.977,329.582,433.977,345.728,433.977,359.967C433.977,374.207,433.977,386.54,433.977,398.207C433.977,409.874,433.977,420.874,433.977,426.374L433.977,431.874\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-L_API_CHILD_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_API_CHILD_0\" data-points=\"W3sieCI6NDMzLjk3NjU2MjUsInkiOjMxMy40MzY3OTQyODEwMDU4Nn0seyJ4Ijo0MzMuOTc2NTYyNSwieSI6MzYxLjg3MzU4ODU2MjAxMTd9LHsieCI6NDMzLjk3NjU2MjUsInkiOjM5OC44NzM1ODg1NjIwMTE3fSx7IngiOjQzMy45NzY1NjI1LCJ5Ijo0MzUuODczNTg4NTYyMDExN31d\" data-look=\"classic\" marker-end=\"url(#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointEnd)\"></path><path d=\"M627.617,336.874L627.617,341.04C627.617,345.207,627.617,353.54,627.617,363.874C627.617,374.207,627.617,386.54,609.592,398.664C591.567,410.789,555.517,422.703,537.492,428.661L519.467,434.618\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-L_PARENT_CHILD_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PARENT_CHILD_0\" data-points=\"W3sieCI6NjI3LjYxNzE4NzUsInkiOjMzNi44NzM1ODg1NjIwMTE3fSx7IngiOjYyNy42MTcxODc1LCJ5IjozNjEuODczNTg4NTYyMDExN30seyJ4Ijo2MjcuNjE3MTg3NSwieSI6Mzk4Ljg3MzU4ODU2MjAxMTd9LHsieCI6NTE1LjY2ODcwMTE3MTg3NSwieSI6NDM1Ljg3MzU4ODU2MjAxMTd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointEnd)\"></path><path d=\"M433.977,489.874L433.977,496.04C433.977,502.207,433.977,514.54,433.977,526.207C433.977,537.874,433.977,548.874,433.977,554.374L433.977,559.874\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-L_CHILD_ACT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CHILD_ACT_0\" data-points=\"W3sieCI6NDMzLjk3NjU2MjUsInkiOjQ4OS44NzM1ODg1NjIwMTE3fSx7IngiOjQzMy45NzY1NjI1LCJ5Ijo1MjYuODczNTg4NTYyMDExN30seyJ4Ijo0MzMuOTc2NTYyNSwieSI6NTYzLjg3MzU4ODU2MjAxMTd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointEnd)\"></path><path d=\"M433.977,617.874L433.977,624.04C433.977,630.207,433.977,642.54,433.977,654.207C433.977,665.874,433.977,676.874,433.977,682.374L433.977,687.874\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-L_ACT_EXT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ACT_EXT_0\" data-points=\"W3sieCI6NDMzLjk3NjU2MjUsInkiOjYxNy44NzM1ODg1NjIwMTE3fSx7IngiOjQzMy45NzY1NjI1LCJ5Ijo2NTQuODczNTg4NTYyMDExN30seyJ4Ijo0MzMuOTc2NTYyNSwieSI6NjkxLjg3MzU4ODU2MjAxMTd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(433.9765625, 149)\"><g class=\"label\" data-id=\"L_YAML_API_0\" transform=\"translate(-39.4921875, -12)\"><foreignObject width=\"78.984375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>pull / push</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(150.53125, 286.43679428100586)\"><g class=\"label\" data-id=\"L_CLI_CHILD_0\" transform=\"translate(-21.6015625, -12)\"><foreignObject width=\"43.203125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>query</p></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_API_CHILD_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(627.6171875, 398.8735885620117)\"><g class=\"label\" data-id=\"L_PARENT_CHILD_0\" transform=\"translate(-58, -12)\"><foreignObject width=\"116\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>filtered by rules</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(433.9765625, 526.8735885620117)\"><g class=\"label\" data-id=\"L_CHILD_ACT_0\" transform=\"translate(-39.96875, -12)\"><foreignObject width=\"79.9375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>activations</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(433.9765625, 654.8735885620117)\"><g class=\"label\" data-id=\"L_ACT_EXT_0\" transform=\"translate(-24.34375, -12)\"><foreignObject width=\"48.6875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>export</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-flowchart-YAML-0\" data-look=\"classic\" transform=\"translate(433.9765625, 60)\"><rect class=\"basic label-container\" style=\"\" x=\"-125.9140625\" y=\"-27\" width=\"251.828125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-95.9140625, -12)\"><rect></rect><foreignObject width=\"191.828125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>segments/&lt;parent&gt;/*.yml</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-flowchart-CLI-1\" data-look=\"classic\" transform=\"translate(150.53125, 60)\"><rect class=\"basic label-container\" style=\"\" x=\"-107.53125\" y=\"-27\" width=\"215.0625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-77.53125, -12)\"><rect></rect><foreignObject width=\"155.0625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>tdx sg desc/show/sql</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-flowchart-API-2\" data-look=\"classic\" transform=\"translate(433.9765625, 286.43679428100586)\"><rect class=\"basic label-container\" style=\"\" x=\"-59.8828125\" y=\"-27\" width=\"119.765625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-29.8828125, -12)\"><rect></rect><foreignObject width=\"59.765625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>CDP API</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-flowchart-PARENT-3\" data-look=\"classic\" transform=\"translate(627.6171875, 286.43679428100586)\"><path d=\"M0,12.624528185137057 a63.7578125,12.624528185137057 0,0,0 127.515625,0 a63.7578125,12.624528185137057 0,0,0 -127.515625,0 l0,75.62452818513705 a63.7578125,12.624528185137057 0,0,0 127.515625,0 l0,-75.62452818513705\" class=\"basic label-container outer-path\" style=\"\" transform=\"translate(-63.7578125, -50.436792277705585)\"></path><g class=\"label\" style=\"\" transform=\"translate(-56.2578125, -14)\"><rect></rect><foreignObject width=\"112.515625\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Enriched<br>Customer Data</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-flowchart-CHILD-4\" data-look=\"classic\" transform=\"translate(433.9765625, 462.8735885620117)\"><rect class=\"basic label-container\" style=\"\" x=\"-87.7265625\" y=\"-27\" width=\"175.453125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-57.7265625, -12)\"><rect></rect><foreignObject width=\"115.453125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Child Segments</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-flowchart-ACT-5\" data-look=\"classic\" transform=\"translate(433.9765625, 590.8735885620117)\"><rect class=\"basic label-container\" style=\"\" x=\"-70.5859375\" y=\"-27\" width=\"141.171875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-40.5859375, -12)\"><rect></rect><foreignObject width=\"81.171875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Activations</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-flowchart-EXT-6\" data-look=\"classic\" transform=\"translate(433.9765625, 730.8735885620117)\"><rect class=\"basic label-container\" style=\"\" x=\"-103.140625\" y=\"-39\" width=\"206.28125\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-73.140625, -24)\"><rect></rect><foreignObject width=\"146.28125\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>External Systems<br>(S3, Salesforce, etc.)</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs><defs><filter id=\"diagram-27ea262f440a154036a6145d49f29dccea06fd764f459b5a26623f153438eafd-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs></svg>","diagramHtmlDark":"<svg id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 754.375px;\" viewBox=\"0 0 754.375 802.8735961914062\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8{font-family:\"Redocly Mermaid Sans\",sans-serif;font-size:16px;fill:#ccc;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .error-icon{fill:#a44141;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .error-text{fill:#ddd;stroke:#ddd;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edge-thickness-normal{stroke-width:1px;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edge-thickness-thick{stroke-width:3.5px;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edge-pattern-solid{stroke-dasharray:0;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edge-pattern-dashed{stroke-dasharray:3;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edge-pattern-dotted{stroke-dasharray:2;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .marker{fill:lightgrey;stroke:lightgrey;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .marker.cross{stroke:lightgrey;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 svg{font-family:\"Redocly Mermaid Sans\",sans-serif;font-size:16px;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 p{margin:0;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .label{font-family:\"Redocly Mermaid Sans\",sans-serif;color:#ccc;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .cluster-label text{fill:#F9FFFE;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .cluster-label span{color:#F9FFFE;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .cluster-label span p{background-color:transparent;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .label text,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 span{fill:#ccc;color:#ccc;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node rect,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node circle,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node ellipse,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node polygon,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .rough-node .label text,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node .label text,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .image-shape .label,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .icon-shape .label{text-anchor:middle;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .rough-node .label,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node .label,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .image-shape .label,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .icon-shape .label{text-align:center;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node.clickable{cursor:pointer;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .root .anchor path{fill:lightgrey!important;stroke-width:0;stroke:lightgrey;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .arrowheadPath{fill:lightgrey;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edgePath .path{stroke:lightgrey;stroke-width:1px;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .flowchart-link{stroke:lightgrey;fill:none;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edgeLabel p{background-color:hsl(0, 0%, 34.4117647059%);}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .cluster text{fill:#F9FFFE;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .cluster span{color:#F9FFFE;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",sans-serif;font-size:12px;background:hsl(20, 1.5873015873%, 12.3529411765%);border:1px solid rgba(255, 255, 255, 0.25);border-radius:2px;pointer-events:none;z-index:100;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 rect.text{fill:none;stroke-width:0;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .icon-shape,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .image-shape{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .icon-shape p,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .image-shape p{background-color:hsl(0, 0%, 34.4117647059%);padding:2px;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .icon-shape .label rect,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .image-shape .label rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 .node .neo-node{stroke:#ccc;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].node rect,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].cluster rect,#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].node polygon{stroke:url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].node path{stroke:url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-gradient);stroke-width:1px;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].node .neo-line path{stroke:#ccc;filter:none;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].node circle{stroke:url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",sans-serif;}#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",sans-serif;}</style><g><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-TD\" data-look=\"classic\"><rect style=\"\" x=\"99.23828125\" y=\"186\" width=\"647.13671875\" height=\"608.8735885620117\"></rect><g class=\"cluster-label\" transform=\"translate(381.041015625, 186)\"><foreignObject width=\"83.53125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Treasure AI</p></span></div></foreignObject></g></g><g class=\"cluster\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-LOCAL\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"586.890625\" height=\"104\"></rect><g class=\"cluster-label\" transform=\"translate(282.1796875, 8)\"><foreignObject width=\"38.53125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Local</p></span></div></foreignObject></g></g><g class=\"cluster\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-PS\" data-look=\"classic\"><rect style=\"\" x=\"528.859375\" y=\"211\" width=\"197.515625\" height=\"150.87358856201172\"></rect><g class=\"cluster-label\" transform=\"translate(568.015625, 211)\"><foreignObject width=\"119.203125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Parent Segment</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M433.977,91L433.977,94.5C433.977,98,433.977,105,433.977,114.667C433.977,124.333,433.977,136.667,433.977,149C433.977,161.333,433.977,173.667,433.977,184C433.977,194.333,433.977,202.667,433.977,214.239C433.977,225.812,433.977,240.625,433.977,248.031L433.977,255.437\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-L_YAML_API_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_YAML_API_0\" data-points=\"W3sieCI6NDMzLjk3NjU2MjUsInkiOjg3fSx7IngiOjQzMy45NzY1NjI1LCJ5IjoxMTJ9LHsieCI6NDMzLjk3NjU2MjUsInkiOjE0OX0seyJ4Ijo0MzMuOTc2NTYyNSwieSI6MTg2fSx7IngiOjQzMy45NzY1NjI1LCJ5IjoyMTF9LHsieCI6NDMzLjk3NjU2MjUsInkiOjI1OS40MzY3OTQyODEwMDU4Nn1d\" data-look=\"classic\" marker-start=\"url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointStart)\" marker-end=\"url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointEnd)\"></path><path d=\"M150.531,87L150.531,91.167C150.531,95.333,150.531,103.667,150.531,114C150.531,124.333,150.531,136.667,150.531,149C150.531,161.333,150.531,173.667,150.531,184C150.531,194.333,150.531,202.667,150.531,219.406C150.531,236.146,150.531,261.291,150.531,286.437C150.531,311.582,150.531,336.728,150.531,355.467C150.531,374.207,150.531,386.54,182.501,399.925C214.47,413.311,278.409,427.748,310.379,434.966L342.348,442.185\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-L_CLI_CHILD_0\" class=\"edge-thickness-normal edge-pattern-dotted edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CLI_CHILD_0\" data-points=\"W3sieCI6MTUwLjUzMTI1LCJ5Ijo4N30seyJ4IjoxNTAuNTMxMjUsInkiOjExMn0seyJ4IjoxNTAuNTMxMjUsInkiOjE0OX0seyJ4IjoxNTAuNTMxMjUsInkiOjE4Nn0seyJ4IjoxNTAuNTMxMjUsInkiOjIxMX0seyJ4IjoxNTAuNTMxMjUsInkiOjI4Ni40MzY3OTQyODEwMDU4Nn0seyJ4IjoxNTAuNTMxMjUsInkiOjM2MS44NzM1ODg1NjIwMTE3fSx7IngiOjE1MC41MzEyNSwieSI6Mzk4Ljg3MzU4ODU2MjAxMTd9LHsieCI6MzQ2LjI1LCJ5Ijo0NDMuMDY1NTM0NzU5NzQ2MX1d\" data-look=\"classic\" marker-end=\"url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointEnd)\"></path><path d=\"M433.977,313.437L433.977,321.51C433.977,329.582,433.977,345.728,433.977,359.967C433.977,374.207,433.977,386.54,433.977,398.207C433.977,409.874,433.977,420.874,433.977,426.374L433.977,431.874\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-L_API_CHILD_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_API_CHILD_0\" data-points=\"W3sieCI6NDMzLjk3NjU2MjUsInkiOjMxMy40MzY3OTQyODEwMDU4Nn0seyJ4Ijo0MzMuOTc2NTYyNSwieSI6MzYxLjg3MzU4ODU2MjAxMTd9LHsieCI6NDMzLjk3NjU2MjUsInkiOjM5OC44NzM1ODg1NjIwMTE3fSx7IngiOjQzMy45NzY1NjI1LCJ5Ijo0MzUuODczNTg4NTYyMDExN31d\" data-look=\"classic\" marker-end=\"url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointEnd)\"></path><path d=\"M627.617,336.874L627.617,341.04C627.617,345.207,627.617,353.54,627.617,363.874C627.617,374.207,627.617,386.54,609.592,398.664C591.567,410.789,555.517,422.703,537.492,428.661L519.467,434.618\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-L_PARENT_CHILD_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PARENT_CHILD_0\" data-points=\"W3sieCI6NjI3LjYxNzE4NzUsInkiOjMzNi44NzM1ODg1NjIwMTE3fSx7IngiOjYyNy42MTcxODc1LCJ5IjozNjEuODczNTg4NTYyMDExN30seyJ4Ijo2MjcuNjE3MTg3NSwieSI6Mzk4Ljg3MzU4ODU2MjAxMTd9LHsieCI6NTE1LjY2ODcwMTE3MTg3NSwieSI6NDM1Ljg3MzU4ODU2MjAxMTd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointEnd)\"></path><path d=\"M433.977,489.874L433.977,496.04C433.977,502.207,433.977,514.54,433.977,526.207C433.977,537.874,433.977,548.874,433.977,554.374L433.977,559.874\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-L_CHILD_ACT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CHILD_ACT_0\" data-points=\"W3sieCI6NDMzLjk3NjU2MjUsInkiOjQ4OS44NzM1ODg1NjIwMTE3fSx7IngiOjQzMy45NzY1NjI1LCJ5Ijo1MjYuODczNTg4NTYyMDExN30seyJ4Ijo0MzMuOTc2NTYyNSwieSI6NTYzLjg3MzU4ODU2MjAxMTd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointEnd)\"></path><path d=\"M433.977,617.874L433.977,624.04C433.977,630.207,433.977,642.54,433.977,654.207C433.977,665.874,433.977,676.874,433.977,682.374L433.977,687.874\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-L_ACT_EXT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ACT_EXT_0\" data-points=\"W3sieCI6NDMzLjk3NjU2MjUsInkiOjYxNy44NzM1ODg1NjIwMTE3fSx7IngiOjQzMy45NzY1NjI1LCJ5Ijo2NTQuODczNTg4NTYyMDExN30seyJ4Ijo0MzMuOTc2NTYyNSwieSI6NjkxLjg3MzU4ODU2MjAxMTd9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(433.9765625, 149)\"><g class=\"label\" data-id=\"L_YAML_API_0\" transform=\"translate(-39.4921875, -12)\"><foreignObject width=\"78.984375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>pull / push</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(150.53125, 286.43679428100586)\"><g class=\"label\" data-id=\"L_CLI_CHILD_0\" transform=\"translate(-21.6015625, -12)\"><foreignObject width=\"43.203125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>query</p></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_API_CHILD_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(627.6171875, 398.8735885620117)\"><g class=\"label\" data-id=\"L_PARENT_CHILD_0\" transform=\"translate(-58, -12)\"><foreignObject width=\"116\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>filtered by rules</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(433.9765625, 526.8735885620117)\"><g class=\"label\" data-id=\"L_CHILD_ACT_0\" transform=\"translate(-39.96875, -12)\"><foreignObject width=\"79.9375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>activations</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(433.9765625, 654.8735885620117)\"><g class=\"label\" data-id=\"L_ACT_EXT_0\" transform=\"translate(-24.34375, -12)\"><foreignObject width=\"48.6875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>export</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-flowchart-YAML-0\" data-look=\"classic\" transform=\"translate(433.9765625, 60)\"><rect class=\"basic label-container\" style=\"\" x=\"-125.9140625\" y=\"-27\" width=\"251.828125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-95.9140625, -12)\"><rect></rect><foreignObject width=\"191.828125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>segments/&lt;parent&gt;/*.yml</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-flowchart-CLI-1\" data-look=\"classic\" transform=\"translate(150.53125, 60)\"><rect class=\"basic label-container\" style=\"\" x=\"-107.53125\" y=\"-27\" width=\"215.0625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-77.53125, -12)\"><rect></rect><foreignObject width=\"155.0625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>tdx sg desc/show/sql</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-flowchart-API-2\" data-look=\"classic\" transform=\"translate(433.9765625, 286.43679428100586)\"><rect class=\"basic label-container\" style=\"\" x=\"-59.8828125\" y=\"-27\" width=\"119.765625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-29.8828125, -12)\"><rect></rect><foreignObject width=\"59.765625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>CDP API</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-flowchart-PARENT-3\" data-look=\"classic\" transform=\"translate(627.6171875, 286.43679428100586)\"><path d=\"M0,12.624528185137057 a63.7578125,12.624528185137057 0,0,0 127.515625,0 a63.7578125,12.624528185137057 0,0,0 -127.515625,0 l0,75.62452818513705 a63.7578125,12.624528185137057 0,0,0 127.515625,0 l0,-75.62452818513705\" class=\"basic label-container outer-path\" style=\"\" transform=\"translate(-63.7578125, -50.436792277705585)\"></path><g class=\"label\" style=\"\" transform=\"translate(-56.2578125, -14)\"><rect></rect><foreignObject width=\"112.515625\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Enriched<br>Customer Data</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-flowchart-CHILD-4\" data-look=\"classic\" transform=\"translate(433.9765625, 462.8735885620117)\"><rect class=\"basic label-container\" style=\"\" x=\"-87.7265625\" y=\"-27\" width=\"175.453125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-57.7265625, -12)\"><rect></rect><foreignObject width=\"115.453125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Child Segments</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-flowchart-ACT-5\" data-look=\"classic\" transform=\"translate(433.9765625, 590.8735885620117)\"><rect class=\"basic label-container\" style=\"\" x=\"-70.5859375\" y=\"-27\" width=\"141.171875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-40.5859375, -12)\"><rect></rect><foreignObject width=\"81.171875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Activations</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-flowchart-EXT-6\" data-look=\"classic\" transform=\"translate(433.9765625, 730.8735885620117)\"><rect class=\"basic label-container\" style=\"\" x=\"-103.140625\" y=\"-39\" width=\"206.28125\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-73.140625, -24)\"><rect></rect><foreignObject width=\"146.28125\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>External Systems<br>(S3, Salesforce, etc.)</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#FFFFFF\"></feDropShadow></filter></defs><defs><filter id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#FFFFFF\"></feDropShadow></filter></defs><linearGradient id=\"diagram-66cfe1a29e11d0b5d18f1dd0617b16d27fd8831dfe0d23df6d116aa9a342d0e8-gradient\" gradientUnits=\"objectBoundingBox\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"><stop offset=\"0%\" stop-color=\"#cccccc\" stop-opacity=\"1\"></stop><stop offset=\"100%\" stop-color=\"hsl(180, 0%, 18.3529411765%)\" stop-opacity=\"1\"></stop></linearGradient></svg>"},"children":["flowchart TB\n    subgraph LOCAL[\"Local\"]\n        YAML[\"segments/&lt;parent&gt;/*.yml\"]\n        CLI[\"tdx sg desc/show/sql\"]\n    end\n\n    subgraph TD[\"Treasure AI\"]\n        API[\"CDP API\"]\n        subgraph PS[\"Parent Segment\"]\n            PARENT[(\"Enriched<br/>Customer Data\")]\n        end\n        CHILD[\"Child Segments\"]\n        ACT[\"Activations\"]\n        EXT[\"External Systems<br/>(S3, Salesforce, etc.)\"]\n    end\n\n    YAML <-->|\"pull / push\"| API\n    CLI -.->|\"query\"| CHILD\n    API --> CHILD\n    PARENT -->|\"filtered by rules\"| CHILD\n    CHILD -->|\"activations\"| ACT\n    ACT -->|\"export\"| EXT\n"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"folder-structure","__idx":6},"children":["Folder Structure"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Pull creates individual YAML files for each segment, organized by folder:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"segments/\n└── my-audience/                    # Normalized from \"My Audience\"\n    ├── tdx.json                    # { \"parent_segment\": \"My Audience\" }\n    ├── active-users.yml            # Root-level segment\n    ├── high-value-customers.yml    # Another root-level segment\n    ├── marketing/\n    │   ├── email-subscribers.yml   # Segment in Marketing folder\n    │   └── newsletter-subs.yml     # Another segment in folder\n    └── sales/\n        ├── enterprise-leads.yml    # Segment in Sales folder\n        └── q1/\n            └── q1-targets.yml      # Segment in Sales/Q1 folder\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each segment file includes its activations (syndications), enabling file-based management of your CDP configuration."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"context-based-workflow","__idx":7},"children":["Context-Based Workflow"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Child segment commands require a parent segment context. Set it using one of these methods:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Option 1: Use the segment use command\ntdx sg use \"My Audience\"\n\n# Option 2: Pull sets context automatically\ntdx sg pull \"My Audience\"\n\n# Now run segment commands without specifying parent\ntdx sg list                    # List folders and segments in \"My Audience\"\ntdx sg view \"Premium Users\"    # View child segment details\ntdx sg desc \"Premium Users\"    # Show segment schema\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Names are case-sensitive. Pattern matching (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["*"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["?"]},") is supported for filtering."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"commands-1","__idx":8},"children":["Commands"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"use","__idx":9},"children":["use"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Set or show the parent segment context for subsequent commands."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg use [name]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Set parent segment context\ntdx sg use \"My Audience\"\n\n# Show current context (no argument)\ntdx sg use\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"list","__idx":10},"children":["list"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["List folders and segments within the current parent segment context."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg list [folder] [options]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-r, --recursive"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["List recursively (tree view)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--max-depth <n>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maximum recursion depth (default: 10)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-w, --web"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Show web console URLs for segments"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# First, set parent segment context\ntdx use parent_segment \"My Audience\"\n\n# List folders and segments in context\ntdx sg list\n\n# List contents of a specific folder\ntdx sg list \"Marketing\"\n\n# Filter by pattern (glob)\ntdx sg list \"*Premium*\"\n\n# List recursively (tree view)\ntdx sg list -r\n\n# Show web console URLs for each segment\ntdx sg list -w\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"JSON Output"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When using ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--json"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--jsonl"]}," output, URLs are always included in the response."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"Listing Parent Segments"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx ps list"]}," to list available parent segments."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"view","__idx":11},"children":["view"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Show details of a folder or child segment within the current context."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg view [name] [options]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-w, --web"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Open segment in web browser"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Show folder details\ntdx sg view \"Marketing\"\n\n# Show child segment details (includes web console URL)\ntdx sg view \"Premium Users\"\n\n# Open segment in web browser\ntdx sg view \"Premium Users\" -w\n\n# JSON output\ntdx sg view \"Premium Users\" --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"Web Console URL"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The output always includes a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["url"]}," field with a link to the segment in the Treasure AI web console."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"desc","__idx":12},"children":["desc"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Show schema (column names and types) for a child segment."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg desc [name]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Show schema for child segment\ntdx sg desc \"Premium Users\"\n\n# JSON output\ntdx sg desc \"Premium Users\" --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"show","__idx":13},"children":["show"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Execute segment SQL query and show results."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg show [name]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Execute segment SQL query and show results\ntdx sg show \"Premium Users\"\n\n# With output format\ntdx sg show \"Premium Users\" --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sql","__idx":14},"children":["sql"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Get SQL query for a child segment."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg sql [name]\ntdx sg sql --path <file-path>\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--path <file-path>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YAML file path for unpushed segment"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Get SQL query for server-side segment\ntdx sg sql \"Premium Users\"\n\n# For segments in folders, include folder path\ntdx sg sql \"Marketing/Newsletter Subscribers\"\n\n# Get SQL from local YAML file (before pushing)\ntdx sg sql --path segments/my-audience/premium-users.yml\n\n# JSON output\ntdx sg sql \"Premium Users\" --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"fields","__idx":15},"children":["fields"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["List available fields for segmentation in the current parent segment context."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg fields\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# List available fields (uses parent_segment context)\ntdx sg fields\n\n# JSON output\ntdx sg fields --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"pull","__idx":16},"children":["pull"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Pull all child segments from a parent segment to individual YAML files. This also sets the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parent_segment"]}," context for subsequent commands."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg pull [parent_name]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parent_name"]}," argument is optional if you have set a parent segment context with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg use"]},"."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-y, --yes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Skip confirmation prompt"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--dry-run"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Preview changes without writing files"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Pull all segments from parent (sets context)\ntdx sg pull \"My Audience\"\n\n# Preview changes without writing files\ntdx sg pull \"My Audience\" --dry-run\n\n# Skip confirmation prompt\ntdx sg pull \"My Audience\" -y\n\n# With context set (tdx sg use \"My Audience\")\ntdx sg pull\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output includes:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Number of segments and activations found"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["New, changed, and unchanged files"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Diff preview for changed files"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"push","__idx":17},"children":["push"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Push individual segment YAML files to Treasure AI. Uses ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parent_segment"]}," context or detects parent from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx.json"]}," in the segments directory."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg push [directory]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-y, --yes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Skip confirmation prompt"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--dry-run"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Preview changes without applying"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--delete"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Delete segments not in local YAML files"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Push all segments (uses context or tdx.json)\ntdx sg push\n\n# Push from specific directory\ntdx sg push segments/my-audience\n\n# Preview changes without applying\ntdx sg push --dry-run\n\n# Skip confirmation prompt\ntdx sg push -y\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Features:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Automatically creates missing TD folders"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Shows diff before applying changes (segments and activations)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Shows segments/activations that will be deleted (exist on server but not in YAML)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Syncs activations by name (create/update/delete)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Creates new segments or updates existing ones based on segment name"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Asks for confirmation before applying changes"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"validate","__idx":18},"children":["validate"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Validate segment and journey YAML files locally without pushing to Treasure AI. This is useful to catch syntax errors, missing references, and invalid configurations before pushing."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx sg validate [target]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Argument"},"children":["Argument"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["target"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["File or directory to validate (optional, defaults to context directory)"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Validate all segments and journeys in context directory\ntdx sg validate\n\n# Validate a specific file\ntdx sg validate high-value-customers.yml\n\n# Validate a specific directory\ntdx sg validate segments/my-audience\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Validations performed:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For segments:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Missing or empty ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," field"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Empty attribute values in conditions"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Invalid operator types"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Missing required operator fields (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}," for Equal, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["min"]},"/",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["max"]}," for Between)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Invalid ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["arrayMatching"]}," configuration"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For journeys:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Missing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," or empty ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stages"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Duplicate step names"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Invalid ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["next"]}," step references"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Wait step condition references to undefined embedded segments"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Decision branch references to undefined segments"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A/B test variant percentages not summing to 100%"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Invalid jump step targets"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example output:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"✔ high-value-customers.yml (segment)\n\n✖ bad-journey.yml (journey): 2 error(s)\n\nbad-journey.yml:15:7: error [MISSING_SEGMENT_REFERENCE]\nWait condition references undefined segment 'missing_segment'\n    14 |     condition:\n    15 |       segment: missing_segment\n       |       ^\n    16 |       next: to_end\n\nbad-journey.yml:22:5: error [INVALID_NEXT_REFERENCE]\nStep references non-existent step 'nonexistent'\n    21 |   name: activation_step\n    22 |     next: nonexistent\n       |     ^\n    23 |     with:\n\nValidation failed: 1 file(s) with errors, 1 valid\n"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Validation also runs automatically before ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg push"]},", so you can catch errors early in your workflow."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"segment-yaml-schema","__idx":19},"children":["Segment YAML Schema"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each segment has its own YAML file with optional activations:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# segments/my-audience/us-customers.yml\nname: US Customers\ndescription: All customers in the United States\n\nrule:\n  type: Value\n  attribute: country\n  operator:\n    type: Equal\n    value: US\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# segments/my-audience/marketing/high-value-customers.yml\nname: High Value Customers\ndescription: Customers with LTV > $1000\nkind: batch        # batch, realtime, or funnel_stage\nvisible: true      # Show in UI (default: true)\n\nrule:\n  type: And\n  conditions:\n    - type: Value\n      attribute: ltv\n      operator:\n        type: Greater\n        value: 1000\n\nactivations:\n  - name: Daily Salesforce Sync\n    description: Sync high-value customers to SFDC daily\n    connection: my-salesforce-connection\n    all_columns: false\n    columns:\n      - email\n      - first_name\n      - last_name\n      - ltv\n    schedule:\n      type: daily\n      timezone: America/Los_Angeles\n    connector_config:\n      object: Contact\n      mode: upsert\n\n  - name: Weekly Marketing Cloud Export\n    connection: marketing-cloud-export\n    all_columns: true\n    schedule:\n      type: weekly\n      repeat_sub_frequency: [1]  # Monday\n      timezone: UTC\n    notification:\n      notify_on:\n        - onSuccess\n        - onFailure\n      email_recipients:\n        - user@example.com  # Must be TD account email\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"activation-schema","__idx":20},"children":["Activation Schema"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Activations (syndications) define how segment data is exported to external systems:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Activation name (used for matching)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["description"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Description"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connection"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TD Connection name (use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx connections"]}," to list)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["all_columns"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Export all columns"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No (default: false)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["columns"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Columns to export (if not all_columns)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["schedule"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Schedule configuration"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connector_config"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Connector-specific settings (see below)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["notification"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Notification settings (see below)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"Finding Connection Names"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx connections"]}," to list available connections and their names:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx connections\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule Types:"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Additional Fields"},"children":["Additional Fields"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["none"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Manual trigger only"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["minutes_interval"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run every N minutes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["repeat_frequency"]}," (interval in minutes)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hourly"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run every hour"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["daily"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run daily"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["timezone"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["weekly"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run weekly"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["repeat_sub_frequency"]}," (day numbers 0-6), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["timezone"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["monthly"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run monthly"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["repeat_sub_frequency"]}," (day numbers 1-31), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["timezone"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cron expression"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["timezone"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Column Format:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Columns can be simple strings or objects with additional properties:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"columns:\n  # Simple column name\n  - email\n  - first_name\n\n  # Column with visibility setting\n  - name: ssn\n    visibility: masked  # clear or masked\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Notification Settings:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Configure email notifications for activation runs:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"notification:\n  notify_on:\n    - onSuccess    # Notify on successful completion\n    - onFailure    # Notify on failure\n  email_recipients:\n    - user@example.com  # Must be TD account email addresses\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["notify_on"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Events to notify on: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onSuccess"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onFailure"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email_recipients"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["List of email addresses (must be registered TD account emails)"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connector Config Settings:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connector_config"]}," field contains connector-specific settings that vary by connection type. Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx connection schema <connection>"]}," to see available fields for a specific connection."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Example: Treasure AI connector\nconnector_config:\n  database_name: my_database\n  table_name: my_table\n  mode: append  # append or replace\n\n# Example: Salesforce Marketing Cloud connector\nconnector_config:\n  de_name: CustomerSegment\n  shared_data_extension: false\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"Schema Validation"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When pushing segments, tdx automatically validates ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connector_config"]}," against the connector's schema. Invalid values or unknown fields will show helpful error messages:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Error: Invalid connector_config for activation \"My Activation\":\n  × mode: Invalid value for \"Mode\"\n    Expected: one of: append, replace\n    Received: invalid_mode\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx connection schema <connection>"]}," to see valid field names and values."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"important-behaviors","__idx":21},"children":["Important Behaviors"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Filename Collisions:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When pulling segments, filenames are sanitized (lowercase, spaces to hyphens). If two segments would result in the same filename (e.g., \"My Segment\" and \"my-segment\"), numeric suffixes are added:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["my-segment.yml"]}," (first segment)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["my-segment-1.yml"]}," (second segment)"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Activation Matching:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Activations are matched by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," only. This has important implications:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Renaming an activation"]}," in YAML will delete the old activation and create a new one (losing execution history and statistics)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["To preserve an activation's history, update its properties without changing the name"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Segment Matching:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Segments are matched by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["folder + name"]},". This means:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You can have segments with the same name in different folders"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Moving a segment YAML file to a different folder creates a new segment (does not move the existing one)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"supported-operators","__idx":22},"children":["Supported Operators"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All operators use the unified ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}," field. When multiple values are needed (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["In"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Contain"]},"), provide an array."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"comparison-operators","__idx":23},"children":["Comparison Operators"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Operator Type"},"children":["Operator Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required Fields"},"children":["Required Fields"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value Type"},"children":["Value Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Equal"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string, number, boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Exact match"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NotEqual"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string, number, boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Not equal (use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not: true"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Equal"]},")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Greater"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Greater than"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GreaterEqual"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Greater than or equal"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Less"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Less than"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LessEqual"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Less than or equal"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Between"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["minValue"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["maxValue"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Value in range (exclusive)"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"list-operators","__idx":24},"children":["List Operators"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Operator Type"},"children":["Operator Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required Fields"},"children":["Required Fields"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value Type"},"children":["Value Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["In"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array of strings/numbers"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Value in set"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NotIn"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array of strings/numbers"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Value not in set (use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not: true"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["In"]},")"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"string-operators","__idx":25},"children":["String Operators"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Operator Type"},"children":["Operator Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required Fields"},"children":["Required Fields"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value Type"},"children":["Value Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Contain"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array of strings"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Contains any substring"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["StartWith"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array of strings"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Starts with any prefix"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EndWith"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array of strings"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ends with any suffix"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Regexp"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["regex pattern string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Matches regular expression"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"null-operators","__idx":26},"children":["Null Operators"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Operator Type"},"children":["Operator Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required Fields"},"children":["Required Fields"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IsNull"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["(none)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Checks if value is null"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"time-operators","__idx":27},"children":["Time Operators"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Operator Type"},"children":["Operator Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required Fields"},"children":["Required Fields"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TimeWithinPast"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Within past N time units"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TimeWithinNext"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Within next N time units"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TimeToday"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["(none)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Matches today"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TimeThis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["from.unit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Current period (this week, this month, etc.)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TimeNext"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["from.unit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Next period (next week, next month, etc.)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TimeRange"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["from"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["to"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["from"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["duration"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Complex time range"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TimeInBetweenNext"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["from"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["to"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Between two future dates"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"time-units","__idx":28},"children":["Time Units"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For time-based operators (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TimeWithinPast"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TimeWithinNext"]},", etc.), the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unit"]}," field must be one of:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Unit"},"children":["Unit"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["year"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Years"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["quarter"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Quarters"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["month"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Months"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["week"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Weeks"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["day"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Days"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hour"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Hours"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["minute"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Minutes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["second"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Seconds"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both singular (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["day"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["week"]},") and plural (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["days"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["weeks"]},") forms are accepted. Plural forms are automatically normalized."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"negation-with-not","__idx":29},"children":["Negation with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Most operators support a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not"]}," field to invert the condition:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Emails NOT containing \"@test.com\"\noperator:\n  type: Contain\n  value: [\"@test.com\"]\n  not: true\n\n# Value NOT equal to \"inactive\"\noperator:\n  type: Equal\n  value: inactive\n  not: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"operator-examples","__idx":30},"children":["Operator Examples"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["In (multiple values):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Match customers in US, Canada, or Mexico\noperator:\n  type: In\n  value: [\"US\", \"CA\", \"MX\"]\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["NotIn (exclude multiple values):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Exclude test and spam accounts\noperator:\n  type: In\n  value: [\"test\", \"spam\", \"internal\"]\n  not: true\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Contain (multiple substrings):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Match emails from specific domains\noperator:\n  type: Contain\n  value: [\"@gmail.com\", \"@yahoo.com\", \"@outlook.com\"]\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["StartWith (multiple prefixes):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Match product SKUs starting with specific prefixes\noperator:\n  type: StartWith\n  value: [\"PRO-\", \"ENT-\", \"PREM-\"]\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["EndWith (multiple suffixes):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Match files with specific extensions\noperator:\n  type: EndWith\n  value: [\".pdf\", \".doc\", \".xlsx\"]\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Between (numeric range):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Age between 18 and 65\noperator:\n  type: Between\n  minValue: 18\n  maxValue: 65\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TimeWithinPast:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"operator:\n  type: TimeWithinPast\n  value: 30\n  unit: day  # Must be singular\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TimeWithinNext:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"operator:\n  type: TimeWithinNext\n  value: 7\n  unit: day\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TimeThis (current period):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"operator:\n  type: TimeThis\n  from:\n    unit: month  # This month\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TimeNext (next period):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"operator:\n  type: TimeNext\n  from:\n    unit: week  # Next week\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TimeRange (complex range):"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Last 3 months\noperator:\n  type: TimeRange\n  from:\n    last: 3\n    unit: month\n  duration:\n    month: 3\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"segment-reference-conditions","__idx":31},"children":["Segment Reference Conditions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can include or exclude members of other segments using ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type: include"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type: exclude"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"rule:\n  type: And\n  conditions:\n    # Include members of another segment\n    - type: include\n      segment: california_customers\n\n    # Exclude members of another segment\n    - type: exclude\n      segment: churned_users\n\n    # Combined with value conditions\n    - type: Value\n      attribute: tier\n      operator:\n        type: Equal\n        value: premium\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type: include"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Include profiles that are members of the referenced segment"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type: exclude"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Exclude profiles that are members of the referenced segment"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["segment"]}," field references another child segment by name within the same parent segment."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"complex-rule-example","__idx":32},"children":["Complex Rule Example"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"rule:\n  type: And\n  conditions:\n    # High value OR premium member\n    - type: Or\n      conditions:\n        - type: Value\n          attribute: ltv\n          operator:\n            type: Greater\n            value: 1000\n        - type: Value\n          attribute: membership\n          operator:\n            type: Equal\n            value: premium\n\n    # Active within last 30 days\n    - type: Value\n      attribute: last_activity\n      operator:\n        type: TimeWithinPast\n        unit: day\n        value: 30\n\n    # Not from test accounts\n    - type: Value\n      attribute: email\n      operator:\n        type: Contain\n        value:\n          - \"@test.com\"\n        not: true\n\n    # Exclude users already in another segment\n    - type: exclude\n      segment: already_contacted\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"related-commands","__idx":33},"children":["Related Commands"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For managing ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["parent segments"]}," (audiences), use the dedicated ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx parent-segment"]}," command (alias: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx ps"]},")."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/commands/parent-segment"},"children":["Parent Segment Commands"]}," for full documentation including:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list"]}," - List parent segments"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pull"]}," - Pull configuration to YAML"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["push"]}," - Push YAML configuration"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["validate"]}," - Validate configuration"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["preview"]}," - Preview sample data"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run"]}," - Run the workflow"]}]}]},"headings":[{"value":"Segment Commands","id":"segment-commands","depth":1},{"value":"Commands","id":"commands","depth":2},{"value":"Navigation & Discovery","id":"navigation--discovery","depth":3},{"value":"YAML Sync","id":"yaml-sync","depth":3},{"value":"Typical Usage","id":"typical-usage","depth":2},{"value":"How It Works","id":"how-it-works","depth":2},{"value":"Folder Structure","id":"folder-structure","depth":3},{"value":"Context-Based Workflow","id":"context-based-workflow","depth":2},{"value":"Commands","id":"commands-1","depth":2},{"value":"use","id":"use","depth":3},{"value":"list","id":"list","depth":3},{"value":"view","id":"view","depth":3},{"value":"desc","id":"desc","depth":3},{"value":"show","id":"show","depth":3},{"value":"sql","id":"sql","depth":3},{"value":"fields","id":"fields","depth":3},{"value":"pull","id":"pull","depth":3},{"value":"push","id":"push","depth":3},{"value":"validate","id":"validate","depth":3},{"value":"Segment YAML Schema","id":"segment-yaml-schema","depth":2},{"value":"Activation Schema","id":"activation-schema","depth":3},{"value":"Important Behaviors","id":"important-behaviors","depth":3},{"value":"Supported Operators","id":"supported-operators","depth":3},{"value":"Comparison Operators","id":"comparison-operators","depth":4},{"value":"List Operators","id":"list-operators","depth":4},{"value":"String Operators","id":"string-operators","depth":4},{"value":"Null Operators","id":"null-operators","depth":4},{"value":"Time Operators","id":"time-operators","depth":4},{"value":"Time Units","id":"time-units","depth":3},{"value":"Negation with not","id":"negation-with-not","depth":3},{"value":"Operator Examples","id":"operator-examples","depth":3},{"value":"Segment Reference Conditions","id":"segment-reference-conditions","depth":3},{"value":"Complex Rule Example","id":"complex-rule-example","depth":3},{"value":"Related Commands","id":"related-commands","depth":2}],"frontmatter":{"seo":{"title":"tdx segment - CDP Segment Management | Treasure Data","description":"Manage CDP segments with YAML files. Pull, push, validate segments and configure activations.","image":"/assets/og-image.ba836864a30434f560a4f7720f8a09019ad30ff828b20c5052ae933ba7121524.d7ef4821.png"}},"lastModified":"2026-05-18T01:25:54.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/treasure-code/commands/segment","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}