{"apiVersion":"1","data":{"authentication":{"administrativeBoundary":"Owner-scoped SAM crawl control with independent ingestion:read/write scopes; no credential or worker administration","administrativeHttpTools":true,"authentication":"Authorization: Bearer <token>","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"grantSchema":{"$defs":{"Scope":{"enum":["workflows:read","workflows:write","watches:read","watches:write","briefs:read","briefs:write","profiles:read","profiles:write","searches:read","searches:write","ingestion:read","ingestion:write","alerts:read","alerts:write"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expiresAt":{"format":"date-time","type":"string"},"principalId":{"type":"string"},"scopes":{"items":{"$ref":"#/$defs/Scope"},"type":"array"}},"required":["principalId","scopes","expiresAt"],"title":"Grant","type":"object"},"maximumLifetimeDays":365,"provisioning":"Local administration CLI with DATABASE_URL; no HTTP issuance","publicSourceReads":"anonymous","tokenStorage":"SHA-256 domain-separated digest only","version":"scoped-identity-v1"},"invocationSchema":{"$defs":{"AddSource":{"additionalProperties":false,"properties":{"profileId":{"type":"string"},"requestKey":{"type":"string"},"source":{"$ref":"#/$defs/SourceInput"}},"required":["requestKey","profileId","source"],"type":"object"},"AlertDraft":{"additionalProperties":false,"properties":{"savedSearchId":{"type":"string"},"webhookUrl":{"description":"HTTPS destination; every resolved address must be public. No credentials or fragment.","type":"string"}},"required":["savedSearchId","webhookUrl"],"type":"object"},"ArtifactInput":{"additionalProperties":false,"properties":{"id":{"type":"string"},"maxBytes":{"default":4096,"format":"uint","maximum":16384,"minimum":1,"type":"integer"},"ordinal":{"format":"int32","type":"integer"},"startByte":{"default":0,"format":"uint","minimum":0,"type":"integer"}},"required":["id","ordinal"],"type":"object"},"BoundedCrawl":{"additionalProperties":false,"properties":{"maxPages":{"default":10,"format":"uint32","maximum":100,"minimum":1,"type":"integer"},"naics":{"type":["string","null"]},"noticeId":{"type":["string","null"]},"pageSize":{"default":100,"format":"uint32","maximum":1000,"minimum":1,"type":"integer"},"postedFrom":{"format":"date","type":"string"},"postedTo":{"format":"date","type":"string"},"setAside":{"type":["string","null"]},"state":{"type":["string","null"]},"title":{"type":["string","null"]}},"required":["postedFrom","postedTo"],"type":"object"},"Create":{"additionalProperties":false,"properties":{"requestKey":{"type":"string"},"workflow":{"$ref":"#/$defs/Input"}},"required":["requestKey","workflow"],"type":"object"},"Create2":{"additionalProperties":false,"properties":{"alert":{"$ref":"#/$defs/AlertDraft"},"requestKey":{"type":"string"}},"required":["requestKey","alert"],"type":"object"},"Create3":{"additionalProperties":false,"properties":{"requestKey":{"type":"string"},"task":{"$ref":"#/$defs/Task"}},"required":["requestKey","task"],"type":"object"},"Create4":{"additionalProperties":false,"properties":{"noticeIds":{"items":{"type":"string"},"maxItems":5,"minItems":2,"type":"array"},"requestKey":{"type":"string"},"title":{"type":"string"}},"required":["requestKey","title","noticeIds"],"type":"object"},"Create5":{"additionalProperties":false,"properties":{"requestKey":{"type":"string"},"selection":{"$ref":"#/$defs/Input2"}},"required":["requestKey","selection"],"type":"object"},"CreateBrief":{"additionalProperties":false,"properties":{"noticeIds":{"items":{"type":"string"},"type":"array"},"requestKey":{"type":"string"},"title":{"type":"string"}},"required":["requestKey","title","noticeIds"],"type":"object"},"CreateProfile":{"additionalProperties":false,"properties":{"profile":{"$ref":"#/$defs/ProfileDraft"},"requestKey":{"type":"string"},"source":{"anyOf":[{"$ref":"#/$defs/SourceInput"},{"type":"null"}],"description":"Optional immutable creation source; caller attribution remains unverified."}},"required":["requestKey","profile"],"type":"object"},"CreateSearch":{"additionalProperties":false,"properties":{"requestKey":{"type":"string"},"search":{"$ref":"#/$defs/SearchDraft"}},"required":["requestKey","search"],"type":"object"},"CreateWatch":{"additionalProperties":false,"properties":{"note":{"type":["string","null"]},"noticeId":{"type":"string"},"requestKey":{"type":"string"}},"required":["requestKey","noticeId"],"type":"object"},"DeliveryListing":{"additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"id":{"type":"string"},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"required":["id"],"type":"object"},"EmptyInput":{"additionalProperties":false,"type":"object"},"Entries":{"additionalProperties":false,"properties":{"afterOrdinal":{"format":"int32","type":["integer","null"]},"id":{"type":"string"},"limit":{"default":10,"format":"uint","maximum":10,"minimum":1,"type":"integer"}},"required":["id"],"type":"object"},"Filters":{"additionalProperties":false,"properties":{"active":{"default":null,"type":["boolean","null"]},"agencyIds":{"default":[],"items":{"type":"string"},"type":"array"},"countries":{"default":[],"items":{"type":"string"},"type":"array"},"deadlineFrom":{"default":null,"format":"date-time","type":["string","null"]},"deadlineTo":{"default":null,"format":"date-time","type":["string","null"]},"minimumDaysToDeadline":{"default":null,"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"postedFrom":{"default":null,"format":"date","type":["string","null"]},"postedTo":{"default":null,"format":"date","type":["string","null"]},"pscCodes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"type":"object"},"Input":{"additionalProperties":false,"properties":{"maxToolCalls":{"default":31,"format":"uint","maximum":31,"minimum":1,"type":"integer"},"maxToolOutputBytes":{"default":524288,"format":"uint","maximum":524288,"minimum":1024,"type":"integer"},"query":{"$ref":"#/$defs/Query"},"runtimeMilliseconds":{"default":20000,"format":"uint64","maximum":20000,"minimum":100,"type":"integer"}},"required":["query"],"type":"object"},"Input2":{"additionalProperties":false,"properties":{"name":{"type":["string","null"]},"sendToModel":{"description":"Must be true. Explicitly authorize sending this source to the operator-configured model provider.","type":"boolean"},"text":{"description":"Nonempty text, at most 8192 UTF-8 bytes; blocks must fit 2048 bytes, maximum six.","type":"string"}},"required":["text","sendToModel"],"type":"object"},"Inspection":{"additionalProperties":false,"properties":{"afterEventId":{"format":"int64","type":["integer","null"]},"id":{"type":"string"},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"required":["id"],"type":"object"},"Listing":{"additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"type":"object"},"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"Query":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"limit":{"default":3,"format":"uint","maximum":5,"minimum":1,"type":"integer"},"text":{"type":"string"},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"required":["text"],"type":"object"},"QueryEmbedding":{"additionalProperties":false,"properties":{"minimumSimilarity":{"default":0.2,"format":"double","type":"number"},"model":{"type":"string"},"spaceId":{"type":"string"},"values":{"items":{"format":"double","type":"number"},"type":"array"}},"required":["spaceId","model","values"],"type":"object"},"Request":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"cursor":{"type":["string","null"]},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"filters":{"$ref":"#/$defs/Filters","default":{"active":null,"agencyIds":[],"countries":[],"deadlineFrom":null,"deadlineTo":null,"minimumDaysToDeadline":null,"naicsPrefixes":[],"noticeTypes":[],"postedFrom":null,"postedTo":null,"pscCodes":[],"setAsides":[],"states":[]}},"limit":{"default":25,"format":"uint","minimum":0,"type":"integer"},"q":{"type":["string","null"]},"queryEmbedding":{"anyOf":[{"$ref":"#/$defs/QueryEmbedding"},{"type":"null"}]},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"type":"object"},"ResourceInput":{"additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"type":"object"},"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"},"SearchDraft":{"additionalProperties":false,"properties":{"name":{"type":"string"},"query":{"$ref":"#/$defs/Request"}},"required":["name","query"],"type":"object"},"Selection":{"additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"type":"object"},"SourceInput":{"additionalProperties":false,"description":"Caller-submitted source retained only by an explicit profile creation.","properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Optional retrieval attestation from extract_supplier_website for exactly this text."},"draftName":{"type":"string"},"maxKeywords":{"default":12,"format":"uint","maximum":20,"minimum":1,"type":"integer"},"reportedObservedAt":{"format":"date-time","type":["string","null"]},"sourceSha256":{"description":"Caller-reported downloaded-byte SHA-256, never verified by this save operation.","type":["string","null"]},"sourceUrl":{"description":"Optional caller-attributed website URL; saving never retrieves this URL.","type":["string","null"]},"text":{"description":"At most 32768 UTF-8 bytes. Rust regenerates literal citations from this text.","type":"string"}},"required":["text","draftName"],"type":"object"},"SourceListing":{"additionalProperties":false,"properties":{"afterOrdinal":{"format":"uint32","minimum":0,"type":["integer","null"]},"id":{"type":"string"},"limit":{"default":20,"format":"uint32","maximum":50,"minimum":1,"type":"integer"}},"required":["id"],"type":"object"},"SourceSelection":{"additionalProperties":false,"properties":{"id":{"type":"string"},"ordinal":{"format":"uint32","maximum":50,"minimum":1,"type":"integer"}},"required":["id","ordinal"],"type":"object"},"Start":{"additionalProperties":false,"properties":{"crawl":{"$ref":"#/$defs/BoundedCrawl"},"requestKey":{"type":"string"}},"required":["requestKey","crawl"],"type":"object"},"StepInput":{"additionalProperties":false,"properties":{"id":{"type":"string"},"ordinal":{"format":"uint32","maximum":6,"minimum":1,"type":"integer"}},"required":["id","ordinal"],"type":"object"},"Task":{"additionalProperties":false,"properties":{"maxSteps":{"default":4,"description":"Planning steps, 1–6. Each step is one provider call and at most one public read tool call.","format":"uint32","maximum":6,"minimum":1,"type":"integer"},"question":{"description":"Question for the planner, 1–2000 UTF-8 bytes. Untrusted; grants no privileges.","type":"string"},"sendToModel":{"description":"Must be true. Authorizes sending the question and public source tool results to the operator-configured provider.","type":"boolean"}},"required":["question","sendToModel"],"type":"object"},"TextInput":{"additionalProperties":false,"properties":{"maxKeywords":{"default":12,"format":"uint","maximum":20,"minimum":1,"type":"integer"},"name":{"type":["string","null"]},"text":{"description":"Nonempty supplier source text, at most 32768 UTF-8 bytes; inert unverified data.","type":"string"}},"required":["text"],"type":"object"},"UnknownPolicy":{"enum":["exclude","include"],"type":"string"},"Update":{"additionalProperties":false,"properties":{"enabled":{"description":"Disabling cancels undelivered notifications. Re-enabling starts from the current time.","type":"boolean"},"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"},"webhookUrl":{"type":["string","null"]}},"required":["id","expectedVersion","enabled"],"type":"object"},"UpdateProfile":{"additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"},"profile":{"$ref":"#/$defs/ProfileDraft"}},"required":["id","expectedVersion","profile"],"type":"object"},"UpdateSearch":{"additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"},"search":{"$ref":"#/$defs/SearchDraft"}},"required":["id","expectedVersion","search"],"type":"object"},"UpdateWatch":{"additionalProperties":false,"properties":{"acknowledgeCurrentRevision":{"type":"boolean"},"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"},"note":{"type":["string","null"]}},"required":["id","expectedVersion","acknowledgeCurrentRevision"],"type":"object"},"VersionInput":{"additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"type":"object"},"VersionedId":{"additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"type":"object"},"WebsiteInput":{"additionalProperties":false,"properties":{"followLinks":{"description":"Follow up to this many same-host allowlisted links from the first page (document order).","format":"uint32","maximum":3,"minimum":0,"type":"integer"},"maxKeywords":{"default":12,"format":"uint","maximum":20,"minimum":1,"type":"integer"},"name":{"type":["string","null"]},"url":{"description":"Operator-allowlisted HTTPS page, max 2048 bytes, no credentials/query/fragment.","type":"string"}},"required":["url"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Create"},"name":{"const":"create_workflow_run","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"execute_workflow_run","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"advance_workflow_run","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"cancel_workflow_run","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"resume_workflow_run","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_workflow_run","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Listing"},"name":{"const":"list_workflow_runs","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_workflow_report","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Entries"},"name":{"const":"list_workflow_checkpoints","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Entries"},"name":{"const":"list_workflow_traces","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Entries"},"name":{"const":"list_workflow_artifacts","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ArtifactInput"},"name":{"const":"get_workflow_artifact","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/EmptyInput"},"name":{"const":"describe_credential","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Create2"},"name":{"const":"create_alert","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_alert","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Listing"},"name":{"const":"list_alerts","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Update"},"name":{"const":"update_alert","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionedId"},"name":{"const":"delete_alert","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_alert_signing_secret","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/DeliveryListing"},"name":{"const":"list_alert_deliveries","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Create3"},"name":{"const":"create_agent_run","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"advance_agent_run","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_agent_run","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/StepInput"},"name":{"const":"get_agent_run_step","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Listing"},"name":{"const":"list_agent_runs","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/CreateWatch"},"name":{"const":"create_watch","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_watch","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Listing"},"name":{"const":"list_watches","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/UpdateWatch"},"name":{"const":"update_watch","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"delete_watch","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/CreateBrief"},"name":{"const":"create_brief","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Create4"},"name":{"const":"create_comparison_brief","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_brief","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Listing"},"name":{"const":"list_briefs","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"delete_brief","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Create5"},"name":{"const":"create_supplier_model_attempt","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"execute_supplier_model_attempt","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_supplier_model_attempt","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Listing"},"name":{"const":"list_supplier_model_attempts","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Input2"},"name":{"const":"select_supplier_capabilities","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/TextInput"},"name":{"const":"extract_supplier_text","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/WebsiteInput"},"name":{"const":"extract_supplier_website","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/CreateProfile"},"name":{"const":"create_profile","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_profile","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_profile_provenance","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/AddSource"},"name":{"const":"add_profile_source","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/SourceListing"},"name":{"const":"list_profile_sources","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/SourceSelection"},"name":{"const":"get_profile_source","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Listing"},"name":{"const":"list_profiles","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/UpdateProfile"},"name":{"const":"update_profile","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"delete_profile","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/CreateSearch"},"name":{"const":"create_saved_search","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/ResourceInput"},"name":{"const":"get_saved_search","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Listing"},"name":{"const":"list_saved_searches","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/UpdateSearch"},"name":{"const":"update_saved_search","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/VersionInput"},"name":{"const":"delete_saved_search","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Start"},"name":{"const":"start_ingestion","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Inspection"},"name":{"const":"get_ingestion_job","type":"string"}},"required":["name","arguments"],"type":"object"},{"additionalProperties":false,"properties":{"arguments":{"$ref":"#/$defs/Selection"},"name":{"const":"cancel_ingestion_job","type":"string"}},"required":["name","arguments"],"type":"object"}],"title":"Invocation"},"openapiPath":"/api/v1/openapi.json","policies":{"agentRuns":"Owner-scoped model-planned read-only investigations; whole-run UTC-day reservation at creation; one committed step fence per advance; closed public read-tool allowlist; answers published only with exact retrieved evidence citations; interrupted steps stay spent and never resend","alerts":"Owner saved-search alerts; checkpointed evaluations by the operator alert worker enqueue deduplicated notifications; HTTPS public destinations pinned to checked addresses; no redirects; leased at-least-once delivery with HMAC signatures and exponential retry; delivered only after 2xx","audit":"Successful mutations commit with append-only audit; no credential/profile/query content in audit","briefs":"Immutable source snapshots (up to 20 notices) and source-comparison-brief-v1 workflows (2–5 notices); cited metadata, explicit unknowns and historical revision pins; no inferred eligibility or document summaries","createRetries":"Durable owner-scoped requestKey receipts; same key with changed input conflicts","credentials":"Revocable and expiring; local CLI provisioning only","ingestion":"Caller-owned ingestSam jobs only; 31-day date span, max 100 pages, two active per owner and ten active crawls globally; worker execution is separately configured","legacySearchImports":"Preserved, not implicitly converted or reassigned","maximumCreateReceiptsPerOwner":1000,"owner":"Authenticated principal; never accepted from arguments","resourceLimitPerOwnerPerType":100,"savedSearches":"Inert versioned lexical/source query definitions; no webhooks, embedding coordinates, execution clock or cursor","versioning":"Update and delete require expectedVersion","watches":"Revision baseline tracking only; no automatic monitoring or notifications","workflows":"Owner-scoped plans; explicit single-admission stage advancement or atomic execution; cancellation/resume between stages retain pinned source results and committed budget consumption; aborted stages roll back"},"toolVersion":"owned-user-tools-v1","tools":[{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Persist an owner-scoped bounded investigation definition and validated plan checkpoint. Requires requestKey. Execution is a separate explicit authorized call.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"Input":{"additionalProperties":false,"properties":{"maxToolCalls":{"default":31,"format":"uint","maximum":31,"minimum":1,"type":"integer"},"maxToolOutputBytes":{"default":524288,"format":"uint","maximum":524288,"minimum":1024,"type":"integer"},"query":{"$ref":"#/$defs/Query"},"runtimeMilliseconds":{"default":20000,"format":"uint64","maximum":20000,"minimum":100,"type":"integer"}},"required":["query"],"type":"object"},"Query":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"limit":{"default":3,"format":"uint","maximum":5,"minimum":1,"type":"integer"},"text":{"type":"string"},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"required":["text"],"type":"object"},"UnknownPolicy":{"enum":["exclude","include"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"requestKey":{"type":"string"},"workflow":{"$ref":"#/$defs/Input"}},"required":["requestKey","workflow"],"title":"Create","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"create_workflow_run","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Run":{"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"elapsedMilliseconds":{"format":"int64","type":"integer"},"id":{"type":"string"},"nextStep":{"anyOf":[{"$ref":"#/$defs/Step"},{"type":"null"}]},"ownerId":{"type":"string"},"planExecutable":{"type":"boolean"},"planHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"state":{"$ref":"#/$defs/State"},"toolCalls":{"format":"int32","type":"integer"},"toolOutputBytes":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","planHash","planExecutable","toolCalls","toolOutputBytes","elapsedMilliseconds","createdAt","updatedAt"],"type":"object"},"State":{"enum":["queued","running","cancelled","completed","needsInput","partial"],"type":"string"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Run"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Execute one queued owner workflow and atomically persist terminal report, six stage records, full accepted tool outputs, typed traces and source references. expectedVersion required; terminal retries return the stored header. No background worker, notifications or model calls.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"execute_workflow_run","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Run":{"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"elapsedMilliseconds":{"format":"int64","type":"integer"},"id":{"type":"string"},"nextStep":{"anyOf":[{"$ref":"#/$defs/Step"},{"type":"null"}]},"ownerId":{"type":"string"},"planExecutable":{"type":"boolean"},"planHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"state":{"$ref":"#/$defs/State"},"toolCalls":{"format":"int32","type":"integer"},"toolOutputBytes":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","planHash","planExecutable","toolCalls","toolOutputBytes","elapsedMilliseconds","createdAt","updatedAt"],"type":"object"},"State":{"enum":["queued","running","cancelled","completed","needsInput","partial"],"type":"string"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Run"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Commit the next stage of an owner workflow. Frozen retrieval and consumed call, byte and runtime budgets survive stage-boundary cancellation/resume. expectedVersion required; retry of the immediately preceding advancement returns its stored header. No worker or model calls.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"advance_workflow_run","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Run":{"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"elapsedMilliseconds":{"format":"int64","type":"integer"},"id":{"type":"string"},"nextStep":{"anyOf":[{"$ref":"#/$defs/Step"},{"type":"null"}]},"ownerId":{"type":"string"},"planExecutable":{"type":"boolean"},"planHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"state":{"$ref":"#/$defs/State"},"toolCalls":{"format":"int32","type":"integer"},"toolOutputBytes":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","planHash","planExecutable","toolCalls","toolOutputBytes","elapsedMilliseconds","createdAt","updatedAt"],"type":"object"},"State":{"enum":["queued","running","cancelled","completed","needsInput","partial"],"type":"string"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Run"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Cancel a queued or running owner workflow between committed stages. Serializes with an active stage; does not interrupt it. expectedVersion required; preserves checkpoints and budgets.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"cancel_workflow_run","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Run":{"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"elapsedMilliseconds":{"format":"int64","type":"integer"},"id":{"type":"string"},"nextStep":{"anyOf":[{"$ref":"#/$defs/Step"},{"type":"null"}]},"ownerId":{"type":"string"},"planExecutable":{"type":"boolean"},"planHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"state":{"$ref":"#/$defs/State"},"toolCalls":{"format":"int32","type":"integer"},"toolOutputBytes":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","planHash","planExecutable","toolCalls","toolOutputBytes","elapsedMilliseconds","createdAt","updatedAt"],"type":"object"},"State":{"enum":["queued","running","cancelled","completed","needsInput","partial"],"type":"string"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Run"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Resume a cancelled owner workflow at its next stage with the same definition, pinned sources and remaining budgets. expectedVersion required; terminal reports cannot be resumed.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"resume_workflow_run","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Run":{"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"elapsedMilliseconds":{"format":"int64","type":"integer"},"id":{"type":"string"},"nextStep":{"anyOf":[{"$ref":"#/$defs/Step"},{"type":"null"}]},"ownerId":{"type":"string"},"planExecutable":{"type":"boolean"},"planHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"state":{"$ref":"#/$defs/State"},"toolCalls":{"format":"int32","type":"integer"},"toolOutputBytes":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","planHash","planExecutable","toolCalls","toolOutputBytes","elapsedMilliseconds","createdAt","updatedAt"],"type":"object"},"State":{"enum":["queued","running","cancelled","completed","needsInput","partial"],"type":"string"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Run"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_workflow_run","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Run":{"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"elapsedMilliseconds":{"format":"int64","type":"integer"},"id":{"type":"string"},"nextStep":{"anyOf":[{"$ref":"#/$defs/Step"},{"type":"null"}]},"ownerId":{"type":"string"},"planExecutable":{"type":"boolean"},"planHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"state":{"$ref":"#/$defs/State"},"toolCalls":{"format":"int32","type":"integer"},"toolOutputBytes":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","planHash","planExecutable","toolCalls","toolOutputBytes","elapsedMilliseconds","createdAt","updatedAt"],"type":"object"},"State":{"enum":["queued","running","cancelled","completed","needsInput","partial"],"type":"string"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Run"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"title":"Listing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_workflow_runs","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Page":{"properties":{"items":{"items":{"$ref":"#/$defs/Run"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"},"Run":{"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"elapsedMilliseconds":{"format":"int64","type":"integer"},"id":{"type":"string"},"nextStep":{"anyOf":[{"$ref":"#/$defs/Step"},{"type":"null"}]},"ownerId":{"type":"string"},"planExecutable":{"type":"boolean"},"planHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"state":{"$ref":"#/$defs/State"},"toolCalls":{"format":"int32","type":"integer"},"toolOutputBytes":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","planHash","planExecutable","toolCalls","toolOutputBytes","elapsedMilliseconds","createdAt","updatedAt"],"type":"object"},"State":{"enum":["queued","running","cancelled","completed","needsInput","partial"],"type":"string"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Page"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_workflow_report","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"DocumentMetadata":{"properties":{"contentHash":{"type":["string","null"]},"extractionQuality":true,"extractionStatus":{"type":"string"},"extractionVersion":{"type":["string","null"]},"id":{"type":"string"},"mediaType":{"type":["string","null"]},"retrievalStatus":{"type":"string"},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["id","revisionId","sourceUrl","retrievalStatus","extractionStatus"],"type":"object"},"ErrorCode":{"enum":["invalidInput","notFound","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"},"EvidenceRecord":{"properties":{"documentContentHash":{"type":["string","null"]},"documentId":{"type":["string","null"]},"id":{"type":"string"},"locator":true,"matchesCurrentDocument":{"type":["boolean","null"]},"quote":{"type":["string","null"]},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["id","revisionId","sourceUrl","locator"],"type":"object"},"Filters":{"additionalProperties":false,"properties":{"active":{"default":null,"type":["boolean","null"]},"agencyIds":{"default":[],"items":{"type":"string"},"type":"array"},"countries":{"default":[],"items":{"type":"string"},"type":"array"},"deadlineFrom":{"default":null,"format":"date-time","type":["string","null"]},"deadlineTo":{"default":null,"format":"date-time","type":["string","null"]},"minimumDaysToDeadline":{"default":null,"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"postedFrom":{"default":null,"format":"date","type":["string","null"]},"postedTo":{"default":null,"format":"date","type":["string","null"]},"pscCodes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"type":"object"},"GenerationSource":{"enum":["llm","extractive"],"type":"string"},"Input":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"limit":{"default":25,"format":"uint","minimum":0,"type":"integer"},"text":{"type":"string"},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"required":["text"],"type":"object"},"Interpretation":{"additionalProperties":false,"properties":{"field":{"type":"string"},"meaning":{"type":"string"},"sourceText":{"type":"string"}},"required":["field","sourceText","meaning"],"type":"object"},"Item":{"properties":{"documents":{"anyOf":[{"$ref":"#/$defs/ListPage"},{"type":"null"}]},"evidence":{"items":{"$ref":"#/$defs/EvidenceRecord"},"type":"array"},"groundedSummary":{"anyOf":[{"$ref":"#/$defs/Summary"},{"type":"null"}]},"issues":{"items":{"type":"string"},"type":"array"},"result":{"$ref":"#/$defs/SearchResult"},"screeningOutcomes":{"items":{"$ref":"#/$defs/RuleOutcome"},"type":"array"},"sourceSynopsis":{"description":"Canonical source fields from the frozen search result; not model prose.","type":"string"},"summaryStatus":{"type":"string"},"uninspectedEvidenceIds":{"items":{"type":"string"},"type":"array"},"unknownRuleIds":{"items":{"type":"string"},"type":"array"}},"required":["result","evidence","summaryStatus","screeningOutcomes","unknownRuleIds","uninspectedEvidenceIds","sourceSynopsis","issues"],"type":"object"},"ListPage":{"properties":{"items":{"items":{"$ref":"#/$defs/DocumentMetadata"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]},"revisionId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"},"Money":{"additionalProperties":false,"properties":{"amount":{"pattern":"^-?[0-9]+(\\.[0-9]+)?$","type":"string"},"currency":{"type":"string"}},"required":["amount","currency"],"type":"object"},"Opportunity":{"additionalProperties":false,"properties":{"active":{"type":["boolean","null"]},"agencyId":{"type":["string","null"]},"currentRevisionId":{"type":"string"},"firstSeenAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"lastSeenAt":{"format":"date-time","type":"string"},"naics":{"type":["string","null"]},"noticeId":{"type":"string"},"noticeType":{"type":["string","null"]},"officeId":{"type":["string","null"]},"placeOfPerformance":{"anyOf":[{"$ref":"#/$defs/Place"},{"type":"null"}]},"postedDate":{"anyOf":[{"$ref":"#/$defs/SourceDate"},{"type":"null"}]},"psc":{"type":["string","null"]},"responseDeadline":{"anyOf":[{"$ref":"#/$defs/SourceDate"},{"type":"null"}]},"setAside":{"type":["string","null"]},"solicitationNumber":{"type":["string","null"]},"source":{"$ref":"#/$defs/Source"},"title":{"type":["string","null"]},"uiLink":{"type":["string","null"]}},"required":["id","noticeId","currentRevisionId","source","firstSeenAt","lastSeenAt"],"type":"object"},"Place":{"additionalProperties":false,"properties":{"city":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"stateCode":{"type":["string","null"]}},"type":"object"},"Plan":{"additionalProperties":false,"properties":{"assumptions":{"items":{"type":"string"},"type":"array"},"executable":{"type":"boolean"},"interpretations":{"items":{"$ref":"#/$defs/Interpretation"},"type":"array"},"issues":{"items":{"type":"string"},"type":"array"},"normalizedInput":{"$ref":"#/$defs/Input"},"planHash":{"type":"string"},"plannerVersion":{"type":"string"},"request":{"anyOf":[{"$ref":"#/$defs/Request"},{"type":"null"}]}},"required":["plannerVersion","normalizedInput","interpretations","assumptions","issues","executable","planHash"],"type":"object"},"QueryEmbedding":{"additionalProperties":false,"properties":{"minimumSimilarity":{"default":0.2,"format":"double","type":"number"},"model":{"type":"string"},"spaceId":{"type":"string"},"values":{"items":{"format":"double","type":"number"},"type":"array"}},"required":["spaceId","model","values"],"type":"object"},"Report":{"properties":{"candidateTotal":{"format":"uint","minimum":0,"type":["integer","null"]},"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"issues":{"items":{"type":"string"},"type":"array"},"items":{"items":{"$ref":"#/$defs/Item"},"type":"array"},"modelCostUsd":{"format":"uint","minimum":0,"type":"integer"},"modelTokens":{"format":"uint","minimum":0,"type":"integer"},"moreResultsAvailable":{"type":"boolean"},"plan":{"$ref":"#/$defs/Plan"},"searchSnapshotId":{"type":["string","null"]},"stages":{"items":{"$ref":"#/$defs/Stage"},"type":"array"},"startedAt":{"format":"date-time","type":"string"},"status":{"$ref":"#/$defs/Status"},"toolOutputBytes":{"format":"uint","minimum":0,"type":"integer"},"trace":{"items":{"$ref":"#/$defs/Trace"},"type":"array"},"workflowVersion":{"type":"string"}},"required":["workflowVersion","status","startedAt","plan","stages","items","moreResultsAvailable","trace","issues","elapsedMilliseconds","toolOutputBytes","modelTokens","modelCostUsd"],"type":"object"},"Request":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"cursor":{"type":["string","null"]},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"filters":{"$ref":"#/$defs/Filters","default":{"active":null,"agencyIds":[],"countries":[],"deadlineFrom":null,"deadlineTo":null,"minimumDaysToDeadline":null,"naicsPrefixes":[],"noticeTypes":[],"postedFrom":null,"postedTo":null,"pscCodes":[],"setAsides":[],"states":[]}},"limit":{"default":25,"format":"uint","minimum":0,"type":"integer"},"q":{"type":["string","null"]},"queryEmbedding":{"anyOf":[{"$ref":"#/$defs/QueryEmbedding"},{"type":"null"}]},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"type":"object"},"RuleOutcome":{"additionalProperties":false,"properties":{"evaluatedValue":true,"evidenceIds":{"items":{"type":"string"},"type":"array"},"explanation":{"type":"string"},"ruleId":{"type":"string"},"ruleVersion":{"type":"string"},"status":{"$ref":"#/$defs/RuleStatus"}},"required":["ruleId","ruleVersion","status","explanation","evidenceIds"],"type":"object"},"RuleStatus":{"enum":["satisfied","unsatisfied","unknown"],"type":"string"},"SearchResult":{"additionalProperties":false,"properties":{"evidenceIds":{"items":{"type":"string"},"type":"array"},"opportunity":{"$ref":"#/$defs/Opportunity"},"reasons":{"items":{"type":"string"},"type":"array"},"ruleOutcomes":{"items":{"$ref":"#/$defs/RuleOutcome"},"type":"array"},"score":{"format":"double","type":"number"},"scoreComponents":{"additionalProperties":{"format":"double","type":"number"},"type":"object"},"summary":{"anyOf":[{"$ref":"#/$defs/Summary"},{"type":"null"}]}},"required":["opportunity","score","scoreComponents","reasons","ruleOutcomes","evidenceIds"],"type":"object"},"Source":{"additionalProperties":false,"properties":{"retrievedAt":{"format":"date-time","type":"string"},"system":{"type":"string"},"url":{"type":"string"}},"required":["system","url","retrievedAt"],"type":"object"},"SourceDate":{"description":"Preserve dates with unknown timezone rather than inventing a UTC instant.","oneOf":[{"properties":{"precision":{"const":"instant","type":"string"},"value":{"format":"date-time","type":"string"}},"required":["precision","value"],"type":"object"},{"properties":{"precision":{"const":"date","type":"string"},"value":{"format":"date","type":"string"}},"required":["precision","value"],"type":"object"},{"properties":{"precision":{"const":"unresolved","type":"string"},"value":{"type":"string"}},"required":["precision","value"],"type":"object"}]},"Stage":{"properties":{"completed":{"type":"boolean"},"detail":{"type":"string"},"step":{"$ref":"#/$defs/Step"}},"required":["step","completed","detail"],"type":"object"},"Status":{"enum":["completed","needsInput","partial"],"type":"string"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"},"StoredReport":{"properties":{"report":{"anyOf":[{"$ref":"#/$defs/Report"},{"type":"null"}]},"runId":{"type":"string"}},"required":["runId"],"type":"object"},"Summary":{"additionalProperties":false,"properties":{"bullets":{"items":{"type":"string"},"type":"array"},"deadline":{"anyOf":[{"$ref":"#/$defs/SourceDate"},{"type":"null"}]},"evidenceIds":{"items":{"type":"string"},"type":"array"},"generatedAt":{"format":"date-time","type":"string"},"generationSource":{"$ref":"#/$defs/GenerationSource"},"id":{"type":"string"},"model":{"type":["string","null"]},"ontologyVersion":{"type":"string"},"promptVersion":{"type":["string","null"]},"revisionId":{"type":"string"},"setAside":{"type":["string","null"]},"tags":{"items":{"type":"string"},"type":"array"},"text":{"type":"string"},"value":{"anyOf":[{"$ref":"#/$defs/Money"},{"type":"null"}]},"what":{"type":["string","null"]},"who":{"type":["string","null"]}},"required":["id","revisionId","text","bullets","tags","evidenceIds","generationSource","generatedAt","ontologyVersion"],"type":"object"},"ToolError":{"properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"type":"object"},"Trace":{"properties":{"arguments":true,"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"error":{"anyOf":[{"$ref":"#/$defs/ToolError"},{"type":"null"}]},"outputBytes":{"format":"uint","minimum":0,"type":"integer"},"outputHash":{"type":["string","null"]},"step":{"$ref":"#/$defs/Step"},"tool":{"type":"string"}},"required":["step","tool","arguments","elapsedMilliseconds","outputBytes"],"type":"object"},"UnknownPolicy":{"enum":["exclude","include"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/StoredReport"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterOrdinal":{"format":"int32","type":["integer","null"]},"id":{"type":"string"},"limit":{"default":10,"format":"uint","maximum":10,"minimum":1,"type":"integer"}},"required":["id"],"title":"Entries","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_workflow_checkpoints","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Checkpoint":{"properties":{"createdAt":{"format":"date-time","type":"string"},"ordinal":{"format":"int32","type":"integer"},"stage":{"$ref":"#/$defs/Stage"}},"required":["ordinal","stage","createdAt"],"type":"object"},"EntryPage":{"properties":{"items":{"items":{"$ref":"#/$defs/Checkpoint"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterOrdinal":{"format":"int32","type":["integer","null"]},"runId":{"type":"string"}},"required":["runId","items","limit"],"type":"object"},"Stage":{"properties":{"completed":{"type":"boolean"},"detail":{"type":"string"},"step":{"$ref":"#/$defs/Step"}},"required":["step","completed","detail"],"type":"object"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/EntryPage"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterOrdinal":{"format":"int32","type":["integer","null"]},"id":{"type":"string"},"limit":{"default":10,"format":"uint","maximum":10,"minimum":1,"type":"integer"}},"required":["id"],"title":"Entries","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_workflow_traces","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"EntryPage":{"properties":{"items":{"items":{"$ref":"#/$defs/Trace"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterOrdinal":{"format":"int32","type":["integer","null"]},"runId":{"type":"string"}},"required":["runId","items","limit"],"type":"object"},"ErrorCode":{"enum":["invalidInput","notFound","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"},"ToolError":{"properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"type":"object"},"Trace":{"properties":{"ordinal":{"format":"int32","type":"integer"},"trace":{"$ref":"#/$defs/Trace2"}},"required":["ordinal","trace"],"type":"object"},"Trace2":{"properties":{"arguments":true,"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"error":{"anyOf":[{"$ref":"#/$defs/ToolError"},{"type":"null"}]},"outputBytes":{"format":"uint","minimum":0,"type":"integer"},"outputHash":{"type":["string","null"]},"step":{"$ref":"#/$defs/Step"},"tool":{"type":"string"}},"required":["step","tool","arguments","elapsedMilliseconds","outputBytes"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/EntryPage"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterOrdinal":{"format":"int32","type":["integer","null"]},"id":{"type":"string"},"limit":{"default":10,"format":"uint","maximum":10,"minimum":1,"type":"integer"}},"required":["id"],"title":"Entries","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_workflow_artifacts","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Artifact":{"properties":{"contentHash":{"type":"string"},"kind":{"type":"string"},"ordinal":{"format":"int32","type":"integer"},"totalBytes":{"format":"int32","type":"integer"}},"required":["ordinal","kind","contentHash","totalBytes"],"type":"object"},"EntryPage":{"properties":{"items":{"items":{"$ref":"#/$defs/Artifact"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterOrdinal":{"format":"int32","type":["integer","null"]},"runId":{"type":"string"}},"required":["runId","items","limit"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/EntryPage"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Read a bounded UTF-8 JSON artifact excerpt by byte offset, preserving its hash. Only the authenticated owner can read stored workflow content.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"},"maxBytes":{"default":4096,"format":"uint","maximum":16384,"minimum":1,"type":"integer"},"ordinal":{"format":"int32","type":"integer"},"startByte":{"default":0,"format":"uint","minimum":0,"type":"integer"}},"required":["id","ordinal"],"title":"ArtifactInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_workflow_artifact","ontologyConcepts":["Workflow"],"outputSchema":{"$defs":{"Artifact":{"properties":{"contentHash":{"type":"string"},"kind":{"type":"string"},"ordinal":{"format":"int32","type":"integer"},"totalBytes":{"format":"int32","type":"integer"}},"required":["ordinal","kind","contentHash","totalBytes"],"type":"object"},"ArtifactExcerpt":{"properties":{"artifact":{"$ref":"#/$defs/Artifact"},"endByte":{"format":"uint","minimum":0,"type":"integer"},"nextStartByte":{"format":"uint","minimum":0,"type":["integer","null"]},"runId":{"type":"string"},"startByte":{"format":"uint","minimum":0,"type":"integer"},"text":{"type":"string"}},"required":["runId","artifact","text","startByte","endByte"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/ArtifactExcerpt"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Describe the authenticated credential: principal, scopes and expiry. Requires any active credential; interfaces use it to offer only permitted controls.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"title":"EmptyInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"describe_credential","ontologyConcepts":["Credential"],"outputSchema":{"$defs":{"CredentialView":{"properties":{"credentialId":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"principalId":{"type":"string"},"scopes":{"items":{"$ref":"#/$defs/Scope"},"type":"array"}},"required":["principalId","credentialId","scopes","expiresAt"],"type":"object"},"Scope":{"enum":["workflows:read","workflows:write","watches:read","watches:write","briefs:read","briefs:write","profiles:read","profiles:write","searches:read","searches:write","ingestion:read","ingestion:write","alerts:read","alerts:write"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/CredentialView"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":null,"version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Create an owner alert on an owned saved search with an HTTPS webhook. Current matches form the baseline; revisions observed later are evaluated by the operator alert worker into a deduplicated outbox. Requires requestKey; no outbound request is made by this call.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"AlertDraft":{"additionalProperties":false,"properties":{"savedSearchId":{"type":"string"},"webhookUrl":{"description":"HTTPS destination; every resolved address must be public. No credentials or fragment.","type":"string"}},"required":["savedSearchId","webhookUrl"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"alert":{"$ref":"#/$defs/AlertDraft"},"requestKey":{"type":"string"}},"required":["requestKey","alert"],"title":"Create","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"create_alert","ontologyConcepts":["Alert"],"outputSchema":{"$defs":{"Alert":{"properties":{"checkpointAt":{"description":"Revisions observed after this time are evaluated next.","format":"date-time","type":"string"},"createdAt":{"format":"date-time","type":"string"},"dead":{"format":"int64","type":"integer"},"delivered":{"format":"int64","type":"integer"},"enabled":{"type":"boolean"},"id":{"type":"string"},"nextEvaluationAt":{"format":"date-time","type":"string"},"ownerId":{"type":"string"},"pendingDeliveries":{"format":"int64","type":"integer"},"recordVersion":{"format":"int64","type":"integer"},"savedSearchId":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"webhookUrl":{"type":"string"}},"required":["id","ownerId","savedSearchId","webhookUrl","enabled","recordVersion","checkpointAt","nextEvaluationAt","createdAt","updatedAt","pendingDeliveries","delivered","dead"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Alert"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"alerts:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_alert","ontologyConcepts":["Alert"],"outputSchema":{"$defs":{"Alert":{"properties":{"checkpointAt":{"description":"Revisions observed after this time are evaluated next.","format":"date-time","type":"string"},"createdAt":{"format":"date-time","type":"string"},"dead":{"format":"int64","type":"integer"},"delivered":{"format":"int64","type":"integer"},"enabled":{"type":"boolean"},"id":{"type":"string"},"nextEvaluationAt":{"format":"date-time","type":"string"},"ownerId":{"type":"string"},"pendingDeliveries":{"format":"int64","type":"integer"},"recordVersion":{"format":"int64","type":"integer"},"savedSearchId":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"webhookUrl":{"type":"string"}},"required":["id","ownerId","savedSearchId","webhookUrl","enabled","recordVersion","checkpointAt","nextEvaluationAt","createdAt","updatedAt","pendingDeliveries","delivered","dead"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Alert"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"alerts:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"title":"Listing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_alerts","ontologyConcepts":["Alert"],"outputSchema":{"$defs":{"Alert":{"properties":{"checkpointAt":{"description":"Revisions observed after this time are evaluated next.","format":"date-time","type":"string"},"createdAt":{"format":"date-time","type":"string"},"dead":{"format":"int64","type":"integer"},"delivered":{"format":"int64","type":"integer"},"enabled":{"type":"boolean"},"id":{"type":"string"},"nextEvaluationAt":{"format":"date-time","type":"string"},"ownerId":{"type":"string"},"pendingDeliveries":{"format":"int64","type":"integer"},"recordVersion":{"format":"int64","type":"integer"},"savedSearchId":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"webhookUrl":{"type":"string"}},"required":["id","ownerId","savedSearchId","webhookUrl","enabled","recordVersion","checkpointAt","nextEvaluationAt","createdAt","updatedAt","pendingDeliveries","delivered","dead"],"type":"object"},"Page":{"properties":{"items":{"items":{"$ref":"#/$defs/Alert"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Page"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"alerts:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Enable, disable or re-target an owner alert. Disabling cancels undelivered notifications; re-enabling resumes from now without backfill. expectedVersion required.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"enabled":{"description":"Disabling cancels undelivered notifications. Re-enabling starts from the current time.","type":"boolean"},"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"},"webhookUrl":{"type":["string","null"]}},"required":["id","expectedVersion","enabled"],"title":"Update","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"update_alert","ontologyConcepts":["Alert"],"outputSchema":{"$defs":{"Alert":{"properties":{"checkpointAt":{"description":"Revisions observed after this time are evaluated next.","format":"date-time","type":"string"},"createdAt":{"format":"date-time","type":"string"},"dead":{"format":"int64","type":"integer"},"delivered":{"format":"int64","type":"integer"},"enabled":{"type":"boolean"},"id":{"type":"string"},"nextEvaluationAt":{"format":"date-time","type":"string"},"ownerId":{"type":"string"},"pendingDeliveries":{"format":"int64","type":"integer"},"recordVersion":{"format":"int64","type":"integer"},"savedSearchId":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"webhookUrl":{"type":"string"}},"required":["id","ownerId","savedSearchId","webhookUrl","enabled","recordVersion","checkpointAt","nextEvaluationAt","createdAt","updatedAt","pendingDeliveries","delivered","dead"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Alert"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"alerts:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Delete an owner alert with its evaluations and delivery history. expectedVersion required.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionedId","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"delete_alert","ontologyConcepts":["Alert"],"outputSchema":{"$defs":{"Deleted":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"previousVersion":{"format":"int64","type":"integer"}},"required":["id","deleted","previousVersion"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Deleted"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"alerts:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Return the per-alert HMAC-SHA256 signing secret used for X-SAM-TLDR-Signature over <timestamp>.<body>. Requires alerts:write; never stored in receipts.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_alert_signing_secret","ontologyConcepts":["Alert"],"outputSchema":{"$defs":{"SigningSecret":{"properties":{"alertId":{"type":"string"},"algorithm":{"type":"string"},"signatureHeader":{"type":"string"},"signedContent":{"type":"string"},"signingSecret":{"type":"string"}},"required":["alertId","signingSecret","algorithm","signatureHeader","signedContent"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/SigningSecret"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"alerts:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"List owner alert notifications with delivery state, attempts, next retry, last HTTP status and error code. Delivered state only follows a 2xx response.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"id":{"type":"string"},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"required":["id"],"title":"DeliveryListing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_alert_deliveries","ontologyConcepts":["Notification"],"outputSchema":{"$defs":{"DeliveryRecord":{"properties":{"attempts":{"format":"int32","type":"integer"},"createdAt":{"format":"date-time","type":"string"},"deliveredAt":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"lastError":{"type":["string","null"]},"lastStatus":{"format":"int32","type":["integer","null"]},"nextAttemptAt":{"format":"date-time","type":"string"},"noticeId":{"type":["string","null"]},"revisionId":{"type":"string"},"state":{"description":"pending, delivering, delivered, dead or cancelled.","type":"string"}},"required":["id","revisionId","state","attempts","nextAttemptAt","createdAt"],"type":"object"},"Page":{"properties":{"items":{"items":{"$ref":"#/$defs/DeliveryRecord"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Page"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"alerts:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Persist an owner-scoped model-planned read-only investigation question and reserve its whole conservative step budget in a UTC-day ledger. Requires requestKey and sendToModel=true; no outbound work. Reservations are not refunded.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"Task":{"additionalProperties":false,"properties":{"maxSteps":{"default":4,"description":"Planning steps, 1–6. Each step is one provider call and at most one public read tool call.","format":"uint32","maximum":6,"minimum":1,"type":"integer"},"question":{"description":"Question for the planner, 1–2000 UTF-8 bytes. Untrusted; grants no privileges.","type":"string"},"sendToModel":{"description":"Must be true. Authorizes sending the question and public source tool results to the operator-configured provider.","type":"boolean"}},"required":["question","sendToModel"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"requestKey":{"type":"string"},"task":{"$ref":"#/$defs/Task"}},"required":["requestKey","task"],"title":"Create","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"create_agent_run","ontologyConcepts":["AgentRun"],"outputSchema":{"$defs":{"Header":{"properties":{"budgetDay":{"format":"date","type":"string"},"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"maxSteps":{"format":"int32","type":"integer"},"model":{"type":"string"},"nextAction":{"description":"\"advance\" when another step may be committed; null when terminal.","type":["string","null"]},"ownerId":{"type":"string"},"providerConfigHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"reservedCostUsd":{"format":"double","type":"number"},"state":{"description":"queued, running, completed or partial.","type":"string"},"stepsStarted":{"format":"int32","type":"integer"},"taskHash":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","taskHash","providerConfigHash","model","budgetDay","reservedCostUsd","maxSteps","stepsStarted","createdAt","updatedAt"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Header"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":true,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":true,"userWrites":true},"authentication":"bearer","description":"Commit one step fence, make one bounded structured model call and execute at most one validated public read tool (search, opportunity, documents, summary, evidence). A finish publishes the answer only if every citation is an exact substring of evidence retrieved in this run. expectedVersion required; retries never resend a model request.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"advance_agent_run","ontologyConcepts":["AgentRun"],"outputSchema":{"$defs":{"Advance":{"properties":{"outcome":{"anyOf":[{"$ref":"#/$defs/Outcome"},{"type":"null"}]},"run":{"$ref":"#/$defs/Header"},"step":{"anyOf":[{"$ref":"#/$defs/StepSummary"},{"type":"null"}]}},"required":["run"],"type":"object"},"Citation":{"properties":{"evidenceId":{"type":"string"},"noticeId":{"type":"string"},"quote":{"type":"string"},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["evidenceId","noticeId","revisionId","sourceUrl","quote"],"type":"object"},"Header":{"properties":{"budgetDay":{"format":"date","type":"string"},"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"maxSteps":{"format":"int32","type":"integer"},"model":{"type":"string"},"nextAction":{"description":"\"advance\" when another step may be committed; null when terminal.","type":["string","null"]},"ownerId":{"type":"string"},"providerConfigHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"reservedCostUsd":{"format":"double","type":"number"},"state":{"description":"queued, running, completed or partial.","type":"string"},"stepsStarted":{"format":"int32","type":"integer"},"taskHash":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","taskHash","providerConfigHash","model","budgetDay","reservedCostUsd","maxSteps","stepsStarted","createdAt","updatedAt"],"type":"object"},"Outcome":{"properties":{"answer":{"description":"Model-generated synthesis; only citations are verified as exact source substrings.","type":["string","null"]},"citations":{"items":{"$ref":"#/$defs/Citation"},"type":"array"},"issues":{"items":{"type":"string"},"type":"array"},"noticeIds":{"items":{"type":"string"},"type":"array"},"providerSteps":{"format":"uint32","minimum":0,"type":"integer"},"status":{"description":"grounded (answer published), withheld (citations failed) or incomplete.","type":"string"},"toolCalls":{"format":"uint32","minimum":0,"type":"integer"},"version":{"type":"string"}},"required":["version","status","citations","noticeIds","issues","providerSteps","toolCalls"],"type":"object"},"StepSummary":{"properties":{"arguments":true,"completedAt":{"format":"date-time","type":["string","null"]},"issue":{"type":["string","null"]},"observationBytes":{"format":"uint","minimum":0,"type":["integer","null"]},"observationHash":{"type":["string","null"]},"ordinal":{"format":"int32","type":"integer"},"outcomeUnknown":{"description":"True for a spent fence without a stored result after its execution window.","type":"boolean"},"startedAt":{"format":"date-time","type":"string"},"state":{"description":"reserved, completed or interrupted. Interrupted steps remain spent and never reissue.","type":"string"},"status":{"type":["string","null"]},"tool":{"type":["string","null"]}},"required":["ordinal","state","startedAt","outcomeUnknown"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Advance"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Read an owner-scoped agent run: question, reservation, step summaries, interrupted fences and the verified outcome. No provider call.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_agent_run","ontologyConcepts":["AgentRun"],"outputSchema":{"$defs":{"Citation":{"properties":{"evidenceId":{"type":"string"},"noticeId":{"type":"string"},"quote":{"type":"string"},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["evidenceId","noticeId","revisionId","sourceUrl","quote"],"type":"object"},"Detail":{"properties":{"outcome":{"anyOf":[{"$ref":"#/$defs/Outcome"},{"type":"null"}]},"run":{"$ref":"#/$defs/Header"},"steps":{"items":{"$ref":"#/$defs/StepSummary"},"type":"array"},"task":{"$ref":"#/$defs/Task"}},"required":["run","task","steps"],"type":"object"},"Header":{"properties":{"budgetDay":{"format":"date","type":"string"},"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"maxSteps":{"format":"int32","type":"integer"},"model":{"type":"string"},"nextAction":{"description":"\"advance\" when another step may be committed; null when terminal.","type":["string","null"]},"ownerId":{"type":"string"},"providerConfigHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"reservedCostUsd":{"format":"double","type":"number"},"state":{"description":"queued, running, completed or partial.","type":"string"},"stepsStarted":{"format":"int32","type":"integer"},"taskHash":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","taskHash","providerConfigHash","model","budgetDay","reservedCostUsd","maxSteps","stepsStarted","createdAt","updatedAt"],"type":"object"},"Outcome":{"properties":{"answer":{"description":"Model-generated synthesis; only citations are verified as exact source substrings.","type":["string","null"]},"citations":{"items":{"$ref":"#/$defs/Citation"},"type":"array"},"issues":{"items":{"type":"string"},"type":"array"},"noticeIds":{"items":{"type":"string"},"type":"array"},"providerSteps":{"format":"uint32","minimum":0,"type":"integer"},"status":{"description":"grounded (answer published), withheld (citations failed) or incomplete.","type":"string"},"toolCalls":{"format":"uint32","minimum":0,"type":"integer"},"version":{"type":"string"}},"required":["version","status","citations","noticeIds","issues","providerSteps","toolCalls"],"type":"object"},"StepSummary":{"properties":{"arguments":true,"completedAt":{"format":"date-time","type":["string","null"]},"issue":{"type":["string","null"]},"observationBytes":{"format":"uint","minimum":0,"type":["integer","null"]},"observationHash":{"type":["string","null"]},"ordinal":{"format":"int32","type":"integer"},"outcomeUnknown":{"description":"True for a spent fence without a stored result after its execution window.","type":"boolean"},"startedAt":{"format":"date-time","type":"string"},"state":{"description":"reserved, completed or interrupted. Interrupted steps remain spent and never reissue.","type":"string"},"status":{"type":["string","null"]},"tool":{"type":["string","null"]}},"required":["ordinal","state","startedAt","outcomeUnknown"],"type":"object"},"Task":{"additionalProperties":false,"properties":{"maxSteps":{"default":4,"description":"Planning steps, 1–6. Each step is one provider call and at most one public read tool call.","format":"uint32","maximum":6,"minimum":1,"type":"integer"},"question":{"description":"Question for the planner, 1–2000 UTF-8 bytes. Untrusted; grants no privileges.","type":"string"},"sendToModel":{"description":"Must be true. Authorizes sending the question and public source tool results to the operator-configured provider.","type":"boolean"}},"required":["question","sendToModel"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Detail"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Read one stored agent step: validated action, tool arguments, full accepted public tool output with hash, typed errors and usage. Withheld answers are never exposed.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"},"ordinal":{"format":"uint32","maximum":6,"minimum":1,"type":"integer"}},"required":["id","ordinal"],"title":"StepInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_agent_run_step","ontologyConcepts":["AgentStep"],"outputSchema":{"$defs":{"Action":{"additionalProperties":false,"description":"Model output contract. Rust rejects unsupported combinations instead of repairing them.","properties":{"action":{"type":"string"},"answer":{"type":["string","null"]},"citations":{"default":[],"items":{"$ref":"#/$defs/ProposedCitation"},"type":"array"},"evidenceId":{"type":["string","null"]},"noticeId":{"type":["string","null"]},"noticeIds":{"default":[],"items":{"type":"string"},"type":"array"},"query":{"type":["string","null"]},"tool":{"type":["string","null"]}},"required":["action"],"type":"object"},"ErrorCode":{"enum":["invalidInput","notFound","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"},"ProposedCitation":{"additionalProperties":false,"properties":{"evidenceId":{"type":"string"},"quote":{"type":"string"}},"required":["evidenceId","quote"],"type":"object"},"StepDetail":{"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"ordinal":{"format":"int32","type":"integer"},"record":{"anyOf":[{"$ref":"#/$defs/StepRecord"},{"type":"null"}]},"requestHash":{"type":"string"},"runId":{"type":"string"},"startedAt":{"format":"date-time","type":"string"},"state":{"type":"string"}},"required":["runId","ordinal","state","startedAt","requestHash"],"type":"object"},"StepRecord":{"properties":{"action":{"anyOf":[{"$ref":"#/$defs/Action"},{"type":"null"}]},"arguments":true,"completionTokens":{"format":"uint64","minimum":0,"type":["integer","null"]},"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"error":{"anyOf":[{"$ref":"#/$defs/ToolError"},{"type":"null"}]},"issue":{"type":["string","null"]},"observation":{"description":"Full accepted public tool data, at most 64 KiB."},"observationBytes":{"format":"uint","minimum":0,"type":["integer","null"]},"observationHash":{"type":["string","null"]},"promptTokens":{"format":"uint64","minimum":0,"type":["integer","null"]},"status":{"description":"toolCalled, toolFailed, finished, rejected or providerFailed.","type":"string"},"tool":{"type":["string","null"]}},"required":["status","elapsedMilliseconds"],"type":"object"},"ToolError":{"properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/StepDetail"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"title":"Listing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_agent_runs","ontologyConcepts":["AgentRun"],"outputSchema":{"$defs":{"Header":{"properties":{"budgetDay":{"format":"date","type":"string"},"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"maxSteps":{"format":"int32","type":"integer"},"model":{"type":"string"},"nextAction":{"description":"\"advance\" when another step may be committed; null when terminal.","type":["string","null"]},"ownerId":{"type":"string"},"providerConfigHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"reservedCostUsd":{"format":"double","type":"number"},"state":{"description":"queued, running, completed or partial.","type":"string"},"stepsStarted":{"format":"int32","type":"integer"},"taskHash":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"workflowVersion":{"type":"string"}},"required":["id","ownerId","workflowVersion","state","recordVersion","taskHash","providerConfigHash","model","budgetDay","reservedCostUsd","maxSteps","stepsStarted","createdAt","updatedAt"],"type":"object"},"Page":{"properties":{"items":{"items":{"$ref":"#/$defs/Header"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Page"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"workflows:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Track a notice against a pinned source revision. Updates require expectedVersion and explicit acknowledgement to move the baseline. No background monitoring or notification is enabled.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"note":{"type":["string","null"]},"noticeId":{"type":"string"},"requestKey":{"type":"string"}},"required":["requestKey","noticeId"],"title":"CreateWatch","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"create_watch","ontologyConcepts":["Watch"],"outputSchema":{"$defs":{"Watch":{"properties":{"baselineRevisionId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"currentRevisionId":{"type":"string"},"id":{"type":"string"},"note":{"type":["string","null"]},"noticeId":{"type":"string"},"ownerId":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"sourceChanged":{"type":"boolean"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","noticeId","baselineRevisionId","currentRevisionId","sourceChanged","recordVersion","createdAt","updatedAt"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Watch"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"watches:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_watch","ontologyConcepts":["Watch"],"outputSchema":{"$defs":{"Watch":{"properties":{"baselineRevisionId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"currentRevisionId":{"type":"string"},"id":{"type":"string"},"note":{"type":["string","null"]},"noticeId":{"type":"string"},"ownerId":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"sourceChanged":{"type":"boolean"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","noticeId","baselineRevisionId","currentRevisionId","sourceChanged","recordVersion","createdAt","updatedAt"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Watch"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"watches:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"title":"Listing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_watches","ontologyConcepts":["Watch"],"outputSchema":{"$defs":{"Page":{"properties":{"items":{"items":{"$ref":"#/$defs/Watch"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"},"Watch":{"properties":{"baselineRevisionId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"currentRevisionId":{"type":"string"},"id":{"type":"string"},"note":{"type":["string","null"]},"noticeId":{"type":"string"},"ownerId":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"sourceChanged":{"type":"boolean"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","noticeId","baselineRevisionId","currentRevisionId","sourceChanged","recordVersion","createdAt","updatedAt"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Page"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"watches:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Track a notice against a pinned source revision. Updates require expectedVersion and explicit acknowledgement to move the baseline. No background monitoring or notification is enabled.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"acknowledgeCurrentRevision":{"type":"boolean"},"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"},"note":{"type":["string","null"]}},"required":["id","expectedVersion","acknowledgeCurrentRevision"],"title":"UpdateWatch","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"update_watch","ontologyConcepts":["Watch"],"outputSchema":{"$defs":{"Watch":{"properties":{"baselineRevisionId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"currentRevisionId":{"type":"string"},"id":{"type":"string"},"note":{"type":["string","null"]},"noticeId":{"type":"string"},"ownerId":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"sourceChanged":{"type":"boolean"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","noticeId","baselineRevisionId","currentRevisionId","sourceChanged","recordVersion","createdAt","updatedAt"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Watch"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"watches:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"delete_watch","ontologyConcepts":["Watch"],"outputSchema":{"$defs":{"Deleted":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"previousVersion":{"format":"int64","type":"integer"}},"required":["id","deleted","previousVersion"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Deleted"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"watches:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Create an immutable owner comparison brief from 2–5 distinct stored notices. Six explicit Rust stages capture revisions at one database snapshot, validate metadata pointers, compare literal known values and publish cited rows with unknowns and a bounded internal service trace. Requires requestKey. Five-second budget; no document inspection, eligibility determination, model calls or notifications.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"noticeIds":{"items":{"type":"string"},"maxItems":5,"minItems":2,"type":"array"},"requestKey":{"type":"string"},"title":{"type":"string"}},"required":["requestKey","title","noticeIds"],"title":"Create","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"create_comparison_brief","ontologyConcepts":["Brief"],"outputSchema":{"$defs":{"Brief":{"properties":{"comparison":{"anyOf":[{"$ref":"#/$defs/Comparison"},{"type":"null"}]},"header":{"$ref":"#/$defs/BriefHeader"},"items":{"items":{"$ref":"#/$defs/BriefItem"},"type":"array"}},"required":["header","items"],"type":"object"},"BriefHeader":{"properties":{"createdAt":{"format":"date-time","type":"string"},"definitionVersion":{"type":"string"},"id":{"type":"string"},"ownerId":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"title":{"type":"string"}},"required":["id","ownerId","title","definitionVersion","recordVersion","createdAt"],"type":"object"},"BriefItem":{"properties":{"contentHash":{"type":"string"},"facts":{"items":{"$ref":"#/$defs/Fact"},"type":"array"},"noticeId":{"type":"string"},"observedAt":{"format":"date-time","type":"string"},"opportunityId":{"type":"string"},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["noticeId","opportunityId","revisionId","contentHash","sourceUrl","observedAt","facts"],"type":"object"},"Cell":{"properties":{"fact":{"$ref":"#/$defs/Fact"},"noticeId":{"type":"string"},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["noticeId","revisionId","sourceUrl","fact"],"type":"object"},"Comparison":{"properties":{"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"modelCostUsd":{"format":"uint","minimum":0,"type":"integer"},"modelTokens":{"format":"uint","minimum":0,"type":"integer"},"rows":{"items":{"$ref":"#/$defs/ComparisonRow"},"type":"array"},"sourceOutputBytes":{"format":"uint","minimum":0,"type":"integer"},"sourceReadStatements":{"format":"uint","minimum":0,"type":"integer"},"stages":{"items":{"$ref":"#/$defs/Stage"},"type":"array"},"summary":{"$ref":"#/$defs/ComparisonSummary"},"trace":{"items":{"$ref":"#/$defs/OperationTrace"},"type":"array"},"workflowVersion":{"type":"string"}},"required":["workflowVersion","stages","rows","summary","trace","sourceReadStatements","sourceOutputBytes","elapsedMilliseconds","modelTokens","modelCostUsd"],"type":"object"},"ComparisonRow":{"properties":{"cells":{"items":{"$ref":"#/$defs/Cell"},"type":"array"},"complete":{"type":"boolean"},"knownValueRelation":{"$ref":"#/$defs/Relation"},"predicate":{"type":"string"}},"required":["predicate","knownValueRelation","complete","cells"],"type":"object"},"ComparisonSummary":{"properties":{"fieldsCompared":{"format":"uint","minimum":0,"type":"integer"},"fieldsWithKnownDifferences":{"format":"uint","minimum":0,"type":"integer"},"fieldsWithUnknowns":{"format":"uint","minimum":0,"type":"integer"},"scope":{"type":"string"},"sourceCount":{"format":"uint","minimum":0,"type":"integer"}},"required":["sourceCount","fieldsCompared","fieldsWithKnownDifferences","fieldsWithUnknowns","scope"],"type":"object"},"Fact":{"additionalProperties":false,"properties":{"predicate":{"type":"string"},"sourcePointer":{"type":["string","null"]},"state":{"$ref":"#/$defs/FactState"},"value":true},"required":["predicate","state","value"],"type":"object"},"FactState":{"enum":["known","unknown","absent","conditional","conflicting"],"type":"string"},"Operation":{"enum":["captureSourceSnapshots","validateSourceMetadata","compareKnownMetadata"],"type":"string"},"OperationTrace":{"properties":{"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"operation":{"$ref":"#/$defs/Operation"},"outputBytes":{"format":"uint","minimum":0,"type":"integer"},"outputHash":{"type":"string"},"step":{"$ref":"#/$defs/Step"}},"required":["step","operation","elapsedMilliseconds","outputBytes","outputHash"],"type":"object"},"Relation":{"enum":["same","different","insufficientKnownValues"],"type":"string"},"Stage":{"properties":{"completed":{"type":"boolean"},"detail":{"type":"string"},"step":{"$ref":"#/$defs/Step"}},"required":["step","completed","detail"],"type":"object"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Brief"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"briefs:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Create an immutable source-snapshot brief for 1 to 20 distinct notices. Facts preserve source spelling and unknown values, with revision hashes and JSON pointers; no eligibility or document-summary inference.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"noticeIds":{"items":{"type":"string"},"type":"array"},"requestKey":{"type":"string"},"title":{"type":"string"}},"required":["requestKey","title","noticeIds"],"title":"CreateBrief","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"create_brief","ontologyConcepts":["Brief"],"outputSchema":{"$defs":{"Brief":{"properties":{"comparison":{"anyOf":[{"$ref":"#/$defs/Comparison"},{"type":"null"}]},"header":{"$ref":"#/$defs/BriefHeader"},"items":{"items":{"$ref":"#/$defs/BriefItem"},"type":"array"}},"required":["header","items"],"type":"object"},"BriefHeader":{"properties":{"createdAt":{"format":"date-time","type":"string"},"definitionVersion":{"type":"string"},"id":{"type":"string"},"ownerId":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"title":{"type":"string"}},"required":["id","ownerId","title","definitionVersion","recordVersion","createdAt"],"type":"object"},"BriefItem":{"properties":{"contentHash":{"type":"string"},"facts":{"items":{"$ref":"#/$defs/Fact"},"type":"array"},"noticeId":{"type":"string"},"observedAt":{"format":"date-time","type":"string"},"opportunityId":{"type":"string"},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["noticeId","opportunityId","revisionId","contentHash","sourceUrl","observedAt","facts"],"type":"object"},"Cell":{"properties":{"fact":{"$ref":"#/$defs/Fact"},"noticeId":{"type":"string"},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["noticeId","revisionId","sourceUrl","fact"],"type":"object"},"Comparison":{"properties":{"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"modelCostUsd":{"format":"uint","minimum":0,"type":"integer"},"modelTokens":{"format":"uint","minimum":0,"type":"integer"},"rows":{"items":{"$ref":"#/$defs/ComparisonRow"},"type":"array"},"sourceOutputBytes":{"format":"uint","minimum":0,"type":"integer"},"sourceReadStatements":{"format":"uint","minimum":0,"type":"integer"},"stages":{"items":{"$ref":"#/$defs/Stage"},"type":"array"},"summary":{"$ref":"#/$defs/ComparisonSummary"},"trace":{"items":{"$ref":"#/$defs/OperationTrace"},"type":"array"},"workflowVersion":{"type":"string"}},"required":["workflowVersion","stages","rows","summary","trace","sourceReadStatements","sourceOutputBytes","elapsedMilliseconds","modelTokens","modelCostUsd"],"type":"object"},"ComparisonRow":{"properties":{"cells":{"items":{"$ref":"#/$defs/Cell"},"type":"array"},"complete":{"type":"boolean"},"knownValueRelation":{"$ref":"#/$defs/Relation"},"predicate":{"type":"string"}},"required":["predicate","knownValueRelation","complete","cells"],"type":"object"},"ComparisonSummary":{"properties":{"fieldsCompared":{"format":"uint","minimum":0,"type":"integer"},"fieldsWithKnownDifferences":{"format":"uint","minimum":0,"type":"integer"},"fieldsWithUnknowns":{"format":"uint","minimum":0,"type":"integer"},"scope":{"type":"string"},"sourceCount":{"format":"uint","minimum":0,"type":"integer"}},"required":["sourceCount","fieldsCompared","fieldsWithKnownDifferences","fieldsWithUnknowns","scope"],"type":"object"},"Fact":{"additionalProperties":false,"properties":{"predicate":{"type":"string"},"sourcePointer":{"type":["string","null"]},"state":{"$ref":"#/$defs/FactState"},"value":true},"required":["predicate","state","value"],"type":"object"},"FactState":{"enum":["known","unknown","absent","conditional","conflicting"],"type":"string"},"Operation":{"enum":["captureSourceSnapshots","validateSourceMetadata","compareKnownMetadata"],"type":"string"},"OperationTrace":{"properties":{"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"operation":{"$ref":"#/$defs/Operation"},"outputBytes":{"format":"uint","minimum":0,"type":"integer"},"outputHash":{"type":"string"},"step":{"$ref":"#/$defs/Step"}},"required":["step","operation","elapsedMilliseconds","outputBytes","outputHash"],"type":"object"},"Relation":{"enum":["same","different","insufficientKnownValues"],"type":"string"},"Stage":{"properties":{"completed":{"type":"boolean"},"detail":{"type":"string"},"step":{"$ref":"#/$defs/Step"}},"required":["step","completed","detail"],"type":"object"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Brief"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"briefs:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_brief","ontologyConcepts":["Brief"],"outputSchema":{"$defs":{"Brief":{"properties":{"comparison":{"anyOf":[{"$ref":"#/$defs/Comparison"},{"type":"null"}]},"header":{"$ref":"#/$defs/BriefHeader"},"items":{"items":{"$ref":"#/$defs/BriefItem"},"type":"array"}},"required":["header","items"],"type":"object"},"BriefHeader":{"properties":{"createdAt":{"format":"date-time","type":"string"},"definitionVersion":{"type":"string"},"id":{"type":"string"},"ownerId":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"title":{"type":"string"}},"required":["id","ownerId","title","definitionVersion","recordVersion","createdAt"],"type":"object"},"BriefItem":{"properties":{"contentHash":{"type":"string"},"facts":{"items":{"$ref":"#/$defs/Fact"},"type":"array"},"noticeId":{"type":"string"},"observedAt":{"format":"date-time","type":"string"},"opportunityId":{"type":"string"},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["noticeId","opportunityId","revisionId","contentHash","sourceUrl","observedAt","facts"],"type":"object"},"Cell":{"properties":{"fact":{"$ref":"#/$defs/Fact"},"noticeId":{"type":"string"},"revisionId":{"type":"string"},"sourceUrl":{"type":"string"}},"required":["noticeId","revisionId","sourceUrl","fact"],"type":"object"},"Comparison":{"properties":{"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"modelCostUsd":{"format":"uint","minimum":0,"type":"integer"},"modelTokens":{"format":"uint","minimum":0,"type":"integer"},"rows":{"items":{"$ref":"#/$defs/ComparisonRow"},"type":"array"},"sourceOutputBytes":{"format":"uint","minimum":0,"type":"integer"},"sourceReadStatements":{"format":"uint","minimum":0,"type":"integer"},"stages":{"items":{"$ref":"#/$defs/Stage"},"type":"array"},"summary":{"$ref":"#/$defs/ComparisonSummary"},"trace":{"items":{"$ref":"#/$defs/OperationTrace"},"type":"array"},"workflowVersion":{"type":"string"}},"required":["workflowVersion","stages","rows","summary","trace","sourceReadStatements","sourceOutputBytes","elapsedMilliseconds","modelTokens","modelCostUsd"],"type":"object"},"ComparisonRow":{"properties":{"cells":{"items":{"$ref":"#/$defs/Cell"},"type":"array"},"complete":{"type":"boolean"},"knownValueRelation":{"$ref":"#/$defs/Relation"},"predicate":{"type":"string"}},"required":["predicate","knownValueRelation","complete","cells"],"type":"object"},"ComparisonSummary":{"properties":{"fieldsCompared":{"format":"uint","minimum":0,"type":"integer"},"fieldsWithKnownDifferences":{"format":"uint","minimum":0,"type":"integer"},"fieldsWithUnknowns":{"format":"uint","minimum":0,"type":"integer"},"scope":{"type":"string"},"sourceCount":{"format":"uint","minimum":0,"type":"integer"}},"required":["sourceCount","fieldsCompared","fieldsWithKnownDifferences","fieldsWithUnknowns","scope"],"type":"object"},"Fact":{"additionalProperties":false,"properties":{"predicate":{"type":"string"},"sourcePointer":{"type":["string","null"]},"state":{"$ref":"#/$defs/FactState"},"value":true},"required":["predicate","state","value"],"type":"object"},"FactState":{"enum":["known","unknown","absent","conditional","conflicting"],"type":"string"},"Operation":{"enum":["captureSourceSnapshots","validateSourceMetadata","compareKnownMetadata"],"type":"string"},"OperationTrace":{"properties":{"elapsedMilliseconds":{"format":"uint64","minimum":0,"type":"integer"},"operation":{"$ref":"#/$defs/Operation"},"outputBytes":{"format":"uint","minimum":0,"type":"integer"},"outputHash":{"type":"string"},"step":{"$ref":"#/$defs/Step"}},"required":["step","operation","elapsedMilliseconds","outputBytes","outputHash"],"type":"object"},"Relation":{"enum":["same","different","insufficientKnownValues"],"type":"string"},"Stage":{"properties":{"completed":{"type":"boolean"},"detail":{"type":"string"},"step":{"$ref":"#/$defs/Step"}},"required":["step","completed","detail"],"type":"object"},"Step":{"enum":["plan","retrieve","inspect","reason","summarize","report"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Brief"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"briefs:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"title":"Listing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_briefs","ontologyConcepts":["Brief"],"outputSchema":{"$defs":{"BriefHeader":{"properties":{"createdAt":{"format":"date-time","type":"string"},"definitionVersion":{"type":"string"},"id":{"type":"string"},"ownerId":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"title":{"type":"string"}},"required":["id","ownerId","title","definitionVersion","recordVersion","createdAt"],"type":"object"},"Page":{"properties":{"items":{"items":{"$ref":"#/$defs/BriefHeader"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Page"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"briefs:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"delete_brief","ontologyConcepts":["Brief"],"outputSchema":{"$defs":{"Deleted":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"previousVersion":{"format":"int64","type":"integer"}},"required":["id","deleted","previousVersion"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Deleted"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"briefs:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Persist frozen authorized source and a conservative UTC-day budget reservation. Requires requestKey and sendToModel=true; no outbound work. Reservations are not refunded, even if interrupted or unused.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"Input":{"additionalProperties":false,"properties":{"name":{"type":["string","null"]},"sendToModel":{"description":"Must be true. Explicitly authorize sending this source to the operator-configured model provider.","type":"boolean"},"text":{"description":"Nonempty text, at most 8192 UTF-8 bytes; blocks must fit 2048 bytes, maximum six.","type":"string"}},"required":["text","sendToModel"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"requestKey":{"type":"string"},"selection":{"$ref":"#/$defs/Input"}},"required":["requestKey","selection"],"title":"Create","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"create_supplier_model_attempt","ontologyConcepts":["ModelAttempt"],"outputSchema":{"$defs":{"Header":{"properties":{"budgetDay":{"format":"date","type":"string"},"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"inputHash":{"type":"string"},"model":{"type":"string"},"outcomeUnknown":{"description":"True for a spent fence without a stored result after its execution window.","type":"boolean"},"ownerId":{"type":"string"},"providerConfigHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"reservedCostUsd":{"format":"double","type":"number"},"startedAt":{"format":"date-time","type":["string","null"]},"state":{"type":"string"}},"required":["id","ownerId","state","recordVersion","inputHash","providerConfigHash","model","budgetDay","reservedCostUsd","createdAt","outcomeUnknown"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Header"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":true,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":true,"userWrites":true},"authentication":"bearer","description":"Commit a one-use execution fence before a bounded provider call. Persist validated output; repeated execution never reissues outbound work. Interrupted attempts remain spent with unknown outcome. expectedVersion required.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"execute_supplier_model_attempt","ontologyConcepts":["ModelAttempt"],"outputSchema":{"$defs":{"Citation":{"additionalProperties":false,"properties":{"endByte":{"format":"uint","minimum":0,"type":"integer"},"field":{"type":"string"},"quote":{"type":"string"},"ruleId":{"type":"string"},"startByte":{"format":"uint","minimum":0,"type":"integer"}},"required":["field","ruleId","startByte","endByte","quote"],"type":"object"},"Execution":{"properties":{"attempt":{"$ref":"#/$defs/Header"},"result":{"anyOf":[{"$ref":"#/$defs/Output"},{"type":"null"}]}},"required":["attempt"],"type":"object"},"Header":{"properties":{"budgetDay":{"format":"date","type":"string"},"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"inputHash":{"type":"string"},"model":{"type":"string"},"outcomeUnknown":{"description":"True for a spent fence without a stored result after its execution window.","type":"boolean"},"ownerId":{"type":"string"},"providerConfigHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"reservedCostUsd":{"format":"double","type":"number"},"startedAt":{"format":"date-time","type":["string","null"]},"state":{"type":"string"}},"required":["id","ownerId","state","recordVersion","inputHash","providerConfigHash","model","budgetDay","reservedCostUsd","createdAt","outcomeUnknown"],"type":"object"},"Output":{"additionalProperties":false,"properties":{"inference":{"$ref":"#/$defs/Report"},"proposal":{"$ref":"#/$defs/Proposal"}},"required":["proposal","inference"],"type":"object"},"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"Proposal":{"additionalProperties":false,"properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Present for server-retrieved website text when the operator configured an attestation key."},"citations":{"items":{"$ref":"#/$defs/Citation"},"type":"array"},"draft":{"$ref":"#/$defs/ProfileDraft"},"observedAt":{"format":"date-time","type":"string"},"requiresReview":{"type":"boolean"},"sourceSha256":{"type":["string","null"]},"sourceText":{"type":"string"},"sourceUrl":{"type":["string","null"]},"textSha256":{"type":"string"},"version":{"type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["version","requiresReview","draft","sourceText","textSha256","observedAt","citations","warnings"],"type":"object"},"Report":{"additionalProperties":false,"properties":{"configuredModel":{"type":"string"},"inputBlocks":{"format":"uint","minimum":0,"type":"integer"},"promptHash":{"type":"string"},"providerAttempts":{"format":"uint32","minimum":0,"type":"integer"},"reservedCostUsd":{"format":"double","type":["number","null"]},"selectedBlocks":{"format":"uint","minimum":0,"type":"integer"},"status":{"type":"string"},"version":{"type":"string"}},"required":["version","status","configuredModel","promptHash","providerAttempts","inputBlocks","selectedBlocks"],"type":"object"},"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Execution"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Read owner-scoped model attempt source, reservation and stored validated outcome. No provider call or implicit retry.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_supplier_model_attempt","ontologyConcepts":["ModelAttempt"],"outputSchema":{"$defs":{"Citation":{"additionalProperties":false,"properties":{"endByte":{"format":"uint","minimum":0,"type":"integer"},"field":{"type":"string"},"quote":{"type":"string"},"ruleId":{"type":"string"},"startByte":{"format":"uint","minimum":0,"type":"integer"}},"required":["field","ruleId","startByte","endByte","quote"],"type":"object"},"Detail":{"properties":{"attempt":{"$ref":"#/$defs/Header"},"input":{"$ref":"#/$defs/Input"},"result":{"anyOf":[{"$ref":"#/$defs/Output"},{"type":"null"}]}},"required":["attempt","input"],"type":"object"},"Header":{"properties":{"budgetDay":{"format":"date","type":"string"},"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"inputHash":{"type":"string"},"model":{"type":"string"},"outcomeUnknown":{"description":"True for a spent fence without a stored result after its execution window.","type":"boolean"},"ownerId":{"type":"string"},"providerConfigHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"reservedCostUsd":{"format":"double","type":"number"},"startedAt":{"format":"date-time","type":["string","null"]},"state":{"type":"string"}},"required":["id","ownerId","state","recordVersion","inputHash","providerConfigHash","model","budgetDay","reservedCostUsd","createdAt","outcomeUnknown"],"type":"object"},"Input":{"additionalProperties":false,"properties":{"name":{"type":["string","null"]},"sendToModel":{"description":"Must be true. Explicitly authorize sending this source to the operator-configured model provider.","type":"boolean"},"text":{"description":"Nonempty text, at most 8192 UTF-8 bytes; blocks must fit 2048 bytes, maximum six.","type":"string"}},"required":["text","sendToModel"],"type":"object"},"Output":{"additionalProperties":false,"properties":{"inference":{"$ref":"#/$defs/Report"},"proposal":{"$ref":"#/$defs/Proposal"}},"required":["proposal","inference"],"type":"object"},"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"Proposal":{"additionalProperties":false,"properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Present for server-retrieved website text when the operator configured an attestation key."},"citations":{"items":{"$ref":"#/$defs/Citation"},"type":"array"},"draft":{"$ref":"#/$defs/ProfileDraft"},"observedAt":{"format":"date-time","type":"string"},"requiresReview":{"type":"boolean"},"sourceSha256":{"type":["string","null"]},"sourceText":{"type":"string"},"sourceUrl":{"type":["string","null"]},"textSha256":{"type":"string"},"version":{"type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["version","requiresReview","draft","sourceText","textSha256","observedAt","citations","warnings"],"type":"object"},"Report":{"additionalProperties":false,"properties":{"configuredModel":{"type":"string"},"inputBlocks":{"format":"uint","minimum":0,"type":"integer"},"promptHash":{"type":"string"},"providerAttempts":{"format":"uint32","minimum":0,"type":"integer"},"reservedCostUsd":{"format":"double","type":["number","null"]},"selectedBlocks":{"format":"uint","minimum":0,"type":"integer"},"status":{"type":"string"},"version":{"type":"string"}},"required":["version","status","configuredModel","promptHash","providerAttempts","inputBlocks","selectedBlocks"],"type":"object"},"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Detail"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"title":"Listing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_supplier_model_attempts","ontologyConcepts":["ModelAttempt"],"outputSchema":{"$defs":{"Header":{"properties":{"budgetDay":{"format":"date","type":"string"},"completedAt":{"format":"date-time","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"inputHash":{"type":"string"},"model":{"type":"string"},"outcomeUnknown":{"description":"True for a spent fence without a stored result after its execution window.","type":"boolean"},"ownerId":{"type":"string"},"providerConfigHash":{"type":"string"},"recordVersion":{"format":"int64","type":"integer"},"reservedCostUsd":{"format":"double","type":"number"},"startedAt":{"format":"date-time","type":["string","null"]},"state":{"type":"string"}},"required":["id","ownerId","state","recordVersion","inputHash","providerConfigHash","model","budgetDay","reservedCostUsd","createdAt","outcomeUnknown"],"type":"object"},"Page":{"properties":{"items":{"items":{"$ref":"#/$defs/Header"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Page"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Retired direct model selection. Use create_supplier_model_attempt then execute_supplier_model_attempt to enforce durable reservations and retry boundaries.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"name":{"type":["string","null"]},"sendToModel":{"description":"Must be true. Explicitly authorize sending this source to the operator-configured model provider.","type":"boolean"},"text":{"description":"Nonempty text, at most 8192 UTF-8 bytes; blocks must fit 2048 bytes, maximum six.","type":"string"}},"required":["text","sendToModel"],"title":"Input","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"select_supplier_capabilities","ontologyConcepts":["SupplierDraft"],"outputSchema":{"$defs":{"Citation":{"additionalProperties":false,"properties":{"endByte":{"format":"uint","minimum":0,"type":"integer"},"field":{"type":"string"},"quote":{"type":"string"},"ruleId":{"type":"string"},"startByte":{"format":"uint","minimum":0,"type":"integer"}},"required":["field","ruleId","startByte","endByte","quote"],"type":"object"},"Output":{"additionalProperties":false,"properties":{"inference":{"$ref":"#/$defs/Report"},"proposal":{"$ref":"#/$defs/Proposal"}},"required":["proposal","inference"],"type":"object"},"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"Proposal":{"additionalProperties":false,"properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Present for server-retrieved website text when the operator configured an attestation key."},"citations":{"items":{"$ref":"#/$defs/Citation"},"type":"array"},"draft":{"$ref":"#/$defs/ProfileDraft"},"observedAt":{"format":"date-time","type":"string"},"requiresReview":{"type":"boolean"},"sourceSha256":{"type":["string","null"]},"sourceText":{"type":"string"},"sourceUrl":{"type":["string","null"]},"textSha256":{"type":"string"},"version":{"type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["version","requiresReview","draft","sourceText","textSha256","observedAt","citations","warnings"],"type":"object"},"Report":{"additionalProperties":false,"properties":{"configuredModel":{"type":"string"},"inputBlocks":{"format":"uint","minimum":0,"type":"integer"},"promptHash":{"type":"string"},"providerAttempts":{"format":"uint32","minimum":0,"type":"integer"},"reservedCostUsd":{"format":"double","type":["number","null"]},"selectedBlocks":{"format":"uint","minimum":0,"type":"integer"},"status":{"type":"string"},"version":{"type":"string"}},"required":["version","status","configuredModel","promptHash","providerAttempts","inputBlocks","selectedBlocks"],"type":"object"},"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Output"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Propose an ephemeral reviewed supplier draft from bounded literal text. UTF-8 byte-range citations and source hash; no inferred eligibility, stored writes or model calls. Requires profiles:write.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"maxKeywords":{"default":12,"format":"uint","maximum":20,"minimum":1,"type":"integer"},"name":{"type":["string","null"]},"text":{"description":"Nonempty supplier source text, at most 32768 UTF-8 bytes; inert unverified data.","type":"string"}},"required":["text"],"title":"TextInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"extract_supplier_text","ontologyConcepts":["SupplierDraft"],"outputSchema":{"$defs":{"Citation":{"additionalProperties":false,"properties":{"endByte":{"format":"uint","minimum":0,"type":"integer"},"field":{"type":"string"},"quote":{"type":"string"},"ruleId":{"type":"string"},"startByte":{"format":"uint","minimum":0,"type":"integer"}},"required":["field","ruleId","startByte","endByte","quote"],"type":"object"},"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"Proposal":{"additionalProperties":false,"properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Present for server-retrieved website text when the operator configured an attestation key."},"citations":{"items":{"$ref":"#/$defs/Citation"},"type":"array"},"draft":{"$ref":"#/$defs/ProfileDraft"},"observedAt":{"format":"date-time","type":"string"},"requiresReview":{"type":"boolean"},"sourceSha256":{"type":["string","null"]},"sourceText":{"type":"string"},"sourceUrl":{"type":["string","null"]},"textSha256":{"type":"string"},"version":{"type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["version","requiresReview","draft","sourceText","textSha256","observedAt","citations","warnings"],"type":"object"},"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Proposal"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":true,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Read one operator-allowlisted HTTPS supplier page within 20 seconds and 256 KiB; return an ephemeral literal draft with hashes and text citations. No cookies, SAM credentials, scripts, linked-page crawl or model calls; saving is separate.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"followLinks":{"description":"Follow up to this many same-host allowlisted links from the first page (document order).","format":"uint32","maximum":3,"minimum":0,"type":"integer"},"maxKeywords":{"default":12,"format":"uint","maximum":20,"minimum":1,"type":"integer"},"name":{"type":["string","null"]},"url":{"description":"Operator-allowlisted HTTPS page, max 2048 bytes, no credentials/query/fragment.","type":"string"}},"required":["url"],"title":"WebsiteInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"extract_supplier_website","ontologyConcepts":["SupplierDraft"],"outputSchema":{"$defs":{"Citation":{"additionalProperties":false,"properties":{"endByte":{"format":"uint","minimum":0,"type":"integer"},"field":{"type":"string"},"quote":{"type":"string"},"ruleId":{"type":"string"},"startByte":{"format":"uint","minimum":0,"type":"integer"}},"required":["field","ruleId","startByte","endByte","quote"],"type":"object"},"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"Proposal":{"additionalProperties":false,"properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Present for server-retrieved website text when the operator configured an attestation key."},"citations":{"items":{"$ref":"#/$defs/Citation"},"type":"array"},"draft":{"$ref":"#/$defs/ProfileDraft"},"observedAt":{"format":"date-time","type":"string"},"requiresReview":{"type":"boolean"},"sourceSha256":{"type":["string","null"]},"sourceText":{"type":"string"},"sourceUrl":{"type":["string","null"]},"textSha256":{"type":"string"},"version":{"type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["version","requiresReview","draft","sourceText","textSha256","observedAt","citations","warnings"],"type":"object"},"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Proposal"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Create an owner-scoped reviewed profile with optional immutable caller-submitted source provenance. Regenerate literal citations; never fetch the submitted URL or infer eligibility. Retry with the same requestKey and identical inputs.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"},"SourceInput":{"additionalProperties":false,"description":"Caller-submitted source retained only by an explicit profile creation.","properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Optional retrieval attestation from extract_supplier_website for exactly this text."},"draftName":{"type":"string"},"maxKeywords":{"default":12,"format":"uint","maximum":20,"minimum":1,"type":"integer"},"reportedObservedAt":{"format":"date-time","type":["string","null"]},"sourceSha256":{"description":"Caller-reported downloaded-byte SHA-256, never verified by this save operation.","type":["string","null"]},"sourceUrl":{"description":"Optional caller-attributed website URL; saving never retrieves this URL.","type":["string","null"]},"text":{"description":"At most 32768 UTF-8 bytes. Rust regenerates literal citations from this text.","type":"string"}},"required":["text","draftName"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"profile":{"$ref":"#/$defs/ProfileDraft"},"requestKey":{"type":"string"},"source":{"anyOf":[{"$ref":"#/$defs/SourceInput"},{"type":"null"}],"description":"Optional immutable creation source; caller attribution remains unverified."}},"required":["requestKey","profile"],"title":"CreateProfile","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"create_profile","ontologyConcepts":["Profile"],"outputSchema":{"$defs":{"Profile":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"description":"User assertions are not verified certifications.","type":"object"},"createdAt":{"format":"date-time","type":"string"},"exclusions":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"keywords":{"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"items":{"type":"string"},"type":"array"},"ownerId":{"type":"string"},"setAsides":{"items":{"type":"string"},"type":"array"},"states":{"items":{"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","name","keywords","exclusions","naicsPrefixes","setAsides","states","noticeTypes","assertions","createdAt","updatedAt"],"type":"object"},"ProfileRecord":{"properties":{"profile":{"$ref":"#/$defs/Profile"},"recordVersion":{"format":"int64","type":"integer"},"sourceProvenance":{"anyOf":[{"$ref":"#/$defs/ProvenanceSummary"},{"type":"null"}]}},"required":["profile","recordVersion"],"type":"object"},"ProvenanceSummary":{"additionalProperties":false,"properties":{"attribution":{"description":"callerSubmitted, or serverRetrievalAttested when a valid retrieval attestation matched.","type":"string"},"extractionVersion":{"type":"string"},"profileVersion":{"format":"int64","type":"integer"},"retainedAt":{"format":"date-time","type":"string"},"retrievedAt":{"format":"date-time","type":["string","null"]},"retrievedPages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"sourceRetrievalVerified":{"description":"True only for a verified attestation: Rust retrieved the pages and derived this text.\nIt never verifies supplier qualifications.","type":"boolean"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","extractionVersion","profileVersion","retainedAt","textSha256","attribution","sourceRetrievalVerified"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/ProfileRecord"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_profile","ontologyConcepts":["Profile"],"outputSchema":{"$defs":{"Profile":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"description":"User assertions are not verified certifications.","type":"object"},"createdAt":{"format":"date-time","type":"string"},"exclusions":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"keywords":{"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"items":{"type":"string"},"type":"array"},"ownerId":{"type":"string"},"setAsides":{"items":{"type":"string"},"type":"array"},"states":{"items":{"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","name","keywords","exclusions","naicsPrefixes","setAsides","states","noticeTypes","assertions","createdAt","updatedAt"],"type":"object"},"ProfileRecord":{"properties":{"profile":{"$ref":"#/$defs/Profile"},"recordVersion":{"format":"int64","type":"integer"},"sourceProvenance":{"anyOf":[{"$ref":"#/$defs/ProvenanceSummary"},{"type":"null"}]}},"required":["profile","recordVersion"],"type":"object"},"ProvenanceSummary":{"additionalProperties":false,"properties":{"attribution":{"description":"callerSubmitted, or serverRetrievalAttested when a valid retrieval attestation matched.","type":"string"},"extractionVersion":{"type":"string"},"profileVersion":{"format":"int64","type":"integer"},"retainedAt":{"format":"date-time","type":"string"},"retrievedAt":{"format":"date-time","type":["string","null"]},"retrievedPages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"sourceRetrievalVerified":{"description":"True only for a verified attestation: Rust retrieved the pages and derived this text.\nIt never verifies supplier qualifications.","type":"boolean"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","extractionVersion","profileVersion","retainedAt","textSha256","attribution","sourceRetrievalVerified"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/ProfileRecord"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Read the owner-scoped immutable creation source, regenerated literal draft and byte citations. Caller-submitted attribution is unverified; later profile edits and eligibility declarations are not supported by this source automatically.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_profile_provenance","ontologyConcepts":["SupplierSourceProvenance"],"outputSchema":{"$defs":{"Citation":{"additionalProperties":false,"properties":{"endByte":{"format":"uint","minimum":0,"type":"integer"},"field":{"type":"string"},"quote":{"type":"string"},"ruleId":{"type":"string"},"startByte":{"format":"uint","minimum":0,"type":"integer"}},"required":["field","ruleId","startByte","endByte","quote"],"type":"object"},"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"Provenance":{"additionalProperties":false,"properties":{"citations":{"items":{"$ref":"#/$defs/Citation"},"type":"array"},"extractedDraft":{"$ref":"#/$defs/ProfileDraft"},"source":{"$ref":"#/$defs/SourceInput"},"summary":{"$ref":"#/$defs/ProvenanceSummary"}},"required":["summary","source","extractedDraft","citations"],"type":"object"},"ProvenanceSummary":{"additionalProperties":false,"properties":{"attribution":{"description":"callerSubmitted, or serverRetrievalAttested when a valid retrieval attestation matched.","type":"string"},"extractionVersion":{"type":"string"},"profileVersion":{"format":"int64","type":"integer"},"retainedAt":{"format":"date-time","type":"string"},"retrievedAt":{"format":"date-time","type":["string","null"]},"retrievedPages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"sourceRetrievalVerified":{"description":"True only for a verified attestation: Rust retrieved the pages and derived this text.\nIt never verifies supplier qualifications.","type":"boolean"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","extractionVersion","profileVersion","retainedAt","textSha256","attribution","sourceRetrievalVerified"],"type":"object"},"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"},"SourceInput":{"additionalProperties":false,"description":"Caller-submitted source retained only by an explicit profile creation.","properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Optional retrieval attestation from extract_supplier_website for exactly this text."},"draftName":{"type":"string"},"maxKeywords":{"default":12,"format":"uint","maximum":20,"minimum":1,"type":"integer"},"reportedObservedAt":{"format":"date-time","type":["string","null"]},"sourceSha256":{"description":"Caller-reported downloaded-byte SHA-256, never verified by this save operation.","type":["string","null"]},"sourceUrl":{"description":"Optional caller-attributed website URL; saving never retrieves this URL.","type":["string","null"]},"text":{"description":"At most 32768 UTF-8 bytes. Rust regenerates literal citations from this text.","type":"string"}},"required":["text","draftName"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Provenance"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Append an immutable supplier source revision to an owned profile. Rust regenerates literal citations; a valid retrieval attestation from extract_supplier_website marks the text server-retrieved (never supplier-qualified). Requires requestKey; maximum 50 revisions.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"},"SourceInput":{"additionalProperties":false,"description":"Caller-submitted source retained only by an explicit profile creation.","properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Optional retrieval attestation from extract_supplier_website for exactly this text."},"draftName":{"type":"string"},"maxKeywords":{"default":12,"format":"uint","maximum":20,"minimum":1,"type":"integer"},"reportedObservedAt":{"format":"date-time","type":["string","null"]},"sourceSha256":{"description":"Caller-reported downloaded-byte SHA-256, never verified by this save operation.","type":["string","null"]},"sourceUrl":{"description":"Optional caller-attributed website URL; saving never retrieves this URL.","type":["string","null"]},"text":{"description":"At most 32768 UTF-8 bytes. Rust regenerates literal citations from this text.","type":"string"}},"required":["text","draftName"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"profileId":{"type":"string"},"requestKey":{"type":"string"},"source":{"$ref":"#/$defs/SourceInput"}},"required":["requestKey","profileId","source"],"title":"AddSource","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"add_profile_source","ontologyConcepts":["SupplierSourceRevision"],"outputSchema":{"$defs":{"ProvenanceSummary":{"additionalProperties":false,"properties":{"attribution":{"description":"callerSubmitted, or serverRetrievalAttested when a valid retrieval attestation matched.","type":"string"},"extractionVersion":{"type":"string"},"profileVersion":{"format":"int64","type":"integer"},"retainedAt":{"format":"date-time","type":"string"},"retrievedAt":{"format":"date-time","type":["string","null"]},"retrievedPages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"sourceRetrievalVerified":{"description":"True only for a verified attestation: Rust retrieved the pages and derived this text.\nIt never verifies supplier qualifications.","type":"boolean"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","extractionVersion","profileVersion","retainedAt","textSha256","attribution","sourceRetrievalVerified"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"},"SourceRevision":{"properties":{"ordinal":{"format":"int32","type":"integer"},"profileId":{"type":"string"},"retainedAt":{"format":"date-time","type":"string"},"summary":{"$ref":"#/$defs/ProvenanceSummary"}},"required":["profileId","ordinal","retainedAt","summary"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/SourceRevision"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"List an owned profile's supplier source revisions with attribution and retrieval-verification summaries.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterOrdinal":{"format":"uint32","minimum":0,"type":["integer","null"]},"id":{"type":"string"},"limit":{"default":20,"format":"uint32","maximum":50,"minimum":1,"type":"integer"}},"required":["id"],"title":"SourceListing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_profile_sources","ontologyConcepts":["SupplierSourceRevision"],"outputSchema":{"$defs":{"ProvenanceSummary":{"additionalProperties":false,"properties":{"attribution":{"description":"callerSubmitted, or serverRetrievalAttested when a valid retrieval attestation matched.","type":"string"},"extractionVersion":{"type":"string"},"profileVersion":{"format":"int64","type":"integer"},"retainedAt":{"format":"date-time","type":"string"},"retrievedAt":{"format":"date-time","type":["string","null"]},"retrievedPages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"sourceRetrievalVerified":{"description":"True only for a verified attestation: Rust retrieved the pages and derived this text.\nIt never verifies supplier qualifications.","type":"boolean"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","extractionVersion","profileVersion","retainedAt","textSha256","attribution","sourceRetrievalVerified"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"},"SourcePage":{"properties":{"items":{"items":{"$ref":"#/$defs/SourceRevision"},"type":"array"},"nextAfterOrdinal":{"format":"int32","type":["integer","null"]}},"required":["items"],"type":"object"},"SourceRevision":{"properties":{"ordinal":{"format":"int32","type":"integer"},"profileId":{"type":"string"},"retainedAt":{"format":"date-time","type":"string"},"summary":{"$ref":"#/$defs/ProvenanceSummary"}},"required":["profileId","ordinal","retainedAt","summary"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/SourcePage"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Read one owned supplier source revision: retained text, regenerated draft, citations and any verified retrieval attestation.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"},"ordinal":{"format":"uint32","maximum":50,"minimum":1,"type":"integer"}},"required":["id","ordinal"],"title":"SourceSelection","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_profile_source","ontologyConcepts":["SupplierSourceRevision"],"outputSchema":{"$defs":{"Citation":{"additionalProperties":false,"properties":{"endByte":{"format":"uint","minimum":0,"type":"integer"},"field":{"type":"string"},"quote":{"type":"string"},"ruleId":{"type":"string"},"startByte":{"format":"uint","minimum":0,"type":"integer"}},"required":["field","ruleId","startByte","endByte","quote"],"type":"object"},"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"Provenance":{"additionalProperties":false,"properties":{"citations":{"items":{"$ref":"#/$defs/Citation"},"type":"array"},"extractedDraft":{"$ref":"#/$defs/ProfileDraft"},"source":{"$ref":"#/$defs/SourceInput"},"summary":{"$ref":"#/$defs/ProvenanceSummary"}},"required":["summary","source","extractedDraft","citations"],"type":"object"},"ProvenanceSummary":{"additionalProperties":false,"properties":{"attribution":{"description":"callerSubmitted, or serverRetrievalAttested when a valid retrieval attestation matched.","type":"string"},"extractionVersion":{"type":"string"},"profileVersion":{"format":"int64","type":"integer"},"retainedAt":{"format":"date-time","type":"string"},"retrievedAt":{"format":"date-time","type":["string","null"]},"retrievedPages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"sourceRetrievalVerified":{"description":"True only for a verified attestation: Rust retrieved the pages and derived this text.\nIt never verifies supplier qualifications.","type":"boolean"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","extractionVersion","profileVersion","retainedAt","textSha256","attribution","sourceRetrievalVerified"],"type":"object"},"RetrievalAttestation":{"additionalProperties":false,"description":"Server-signed statement that Rust retrieved these pages and derived exactly this text.","properties":{"pages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"retrievedAt":{"format":"date-time","type":"string"},"signature":{"description":"Hex HMAC-SHA256 under the operator attestation key; opaque to callers.","type":"string"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","pages","textSha256","retrievedAt","signature"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"},"SourceDetail":{"properties":{"ordinal":{"format":"int32","type":"integer"},"profileId":{"type":"string"},"provenance":{"$ref":"#/$defs/Provenance"}},"required":["profileId","ordinal","provenance"],"type":"object"},"SourceInput":{"additionalProperties":false,"description":"Caller-submitted source retained only by an explicit profile creation.","properties":{"attestation":{"anyOf":[{"$ref":"#/$defs/RetrievalAttestation"},{"type":"null"}],"description":"Optional retrieval attestation from extract_supplier_website for exactly this text."},"draftName":{"type":"string"},"maxKeywords":{"default":12,"format":"uint","maximum":20,"minimum":1,"type":"integer"},"reportedObservedAt":{"format":"date-time","type":["string","null"]},"sourceSha256":{"description":"Caller-reported downloaded-byte SHA-256, never verified by this save operation.","type":["string","null"]},"sourceUrl":{"description":"Optional caller-attributed website URL; saving never retrieves this URL.","type":["string","null"]},"text":{"description":"At most 32768 UTF-8 bytes. Rust regenerates literal citations from this text.","type":"string"}},"required":["text","draftName"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/SourceDetail"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"title":"Listing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_profiles","ontologyConcepts":["Profile"],"outputSchema":{"$defs":{"Page":{"properties":{"items":{"items":{"$ref":"#/$defs/ProfileRecord"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"},"Profile":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"description":"User assertions are not verified certifications.","type":"object"},"createdAt":{"format":"date-time","type":"string"},"exclusions":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"keywords":{"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"items":{"type":"string"},"type":"array"},"ownerId":{"type":"string"},"setAsides":{"items":{"type":"string"},"type":"array"},"states":{"items":{"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","name","keywords","exclusions","naicsPrefixes","setAsides","states","noticeTypes","assertions","createdAt","updatedAt"],"type":"object"},"ProfileRecord":{"properties":{"profile":{"$ref":"#/$defs/Profile"},"recordVersion":{"format":"int64","type":"integer"},"sourceProvenance":{"anyOf":[{"$ref":"#/$defs/ProvenanceSummary"},{"type":"null"}]}},"required":["profile","recordVersion"],"type":"object"},"ProvenanceSummary":{"additionalProperties":false,"properties":{"attribution":{"description":"callerSubmitted, or serverRetrievalAttested when a valid retrieval attestation matched.","type":"string"},"extractionVersion":{"type":"string"},"profileVersion":{"format":"int64","type":"integer"},"retainedAt":{"format":"date-time","type":"string"},"retrievedAt":{"format":"date-time","type":["string","null"]},"retrievedPages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"sourceRetrievalVerified":{"description":"True only for a verified attestation: Rust retrieved the pages and derived this text.\nIt never verifies supplier qualifications.","type":"boolean"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","extractionVersion","profileVersion","retainedAt","textSha256","attribution","sourceRetrievalVerified"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Page"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"ProfileDraft":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"default":{},"type":"object"},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"keywords":{"default":[],"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"},"profile":{"$ref":"#/$defs/ProfileDraft"}},"required":["id","expectedVersion","profile"],"title":"UpdateProfile","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"update_profile","ontologyConcepts":["Profile"],"outputSchema":{"$defs":{"Profile":{"additionalProperties":false,"properties":{"assertions":{"additionalProperties":true,"description":"User assertions are not verified certifications.","type":"object"},"createdAt":{"format":"date-time","type":"string"},"exclusions":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"keywords":{"items":{"type":"string"},"type":"array"},"minimumDaysToDeadline":{"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"narrative":{"type":["string","null"]},"noticeTypes":{"items":{"type":"string"},"type":"array"},"ownerId":{"type":"string"},"setAsides":{"items":{"type":"string"},"type":"array"},"states":{"items":{"type":"string"},"type":"array"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","name","keywords","exclusions","naicsPrefixes","setAsides","states","noticeTypes","assertions","createdAt","updatedAt"],"type":"object"},"ProfileRecord":{"properties":{"profile":{"$ref":"#/$defs/Profile"},"recordVersion":{"format":"int64","type":"integer"},"sourceProvenance":{"anyOf":[{"$ref":"#/$defs/ProvenanceSummary"},{"type":"null"}]}},"required":["profile","recordVersion"],"type":"object"},"ProvenanceSummary":{"additionalProperties":false,"properties":{"attribution":{"description":"callerSubmitted, or serverRetrievalAttested when a valid retrieval attestation matched.","type":"string"},"extractionVersion":{"type":"string"},"profileVersion":{"format":"int64","type":"integer"},"retainedAt":{"format":"date-time","type":"string"},"retrievedAt":{"format":"date-time","type":["string","null"]},"retrievedPages":{"items":{"$ref":"#/$defs/RetrievedPage"},"type":"array"},"sourceRetrievalVerified":{"description":"True only for a verified attestation: Rust retrieved the pages and derived this text.\nIt never verifies supplier qualifications.","type":"boolean"},"textSha256":{"type":"string"},"version":{"type":"string"}},"required":["version","extractionVersion","profileVersion","retainedAt","textSha256","attribution","sourceRetrievalVerified"],"type":"object"},"RetrievedPage":{"additionalProperties":false,"properties":{"sha256":{"description":"SHA-256 of the downloaded bytes.","type":"string"},"url":{"type":"string"}},"required":["url","sha256"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/ProfileRecord"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"delete_profile","ontologyConcepts":["Profile"],"outputSchema":{"$defs":{"Deleted":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"previousVersion":{"format":"int64","type":"integer"}},"required":["id","deleted","previousVersion"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Deleted"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"profiles:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"Filters":{"additionalProperties":false,"properties":{"active":{"default":null,"type":["boolean","null"]},"agencyIds":{"default":[],"items":{"type":"string"},"type":"array"},"countries":{"default":[],"items":{"type":"string"},"type":"array"},"deadlineFrom":{"default":null,"format":"date-time","type":["string","null"]},"deadlineTo":{"default":null,"format":"date-time","type":["string","null"]},"minimumDaysToDeadline":{"default":null,"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"postedFrom":{"default":null,"format":"date","type":["string","null"]},"postedTo":{"default":null,"format":"date","type":["string","null"]},"pscCodes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"type":"object"},"QueryEmbedding":{"additionalProperties":false,"properties":{"minimumSimilarity":{"default":0.2,"format":"double","type":"number"},"model":{"type":"string"},"spaceId":{"type":"string"},"values":{"items":{"format":"double","type":"number"},"type":"array"}},"required":["spaceId","model","values"],"type":"object"},"Request":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"cursor":{"type":["string","null"]},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"filters":{"$ref":"#/$defs/Filters","default":{"active":null,"agencyIds":[],"countries":[],"deadlineFrom":null,"deadlineTo":null,"minimumDaysToDeadline":null,"naicsPrefixes":[],"noticeTypes":[],"postedFrom":null,"postedTo":null,"pscCodes":[],"setAsides":[],"states":[]}},"limit":{"default":25,"format":"uint","minimum":0,"type":"integer"},"q":{"type":["string","null"]},"queryEmbedding":{"anyOf":[{"$ref":"#/$defs/QueryEmbedding"},{"type":"null"}]},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"type":"object"},"SearchDraft":{"additionalProperties":false,"properties":{"name":{"type":"string"},"query":{"$ref":"#/$defs/Request"}},"required":["name","query"],"type":"object"},"UnknownPolicy":{"enum":["exclude","include"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"requestKey":{"type":"string"},"search":{"$ref":"#/$defs/SearchDraft"}},"required":["requestKey","search"],"title":"CreateSearch","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"create_saved_search","ontologyConcepts":["SavedSearch"],"outputSchema":{"$defs":{"Filters":{"additionalProperties":false,"properties":{"active":{"default":null,"type":["boolean","null"]},"agencyIds":{"default":[],"items":{"type":"string"},"type":"array"},"countries":{"default":[],"items":{"type":"string"},"type":"array"},"deadlineFrom":{"default":null,"format":"date-time","type":["string","null"]},"deadlineTo":{"default":null,"format":"date-time","type":["string","null"]},"minimumDaysToDeadline":{"default":null,"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"postedFrom":{"default":null,"format":"date","type":["string","null"]},"postedTo":{"default":null,"format":"date","type":["string","null"]},"pscCodes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"type":"object"},"QueryEmbedding":{"additionalProperties":false,"properties":{"minimumSimilarity":{"default":0.2,"format":"double","type":"number"},"model":{"type":"string"},"spaceId":{"type":"string"},"values":{"items":{"format":"double","type":"number"},"type":"array"}},"required":["spaceId","model","values"],"type":"object"},"Request":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"cursor":{"type":["string","null"]},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"filters":{"$ref":"#/$defs/Filters","default":{"active":null,"agencyIds":[],"countries":[],"deadlineFrom":null,"deadlineTo":null,"minimumDaysToDeadline":null,"naicsPrefixes":[],"noticeTypes":[],"postedFrom":null,"postedTo":null,"pscCodes":[],"setAsides":[],"states":[]}},"limit":{"default":25,"format":"uint","minimum":0,"type":"integer"},"q":{"type":["string","null"]},"queryEmbedding":{"anyOf":[{"$ref":"#/$defs/QueryEmbedding"},{"type":"null"}]},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"type":"object"},"SavedSearch":{"properties":{"createdAt":{"format":"date-time","type":"string"},"definitionVersion":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":"string"},"query":{"$ref":"#/$defs/Request"},"recordVersion":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","name","query","definitionVersion","recordVersion","enabled","createdAt","updatedAt"],"type":"object"},"UnknownPolicy":{"enum":["exclude","include"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/SavedSearch"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"searches:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"ResourceInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"get_saved_search","ontologyConcepts":["SavedSearch"],"outputSchema":{"$defs":{"Filters":{"additionalProperties":false,"properties":{"active":{"default":null,"type":["boolean","null"]},"agencyIds":{"default":[],"items":{"type":"string"},"type":"array"},"countries":{"default":[],"items":{"type":"string"},"type":"array"},"deadlineFrom":{"default":null,"format":"date-time","type":["string","null"]},"deadlineTo":{"default":null,"format":"date-time","type":["string","null"]},"minimumDaysToDeadline":{"default":null,"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"postedFrom":{"default":null,"format":"date","type":["string","null"]},"postedTo":{"default":null,"format":"date","type":["string","null"]},"pscCodes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"type":"object"},"QueryEmbedding":{"additionalProperties":false,"properties":{"minimumSimilarity":{"default":0.2,"format":"double","type":"number"},"model":{"type":"string"},"spaceId":{"type":"string"},"values":{"items":{"format":"double","type":"number"},"type":"array"}},"required":["spaceId","model","values"],"type":"object"},"Request":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"cursor":{"type":["string","null"]},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"filters":{"$ref":"#/$defs/Filters","default":{"active":null,"agencyIds":[],"countries":[],"deadlineFrom":null,"deadlineTo":null,"minimumDaysToDeadline":null,"naicsPrefixes":[],"noticeTypes":[],"postedFrom":null,"postedTo":null,"pscCodes":[],"setAsides":[],"states":[]}},"limit":{"default":25,"format":"uint","minimum":0,"type":"integer"},"q":{"type":["string","null"]},"queryEmbedding":{"anyOf":[{"$ref":"#/$defs/QueryEmbedding"},{"type":"null"}]},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"type":"object"},"SavedSearch":{"properties":{"createdAt":{"format":"date-time","type":"string"},"definitionVersion":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":"string"},"query":{"$ref":"#/$defs/Request"},"recordVersion":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","name","query","definitionVersion","recordVersion","enabled","createdAt","updatedAt"],"type":"object"},"UnknownPolicy":{"enum":["exclude","include"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/SavedSearch"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"searches:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterId":{"type":["string","null"]},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"title":"Listing","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"list_saved_searches","ontologyConcepts":["SavedSearch"],"outputSchema":{"$defs":{"Filters":{"additionalProperties":false,"properties":{"active":{"default":null,"type":["boolean","null"]},"agencyIds":{"default":[],"items":{"type":"string"},"type":"array"},"countries":{"default":[],"items":{"type":"string"},"type":"array"},"deadlineFrom":{"default":null,"format":"date-time","type":["string","null"]},"deadlineTo":{"default":null,"format":"date-time","type":["string","null"]},"minimumDaysToDeadline":{"default":null,"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"postedFrom":{"default":null,"format":"date","type":["string","null"]},"postedTo":{"default":null,"format":"date","type":["string","null"]},"pscCodes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"type":"object"},"Page":{"properties":{"items":{"items":{"$ref":"#/$defs/SavedSearch"},"type":"array"},"limit":{"format":"uint","minimum":0,"type":"integer"},"nextAfterId":{"type":["string","null"]}},"required":["items","limit"],"type":"object"},"QueryEmbedding":{"additionalProperties":false,"properties":{"minimumSimilarity":{"default":0.2,"format":"double","type":"number"},"model":{"type":"string"},"spaceId":{"type":"string"},"values":{"items":{"format":"double","type":"number"},"type":"array"}},"required":["spaceId","model","values"],"type":"object"},"Request":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"cursor":{"type":["string","null"]},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"filters":{"$ref":"#/$defs/Filters","default":{"active":null,"agencyIds":[],"countries":[],"deadlineFrom":null,"deadlineTo":null,"minimumDaysToDeadline":null,"naicsPrefixes":[],"noticeTypes":[],"postedFrom":null,"postedTo":null,"pscCodes":[],"setAsides":[],"states":[]}},"limit":{"default":25,"format":"uint","minimum":0,"type":"integer"},"q":{"type":["string","null"]},"queryEmbedding":{"anyOf":[{"$ref":"#/$defs/QueryEmbedding"},{"type":"null"}]},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"type":"object"},"SavedSearch":{"properties":{"createdAt":{"format":"date-time","type":"string"},"definitionVersion":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":"string"},"query":{"$ref":"#/$defs/Request"},"recordVersion":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","name","query","definitionVersion","recordVersion","enabled","createdAt","updatedAt"],"type":"object"},"UnknownPolicy":{"enum":["exclude","include"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Page"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"searches:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"Filters":{"additionalProperties":false,"properties":{"active":{"default":null,"type":["boolean","null"]},"agencyIds":{"default":[],"items":{"type":"string"},"type":"array"},"countries":{"default":[],"items":{"type":"string"},"type":"array"},"deadlineFrom":{"default":null,"format":"date-time","type":["string","null"]},"deadlineTo":{"default":null,"format":"date-time","type":["string","null"]},"minimumDaysToDeadline":{"default":null,"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"postedFrom":{"default":null,"format":"date","type":["string","null"]},"postedTo":{"default":null,"format":"date","type":["string","null"]},"pscCodes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"type":"object"},"QueryEmbedding":{"additionalProperties":false,"properties":{"minimumSimilarity":{"default":0.2,"format":"double","type":"number"},"model":{"type":"string"},"spaceId":{"type":"string"},"values":{"items":{"format":"double","type":"number"},"type":"array"}},"required":["spaceId","model","values"],"type":"object"},"Request":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"cursor":{"type":["string","null"]},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"filters":{"$ref":"#/$defs/Filters","default":{"active":null,"agencyIds":[],"countries":[],"deadlineFrom":null,"deadlineTo":null,"minimumDaysToDeadline":null,"naicsPrefixes":[],"noticeTypes":[],"postedFrom":null,"postedTo":null,"pscCodes":[],"setAsides":[],"states":[]}},"limit":{"default":25,"format":"uint","minimum":0,"type":"integer"},"q":{"type":["string","null"]},"queryEmbedding":{"anyOf":[{"$ref":"#/$defs/QueryEmbedding"},{"type":"null"}]},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"type":"object"},"SearchDraft":{"additionalProperties":false,"properties":{"name":{"type":"string"},"query":{"$ref":"#/$defs/Request"}},"required":["name","query"],"type":"object"},"UnknownPolicy":{"enum":["exclude","include"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"},"search":{"$ref":"#/$defs/SearchDraft"}},"required":["id","expectedVersion","search"],"title":"UpdateSearch","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"update_saved_search","ontologyConcepts":["SavedSearch"],"outputSchema":{"$defs":{"Filters":{"additionalProperties":false,"properties":{"active":{"default":null,"type":["boolean","null"]},"agencyIds":{"default":[],"items":{"type":"string"},"type":"array"},"countries":{"default":[],"items":{"type":"string"},"type":"array"},"deadlineFrom":{"default":null,"format":"date-time","type":["string","null"]},"deadlineTo":{"default":null,"format":"date-time","type":["string","null"]},"minimumDaysToDeadline":{"default":null,"format":"uint32","minimum":0,"type":["integer","null"]},"naicsPrefixes":{"default":[],"items":{"type":"string"},"type":"array"},"noticeTypes":{"default":[],"items":{"type":"string"},"type":"array"},"postedFrom":{"default":null,"format":"date","type":["string","null"]},"postedTo":{"default":null,"format":"date","type":["string","null"]},"pscCodes":{"default":[],"items":{"type":"string"},"type":"array"},"setAsides":{"default":[],"items":{"type":"string"},"type":"array"},"states":{"default":[],"items":{"type":"string"},"type":"array"}},"type":"object"},"QueryEmbedding":{"additionalProperties":false,"properties":{"minimumSimilarity":{"default":0.2,"format":"double","type":"number"},"model":{"type":"string"},"spaceId":{"type":"string"},"values":{"items":{"format":"double","type":"number"},"type":"array"}},"required":["spaceId","model","values"],"type":"object"},"Request":{"additionalProperties":false,"properties":{"asOf":{"format":"date-time","type":["string","null"]},"cursor":{"type":["string","null"]},"exclusions":{"default":[],"items":{"type":"string"},"type":"array"},"filters":{"$ref":"#/$defs/Filters","default":{"active":null,"agencyIds":[],"countries":[],"deadlineFrom":null,"deadlineTo":null,"minimumDaysToDeadline":null,"naicsPrefixes":[],"noticeTypes":[],"postedFrom":null,"postedTo":null,"pscCodes":[],"setAsides":[],"states":[]}},"limit":{"default":25,"format":"uint","minimum":0,"type":"integer"},"q":{"type":["string","null"]},"queryEmbedding":{"anyOf":[{"$ref":"#/$defs/QueryEmbedding"},{"type":"null"}]},"unknownPolicy":{"$ref":"#/$defs/UnknownPolicy","default":"exclude"}},"type":"object"},"SavedSearch":{"properties":{"createdAt":{"format":"date-time","type":"string"},"definitionVersion":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":"string"},"query":{"$ref":"#/$defs/Request"},"recordVersion":{"format":"int64","type":"integer"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","name","query","definitionVersion","recordVersion","enabled","createdAt","updatedAt"],"type":"object"},"UnknownPolicy":{"enum":["exclude","include"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/SavedSearch"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"searches:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":false,"callsModel":false,"idempotent":false,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Owner-scoped resource operation. Creates require requestKey; updates/deletes require expectedVersion. Supplier declarations remain unverified.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"expectedVersion":{"format":"uint64","minimum":0,"type":"integer"},"id":{"type":"string"}},"required":["id","expectedVersion"],"title":"VersionInput","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":65536,"outputBytes":262144,"timeoutSeconds":30},"name":"delete_saved_search","ontologyConcepts":["SavedSearch"],"outputSchema":{"$defs":{"Deleted":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"previousVersion":{"format":"int64","type":"integer"}},"required":["id","deleted","previousVersion"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Deleted"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"searches:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":true,"callsModel":false,"idempotent":true,"queuesSourceWork":true,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Queue a caller-owned bounded SAM crawl with a durable requestKey; this call does not launch a worker or fetch source data.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$defs":{"BoundedCrawl":{"additionalProperties":false,"properties":{"maxPages":{"default":10,"format":"uint32","maximum":100,"minimum":1,"type":"integer"},"naics":{"type":["string","null"]},"noticeId":{"type":["string","null"]},"pageSize":{"default":100,"format":"uint32","maximum":1000,"minimum":1,"type":"integer"},"postedFrom":{"format":"date","type":"string"},"postedTo":{"format":"date","type":"string"},"setAside":{"type":["string","null"]},"state":{"type":["string","null"]},"title":{"type":["string","null"]}},"required":["postedFrom","postedTo"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"crawl":{"$ref":"#/$defs/BoundedCrawl"},"requestKey":{"type":"string"}},"required":["requestKey","crawl"],"title":"Start","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":16384,"outputBytes":262144,"timeoutSeconds":30},"name":"start_ingestion","ontologyConcepts":["Job"],"outputSchema":{"$defs":{"JobView":{"properties":{"attempt":{"format":"int32","type":"integer"},"cancellationRequested":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"maxAttempts":{"format":"int32","type":"integer"},"ownerId":{"type":"string"},"state":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","state","cancellationRequested","attempt","maxAttempts","createdAt","updatedAt"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/JobView"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"ingestion:write","version":"owned-user-tools-v1"},{"annotations":{"administrative":true,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":true,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":false},"authentication":"bearer","description":"Inspect a caller-owned SAM crawl checkpoint and bounded events; no raw payload, lease token or error text is returned.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"afterEventId":{"format":"int64","type":["integer","null"]},"id":{"type":"string"},"limit":{"default":25,"format":"uint","maximum":100,"minimum":1,"type":"integer"}},"required":["id"],"title":"Inspection","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":16384,"outputBytes":262144,"timeoutSeconds":30},"name":"get_ingestion_job","ontologyConcepts":["Job"],"outputSchema":{"$defs":{"Checkpoint":{"properties":{"completed":{"type":"boolean"},"fetched":{"format":"int64","type":"integer"},"nextPage":{"format":"int32","type":"integer"},"reportedTotal":{"format":"int64","type":["integer","null"]}},"required":["nextPage","fetched","completed"],"type":"object"},"Event":{"properties":{"eventType":{"type":"string"},"id":{"format":"int64","type":"integer"},"occurredAt":{"format":"date-time","type":"string"}},"required":["id","eventType","occurredAt"],"type":"object"},"InspectionResult":{"properties":{"checkpoint":{"$ref":"#/$defs/Checkpoint"},"events":{"items":{"$ref":"#/$defs/Event"},"type":"array"},"job":{"$ref":"#/$defs/JobView"},"nextAfterEventId":{"format":"int64","type":["integer","null"]}},"required":["job","checkpoint","events"],"type":"object"},"JobView":{"properties":{"attempt":{"format":"int32","type":"integer"},"cancellationRequested":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"maxAttempts":{"format":"int32","type":"integer"},"ownerId":{"type":"string"},"state":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","state","cancellationRequested","attempt","maxAttempts","createdAt","updatedAt"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/InspectionResult"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"ingestion:read","version":"owned-user-tools-v1"},{"annotations":{"administrative":true,"callsModel":false,"idempotent":true,"queuesSourceWork":false,"readOnly":false,"readsExternalSource":false,"sendsSourceToProvider":false,"userWrites":true},"authentication":"bearer","description":"Request cooperative cancellation of a caller-owned SAM crawl. Repeats are no-ops; completed work remains stored.","errorSchema":{"$defs":{"ErrorCode":{"enum":["invalidInput","unauthenticated","forbidden","notFound","conflict","resourceLimit","resultTooLarge","upstreamUnavailable","timeLimit"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"code":{"$ref":"#/$defs/ErrorCode"},"message":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message","retryable"],"title":"UserError","type":"object"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"id":{"type":"string"}},"required":["id"],"title":"Selection","type":"object"},"invocation":{"method":"POST","path":"/api/v1/user/invoke"},"limits":{"inputBytes":16384,"outputBytes":262144,"timeoutSeconds":30},"name":"cancel_ingestion_job","ontologyConcepts":["Job"],"outputSchema":{"$defs":{"Cancellation":{"properties":{"changed":{"type":"boolean"},"job":{"$ref":"#/$defs/JobView"}},"required":["job","changed"],"type":"object"},"JobView":{"properties":{"attempt":{"format":"int32","type":"integer"},"cancellationRequested":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"maxAttempts":{"format":"int32","type":"integer"},"ownerId":{"type":"string"},"state":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","ownerId","state","cancellationRequested","attempt","maxAttempts","createdAt","updatedAt"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"data":{"$ref":"#/$defs/Cancellation"},"name":{"type":"string"},"toolVersion":{"type":"string"}},"required":["toolVersion","name","data"],"title":"Output","type":"object"},"requiredScope":"ingestion:write","version":"owned-user-tools-v1"}]},"requestId":"9f3d72c3-051f-48b4-bafd-d7737496f392"}