1import{j as e}from"./vendor-ui-x7D0iLe8.js";import{r as o,L as a}from"./vendor-react-aMKJrssV.js";import{A as c}from"./api-base-BHGLjv00.js";import{k as L,f as v,B as r,A as m,C as k}from"./index-DQ5XgqgM.js";import{C as U}from"./card-BFx6yIUO.js";import{copyToClipboard as I}from"./copy-to-clipboard-DmNaz9C9.js";import{K as p}from"./key-B_txYT6U.js";import{D as q}from"./download-DzDICVu8.js";import{E as _}from"./external-link-iOvaM5Yb.js";import{T as z}from"./terminal-CmXVWP15.js";import{C as B}from"./copy-CGTBYtlE.js";import{Z as S}from"./zap-BvH3HhHS.js";import{S as T}from"./shield-nhq_cVj_.js";import{A}from"./activity-DNdYjtjI.js";import{G}from"./git-compare-BkpTcCna.js";import{L as P}from"./layers-BFYSRn2f.js";import{B as D}from"./book-open-5x6eLB2d.js";import{C as Q}from"./code-DmLv9WW8.js";import"./vendor-data-LOeL2b27.js";const E="https://adgmsnwjynqkhawhioil.supabase.co/functions/v1/partner-api/openapi.json",C="5.17.14",x="?utm_source=api_docs&utm_medium=internal&utm_campaign=get_key",n="eqiqs_sandbox_public_demo",H=[{method:"POST",path:"/v1/compatibility",desc:"Score two profiles, returns 0â100 + dimension breakdown",icon:G},{method:"POST",path:"/v1/compatibility/batch",desc:"Score up to 10 pairs in one request",icon:P},{method:"POST",path:"/v1/compatibility/explain",desc:"Natural-language explanation of a score",icon:D},{method:"POST",path:"/v1/profile/analyze",desc:"Infer psychometric traits from raw text / LinkedIn",icon:Q},{method:"GET",path:"/v1/frameworks",desc:"List the 21 supported frameworks",icon:P},{method:"GET",path:"/v1/usage",desc:"Current API consumption + tier limits",icon:A},{method:"GET",path:"/v1/health",desc:"Liveness + version + region",icon:T}],u={cURL:`# Public sandbox key â safe to paste, capped at 60 req/hr per IP. 2curl -X POST ${c}/compatibility \\ 3 -H "X-API-Key: ${n}" \\ 4 -H "Idempotency-Key: $(uuidgen)" \\ 5 -H "Content-Type: application/json" \\ 6 -d '{ 7 "person_a": { "mbti": "ENFJ", "attachment": "secure" }, 8 "person_b": { "mbti": "INTP", "attachment": "secure" }, 9 "context": "cofounder" 10 }'`,JavaScript:`// Public sandbox key â swap for your own once you have one. 11const res = await fetch("${c}/compatibility", { 12 method: "POST", 13 headers: { 14 "X-API-Key": "${n}", 15 "Idempotency-Key": crypto.randomUUID(), 16 "Content-Type": "application/json", 17 }, 18 body: JSON.stringify({ 19 person_a: { mbti: "ENFJ", attachment: "secure" }, 20 person_b: { mbti: "INTP", attachment: "secure" }, 21 context: "cofounder", 22 }), 23}); 24const { overall_score, subscores } = await res.json(); 25console.log(overall_score); // 78`,Node:`// npm i undici (or use built-in fetch on Node 20+) 26import { randomUUID } from "node:crypto"; 27 28const r = await fetch("${c}/compatibility", { 29 method: "POST", 30 headers: { 31 "X-API-Key": process.env.EQIQS_KEY ?? "${n}", 32 "Idempotency-Key": randomUUID(), 33 "Content-Type": "application/json", 34 }, 35 body: JSON.stringify({ 36 person_a: { mbti: "ENFJ", attachment: "secure" }, 37 person_b: { mbti: "INTP", attachment: "secure" }, 38 context: "cofounder", 39 }), 40}); 41if (!r.ok) throw new Error(\`\${r.status} \${await r.text()}\`); 42console.log(await r.json());`,Python:`import os, uuid, requests 43 44r = requests.post( 45 "${c}/compatibility", 46 headers={ 47 "X-API-Key": os.environ.get("EQIQS_KEY", "${n}"), 48 "Idempotency-Key": str(uuid.uuid4()), 49 }, 50 json={ 51 "person_a": {"mbti": "ENFJ", "attachment": "secure"}, 52 "person_b": {"mbti": "INTP", "attachment": "secure"}, 53 "context": "cofounder", 54 }, 55 timeout=10, 56) 57r.raise_for_status() 58print(r.json()["overall_score"])`},J={overall_score:78,confidence:"medium",context:"cofounder",subscores:{communication:82,conflict_style:71,values_alignment:84,decision_speed:68,stress_response:79},data_sufficiency:{frameworks_used:4,minimum_recommended:3},request_id:"req_sandbox_demo"};function xe(){const[d,O]=o.useState("cURL"),[h,f]=o.useState(!1),[b,y]=o.useState(!1),[g,j]=o.useState(!1),[w,l]=o.useState(null);o.useEffect(()=>{const t="swagger-ui-css";if(!document.getElementById(t)){const s=document.createElement("link");s.id=t,s.rel="stylesheet",s.href=`https://unpkg.com/swagger-ui-dist@${C}/swagger-ui.css`,document.head.appendChild(s)}const i=()=>{const s=window;s.SwaggerUIBundle&&s.SwaggerUIBundle({url:E,dom_id:"#swagger-ui",deepLinking:!0,docExpansion:"list",tryItOutEnabled:!0})},N="swagger-ui-bundle";if(document.getElementById(N))i();else{const s=document.createElement("script");s.id=N,s.src=`https://unpkg.com/swagger-ui-dist@${C}/swagger-ui-bundle.js`,s.async=!0,s.onload=i,document.body.appendChild(s)}},[]);const R=async()=>{await I(u[d]),f(!0),setTimeout(()=>f(!1),1500)},K=async()=>{await I(n),y(!0),setTimeout(()=>y(!1),1500)},$=async()=>{j(!0),l(null),await new Promise(t=>setTimeout(t,650)),l(JSON.stringify(J,null,2)),j(!1)};return e.jsxs("div",{className:"min-h-dvh bg-background",children:[e.jsx(L,{title:"EQIQs Partner API â Reference & OpenAPI 3.1 Spec",description:"Live OpenAPI 3.1 reference for the EQIQs Compatibility API. Score, analyze, and list 21 personality frameworks. Try every endpoint in-browser.",path:"/api-docs"}),e.jsx("div",{className:"sticky top-0 safe-sticky z-30 border-b border-border bg-background/85 backdrop-blur supports-[backdrop-filter]:bg-background/70",children:e.jsxs("div",{className:"max-w-7xl mx-auto flex flex-wrap items-center justify-between gap-3 px-4 sm:px-6 py-3",children:[e.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 sm:gap-3",children:[e.jsx(a,{to:"/",className:"text-sm font-body text-muted-foreground hover:text-foreground",children:"â EQIQs"}),e.jsx("span",{className:"hidden sm:inline text-border",children:"/"}),e.jsx("h1",{className:"text-sm sm:text-base font-display font-semibold truncate",children:"Partner API Reference"}),e.jsx(v,{variant:"outline",className:"text-[10px] font-mono border-primary/40 text-primary",children:"v1 · OpenAPI 3.1"})]}),e.jsxs("div",{className:"flex w-full sm:w-auto flex-wrap items-center gap-2",children:[e.jsx(a,{to:`/for-developers${x}`,className:"flex-1 sm:flex-none min-w-0",children:e.jsxs(r,{size:"sm",className:"glow-primary w-full sm:w-auto",children:[e.jsx(p,{className:"h-3.5 w-3.5"})," ",e.jsx("span",{className:"truncate",children:"Get sandbox key â free"})]})}),e.jsx("a",{href:"/eqiqs-api.postman_collection.json",download:!0,children:e.jsxs(r,{size:"sm",variant:"outline",children:[e.jsx(q,{className:"h-3.5 w-3.5"})," Postman"]})}),e.jsx("a",{href:E,target:"_blank",rel:"noreferrer",className:"hidden sm:inline-block",children:e.jsxs(r,{size:"sm",variant:"ghost",className:"text-muted-foreground hover:text-foreground",children:["openapi.json ",e.jsx(_,{className:"h-3 w-3"})]})})]})]})}),e.jsxs("main",{children:[e.jsxs("section",{className:"relative overflow-hidden border-b border-border",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/10 via-accent/5 to-transparent"}),e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_top_right,hsl(var(--primary)/0.15),transparent_60%)]"}),e.jsxs("div",{className:"relative max-w-7xl mx-auto px-6 py-16 grid lg:grid-cols-2 gap-10 items-center",children:[e.jsxs("div",{children:[e.jsx(v,{variant:"secondary",className:"mb-4 px-3 py-1 text-xs",children:"Compatibility API"}),e.jsxs("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-display font-bold leading-tight mb-4 text-balance",children:["Score two profiles in ",e.jsx("span",{className:"gradient-text",children:"one request"}),"."]}),e.jsx("p",{className:"text-base sm:text-lg text-muted-foreground font-body mb-6 max-w-xl",children:"21 psychometric frameworks. Explainable subscores. 1â3s pair latency. Free sandbox, no credit card."}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a,{to:`/for-developers${x}`,children:e.jsxs(r,{size:"lg",className:"glow-primary",children:["Get API Key ",e.jsx(m,{className:"h-4 w-4"})]})}),e.jsx("a",{href:"#endpoints",children:e.jsxs(r,{size:"lg",variant:"outline",children:[e.jsx(z,{className:"h-4 w-4"})," Browse endpoints"]})})]}),e.jsx("div",{className:"mt-8 grid grid-cols-3 gap-4 max-w-md",children:[{k:"21",v:"frameworks"},{k:"1â3s",v:"pair latency"},{k:"500",v:"free calls/mo"}].map(t=>e.jsxs("div",{className:"rounded-lg border border-border bg-card/50 px-3 py-2 text-center",children:[e.jsx("div",{className:"text-xl font-display font-bold text-primary",children:t.k}),e.jsx("div",{className:"text-[11px] uppercase tracking-wide text-muted-foreground font-body",children:t.v})]},t.v))})]}),e.jsxs(U,{className:"overflow-hidden border-border/60 bg-card/80 backdrop-blur",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-border px-3 py-2",children:[e.jsx("div",{className:"flex items-center gap-1",children:Object.keys(u).map(t=>e.jsx("button",{onClick:()=>O(t),className:`px-3 py-1 rounded text-xs font-mono transition ${d===t?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground"}`,children:t},t))}),e.jsxs("button",{onClick:R,className:"text-xs text-muted-foreground hover:text-foreground inline-flex items-center gap-1",children:[h?e.jsx(k,{className:"h-3 w-3 text-primary"}):e.jsx(B,{className:"h-3 w-3"}),h?"Copied":"Copy"]})]}),e.jsx("pre",{className:"text-xs font-mono p-4 overflow-x-auto whitespace-pre text-foreground
58/90 max-h-[360px]",children:u[d]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-border px-3 py-2 bg-background/40",children:[e.jsxs("button",{onClick:K,className:"inline-flex items-center gap-1.5 text-[11px] font-mono text-muted-foreground hover:text-foreground",title:"Public sandbox key â safe to share, 60 req/hr per IP",children:[b?e.jsx(k,{className:"h-3 w-3 text-primary"}):e.jsx(p,{className:"h-3 w-3"}),b?"Key copied":`Copy sandbox key · ${n}`]}),e.jsxs(r,{size:"sm",variant:"outline",onClick:$,disabled:g,children:[e.jsx(S,{className:"h-3.5 w-3.5"}),g?"Runningâ¦":"Try it now"]})]}),w&&e.jsxs("div",{className:"border-t border-border bg-background/60",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5",children:[e.jsx("span",{className:"text-[11px] font-mono text-primary",children:"200 OK · application/json"}),e.jsx("button",{onClick:()=>l(null),className:"text-[11px] text-muted-foreground hover:text-foreground",children:"Clear"})]}),e.jsx("pre",{className:"text-[11px] font-mono px-4 pb-4 overflow-x-auto whitespace-pre text-foreground/90 max-h-[240px]",children:w})]})]})]})]}),e.jsx("section",{className:"border-b border-border bg-card/30",children:e.jsx("div",{className:"max-w-7xl mx-auto px-6 py-8 grid sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[{icon:p,title:"Auth",body:"X-API-Key header. Constant-time compare. SHA-256 at rest."},{icon:S,title:"Rate limits",body:"Standard RateLimit-Limit / RateLimit-Remaining / RateLimit-Reset headers. Retry-After on 429."},{icon:T,title:"Idempotency",body:"Send Idempotency-Key UUID. Cached 24h per key."},{icon:A,title:"Webhooks",body:"HMAC-SHA256 signed. score/batch/usage events."}].map(t=>e.jsxs("div",{className:"flex gap-3",children:[e.jsx(t.icon,{className:"h-5 w-5 text-primary shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-body font-semibold mb-0.5",children:t.title}),e.jsx("div",{className:"text-xs text-muted-foreground font-body",children:t.body})]})]},t.title))})}),e.jsx("section",{id:"endpoints",className:"border-b border-border",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-12",children:[e.jsxs("div",{className:"flex items-end justify-between gap-4 mb-6 flex-wrap",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-display font-bold",children:"Endpoints"}),e.jsx("p",{className:"text-sm text-muted-foreground font-body",children:"Tap any row to jump to it in the live reference below."})]}),e.jsxs("a",{href:"https://rapidapi.com/jessica-E7-U43T78/api/eqiqs-compatibility",target:"_blank",rel:"noreferrer",className:"text-sm text-primary hover:underline font-body inline-flex items-center gap-1",children:["Also on RapidAPI Hub ",e.jsx(_,{className:"h-3 w-3"})]})]}),e.jsx("div",{className:"grid gap-2",children:H.map(t=>{const i=`#/${t.path.split("/")[2]}`;return e.jsxs("a",{href:i,className:"group flex items-center gap-4 roun
58ded-lg border border-border bg-card/40 hover:bg-card hover:border-primary/40 transition px-4 py-3",children:[e.jsx("span",{className:`shrink-0 inline-flex items-center justify-center rounded px-2 py-0.5 text-[10px] font-mono font-bold ${t.method==="GET"?"bg-accent/20 text-accent":"bg-primary/20 text-primary"}`,children:t.method}),e.jsx("code",{className:"text-sm font-mono text-foreground",children:t.path}),e.jsx("span",{className:"text-xs text-muted-foreground font-body hidden md:inline flex-1",children:t.desc}),e.jsx(m,{className:"h-3.5 w-3.5 text-muted-foreground group-hover:text-primary transition"})]},t.path)})})]})}),e.jsx("section",{className:"bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-2 sm:px-6 py-6",children:e.jsx("div",{id:"swagger-ui"})})}),e.jsx("section",{className:"border-t border-border",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-6 py-16 text-center",children:[e.jsx("h3",{className:"text-2xl sm:text-3xl font-display font-bold mb-3",children:"Ship a compatibility demo today"}),e.jsx("p",{className:"text-muted-foreground font-body mb-6 max-w-xl mx-auto",children:"Sandbox keys are free and instant. Upgrade only when traffic justifies it."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsx(a,{to:`/for-developers${x}`,children:e.jsxs(r,{size:"lg",className:"glow-primary",children:["Get sandbox key ",e.jsx(m,{className:"h-4 w-4"})]})}),e.jsx(a,{to:"/api-pricing",children:e.jsx(r,{size:"lg",variant:"outline",children:"See pricing"})}),e.jsx(a,{to:"/for-developers",children:e.jsx(r,{size:"lg",variant:"ghost",children:"Developer overview"})})]})]})})]})]})}export{xe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.