{"openapi":"3.1.0","info":{"title":"Stratus One public interfaces","version":"2026-11-28.1","description":"Pilot. Public catalog reads, reviewed private consultations, and owner-only administration. Submission means receipt by this system only."},"servers":[{"url":"https://stratusone.dev","description":"Canonical site; use your current deployment origin when testing."}],"tags":[{"name":"Catalog"},{"name":"Consultations"},{"name":"Owner"},{"name":"Operations"}],"paths":{"/api/v1/business":{"get":{"operationId":"getBusinessProfile","tags":["Catalog"],"parameters":[{"name":"locale","in":"query","required":false,"schema":{"type":"string","enum":["en","zh"],"default":"en"},"description":"Invalid locale is a 400 validation error."}],"responses":{"200":{"description":"Versioned public business profile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessProfile"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/services":{"get":{"operationId":"listServices","tags":["Catalog"],"parameters":[{"name":"locale","in":"query","required":false,"schema":{"type":"string","enum":["en","zh"],"default":"en"},"description":"Invalid locale is a 400 validation error."}],"responses":{"200":{"description":"Versioned public service catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceList"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/services/{id}":{"get":{"operationId":"getService","tags":["Catalog"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","enum":["en","zh"],"default":"en"},"description":"Invalid locale is a 400 validation error."}],"responses":{"200":{"description":"Public service detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Service"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/consultations/drafts":{"post":{"operationId":"createConsultationDraft","tags":["Consultations"],"description":"Create a saved draft. Retry the identical normalized input with the same high-entropy key to receive the same draft and same capability. A changed input with that key returns 409. The server stores only hashes. No email is sent.","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","format":"uri"},"description":"Must match this deployment APP_ORIGIN. Cookie requests require the same origin."},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":32,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"description":"Cryptographically random, e.g. crypto.randomUUID(). Reuse only for retries of this creation attempt; keep private."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftInput"}}}},"responses":{"201":{"description":"Saved draft; Set-Cookie grants access only to this draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}},"headers":{"Set-Cookie":{"description":"stratus_draft_<uuid-without-dashes>; HttpOnly; SameSite=Strict; Secure on hosted deployments.","schema":{"type":"string"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/consultations/drafts/{id}":{"get":{"operationId":"readConsultationDraft","tags":["Consultations"],"description":"Private, no-store. Requires the per-draft HttpOnly capability cookie set by create. IDs alone grant no access. Confirmable for 24 hours; capability access is bounded to 30 days and retention. No token in URLs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"DraftCapability":[]}],"responses":{"200":{"description":"Saved draft or submitted receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"editConsultationDraft","tags":["Consultations"],"description":"Private, no-store. Requires the per-draft HttpOnly capability cookie set by create. IDs alone grant no access. Confirmable for 24 hours; capability access is bounded to 30 days and retention. No token in URLs. Only a current draft revision may be edited. Saving increments revision; review the returned contentHash again before confirming. Submitted original content is immutable.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string","format":"uri"},"description":"Must match this deployment APP_ORIGIN. Cookie requests require the same origin."}],"security":[{"DraftCapability":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditDraft"}}}},"responses":{"200":{"description":"New saved revision requiring review.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/consultations/drafts/{id}/confirm":{"post":{"operationId":"confirmConsultationDraft","tags":["Consultations"],"description":"Private, no-store. Requires the per-draft HttpOnly capability cookie set by create. IDs alone grant no access. Confirmable for 24 hours; capability access is bounded to 30 days and retention. No token in URLs. Atomically submit exactly the revision and hash reviewed. Concurrent/repeated confirmation of that revision returns the same receipt.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string","format":"uri"},"description":"Must match this deployment APP_ORIGIN. Cookie requests require the same origin."}],"security":[{"DraftCapability":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmDraft"}}}},"responses":{"200":{"description":"Actual database receipt, not an email, booking or contract.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/admin/consultations":{"get":{"operationId":"listOwnerConsultations","tags":["Owner"],"description":"Owner session and configured auth user ID allowlist required. Submitted records only. Maximum 100 newest records per request; stats describe all submitted records.","security":[{"OwnerSession":[]}],"parameters":[{"name":"followUpStatus","in":"query","required":false,"schema":{"type":"string","enum":["new","reviewing","closed"]}},{"name":"limit","in":"query","required":false,"schema":{"default":100,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Submitted inquiry list, aggregate stats, and effective limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerConsultations"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/admin/consultations/{id}":{"patch":{"operationId":"updateFollowUp","tags":["Owner"],"description":"Update follow-up status only; audit records the verified owner user ID.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string","format":"uri"},"description":"Must match this deployment APP_ORIGIN. Cookie requests require the same origin."}],"security":[{"OwnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpUpdate"}}}},"responses":{"200":{"description":"Updated record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/admin/consultations/export":{"get":{"operationId":"exportOwnerConsultations","tags":["Owner"],"description":"Submitted records only. Up to 1000 newest records, optionally filtered by followUpStatus. Quoted UTF-8 CSV; formula-leading values escaped. Verified owner authorization runs again here. Fields: id, receipt_reference, submitted_at_utc, follow_up_status, service_id, locale, name, email, company, website, goal.","parameters":[{"name":"followUpStatus","in":"query","required":false,"schema":{"type":"string","enum":["new","reviewing","closed"]}}],"security":[{"OwnerSession":[]}],"responses":{"200":{"description":"Private CSV attachment.","content":{"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected; no success is implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/health":{"get":{"operationId":"getHealth","tags":["Operations"],"description":"Non-secret configuration presence, not a connectivity guarantee.","responses":{"200":{"description":"Required service configuration present."},"503":{"description":"Required service configuration missing."}}}},"/api/openapi.json":{"get":{"operationId":"getOpenApi","tags":["Operations"],"responses":{"200":{"description":"This OpenAPI 3.1 contract.","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"securitySchemes":{"DraftCapability":{"type":"apiKey","in":"cookie","name":"stratus_draft_<uuid-without-dashes>","description":"Per-draft cookie set by creation. Placeholder name; actual name incorporates that draft ID. Not a bearer-token API."},"OwnerSession":{"type":"apiKey","in":"cookie","name":"__Secure-neon-auth.session_token","description":"Managed Neon Auth session token cookie from the installed SDK. The SDK verifies the server session; only configured owner IDs are authorized."}},"schemas":{"BusinessProfile":{"type":"object","properties":{"name":{"type":"string"},"endorsement":{"type":"string"},"tagline":{"type":"string"},"description":{"type":"string"},"locale":{"type":"string","enum":["en","zh"]},"contentVersion":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"languages":{"type":"array","items":{"type":"string","enum":["en","zh"]}},"website":{"type":"string"},"servicesUrl":{"type":"string"},"consultationUrl":{"type":"string"},"developersUrl":{"type":"string"},"status":{"type":"string","const":"pilot"}},"required":["name","endorsement","tagline","description","locale","contentVersion","updatedAt","languages","website","servicesUrl","consultationUrl","developersUrl","status"],"additionalProperties":false},"Service":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,79}$"},"locale":{"type":"string","enum":["en","zh"]},"name":{"type":"string"},"description":{"type":"string"},"audience":{"type":"array","items":{"type":"string"}},"scope":{"type":"array","items":{"type":"string"}},"deliverables":{"type":"array","items":{"type":"string"}},"limitations":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["pilot","exploratory"]},"contentVersion":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"detailsUrl":{"type":"string"},"consultationUrl":{"type":"string"}},"required":["id","locale","name","description","audience","scope","deliverables","limitations","status","contentVersion","updatedAt","detailsUrl","consultationUrl"],"additionalProperties":false},"ServiceList":{"type":"object","properties":{"locale":{"type":"string","enum":["en","zh"]},"contentVersion":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,79}$"},"locale":{"type":"string","enum":["en","zh"]},"name":{"type":"string"},"description":{"type":"string"},"audience":{"type":"array","items":{"type":"string"}},"scope":{"type":"array","items":{"type":"string"}},"deliverables":{"type":"array","items":{"type":"string"}},"limitations":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["pilot","exploratory"]},"contentVersion":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"detailsUrl":{"type":"string"},"consultationUrl":{"type":"string"}},"required":["id","locale","name","description","audience","scope","deliverables","limitations","status","contentVersion","updatedAt","detailsUrl","consultationUrl"],"additionalProperties":false}}},"required":["locale","contentVersion","updatedAt","services"],"additionalProperties":false},"DraftInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"company":{"type":"string","maxLength":160},"website":{"type":"string","maxLength":2048},"goal":{"type":"string","minLength":20,"maxLength":5000},"locale":{"type":"string","enum":["en","zh"]},"serviceId":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,79}$"},"privacyAcknowledged":{"type":"boolean","const":true}},"required":["name","email","goal","locale","serviceId","privacyAcknowledged"],"additionalProperties":false},"EditDraft":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"company":{"type":"string","maxLength":160},"website":{"type":"string","maxLength":2048},"goal":{"type":"string","minLength":20,"maxLength":5000},"locale":{"type":"string","enum":["en","zh"]},"serviceId":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,79}$"},"privacyAcknowledged":{"type":"boolean","const":true},"revision":{"type":"integer","minimum":1,"maximum":1000000}},"required":["name","email","goal","locale","serviceId","privacyAcknowledged","revision"],"additionalProperties":false},"ConfirmDraft":{"type":"object","properties":{"revision":{"type":"integer","minimum":1,"maximum":1000000},"contentHash":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision","contentHash"],"additionalProperties":false},"Draft":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","submitted"]},"followUpStatus":{"type":"string","enum":["new","reviewing","closed"]},"name":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"company":{"type":["string","null"]},"website":{"type":["string","null"]},"goal":{"type":"string"},"locale":{"type":"string","enum":["en","zh"]},"serviceId":{"type":"string"},"serviceSnapshot":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,79}$"},"locale":{"type":"string","enum":["en","zh"]},"name":{"type":"string"},"description":{"type":"string"},"audience":{"type":"array","items":{"type":"string"}},"scope":{"type":"array","items":{"type":"string"}},"deliverables":{"type":"array","items":{"type":"string"}},"limitations":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["pilot","exploratory"]},"contentVersion":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"detailsUrl":{"type":"string"},"consultationUrl":{"type":"string"}},"required":["id","locale","name","description","audience","scope","deliverables","limitations","status","contentVersion","updatedAt","detailsUrl","consultationUrl"],"additionalProperties":false},"catalogVersion":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentHash":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"receiptReference":{"type":["string","null"]},"privacyNoticeVersion":{"type":"string"}},"required":["id","status","followUpStatus","name","email","company","website","goal","locale","serviceId","serviceSnapshot","catalogVersion","revision","contentHash","createdAt","expiresAt","submittedAt","receiptReference","privacyNoticeVersion"],"additionalProperties":false},"Error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"fieldErrors":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["code","message","requestId"],"additionalProperties":false},"FollowUpUpdate":{"type":"object","properties":{"followUpStatus":{"type":"string","enum":["new","reviewing","closed"]}},"required":["followUpStatus"],"additionalProperties":false},"OwnerConsultations":{"type":"object","properties":{"consultations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","submitted"]},"followUpStatus":{"type":"string","enum":["new","reviewing","closed"]},"name":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"company":{"type":["string","null"]},"website":{"type":["string","null"]},"goal":{"type":"string"},"locale":{"type":"string","enum":["en","zh"]},"serviceId":{"type":"string"},"serviceSnapshot":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,79}$"},"locale":{"type":"string","enum":["en","zh"]},"name":{"type":"string"},"description":{"type":"string"},"audience":{"type":"array","items":{"type":"string"}},"scope":{"type":"array","items":{"type":"string"}},"deliverables":{"type":"array","items":{"type":"string"}},"limitations":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["pilot","exploratory"]},"contentVersion":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"detailsUrl":{"type":"string"},"consultationUrl":{"type":"string"}},"required":["id","locale","name","description","audience","scope","deliverables","limitations","status","contentVersion","updatedAt","detailsUrl","consultationUrl"],"additionalProperties":false},"catalogVersion":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentHash":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"receiptReference":{"type":["string","null"]},"privacyNoticeVersion":{"type":"string"}},"required":["id","status","followUpStatus","name","email","company","website","goal","locale","serviceId","serviceSnapshot","catalogVersion","revision","contentHash","createdAt","expiresAt","submittedAt","receiptReference","privacyNoticeVersion"],"additionalProperties":false}},"stats":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"new":{"type":"integer","minimum":0,"maximum":9007199254740991},"reviewing":{"type":"integer","minimum":0,"maximum":9007199254740991},"closed":{"type":"integer","minimum":0,"maximum":9007199254740991},"byService":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["total","new","reviewing","closed","byService"],"additionalProperties":false},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["consultations","stats","limit"],"additionalProperties":false}}}}