1import{j as e}from"./jsx-runtime-BjG_zV1W.js";import{B as c}from"./badge-D3MNhwmG.js";import{B as t}from"./button-BGG7fLGV.js";import{C as a,a as r,b as i,d as l,c as n,e as d}from"./card-BUilLIYJ.js";import{S as o}from"./scroll-area-uHfKCgdl.js";import{T as m}from"./textarea-Bkc0cDP8.js";import{S as p}from"./server-DOCjPKIN.js";import{D as x}from"./download-Zm-Vpr9b.js";import{G as h}from"./globe-mtuw97j7.js";import{c as u}from"./utils-DVq-zWX3.js";import{C as j}from"./copy-CogiR6mN.js";import"./index-DeA8mjT8.js";import"./vendor-crypto-C45Slrpb.js";import"./index-hJ1Cy72F.js";import"./index-XjpsRpqP.js";import"./index-C9pHAyON.js";import"./index-CYB6rWUR.js";import"./index-BeV2xb5M.js";import"./index-BdQq_4o_.js";/** 2 * @license lucide-react v0.428.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const g=u("Bolt",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]),f=[{method:"GET",path:"/api/projects/:id",description:"Fetch project configuration and deployment metadata."},{method:"POST",path:"/api/projects/:id/deploy",description:"Trigger a new deployment pipeline run."},{method:"POST",path:"/api/billing/checkout",description:"Create an AI-generated Stripe checkout session."}],N=[{title:"TypeScript SDK",description:"Auto-generated client with full typing and React hooks."},{title:"Python SDK",description:"FastAPI-compatible wrapper for workflow orchestration."}];function K(){return e.jsxs("div",{className:"grid gap-6 xl:grid-cols-[1.8fr_1fr]",children:[e.jsxs("div",{className:"grid gap-6",children:[e.jsxs(a,{children:[e.jsxs(r,{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsx(i,{className:"text-lg font-semibold",children:"REST endpoint catalog"}),e.jsx(l,{children:"The copilot keeps these resources aligned with your schema and deployment targets."})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(t,{variant:"outline",size:"sm",className:"gap-2",children:[e.jsx(p,{className:"h-4 w-4"})," Sync with schema"]}),e.jsxs(t,{size:"sm",className:"gap-2",children:[e.jsx(x,{className:"h-4 w-4"})," Export OpenAPI"]})]})]}),e.jsx(n,{children:e.jsx(o,{className:"max-h-[380px] pr-4",children:e.jsx("div",{className:"space-y-3",children:f.map(s=>e.jsxs("div",{className:"rounded-lg border bg-background/60 p-4 text-sm",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(c,{variant:s.method==="POST"?"secondary":"outline",className:"rounded-full px-3 py-1 text-[11px] uppercase",children:s.method}),e.jsx("p",{className:"font-semibold",children:s.path})]}),e.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:s.description}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-muted px-2 py-1",children:[e.jsx(h,{className:"h-3.5 w-3.5"})," remix.server.ts"]}),e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-muted px-2 py-1",children:[e.jsx(g,{className:"h-3.5 w-3.5"})," AI maintained"]})]})]},s.path))})})})]}),e.jsxs(a,{children:[e.jsxs(r,{children:[e.jsx(i,{className:"text-base font-semibold",children:"Request tester"}),e.jsx(l,{children:"Run quick smoke tests without leaving the project page. Requests execute against your preview environment."})]}),e.jsxs(n,{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(c,{variant:"secondary",className:"rounded-full px-3 py-1 text-[11px] uppercase",children:"POST"}),e.jsx("code",{className:"rounded bg-muted px-3 py-1 text-xs",children:"/api/projects/:id/deploy"}),e.jsxs(t,{variant:"ghost",size:"sm",className:"gap-1",children:[e.jsx(j,{className:"h-4 w-4"})," Copy cURL"]})]}),e.jsx(m,{className:"min-h-[140px]",defaultValue:JSON.stringify({target:"staging",strategy:"blue-green",notify:["[email protected]"]},null,2)}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 text-xs text-muted-foreground",children:[e.jsx("span",{children:"Environment: Staging ⢠Auth: Bearer token injected"}),e.jsx(t,{size:"sm",className:"gap-2",children:"Execute request"})]})]}),e.jsx(d,{className:"border-t bg-muted/30 px-4 py-3 text-xs text-muted-foreground",children:"Response preview: 202 Accepted â Deployment pipeline queued."})]})]}),e.jsxs("div",{className:"grid gap-6",children:[e.jsxs(a,{className:"bg-background/60",children:[e.jsxs(r,{children:[e.jsx(i,{className:"text-base font-semibold",children:"SDK downloads"}),e.jsx(l,{children:"Auto-generated clients keep up with schema changes and versioned APIs."})]}),e.jsx(n,{className:"space-y-3",children:N.map(s=>e.jsx("div",{className:"rounded-lg border bg-background/80 p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold",children:s.title}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.description})]}),e.jsx(t,{variant:"outline",size:"sm",children:"Download"})]})},s.title))}),e.jsx(d,{className:"border-t bg-muted/30 px-4 py-3 text-xs text-muted-foreground",children:"Need GraphQL? Generate a schema and resolvers with one click."})]}),e.jsxs(a,{className:"border-dashed bg-muted/20",children:[e.jsxs(r,{children:[e.jsx(i,{className:"text-base font-semibold",children:"Webhook simulator"}),e.jsx(l,{children:"Validate payloads before pushing them to your downstream services."})]}),e.jsxs(n,{className:"space-y-2 text-xs text-muted-foreground",children:[e.jsx("p",{children:"⢠Replay the latest checkout session events."}),e.jsx("p",{children:"⢠Inspect headers and signature verification results."}),e.jsx("p",{children:"⢠Share replay URLs with support teammates."})]})]})]})]})}export{K as ApiSection};
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.