<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="eli.ai" agent="eli.ai diagram exporter" version="1">
  <diagram id="sdk-authentication-boundary-ed41851a" name="SDK authentication boundary">
    <mxGraphModel dx="1600" dy="1200" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1200" math="0" shadow="0">
      <root>
        <mxCell id="0"/>
        <object id="1" label="SDK authentication boundary" schemaVersion="1" diagramId="sdk-authentication-boundary-ed41851a" canonicalAppearanceKey="tsx:src/app/(docs)/docs/api/sdk/page.tsx:authFlow#1" sourceSha256="ed41851a1721220d89d202e25c1b11c75950f72020311ecc83f02e6c0810fb43" metadataPayloadSha256="9d0bcbfd3bbd81b41bd9c5ce77a000de52259b38907e407314b19cf02b978f35" generationKey="129506bbcb2be59a77bc8f511ed9916a93622f2befce24619728ccf73f48d835" concepts="[&quot;Auth flow&quot;,&quot;SDK&quot;]" keywords="[&quot;FORCE RLS&quot;,&quot;eli_sk_ or eli_uk_&quot;,&quot;injected fetch&quot;,&quot;Bearer key&quot;,&quot;scope + live capability&quot;,&quot;workspace transaction&quot;,&quot;/api/v1&quot;,&quot;Application&quot;,&quot;EliTransport&quot;,&quot;optional&quot;,&quot;X-Workspace-Id&quot;]" application="{&quot;name&quot;:&quot;eli-ai&quot;,&quot;version&quot;:&quot;0.1.0&quot;}" packages="{&quot;mermaid&quot;:&quot;11.16.0&quot;,&quot;mermaidCli&quot;:&quot;11.16.0&quot;,&quot;playwright&quot;:&quot;1.62.1&quot;,&quot;playwrightCore&quot;:&quot;1.62.1&quot;,&quot;puppeteer&quot;:&quot;25.6.0&quot;,&quot;puppeteerCore&quot;:&quot;25.6.0&quot;}" environment="{&quot;architecture&quot;:&quot;x64&quot;,&quot;containerImage&quot;:&quot;playwright:v1.62.1-noble@sha256:c091b21d9fae78c76e85cd4356431e9b018402f172a214fc7d7a5e9a7e29d8ac+node:26.3.1-bookworm-slim@sha256:209558c3e5e40e8adff68959d3c2ba7cd73723e716d89196878a0c362fa1e109&quot;,&quot;node&quot;:&quot;v26.3.1&quot;,&quot;platform&quot;:&quot;linux&quot;,&quot;yarn&quot;:&quot;4.17.1&quot;}" renderer="{&quot;browser&quot;:{&quot;executableSha256&quot;:&quot;0b20b130e7edd9dd51873be867761295fe0cfad490c2b9a64f95bd3cfc08fa71&quot;,&quot;name&quot;:&quot;chromium&quot;,&quot;revision&quot;:&quot;1234&quot;,&quot;version&quot;:&quot;151.0.7922.34&quot;},&quot;font&quot;:{&quot;family&quot;:&quot;Eli Diagram Inter Variable&quot;,&quot;fileSha256&quot;:&quot;3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62&quot;,&quot;licenseSha256&quot;:&quot;3b0a5fca3d17942cde889069889dedbbbd075e9b599968c82a95f4d944e9b345&quot;},&quot;mermaidConfigSha256&quot;:&quot;68c10966fe84406ee626034d58bfabd555df9f65f691204b7c46db24038da101&quot;,&quot;themeCssSha256&quot;:&quot;c80287a78d80ad63d27bd5ca348b2ef9a7e2f44da289e436be6484ea28a1b033&quot;}" adapterVersions="{&quot;diagramGenerator&quot;:&quot;2&quot;,&quot;drawioFlowchart&quot;:&quot;1&quot;,&quot;drawioGantt&quot;:&quot;1&quot;,&quot;drawioSequence&quot;:&quot;1&quot;,&quot;drawioState&quot;:&quot;1&quot;}" mermaidType="flowchart" direction="LR" generatedAt="2026-08-12T23:41:59.195Z" mermaidSource="flowchart LR&#10;  App[&quot;Application&quot;]&#10;  Client[&quot;EliTransport&lt;br/&gt;injected fetch&quot;]&#10;  Key[&quot;Bearer key&lt;br/&gt;eli_sk_ or eli_uk_&quot;]&#10;  Workspace[&quot;optional&lt;br/&gt;X-Workspace-Id&quot;]&#10;  API[&quot;/api/v1&quot;]&#10;  Guard[&quot;scope + live capability&quot;]&#10;  RLS[&quot;workspace transaction&lt;br/&gt;FORCE RLS&quot;]&#10;&#10;  App --&gt; Client --&gt; Key --&gt; Workspace --&gt; API --&gt; Guard --&gt; RLS">
          <mxCell parent="0"/>
        </object>
        <object id="n:App" label="Application" mermaidId="App" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="8" y="20" width="140.828125" height="52" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Client" label="EliTransportinjected fetch" mermaidId="Client" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="198.828125" y="8" width="158.84375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Key" label="Bearer keyeli_sk_ or eli_uk_" mermaidId="Key" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="407.671875" y="8" width="179.4375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Workspace" label="optionalX-Workspace-Id" mermaidId="Workspace" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="637.109375" y="8" width="179.828125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:API" label="/api/v1" mermaidId="API" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="866.9375" y="20" width="105.6875" height="52" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Guard" label="scope + live capability" mermaidId="Guard" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="1022.625" y="20" width="225.328125" height="52" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:RLS" label="workspace transactionFORCE RLS" mermaidId="RLS" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="1297.953125" y="8" width="228.234375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="e:L_App_Client_0" label="" mermaidId="L_App_Client_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:App" target="n:Client" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="148.828125" y="46" as="sourcePoint"/>
              <mxPoint x="198.828125" y="46" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="173.828125" y="46"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Client_Key_0" label="" mermaidId="L_Client_Key_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Client" target="n:Key" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="357.671875" y="46" as="sourcePoint"/>
              <mxPoint x="407.671875" y="46" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="382.671875" y="46"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Key_Workspace_0" label="" mermaidId="L_Key_Workspace_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Key" target="n:Workspace" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="587.109375" y="46" as="sourcePoint"/>
              <mxPoint x="637.109375" y="46" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="612.109375" y="46"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Workspace_API_0" label="" mermaidId="L_Workspace_API_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Workspace" target="n:API" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="816.9375" y="46" as="sourcePoint"/>
              <mxPoint x="866.9375" y="46" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="841.9375" y="46"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_API_Guard_0" label="" mermaidId="L_API_Guard_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:API" target="n:Guard" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="972.625" y="46" as="sourcePoint"/>
              <mxPoint x="1022.625" y="46" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="997.625" y="46"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Guard_RLS_0" label="" mermaidId="L_Guard_RLS_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Guard" target="n:RLS" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1247.953125" y="46" as="sourcePoint"/>
              <mxPoint x="1297.953125" y="46" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1272.953125" y="46"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
