Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI
Python agentagentopsagents-sdkaianthropicautogencost-estimationcrewaievalsevaluation-metricsgroqlangchainllmmistralollamaopenaiopenai-agents
<svg aria-roledescription="flowchart-v2" role="graphics-document document" viewBox="-8 -8 1637.87939453125 2107.66650390625" style="max-width: 1637.87939453125px;" xmlns="http://www.w3.org/2000/svg" width="100%" id="mermaid-svg-1753224784981-dwmdgjbum"><style>#mermaid-svg-1753224784981-dwmdgjbum{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#7b88a1;}#mermaid-svg-1753224784981-dwmdgjbum .error-icon{fill:#bf616a;}#mermaid-svg-1753224784981-dwmdgjbum .error-text{fill:#bf616a;stroke:#bf616a;}#mermaid-svg-1753224784981-dwmdgjbum .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-1753224784981-dwmdgjbum .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-1753224784981-dwmdgjbum .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-1753224784981-dwmdgjbum .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-1753224784981-dwmdgjbum .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-1753224784981-dwmdgjbum .marker{fill:#7b88a1;stroke:#7b88a1;}#mermaid-svg-1753224784981-dwmdgjbum .marker.cross{stroke:#7b88a1;}#mermaid-svg-1753224784981-dwmdgjbum svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-1753224784981-dwmdgjbum .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#7b88a1;}#mermaid-svg-1753224784981-dwmdgjbum .cluster-label text{fill:#ffffff;}#mermaid-svg-1753224784981-dwmdgjbum .cluster-label span,#mermaid-svg-1753224784981-dwmdgjbum p{color:#ffffff;}#mermaid-svg-1753224784981-dwmdgjbum .label text,#mermaid-svg-1753224784981-dwmdgjbum span,#mermaid-svg-1753224784981-dwmdgjbum p{fill:#7b88a1;color:#7b88a1;}#mermaid-svg-1753224784981-dwmdgjbum .node rect,#mermaid-svg-1753224784981-dwmdgjbum .node circle,#mermaid-svg-1753224784981-dwmdgjbum .node ellipse,#mermaid-svg-1753224784981-dwmdgjbum .node polygon,#mermaid-svg-1753224784981-dwmdgjbum .node path{fill:#1e2127;stroke:#272c36;stroke-width:1px;}#mermaid-svg-1753224784981-dwmdgjbum .flowchart-label text{text-anchor:middle;}#mermaid-svg-1753224784981-dwmdgjbum .node .label{text-align:center;}#mermaid-svg-1753224784981-dwmdgjbum .node.clickable{cursor:pointer;}#mermaid-svg-1753224784981-dwmdgjbum .arrowheadPath{fill:#e1ded8;}#mermaid-svg-1753224784981-dwmdgjbum .edgePath .path{stroke:#7b88a1;stroke-width:2.0px;}#mermaid-svg-1753224784981-dwmdgjbum .flowchart-link{stroke:#7b88a1;fill:none;}#mermaid-svg-1753224784981-dwmdgjbum .edgeLabel{background-color:#1e212799;text-align:center;}#mermaid-svg-1753224784981-dwmdgjbum .edgeLabel rect{opacity:0.5;background-color:#1e212799;fill:#1e212799;}#mermaid-svg-1753224784981-dwmdgjbum .labelBkg{background-color:rgba(30, 33, 39, 0.5);}#mermaid-svg-1753224784981-dwmdgjbum .cluster rect{fill:rgba(67, 76, 94, 0.47);stroke:rgba(0, 0, 0, 0);stroke-width:1px;}#mermaid-svg-1753224784981-dwmdgjbum .cluster text{fill:#ffffff;}#mermaid-svg-1753224784981-dwmdgjbum .cluster span,#mermaid-svg-1753224784981-dwmdgjbum p{color:#ffffff;}#mermaid-svg-1753224784981-dwmdgjbum div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:#88c0d0;border:1px solid rgba(0, 0, 0, 0);border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-1753224784981-dwmdgjbum .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#7b88a1;}#mermaid-svg-1753224784981-dwmdgjbum :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="6" viewBox="0 0 10 10" class="marker flowchart" id="mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 0 L 10 5 L 0 10 z"/></marker><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="4.5" viewBox="0 0 10 10" class="marker flowchart" id="mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointStart"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 5 L 10 10 L 10 0 z"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="11" viewBox="0 0 10 10" class="marker flowchart" id="mermaid-svg-1753224784981-dwmdgjbum_flowchart-circleEnd"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="-1" viewBox="0 0 10 10" class="marker flowchart" id="mermaid-svg-1753224784981-dwmdgjbum_flowchart-circleStart"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="12" viewBox="0 0 11 11" class="marker cross flowchart" id="mermaid-svg-1753224784981-dwmdgjbum_flowchart-crossEnd"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="-1" viewBox="0 0 11 11" class="marker cross flowchart" id="mermaid-svg-1753224784981-dwmdgjbum_flowchart-crossStart"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"/></marker><g class="root"><g class="clusters"/><g class="edgePaths"><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-A LE-B" id="L-A-B-0" d="M1293.59,33.833L1293.507,37.917C1293.424,42,1293.257,50.167,1293.174,57.533C1293.09,64.9,1293.09,71.467,1293.09,74.75L1293.09,78.033"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-B LE-C" id="L-B-C-0" d="M1293.09,135L1293.09,139.167C1293.09,143.333,1293.09,151.667,1293.156,159.2C1293.222,166.734,1293.354,173.467,1293.42,176.834L1293.486,180.201"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-C LE-FREE" id="L-C-FREE-0" d="M1201.117,215.78L1158.894,221.9C1116.67,228.02,1032.223,240.26,989.999,251.423C947.776,262.585,947.776,272.67,947.776,277.713L947.776,282.756"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-C LE-D" id="L-C-D-0" d="M1197.136,207.816L1068.487,215.264C939.839,222.711,682.542,237.605,553.894,253.151C425.245,268.696,425.245,284.893,425.245,292.991L425.245,301.089"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-C LE-LIFETIME" id="L-C-LIFETIME-0" d="M1362.421,218.833L1385.855,224.444C1409.289,230.056,1456.157,241.278,1479.591,251.7C1503.025,262.122,1503.025,271.744,1503.025,276.556L1503.025,281.367"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-D LE-E" id="L-D-E-0" d="M425.245,358.056L425.245,365.509C425.245,372.963,425.245,387.87,425.245,401.894C425.245,415.919,425.245,429.059,425.245,435.63L425.245,442.2"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-E LE-F" id="L-E-F-0" d="M425.245,499.167L425.245,508.148C425.245,517.13,425.245,535.093,425.245,553.7C425.245,572.307,425.245,591.559,425.245,601.185L425.245,610.811"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-F LE-G" id="L-F-G-0" d="M425.245,667.778L425.245,678.287C425.245,688.796,425.245,709.815,425.245,726.663C425.245,743.511,425.245,756.189,425.245,762.528L425.245,768.867"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-G LE-H" id="L-G-H-0" d="M425.245,825.833L425.245,831.528C425.245,837.222,425.245,848.611,425.245,857.589C425.245,866.567,425.245,873.133,425.245,876.417L425.245,879.7"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-H LE-ACTIVE" id="L-H-ACTIVE-0" d="M381.397,973.333L377.261,977.5C373.124,981.667,364.851,990,360.714,997.45C356.578,1004.9,356.578,1011.467,356.578,1014.75L356.578,1018.033"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-LIFETIME LE-LIFETIME_ACTIVE" id="L-LIFETIME-LIFETIME_ACTIVE-0" d="M1503.025,377.778L1503.025,381.944C1503.025,386.111,1503.025,394.444,1503.025,401.894C1503.025,409.344,1503.025,415.911,1503.025,419.194L1503.025,422.478"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-ACTIVE LE-I" id="L-ACTIVE-I-0" d="M297.333,1075L287.778,1079.167C278.222,1083.333,259.111,1091.667,249.622,1099.2C240.132,1106.734,240.264,1113.467,240.33,1116.834L240.396,1120.201"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-LIFETIME_ACTIVE LE-LI" id="L-LIFETIME_ACTIVE-LI-0" d="M1413.737,482.807L1303.383,494.515C1193.029,506.223,972.321,529.639,862.044,552.584C751.767,575.53,751.921,598.004,751.999,609.241L752.076,620.478"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-I LE-J" id="L-I-J-0" d="M198.266,1158.833L183.752,1164.444C169.239,1170.056,140.212,1181.278,125.698,1191.7C111.185,1202.122,111.185,1211.744,111.185,1216.556L111.185,1221.367"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-J LE-K" id="L-J-K-0" d="M111.185,1278.333L111.185,1282.5C111.185,1286.667,111.185,1295,111.185,1302.45C111.185,1309.9,111.185,1316.467,111.185,1319.75L111.185,1323.033"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-K LE-L" id="L-K-L-0" d="M111.185,1398.333L111.185,1402.5C111.185,1406.667,111.185,1415,111.185,1422.45C111.185,1429.9,111.185,1436.467,111.185,1439.75L111.185,1443.033"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-I LE-M" id="L-I-M-0" d="M282.734,1158.833L297.081,1164.444C311.428,1170.056,340.122,1181.278,354.468,1196.889C368.815,1212.5,368.815,1232.5,368.815,1250.972C368.815,1269.444,368.815,1286.389,368.815,1298.144C368.815,1309.9,368.815,1316.467,368.815,1319.75L368.815,1323.033"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-M LE-N" id="L-M-N-0" d="M368.815,1398.333L368.815,1402.5C368.815,1406.667,368.815,1415,368.815,1422.45C368.815,1429.9,368.815,1436.467,368.815,1439.75L368.815,1443.033"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-LI LE-LJ" id="L-LI-LJ-0" d="M741.07,659.111L733.012,671.065C724.953,683.019,708.836,706.926,700.778,725.219C692.719,743.511,692.719,756.189,692.719,762.528L692.719,768.867"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-LJ LE-LK" id="L-LJ-LK-0" d="M692.719,825.833L692.719,831.528C692.719,837.222,692.719,848.611,793.127,863.343C893.536,878.075,1094.352,896.15,1194.76,905.188L1295.168,914.226"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-LI LE-LM" id="L-LI-LM-0" d="M802.748,659.111L839.234,671.065C875.721,683.019,948.694,706.926,1017.179,725.063C1085.664,743.201,1149.662,755.568,1181.66,761.752L1213.659,767.936"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-L LE-BILLING_CYCLE" id="L-L-BILLING_CYCLE-0" d="M111.185,1500L111.185,1504.167C111.185,1508.333,111.185,1516.667,183.07,1527.627C254.956,1538.587,398.726,1552.175,470.612,1558.968L542.497,1565.762"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-N LE-BILLING_CYCLE" id="L-N-BILLING_CYCLE-0" d="M368.815,1500L368.815,1504.167C368.815,1508.333,368.815,1516.667,397.772,1526.086C426.73,1535.505,484.644,1546.01,513.601,1551.262L542.559,1556.515"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-K LE-BILLING_CYCLE" id="L-K-BILLING_CYCLE-0" d="M222.37,1369.525L383.412,1378.493C544.454,1387.461,866.538,1405.397,1027.58,1422.838C1188.622,1440.278,1188.622,1457.222,1188.622,1474.167C1188.622,1491.111,1188.622,1508.056,1116.456,1523.327C1044.291,1538.598,899.959,1552.196,827.794,1558.995L755.628,1565.794"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-BILLING_CYCLE LE-O" id="L-BILLING_CYCLE-O-0" d="M649.063,1601.667L649.063,1605.833C649.063,1610,649.063,1618.333,649.063,1625.783C649.063,1633.233,649.063,1639.8,649.063,1643.083L649.063,1646.367"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-O LE-P" id="L-O-P-0" d="M649.063,1685L649.063,1689.167C649.063,1693.333,649.063,1701.667,649.063,1710.644C649.063,1719.622,649.063,1729.244,649.063,1734.056L649.063,1738.867"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-O LE-Q" id="L-O-Q-0" d="M734.879,1677.345L786.708,1682.787C838.538,1688.23,942.198,1699.115,994.027,1707.841C1045.857,1716.567,1045.857,1723.133,1045.857,1726.417L1045.857,1729.7"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-P LE-R" id="L-P-R-0" d="M649.063,1795.833L649.063,1801.528C649.063,1807.222,649.063,1818.611,649.063,1827.589C649.063,1836.567,649.063,1843.133,649.063,1846.417L649.063,1849.7"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-Q LE-R" id="L-Q-R-0" d="M1045.857,1805L1045.857,1809.167C1045.857,1813.333,1045.857,1821.667,995.99,1831.07C946.123,1840.473,846.389,1850.946,796.523,1856.182L746.656,1861.419"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-R LE-S" id="L-R-S-0" d="M649.063,1888.333L649.063,1892.5C649.063,1896.667,649.063,1905,649.063,1912.45C649.063,1919.9,649.063,1926.467,649.063,1929.75L649.063,1933.033"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-S LE-T" id="L-S-T-0" d="M649.063,1990L649.063,1994.167C649.063,1998.333,649.063,2006.667,649.063,2014.117C649.063,2021.567,649.063,2028.133,649.063,2031.417L649.063,2034.7"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-T LE-ACTIVE" id="L-T-ACTIVE-0" d="M721.428,2059.259L802.627,2051.883C883.826,2044.506,1046.224,2029.753,1127.423,2013.904C1208.622,1998.056,1208.622,1981.111,1208.622,1964.167C1208.622,1947.222,1208.622,1930.278,1208.622,1914.861C1208.622,1899.444,1208.622,1885.556,1208.622,1871.667C1208.622,1857.778,1208.622,1843.889,1208.622,1826.944C1208.622,1810,1208.622,1790,1208.622,1770C1208.622,1750,1208.622,1730,1208.622,1713.056C1208.622,1696.111,1208.622,1682.222,1208.622,1668.333C1208.622,1654.444,1208.622,1640.556,1208.622,1625.139C1208.622,1609.722,1208.622,1592.778,1208.622,1575.833C1208.622,1558.889,1208.622,1541.944,1208.622,1525C1208.622,1508.056,1208.622,1491.111,1208.622,1474.167C1208.622,1457.222,1208.622,1440.278,1208.622,1421.806C1208.622,1403.333,1208.622,1383.333,1208.622,1363.333C1208.622,1343.333,1208.622,1323.333,1208.622,1304.861C1208.622,1286.389,1208.622,1269.444,1208.622,1250.972C1208.622,1232.5,1208.622,1212.5,1208.622,1194.028C1208.622,1175.556,1208.622,1158.611,1208.622,1143.194C1208.622,1127.778,1208.622,1113.889,1081.697,1099.372C954.772,1084.855,700.922,1069.71,573.997,1062.138L447.072,1054.566"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-FREE LE-U" id="L-FREE-U-0" d="M905.356,376.389L901.132,380.787C896.908,385.185,888.459,393.981,884.31,406.561C880.161,419.141,880.312,435.504,880.387,443.685L880.462,451.867"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-U LE-V" id="L-U-V-0" d="M880.511,490.5L880.428,500.926C880.344,511.352,880.178,532.204,887.57,552.436C894.963,572.669,909.916,592.283,917.392,602.089L924.868,611.896"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-U LE-W" id="L-U-W-0" d="M919.66,490.5L944.262,500.926C968.865,511.352,1018.07,532.204,1049.674,552.42C1081.278,572.637,1095.282,592.219,1102.284,602.009L1109.286,611.8"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-V LE-FREE" id="L-V-FREE-0" d="M966.251,616.111L973.766,605.602C981.282,595.093,996.314,574.074,1003.83,550.278C1011.346,526.481,1011.346,499.907,1011.346,474.861C1011.346,449.815,1011.346,426.296,1007.974,410.795C1004.603,395.294,997.86,387.81,994.488,384.068L991.117,380.326"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-W LE-C" id="L-W-C-0" d="M1142.669,616.111L1147.479,605.602C1152.289,595.093,1161.91,574.074,1166.72,550.278C1171.53,526.481,1171.53,499.907,1171.53,474.861C1171.53,449.815,1171.53,426.296,1171.53,402.778C1171.53,379.259,1171.53,355.741,1171.53,330.694C1171.53,305.648,1171.53,279.074,1184.413,260.511C1197.297,241.947,1223.063,231.395,1235.947,226.118L1248.83,220.842"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-ACTIVE LE-X" id="L-ACTIVE-X-0" d="M441.782,1066.233L469.878,1071.861C497.974,1077.489,554.166,1088.744,582.328,1097.739C610.49,1106.734,610.622,1113.467,610.688,1116.834L610.754,1120.201"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-X LE-Y" id="L-X-Y-0" d="M610.858,1158.833L610.775,1164.444C610.691,1170.056,610.525,1181.278,610.441,1191.7C610.358,1202.122,610.358,1211.744,610.358,1216.556L610.358,1221.367"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-Y LE-Z" id="L-Y-Z-0" d="M610.358,1278.333L610.358,1282.5C610.358,1286.667,610.358,1295,616.21,1304.28C622.062,1313.56,633.766,1323.786,639.617,1328.899L645.469,1334.013"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-Z LE-H" id="L-Z-H-0" d="M708.591,1337.5L715.108,1331.806C721.625,1326.111,734.659,1314.722,741.176,1300.556C747.693,1286.389,747.693,1269.444,747.693,1250.972C747.693,1232.5,747.693,1212.5,747.693,1194.028C747.693,1175.556,747.693,1158.611,747.693,1143.194C747.693,1127.778,747.693,1113.889,747.693,1098.472C747.693,1083.056,747.693,1066.111,747.693,1049.167C747.693,1032.222,747.693,1015.278,712.9,999.342C678.107,983.407,608.521,968.48,573.727,961.017L538.934,953.554"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-LIFETIME_ACTIVE LE-LIFETIME_BILLING" id="L-LIFETIME_ACTIVE-LIFETIME_BILLING-0" d="M1413.737,501.122L1385.926,509.778C1358.115,518.433,1302.493,535.744,1280.185,549.494C1257.878,563.244,1268.885,573.433,1274.388,578.528L1279.891,583.622"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-LK LE-LIFETIME_ACTIVE" id="L-LK-LIFETIME_ACTIVE-0" d="M1518.917,894.167L1528.313,888.472C1537.71,882.778,1556.502,871.389,1565.899,855.694C1575.295,840,1575.295,820,1575.295,798.472C1575.295,776.944,1575.295,753.889,1575.295,727.546C1575.295,701.204,1575.295,671.574,1575.295,641.944C1575.295,612.315,1575.295,582.685,1570.726,562.83C1566.157,542.976,1557.02,532.896,1552.451,527.856L1547.882,522.816"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-LM LE-LIFETIME_ACTIVE" id="L-LM-LIFETIME_ACTIVE-0" d="M1424.037,765L1431.271,759.306C1438.504,753.611,1452.971,742.222,1460.204,721.713C1467.437,701.204,1467.437,671.574,1467.437,641.944C1467.437,612.315,1467.437,582.685,1469.619,562.983C1471.801,543.28,1476.165,533.504,1478.347,528.616L1480.529,523.729"/><path marker-end="url(#mermaid-svg-1753224784981-dwmdgjbum_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-LIFETIME_BILLING LE-LIFETIME_ACTIVE" id="L-LIFETIME_BILLING-LIFETIME_ACTIVE-0" d="M1375.076,587.222L1378.424,581.528C1381.773,575.833,1388.47,564.444,1398.812,553.581C1409.155,542.717,1423.142,532.378,1430.136,527.209L1437.13,522.039"/></g><g class="edgeLabels"><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g transform="translate(947.7756462097168, 252.50000667572021)" class="edgeLabel"><g transform="translate(-9.401041984558105, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="18.80208396911621"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">No</span></div></foreignObject></g></g><g transform="translate(425.24524688720703, 252.50000667572021)" class="edgeLabel"><g transform="translate(-11.328126907348633, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="22.656253814697266"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Yes</span></div></foreignObject></g></g><g transform="translate(1503.0252265930176, 252.50000667572021)" class="edgeLabel"><g transform="translate(-72.02257537841797, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="144.04515075683594"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Secret Admin Action</span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g transform="translate(111.18489837646484, 1192.5000276565552)" class="edgeLabel"><g transform="translate(-37.890625, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="75.78125"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Invite sent</span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g transform="translate(368.8151168823242, 1252.5000286102295)" class="edgeLabel"><g transform="translate(-59.895835876464844, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="119.79167175292969"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Remove member</span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g transform="translate(692.7192153930664, 730.8333539962769)" class="edgeLabel"><g transform="translate(-37.890625, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="75.78125"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Invite sent</span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g transform="translate(1021.6667022705078, 730.8333539962769)" class="edgeLabel"><g transform="translate(-59.895835876464844, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="119.79167175292969"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Remove member</span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g transform="translate(880.0108871459961, 553.0555696487427)" class="edgeLabel"><g transform="translate(-40.63368225097656, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="81.26736450195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Under limit</span></div></foreignObject></g></g><g transform="translate(1067.2743473052979, 553.0555696487427)" class="edgeLabel"><g transform="translate(-35.9288215637207, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="71.8576431274414"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Over limit</span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g transform="translate(610.3581008911133, 1192.5000276565552)" class="edgeLabel"><g transform="translate(-61.72743225097656, -9.166666984558105)" class="label"><foreignObject height="18.33333396911621" width="123.45486450195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Legacy sub exists</span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g></g><g class="nodes"><g transform="translate(1293.0903282165527, 16.666667938232422)" id="flowchart-A-974" class="node default default flowchart-label"><polygon style="fill:#e1f5fe;" transform="translate(-100.94184112548828,16.666666984558105)" class="label-container" points="0,0 201.88368225097656,0 201.88368225097656,-33.33333396911621 0,-33.33333396911621 0,0 -8,0 209.88368225097656,0 209.88368225097656,-33.33333396911621 -8,-33.33333396911621 -8,0"/><g transform="translate(-93.44184112548828, -9.166666984558105)" style="" class="label"><rect/><foreignObject height="18.33333396911621" width="186.88368225097656"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">User Creates Organization</span></div></foreignObject></g></g><g transform="translate(1293.0903282165527, 109.16666984558105)" id="flowchart-B-975" class="node default default flowchart-label"><rect height="51.66666793823242" width="232.98611450195312" y="-25.83333396911621" x="-116.49305725097656" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-108.99305725097656, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="217.98611450195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Owner marked as is_paid=true<br />Org status: free</span></div></foreignObject></g></g><g transform="translate(1293.0903282165527, 201.6666717529297)" id="flowchart-C-977" class="node default default flowchart-label"><polygon style="" transform="translate(-99.27951574325562,16.666666984558105)" class="label-container" points="8.333333492279053,0 190.22569799423218,0 198.55903148651123,-16.666666984558105 190.22569799423218,-33.33333396911621 8.333333492279053,-33.33333396911621 0,-16.666666984558105"/><g transform="translate(-83.44618225097656, -9.166666984558105)" style="" class="label"><rect/><foreignObject height="18.33333396911621" width="166.89236450195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">User wants to upgrade?</span></div></foreignObject></g></g><g transform="translate(947.7756462097168, 332.2222309112549)" id="flowchart-FREE-979" class="node default default flowchart-label"><rect height="88.33333587646484" width="147.08334350585938" y="-44.16666793823242" x="-73.54167175292969" ry="0" rx="0" style="fill:#fff3e0;" class="basic label-container"/><g transform="translate(-66.04167175292969, -36.66666793823242)" style="" class="label"><rect/><foreignObject height="73.33333587646484" width="132.08334350585938"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Free Plan<br />• Max 3 users<br />• Max 3 projects<br />• Limited features</span></div></foreignObject></g></g><g transform="translate(425.24524688720703, 332.2222309112549)" id="flowchart-D-981" class="node default default flowchart-label"><rect height="51.66666793823242" width="217.50003051757812" y="-25.83333396911621" x="-108.75001525878906" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-101.25001525878906, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="202.50003051757812"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">User selects plan & quantity<br />in frontend</span></div></foreignObject></g></g><g transform="translate(1503.0252265930176, 332.2222309112549)" id="flowchart-LIFETIME-983" class="node default default flowchart-label"><rect height="91.11111450195312" width="191.36285400390625" y="-45.55555725097656" x="-95.68142700195312" ry="0" rx="0" style="fill:#ffd700;" class="basic label-container"/><g transform="translate(-88.18142700195312, -38.05555725097656)" style="" class="label"><rect/><foreignObject height="76.11111450195312" width="176.36285400390625"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">🔑 Lifetime Pro<br />Manual DB Update:<br />• prem_status = 'pro'<br />• subscription_id = NULL</span></div></foreignObject></g></g><g transform="translate(425.24524688720703, 473.333345413208)" id="flowchart-E-985" class="node default default flowchart-label"><rect height="51.66666793823242" width="204.98265075683594" y="-25.83333396911621" x="-102.49132537841797" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-94.99132537841797, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="189.98265075683594"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">create_checkout_session()<br />Stripe Checkout</span></div></foreignObject></g></g><g transform="translate(425.24524688720703, 641.9444618225098)" id="flowchart-F-987" class="node default default flowchart-label"><rect height="51.66666793823242" width="196.81423950195312" y="-25.83333396911621" x="-98.40711975097656" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-90.90711975097656, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="181.81423950195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">User pays for initial seats<br />(e.g., $120 for 3 seats)</span></div></foreignObject></g></g><g transform="translate(425.24524688720703, 800.000020980835)" id="flowchart-G-989" class="node default default flowchart-label"><rect height="51.66666793823242" width="162.59548950195312" y="-25.83333396911621" x="-81.29774475097656" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-73.79774475097656, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="147.59548950195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Stripe webhook<br />subscription.created</span></div></foreignObject></g></g><g transform="translate(425.24524688720703, 929.1666889190674)" id="flowchart-H-991" class="node default default flowchart-label"><rect height="88.33333587646484" width="217.01390075683594" y="-44.16666793823242" x="-108.50695037841797" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-101.00695037841797, -36.66666793823242)" style="" class="label"><rect/><foreignObject height="73.33333587646484" width="202.01390075683594"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">update_org_subscription()<br />• Mark ALL members as paid<br />• Set prem_status = 'pro'<br />• Set subscription_id</span></div></foreignObject></g></g><g transform="translate(356.57770919799805, 1049.166690826416)" id="flowchart-ACTIVE-993" class="node default default flowchart-label"><rect height="51.66666793823242" width="170.40798950195312" y="-25.83333396911621" x="-85.20399475097656" ry="0" rx="0" style="fill:#c8e6c9;" class="basic label-container"/><g transform="translate(-77.70399475097656, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="155.40798950195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Active Subscription<br />Usage tracking begins</span></div></foreignObject></g></g><g transform="translate(1503.0252265930176, 473.333345413208)" id="flowchart-LIFETIME_ACTIVE-995" class="node default default flowchart-label"><rect height="91.11111450195312" width="178.57640075683594" y="-45.55555725097656" x="-89.28820037841797" ry="0" rx="0" style="fill:#ffecb3;" class="basic label-container"/><g transform="translate(-81.78820037841797, -38.05555725097656)" style="" class="label"><rect/><foreignObject height="76.11111450195312" width="163.57640075683594"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">🎁 Lifetime Pro Active<br />• Unlimited features<br />• No billing cycles<br />• No Stripe integration</span></div></foreignObject></g></g><g transform="translate(240.00000762939453, 1141.6666927337646)" id="flowchart-I-997" class="node default default flowchart-label"><polygon style="" transform="translate(-102.94272375106812,16.666666984558105)" class="label-container" points="8.333333492279053,0 197.55211400985718,0 205.88544750213623,-16.666666984558105 197.55211400985718,-33.33333396911621 8.333333492279053,-33.33333396911621 0,-16.666666984558105"/><g transform="translate(-87.10939025878906, -9.166666984558105)" style="" class="label"><rect/><foreignObject height="18.33333396911621" width="174.21878051757812"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Org management events</span></div></foreignObject></g></g><g transform="translate(751.6124458312988, 641.9444618225098)" id="flowchart-LI-999" class="node default default flowchart-label"><polygon style="" transform="translate(-85.60764074325562,16.666666984558105)" class="label-container" points="8.333333492279053,0 162.88194799423218,0 171.21528148651123,-16.666666984558105 162.88194799423218,-33.33333396911621 8.333333492279053,-33.33333396911621 0,-16.666666984558105"/><g transform="translate(-69.77430725097656, -9.166666984558105)" style="" class="label"><rect/><foreignObject height="18.33333396911621" width="139.54861450195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Lifetime org events</span></div></foreignObject></g></g><g transform="translate(111.18489837646484, 1252.5000286102295)" id="flowchart-J-1001" class="node default default flowchart-label"><rect height="51.66666793823242" width="168.8541717529297" y="-25.83333396911621" x="-84.42708587646484" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-76.92708587646484, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="153.8541717529297"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">invite_to_org()<br />Email with magic link</span></div></foreignObject></g></g><g transform="translate(111.18489837646484, 1363.3333625793457)" id="flowchart-K-1003" class="node default default flowchart-label"><rect height="70.00000381469727" width="222.3697967529297" y="-35.00000190734863" x="-111.18489837646484" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-103.68489837646484, -27.500001907348633)" style="" class="label"><rect/><foreignObject height="55.000003814697266" width="207.3697967529297"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">accept_org_invite()<br />• New member: is_paid=true<br />• Update Stripe quantity</span></div></foreignObject></g></g><g transform="translate(111.18489837646484, 1474.166696548462)" id="flowchart-L-1005" class="node default default flowchart-label"><rect height="51.66666793823242" width="138.62847900390625" y="-25.83333396911621" x="-69.31423950195312" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-61.814239501953125, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="123.62847900390625"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Proration charge<br />for partial month</span></div></foreignObject></g></g><g transform="translate(368.8151168823242, 1363.3333625793457)" id="flowchart-M-1007" class="node default default flowchart-label"><rect height="70.00000381469727" width="192.89065551757812" y="-35.00000190734863" x="-96.44532775878906" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-88.94532775878906, -27.500001907348633)" style="" class="label"><rect/><foreignObject height="55.000003814697266" width="177.89065551757812"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">remove_from_org()<br />• Delete user_org record<br />• Update Stripe quantity</span></div></foreignObject></g></g><g transform="translate(368.8151168823242, 1474.166696548462)" id="flowchart-N-1009" class="node default default flowchart-label"><rect height="51.66666793823242" width="138.62847900390625" y="-25.83333396911621" x="-69.31423950195312" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-61.814239501953125, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="123.62847900390625"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Proration credit<br />for partial month</span></div></foreignObject></g></g><g transform="translate(692.7192153930664, 800.000020980835)" id="flowchart-LJ-1011" class="node default default flowchart-label"><rect height="51.66666793823242" width="168.8541717529297" y="-25.83333396911621" x="-84.42708587646484" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-76.92708587646484, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="153.8541717529297"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">invite_to_org()<br />Email with magic link</span></div></foreignObject></g></g><g transform="translate(1461.1632499694824, 929.1666889190674)" id="flowchart-LK-1013" class="node default default flowchart-label"><rect height="70.00000381469727" width="321.43231201171875" y="-35.00000190734863" x="-160.71615600585938" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-153.21615600585938, -27.500001907348633)" style="" class="label"><rect/><foreignObject height="55.000003814697266" width="306.43231201171875"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">accept_org_invite()<br />• New member: is_paid=true<br />• NO Stripe update (subscription_id=NULL)</span></div></foreignObject></g></g><g transform="translate(1379.5790367126465, 800.000020980835)" id="flowchart-LM-1015" class="node default default flowchart-label"><rect height="70.00000381469727" width="321.43231201171875" y="-35.00000190734863" x="-160.71615600585938" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-153.21615600585938, -27.500001907348633)" style="" class="label"><rect/><foreignObject height="55.000003814697266" width="306.43231201171875"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">remove_from_org()<br />• Delete user_org record<br />• NO Stripe update (subscription_id=NULL)</span></div></foreignObject></g></g><g transform="translate(649.0625267028809, 1575.8333644866943)" id="flowchart-BILLING_CYCLE-1017" class="node default default flowchart-label"><rect height="51.66666793823242" width="202.57815551757812" y="-25.83333396911621" x="-101.28907775878906" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-93.78907775878906, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="187.57815551757812"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Monthly Billing Cycle<br />End of subscription period</span></div></foreignObject></g></g><g transform="translate(649.0625267028809, 1668.333366394043)" id="flowchart-O-1024" class="node default default flowchart-label"><rect height="33.33333396911621" width="171.63197326660156" y="-16.666666984558105" x="-85.81598663330078" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-78.31598663330078, -9.166666984558105)" style="" class="label"><rect/><foreignObject height="18.33333396911621" width="156.63197326660156"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Calculate Monthly Bill</span></div></foreignObject></g></g><g transform="translate(649.0625267028809, 1770.0000343322754)" id="flowchart-P-1026" class="node default default flowchart-label"><rect height="51.66666793823242" width="227.3871612548828" y="-25.83333396911621" x="-113.6935806274414" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-106.1935806274414, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="212.3871612548828"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Seat Costs<br />current_member_count × $40</span></div></foreignObject></g></g><g transform="translate(1045.8572463989258, 1770.0000343322754)" id="flowchart-Q-1028" class="node default default flowchart-label"><rect height="70.00000381469727" width="255.52952575683594" y="-35.00000190734863" x="-127.76476287841797" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-120.26476287841797, -27.500001907348633)" style="" class="label"><rect/><foreignObject height="55.000003814697266" width="240.52952575683594"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Usage Costs<br />• Tokens: quantity ÷ 1000 × $0.02<br />• Spans: quantity × $0.001</span></div></foreignObject></g></g><g transform="translate(649.0625267028809, 1871.6667022705078)" id="flowchart-R-1030" class="node default default flowchart-label"><rect height="33.33333396911621" width="184.64410400390625" y="-16.666666984558105" x="-92.32205200195312" ry="0" rx="0" style="fill:#ffcdd2;" class="basic label-container"/><g transform="translate(-84.82205200195312, -9.166666984558105)" style="" class="label"><rect/><foreignObject height="18.33333396911621" width="169.64410400390625"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Generate Stripe Invoice</span></div></foreignObject></g></g><g transform="translate(649.0625267028809, 1964.1667041778564)" id="flowchart-S-1034" class="node default default flowchart-label"><rect height="51.66666793823242" width="251.12847900390625" y="-25.83333396911621" x="-125.56423950195312" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-118.06423950195312, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="236.12847900390625"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">create_billing_period_snapshot()<br />Store in database</span></div></foreignObject></g></g><g transform="translate(649.0625267028809, 2065.833372116089)" id="flowchart-T-1036" class="node default default flowchart-label"><rect height="51.66666793823242" width="144.7309112548828" y="-25.83333396911621" x="-72.3654556274414" ry="0" rx="0" style="fill:#f3e5f5;" class="basic label-container"/><g transform="translate(-64.8654556274414, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="129.7309112548828"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Customer charged<br />automatically</span></div></foreignObject></g></g><g transform="translate(880.0108871459961, 473.333345413208)" id="flowchart-U-1040" class="node default default flowchart-label"><polygon style="" transform="translate(-82.72569799423218,16.666666984558105)" class="label-container" points="8.333333492279053,0 157.1180624961853,0 165.45139598846436,-16.666666984558105 157.1180624961853,-33.33333396911621 8.333333492279053,-33.33333396911621 0,-16.666666984558105"/><g transform="translate(-66.89236450195312, -9.166666984558105)" style="" class="label"><rect/><foreignObject height="18.33333396911621" width="133.78472900390625"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">User invites others</span></div></foreignObject></g></g><g transform="translate(947.7756462097168, 641.9444618225098)" id="flowchart-V-1042" class="node default default flowchart-label"><rect height="51.66666793823242" width="121.11111450195312" y="-25.83333396911621" x="-60.55555725097656" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-53.05555725097656, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="106.11111450195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Free user joins<br />is_paid=false</span></div></foreignObject></g></g><g transform="translate(1130.8442268371582, 641.9444618225098)" id="flowchart-W-1044" class="node default default flowchart-label"><rect height="51.66666793823242" width="145.0260467529297" y="-25.83333396911621" x="-72.51302337646484" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-65.01302337646484, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="130.0260467529297"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Invitation blocked<br />Must upgrade first</span></div></foreignObject></g></g><g transform="translate(610.3581008911133, 1141.6666927337646)" id="flowchart-X-1050" class="node default default flowchart-label"><polygon style="" transform="translate(-80.21267461776733,16.666666984558105)" class="label-container" points="8.333333492279053,0 152.09201574325562,0 160.42534923553467,-16.666666984558105 152.09201574325562,-33.33333396911621 8.333333492279053,-33.33333396911621 0,-16.666666984558105"/><g transform="translate(-64.37934112548828, -9.166666984558105)" style="" class="label"><rect/><foreignObject height="18.33333396911621" width="128.75868225097656"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Legacy transition?</span></div></foreignObject></g></g><g transform="translate(610.3581008911133, 1252.5000286102295)" id="flowchart-Y-1052" class="node default default flowchart-label"><rect height="51.66666793823242" width="204.67015075683594" y="-25.83333396911621" x="-102.33507537841797" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-94.83507537841797, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="189.67015075683594"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Schedule new subscription<br />to start when legacy ends</span></div></foreignObject></g></g><g transform="translate(679.0256385803223, 1363.3333625793457)" id="flowchart-Z-1054" class="node default default flowchart-label"><rect height="51.66666793823242" width="206.97048950195312" y="-25.83333396911621" x="-103.48524475097656" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-95.98524475097656, -18.33333396911621)" style="" class="label"><rect/><foreignObject height="36.66666793823242" width="191.97048950195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">Legacy expires<br />New subscription activates</span></div></foreignObject></g></g><g transform="translate(1342.8971824645996, 641.9444618225098)" id="flowchart-LIFETIME_BILLING-1058" class="node default default flowchart-label"><rect height="109.44445037841797" width="179.07986450195312" y="-54.722225189208984" x="-89.53993225097656" ry="0" rx="0" style="fill:#fff9c4;" class="basic label-container"/><g transform="translate(-82.03993225097656, -47.222225189208984)" style="" class="label"><rect/><foreignObject height="94.44445037841797" width="164.07986450195312"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">💎 Lifetime Billing<br />• No monthly charges<br />• No usage billing<br />• Unlimited everything<br />• Zero cost forever</span></div></foreignObject></g></g></g></g></g></svg>