{"openapi":"3.1.0","info":{"title":"Half Solo","version":"0.1.0","description":"Public API for Half Solo, a one-capability matching product for solopreneurs. Agents may draft profiles and agreements. Only humans may sign. Agreements are templates, not legal advice."},"servers":[{"url":"/"}],"tags":[{"name":"Catalog"},{"name":"Profiles"},{"name":"Agreements"}],"paths":{"/api/v1/capabilities":{"get":{"tags":["Catalog"],"summary":"List the three capabilities","operationId":"listCapabilities","responses":{"200":{"description":"Product, Sales, and Growth"}}}},"/api/v1/deal-types":{"get":{"tags":["Catalog"],"summary":"List deal types","operationId":"listDealTypes","responses":{"200":{"description":"Scoped, revenue share, cofounder, and advisor"}}}},"/api/v1/agreements/schema":{"get":{"tags":["Agreements"],"summary":"Agreement clause schema","operationId":"agreementSchema","responses":{"200":{"description":"Clause ids, plain-English lines, and the disclaimer"}}}},"/api/v1/profiles":{"get":{"tags":["Profiles"],"summary":"List example profiles and API drafts","operationId":"listProfiles","responses":{"200":{"description":"Profiles. Seed rows are examples."}}},"post":{"tags":["Profiles"],"summary":"Create a draft profile","operationId":"createProfile","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDraft"}}}},"responses":{"201":{"description":"Draft profile. Not a signed-in human session."},"400":{"description":"Invalid profile"}}}},"/api/v1/agreements":{"post":{"tags":["Agreements"],"summary":"Draft an agreement from two profiles and a deal","description":"Agents may call this. The saved record has no signatures. A human signs in the product.","operationId":"draftAgreement","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementDraft"}}}},"responses":{"201":{"description":"Unsigned draft"},"400":{"description":"Invalid draft"}}}},"/api/v1/agreements/sign":{"post":{"tags":["Agreements"],"summary":"Human signature step","description":"Rejects X-HalfSolo-Actor: agent. Requires a typed name and accepted: true. Pre-launch beta signer. Does not store the signature on the server draft.","operationId":"signAgreement","parameters":[{"name":"X-HalfSolo-Actor","in":"header","required":false,"schema":{"type":"string","enum":["human","agent"]}}],"responses":{"200":{"description":"Agreement copy with the human signature attached"},"403":{"description":"Agents cannot sign"}}}},"/api/v1/signatures/stamp":{"post":{"tags":["Agreements"],"summary":"Issue a human signature stamp (time and IP)","operationId":"stampSignature","responses":{"200":{"description":"Stamp from the built-in beta signer"},"403":{"description":"Agents cannot sign"}}}},"/api/v1/agreements/pdf":{"post":{"tags":["Agreements"],"summary":"Render an agreement PDF","operationId":"renderPdf","responses":{"200":{"description":"application/pdf"}}}}},"components":{"schemas":{"ProfileDraft":{"type":"object","required":["name","capability","pitch","ventureName","ventureKind","stage","weeklyHours","dealTypes","timezone"],"properties":{"name":{"type":"string"},"capability":{"type":"string","enum":["product","sales","growth"]},"pitch":{"type":"string"},"ventureName":{"type":"string"},"ventureKind":{"type":"string","enum":["idea","existing"]},"stage":{"type":"string","enum":["exploring","building","launched","revenue"]},"weeklyHours":{"type":"number","enum":[5,10,20,40]},"dealTypes":{"type":"array","items":{"type":"string","enum":["scoped","revenue","cofounder","advisor"]}},"timezone":{"type":"string"},"email":{"type":"string"},"xHandle":{"type":"string"},"website":{"type":"string"}}},"AgreementDraft":{"type":"object","required":["you","them","dealType"],"properties":{"you":{"$ref":"#/components/schemas/ProfileDraft"},"them":{"$ref":"#/components/schemas/ProfileDraft"},"dealType":{"type":"string","enum":["scoped","revenue","cofounder","advisor"]},"existingBusiness":{"type":"boolean"},"ownerParty":{"type":"string","enum":["you","them"]}}}}}}